const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BP4mQk25.js","./repositories-CKXAS0eO.js","./index-CI0-_fUp.js","./index-D4tJut5w.js"])))=>i.map(i=>d[i]);
function CDt(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var nx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hK(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Bne={exports:{}},fE={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var jne,aEe;function fK(){if(aEe)return jne;aEe=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return jne=i()?Object.assign:function(o,a){for(var s,l=r(o),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var p=0;p<c.length;p++)n.call(s,c[p])&&(l[c[p]]=s[c[p]])}}return l},jne}var Hne={exports:{}},da={};/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sEe;function xDt(){if(sEe)return da;sEe=1;var e=fK(),t=60103,n=60106;da.Fragment=60107,da.StrictMode=60108,da.Profiler=60114;var r=60109,i=60110,o=60112;da.Suspense=60113;var a=60115,s=60116;if(typeof Symbol=="function"&&Symbol.for){var l=Symbol.for;t=l("react.element"),n=l("react.portal"),da.Fragment=l("react.fragment"),da.StrictMode=l("react.strict_mode"),da.Profiler=l("react.profiler"),r=l("react.provider"),i=l("react.context"),o=l("react.forward_ref"),da.Suspense=l("react.suspense"),a=l("react.memo"),s=l("react.lazy")}var c=typeof Symbol=="function"&&Symbol.iterator;function u(j){return j===null||typeof j!="object"?null:(j=c&&j[c]||j["@@iterator"],typeof j=="function"?j:null)}function d(j){for(var V="https://reactjs.org/docs/error-decoder.html?invariant="+j,G=1;G<arguments.length;G++)V+="&args[]="+encodeURIComponent(arguments[G]);return"Minified React error #"+j+"; visit "+V+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function g(j,V,G){this.props=j,this.context=V,this.refs=h,this.updater=G||p}g.prototype.isReactComponent={},g.prototype.setState=function(j,V){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error(d(85));this.updater.enqueueSetState(this,j,V,"setState")},g.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function m(){}m.prototype=g.prototype;function b(j,V,G){this.props=j,this.context=V,this.refs=h,this.updater=G||p}var y=b.prototype=new m;y.constructor=b,e(y,g.prototype),y.isPureReactComponent=!0;var M={current:null},C=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function w(j,V,G){var q,$={},U=null,X=null;if(V!=null)for(q in V.ref!==void 0&&(X=V.ref),V.key!==void 0&&(U=""+V.key),V)C.call(V,q)&&!x.hasOwnProperty(q)&&($[q]=V[q]);var Q=arguments.length-2;if(Q===1)$.children=G;else if(1<Q){for(var re=Array(Q),ee=0;ee<Q;ee++)re[ee]=arguments[ee+2];$.children=re}if(j&&j.defaultProps)for(q in Q=j.defaultProps,Q)$[q]===void 0&&($[q]=Q[q]);return{$$typeof:t,type:j,key:U,ref:X,props:$,_owner:M.current}}function S(j,V){return{$$typeof:t,type:j.type,key:V,ref:j.ref,props:j.props,_owner:j._owner}}function A(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function z(j){var V={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(G){return V[G]})}var O=/\/+/g;function T(j,V){return typeof j=="object"&&j!==null&&j.key!=null?z(""+j.key):V.toString(36)}function R(j,V,G,q,$){var U=typeof j;(U==="undefined"||U==="boolean")&&(j=null);var X=!1;if(j===null)X=!0;else switch(U){case"string":case"number":X=!0;break;case"object":switch(j.$$typeof){case t:case n:X=!0}}if(X)return X=j,$=$(X),j=q===""?"."+T(X,0):q,Array.isArray($)?(G="",j!=null&&(G=j.replace(O,"$&/")+"/"),R($,V,G,"",function(ee){return ee})):$!=null&&(A($)&&($=S($,G+(!$.key||X&&X.key===$.key?"":(""+$.key).replace(O,"$&/")+"/")+j)),V.push($)),1;if(X=0,q=q===""?".":q+":",Array.isArray(j))for(var Q=0;Q<j.length;Q++){U=j[Q];var re=q+T(U,Q);X+=R(U,V,G,re,$)}else if(re=u(j),typeof re=="function")for(j=re.call(j),Q=0;!(U=j.next()).done;)U=U.value,re=q+T(U,Q++),X+=R(U,V,G,re,$);else if(U==="object")throw V=""+j,Error(d(31,V==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":V));return X}function P(j,V,G){if(j==null)return j;var q=[],$=0;return R(j,q,"","",function(U){return V.call(G,U,$++)}),q}function F(j){if(j._status===-1){var V=j._result;V=V(),j._status=0,j._result=V,V.then(function(G){j._status===0&&(G=G.default,j._status=1,j._result=G)},function(G){j._status===0&&(j._status=2,j._result=G)})}if(j._status===1)return j._result;throw j._result}var N={current:null};function L(){var j=N.current;if(j===null)throw Error(d(321));return j}var W={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:M,IsSomeRendererActing:{current:!1},assign:e};return da.Children={map:P,forEach:function(j,V,G){P(j,function(){V.apply(this,arguments)},G)},count:function(j){var V=0;return P(j,function(){V++}),V},toArray:function(j){return P(j,function(V){return V})||[]},only:function(j){if(!A(j))throw Error(d(143));return j}},da.Component=g,da.PureComponent=b,da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,da.cloneElement=function(j,V,G){if(j==null)throw Error(d(267,j));var q=e({},j.props),$=j.key,U=j.ref,X=j._owner;if(V!=null){if(V.ref!==void 0&&(U=V.ref,X=M.current),V.key!==void 0&&($=""+V.key),j.type&&j.type.defaultProps)var Q=j.type.defaultProps;for(re in V)C.call(V,re)&&!x.hasOwnProperty(re)&&(q[re]=V[re]===void 0&&Q!==void 0?Q[re]:V[re])}var re=arguments.length-2;if(re===1)q.children=G;else if(1<re){Q=Array(re);for(var ee=0;ee<re;ee++)Q[ee]=arguments[ee+2];q.children=Q}return{$$typeof:t,type:j.type,key:$,ref:U,props:q,_owner:X}},da.createContext=function(j,V){return V===void 0&&(V=null),j={$$typeof:i,_calculateChangedBits:V,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider={$$typeof:r,_context:j},j.Consumer=j},da.createElement=w,da.createFactory=function(j){var V=w.bind(null,j);return V.type=j,V},da.createRef=function(){return{current:null}},da.forwardRef=function(j){return{$$typeof:o,render:j}},da.isValidElement=A,da.lazy=function(j){return{$$typeof:s,_payload:{_status:-1,_result:j},_init:F}},da.memo=function(j,V){return{$$typeof:a,type:j,compare:V===void 0?null:V}},da.useCallback=function(j,V){return L().useCallback(j,V)},da.useContext=function(j,V){return L().useContext(j,V)},da.useDebugValue=function(){},da.useEffect=function(j,V){return L().useEffect(j,V)},da.useImperativeHandle=function(j,V,G){return L().useImperativeHandle(j,V,G)},da.useLayoutEffect=function(j,V){return L().useLayoutEffect(j,V)},da.useMemo=function(j,V){return L().useMemo(j,V)},da.useReducer=function(j,V,G){return L().useReducer(j,V,G)},da.useRef=function(j){return L().useRef(j)},da.useState=function(j){return L().useState(j)},da.version="17.0.2",da}var lEe;function Wr(){return lEe||(lEe=1,Hne.exports=xDt()),Hne.exports}/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cEe;function wDt(){if(cEe)return fE;cEe=1,fK();var e=Wr(),t=60103;if(fE.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),fE.Fragment=n("react.fragment")}var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},p=null,h=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)i.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:p,ref:h,props:d,_owner:r.current}}return fE.jsx=a,fE.jsxs=a,fE}var uEe;function SDt(){return uEe||(uEe=1,Bne.exports=wDt()),Bne.exports}var f=SDt();class PO extends Error{constructor(t,n){const r=new.target.prototype;super(`${t}: Status code '${n}'`),this.statusCode=n,this.__proto__=r}}class H2e extends Error{constructor(t="A timeout occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class Zg extends Error{constructor(t="An abort occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class ADt extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=r}}class ODt extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=r}}class zDt extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=r}}class dEe extends Error{constructor(t){const n=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class TDt extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.innerErrors=n,this.__proto__=r}}class VJe{constructor(t,n,r){this.statusCode=t,this.statusText=n,this.content=r}}class gK{get(t,n){return this.send({...n,method:"GET",url:t})}post(t,n){return this.send({...n,method:"POST",url:t})}delete(t,n){return this.send({...n,method:"DELETE",url:t})}getCookieString(t){return""}}var on;(function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"})(on||(on={}));class cW{constructor(){}log(t,n){}}cW.instance=new cW;const EDt="8.0.17";class Yc{static isRequired(t,n){if(t==null)throw new Error(`The '${n}' argument is required.`)}static isNotEmpty(t,n){if(!t||t.match(/^\s*$/))throw new Error(`The '${n}' argument should not be empty.`)}static isIn(t,n,r){if(!(t in n))throw new Error(`Unknown ${r} value: ${t}.`)}}class kl{static get isBrowser(){return!kl.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!kl.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!kl.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function uW(e,t){let n="";return fz(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${RDt(e)}'`)):typeof e=="string"&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function RDt(e){const t=new Uint8Array(e);let n="";return t.forEach(r=>{const i=r<16?"0":"";n+=`0x${i}${r.toString(16)} `}),n.substr(0,n.length-1)}function fz(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&e.constructor.name==="ArrayBuffer")}async function GJe(e,t,n,r,i,o){const a={},[s,l]=ZI();a[s]=l,e.log(on.Trace,`(${t} transport) sending data. ${uW(i,o.logMessageContent)}.`);const c=fz(i)?"arraybuffer":"text",u=await n.post(r,{content:i,headers:{...a,...o.headers},responseType:c,timeout:o.timeout,withCredentials:o.withCredentials});e.log(on.Trace,`(${t} transport) request complete. Response status: ${u.statusCode}.`)}function IDt(e){return e===void 0?new y$(on.Information):e===null?cW.instance:e.log!==void 0?e:new y$(e)}class PDt{constructor(t,n){this._subject=t,this._observer=n}dispose(){const t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(n=>{})}}class y${constructor(t){this._minLevel=t,this.out=console}log(t,n){if(t>=this._minLevel){const r=`[${new Date().toISOString()}] ${on[t]}: ${n}`;switch(t){case on.Critical:case on.Error:this.out.error(r);break;case on.Warning:this.out.warn(r);break;case on.Information:this.out.info(r);break;default:this.out.log(r);break}}}}function ZI(){let e="X-SignalR-User-Agent";return kl.isNode&&(e="User-Agent"),[e,DDt(EDt,kDt(),_Dt(),LDt())]}function DDt(e,t,n,r){let i="Microsoft SignalR/";const o=e.split(".");return i+=`${o[0]}.${o[1]}`,i+=` (${e}; `,t&&t!==""?i+=`${t}; `:i+="Unknown OS; ",i+=`${n}`,r?i+=`; ${r}`:i+="; Unknown Runtime Version",i+=")",i}function kDt(){if(kl.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function LDt(){if(kl.isNode)return process.versions.node}function _Dt(){return kl.isNode?"NodeJS":"Browser"}function Vne(e){return e.stack?e.stack:e.message?e.message:`${e}`}function NDt(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class FDt extends gK{constructor(t){if(super(),this._logger=t,typeof fetch>"u"||kl.isNode){const n=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(n("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=n("node-fetch"):this._fetchType=fetch,this._fetchType=n("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(NDt());if(typeof AbortController>"u"){const n=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=n("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new Zg;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");const n=new this._abortControllerType;let r;t.abortSignal&&(t.abortSignal.onabort=()=>{n.abort(),r=new Zg});let i=null;if(t.timeout){const l=t.timeout;i=setTimeout(()=>{n.abort(),this._logger.log(on.Warning,"Timeout from HTTP request."),r=new H2e},l)}t.content===""&&(t.content=void 0),t.content&&(t.headers=t.headers||{},fz(t.content)?t.headers["Content-Type"]="application/octet-stream":t.headers["Content-Type"]="text/plain;charset=UTF-8");let o;try{o=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:t.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:n.signal})}catch(l){throw r||(this._logger.log(on.Warning,`Error from HTTP request. ${l}.`),l)}finally{i&&clearTimeout(i),t.abortSignal&&(t.abortSignal.onabort=null)}if(!o.ok){const l=await pEe(o,"text");throw new PO(l||o.statusText,o.status)}const s=await pEe(o,t.responseType);return new VJe(o.status,o.statusText,s)}getCookieString(t){let n="";return kl.isNode&&this._jar&&this._jar.getCookies(t,(r,i)=>n=i.join("; ")),n}}function pEe(e,t){let n;switch(t){case"arraybuffer":n=e.arrayBuffer();break;case"text":n=e.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`);default:n=e.text();break}return n}class WDt extends gK{constructor(t){super(),this._logger=t}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new Zg):t.method?t.url?new Promise((n,r)=>{const i=new XMLHttpRequest;i.open(t.method,t.url,!0),i.withCredentials=t.withCredentials===void 0?!0:t.withCredentials,i.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.content===""&&(t.content=void 0),t.content&&(fz(t.content)?i.setRequestHeader("Content-Type","application/octet-stream"):i.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const o=t.headers;o&&Object.keys(o).forEach(a=>{i.setRequestHeader(a,o[a])}),t.responseType&&(i.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=()=>{i.abort(),r(new Zg)}),t.timeout&&(i.timeout=t.timeout),i.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),i.status>=200&&i.status<300?n(new VJe(i.status,i.statusText,i.response||i.responseText)):r(new PO(i.response||i.responseText||i.statusText,i.status))},i.onerror=()=>{this._logger.log(on.Warning,`Error from HTTP request. ${i.status}: ${i.statusText}.`),r(new PO(i.statusText,i.status))},i.ontimeout=()=>{this._logger.log(on.Warning,"Timeout from HTTP request."),r(new H2e)},i.send(t.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class qDt extends gK{constructor(t){if(super(),typeof fetch<"u"||kl.isNode)this._httpClient=new FDt(t);else if(typeof XMLHttpRequest<"u")this._httpClient=new WDt(t);else throw new Error("No usable HttpClient found.")}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new Zg):t.method?t.url?this._httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(t){return this._httpClient.getCookieString(t)}}class Yp{static write(t){return`${t}${Yp.RecordSeparator}`}static parse(t){if(t[t.length-1]!==Yp.RecordSeparator)throw new Error("Message is incomplete.");const n=t.split(Yp.RecordSeparator);return n.pop(),n}}Yp.RecordSeparatorCode=30;Yp.RecordSeparator=String.fromCharCode(Yp.RecordSeparatorCode);class BDt{writeHandshakeRequest(t){return Yp.write(JSON.stringify(t))}parseHandshakeResponse(t){let n,r;if(fz(t)){const s=new Uint8Array(t),l=s.indexOf(Yp.RecordSeparatorCode);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;n=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,c))),r=s.byteLength>c?s.slice(c).buffer:null}else{const s=t,l=s.indexOf(Yp.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;n=s.substring(0,c),r=s.length>c?s.substring(c):null}const i=Yp.parse(n),o=JSON.parse(i[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[r,o]}}var no;(function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close",e[e.Ack=8]="Ack",e[e.Sequence=9]="Sequence"})(no||(no={}));class jDt{constructor(){this.observers=[]}next(t){for(const n of this.observers)n.next(t)}error(t){for(const n of this.observers)n.error&&n.error(t)}complete(){for(const t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new PDt(this,t)}}class HDt{constructor(t,n,r){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=t,this._connection=n,this._bufferSize=r}async _send(t){const n=this._protocol.writeMessage(t);let r=Promise.resolve();if(this._isInvocationMessage(t)){this._totalMessageCount++;let i=()=>{},o=()=>{};fz(n)?this._bufferedByteCount+=n.byteLength:this._bufferedByteCount+=n.length,this._bufferedByteCount>=this._bufferSize&&(r=new Promise((a,s)=>{i=a,o=s})),this._messages.push(new VDt(n,this._totalMessageCount,i,o))}try{this._reconnectInProgress||await this._connection.send(n)}catch{this._disconnected()}await r}_ack(t){let n=-1;for(let r=0;r<this._messages.length;r++){const i=this._messages[r];if(i._id<=t.sequenceId)n=r,fz(i._message)?this._bufferedByteCount-=i._message.byteLength:this._bufferedByteCount-=i._message.length,i._resolver();else if(this._bufferedByteCount<this._bufferSize)i._resolver();else break}n!==-1&&(this._messages=this._messages.slice(n+1))}_shouldProcessMessage(t){if(this._waitForSequenceMessage)return t.type!==no.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(t))return!0;const n=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,n<=this._latestReceivedSequenceId?(n===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=n,this._ackTimer(),!0)}_resetSequence(t){if(t.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=t.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const t=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:no.Sequence,sequenceId:t}));const n=this._messages;for(const r of n)await this._connection.send(r._message);this._reconnectInProgress=!1}_dispose(t){t??(t=new Error("Unable to reconnect to server."));for(const n of this._messages)n._rejector(t)}_isInvocationMessage(t){switch(t.type){case no.Invocation:case no.StreamItem:case no.Completion:case no.StreamInvocation:case no.CancelInvocation:return!0;case no.Close:case no.Sequence:case no.Ping:case no.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:no.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class VDt{constructor(t,n,r,i){this._message=t,this._id=n,this._resolver=r,this._rejector=i}}const GDt=30*1e3,$Dt=15*1e3,UDt=1e5;var gl;(function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"})(gl||(gl={}));class V2e{static create(t,n,r,i,o,a,s){return new V2e(t,n,r,i,o,a,s)}constructor(t,n,r,i,o,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(on.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Yc.isRequired(t,"connection"),Yc.isRequired(n,"logger"),Yc.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=o??GDt,this.keepAliveIntervalInMilliseconds=a??$Dt,this._statefulReconnectBufferSize=s??UDt,this._logger=n,this._protocol=r,this.connection=t,this._reconnectPolicy=i,this._handshakeProtocol=new BDt,this.connection.onreceive=l=>this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=gl.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:no.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==gl.Disconnected&&this._connectionState!==gl.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==gl.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=gl.Connecting,this._logger.log(on.Debug,"Starting HubConnection.");try{await this._startInternal(),kl.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=gl.Connected,this._connectionStarted=!0,this._logger.log(on.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=gl.Disconnected,this._logger.log(on.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const t=new Promise((n,r)=>{this._handshakeResolver=n,this._handshakeRejecter=r});await this.connection.start(this._protocol.transferFormat);try{let n=this._protocol.version;this.connection.features.reconnect||(n=1);const r={protocol:this._protocol.name,version:n};if(this._logger.log(on.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(r)),this._logger.log(on.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new HDt(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(n){throw this._logger.log(on.Debug,`Hub handshake failed with error '${n}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(n),n}}async stop(){const t=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch{}}_stopInternal(t){if(this._connectionState===gl.Disconnected)return this._logger.log(on.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===gl.Disconnecting)return this._logger.log(on.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const n=this._connectionState;return this._connectionState=gl.Disconnecting,this._logger.log(on.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(on.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(n===gl.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new Zg("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._createStreamInvocation(t,n,i);let a;const s=new jDt;return s.cancelCallback=()=>{const l=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],a.then(()=>this._sendWithProtocol(l))},this._callbacks[o.invocationId]=(l,c)=>{if(c){s.error(c);return}else l&&(l.type===no.Completion?l.error?s.error(new Error(l.error)):s.complete():s.next(l.item))},a=this._sendWithProtocol(o).catch(l=>{s.error(l),delete this._callbacks[o.invocationId]}),this._launchStreams(r,a),s}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._messageBuffer?this._messageBuffer._send(t):this._sendMessage(this._protocol.writeMessage(t))}send(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._sendWithProtocol(this._createInvocation(t,n,!0,i));return this._launchStreams(r,o),o}invoke(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._createInvocation(t,n,!1,i);return new Promise((s,l)=>{this._callbacks[o.invocationId]=(u,d)=>{if(d){l(d);return}else u&&(u.type===no.Completion?u.error?l(new Error(u.error)):s(u.result):l(new Error(`Unexpected message type: ${u.type}`)))};const c=this._sendWithProtocol(o).catch(u=>{l(u),delete this._callbacks[o.invocationId]});this._launchStreams(r,c)})}on(t,n){!t||!n||(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),this._methods[t].indexOf(n)===-1&&this._methods[t].push(n))}off(t,n){if(!t)return;t=t.toLowerCase();const r=this._methods[t];if(r)if(n){const i=r.indexOf(n);i!==-1&&(r.splice(i,1),r.length===0&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){const n=this._protocol.parseMessages(t,this._logger);for(const r of n)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(r)))switch(r.type){case no.Invocation:this._invokeClientMethod(r).catch(i=>{this._logger.log(on.Error,`Invoke client method threw error: ${Vne(i)}`)});break;case no.StreamItem:case no.Completion:{const i=this._callbacks[r.invocationId];if(i){r.type===no.Completion&&delete this._callbacks[r.invocationId];try{i(r)}catch(o){this._logger.log(on.Error,`Stream callback threw error: ${Vne(o)}`)}}break}case no.Ping:break;case no.Close:{this._logger.log(on.Information,"Close message received from server.");const i=r.error?new Error("Server returned an error on close: "+r.error):void 0;r.allowReconnect===!0?this.connection.stop(i):this._stopPromise=this._stopInternal(i);break}case no.Ack:this._messageBuffer&&this._messageBuffer._ack(r);break;case no.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(r);break;default:this._logger.log(on.Warning,`Invalid message type: ${r.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let n,r;try{[r,n]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(i){const o="Error parsing handshake response: "+i;this._logger.log(on.Error,o);const a=new Error(o);throw this._handshakeRejecter(a),a}if(n.error){const i="Server returned handshake error: "+n.error;this._logger.log(on.Error,i);const o=new Error(i);throw this._handshakeRejecter(o),o}else this._logger.log(on.Debug,"Server handshake complete.");return this._handshakeResolver(),r}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let t=this._nextKeepAlive-new Date().getTime();t<0&&(t=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===gl.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},t)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){const n=t.target.toLowerCase(),r=this._methods[n];if(!r){this._logger.log(on.Warning,`No client method with the name '${n}' found.`),t.invocationId&&(this._logger.log(on.Warning,`No result given for '${n}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}const i=r.slice(),o=!!t.invocationId;let a,s,l;for(const c of i)try{const u=a;a=await c.apply(this,t.arguments),o&&a&&u&&(this._logger.log(on.Error,`Multiple results provided for '${n}'. Sending error to server.`),l=this._createCompletionMessage(t.invocationId,"Client provided multiple results.",null)),s=void 0}catch(u){s=u,this._logger.log(on.Error,`A callback for the method '${n}' threw error '${u}'.`)}l?await this._sendWithProtocol(l):o?(s?l=this._createCompletionMessage(t.invocationId,`${s}`,null):a!==void 0?l=this._createCompletionMessage(t.invocationId,null,a):(this._logger.log(on.Warning,`No result given for '${n}' method and invocation ID '${t.invocationId}'.`),l=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(l)):a&&this._logger.log(on.Error,`Result given for '${n}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(on.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new Zg("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===gl.Disconnecting?this._completeClose(t):this._connectionState===gl.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===gl.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=gl.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(t??new Error("Connection closed.")),this._messageBuffer=void 0),kl.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[t]))}catch(n){this._logger.log(on.Error,`An onclose callback called with error '${t}' threw error '${n}'.`)}}}async _reconnect(t){const n=Date.now();let r=0,i=t!==void 0?t:new Error("Attempting to reconnect due to a unknown error."),o=this._getNextRetryDelay(r++,0,i);if(o===null){this._logger.log(on.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(t);return}if(this._connectionState=gl.Reconnecting,t?this._logger.log(on.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(on.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[t]))}catch(a){this._logger.log(on.Error,`An onreconnecting callback called with error '${t}' threw error '${a}'.`)}if(this._connectionState!==gl.Reconnecting){this._logger.log(on.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;o!==null;){if(this._logger.log(on.Information,`Reconnect attempt number ${r} will start in ${o} ms.`),await new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,o)}),this._reconnectDelayHandle=void 0,this._connectionState!==gl.Reconnecting){this._logger.log(on.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=gl.Connected,this._logger.log(on.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log(on.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log(on.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==gl.Reconnecting){this._logger.log(on.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===gl.Disconnecting&&this._completeClose();return}i=a instanceof Error?a:new Error(a.toString()),o=this._getNextRetryDelay(r++,Date.now()-n,i)}}this._logger.log(on.Information,`Reconnect retries have been exhausted after ${Date.now()-n} ms and ${r} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,n,r){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:t,retryReason:r})}catch(i){return this._logger.log(on.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${n}) threw error '${i}'.`),null}}_cancelCallbacksWithError(t){const n=this._callbacks;this._callbacks={},Object.keys(n).forEach(r=>{const i=n[r];try{i(null,t)}catch(o){this._logger.log(on.Error,`Stream 'error' callback called with '${t}' threw error: ${Vne(o)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,n,r,i){if(r)return i.length!==0?{arguments:n,streamIds:i,target:t,type:no.Invocation}:{arguments:n,target:t,type:no.Invocation};{const o=this._invocationId;return this._invocationId++,i.length!==0?{arguments:n,invocationId:o.toString(),streamIds:i,target:t,type:no.Invocation}:{arguments:n,invocationId:o.toString(),target:t,type:no.Invocation}}}_launchStreams(t,n){if(t.length!==0){n||(n=Promise.resolve());for(const r in t)t[r].subscribe({complete:()=>{n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r)))},error:i=>{let o;i instanceof Error?o=i.message:i&&i.toString?o=i.toString():o="Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r,o)))},next:i=>{n=n.then(()=>this._sendWithProtocol(this._createStreamItemMessage(r,i)))}})}}_replaceStreamingParams(t){const n=[],r=[];for(let i=0;i<t.length;i++){const o=t[i];if(this._isObservable(o)){const a=this._invocationId;this._invocationId++,n[a]=o,r.push(a.toString()),t.splice(i,1)}}return[n,r]}_isObservable(t){return t&&t.subscribe&&typeof t.subscribe=="function"}_createStreamInvocation(t,n,r){const i=this._invocationId;return this._invocationId++,r.length!==0?{arguments:n,invocationId:i.toString(),streamIds:r,target:t,type:no.StreamInvocation}:{arguments:n,invocationId:i.toString(),target:t,type:no.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:no.CancelInvocation}}_createStreamItemMessage(t,n){return{invocationId:t,item:n,type:no.StreamItem}}_createCompletionMessage(t,n,r){return n?{error:n,invocationId:t,type:no.Completion}:{invocationId:t,result:r,type:no.Completion}}_createCloseMessage(){return{type:no.Close}}}const XDt=[0,2e3,1e4,3e4,null];class hEe{constructor(t){this._retryDelays=t!==void 0?[...t,null]:XDt}nextRetryDelayInMilliseconds(t){return this._retryDelays[t.previousRetryCount]}}let DO=class{};DO.Authorization="Authorization";DO.Cookie="Cookie";class YDt extends gK{constructor(t,n){super(),this._innerClient=t,this._accessTokenFactory=n}async send(t){let n=!0;this._accessTokenFactory&&(!this._accessToken||t.url&&t.url.indexOf("/negotiate?")>0)&&(n=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(t);const r=await this._innerClient.send(t);return n&&r.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(t),await this._innerClient.send(t)):r}_setAuthorizationHeader(t){t.headers||(t.headers={}),this._accessToken?t.headers[DO.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&t.headers[DO.Authorization]&&delete t.headers[DO.Authorization]}getCookieString(t){return this._innerClient.getCookieString(t)}}var pu;(function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"})(pu||(pu={}));var s0;(function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"})(s0||(s0={}));let KDt=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class fEe{get pollAborted(){return this._pollAbort.aborted}constructor(t,n,r){this._httpClient=t,this._logger=n,this._pollAbort=new KDt,this._options=r,this._running=!1,this.onreceive=null,this.onclose=null}async connect(t,n){if(Yc.isRequired(t,"url"),Yc.isRequired(n,"transferFormat"),Yc.isIn(n,s0,"transferFormat"),this._url=t,this._logger.log(on.Trace,"(LongPolling transport) Connecting."),n===s0.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[r,i]=ZI(),o={[r]:i,...this._options.headers},a={abortSignal:this._pollAbort.signal,headers:o,timeout:1e5,withCredentials:this._options.withCredentials};n===s0.Binary&&(a.responseType="arraybuffer");const s=`${t}&_=${Date.now()}`;this._logger.log(on.Trace,`(LongPolling transport) polling: ${s}.`);const l=await this._httpClient.get(s,a);l.statusCode!==200?(this._logger.log(on.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new PO(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,a)}async _poll(t,n){try{for(;this._running;)try{const r=`${t}&_=${Date.now()}`;this._logger.log(on.Trace,`(LongPolling transport) polling: ${r}.`);const i=await this._httpClient.get(r,n);i.statusCode===204?(this._logger.log(on.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):i.statusCode!==200?(this._logger.log(on.Error,`(LongPolling transport) Unexpected response code: ${i.statusCode}.`),this._closeError=new PO(i.statusText||"",i.statusCode),this._running=!1):i.content?(this._logger.log(on.Trace,`(LongPolling transport) data received. ${uW(i.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(i.content)):this._logger.log(on.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(r){this._running?r instanceof H2e?this._logger.log(on.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=r,this._running=!1):this._logger.log(on.Trace,`(LongPolling transport) Poll errored after shutdown: ${r.message}`)}}finally{this._logger.log(on.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(t){return this._running?GJe(this._logger,"LongPolling",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(on.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(on.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const t={},[n,r]=ZI();t[n]=r;const i={headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let o;try{await this._httpClient.delete(this._url,i)}catch(a){o=a}o?o instanceof PO&&(o.statusCode===404?this._logger.log(on.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(on.Trace,`(LongPolling transport) Error sending a DELETE request: ${o}`)):this._logger.log(on.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(on.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError),this._logger.log(on.Trace,t),this.onclose(this._closeError)}}}class QDt{constructor(t,n,r,i){this._httpClient=t,this._accessToken=n,this._logger=r,this._options=i,this.onreceive=null,this.onclose=null}async connect(t,n){return Yc.isRequired(t,"url"),Yc.isRequired(n,"transferFormat"),Yc.isIn(n,s0,"transferFormat"),this._logger.log(on.Trace,"(SSE transport) Connecting."),this._url=t,this._accessToken&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((r,i)=>{let o=!1;if(n!==s0.Text){i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let a;if(kl.isBrowser||kl.isWebWorker)a=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{const s=this._httpClient.getCookieString(t),l={};l.Cookie=s;const[c,u]=ZI();l[c]=u,a=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...l,...this._options.headers}})}try{a.onmessage=s=>{if(this.onreceive)try{this._logger.log(on.Trace,`(SSE transport) data received. ${uW(s.data,this._options.logMessageContent)}.`),this.onreceive(s.data)}catch(l){this._close(l);return}},a.onerror=s=>{o?this._close():i(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{this._logger.log(on.Information,`SSE connected to ${this._url}`),this._eventSource=a,o=!0,r()}}catch(s){i(s);return}})}async send(t){return this._eventSource?GJe(this._logger,"SSE",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(t){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(t))}}class ZDt{constructor(t,n,r,i,o,a){this._logger=r,this._accessTokenFactory=n,this._logMessageContent=i,this._webSocketConstructor=o,this._httpClient=t,this.onreceive=null,this.onclose=null,this._headers=a}async connect(t,n){Yc.isRequired(t,"url"),Yc.isRequired(n,"transferFormat"),Yc.isIn(n,s0,"transferFormat"),this._logger.log(on.Trace,"(WebSockets transport) Connecting.");let r;return this._accessTokenFactory&&(r=await this._accessTokenFactory()),new Promise((i,o)=>{t=t.replace(/^http/,"ws");let a;const s=this._httpClient.getCookieString(t);let l=!1;if(kl.isNode||kl.isReactNative){const c={},[u,d]=ZI();c[u]=d,r&&(c[DO.Authorization]=`Bearer ${r}`),s&&(c[DO.Cookie]=s),a=new this._webSocketConstructor(t,void 0,{headers:{...c,...this._headers}})}else r&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(r)}`);a||(a=new this._webSocketConstructor(t)),n===s0.Binary&&(a.binaryType="arraybuffer"),a.onopen=c=>{this._logger.log(on.Information,`WebSocket connected to ${t}.`),this._webSocket=a,l=!0,i()},a.onerror=c=>{let u=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?u=c.error:u="There was an error with the transport",this._logger.log(on.Information,`(WebSockets transport) ${u}.`)},a.onmessage=c=>{if(this._logger.log(on.Trace,`(WebSockets transport) data received. ${uW(c.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(c.data)}catch(u){this._close(u);return}},a.onclose=c=>{if(l)this._close(c);else{let u=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?u=c.error:u="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",o(new Error(u))}}})}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(on.Trace,`(WebSockets transport) sending data. ${uW(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(t){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(on.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(t)&&(t.wasClean===!1||t.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`)):t instanceof Error?this.onclose(t):this.onclose())}_isCloseEvent(t){return t&&typeof t.wasClean=="boolean"&&typeof t.code=="number"}}const gEe=100;class JDt{constructor(t,n={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Yc.isRequired(t,"url"),this._logger=IDt(n.logger),this.baseUrl=this._resolveUrl(t),n=n||{},n.logMessageContent=n.logMessageContent===void 0?!1:n.logMessageContent,typeof n.withCredentials=="boolean"||n.withCredentials===void 0)n.withCredentials=n.withCredentials===void 0?!0:n.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");n.timeout=n.timeout===void 0?100*1e3:n.timeout;let r=null,i=null;if(kl.isNode&&typeof require<"u"){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;r=o("ws"),i=o("eventsource")}!kl.isNode&&typeof WebSocket<"u"&&!n.WebSocket?n.WebSocket=WebSocket:kl.isNode&&!n.WebSocket&&r&&(n.WebSocket=r),!kl.isNode&&typeof EventSource<"u"&&!n.EventSource?n.EventSource=EventSource:kl.isNode&&!n.EventSource&&typeof i<"u"&&(n.EventSource=i),this._httpClient=new YDt(n.httpClient||new qDt(this._logger),n.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=n,this.onreceive=null,this.onclose=null}async start(t){if(t=t||s0.Binary,Yc.isIn(t,s0,"transferFormat"),this._logger.log(on.Debug,`Starting connection with transfer format '${s0[t]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,this._connectionState==="Disconnecting"){const n="Failed to start the HttpConnection before stop() was called.";return this._logger.log(on.Error,n),await this._stopPromise,Promise.reject(new Zg(n))}else if(this._connectionState!=="Connected"){const n="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(on.Error,n),Promise.reject(new Zg(n))}this._connectionStarted=!0}send(t){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new G2e(this.transport)),this._sendQueue.send(t))}async stop(t){if(this._connectionState==="Disconnected")return this._logger.log(on.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(on.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(n=>{this._stopPromiseResolver=n}),await this._stopInternal(t),await this._stopPromise}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(n){this._logger.log(on.Error,`HttpConnection.transport.stop() threw error '${n}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(on.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let n=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===pu.WebSockets)this.transport=this._constructTransport(pu.WebSockets),await this._startTransport(n,t);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let r=null,i=0;do{if(r=await this._getNegotiationResponse(n),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Zg("The connection was stopped during negotiation.");if(r.error)throw new Error(r.error);if(r.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(r.url&&(n=r.url),r.accessToken){const o=r.accessToken;this._accessTokenFactory=()=>o,this._httpClient._accessToken=o,this._httpClient._accessTokenFactory=void 0}i++}while(r.url&&i<gEe);if(i===gEe&&r.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(n,this._options.transport,r,t)}this.transport instanceof fEe&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(on.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(r){return this._logger.log(on.Error,"Failed to start the connection: "+r),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(r)}}async _getNegotiationResponse(t){const n={},[r,i]=ZI();n[r]=i;const o=this._resolveNegotiateUrl(t);this._logger.log(on.Debug,`Sending negotiation request: ${o}.`);try{const a=await this._httpClient.post(o,{content:"",headers:{...n,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(a.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${a.statusCode}'`));const s=JSON.parse(a.content);return(!s.negotiateVersion||s.negotiateVersion<1)&&(s.connectionToken=s.connectionId),s.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new dEe("Client didn't negotiate Stateful Reconnect but the server did.")):s}catch(a){let s="Failed to complete negotiation with the server: "+a;return a instanceof PO&&a.statusCode===404&&(s=s+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(on.Error,s),Promise.reject(new dEe(s))}}_createConnectUrl(t,n){return n?t+(t.indexOf("?")===-1?"?":"&")+`id=${n}`:t}async _createTransport(t,n,r,i){let o=this._createConnectUrl(t,r.connectionToken);if(this._isITransport(n)){this._logger.log(on.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=n,await this._startTransport(o,i),this.connectionId=r.connectionId;return}const a=[],s=r.availableTransports||[];let l=r;for(const c of s){const u=this._resolveTransportOrError(c,n,i,l?.useStatefulReconnect===!0);if(u instanceof Error)a.push(`${c.transport} failed:`),a.push(u);else if(this._isITransport(u)){if(this.transport=u,!l){try{l=await this._getNegotiationResponse(t)}catch(d){return Promise.reject(d)}o=this._createConnectUrl(t,l.connectionToken)}try{await this._startTransport(o,i),this.connectionId=l.connectionId;return}catch(d){if(this._logger.log(on.Error,`Failed to start the transport '${c.transport}': ${d}`),l=void 0,a.push(new zDt(`${c.transport} failed: ${d}`,pu[c.transport])),this._connectionState!=="Connecting"){const p="Failed to select transport before stop() was called.";return this._logger.log(on.Debug,p),Promise.reject(new Zg(p))}}}}return a.length>0?Promise.reject(new TDt(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(t){switch(t){case pu.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new ZDt(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case pu.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new QDt(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case pu.LongPolling:return new fEe(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${t}.`)}}_startTransport(t,n){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async r=>{let i=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(t,n),await this.features.resend()}catch{i=!0}else{this._stopConnection(r);return}i&&this._stopConnection(r)}:this.transport.onclose=r=>this._stopConnection(r),this.transport.connect(t,n)}_resolveTransportOrError(t,n,r,i){const o=pu[t.transport];if(o==null)return this._logger.log(on.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(ekt(n,o))if(t.transferFormats.map(s=>s0[s]).indexOf(r)>=0){if(o===pu.WebSockets&&!this._options.WebSocket||o===pu.ServerSentEvents&&!this._options.EventSource)return this._logger.log(on.Debug,`Skipping transport '${pu[o]}' because it is not supported in your environment.'`),new ADt(`'${pu[o]}' is not supported in your environment.`,o);this._logger.log(on.Debug,`Selecting transport '${pu[o]}'.`);try{return this.features.reconnect=o===pu.WebSockets?i:void 0,this._constructTransport(o)}catch(s){return s}}else return this._logger.log(on.Debug,`Skipping transport '${pu[o]}' because it does not support the requested transfer format '${s0[r]}'.`),new Error(`'${pu[o]}' does not support ${s0[r]}.`);else return this._logger.log(on.Debug,`Skipping transport '${pu[o]}' because it was disabled by the client.`),new ODt(`'${pu[o]}' is disabled by the client.`,o)}_isITransport(t){return t&&typeof t=="object"&&"connect"in t}_stopConnection(t){if(this._logger.log(on.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=void 0,t=this._stopError||t,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(on.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(on.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),t?this._logger.log(on.Error,`Connection disconnected with error '${t}'.`):this._logger.log(on.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(n=>{this._logger.log(on.Error,`TransportSendQueue.stop() threw error '${n}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(n){this._logger.log(on.Error,`HttpConnection.onclose(${t}) threw error '${n}'.`)}}}_resolveUrl(t){if(t.lastIndexOf("https://",0)===0||t.lastIndexOf("http://",0)===0)return t;if(!kl.isBrowser)throw new Error(`Cannot resolve '${t}'.`);const n=window.document.createElement("a");return n.href=t,this._logger.log(on.Information,`Normalizing '${t}' to '${n.href}'.`),n.href}_resolveNegotiateUrl(t){const n=new URL(t);n.pathname.endsWith("/")?n.pathname+="negotiate":n.pathname+="/negotiate";const r=new URLSearchParams(n.searchParams);return r.has("negotiateVersion")||r.append("negotiateVersion",this._negotiateVersion.toString()),r.has("useStatefulReconnect")?r.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&r.append("useStatefulReconnect","true"),n.search=r.toString(),n.toString()}}function ekt(e,t){return!e||(t&e)!==0}class G2e{constructor(t){this._transport=t,this._buffer=[],this._executing=!0,this._sendBufferedData=new BH,this._transportResult=new BH,this._sendLoopPromise=this._sendLoop()}send(t){return this._bufferData(t),this._transportResult||(this._transportResult=new BH),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(t){if(this._buffer.length&&typeof this._buffer[0]!=typeof t)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof t}`);this._buffer.push(t),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new BH;const t=this._transportResult;this._transportResult=void 0;const n=typeof this._buffer[0]=="string"?this._buffer.join(""):G2e._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(n),t.resolve()}catch(r){t.reject(r)}}}static _concatBuffers(t){const n=t.map(o=>o.byteLength).reduce((o,a)=>o+a),r=new Uint8Array(n);let i=0;for(const o of t)r.set(new Uint8Array(o),i),i+=o.byteLength;return r.buffer}}class BH{constructor(){this.promise=new Promise((t,n)=>[this._resolver,this._rejecter]=[t,n])}resolve(){this._resolver()}reject(t){this._rejecter(t)}}const tkt="json";class nkt{constructor(){this.name=tkt,this.version=2,this.transferFormat=s0.Text}parseMessages(t,n){if(typeof t!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];n===null&&(n=cW.instance);const r=Yp.parse(t),i=[];for(const o of r){const a=JSON.parse(o);if(typeof a.type!="number")throw new Error("Invalid payload.");switch(a.type){case no.Invocation:this._isInvocationMessage(a);break;case no.StreamItem:this._isStreamItemMessage(a);break;case no.Completion:this._isCompletionMessage(a);break;case no.Ping:break;case no.Close:break;case no.Ack:this._isAckMessage(a);break;case no.Sequence:this._isSequenceMessage(a);break;default:n.log(on.Information,"Unknown message type '"+a.type+"' ignored.");continue}i.push(a)}return i}writeMessage(t){return Yp.write(JSON.stringify(t))}_isInvocationMessage(t){this._assertNotEmptyString(t.target,"Invalid payload for Invocation message."),t.invocationId!==void 0&&this._assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(t){if(this._assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),t.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this._assertNotEmptyString(t.error,"Invalid payload for Completion message."),this._assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")}_isAckMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(t,n){if(typeof t!="string"||t==="")throw new Error(n)}}const rkt={trace:on.Trace,debug:on.Debug,info:on.Information,information:on.Information,warn:on.Warning,warning:on.Warning,error:on.Error,critical:on.Critical,none:on.None};function ikt(e){const t=rkt[e.toLowerCase()];if(typeof t<"u")return t;throw new Error(`Unknown log level: ${e}`)}class $Je{configureLogging(t){if(Yc.isRequired(t,"logging"),okt(t))this.logger=t;else if(typeof t=="string"){const n=ikt(t);this.logger=new y$(n)}else this.logger=new y$(t);return this}withUrl(t,n){return Yc.isRequired(t,"url"),Yc.isNotEmpty(t,"url"),this.url=t,typeof n=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...n}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:n},this}withHubProtocol(t){return Yc.isRequired(t,"protocol"),this.protocol=t,this}withAutomaticReconnect(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return t?Array.isArray(t)?this.reconnectPolicy=new hEe(t):this.reconnectPolicy=t:this.reconnectPolicy=new hEe,this}withServerTimeout(t){return Yc.isRequired(t,"milliseconds"),this._serverTimeoutInMilliseconds=t,this}withKeepAliveInterval(t){return Yc.isRequired(t,"milliseconds"),this._keepAliveIntervalInMilliseconds=t,this}withStatefulReconnect(t){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=t?.bufferSize,this}build(){const t=this.httpConnectionOptions||{};if(t.logger===void 0&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const n=new JDt(this.url,t);return V2e.create(n,this.logger||cW.instance,this.protocol||new nkt,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function okt(e){return e.log!==void 0}var Wy=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,n){const r=t?this.allAsyncListeners:this.allSyncListeners;let i=r.get(e);return!i&&n&&(i=new Set,r.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){const r=this.getListeners(e,n,!1);r&&(r.delete(t),r.size===0&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const n=e.type;if(t&&"event"in e){const s=e.event;s instanceof Event&&(e.eventPath=s.composedPath())}const{frameworkOverrides:r}=this,i=s=>{const l=r?()=>r.wrapIncoming(s):s;t?this.dispatchAsync(l):l()},o=this.getListeners(n,t,!1);if((o?.size??0)>0){const s=new Set(o);for(const l of s)o?.has(l)&&i(()=>l(e))}const a=this.getGlobalListeners(t);if(a.size>0){const s=new Set(a);for(const l of s)i(()=>l(n,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function akt(e,t){return t}function $2e(e){return e?.getLocaleTextFunc()??akt}function fh(e,t,n){n==null||typeof n=="string"&&n==""?U2e(e,t):gh(e,t,n)}function gh(e,t,n){e.setAttribute(UJe(t),n.toString())}function U2e(e,t){e.removeAttribute(UJe(t))}function UJe(e){return`aria-${e}`}function C0(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function skt(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function lkt(e){return parseInt(e.getAttribute("aria-posinset"),10)}function ckt(e){return e.getAttribute("aria-label")}function Is(e,t){fh(e,"label",t)}function Vx(e,t){fh(e,"labelledby",t)}function mK(e,t){fh(e,"describedby",t)}function XJe(e,t){fh(e,"live",t)}function ukt(e,t){fh(e,"atomic",t)}function dkt(e,t){fh(e,"relevant",t)}function vK(e,t){fh(e,"level",t)}function M$(e,t){fh(e,"disabled",t)}function X2e(e,t){fh(e,"hidden",t)}function YJe(e,t){fh(e,"activedescendant",t)}function d1(e,t){gh(e,"expanded",t)}function KJe(e){U2e(e,"expanded")}function bK(e,t){gh(e,"setsize",t)}function yK(e,t){gh(e,"posinset",t)}function pkt(e,t){gh(e,"multiselectable",t)}function QJe(e,t){gh(e,"rowcount",t)}function MK(e,t){gh(e,"rowindex",t)}function hkt(e,t){gh(e,"rowspan",t)}function ZJe(e,t){gh(e,"colcount",t)}function Y2e(e,t){gh(e,"colindex",t)}function JJe(e,t){gh(e,"colspan",t)}function eet(e,t){gh(e,"sort",t)}function tet(e){U2e(e,"sort")}function dW(e,t){fh(e,"selected",t)}function net(e,t){gh(e,"checked",t===void 0?"mixed":t)}function K2e(e,t){fh(e,"controls",t.id),Vx(t,e.id)}function fkt(e,t){fh(e,"haspopup",t===!1?null:t)}function Q2e(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Gne,$ne,Une,Xne,ihe,ohe,Yne;function yw(){return Gne===void 0&&(Gne=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Gne}function Z2e(){return $ne===void 0&&($ne=/(firefox)/i.test(navigator.userAgent)),$ne}function ret(){return Une===void 0&&(Une=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Une}function xx(){return Xne===void 0&&(Xne=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Xne}function ahe(e){if(!e)return null;const t=e.tabIndex,n=e.getAttribute("tabIndex");return t===-1&&(n===null||n===""&&!Z2e())?null:t.toString()}function gkt(){if(Yne!==void 0)return Yne;if(!document.body)return-1;let e=1e6;const t=Z2e()?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){const r=e*2;if(n.style.height=r+"px",r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),Yne=e,e}function mkt(){return ohe==null&&iet(),ohe}function iet(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let n=t.offsetWidth-t.clientWidth;n===0&&t.clientWidth===0&&(n=null),t.parentNode&&t.parentNode.removeChild(t),n!=null&&(ohe=n,ihe=n===0)}function oet(){return ihe==null&&iet(),ihe}function C$(e,t,n){const r=e.parentElement;let i=r&&r.firstChild;for(;i;)t&&i.classList.toggle(t,i===e),n&&i.classList.toggle(n,i!==e),i=i.nextSibling}var vkt="[tabindex], input, select, button, textarea, [href]",aet="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function J2e(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,r=t.call(e,"input, select, button, textarea"),i=t.call(e,aet),o=x0(e);return r&&!i&&o}function Nn(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle("ag-hidden",!t),r||X2e(e,!t)}function set(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle("ag-invisible",!t),r||X2e(e,!t)}function nf(e,t){const n="disabled",r=t?o=>o.setAttribute(n,""):o=>o.removeAttribute(n);r(e);const i=e.querySelectorAll("input")??[];for(const o of i)r(o)}function kO(e,t,n){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof n=="number"){if(++r>n)break}else if(e===n)break}return!1}function f3(e){const{height:t,width:n,borderTopWidth:r,borderRightWidth:i,borderBottomWidth:o,borderLeftWidth:a,paddingTop:s,paddingRight:l,paddingBottom:c,paddingLeft:u,marginTop:d,marginRight:p,marginBottom:h,marginLeft:g,boxSizing:m}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(n||"0"),borderTopWidth:parseFloat(r||"0"),borderRightWidth:parseFloat(i||"0"),borderBottomWidth:parseFloat(o||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(s||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(u||"0"),marginTop:parseFloat(d||"0"),marginRight:parseFloat(p||"0"),marginBottom:parseFloat(h||"0"),marginLeft:parseFloat(g||"0"),boxSizing:m}}function CK(e){const t=f3(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function JI(e){const t=f3(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function xK(e){const{height:t,marginBottom:n,marginTop:r}=f3(e);return Math.floor(t+n+r)}function gz(e){const{width:t,marginLeft:n,marginRight:r}=f3(e);return Math.floor(t+n+r)}function cet(e){const t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:o}=f3(e);return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(i||0),bottom:t.bottom+(o||0)}}function x$(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n)),n}function w$(e,t,n){n&&(t*=-1),e.scrollLeft=t}function Xi(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Ps(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function uet(e){return!!e.offsetParent}function x0(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!uet(e)||window.getComputedStyle(e).visibility!=="visible")}function eye(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function det(e,t,n){n&&n.nextSibling===t||(e.firstChild?n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function pet(e,t){for(let n=0;n<t.length;n++){const r=t[n],i=e.children[n];i!==r&&e.insertBefore(r,i)}}function bkt(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function m6(e,t){if(t)for(const n of Object.keys(t)){const r=t[n];if(!n||!n.length||r==null)continue;const i=bkt(n),o=r.toString(),a=o.replace(/\s*!important/g,""),s=a.length!=o.length?"important":void 0;e.style.setProperty(i,a,s)}}function ykt(e){return e.clientWidth<e.scrollWidth}function Mkt(e){return e.clientHeight<e.scrollHeight}function S$(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):am(e,t)}function am(e,t){t=tye(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function DN(e,t){t=tye(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function tye(e){return typeof e=="number"?`${e}px`:e}function wK(e){return e instanceof Node||e instanceof HTMLElement}function Af(e,t,n){n==null||n===""?e.removeAttribute(t):e.setAttribute(t,n.toString())}function Hf(e,t,n){const i=Aet(e).ResizeObserver,o=i?new i(n):null;return o?.observe(t),()=>o?.disconnect()}function Ckt(e){const t=bz(e),n="getSelection"in t?t.getSelection():null,r=[];for(let i=0;i<(n?.rangeCount??0);i++){const o=n?.getRangeAt(i);o&&r.push(o)}return{selection:n,ranges:r}}function SK(e,t){if(!e.gos.get("enableCellTextSelection")||!Z2e()&&!yw())return t();const{selection:r,ranges:i}=Ckt(e);t(),r?.removeAllRanges();for(const o of i)r?.addRange(o)}function sh(e,t){const n=Aet(e);n.requestAnimationFrame?n.requestAnimationFrame(t):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(t):n.setTimeout(t,0)}var het="data-ref",Kne;function mEe(){return Kne??(Kne=document.createTextNode(" ")),Kne.cloneNode()}function Nr(e){const{attrs:t,children:n,cls:r,ref:i,role:o,tag:a}=e,s=document.createElement(a);if(r&&(s.className=r),i&&s.setAttribute(het,i),o&&s.setAttribute("role",o),t)for(const l of Object.keys(t))s.setAttribute(l,t[l]);if(n)if(typeof n=="string")s.textContent=n;else{let l=!0;for(const c of n)c&&(typeof c=="string"?(s.appendChild(document.createTextNode(c)),l=!1):(l&&(s.appendChild(mEe()),l=!1),s.append(Nr(c)),s.appendChild(mEe())))}return s}var vEe={};function AK(e,t){vEe[t]||(e(),vEe[t]=!0)}function Gx(e,t,...n){e.get("debug")&&console.log("AG Grid: "+t,...n)}function sb(e,...t){AK(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function rI(e,...t){AK(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var xkt={pending:!1,funcs:[]},wkt={pending:!1,funcs:[]};function A$(e,t="setTimeout",n){const r=t==="raf"?wkt:xkt;if(r.funcs.push(e),r.pending)return;r.pending=!0;const i=()=>{const o=r.funcs.slice();r.funcs.length=0,r.pending=!1,o.forEach(a=>a())};t==="raf"?sh(n,i):window.setTimeout(i,0)}function Ml(e,t,n){let r;return function(...i){const o=this;window.clearTimeout(r),r=window.setTimeout(function(){e.isAlive()&&t.apply(o,i)},n)}}function bEe(e,t){let n=0;return function(...r){const i=this,o=Date.now();o-n<t||(n=o,e.apply(i,r))}}function fet(e,t,n=100,r){const i=Date.now();let o=null,a=!1;const s=()=>{const l=Date.now()-i>n;(e()||l)&&(t(),a=!0,o!=null&&(window.clearInterval(o),o=null))};s(),a||(o=window.setInterval(s,10))}function Tc(e){return e==null||e===""?null:e}function Ut(e){return e!=null&&e!==""}function Yi(e){return!Ut(e)}function ap(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function mz(e,t){const n=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return n===r}function YG(e,t,n=!1){const r=e==null,i=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&i)return 0;if(r)return-1;if(i)return 1;function o(a,s){return a>s?1:a<s?-1:0}if(typeof e!="string"||!n)return o(e,t);try{return e.localeCompare(t)}catch{return o(e,t)}}var get="https://www.ag-grid.com",Jn="33.3.2",yEe=2e3,MEe=100,met="_version_",vet=null,iI=`${get}/javascript-data-grid`;function Skt(e){vet=e}function Akt(e){iI=e}function bet(e,t,n){return vet?.getConsoleMessage(e,t)??[Ekt(e,t,n)]}function nye(e,t,n,r){e(`error #${t}`,...bet(t,n,r))}function Okt(e){if(!e)return String(e);const t={};for(const n of Object.keys(e))typeof e[n]!="object"&&typeof e[n]!="function"&&(t[n]=e[n]);return JSON.stringify(t)}function zkt(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=Okt(e)),t}function O$(e){return e===void 0?"undefined":e===null?"null":e}function she(e,t){return`${e}?${t.toString()}`}function Tkt(e,t,n){const r=Array.from(t.entries()).sort((o,a)=>a[1].length-o[1].length);let i=she(e,t);for(const[o,a]of r){if(o===met)continue;const s=i.length-n;if(s<=0)break;const l="...",c=s+l.length,u=a.length-c>MEe?a.slice(0,a.length-c)+l:a.slice(0,MEe)+l;t.set(o,u),i=she(e,t)}return i}function yet(e,t){const n=new URLSearchParams;if(n.append(met,Jn),t)for(const o of Object.keys(t))n.append(o,zkt(t[o]));const r=`${iI}/errors/${e}`,i=she(r,n);return i.length<=yEe?i:Tkt(r,n,yEe)}var Ekt=(e,t,n)=>{const r=yet(e,t);return`${n?n+` 
`:""}Visit ${r}${n?"":` 
  Alternatively register the ValidationModule to see the full message in the console.`}`};function ut(...e){nye(sb,e[0],e[1])}function pi(...e){nye(rI,e[0],e[1])}function G5(e,t,n){nye(rI,e,t,n)}function Met(e,t){const n=t[0];return`error #${n} `+bet(n,t[1],e).join(" ")}function Of(...e){return Met(void 0,e)}function Cet(...e){return Met(`
`,e)}function xet(e,t){return e.get("rowModelType")===t}function sa(e,t){return xet(e,"clientSide")}function Au(e,t){return xet(e,"serverSide")}function Uu(e,t){return e.get("domLayout")===t}function Kp(e){return tP(e)!==void 0}function rye(e){return typeof e.get("getRowHeight")=="function"}function Rkt(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function bd(e,t,n=!1,r){const{gos:i,environment:o}=e;if(r==null&&(r=o.getDefaultRowHeight()),rye(i)){if(n)return{height:r,estimated:!0};const l={node:t,data:t.data},c=i.getCallback("getRowHeight")(l);if(lhe(c))return c===0&&ut(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&i.get("masterDetail"))return Ikt(i);const a=i.get("rowHeight");return{height:a&&lhe(a)?a:r,estimated:!1}}function Ikt(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return lhe(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function sp(e){const{environment:t,gos:n}=e,r=n.get("rowHeight");if(!r||Yi(r))return t.getDefaultRowHeight();const i=t.refreshRowHeightVariable();return i!==-1?i:(ut(24),t.getDefaultRowHeight())}function lhe(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function wet(e,t,n){const r=t[e.getDomDataKey()];return r?r[n]:void 0}function vz(e,t,n,r){const i=e.getDomDataKey();let o=t[i];Yi(o)&&(o={},t[i]=o),o[n]=r}function bl(e){const{gos:t,eGridDiv:n}=e;let r=null;const i=t.get("getDocument");return i&&Ut(i)?r=i():n&&(r=n.ownerDocument),r&&Ut(r)?r:document}function Aet(e){return bl(e).defaultView||window}function bz(e){return e.eGridDiv.getRootNode()}function $i(e){return bz(e).activeElement}function OK(e){let t=null,n=null;try{t=bl(e).fullscreenElement}catch{}finally{t||(t=bz(e));const r=t.querySelector("body");r?n=r:t instanceof ShadowRoot?n=t:t instanceof Document?n=t?.documentElement:n=t}return n}function Pkt(e){return OK(e)?.clientWidth??(window.innerHeight||-1)}function Dkt(e){return OK(e)?.clientHeight??(window.innerHeight||-1)}function che(e,t,n){const i=e.getBoundingClientRect().height,o=Pkt(n)-2,a=Dkt(n)-2;if(!e.offsetParent)return;const l=cet(e.offsetParent),{clientY:c,clientX:u}=t;let d=c-l.top-i/2,p=u-l.left-10;const h=bl(n),g=h.defaultView||window,m=g.pageYOffset||h.documentElement.scrollTop,b=g.pageXOffset||h.documentElement.scrollLeft;o>0&&p+e.clientWidth>o+b&&(p=o+b-e.clientWidth),p<0&&(p=0),a>0&&d+e.clientHeight>a+m&&(d=a+m-e.clientHeight),d<0&&(d=0),e.style.left=`${p}px`,e.style.top=`${d}px`}function $x(e){const t=$i(e);return t===null||t===bl(e).body}function oI(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function zK(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Uu(e,"print"))}function Yg(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function pW(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function iye(e){return e.get("grandTotalRow")}function eP(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function oye(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function aye(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function sye(e,t,n){return!!t.group&&!t.footer&&aye(e,n)}function qy(e){const t=e.getCallback("getRowId");return t===void 0?t:n=>{let r=t(n);return typeof r!="string"&&(AK(()=>ut(25,{id:r}),"getRowIdString"),r=String(r)),r}}function kkt(e,t){const n=e.get("groupHideParentOfSingleChild");return!!(n===!0||n==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function Oet(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function zet(e,t){const n=e.get("suppressGroupChangesColumnVisibility");if(n===!0||t&&n==="suppressHideOnGroup"||!t&&n==="suppressShowOnUngroup")return!1;const r=e.get("suppressRowGroupHidesColumns");if(t&&r===!0)return!1;const i=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&i===!0)}function LO(e){return e?.checkboxes??!0}function KG(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function hW(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function Qne(e){return e?.hideDisabledCheckboxes??!1}function lye(e){return typeof e.get("rowSelection")!="string"}function Lkt(e){return e.get("cellSelection")!==void 0}function jH(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t?.suppressMultiRanges??!1:!1:e.get("suppressMultiRangeSelection")}function r1(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function Zne(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"&&t.handle?.mode==="fill"?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function Tet(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const n=e.get("suppressRowClickSelection"),r=e.get("suppressRowDeselection");return n&&r?!1:n?"enableDeselection":r?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function _kt(e){const t=Tet(e);return t===!0||t==="enableSelection"}function Nkt(e){const t=Tet(e);return t===!0||t==="enableDeselection"}function uhe(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function tP(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function By(e){return tP(e)==="multiRow"}function Fkt(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function z$(e){const t=e.get("rowSelection");if(typeof t=="string"){const n=e.get("groupSelectsChildren"),r=e.get("groupSelectsFiltered");return n&&r?"filteredDescendants":n?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function Eet(e,t=!0){const n=e.get("rowSelection");return typeof n!="object"?t?"all":void 0:n.mode==="multiRow"?n.selectAll:"all"}function yz(e){const t=z$(e);return t==="descendants"||t==="filteredDescendants"}function CEe(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function Jne(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Gu(e){return e.get("columnMenu")==="legacy"}function Ret(e){return!Gu(e)}function Iet(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function Wkt(e,t,n){typeof e!="object"&&(e={});const r={...e};return n.forEach(i=>{const o=t[i];typeof o<"u"&&(r[i]=o)}),r}function qkt(e,t){if(!e)return;const n={};let r=!1;if(Object.keys(e).forEach(a=>{n[a]=e[a],r=!0}),!r)return;const i={type:"gridOptionsChanged",options:n};t.dispatchEvent(i);const o={type:"componentStateChanged",...n};t.dispatchEvent(o)}function Gn(e,t){return e.addGridCommonParams(t)}function Pet(e){return e.get("treeData")?e.get("treeDataParentIdField")?"treeSelfRef":e.get("treeDataChildrenField")?"treeNested":"treePath":"group"}var Det="__ag_Grid_Stop_Propagation",Bkt=["touchstart","touchend","touchmove","touchcancel","scroll"],jkt=["wheel"],ere={};function Cl(e){e[Det]=!0}function rh(e){return e[Det]===!0}var ket=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n=>{if(typeof ere[n]=="boolean")return ere[n];const r=document.createElement(e[n]||"div");return n="on"+n,ere[n]=n in r}})();function Let(e,t,n){let r=t;for(;r;){const i=wet(e,r,n);if(i)return i;r=r.parentElement}return null}function dhe(e,t){return!t||!e?!1:Vkt(t).indexOf(e)>=0}function Hkt(e){const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function Vkt(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():Hkt(t)}function Gkt(e,t,n,r){const i=_et(n);let o;i!=null&&(o={passive:i}),e&&e.addEventListener&&e.addEventListener(t,n,r,o)}var _et=e=>{const t=Bkt.includes(e),n=jkt.includes(e);if(t)return!0;if(n)return!1},dt=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,n){this.localEventService||(this.localEventService=new Wy),this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService?.removeEventListener(e,t,n)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const n=[];for(const r of Object.keys(t)){const i=t[r];i&&n.push(this._setupListener(e,r,i))}return n}_setupListener(e,t,n){if(this.destroyed)return()=>null;let r;return $kt(e)?(e.__addEventListener(t,n),r=()=>(e.__removeEventListener(t,n),null)):(e instanceof HTMLElement?Gkt(this.beans.frameworkOverrides,e,t,n):e.addEventListener(t,n),r=()=>(e.removeEventListener(t,n),null)),this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}setupGridOptionListener(e,t){const{gos:n}=this;n.addPropertyEventListener(e,t);const r=()=>(n.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const n=e.join("-")+this.propertyListenerId++,r=i=>{if(i.changeSet){if(i.changeSet&&i.changeSet.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=i.changeSet.id}const o={type:"gridPropertyChanged",changeSet:i.changeSet,source:i.source};t(o)};e.forEach(i=>this.setupGridOptionListener(i,r))}getLocaleTextFunc(){return $2e(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.stubContext).createBean(e,n)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function $kt(e){return e.__addEventListener!==void 0}var Net=new Set(["__proto__","constructor","prototype"]);function Ukt(e,t){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)t(n.toString(),e[n]);return}for(const n of Object.keys(e))t(n,e[n])}}function eu(e,t,n=!0,r=!1){Ut(t)&&Ukt(t,(i,o)=>{if(Net.has(i))return;let a=e[i];a!==o&&(r&&a==null&&o!=null&&typeof o=="object"&&o.constructor===Object&&(a={},e[i]=a),xEe(o)&&xEe(a)&&!Array.isArray(a)?eu(a,o,n,r):(n||o!==void 0)&&(e[i]=o))})}function kN(e,t,n){if(!t||!e)return;if(!n)return e[t];const r=t.split(".");let i=e;for(let o=0;o<r.length;o++){if(i==null)return;i=i[r[o]]}return i}function xEe(e){return typeof e=="object"&&e!==null}var Xkt=/[&<>"']/g,Ykt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Df(e){return e?.toString().toString()??null}function sm(e){return Df(e)?.replace(Xkt,t=>Ykt[t])??null}var Kkt={resizable:!0,sortable:!0},Qkt=0;function Fet(){return Qkt++}function vm(e){return e instanceof g3}var g3=class extends dt{constructor(e,t,n,r){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.isColumn=!0,this.instanceId=Fet(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new Wy,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=sm(n)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:n,colFlex:r}}=this;t?.initCol(this);const i=e.hide;i!==void 0?this.visible=!i:this.visible=!e.initialHide,n?.initCol(this),r?.initCol(this)}setColDef(e,t,n){const r=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),r&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",n)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:n}}=this,r=e.get("suppressFieldDotNotation");this.fieldContainsDots=Ut(t)&&t.indexOf(".")>=0&&!r,this.tooltipFieldContainsDots=Ut(n)&&n.indexOf(".")>=0&&!r}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const n=e.width,r=e.initialWidth;return n!=null?t=n:r!=null?t=r:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const n=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,n)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,n)}createColumnFunctionCallbackParams(e){return Gn(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable(this,e)??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??Kkt[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const n=this.createColumnFunctionCallbackParams(e);return t(n)}return!1}createColumnEvent(e,t){return Gn(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Yi(this.sort)}isSorting(){return Ut(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return ut(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const n=e===!0;this.visible!==n&&(this.visible=n,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return Gn(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Yi(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(Yi(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,n){const r=this.createColumnEvent(e,t);n&&eu(r,n),this.colEventSvc.dispatchEvent(r)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Es(e){return e instanceof aI}var aI=class extends dt{constructor(e,t,n,r){super(),this.colGroupDef=e,this.groupId=t,this.padding=n,this.level=r,this.isColumn=!1,this.expandable=!1,this.instanceId=Fet(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)vm(t)?e(t):Es(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){this.children&&this.children.forEach(t=>{vm(t)?e.push(t):Es(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.__addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.__removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,n=!1;const r=this.findChildrenRemovingPadding();for(let o=0,a=r.length;o<a;o++){const s=r[o];if(!s.isVisible())continue;const l=s.getColumnGroupShow();l==="open"?(e=!0,n=!0):l==="closed"?(t=!0,n=!0):(e=!0,t=!0)}const i=e&&t&&n;this.expandable!==i&&(this.expandable=i,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=n=>{n.forEach(r=>{Es(r)&&r.isPadding()?t(r.children):e.push(r)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},Zkt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function phe(e,t,n){const r={},i=e.gos;return Object.assign(r,i.get("defaultColGroupDef")),Object.assign(r,t),i.validateColDef(r,n),r}var Jkt=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=ap(e);let n=0;for(;;){let r=e??t;if(r?n!==0&&(r+="_"+n):r=n,!this.existingKeys[r]){const i=String(r);return e&&n>0&&ut(273,{providedId:e,usedId:i}),this.existingKeys[i]=!0,i}n++}}},my=Object.freeze([]);function zr(e){if(e?.length)return e[e.length-1]}function Md(e,t,n){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((r,i)=>n?n(r,t[i]):t[i]===r)}function HH(e,t){if(e)for(const n of e)t(n)}function Ou(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function wEe(e,t,n){for(let r=0;r<t.length;r++)Ou(e,t[r]);for(let r=t.length-1;r>=0;r--)e.splice(n,0,t[r])}function Wet(e){return[].concat.apply([],e)}var jy="ag-Grid-AutoColumn",qet="ag-Grid-SelectionColumn",cye="ag-Grid-RowNumbersColumn";function uye(e){const t=[],n=r=>{for(let i=0;i<r.length;i++){const o=r[i];vm(o)?t.push(o):Es(o)&&n(o.getChildren())}};return n(e),t}function ay(e){return e.reduce((t,n)=>t+n.getActualWidth(),0)}function Tb(e,t,n){const r={};if(!t)return;lb(null,t,o=>{r[o.getInstanceId()]=o}),n&&lb(null,n,o=>{r[o.getInstanceId()]=null});const i=Object.values(r).filter(o=>o!=null);e.context.destroyBeans(i)}function TK(e){return e.getId().startsWith(jy)}function m3(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(qet)??!1}function p0(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(cye)??!1}function T$(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function dye(e,t){return Md(e,t,(n,r)=>n.getColId()===r.getColId())}function pye(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function Sx(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function hye(e,t){const n=e===t,r=e.getColDef()===t,i=e.getColId()==t;return n||r||i}var eLt=(e,t)=>(n,r)=>{const i={value1:void 0,value2:void 0};let o=!1;return e&&(e[n]!==void 0&&(i.value1=e[n],o=!0),Ut(r)&&e[r]!==void 0&&(i.value2=e[r],o=!0)),!o&&t&&(t[n]!==void 0&&(i.value1=t[n]),Ut(r)&&t[r]!==void 0&&(i.value2=t[r])),i};function tLt(e,t=null,n,r,i){const{existingCols:o,existingGroups:a}=jet(r),s=new Map(o.map(b=>[b.getId(),b])),l=new Map(a.map(b=>[b.getId(),b]));let c=0;const u=(b,y)=>{if(c=Math.max(c,y),$et(b)){if(!e.colGroupSvc)return null;const x=b.groupId,w=l.get(x),S=phe(e,b,x),A=new aI(S,x,!1,y);return e.context.createBean(A),w&&A.setExpanded(w.isExpanded()),A.setChildren(b.children.map(z=>u(z,y+1))),A}const M=b.colId;let C=s.get(M);if(C){const x=nP(e,b,C.getColId());C.setColDef(x,b,i),Get(e,C,x,i)}else{const x=nP(e,b,M);C=new g3(x,b,M,n),e.context.createBean(C)}return e.dataTypeSvc?.addColumnListeners(C),C},d=t?.map(b=>u(b,0))??[];let p=0;const h={getUniqueKey:(b,y)=>String(++p)},g=e.colGroupSvc?e.colGroupSvc.balanceColumnTree(d,0,c,h):d;return lb(null,g,(b,y)=>{Es(b)&&b.setupExpandable(),b.originalParent=y}),{columnTree:g,treeDepth:c}}function Bet(e,t=null,n,r,i){const o=new Jkt,{existingCols:a,existingGroups:s,existingColKeys:l}=jet(r);o.addExistingKeys(l);const c=Het(e,t,0,n,a,o,s,i),{colGroupSvc:u}=e,d=u?.findMaxDepth(c,0)??0,p=u?u.balanceColumnTree(c,0,d,o):c;return lb(null,p,(g,m)=>{Es(g)&&g.setupExpandable(),g.originalParent=m}),{columnTree:p,treeDepth:d}}function jet(e){const t=[],n=[],r=[];return e&&lb(null,e,i=>{if(Es(i)){const o=i;n.push(o)}else{const o=i;r.push(o.getId()),t.push(o)}}),{existingCols:t,existingGroups:n,existingColKeys:r}}function Het(e,t,n,r,i,o,a,s){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let u=0;u<c.length;u++){const d=t[u];l&&$et(d)?c[u]=l.createProvidedColumnGroup(r,d,n,i,o,a,s):c[u]=nLt(e,r,d,i,o,s)}return c}function nLt(e,t,n,r,i,o){const a=rLt(n,r);a&&r?.splice(a.idx,1);let s=a?.column;if(s){const l=nP(e,n,s.getColId());s.setColDef(l,n,o),Get(e,s,l,o)}else{const l=i.getUniqueKey(n.colId,n.field),c=nP(e,n,l);s=new g3(c,n,l,t),e.context.createBean(s)}return e.dataTypeSvc?.addColumnListeners(s),s}function Vet(e,t,n,r,i,o,a,s){const{sortSvc:l,pinnedCols:c,colFlex:u}=e;n!==void 0&&t.setVisible(!n,s),l&&(l.updateColSort(t,r,s),i!==void 0&&l.setColSortIndex(t,i)),o!==void 0&&c?.setColPinned(t,o),a!==void 0&&u?.setColFlex(t,a)}function Get(e,t,n,r){Vet(e,t,n.hide,n.sort,n.sortIndex,n.pinned,n.flex,r);const i=t.getFlex();if(!(i!=null&&i>0))if(n.width!=null)t.setActualWidth(n.width,r);else{const o=t.getActualWidth();t.setActualWidth(o,r)}}function rLt(e,t){if(t)for(let n=0;n<t.length;n++){const r=t[n].getUserProvidedColDef();if(!r)continue;if(e.colId!=null){if(t[n].getId()===e.colId)return{idx:n,column:t[n]};continue}if(e.field!=null){if(r.field===e.field)return{idx:n,column:t[n]};continue}if(r===e)return{idx:n,column:t[n]}}}function nP(e,t,n,r){const{gos:i,dataTypeSvc:o}=e,a={},s=i.get("defaultColDef");eu(a,s,!1,!0);const l=iLt(e,a,t,n);l&&oLt(e,l,a),eu(a,t,!1,!0);const c=i.get("autoGroupColumnDef"),u=Yg(i);return t.rowGroup&&c&&u&&eu(a,{sort:c.sort,initialSort:c.initialSort},!1,!0),o?.validateColDef(a),i.validateColDef(a,n,r),a}function iLt(e,t,n,r){const i=e.dataTypeSvc?.updateColDefAndGetColumnType(t,n,r),o=n.type??i??t.type;return t.type=o,o?T$(o):void 0}function oLt(e,t,n){if(!t.length)return;const r=Object.assign({},Zkt),i=e.gos.get("columnTypes")||{};for(const o of Object.keys(i)){const a=i[o];o in r?ut(34,{key:o}):(a.type&&ut(35),r[o]=a)}t.forEach(o=>{const a=r[o.trim()];a?eu(n,a,!1,!0):ut(36,{t:o})})}function $et(e){return e.children!==void 0}function lb(e,t,n){if(t)for(let r=0;r<t.length;r++){const i=t[r];Es(i)&&lb(i,i.getChildren(),n),n(i,e)}}function Uet(e,t){const n=[],r=[],i=[];return e.forEach(a=>{const s=a.getColDef().lockPosition;s==="right"?i.push(a):s==="left"||s===!0?n.push(a):r.push(a)}),t.get("enableRtl")?[...i,...r,...n]:[...n,...r,...i]}function Xet(e,t){let n=!0;return lb(null,t,r=>{if(!Es(r))return;const i=r,o=i.getColGroupDef();if(!(o&&o.marryChildren))return;const s=[];i.getLeafColumns().forEach(p=>{const h=e.indexOf(p);s.push(h)});const l=Math.max.apply(Math,s),c=Math.min.apply(Math,s),u=l-c,d=i.getLeafColumns().length-1;u>d&&(n=!1)}),n}function Yet(e,t){if(!e||e.length==0)return;const n=t(e[0]);for(let r=1;r<e.length;r++)if(n!==t(e[r]))return;return n}function Ket(e,t,n){if(!t.length)return;const r=t.length===1?t[0]:null,i=Yet(t,o=>o.getPinned());e.dispatchEvent({type:"columnPinned",pinned:i??null,columns:t,column:r,source:n})}function aLt(e,t,n){if(!t.length)return;const r=t.length===1?t[0]:null,i=Yet(t,o=>o.isVisible());e.dispatchEvent({type:"columnVisible",visible:i,columns:t,column:r,source:n})}function Qet(e,t,n,r){e.dispatchEvent({type:t,columns:n,column:n&&n.length==1?n[0]:null,source:r})}function rP(e,t,n,r,i=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:i,finished:n,source:r})}function m0(e,t,n){const{colModel:r,rowGroupColsSvc:i,pivotColsSvc:o,autoColSvc:a,selectionColSvc:s,colAnimation:l,visibleCols:c,pivotResultCols:u,environment:d,valueColsSvc:p,eventSvc:h,gos:g}=e,m=r.getColDefCols()??[],b=s?.getColumns();if(!m?.length&&!b?.length)return!1;if(t?.state&&!t.state.forEach)return ut(32),!1;const y=(w,S,A,z,O)=>{if(!w)return;const T=eLt(S,t.defaultState),R=T("flex").value1;if(Vet(e,w,T("hide").value1,T("sort").value1,T("sortIndex").value1,T("pinned").value1,R,n),R==null){const P=T("width").value1;if(P!=null){const F=w.getColDef().minWidth??d.getDefaultColumnMinWidth();F!=null&&P>=F&&w.setActualWidth(P,n)}}O||!w.isPrimary()||(p?.syncColumnWithState(w,n,T),i?.syncColumnWithState(w,n,T,A),o?.syncColumnWithState(w,n,T,z))},M=(w,S,A)=>{const z=Jet(e,n),O=S.slice(),T={},R={},P=[],F=[],N=[];let L=0;const W=i?.columns.slice()??[],j=o?.columns.slice()??[];w.forEach(q=>{const $=q.colId;if($.startsWith(jy)){P.push(q),N.push(q);return}if(m3($)){F.push(q),N.push(q);return}const X=A($);X?(y(X,q,T,R,!1),Ou(O,X)):(N.push(q),L+=1)});const V=q=>y(q,null,T,R,!1);O.forEach(V),i?.sortColumns(SEe.bind(i,T,W)),o?.sortColumns(SEe.bind(o,R,j)),r.refreshCols(!1);const G=(q,$,U=[])=>{$.forEach(X=>{const Q=q(X.colId);Ou(U,Q),y(Q,X,null,null,!0)}),U.forEach(V)};return G(q=>a?.getColumn(q)??null,P,a?.getColumns()?.slice()),G(q=>s?.getColumn(q)??null,F,s?.getColumns()?.slice()),sLt(t,r,g),c.refresh(n),h.dispatchEvent({type:"columnEverythingChanged",source:n}),z(),{unmatchedAndAutoStates:N,unmatchedCount:L}};l?.start();let{unmatchedAndAutoStates:C,unmatchedCount:x}=M(t.state||[],m,w=>r.getColDefCol(w));if(C.length>0||Ut(t.defaultState)){const w=u?.getPivotResultCols()?.list??[];x=M(C,w,S=>u?.getPivotResultCol(S)??null).unmatchedCount}return l?.finish(),x===0}function Zet(e,t){const{colModel:n,autoColSvc:r,selectionColSvc:i}=e,o=n.getColDefCols();if(!o?.length)return;const a=n.getColDefColTree(),s=uye(a),l=[];let c=1e3,u=1e3;const d=b=>{const y=ett(b);Yi(y.rowGroupIndex)&&y.rowGroup&&(y.rowGroupIndex=c++),Yi(y.pivotIndex)&&y.pivot&&(y.pivotIndex=u++),l.push(y)};r?.getColumns()?.forEach(d),i?.getColumns()?.forEach(d),s?.forEach(d),m0(e,{state:l},t);const p=r?.getColumns()??[],m=[...i?.getColumns()??[],...p,...o].map(b=>({colId:b.colId}));m0(e,{state:m,applyOrder:!0},t)}function Jet(e,t){const{rowGroupColsSvc:n,pivotColsSvc:r,valueColsSvc:i,colModel:o,sortSvc:a,eventSvc:s}=e,l={rowGroupColumns:n?.columns.slice()??[],pivotColumns:r?.columns.slice()??[],valueColumns:i?.columns.slice()??[]},c=E$(e),u={};return c.forEach(d=>{u[d.colId]=d}),()=>{const d=(S,A,z,O)=>{const T=A.map(O),R=z.map(O);if(Md(T,R))return;const F=new Set(A);z.forEach(L=>{F.delete(L)||F.add(L)});const N=[...F];s.dispatchEvent({type:S,columns:N,column:N.length===1?N[0]:null,source:t})},p=S=>{const A=[];return o.forAllCols(z=>{const O=u[z.getColId()];O&&S(O,z)&&A.push(z)}),A},h=S=>S.getColId();d("columnRowGroupChanged",l.rowGroupColumns,n?.columns??[],h),d("columnPivotChanged",l.pivotColumns,r?.columns??[],h);const m=p((S,A)=>{const z=S.aggFunc!=null,O=z!=A.isValueActive(),T=z&&S.aggFunc!=A.getAggFunc();return O||T});m.length>0&&Qet(s,"columnValueChanged",m,t),rP(s,p((S,A)=>S.width!=A.getActualWidth()),!0,t),Ket(s,p((S,A)=>S.pinned!=A.getPinned()),t),aLt(s,p((S,A)=>S.hide==A.isVisible()),t);const x=p((S,A)=>S.sort!=A.getSort()||S.sortIndex!=A.getSortIndex());x.length>0&&a?.dispatchSortChangedEvents(t,x);const w=E$(e);cLt(c,w,t,o,s)}}function E$(e){const{colModel:t,rowGroupColsSvc:n,pivotColsSvc:r}=e,i=t.getColDefCols();if(Yi(i)||!t.isAlive())return[];const o=n?.columns,a=r?.columns,s=[],l=u=>{const d=u.isRowGroupActive()&&o?o.indexOf(u):null,p=u.isPivotActive()&&a?a.indexOf(u):null,h=u.isValueActive()?u.getAggFunc():null,g=u.getSort()!=null?u.getSort():null,m=u.getSortIndex()!=null?u.getSortIndex():null;s.push({colId:u.getColId(),width:u.getActualWidth(),hide:!u.isVisible(),pinned:u.getPinned(),sort:g,sortIndex:m,aggFunc:h,rowGroup:u.isRowGroupActive(),rowGroupIndex:d,pivot:u.isPivotActive(),pivotIndex:p,flex:u.getFlex()??null})};t.forAllCols(u=>l(u));const c=new Map(t.getCols().map((u,d)=>[u.getColId(),d]));return s.sort((u,d)=>{const p=c.has(u.colId)?c.get(u.colId):-1,h=c.has(d.colId)?c.get(d.colId):-1;return p-h}),s}function ett(e){const t=(g,m)=>g??m??null,n=e.getColDef(),r=t(n.sort,n.initialSort),i=t(n.sortIndex,n.initialSortIndex),o=t(n.hide,n.initialHide),a=t(n.pinned,n.initialPinned),s=t(n.width,n.initialWidth),l=t(n.flex,n.initialFlex);let c=t(n.rowGroupIndex,n.initialRowGroupIndex),u=t(n.rowGroup,n.initialRowGroup);c==null&&(u==null||u==!1)&&(c=null,u=null);let d=t(n.pivotIndex,n.initialPivotIndex),p=t(n.pivot,n.initialPivot);d==null&&(p==null||p==!1)&&(d=null,p=null);const h=t(n.aggFunc,n.initialAggFunc);return{colId:e.getColId(),sort:r,sortIndex:i,hide:o,pinned:a,width:s,flex:l,rowGroup:u,rowGroupIndex:c,pivot:p,pivotIndex:d,aggFunc:h}}function sLt(e,t,n){if(!e.applyOrder||!e.state)return;const r=[];e.state.forEach(i=>{i.colId!=null&&r.push(i.colId)}),lLt(t.cols,r,t,n)}function lLt(e,t,n,r){if(e==null)return;let i=[];const o={};t.forEach(s=>{if(o[s])return;const l=e.map[s];l&&(i.push(l),o[s]=!0)});let a=0;if(e.list.forEach(s=>{const l=s.getColId();if(o[l]!=null)return;l.startsWith(jy)?i.splice(a++,0,s):i.push(s)}),i=Uet(i,r),!Xet(i,n.getColTree())){ut(39);return}e.list=i}function cLt(e,t,n,r,i){const o={};t.forEach(u=>o[u.colId]=u);const a={};e.forEach(u=>{o[u.colId]&&(a[u.colId]=!0)});const s=e.filter(u=>a[u.colId]),l=t.filter(u=>a[u.colId]),c=[];l.forEach((u,d)=>{const p=s&&s[d];if(p&&p.colId!==u.colId){const h=r.getCol(p.colId);h&&c.push(h)}}),c.length&&i.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:n})}var SEe=(e,t,n,r)=>{const i=e[n.getId()],o=e[r.getId()],a=i!=null,s=o!=null;if(a&&s)return i-o;if(a)return-1;if(s)return 1;const l=t.indexOf(n),c=t.indexOf(r),u=l>=0,d=c>=0;return u&&d?l-c:u?-1:1},uLt=class extends dt{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],e=>this.refreshAll(Sx(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Sx(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:n,colAutosize:r,rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:a,visibleCols:s,colViewport:l,eventSvc:c}=t,u=this.colDefs?Jet(t,e):void 0;n?.expire();const d=this.colDefCols?.list,p=this.colDefCols?.tree,h=Bet(t,this.colDefs,!0,p,e);Tb(t,this.colDefCols?.tree,h.columnTree);const g=h.columnTree,m=h.treeDepth,b=uye(g),y={};b.forEach(M=>y[M.getId()]=M),this.colDefCols={tree:g,treeDepth:m,list:b,map:y},i?.extractCols(e,d),o?.extractCols(e,d),a?.extractCols(e,d),this.ready=!0,this.refreshCols(!0),s.refresh(e),l.checkViewportColumns(),c.dispatchEvent({type:"columnEverythingChanged",source:e}),u&&(this.changeEventsDispatching=!0,u(),this.changeEventsDispatching=!1),c.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&r?.applyAutosizeStrategy()}refreshCols(e){if(!this.colDefCols)return;const t=this.cols?.tree;this.saveColOrder();const{autoColSvc:n,selectionColSvc:r,rowNumbersSvc:i,quickFilter:o,pivotResultCols:a,showRowGroupCols:s,rowAutoHeight:l,visibleCols:c,colViewport:u,eventSvc:d}=this.beans,p=this.selectCols(a,this.colDefCols);this.createColumnsForService([n,r,i],p);const h=Rkt(this.gos,this.showingPivotResult);(!e||h)&&this.restoreColOrder(p),this.positionLockedCols(p),s?.refresh(),o?.refreshCols(),this.setColSpanActive(),l?.setAutoHeightActive(p),c.clear(),u.clear(),!Md(t,this.cols.tree)&&d.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t){for(const n of e)n&&(n.createColumns(t,r=>{this.lastOrder=r(this.lastOrder),this.lastPivotOrder=r(this.lastPivotOrder)}),n.addColumns(t))}selectCols(e,t){const n=e?.getPivotResultCols()??null;this.showingPivotResult=n!=null;const{map:r,list:i,tree:o,treeDepth:a}=n??t;return this.cols={list:i.slice(),map:{...r},tree:o.slice(),treeDepth:a},n&&(n.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const e=this.isPivotMode()&&!this.showingPivotResult,t=this.beans.valueColsSvc?.columns;return this.cols.list.filter(r=>{const i=TK(r);if(e){const o=t?.includes(r);return i||o}else return i||r.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,n){m0(this.beans,{state:e.map(r=>({colId:typeof r=="string"?r:r.getColId(),hide:!t}))},n)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const n=t.filter(d=>e.map[d.getId()]!=null);if(n.length===0)return;if(n.length===e.list.length){e.list=n;return}const r=d=>{const p=d.getOriginalParent();return p?p.getChildren().length>1?!0:r(p):!1};if(!n.some(d=>r(d))){const d=new Set(n);for(const p of e.list)d.has(p)||n.push(p);e.list=n;return}const i=new Map;for(let d=0;d<n.length;d++){const p=n[d];i.set(p,d)}const o=e.list.filter(d=>!i.has(d));if(o.length===0){e.list=n;return}const a=(d,p)=>{const h=p?p.getOriginalParent():d.getOriginalParent();if(!h)return null;let g=null,m=null;for(const b of h.getChildren())if(!(b===p||b===d)){if(b instanceof g3){const y=i.get(b);if(y==null)continue;(g==null||g<y)&&(g=y,m=b);continue}b.forEachLeafColumn(y=>{const M=i.get(y);M!=null&&(g==null||g<M)&&(g=M,m=y)})}return m??a(d,h)},s=[],l=new Map;for(const d of o){const p=a(d,null);if(p==null){s.push(d);continue}const h=l.get(p);h===void 0?l.set(p,d):Array.isArray(h)?h.push(d):l.set(p,[h,d])}const c=new Array(e.list.length);let u=c.length-1;for(let d=s.length-1;d>=0;d--)c[u--]=s[d];for(let d=n.length-1;d>=0;d--){const p=n[d],h=l.get(p);if(h)if(Array.isArray(h))for(let g=h.length-1;g>=0;g--){const m=h[g];c[u--]=m}else c[u--]=h;c[u--]=p}e.list=c}positionLockedCols(e){e.list=Uet(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(){return this.colDefCols?this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[]):void 0}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1);const{visibleCols:n,eventSvc:r}=this.beans;n.refresh(t),r.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=Sx(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Tb(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:n,selectionColSvc:r}=this.beans;HH(this.colDefCols?.list,e),HH(n?.columns?.list,e),HH(r?.columns?.list,e),HH(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(t==null)return null;const{map:n,list:r}=t;if(typeof e=="string"&&n[e])return n[e];for(let i=0;i<r.length;i++)if(hye(r[i],e))return r[i];return this.beans.autoColSvc?.getColumn(e)??this.beans.selectionColSvc?.getColumn(e)??null}},fye=class extends dt{constructor(){super(...arguments),this.dispatchColumnChangedEvent=Qet,this.columns=[],this.columnIndexMap={},this.updateIndexMap=()=>{this.columnIndexMap={},this.columns.forEach((e,t)=>this.columnIndexMap[e.getId()]=t)}}wireBeans(e){this.colModel=e.colModel,this.aggFuncSvc=e.aggFuncSvc,this.visibleCols=e.visibleCols}sortColumns(e){this.columns.sort(e),this.updateIndexMap()}setColumns(e,t){this.setColList(e,this.columns,this.eventName,!0,!0,this.columnProcessors.set,t)}addColumns(e,t){this.updateColList(e,this.columns,!0,!0,this.columnProcessors.add,this.eventName,t)}removeColumns(e,t){this.updateColList(e,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,t)}getColumnIndex(e){return this.columnIndexMap[e]}setColList(e=[],t,n,r,i,o,a){const s=this.colModel.getCols();if(!s||s.length===0)return;const l=new Map;t.forEach((u,d)=>l.set(u,d)),t.length=0,Ut(e)&&e.forEach(u=>{const d=this.colModel.getColDefCol(u);d&&t.push(d)}),t.forEach((u,d)=>{const p=l.get(u);if(p===void 0){l.set(u,0);return}r&&p!==d||l.delete(u)}),this.updateIndexMap(),(this.colModel.getColDefCols()||[]).forEach(u=>{const d=t.indexOf(u)>=0;o(u,d,a)}),i&&this.colModel.refreshCols(!1),this.visibleCols.refresh(a),this.dispatchColumnChangedEvent(this.eventSvc,n,[...l.keys()],a)}updateColList(e=[],t,n,r,i,o,a){if(!e||e.length===0)return;let s=!1;const l=new Set;if(e.forEach(u=>{if(!u)return;const d=this.colModel.getColDefCol(u);if(d){if(l.add(d),n){if(t.indexOf(d)>=0)return;t.push(d)}else{const p=t.indexOf(d);if(p<0)return;for(let h=p+1;h<t.length;h++)l.add(t[h]);Ou(t,d)}i(d,n,a),s=!0}}),!s)return;this.updateIndexMap(),r&&this.colModel.refreshCols(!1),this.visibleCols.refresh(a);const c=Array.from(l);this.eventSvc.dispatchEvent({type:o,columns:c,column:c.length===1?c[0]:null,source:a})}extractCols(e,t=[]){const n=this.columns,r=[],i=[],{setFlagFunc:o,getIndexFunc:a,getInitialIndexFunc:s,getValueFunc:l,getInitialValueFunc:c}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(h=>{const g=t.indexOf(h)<0,m=h.getColDef(),b=l(m),y=c(m),M=a(m),C=s(m);let x;b!==void 0?x=b:M!==void 0?M===null?x=!1:x=M>=0:g?y!==void 0?x=y:C!==void 0?x=C!=null&&C>=0:x=!1:x=n.indexOf(h)>=0,x&&((g?M!=null||C!=null:M!=null)?r.push(h):i.push(h))});const d=h=>{const g=a(h.getColDef()),m=s(h.getColDef());return g??m};r.sort((h,g)=>{const m=d(h),b=d(g);return m===b?0:m<b?-1:1});const p=[].concat(r);return n.forEach(h=>{i.indexOf(h)>=0&&p.push(h)}),i.forEach(h=>{p.indexOf(h)<0&&p.push(h)}),n.forEach(h=>{p.indexOf(h)<0&&o(h,!1,e)}),p.forEach(h=>{n.indexOf(h)<0&&o(h,!0,e)}),this.columns=p,this.updateIndexMap(),this.columns}restoreColumnOrder(e,t){const n=this.columns,r=this.colModel.getColDefCols();if(!n.length||!r)return e;const i=Object.keys(t),o=new Set(i),a=new Set(i),s=new Set(n.map(C=>{const x=C.getColId();return a.delete(x),x}).concat(i)),l=[],c={};let u=0;for(let C=0;C<r.length;C++){const x=r[C].getColId();s.has(x)&&(l.push(x),c[x]=u++)}let d=1e3,p=!1,h=0;const g=this.columnOrdering.enableProp,m=this.columnOrdering.initialEnableProp,b=this.columnOrdering.indexProp,y=this.columnOrdering.initialIndexProp,M=C=>{const x=c[C];for(let w=h;w<x;w++){const S=l[w];a.has(S)&&(t[S][b]=d++,a.delete(S))}h=x};return n.forEach(C=>{const x=C.getColId();if(o.has(x))M(x),t[x][b]=d++;else{const w=C.getColDef();(w[b]===null||w[b]===void 0&&w[y]==null)&&(p||(w[g]||w[g]===void 0&&w[m]?M(x):(a.forEach(z=>{t[z][b]=d+c[z]}),d+=l.length,p=!0)),e[x]||(e[x]={colId:x}),e[x][b]=d++)}}),e}},ttt=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let n;return typeof t!="number"?n=0:n=t+1,this.existingIds[e]=n,n}},fD=class extends dt{};function v6(e,t,n){return n&&e.addDestroyFunc(()=>t.destroyBean(n)),n??e}var gD=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.indexOf(" ")>=0){const r=(e||"").split(" ");if(r.length>1){r.forEach(i=>this.toggleCss(i,t));return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},dLt=0,at=null,Gt=class extends dt{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=dLt++,this.cssManager=new gD(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(n=>[n.selector,n])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;this.css?.forEach(t=>this.beans.environment.addGlobalCSS(t,e))}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(het):null}applyElementsToComponent(e,t,n,r=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const i=this[t];if(i===at)this[t]=r??e;else{const o=n&&n[t];if(!this.suppressDataRefValidation&&!o)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${i}`)}}}createChildComponentsFromTags(e,t){const n=[];for(const r of e.childNodes??[])n.push(r);n.forEach(r=>{if(!(r instanceof HTMLElement))return;const i=this.createComponentFromElement(r,o=>{const a=o.getGui();if(a)for(const s of r.attributes??[])a.setAttribute(s.name,s.value)},t);if(i){if(i.addItems&&r.children.length){this.createChildComponentsFromTags(r,t);const o=Array.prototype.slice.call(r.children);i.addItems(o)}this.swapComponentForNode(i,e,r)}else r.childNodes&&this.createChildComponentsFromTags(r,t)})}createComponentFromElement(e,t,n){const r=e.nodeName,i=this.getDataRefAttribute(e),o=r.indexOf("AG-")===0,a=o?this.componentSelectors.get(r):null;let s=null;if(a){const l=n&&i?n[i]:void 0;s=new a.component(l),s.setParentComponent(this),this.createBean(s,null,t)}else if(o)throw new Error(`selector: ${r}`);return this.applyElementsToComponent(e,i,n,s),s}swapComponentForNode(e,t,n){const r=e.getGui();t.replaceChild(r,n),t.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(n=>n.setAttribute("tabindex",t.toString()))}setTemplate(e,t,n){let r;typeof e=="string"||e==null?r=eye(e):r=Nr(e),this.setTemplateFromElement(r,t,n)}setTemplateFromElement(e,t,n,r=!1){if(this.eGui=e,this.suppressDataRefValidation=r,t)for(let i=0;i<t.length;i++){const o=t[i];this.componentSelectors.set(o.selector,o)}this.wireTemplate(e,n)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let n=t;return e==null?null:(n||(n=this.eGui),wK(e)?{element:e,parent:n}:{element:e.getGui(),parent:n})}prependChild(e,t){const{element:n,parent:r}=this.getContainerAndElement(e,t)||{};!n||!r||r.insertAdjacentElement("afterbegin",n)}appendChild(e,t){const{element:n,parent:r}=this.getContainerAndElement(e,t)||{};!n||!r||r.appendChild(n)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:n}=t;set(this.eGui,e,{skipAriaHidden:n})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:n}=t;Nn(this.eGui,e,{skipAriaHidden:n});const r={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(r)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,n){this.eGui.addEventListener(e,t,n),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}};function pLt(e){return typeof e.then=="function"}var Dr=class $5{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(n=>this.onDone(n),n=>this.onReject(n))}static all(t){return t.length?new $5(n=>{let r=t.length;const i=new Array(r);t.forEach((o,a)=>{o.then(s=>{i[a]=s,r--,r===0&&n(i)})})}):$5.resolve()}static resolve(t=null){return new $5(n=>n(t))}then(t){return new $5(n=>{this.status===1?n(t(this.resolution)):this.waiters.push(r=>n(t(r)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(n=>n(t))}onReject(t){}};function hLt(e){return e?e.prototype&&"getGui"in e.prototype:!1}function ntt(e,t,n,r){const{name:i}=n;let o,a,s,l,c,u;if(t){const d=t,p=d[i+"Selector"],h=p?p(r):null,g=m=>{typeof m=="string"?o=m:m!=null&&m!==!0&&(e.isFrameworkComponent(m)?s=m:a=m)};h?(g(h.component),l=h.params,c=h.popup,u=h.popupPosition):g(d[i])}return{compName:o,jsComp:a,fwComp:s,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:u}}var fLt=class extends dt{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,n,r=!1){return this.getCompDetails(this.gridOptions,e,t,n,r)}getCompDetails(e,t,n,r,i=!1){const{name:o,cellRenderer:a}=t;let{compName:s,jsComp:l,fwComp:c,paramsFromSelector:u,popupFromSelector:d,popupPositionFromSelector:p}=ntt(this.beans.frameworkOverrides,e,t,r),h;const g=M=>{const C=this.registry.getUserComponent(o,M);C&&(l=C.componentFromFramework?void 0:C.component,c=C.componentFromFramework?C.component:void 0,h=C.params)};if(s!=null&&g(s),l==null&&c==null&&n!=null&&g(n),l&&a&&!hLt(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:M}=this.beans;i&&(s!==n||!n)?s?M?.isProvidedUserComp(s)||pi(50,{compName:s}):n?M||pi(260,{...this.gos.getModuleErrorParams(),propName:o,compName:n}):pi(216,{name:o}):n&&!M&&pi(146,{comp:n});return}const m=this.mergeParams(e,t,r,u,h),b=l==null,y=l??c;return{componentFromFramework:b,componentClass:y,params:m,type:t,popupFromSelector:d,popupPositionFromSelector:p,newAgStackInstance:()=>this.newAgStackInstance(y,b,m,t)}}newAgStackInstance(e,t,n,r){const i=!t;let o;i?o=new e:o=this.frameworkCompWrapper.wrap(e,r.mandatoryMethods,r.optionalMethods,r),this.createBean(o);const a=o.init?.(n);return a==null?Dr.resolve(o):a.then(()=>o)}mergeParams(e,t,n,r=null,i){const o={...n,...i},a=e,s=a&&a[t.name+"Params"];if(typeof s=="function"){const l=s(n);eu(o,l)}else typeof s=="object"&&eu(o,s);return eu(o,r),o}},gLt={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},mLt={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},vLt={name:"headerComponent",optionalMethods:["refresh"]},bLt={name:"innerHeaderComponent"},yLt={name:"innerHeaderGroupComponent"},MLt={name:"headerGroupComponent"},CLt={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},xLt={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},wLt={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},SLt={name:"loadingCellRenderer",cellRenderer:!0},ALt={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},OLt={name:"loadingOverlayComponent",optionalMethods:["refresh"]},zLt={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},TLt={name:"tooltipComponent"},gye={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},ELt={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},RLt={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},ILt={name:"loadingCellRenderer",cellRenderer:!0},PLt={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},DLt={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function kLt(e,t){return e.getCompDetailsFromGridOptions(mLt,"agDragAndDropImage",t,!0)}function VH(e,t,n){return e.getCompDetails(t,CLt,void 0,n)}function LLt(e,t,n){return e.getCompDetails(t,vLt,"agColumnHeader",n)}function _Lt(e,t,n){return e.getCompDetails(t,bLt,void 0,n)}function NLt(e,t){const n=t.columnGroup.getColGroupDef();return e.getCompDetails(n,MLt,"agColumnGroupHeader",t)}function FLt(e,t,n){return e.getCompDetails(t,yLt,void 0,n)}function WLt(e,t){return e.getCompDetailsFromGridOptions(RLt,void 0,t,!0)}function qLt(e,t){return e.getCompDetailsFromGridOptions(ILt,"agLoadingCellRenderer",t,!0)}function BLt(e,t){return e.getCompDetailsFromGridOptions(PLt,"agGroupRowRenderer",t,!0)}function jLt(e,t){return e.getCompDetailsFromGridOptions(DLt,"agDetailCellRenderer",t,!0)}function iP(e,t,n){return e.getCompDetails(t,xLt,void 0,n)}function rtt(e,t,n){return e.getCompDetails(t,wLt,void 0,n)}function HLt(e,t,n){return e.getCompDetails(t,SLt,"agSkeletonCellRenderer",n,!0)}function AEe(e,t,n){return e.getCompDetails(t,ALt,"agCellEditor",n,!0)}function itt(e,t,n,r){return e.getCompDetails(t,gye,r,n,!0)}function VLt(e,t,n){return e.getCompDetails(t,gLt,"agDateInput",n,!0)}function GLt(e,t){return e.getCompDetailsFromGridOptions(OLt,"agLoadingOverlay",t,!0)}function $Lt(e,t){return e.getCompDetailsFromGridOptions(zLt,"agNoRowsOverlay",t,!0)}function ULt(e,t){return e.getCompDetails(t.colDef,TLt,"agTooltipComponent",t,!0)}function ott(e,t,n,r){return e.getCompDetails(t,ELt,r,n)}function XLt(e,t){return ntt(e,t,gye)}function YLt(e,t,n){return e.mergeParams(t,gye,n)}function Mz(e){const t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var att=new Set,R$={},_O={},QG,stt=!1,ltt=!1,KLt=!1;function QLt(e){const[t,n]=e.version.split(".")||[],[r,i]=QG.split(".")||[];return t===r&&n===i}function ZLt(e){QG||(QG=e.version);const t=n=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${n} Please update all modules to the same version.`;if(e.version?QLt(e)||rI(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${QG}.`)):rI(t(`'${e.moduleName}' is incompatible.`)),e.validate){const n=e.validate();n.isValid||rI(`${n.message}`)}}function fW(e,t,n=!1){n||(stt=!0),ZLt(e);const r=e.rowModels??["all"];att.add(e);let i;t!==void 0?(ltt=!0,_O[t]===void 0&&(_O[t]={}),i=_O[t]):i=R$,r.forEach(o=>{i[o]===void 0&&(i[o]={}),i[o][e.moduleName]=e}),e.dependsOn&&e.dependsOn.forEach(o=>fW(o,t,n))}function JLt(e){delete _O[e]}function hhe(e,t,n){const r=i=>!!R$[i]?.[e]||!!_O[t]?.[i]?.[e];return r(n)||r("all")}function mye(){return ltt}function e4t(e,t){const n=_O[e]??{};return[...Object.values(R$.all??{}),...Object.values(n.all??{}),...Object.values(R$[t]??{}),...Object.values(n[t]??{})]}function t4t(){return new Set(att)}function ctt(e,t){const n=_O[e]??{};return[...Object.values(n.all??{}),...Object.values(n[t]??{})]}function n4t(){return stt}function r4t(){return KLt}var i4t=class{static register(e){fW(e,void 0)}static registerModules(e){e.forEach(t=>fW(t,void 0))}},o4t=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];e.beanClasses.forEach(t=>{const n=new t;n.beanName?this.beans[n.beanName]=n:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(n)}),e.derivedBeans?.forEach(t=>{const{beanName:n,bean:r}=t(this);this.beans[n]=r,this.createdBeans.push(r)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("null bean");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(n=>{n.preWireBeans?.(this.beans),n.wireBeans?.(this.beans)}),e.forEach(n=>n.preConstruct?.()),t&&e.forEach(t),e.forEach(n=>n.postConstruct?.())}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},a4t=class extends o4t{init(t){this.gridId=t.gridId,this.beans.context=this,this.destroyCallback=t.destroyCallback,super.init(t)}destroy(){super.destroy(),JLt(this.gridId),this.destroyCallback?.()}getGridId(){return this.gridId}},s4t="ag-column-first",l4t="ag-column-last";function vye(e,t,n,r){return Yi(e)?[]:ptt(e.headerClass,e,t,n,r)}function utt(e,t,n,r){return Yi(e)?[]:ptt(e.toolPanelClass,e,t,n,r)}function dtt(e,t,n){e.toggleCss(s4t,n.isColAtEdge(t,"first")),e.toggleCss(l4t,n.isColAtEdge(t,"last"))}function c4t(e,t,n,r){return Gn(t,{colDef:e,column:n,columnGroup:r})}function ptt(e,t,n,r,i){if(Yi(e))return[];let o;if(typeof e=="function"){const a=c4t(t,n,r,i);o=e(a)}else o=e;return typeof o=="string"?[o]:Array.isArray(o)?[...o]:[]}function b6(e){return!!(e.rowPinned&&e.pinnedSibling)}function Vh(e,t,n,r){const i=t==="top";if(!n)return Vh(e,t,i?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),r);if(!r){const l=i?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return Vh(e,t,n,i?e.getPinnedTopRow(l-1):e.getPinnedBottomRow(l-1))}let o=!1,a=!1;const s=[];return e.forEachPinnedRow(t,l=>{if(l===n&&!o){o=!0,s.push(l);return}if(o&&l===r){a=!0,s.push(l);return}o&&!a&&s.push(l)}),s}var Qe={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},fhe=!1,I$=0;function u4t(e){I$>0||(e.addEventListener("keydown",P$),e.addEventListener("mousedown",P$))}function d4t(e){I$>0||(e.removeEventListener("keydown",P$),e.removeEventListener("mousedown",P$))}function P$(e){const t=fhe,n=e.type==="keydown";n&&(e.ctrlKey||e.metaKey||e.altKey)||t!==n&&(fhe=n)}function p4t(e){const t=bl(e);return u4t(t),I$++,()=>{I$--,d4t(t)}}function EK(){return fhe}function htt(e,t,n){t.addManagedElementListeners(n,{keydown:r=>{if(!r.defaultPrevented&&r.key===Qe.TAB){const i=r.shiftKey;Cd(e,n,!1,i)||Eb(e,i)&&r.preventDefault()}}})}function lm(e,t,n=!1){const r=vkt;let i=aet;t&&(i+=", "+t),n&&(i+=', [tabindex="-1"]');const o=Array.prototype.slice.apply(e.querySelectorAll(r)).filter(l=>x0(l)),a=Array.prototype.slice.apply(e.querySelectorAll(i));return a.length?((l,c)=>l.filter(u=>c.indexOf(u)===-1))(o,a):o}function zu(e,t=!1,n=!1,r=!1){const i=lm(e,r?".ag-tab-guard":null,n),o=t?zr(i):i[0];return o?(o.focus({preventScroll:!0}),!0):!1}function Cd(e,t,n,r){const i=lm(t,n?':not([tabindex="-1"])':null),o=$i(e);let a;n?a=i.findIndex(l=>l.contains(o)):a=i.indexOf(o);const s=a+(r?-1:1);return s<0||s>=i.length?null:i[s]}function bye(e,t=5){let n=0;for(;e&&ahe(e)===null&&++n<=t;)e=e.parentElement;return ahe(e)===null?null:e}function ftt(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function NO(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function RK(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function Eb(e,t,n=!1){const r=e.ctrlsSvc.get("gridCtrl");return!n&&r.focusNextInnerContainer(t)?!0:((n||!t&&!r.isDetailGrid())&&r.forceFocusOutOfContainer(t),!1)}function h4t(e,t=!1){return e===Qe.DELETE?!0:!t&&e===Qe.BACKSPACE?ret():!1}var f4t=class extends dt{constructor(e,t,n,r){super(),this.cellCtrl=e,this.rowNode=n,this.rowCtrl=r,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case Qe.ENTER:this.onEnterKeyDown(e);break;case Qe.F2:this.onF2KeyDown(e);break;case Qe.ESCAPE:this.onEscapeKeyDown(e);break;case Qe.TAB:this.onTabKeyDown(e);break;case Qe.BACKSPACE:case Qe.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case Qe.DOWN:case Qe.UP:case Qe.RIGHT:case Qe.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){if(!this.cellCtrl.editing){if(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const n=this.cellCtrl.getFocusedCellPosition();this.beans.navigation?.navigateToNextCell(e,t,n,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:n}=this.beans;if(!t)return;const r=t.extendLatestRangeInDirection(e);r&&n?.ensureCellVisible(r)}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:n,beans:r,rowNode:i}=this,{gos:o,rangeSvc:a,eventSvc:s}=r;if(!n.editing){if(s.dispatchEvent({type:"keyShortcutChangedCellStart"}),h4t(e,o.get("enableCellEditingOnBackspace"))){if(a&&r1(o))a.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(n.isCellEditable()){const{column:l}=n,c=this.beans.valueSvc.getDeleteValue(l,i);i.setDataValue(l,c,"cellClear")}}else r.editSvc?.startRowOrCellEdit(n,e,t);s.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){const{cellCtrl:t,beans:n}=this;if(t.editing||this.rowCtrl.editing)this.beans.editSvc?.stopRowOrCellEdit(t,!1,!1,e.shiftKey);else if(n.gos.get("enterNavigatesVertically")){const r=e.shiftKey?Qe.UP:Qe.DOWN;n.navigation?.navigateToNextCell(null,r,t.cellPosition,!1)}else n.editSvc?.startRowOrCellEdit(t,Qe.ENTER,e),t.editing&&e.preventDefault()}onF2KeyDown(e){const{cellCtrl:t,beans:n}=this;t.editing||n.editSvc?.startRowOrCellEdit(t,Qe.F2,e)}onEscapeKeyDown(e){const{cellCtrl:t,beans:n}=this;t.editing&&n.editSvc?.stopRowOrCellEdit(t,!0)}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.editing)return;const r=e.key;r===Qe.SPACE?this.onSpaceKeyDown(e):this.beans.editSvc?.startRowOrCellEdit(this.cellCtrl,r,e)&&e.preventDefault()}onSpaceKeyDown(e){const{gos:t}=this.beans;!this.cellCtrl.editing&&Kp(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,this.rowNode,"spaceKey"),e.preventDefault()}destroy(){super.destroy()}},g4t=class extends dt{constructor(e,t,n){super(),this.cellCtrl=e,this.column=n,this.beans=t}onMouseEvent(e,t){if(!rh(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:n,gos:r,editSvc:i}=this.beans,o=e.ctrlKey||e.metaKey;n&&o&&n.getCellRangeCount(this.cellCtrl.cellPosition)>1&&n.intersectLastRange(!0);const a=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(a);const s=this.column.getColDef();s.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{s.onCellClicked(a)})},0),(r.get("singleClickEdit")||s.singleClickEdit)&&!r.get("suppressClickEdit")&&!(e.shiftKey&&n?.getCellRanges().length!=0)&&i?.startRowOrCellEdit(this.cellCtrl,void 0,e)}onCellDoubleClicked(e){const{column:t,beans:n,cellCtrl:r}=this,{eventSvc:i,frameworkOverrides:o,gos:a,editSvc:s}=n,l=t.getColDef(),c=r.createEvent(e,"cellDoubleClicked");i.dispatchEvent(c),typeof l.onCellDoubleClicked=="function"&&window.setTimeout(()=>{o.wrapOutgoing(()=>{l.onCellDoubleClicked(c)})},0),!a.get("singleClickEdit")&&!a.get("suppressClickEdit")&&s?.startRowOrCellEdit(r,null,e)}onMouseDown(e){const{ctrlKey:t,metaKey:n,shiftKey:r}=e,i=e.target,{cellCtrl:o,beans:a}=this,{eventSvc:s,rangeSvc:l,rowNumbersSvc:c,focusSvc:u,gos:d}=a;if(this.isRightClickInExistingRange(e))return;const p=l&&!l.isEmpty(),h=this.containsWidget(i),{cellPosition:g}=o,m=p0(g.column);if(c&&m&&!c.handleMouseDownOnCell(g,e)){l&&e.preventDefault(),e.stopImmediatePropagation();return}if(!r||!p){const y=d.get("enableCellTextSelection")&&e.defaultPrevented,M=(yw()||y)&&!o.editing&&!J2e(i)&&!h;o.focusCell(M)}if(r&&p&&!u.isCellFocused(g)){e.preventDefault();const b=u.getFocusedCell();if(b){const{column:y,rowIndex:M,rowPinned:C}=b,w=a.rowRenderer.getRowByPosition({rowIndex:M,rowPinned:C})?.getCellCtrl(y);w?.editing&&w.stopEditing(),u.setFocusedCell({column:y,rowIndex:M,rowPinned:C,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!h){if(l)if(m&&e.preventDefault(),r)l.extendLatestRangeToCell(g);else{const b=t||n;l.setRangeToCell(g,b)}s.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const n=t.isCellInAnyRange(this.cellCtrl.cellPosition),r=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(n&&r)return!0}return!1}containsWidget(e){return kO(e,"ag-selection-checkbox",3)||kO(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),n?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),n?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,n=t.contains(e.target),r=t.contains(e.relatedTarget);return n&&r}destroy(){super.destroy()}},m4t=class extends dt{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){const t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){const t=e.getCellHeight();t!=null&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();Md(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,n=e.getColSpan(t),r=[];if(n===1)r.push(e);else{let i=e;const o=e.getPinned();for(let a=0;i&&a<n&&(r.push(i),i=this.beans.visibleCols.getColAfter(i),!(!i||Yi(i)||o!==i.getPinned()));a++);}return r}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=zr(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,n=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const r=t.bodyWidth;return n+r+(e||0)}return n+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const n=sp(this.beans)*this.rowSpan;this.eContent.style.height=`${n}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},v4t="ag-cell",b4t="ag-cell-auto-height",y4t="ag-cell-normal-height",M4t="ag-cell-focus",C4t="ag-cell-first-right-pinned",x4t="ag-cell-last-left-pinned",w4t="ag-cell-not-inline-editing",S4t="ag-cell-wrap-text",D$="cellCtrl";function yye(e,t){return Let(e,t,D$)}var A4t=0,LN=class extends dt{constructor(e,t,n,r){super(),this.column=e,this.rowNode=t,this.rowCtrl=r,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.tooltipFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.beans=n;const{colId:i}=e;this.instanceId=i+"-"+A4t++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new m4t(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this,e),this.mouseListener=new g4t(this,e,this.column),this.keyboardListener=new f4t(this,e,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();const{rangeSvc:t}=e;t&&r1(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(e,this)),p0(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(e,this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(e,t,n,r,i,o,a){this.comp=e,this.eGui=t,this.printLayout=i,a??(a=this),this.addDomData(a),this.addFeatures(),a.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(r,a),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer(),o&&this.isCellEditable()?this.beans.editSvc?.startEditing(this):this.showValue(!1,!0),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(s=>s()),this.onCompAttachedFuncs=[])}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(e,t){const{beans:n,column:r,rowNode:i,rangeFeature:o}=this,{userCompFactory:a}=n,s=this.getValueToDisplay();let l;const c=i.stub&&i.groupData?.[r.getId()]==null,u=r.getColDef();if(c||this.isCellRenderer()){const d=this.createCellRendererParams();!c||p0(r)?l=iP(a,u,d):l=HLt(a,u,d)}if(!l&&!c&&n.findSvc?.isMatch(i,r)){const d=this.createCellRendererParams();l=iP(a,{...r.getColDef(),cellRenderer:"agFindCellRenderer"},d)}this.comp.setRenderDetails(l,s,e),!t&&o&&sh(n,()=>o?.refreshHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&b6(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:n}=this.beans.gridOptions,r=hW(t),i=m3(this.column);return n==="custom"&&r!=="selectionColumn"&&i?!1:e.checkboxSelection||i&&typeof t=="object"&&LO(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource),i=this.isAutoHeight!=this.column.isAutoHeight();return t||n||r||i}onPopupEditorClosed(){this.editing&&this.beans.editSvc?.stopRowOrCellEdit(this)}stopEditing(e=!1){return this.beans.editSvc?.stopEditing(this,e)??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:n,rowNode:r,comp:i,eGui:o,beans:{valueSvc:a,gos:s}}=this;return Gn(s,{value:e,valueFormatted:t,getValue:()=>a.getValueForDisplay(n,r).value,setValue:c=>a.setValue(r,n,c),formatValue:this.formatValue.bind(this),data:r.data,node:r,pinned:n.getPinned(),colDef:n.getColDef(),column:n,refreshCell:this.refreshCell.bind(this),eGridCell:o,eParentOfValue:i.getParentOfValue(),registerRowDragger:(c,u,d,p)=>this.registerRowDragger(c,u,p),setTooltip:(c,u)=>{s.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(c,u),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e)}refreshCell(e){if(this.suppressRefreshCell||this.editing)return;const t=this.column.getColDef(),n=e!=null&&!!e.newData,r=e!=null&&!!e.suppressFlash,i=t.field==null&&t.valueGetter==null&&t.showRowGroup==null,o=e&&e.forceRefresh||i||n,a=!!this.comp,s=this.updateAndFormatValue(a),l=o||s;if(a){if(l){this.showValue(n,!1);const c=this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering();!r&&!c&&t.enableCellChangeFlash&&this.beans.cellFlashSvc?.flashCell(this),this.customStyleFeature?.applyUserStyles(),this.customStyleFeature?.applyClassesFromColDef()}this.tooltipFeature?.refreshTooltip(),this.customStyleFeature?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,n=this.valueFormatted,{value:r,valueFormatted:i}=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode,!0);return this.value=r,this.valueFormatted=i,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n:!0}valuesAreEqual(e,t){const n=this.column.getColDef();return n.equals?n.equals(e,t):e===t}addDomData(e){const t=this.eGui;vz(this.beans.gos,t,D$,this),e.addDestroyFunc(()=>vz(this.beans.gos,t,D$,null))}createEvent(e,t){const{rowNode:n,column:r,value:i,beans:o}=this;return Gn(o.gos,{type:t,node:n,data:n.data,value:i,column:r,colDef:r.getColDef(),rowPinned:n.rowPinned,event:e,rowIndex:n.rowIndex})}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:n}=this;dtt(e,t,n.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);Y2e(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1){this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e})}restoreFocus(e=!1){if(!this.comp||this.editing||!this.isCellFocused()||!this.beans.focusSvc.shouldTakeFocus())return;const t=()=>{if(!this.isAlive())return;const n=this.comp.getFocusableElement();this.isCellFocused()&&n.focus({preventScroll:!0})};if(e){setTimeout(t,0);return}t()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(p0(this.column)&&(e=!0),Af(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(C4t,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(x4t,e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(RK(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const n=this.isCellFocused();if(this.comp.toggleCss(M4t,n),n&&e&&e.forceBrowserFocus){let i=this.comp.getFocusableElement();if(this.editing){const o=lm(i,null,!0);o.length&&(i=o[0])}i.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}const r=t.gos.get("editType")==="fullRow";!n&&!r&&this.editing&&t.editSvc?.stopRowOrCellEdit(this),n&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:Tc(t),column:this.column}}setInlineEditingCss(){this.beans.editSvc?.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(v4t,!0),e.toggleCss(w4t,!0);const t=this.column.isAutoHeight()==!0;e.toggleCss(b4t,t),e.toggleCss(y4t,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?this.beans.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.toggleCss(S4t,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),n=this.createEvent(e,"cellContextMenu"),{beans:r}=this;r.eventSvc.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout(()=>{r.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(n)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains($i(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,n){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const r=this.createRowDragComp(e,t,n);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}))}createRowDragComp(e,t,n){const r=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,n);if(r)return this.beans.context.createBean(r),r}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(e=>e()),this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}},gtt="__ag_grid_instance";function mtt(e,t){t[gtt]=e.gridInstanceId}function gW(e,t){return vtt(e,t.target)}function vtt(e,t){let n=t;for(;n;){const r=n[gtt];if(Ut(r))return r===e.gridInstanceId;n=n.parentElement}return!1}function btt(e,t){return yye(e,t.target)?.getFocusedCellPosition()??null}function k$(e,t){const n=Uu(e.gos,"normal"),r=t;let i,o;r.clientX!=null||r.clientY!=null?(i=r.clientX,o=r.clientY):(i=r.x,o=r.y);const{pageFirstPixel:a}=e.pageBounds.getCurrentPagePixelRange();if(o+=a,n){const s=e.ctrlsSvc.getScrollFeature(),l=s.getVScrollPosition(),c=s.getHScrollPosition();i+=c.left,o+=l.top}return{x:i,y:o}}var bm=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(bm||{}),O4t=class extends dt{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.dragSvc=e.dragSvc,this.environment=e.environment,this.userCompFactory=e.userCompFactory}addDragSource(e,t=!1){const n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragSvc.addDragSource(n)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){const{dragSourceAndParamsList:t,dragSvc:n}=this,r=t.find(i=>i.dragSource===e);r&&(n.removeDragSource(r.params),Ou(t,r))}destroy(){const{dragSourceAndParamsList:e,dragSvc:t,dropTargets:n}=this;e.forEach(r=>t.removeDragSource(r.params)),e.length=0,n.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=e.getDragItem(),e.onDragStarted?.(),this.createDragAndDropImageComponent()}onDragStop(e){this.dragSource?.onDragStopped?.();const{lastDropTarget:t}=this;if(t?.onDragStop){const n=this.createDropTargetEvent(t,e,null,null,!1);t.onDragStop(n)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t}=this;e?.onDragCancelled?.(),t?.onDragCancel&&t.onDragCancel(this.createDropTargetEvent(t,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){const n=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const i=this.dropTargets.filter(u=>this.isMouseOnDropTarget(e,u)),o=this.findCurrentDropTarget(e,i),{lastDropTarget:a,dragSource:s,dragAndDropImageComp:l,dragItem:c}=this;if(o!==a){if(this.leaveLastTargetIfExists(e,n,r,t),a!==null&&o===null&&s?.onGridExit?.(c),a===null&&o!==null&&s?.onGridEnter?.(c),this.enterDragTargetIfExists(o,e,n,r,t),o&&l){const{comp:u,promise:d}=l;u?u.setIcon(o.getIconName?o.getIconName():null,!1):d.then(p=>{p&&p.setIcon(o.getIconName?o.getIconName():null,!1)})}this.lastDropTarget=o}else if(o&&o.onDragging){const u=this.createDropTargetEvent(o,e,n,r,t);o.onDragging(u)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n}isMouseOnDropTarget(e,t){const n=this.getAllContainersFromDropTarget(t);let r=!1;const i=(s,l)=>{for(const c of l){const{width:u,height:d,left:p,right:h,top:g,bottom:m}=c.getBoundingClientRect();if(u===0||d===0)return!1;const b=s.clientX>=p&&s.clientX<h,y=s.clientY>=g&&s.clientY<m;if(!b||!y)return!1}return!0};for(const s of n)if(i(e,s)){r=!0;break}const{eElement:o,type:a}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(o)?!1:r&&t.isInterestedIn(a,o)}findCurrentDropTarget(e,t){const n=t.length;if(n===0)return null;if(n===1)return t[0];const i=bz(this.beans).elementsFromPoint(e.clientX,e.clientY);for(const o of i)for(const a of t)if(this.getAllContainersFromDropTarget(a).flatMap(l=>l).indexOf(o)!==-1)return a;return null}enterDragTargetIfExists(e,t,n,r,i){if(e&&e.onDragEnter){const o=this.createDropTargetEvent(e,t,n,r,i);e.onDragEnter(o)}}leaveLastTargetIfExists(e,t,n,r){const{lastDropTarget:i}=this;if(!i)return;if(i.onDragLeave){const a=this.createDropTargetEvent(i,e,t,n,r);i.onDragLeave(a)}const o=this.getDragAndDropImageComponent();o&&o.setIcon(null,!1)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(n=>n.external).find(n=>n.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){const n=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:r}=e;return n.contains(r)}getHorizontalDirection(e){const t=this.eventLastTime?.clientX,n=e.clientX;return t===n?null:t>n?"left":"right"}getVerticalDirection(e){const t=this.eventLastTime?.clientY,n=e.clientY;return t===n?null:t>n?"up":"down"}createDropTargetEvent(e,t,n,r,i){const o=e.getContainer(),a=o.getBoundingClientRect(),{dragItem:s,dragSource:l,gos:c}=this,u=t.clientX-a.left,d=t.clientY-a.top;return Gn(c,{event:t,x:u,y:d,vDirection:r,hDirection:n,dragSource:l,fromNudge:i,dragItem:s,dropZoneTarget:o})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();t&&che(t.getGui(),e,this.beans)}removeDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;if(e){const{comp:t}=e;if(t){const n=t.getGui();this.dragAndDropImageParent?.removeChild(n),this.destroyBean(t)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e,gos:t,userCompFactory:n}=this;if(!e)return;const r=kLt(n,Gn(t,{dragSource:e}));if(!r)return;const i=r.newAgStackInstance();this.dragAndDropImageComp={promise:i},i.then(o=>{!o||!this.isAlive()||(this.processDragAndDropImageComponent(o),this.dragAndDropImageComp.comp=o)})}processDragAndDropImageComponent(e){const{dragSource:t,environment:n}=this;if(!t)return;const r=e.getGui();r.style.setProperty("position","absolute"),r.style.setProperty("z-index","9999"),mtt(this.gos,r),n.applyThemeClasses(r),e.setIcon(null,!1);let{dragItemName:i}=t;typeof i=="function"&&(i=i()),e.setLabel(i||""),r.style.top="20px",r.style.left="20px";const o=OK(this.beans);this.dragAndDropImageParent=o,o?o.appendChild(r):ut(54)}registerGridDropTarget(e,t){const n={getContainer:e,isInterestedIn:r=>r===1||r===0,getIconName:()=>"notAllowed"};this.addDropTarget(n),t.addDestroyFunc(()=>this.removeDropTarget(n))}},Mye=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const n=t||this.shouldSkipVerticalScroll();if(n&&this.shouldSkipHorizontalScroll())return;const r=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=e.clientX<r.left+i,this.tickRight=e.clientX>r.right-i,this.tickUp=e.clientY<r.top+i&&!n,this.tickDown=e.clientY>r.bottom-i&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function RC(e){const{rowIndex:t,rowPinned:n,column:r}=e;return`${t}.${n??"null"}.${r.getId()}`}function y6(e,t){const n=e.column===t.column,r=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return n&&r&&i}function t0(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(Ut(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function Uc(e,t){return!e&&!t?!0:e&&!t||!e&&t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}function z4t(e){let t=0,n;const{pinnedRowModel:r,rowModel:i,pageBounds:o}=e;return r?.getPinnedTopRowCount()?n="top":i.getRowCount()?(n=null,t=o.getFirstRow()):r?.getPinnedBottomRowCount()&&(n="bottom"),n===void 0?null:{rowIndex:t,rowPinned:n}}function T4t(e){let t,n=null;const{pinnedRowModel:r,pageBounds:i}=e,o=r?.getPinnedBottomRowCount(),a=r?.getPinnedTopRowCount();return o?(n="bottom",t=o-1):e.rowModel.getRowCount()?(n=null,t=i.getLastRow()):a&&(n="top",t=a-1),t===void 0?null:{rowIndex:t,rowPinned:n}}function lp(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function Qv(e,t){const n=e.spannedRowRenderer?.getCellByPosition(t);if(n)return n;const r=e.rowRenderer.getRowByPosition(t);return r?r.getCellCtrl(t.column):null}function Ax(e,t){const{rowIndex:n,rowPinned:r}=t,{pageBounds:i,pinnedRowModel:o,rowModel:a}=e;if(n===0)return r==="top"?null:r==="bottom"&&a.isRowsToRender()?{rowIndex:i.getLastRow(),rowPinned:null}:o?.isRowsToRender("top")?{rowIndex:o.getPinnedTopRowCount()-1,rowPinned:"top"}:null;const s=r?void 0:a.getRow(n);return ytt(e,s,!0)??{rowIndex:n-1,rowPinned:r}}function Gp(e,t){const{rowIndex:n,rowPinned:r}=t,{pageBounds:i,pinnedRowModel:o,rowModel:a}=e;if(E4t(e,t))return r==="bottom"?null:r==="top"&&a.isRowsToRender()?{rowIndex:i.getFirstRow(),rowPinned:null}:o?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;const s=r?void 0:a.getRow(n);return ytt(e,s)??{rowIndex:n+1,rowPinned:r}}function ytt(e,t,n){const{gos:r,rowRenderer:i}=e;if(!t?.sticky||!zK(r))return;const o=n?i.getStickyTopRowCtrls():i.getStickyBottomRowCtrls();let a;for(let s=0;s<o.length;s++)if(o[s].rowNode.rowIndex===t.rowIndex){a=o[s+(n?-1:1)];break}return a?{rowIndex:a.rowNode.rowIndex,rowPinned:null}:void 0}function E4t(e,t){const{rowPinned:n,rowIndex:r}=t,{pinnedRowModel:i,pageBounds:o}=e;return n==="top"?(i?.getPinnedTopRowCount()??0)-1<=r:n==="bottom"?(i?.getPinnedBottomRowCount()??0)-1<=r:o.getLastRow()<=r}var Cz=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}depthFirstSearchChangedPath(e,t){const{rowNode:n,children:r}=e;if(r)for(let i=0;i<r.length;++i)this.depthFirstSearchChangedPath(r[i],t);t(n)}depthFirstSearchEverything(e,t,n){const r=e.childrenAfterGroup;if(r)for(let i=0,o=r.length;i<o;++i){const a=r[i];a.childrenAfterGroup?this.depthFirstSearchEverything(a,t,n):n&&t(a)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,n=!1){this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,n=0;for(;!this.mapToItems[t.id];){const r={rowNode:t,children:null};this.mapToItems[t.id]=r,n++,t=t.parent}return n}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let n=e;for(;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),t.forEach(r=>this.nodeIdsToColumns[n.id][r.getId()]=!0),n=n.parent}linkPathItems(e,t){let n=e;for(let r=0;r<t;r++){const i=this.mapToItems[n.id],o=this.mapToItems[n.parent.id];o.children||(o.children=[]),o.children.push(i),n=n.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const n=this.nodeIdsToColumns[e.id];return t.filter(i=>n[i.getId()])}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const n=this.nodeIdsToColumns[e.id];return t.filter(i=>!n[i.getId()])}},R4t=class extends dt{constructor(e){super(),this.eContainer=e}postConstruct(){const{rowModel:e,gos:t,ctrlsSvc:n}=this.beans;sa(t)&&(this.clientSideRowModel=e),n.whenReady(this,r=>{const i=r.gridBodyCtrl;this.autoScrollService=new Mye({scrollContainer:i.eBodyViewport,scrollAxis:"y",getVerticalPosition:()=>i.scrollFeature.getVScrollPosition().top,setVerticalPosition:o=>i.scrollFeature.setVerticalScrollPosition(o),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){const{rowGroupColsSvc:e,filterManager:t,sortSvc:n}=this.beans;return!!((e?.columns??[]).length||t?.isAnyFilterPresent()||n?.isSortActive())}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const r=[...this.beans.selectionSvc?.getSelectedNodes()??[]].sort((i,o)=>i.rowIndex==null||o.rowIndex==null?0:this.getRowIndexNumber(i)-this.getRowIndexNumber(o));if(r.indexOf(t)!==-1)return r}return[t]}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent("rowDragEnter",e),this.getRowNodes(e).forEach(t=>{this.setRowNodeDragging(t,!0)}),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){const{dragSourceDomDataKey:t}=e.dragSource;return t===this.gos.getDomDataKey()}onEnterOrDragging(e){this.dispatchGridEvent("rowDragMove",e),this.lastDraggingEvent=e,this.gos.get("rowDragManaged")&&this.doManagedDrag(e),this.autoScrollService.check(e.event)}doManagedDrag(e){const{dragAndDrop:t,gos:n}=this.beans,r=this.isFromThisGrid(e);if(!(n.get("rowDragManaged")&&this.shouldPreventRowMove()))if(n.get("suppressMoveWhenRowDragging")||!r){if(t.isDropZoneWithinThisGrid(e)){const o=this.clientSideRowModel,a=this.getRowsDrop(e),s=a?.target;s?o.highlightRow(s,a.delta<0?"Above":"Below"):o.clearHighlight()}}else{const o=this.getRowsDrop(e);o&&this.dropRows(o)}}getRowIndexNumber(e){const t=e.getRowIndexString();return parseInt(zr(t.split("-")),10)}getRowsDrop(e){const{rowNode:t,rowNodes:n}=e.dragItem,r=n?.length,i=this.isFromThisGrid(e),o=r&&(t??n[0]),a=k$(this.beans,e).y,s=this.clientSideRowModel,l=s.getRowIndexAtPixel(a);let c=s.getRow(l),u=0;if(!o)return null;if(i){if(!c||c===o)return null;u=l-o.rowIndex,n.includes(c)&&(c=(u<0?this.getPrevOrNext(-1,n[0]):this.getPrevOrNext(1,zr(n)))??c)}return c&&(!i||u<-1||u>1)&&(u=a-c.rowTop-c.rowHeight/2),{sameGrid:i,delta:u,target:c,rows:n}}getPrevOrNext(e,t){const n=this.clientSideRowModel,r=n.getRowCount();let i=t.rowIndex+e;for(;i>=0&&i<r;){const o=n.getRow(i);if(o.sourceRowIndex>=0)return o;i+=e}}addRowDropZone(e){if(!e.getContainer()){ut(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e)){ut(56);return}let n={getContainer:e.getContainer};e.fromGrid?n=e:(e.onDragEnter&&(n.onDragEnter=i=>{e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",i))}),e.onDragLeave&&(n.onDragLeave=i=>{e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",i))}),e.onDragging&&(n.onDragging=i=>{e.onDragging(this.draggingToRowDragEvent("rowDragMove",i))}),e.onDragStop&&(n.onDragStop=i=>{e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",i))}),e.onDragCancel&&(n.onDragCancel=i=>{e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",i))}));const r={isInterestedIn:i=>i===2,getIconName:()=>"move",external:!0,...n};t.addDropTarget(r),this.addDestroyFunc(()=>t.removeDropTarget(r))}getRowDropZone(e){const t=this.getContainer.bind(this),n=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),o=this.onDragStop.bind(this),a=this.onDragCancel.bind(this);let s;return e?s={getContainer:t,onDragEnter:e.onDragEnter?l=>{n(l),e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",l))}:n,onDragLeave:e.onDragLeave?l=>{r(l),e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",l))}:r,onDragging:e.onDragging?l=>{i(l),e.onDragging(this.draggingToRowDragEvent("rowDragMove",l))}:i,onDragStop:e.onDragStop?l=>{o(l),e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",l))}:o,onDragCancel:e.onDragCancel?l=>{a(l),e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",l))}:a,fromGrid:!0}:s={getContainer:t,onDragEnter:n,onDragLeave:r,onDragging:i,onDragStop:o,onDragCancel:a,fromGrid:!0},s}draggingToRowDragEvent(e,t){const n=this.beans,{pageBounds:r,rowModel:i,gos:o}=n,a=k$(this.beans,t).y,s=a>r.getCurrentPagePixelRange().pageLastPixel;let l=-1,c;return s||(l=i.getRowIndexAtPixel(a),c=i.getRow(l)),Gn(o,{type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:l,overNode:c,y:a,vDirection:t.vDirection})}dispatchGridEvent(e,t){const n=this.draggingToRowDragEvent(e,t);this.eventSvc.dispatchEvent(n)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&this.clientSideRowModel.clearHighlight()}onDragStop(e){this.dispatchGridEvent("rowDragEnd",e),this.stopDragging(e);const{dragAndDrop:t,gos:n}=this.beans;if(n.get("rowDragManaged")&&(n.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)){const r=this.getRowsDrop(e);r&&this.dropRows(r),this.clientSideRowModel.clearHighlight()}}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e);const{dragAndDrop:t,gos:n}=this.beans;n.get("rowDragManaged")&&(n.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)&&this.clientSideRowModel.clearHighlight()}stopDragging(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(t=>{this.setRowNodeDragging(t,!1)})}setRowNodeDragging(e,t){e.dragging!==t&&(e.dragging=t,e.dispatchRowEvent("draggingChanged"))}dropRows(e){return e.sameGrid?this.moveRows(e):this.addRows(e)}addRows({delta:e,target:t,rows:n}){const r=qy(this.gos),i=this.clientSideRowModel,o=n.filter(({data:s,rowPinned:l})=>!i.getRowNode(r?.({data:s,level:0,rowPinned:l})??s.id)).map(({data:s})=>s);if(o.length===0)return!1;const a=t&&t.sourceRowIndex+(e<0?0:1);return i.updateRowData({add:o,addIndex:a}),!0}moveRows({delta:e,target:t,rows:n}){const r=this.getValidRowsToMove(n),i=this.beans.focusSvc,o=i.getFocusedCell(),a=o&&Qv(this.beans,o);return this.reorderLeafChildren(r,...this.getMoveRowsBounds(r,t,e))?(this.clientSideRowModel.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedPath:new Cz(!1,this.clientSideRowModel.rootNode),rowNodesOrderChanged:!0}),a?a.focusCell():i.clearFocusedCell(),!0):!1}getValidRowsToMove(e){const t=this.clientSideRowModel,n=new Set;for(const r of e)r.sourceRowIndex>=0&&(r.rowTop!==null||r===t.getRowNode(r.id))&&n.add(r);return n}getMoveRowsBounds(e,t,n){const r=this.clientSideRowModel.rootNode?.allLeafChildren.length??0;let i=t?.sourceRowIndex??-1;i<0||i>=r?i=r:n>=0&&++i;let o=i,a=Math.min(i,r-1);for(const{sourceRowIndex:s}of e)s<o&&(o=s),s>a&&(a=s);return[o,i,a]}reorderLeafChildren(e,t,n,r){let i=!1;const o=this.clientSideRowModel.rootNode?.allLeafChildren;if(!e.size||!o)return!1;let a=t;for(let l=t;l<n;++l){const c=o[l];e.has(c)||(c.sourceRowIndex!==a&&(c.sourceRowIndex=a,o[a]=c,i=!0),++a)}let s=r;for(let l=r;l>=n;--l){const c=o[l];e.has(c)||(c.sourceRowIndex!==s&&(c.sourceRowIndex=s,o[s]=c,i=!0),--s)}for(const l of e)l.sourceRowIndex!==a&&(l.sourceRowIndex=a,o[a]=l,i=!0),++a;return i}};function Mtt(e,t,n){if(n===0)return!1;const r=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(r,i)<=n}var I4t=class extends dt{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){const{dragSources:e}=this;e.forEach(this.removeListener.bind(this)),e.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){const r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}}removeDragSource(e){const{dragSources:t}=this,n=t.find(r=>r.dragSource===e);n&&(this.removeListener(n),Ou(t,n))}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:n,includeTouch:r,stopPropagationForTouch:i}=e;n.addEventListener("mousedown",t);let o=null;const a=this.gos.get("suppressTouch");r&&!a&&(o=s=>{J2e(s.target)||(i&&s.stopPropagation(),this.onTouchStart(e,s))},n.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:o,touchEnabled:!!r})}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const n=t.touches[0];this.touchLastTime=n,this.touchStart=n;const r=l=>this.onTouchMove(l,e.eElement),i=l=>this.onTouchUp(l,e.eElement),o=l=>{l.cancelable&&l.preventDefault()},a=t.target,s=[{target:bz(this.beans),type:"touchmove",listener:o,options:{passive:!1}},{target:a,type:"touchmove",listener:r,options:{passive:!0}},{target:a,type:"touchend",listener:i,options:{passive:!0}},{target:a,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(s),e.dragStartPixels===0&&this.onCommonMove(n,this.touchStart,e.eElement)}onMouseDown(e,t){const n=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const r=c=>this.onMouseMove(c,e.eElement),i=c=>this.onMouseUp(c,e.eElement),o=c=>c.preventDefault(),a=c=>{c.key===Qe.ESCAPE&&this.cancelDrag(e.eElement)},s=bz(this.beans),l=[{target:s,type:"mousemove",listener:r},{target:s,type:"mouseup",listener:i},{target:s,type:"contextmenu",listener:o},{target:s,type:"keydown",listener:a}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{const{target:n,type:r,listener:i,options:o}=t;n.addEventListener(r,i,o)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{const{target:n,type:r,listener:i,options:o}=t;n.removeEventListener(r,i,o)})})}isEventNearStartEvent(e,t){const{dragStartPixels:n}=this.currentDragParams,r=Ut(n)?n:4;return Mtt(e,t,r)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,n){if(!this.dragging){if(this.isEventNearStartEvent(e,t))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:n}),this.currentDragParams.onDragStart(t),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(t)}this.currentDragParams?.onDragging(e)}onTouchMove(e,t){const n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)}onMouseMove(e,t){yw()&&bl(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const{gos:t}=this,n=t.get("enableCellTextSelection"),r=e.type==="mousemove",i=o=>!!o.target?.tagName.toLocaleLowerCase()?.match("^a$|textarea|input|select|button");return n&&r&&e.cancelable&&gW(t,e)&&!i(e)}onTouchUp(e,t){let n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),this.currentDragParams?.onDragCancel?.(),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;const{dragEndFunctions:e}=this;e.forEach(t=>t()),e.length=0}};function Ctt(e,t){return e+"_"+t}function Pl(e){return e instanceof xtt}var xtt=class extends dt{constructor(e,t,n,r){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=n,this.pinned=r,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return Ctt(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{Pl(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=zr(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;return this.displayedChildren?.forEach(t=>{e+=t.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{vm(t)?e.push(t):Pl(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{vm(t)?e.push(t):Pl(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(n=>{if(Pl(n)&&(!n.displayedChildren||!n.displayedChildren.length))return;switch(n.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(n);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(n);break;default:this.displayedChildren.push(n);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},mW="row-group-",Cye="t-",xye="b-",P4t=0,vp=class{constructor(e){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=P4t++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:n,selectionSvc:r,eventSvc:i}=this.beans,o=this.data;this.data=e,n?.onDataChanged(),this.updateDataOnDetailNode(),r?.updateRowSelectable(this),this.resetQuickFilterAggregateText();const a=this.createDataChangedEvent(e,o,t);if(this.__localEventService?.dispatchEvent(a),this.sibling){this.sibling.data=e;const l=this.sibling.createDataChangedEvent(e,o,t);this.sibling.__localEventService?.dispatchEvent(l)}i.dispatchEvent({type:"rowNodeDataChanged",node:this});const s=this.pinnedSibling;s&&(s.data=e,s.__localEventService?.dispatchEvent(s.createDataChangedEvent(e,o,t)),i.dispatchEvent({type:"rowNodeDataChanged",node:s}))}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,n){return{type:"dataChanged",node:this,oldData:t,newData:e,update:n}}getRowIndexString(){return this.rowIndex==null?(pi(13),null):this.rowPinned==="top"?Cye+this.rowIndex:this.rowPinned==="bottom"?xye+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:n}=this.beans,r=n?.createDaemonNode?.(this),i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),n&&(n.updateRowSelectable(this),n.syncInRowNode(this,r));const o=this.createDataChangedEvent(e,i,!1);this.__localEventService?.dispatchEvent(o)}setId(e){const t=qy(this.beans.gos);if(t)if(this.data){const n=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:n.length>0?n:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(mW)&&pi(14,{groupPrefix:mW})}else this.id=void 0;else this.id=e}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.dispatchRowEvent("topChanged"),this.setDisplayed(e!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,n){this.beans.expansionSvc?.setExpanded(this,e,t,n)}setDataValue(e,t,n){const{colModel:r,valueSvc:i,gos:o,selectionSvc:a}=this.beans,s=typeof e!="string"?e:r.getCol(e)??r.getColDefCol(e);if(!s)return!1;const l=i.getValueForDisplay(s,this).value;if(o.get("readOnlyEdit")){const{beans:{eventSvc:p},data:h,rowIndex:g,rowPinned:m}=this;return p.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:g,rowPinned:m,column:s,colDef:s.colDef,data:h,node:this,oldValue:l,newValue:t,value:t,source:n}),!1}const c=i.setValue(this,s,t,n);this.dispatchCellChangedEvent(s,t,l);const u=a?.updateRowSelectable(this),d=this.pinnedSibling;return d&&(c&&d.dispatchCellChangedEvent(s,t,l),d.selectable=u??!0),c}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,n){const r={type:"cellChanged",node:this,column:e,newValue:t,oldValue:n};this.__localEventService?.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){return this.footer?this.sibling.isSelected():this.rowPinned&&this.pinnedSibling?this.pinnedSibling.isSelected():this.__selected}depthFirstSearch(e){this.childrenAfterGroup?.forEach(t=>t.depthFirstSearch(e)),e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,n="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:n})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){this.__localEventService||(this.__localEventService=new Wy),this.__localEventService.addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e),this.__localEventService||(this.__localEventService=new Wy),this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.__localEventService);const n=this.frameworkEventListenerService?.wrap(e,t)??t;this.__localEventService.addEventListener(e,n)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,n)}removeLocalListener(e,t){this.__localEventService?.removeEventListener(e,t),this.__localEventService?.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(ut(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t&&t.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.dispatchRowEvent("displayedChanged"))}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){return this.childStore?this.childStore.getFirstNode():this.childrenAfterSort?.[0]??null}};function wtt(e,t,n){return Gn(t,{type:n,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var D4t=new Set(["__localEventService","__objectId","sticky","__autoHeights","__checkAutoHeightsDebounced","childStore"]);function Stt(e,t){const n=new vp(t);return Object.keys(e).forEach(r=>{D4t.has(r)||(n[r]=e[r])}),n.oldRowTop=null,n}var k4t={tag:"div",cls:"ag-filter"},IK=class extends Gt{constructor(e,t){super(k4t),this.column=e,this.source=t,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){return this.filterWrapper?.filterPromise??null}afterInit(){return this.filterWrapper?.filterPromise?.then(()=>{})??Dr.resolve()}afterGuiAttached(e){this.filterWrapper?.filterPromise?.then(t=>{t?.afterGuiAttached?.(e)})}afterGuiDetached(){this.filterWrapper?.filterPromise?.then(e=>{e?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:n}=this;this.filterWrapper=this.beans.filterManager?.getOrCreateFilterWrapper(t)??null,this.filterWrapper?.filterPromise&&this.filterWrapper.filterPromise.then(r=>{const i=r.getGui();Ut(i)||ut(69,{guiFromFilter:i}),this.appendChild(i),e&&this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:n,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Xi(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},Att="ag-resizer-wrapper",eC=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),L4t={tag:"div",cls:Att,children:[eC("eTopLeft","topLeft"),eC("eTop","top"),eC("eTopRight","topRight"),eC("eRight","right"),eC("eBottomRight","bottomRight"),eC("eBottom","bottom"),eC("eBottomLeft","bottomLeft"),eC("eLeft","left")]},PK=class extends dt{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,n=t/2-this.getWidth()/2,r=e/2-this.getHeight()/2;this.offsetElement(n,r)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:n,width:r,minHeight:i,height:o,x:a,y:s}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const u=x0(this.element);if(u){const d=this.findBoundaryElement(),p=window.getComputedStyle(d);if(p.minWidth!=null){const h=d.offsetWidth-this.element.offsetWidth;c=parseInt(p.minWidth,10)-h}if(p.minHeight!=null){const h=d.offsetHeight-this.element.offsetHeight;l=parseInt(p.minHeight,10)-h}}if(this.minHeight=i||l,this.minWidth=n||c,r&&this.setWidth(r),o&&this.setHeight(o),(!r||!o)&&this.refreshSize(),e)this.center();else if(a||s)this.offsetElement(a,s);else if(u&&t){let d=this.boundaryEl,p=!0;if(d||(d=this.findBoundaryElement(),p=!1),d){const h=parseFloat(d.style.top),g=parseFloat(d.style.left);p?this.offsetElement(isNaN(g)?0:g,isNaN(h)?0:h):this.setPosition(g,h)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(n),this.moveElementDragListener=n):(this.dragSvc?.removeDragSource(n),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{const r=!!e[t],i=this.getResizerElement(t),o={dragStartPixels:0,eElement:i,onDragStart:a=>this.onResizeStart(a,t),onDragging:this.onResize.bind(this),onDragStop:a=>this.onResizeEnd(a,t)};(r||!this.isAlive()&&!r)&&(r?(this.dragSvc?.addDragSource(o),this.resizeListeners.push(o),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=r)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,n=this.element;let r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)DN(n,e),e=xK(n),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const i=this.getAvailableHeight();i&&e>i&&(e=i)}this.getHeight()!==e&&(r?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?DN(n,e):(n.style.height=`${e}px`,n.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:n}=this.offsetParent;if(!n)return null;const r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),o=e?this.position.y:r.top,a=e?0:i.top;let s=0;if(t){const c=this.element.parentElement;if(c){const{bottom:u}=c.getBoundingClientRect();s=u-r.bottom}}return n+a-o-s}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:n}=this.config;let r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)am(t,e),e=gz(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:i}=this.offsetParent,o=n?this.position.x:this.element.getBoundingClientRect().left;i&&e+o>i&&(e=i-o)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?am(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:n}=this.config,r=n?this.boundaryEl:this.element;r&&(this.popupSvc?.positionPopup({ePopup:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(r.style.left),parseFloat(r.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const n=this.getAvailableHeight();this.element.style.setProperty("max-height",`${n}px`)};e&&this.popupSvc?this.resizeObserverSubscriber=Hf(this.beans,this.popupSvc?.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:n,isTop:r,anywhereWithin:i,topBuffer:o}=e,a=t.clientX-this.dragStartPosition.x,s=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!n,!!i,a)?0:a,c=this.shouldSkipY(t,!!r,o,s)?0:s;return{movementX:l,movementY:c}}shouldSkipX(e,t,n,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.x:i.left;let l=s<=0&&o.left>=e.clientX||o.right<=e.clientX&&o.right<=a.right;return l?!0:(t?l=r<0&&e.clientX>s+o.left||r>0&&e.clientX<s+o.left:n?l=r<0&&e.clientX>a.right||r>0&&e.clientX<s+o.left:l=r<0&&e.clientX>a.right||r>0&&e.clientX<a.right,l)}shouldSkipY(e,t,n=0,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.y:i.top;let l=s<=0&&o.top>=e.clientY||o.bottom<=e.clientY&&o.bottom<=a.bottom;return l?!0:(t?l=r<0&&e.clientY>s+o.top+n||r>0&&e.clientY<s+o.top:l=r<0&&e.clientY>a.bottom||r>0&&e.clientY<a.bottom,l)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(Nr(L4t)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${Att}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:n,forcePopupParentAsOffsetParent:r}=this.config;!n&&!r&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(n=>!n.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,n=0;for(let r=0;r<e.length;r++){const i=e[r],o=!!i.style.flex&&i.style.flex!=="0 0 auto";if(i===this.element)continue;let a=this.minHeight||0,s=this.minWidth||0;if(o){const l=window.getComputedStyle(i);l.minHeight&&(a=parseInt(l.minHeight,10)),l.minWidth&&(s=parseInt(l.minWidth,10))}else a=i.offsetHeight,s=i.offsetWidth;t+=a,n+=s}return{height:t,width:n}}applySizeToSiblings(e){let t=null;const n=this.getSiblings();if(n){for(let r=0;r<n.length;r++){const i=n[r];i!==t&&(e?i.style.height=`${i.offsetHeight}px`:i.style.width=`${i.offsetWidth}px`,i.style.flex="0 0 auto",i===this.element&&(t=n[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:n}=this.config,{isTop:r,isRight:i,isBottom:o,isLeft:a}=this.currentResizer,s=i||a,l=o||r,{movementX:c,movementY:u}=this.calculateMouseMovement({e,isLeft:a,isTop:r}),d=this.position.x,p=this.position.y;let h=0,g=0;if(s&&c){const m=a?-1:1,b=this.getWidth(),y=b+c*m;let M=!1;a&&(h=b-y,(d+h<=0||y<=this.minWidth)&&(M=!0,h=0)),M||this.setWidth(y)}if(l&&u){const m=r?-1:1,b=this.getHeight(),y=b+u*m;let M=!1;r?(g=b-y,(p+g<=0||y<=this.minHeight)&&(M=!0,g=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&b<y&&this.getMinSizeOfSiblings().height+y>this.element.parentElement.offsetHeight&&(M=!0),M||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),((t||n)&&h||g)&&this.offsetElement(d+h,p+g)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:n}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:i,movementY:o}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+i,n+o),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},Ott="ag-focus-managed",Mw=class extends dt{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:n=>{if(n.defaultPrevented)return;const r=Cd(this.beans,this.eFocusable,!1,n.shiftKey);r&&(r.focus(),n.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:n}}=this;e.classList.add(Ott),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),n&&this.addManagedElementListeners(e,{focusout:n})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||rh(t))return;const{callbacks:n}=this;if(n.shouldStopEventPropagation(t)){Cl(t);return}t.key===Qe.TAB?n.onTabKeyDown(t):n.handleKeyDown&&n.handleKeyDown(t)}})}},ztt={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function wye(e,t){const{debounceMs:n}=e;return L$(e)?(n!=null&&ut(71),0):n??t}function L$(e){return(e.buttons?.indexOf("apply")??-1)>=0}var DK=class extends Gt{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=at,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new Mw(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new PK(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t?.removeEventListener("submit",this.onFormSubmit);const n={tag:"form",cls:"ag-filter-wrapper",children:[{tag:"div",ref:"eFilterBody",cls:`ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper`,children:[this.createBodyTemplate()]}]};this.setTemplate(n,this.getAgComponents(),e),t=this.getGui(),t?.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.params=e,this.applyActive=L$(e),this.resetButtonsPanel(e)}updateParams(e){this.params=e,this.applyActive=L$(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){const{buttons:n,readOnly:r}=t??{},{buttons:i,readOnly:o}=e;if(r===o&&mz(n,i))return;const a=i&&i.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Xi(this.eButtonsPanel),this.buttonListeners.forEach(c=>c()),this.buttonListeners=[]):a&&(this.eButtonsPanel=Nr({tag:"div",cls:"ag-filter-apply-panel"})),!a){this.eButtonsPanel&&Ps(this.eButtonsPanel);return}const s=document.createDocumentFragment(),l=c=>{let u;const d=c?this.translate(`${c}Filter`):void 0;switch(c){case"apply":u=g=>this.onBtApply(!1,!1,g);break;case"clear":u=()=>this.onBtClear();break;case"reset":u=()=>this.onBtReset();break;case"cancel":u=g=>{this.onBtCancel(g)};break;default:ut(75);return}const h=Nr({tag:"button",attrs:{type:c==="apply"?"submit":"button"},ref:`${c}FilterButton`,cls:"ag-button ag-standard-button ag-filter-apply-panel-button",children:d});this.buttonListeners.push(...this.addManagedElementListeners(h,{click:u})),s.append(h)};i.forEach(c=>l(c)),this.eButtonsPanel.append(s),this.getGui().appendChild(this.eButtonsPanel)}setupOnBtApplyDebounce(){const e=wye(this.params,this.defaultDebounceMs),t=Ml(this,this.checkApplyDebounce.bind(this),e);this.onBtApplyDebounce=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel??null}setModel(e){return(e!=null?this.setModelIntoUi(e):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(e)})}handleCancelEnd(e){this.params.closeOnApply&&this.close(e)}resetUiToActiveModel(e,t){const n=()=>{this.onUiChanged(!1,"prevent"),t?.()};e!=null?this.setModelIntoUi(e).then(n):this.resetUiToDefaults().then(n)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e="api"){const t=this.getModelFromUi();if(!this.isModelValid(t))return!1;const n=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(n,t)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,t=!1,n){n&&n.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.params.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:"columnFilter"});const{closeOnApply:r}=this.params;r&&this.applyActive&&!e&&!t&&this.close(n)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;const t=e,n=t&&t.key;let r;(n==="Enter"||n==="Space")&&(r={keyboardEvent:t}),this.hidePopup(r),this.hidePopup=null}onUiChanged(e=!1,t){if(this.updateUiVisibility(),this.params.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){const n=this.isModelValid(this.getModelFromUi()),r=this.queryForHtmlElement('[data-ref="applyFilterButton"]');r&&nf(r,!n)}e&&!t||t==="immediately"?this.onBtApply(e):(!this.applyActive&&!t||t==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:n}=this;if(!t||e==="toolPanel")return;e==="floatingFilter"||e==="columnFilter"?(t.restoreLastSize(),t.setResizable(n.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}refresh(e){const t=this.params;return this.params=e,this.resetButtonsPanel(e,t),!0}destroy(){const e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.getLocaleTextFunc()(e,ztt[e])}getCellValue(e){return this.params.getValue(e)}getPositionableElement(){return this.eFilterBody}};function Ttt(e,t,n){if(t==null)return null;let r=null;const{compName:i,jsComp:o,fwComp:a}=XLt(e,t);return i?r={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[i]:o==null&&a==null&&t.filter===!0&&(r=n()),r}var Vg={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},Sye=class extends dt{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},n=t.autoHeight?Vg.AUTO_HEIGHT:t.print?Vg.PRINT:Vg.NORMAL;this.view.updateLayoutClasses(n,t)}},tC="Viewport",OEe="fakeVScrollComp",zEe=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],TEe=100,tre=150,_4t=class extends dt{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=Ml(this,()=>this.lastScrollSource[1]=null,tre),this.resetLastVScrollDebounced=Ml(this,()=>this.lastScrollSource[0]=null,tre)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,n=>{this.centerRowsCtrl=n.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,tC)});for(const e of zEe){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),n=t?Ml(this,this.onVScroll.bind(this,tC),TEe):this.onVScroll.bind(this,tC),r=t?Ml(this,this.onVScroll.bind(this,OEe),TEe):this.onVScroll.bind(this,OEe);this.addManagedElementListeners(this.eBodyViewport,{scroll:n}),this.registerScrollPartner(e,r)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...zEe,tC]){if(this.lastScrollSource[1]===t)continue;const n=this.getViewportForSource(t);w$(n,e,this.enableRtl)}}getViewportForSource(e){return e===tC?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:n}=t;if(this.shouldBlockScrollUpdate(1,n,!0))return;const r=x$(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(r),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(e===tC?t=this.eBodyViewport.scrollTop:t=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:n}=this;n?.setScrollTop(t),this.nextScrollTop=t,e===tC?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,n?.active?n.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},tre)}shouldBlockScrollUpdate(e,t,n=!1){return n&&!xx()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=CK(this.eBodyViewport),{scrollHeight:n}=this.eBodyViewport;return e<0||e+t>n}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:n}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(tC)}scrollGridIfNeeded(e=!1){const t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){const r=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:r:e=Math.min(Math.max(e,0),r)),w$(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:n,lastScrollTop:r}=this;return{top:r,bottom:r+n}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:n}=this.beans,r=n.getRowCount();let i=-1;for(let o=0;o<r;o++){const a=n.getRow(o);if(typeof e=="function"){if(a&&e(a)){i=o;break}}else if(e===a||e===a.data){i=o;break}}i>=0&&this.ensureIndexVisible(i,t)}ensureIndexVisible(e,t,n=0){if(Uu(this.gos,"print"))return;const{rowModel:r}=this.beans,i=r.getRowCount();if(typeof e!="number"||e<0||e>=i){ut(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:o,pageBounds:a,rowContainerHeight:s,rowRenderer:l}=this.beans;o.wrapIncoming(()=>{const c=this.ctrlsSvc.getGridBodyCtrl(),u=r.getRow(e);let d,p,h=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:g,stickyBottomHeight:m}=c,b=u.rowTop,y=u.rowHeight,M=a.getPixelOffset(),C=u.rowTop-M,x=C+u.rowHeight,w=this.getVScrollPosition(),S=s.divStretchOffset,A=w.top+S,z=w.bottom+S,O=z-A,T=s.getScrollPositionForPixel(C),R=s.getScrollPositionForPixel(x-O),P=Math.min((T+R)/2,C),F=A+g>C,N=z-m<x;let L=null;t==="top"?L=T-g:t==="bottom"?L=R+m:t==="middle"?L=P:F?L=T-g:N&&(L=R+m),L!==null&&(this.setVerticalScrollPosition(L),l.redraw({afterScroll:!0})),d=b!==u.rowTop||y!==u.rowHeight,p=g!==c.stickyTopHeight||m!==c.stickyBottomHeight,h++}while((d||p)&&h<10);if(this.animationFrameSvc?.flushAllFrames(),n<10&&(u?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const g=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const m=this.getVScrollPosition().top;g!==m&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=r.getRowCount())&&this.ensureIndexVisible(e,t,n+1)}})}})}clearRetryListeners(){this.clearRetryListenerFncs.forEach(e=>e()),this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:n,frameworkOverrides:r}=this.beans,i=n.getCol(e);if(!i||i.isPinned()||!this.visibleCols.isColDisplayed(i))return;const o=this.getPositionedHorizontalScroll(i,t);r.wrapIncoming(()=>{o!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(o),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:n,columnAfterEnd:r}=this.isColumnOutsideViewport(e),i=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),o=this.centerRowsCtrl.getCenterWidth(),a=this.enableRtl;let s=(a?n:r)||i,l=a?r:n;t!=="auto"&&(s=t==="start",l=t==="end");const c=t==="middle";if(s||l||c){const{colLeft:u,colMiddle:d,colRight:p}=this.getColumnBounds(e);return c?d-o/2:s?a?p:u:a?u-o:p-o}return null}isColumnOutsideViewport(e){const{start:t,end:n}=this.getViewportBounds(),{colLeft:r,colRight:i}=this.getColumnBounds(e),o=this.enableRtl,a=o?t>i:n<i,s=o?n<r:t>r;return{columnBeforeStart:a,columnAfterEnd:s}}getColumnBounds(e){const t=this.enableRtl,n=this.visibleCols.bodyWidth,r=e.getActualWidth(),i=e.getLeft(),o=t?-1:1,a=t?n-i:i,s=a+r*o,l=a+r/2*o;return{colLeft:a,colMiddle:l,colRight:s}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),n=t,r=e+t;return{start:n,end:r,width:e}}},Aye=class extends dt{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=Uu(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:n}=this.beans,r=t.bodyWidth,i=t.getColsLeftWidth(),o=t.getDisplayedColumnsRightWidth();let a;e?a=r+i+o:(a=r,this.addSpacer&&(this.gos.get("enableRtl")?i:o)===0&&n.verticalScrollShowing&&(a+=n.getScrollbarWidth())),this.callback(a)}},N4t=class extends dt{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:n}=this,r=()=>{sh(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(r),n.registerBodyViewportResizeListener(r)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const n=this.centerContainerCtrl.getCenterWidth();n!==this.centerWidth&&(this.centerWidth=n,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=CK(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function Oye(e,t,n,r,i,o){if(n==null&&t==null)return;const a={},s={},l=(c,u)=>{c.split(" ").forEach(d=>{d.trim()!=""&&u(d)})};if(n){const c=Object.keys(n);for(let u=0;u<c.length;u++){const d=c[u],p=n[d];let h;typeof p=="string"?h=e?e.evaluate(p,r):!0:typeof p=="function"&&(h=p(r)),l(d,g=>{h?a[g]=!0:s[g]=!0})}}t&&o&&Object.keys(t).forEach(c=>l(c,u=>{a[u]||(s[u]=!0)})),o&&Object.keys(s).forEach(o),Object.keys(a).forEach(i)}function EEe(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var F4t=class extends dt{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const n=this.gos,r=a=>{typeof a=="string"?e.push(a):Array.isArray(a)&&a.forEach(s=>e.push(s))},i=n.get("rowClass");i&&r(i);const o=n.getCallback("getRowClass");if(o){const a={data:t.data,node:t,rowIndex:t.rowIndex},s=o(a);r(s)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,n=>{e.push(n)},()=>{})}processRowClassRules(e,t,n){const{gos:r,expressionSvc:i}=this.beans,o=Gn(r,{data:e.data,node:e,rowIndex:e.rowIndex});Oye(i,void 0,r.get("rowClassRules"),o,t,n)}processStylesFromGridOptions(e){const t=this.gos,n=t.get("rowStyle"),r=t.getCallback("getRowStyle");let i;if(r){const o={data:e.data,node:e,rowIndex:e.rowIndex};i=r(o)}if(i||n)return Object.assign({},n,i)}},W4t=0,_$="renderedRow",N$=class extends dt{constructor(e,t,n,r,i){super(),this.rowNode=e,this.useAnimationFrameForCreate=r,this.printLayout=i,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+W4t++,this.rowId=sm(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=EEe(this.rowNode),this.setRowType(),this.setAnimateFlags(n),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=sm(e)}updateGui(e,t){e==="left"?this.leftGui=t:e==="right"?this.rightGui=t:e==="fullWidth"?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,n,r){const{context:i,focusSvc:o}=this.beans;r=v6(this,i,r);const a={rowComp:e,element:t,containerType:n,compBean:r};this.allRowGuis.push(a),this.updateGui(n,a),this.initialiseRowComp(a);const s=this.rowNode,l=this.rowType==="FullWidthLoading"||s.stub,c=!s.data&&this.beans.rowModel.getType()==="infinite";!l&&!c&&!s.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent();const u=this.fullWidthGui?.element;u&&!this.editing&&o.isRowFocused(s.rowIndex,s.rowPinned)&&o.shouldTakeFocus()&&setTimeout(()=>u.focus({preventScroll:!0}),0)}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";this.allRowGuis.forEach(n=>n.element.style.display=t)}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Kp(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const n=e.rowComp;this.getInitialRowClasses(e.containerType).forEach(i=>n.toggleCss(i,!0)),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&d1(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(n),this.setRowCompRowBusinessKey(n),vz(t,e.element,_$,this),e.compBean.addDestroyFunc(()=>vz(t,e.element,_$,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){this.businessKey!=null&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=sm(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(A$(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(A$(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const n=this.createBean(t,this.beans.context);this.rowDragComps.push(n),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(r=>r!==n),this.destroyBean(n,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),n=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(n)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:n,beans:{visibleCols:r}}=this,i=!!e||!r.isPinningLeft(),o=!!t,a=!!n||!r.isPinningRight();return i&&o&&a}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this.rowNode}):!1}setRowType(){const e=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),t=this.isNodeFullWidthCell(),n=this.gos.get("masterDetail")&&this.rowNode.detail,r=this.beans.colModel.isPivotMode(),i=sye(this.gos,this.rowNode,r);e?this.rowType="FullWidthLoading":n?this.rowType="FullWidthDetail":t?this.rowType="FullWidth":i?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:n}=this.beans;if(!n?.active||e||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(n.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new LN(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,n=null){const r={list:[],map:{}},i=(c,u,d)=>{d!=null?r.list.splice(d,0,u):r.list.push(u),r.map[c]=u},o=[];for(const c of t){const u=c.getInstanceId();let d=e.map[u];d&&!this.isCorrectCtrlForSpan(d)&&(d.destroy(),d=void 0),d||(d=this.getNewCellCtrl(c)),d&&i(u,d)}for(const c of e.list){const u=c.column.getInstanceId();if(r.map[u]!=null)continue;!this.isCellEligibleToBeRemoved(c,n)?o.push([u,c]):c.destroy()}if(o.length)for(const[c,u]of o){const d=r.list.findIndex(h=>h.column.getLeft()>u.column.getLeft()),p=d===-1?void 0:Math.max(d-1,0);i(c,u,p)}const{focusSvc:a,visibleCols:s}=this.beans,l=a.getFocusedCell();if(l&&l.column.getPinned()==n){const c=l.column.getInstanceId();if(!r.map[c]&&s.allCols.includes(l.column)){const d=this.createFocusedCellCtrl();if(d){const p=r.list.findIndex(g=>g.column.getLeft()>d.column.getLeft()),h=p===-1?void 0:Math.max(p-1,0);i(c,d,h)}}}return r}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,n=e.getFocusedCell();if(!n)return;const r=t?.getCellSpan(n.column,this.rowNode);if(r){if(r.firstNode!==this.rowNode||!r.doesSpanContain(n))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(n.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){this.allRowGuis.forEach(t=>{const n=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(n,e)})}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const n=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);const r=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");const i=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,"right")}}isCellEligibleToBeRemoved(e,t){const{column:i}=e;if(i.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{editing:o}=e,{visibleCols:a}=this.beans,s=e.isCellFocused();return o||s?!(a.allCols.indexOf(i)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||Uu(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=Ut(this.rowNode.oldRowTop),{visibleCols:n}=this.beans,r=n.isPinningLeft(),i=n.isPinningRight();if(t){const{slideInAnimation:o}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){o.fullWidth=!0;return}o.center=!0,o.left=r,o.right=i}else{const{fadeInAnimation:o}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){o.fullWidth=!0;return}o.center=!0,o.left=r,o.right=i}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(a,s)=>a?a.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(a.element,s).params):!0,t=e(this.fullWidthGui,null),n=e(this.centerGui,null),r=e(this.leftGui,"left"),i=e(this.rightGui,"right");return t&&n&&r&&i}addListeners(){this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...this.beans.expansionSvc?.getRowExpandedListeners(this)??{}}),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(this.beans.eventSvc,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),this.beans.rowSpanSvc&&this.addManagedListeners(this.beans.rowSpanSvc,{spannedCellsUpdated:({pinned:e})=>{e&&!this.rowNode.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(this.gos.get("rowDragEntireRow")){this.allRowGuis.forEach(t=>{this.addRowDraggerToRow(t)});return}this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onRowIndexChanged())},cellChanged:e=>{this.getAllCellCtrls().forEach(t=>t.onCellChanged(e))}})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(n=>n.refreshCell({suppressFlash:!e.update,newData:!e.update})),this.allRowGuis.forEach(n=>{this.setRowCompRowId(n.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(n.rowComp)}),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.rowNode.highlighted;this.allRowGuis.forEach(t=>{const n=e==="Above",r=e==="Below";t.rowComp.toggleCss("ag-row-highlight-above",n),t.rowComp.toggleCss("ag-row-highlight-below",r)})}postProcessRowDragging(){const e=this.rowNode.dragging;this.allRowGuis.forEach(t=>t.rowComp.toggleCss("ag-row-dragging",e))}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:Tc(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:n,column:r}=t;if(!(n.element===e.target))return;const a=this.rowNode,{focusSvc:s,navigation:l}=this.beans,c=s.getFocusedCell(),u={rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:c?.column??r};l?.navigateToNextCell(e,e.key,u,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||rh(e))return;const t=this.allRowGuis.find(s=>s.element.contains(e.target)),n=t?t.element:null,r=n===e.target,i=$i(this.beans);let o=!1;n&&i&&(o=n.contains(i)&&i.classList.contains("ag-cell"));let a=null;!r&&!o&&(a=Cd(this.beans,n,!1,e.shiftKey)),(this.isFullWidth()&&r||!a)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>x0(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:-1;this.allRowGuis.forEach(n=>{Af(n.element,"tabindex",t)})}onFullWidthRowFocused(e){const t=this.rowNode,n=e?this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned:!1;let r;if(this.fullWidthGui)r=this.fullWidthGui.element;else{const o=this.beans.colModel.getCol(e?.column)?.pinned;o?r=o==="right"?this.rightGui?.element:this.leftGui?.element:r=this.centerGui?.element}r&&(r.classList.toggle("ag-full-width-focus",n),n&&e?.forceBrowserFocus&&r.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const n={list:[],map:{}};return e.list.forEach(r=>{r!==t&&(n.list.push(r),n.map[r.column.getInstanceId()]=r)}),n}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:n}=this;return Gn(this.gos,{type:e,node:n,data:n.data,rowIndex:n.rowIndex,rowPinned:n.rowPinned,event:t})}createRowEventWithSource(e,t){const n=this.createRowEvent(e,t);return n.source=this,n}onRowDblClick(e){rh(e)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",e))}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),n=this.getColumnForFullWidth(t);if(!(!t||!n))return{rowGui:t,column:n}}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=kO(e.target,"ag-row-drag",3),!this.isFullWidth())return;const t=this.rowNode,{rangeSvc:n,focusSvc:r}=this.beans;n?.removeAllCellRanges();const i=this.findFullWidthInfoForEvent(e);if(!i)return;const{rowGui:o,column:a}=i,s=o.element,l=e.target;let c=e.defaultPrevented||yw();s&&s.contains(l)&&J2e(l)&&(c=!1),r.setFocusedCell({rowIndex:t.rowIndex,column:a,rowPinned:t.rowPinned,forceBrowserFocus:c})}onRowClick(e){if(rh(e)||this.lastMouseDownOnDragger)return;const{eventSvc:n,selectionSvc:r}=this.beans;n.dispatchEvent(this.createRowEventWithSource("rowClicked",e)),r?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowType==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:n,rowNode:r}=this,i=Gn(n,{fullWidth:!0,data:r.data,node:r,value:r.key,valueFormatted:r.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(a,s,l,c)=>this.addFullWidthRowDragging(a,s,l,c),setTooltip:(a,s)=>{n.assertModuleRegistered("Tooltip",3),this.refreshRowTooltip(a,s)}}),o=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return jLt(o,i);case"FullWidthGroup":{const{value:a,valueFormatted:s}=this.beans.valueSvc.getValueForDisplay(void 0,this.rowNode,!0);return i.value=a,i.valueFormatted=s,BLt(o,i)}case"FullWidthLoading":return qLt(o,i);default:return WLt(o,i)}}refreshRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.refreshRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,n="",r){const{rowDragSvc:i,context:o}=this.beans;if(!i||!this.isFullWidth())return;const a=i.createRowDragComp(()=>n,this.rowNode,void 0,e,t,r);this.createBean(a,o),this.addDestroyFunc(()=>{this.destroyBean(a,o)})}onUiLevelChanged(){const e=EEe(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(r=>{r.rowComp.toggleCss(t,!0),r.rowComp.toggleCss(n,!1)})}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(n=>n.rowComp.toggleCss("ag-row-first",e))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach(n=>n.rowComp.toggleCss("ag-row-last",t)))}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=[];this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),e.length&&e.forEach(t=>{this.allRowGuis.forEach(n=>n.rowComp.toggleCss(t,!0))})}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>{this.allRowGuis.forEach(t=>t.rowComp.toggleCss(e,!0))},e=>{this.allRowGuis.forEach(t=>t.rowComp.toggleCss(e,!1))})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,n=>n.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),n=this.isFullWidth(),{rowNode:r,beans:i}=this,o=[];o.push("ag-row"),o.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&o.push("ag-opacity-zero"),o.push(r.rowIndex%2===0?"ag-row-even":"ag-row-odd"),r.isRowPinned()&&(o.push("ag-row-pinned"),i.pinnedRowModel?.isManual()&&o.push("ag-row-pinned-manual")),!r.isRowPinned()&&r.pinnedSibling&&o.push("ag-row-pinned-source"),r.isSelected()&&o.push("ag-row-selected"),r.footer&&o.push("ag-row-footer"),o.push("ag-row-level-"+this.rowLevel),r.stub&&o.push("ag-row-loading"),n&&o.push("ag-full-width-row"),i.expansionSvc?.addExpandedCss(o,r),r.dragging&&o.push("ag-row-dragging");const{rowStyleSvc:a}=i;return a&&(a.processClassesFromGridOptions(o,r),a.preProcessRowClassRules(o,r)),o.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&o.push("ag-row-first"),this.isLastRowOnPage()&&o.push("ag-row-last"),n&&(t==="left"&&o.push("ag-cell-last-left-pinned"),t==="right"&&o.push("ag-cell-first-right-pinned")),o}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,t=>{(t===this.centerGui||t===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:n}=e,{rowNode:r,beans:i,gos:o}=this;n.addManagedListeners(t,{mouseenter:()=>r.dispatchRowEvent("mouseEnter"),mouseleave:()=>r.dispatchRowEvent("mouseLeave")}),n.addManagedListeners(r,{mouseEnter:()=>{!i.dragSvc?.dragging&&!o.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),r.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(n=>n.element);for(const n of t)n.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)}forEachGui(e,t){e?t(e):this.allRowGuis.forEach(t)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),i=rye(this.gos)?bd(this.beans,this.rowNode).height:void 0,o=i?`${Math.min(n,i)-2}px`:void 0;this.forEachGui(e,a=>{a.element.style.height=`${t}px`,o&&a.element.style.setProperty("--ag-line-height",o)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&oI(this.gos)&&!t.sticky)if(t.rowTop!=null){const i=this.roundRowTopToBounds(t.rowTop);this.setRowTop(i)}else this.allRowGuis.forEach(i=>i.rowComp.toggleCss("ag-opacity-zero",!0));this.fullWidthGui?.element.contains($i(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const n=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(n),this.beans.eventSvc.dispatchEvent(n),super.destroy()}destroySecondPass(){this.allRowGuis.length=0,this.beans.editSvc?.stopRowEditing(this);const e=t=>(t.list.forEach(n=>n.destroy()),{list:[],map:{}});this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.toggleCss("ag-row-focus",this.rowFocused),t.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e,editSvc:t}=this.beans,n=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);n!==this.rowFocused&&(this.rowFocused=n,this.setFocusedClasses()),!n&&this.editing&&t?.stopRowEditing(this,!1)}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const n=this.beans.pageBounds.getPixelOffset();return e+n*(t?1:-1)}setRowTop(e){if(!this.printLayout&&Ut(e)){const t=this.applyPaginationOffset(e),i=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(i)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let n;if(t.sticky)n=t.stickyRowTop;else{const r=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,i=this.applyPaginationOffset(r);n=t.isRowPinned()?i:this.beans.rowContainerHeight.getRealPixelPosition(i)}return n+"px"}setRowTopStyle(e){this.allRowGuis.forEach(t=>this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`))}getCellCtrl(e,t=!1){let n=null;return this.getAllCellCtrls().forEach(r=>{r.column==e&&(n=r)}),n!=null||t||this.getAllCellCtrls().forEach(r=>{r.getColSpanningList().indexOf(e)>=0&&(n=r)}),n}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(t===null)return;const n=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),r=this.rowNode.rowIndex%2===0,i=n+this.rowNode.rowIndex+1;this.forEachGui(e,o=>{o.rowComp.setRowIndex(t),o.rowComp.toggleCss("ag-row-even",r),o.rowComp.toggleCss("ag-row-odd",!r),MK(o.element,i)})}};function zye(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function ghe(e,t,n,r,i){const o=r?r.getColDef().suppressKeyboardEvent:void 0;if(!o)return!1;const a=Gn(e,{event:t,editing:i,column:r,node:n,data:n.data,colDef:r.getColDef()});return!!(o&&o(a))}function mhe(e){const{pinnedRowModel:t,rowModel:n}=e,[r,i]=[t?.isEmpty("top")??!0,t?.isEmpty("bottom")??!0],o=r?null:"top";let a,s;i?(a=null,s=n.getRowCount()-1):(a="bottom",s=t?.getPinnedBottomRowCount()??-1);const{visibleCols:l,rangeSvc:c}=e,u=l.allCols;!c||!u?.length||c.setCellRange({rowStartIndex:0,rowStartPinned:o,rowEndIndex:s,rowEndPinned:a})}var q4t=65,B4t=67,j4t=86,H4t=68,V4t=90,G4t=89;function $4t(e){const{keyCode:t}=e;let n;switch(t){case q4t:n=Qe.A;break;case B4t:n=Qe.C;break;case j4t:n=Qe.V;break;case H4t:n=Qe.D;break;case V4t:n=Qe.Z;break;case G4t:n=Qe.Y;break;default:n=e.code}return n}var U4t=class extends dt{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this)}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",ket("touchstart")?"touchstart":"mousedown"].forEach(n=>{const r=this.processMouseEvent.bind(this,n);this.addManagedElementListeners(this.element,{[n]:r})})}processMouseEvent(e,t){if(!gW(this.gos,t)||rh(t))return;const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(n?.column&&n.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,r,n)):(n&&n.onMouseEvent(e,t),r&&r.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:yye(t,e),rowCtrl:Let(t,e,_$)}}processKeyboardEvent(e,t){const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,n){const{rowNode:r,column:i,editing:o}=e;!ghe(this.gos,n,r,i,o)&&t==="keydown"&&(!o&&this.beans.navigation?.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.editing),zye(n)&&e.processCharacter(n)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(n,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,n){const{rowNode:r}=e,{focusSvc:i,navigation:o}=this.beans,a=i.getFocusedCell(),s=a&&a.column;if(!ghe(this.gos,n,r,s,!1)){const c=n.key;if(t==="keydown")switch(c){case Qe.PAGE_HOME:case Qe.PAGE_END:case Qe.PAGE_UP:case Qe.PAGE_DOWN:o?.handlePageScrollingKey(n,!0);break;case Qe.LEFT:case Qe.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case Qe.UP:case Qe.DOWN:e.onKeyboardNavigate(n);break;case Qe.TAB:e.onTabKeyDown(n);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",n))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!gW(this.gos,e))return;const n=$4t(e),{clipboardSvc:r,undoRedo:i}=this.beans;if(n===Qe.A)return this.onCtrlAndA(e);if(n===Qe.C)return this.onCtrlAndC(r,e);if(n===Qe.D)return this.onCtrlAndD(r,e);if(n===Qe.V)return this.onCtrlAndV(r,e);if(n===Qe.X)return this.onCtrlAndX(r,e);if(n===Qe.Y)return this.onCtrlAndY(i);if(n===Qe.Z)return this.onCtrlAndZ(i,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:n,selectionSvc:r},gos:i}=this;n&&r1(i)&&t.isRowsToRender()?mhe(this.beans):r&&r?.selectAllRowNodes({source:"keyboardSelectAll",selectAll:Eet(i)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);n?.editing||r?.editing||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);n?.editing||r?.editing||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);n?.editing||r?.editing||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}},Ett=class extends dt{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,n=t!=null?`${t}px`:"";this.eContainer.style.height=n,this.eViewport&&(this.eViewport.style.height=n)}},GH=e=>e.topRowCtrls,$H=e=>e.getStickyTopRowCtrls(),UH=e=>e.getStickyBottomRowCtrls(),XH=e=>e.bottomRowCtrls,YH=e=>e.allRowCtrls,nre=e=>e.getCtrls("top"),rre=e=>e.getCtrls("center"),ire=e=>e.getCtrls("bottom"),X4t={center:{type:"center",name:"center-cols",getRowCtrls:YH,getSpannedRowCtrls:rre},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:YH,getSpannedRowCtrls:rre},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:YH,getSpannedRowCtrls:rre},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:YH},topCenter:{type:"center",name:"floating-top",getRowCtrls:GH,getSpannedRowCtrls:nre},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:GH,getSpannedRowCtrls:nre},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:GH,getSpannedRowCtrls:nre},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:GH},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:$H},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:$H},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:$H},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:$H},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:UH},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:UH},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:UH},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:UH},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:XH,getSpannedRowCtrls:ire},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:XH,getSpannedRowCtrls:ire},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:XH,getSpannedRowCtrls:ire},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:XH}};function Tye(e){return`ag-${mD(e).name}-viewport`}function _N(e){const t=mD(e);return t.container??`ag-${t.name}-container`}function Rtt(e){return`ag-${mD(e).name}-spanned-cells-container`}function mD(e){return X4t[e]}var Y4t=["topCenter","topLeft","topRight"],K4t=["bottomCenter","bottomLeft","bottomRight"],Q4t=["center","left","right"],Z4t=["center","left","right","fullWidth"],J4t=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],e_t=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],t_t=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],Itt=["stickyTopCenter","stickyTopLeft","stickyTopRight"],Ptt=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],n_t=[...Itt,"stickyTopFullWidth",...Ptt,"stickyBottomFullWidth"],r_t=[...Y4t,...K4t,...Q4t,...Itt,...Ptt],Dtt=class extends dt{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=mD(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new N4t(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,n,r){this.comp=e,this.eContainer=t,this.eSpannedContainer=n,this.eViewport=r,this.createManagedBean(new U4t(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:i,rangeSvc:o}=this.beans,a=()=>this.onPinnedWidthChanged();this.forContainers(e_t,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(i?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:a})}),this.forContainers(t_t,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(i?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:a})}),this.forContainers(Z4t,()=>this.createManagedBean(new Ett(this.eContainer,this.name==="center"?r:void 0))),o&&this.forContainers(r_t,()=>this.createManagedBean(o.createDragListenerFeature(this.eContainer))),this.forContainers(J4t,()=>this.createManagedBean(new Aye(s=>this.comp.setContainerWidth(`${s}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,n=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:n,displayedColumnsWidthChanged:n,displayedRowsChanged:r=>this.onDisplayedRowsChanged(r.afterScroll)}),n(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const r=this.options.getSpannedRowCtrls(e);r&&this.comp.setSpannedRowCtrls(r,!1)}})}listenOnDomOrder(){if(n_t.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const n=this.gos.get("ensureDomOrder"),r=Uu(this.gos,"print");this.comp.setDomOrder(n||r)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=n=>{e.dragging&&n.cancelable&&n.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),n=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,n,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return JI(this.eViewport)}getCenterViewportScrollLeft(){return x$(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=Hf(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return uet(this.eViewport)}getViewportScrollLeft(){return x$(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||ykt(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){w$(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const n=Uu(this.gos,"print"),i=this.gos.get("embedFullWidthRows")||n,o=t.filter(a=>{const s=a.isFullWidth();return this.options.fullWidth?!i&&s:i||!s});this.comp.setRowCtrls({rowCtrls:o,useFlushSync:e})}},ktt="ag-force-vertical-scroll",i_t="ag-selectable",o_t="ag-column-moving",Ltt=class extends dt{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,n,r,i,o,a){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=r,this.eBottom=i,this.eStickyTop=o,this.eStickyBottom=a,this.eCenterColsViewport=n.querySelector(`.${Tye("center")}`),this.eFullWidthContainer=n.querySelector(`.${_N("fullWidth")}`),this.eStickyTopFullWidthContainer=o.querySelector(`.${_N("stickyTopFullWidth")}`),this.eStickyBottomFullWidthContainer=a.querySelector(`.${_N("stickyBottomFullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",s=>this.setCellTextSelection(s.currentValue)),this.createManagedBean(new Sye(this.comp)),this.scrollFeature=this.createManagedBean(new _4t(n)),this.beans.rowDragSvc?.setupRowDrag(n,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,i,o,a]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(r),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),n=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:n,rowResizeEnded:n}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t=e.type==="rowResizeStarted";this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const n=t&&e.getScrollbarWidth()||0,r=oet()?16:0,i=`calc(100% + ${n+r}px)`;sh(this.beans,()=>this.comp.setBodyViewportWidth(i)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t}=this;let n=this.gos.get("treeData");if(!n){const r=t.isPivotMode();n=(e?e.columns.length:0)>=(r?2:1)}this.comp.setGridRootRole(n?"treegrid":"grid")}addFocusListeners(e){e.forEach(t=>{this.addManagedElementListeners(t,{focusin:n=>{const{target:r}=n,i=kO(r,"ag-root",t);t.classList.toggle("ag-has-focus",!i)},focusout:n=>{const{target:r,relatedTarget:i}=n,o=t.contains(i),a=kO(i,"ag-root",t);kO(r,"ag-root",t)||(!o||a)&&t.classList.remove("ag-has-focus")}})})}setColumnMovingCss(e){this.comp.setColumnMovingCss(o_t,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(i_t,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,n=t.isLastRowIndexKnown()?t.getRowCount():-1,r=n===-1?-1:e+n;this.comp.setRowCount(r)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?ktt:null,n=Uu(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||n&&Mkt(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let n=t.sizesMeasured;const r=()=>{const i=n&&oI(this.gos)&&!e.stretching,o=i?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(o,i)};r(),this.addManagedEventListeners({heightScaleChanged:r}),this.addManagedPropertyListener("animateRows",r),this.addManagedEventListeners({gridStylesChanged:()=>{!n&&t.sizesMeasured&&(n=!0,r())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:n,eTop:r,eBottom:i,beans:{popupSvc:o,touchSvc:a}}=this,s=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:s}),a?.mockBodyContextMenu(this,s),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,o)});const l=this.onStickyWheel.bind(this);for(const u of[t,n,r,i])this.addManagedElementListeners(u,{wheel:l});const c=this.onHorizontalWheel.bind(this);for(const u of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(u).eContainer,{wheel:c});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:n,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(n))&&gW(this.gos,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;e.preventDefault(),this.scrollVertically(t)}onHorizontalWheel(e){const{deltaX:t,deltaY:n,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(n))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:n}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||n})}onBodyViewportContextMenu(e,t,n){if(!e&&!n)return;this.gos.get("preventDefaultOnContextMenu")&&(e||n).preventDefault();const{target:r}=e||t;(r===this.eBodyViewport||r===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:n,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,n=e?.getPinnedTopTotalHeight(),r=e?.getPinnedBottomTotalHeight(),i=t.getPinnedRowBorderWidth(),o=t.getRowBorderWidth(),a=i-o,s=n?a+n:0,l=r?a+r:0;this.comp.setTopHeight(s),this.comp.setBottomHeight(l),this.comp.setTopInvisible(s<=0),this.comp.setBottomInvisible(l<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),n=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let r=0;t>0&&(r+=t),n>0&&(r+=n),r>0&&(r+=1),this.comp.setStickyTopTop(`${r}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:n}=this,r=e?.getPinnedBottomTotalHeight()??0,o=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,a=r+o;n.setStickyBottomBottom(`${a}px`)}},_tt=class extends Gt{constructor(e,t){super(),this.direction=t,this.eViewport=at,this.eContainer=at,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",ret()||xx())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=oet(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),n=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:n,touchend:n})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),sh(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;fet(()=>x0(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},a_t={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},Ntt=class extends _tt{constructor(){super(a_t,"horizontal"),this.eLeftSpacer=at,this.eRightSpacer=at,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new Aye(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const n=!this.enableRtl&&e,r=this.scrollVisibleSvc.getScrollbarWidth();n&&(t+=r),am(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);let i=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(i+=r),am(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=r)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,n=this.gos.get("suppressHorizontalScroll"),r=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,o=n?0:r===0&&t?16:r,a=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),DN(this.getGui(),o),DN(this.eViewport,o),DN(this.eContainer,o),o||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(a,100):a()}getScrollPosition(){return x$(this.eViewport,this.enableRtl)}setScrollPosition(e){x0(this.eViewport)||this.attemptSettingScrollPosition(e),w$(this.eViewport,e,this.enableRtl)}},s_t={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:Ntt},l_t={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},Ftt=class extends _tt{constructor(){super(l_t,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new Ett(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,n=this.invisibleScrollbar,r=t&&e.getScrollbarWidth()||0,i=r===0&&n?16:r;this.toggleCss("ag-scrollbar-invisible",n),am(this.getGui(),i),am(this.eViewport,i),am(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const n=e.getGridBodyCtrl().eBodyViewport,r=this.getScrollPosition(),i=n.scrollTop;r!=i&&this.setScrollPosition(i,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!x0(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},c_t={selector:"AG-FAKE-VERTICAL-SCROLL",component:Ftt};function Wtt(e){return e.cols?e.cols.treeDepth+1:-1}function Zv(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function Eye(e){const t=[],n=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const r of n){if(!r)continue;const i=r.getGroupRowCount()||0;for(let o=0;o<i;o++){const a=r.getGroupRowCtrlAtIndex(o),s=t[o];if(a){const l=u_t(e,a);(s==null||l>s)&&(t[o]=l)}}}return t}function u_t(e,t){let r=e.colModel.isPivotMode()?p_t(e):qtt(e);const i=t.getHeaderCellCtrls();for(const o of i){const{column:a}=o,s=a.getAutoHeaderHeight();s!=null&&s>r&&a.isAutoHeaderHeight()&&(r=s)}return r}function Rye(e){let n=e.colModel.isPivotMode()?d_t(e):M6(e);return e.colModel.forAllCols(r=>{const i=r.getAutoHeaderHeight();i!=null&&i>n&&r.isAutoHeaderHeight()&&(n=i)}),n}function M6(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function Iye(e){return e.gos.get("floatingFiltersHeight")??M6(e)}function qtt(e){return e.gos.get("groupHeaderHeight")??M6(e)}function d_t(e){return e.gos.get("pivotHeaderHeight")??M6(e)}function p_t(e){return e.gos.get("pivotGroupHeaderHeight")??qtt(e)}var Btt=class extends dt{setComp(e,t,n){this.comp=e,this.eGui=t;const{beans:r}=this,{headerNavigation:i,touchSvc:o,ctrlsSvc:a}=r;i&&this.createManagedBean(new Mw(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,r),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,r)}),this.onPivotModeChanged(r),this.setupHeaderHeight();const s=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:s}),o?.mockHeaderContextMenu(this,s),a.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({displayedColumnsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>sh(this.beans,()=>e()),gridStylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const n=Eye(e).reduce((o,a)=>o+a,0),r=Rye(e);if(e.filterManager?.hasFloatingFilters()&&(t+=Iye(e)),t+=n,t+=r,this.headerHeight===t)return;this.headerHeight=t;const i=`${t+1}px`;this.comp.setHeightAndMinHeight(i),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const n=e.visibleCols.allCols.some(r=>r.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",n)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),n=e.shiftKey,r=n!==t?"LEFT":"RIGHT",{beans:i}=this,{headerNavigation:o,focusSvc:a}=i;(o.navigateHorizontally(r,!0,e)||!n&&a.focusOverlay(!1)||Eb(i,n,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:n}=this.beans;switch(e.key){case Qe.LEFT:t="LEFT";case Qe.RIGHT:{Ut(t)||(t="RIGHT"),n.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case Qe.UP:t="UP";case Qe.DOWN:{Ut(t)||(t="DOWN"),n.navigateVertically(t,null,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:n,beans:r}=this;!t&&n.contains($i(r))||n.contains(t)||(r.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,n){const{menuSvc:r,ctrlsSvc:i}=this.beans;if(!e&&!n||!r?.isHeaderContextMenuEnabled())return;const{target:o}=e??t;(o===this.eGui||o===i.getHeaderRowContainerCtrl()?.eViewport)&&r.showHeaderContextMenu(void 0,e,n)}},Pye=class extends Gt{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},h_t={tag:"div",cls:"ag-header-cell",role:"columnheader",children:[{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"},{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"}]},f_t=class extends Pye{constructor(t){super(h_t,t),this.eResize=at,this.eHeaderCompWrapper=at,this.headerCompVersion=0}postConstruct(){const t=this.getGui();((o,a)=>{a!=null&&a!=""?t.setAttribute(o,a):t.removeAttribute(o)})("col-id",this.ctrl.column.getColId());const r={setWidth:o=>t.style.width=o,toggleCss:(o,a)=>this.toggleCss(o,a),setUserStyles:o=>m6(t,o),setAriaSort:o=>o?eet(t,o):tet(t),setUserCompDetails:o=>this.setUserCompDetails(o),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);const i=this.ctrl.getSelectAllGui();i&&this.eResize.insertAdjacentElement("afterend",i)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(t){this.headerCompVersion++;const n=this.headerCompVersion;t.newAgStackInstance().then(r=>this.afterCompCreated(n,r))}afterCompCreated(t,n){if(t!=this.headerCompVersion||!this.isAlive()){this.destroyBean(n);return}this.destroyHeaderComp(),this.headerComp=n,this.headerCompGui=n.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},g_t={tag:"div",cls:"ag-header-group-cell",role:"columnheader",children:[{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"},{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"}]},m_t=class extends Pye{constructor(t){super(g_t,t),this.eResize=at,this.eHeaderCompWrapper=at}postConstruct(){const t=this.getGui(),n=(i,o)=>o!=null?t.setAttribute(i,o):t.removeAttribute(i);t.setAttribute("col-id",this.ctrl.column.getUniqueId());const r={toggleCss:(i,o)=>this.toggleCss(i,o),setUserStyles:i=>m6(t,i),setHeaderWrapperHidden:i=>{i?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:i=>{i!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${i}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",i!=null)},setResizableDisplayed:i=>Nn(this.eResize,i),setWidth:i=>t.style.width=i,setAriaExpanded:i=>n("aria-expanded",i),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(r,t,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(t){t.newAgStackInstance().then(n=>this.afterHeaderCompCreated(n))}afterHeaderCompCreated(t){const n=()=>this.destroyBean(t);if(!this.isAlive()){n();return}const r=this.getGui(),i=t.getGui();this.eHeaderCompWrapper.appendChild(i),this.addDestroyFunc(n),this.headerGroupComp=t,this.ctrl.setDragSource(r)}addOrRemoveHeaderWrapperStyle(t,n){const{eHeaderCompWrapper:r}=this;n?r.style.setProperty(t,n):r.style.removeProperty(t)}},v_t={tag:"div",cls:"ag-header-cell ag-floating-filter",role:"gridcell",children:[{tag:"div",ref:"eFloatingFilterBody",role:"presentation"},{tag:"div",ref:"eButtonWrapper",cls:"ag-floating-filter-button ag-hidden",role:"presentation",children:[{tag:"button",ref:"eButtonShowMainFilter",cls:"ag-button ag-floating-filter-button-button",attrs:{type:"button",tabindex:"-1"}}]}]},b_t=class extends Pye{constructor(t){super(v_t,t),this.eFloatingFilterBody=at,this.eButtonWrapper=at,this.eButtonShowMainFilter=at}postConstruct(){const t=this.getGui(),n={toggleCss:(r,i)=>this.toggleCss(r,i),setUserStyles:r=>m6(t,r),addOrRemoveBodyCssClass:(r,i)=>this.eFloatingFilterBody.classList.toggle(r,i),setButtonWrapperDisplayed:r=>Nn(this.eButtonWrapper,r),setCompDetails:r=>this.setCompDetails(r),getFloatingFilterComp:()=>this.compPromise,setWidth:r=>t.style.width=r,setMenuIcon:r=>this.eButtonShowMainFilter.appendChild(r)};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(t){if(!t){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=t.newAgStackInstance(),this.compPromise.then(n=>this.afterCompCreated(n))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(t){if(t){if(!this.isAlive()){this.destroyBean(t);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=t,this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()}}},y_t=class extends Gt{constructor(t){super({tag:"div",cls:t.headerRowClass,role:"row"}),this.ctrl=t,this.headerComps={}}postConstruct(){MK(this.getGui(),this.ctrl.getAriaRowIndex());const t={setHeight:n=>this.getGui().style.height=n,setTop:n=>this.getGui().style.top=n,setHeaderCtrls:(n,r)=>this.setHeaderCtrls(n,r),setWidth:n=>this.getGui().style.width=n};this.ctrl.setComp(t,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(t,n){if(!this.isAlive())return;const r=this.headerComps;if(this.headerComps={},t.forEach(i=>{const o=i.instanceId;let a=r[o];delete r[o],a==null&&(a=this.createHeaderComp(i),this.getGui().appendChild(a.getGui())),this.headerComps[o]=a}),Object.values(r).forEach(i=>{this.getGui().removeChild(i.getGui()),this.destroyBean(i)}),n){const i=Object.values(this.headerComps);i.sort((a,s)=>{const l=a.getCtrl().column.getLeft(),c=s.getCtrl().column.getLeft();return l-c});const o=i.map(a=>a.getGui());pet(this.getGui(),o)}}createHeaderComp(t){let n;switch(this.ctrl.type){case"group":n=new m_t(t);break;case"filter":n=new b_t(t);break;default:n=new f_t(t);break}return this.createBean(n),n.setParentComponent(this),n}},Dye=class extends dt{constructor(e,t,n,r){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=r,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=n}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?zr(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,n=e.get("suppressColumnMoveAnimation"),r=Ut(this.columnOrGroup.getOldLeft());t?.isActive()&&r&&!n?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),n=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=n,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===n&&this.setLeft(n)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:n,visibleCols:r}=this.beans;if(!Uu(n,"print")||e.getPinned()==="left")return t;const o=r.getColsLeftWidth();if(e.getPinned()==="right"){const a=r.bodyWidth;return o+a+t}return o+t}setLeft(e){if(Ut(e)&&(this.eCell.style.left=`${e}px`),Pl(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&JJe(this.ariaEl,t.length)}}},M_t=0,jtt="headerCtrl",kye=class extends dt{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=e.getUniqueId()+"-"+M_t++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}shouldStopEventPropagation(e){const{headerRowIndex:t,column:n}=this.beans.focusSvc.focusedHeader,r=n.getDefinition(),i=r&&r.suppressHeaderKeyboardEvent;if(!Ut(i))return!1;const o=Gn(this.gos,{colDef:r,column:n,headerRowIndex:t,event:e});return!!i(o)}getWrapperHasFocus(){return $i(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let n;if(typeof t=="function"){const r=this.getHeaderClassParams();n=t(r)}else n=t;n&&this.comp.setUserStyles(n)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:n,compBean:r}=e,{beans:i}=this,o=d=>{if(!this.isAlive()||!r.isAlive())return;const{paddingTop:p,paddingBottom:h,borderBottomWidth:g,borderTopWidth:m}=f3(this.eGui),b=p+h+g+m,M=t.offsetHeight+b;if(d<5){const C=bl(i),x=!C||!C.contains(t),w=M==0;if(x||w){A$(()=>o(d+1),"raf",i);return}}this.setColHeaderHeight(this.column,M)};let a=!1,s;const l=()=>{const d=this.column.isAutoHeaderHeight();d&&!a&&c(),!d&&a&&u()},c=()=>{a=!0,o(0),this.comp.toggleCss("ag-header-cell-auto-height",!0),s=Hf(this.beans,t,()=>o(0))},u=()=>{a=!1,s&&s(),this.comp.toggleCss("ag-header-cell-auto-height",!1),s=void 0};l(),r.addDestroyFunc(()=>u()),r.addManagedListeners(this.column,{widthChanged:()=>a&&o(0)}),r.addManagedEventListeners({sortChanged:()=>{a&&window.setTimeout(()=>o(0))}}),n&&n(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:n,eGui:r}=this;!e||!t||!r||(dtt(e,t,n.visibleCols),Y2e(r,n.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=NO(this.beans);this.eGui&&Af(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=$i(this.beans),n=e.key===Qe.LEFT||e.key===Qe.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey||((this.isResizing||n)&&(e.preventDefault(),e.stopImmediatePropagation()),!n))return;const i=e.key===Qe.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const o=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(o,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(i)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:n}=this.beans;return n?n.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:n}=this;let r=e.key===Qe.LEFT!==t.get("enableRtl");const i=n.getPinned(),o=t.get("enableRtl");return i&&o!==(i==="right")&&(r=!r),(r?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case Qe.PAGE_DOWN:case Qe.PAGE_UP:case Qe.PAGE_HOME:case Qe.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=jtt,{eGui:n,gos:r}=this;vz(r,n,t,this),e.addDestroyFunc(()=>vz(r,n,t,null))}focus(e){const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus(),!0):!1}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,n){const r=e??t,{menuSvc:i,gos:o}=this.beans;o.get("preventDefaultOnContextMenu")&&r.preventDefault(),i?.isHeaderContextMenuEnabled(n)&&i.showHeaderContextMenu(n,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",n)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:n}=this;e.isColumn?n.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):n.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},C_t=class extends kye{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(e,t,n,r,i){this.comp=e;const{rowCtrl:o,column:a,beans:s}=this,{colResize:l,context:c,colHover:u,rangeSvc:d}=s,p=v6(this,c,i);this.setGui(t,p),this.updateState(),this.setupWidth(p),this.setupMovingCss(p),this.setupMenuClass(p),this.setupSortableClass(p),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:r,checkMeasuringCallback:g=>this.setRefreshFunction("measuring",g),compBean:p}),this.addColumnHoverListener(p),this.setupFilterClass(p),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(p),this.setupSelectAll(p),this.setupUserComp(),this.refreshAria(),l?this.resizeFeature=p.createManagedBean(l.createResizeFeature(o.pinned,a,n,e,this)):Nn(n,!1),u?.createHoverFeature(p,[a],t),d?.createRangeHighlightFeature(p,a,e),p.createManagedBean(new Dye(a,t,s)),p.createManagedBean(new Mw(t,{shouldStopEventPropagation:g=>this.shouldStopEventPropagation(g),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(p),p.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),p.addManagedListeners(a,{colDefChanged:()=>this.refresh()}),p.addManagedListeners(a,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const h=()=>this.checkDisplayName();p.addManagedEventListeners({columnValueChanged:h,columnRowGroupChanged:h,columnPivotChanged:h,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),p.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return Gn(t.gos,{colDef:n,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return LLt(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:n,gos:r}=this.beans;return Gn(r,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!n&&(!this.openFilterEnabled||Gu(this.gos)),showColumnMenu:(o,a)=>{e?.showColumnMenu({column:this.column,buttonElement:o,positionBy:"button",onClosedCallback:a})},showColumnMenuAfterMouseClick:(o,a)=>{e?.showColumnMenu({column:this.column,mouseEvent:o,positionBy:"mouse",onClosedCallback:a})},showFilter:o=>{e?.showFilterMenu({column:this.column,buttonElement:o,containerType:"columnFilter",positionBy:"button"})},progressSort:o=>{t?.progressSort(this.column,!!o,"uiColumnSorted")},setSort:(o,a)=>{t?.setSortForColumn(this.column,o,!!a,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(o,a)=>{r.assertModuleRegistered("Tooltip",3),this.setupTooltip(o,a)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature.setComp(this))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===Qe.SPACE&&this.selectAllFeature?.onSpaceKeyDown(e),e.key===Qe.ENTER&&this.onEnterKeyDown(e),e.key===Qe.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){e.ctrlKey||e.metaKey?this.showMenuOnKeyPress(e,!0):this.sortable&&this.beans.sortSvc?.progressSort(this.column,e.shiftKey,"uiColumnSorted")}showMenuOnKeyPress(e,t){const n=this.comp.getUserCompInstance();REe(n)&&n.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),EK()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const t=this.column.getColDef(),n=vye(t,this.gos,this.column,null),r=this.userHeaderClasses;this.userHeaderClasses=new Set(n),n.forEach(i=>{r.has(i)?r.delete(i):this.comp.toggleCss(i,!0)}),r.forEach(i=>this.comp.toggleCss(i,!1))};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach(e=>e())}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const n=this.column.getActualWidth();this.comp.setWidth(`${n}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const n=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",n),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,n=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",n)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:n,beans:r}=this,i=Eye(this.beans),o=i.reduce((u,d)=>u+=d,0)===0;if(n.toggleCss("ag-header-parent-hidden",o),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),n.toggleCss("ag-header-span-height",!1),n.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:a,isSpanningTotal:s}=this.column.getColumnGroupPaddingInfo();n.toggleCss("ag-header-span-height",a>0);const l=Rye(r);if(a===0){n.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}n.toggleCss("ag-header-span-total",s);let c=0;for(let u=0;u<a;u++)c+=i[i.length-1-u];e.style.setProperty("top",`${-c}px`),e.style.setProperty("height",`${l+c}px`)}refreshAriaSort(){if(this.sortable){const e=this.getLocaleTextFunc(),t=this.beans.sortSvc?.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(skt(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){const e=this.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!Gu(this.gos)){const e=this.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){const e=this.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(e,t){t!=null?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)}announceAriaDescription(){if(!this.eGui.contains($i(this.beans)))return;const e=Array.from(this.ariaDescriptionProperties.keys()).sort((t,n)=>t==="filter"?-1:n.charCodeAt(0)-t.charCodeAt(0)).map(t=>this.ariaDescriptionProperties.get(t)).join(". ");this.beans.ariaAnnounce?.announceValue(e,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),n=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:n,contextmenu:r})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return REe(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function REe(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var x_t=0,ore=class extends dt{constructor(e,t,n){super(),this.rowIndex=e,this.pinned=t,this.type=n,this.instanceId=x_t++,this.allCtrls=[];const r=n=="group"?"ag-header-row-column-group":n=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${r}`}postConstruct(){this.isPrintLayout=Uu(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,n=!0){this.comp=e,t=v6(this,this.beans.context,t),n&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),n=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:n,virtualColumnsChanged:r=>this.onVirtualColumnsChanged(r.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,gridStylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",n),e.addManagedPropertyListener("ensureDomOrder",r=>this.isEnsureDomOrder=r.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=Uu(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){const{filterManager:e}=this.beans,t=[],n=Eye(this.beans),r=Rye(this.beans);t.push(...n),t.push(r),e?.hasFloatingFilters()&&t.push(Iye(this.beans));let i=0;for(let a=0;a<this.rowIndex;a++)i+=t[a];const o=t[this.rowIndex];return{topOffset:i,rowHeight:o}}onVirtualColumnsChanged(e=!1){const t=this.getUpdatedHeaderCtrls(),n=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,n,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const r of t)this.recycleAndCreateHeaderCtrls(r,this.ctrlsById,e);const n=r=>{const{focusSvc:i,visibleCols:o}=this.beans;return i.isHeaderWrapperFocused(r)?o.isVisible(r.column):!1};if(e)for(const[r,i]of e)n(i)?this.ctrlsById.set(r,i):this.destroyBean(i);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,n){if(e.isEmptyGroup())return;const r=e.getUniqueId();let i;if(n&&(i=n.get(r),n.delete(r)),i&&i.column!=e&&(this.destroyBean(i),i=void 0),i==null)switch(this.type){case"filter":{i=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":i=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:i=this.createBean(new C_t(e,this));break}t.set(r,i)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let e=[];const t=this.getActualDepth(),{colViewport:n}=this.beans;return["left",null,"right"].forEach(r=>{const i=n.getHeadersToRender(r,t);e=e.concat(i)}),e}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}focusHeader(e,t){const n=this.allCtrls.find(i=>i.column==e);return n?n.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,super.destroy()}},Htt=class extends dt{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:n,ctrlsSvc:r,colModel:i,colMoves:o,filterManager:a}=this.beans;this.setupCenterWidth(),n?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(o,this.eViewport);const s=this.onDisplayedColumnsChanged.bind(this,a);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:s,advancedFilterEnabledChanged:s});const l=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;r.register(l,this),i.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,colModel:n,filterManager:r}=this.beans;let i=0;const o=t.getFocusHeaderToUseAfterRefresh(),a=()=>{const u=Wtt(n)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let d=0;d<u;d++){const p=this.createBean(new ore(i++,this.pinned,"group"));this.groupsRowCtrls.push(p)}},s=()=>{const u=i++,d=!this.hidden&&(this.columnsRowCtrl==null||!e||this.columnsRowCtrl.rowIndex!==u);(d||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),d&&(this.columnsRowCtrl=this.createBean(new ore(u,this.pinned,"column")))},l=()=>{this.includeFloatingFilter=!!r?.hasFloatingFilters()&&!this.hidden;const u=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){u();return}const d=i++;if(this.filtersRowCtrl){const p=this.filtersRowCtrl.rowIndex!==d;(!e||p)&&u()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new ore(d,this.pinned,"filter")))};a(),s(),l();const c=this.getAllCtrls();this.comp.setCtrls(c),this.restoreFocusOnHeader(t,o)}getHeaderCtrlForColumn(e){const t=n=>n?.getHeaderCellCtrls().find(r=>r.column===e);if(vm(e))return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let n=0;n<this.groupsRowCtrls.length;n++){const r=t(this.groupsRowCtrls[n]);if(r)return r}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,n){const i=this.getAllCtrls()[e];return i?i.focusHeader(t,n):!1}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const n=e?.createBodyDropTarget(this.pinned,t);n&&this.createManagedBean(n)}restoreFocusOnHeader(e,t){if(!t)return;const{column:n}=t;n.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(e){const t=!!e?.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==t&&this.refresh(!0)}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new Aye(e=>this.comp.setCenterWidth(`${e}px`),!0))}},w_t=class extends dt{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){const{enterpriseMenuFactory:t,filterMenuFactory:n}=this.beans,r=t&&Gu(this.gos)?t:n;this.showColumnMenuCommon(r,e,e.containerType,!0)}showHeaderContextMenu(e,t,n){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,n)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(Gu(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&vm(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(xx()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!Gu(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!Gu(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return Gu(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,n,r){const{positionBy:i,onClosedCallback:o}=t,a=t.column;if(i==="button"){const{buttonElement:s}=t;e?.showMenuAfterButtonClick(a,s,n,o,r)}else if(i==="mouse"){const{mouseEvent:s}=t;e?.showMenuAfterMouseEvent(a,s,n,o,r)}else if(a){const s=this.beans,l=s.ctrlsSvc;l.getScrollFeature().ensureColumnVisible(a,"auto"),sh(s,()=>{const c=l.getHeaderRowContainerCtrl(a.getPinned())?.getHeaderCtrlForColumn(a);c&&e?.showMenuAfterButtonClick(a,c.getAnchorElementForMenu(r),n,o,r)})}}};function F$(e,t,n){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",n))}var Vtt=class extends Gt{constructor(){super()}},S_t={tag:"span",cls:"ag-overlay-loading-center",attrs:{"aria-live":"polite","aria-atomic":"true"}},A_t=class extends Vtt{init(){const e=Tc(this.gos.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(e??S_t),!e){const t=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=t("loadingOoo","Loading...")})}}},O_t={tag:"span",cls:"ag-overlay-no-rows-center"},z_t=class extends Vtt{init(){const e=Tc(this.gos.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(e??O_t),!e){const t=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=t("noRowsToShow","No Rows To Show")})}}};function Ox(e,t,n){const r=er(e,t,n);if(r){const{className:o}=r;if(typeof o=="string"&&o.indexOf("ag-icon")>-1||typeof o=="object"&&o["ag-icon"])return r}const i=Nr({tag:"span"});return i.appendChild(r),i}function er(e,t,n){let r=null;e==="smallDown"?ut(262):e==="smallLeft"?ut(263):e==="smallRight"&&ut(264);const i=n&&n.getColDef().icons;if(i&&(r=i[e]),t.gos&&!r){const o=t.gos.get("icons");o&&(r=o[e])}if(r){let o;if(typeof r=="function")o=r();else if(typeof r=="string")o=r;else{ut(38,{iconName:e});return}if(typeof o=="string")return eye(o);if(wK(o))return o;ut(133,{iconName:e});return}else{const o=t.registry.getIcon(e);return o||t.validation?.validateIcon(e),Nr({tag:"span",cls:`ag-icon ag-icon-${o??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var T_t=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}",E_t={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},R_t=class extends Gt{constructor(){super(),this.dragSource=null,this.eIcon=at,this.eLabel=at,this.eGhost=at,this.registerCSS(T_t)}postConstruct(){const e=t=>Ox(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(E_t),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eIcon:n,dragSource:r,dropIconMap:i,gos:o}=this;Xi(n);let a=null;e||(e=r?.getDefaultIconName?r.getDefaultIconName():"notAllowed"),a=i[e],n.classList.toggle("ag-shake-left-to-right",t),!(a===i.hide&&o.get("suppressDragLeaveHidesColumns"))&&a&&n.appendChild(a)}setLabel(e){this.eLabel.textContent=e}},I_t=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",Lye=class extends Gt{constructor(e,t,n){super(t,n),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(I_t)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:n,labelAlignment:r,disabled:i}=this.config;i!=null&&this.setDisabled(i),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),n!=null&&this.setLabelWidth(n),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Xi(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Nn(t,!1),C0(t,"presentation")):(Nn(t,!0),C0(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const n=this.getGui().classList;return n.toggle("ag-label-align-left",e==="left"),n.toggle("ag-label-align-right",e==="right"),n.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(S$(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return nf(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},Gtt=class extends Lye{constructor(e,t,n,r){super(e,t,n),this.className=r}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:n}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),n!=null&&this.onValueChange(n),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),n=this.getLabel();n==null||n==""||ckt(e)!==null?Vx(e,""):Vx(e,t??"")}setAriaLabel(e){return Is(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return am(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}};function P_t(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var rx=class extends Gtt{constructor(e,t,n="text",r="input"){super(e,e?.template??P_t(r),[],t),this.inputType=n,this.displayFieldTag=r,this.eLabel=at,this.eWrapper=at,this.eInput=at}postConstruct(){super.postConstruct(),this.setInputType();const{eLabel:e,eWrapper:t,eInput:n,className:r}=this;e.classList.add(`${r}-label`),t.classList.add(`${r}-input-wrapper`),n.classList.add(`${r}-input`),this.addCss("ag-input-field"),n.id=n.id||`ag-${this.getCompId()}-input`;const{inputName:i,inputWidth:o}=this.config;i!=null&&this.setInputName(i),o!=null&&this.setInputWidth(o),this.addInputListeners(),this.activateTabIndex([n])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return S$(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return Af(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Is(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return nf(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)Af(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Af(this.eInput,"autocomplete",t)}return this}},v3=class extends rx{constructor(e,t="ag-checkbox",n="checkbox"){super(e,t,n),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const n=this.eInput;n.checked=e,n.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,n){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:n});const r=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:r.id,name:r.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},Rm={selector:"AG-CHECKBOX",component:v3},D_t=".ag-checkbox-cell{height:100%}",k_t={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},L_t=class extends Gt{constructor(){super(k_t,[Rm]),this.eCheckbox=at,this.registerCSS(D_t)}init(e){this.refresh(e);const{eCheckbox:t,beans:n}=this,r=t.getInputElement();r.setAttribute("tabindex","-1"),XJe(r,"polite"),this.addManagedListeners(r,{click:i=>{if(Cl(i),t.isDisabled())return;const o=t.getValue();this.onCheckboxChanged(o)},dblclick:i=>{Cl(i)}}),this.addManagedElementListeners(e.eGridCell,{keydown:i=>{if(i.key===Qe.SPACE&&!t.isDisabled()){e.eGridCell===$i(n)&&t.toggle();const o=t.getValue();this.onCheckboxChanged(o),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,n=!0;const{value:r,column:i,node:o}=e;if(o.group&&i)if(typeof r=="boolean")t=r;else{const d=i.getColId();d.startsWith(jy)?t=r==null||r===""?void 0:r==="true":o.aggData&&o.aggData[d]!==void 0?t=r??void 0:n=!1}else t=r??void 0;const{eCheckbox:a}=this;if(!n){a.setDisplayed(!1);return}a.setValue(t);const s=e.disabled??!i?.isCellEditable(o);a.setDisabled(s);const l=this.getLocaleTextFunc(),c=Q2e(l,t),u=s?c:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${c})`;a.setInputAriaLabel(u)}onCheckboxChanged(e){const{eventSvc:t,params:n}=this,{column:r,node:i,value:o}=n,a={column:r,colDef:r.getColDef(),data:i.data,node:i,rowIndex:i.rowIndex,rowPinned:i.rowPinned,value:o};t.dispatchEvent({type:"cellEditingStarted",...a});const s=i.setDataValue(r,e,"edit");t.dispatchEvent({type:"cellEditingStopped",...a,oldValue:o,newValue:e,valueChanged:s}),s||this.updateCheckbox(n)}},IEe=class{constructor(t,n){this.beans=t,this.floating=n,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(t){const{all:n,visible:r,order:i}=this;n.has(t)||(n.add(t),r.add(t),i.push(t),this.sort())}delete(t){this.all.delete(t),this.visible.delete(t),this.queued.delete(t.id),Ou(this.order,t)}has(t){return this.visible.has(t)}forEach(t){this.order.forEach(t)}getByIndex(t){return this.order[t]}getById(t){for(const n of this.visible)if(n.id==t)return n}clear(){const{all:t,visible:n,order:r,queued:i}=this;t.clear(),i.clear(),n.clear(),r.length=0}sort(){const{sortSvc:t,rowNodeSorter:n}=this.beans,r=t?.getSortOptions()??[],i=F_t(this.order);if(this.order.sort((a,s)=>(a.pinnedSibling?.rowIndex??0)-(s.pinnedSibling?.rowIndex??0)),this.order=n?.doFullSort(this.order,r)??this.order,!i)return;const o=this.beans.gos.get("grandTotalRow");o==="bottom"||o==="pinnedBottom"?this.order.push(i):this.order.unshift(i)}hide(t){const{all:n,visible:r}=this;n.forEach(i=>t(i)?r.delete(i):r.add(i)),this.order=Array.from(r),this.sort()}queue(t){this.queued.add(t)}unqueue(t){this.queued.delete(t)}forEachQueued(t){this.queued.forEach(t)}};function $tt(e){if(e.level===-1)return!0;const t=e.parent;return t?.childrenAfterSort?.some(n=>n==e)?$tt(t):!1}function are(e,t){const{gos:n,rowModel:r,filterManager:i}=e;return Au(n)?!r.getRowNode(t.id):i?.isAnyFilterPresent()?!$tt(t):n.get("pivotMode")?!t.group:!1}function __t(e){return!!e.footer&&e.level===-1}function N_t(e){return!!e.pinnedSibling&&__t(e.pinnedSibling)}function F_t(e){const t=e.findIndex(N_t);if(t>-1)return e.splice(t,1)?.[0]}var W_t=class extends dt{postConstruct(){const{gos:e,beans:t}=this;this.top=new IEe(t,"top"),this.bottom=new IEe(t,"bottom");const n=i=>are(t,i.pinnedSibling),r=()=>{const i=e.get("isRowPinned");i&&t.rowModel.forEachNode(o=>this.pinRow(o,i(o)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:()=>{this.tryToEmptyQueues(),this.pinGrandTotalRow(),this.forContainers(i=>i.hide(n)),this.refreshRowPositions(),this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(B_t),this.refreshRowPositions()},rowNodeDataChanged:({node:i})=>{(e.get("isRowPinnable")?.(i)??!0)||this.pinRow(i,null)},firstDataRendered:r}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(i=>i.hide(n)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:i})=>{this._grandTotalPinned=i==="pinnedBottom"?"bottom":i==="pinnedTop"?"top":null}),this.addManagedPropertyListener("isRowPinned",r)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(t=>{const n=[];t.forEach(r=>n.push(r)),n.forEach(r=>this.pinRow(r,null)),t.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,n){if(e.footer&&e.level>-1)return;if(e.footer&&e.level===-1){this._grandTotalPinned=t,sa(this.gos,this.beans.rowModel)&&this.beans.rowModel.refreshModel({step:"map"});return}const r=e.rowPinned??e.pinnedSibling?.rowPinned;if(r!=null&&t!=null&&t!=r){const a=e.rowPinned?e:e.pinnedSibling,s=e.rowPinned?e.pinnedSibling:e;this.pinRow(a,null,n),this.pinRow(s,t,n);return}const o=n&&j_t(this.beans,e,n);if(o){o.forEach(a=>this.pinRow(a,t));return}if(t==null){const a=e.rowPinned?e:e.pinnedSibling,s=this.findPinnedRowNode(a);if(!s)return;s.delete(a);const l=a.pinnedSibling;sre(a),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(l)}else{const a=PEe(this.beans,e,t),s=this.getContainer(t);s.add(a),are(this.beans,e)&&s.hide(l=>are(this.beans,l.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return this.getContainer(e).size()===0}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const n=r=>{if(r.rowHeightEstimated){const i=bd(this.beans,r);r.setRowTop(t),r.setRowHeight(i.height),t+=i.height,e=!0}};return this.bottom.forEach(n),t=0,this.top.forEach(n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){const e=this.top.size();if(e===0)return 0;const t=this.top.getByIndex(e-1);return t===void 0?0:t.rowTop+t.rowHeight}getPinnedBottomTotalHeight(){const e=this.bottom.size();if(e===0)return 0;const t=this.bottom.getByIndex(e-1);return t===void 0?0:t.rowTop+t.rowHeight}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){const e=t=>{const n=[];return this.forEachPinnedRow(t,r=>n.push(r.pinnedSibling.id)),n};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,n)=>{for(const r of e[n]){const i=this.beans.rowModel.getRowNode(r);i?this.pinRow(i,n):t.queue(r)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{const n=new Set;e.forEachQueued(r=>{const i=this.beans.rowModel.getRowNode(r);i&&n.add(i)});for(const r of n)e.unqueue(r.id),this.pinRow(r,t)})}pinGrandTotalRow(){const e=this.beans.rowModel;if(!sa(this.gos))return;const t=e.rootNode?.sibling;if(!t)return;const n=this._grandTotalPinned,r=t.pinnedSibling,i=r&&this.findPinnedRowNode(r);if(n){if(i&&i.floating!==n&&(i.delete(r),sre(r)),!i||i.floating!==n){const o=PEe(this.beans,t,n);this.getContainer(n).add(o)}}else{if(!i)return;i.delete(r),sre(r)}}onGridStylesChanges(e){if(e.rowHeightChanged){const t=n=>{n.setRowHeight(n.rowHeight,!0)};this.forContainers(n=>n.forEach(t))}}getContainer(e){return e==="top"?this.top:this.bottom}findPinnedRowNode(e){if(this.top.has(e))return this.top;if(this.bottom.has(e))return this.bottom}refreshRowPositions(e){const t=n=>q_t(this.beans,n);return e==null?this.forContainers(t):t(this.getContainer(e))}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function q_t(e,t){let n=0;t.forEach((r,i)=>{r.setRowTop(n),(r.rowHeightEstimated||r.rowHeight==null)&&r.setRowHeight(bd(e,r).height),r.setRowIndex(i),n+=r.rowHeight})}function PEe(e,t,n){if(t.pinnedSibling)return t.pinnedSibling;const r=Stt(t,e);r.setRowTop(null),r.setRowIndex(null),r.rowPinned=n;const i=n==="top"?Cye:xye;return r.id=`${i}${n}-${t.id}`,r.pinnedSibling=t,t.pinnedSibling=r,r}function sre(e){if(!e.pinnedSibling)return;e.rowPinned=null,e.setRowTop(null),e.setRowIndex(null);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function B_t(e){const t=new Set;e.forEach(n=>{n.group&&t.add(n)}),t.forEach(n=>{e.delete(n)})}function j_t(e,t,n){const{rowSpanSvc:r}=e,i=(n&&r?.isCellSpanning(n,t))??!1;if(n&&i){const o=r?.getCellSpan(n,t);if(o)return Array.from(o.spannedNodes)}}var H_t=class extends dt{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",t=>this.setPinnedRowData(t.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",t=>this.setPinnedRowData(t.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return this.getCache(e).order.length===0}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const t=n=>{n.setRowHeight(n.rowHeight,!0)};QL(this.pinnedBottomRows,t),QL(this.pinnedTopRows,t)}}ensureRowHeightsValid(){let e=!1,t=0;const n=r=>{if(r.rowHeightEstimated){const i=bd(this.beans,r);r.setRowTop(t),r.setRowHeight(i.height),t+=i.height,e=!0}};return QL(this.pinnedBottomRows,n),t=0,QL(this.pinnedTopRows,n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const n=this.getCache(t);if(e===void 0){n.order.length=0,n.cache={};return}const r=qy(this.gos),i=t==="top"?Cye:xye,o=new Set(n.order),a=[],s=new Set;let l=0,c=-1;for(const u of e){const d=r?.({data:u,level:0,rowPinned:t})??i+this.nextId++;if(s.has(d)){ut(96,{id:d,data:u});continue}c++,s.add(d),a.push(d);const p=NN(n,d);if(p!==void 0)p.data!==u&&p.updateData(u),l+=this.setRowTopAndRowIndex(p,l,c),o.delete(d);else{const h=new vp(this.beans);h.id=d,h.data=u,h.rowPinned=t,l+=this.setRowTopAndRowIndex(h,l,c),n.cache[d]=h,n.order.push(d)}}o.forEach(u=>{NN(n,u)?.clearRowTopAndRowIndex(),delete n.cache[u]}),n.order=a}setRowTopAndRowIndex(e,t,n){return e.setRowTop(t),e.setRowHeight(bd(this.beans,e).height),e.setRowIndex(n),e.rowHeight}getPinnedTopTotalHeight(){return DEe(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return DEe(this.pinnedBottomRows)}getPinnedTopRowCount(){return bhe(this.pinnedTopRows)}getPinnedBottomRowCount(){return bhe(this.pinnedBottomRows)}getPinnedTopRow(e){return vhe(this.pinnedTopRows,e)}getPinnedBottomRow(e){return vhe(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return NN(this.getCache(t),e)}forEachPinnedRow(e,t){return QL(this.getCache(e),t)}getCache(e){return e==="top"?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function DEe(e){const t=bhe(e);if(t===0)return 0;const n=vhe(e,t-1);return n===void 0?0:n.rowTop+n.rowHeight}function NN(e,t){return e.cache[t]}function vhe(e,t){return NN(e,e.order[t])}function QL(e,t){e.order.forEach((n,r)=>{const i=NN(e,n);i&&t(i,r)})}function bhe(e){return e.order.length}var V_t=class extends dt{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const e=()=>{const t=this.gos.get("enableRowPinning");this.inner&&this.destroyBean(this.inner),this.inner=this.createManagedBean(t?new W_t:new H_t)};this.addManagedPropertyListener("enableRowPinning",e),e()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,n){return this.inner.pinRow(e,t,n)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}},G_t="ROOT_NODE_ID",Utt=class extends dt{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}get treeData(){return!1}getRowNode(e){return this.allNodesMap[e]}extractRowData(){return this.rootNode?.allLeafChildren?.map(e=>e.data)}activate(e){this.rootNode=e,e.group=!0,e.level=-1,e.id=G_t,e.allLeafChildren=[],e.childrenAfterGroup=[],e.childrenAfterSort=[],e.childrenAfterAggFilter=[],e.childrenAfterFilter=[],this.updateRootSiblingArrays(e)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(e){const t=this.rootNode;t&&(this.dispatchRowDataUpdateStartedEvent(e),t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(e),this.updateRootSiblingArrays(t))}updateRootSiblingArrays(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenAfterAggFilter=e.childrenAfterAggFilter,t.childrenAfterSort=e.childrenAfterSort,t.childrenMapped=e.childrenMapped,t.allLeafChildren=e.allLeafChildren)}loadNewRowData(e){this.rootNode.allLeafChildren=e?.map((t,n)=>this.createRowNode(t,n))??[]}setImmutableRowData(e,t){const n=qy(this.gos),r=!this.gos.get("suppressMaintainUnsortedOrder"),i=e.changedRowNodes,o=new Set,a=this.rootNode,s=a.allLeafChildren,l=s.length;let c=!1,u=!1,d=!1,p=!1;for(let g=0,m=-1,b=t.length;g<b;g++){const y=t[g];let M=this.getRowNode(n({data:y,level:0}));if(!M)c=!0,M=this.createRowNode(y,-1),i.add(M);else{if(r){const C=M.sourceRowIndex;p||(p=C<=m||c),m=C}M.data!==y&&(d=!0,M.updateData(y),i.update(M))}o.add(M)}const h=[];for(let g=0;g<l;g++){const m=s[g];o.has(m)||(u=!0,m.isSelected()&&h.push(m),m.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(m.pinnedSibling,null),this.rowNodeDeleted(m),i.remove(m))}if(c||u||p){const g=new Array(o.size);let m=0;if(!r)for(let y=0;y<l;++y){const M=s[y];o.delete(M)&&(M.sourceRowIndex=m,g[m++]=M)}for(const y of o)y.sourceRowIndex=m,g[m++]=y;a.allLeafChildren=g;const b=a.sibling;b&&(b.allLeafChildren=g),e.rowNodesOrderChanged||(e.rowNodesOrderChanged=p)}(c||u||p||d)&&(this.deselectNodes(h),e.rowDataUpdated=!0)}rowNodeDeleted(e){e.clearRowTopAndRowIndex();const t=e.id,n=this.allNodesMap;n[t]===e&&delete n[t]}updateRowData(e,t){this.dispatchRowDataUpdateStartedEvent(e.add);const n={changedRowNodes:t,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},r=[],i=qy(this.gos);return this.executeRemove(i,e,n,r),this.executeUpdate(i,e,n,r),this.executeAdd(e,n),this.deselectNodes(r),n}executeAdd(e,t){const n=e.add;if(!n?.length)return;let r=this.rootNode.allLeafChildren,i=r.length;if(typeof e.addIndex=="number"&&(i=this.sanitizeAddIndex(e.addIndex),i>0&&this.gos.get("treeData")&&this.gos.get("getDataPath"))){for(let d=0;d<r.length;d++)if(r[d]?.rowIndex==i-1){i=d+1;break}}const o=n.length,a=t.changedRowNodes,s=new Array(o);for(let u=0;u<o;u++){const d=this.createRowNode(n[u],i+u);a.add(d),s[u]=d}const l=this.rootNode;if(i<r.length){const u=r.slice(0,i),d=r.slice(i,r.length),p=u.length+s.length;for(let h=0,g=d.length;h<g;++h)d[h].sourceRowIndex=p+h;r=[...u,...s,...d],t.rowsInserted=!0}else r=r.concat(s);l.allLeafChildren=r;const c=l.sibling;c&&(c.allLeafChildren=r),t.rowNodeTransaction.add=s}executeRemove(e,t,{changedRowNodes:n,rowNodeTransaction:r},i){const{remove:o}=t;if(!o?.length)return;const a={};o.forEach(c=>{const u=this.lookupRowNode(e,c);u&&(u.isSelected()&&i.push(u),u.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(u.pinnedSibling,null),u.clearRowTopAndRowIndex(),a[u.id]=!0,delete this.allNodesMap[u.id],r.remove.push(u),n.remove(u))});const s=this.rootNode;s.allLeafChildren=s.allLeafChildren?.filter(c=>!a[c.id])??null,s.allLeafChildren?.forEach((c,u)=>{c.sourceRowIndex=u});const l=s.sibling;l&&(l.allLeafChildren=s.allLeafChildren)}executeUpdate(e,t,{changedRowNodes:n,rowNodeTransaction:r},i){const{update:o}=t;o?.length&&o.forEach(a=>{const s=this.lookupRowNode(e,a);s&&(s.updateData(a),!s.selectable&&s.isSelected()&&i.push(s),r.update.push(s),n.update(s))})}dispatchRowDataUpdateStartedEvent(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselectNodes(e){const t="rowDataChanged",n=this.beans.selectionSvc,r=e.length>0;r&&n?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),n?.updateGroupsFromChildrenSelections?.(t),r&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:n?.getSelectedNodes()??null,serverSideState:null})}sanitizeAddIndex(e){const t=this.rootNode.allLeafChildren?.length??0;return e<0||e>=t||Number.isNaN(e)?t:Math.ceil(e)}createRowNode(e,t){const n=new vp(this.beans);return n.parent=this.rootNode,n.level=0,n.group=!1,n.expanded=!1,n.sourceRowIndex=t,n.setDataAndId(e,String(this.nextId)),this.allNodesMap[n.id]&&ut(2,{nodeId:n.id}),this.allNodesMap[n.id]=n,this.nextId++,n}lookupRowNode(e,t){let n;if(e){const r=e({data:t,level:0});if(n=this.allNodesMap[r],!n)return pi(4,{id:r}),null}else if(n=this.rootNode?.allLeafChildren?.find(r=>r.data===t),!n)return pi(5,{data:t}),null;return n||null}},Lv=(e=>(e.Applied="Applied",e.StoreNotFound="StoreNotFound",e.StoreLoading="StoreLoading",e.StoreWaitingToLoad="StoreWaitingToLoad",e.StoreLoadingFailed="StoreLoadingFailed",e.StoreWrongType="StoreWrongType",e.Cancelled="Cancelled",e.StoreNotStarted="StoreNotStarted",e))(Lv||{}),$_t={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},U_t=class extends Gt{constructor(){super($_t,[Rm]),this.eCheckbox=at}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:n}=this,r=t.isSelected(),i=Q2e(e,r),[o,a]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],s=e(o,a);n.setValue(r,!0),n.setInputAriaLabel(`${s} (${i})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:Cl,click:r=>{Cl(r),this.beans.selectionSvc?.handleSelectionEvent(r,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:i})=>{const o=typeof r=="object"?Qne(r):void 0,a=typeof i=="object"?Qne(i):void 0;o!==a&&this.onSelectableChanged()}),uhe(this.gos)||typeof this.getIsVisible()=="function"){const r=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:r}),this.addManagedListeners(this.rowNode,{dataChanged:r,cellChanged:r}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:n,gos:r}=this;let i=t.selectable;const o=this.getIsVisible();if(i)if(typeof o=="function"){const l=n?.callbackParams;if(!e)i=o({...l,node:t,data:t.data});else{const c=e.createColumnFunctionCallbackParams(t);i=o({...l,...c})}}else i=o??!1;const a=r.get("rowSelection");if(a&&typeof a!="string"?!Qne(a):e?.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!i),this.setVisible(!0),this.setDisplayed(!0);return}if(n?.removeHidden){this.setDisplayed(i);return}this.setVisible(i)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?LO(t):this.column?.getColDef()?.checkboxSelection}},X_t=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(e){if(this.rootId)return this.getRowNode(this.rootId);if(e)return this.setRoot(e),e}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:n,pinnedRowModel:r}=this;return t??(t=n.getRowNode(e)),r?.isManual()&&(t??(t=r.getPinnedRowById(e,"top")),t??(t=r.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const n=t[0].id===this.rootId,r=t.findIndex(i=>i.id===e.id);if(r>-1){const i=t.slice(0,r),o=t.slice(r+1);return this.setEndRange(e),n?{keep:i,discard:o}:{keep:o,discard:i}}else return{keep:t,discard:[]}}extend(e,t=!1){const n=this.getRoot();if(n==null){const i=this.getRange().slice();return t&&e.depthFirstSearch(o=>!o.group&&i.push(o)),i.push(e),this.setRoot(e),{keep:i,discard:[]}}const r=this.getNodesInRange(n,e);if(!r)return this.setRoot(e),{keep:[e],discard:[]};if(r.find(i=>i.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const i=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:i}}}getNodesInRange(e,t){const{pinnedRowModel:n,rowModel:r}=this;if(!n?.isManual())return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned)return Vh(n,"top",e,void 0).concat(r.getNodesInRangeForSelection(r.getRow(0),t)??[]);if(e.rowPinned==="bottom"&&!t.rowPinned){const i=Vh(n,"bottom",void 0,e),o=r.getRowCount(),a=r.getRow(o-1);return(r.getNodesInRangeForSelection(t,a)??[]).concat(i)}if(!e.rowPinned&&!t.rowPinned)return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return Vh(n,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const i=Vh(n,"top",t,void 0),o=Vh(n,"bottom",void 0,e),a=r.getRow(0),s=r.getRow(r.getRowCount()-1);return i.concat(r.getNodesInRangeForSelection(a,s)??[]).concat(o)}if(!e.rowPinned&&t.rowPinned==="top")return Vh(n,"top",t,void 0).concat(r.getNodesInRangeForSelection(r.getRow(0),e)??[]);if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const i=Vh(n,"top",e,void 0),o=Vh(n,"bottom",void 0,t),a=r.getRow(0),s=r.getRow(r.getRowCount()-1);return i.concat(r.getNodesInRangeForSelection(a,s)??[]).concat(o)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return Vh(n,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const i=Vh(n,"bottom",void 0,t),o=r.getRow(r.getRowCount());return(r.getNodesInRangeForSelection(e,o)??[]).concat(i)}return null}},Y_t=class extends dt{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains($i(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new v3);this.cbSelectAll=t,t.addCss("ag-header-select-all"),C0(t.getGui(),"presentation"),this.showOrHideSelectAll();const n=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:n,paginationChanged:n,modelUpdated:n}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:i})=>{const o=a=>typeof a=="string"||!a||a.mode==="singleRow"?void 0:a.selectAll;o(r)!==o(i)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll(e.source==="uiColumnMoved")}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,n=this.cbSelectAll,r=t.getSelectAllState(e);n.setValue(r);const i=t.hasNodesToSelect(e);n.setDisabled(!i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:n,cbSelectAll:r,cbSelectAllVisible:i}=this,a=r.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),s=t("ariaRowSelectAll","Press Space to toggle all rows selection");n.setAriaDescriptionProperty("selectAll",i?`${s} (${a})`:null),r.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||n.announceAriaDescription()}checkSelectionType(e){return By(this.gos)?!0:(ut(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:n}=this.beans;return sa(t)||Au(t)?!0:(ut(129,{feature:e,rowModel:n.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let n="uiSelectAll";t==="currentPage"?n="uiSelectAllCurrentPage":t==="filtered"&&(n="uiSelectAllFiltered");const r={source:n,selectAll:t},i=this.beans.selectionSvc;e?i.selectAllRowNodes(r):i.deselectAllRowNodes(r)}isCheckboxSelection(){const{column:e,gos:t,beans:n}=this,r=t.get("rowSelection"),i=e.getColDef(),{headerCheckboxSelection:o}=i;let a=!1;const s=typeof r=="object";if(s){const c=m3(e),u=TK(e);(hW(r)==="autoGroupColumn"&&u||c&&n.selectionColSvc?.isSelectionColumnEnabled())&&(a=KG(r))}else typeof o=="function"?a=o(Gn(t,{column:e,colDef:i})):a=!!o;const l=s?"headerCheckbox":"headerCheckboxSelection";return a&&this.checkRightRowModelType(l)&&this.checkSelectionType(l)}getSelectAllMode(){const e=Eet(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:n}=this.column.getColDef();return t?"currentPage":n?"filtered":"all"}},Xtt=class extends dt{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new X_t(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const n=uhe(e);n!==this.isRowSelectable&&(this.isRowSelectable=n,this.updateSelectable())}),this.isRowSelectable=uhe(e)}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new U_t}createSelectAllFeature(e){return new Y_t(e)}isMultiSelect(){return By(this.gos)}onRowCtrlSelected(e,t,n){const r=!!e.rowNode.isSelected();e.forEachGui(n,i=>{i.rowComp.toggleCss("ag-row-selected",r);const o=i.element;dW(o,r),o.contains($i(this.beans))&&t(i)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected();if(!e.selectable)return;const r=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(r,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!b6(e)||!Kp(this.gos)}updateRowSelectable(e,t){const n=this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,n,t),n}setRowSelectable(e,t,n){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),n)return;if(yz(this.gos)){const i=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:i??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,n=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let r=0;r<e.childrenAfterGroup.length;r++){const i=e.childrenAfterGroup[r];let o=i.isSelected();if(!i.selectable){const a=this.calculateSelectedFromChildren(i);if(a===null)continue;o=a}switch(o){case!0:t=!0;break;case!1:n=!0;break;default:return}}if(!(t&&n))return t?!0:n?!1:e.selectable?e.__selected:null}selectRowNode(e,t,n,r="api"){const i=!e.selectable&&t,o=e.__selected===t;if(i||o)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const a=e.sibling;a&&a.footer&&a.__localEventService&&a.dispatchRowEvent("rowSelected");const s=e.pinnedSibling;return s&&s.rowPinned&&s.__localEventService&&s.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...wtt(e,this.gos,"rowSelected"),event:n||null,source:r}),!0}isCellCheckboxSelection(e,t){const n=this.gos.get("rowSelection");if(n&&typeof n!="string"){const r=m3(e)&&LO(n);return e.isColumnFunc(t,r)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,n,r){const{gos:i,selectionCtx:o}=this,a=e.isSelected(),s=yz(i),l=_kt(i),c=Nkt(i),u=this.isMultiSelect(),d=r==="rowClicked";if(d&&!(l||c))return null;if(t&&n&&u){const p=o.getRoot();if(p)if(p.isSelected()){const h=o.isInRange(e)?o.truncate(e):o.extend(e,s);return{deselect:h.discard,select:h.keep,reset:!1}}else{const h=o.extend(e,s);return{select:[],deselect:h.keep,reset:!1}}else return null}else if(t&&u){const p=o.selectAll?this.beans.rowModel.getRow(0):void 0,h=o.getRoot(p),g=o.isInRange(e)?o.truncate(e):o.extend(e,s);return{select:g.keep,deselect:g.discard,reset:o.selectAll||!!(h&&!h.isSelected())}}else if(n){if(d){const p=!a;return p&&!l||!p&&!c?null:(o.setRoot(e),{node:e,newValue:p,clearSelection:!1})}return o.setRoot(e),{node:e,newValue:!a,clearSelection:!u}}else{o.setRoot(e);const p=Fkt(i),h=z$(i)==="filteredDescendants",g=d&&(!p||!l);if(h&&a===void 0&&sa(i))return{node:e,newValue:!1,clearSelection:!u||g};if(d){const m=a?!p:l;return m===a&&!g||m&&!l||!m&&!c?null:{node:e,newValue:m,clearSelection:!u||g,keepDescendants:e.group&&s}}return{node:e,newValue:!a,clearSelection:!u||g}}}},K_t=class extends v3{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},Q_t='.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);opacity:0}&:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}',b3=class extends v3{constructor(e){super(e,"ag-toggle-button"),this.registerCSS(Q_t)}setValue(e,t){return super.setValue(e,t),this.toggleCss("ag-selected",this.getValue()),this}},Z_t={selector:"AG-TOGGLE-BUTTON",component:b3},Im=class extends rx{constructor(e,t="ag-text-field",n="text"){super(e,t,n)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const n=this.eInput;return n.value!==e&&(n.value=Ut(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=n=>{zye(n)&&n.key&&!e.test(n.key)&&n.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:n=>{const r=n.clipboardData?.getData("text");r&&r.split("").some(i=>!e.test(i))&&n.preventDefault()}})}},Vf={selector:"AG-INPUT-TEXT-FIELD",component:Im},J_t=class extends rx{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const n=super.setValue(e,t);return this.eInput.value=e,n}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},e5t={selector:"AG-INPUT-TEXT-AREA",component:J_t},kK=class extends Im{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const o=parseFloat(e.value),a=isNaN(o)?"":this.normalizeValue(o.toString());this.value!==a&&this.setValue(a)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:n,max:r,step:i}=this.config;typeof t=="number"&&this.setPrecision(t),typeof n=="number"&&this.setMin(n),typeof r=="number"&&this.setMax(r),typeof i=="number"&&this.setStep(i)}onWheel(e){$i(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));const t=parseFloat(e),{min:n,max:r}=this;return n!=null&&t<n?e=n.toString():r!=null&&t>r&&(e=r.toString()),e}adjustPrecision(e,t){const n=this.precision;if(n==null)return e;if(t){const i=parseFloat(e).toFixed(n);return parseFloat(i).toString()}const r=String(e).split(".");if(r.length>1){if(r[1].length<=n)return e;if(n>0)return`${r[0]}.${r[1].slice(0,n)}`}return r[0]}setMin(e){return this.min===e?this:(this.min=e,Af(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Af(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Af(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(n=>super.setValue(n,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,n){if(Ut(n)){let r=this.isScientificNotation(n);if(r&&this.eInput.validity.valid)return e(n);if(!r){n=this.adjustPrecision(n);const i=this.normalizeValue(n);r=n!=i}if(r)return t(n)}return e(n)}getValue(){const e=this.eInput;if(!e.validity.valid)return;const t=e.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},LK={selector:"AG-INPUT-NUMBER-FIELD",component:kK};function FN(e,t){return e.toString().padStart(t,"0")}function cp(e,t=!0,n="-"){if(!e)return null;let r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(i=>FN(i,2)).join(n);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>FN(i,2)).join(":")),r}var lre=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function WN(e,t="YYYY-MM-DD"){const n=FN(e.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={YYYY:()=>n.slice(n.length-4,n.length),YY:()=>n.slice(n.length-2,n.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>r[e.getMonth()],MMM:()=>r[e.getMonth()].slice(0,3),MM:()=>FN(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${lre(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${lre(e.getDate())}`,DD:()=>FN(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>i[e.getDay()],ddd:()=>i[e.getDay()].slice(0,3),dd:()=>i[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${lre(e.getDay())}`,d:()=>`${e.getDay()}`},a=new RegExp(Object.keys(o).join("|"),"g");return t.replace(a,s=>s in o?o[s]():s)}function h0(e){if(!e)return null;const[t,n]=e.split(" ");if(!t)return null;const r=t.split("-").map(d=>parseInt(d,10));if(r.filter(d=>!isNaN(d)).length!==3)return null;const[i,o,a]=r,s=new Date(i,o-1,a);if(s.getFullYear()!==i||s.getMonth()!==o-1||s.getDate()!==a)return null;if(!n||n==="00:00:00")return s;const[l,c,u]=n.split(":").map(d=>parseInt(d,10));return l>=0&&l<24&&s.setHours(l),c>=0&&c<60&&s.setMinutes(c),u>=0&&u<60&&s.setSeconds(u),s}var Ytt=class extends Im{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=yw();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){$i(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?cp(e??null,!1)??void 0:e;return this.min===t?this:(this.min=t,Af(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?cp(e??null,!1)??void 0:e;return this.max===t?this:(this.max=t,Af(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,Af(this.eInput,"step",e),this)}getDate(){if(this.eInput.validity.valid)return h0(this.getValue())??void 0}setDate(e,t){this.setValue(cp(e??null,!1),t)}},Ktt={selector:"AG-INPUT-DATE-FIELD",component:Ytt},t5t=1e3,n5t=1e3,kEe=100,LEe,KH=!1,r5t=class extends dt{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc,this.userCompFactory=e.userCompFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return e==="show"?this.tooltipCtrl.getTooltipShowDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipCtrl.getTooltipHideDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!xx()&&(KH?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},kEe):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,n=this.tooltipCtrl.getGui(),r=this.tooltipComp?.getGui();this.isInteractingWithTooltip||n.contains(t)||this.interactionEnabled&&r?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||KH)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-LEe<t5t}setToDoNothing(e){!e&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!Ut(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const n=t.getRowNode?.(),r=Gn(this.gos,{location:t.getLocation?.()??"UNKNOWN",colDef:t.getColDef?.(),column:t.getColumn?.(),rowIndex:t.getRowIndex?.(),node:n,data:n?.data,value:e,valueFormatted:t.getValueFormatted?.(),hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()??{}});this.state=2,this.tooltipInstanceCount++;const i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);ULt(this.userCompFactory,r)?.newAgStackInstance().then(i)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),LEe=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");const i=this.getLocaleTextFunc(),o=this.popupSvc?.addPopup({eChild:r,ariaLabel:i("ariaLabelTooltip","Tooltip")});if(o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const a=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:a,columnMoved:a})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(bl(this.beans),{keydown:a=>{r.contains(a?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:r,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=$i(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,n=this.tooltipTrigger===0?n5t:0;window.setTimeout(()=>{e(),this.destroyBean(t)},n),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(e=>{e&&e()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){KH=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},kEe)}unlockService(){KH=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};function qN(e){return e.get("tooltipShowMode")==="whenTruncated"}function _K(e,t){return qN(e)?FO(t):void 0}function FO(e){return()=>{const t=e();return t?t.scrollWidth>t.clientWidth:!0}}var i5t=class extends dt{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e){const t="title",n=this.ctrl.getGui();n&&(e!=null&&e!=""?n.setAttribute(t,e):n.removeAttribute(t))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){this.tooltipManager==null&&(this.tooltipManager=this.createBean(new r5t(this.ctrl,()=>this.tooltip),this.beans.context))}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},o5t=class extends Gt{constructor(e="default",t=!1){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.unFocusable=t,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(e,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){const t=e.key;switch(t){case Qe.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{const n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}break;case Qe.DOWN:case Qe.UP:e.preventDefault(),this.navigate(t);break;case Qe.PAGE_DOWN:case Qe.PAGE_UP:case Qe.PAGE_HOME:case Qe.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}navigate(e){const t=e===Qe.DOWN;let n;const{itemEls:r,highlightedEl:i}=this;if(!i)n=r[t?0:r.length-1];else{let a=r.indexOf(i)+(t?1:-1);a=Math.min(Math.max(a,0),r.length-1),n=r[a]}this.highlightItem(n)}navigateToPage(e){const{itemEls:t,highlightedEl:n}=this;if(!n||t.length===0)return;const r=t.indexOf(n),i=this.options.length-1,o=t[0].clientHeight,a=Math.floor(this.getGui().clientHeight/o);let s=-1;e===Qe.PAGE_HOME?s=0:e===Qe.PAGE_END?s=i:e===Qe.PAGE_DOWN?s=Math.min(r+a,i):e===Qe.PAGE_UP&&(s=Math.max(r-a,0)),s!==-1&&this.highlightItem(t[s])}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){const{value:t,text:n}=e,r=n??t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(e=>{Ps(e)}),this.itemEls=[],this.refreshAriaRole()}refreshAriaRole(){const e=this.getGui();C0(e,this.options.length===0?"presentation":"listbox")}updateIndices(){const e=this.getGui().querySelectorAll(".ag-list-item");this.refreshAriaRole(),e.forEach((t,n)=>{yK(t,n+1),bK(t,e.length)})}renderOption(e,t){const n=Nr({tag:"div",cls:`ag-list-item ag-${this.cssIdentifier}-list-item`,attrs:{role:"option"}}),r=Nr({tag:"span",children:t});n.appendChild(r),this.unFocusable||(n.tabIndex=-1),this.itemEls.push(n),this.addManagedListeners(n,{mouseover:()=>this.highlightItem(n),mousedown:i=>{i.preventDefault(),i.stopPropagation(),this.setValue(e)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>t,getGui:()=>n,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>r.scrollWidth>r.clientWidth})),this.getGui().appendChild(n)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const n=this.options.findIndex(r=>r.value===e);if(n!==-1){const r=this.options[n];this.value=r.value,this.displayValue=r.text,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!x0(e))return;this.clearHighlighted(),this.highlightedEl=e,e.classList.add(this.activeClass),dW(e,!0);const t=this.getGui(),{scrollTop:n,clientHeight:r}=t,{offsetTop:i,offsetHeight:o}=e;(i+o>n+r||i<n)&&e.scrollIntoView({block:"nearest"}),this.unFocusable||e.focus()}clearHighlighted(){const e=this.highlightedEl;!e||!x0(e)||(e.classList.remove(this.activeClass),dW(e,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},a5t=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:disabled{opacity:.5}&.ag-picker-has-focus,&:focus-within{background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow)}}",s5t={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},_ye=class extends Gtt{constructor(e){if(super(e,e?.template||s5t,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=at,this.eWrapper=at,this.eDisplayField=at,this.eIcon=at,this.registerCSS(a5t),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:n,variableWidth:r,minPickerWidth:i,maxPickerWidth:o}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!r,n!=null&&this.setPickerMaxHeight(n),i!=null&&this.setPickerMinWidth(i),o!=null&&this.setPickerMaxWidth(o)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:n,inputWidth:r}=this.config;if(n){const i=er(n,this.beans);i&&this.eIcon.appendChild(i)}r!=null&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),d1(e,!1),this.ariaRole&&C0(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case Qe.UP:case Qe.DOWN:case Qe.ENTER:case Qe.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Qe.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:n,pickerAriaLabelValue:r,modalPicker:i=!0},maxPickerHeight:o,minPickerWidth:a,maxPickerWidth:s,variableWidth:l,beans:c,eWrapper:u}=this,d={modal:i,eChild:e,closeOnEsc:!0,closedCallback:()=>{const m=$x(c);this.beforeHidePicker(),m&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(n,r),anchorToElement:u};e.style.position="absolute";const p=c.popupSvc,h=p.addPopup(d);l?(a&&(e.style.minWidth=a),e.style.width=tye(gz(u)),s&&(e.style.maxWidth=s)):S$(e,s??gz(u));const g=o??`${CK(p.getPopupParent())}px`;return e.style.setProperty("max-height",g),this.alignPickerToComponent(),h.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:n,gos:r},eWrapper:i,pickerComponent:o}=this,a=r.get("enableRtl")?"right":"left";n.positionPopupByComponent({type:t,eventSource:i,ePopup:o.getGui(),position:"under",alignSide:a,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();d1(t,e);const n=this.eWrapper.classList;n.toggle("ag-picker-expanded",e),n.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker?.()}setInputWidth(e){return S$(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},l5t=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}",l1=class extends _ye{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(l5t)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:FO(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:n}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),n&&t==null&&(this.eDisplayField.textContent=n),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new o5t("select",!0));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),n=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",n),K2e(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:r=>{r?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(e){const{key:t}=e;switch(t===Qe.TAB&&this.hidePicker(),t){case Qe.ENTER:case Qe.UP:case Qe.DOWN:case Qe.PAGE_UP:case Qe.PAGE_DOWN:case Qe.PAGE_HOME:case Qe.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case Qe.ESCAPE:super.onKeyDown(e);break;case Qe.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}setValue(e,t,n){const{listComponent:r,config:{placeholder:i},eDisplayField:o,tooltipFeature:a}=this;if(this.value===e||!r)return this;if(n||r.setValue(e,!0),r.getValue()===this.getValue())return this;let l=r.getDisplayValue();return l==null&&i&&(l=i),o.textContent=l,a?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},C6={selector:"AG-SELECT",component:l1},WO={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},Qtt=class extends dt{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:t,eTopGuard:n,eBottomGuard:r,focusTrapActive:i,forceFocusOutWhenTabGuardsAreEmpty:o,isFocusableContainer:a,focusInnerElement:s,onFocusIn:l,onFocusOut:c,shouldStopEventPropagation:u,onTabKeyDown:d,handleKeyDown:p,isEmpty:h,eFocusableElement:g}=e;this.comp=t,this.eTopGuard=n,this.eBottomGuard=r,this.providedFocusInnerElement=s,this.eFocusableElement=g,this.focusTrapActive=!!i,this.forceFocusOutWhenTabGuardsAreEmpty=!!o,this.isFocusableContainer=!!a,this.providedFocusIn=l,this.providedFocusOut=c,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=d,this.providedHandleKeyDown=p,this.providedIsEmpty=h}postConstruct(){this.createManagedBean(new Mw(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(e=>this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)}))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():lm(this.eFocusableElement,".ag-tab-guard").length===0)){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const t=bl(this.beans),n=lm(t.body,null,!0),r=n.indexOf(e?this.eTopGuard:this.eBottomGuard);if(r===-1)return;let i,o;e?(i=0,o=r):(i=r+1,o=n.length);const a=n.slice(i,o),s=this.gos.get("tabIndex");a.sort((l,c)=>{const u=parseInt(l.getAttribute("tabindex")||"0"),d=parseInt(c.getAttribute("tabindex")||"0");return d===s?1:u===s?-1:u===0?1:d===0?-1:u-d}),a[e?a.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const n=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),n&&(n.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=lm(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length?(t[e?t.length-1:0].focus({preventScroll:!0}),!0):!1}getNextFocusableElement(e){return Cd(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},Ztt=class extends dt{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:n,eFocusableElement:r}=this,i=[t,n],o={setTabIndex:b=>{i.forEach(y=>b!=null?y.setAttribute("tabindex",b):y.removeAttribute("tabindex"))}};this.addTabGuards(t,n);const{focusTrapActive:a=!1,onFocusIn:s,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:d,shouldStopEventPropagation:p,isEmpty:h,forceFocusOutWhenTabGuardsAreEmpty:g,isFocusableContainer:m}=e;this.tabGuardCtrl=this.createManagedBean(new Qtt({comp:o,focusTrapActive:a,eTopGuard:t,eBottomGuard:n,eFocusableElement:r,onFocusIn:s,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:d,shouldStopEventPropagation:p,isEmpty:h,forceFocusOutWhenTabGuardsAreEmpty:g,isFocusableContainer:m}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=bl(this.beans).createElement("div"),n=e==="top"?WO.TAB_GUARD_TOP:WO.TAB_GUARD_BOTTOM;return t.classList.add(WO.TAB_GUARD,n),C0(t,"presentation"),t}addTabGuards(e,t){const n=this.eFocusableElement;n.insertAdjacentElement("afterbegin",e),n.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];Xi(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,n){wK(t)||(t=t.getGui());const{eBottomGuard:r}=this;r?r.insertAdjacentElement("beforebegin",t):e(t,n)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;Ps(e),Ps(t),super.destroy()}},Gb=class extends Gt{initialiseTabGuard(t){this.tabGuardFeature=this.createManagedBean(new Ztt(this)),this.tabGuardFeature.initialiseTabGuard(t)}forceFocusOutOfContainer(t=!1){this.tabGuardFeature.forceFocusOutOfContainer(t)}appendChild(t,n){this.tabGuardFeature.appendChild(super.appendChild.bind(this),t,n)}},Cw=class extends Gt{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},sy=class{constructor(e,t=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new Wy,this.preventMouseClick=t;const n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);e.addEventListener("touchstart",n,{passive:!0}),e.addEventListener("touchmove",r,{passive:!0}),e.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push(()=>{e.removeEventListener("touchstart",n,{passive:!0}),e.removeEventListener("touchmove",r,{passive:!0}),e.removeEventListener("touchend",i,{passive:!1})})}getActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}onTouchStart(e){if(this.touching)return;this.touchStart=e.touches[0],this.touching=!0,this.moved=!1;const t=this.touchStart;window.setTimeout(()=>{const n=this.touchStart===t;if(this.touching&&n&&!this.moved){this.moved=!0;const r={type:"longTap",touchStart:this.touchStart,touchEvent:e};this.localEventService.dispatchEvent(r)}},500)}onTouchMove(e){if(!this.touching)return;const t=this.getActiveTouch(e.touches);if(!t)return;!Mtt(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(e){if(this.touching){if(!this.moved){const t={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(t),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}}checkForDoubleTap(){const e=Date.now();if(this.lastTapTime&&this.lastTapTime>0)if(e-this.lastTapTime>this.DOUBLE_TAP_MILLIS){const n={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(n),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e}destroy(){this.destroyFuncs.forEach(e=>e())}},hf=(e=>(e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION",e))(hf||{}),Jtt=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${get}/${this.frameworkName}-data-grid`,Akt(this.baseDocLink)}setInterval(e,t){return new Dr(n=>{n(window.setInterval(e,t))})}addEventListener(e,t,n,r){let i={};if(typeof r=="object"?i=r:typeof r=="boolean"&&(i={capture:r}),i.passive==null){const o=_et(t);o!=null&&(i.passive=o)}e.addEventListener(t,n,i)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`${this.baseDocLink}${e?`/${e}`:""}`}};function c5t(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var u5t=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","funcColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],_Ee=Object.fromEntries(u5t.map((e,t)=>[e,t]));function d5t(e,t){const n=(e.beanName?_Ee[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,r=(t.beanName?_Ee[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return n-r}function p5t(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}var h5t={tag:"div",cls:"ag-pinned-left-header",role:"rowgroup"},f5t={tag:"div",cls:"ag-pinned-right-header",role:"rowgroup"},g5t={tag:"div",cls:"ag-header-viewport",role:"presentation",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eCenterContainer",cls:"ag-header-container",role:"rowgroup"}]},cre=class extends Gt{constructor(t){super(),this.eCenterContainer=at,this.headerRowComps={},this.rowCompsList=[],this.pinned=t}postConstruct(){this.selectAndSetTemplate();const t={setDisplayed:r=>this.setDisplayed(r),setCtrls:r=>this.setCtrls(r),setCenterWidth:r=>this.eCenterContainer.style.width=r,setViewportScrollLeft:r=>this.getGui().scrollLeft=r,setPinnedContainerWidth:r=>{const i=this.getGui();i.style.width=r,i.style.maxWidth=r,i.style.minWidth=r}};this.createManagedBean(new Htt(this.pinned)).setComp(t,this.getGui())}selectAndSetTemplate(){const t=this.pinned=="left",n=this.pinned=="right",r=t?h5t:n?f5t:g5t;this.setTemplate(r),this.eRowContainer=this.eCenterContainer!==at?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())}setCtrls(t){const n=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let r;const i=o=>{const a=o.getGui();a.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(a),r&&det(this.eRowContainer,a,r),r=a};t.forEach(o=>{const a=o.instanceId,s=n[a];delete n[a];const l=s||this.createBean(new y_t(o));this.headerRowComps[a]=l,this.rowCompsList.push(l),i(l)}),Object.values(n).forEach(o=>this.destroyRowComp(o))}},m5t={tag:"div",cls:"ag-header",role:"presentation"},v5t=class extends Gt{constructor(){super(m5t)}postConstruct(){const t={toggleCss:(i,o)=>this.toggleCss(i,o),setHeightAndMinHeight:i=>{this.getGui().style.height=i,this.getGui().style.minHeight=i}};this.createManagedBean(new Btt).setComp(t,this.getGui(),this.getFocusableElement());const r=i=>{this.createManagedBean(i),this.appendChild(i)};r(new cre("left")),r(new cre(null)),r(new cre("right"))}},b5t={selector:"AG-HEADER-ROOT",component:v5t},y5t=class extends Gt{constructor(t,n,r,i,o){super(),this.cellCtrl=n,this.rendererVersion=0,this.editorVersion=0,this.beans=t,this.column=n.column,this.rowNode=n.rowNode,this.eRow=i;const a=Nr({tag:"div",role:n.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":n.column.colIdSanitised}});this.eCell=a;let s;n.isCellSpanning()?(s=Nr({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"}),s.appendChild(a),this.setTemplateFromElement(s)):this.setTemplateFromElement(a),this.cellCssManager=new gD(()=>a),this.forceWrapper=n.isForceWrapper(),this.refreshWrapper(!1);const l={toggleCss:(c,u)=>this.cellCssManager.toggleCss(c,u),setUserStyles:c=>m6(a,c),getFocusableElement:()=>a,setIncludeSelection:c=>this.includeSelection=c,setIncludeRowDrag:c=>this.includeRowDrag=c,setIncludeDndSource:c=>this.includeDndSource=c,setRenderDetails:(c,u,d)=>this.setRenderDetails(c,u,d),setEditDetails:(c,u,d)=>this.setEditDetails(c,u,d),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};n.setComp(l,a,s,this.eCellWrapper,r,o,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRenderDetails(t,n,r){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;const o=this.refreshWrapper(!1);this.refreshEditStyles(!1),t?!(r||o)&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(n))}setEditDetails(t,n,r){t?this.createCellEditorInstance(t,n,r):this.destroyEditor()}removeControls(){const t=this.beans.context;this.checkboxSelectionComp=t.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=t.destroyBean(this.dndSourceComp),this.rowDraggingComp=t.destroyBean(this.rowDraggingComp)}refreshWrapper(t){const n=this.includeRowDrag||this.includeDndSource||this.includeSelection,r=n||this.forceWrapper,i=r&&this.eCellWrapper==null;i&&(this.eCellWrapper=Nr({tag:"div",cls:"ag-cell-wrapper",role:"presentation"}),this.eCell.appendChild(this.eCellWrapper));const o=!r&&this.eCellWrapper!=null;o&&(Ps(this.eCellWrapper),this.eCellWrapper=void 0),this.cellCssManager.toggleCss("ag-cell-value",!r);const a=!t&&r,s=a&&this.eCellValue==null;s&&(this.eCellValue=Nr({tag:"span",cls:"ag-cell-value",role:"presentation"}),this.eCellWrapper.appendChild(this.eCellValue));const l=!a&&this.eCellValue!=null;l&&(Ps(this.eCellValue),this.eCellValue=void 0);const c=i||o||s||l;return c&&this.removeControls(),!t&&n&&this.addControls(),c}addControls(){const{cellCtrl:t,eCellWrapper:n,eCellValue:r,includeRowDrag:i,includeDndSource:o,includeSelection:a}=this,s=l=>{l&&n.insertBefore(l.getGui(),r)};i&&this.rowDraggingComp==null&&(this.rowDraggingComp=t.createRowDragComp(),s(this.rowDraggingComp)),o&&this.dndSourceComp==null&&(this.dndSourceComp=t.createDndSource(),s(this.dndSourceComp)),a&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=t.createSelectionCheckbox(),s(this.checkboxSelectionComp))}createCellEditorInstance(t,n,r){const i=this.editorVersion,o=t.newAgStackInstance(),{params:a}=t;o.then(l=>this.afterCellEditorCreated(i,l,a,n,r)),Yi(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(t){const n=this.getParentOfValue();Xi(n);const r=Df(t);r!=null&&(n.textContent=r)}destroyRenderer(){const{context:t}=this.beans;this.cellRenderer=t.destroyBean(this.cellRenderer),Ps(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:t}=this.beans;(this.cellEditorPopupWrapper?.getGui().contains($i(this.beans))||this.cellCtrl.hasBrowserFocus())&&this.eCell.focus({preventScroll:!0}),this.hideEditorPopup?.(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),Ps(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(t){if(this.cellRenderer?.refresh==null||this.cellRendererClass!==t.componentClass)return!1;const n=this.cellRenderer.refresh(t.params);return n===!0||n===void 0}createCellRendererInstance(t){const n=this.rendererVersion,{componentClass:r}=t,i=()=>{if(this.rendererVersion!==n||!this.isAlive())return;const s=t.newAgStackInstance(),l=this.afterCellRendererCreated.bind(this,n,r);s?.then(l)},{animationFrameSvc:o}=this.beans;o?.active&&this.firstRender?o.createTask(i,this.rowNode.rowIndex,"p2",t.componentFromFramework):i()}afterCellRendererCreated(t,n,r){if(!this.isAlive()||t!==this.rendererVersion){this.beans.context.destroyBean(r);return}this.cellRenderer=r,this.cellRendererClass=n;const o=r.getGui();if(this.cellRendererGui=o,o!=null){const a=this.getParentOfValue();Xi(a),a.appendChild(o)}}afterCellEditorCreated(t,n,r,i,o){const a=t!==this.editorVersion,{context:s}=this.beans;if(a){s.destroyBean(n);return}if(n.isCancelBeforeStart&&n.isCancelBeforeStart()){s.destroyBean(n),this.cellCtrl.stopEditing(!0);return}if(!n.getGui){ut(97,{colId:this.column.getId()}),s.destroyBean(n);return}this.cellEditor=n,this.cellEditorGui=n.getGui();const c=i||n.isPopup!==void 0&&n.isPopup();c?this.addPopupCellEditor(r,o):this.addInCellEditor(),this.refreshEditStyles(!0,c),n.afterGuiAttached?.(),this.cellCtrl.cellEditorAttached()}refreshEditStyles(t,n){const{cellCssManager:r}=this;r.toggleCss("ag-cell-inline-editing",t&&!n),r.toggleCss("ag-cell-popup-editing",t&&!!n),r.toggleCss("ag-cell-not-inline-editing",!t||!!n),this.cellCtrl.setInlineEditingCss()}addInCellEditor(){const{eCell:t}=this;t.contains($i(this.beans))&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),Xi(this.getParentOfValue()),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(t,n){const{gos:r,context:i,editSvc:o,popupSvc:a,localeSvc:s}=this.beans;r.get("editType")==="fullRow"&&ut(98);const l=this.cellEditor;this.cellEditorPopupWrapper=i.createBean(o.createPopupEditorWrapper(t));const c=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&c.appendChild(this.cellEditorGui);const u=r.get("stopEditingWhenCellsLoseFocus"),d=n??l.getPopupPosition?.()??"over",p=r.get("enableRtl"),h={ePopup:c,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.eCell,position:d,alignSide:p?"right":"left",keepWithinBounds:!0},g=a.positionPopupByComponent.bind(a,h),m=$2e(s),b=a.addPopup({modal:u,eChild:c,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.eCell,positionCallback:g,ariaLabel:m("ariaLabelCellEditor","Cell Editor")});b&&(this.hideEditorPopup=b.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyRenderer(),this.destroyEditor(),this.removeControls(),super.destroy()}},M5t=class extends Gt{constructor(t,n,r){super(),this.cellComps=new Map,this.beans=n,this.rowCtrl=t;const i=Nr({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});this.setInitialStyle(i,r),this.setTemplateFromElement(i);const o=i.style;this.domOrder=this.rowCtrl.getDomOrder();const a={setDomOrder:s=>this.domOrder=s,setCellCtrls:s=>this.setCellCtrls(s),showFullWidth:s=>this.showFullWidth(s),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,toggleCss:(s,l)=>this.toggleCss(s,l),setUserStyles:s=>m6(i,s),setTop:s=>o.top=s,setTransform:s=>o.transform=s,setRowIndex:s=>i.setAttribute("row-index",s),setRowId:s=>i.setAttribute("row-id",s),setRowBusinessKey:s=>i.setAttribute("row-business-key",s),refreshFullWidth:s=>this.fullWidthCellRenderer?.refresh?.(s())??!1};t.setComp(a,this.getGui(),r,void 0),this.addDestroyFunc(()=>{t.unsetComp(r)})}setInitialStyle(t,n){const r=this.rowCtrl.getInitialTransform(n);if(r)t.style.setProperty("transform",r);else{const i=this.rowCtrl.getInitialRowTop(n);i&&t.style.setProperty("top",i)}}showFullWidth(t){const n=i=>{if(this.isAlive()){const o=i.getGui();this.getGui().appendChild(o),this.rowCtrl.setupDetailRowAutoHeight(o),this.setFullWidthRowComp(i)}else this.beans.context.destroyBean(i)};t.newAgStackInstance().then(n)}setCellCtrls(t){const n=new Map(this.cellComps);for(const r of t){const i=r.instanceId;this.cellComps.has(i)?n.delete(i):this.newCellComp(r)}this.destroyCells(n),this.ensureDomOrder(t)}ensureDomOrder(t){if(!this.domOrder)return;const n=[];for(const r of t){const i=this.cellComps.get(r.instanceId);i&&n.push(i.getGui())}pet(this.getGui(),n)}newCellComp(t){const n=new y5t(this.beans,t,this.rowCtrl.printLayout,this.getGui(),this.rowCtrl.editing);this.cellComps.set(t.instanceId,n),this.getGui().appendChild(n.getGui())}destroy(){super.destroy(),this.destroyCells(this.cellComps)}setFullWidthRowComp(t){this.fullWidthCellRenderer=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)})}destroyCells(t){for(const n of t.values()){if(!n)return;const r=n.cellCtrl.instanceId;if(this.cellComps.get(r)!==n)return;n.detach(),n.destroy(),this.cellComps.delete(r)}}};function C5t(e,t,n){const r=!!n.gos.get("enableCellSpan")&&!!t.getSpannedRowCtrls,i={tag:"div",ref:"eContainer",cls:_N(e),role:"rowgroup"};if(t.type==="center"||r){const o={tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${Rtt(e)}`,role:"rowgroup"};return{tag:"div",ref:"eViewport",cls:`ag-viewport ${Tye(e)}`,role:"presentation",children:[i,r?o:null]}}return i}var x5t=class extends Gt{constructor(t){super(),this.eViewport=at,this.eContainer=at,this.eSpannedContainer=at,this.rowCompsNoSpan={},this.rowCompsWithSpan={},this.name=t?.name,this.options=mD(this.name)}postConstruct(){this.setTemplate(C5t(this.name,this.options,this.beans));const t={setHorizontalScroll:r=>this.eViewport.scrollLeft=r,setViewportHeight:r=>this.eViewport.style.height=r,setRowCtrls:({rowCtrls:r})=>this.setRowCtrls(r),setSpannedRowCtrls:r=>this.setRowCtrls(r,!0),setDomOrder:r=>{this.domOrder=r},setContainerWidth:r=>{this.eContainer.style.width=r,this.eSpannedContainer&&(this.eSpannedContainer.style.width=r)},setOffsetTop:r=>{const i=`translateY(${r})`;this.eContainer.style.transform=i,this.eSpannedContainer&&(this.eSpannedContainer.style.transform=i)}};this.createManagedBean(new Dtt(this.name)).setComp(t,this.eContainer,this.eSpannedContainer,this.eViewport)}destroy(){this.setRowCtrls([]),this.setRowCtrls([],!0),super.destroy(),this.lastPlacedElement=null}setRowCtrls(t,n){const{beans:r,options:i}=this,o=n?this.eSpannedContainer:this.eContainer,a=n?{...this.rowCompsWithSpan}:{...this.rowCompsNoSpan},s={};n?this.rowCompsWithSpan=s:this.rowCompsNoSpan=s,this.lastPlacedElement=null;const l=[];for(const c of t){const u=c.instanceId,d=a[u];let p;if(d)p=d,delete a[u];else{if(!c.rowNode.displayed)continue;p=new M5t(c,r,i.type)}s[u]=p,l.push([p,!d])}this.removeOldRows(Object.values(a),o),this.addRowNodes(l,o)}addRowNodes(t,n){const{domOrder:r}=this;for(const[i,o]of t){const a=i.getGui();r?this.ensureDomOrder(a,n):o&&n.appendChild(a)}}removeOldRows(t,n){for(const r of t)n.removeChild(r.getGui()),r.destroy()}ensureDomOrder(t,n){det(n,t,this.lastPlacedElement),this.lastPlacedElement=t}},w5t={selector:"AG-ROW-CONTAINER",component:x5t};function ZL(e,t){return t.map(n=>{const r=`e${n[0].toUpperCase()+n.substring(1)}RowContainer`;return e[r]={name:n},{tag:"ag-row-container",ref:r,attrs:{name:n}}})}function S5t(e){const t={},n={tag:"div",ref:"eGridRoot",cls:"ag-root ag-unselectable",children:[{tag:"ag-header-root"},{tag:"div",ref:"eTop",cls:"ag-floating-top",role:"presentation",children:ZL(t,["topLeft","topCenter","topRight","topFullWidth"])},{tag:"div",ref:"eBody",cls:"ag-body",role:"presentation",children:[{tag:"div",ref:"eBodyViewport",cls:"ag-body-viewport",role:"presentation",children:ZL(t,["left","center","right","fullWidth"])},{tag:"ag-fake-vertical-scroll"}]},{tag:"div",ref:"eStickyTop",cls:"ag-sticky-top",role:"presentation",children:ZL(t,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])},{tag:"div",ref:"eStickyBottom",cls:"ag-sticky-bottom",role:"presentation",children:ZL(t,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])},{tag:"div",ref:"eBottom",cls:"ag-floating-bottom",role:"presentation",children:ZL(t,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])},{tag:"ag-fake-horizontal-scroll"},e?{tag:"ag-overlay-wrapper"}:null]};return{paramsMap:t,elementParams:n}}var A5t=class extends Gt{constructor(){super(...arguments),this.eGridRoot=at,this.eBodyViewport=at,this.eStickyTop=at,this.eStickyBottom=at,this.eTop=at,this.eBottom=at,this.eBody=at}postConstruct(){const{overlays:t,rangeSvc:n}=this.beans,r=t?.getOverlayWrapperSelector(),{paramsMap:i,elementParams:o}=S5t(!!r);this.setTemplate(o,[...r?[r]:[],s_t,c_t,b5t,w5t],i);const a=(l,c)=>{const u=`${l}px`;c.style.minHeight=u,c.style.height=u},s={setRowAnimationCssOnBodyViewport:(l,c)=>this.setRowAnimationCssOnBodyViewport(l,c),setColumnCount:l=>ZJe(this.getGui(),l),setRowCount:l=>QJe(this.getGui(),l),setTopHeight:l=>a(l,this.eTop),setBottomHeight:l=>a(l,this.eBottom),setTopInvisible:l=>this.eTop.classList.toggle("ag-invisible",l),setBottomInvisible:l=>this.eBottom.classList.toggle("ag-invisible",l),setStickyTopHeight:l=>this.eStickyTop.style.height=l,setStickyTopTop:l=>this.eStickyTop.style.top=l,setStickyTopWidth:l=>this.eStickyTop.style.width=l,setStickyBottomHeight:l=>{this.eStickyBottom.style.height=l,this.eStickyBottom.classList.toggle("ag-invisible",l==="0px")},setStickyBottomBottom:l=>this.eStickyBottom.style.bottom=l,setStickyBottomWidth:l=>this.eStickyBottom.style.width=l,setColumnMovingCss:(l,c)=>this.toggleCss(l,c),updateLayoutClasses:(l,c)=>{const u=[this.eBodyViewport.classList,this.eBody.classList];for(const d of u)d.toggle(Vg.AUTO_HEIGHT,c.autoHeight),d.toggle(Vg.NORMAL,c.normal),d.toggle(Vg.PRINT,c.print);this.toggleCss(Vg.AUTO_HEIGHT,c.autoHeight),this.toggleCss(Vg.NORMAL,c.normal),this.toggleCss(Vg.PRINT,c.print)},setAlwaysVerticalScrollClass:(l,c)=>this.eBodyViewport.classList.toggle(ktt,c),registerBodyViewportResizeListener:l=>{const c=Hf(this.beans,this.eBodyViewport,l);this.addDestroyFunc(()=>c())},setPinnedTopBottomOverflowY:l=>this.eTop.style.overflowY=this.eBottom.style.overflowY=l,setCellSelectableCss:(l,c)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach(u=>u.classList.toggle(l,c))},setBodyViewportWidth:l=>this.eBodyViewport.style.width=l,setGridRootRole:l=>C0(this.eGridRoot,l)};this.ctrl=this.createManagedBean(new Ltt),this.ctrl.setComp(s,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(n&&r1(this.gos)||By(this.gos))&&pkt(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(t,n){const r=this.eBodyViewport.classList;r.toggle("ag-row-animation",n),r.toggle("ag-row-no-animation",!n)}},O5t={selector:"AG-GRID-BODY",component:A5t},ent=class extends dt{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,n){this.view=e,this.eGridHostDiv=t,this.eGui=n,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());const{dragAndDrop:r,ctrlsSvc:i}=this.beans;r?.registerGridDropTarget(()=>this.eGui,this),mtt(this.gos,t),this.createManagedBean(new Sye(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const o=Hf(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>o()),i.register("gridCtrl",this)}isDetailGrid(){return bye(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){this.view.setCursor(e?"ew-resize":null)}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:n,nextIndex:r}=this.getNextFocusableIndex(t,e);if(r<0||r>=t.length)return!1;if(r===0){if(n>0){const{visibleCols:i,focusSvc:o}=this.beans,a=i.allCols,s=zr(a);if(o.focusGridView({column:s,backwards:!0}))return!0}return!1}return this.focusContainer(t[r],e)}focusInnerElement(e){const t=this.gos.getCallback("focusGridInnerElement");if(t&&t({fromBottom:!!e}))return!0;const n=this.getFocusableContainers(),{focusSvc:r,visibleCols:i}=this.beans,o=i.allCols;if(e){if(n.length>1)return this.focusContainer(zr(n),e);const a=zr(o);if(r.focusGridView({column:a,backwards:e}))return!0}if(this.gos.get("headerHeight")===0||NO(this.beans)){if(r.focusGridView({column:o[0],backwards:e}))return!0;for(let a=1;a<n.length;a++)if(zu(n[a].getGui(),e))return!0;return!1}return r.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{nextIndex:n,indexWithFocus:r}=this.getNextFocusableIndex(t,e);if(r===-1||n<0||n>=t.length)return;const i=t[n];i.setAllowFocus?.(!0),setTimeout(()=>{i.setAllowFocus?.(!1)})}isFocusable(){const e=this.beans;return!RK(e)||!NO(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const n=$i(this.beans),r=e.findIndex(o=>o.getGui().contains(n)),i=r+(t?-1:1);return{indexWithFocus:r,nextIndex:i}}focusContainer(e,t){e.setAllowFocus?.(!0);const n=zu(e.getGui(),t,!1,!0);return e.setAllowFocus?.(!1),n}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},z5t=class extends Gb{constructor(t){super(),this.gridBody=at,this.sideBar=at,this.pagination=at,this.rootWrapperBody=at,this.eGridDiv=t}postConstruct(){const t={destroyGridUi:()=>this.destroyBean(this),setRtlClass:a=>this.addCss(a),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:a=>{this.getGui().style.userSelect=a??"",this.getGui().style.webkitUserSelect=a??""},setCursor:a=>{this.getGui().style.cursor=a??""}},n=this.createManagedBean(new ent),r=n.getOptionalSelectors(),i=this.createTemplate(r),o=[O5t,...Object.values(r).filter(a=>!!a)];this.setTemplate(i,o),n.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:a=>n.focusInnerElement(a),forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:()=>!n.isFocusable()})}insertGridIntoDom(){const t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc(()=>{this.eGridDiv.removeChild(t),Gx(this.gos,"Grid removed from DOM")})}updateLayoutClasses(t,n){const r=this.rootWrapperBody.classList,{AUTO_HEIGHT:i,NORMAL:o,PRINT:a}=Vg,{autoHeight:s,normal:l,print:c}=n;r.toggle(i,s),r.toggle(o,l),r.toggle(a,c),this.toggleCss(i,s),this.toggleCss(o,l),this.toggleCss(a,c)}createTemplate(t){const n=t.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones"}:null,r=t.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null,i=t.statusBarSelector?{tag:"ag-status-bar"}:null,o=t.watermarkSelector?{tag:"ag-watermark"}:null,a=t.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null;return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[n,{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},r]},i,a,o]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(t=!1){if(!t&&this.pagination?.isDisplayed()){this.pagination.forceFocusOutOfContainer(t);return}super.forceFocusOutOfContainer(t)}getFocusableContainers(){const t=[this.gridBody];return[this.sideBar,this.pagination].forEach(n=>{n&&t.push(n)}),t.filter(n=>x0(n.getGui()))}},Ei=(e,t)=>{for(const n of Object.keys(t))t[n]=e;return t},NEe={dispatchEvent:"CommunityCore",...Ei("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...Ei("GridState",{getState:0}),...Ei("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...Ei("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...Ei("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...Ei("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...Ei("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...Ei("ValueCache",{expireValueCache:0}),...Ei("CellApi",{getCellValue:0}),...Ei("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...Ei("Sort",{onSortChanged:0}),...Ei("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...Ei("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...Ei("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...Ei("HighlightChanges",{flashCells:0}),...Ei("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0}),...Ei("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...Ei("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...Ei("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...Ei("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...Ei("ColumnResize",{setColumnWidths:0}),...Ei("ColumnHover",{isColumnHovered:0}),...Ei("EditCore",{getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0}),...Ei("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...Ei("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...Ei("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0}),...Ei("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...Ei("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...Ei("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...Ei("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,onRowHeightChanged:0}),...Ei("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...Ei("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0}),...Ei("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...Ei("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...Ei("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...Ei("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...Ei("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...Ei("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...Ei("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...Ei("ContextMenu",{showContextMenu:0}),...Ei("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...Ei("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...Ei("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...Ei("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...Ei("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...Ei("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0}),...Ei("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...Ei("StatusBar",{getStatusPanel:0})},ure={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},T5t=(e,t)=>e.eventSvc.dispatchEvent(t),tnt=class{};Reflect.defineProperty(tnt,"name",{value:"GridApi"});var E5t=class extends dt{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new tnt,this.fns={...ure,dispatchEvent:T5t},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(NEe))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:n,beans:r}=this;n!==ure&&(n[e]=r?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:n,fns:{[e]:r}}=this;return r?r(n,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:n,preDestroyLink:r}=this;if(!t)ut(26,{fnName:e,preDestroyLink:r});else{const i=NEe[e];n.assertModuleRegistered(i,`api.${e}`)&&ut(27,{fnName:e,module:i})}}destroy(){super.destroy(),this.fns=ure,this.beans=null}};function R5t(e){return e.context.getGridId()}function I5t(e){e.gridDestroySvc.destroy()}function P5t(e){return e.gridDestroySvc.destroyCalled}function D5t(e,t){return e.gos.get(t)}function k5t(e,t,n){nnt(e,{[t]:n})}function nnt(e,t){e.gos.updateGridOptions({options:t})}function L5t(e,t){const n=t.replace(/Module$/,"");return e.gos.isModuleRegistered(n)}var _5t={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},N5t=class extends Gt{constructor(e,t,n){super(_5t),this.rowNode=e,this.column=t,this.eCell=n}postConstruct(){this.getGui().appendChild(er("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:n,eCell:r,gos:i}=this,o=n.getColDef().dndSourceOnRowDrag,a=e.dataTransfer;if(a.setDragImage(r,0,0),o){const s=Gn(i,{rowNode:t,dragEvent:e});o(s)}else try{const s=JSON.stringify(t.data);a.setData("application/json",s),a.setData("text/plain",s)}catch{}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}};function F5t(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)}function W5t(e,t){const n=e.dragAndDrop?.findExternalZone(t);n&&e.dragAndDrop?.removeDropTarget(n)}function q5t(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)}var B5t=class extends dt{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:n}=this.beans;return n.addDragSource(t),()=>n.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const n=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(n)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!0),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},j5t={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},H5t=class extends Gt{constructor(e,t,n,r,i,o){super(),this.cellValueFn=e,this.rowNode=t,this.column=n,this.customGui=r,this.dragStartPixels=i,this.suppressVisibilityChange=o,this.dragSource=null}isCustomGui(){return this.customGui!=null}postConstruct(){const{beans:e,rowNode:t,column:n,gos:r}=this;if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(j5t),this.getGui().appendChild(er("rowDrag",e,null)),this.addDragSource()),!this.suppressVisibilityChange){const i=r.get("rowDragManaged")?new G5t(this,t,n):new V5t(this,t,n);this.createManagedBean(i,this.beans.context)}}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}getSelectedNodes(){const e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];const n=this.beans.selectionSvc?.getSelectedNodes()??[];return n.indexOf(e)!==-1?n:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){const t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gos.get("rowDragText")}addDragSource(e=4){this.dragSource&&this.removeDragSource();const t=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(t,{mousedown:r=>{r?.preventDefault()}})[0]);const n=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:()=>{const r=this.getDragItem(),i=r.rowNodes?.length||1,o=this.getRowDragText(this.column);return o?o(r,i):i===1?this.cellValueFn():`${i} ${n("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},rnt=class extends dt{constructor(e,t,n){super(),this.parent=e,this.rowNode=t,this.column=n}setDisplayedOrVisible(e){const t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{let n=!0,r=!1;const{column:i,rowNode:o,parent:a}=this;i&&(n=i.isRowDrag(o)||a.isCustomGui(),r=typeof i.getColDef().rowDrag=="function"),r?(a.setDisplayed(!0,t),a.setVisible(n,t)):(a.setDisplayed(n,t),a.setVisible(!0,t))}}},V5t=class extends rnt{postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));const e=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:e}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const e=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(e)}},G5t=class extends rnt{postConstruct(){const e=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventSvc,{sortChanged:e,filterChanged:e,columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const{rowDragSvc:e,dragAndDrop:t,gos:n}=this.beans,r=e.rowDragFeature,i=r&&r.shouldPreventRowMove(),o=n.get("suppressRowDrag"),a=t.hasExternalDropZones(),s=i&&!a||o;this.setDisplayedOrVisible(s)}},$5t=class extends dt{constructor(){super(...arguments),this.beanName="rowDragSvc"}setupRowDrag(e,t){const n=t.createManagedBean(new R4t(e)),r=this.beans.dragAndDrop;r.addDropTarget(n),t.addDestroyFunc(()=>r.removeDropTarget(n)),this.rowDragFeature=n}createRowDragComp(e,t,n,r,i,o){return new H5t(e,t,n,r,i,o)}createRowDragCompForRow(e,t){if(r1(this.gos))return;const n=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${n("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,n,r,i,o){const a=this.gos;return a.get("rowDragManaged")&&(!sa(a)||a.get("pagination"))?void 0:this.createRowDragComp(n,e,t,r,i,o)}},Nye={moduleName:"Drag",version:Jn,beans:[I4t]},U5t={moduleName:"DragAndDrop",version:Jn,dynamicBeans:{dndSourceComp:N5t},icons:{rowDrag:"grip"}},y3={moduleName:"SharedDragAndDrop",version:Jn,beans:[O4t],dependsOn:[Nye],userComponents:{agDragAndDropImage:R_t},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},X5t={moduleName:"RowDrag",version:Jn,beans:[$5t],apiFunctions:{addRowDropZone:F5t,removeRowDropZone:W5t,getRowDropZoneParams:q5t},dependsOn:[y3]},int={moduleName:"HorizontalResize",version:Jn,beans:[B5t],dependsOn:[Nye]},Y5t=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}",K5t=class extends dt{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){const{executeNextFuncs:n,executeLaterFuncs:r}=this;if(n.length===0&&r.length===0){e(),t();return}const i=o=>{for(;o.length;){const a=o.pop();a&&a()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),i(n)},0),window.setTimeout(()=>{t(),i(r)},200)})}};function Q5t(e,t,n){e.colMoves?.moveColumnByIndex(t,n,"api")}function Z5t(e,t,n){e.colMoves?.moveColumns(t,n,"api")}var J5t=class extends dt{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;t&&t.forEach(n=>{n.isPrimary()&&(n.isAnyFunctionActive()||(n.isAllowValue()?this.columnsToAggregate.push(n):n.isAllowRowGroup()?this.columnsToGroup.push(n):n.isAllowPivot()&&this.columnsToPivot.push(n)))})}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:n,pivotColsSvc:r}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&n?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&r?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function eNt(e,t){!t||t.length<=1||t.filter(r=>e.indexOf(r)<0).length>0||t.sort((r,i)=>{const o=e.indexOf(r),a=e.indexOf(i);return o-a})}function ont(e){const{isFromHeader:t,fromLeft:n,xPosition:r,fromEnter:i,fakeEvent:o,pinned:a,gos:s,colModel:l,colMoves:c,visibleCols:u}=e;let{allMovingColumns:d}=e;if(t){const w=[];d.forEach(S=>{let A=null,z=S.getParent();for(;z!=null&&z.getDisplayedLeafColumns().length===1;)A=z,z=z.getParent();A!=null?(!!A.getColGroupDef()?.marryChildren?A.getProvidedColumnGroup().getLeafColumns():A.getLeafColumns()).forEach(R=>{w.includes(R)||w.push(R)}):w.includes(S)||w.push(S)}),d=w}const p=d.slice();eNt(l.getCols(),p);const h=iNt({movingCols:p,draggingRight:n,xPosition:r,pinned:a,gos:s,colModel:l,visibleCols:u}),g=tNt(p,l);if(h.length===0)return;const m=h[0];let b=g!==null&&!i;if(t&&(b=g!==null),b&&!o&&(!n&&m>=g||n&&m<=g))return;const y=u.allCols,M=[];let C=null;for(let w=0;w<h.length;w++){const S=h[w],A=c.getProposedColumnOrder(p,S);if(!c.doesOrderPassRules(A))continue;const z=A.filter(T=>y.includes(T));if(C===null)C=z;else if(!Md(z,C))break;const O=nNt(A);M.push({move:S,fragCount:O})}if(M.length===0)return;M.sort((w,S)=>w.fragCount-S.fragCount);const x=M[0].move;if(!(x>l.getCols().length-d.length))return{columns:d,toIndex:x}}function ant(e){const{columns:t,toIndex:n}=ont(e)||{},{finished:r,colMoves:i}=e;return!t||n==null?null:(i.moveColumns(t,n,"uiColumnMoved",r),r?null:{columns:t,toIndex:n})}function tNt(e,t){const n=t.getCols(),r=e.map(l=>n.indexOf(l)).sort((l,c)=>l-c),i=r[0];return zr(r)-i!==r.length-1?null:i}function nNt(e){function t(r){const i=[];let o=r.getOriginalParent();for(;o!=null;)i.push(o),o=o.getOriginalParent();return i}let n=0;for(let r=0;r<e.length-1;r++){let i=t(e[r]),o=t(e[r+1]);[i,o]=i.length>o.length?[i,o]:[o,i],i.forEach(a=>{o.indexOf(a)===-1&&n++})}return n}function rNt(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function iNt(e){const{movingCols:t,draggingRight:n,xPosition:r,pinned:i,gos:o,colModel:a,visibleCols:s}=e;if(o.get("suppressMovableColumns")||t.some(C=>C.getColDef().suppressMovable))return[];const c=rNt(s,i),u=a.getCols(),d=c.filter(C=>t.includes(C)),p=c.filter(C=>!t.includes(C)),h=u.filter(C=>!t.includes(C));let g=0,m=r;if(n){let C=0;d.forEach(x=>C+=x.getActualWidth()),m-=C}if(m>0){for(let C=0;C<p.length;C++){const x=p[C];if(m-=x.getActualWidth(),m<0)break;g++}n&&g++}let b;if(g>0){const C=p[g-1];b=h.indexOf(C)+1}else b=h.indexOf(p[0]),b===-1&&(b=0);const y=[b],M=(C,x)=>C-x;if(n){let C=b+1;const x=u.length-1;for(;C<=x;)y.push(C),C++;y.sort(M)}else{let C=b;const x=u.length-1;let w=u[C];for(;C<=x&&c.indexOf(w)<0;)C++,y.push(C),w=u[C];C=b-1;const S=0;for(;C>=S;)y.push(C),C--;y.sort(M).reverse()}return y}function yhe(e){const{pinned:t,fromKeyboard:n,gos:r,ctrlsSvc:i,useHeaderRow:o,skipScrollPadding:a}=e;let s=i.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return s?(n&&(l-=s.getBoundingClientRect().left),r.get("enableRtl")&&(o&&(s=s.querySelector(".ag-header-row")),l=s.clientWidth-l),t==null&&!a&&(l+=i.get("center").getCenterViewportScrollLeft()),l):0}function dre(e,t){for(const n of e)n.moving=t,n.dispatchColEvent("movingChanged","uiColumnMoved")}var FEe=7,Mhe=100,QH=Mhe/2,oNt=5,aNt=100,sNt=class extends dt{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!Ut(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:n}=t||{},r=n?.columns??[];for(const i of r){const o=i.getPinned();if(i.getColDef().lockPinned){if(o==e)return"move";continue}const a=n?.containerType;if(a===e||!e)return"move";if(e&&(!o||a!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,n=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(n,!0,"uiColumnDragged");else{const i=t.visibleState,o=(n||[]).filter(a=>i[a.getId()]);this.setColumnsVisible(o,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(n,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,n=!1,r=!1){const{gos:i,ctrlsSvc:o}=this.beans,a=i.get("suppressMoveWhenColumnDragging");if(r&&!a){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!r&&Yi(e.hDirection))return;const s=yhe({x:e.x,pinned:this.pinned,gos:i,ctrlsSvc:o});t||this.checkCenterForScrolling(s),a?this.handleColumnDragWhileSuppressingMovement(e,t,n,s,r):this.handleColumnDragWhileAllowingMovement(e,t,n,s,r)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,n){if(!e)return;const r=e.filter(i=>!i.getColDef().lockVisible);this.beans.colModel.setColsVisible(r,t,n)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:n}=e;this.beans.colMoves.moveColumns(t,n,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,n,r,i){const o=this.getAllMovingColumns(e,!0);if(i){const a=this.isAttemptingToPin(o);a&&this.attemptToPinColumns(o,void 0,!0);const{fromLeft:s,xPosition:l}=this.getNormalisedXPositionInfo(o,a)||{};if(s==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:o,xPosition:l,fromEnter:t,fakeEvent:n,fromLeft:s})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(o,r)}}handleColumnDragWhileAllowingMovement(e,t,n,r,i){const o=this.getAllMovingColumns(e),a=this.normaliseDirection(e.hDirection)==="right",s=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:o,isFromHeader:s,xPosition:r,fromLeft:a,fromEnter:t,fakeEvent:n}),c=ant({...l,finished:i});c&&(this.lastMovedInfo=c)}getAllMovingColumns(e,t=!1){const n=e.dragSource.getDragItem();let r=null;t?(r=n.columnsInSplit,r||(r=n.columns)):r=n.columns;const i=o=>o.getColDef().lockPinned?o.getPinned()==this.pinned:!0;return r?r.filter(i):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:n,xPosition:r,fromLeft:i,fromEnter:o,fakeEvent:a}=e,{gos:s,colModel:l,colMoves:c,visibleCols:u}=this.beans;return{allMovingColumns:t,isFromHeader:n,fromLeft:i,xPosition:r,pinned:this.pinned,fromEnter:o,fakeEvent:a,gos:s,colModel:l,colMoves:c,visibleCols:u}}highlightHoveredColumn(e,t){const{gos:n,colModel:r}=this.beans,i=n.get("enableRtl"),o=r.getCols().filter(u=>u.isVisible()&&u.getPinned()===this.pinned);let a=null,s=null,l=null;for(const u of o){if(s=u.getActualWidth(),a=this.getNormalisedColumnLeft(u,0,i),a!=null){const d=a+s;if(a<=t&&d>=t){l=u;break}}a=null,s=null}if(l)e.indexOf(l)!==-1&&(l=null);else{for(let u=o.length-1;u>=0;u--){const d=o[u],p=o[u].getParent();if(!p){l=d;break}const h=p?.getDisplayedLeafColumns();if(h.length){l=zr(h);break}}if(!l)return;a=this.getNormalisedColumnLeft(l,0,i),s=l.getActualWidth()}if(this.lastHighlightedColumn?.column!==l&&this.clearHighlighted(),l==null||a==null||s==null)return;let c;t-a<s/2!==i?c=0:c=1,WEe(l,c),this.lastHighlightedColumn={column:l,position:c}}getNormalisedXPositionInfo(e,t){const{gos:n,visibleCols:r}=this.beans,i=n.get("enableRtl"),{firstMovingCol:o,column:a,position:s}=this.getColumnMoveAndTargetInfo(e,t,i);if(!o||!a||s==null)return;const l=r.allCols,c=l.indexOf(o),u=l.indexOf(a),d=s===0!==i,p=c<u||c===u&&!d;let h=0;if(d?p&&(h-=1):p||(h+=1),u+h===c)return;const g=l[u+h];if(!g)return;const m=this.getNormalisedColumnLeft(g,20,i);return{fromLeft:p,xPosition:m}}getColumnMoveAndTargetInfo(e,t,n){const r=this.lastHighlightedColumn||{},{firstMovingCol:i,lastMovingCol:o}=lNt(e);if(!i||!o||r.column||!t)return{firstMovingCol:i,...r};const s=this.getPinDirection()==="left";return{firstMovingCol:i,position:s?1:0,column:s!==n?i:o}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,n){const{gos:r,ctrlsSvc:i}=this.beans,o=e.getLeft();if(o==null)return null;const a=e.getActualWidth();return yhe({x:n?o+a-t:o+t,pinned:e.getPinned(),useHeaderRow:n,skipScrollPadding:!0,gos:r,ctrlsSvc:i})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,n=this.failedMoveAttempts>FEe;return t&&n||e.some(r=>r.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:n,fromEnter:r,fakeEvent:i,fromLeft:o}=e,a=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:n,fromLeft:o,fromEnter:r,fakeEvent:i}),{columns:s,toIndex:l}=ont(a)||{};s&&l!=null&&(this.lastMovedInfo={columns:s,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(WEe(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),n=t.getCenterViewportScrollLeft(),r=n+t.getCenterWidth();let i,o;this.gos.get("enableRtl")?(i=e<n+QH,o=e>r-QH):(o=e<n+QH,i=e>r-QH),this.needToMoveRight=i,this.needToMoveLeft=o,o||i?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),aNt),this.beans.dragAndDrop.getDragAndDropImageComponent()?.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.getDragAndDropImageComponent()?.setIcon(this.getIconName(),!1))}moveInterval(){let e;this.intervalCount++,e=10+this.intervalCount*oNt,e>Mhe&&(e=Mhe);let t=null;const n=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:r,dragAndDrop:i,gos:o}=this.beans;if(this.failedMoveAttempts<=FEe+1||!r)return;if(i.getDragAndDropImageComponent()?.setIcon("pinned",!1),!o.get("suppressMoveWhenColumnDragging")){const a=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(a,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,n=!1){const r=(e||[]).filter(a=>!a.getColDef().lockPinned);if(!r.length)return 0;n&&(t=this.getPinDirection());const{pinnedCols:i,dragAndDrop:o}=this.beans;return i?.setColsPinned(r,t,"uiColumnDragged"),n&&o.nudge(),r.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function WEe(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function lNt(e){const t=e.length;let n,r;for(let i=0;i<t;i++){if(!n){const o=e[i];o.getLeft()!=null&&(n=o)}if(!r){const o=e[t-1-i];o.getLeft()!=null&&(r=o)}if(n&&r)break}return{firstMovingCol:n,lastMovingCol:r}}var cNt=class extends dt{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,n=this.pinned;e.whenReady(this,r=>{let i;const o=r.gridBodyCtrl.eBodyViewport;switch(n){case"left":i=[[o,r.left.eContainer],[r.bottomLeft.eContainer],[r.topLeft.eContainer]];break;case"right":i=[[o,r.right.eContainer],[r.bottomRight.eContainer],[r.topRight.eContainer]];break;default:i=[[o,r.center.eViewport],[r.bottomCenter.eViewport],[r.topCenter.eViewport]];break}this.eSecondaryContainers=i}),this.moveColumnFeature=this.createManagedBean(new sNt(n)),this.bodyDropPivotTarget=this.createManagedBean(new J5t(n)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&e.dragSource.type===0}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}},uNt=class extends dt{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,n){const r=this.beans.colModel.getCols();if(!r)return;const i=r[e];this.moveColumns([i],t,n)}moveColumns(e,t,n,r=!0){const{colModel:i,colAnimation:o,visibleCols:a,eventSvc:s}=this.beans,l=i.getCols();if(!l)return;if(t>l.length-e.length){ut(30,{toIndex:t});return}o?.start();const c=i.getColsForKeys(e);this.doesMovePassRules(c,t)&&(wEe(i.getCols(),c,t),a.refresh(n),s.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,toIndex:t,finished:r,source:n})),o?.finish()}doesMovePassRules(e,t){const n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)}doesOrderPassRules(e){const{colModel:t,gos:n}=this.beans;return!(!Xet(e,t.getColTree())||!(i=>{const o=c=>c?c==="left"||c===!0?-1:1:0,a=n.get("enableRtl");let s=a?1:-1,l=!0;return i.forEach(c=>{const u=o(c.getColDef().lockPosition);a?u>s&&(l=!1):u<s&&(l=!1),s=u}),l})(e))}getProposedColumnOrder(e,t){const r=this.beans.colModel.getCols().slice();return wEe(r,e,t),r}createBodyDropTarget(e,t){return new cNt(e,t)}moveHeader(e,t,n,r,i){const{ctrlsSvc:o,gos:a,colModel:s,visibleCols:l,focusSvc:c}=this.beans,u=t.getBoundingClientRect(),d=u.left,p=Pl(n),h=p?u.width:n.getActualWidth(),g=e==="left"!==a.get("enableRtl"),m=yhe({x:g?d-20:d+h+20,pinned:r,fromKeyboard:!0,gos:a,ctrlsSvc:o}),b=c.focusedHeader;ant({allMovingColumns:p?n.getLeafColumns():[n],isFromHeader:!0,fromLeft:e==="right",xPosition:m,pinned:r,fromEnter:!1,fakeEvent:!1,gos:a,colModel:s,colMoves:this,visibleCols:l,finished:!0});let y;if(p){const M=n.getDisplayedLeafColumns();y=g?M[0]:zr(M)}else y=n;if(o.getScrollFeature().ensureColumnVisible(y,"auto"),(!i.isAlive()||a.get("ensureDomOrder"))&&b){let M;if(p){const C=n.getGroupId(),x=n.getLeafColumns();if(!x.length)return;const w=x[0].getParent();if(!w)return;M=dNt(w,C)}else M=n;M&&c.focusHeaderPosition({headerPosition:{...b,column:M}})}}setDragSourceForHeader(e,t,n){const{gos:r,colModel:i,dragAndDrop:o,visibleCols:a}=this.beans;let s=!r.get("suppressDragLeaveHidesColumns");const l=Pl(t),c=l?t.getProvidedColumnGroup().getLeafColumns():[t],d={type:1,eElement:e,getDefaultIconName:()=>s?"hide":"notAllowed",getDragItem:l?()=>hNt(t,a.allCols):()=>pNt(t),dragItemName:n,onDragStarted:()=>{s=!r.get("suppressDragLeaveHidesColumns"),dre(c,!0)},onDragStopped:()=>dre(c,!1),onDragCancelled:()=>dre(c,!1),onGridEnter:p=>{if(s){const{columns:h=[],visibleState:g}=p??{},m=l?y=>!g||g[y.getColId()]:()=>!0,b=h.filter(y=>!y.getColDef().lockVisible&&m(y));i.setColsVisible(b,!0,"uiColumnMoved")}},onGridExit:p=>{if(s){const h=p?.columns?.filter(g=>!g.getColDef().lockVisible)||[];i.setColsVisible(h,!1,"uiColumnMoved")}}};return o.addDragSource(d,!0),d}};function dNt(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}function pNt(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function hNt(e,t){const n=e.getProvidedColumnGroup().getLeafColumns(),r={};n.forEach(s=>r[s.getId()]=s.isVisible());const i=[];t.forEach(s=>{n.indexOf(s)>=0&&(i.push(s),Ou(n,s))}),n.forEach(s=>i.push(s));const o=[],a=e.getLeafColumns();for(const s of i)a.indexOf(s)!==-1&&o.push(s);return{columns:i,columnsInSplit:o,visibleState:r,containerType:o[0]?.pinned}}var Fye={moduleName:"ColumnMove",version:Jn,beans:[uNt,K5t],apiFunctions:{moveColumnByIndex:Q5t,moveColumns:Z5t},dependsOn:[y3],css:[Y5t]},fNt=class extends dt{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const n=this.getHeaderCellForColumn(e);if(!n)return-1;const r=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||r.push(n),this.getPreferredWidthForElements(r)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const n=document.createElement("form");n.style.position="fixed";const r=this.centerRowContainerCtrl.eContainer;e.forEach(o=>this.cloneItemIntoDummy(o,n)),r.appendChild(n);const i=n.offsetWidth;return r.removeChild(n),t=t??this.gos.get("autoSizePadding"),i+t}getHeaderCellForColumn(e){let t=null;return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().forEach(n=>{const r=n.getHtmlElementForColumnHeader(e);r!=null&&(t=r)}),t}cloneItemIntoDummy(e,t){const n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";const r=document.createElement("div"),i=r.classList;["ag-header-cell","ag-header-group-cell"].some(s=>n.classList.contains(s))?(i.add("ag-header","ag-header-row"),r.style.position="static"):i.add("ag-row");let a=e.parentElement;for(;a;){if(["ag-header-row","ag-row"].some(l=>a.classList.contains(l))){for(let l=0;l<a.classList.length;l++){const c=a.classList[l];c!="ag-row-position-absolute"&&i.add(c)}break}a=a.parentElement}r.appendChild(n),t.appendChild(r)}},snt={moduleName:"AutoWidth",version:Jn,beans:[fNt]};function gNt(e,t,n=!0,r="api"){e.colResize?.setColumnWidths(t,!1,n,r)}var mNt=class extends dt{constructor(e,t,n,r){super(),this.comp=e,this.eResize=t,this.pinned=n,this.columnGroup=r}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:n}=this.beans,r=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(r),!t.get("suppressAutoSize")&&n&&this.addDestroyFunc(n.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:n,resizeRatios:r,groupAfterColumns:i,groupAfterStartWidth:o,groupAfterRatios:a}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=n,this.resizeRatios=r,this.resizeTakeFromCols=i,this.resizeTakeFromStartWidth=o,this.resizeTakeFromRatios=a,this.toggleColumnResizing(!0)}onResizing(e,t,n="uiColumnResized"){const r=this.normaliseDragChange(t),i=this.resizeStartWidth+r;this.resizeColumnsFromLocalValues(i,n,e)}getInitialValues(e){const t=l=>l.reduce((c,u)=>c+u.getActualWidth(),0),n=(l,c)=>l.map(u=>u.getActualWidth()/c),r=this.getColumnsToResize(),i=t(r),o=n(r,i),a={columnsToResize:r,resizeStartWidth:i,resizeRatios:o};let s=null;if(e&&(s=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),s){const l=s.getDisplayedLeafColumns(),c=a.groupAfterColumns=l.filter(d=>d.isResizable()),u=a.groupAfterStartWidth=t(c);a.groupAfterRatios=n(c,u)}else a.groupAfterColumns=void 0,a.groupAfterStartWidth=void 0,a.groupAfterRatios=void 0;return a}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),n=this.getInitialValues();t>n.resizeStartWidth&&this.resizeColumns(n,t,e,!0)}resizeColumnsFromLocalValues(e,t,n=!0){if(!this.resizeCols||!this.resizeRatios)return;const r={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(r,e,t,n)}resizeColumns(e,t,n,r=!0){const{columnsToResize:i,resizeStartWidth:o,resizeRatios:a,groupAfterColumns:s,groupAfterStartWidth:l,groupAfterRatios:c}=e,u=[];if(u.push({columns:i,ratios:a,width:t}),s){const d=t-o;u.push({columns:s,ratios:c,width:l-d})}this.beans.colResize?.resizeColumnSets({resizeSets:u,finished:r,source:n}),r&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},vNt=class extends dt{constructor(e,t,n,r,i){super(),this.pinned=e,this.column=t,this.eResize=n,this.comp=r,this.ctrl=i}postConstruct(){const e=[];let t,n;const r=()=>{if(Nn(this.eResize,t),!t)return;const{horizontalResizeSvc:a,colAutosize:s}=this.beans,l=a.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(l),n&&s&&e.push(s.addColumnAutosize(this.eResize,this.column))},i=()=>{e.forEach(a=>a()),e.length=0},o=()=>{const a=this.column.isResizable(),s=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(a!==t||s!==n)&&(t=a,n=s,i(),r())};o(),this.addDestroyFunc(i),this.ctrl.setRefreshFunction("resize",o)}onResizing(e,t){const{column:n,lastResizeAmount:r,resizeStartWidth:i,beans:o}=this,a=this.normaliseResizeAmount(t),s=i+a,l=[{key:n,newWidth:s}],{pinnedCols:c,ctrlsSvc:u,colResize:d}=o;if(this.column.getPinned()){const p=c?.leftWidth??0,h=c?.rightWidth??0,g=JI(u.getGridBodyCtrl().eBodyViewport)-50;if(p+h+(a-r)>g)return}this.lastResizeAmount=a,d?.setColumnWidths(l,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const n=this.pinned!=="left",r=this.pinned==="right";return this.gos.get("enableRtl")?n&&(t*=-1):r&&(t*=-1),t}},bNt=class extends dt{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,n,r){const i=[],{colModel:o,gos:a,visibleCols:s}=this.beans;e.forEach(l=>{const c=o.getColDefCol(l.key)||o.getCol(l.key);if(!c)return;if(i.push({width:l.newWidth,ratios:[1],columns:[c]}),a.get("colResizeDefault")==="shift"&&(t=!t),t){const d=s.getColAfter(c);if(!d)return;const p=c.getActualWidth()-l.newWidth,h=d.getActualWidth()+p;i.push({width:h,ratios:[1],columns:[d]})}}),i.length!==0&&this.resizeColumnSets({resizeSets:i,finished:n,source:r})}resizeColumnSets(e){const{resizeSets:t,finished:n,source:r}=e;if(!(!t||t.every(u=>yNt(u)))){if(n){const u=t&&t.length>0?t[0].columns:null;rP(this.eventSvc,u,n,r)}return}const o=[],a=[];t.forEach(u=>{const{width:d,columns:p,ratios:h}=u,g={},m={};p.forEach(M=>a.push(M));let b=!0,y=0;for(;b;){if(y++,y>1e3){pi(31);break}b=!1;const M=[];let C=0,x=d;p.forEach((S,A)=>{if(m[S.getId()])x-=g[S.getId()];else{M.push(S);const O=h[A];C+=O}});const w=1/C;M.forEach((S,A)=>{const z=A===M.length-1;let O;z?O=x:(O=Math.round(h[A]*d*w),x-=O);const T=S.getMinWidth(),R=S.getMaxWidth();O<T?(O=T,m[S.getId()]=!0,b=!0):R>0&&O>R&&(O=R,m[S.getId()]=!0,b=!0),g[S.getId()]=O})}p.forEach(M=>{const C=g[M.getId()];M.getActualWidth()!==C&&(M.setActualWidth(C,r),o.push(M))})});const s=o.length>0;let l=[];if(s){const{colFlex:u,visibleCols:d,colViewport:p}=this.beans;l=u?.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0})??[],d.setLeftValues(r),d.updateBodyWidths(),p.checkViewportColumns()}const c=a.concat(l);(s||n)&&rP(this.eventSvc,c,n,r,l)}resizeHeader(e,t,n){if(!e.isResizable())return;const r=e.getActualWidth(),i=e.getMinWidth(),o=e.getMaxWidth(),a=Math.min(Math.max(r+t,i),o);this.setColumnWidths([{key:e,newWidth:a}],n,!0,"uiColumnResized")}createResizeFeature(e,t,n,r,i){return new vNt(e,t,n,r,i)}createGroupResizeFeature(e,t,n,r){return new mNt(e,t,n,r)}};function yNt(e){const{columns:t,width:n}=e;let r=0,i=0,o=!0;t.forEach(l=>{const c=l.getMinWidth();r+=c||0;const u=l.getMaxWidth();u>0?i+=u:o=!1});const a=n>=r,s=!o||n<=i;return a&&s}var MNt={moduleName:"ColumnResize",version:Jn,beans:[bNt],apiFunctions:{setColumnWidths:gNt},dependsOn:[int,snt]},CNt=class extends dt{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(t=>{t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})})}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach(e=>e()),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",e===0)}},xNt=class extends kye{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}setComp(e,t,n,r,i){const{column:o,beans:a}=this,{context:s,colNames:l,colHover:c,rangeSvc:u,colResize:d}=a;this.comp=e,i=v6(this,s,i),this.setGui(t,i),this.displayName=l.getDisplayNameForColumnGroup(o,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(i),this.setupExpandable(i),this.setupTooltip(),this.setupAutoHeight({wrapperElement:r,compBean:i}),this.setupUserComp(),this.addHeaderMouseListeners(i),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const p=this.rowCtrl.pinned,h=o.getProvidedColumnGroup().getLeafColumns();c?.createHoverFeature(i,h,t),u?.createRangeHighlightFeature(i,o,e),i.createManagedBean(new Dye(o,t,a)),i.createManagedBean(new CNt(e,o)),d?this.resizeFeature=i.createManagedBean(d.createGroupResizeFeature(e,n,p,o)):e.setResizableDisplayed(!1),i.createManagedBean(new Mw(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(i,h),i.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(i),i.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.getDefinition();return Gn(t.gos,{colDef:n,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,n=e.get("groupHeaderHeight");n!=null?n===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(n):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const n of t)e.addManagedListeners(n,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,n)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),n=t[0]===e,r=zr(t)===e;if(!n&&!r)return;const i=e.getHighlighted(),o=!!this.rowCtrl.getHeaderCellCtrls().find(l=>l.column.isMoving());let a=!1,s=!1;if(o){const l=this.beans.gos.get("enableRtl"),c=i===1,u=i===0;n&&(l?s=c:a=u),r&&(l?a=u:s=c)}this.comp.toggleCss("ag-header-highlight-before",a),this.comp.toggleCss("ag-header-highlight-after",s)}resizeHeader(e,t){const{resizeFeature:n}=this;if(!n)return;const r=n.getInitialValues(t);n.resizeColumns(r,r.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:n,enterpriseMenuFactory:r}=this.beans,i=this.column,o=i.getProvidedColumnGroup(),a=Gn(n,{displayName:this.displayName,columnGroup:i,setExpanded:l=>{e.setColumnGroupOpened(o,l,"gridInitializing")},setTooltip:(l,c)=>{n.assertModuleRegistered("Tooltip",3),this.setupTooltip(l,c)},showColumnMenu:(l,c)=>r?.showMenuAfterButtonClick(o,l,"columnMenu",c),showColumnMenuAfterMouseClick:(l,c)=>r?.showMenuAfterMouseEvent(o,l,"columnMenu",c),eGridHeader:this.eGui}),s=NLt(t,a);s&&this.comp.setUserCompDetails(s)}addHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),n=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:n,contextmenu:r})}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const n=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:n,expandableChanged:n})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),n=vye(t,this.gos,null,e);e.isPadding()?(n.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(i=>i.isSpanHeaderHeight())&&n.push("ag-header-span-height")):(n.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&n.push("ag-header-cell-wrap-text")),n.forEach(r=>this.comp.toggleCss(r,!0))}setupMovingCss(e){const{column:t}=this,r=t.getProvidedColumnGroup().getLeafColumns(),i=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());r.forEach(o=>{e.addManagedListeners(o,{movingChanged:i})}),i()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||this.focusThis()}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();if(!(!this.expandable||!t)&&e.key===Qe.ENTER){const n=this.column,r=!n.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(n.getProvidedColumnGroup(),r,"uiColumnExpanded")}}setDragSource(e){!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.getColDef().suppressMovable||e.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function wNt(e,t,n){e.colGroupSvc?.setColumnGroupOpened(t,n,"api")}function SNt(e,t,n){return e.colGroupSvc?.getColumnGroup(t,n)??null}function ANt(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function ONt(e,t,n){return e.colNames.getDisplayNameForColumnGroup(t,n)||""}function zNt(e){return e.colGroupSvc?.getColumnGroupState()??[]}function TNt(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function ENt(e){e.colGroupSvc?.resetColumnGroupState("api")}function RNt(e){return e.visibleCols.treeLeft}function INt(e){return e.visibleCols.treeCenter}function PNt(e){return e.visibleCols.treeRight}function DNt(e){return e.visibleCols.getAllTrees()}function kNt(e,t){for(let n=0;n<t.length;n++){const r=e.indexOf(t[n]);r>=0&&(e[r]=e[e.length-1],e.pop())}}var LNt=class extends dt{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:n,colModel:r,colGroupSvc:i,colViewport:o,selectionColSvc:a}=this.beans;t||this.buildTrees(r,i),i?.updateOpenClosedVisibility(),this.leftCols=pre(this.treeLeft),this.centerCols=pre(this.treeCenter),this.rightCols=pre(this.treeRight),a?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(r),this.joinCols(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(s=>s.isAutoHeight()),n?.refreshFlexedColumns(),this.updateBodyWidths(),o.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(r,this.leftCols,this.rightCols,e),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}updateBodyWidths(){const e=ay(this.centerCols),t=ay(this.leftCols),n=ay(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,n,r){let i,o;this.gos.get("enableRtl")?(i=t?t[0]:null,o=n?zr(n):null):(i=t?zr(t):null,o=n?n[0]:null),e.getCols().forEach(a=>{a.setLastLeftPinned(a===i,r),a.setFirstRightPinned(a===o,r)})}buildTrees(e,t){const n=e.getColsToShow(),r=n.filter(l=>l.getPinned()=="left"),i=n.filter(l=>l.getPinned()=="right"),o=n.filter(l=>l.getPinned()!="left"&&l.getPinned()!="right"),a=new ttt,s=l=>t?t.createColumnGroups(l):l.columns;this.treeLeft=s({columns:r,idCreator:a,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=s({columns:i,idCreator:a,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=s({columns:o,idCreator:a,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),n=[],r=[],i=[];for(const o of t){const a=o.getPinned();a?a===!0||a==="left"?n.push(o):i.push(o):r.push(o)}this.ariaOrderColumns=n.concat(r).concat(i)}getAriaColIndex(e){let t;return Pl(e)?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach(e=>{e.forEach(t=>{Pl(t)&&t.checkLeft()})})}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const r=t.getCols().slice(0),i=this.gos.get("enableRtl");[this.leftCols,this.rightCols,this.centerCols].forEach(o=>{if(i){let a=ay(o);o.forEach(s=>{a-=s.getActualWidth(),s.setLeft(a,e)})}else{let a=0;o.forEach(s=>{s.setLeft(a,e),a+=s.getActualWidth()})}kNt(r,o)}),r.forEach(o=>{o.setLeft(null,e)})}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,n,r){const i=[];let o=null;for(let a=0;a<t.length;a++){const s=t[a],l=t.length-a,c=Math.min(s.getColSpan(e),l),u=[s];if(c>1){const p=c-1;for(let h=1;h<=p;h++)u.push(t[a+h]);a+=p}let d;n?(d=!1,u.forEach(p=>{n(p)&&(d=!0)})):d=!0,d&&(i.length===0&&o&&(r&&r(s))&&i.push(o),i.push(s)),o=s}return i}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,n=t.indexOf(e);return n>0?t[n-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};qO(this.treeCenter,!1,e),qO(this.treeLeft,!1,e),qO(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let n=0;n<t.length;n++){const r=this[t[n]];if(r.length)return e?zr(r):r[0]}return null}getColAfter(e){const t=this.allCols,n=t.indexOf(e);return n<t.length-1?t[n+1]:null}getColsLeftWidth(){return ay(this.leftCols)}getDisplayedColumnsRightWidth(){return ay(this.rightCols)}isColAtEdge(e,t){const n=this.allCols;if(!n.length)return!1;const r=t==="first";let i;if(Pl(e)){const o=e.getDisplayedLeafColumns();if(!o.length)return!1;i=r?o[0]:zr(o)}else i=e;return(r?n[0]:zr(n))===i}};function qO(e,t,n){if(e)for(let r=0;r<e.length;r++){const i=e[r];if(Pl(i)){const o=t?i.getDisplayedChildren():i.getChildren();qO(o,t,n)}n(i)}}function pre(e){const t=[];return qO(e,!0,n=>{vm(n)&&t.push(n)}),t}var _Nt=class extends dt{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return lb(null,t,n=>{Es(n)&&e.push({groupId:n.getGroupId(),open:n.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const n=[];lb(null,t,r=>{if(Es(r)){const i=r.getColGroupDef(),o={groupId:r.getGroupId(),open:i?i.openByDefault:void 0};n.push(o)}}),this.setColumnGroupState(n,e)}setColumnGroupState(e,t){const{colModel:n,colAnimation:r,visibleCols:i,eventSvc:o}=this.beans;if(!n.getColTree().length)return;r?.start();const s=[];e.forEach(l=>{const c=l.groupId,u=l.open,d=this.getProvidedColGroup(c);d&&d.isExpanded()!==u&&(d.setExpanded(u),s.push(d))}),i.refresh(t,!0),s.length&&o.dispatchEvent({type:"columnGroupOpened",columnGroup:s.length===1?s[0]:void 0,columnGroups:s}),r?.finish()}setColumnGroupOpened(e,t,n){let r;Es(e)?r=e.getId():r=e||"",this.setColumnGroupState([{groupId:r,open:t}],n)}getProvidedColGroup(e){let t=null;return lb(null,this.beans.colModel.getColTree(),n=>{Es(n)&&n.getId()===e&&(t=n)}),t}getGroupAtDirection(e,t){const n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),i=t==="After"?zr(r):r[0],o=`getCol${t}`;for(;;){const a=this.beans.visibleCols[o](i);if(!a)return null;const s=this.getColGroupAtLevel(a,n);if(s!==e)return s}}getColGroupAtLevel(e,t){let n=e.getParent(),r,i;for(;r=n.getProvidedColumnGroup().getLevel(),i=n.getPaddingLevel(),!(r+i<=t);)n=n.getParent();return n}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();qO(e,!1,t=>{Pl(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(Pl(e))return e;const n=this.beans.visibleCols.getAllTrees(),r=typeof t=="number";let i=null;return qO(n,!1,o=>{if(Pl(o)){const a=o;let s;r?s=e===a.getGroupId()&&t===a.getPartId():s=e===a.getGroupId(),s&&(i=a)}}),i}createColumnGroups(e){const{columns:t,idCreator:n,pinned:r,oldDisplayedGroups:i,isStandaloneStructure:o}=e,a=this.mapOldGroupsById(i),s=[];let l=t;for(;l.length;){const c=l;l=[];let u=0;const d=p=>{const h=u;u=p;const g=c[h],b=(Pl(g)?g.getProvidedColumnGroup():g).getOriginalParent();if(b==null){for(let M=h;M<p;M++)s.push(c[M]);return}const y=this.createColumnGroup(b,n,a,r,o);for(let M=h;M<p;M++)y.addChild(c[M]);l.push(y)};for(let p=1;p<c.length;p++){const h=c[p],m=(Pl(h)?h.getProvidedColumnGroup():h).getOriginalParent(),b=c[u],M=(Pl(b)?b.getProvidedColumnGroup():b).getOriginalParent();m!==M&&d(p)}u<c.length&&d(c.length)}return o||this.setupParentsIntoCols(s,null),s}createProvidedColumnGroup(e,t,n,r,i,o,a){const s=i.getUniqueKey(t.groupId||null,null),l=phe(this.beans,t,s),c=new aI(l,s,!1,n);this.createBean(c);const u=this.findExistingGroup(t,o);u&&o.splice(u.idx,1);const d=u?.group;d&&c.setExpanded(d.isExpanded());const p=Het(this.beans,l.children,n+1,e,r,i,o,a);return c.setChildren(p),c}balanceColumnTree(e,t,n,r){const i=[];for(let o=0;o<e.length;o++){const a=e[o];if(Es(a)){const s=a,l=this.balanceColumnTree(s.getChildren(),t+1,n,r);s.setChildren(l),i.push(s)}else{let s,l;for(let c=n-1;c>=t;c--){const u=r.getUniqueKey(null,null),d=phe(this.beans,null,u),p=new aI(d,u,!0,t);this.createBean(p),l&&l.setChildren([p]),l=p,s||(s=l)}if(s&&l)if(i.push(s),e.some(u=>Es(u))){l.setChildren([a]);continue}else{l.setChildren(e);break}i.push(a)}}return i}findDepth(e){let t=0,n=e;for(;n&&n[0]&&Es(n[0]);)t++,n=n[0].getChildren();return t}findMaxDepth(e,t){let n=t;for(let r=0;r<e.length;r++){const i=e[r];if(Es(i)){const o=i,a=this.findMaxDepth(o.getChildren(),t+1);n<a&&(n=a)}}return n}balanceTreeForAutoCols(e,t){const n=[];return e.forEach(r=>{let i=r;for(let o=t-1;o>=0;o--){const a=new aI(null,`FAKE_PATH_${r.getId()}}_${o}`,!0,o);this.createBean(a),a.setChildren([i]),i.originalParent=a,i=a}t===0&&(r.originalParent=null),n.push(i)}),n}findExistingGroup(e,t){if(e.groupId!=null)for(let r=0;r<t.length;r++){const i=t[r];if(i.getColGroupDef()&&i.getId()===e.groupId)return{idx:r,group:i}}}createColumnGroup(e,t,n,r,i){const o=e.getGroupId(),a=t.getInstanceIdForKey(o),s=Ctt(o,a);let l=n[s];return l&&l.getProvidedColumnGroup()!==e&&(l=null),Ut(l)?l.reset():(l=new xtt(e,o,a,r),i||this.createBean(l)),l}mapOldGroupsById(e){const t={},n=r=>{r.forEach(i=>{if(Pl(i)){const o=i;t[i.getUniqueId()]=o,n(o.getChildren())}})};return e&&n(e),t}setupParentsIntoCols(e,t){e.forEach(n=>{if(n.parent=t,Pl(n)){const r=n;this.setupParentsIntoCols(r.getChildren(),r)}})}},lnt={moduleName:"ColumnGroup",version:Jn,dynamicBeans:{headerGroupCellCtrl:xNt},beans:[_Nt],apiFunctions:{getAllDisplayedColumnGroups:DNt,getCenterDisplayedColumnGroups:INt,getColumnGroup:SNt,getColumnGroupState:zNt,getDisplayNameForColumnGroup:ONt,getLeftDisplayedColumnGroups:RNt,getProvidedColumnGroup:ANt,getRightDisplayedColumnGroups:PNt,resetColumnGroupState:ENt,setColumnGroupOpened:wNt,setColumnGroupState:TNt}},NNt={moduleName:"CheckboxCellRenderer",version:Jn,userComponents:{agCheckboxCellRenderer:L_t}};function FNt(e,t){const n=e.colModel.getColDefCol(t);return n?n.getColDef():null}function WNt(e){return e.colModel.getColumnDefs()}function qNt(e,t,n){return e.colNames.getDisplayNameForColumn(t,n)||""}function BNt(e,t){return e.colModel.getColDefCol(t)}function jNt(e){return e.colModel.getColDefCols()}function HNt(e,t){return m0(e,t,"api")}function VNt(e){return E$(e)}function GNt(e){Zet(e,"api")}function $Nt(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()}function UNt(e){return e.visibleCols.isPinningLeft()}function XNt(e){return e.visibleCols.isPinningRight()}function YNt(e,t){return e.visibleCols.getColAfter(t)}function KNt(e,t){return e.visibleCols.getColBefore(t)}function QNt(e,t,n){e.colModel.setColsVisible(t,n,"api")}function ZNt(e,t,n){e.pinnedCols?.setColsPinned(t,n,"api")}function JNt(e){return e.colModel.getCols()}function eFt(e){return e.visibleCols.leftCols}function tFt(e){return e.visibleCols.centerCols}function nFt(e){return e.visibleCols.rightCols}function rFt(e){return e.visibleCols.allCols}function iFt(e){return e.colViewport.getViewportColumns()}function Che(e,t){if(!e)return;const n=e,r={};return Object.keys(n).forEach(i=>{if(t&&t.indexOf(i)>=0||Net.has(i))return;const o=n[i];typeof o=="object"&&o!==null&&o.constructor===Object?r[i]=Che(o):r[i]=o}),r}var oFt=class extends dt{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,n,r){const i=e.slice();t?i.sort((s,l)=>n.indexOf(s)-n.indexOf(l)):n&&i.sort((s,l)=>r.indexOf(s)-r.indexOf(l));const o=this.rowGroupColsSvc?.columns,a=this.pivotColsSvc?.columns;return this.buildColumnDefs(i,o,a)}buildColumnDefs(e,t=[],n=[]){const r=[],i={};return e.forEach(o=>{const a=this.createDefFromColumn(o,t,n);let s=!0,l=a,c=o.getOriginalParent(),u=null;for(;c;){let d=null;if(c.isPadding()){c=c.getOriginalParent();continue}const p=i[c.getGroupId()];if(p){p.children.push(l),s=!1;break}if(d=this.createDefFromGroup(c),d&&(d.children=[l],i[d.groupId]=d,l=d,c=c.getOriginalParent()),c!=null&&u===c){s=!1;break}u=c}s&&r.push(l)}),r}createDefFromGroup(e){const t=Che(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const r=Che(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?n.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=e.isVisible()?void 0:!0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=e.getSortIndex()!=null?e.getSortIndex():null,r}},aFt=class extends dt{constructor(){super(...arguments),this.beanName="colFlex"}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const n=this.flexViewportWidth;if(!n)return[];const{visibleCols:r}=this.beans,i=r.centerCols;let o=-1;if(e.resizingCols){const g=new Set(e.resizingCols);for(let m=i.length-1;m>=0;m--)if(g.has(i[m])){o=m;break}}let a=!1;const s=i.map((g,m)=>{const b=g.getFlex(),y=b!=null&&b>0&&m>o;return a||(a=y),{col:g,isFlex:y,flex:Math.max(0,b??0),initialSize:g.getActualWidth(),min:g.getMinWidth(),max:g.getMaxWidth(),targetSize:0}});if(!a)return[];let l=s.length,c=s.reduce((g,m)=>g+m.flex,0),u=n;const d=(g,m)=>{g.frozenSize=m,g.col.setActualWidth(m,t),u-=m,c-=g.flex,l-=1},p=g=>g.frozenSize!=null;for(const g of s)g.isFlex||d(g,g.initialSize);for(;l>0;){const g=Math.round(c<1?u*c:u);let m,b=0,y=0;for(const x of s){if(p(x))continue;m=x,y+=g*(x.flex/c);const w=y-b,S=Math.round(w);x.targetSize=S,b+=S}m&&(m.targetSize+=g-b);let M=0;for(const x of s){if(p(x))continue;const w=x.targetSize,S=Math.min(Math.max(w,x.min),x.max);M+=S-w,x.violationType=S===w?void 0:S<w?"max":"min",x.targetSize=S}const C=M===0?"all":M>0?"min":"max";for(const x of s)p(x)||(C==="all"||x.violationType===C)&&d(x,x.targetSize)}e.skipSetLeft||r.setLeftValues(t),e.updateBodyWidths&&r.updateBodyWidths();const h=s.filter(g=>g.isFlex&&!g.violationType).map(g=>g.col);if(e.fireResizedEvent){const g=s.filter(b=>b.initialSize!==b.frozenSize).map(b=>b.col),m=s.filter(b=>b.flex).map(b=>b.col);rP(this.eventSvc,g,!0,t,m)}return h}initCol(e){const{flex:t,initialFlex:n}=e.colDef;t!==void 0?e.flex=t:n!==void 0&&(e.flex=n)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}},sFt=class extends dt{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={};this.dataTypeDefinitions=t;const n={};this.formatValueFuncs=n;const r=a=>s=>{const{column:l,node:c,value:u}=s;let d=l.getColDef().valueFormatter;return d===a.groupSafeValueFormatter&&(d=a.valueFormatter),this.beans.valueSvc.formatValue(l,c,u,d)};for(const a of Object.keys(e)){const s=e[a],l={...s,groupSafeValueFormatter:jEe(s,this.gos)};t[a]=l,n[a]=r(l)}const i=this.gos.get("dataTypeDefinitions")??{},o={};this.dataTypeMatchers=o;for(const a of Object.keys(i)){const s=i[a],l=this.processDataTypeDefinition(s,i,[a],e);l&&(t[a]=l,s.dataTypeMatcher&&(o[a]=s.dataTypeMatcher),n[a]=r(l))}this.checkObjectValueHandlers(e),["dateString","text","number","boolean","date"].forEach(a=>{const s=o[a];s&&delete o[a],o[a]=s??e[a].dataTypeMatcher})}processDataTypeDefinition(e,t,n,r){let i;const o=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let a=r[o];const s=t[o];if(a&&s&&(a=s),!BEe(e,a,o))return;i=qEe(a,e)}else{if(n.includes(o)){ut(44);return}const a=t[o];if(!BEe(e,a,o))return;const s=this.processDataTypeDefinition(a,t,[...n,o],r);if(!s)return;i=qEe(s,e)}return{...i,groupSafeValueFormatter:jEe(i,this.gos)}}updateColDefAndGetColumnType(e,t,n){let{cellDataType:r}=t;const{field:i}=t;if(r===void 0&&(r=e.cellDataType),(r==null||r===!0)&&(r=this.canInferCellDataType(e,t)?this.inferCellDataType(i,n):!1),!r){e.cellDataType=!1;return}const o=this.dataTypeDefinitions[r];if(!o){ut(47,{cellDataType:r});return}return e.cellDataType=r,o.groupSafeValueFormatter&&(e.valueFormatter=o.groupSafeValueFormatter),o.valueParser&&(e.valueParser=o.valueParser),o.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,r,o,n),o.columnTypes}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const n=r=>{t.add(r.key)};e.__addEventListener("columnStateUpdated",n),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",n))}canInferCellDataType(e,t){const{gos:n}=this;if(!sa(n))return!1;const r={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(hre(t,r))return!1;const i=t.type===null?e.type:t.type;if(i){const o=n.get("columnTypes")??{};if(T$(i).some(s=>{const l=o[s.trim()];return l&&hre(l,r)}))return!1}return!hre(e,r)}inferCellDataType(e,t){if(!e)return;let n;const r=this.getInitialData();if(r){const i=e.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");n=kN(r,e,i)}else this.initWaitForRowData(t);if(n!=null)return Object.keys(this.dataTypeMatchers).find(i=>this.dataTypeMatchers[i](n))??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const t=this.beans.rowModel.rootNode?.allLeafChildren;if(t?.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:n,eventSvc:r}=this.beans;t&&n&&(n.shouldQueueResizeOperations=!0);const[i]=this.addManagedEventListeners({rowDataUpdateStarted:o=>{const{firstRowData:a}=o;a&&(i?.(),this.isPendingInference=!1,this.processColumnsPendingInference(a,t),this.columnStateUpdatesPendingInference={},t&&n?.processResizeOperations(),r.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const n=[];this.destroyColumnStateUpdateListeners();const r={},i={};for(const o of Object.keys(this.columnStateUpdatesPendingInference)){const a=this.columnStateUpdatesPendingInference[o],s=this.colModel.getCol(o);if(!s)return;const l=s.getColDef();if(!this.resetColDefIntoCol(s,"cellDataTypeInferred"))return;const c=s.getColDef();if(t&&c.type&&c.type!==l.type){const u=cFt(s,a);u.rowGroup&&u.rowGroupIndex==null&&(r[o]=u),u.pivot&&u.pivotIndex==null&&(i[o]=u),n.push(u)}}t&&n.push(...this.generateColumnStateForRowGroupAndPivotIndexes(r,i)),n.length&&m0(this.beans,{state:n},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const n={},{rowGroupColsSvc:r,pivotColsSvc:i}=this.beans;return r?.restoreColumnOrder(n,e),i?.restoreColumnOrder(n,t),Object.values(n)}resetColDefIntoCol(e,t){const n=e.getUserProvidedColDef();if(!n)return!1;const r=nP(this.beans,n,e.getColId());return e.setColDef(r,n,t),!0}checkObjectValueHandlers(e){const t=this.dataTypeDefinitions.object,n=e.object;this.hasObjectValueParser=t.valueParser!==n.valueParser,this.hasObjectValueFormatter=t.valueFormatter!==n.valueFormatter}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(t==null)return!0;const n=this.getDataTypeDefinition(e)?.dataTypeMatcher;return n?n(t):!0}validateColDef(e){const t=n=>ut(48,{property:n});if(e.cellDataType==="object"){const{object:n}=this.dataTypeDefinitions;e.valueFormatter===n.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&t("Formatter"),e.editable&&e.valueParser===n.valueParser&&!this.hasObjectValueParser&&t("Parser")}}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,n,r){const i=this.formatValueFuncs[t];switch(n.baseDataType){case"number":{e.cellEditor="agNumberCellEditor";break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.getFindText=()=>null,e.suppressKeyboardEvent=o=>!!o.colDef.editable&&o.event.key===Qe.SPACE;break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=i;break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=i;break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=(o,a)=>{const s=this.colModel.getColDefCol(r),l=s?.getColDef();if(!s||!l)return 0;const c=o==null?"":i({column:s,node:null,value:o}),u=a==null?"":i({column:s,node:null,value:a});return c===u?0:c>u?1:-1},e.keyCreator=i;break}}this.beans.filterManager?.setColDefPropertiesForDataType(e,n,i)}getDefaultDataTypes(){const e=n=>!!n.match("^\\d{4}-\\d{2}-\\d{2}$"),t=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:n=>n.newValue?.trim?.()===""?null:Number(n.newValue),valueFormatter:n=>n.value==null?"":typeof n.value!="number"||isNaN(n.value)?t("invalidNumber","Invalid Number"):String(n.value),dataTypeMatcher:n=>typeof n=="number"},text:{baseDataType:"text",valueParser:n=>n.newValue===""?null:ap(n.newValue),dataTypeMatcher:n=>typeof n=="string"},boolean:{baseDataType:"boolean",valueParser:n=>n.newValue==null?n.newValue:n.newValue?.trim?.()===""?null:String(n.newValue).toLowerCase()==="true",valueFormatter:n=>n.value==null?"":String(n.value),dataTypeMatcher:n=>typeof n=="boolean"},date:{baseDataType:"date",valueParser:n=>h0(n.newValue==null?null:String(n.newValue)),valueFormatter:n=>n.value==null?"":!(n.value instanceof Date)||isNaN(n.value.getTime())?t("invalidDate","Invalid Date"):cp(n.value,!1)??"",dataTypeMatcher:n=>n instanceof Date},dateString:{baseDataType:"dateString",dateParser:n=>h0(n)??void 0,dateFormatter:n=>cp(n??null,!1)??void 0,valueParser:n=>e(String(n.newValue))?n.newValue:null,valueFormatter:n=>e(String(n.value))?n.value:"",dataTypeMatcher:n=>typeof n=="string"&&e(n)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:n=>ap(n.value)??""}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(e=>e()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function qEe(e,t){const n={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(n.columnTypes=[...T$(e.columnTypes),...T$(t.columnTypes)]),n}function BEe(e,t,n){return t?t.baseDataType!==e.baseDataType?(ut(46),!1):!0:(ut(45,{parentCellDataType:n}),!1)}function jEe(e,t){if(e.valueFormatter)return n=>{if(n.node?.group){const r=(n.colDef.pivotValueColumn??n.column).getAggFunc();if(r){if(r==="first"||r==="last")return e.valueFormatter(n);if(e.baseDataType==="number"&&r!=="count"){if(typeof n.value=="number")return e.valueFormatter(n);if(typeof n.value=="object"){if(!n.value)return;if("toNumber"in n.value)return e.valueFormatter({...n,value:n.value.toNumber()});if("value"in n.value)return e.valueFormatter({...n,value:n.value.value})}}return}if(t.get("groupDisplayType")==="groupRows"&&!t.get("treeData"))return}else if(t.get("groupHideOpenParents")&&n.column.isRowGroupActive()&&typeof n.value=="string"&&!e.dataTypeMatcher?.(n.value))return;return e.valueFormatter(n)}}function lFt(e,t,n,r){if(!t[n])return!1;const i=e[n];return i===null?(t[n]=!1,!1):r===void 0?!!i:i===r}function hre(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([n,r])=>lFt(e,t,n,r))}function cFt(e,t){const n=ett(e);return t.forEach(r=>{delete n[r],r==="rowGroup"?delete n.rowGroupIndex:r==="pivot"&&delete n.pivotIndex}),n}var uFt={moduleName:"DataType",version:Jn,beans:[sFt],dependsOn:[NNt]},dFt={moduleName:"ColumnFlex",version:Jn,beans:[aFt]},pFt={moduleName:"ColumnApi",version:Jn,beans:[oFt],apiFunctions:{getColumnDef:FNt,getDisplayNameForColumn:qNt,getColumn:BNt,getColumns:jNt,applyColumnState:HNt,getColumnState:VNt,resetColumnState:GNt,isPinning:$Nt,isPinningLeft:UNt,isPinningRight:XNt,getDisplayedColAfter:YNt,getDisplayedColBefore:KNt,setColumnsVisible:QNt,setColumnsPinned:ZNt,getAllGridColumns:JNt,getDisplayedLeftColumns:eFt,getDisplayedCenterColumns:tFt,getDisplayedRightColumns:nFt,getAllDisplayedColumns:rFt,getAllDisplayedVirtualColumns:iFt,getColumnDefs:WNt}};function hFt(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,n=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(n,"$1 $2$3").replace(/\./g," ").split(" ").map(i=>i.substring(0,1).toUpperCase()+(i.length>1?i.substring(1,i.length):"")).join(" ")}var fFt=class extends dt{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,n=!1){if(!e)return null;const r=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:i}=this.beans;return n&&i?i.getHeaderName(e,r):r}getDisplayNameForProvidedColumnGroup(e,t,n){const r=t?.getColGroupDef();return r?this.getHeaderName(r,null,e,t,n):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,n,r,i){const o=e.headerValueGetter;if(o){const a=Gn(this.gos,{colDef:e,column:t,columnGroup:n,providedColumnGroup:r,location:i});return typeof o=="function"?o(a):typeof o=="string"?this.beans.expressionSvc?.evaluate(o,a)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return hFt(e.field)}return""}},gFt=class extends dt{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,n=!1){const{visibleCols:r}=this,i=r.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!i)){if(this.scrollWidth=e,this.scrollPosition=t,r.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const a=r.bodyWidth;this.viewportLeft=a-t-e,this.viewportRight=a-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(n)}}getHeadersToRender(e,t){let n;switch(e){case"left":n=this.rowsOfHeadersToRenderLeft[t];break;case"right":n=this.rowsOfHeadersToRenderRight[t];break;default:n=this.rowsOfHeadersToRenderCenter[t];break}return n||[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(e){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},e||(this.colsWithinViewportHash="")}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||mFt(e)?!0:this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,i=this.viewportRight+200,o=t<r&&n<r,a=t>i&&n>i;return!o&&!a}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const t=o=>{const a=o.getLeft();return Ut(a)&&a>this.viewportLeft},n=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:r}=this,i=r.centerCols;return r.getColsForRow(e,i,n,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){this.clear(!0);const e={},{leftCols:t,rightCols:n,treeLeft:r,treeRight:i,treeCenter:o}=this.visibleCols;this.headerColsWithinViewport.concat(t).concat(n).forEach(l=>e[l.getId()]=!0);const s=(l,c,u)=>{let d=!1;for(let p=0;p<l.length;p++){const h=l[p];let g=!1;if(vm(h))g=e[h.getId()]===!0;else{const b=h.getDisplayedChildren();b&&(g=s(b,c,u+1))}g&&(d=!0,c[u]||(c[u]=[]),c[u].push(h))}return d};s(r,this.rowsOfHeadersToRenderLeft,0),s(i,this.rowsOfHeadersToRenderRight,0),s(o,this.rowsOfHeadersToRenderCenter,0)}extractViewport(){const e=r=>`${r.getId()}-${r.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),n=this.colsWithinViewportHash!==t;return n&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),n}};function mFt(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}var vFt=class extends dt{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class n{refresh(){return!1}getGui(){return this.eGui}init(i){const o=t(i),a=typeof o;if(a==="string"||a==="number"||a==="boolean"){this.eGui=eye("<span>"+o+"</span>");return}if(o==null){this.eGui=Nr({tag:"span"});return}this.eGui=o}}return n}},bFt={moduleName:"CellRendererFunction",version:Jn,beans:[vFt]},yFt=class extends dt{constructor(){super(...arguments),this.beanName="registry",this.agGridDefaults={},this.agGridDefaultParams={},this.jsComps={},this.dynamicBeans={},this.selectors={},this.icons={}}postConstruct(){const t=this.gos.get("components");if(t!=null)for(const n of Object.keys(t))this.jsComps[n]=t[n]}registerModule(t){const{icons:n,userComponents:r,dynamicBeans:i,selectors:o}=t;if(r){const a=(s,l,c)=>{this.agGridDefaults[s]=l,c&&(this.agGridDefaultParams[s]=c)};for(const s of Object.keys(r)){const l=r[s];typeof l=="object"?a(s,l.classImp,l.params):a(s,l)}}if(i)for(const a of Object.keys(i))this.dynamicBeans[a]=i[a];if(o?.forEach(a=>{this.selectors[a.selector]=a}),n)for(const a of Object.keys(n))this.icons[a]=n[a]}getUserComponent(t,n){const r=(l,c,u)=>({componentFromFramework:c,component:l,params:u}),{frameworkOverrides:i}=this.beans,o=i.frameworkComponent(n,this.gos.get("components"));if(o!=null)return r(o,!0);const a=this.jsComps[n];if(a){const l=i.isFrameworkComponent(a);return r(a,l)}const s=this.agGridDefaults[n];return s?r(s,!1,this.agGridDefaultParams[n]):(this.beans.validation?.missingUserComponent(t,n,this.agGridDefaults,this.jsComps),null)}createDynamicBean(t,n,...r){const i=this.dynamicBeans[t];if(i==null){if(n)throw new Error(Of(256));return}return new i(...r)}getSelector(t){return this.selectors[t]}getIcon(t){return this.icons[t]}},MFt=23,CFt=class extends dt{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach(e=>e(this.params)),this.readyCallbacks.length=0)},this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){const e=Object.values(this.params);this.ready=e.length===MFt&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const n=this.readyCallbacks.indexOf(t);n>=0&&this.readyCallbacks.splice(n,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:n}=this.params;return[e,n,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},xFt=':where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none}}:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-large-text-input{display:block}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-chart,.ag-dnd-ghost,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item{position:absolute;width:100%}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-list-item{align-items:center;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly,.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-column-select-column-readonly{&.ag-icon-grip,.ag-icon-grip{opacity:.35}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);position:relative;&:after{background-color:var(--ag-accent-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto}.ag-menu,.ag-resizer{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-resizer{pointer-events:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}',Wye=typeof window!="object"||!window?.document?.fonts?.forEach,oP=(e,t,n,r,i,o)=>{if(Wye)return;r&&(e=`@layer ${CSS.escape(r)} { ${e} }`);let a=sI.map.get(t);if(a||(a=[],sI.map.set(t,a)),a.find(u=>u.css===e))return;const s=document.createElement("style");o&&s.setAttribute("nonce",o),s.dataset.agGlobalCss=n,s.textContent=e;const l={css:e,el:s,priority:i};let c;for(const u of a){if(u.priority>i)break;c=u}if(c){c.el.insertAdjacentElement("afterend",s);const u=a.indexOf(c);a.splice(u+1,0,l)}else t.insertBefore(s,t.querySelector(":not(title, meta)")),a.push(l)},cnt=(e,t,n)=>{oP(xFt,e,"core",t,0,n),Array.from(t4t()).sort((r,i)=>r.moduleName.localeCompare(i.moduleName)).forEach(r=>r.css?.forEach(i=>oP(i,e,`module-${r.moduleName}`,t,0,n)))},wFt=e=>{sI.grids.add(e)},SFt=e=>{if(sI.grids.delete(e),sI.grids.size===0){sI.map=new WeakMap;for(const t of document.head.querySelectorAll("style[data-ag-global-css]"))t.remove()}},HEe,sI=(HEe=typeof window=="object"?window:{}).agStyleInjectionState??(HEe.agStyleInjectionState={map:new WeakMap,grids:new Set}),Wl=e=>new unt(e),IC="$default",AFt=0,unt=class{constructor({feature:e,params:t,modeParams:n={},css:r,cssImports:i}){this.feature=e,this.css=r,this.cssImports=i,this.modeParams={[IC]:{...n[IC]??{},...t??{}},...n}}use(e,t,n){let r=this._inject;if(r==null){let{css:i}=this;if(i){const o=`ag-theme-${this.feature??"part"}-${++AFt}`;typeof i=="function"&&(i=i()),i=`:where(.${o}) {
${i}
}
`;for(const a of this.cssImports??[])i=`@import url(${JSON.stringify(a)});
${i}`;r={css:i,class:o}}else r=!1;this._inject=r}return r&&e&&oP(r.css,e,r.class,t,1,n),r?r.class:!1}},OFt=e=>e.replace(/[A-Z]/g,t=>`-${t}`).toLowerCase(),dnt=e=>`--ag-${OFt(e)}`,Rb=e=>`var(${dnt(e)})`,zFt=(e,t,n)=>Math.max(t,Math.min(n,e)),TFt=e=>{const t=new Map;return n=>{const r=n;return t.has(r)||t.set(r,e(n)),t.get(r)}},Tv=e=>({ref:"accentColor",mix:e}),ju=e=>({ref:"foregroundColor",mix:e}),ip=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),EFt=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),ep={ref:"backgroundColor"},dy={ref:"foregroundColor"},$C={ref:"accentColor"},W$={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:ju(.15),chromeBackgroundColor:ip(.02),browserColorScheme:"light"},RFt={...W$,textColor:dy,accentColor:"#2196f3",invalidColor:"#e02525",wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:ep,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:$C,rangeSelectionBackgroundColor:Tv(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:Tv(.5),rangeHeaderHighlightColor:EFt(.08),rowNumbersSelectedColor:Tv(.5),rowHoverColor:Tv(.08),columnHoverColor:Tv(.05),selectedRowBackgroundColor:Tv(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:ep,borderRadius:4,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",spacing:8,fontSize:14,rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},dragAndDropImageBackgroundColor:ep,dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:ju(.7),focusShadow:{spread:3,color:Tv(.5)},headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},iconSize:16,iconColor:"inherit",iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:ju(.1),iconButtonActiveColor:$C,iconButtonActiveBackgroundColor:Tv(.28),iconButtonActiveIndicatorColor:$C,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:$C,toggleButtonOffBackgroundColor:ip(.3),toggleButtonSwitchBackgroundColor:ep,toggleButtonSwitchInset:2,menuBorder:{color:ju(.2)},menuBackgroundColor:ip(.03),menuTextColor:ip(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:ju(.8),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:$C},cellEditingShadow:{ref:"cardShadow"},dialogBorder:{color:ju(.2)},panelBackgroundColor:ep,panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipTextColor:{ref:"textColor"},tooltipBorder:!0,columnDropCellBackgroundColor:ju(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:ju(.13)},selectCellBackgroundColor:ju(.07),selectCellBorder:{color:ju(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",findMatchColor:dy,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:dy,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:ju(.15),statusBarLabelColor:dy,statusBarLabelFontWeight:500,statusBarValueColor:dy,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"backgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"backgroundColor"},pinnedRowTextColor:{ref:"textColor"}},pnt=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}",hnt={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},IFt=()=>Wl({feature:"buttonStyle",params:hnt,css:pnt}),PFt=IFt(),DFt=()=>Wl({feature:"buttonStyle",params:{...hnt,buttonBackgroundColor:ep,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:$C}},css:pnt}),kFt=DFt(),LFt=".ag-column-drop-vertical-empty-message{align-items:center;border:1px dashed;border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}",_Ft=".ag-column-drop-vertical-empty-message{color:var(--ag-subtle-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600;padding-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-empty-message{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing));padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-empty-message{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing))}",NFt=()=>Wl({feature:"columnDropStyle",css:LFt}),fnt=NFt(),FFt=()=>Wl({feature:"columnDropStyle",css:_Ft}),WFt=FFt(),qFt=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],BFt=TFt(e=>(e=e.toLowerCase(),qFt.find(t=>e.endsWith(t.toLowerCase()))??"length")),NK=e=>typeof e=="object"&&e?.ref?Rb(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,qye=e=>{if(typeof e=="string")return e;if(e&&"ref"in e){const t=Rb(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?Rb(e.onto):"transparent"}, ${t} ${zFt(e.mix*100,0,100)}%)`}return!1},jFt=NK,IR=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,n=>n[0]==="-"?n:` ${Rb(n)} `)})`:e&&"ref"in e?Rb(e.ref):!1,HFt=NK,VFt=(e,t)=>typeof e=="string"?e:e===!0?"solid 1px var(--ag-border-color)":e===!1?t==="columnBorder"?"solid 1px transparent":"none":e&&"ref"in e?Rb(e.ref):gnt(e.style??"solid")+" "+IR(e.width??1)+" "+qye(e.color??{ref:"borderColor"}),GFt=e=>typeof e=="string"?e:e===!1?"none":e&&"ref"in e?Rb(e.ref):[IR(e.offsetX??0),IR(e.offsetY??0),IR(e.radius??0),IR(e.spread??0),qye(e.color??{ref:"foregroundColor"})].join(" "),gnt=NK,mnt=e=>typeof e=="string"?e.includes(",")?e:VEe(e):e&&"googleFont"in e?mnt(e.googleFont):e&&"ref"in e?Rb(e.ref):Array.isArray(e)?e.map(t=>(typeof t=="object"&&"googleFont"in t&&(t=t.googleFont),VEe(t))).join(", "):!1,VEe=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),$Ft=NK,vnt=e=>typeof e=="string"?e:e&&"url"in e?`url(${JSON.stringify(e.url)})`:e&&"svg"in e?vnt({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):e&&"ref"in e?Rb(e.ref):!1,UFt=(e,t)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&pi(104,{value:e,param:t}),`${e}s`):e&&"ref"in e?Rb(e.ref):!1,XFt={color:qye,colorScheme:jFt,length:IR,scale:HFt,border:VFt,borderStyle:gnt,shadow:GFt,image:vnt,fontFamily:mnt,fontWeight:$Ft,duration:UFt},YFt=(e,t)=>{const n=BFt(e);return XFt[n](t,e)},bnt=()=>new ynt().withPart(kFt).withPart(fnt),ynt=class Mnt{constructor(t=[]){this.parts=t}withPart(t){return typeof t=="function"&&(t=t()),t instanceof unt?new Mnt([...this.parts,t]):(G5(259,{part:t},"Invalid part"),this)}withoutPart(t){return this.withPart(Wl({feature:t}))}withParams(t,n=IC){return this.withPart(Wl({modeParams:{[n]:t}}))}_startUse({styleContainer:t,cssLayer:n,nonce:r,loadThemeGoogleFonts:i}){if(Wye)return;QFt(),cnt(t,n,r);const o=KFt(this);if(o.length>0)for(const a of o)i&&JFt(a,r);for(const a of this.parts)a.use(t,n,r)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=GEe(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).join(" "))}_getModeParams(){let t=this._paramsCache;if(!t){const n={[IC]:{...RFt}};for(const r of GEe(this.parts))for(const i of Object.keys(r.modeParams)){const o=r.modeParams[i];if(o){const a=n[i]??(n[i]={}),s=new Set;for(const l of Object.keys(o)){const c=o[l];c!==void 0&&(a[l]=c,s.add(l))}if(i===IC)for(const l of Object.keys(n)){const c=n[l];if(l!==IC)for(const u of s)delete c[u]}}}this._paramsCache=t=n}return t}_getPerGridCss(t){const n="##SELECTOR##";let r=this._paramsCssCache;if(!r){let i="",o="";const a=this._getModeParams();for(const l of Object.keys(a)){const c=a[l];if(l!==IC){const d=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(l):l}"]) & {
`;i+=d,o+=d}for(const u of Object.keys(c).sort()){const d=c[u],p=YFt(u,d);if(p===!1)pi(107,{key:u,value:d});else{const h=dnt(u),g=h.replace("--ag-","--ag-inherited-");i+=`	${h}: var(${g}, ${p});
`,o+=`	${g}: var(${h});
`}}l!==IC&&(i+=`}
`,o+=`}
`)}let s=`${n} {
${i}}
`;s+=`:has(> ${n}):not(${n}) {
${o}}
`,this._paramsCssCache=r=s}return r.replaceAll(n,`:where(.${t})`)}},GEe=e=>{const t=new Map;for(const r of e)t.set(r.feature,r);const n=[];for(const r of e)(!r.feature||t.get(r.feature)===r)&&n.push(r);return n},KFt=e=>{const t=new Set,n=o=>{if(Array.isArray(o))o.forEach(n);else{const a=o?.googleFont;typeof a=="string"&&t.add(a)}};return Object.values(e._getModeParams()).flatMap(o=>Object.values(o)).forEach(n),Array.from(t).sort()},$Ee=!1,QFt=()=>{if(!$Ee){$Ee=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},ZFt=new Set,JFt=async(e,t)=>{ZFt.add(e);const n=`@import url('https://${eWt}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
`;oP(n,document.head,`googleFont:${e}`,void 0,0,t)},eWt="fonts.googleapis.com",tWt='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',nWt=()=>Wl({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:ep,checkboxUncheckedBorderColor:ip(.3),checkboxCheckedBackgroundColor:$C,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:ep,checkboxIndeterminateBackgroundColor:ip(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:ep,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:tWt}),Cnt=nWt(),xnt=()=>({...W$,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:ip(.05),rowHoverColor:Tv(.15),selectedRowBackgroundColor:Tv(.2),menuBackgroundColor:ip(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",findMatchColor:ep,findActiveMatchColor:ep,checkboxUncheckedBorderColor:ip(.4),toggleButtonOffBackgroundColor:ip(.4)}),rWt=()=>({...xnt(),backgroundColor:"#1f2836"}),iWt=()=>Wl({feature:"colorScheme",params:W$,modeParams:{light:W$,dark:xnt(),"dark-blue":rWt()}}),wnt=iWt(),oWt=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227v-2.667z'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4zM16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}.ag-icon-column-arrow:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-un-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11'/%3E%3Cpath fill='currentColor' d='M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28zM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972z'/%3E%3C/svg%3E")}.ag-icon-pinned-top:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22M3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536'/%3E%3C/svg%3E")}.ag-icon-pinned-bottom:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22M12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536'/%3E%3C/svg%3E")}`,aWt=Wl({feature:"iconSet",css:oWt}),Snt={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},Ant={"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>'},sWt=(e={})=>{let t="";for(const n of[...Object.keys(Snt),...Object.keys(Ant)]){const r=lWt(n,e.strokeWidth);t+=`.ag-icon-${n}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(r)}'); }
`}return t},lWt=(e,t=1.5)=>{const n=Ant[e];if(n)return n;const r=Snt[e];if(!r)throw new Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+r+"</svg>"},cWt=(e={})=>Wl({feature:"iconSet",css:()=>sWt(e)}),uWt=cWt(),Ont=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',dWt=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow)}}",pWt=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){border-left:none;border-right:none;border-top:none}",znt={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"}},hWt=()=>Wl({feature:"inputStyle",params:{...znt,inputBackgroundColor:ep,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:$C},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:ip(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>Ont+dWt}),fWt=hWt(),gWt=()=>Wl({feature:"inputStyle",params:{...znt,inputBackgroundColor:"transparent",inputBorder:{width:2,color:ju(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}},css:()=>Ont+pWt}),mWt=gWt(),Tnt='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}',Ent={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},vWt=()=>Wl({feature:"tabStyle",params:{...Ent,tabBarBorder:!0,tabBarBackgroundColor:ju(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:ep},css:Tnt}),bWt=vWt(),yWt=()=>Wl({feature:"tabStyle",params:{...Ent,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0},css:Tnt}),MWt=yWt(),CWt=".ag-dnd-ghost,.ag-filter-toolpanel-header,.ag-filter-toolpanel-search,.ag-multi-filter-group-title-bar,.ag-panel-title-bar-title,.ag-status-bar{color:var(--ag-header-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600}.ag-column-drop-horizontal{background-color:color-mix(in srgb,var(--ag-background-color),var(--ag-foreground-color) 8%)}.ag-cell.ag-cell-inline-editing{background-color:var(--ag-background-color);background-image:linear-gradient(0deg,var(--ag-input-background-color),var(--ag-input-background-color));border:var(--ag-input-border)!important;border-width:1px!important;height:calc(var(--ag-row-height) + var(--ag-spacing)*3);padding:var(--ag-spacing);:where(.ag-row-last:not(.ag-row-first)) &{bottom:0}:where(.ag-has-focus) &{border:var(--ag-input-focus-border)!important;border-width:1px!important}}.ag-advanced-filter-builder-button,.ag-standard-button{text-transform:uppercase}.ag-status-bar{border:1px solid var(--ag-border-color)}.ag-list-item-hovered:after{background-color:var(--ag-primary-color)}.ag-pill-button:hover{color:var(--ag-primary-color)}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-primary-color)}",xWt=()=>bnt().withPart(Cnt).withPart(wnt).withPart(uWt).withPart(bWt).withPart(fWt).withPart(fnt).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),wWt=xWt(),SWt=()=>{const e={tabSelectedUnderlineColor:{ref:"primaryColor"},sideButtonSelectedUnderlineColor:{ref:"primaryColor"},buttonTextColor:{ref:"primaryColor"},rangeSelectionBackgroundColor:{ref:"primaryColor",mix:.2},rangeSelectionBorderColor:{ref:"primaryColor"},rangeSelectionHighlightColor:{ref:"primaryColor",mix:.5},rangeHeaderHighlightColor:{ref:"foregroundColor",mix:.08},rowNumbersSelectedColor:{ref:"primaryColor",mix:.5},inputFocusBorder:{width:2,color:{ref:"primaryColor"}},pickerButtonFocusBorder:{width:1,color:{ref:"primaryColor"}},cellEditingBorder:{color:{ref:"primaryColor"}},menuBackgroundColor:{ref:"backgroundColor"},sideButtonBarBackgroundColor:ep,sideButtonSelectedBackgroundColor:"transparent",sideButtonBarTopPadding:{calc:"spacing * 4"},headerColumnResizeHandleColor:"none",headerBackgroundColor:{ref:"backgroundColor"},rowHoverColor:ju(.08),columnHoverColor:ju(.08),headerCellHoverBackgroundColor:ju(.05),statusBarLabelColor:ju(.63),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,valueChangeValueHighlightBackgroundColor:"#00acc1",panelTitleBarIconColor:dy,advancedFilterBuilderButtonBarBorder:!1},t={...e,primaryColor:"#3f51b5",foregroundColor:"#000D",headerTextColor:"#0008",accentColor:"#ff4081",checkboxUncheckedBorderColor:dy,checkboxIndeterminateBackgroundColor:dy,toggleButtonOffBackgroundColor:dy,selectedRowBackgroundColor:"rgba(33, 150, 243, 0.3)"},n={...e,primaryColor:"#3f51b5",foregroundColor:"#fffD",headerTextColor:"#fff8",accentColor:"#bb86fc",checkboxUncheckedBorderColor:ip(.5),checkboxIndeterminateBackgroundColor:ip(.5),toggleButtonOffBackgroundColor:ip(.5),selectedRowBackgroundColor:"#bb86fc33"};return Wl({feature:"styleMaterial",css:CWt,params:t,modeParams:{light:t,dark:n,"dark-blue":n}})},AWt=SWt(),OWt=()=>bnt().withPart(PFt).withPart(Cnt).withPart(wnt).withPart(aWt).withPart(MWt).withPart(mWt).withPart(WFt).withPart(AWt).withParams({rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.75 * rowVerticalPaddingScale"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4.75 * headerVerticalPaddingScale"},widgetVerticalSpacing:{calc:"spacing * 1.75"},cellHorizontalPadding:{calc:"spacing * 3"},buttonHorizontalPadding:{ref:"spacing"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 2"},fontSize:13,iconSize:18,borderRadius:0,wrapperBorderRadius:0,wrapperBorder:!1,menuBorder:!1,dialogBorder:!1,panelTitleBarBorder:!1,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sidePanelBorder:!1,sideButtonSelectedBorder:!1,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,buttonBorder:!1,buttonDisabledBorder:!1,focusShadow:{spread:4,color:ju(.16)},fontFamily:[{googleFont:"Roboto"},"-apple-system","BlinkMacSystemFont","Segoe UI","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],inputHeight:{calc:"max(iconSize, fontSize) + spacing * 3"},pickerButtonBorder:{width:1,color:"transparent"},headerFontWeight:600,headerFontSize:{calc:"fontSize - 1px"},checkboxBorderWidth:2,checkboxBorderRadius:2,toggleButtonWidth:34,toggleButtonSwitchInset:1,cardShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)"}),Bye=OWt(),zWt={cssName:"--ag-cell-horizontal-padding",changeKey:"cellHorizontalPaddingChanged",defaultValue:16},TWt={cssName:"--ag-indentation-level",changeKey:"indentationLevelChanged",defaultValue:0,noWarn:!0,cacheDefault:!0},EWt={cssName:"--ag-row-group-indent-size",changeKey:"rowGroupIndentSizeChanged",defaultValue:0},UEe={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},XEe={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},YEe={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},fre={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},KEe={cssName:"--ag-pinned-row-border",changeKey:"pinnedRowBorderWidthChanged",defaultValue:1,border:!0},RWt=0,IWt=class extends dt{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass=`ag-theme-params-${++RWt}`,this.globalCSS=[]}wireBeans(e){const{eGridDiv:t,gridOptions:n}=e;this.eGridDiv=t,this.eStyleContainer=n.themeStyleContainer??(t.getRootNode()===document?document.head:t),this.cssLayer=n.themeCssLayer,this.styleNonce=n.styleNonce}postConstruct(){this.addManagedPropertyListener("theme",()=>this.handleThemeGridOptionChange()),this.handleThemeGridOptionChange(),this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(UEe),this.getSizeEl(XEe),this.getSizeEl(YEe),this.getSizeEl(fre),this.getSizeEl(KEe),this.refreshRowBorderWidthVariable(),this.addDestroyFunc(()=>SFt(this)),this.mutationObserver=new MutationObserver(()=>{this.fireGridStylesChangedEvent("themeChanged")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(KEe)}getRowBorderWidth(){return this.getCSSVariablePixelValue(fre)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(UEe)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(XEe)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(zWt)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(TWt),n=this.getCSSVariablePixelValue(EWt);return e-1+n*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(YEe)}applyThemeClasses(e){const{gridTheme:t}=this;let n="";if(t)n=`${this.paramsClass} ${t._getCssClass()}`;else{this.mutationObserver.disconnect();let r=this.eGridDiv;for(;r;){let i=!1;for(const o of Array.from(r.classList))o.startsWith("ag-theme-")&&(i=!0,n=n?`${n} ${o}`:o);i&&this.mutationObserver.observe(r,{attributes:!0,attributeFilter:["class"]}),r=r.parentElement}}for(const r of Array.from(e.classList))r.startsWith("ag-theme-")&&e.classList.remove(r);if(n){const r=e.className;e.className=r+(r?" ":"")+n}}refreshRowHeightVariable(){const{eGridDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),n=this.gos.get("rowHeight");if(n==null||isNaN(n)||!isFinite(n))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const r=`${n}px`;return t!=r?(e.style.setProperty("--ag-line-height",r),n):t!=""?parseFloat(t):-1}addGlobalCSS(e,t){this.gridTheme?oP(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const n=this.measureSizeEl(e);return n==="detached"||n==="no-styles"?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,n),n)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const n=t.offsetWidth;return n===gre?"no-styles":(this.sizesMeasured=!0,n)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=Nr({tag:"div",cls:"ag-measurement-container"}),this.eGridDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const n=this.getMeasurementContainer();t=Nr({tag:"div"});const{border:r,noWarn:i}=e;r?(t.className="ag-measurement-element-border",t.style.setProperty("--ag-internal-measurement-border",`var(${e.cssName}, solid ${gre}px)`)):t.style.width=`var(${e.cssName}, ${gre}px)`,n.appendChild(t),this.sizeEls.set(e,t);let o=this.measureSizeEl(e);o==="no-styles"&&!i&&ut(9,{variable:e});const a=Hf(this.beans,t,()=>{const s=this.measureSizeEl(e);s==="detached"||s==="no-styles"||(this.lastKnownValues.set(e,s),s!==o&&(o=s,this.fireGridStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>a()),t}fireGridStylesChangedEvent(e){e==="rowBorderWidthChanged"&&this.refreshRowBorderWidthVariable(),this.eventSvc.dispatchEvent({type:"gridStylesChanged",[e]:!0})}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(fre);this.eGridDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}handleThemeGridOptionChange(){const{gos:e,eGridDiv:t,globalCSS:n,gridTheme:r}=this,i=e.get("theme");let o;if(i==="legacy")o=void 0;else{const a=i??wWt;a instanceof ynt?o=a:pi(240,{theme:a})}if(o!==r){if(o){wFt(this),cnt(this.eStyleContainer,this.cssLayer,this.styleNonce);for(const[s,l]of n)oP(s,this.eStyleContainer,l,this.cssLayer,0,this.styleNonce);n.length=0}this.gridTheme=o,o?._startUse({loadThemeGoogleFonts:e.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce});let a=this.eParamsStyle;if(!a){a=this.eParamsStyle=Nr({tag:"style"});const s=this.gos.get("styleNonce");s&&a.setAttribute("nonce",s),t.appendChild(a)}Wye||(a.textContent=o?._getPerGridCss(this.paramsClass)||""),this.applyThemeClasses(t),this.fireGridStylesChangedEvent("themeChanged")}o&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&pi(i?106:239)}},gre=15538,PWt=class extends dt{constructor(){super(...arguments),this.beanName="eventSvc",this.globalSvc=new Wy}postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}addEventListener(e,t,n){this.globalSvc.addEventListener(e,t,n)}removeEventListener(e,t,n){this.globalSvc.removeEventListener(e,t,n)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchLocalEvent(){}dispatchEvent(e){this.globalSvc.dispatchEvent(Gn(this.gos,e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(Gn(this.gos,e))}};function Rnt(e){return e?e.getLeafColumns().some(t=>t.isSpanHeaderHeight()):!1}function xhe(e,t){let n;if(Pl(e)&&Rnt(e)&&e.isPadding()){const r=e;n=r.getLeafColumns()[0];let i=n;for(;i!==r;)t++,i=i.getParent()}return{column:n||e,headerRowIndex:t}}var DWt=class extends dt{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,n=>{this.gridBodyCon=n.gridBodyCtrl});const t=bl(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let n;const{colModel:r,colGroupSvc:i,ctrlsSvc:o}=this.beans;if(typeof e=="string"?(n=r.getCol(e),n||(n=i?.getColumnGroup(e)??null)):n=e,!n)return null;const s=o.getHeaderRowContainerCtrl()?.getAllCtrls(),l=zr(s||[]).type==="filter",c=Zv(this.beans)-1;let u=-1,d=n;for(;d;)u++,d=d.getParent();let p=u;return t&&l&&p===c-1&&p++,p===-1?null:{headerRowIndex:p,column:n}}navigateVertically(e,t,n){const r=this.beans.focusSvc;if(t||(t=r.focusedHeader),!t)return!1;const{headerRowIndex:i}=t,o=t.column,a=Zv(this.beans),s=e==="UP",l=this.getHeaderRowType(i);let{headerRowIndex:c,column:u,headerRowIndexWithoutSpan:d}=s?kWt(l,o,i):LWt(l,o,i),p=!1;return c<0&&(c=0,u=o,p=!0),c>=a?(c=-1,this.currentHeaderRowWithoutSpan=-1):d!==void 0&&(this.currentHeaderRowWithoutSpan=d),!p&&!u?!1:r.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:u},allowUserOverride:!0,event:n})}navigateHorizontally(e,t=!1,n){const{focusSvc:r,gos:i}=this.beans,o=r.focusedHeader;let a,s;this.currentHeaderRowWithoutSpan!==-1?o.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=o.headerRowIndex,e==="LEFT"!==i.get("enableRtl")?(s="Before",a=this.findHeader(o,s)):(s="After",a=this.findHeader(o,s));const l=i.getCallback("tabToNextHeader");if(t&&l){const c=r.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:a,direction:s});if(c){const{headerRowIndex:u}=r.focusedHeader||{};u!=null&&u!=o.headerRowIndex&&(this.currentHeaderRowWithoutSpan=u)}return c}return a||!t?r.focusHeaderPosition({headerPosition:a,direction:s,fromTab:t,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(o,s,n)}focusNextHeaderRow(e,t,n){const r=e.headerRowIndex;let i=null,o;const a=this.beans;if(t==="Before"?r>0&&(o=r-1,this.currentHeaderRowWithoutSpan-=1,i=this.findColAtEdgeForHeaderRow(o,"end")):(o=r+1,this.currentHeaderRowWithoutSpan<Zv(a)?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1,i=this.findColAtEdgeForHeaderRow(o,"start")),!i)return!1;const{column:s,headerRowIndex:l}=xhe(i.column,i?.headerRowIndex);return a.focusSvc.focusHeaderPosition({headerPosition:{column:s,headerRowIndex:l},direction:t,fromTab:!0,allowUserOverride:!0,event:n})}scrollToColumn(e,t="After"){if(e.getPinned())return;let n;if(Pl(e)){const r=e.getDisplayedLeafColumns();n=t==="Before"?zr(r):r[0]}else n=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(n)}findHeader(e,t){let n,r;const{colGroupSvc:i,visibleCols:o}=this.beans;if(Pl(e.column)?n=i?.getGroupAtDirection(e.column,t)??void 0:(r=`getCol${t}`,n=o[r](e.column)),!n)return;const{headerRowIndex:a}=e;if(this.getHeaderRowType(a)!=="filter"){const c=[n];for(;n.getParent();)n=n.getParent(),c.push(n);n=c[Math.max(0,c.length-1-a)]}const{column:s,headerRowIndex:l}=xhe(n,a);return{column:s,headerRowIndex:l}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}findColAtEdgeForHeaderRow(e,t){const{visibleCols:n,ctrlsSvc:r,colGroupSvc:i}=this.beans,o=n.allCols,a=o[t==="start"?0:o.length-1];if(!a)return;const l=r.getHeaderRowContainerCtrl(a.getPinned())?.getRowType(e);if(l=="group"){const c=i?.getColGroupAtLevel(a,e);return{headerRowIndex:e,column:c}}return{headerRowIndex:l==null?-1:e,column:a}}};function kWt(e,t,n){const r=e==="filter",i=e==="column";let o=r?t:t.getParent(),a=n-1,s=a;if(i&&Rnt(t.getParent())){for(;o&&o.isPadding();)o=o.getParent(),a--;s=a,a<0&&(o=t,a=n,s=void 0)}return{column:o,headerRowIndex:a,headerRowIndexWithoutSpan:s}}function LWt(e,t,n,r="After"){let i=t,o=n+1;const a=o;if(e==="group"){const s=t.getDisplayedLeafColumns(),l=r==="After"?s[0]:zr(s),c=[];let u=l;for(;u.getParent()!==t;)u=u.getParent(),c.push(u);if(i=l,l.isSpanHeaderHeight())for(let d=c.length-1;d>=0;d--){const p=c[d];if(!p.isPadding()){i=p;break}o++}else i=zr(c),i||(i=l)}return{column:i,headerRowIndex:o,headerRowIndexWithoutSpan:a}}var _Wt=class extends dt{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){const e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(p4t(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,this.focusFallbackTimeout!=null&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,this.focusFallbackTimeout!=null&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t||!this.doesRowOrCellHaveBrowserFocus()?null:t}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||!this.isDomDataPresentInHierarchy($i(this.beans),jtt)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=$i(this.beans);return this.isDomDataPresentInHierarchy(e,D$)?!0:this.isDomDataPresentInHierarchy(e,_$)}isDomDataPresentInHierarchy(e,t){let n=e;for(;n;){if(wet(this.gos,n,t))return!0;n=n.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:n,column:r}=e,i={rowIndex:t,rowPinned:n,column:r,isFullWidthCell:!1},o=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n});return o&&(i.isFullWidthCell=o.isFullWidth()),i}clearFocusedCell(){if(this.focusedCell==null)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:n,rowPinned:r,forceBrowserFocus:i=!1,preventScrollOnBrowserFocus:o=!1}=e,a=this.colModel.getCol(t);if(!a){this.focusedCell=null;return}this.focusedCell={rowIndex:n,rowPinned:Tc(r),column:a},this.eventSvc.dispatchEvent({type:"cellFocused",...this.getFocusEventParams(this.focusedCell),forceBrowserFocus:i,preventScrollOnBrowserFocus:o})}isCellFocused(e){return this.focusedCell==null?!1:y6(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:n,pinned:r}}=e,{column:i,headerRowIndex:o}=this.focusedHeader;return t===i&&n===o&&r==i.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),NO(this.beans))return!1;const{direction:t,fromTab:n,allowUserOverride:r,event:i,fromCell:o,rowWithoutSpanValue:a}=e;let{headerPosition:s}=e;if(o&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(s);if(r){const l=this.focusedHeader,c=Zv(this.beans);if(n){const u=this.gos.getCallback("tabToNextHeader");u&&(s=this.getHeaderPositionFromUserFunc({userFunc:u,direction:t,currentPosition:l,headerPosition:s,headerRowCount:c}))}else{const u=this.gos.getCallback("navigateToNextHeader");if(u&&i){const d={key:i.key,previousHeaderPosition:l,nextHeaderPosition:s,headerRowCount:c,event:i};s=u(d)}}}return s?this.focusProvidedHeaderPosition({headerPosition:s,direction:t,event:i,fromCell:o,rowWithoutSpanValue:a}):!1}focusHeaderPositionFromUserFunc(e){if(NO(this.beans))return!1;const{userFunc:t,headerPosition:n,direction:r,event:i}=e,o=this.focusedHeader,a=Zv(this.beans),s=this.getHeaderPositionFromUserFunc({userFunc:t,direction:r,currentPosition:o,headerPosition:n,headerRowCount:a});return!!s&&this.focusProvidedHeaderPosition({headerPosition:s,direction:r,event:i})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:n,currentPosition:r,headerPosition:i,headerRowCount:o}=e,s=t({backwards:n==="Before",previousHeaderPosition:r,nextHeaderPosition:i,headerRowCount:o});return s===!0?r:s===!1?null:s}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:n,fromCell:r,rowWithoutSpanValue:i,event:o}=e,{column:a,headerRowIndex:s}=t,{filterManager:l,ctrlsSvc:c,headerNavigation:u}=this.beans;if(s===-1)return l?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:o});u?.scrollToColumn(a,n);const p=c.getHeaderRowContainerCtrl(a.getPinned())?.focusHeader(t.headerRowIndex,a,o)||!1;return u&&p&&(i!=null||r)&&(u.currentHeaderRowWithoutSpan=i??-1),p}focusFirstHeader(){if(this.overlays?.isExclusive()&&this.focusOverlay())return!0;let e=this.visibleCols.allCols[0];if(!e)return!1;const{colGroupSvc:t}=this.beans;t&&e.getParent()&&(e=t.getColGroupAtLevel(e,0));const n=xhe(e,0);return this.focusHeaderPosition({headerPosition:n,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.isExclusive()&&this.focusOverlay(!0))return!0;const t=Zv(this.beans)-1,n=zr(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return this.focusedCell==null?!1:this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===Tc(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&zu(t,e)}focusGridView(e){const{backwards:t=!1,canFocusOverlay:n=!0,event:r}=e;if(this.overlays?.isExclusive())return n&&this.focusOverlay(t);if(RK(this.beans))return t&&!NO(this.beans)?this.focusLastHeader():n&&this.focusOverlay(t)?!0:t?!1:Eb(this.beans,t);const i=t?T4t(this.beans):z4t(this.beans);if(i){const o=e.column??this.focusedHeader?.column,{rowIndex:a,rowPinned:s}=i,l=lp(this.beans,i);if(!o||!l||a==null)return!1;if(o.isSuppressNavigable(l)){const c=this.gos.get("enableRtl");let u;return!r||r.key===Qe.TAB?u=c?Qe.LEFT:Qe.RIGHT:u=r.key,this.beans.navigation?.navigateToNextCell(null,u,{rowIndex:a,column:o,rowPinned:s||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:a,column:o,rowPinned:s}),t&&this.rowRenderer.getRowByPosition(i)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(i,t)||(this.setFocusedCell({rowIndex:a,column:o,rowPinned:Tc(s),forceBrowserFocus:!0}),this.beans.rangeSvc?.setRangeToCell({rowIndex:a,rowPinned:s,column:o})),!0}return!!(n&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const n=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:n,headerRowIndex:Zv(this.beans)-1}}):this.focusGridView({column:n})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},NWt=class extends dt{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),n=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==n)&&(this.horizontalScrollGap=t,this.verticalScrollGap=n,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){const e=this.gos.get("scrollbarWidth"),n=typeof e=="number"&&e>=0?e:mkt();n!=null&&(this.scrollbarWidth=n,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},FWt=class extends dt{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:n}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),n.destroy(),super.destroy()}},ZG=new Set(["gridPreDestroyed","fillStart","pasteStart"]),WWt={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"	",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1},JL=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),qWt={tag:"span",cls:"ag-sort-indicator-container",children:[JL("Order","order"),JL("Asc","ascending-icon"),JL("Desc","descending-icon"),JL("Mixed","mixed-icon"),JL("None","none-icon")]},jye=class extends Gt{constructor(e){super(),this.eSortOrder=at,this.eSortAsc=at,this.eSortDesc=at,this.eSortMixed=at,this.eSortNone=at,e||this.setTemplate(qWt)}attachCustomElements(e,t,n,r,i){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=i}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e);const n=this.updateIcons.bind(this),r=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",n),this.addManagedEventListeners({newColumnsLoaded:n,sortChanged:r,columnRowGroupChanged:r}),this.onSortChanged()}addInIcon(e,t,n){if(t==null)return;const r=er(e,this.beans,n);r&&t.appendChild(r)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortNone:n,column:r,gos:i,beans:o}=this,a=o.sortSvc.getDisplaySortForColumn(r);if(e&&Nn(e,a==="asc",{skipAriaHidden:!0}),t&&Nn(t,a==="desc",{skipAriaHidden:!0}),n){const s=!r.getColDef().unSortIcon&&!i.get("unSortIcon"),l=a==null;Nn(n,!s&&l,{skipAriaHidden:!0})}}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:n}=this;this.addInIcon("sortUnSort",e,t);const r=t.getColDef().showRowGroup;Yg(n)&&r&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:n}=this;if(e){const r=t.sortSvc.getDisplaySortForColumn(n)==="mixed";Nn(e,r,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:n}}=this;if(!e)return;const r=n.getColumnsWithSortingOrdered(),i=n.getDisplaySortIndexForColumn(t)??-1,o=r.some(s=>n.getDisplaySortIndexForColumn(s)??!1),a=i>=0&&o;Nn(e,a,{skipAriaHidden:!0}),i>=0?e.textContent=(i+1).toString():Xi(e)}},BWt={selector:"AG-SORT-INDICATOR",component:jye},vW=["asc","desc",null],jWt=class extends dt{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,n){const r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)}progressSortFromEvent(e,t){const r=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,r,"uiColumnSorted")}setSortForColumn(e,t,n,r){t!=="asc"&&t!=="desc"&&(t=null);const{gos:i,showRowGroupCols:o}=this.beans,a=Yg(i);let s=[e];if(a&&e.getColDef().showRowGroup){const d=o?.getSourceColumnsForGroupColumn?.(e)?.filter(p=>p.isSortable());d&&(s=[e,...d])}s.forEach(u=>this.setColSort(u,t,r));const l=(n||i.get("alwaysMultiSort"))&&!i.get("suppressMultiSort"),c=[];if(!l){const u=this.clearSortBarTheseColumns(s,r);c.push(...u)}this.updateSortIndex(e),c.push(...s),this.dispatchSortChangedEvents(r,c)}updateSortIndex(e){const{gos:t,colModel:n,showRowGroupCols:r}=this.beans,i=Yg(t),o=r?.getShowRowGroupCol(e.getId()),a=i&&o||e,s=this.getColumnsWithSortingOrdered();n.forAllCols(u=>this.setColSortIndex(u,null));const l=s.filter(u=>i&&u.getColDef().showRowGroup?!1:u!==a);(a.getSort()?[...l,a]:l).forEach((u,d)=>this.setColSortIndex(u,d))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{t.getSort()&&(e=!0)}),e}dispatchSortChangedEvents(e,t){const n={type:"sortChanged",source:e};t&&(n.columns=t),this.eventSvc.dispatchEvent(n)}clearSortBarTheseColumns(e,t){const n=[];return this.beans.colModel.forAllCols(r=>{e.includes(r)||(r.getSort()&&n.push(r),this.setColSort(r,void 0,t))}),n}getNextSortDirection(e){const t=e.getColDef().sortingOrder??this.gos.get("sortingOrder")??vW,n=t.indexOf(e.getSort()),r=n<0,i=n==t.length-1;return r||i?t[0]:t[n+1]}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:n,rowGroupColsSvc:r}=this.beans;let i=[];if(t.forAllCols(c=>{c.getSort()&&i.push(c)}),t.isPivotMode()){const c=Yg(e);i=i.filter(u=>{const d=!!u.getAggFunc(),p=!u.isPrimary(),h=c?n?.getShowRowGroupCol(u.getId()):u.getColDef().showRowGroup;return d||p||h})}const o=r?.columns.filter(c=>!!c.getSort())??[],a={};i.forEach((c,u)=>a[c.getId()]=u),i.sort((c,u)=>{const d=c.getSortIndex(),p=u.getSortIndex();if(d!=null&&p!=null)return d-p;if(d==null&&p==null){const h=a[c.getId()],g=a[u.getId()];return h>g?1:-1}else return p==null?-1:1});const s=Yg(e)&&!!o.length;s&&(i=[...new Set(i.map(c=>n?.getShowRowGroupCol(c.getId())??c))]);const l=new Map;return i.forEach((c,u)=>l.set(c,u)),s&&o.forEach(c=>{const u=n.getShowRowGroupCol(c.getId());l.set(c,l.get(u))}),l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),colId:e.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),column:e}))}canColumnDisplayMixedSort(e){const t=Yg(this.gos),n=!!e.getColDef().showRowGroup;return t&&n}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSort();const r=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,i=r[0].getSort();return r.every(a=>a.getSort()==i)?i:"mixed"}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t,n){let r=0;e.addManagedListeners(t,{movingChanged:()=>{r=Date.now()}}),n&&e.addManagedElementListeners(n,{click:o=>{const a=t.isMoving(),l=Date.now()-r<50;a||l||this.progressSortFromEvent(t,o)}});const i=()=>{const o=t.getSort();if(e.toggleCss("ag-header-cell-sorted-asc",o==="asc"),e.toggleCss("ag-header-cell-sorted-desc",o==="desc"),e.toggleCss("ag-header-cell-sorted-none",!o),t.getColDef().showRowGroup){const l=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(c=>t.getSort()==c.getSort());e.toggleCss("ag-header-cell-sorted-mixed",l)}};e.addManagedEventListeners({sortChanged:i,columnRowGroupChanged:i})}initCol(e){const{sort:t,initialSort:n,sortIndex:r,initialSortIndex:i}=e.colDef;t!==void 0?(t==="asc"||t==="desc")&&(e.sort=t):(n==="asc"||n==="desc")&&(e.sort=n),r!==void 0?r!==null&&(e.sortIndex=r):i!==null&&(e.sortIndex=i)}updateColSort(e,t,n){t!==void 0&&(t==="desc"||t==="asc"?this.setColSort(e,t,n):this.setColSort(e,void 0,n))}setColSort(e,t,n){e.sort!==t&&(e.sort=t,e.dispatchColEvent("sortChanged",n)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new jye(e)}getSortIndicatorSelector(){return BWt}},lI={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"},HWt=()=>({checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."}}),VWt={aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t})=>t?typeof e=="string"?lI[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:lI[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?lI[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(n=>t.includes(n))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",spanRows:"CellSpan"},GWt=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:n})=>n?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},cellRendererParams:{validate:t=>(t.rowGroup!=null||t.rowGroupIndex!=null||t.cellRenderer==="agGroupCellRenderer")&&"checkbox"in t.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},flex:{validate:(t,n)=>n.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const n=t.headerValueGetter;return typeof n=="function"||typeof n=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return Of(262);if(t.smallLeft)return Of(263);if(t.smallRight)return Of(264)}return null}},sortingOrder:{validate:t=>{const n=t.sortingOrder;if(Array.isArray(n)&&n.length>0){const r=n.filter(i=>!vW.includes(i));if(r.length>0)return`sortingOrder must be an array with elements from [${vW.map(O$).join()}], currently it includes [${r.map(O$).join()}]`}else if(!Array.isArray(n)||n.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${n}`;return null}},type:{validate:t=>{const n=t.type;return n instanceof Array?n.some(i=>typeof i!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof n=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:n})=>n?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:n,cellSelection:r,suppressRowTransform:i,enableCellSpan:o,rowDragEntireRow:a,enableCellTextSelection:s})=>typeof n=="object"&&n?.mode==="singleRow"&&n?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":r?"colDef.spanRows is not supported with cellSelection.":i?"colDef.spanRows is not supported with suppressRowTransform.":o?a?"colDef.spanRows is not supported with rowDragEntireRow.":s?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."}}),$Wt={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0},UWt=()=>Object.keys($Wt),XWt=()=>({objectName:"colDef",allProperties:UWt(),docsUrl:"column-properties/",deprecations:HWt(),validations:GWt()}),YWt=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterOpened","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded"],KWt=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","beforeRefreshModel","rowNodeDataChanged"],QWt=()=>[...YWt,...KWt],ZWt=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce"],JWt=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","selectionColumnDef","findOptions"],eqt=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],Int=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns"],tqt=["theme","rowSelection"],nqt=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],Pnt=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault"],rqt=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned"],iqt=()=>[...eqt,...JWt,...ZWt,...Int,...rqt,...Pnt,...nqt,...tqt],oqt=()=>({suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."}});function pv(e,t,n){return typeof t=="number"||t==null?t==null||t>=n?null:`${e}: value should be greater than or equal to ${n}`:`${e}: value should be a number`}var aqt={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"SharedRowGrouping",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},sqt=()=>{const e={autoSizePadding:{validate({autoSizePadding:n}){return pv("autoSizePadding",n,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:n}){return pv("cacheBlockSize",n,1)}},cacheOverflowSize:{validate({cacheOverflowSize:n}){return pv("cacheOverflowSize",n,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:n=>{const r=n.domLayout,i=["autoHeight","normal","print"];return r&&!i.includes(r)?`domLayout must be one of [${i.join()}], currently it's ${r}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,pinnedTopRowData:r,pinnedBottomRowData:i}){return n&&(r||i)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},isRowPinnable:{supportedRowModels:["clientSide"],validate({isRowPinnable:n,pinnedTopRowData:r,pinnedBottomRowData:i}){return n&&(r||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({isRowPinned:n,pinnedTopRowData:r,pinnedBottomRowData:i}){return n&&(r||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},icons:{validate:({icons:n})=>{if(n){if(n.smallDown)return Of(262);if(n.smallLeft)return Of(263);if(n.smallRight)return Of(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:n}){return pv("infiniteInitialRowCount",n,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},keepDetailRowsCount:{validate({keepDetailRowsCount:n}){return pv("keepDetailRowsCount",n,1)}},paginationPageSize:{validate({paginationPageSize:n}){return pv("paginationPageSize",n,1)}},paginationPageSizeSelector:{validate:n=>{const r=n.paginationPageSizeSelector;return typeof r=="boolean"||r==null||r.length?null:`'paginationPageSizeSelector' cannot be an empty array.
                    If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate({rowBuffer:n}){return pv("rowBuffer",n,0)}},rowClass:{validate:n=>typeof n.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{treeData:{required:[!1,void 0]},pagination:{required:[!1,void 0]}}},rowSelection:{validate({rowSelection:n}){return n&&typeof n=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':n&&typeof n!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":n&&n.mode!=="multiRow"&&n.mode!=="singleRow"?`Selection mode "${n.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:n=>{const r=n.rowStyle;return r&&typeof r=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:n}){return pv("serverSideInitialRowCount",n,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:n=>{const r=n.sortingOrder;if(Array.isArray(r)&&r.length>0){const i=r.filter(o=>!vW.includes(o));if(i.length>0)return`sortingOrder must be an array with elements from [${vW.map(O$).join()}], currently it includes [${i.map(O$).join()}]`}else if(!Array.isArray(r)||r.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${r}`;return null}},tooltipHideDelay:{validate:n=>n.tooltipHideDelay&&n.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:n=>n.tooltipShowDelay&&n.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:n=>{const r=n.rowModelType??"clientSide";switch(r){case"clientSide":{const{treeDataChildrenField:i,treeDataParentIdField:o,getDataPath:a,getRowId:s}=n;if(!i&&!o&&!a)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(i){if(a)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(o)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(o){if(!s)return"getRowId callback not provided, tree data with parent id cannot be built.";if(a)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const i=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${r} row model.`;return n.isServerSideGroup&&n.getServerSideGroupKey?null:i}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:n}){return pv("viewportRowModelBufferSize",n,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:n}){return pv("viewportRowModelPageSize",n,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:n,showOpenedGroup:r}){return n?.field&&r?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":n?.valueGetter&&r?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}}},t={};return Pnt.forEach(n=>{t[n]={expectedType:"boolean"}}),Int.forEach(n=>{t[n]={expectedType:"number"}}),eu(t,e),t},lqt=()=>({objectName:"gridOptions",allProperties:[...iqt(),...QWt().map(e=>Iet(e))],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:oqt(),validations:sqt()}),cqt=0,uqt=0,dqt=class extends dt{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.gridInstanceId=uqt++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new Wy,this.globalEventHandlerFactory=e=>(t,n)=>{if(!this.isAlive())return;const r=ZG.has(t);if(r&&!e||!r&&e)return;const i=(o,a)=>{const s=this.gridOptions[Iet(o)];typeof s=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>s(a))};if(this.gridReadyFired)i(t,n);else if(t==="gridReady"){i(t,n),this.gridReadyFired=!0;for(const o of this.queueEvents)i(o.eventName,o.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:n})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"gridOptionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??WWt[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return Ut(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(n=>e(this.addGridCommonParams(n)))}updateGridOptions({options:e,force:t,source:n="api"}){const r={id:cqt++,properties:[]},i=[],{gridOptions:o,validation:a}=this;for(const s of Object.keys(e)){const l=e[s];a?.warnOnInitialPropertyUpdate(n,s);const c=t||typeof l=="object"&&n==="api",u=o[s];if(c||u!==l){o[s]=l;const d={type:s,currentValue:l,previousValue:u,changeSet:r,source:n};i.push(d)}}this.validateGridOptions(this.gridOptions),r.properties=i.map(s=>s.type),i.forEach(s=>{Gx(this,`Updated property ${s.type} from`,s.previousValue," to ",s.currentValue),this.propEventSvc.dispatchEvent(s)})}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addGridCommonParams(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const n of Object.keys(e)){const r=e[n];if(r==null||r===!1)continue;let i=t[n];typeof i=="function"&&(i=i(e,this.gridOptions,this.beans)),i&&this.assertModuleRegistered(i,n)}}validateGridOptions(e){this.validateOptions(e,aqt),this.validation?.processGridOptions(e)}validateColDef(e,t,n){(n||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,VWt),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const n=Array.isArray(e)?e.some(r=>this.isModuleRegistered(r)):this.isModuleRegistered(e);return n||pi(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),n}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:mye(),rowModelType:this.get("rowModelType"),isUmd:r4t()}}isModuleRegistered(e){return hhe(e,this.gridId,this.get("rowModelType"))}};function Dnt(e){const t={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:t},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:t},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:t},e?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var pqt=Dnt(!0),hqt=Dnt(!1),fqt=class extends Gt{constructor(){super(...arguments),this.eFilter=at,this.eFilterButton=at,this.eSortIndicator=at,this.eMenu=at,this.eLabel=at,this.eText=at,this.eSortOrder=at,this.eSortAsc=at,this.eSortDesc=at,this.eSortMixed=at,this.eSortNone=at,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const n={...e};eu(n,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(n)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const n=e.template;return n?n?.trim?n.trim():n:t?pqt:hqt}init(e){this.params=e;const{sortSvc:t,touchSvc:n,rowNumbersSvc:r,userCompFactory:i}=this.beans,o=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!o),this.setTemplate(this.currentTemplate,o?[o]:void 0),n?.setupForHeader(this),this.setMenu(),this.setupSort(),r?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(i,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const n=_Lt(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderComponent=r,this.eText&&this.eText.appendChild(r.getGui())):this.destroyBean(r))}))}setDisplayName(e){const{displayName:t}=e,n=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||n===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=Df(t))}addInIcon(e,t,n){const r=er(e,this.beans,n);r&&t.appendChild(r)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){Ps(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:n}=this,r=Gu(e);this.addInIcon(r?"menu":"menuAlt",t,n.column),t.classList.toggle("ag-header-menu-icon",!r);const i=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=i,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(i)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:n}=this;t||this.toggleMenuAlwaysShow(!0),n.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:n,beans:r,eMenu:i,eFilterButton:o}=this,a=t.column,s=Gu(n);if(e&&!s){if(r.menuSvc?.isFilterMenuInHeaderEnabled(a))return t.showFilter(o??i??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(i??o??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:n}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:r,eSortOrder:i,eSortAsc:o,eSortDesc:a,eSortMixed:s,eSortNone:l}=this;r.attachCustomElements(i,o,a,s,l)}this.eSortIndicator.setupSort(n),this.currentSort&&e.setupHeader(this,n,this.eLabel)}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const n=()=>{const r=t.column.isFilterActive();Nn(e,r,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,n,"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0}configureFilter(e,t,n,r){if(!e)return Ps(t),!1;const i=this.params.column;return this.addInIcon(r,t,i),this.addManagedListeners(i,{filterChanged:n}),n(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:n}=this;return e?t??n??this.getGui():n??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent&&(this.destroyBean(this.innerHeaderComponent),this.innerHeaderComponent=void 0)}},gqt={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},mqt=class extends Gt{constructor(){super(gqt),this.agOpened=at,this.agClosed=at,this.agLabel=at,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:n}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),n?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&ut(89)}workOutInnerHeaderGroupComponent(e,t){const n=FLt(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderGroupComponent=r,this.agLabel.appendChild(r.getGui())):this.destroyBean(r))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:n},beans:r}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const i=l=>{if(rh(l))return;const c=!n.isExpanded();r.colGroupSvc.setColumnGroupOpened(n.getProvidedColumnGroup(),c,"uiColumnExpanded")};this.addTouchAndClickListeners(r,t,i),this.addTouchAndClickListeners(r,e,i);const o=l=>{Cl(l)};this.addManagedElementListeners(t,{dblclick:o}),this.addManagedElementListeners(e,{dblclick:o}),this.addManagedElementListeners(this.getGui(),{dblclick:i}),this.updateIconVisibility();const a=n.getProvidedColumnGroup(),s=this.updateIconVisibility.bind(this);this.addManagedListeners(a,{expandedChanged:s,expandableChanged:s})}addTouchAndClickListeners(e,t,n){e.touchSvc?.setupForHeaderGroupElement(this,t,n),this.addManagedElementListeners(t,{click:n})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:n}}=this;if(n.isExpandable()){const r=n.isExpanded();Nn(e,r),Nn(t,!r)}else Nn(e,!1),Nn(t,!1)}addInIcon(e,t){const n=er(e,this.beans,null);n&&t.appendChild(n)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:n}=this;Nn(t,!1),Nn(n,!1);return}}setupLabel(e){const{displayName:t,columnGroup:n}=e,r=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;Ut(t)&&!r&&(this.agLabel.textContent=Df(t)),this.toggleCss("ag-sticky-label",!n.getColGroupDef()?.suppressStickyLabel)}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},vqt={moduleName:"ColumnHeaderComp",version:Jn,userComponents:{agColumnHeader:fqt},icons:{menu:"menu",menuAlt:"menu-alt"}},bqt={moduleName:"ColumnGroupHeaderComp",version:Jn,userComponents:{agColumnGroupHeader:mqt},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},yqt=class extends dt{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,e===0&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){this.active===!1&&ut(92)}createTask(e,t,n,r){this.verify();let i=n;r&&this.batchFrameworkComps&&(i="f1");const o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[i],o),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((n,r)=>n.index!==r.index?t*(r.index-n.index):r.createOrder-n.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:n,f1:r,destroyTasks:i,beans:o}=this,{ctrlsSvc:a,frameworkOverrides:s}=o,l=t.list,c=n.list,u=r.list,d=Date.now();let p=0;const h=e<=0,g=a.getScrollFeature();for(;h||p<e;){if(!g.scrollGridIfNeeded()){let b;if(l.length)this.sortTaskList(t),b=l.pop().task;else if(c.length)this.sortTaskList(n),b=c.pop().task;else if(u.length)s.wrapOutgoing(()=>{for(;(h||p<e)&&!g.scrollGridIfNeeded();){if(u.length)this.sortTaskList(r),b=u.pop().task,b();else break;p=Date.now()-d}}),b=()=>{};else if(i.length)b=i.pop();else break;b()}p=Date.now()-d}l.length||c.length||u.length||i.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);sh(this.beans,e)}isQueueEmpty(){return!this.ticking}},Mqt={moduleName:"AnimationFrame",version:Jn,beans:[yqt]},Cqt=class extends dt{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){if(!xx())return;const t=(n,r,i)=>{const{rowCtrl:o,cellCtrl:a}=e.getControlsForEventTarget(i?.target??null);a?.column&&a.dispatchCellContextMenuEvent(i??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,i,o,a)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return(()=>{if(!xx()||ket("dblclick"))return!1;const r=Date.now(),i=r-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=r,i})()?(e.onCellDoubleClicked(t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:n,menuSvc:r}=this.beans;if(t.get("suppressTouch"))return;const{params:i,eMenu:o,eFilterButton:a}=e,s=new sy(e.getGui(),!0),l=e.shouldSuppressMenuHide(),c=l&&Ut(o)&&i.enableMenu,u=c?new sy(o,!0):s;if(i.enableMenu||r?.isHeaderContextMenuEnabled(i.column)){const d=c?"tap":"longTap",p=h=>i.showColumnMenuAfterMouseClick(h.touchStart);e.addManagedListeners(u,{[d]:p})}if(i.enableSorting){const d=p=>{const h=p.touchStart.target;l&&(o?.contains(h)||a?.contains(h))||n?.progressSort(i.column,!1,"uiColumnSorted")};e.addManagedListeners(s,{tap:d})}if(i.enableFilterButton&&a){const d=new sy(a,!0);e.addManagedListeners(d,{tap:()=>i.showFilter(a)}),e.addDestroyFunc(()=>d.destroy())}e.addDestroyFunc(()=>s.destroy()),c&&e.addDestroyFunc(()=>u.destroy())}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const n=new sy(t.eGridHeader,!0),r=i=>t.showColumnMenuAfterMouseClick(i.touchStart);e.addManagedListeners(n,{longTap:r}),e.addDestroyFunc(()=>n.destroy())}}setupForHeaderGroupElement(e,t,n){const r=new sy(t,!0);e.addManagedListeners(r,{tap:n}),e.addDestroyFunc(()=>r.destroy())}mockContextMenu(e,t,n){if(!xx())return;const r=new sy(t),i=o=>{gW(this.gos,o.touchEvent)&&n(void 0,o.touchStart,o.touchEvent)};e.addManagedListeners(r,{longTap:i}),e.addDestroyFunc(()=>r.destroy())}},xqt={moduleName:"Touch",version:Jn,beans:[Cqt]},wqt=class extends dt{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,n=!1){return n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const n=e===Qe.UP,r=e===Qe.DOWN,i=e===Qe.LEFT;let o,a;const{pageBounds:s,gos:l,visibleCols:c}=this.beans;if(n||r)a=n?s.getFirstRow():s.getLastRow(),o=t.column;else{const u=l.get("enableRtl");a=t.rowIndex,o=(i!==u?c.allCols:[...c.allCols].reverse()).find(p=>this.isCellGoodToFocusOn({rowIndex:a,rowPinned:null,column:p}))}return o?{rowIndex:a,rowPinned:null,column:o}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let n=t,r=!1;for(;!r;){switch(e){case Qe.UP:n=this.getCellAbove(n);break;case Qe.DOWN:n=this.getCellBelow(n);break;case Qe.RIGHT:n=this.gos.get("enableRtl")?this.getCellToLeft(n):this.getCellToRight(n);break;case Qe.LEFT:n=this.gos.get("enableRtl")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,ut(8,{key:e});break}n?r=this.isCellGoodToFocusOn(n):r=!0}return n}isCellGoodToFocusOn(e){const t=e.column;let n;const{pinnedRowModel:r,rowModel:i}=this.beans;switch(e.rowPinned){case"top":n=r?.getPinnedTopRow(e.rowIndex);break;case"bottom":n=r?.getPinnedBottomRow(e.rowIndex);break;default:n=i.getRow(e.rowIndex);break}return n?!this.isSuppressNavigable(t,n):!1}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const t=this.rowSpanSvc?.getCellEnd(e)??e,n=Gp(this.beans,t);return n?{rowIndex:n.rowIndex,column:e.column,rowPinned:n.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,n=Ax(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned});return n?{rowIndex:n.rowIndex,column:e.column,rowPinned:n.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:n}=this.beans,r=t.allCols;let i=e.rowIndex,o=e.rowPinned,a=t.getColAfter(e.column);if(!a){a=r[0];const s=Gp(this.beans,e);if(Yi(s)||!s.rowPinned&&!(n?.isRowInPage(s.rowIndex)??!0))return null;i=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:i,column:a,rowPinned:o}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:n,pagination:r}=t,i=n.allCols;let o=e.rowIndex,a=e.rowPinned,s=n.getColBefore(e.column);if(!s){s=zr(i);const l=Ax(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(Yi(l)||!l.rowPinned&&!(r?.isRowInPage(l.rowIndex)??!0))return null;o=l?l.rowIndex:null,a=l?l.rowPinned:null}return{rowIndex:o,column:s,rowPinned:a}}isSuppressNavigable(e,t){const{suppressNavigable:n}=e.colDef;if(typeof n=="boolean")return n;if(typeof n=="function"){const r=e.createColumnFunctionCallbackParams(t);return n(r)}return!1}};function Sqt(e){return e.focusSvc.getFocusedCell()}function Aqt(e){return e.focusSvc.clearFocusedCell()}function Oqt(e,t,n,r){e.focusSvc.setFocusedCell({rowIndex:t,column:n,rowPinned:r,forceBrowserFocus:!0})}function zqt(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function Tqt(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function Eqt(e,t,n=!1){const r=e.headerNavigation?.getHeaderPositionForColumn(t,n);r&&e.focusSvc.focusHeaderPosition({headerPosition:r})}var Rqt=class extends dt{constructor(){super(),this.beanName="navigation",this.onPageDown=bEe(this.onPageDown,100),this.onPageUp=bEe(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const n=e.key,r=e.altKey,i=e.ctrlKey||e.metaKey,o=!!this.beans.rangeSvc&&e.shiftKey,a=btt(this.gos,e);let s=!1;switch(n){case Qe.PAGE_HOME:case Qe.PAGE_END:!i&&!r&&(this.onHomeOrEndKey(n),s=!0);break;case Qe.LEFT:case Qe.RIGHT:case Qe.UP:case Qe.DOWN:if(!a)return!1;i&&!r&&!o&&(this.onCtrlUpDownLeftRight(n,a),s=!0);break;case Qe.PAGE_DOWN:case Qe.PAGE_UP:!i&&!r&&(s=this.handlePageUpDown(n,a,t));break}return s&&e.preventDefault(),s}handlePageUpDown(e,t,n){return n&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===Qe.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo(e){const{scrollIndex:t,scrollType:n,scrollColumn:r,focusIndex:i,focusColumn:o}=e,{scrollFeature:a}=this.gridBodyCon;Ut(r)&&!r.isPinned()&&a.ensureColumnVisible(r),Ut(t)&&a.ensureIndexVisible(t,n),e.isAsync||a.ensureIndexVisible(i);const{focusSvc:s,rangeSvc:l}=this.beans;s.setFocusedCell({rowIndex:i,column:o,rowPinned:null,forceBrowserFocus:!0}),l?.setRangeToCell({rowIndex:i,rowPinned:null,column:o})}onPageDown(e){const t=this.beans,n=mre(t),r=this.getViewportHeight(),{pageBounds:i,rowModel:o,rowAutoHeight:a}=t,s=i.getPixelOffset(),l=n.top+r,c=o.getRowIndexAtPixel(l+s);a?.active?this.navigateToNextPageWithAutoHeight(e,c):this.navigateToNextPage(e,c)}onPageUp(e){const t=this.beans,n=mre(t),{pageBounds:r,rowModel:i,rowAutoHeight:o}=t,a=r.getPixelOffset(),s=n.top,l=i.getRowIndexAtPixel(s+a);o?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,n=!1){const{pageBounds:r,rowModel:i}=this.beans,o=this.getViewportHeight(),a=r.getFirstRow(),s=r.getLastRow(),l=r.getPixelOffset(),c=i.getRow(e.rowIndex),u=n?c?.rowHeight-o-l:o-l,d=c?.rowTop+u;let p=i.getRowIndexAtPixel(d+l);if(p===e.rowIndex){const g=n?-1:1;t=p=e.rowIndex+g}let h;n?(h="bottom",p<a&&(p=a),t<a&&(t=a)):(h="top",p>s&&(p=s),t>s&&(t=s)),this.isRowTallerThanView(i.getRow(p))&&(t=p,h="top"),this.navigateTo({scrollIndex:t,scrollType:h,scrollColumn:null,focusIndex:p,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,n=!1){this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const r=this.getNextFocusIndexForAutoHeight(e,n);this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const n=t?-1:1,r=this.getViewportHeight(),{pageBounds:i,rowModel:o}=this.beans,a=i.getLastRow();let s=0,l=e.rowIndex;for(;l>=0&&l<=a;){const c=o.getRow(l);if(c){const u=c.rowHeight??0;if(s+u>r)break;s+=u}l+=n}return Math.max(0,Math.min(l,a))}getViewportHeight(){const e=this.beans,t=mre(e),n=this.beans.scrollVisibleSvc.getScrollbarWidth();let r=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(r-=n),r}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const n=this.beans.cellNavigation.getNextCellToFocus(e,t,!0),{rowIndex:r}=n,i=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:i,focusIndex:r,focusColumn:i})}onHomeOrEndKey(e){const t=e===Qe.PAGE_HOME,{visibleCols:n,pageBounds:r,rowModel:i}=this.beans,o=n.allCols,a=t?r.getFirstRow():r.getLastRow(),s=i.getRow(a);if(!s)return;const l=(t?o:[...o].reverse()).find(c=>!c.isSuppressNavigable(s));l&&this.navigateTo({scrollIndex:a,scrollType:null,scrollColumn:l,focusIndex:a,focusColumn:l})}onTabKeyDown(e,t){const n=t.shiftKey,r=this.tabToNextCellCommon(e,n,t),i=this.beans,{ctrlsSvc:o,pageBounds:a,focusSvc:s,gos:l}=i;if(r!==!1){r?t.preventDefault():r===null&&o.get("gridCtrl").allowFocusForNextCoreContainer(n);return}if(n){const{rowIndex:c,rowPinned:u}=e.getRowPosition();(u?c===0:c===a.getFirstRow())&&(l.get("headerHeight")===0||NO(i)?Eb(i,!0,!0):(t.preventDefault(),s.focusPreviousFromFirstCell(t)))}else e instanceof LN&&e.focusCell(!0),(!n&&s.focusOverlay(!1)||Eb(i,n))&&t.preventDefault()}tabToNextCell(e,t){const n=this.beans,{focusSvc:r,rowRenderer:i}=n,o=r.getFocusedCell();if(!o)return!1;let a=Qv(n,o);return!a&&(a=i.getRowByPosition(o),!a||!a.isFullWidth())?!1:!!this.tabToNextCellCommon(a,e,t)}tabToNextCellCommon(e,t,n){let r=e.editing;if(!r&&e instanceof LN){const a=e.rowCtrl;a&&(r=a.editing)}let i;return r?this.gos.get("editType")==="fullRow"?i=this.moveToNextEditingRow(e,t,n):i=this.moveToNextEditingCell(e,t,n):i=this.moveToNextCellNotEditing(e,t,n),i===null?i:i||!!this.beans.focusSvc.focusedHeader}moveToNextEditingCell(e,t,n=null){const r=e.cellPosition;e.eGui.focus(),e.stopEditing();const i=this.findNextCellToFocusOn(r,t,!0);return i===!1?null:i==null?!1:(this.beans.editSvc?.startEditing(i,null,!0,n),i.focusCell(!1),!0)}moveToNextEditingRow(e,t,n=null){const r=e.cellPosition,i=this.findNextCellToFocusOn(r,t,!0);if(i===!1)return null;if(i==null)return!1;const o=i.cellPosition,a=this.isCellEditable(r),s=this.isCellEditable(o),l=o&&r.rowIndex===o.rowIndex&&r.rowPinned===o.rowPinned,{editSvc:c,rowEditSvc:u}=this.beans;if(a&&c?.setFocusOutOnEditor(e),!l){const d=e.rowCtrl;c?.stopRowEditing(d);const p=i.rowCtrl;u?.startEditing(p,void 0,void 0,n)}return s?(c?.setFocusInOnEditor(i),i.focusCell()):i.focusCell(!0),!0}moveToNextCellNotEditing(e,t,n){const r=this.beans.visibleCols.allCols;let i;if(e instanceof N$){if(i={...e.getRowPosition(),column:t?r[0]:zr(r)},this.gos.get("embedFullWidthRows")&&n){const a=e.findFullWidthInfoForEvent(n);a&&(i.column=a.column)}}else i=e.getFocusedCellPosition();const o=this.findNextCellToFocusOn(i,t,!1);if(o===!1)return null;if(o instanceof LN)o.focusCell(!0);else if(o)return this.tryToFocusFullWidthRow(o,t);return Ut(o)}findNextCellToFocusOn(e,t,n){let r=e;const i=this.beans,{cellNavigation:o,gos:a,focusSvc:s,rowRenderer:l,rangeSvc:c}=i;for(;;){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=o.getNextTabbedCell(r,t);const u=a.getCallback("tabToNextCell");if(Ut(u)){const g=u({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:r||null});if(g===!0)r=e;else{if(g===!1)return!1;r={rowIndex:g.rowIndex,column:g.column,rowPinned:g.rowPinned}}}if(!r)return null;if(r.rowIndex<0){const h=Zv(i);return s.focusHeaderPosition({headerPosition:{headerRowIndex:h+r.rowIndex,column:r.column},fromCell:!0}),null}const d=a.get("editType")==="fullRow";if(n&&!d&&!this.isCellEditable(r))continue;this.ensureCellVisible(r);const p=Qv(i,r);if(!p){const h=l.getRowByPosition(r);if(!h||!h.isFullWidth()||n)continue;return{...h.getRowPosition(),column:r?.column}}if(!o.isSuppressNavigable(p.column,p.rowNode))return p.setFocusedCellPosition(r),c?.setRangeToCell(r),p}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:n,rowModel:r}=this.beans;return t==="top"?n?.getPinnedTopRow(e):t==="bottom"?n?.getPinnedBottomRow(e):r.getRow(e)}navigateToNextCell(e,t,n,r){let i=n,o=!1;const a=this.beans,{cellNavigation:s,focusSvc:l,gos:c}=a;for(;i&&(i===n||!this.isValidNavigateCell(i));)c.get("enableRtl")?t===Qe.LEFT&&(i=this.getLastCellOfColSpan(i)):t===Qe.RIGHT&&(i=this.getLastCellOfColSpan(i)),i=s.getNextCellToFocus(t,i),o=Yi(i);if(o&&e&&e.key===Qe.UP&&(i={rowIndex:-1,rowPinned:null,column:n.column}),r){const d=c.getCallback("navigateToNextCell");if(Ut(d)){const h=d({key:t,previousCellPosition:n,nextCellPosition:i||null,event:e});Ut(h)?i={rowPinned:h.rowPinned,rowIndex:h.rowIndex,column:h.column}:i=null}}if(!i)return;if(i.rowIndex<0){const d=Zv(a);l.focusHeaderPosition({headerPosition:{headerRowIndex:d+i.rowIndex,column:n.column},event:e||void 0,fromCell:!0});return}const u=this.getNormalisedPosition(i);u?this.focusPosition(u):this.tryToFocusFullWidthRow(i)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const n=Qv(this.beans,e);return n?(e=n.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:n,rowRenderer:r,focusSvc:i,eventSvc:o}=this.beans,a=n.allCols,s=r.getRowByPosition(e);if(!s||!s.isFullWidth())return!1;const l=i.getFocusedCell(),c={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?zr(a):a[0])};this.focusPosition(c);const u=t??(l!=null&&t0(c,l));return o.dispatchEvent({type:"fullWidthRowFocused",rowIndex:c.rowIndex,rowPinned:c.rowPinned,column:c.column,isFullWidthCell:!0,fromBelow:u}),!0}focusPosition(e){const{focusSvc:t,rangeSvc:n}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),n?.setRangeToCell(e)}isValidNavigateCell(e){return!!lp(this.beans,e)}getLastCellOfColSpan(e){const t=Qv(this.beans,e);if(!t)return e;const n=t.getColSpanningList();return n.length===1?e:{rowIndex:e.rowIndex,column:zr(n),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=zK(this.gos),n=this.beans.rowModel.getRow(e.rowIndex),r=t&&n?.sticky,{scrollFeature:i}=this.gridBodyCon;!r&&Yi(e.rowPinned)&&i.ensureIndexVisible(e.rowIndex),e.column.isPinned()||i.ensureColumnVisible(e.column)}};function mre(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var FK={moduleName:"KeyboardNavigation",version:Jn,beans:[Rqt,wqt,DWt],apiFunctions:{getFocusedCell:Sqt,clearFocusedCell:Aqt,setFocusedCell:Oqt,setFocusedHeader:Eqt,tabToNextCell:zqt,tabToPreviousCell:Tqt}},Iqt=class extends dt{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:n}=this.beans;t?t.calculatePages():e.calculateBounds(0,n.getRowCount()-1)}},Pqt=class extends dt{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return!e||!t?0:Math.max(t.rowTop+t.rowHeight-e.rowTop,0)}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this,n=e?.rowTop??0,r=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:n,pageLastPixel:r}}calculateBounds(e,t){const{rowModel:n}=this.beans,r=n.getRowBounds(e);r&&(r.rowIndex=e),this.topRowBounds=r;const i=n.getRowBounds(t);i&&(i.rowIndex=t),this.bottomRowBounds=i,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},Dqt=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}",kqt=class extends dt{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const n of this.elements)n&&(Nn(n,t),am(n,e))}},Lqt=class extends dt{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl});const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:n}=this.beans,r=Uu(e,"print"),i=r?0:t.getColsLeftWidth(),o=r?0:t.getDisplayedColumnsRightWidth();i!=this.leftWidth&&(this.leftWidth=i,n.dispatchEvent({type:"leftPinnedWidthChanged"})),o!=this.rightWidth&&(this.rightWidth=o,n.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=JI(e);if(t<=50)return;const n=this.getPinnedColumnsOverflowingViewport(t-50),r=this.gos.getCallback("processUnpinnedColumns"),{columns:i,hasLockedPinned:o}=n;let a=i;!a.length&&!o||(r&&(a=r({columns:a,viewportWidth:t})),!(!a||!a.length)&&(a=a.filter(s=>!p0(s)),this.setColsPinned(a,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new kqt(e,t)}setColsPinned(e,t,n){const{colModel:r,colAnimation:i,visibleCols:o,gos:a}=this.beans;if(!r.cols||!e?.length)return;if(Uu(a,"print")){ut(37);return}i?.start();let s;t===!0||t==="left"?s="left":t==="right"?s="right":s=null;const l=[];e.forEach(c=>{if(!c)return;const u=r.getCol(c);u&&u.getPinned()!==s&&(this.setColPinned(u,s),l.push(u))}),l.length&&(o.refresh(n),Ket(this.eventSvc,l,n)),i?.finish()}initCol(e){const{pinned:t,initialPinned:n}=e.colDef;t!==void 0?this.setColPinned(e,t):this.setColPinned(e,n)}setColPinned(e,t){t===!0||t==="left"?e.pinned="left":t==="right"?e.pinned="right":e.pinned=null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(e.pinned==null)return;const n=e.pinned==="left",r=e.pinned==="right";e.hidden=!0;const i=()=>{const o=n?this.leftWidth:this.rightWidth;if(o==null)return;const a=o==0,s=e.hidden!==a,l=this.gos.get("enableRtl"),c=t.getScrollbarWidth(),d=t.verticalScrollShowing&&(l&&n||!l&&r)?o+c:o;e.comp.setPinnedContainerWidth(`${d}px`),e.comp.setDisplayed(!a),s&&(e.hidden=a,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:i,rightPinnedWidthChanged:i,scrollVisibilityChanged:i,scrollbarWidthChanged:i})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:r,rightWidth:i}=this,o=JI(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(r+i+e>o)if(o>r+i)e=o-r-i;else return 0}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,n=this.leftWidth??0,r=t+n;let i=!1;if(r<e)return{columns:[],hasLockedPinned:i};const{visibleCols:o}=this.beans,a=[...o.leftCols],s=[...o.rightCols];let l=0,c=0;const u=0,d=[];let p=r-u-e;for(;(c<a.length||l<s.length)&&p>0;){if(l<s.length){const h=s[l++];if(h.colDef.lockPinned){i=!0;continue}p-=h.getActualWidth(),d.push(h)}if(c<a.length&&p>0){const h=a[c++];if(h.colDef.lockPinned){i=!0;continue}p-=h.getActualWidth(),d.push(h)}}return{columns:d,hasLockedPinned:i}}},_qt={moduleName:"PinnedColumn",version:Jn,beans:[Lqt],css:[Dqt]},Nqt=class extends dt{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=Ml(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=bl(e),n=this.descriptionContainer=t.createElement("div");n.classList.add("ag-aria-description-container"),XJe(n,"polite"),dkt(n,"additions text"),ukt(n,!0),e.eGridDiv.appendChild(n)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{if(this.isAlive()&&this.descriptionContainer){let t=e;this.lastAnnouncement===t&&(t=`${t}.`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}},50)}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(Xi(e),e.parentElement?.removeChild(e)),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},Fqt={moduleName:"Aria",version:Jn,beans:[Nqt]};function Wqt(e){e.overlays?.showLoadingOverlay()}function qqt(e){e.overlays?.showNoRowsOverlay()}function Bqt(e){e.overlays?.hideOverlay()}var jqt=".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}",Hqt={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},knt=class extends Gt{constructor(){super(Hqt),this.eOverlayWrapper=at,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeCssClass=null,this.elToFocusAfter=null,this.registerCSS(jqt)}handleKeyDown(e){if(e.key!==Qe.TAB||e.defaultPrevented||rh(e))return;const t=this.beans;if(Cd(t,this.eOverlayWrapper,!1,e.shiftKey))return;let r=!1;e.shiftKey?r=t.focusSvc.focusGridView({column:zr(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):r=Eb(t,!1),r&&e.preventDefault()}updateLayoutClasses(e,t){const n=this.eOverlayWrapper.classList,{AUTO_HEIGHT:r,NORMAL:i,PRINT:o}=Vg;n.toggle(r,t.autoHeight),n.toggle(i,t.normal),n.toggle(o,t.print)}postConstruct(){this.createManagedBean(new Sye(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper.classList;this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,n,r){if(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,!!e){if(this.setDisplayed(!0,{skipAriaHidden:!0}),n&&this.isGridFocused()){const i=$i(this.beans);i&&!$x(this.beans)&&(this.elToFocusAfter=i)}e.then(i=>{if(this.activePromise!==e){this.activeOverlay!==i&&(this.destroyBean(i),i=null);return}if(this.activePromise=null,!!i){if(this.activeOverlay!==i&&(this.eOverlayWrapper.appendChild(i.getGui()),this.activeOverlay=i,r)){const o=i;this.updateListenerDestroyFunc=this.addManagedPropertyListener(r,({currentValue:a})=>{o.refresh?.(Gn(this.gos,{...a??{}}))})}n&&this.isGridFocused()&&zu(this.eOverlayWrapper)}})}}updateOverlayWrapperPaddingTop(e){this.eOverlayWrapper.style.setProperty("padding-top",`${e}px`)}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e)return;let t=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,t&&!this.isGridFocused()&&(t=null);const n=this.updateListenerDestroyFunc;n&&(n(),this.updateListenerDestroyFunc=null),this.destroyBean(e),Xi(this.eOverlayWrapper),t?.focus?.({preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=$i(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setOverlayWrapperComp(void 0),super.destroy()}},Vqt={selector:"AG-OVERLAY-WRAPPER",component:knt},Gqt=class extends dt{constructor(){super(...arguments),this.beanName="overlays",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}postConstruct(){this.isClientSide=sa(this.gos),this.isServerSide=!this.isClientSide&&Au(this.gos);const e=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:e,rowDataUpdated:e,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",e)}setOverlayWrapperComp(e){this.eWrapper=e,this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.eWrapper}isExclusive(){return this.state===1&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos,t=e.get("loading");!t&&(t!==void 0||e.get("suppressLoadingOverlay"))||this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;e.get("loading")||e.get("suppressNoRowsOverlay")||this.doShowNoRowsOverlay()}hideOverlay(){if(this.showInitialOverlay=!1,this.gos.get("loading")){ut(99);return}this.doHideOverlay()}getOverlayWrapperSelector(){return Vqt}getOverlayWrapperCompClass(){return knt}updateOverlayVisibility(){if(!this.eWrapper){this.state=0;return}const{state:e,isClientSide:t,isServerSide:n,beans:{gos:r,colModel:i,rowModel:o}}=this;let a=this.gos.get("loading");a!==void 0&&(this.showInitialOverlay=!1),this.showInitialOverlay&&a===void 0&&!r.get("suppressLoadingOverlay")&&(a=!r.get("columnDefs")||!i.ready||!r.get("rowData")&&t),a?e!==1&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,t&&o.isEmpty()&&!r.get("suppressNoRowsOverlay")?e!==2&&this.doShowNoRowsOverlay():(e===1||!n&&e!==0)&&this.doHideOverlay())}doShowLoadingOverlay(){this.eWrapper&&(this.state=1,this.showOverlay(GLt(this.beans.userCompFactory,Gn(this.gos,{})),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.eWrapper&&(this.state=2,this.showOverlay($Lt(this.beans.userCompFactory,Gn(this.gos,{})),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.eWrapper&&(this.state=0,this.eWrapper.hideOverlay(),this.updateExclusive())}showOverlay(e,t,n){const r=e?.newAgStackInstance()??null;this.eWrapper?.showOverlay(r,t,this.isExclusive(),n),this.refreshWrapperPadding()}updateExclusive(){const e=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==e&&this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}refreshWrapperPadding(){const e=this.eWrapper;if(!e)return;let t=0;this.state===2?t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0:this.wrapperPadding!==0&&(t=0),this.wrapperPadding!==t&&(this.wrapperPadding=t,e.updateOverlayWrapperPaddingTop(t))}},$qt={moduleName:"Overlay",version:Jn,userComponents:{agLoadingOverlay:A_t,agNoRowsOverlay:z_t},apiFunctions:{showLoadingOverlay:Wqt,showNoRowsOverlay:qqt,hideOverlay:Bqt},beans:[Gqt]},Uqt=class extends dt{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=gkt(),Gx(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;Gx(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight(),n=e/t;return this.maxScrollY*n}},Xqt=400,Yqt=class extends dt{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{this.getAllCellCtrls().forEach(o=>o.onCellSelectionChanged())},t=()=>{this.getAllCellCtrls().forEach(o=>o.updateRangeBordersIfRangeCount())},n=()=>{this.eventSvc.addEventListener("cellSelectionChanged",e),this.eventSvc.addEventListener("columnMoved",t),this.eventSvc.addEventListener("columnPinned",t),this.eventSvc.addEventListener("columnVisible",t)},r=()=>{this.eventSvc.removeEventListener("cellSelectionChanged",e),this.eventSvc.removeEventListener("columnMoved",t),this.eventSvc.removeEventListener("columnPinned",t),this.eventSvc.removeEventListener("columnVisible",t)};this.addDestroyFunc(()=>r()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{r1(this.gos)?n():r()}),r1(this.gos)&&n()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",r=>this.onSuppressCellFocusChanged(r.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:r,previousValue:i})=>{(!i&&r||i&&!r)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:n}=this.beans;if(n&&this.addManagedPropertyListener("showOpenedGroup",()=>{const r=n.getShowRowGroupCols();r.length&&this.refreshCells({columns:r,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const r=this.gridBodyCtrl;r.setStickyTopHeight(0),r.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=Uu(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new Kqt(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),n=this.cachedRowCtrls?.getEntries()??[];t.length>0||n.length>0?this.allRowCtrls=[...e,...t,...n]:this.allRowCtrls=e}isCellBeingRendered(e,t){const n=this.rowCtrlsByRowIndex[e];return!t||!n?!!n:n.isFullWidth()?!0:!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!n.getCellCtrl(t)||!n.isRowRendered()}updateCellFocus(e){this.getAllCellCtrls().forEach(t=>t.onCellFocused(e)),this.getFullWidthRowCtrls().forEach(t=>t.onFullWidthRowFocused(e))}onCellFocusChanged(e){if(e&&e.rowIndex!=null&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){this.getAllCellCtrls().forEach(t=>t.onSuppressCellFocusChanged(e)),this.getFullWidthRowCtrls().forEach(t=>t.onSuppressCellFocusChanged(e))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;t&&this.getAllCellCtrls().forEach(n=>t.onFlashCells(n,e))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onColumnHover())},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onDisplayedColumnsChanged())},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach(e=>e.onLeftChanged())}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach(e=>e()),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.colModel.getCols().forEach(t=>{const n=l=>{this.getAllCellCtrls().forEach(c=>{c.column===t&&l(c)})},r=()=>{n(l=>l.onLeftChanged())},i=()=>{n(l=>l.onWidthChanged())},o=()=>{n(l=>l.onFirstRightPinnedChanged())},a=()=>{n(l=>l.onLastLeftPinnedChanged())},s=()=>{n(l=>l.onColDefChanged())};t.__addEventListener("leftChanged",r),t.__addEventListener("widthChanged",i),t.__addEventListener("firstRightPinnedChanged",o),t.__addEventListener("lastLeftPinnedChanged",a),t.__addEventListener("colDefChanged",s),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",r),t.__removeEventListener("widthChanged",i),t.__removeEventListener("firstRightPinnedChanged",o),t.__removeEventListener("lastLeftPinnedChanged",a),t.__removeEventListener("colDefChanged",s)})})}onDomLayoutChanged(){const e=Uu(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];return this.getAllRowCtrls().forEach(n=>{const r=n.getCellCtrl(e,!0)?.eGui;r&&t.push(r)}),t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,n){const{pinnedRowModel:r,beans:i,printLayout:o}=this,a=Object.fromEntries(e.map(l=>[l.rowNode.id,l]));r?.forEachPinnedRow(t,(l,c)=>{const u=e[c];u&&r.getPinnedRowById(u.rowNode.id,t)===void 0&&(u.destroyFirstPass(),u.destroySecondPass()),l.id in a&&n?(e[c]=a[l.id],delete a[l.id]):e[c]=new N$(l,i,!1,!1,o)});const s=(t==="top"?r?.getPinnedTopRowCount():r?.getPinnedBottomRowCount())??0;e.length=s}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else if(this.cachedRowCtrls?.has(e)){this.cachedRowCtrls.removeRow(e);return}else{const n=r=>{const i=r[e.rowIndex];i&&i.rowNode===e&&(i.destroyFirstPass(),i.destroySecondPass(),r[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":n(this.topRowCtrls);break;case"bottom":n(this.bottomRowCtrls);break;default:n(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){if(e!=null){e?.forEach(n=>this.redrawRow(n,!0)),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const n=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&oI(this.gos),i=n?this.getRowsToRecycle():null;n||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:o,gos:a}=this;if(o){o.checkStickyRows();const s=o.extraTopHeight+o.extraBottomHeight;s&&this.updateContainerHeights(s)}this.recycleRows(i,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(a.get("enableRowPinning")?n:void 0),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,n=this.gos.get("suppressScrollOnNewData");t&&!n&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}let n=this.pageBounds.getCurrentPageHeight();n===0&&(n=1),t.setModelHeight(n+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(Of(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,n=this.findPositionToFocus(e);if(!n){t.focusHeaderPosition({headerPosition:{headerRowIndex:Zv(this.beans)-1,column:e.column}});return}if(e.rowIndex!==n.rowIndex||e.rowPinned!=n.rowPinned){t.setFocusedCell({...n,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(Gn(this.gos,{...n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:n}=this.beans;let r=e;for(r.rowPinned==null&&t&&n&&!t.isRowInPage(r.rowIndex)&&(r={rowPinned:null,rowIndex:n.getFirstRow()});r;){if(r.rowPinned==null&&n)if(r.rowIndex<n.getFirstRow()){if(r=Ax(this.beans,{rowPinned:null,rowIndex:0}),!r)return null}else r.rowIndex>n.getLastRow()&&(r={rowPinned:null,rowIndex:n.getLastRow()});const i=this.getRowByPosition(r);if(i?.isAlive())return{...i.getRowPosition(),column:e.column};r=Ax(this.beans,r)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),n=t.length;for(let r=0;r<n;r++){const i=t[r].getAllCellCtrls(),o=i.length;for(let a=0;a<o;a++)e.push(i[a])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),n=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...n,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,n){const r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)}refreshCells(e={}){const t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};for(const n of this.getCellCtrls(e.rowNodes,e.columns))n.refreshOrDestroyCell(t);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=!1;for(const n of this.getRowCtrls(e)){if(!n.isFullWidth())continue;n.refreshFullWidth()||(t=!0,this.redrawRow(n.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=whe(e),n=this.getAllRowCtrls();return!e||!t?n:n.filter(r=>{const i=r.rowNode;return She(i,t)})}getCellCtrls(e,t){let n;Ut(t)&&(n={},t.forEach(i=>{const o=this.colModel.getCol(i);Ut(o)&&(n[o.getId()]=!0)}));const r=[];return this.getRowCtrls(e).forEach(i=>{i.getAllCellCtrls().forEach(o=>{const a=o.column.getId();n&&!n[a]||r.push(o)})}),r}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const n of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[n].rowNode.id==null&&e.push(n);this.removeRowCtrls(e);const t={};for(const n of Object.values(this.rowCtrlsByRowIndex)){const r=n.rowNode;t[r.id]=n}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){e.forEach(n=>{const r=this.rowCtrlsByRowIndex[n];r&&(r.destroyFirstPass(t),r.destroySecondPass()),delete this.rowCtrlsByRowIndex[n]})}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:n}=this.beans,{afterScroll:r}=e;let i;const o=this.stickyRowFeature;o&&(i=t?.getFocusCellToUseAfterRefresh()||void 0);const a=this.firstRenderedRow,s=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(o){l=o.checkStickyRows();const u=o.extraTopHeight+o.extraBottomHeight;u&&this.updateContainerHeights(u)}const c=this.firstRenderedRow!==a||this.lastRenderedRow!==s;if(!(r&&!l&&!c)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,r),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(r&&!l),i!=null)){const u=t?.getFocusCellToUseAfterRefresh();i!=null&&u==null&&(n?.flushAllFrames(),this.restoreFocusedCell(i))}}removeRowCompsNotToDraw(e,t){const n={};e.forEach(o=>n[o]=!0);const i=Object.keys(this.rowCtrlsByRowIndex).filter(o=>!n[o]);this.removeRowCtrls(i,t)}calculateIndexesToDraw(e){const t=[];for(let a=this.firstRenderedRow;a<=this.lastRenderedRow;a++)t.push(a);const n=this.beans.pagination,r=this.beans.focusSvc?.getFocusedCell()?.rowIndex;r!=null&&(r<this.firstRenderedRow||r>this.lastRenderedRow)&&(!n||n.isRowInPage(r))&&r<this.rowModel.getRowCount()&&t.push(r);const i=a=>{const s=a.rowNode.rowIndex;s==null||s===r||(s<this.firstRenderedRow||s>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(a)&&t.push(s)};for(const a of Object.values(this.rowCtrlsByRowIndex))i(a);if(e)for(const a of Object.values(e))i(a);t.sort((a,s)=>a-s);const o=[];for(let a=0;a<t.length;a++){const s=t[a],l=this.rowModel.getRow(s);l&&!l.sticky&&o.push(s)}return o}recycleRows(e,t=!1,n=!1){const r=this.calculateIndexesToDraw(e);if((this.printLayout||n)&&(t=!1),this.removeRowCompsNotToDraw(r,!t),r.forEach(i=>{this.createOrUpdateRowCtrl(i,e,t,n)}),e){const{animationFrameSvc:i}=this.beans;i?.active&&n&&!this.printLayout?i.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),n=e.isPinningRight();(this.pinningLeft!==t||n!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=n,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];this.getFullWidthRowCtrls().forEach(t=>{const n=t.rowNode.rowIndex;e.push(n.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=whe(e);return this.getAllRowCtrls().filter(n=>{if(!n.isFullWidth())return!1;const r=n.rowNode;return!(t!=null&&!She(r,t))})}createOrUpdateRowCtrl(e,t,n,r){let i,o=this.rowCtrlsByRowIndex[e];if(o||(i=this.rowModel.getRow(e),Ut(i)&&Ut(t)&&t[i.id]&&i.alreadyRendered&&(o=t[i.id],t[i.id]=null)),!o)if(i||(i=this.rowModel.getRow(e)),Ut(i))o=this.createRowCon(i,n,r);else return;return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=o,o}destroyRowCtrls(e,t){const n=[];if(e){for(const r of Object.values(e))if(r){if(this.cachedRowCtrls&&r.isCacheable()){this.cachedRowCtrls.addRow(r);continue}if(r.destroyFirstPass(!t),t){const i=r.instanceId;this.zombieRowCtrls[i]=r,n.push(()=>{r.destroySecondPass(),delete this.zombieRowCtrls[i]})}else r.destroySecondPass()}}t&&(n.push(()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}),window.setTimeout(()=>n.forEach(r=>r()),Xqt))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=sp(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:n}=this;e.updateOffset();let r,i;if(!n.isRowsToRender())r=0,i=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),r=t.getFirstRow(),i=t.getLastRow();else{const u=this.getRowBufferInPixels(),d=this.ctrlsSvc.getScrollFeature(),p=this.gos.get("suppressRowVirtualisation");let h=!1,g,m;do{const x=t.getPixelOffset(),{pageFirstPixel:w,pageLastPixel:S}=t.getCurrentPagePixelRange(),A=e.divStretchOffset,z=d.getVScrollPosition(),O=z.top,T=z.bottom;p?(g=w+A,m=S+A):(g=Math.max(O+x-u,w)+A,m=Math.min(T+x+u,S)+A),this.firstVisibleVPixel=Math.max(O+x,w)+A,this.lastVisibleVPixel=Math.min(T+x,S)+A,h=this.ensureAllRowsInRangeHaveHeightsCalculated(g,m)}while(h);let b=n.getRowIndexAtPixel(g),y=n.getRowIndexAtPixel(m);const M=t.getFirstRow(),C=t.getLastRow();b<M&&(b=M),y>C&&(y=C),r=b,i=y}const o=Uu(this.gos,"normal"),a=this.gos.get("suppressMaxRenderedRowRestriction"),s=Math.max(this.getRowBuffer(),500);o&&!a&&i-r>s&&(i=r+s);const l=r!==this.firstRenderedRow,c=i!==this.lastRenderedRow;(l||c)&&(this.firstRenderedRow=r,this.lastRenderedRow=i,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:r,lastRow:i}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,sh(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const n=this.pinnedRowModel?.ensureRowHeightsValid(),r=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:i,rowModel:o}=this,a=o.ensureRowHeightsValid(e,t,i.getFirstRow(),i.getLastRow());return(a||r)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),r||a||n?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const r=e.rowNode,i=this.focusSvc.isRowFocused(r.rowIndex,r.rowPinned),o=e.editing,a=r.detail;return i||o||a?!!this.isRowPresent(r):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,n){const r=this.cachedRowCtrls?.getRow(e)??null;if(r)return r;const i=n&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new N$(e,this.beans,t,i,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(r=>r.rowNode),t=this.getStickyTopRowCtrls().map(r=>r.rowNode),n=this.getStickyBottomRowCtrls().map(r=>r.rowNode);return[...t,...e,...n]}getRowByPosition(e){let t;const{rowIndex:n}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[n];break;case"bottom":t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find(r=>r.rowNode.rowIndex===n)||null,t||(t=this.getStickyBottomRowCtrls().find(r=>r.rowNode.rowIndex===n)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const r=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!r}},Kqt=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(e==null||e.id==null)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode!=e?null:t):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){const t=e.id,n=this.entriesMap[t];delete this.entriesMap[t],Ou(this.entriesList,n)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],Ou(this.entriesList,e)}getEntries(){return this.entriesList}};function whe(e){if(!e)return;const t={top:{},bottom:{},normal:{}};return e.forEach(n=>{const r=n.id;switch(n.rowPinned){case"top":t.top[r]=n;break;case"bottom":t.bottom[r]=n;break;default:t.normal[r]=n;break}}),t}function She(e,t){const n=e.id;switch(e.rowPinned){case"top":return t.top[n]!=null;case"bottom":return t.bottom[n]!=null;default:return t.normal[n]!=null}}var Qqt=class extends dt{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){const{gos:e}=this;this.isAccentedSort=e.get("accentedSort"),this.primaryColumnsSortGroups=Yg(e),this.addManagedPropertyListener("accentedSort",t=>this.isAccentedSort=t.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=Yg(e))}doFullSort(e,t){const n=e.map((r,i)=>({currentPos:i,rowNode:r}));return n.sort(this.compareRowNodes.bind(this,t)),n.map(r=>r.rowNode)}compareRowNodes(e,t,n){const r=t.rowNode,i=n.rowNode;for(let o=0,a=e.length;o<a;o++){const s=e[o],l=s.sort==="desc",c=this.getValue(r,s.column),u=this.getValue(i,s.column);let d;const p=this.getComparator(s,r);if(p?d=p(c,u,r,i,l):d=YG(c,u,this.isAccentedSort),!isNaN(d)&&d!==0)return s.sort==="asc"?d:d*-1}return t.currentPos-n.currentPos}getComparator(e,t){const n=e.column,r=n.getColDef().comparator;if(r!=null)return r;if(!n.getColDef().showRowGroup)return;const i=!t.group&&n.getColDef().field;if(!i)return;const o=this.beans.colModel.getColDefCol(i);if(o)return o.getColDef().comparator}getValue(e,t){const{valueSvc:n,colModel:r,showRowGroupCols:i,gos:o}=this.beans;if(!this.primaryColumnsSortGroups)return n.getValue(t,e,!1);if(e.rowGroupColumn===t){if(aye(o,r.isPivotActive())){const c=e.allLeafChildren?.[0];return c?n.getValue(t,c,!1):void 0}const l=i?.getShowRowGroupCol(t.getId());return l?e.groupData?.[l.getId()]:void 0}if(!(e.group&&t.getColDef().showRowGroup))return n.getValue(t,e,!1)}};function Zqt(e){e.sortSvc?.onSortChanged("api")}var Hye={moduleName:"Sort",version:Jn,beans:[jWt,Qqt],apiFunctions:{onSortChanged:Zqt},userComponents:{agSortIndicator:jye},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"}},Jqt=class extends dt{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){const{colModel:t,rowModel:n}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),n.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),Gx(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,Sx(e.source))}}};function e6t(e){e.valueCache?.expire()}function t6t(e,t){const{colKey:n,rowNode:r,useFormatter:i}=t,o=e.colModel.getColDefCol(n)??e.colModel.getCol(n);if(Yi(o))return null;const a=e.valueSvc.getValueForDisplay(o,r).value;return i?e.valueSvc.formatValue(o,r,a)??Df(a):a}var n6t="paste",r6t=class extends dt{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){const{gos:e,rowModel:t}=this.beans;sa(e)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){const{gos:t,rowRenderer:n}=this.beans;if(e.source===n6t||t.get("suppressChangeDetection"))return;const r=e.node,i=[r],o=this.clientSideRowModel,a=o?.rootNode;if(a&&!r.isRowPinned()){const s=t.get("aggregateOnlyChangedColumns"),l=new Cz(s,a);l.addParentNode(r.parent,[e.column]),o.doAggregate(l),l.forEachChangedNodeDepthFirst(c=>{i.push(c),c.sibling&&i.push(c.sibling)})}n.refreshCells({rowNodes:i})}},i6t=class extends dt{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);pi(15,{expression:e})}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(n){return pi(16,{expression:e,params:t,e:n}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const n=this.createFunctionBody(e),r=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",n);return t[e]=r,r}createFunctionBody(e){return e.indexOf("return")>=0?e:"return "+e+";"}},o6t=class extends dt{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){const e=this.gos;this.active=e.get("valueCache"),this.neverExpires=e.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){if(this.active){const r=this.cacheVersion;e.__cacheVersion!==r&&(e.__cacheVersion=r,e.__cacheData={}),e.__cacheData[t]=n}}getValue(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]}},a6t={moduleName:"ValueCache",version:Jn,beans:[o6t],apiFunctions:{expireValueCache:e6t}},s6t={moduleName:"Expression",version:Jn,beans:[i6t]},l6t={moduleName:"ChangeDetection",version:Jn,beans:[r6t]},c6t={moduleName:"CellApi",version:Jn,apiFunctions:{getCellValue:t6t}},u6t=class extends dt{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=Au(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;const e=t=>this.callColumnCellValueChangedHandler(t);this.eventSvc.addEventListener("cellValueChanged",e,!0),this.addDestroyFunc(()=>this.eventSvc.removeEventListener("cellValueChanged",e,!0)),this.addManagedPropertyListener("treeData",t=>this.isTreeData=t.currentValue)}getValueForDisplay(e,t,n=!1,r=!1){const{showRowGroupColValueSvc:i}=this.beans,o=!e&&t.group,a=e?.colDef.showRowGroup,s=!this.isTreeData||t.footer;if(i&&s&&(o||a)){const g=i.getGroupValue(t,e);if(g==null)return{value:null,valueFormatted:null};if(!n)return{value:g.value,valueFormatted:null};const m=i.formatAndPrefixGroupColValue(g,e,r);return{value:g.value,valueFormatted:m}}if(!e)return{value:t.key,valueFormatted:null};const l=t.leafGroup&&this.colModel.isPivotMode(),c=t.group&&t.expanded&&!t.footer&&!l,u=this.gos.get("groupSuppressBlankHeader")||!t.sibling,d=c&&!u,p=this.getValue(e,t,d),h=n&&!(r&&e.colDef.useValueFormatterForExport===!1);return{value:p,valueFormatted:h?this.formatValue(e,t,p):null}}getValue(e,t,n=!1){if(this.initialised||this.init(),!t)return;const r=e.getColDef(),i=r.field,o=e.getColId(),a=t.data;let s;const l=r.showRowGroup;if(typeof l=="string"&&(this.beans.rowGroupColsSvc?.getColumnIndex(l)??-1)>t.level)return null;const c=typeof l!="string"||!t.group,u=t.groupData&&o in t.groupData,d=!n&&t.aggData&&t.aggData[o]!==void 0,p=this.isSsrm&&n&&!!e.getColDef().aggFunc,h=this.isSsrm&&t.footer&&t.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===t.field);if(this.isTreeData&&d)s=t.aggData[o];else if(this.isTreeData&&r.valueGetter)s=this.executeValueGetter(r.valueGetter,a,e,t);else if(this.isTreeData&&i&&a)s=kN(a,i,e.isFieldContainsDots());else if(u)s=t.groupData[o];else if(d)s=t.aggData[o];else if(r.valueGetter){if(!c)return s;s=this.executeValueGetter(r.valueGetter,a,e,t)}else if(h)s=kN(a,t.field,e.isFieldContainsDots());else if(i&&a&&!p){if(!c)return s;s=kN(a,i,e.isFieldContainsDots())}if(this.cellExpressions&&typeof s=="string"&&s.indexOf("=")===0){const g=s.substring(1);s=this.executeValueGetter(g,a,e,t)}return s}parseValue(e,t,n,r){const i=e.getColDef(),o=i.valueParser;if(Ut(o)){const a=Gn(this.gos,{node:t,data:t?.data,oldValue:r,newValue:n,colDef:i,column:e});return typeof o=="function"?o(a):this.expressionSvc?.evaluate(o,a)}return n}getDeleteValue(e,t){return Ut(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay(e,t).value)??null:null}formatValue(e,t,n,r,i=!0){let o=null,a;const s=e.getColDef();if(r?a=r:i&&(a=s.valueFormatter),a){const l=Gn(this.gos,{value:n,node:t,data:t?t.data:null,colDef:s,column:e});typeof a=="function"?o=a(l):o=this.expressionSvc?this.expressionSvc.evaluate(a,l):null}else if(s.refData)return s.refData[n]||"";return o==null&&Array.isArray(n)&&(o=n.join(", ")),o}setValue(e,t,n,r){const i=this.colModel.getColDefCol(t);if(!e||!i)return!1;Yi(e.data)&&(e.data={});const{field:o,valueSetter:a}=i.getColDef();if(Yi(o)&&Yi(a))return ut(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(i,n))return ut(135),!1;const s=Gn(this.gos,{node:e,data:e.data,oldValue:this.getValue(i,e),newValue:n,colDef:i.getColDef(),column:i});s.newValue=n;let l;if(Ut(a)?typeof a=="function"?l=a(s):l=this.expressionSvc?.evaluate(a,s):l=this.setValueUsingField(e.data,o,n,i.isFieldContainsDots()),l===void 0&&(l=!0),!l)return!1;e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const c=this.getValue(i,e);return this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:s.column,colDef:s.colDef,data:e.data,node:e,oldValue:s.oldValue,newValue:c,value:c,source:r}),!0}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,n,r){if(!t)return!1;let i=!1;if(!r)i=e[t]===n,i||(e[t]=n);else{const o=t.split(".");let a=e;for(;o.length>0&&a;){const s=o.shift();o.length===0?(i=a[s]===n,i||(a[s]=n)):a=a[s]}}return!i}executeValueGetterWithValueCache(e,t,n,r){const i=n.getColId(),o=this.valueCache.getValue(r,i);if(o!==void 0)return o;const a=this.executeValueGetterWithoutValueCache(e,t,n,r);return this.valueCache.setValue(r,i,a),a}executeValueGetterWithoutValueCache(e,t,n,r){const i=Gn(this.gos,{data:t,node:r,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,r)});let o;return typeof e=="function"?o=e(i):o=this.expressionSvc?.evaluate(e,i),o}getValueCallback(e,t){const n=this.colModel.getColDefCol(t);return n?this.getValue(n,e):null}getKeyForNode(e,t){const n=this.getValue(e,t),r=e.getColDef().keyCreator;let i=n;if(r){const o=Gn(this.gos,{value:n,colDef:e.getColDef(),column:e,node:t,data:t.data});i=r(o)}return typeof i=="string"||i==null||(i=String(i),i==="[object Object]"&&ut(121)),i}},d6t={moduleName:"CommunityCore",version:Jn,beans:[FWt,E5t,yFt,fLt,Uqt,LNt,PWt,dqt,uLt,Pqt,Iqt,Yqt,u6t,_Wt,IWt,NWt,CFt,Jqt,fFt,gFt],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:R5t,destroy:I5t,isDestroyed:P5t,getGridOption:D5t,setGridOption:k5t,updateGridOptions:nnt,isModuleRegistered:L5t},dependsOn:[uFt,Fye,MNt,Hye,vqt,lnt,bqt,$qt,l6t,Mqt,FK,_qt,Fqt,xqt,bFt,dFt,s6t]};function WK(e){const{inputValue:t,allSuggestions:n,hideIrrelevant:r,filterByPercentageOfBestMatch:i}=e;let o=n.map((l,c)=>({value:l,relevance:p6t(t,l),idx:c}));if(o.sort((l,c)=>c.relevance-l.relevance),r&&(o=o.filter(l=>l.relevance!==0)),o.length>0&&i&&i>0){const c=o[0].relevance*i;o=o.filter(u=>c-u.relevance<0)}const a=[],s=[];for(const l of o)a.push(l.value),s.push(l.idx);return{values:a,indices:s}}function p6t(e,t){if(e===t)return 1e3;const n=e.length,r=t.length;if(n===0||r===0)return 0;const i=e.toLocaleLowerCase(),o=t.toLocaleLowerCase(),a=o.indexOf(i);if(a!==-1)return 980-a*2;if([...i].filter(d=>o.includes(d)).length===0)return 0;let l=Array.from({length:r+1},(d,p)=>p);for(let d=0;d<n;d++){const p=[d+1];for(let h=0;h<r;h++){const g=l[h+1]+1,m=p[h]+1;let b=l[h]+(e[d]!==t[h]?1:0);r>10&&h>r/2&&(b+=1),d>0&&h>0&&e[d-1]===t[h-1]&&(b-=4),p.push(Math.min(g,m,b))}l=p}const c=Math.round(l[r]),u=Math.max(1,1e3-c*30);return Math.max(1,u)}var Lnt={AdvancedFilter:1,AllEnterprise:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1},vre=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],h6t={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:vre,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...vre,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...vre,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},f6t={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function g6t(e,t){const n=[];return(Array.isArray(e)?e:[e]).forEach(r=>{const i=h6t[r];i?i.forEach(o=>{const a=f6t[o];(!a||a===t)&&n.push(o)}):n.push(r)}),n}var _nt=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
                    
    import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
    
    ModuleRegistry.registerModules([ AllCommunityModule ]);
    `,m6t=e=>{const t=e.map(r=>`import { ${BN(r)} } from '${Lnt[r]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(r=>r==="IntegratedCharts"||r==="Sparklines")&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community'; 
${t.join(` 
`)} 

ModuleRegistry.registerModules([ ${e.map(r=>BN(r,!0)).join(", ")} ]); 

For more info see: ${iI}/modules/`};function BN(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function v6t(e,t){const n=t.filter(o=>o==="IntegratedCharts"||o==="Sparklines");let r="";return!globalThis?.agCharts&&n.length>0?r=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
`:t.some(o=>Lnt[o])&&(r=r+`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
`),r}function Nnt({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var QEe=({reasonOrId:e,moduleName:t,gridScoped:n,gridId:r,rowModelType:i,additionalText:o,isUmd:a})=>{const s=g6t(t,i),l=typeof e=="string"?e:C6t[e];if(a)return v6t(l,s);const c=s.filter(p=>p==="IntegratedCharts"||p==="Sparklines"),u=c.length>0?`${c.map(p=>BN(p)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${l} as ${s.length>1?"one of "+s.map(p=>BN(p)).join(", "):BN(s[0])} is not registered${n?" for gridId: "+r:""}. ${u} Check if you have registered the module:
`}
${m6t(s)}`+(o?` 

${o}`:"")},ZEe=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.

import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
import { ModuleRegistry } from 'ag-grid-community';
import { ${e} } from 'ag-grid-enterprise';
    
ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
    `,b6t=e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,y6t={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:n})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",n],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions:
                     "alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.
 Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e}
${b6t(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:n,pageSizeOptions:r})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${n?"":" the default"} paginationPageSizeSelector=[${r?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",100:({rowModelType:e})=>`selectAll only available when rowModelType='clientSide', ie not ${e}`,101:({propertyName:e,componentName:t,agGridDefaults:n,jsComps:r})=>{const i=[],o=[...Object.keys(n??[]).filter(s=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(s)),...Object.keys(r??[])],a=WK({inputValue:t,allSuggestions:o,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return i.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
`),a.length>0&&i.push(`         Did you mean: [${a.slice(0,3)}]?
`),i.push("If using a custom component check it has been registered correctly."),i},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${iI}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({aggFuncOrString:e})=>`unrecognised aggregation function ${e}`,110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.
 Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:n})=>["duplicate group keys for row data, keys should be unique",e,t,...n??[]],187:({rowId:e,firstData:t,secondData:n})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",n],188:()=>"getRowId callback must be provided for Server Side Row Model selection to work correctly.",189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:QEe,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${iI}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,229:({index:e})=>["invalid row index for ensureIndexVisible: ",e],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. 
Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows. 
Your code probably called a grid API method while the grid was in the render stage. 
To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). 
To see what part of your code that caused the refresh check this stacktrace.`,253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>ZEe("IntegratedChartsModule"),258:()=>ZEe("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:n,gridId:r,rowModelType:i})=>QEe({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:lI[t],gridId:r,gridScoped:n,rowModelType:i}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${iI}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>_nt(),273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children.";break}return t},275:Nnt,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled."};function M6t(e,t){const n=y6t[e];if(!n)return[`Missing error text for error id ${e}!`];const r=n(t),o=`
See ${yet(e,t)}`;return Array.isArray(r)?r.concat(o):[r,o]}var C6t={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},Vye=class OA{static applyGlobalGridOptions(t){if(!OA.gridOptions)return{...t};let n={};return eu(n,OA.gridOptions,!0,!0),OA.mergeStrategy==="deep"?eu(n,t,!0,!0):n={...n,...t},OA.gridOptions.context&&(n.context=OA.gridOptions.context),t.context&&(OA.mergeStrategy==="deep"&&n.context&&eu(t.context,n.context,!0,!0),n.context=t.context),n}};Vye.gridOptions=void 0;Vye.mergeStrategy="shallow";var q$=Vye;function Fnt(e,t="shallow"){q$.gridOptions=e,q$.mergeStrategy=t}function x6t(e){return q$.gridOptions?.[e]}function w6t(e,t,n){if(!t)return pi(11),{};const r=n;let i;if(!r?.setThemeOnGridDiv){const a=Nr({tag:"div"});a.style.height="100%",e.appendChild(a),e=a,i=()=>e.remove()}return new Wnt().create(e,t,a=>{const s=new z5t(e);a.createBean(s)},void 0,n,i)}var S6t=1,Wnt=class{create(e,t,n,r,i,o){const a=q$.applyGlobalGridOptions(t),s=a.gridId??String(S6t++),l=this.getRegisteredModules(i,s,a.rowModelType),c=this.createBeansList(a.rowModelType,l,s),u=this.createProvidedBeans(e,a,i);if(!c)return;const d={providedBeanInstances:u,beanClasses:c,gridId:s,beanInitComparator:d5t,beanDestroyComparator:p5t,derivedBeans:[c5t],destroyCallback:o},p=new a4t(d);return this.registerModuleFeatures(p,l),n(p),p.getBean("syncSvc").start(),r&&r(p),p.getBean("gridApi")}getRegisteredModules(e,t,n){return fW(d6t,void 0,!0),e?.modules?.forEach(r=>fW(r,t)),e4t(t,JEe(n))}registerModuleFeatures(e,t){const n=e.getBean("registry"),r=e.getBean("apiFunctionSvc");t.forEach(i=>{n.registerModule(i);const o=i.apiFunctions;o&&Object.keys(o).forEach(s=>{r?.addFunction(s,o[s])})})}createProvidedBeans(e,t,n){let r=n?n.frameworkOverrides:null;Yi(r)&&(r=new Jtt);const i={gridOptions:t,eGridDiv:e,globalListener:n?n.globalListener:null,globalSyncListener:n?n.globalSyncListener:null,frameworkOverrides:r};return n&&n.providedBeanInstances&&Object.assign(i,n.providedBeanInstances),i}createBeansList(e,t,n){const r={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},i=JEe(e),o=r[i];if(!o){G5(201,{rowModelType:i},`Unknown rowModelType ${i}.`);return}if(!n4t()){G5(272,void 0,_nt());return}if(!e){const s=Object.entries(r).filter(([l,c])=>hhe(c,n,l));if(s.length==1){const[l,c]=s[0];if(l!==i){const u={moduleName:c,rowModelType:l};G5(275,u,Nnt(u));return}}}if(!hhe(o,n,i)){G5(200,{reasonOrId:`rowModelType = '${i}'`,moduleName:o,gridScoped:mye(),gridId:n,rowModelType:i},`Missing module ${o}Module for rowModelType ${i}.`);return}const a=new Set;return t.forEach(s=>s.beans?.forEach(l=>a.add(l))),Array.from(a)}};function JEe(e){return e??"clientSide"}function Pm(e){const t=e.rowModel;return t.getType()==="clientSide"?t:void 0}function qK(e){const t=e.rowModel;return t.getType()==="infinite"?t:void 0}function vD(e){const t=e.rowModel;return t.getType()==="serverSide"?t:void 0}var A6t=class extends dt{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");if(t)return(r,i,o)=>t({key:r,defaultValue:i,variableValues:o});const n=e.get("localeText");return(r,i,o)=>{let a=n&&n[r];if(a&&o&&o.length){let s=0;for(;!(s>=o.length||a.indexOf("${variable}")===-1);)a=a.replace("${variable}",o[s++])}return a??i}}};function O6t(e,t=!1){const n=[],r=[],i=[],o=[],a=[],s=[],l=[],c=[],u=[];let d=0;for(let p=0;p<e.length;p++){const{colId:h,sort:g,sortIndex:m,rowGroup:b,rowGroupIndex:y,aggFunc:M,pivot:C,pivotIndex:x,pinned:w,hide:S,width:A,flex:z}=e[p];u.push(h),g&&(n[m??d++]={colId:h,sort:g}),b&&(r[y??0]=h),typeof M=="string"&&i.push({colId:h,aggFunc:M}),C&&(o[x??0]=h),w&&(w==="right"?s:a).push(h),S&&l.push(h),(z!=null||A)&&c.push({colId:h,flex:z??void 0,width:A})}return{sort:n.length?{sortModel:n}:void 0,rowGroup:r.length?{groupColIds:r}:void 0,aggregation:i.length?{aggregationModel:i}:void 0,pivot:o.length||t?{pivotMode:t,pivotColIds:o}:void 0,columnPinning:a.length||s.length?{leftColIds:a,rightColIds:s}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:c.length?{columnSizingModel:c}:void 0,columnOrder:u.length?{orderedColIds:u}:void 0}}function z6t(e){const t=[];return e.forEach(({groupId:n,open:r})=>{r&&t.push(n)}),t.length?{openColumnGroupIds:t}:void 0}var T6t=class{wrap(e,t,n,r){const i=this.createWrapper(e,r);return t?.forEach(o=>{this.createMethod(i,o,!0)}),n?.forEach(o=>{this.createMethod(i,o,!1)}),i}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&ut(49,{methodName:t}),null)}}},E6t={tag:"div",cls:"ag-tooltip"},R6t=class extends Cw{constructor(){super(E6t)}init(e){const{value:t}=e;this.getGui().textContent=Df(t)}};function xz(e,t){if(typeof e!="number")return"";const n=t(),r=n("thousandSeparator",","),i=n("decimalSeparator",".");return e.toString().replace(".",i).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${r}`)}var qnt=class extends dt{getFileName(e){const t=this.getDefaultFileExtension();return(e==null||!e.length)&&(e=this.getDefaultFileName()),e.indexOf(".")===-1?`${e}.${t}`:e}getData(e){const t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},Bnt=class{constructor(e){const{colModel:t,rowGroupColsSvc:n,colNames:r,valueSvc:i,gos:o,processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c}=e;this.colModel=t,this.rowGroupColsSvc=n,this.colNames=r,this.valueSvc=i,this.gos=o,this.processCellCallback=a,this.processHeaderCallback=s,this.processGroupHeaderCallback=l,this.processRowGroupCallback=c}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e,t,n,r,i){if(this.processRowGroupCallback&&(this.gos.get("treeData")||i.group)&&(!i.rowGroupColumn||e.isRowGroupDisplayed(i.rowGroupColumn.getColId())))return{value:this.processRowGroupCallback(Gn(this.gos,{column:e,node:i}))??""};if(this.processCellCallback)return{value:this.processCellCallback(Gn(this.gos,{accumulatedRowIndex:n,column:e,node:i,value:this.valueSvc.getValueForDisplay(e,i).value,type:r,parseValue:p=>this.valueSvc.parseValue(e,i,p,this.valueSvc.getValue(e,i)),formatValue:p=>this.valueSvc.formatValue(e,i,p)??p}))??""};const o=this.gos.get("treeData"),a=this.valueSvc,s=i.level===-1&&i.footer,l=t===0&&sye(this.gos,i,this.colModel.isPivotMode()),c=e.colDef.showRowGroup===!0&&(i.group||o);if(!s&&(l||c)){let p="",h=i;for(;h&&h.level!==-1;){const{value:g,valueFormatted:m}=a.getValueForDisplay(l?void 0:e,h,!0,!0);p=` -> ${m??g??""}${p}`,h=h.parent}return{value:p,valueFormatted:p}}const{value:u,valueFormatted:d}=a.getValueForDisplay(e,i,!0,!0);return{value:u??"",valueFormatted:d}}getHeaderName(e,t){return e?e(Gn(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}};function Gye(e,t){const n=document.defaultView||window;if(!n){ut(52);return}const r=document.createElement("a"),i=n.URL.createObjectURL(t);r.setAttribute("href",i),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(r),n.setTimeout(()=>{n.URL.revokeObjectURL(i)},0)}var I6t={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0},D1="clientSide",q0="serverSide",gE="infinite",P6t={onGroupExpandedOrCollapsed:[D1],refreshClientSideRowModel:[D1],isRowDataEmpty:[D1],forEachLeafNode:[D1],forEachNodeAfterFilter:[D1],forEachNodeAfterFilterAndSort:[D1],resetRowHeights:[D1],applyTransaction:[D1],applyTransactionAsync:[D1],flushAsyncTransactions:[D1],getBestCostNodeSelection:[D1],getServerSideSelectionState:[q0],setServerSideSelectionState:[q0],applyServerSideTransaction:[q0],applyServerSideTransactionAsync:[q0],applyServerSideRowData:[q0],retryServerSideLoads:[q0],flushServerSideAsyncTransactions:[q0],refreshServerSide:[q0],getServerSideGroupLevelState:[q0],refreshInfiniteCache:[gE],purgeInfiniteCache:[gE],getInfiniteRowCount:[gE],isLastRowIndexKnown:[gE,q0],expandAll:[D1,q0],collapseAll:[D1,q0],onRowHeightChanged:[D1,q0],setRowCount:[gE,q0],getCacheBlockState:[gE,q0]},D6t={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function k6t(e,t,n){const r=D6t[e];if(r){const{version:o,new:a,old:s,message:l}=r,c=s??e;return(...u)=>{const d=a?`Please use ${a} instead. `:"";return sb(`Since ${o} api.${c} is deprecated. ${d}${l??""}`),t.apply(t,u)}}const i=P6t[e];return i?(...o)=>{const a=n.rowModel.getType();if(!i.includes(a)){rI(`api.${e} can only be called when gridOptions.rowModelType is ${i.join(" or ")}`);return}return t.apply(t,o)}:t}var L6t={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1},_6t={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},N6t=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),F6t=class extends dt{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,Skt(this)}warnOnInitialPropertyUpdate(e,t){e==="api"&&I6t[t]&&ut(22,{key:t})}processGridOptions(e){this.processOptions(e,lqt())}validateApiFunction(e,t){return k6t(e,t,this.beans)}missingUserComponent(e,t,n,r){const i=lI[t];i?this.gos.assertModuleRegistered(i,`AG Grid '${e}' component: ${t}`):ut(101,{propertyName:e,componentName:t,agGridDefaults:n,jsComps:r})}checkRowEvents(e){q6t.has(e)&&ut(10,{eventType:e})}validateIcon(e){if(N6t.has(e)&&ut(43,{iconName:e}),L6t[e])return;const t=_6t[e];if(t){pi(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:mye(),gridId:this.beans.context.getGridId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}ut(134,{iconName:e})}isProvidedUserComp(e){return!!lI[e]}validateColDef(e){this.processOptions(e,XWt())}processOptions(e,t){const{validations:n,deprecations:r,allProperties:i,propertyExceptions:o,objectName:a,docsUrl:s}=t;i&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...o??[],...Object.keys(r)],i,a,s);const l=new Set;Object.keys(e).forEach(u=>{const d=r[u];if(d){const{message:M,version:C}=d;l.add(`As of v${C}, ${String(u)} is deprecated. ${M??""}`)}const p=e[u];if(p==null||p===!1)return;const h=n[u];if(!h)return;const{dependencies:g,validate:m,supportedRowModels:b,expectedType:y}=h;if(y){const M=typeof p;if(M!==y){l.add(`${String(u)} should be of type '${y}' but received '${M}' (${p}).`);return}}if(b){const M=this.gridOptions.rowModelType??"clientSide";if(!b.includes(M)){l.add(`${String(u)} is not supported with the '${M}' row model. It is only valid with: ${b.join(", ")}.`);return}}if(g){const M=this.checkForRequiredDependencies(u,g,e);if(M){l.add(M);return}}if(m){const M=m(e,this.gridOptions,this.beans);if(M){l.add(M);return}}}),l.size>0&&l.forEach(u=>{sb(u)})}checkForRequiredDependencies(e,t,n){const i=Object.entries(t).filter(([o,a])=>{const s=n[o];return!a.required.includes(s)});return i.length===0?null:i.map(([o,a])=>`'${String(e)}' requires '${o}' to be one of [${a.required.map(s=>s===null?"null":s===void 0?"undefined":s).join(", ")}]. ${a.reason??""}`).join(`
           `)}checkProperties(e,t,n,r,i){const o=["__ob__","__v_skip","__metadata__"],a=W6t(Object.getOwnPropertyNames(e),[...o,...t,...n],n),s=Object.keys(a);for(const l of s){const c=a[l];let u=`invalid ${r} property '${l}' did you mean any of these: ${c.slice(0,8).join(", ")}.`;n.includes("context")&&(u+=`
If you are trying to annotate ${r} with application data, use the '${r}.context' property instead.`),sb(u)}if(s.length>0&&i){const l=this.beans.frameworkOverrides.getDocLink(i);sb(`to see all the valid ${r} properties please check: ${l}`)}}getConsoleMessage(e,t){return M6t(e,t)}};function W6t(e,t,n){const r={},i=e.filter(o=>!t.some(a=>a===o));return i.length>0&&i.forEach(o=>r[o]=WK({inputValue:o,allSuggestions:n}).values),r}var q6t=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),B6t={moduleName:"Validation",version:Jn,beans:[F6t]};function jnt(e){e.sibling&&(e.sibling.childrenAfterFilter=e.childrenAfterFilter)}var j6t=class extends dt{constructor(){super(...arguments),this.beanName="filterStage",this.refreshProps=new Set(["excludeChildrenWhenTreeDataFiltering"]),this.step="filter"}wireBeans(e){this.filterManager=e.filterManager}execute(e){const{changedPath:t}=e;this.filter(t)}filter(e){const t=!!this.filterManager?.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const n=(r,i)=>{r.hasChildren()&&e&&!i?r.childrenAfterFilter=r.childrenAfterGroup.filter(o=>{const a=o.childrenAfterFilter&&o.childrenAfterFilter.length>0,s=o.data&&this.filterManager.doesRowPassFilter({rowNode:o});return a||s}):r.childrenAfterFilter=r.childrenAfterGroup,jnt(r)};if(this.doingTreeDataFiltering()){const r=(o,a)=>{if(o.childrenAfterGroup)for(let s=0;s<o.childrenAfterGroup.length;s++){const l=o.childrenAfterGroup[s],c=a||this.filterManager.doesRowPassFilter({rowNode:l});l.childrenAfterGroup?r(o.childrenAfterGroup[s],c):n(l,c)}n(o,a)},i=o=>r(o,!1);t.executeFromRootNode(i)}else{const r=i=>n(i,!1);t.forEachChangedNodeDepthFirst(r,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}},H6t=class extends kye{constructor(){super(...arguments),this.iconCreated=!1}setComp(e,t,n,r,i){this.comp=e;const o=v6(this,this.beans.context,i);this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r,this.setGui(t,o),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(o),this.setupLeft(o),this.setupHover(o),this.setupFocus(o),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(o),this.setupUi(),o.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(o),o.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(o)}),o.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return Gn(t.gos,{colDef:n,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=er("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Mw(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();Is(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if($i(t)===this.eGui)return;const i=Cd(t,this.eGui,null,e.shiftKey);if(i){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),i.focus();return}const o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:o},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let n=this.column;do if(n=e?t.getColBefore(n):t.getColAfter(n),!n)break;while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case Qe.UP:case Qe.DOWN:case Qe.LEFT:case Qe.RIGHT:if(t)return;Cl(e);case Qe.ENTER:t&&zu(this.eGui)&&e.preventDefault();break;case Qe.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&kO(e.relatedTarget,"ag-floating-filter");if(n&&r&&e.target===this.eGui){const i=this.lastFocusEvent,o=!!(i&&i.key===Qe.TAB);if(i&&o){const a=i.shiftKey;zu(this.eGui,a)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new Dye(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!Gu(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.filterManager?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{filterManager:t}=this.beans,n=r=>{if(r?.source==="filterDestroyed"&&!this.isAlive())return;const i=this.comp.getFloatingFilterComp();i&&i.then(o=>{if(o){const a=t?.getCurrentFloatingFilterParentModel(this.column),s=r?{...r,columns:r.columns??[],source:r.source==="api"?"api":"columnFilter"}:null;o.onParentModelChanged(a,s)}})};[this.destroySyncListener]=e.addManagedListeners(this.column,{filterChanged:n}),t?.isFilterActive(this.column)&&n(null)}setupWidth(e){const t=()=>{const n=`${this.column.getActualWidth()}px`;this.comp.setWidth(n)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const n=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const r=this.active?this.beans.filterManager?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,i=this.comp.getFloatingFilterComp();!i||!r?this.updateCompDetails(e,r,n):i.then(o=>{!o||this.beans.filterManager?.areFilterCompsDifferent(this.userCompDetails??null,r)?this.updateCompDetails(e,r,n):this.updateFloatingFilterParams(r)})}updateCompDetails(e,t,n){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),n&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e){if(!e)return;const t=e.params;this.comp.getFloatingFilterComp()?.then(n=>{n?.refresh&&typeof n.refresh=="function"&&n.refresh(t)})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function V6t(e,t){const n=e.colModel.getCol(t);if(!n){pi(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:n,positionBy:"auto"})}function G6t(e){e.menuSvc?.hidePopupMenu()}var Hnt={moduleName:"SharedMenu",version:Jn,beans:[w_t],apiFunctions:{showColumnMenu:V6t,hidePopupMenu:G6t}},$6t=0,U6t=200,X6t=class extends dt{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridCtrl=e.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.gridCtrl.getGui()}positionPopupForMenu(e){const{eventSource:t,ePopup:n,column:r,node:i,event:o}=e,a=t.getBoundingClientRect(),s=this.getParentRect();this.setAlignedTo(t,n);let l=!1;const c=()=>{const u=this.keepXYWithinBounds(n,a.top-s.top,0),d=n.clientWidth>0?n.clientWidth:200;l||(n.style.minWidth=`${d}px`,l=!0);const h=s.right-s.left-d;let g;return this.gos.get("enableRtl")?(g=b(),g<0&&(g=m(),this.setAlignedStyles(n,"left")),g>h&&(g=0,this.setAlignedStyles(n,"right"))):(g=m(),g>h&&(g=b(),this.setAlignedStyles(n,"right")),g<0&&(g=0,this.setAlignedStyles(n,"left"))),{x:g,y:u};function m(){return a.right-s.left-2}function b(){return a.left-s.left-d}};this.positionPopup({ePopup:n,keepWithinBounds:!0,updatePosition:c,postProcessCallback:()=>this.callPostProcessPopup("subMenu",n,t,o instanceof MouseEvent?o:void 0,r,i)})}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:n,nudgeY:r,skipObserver:i}=e;this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:!0,skipObserver:i,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,eventSource:o,alignSide:a="left",position:s="over",column:l,rowNode:c,type:u}=e,d=o.getBoundingClientRect(),p=this.getParentRect();this.setAlignedTo(o,t);const h=()=>{let g=d.left-p.left;a==="right"&&(g-=t.offsetWidth-d.width);let m;return s==="over"?(m=d.top-p.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,d,p,e.nudgeY||0)==="under"?m=d.top-p.top+d.height:m=d.top-t.offsetHeight-(r||0)*2-p.top),{x:g,y:m}};this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,updatePosition:h,postProcessCallback:()=>this.callPostProcessPopup(u,t,o,null,l,c)})}shouldRenderUnderOrAbove(e,t,n,r){const i=n.bottom-t.bottom,o=t.top-n.top,a=e.offsetHeight+r;return i>a?"under":o>a||o>i?"above":"under"}setAlignedStyles(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const r=this.popupList[n],{alignedToElement:i}=r;!i||(["right","left","over","above","under"].forEach(a=>{i.classList.remove(`ag-has-popup-positioned-${a}`),e.classList.remove(`ag-popup-positioned-${a}`)}),!t)||(i.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const n=this.getPopupIndex(t);if(n!==-1){const r=this.popupList[n];r.alignedToElement=e}}callPostProcessPopup(e,t,n,r,i,o){const a=this.gos.getCallback("postProcessPopup");a&&a({column:i,rowNode:o,ePopup:t,type:e,eventSource:n,mouseEvent:r})}positionPopup(e){const{ePopup:t,keepWithinBounds:n,nudgeX:r,nudgeY:i,skipObserver:o,updatePosition:a}=e,s={width:0,height:0},l=(c=!1)=>{let{x:u,y:d}=a();c&&t.clientWidth===s.width&&t.clientHeight===s.height||(s.width=t.clientWidth,s.height=t.clientHeight,r&&(u+=r),i&&(d+=i),n&&(u=this.keepXYWithinBounds(t,u,1),d=this.keepXYWithinBounds(t,d,0)),t.style.left=`${u}px`,t.style.top=`${d}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!o){const c=Hf(this.beans,t,()=>l(!0));setTimeout(()=>c(),U6t)}}getActivePopups(){return this.popupList.map(e=>e.element)}getParentRect(){const e=bl(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),cet(t)}keepXYWithinBounds(e,t,n){const r=n===0,i=r?"clientHeight":"clientWidth",o=r?"top":"left",a=r?"height":"width",s=r?"scrollTop":"scrollLeft",l=bl(this.beans),c=l.documentElement,u=this.getPopupParent(),d=e.getBoundingClientRect(),p=u.getBoundingClientRect(),h=l.documentElement.getBoundingClientRect(),g=u===l.body,m=Math.ceil(d[a]);let y=g?(r?xK:gz)(c)+c[s]:u[i];g&&(y-=Math.abs(h[o]-p[o]));const M=y-m;return Math.min(Math.max(t,0),Math.abs(M))}addPopup(e){const t=bl(this.beans),{eChild:n,ariaLabel:r,alwaysOnTop:i,positionCallback:o,anchorToElement:a}=e;if(!t)return ut(122),{hideFunc:()=>{}};const s=this.getPopupIndex(n);if(s!==-1)return{hideFunc:this.popupList[s].hideFunc};this.initialisePopupPosition(n);const l=this.createPopupWrapper(n,r,!!i),c=this.addEventListenersToPopup({...e,wrapperEl:l});return o&&o(),this.addPopupToPopupList(n,l,c,a),{hideFunc:c}}initialisePopupPosition(e){const n=this.getPopupParent().getBoundingClientRect();Ut(e.style.top)||(e.style.top=`${n.top*-1}px`),Ut(e.style.left)||(e.style.left=`${n.left*-1}px`)}createPopupWrapper(e,t,n){const r=this.getPopupParent(),{environment:i,gos:o}=this.beans,a=Nr({tag:"div"});return i.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(o.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||C0(e,"dialog"),Is(e,t),a.appendChild(e),r.appendChild(a),n?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const n of this.popupList)t.applyThemeClasses(n.wrapper)}}addEventListenersToPopup(e){const t=this.beans,n=bl(t),r=this.getPopupParent(),{wrapperEl:i,eChild:o,closedCallback:a,afterGuiAttached:s,closeOnEsc:l,modal:c}=e;let u=!1;const d=m=>{if(!i.contains($i(t)))return;m.key===Qe.ESCAPE&&!rh(m)&&g({keyboardEvent:m})},p=m=>g({mouseEvent:m}),h=m=>g({touchEvent:m}),g=(m={})=>{const{mouseEvent:b,touchEvent:y,keyboardEvent:M,forceHide:C}=m;!C&&(this.isEventFromCurrentPopup({mouseEvent:b,touchEvent:y},o)||u)||(u=!0,r.removeChild(i),n.removeEventListener("keydown",d),n.removeEventListener("mousedown",p),n.removeEventListener("touchstart",h),n.removeEventListener("contextmenu",p),this.eventSvc.removeEventListener("dragStarted",p),a&&a(b||y||M),this.removePopupFromPopupList(o))};return s&&s({hidePopup:g}),window.setTimeout(()=>{l&&n.addEventListener("keydown",d),c&&(n.addEventListener("mousedown",p),this.eventSvc.addEventListener("dragStarted",p),n.addEventListener("touchstart",h),n.addEventListener("contextmenu",p))},0),g}addPopupToPopupList(e,t,n,r){this.popupList.push({element:e,wrapper:t,hideFunc:n,instanceId:$6t++,isAnchored:!!r}),r&&this.setPopupPositionRelatedToElement(e,r)}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const r=this.popupList[n];if(r.stopAnchoringPromise&&r.stopAnchoringPromise.then(o=>o&&o()),r.stopAnchoringPromise=void 0,r.isAnchored=!1,!t)return;const i=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:r.hideFunc});return r.stopAnchoringPromise=i,r.isAnchored=!0,i}removePopupFromPopupList(e){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),this.popupList=this.popupList.filter(t=>t.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),n=t.getBoundingClientRect(),{element:r,ePopup:i}=e,o=r.getBoundingClientRect(),a=d=>parseInt(d.substring(0,d.length-1),10),s=(d,p)=>{const h=n[d]-o[d],g=a(i.style[d]);return{initialDiff:h,lastDiff:h,initial:g,last:g,direction:p}},l=s("top",0),c=s("left",1),u=this.beans.frameworkOverrides;return new Dr(d=>{u.wrapIncoming(()=>{u.setInterval(()=>{const p=t.getBoundingClientRect(),h=r.getBoundingClientRect();if(h.top==0&&h.left==0&&h.height==0&&h.width==0){e.hidePopup();return}const m=(b,y)=>{const M=a(i.style[y]);b.last!==M&&(b.initial=M,b.last=M);const C=p[y]-h[y];if(C!=b.lastDiff){const x=this.keepXYWithinBounds(i,b.initial+b.initialDiff-C,b.direction);i.style[y]=`${x}px`,b.last=x}b.lastDiff=C};m(l,"top"),m(c,"left")},200).then(p=>{d(()=>{p!=null&&window.clearInterval(p)})})},"popupPositioning")})}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isEventFromCurrentPopup(e,t){const{mouseEvent:n,touchEvent:r}=e,i=n||r;if(!i)return!1;const o=this.getPopupIndex(t);if(o===-1)return!1;for(let a=o;a<this.popupList.length;a++){const s=this.popupList[a];if(dhe(s.element,i))return!0}return this.isElementWithinCustomPopup(i.target)}isElementWithinCustomPopup(e){const t=bl(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))}bringPopupToFront(e){const t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=n.length,i=this.getWrapper(e);if(!i||r<=1||!t.contains(e))return;const o=[],a=[];for(const p of n)p!==i&&(p.classList.contains("ag-always-on-top")?a.push(p):o.push(p));const s=[],l=a.length,d=i.classList.contains("ag-always-on-top")||!l?[...o,...a,i]:[...o,i,...a];for(let p=0;p<=r;p++){const h=d[p];if(n[p]===d[p]||h===i)continue;h.querySelectorAll("div").forEach(m=>{m.scrollTop!==0&&s.push([m,m.scrollTop])}),p===0?t.insertAdjacentElement("afterbegin",h):d[p-1].insertAdjacentElement("afterend",h)}for(;s.length;){const p=s.pop();p[0].scrollTop=p[1]}}},pM={moduleName:"Popup",version:Jn,beans:[X6t]},Y6t=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:1px solid var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function K6t(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function Q6t(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function Z6t(e,t){const n=e.colModel.getColDefCol(t);if(n)return e.filterManager?.destroyFilter(n,"api")}function J6t(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function eBt(e){return e.filterManager?.getFilterModel()??{}}function tBt(e,t){return e.filterManager?.getColumnFilterModel(t)??null}function nBt(e,t,n){return e.filterManager?.setColumnFilterModel(t,n)??Promise.resolve()}function rBt(e,t){const n=e.colModel.getCol(t);if(!n){pi(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:n,containerType:"columnFilter",positionBy:"auto"})}var eRe={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},tRe=["january","february","march","april","may","june","july","august","september","october","november","december"];function iBt(e,t){return e==null?-1:t==null?1:parseFloat(e)-parseFloat(t)}var oBt=class extends dt{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),beforeRefreshModel:({params:e})=>{(e.rowDataUpdated||e.changedProps?.has("treeData"))&&this.onNewRowsLoaded("rowDataUpdated")},dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel={...this.gos.get("initialState")?.filter?.filterModel??{}}}setFilterModel(e,t="api"){const{colModel:n,dataTypeSvc:r,filterManager:i}=this.beans;if(r?.isPendingInference){this.filterModelUpdateQueue.push({model:e,source:t});return}const o=[],a=this.getFilterModel(!0);if(e){const s=new Set(Object.keys(e));this.allColumnFilters.forEach((l,c)=>{const u=e[c];o.push(ZH(l.filterPromise,u)),s.delete(c)}),s.forEach(l=>{const c=n.getColDefCol(l)||n.getCol(l);if(!c){ut(62,{colId:l});return}if(!c.isFilterAllowed()){ut(63,{colId:l});return}const u=this.getOrCreateFilterWrapper(c);if(!u){ut(64,{colId:l});return}o.push(ZH(u.filterPromise,e[l]))})}else this.allColumnFilters.forEach(s=>{o.push(ZH(s.filterPromise,null))});Dr.all(o).then(()=>{const s=this.getFilterModel(!0),l=[];this.allColumnFilters.forEach((c,u)=>{const d=a?a[u]:null,p=s?s[u]:null;mz(d,p)||l.push(c.column)}),l.length>0&&i?.onFilterChanged({columns:l,source:t})})}getFilterModel(e){const t={},{allColumnFilters:n,initialFilterModel:r,beans:{colModel:i}}=this;if(n.forEach((o,a)=>{const s=this.getModelFromFilterWrapper(o);Ut(s)&&(t[a]=s)}),!e)for(const o of Object.keys(r)){const a=r[o];Ut(a)&&!n.has(o)&&i.getCol(o)?.isFilterAllowed()&&(t[o]=a)}return t}getModelFromFilterWrapper(e){const{filter:t}=e;return t?typeof t.getModel!="function"?(ut(66),null):t.getModel():this.getModelFromInitialState(e.column)}getModelFromInitialState(e){return this.initialFilterModel[e.getColId()]??null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){this.initialFilterModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}doAggregateFiltersPass(e,t){return this.doColumnFiltersPass(e,t,!0)}updateActiveFilters(){const e=s=>s?s.isFilterActive?s.isFilterActive():(ut(67),!1):!1,{colModel:t,gos:n}=this.beans,r=!!pW(n),i=s=>{if(!s.isPrimary())return!0;const c=!t.isPivotActive();return!s.isValueActive()||!c?!1:t.isPivotMode()?!0:r},o=[],a=[];return this.forEachColumnFilter((s,l)=>{e(s)&&(i(l.column)?o.push(s):a.push(s))}).then(()=>{this.activeAggregateFilters=o,this.activeColumnFilters=a})}updateFilterFlagInColumns(e,t){return this.forEachColumnFilter((n,r)=>this.setColFilterActive(r.column,n.isFilterActive(),e,t))}forEachColumnFilter(e){const t=[];return this.allColumnFilters.forEach(n=>{const r=n.filterPromise;r&&t.push(r.then(i=>e(i,n)))}),Dr.all(t)}doColumnFiltersPass(e,t,n){const{data:r,aggData:i}=e,o=n?this.activeAggregateFilters:this.activeColumnFilters,a=n?i:r;for(let s=0;s<o.length;s++){const l=o[s];if(!(l==null||l===t)){if(typeof l.doesFilterPass!="function"){pi(91);continue}if(!l.doesFilterPass({node:e,data:a}))return!1}}return!0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:n}=this.beans,r=()=>{this.isAlive()&&n?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(r,0):r()}updateBeforeFilterChanged(e={}){const{filterInstance:t,additionalEventAttributes:n}=e;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",n).then(()=>{this.allColumnFilters.forEach(r=>{r.filterPromise&&r.filterPromise.then(i=>{i&&i!==t&&i.onAnyFilterChanged&&i.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){this.forEachColumnFilter(t=>{t.onNewRowsLoaded?.()}).then(()=>this.updateFilterFlagInColumns(e,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createGetValue(e){const{filterValueSvc:t,colModel:n}=this.beans;return(r,i)=>{const o=i?n.getCol(i):e;return o?t.getValue(o,r):void 0}}isFilterActive(e){const{filter:t}=this.cachedFilter(e)??{};return t?t.isFilterActive():this.getModelFromInitialState(e)!=null}getOrCreateFilterWrapper(e){if(!e.isFilterAllowed())return null;let t=this.cachedFilter(e);return t||(t=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,t)),t}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e){let t;const{gos:n,dataTypeSvc:r}=this.beans;if(Jne(n))t="agSetColumnFilter";else{const i=r?.getBaseDataType(e);i==="number"?t="agNumberColumnFilter":i==="date"||i==="dateString"?t="agDateColumnFilter":t="agTextColumnFilter"}return t}getDefaultFloatingFilter(e){let t;const{gos:n,dataTypeSvc:r}=this.beans;if(Jne(n))t="agSetColumnFloatingFilter";else{const i=r?.getBaseDataType(e);i==="number"?t="agNumberColumnFloatingFilter":i==="date"||i==="dateString"?t="agDateColumnFloatingFilter":t="agTextColumnFloatingFilter"}return t}createFilterInstance(e,t){const n=this.getDefaultFilter(e),r=e.getColDef();let i;const o={...this.createFilterParams(e,r),filterModifiedCallback:()=>this.filterModifiedCallbackFactory(i,e)(),filterChangedCallback:s=>this.filterChangedCallbackFactory(i,e)(s),doesRowPassOtherFilter:s=>this.beans.filterManager?.doesRowPassOtherFilters(i,s)??!0},a=itt(this.beans.userCompFactory,r,o,n);return a?{filterPromise:()=>{const s=a.newAgStackInstance();return s.then(l=>{i=l,t&&(t.filter=l??void 0)}),s},compDetails:a}:{filterPromise:null,compDetails:null}}createFilterParams(e,t){return Gn(this.gos,{column:e,colDef:t,rowModel:this.beans.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},getValue:this.createGetValue(e),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(e){const t={column:e,filterPromise:null,compDetails:null},{filterPromise:n,compDetails:r}=this.createFilterInstance(e,t);return t.filterPromise=n?.()??null,t.compDetails=r,t}onColumnsChanged(){const e=[],{colModel:t,filterManager:n}=this.beans;this.allColumnFilters.forEach((i,o)=>{let a;i.column.isPrimary()?a=t.getColDefCol(o):a=t.getCol(o),!(a&&a===i.column)&&(e.push(i.column),this.disposeFilterWrapper(i,"columnChanged"),this.disposeColumnListener(o))});const r=e.every(nRe);e.length>0&&!r?n?.onFilterChanged({columns:e,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){this.beans.autoColSvc?.getColumns()?.forEach(e=>{nRe(e)&&this.getOrCreateFilterWrapper(e)})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const{filter:n}=this.allColumnFilters.get(e.getColId())??{};return n&&typeof n?.isFilterAllowed=="function"?n.isFilterAllowed():!0}getFloatingFilterCompDetails(e,t){const n=u=>{const d=this.getOrCreateFilterWrapper(e)?.filterPromise;d?.then(p=>{u(Mz(p))})},r=e.getColDef(),i={...this.createFilterParams(e,r),filterChangedCallback:()=>n(u=>this.filterChangedCallbackFactory(u,e)())},{userCompFactory:o,frameworkOverrides:a}=this.beans,s=YLt(o,r,i);let l=Ttt(a,r,()=>this.getDefaultFloatingFilter(e));l==null&&(l="agReadOnlyFloatingFilter");const c=Gn(this.gos,{column:e,filterParams:s,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:n,showParentFilter:t});return ott(o,r,c,l)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilter(e,t="api"){const n=e.getColId(),r=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialFilterModel[n],r&&this.disposeFilterWrapper(r,t).then(i=>{i&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){return e.filterPromise?.then(n=>{const r=!!n?.isFilterActive();return this.destroyBean(n),this.setColFilterActive(e.column,!1,"filterDestroyed"),this.allColumnFilters.delete(e.column.getColId()),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:e.column}),r})??Dr.resolve(!1)}filterModifiedCallbackFactory(e,t){return()=>{this.eventSvc.dispatchEvent({type:"filterModified",column:t,filterInstance:e})}}filterChangedCallbackFactory(e,t){return n=>{const r=n?.source??"columnFilter",i={filter:e,additionalEventAttributes:n,columns:[t],source:r};this.callOnFilterChangedOutsideRenderCycle(i)}}checkDestroyFilter(e){const t=this.allColumnFilters.get(e);if(!t)return;const n=t.column,{compDetails:r}=n.isFilterAllowed()?this.createFilterInstance(n):{compDetails:null};if(this.areFilterCompsDifferent(t.compDetails,r)){this.destroyFilter(n,"paramsUpdated");return}const i=n.getColDef().filterParams;if(!t.filterPromise){this.destroyFilter(n,"paramsUpdated");return}t.filterPromise.then(o=>{(o?.refresh?o.refresh({...this.createFilterParams(n,n.getColDef()),filterModifiedCallback:this.filterModifiedCallbackFactory(o,n),filterChangedCallback:this.filterChangedCallbackFactory(o,n),doesRowPassOtherFilter:s=>this.beans.filterManager?.doesRowPassOtherFilters(o,s)??!0,...i}):!0)===!1&&this.destroyFilter(n,"paramsUpdated")})}setColumnFilterWrapper(e,t){const n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListeners(e,{colDefChanged:()=>this.checkDestroyFilter(n)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:n}=e,{componentClass:r}=t;return!(n===r||n?.render&&r?.render&&n.render===r.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getColumnFilterInstance(e){return new Promise(t=>{this.getFilterInstanceImpl(e).then(n=>{t(Mz(n))})})}getFilterInstanceImpl(e){const t=this.beans.colModel.getColDefCol(e);return t?this.getOrCreateFilterWrapper(t)?.filterPromise??Dr.resolve(null):Dr.resolve(void 0)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:e,source:t})=>this.setFilterModel(e,t)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:e,model:t,resolve:n})=>{this.setColumnFilterModel(e,t).then(()=>n())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(e){const t=this.getFilterWrapper(e);return t?this.getModelFromFilterWrapper(t):null}setColumnFilterModel(e,t){const{colModel:n,dataTypeSvc:r}=this.beans;if(r?.isPendingInference){let s=()=>{};const l=new Promise(c=>{s=c});return this.columnFilterModelUpdateQueue.push({key:e,model:t,resolve:s}),l}const i=n.getColDefCol(e),o=i?this.getOrCreateFilterWrapper(i):null;return o?(s=>new Promise(l=>{s.then(c=>l(c))}))(ZH(o.filterPromise,t)):Promise.resolve()}getFilterWrapper(e){const t=this.beans.colModel.getColDefCol(e);return t?this.cachedFilter(t)??null:null}setColDefPropertiesForDataType(e,t,n){const r=Jne(this.gos),i=this.getLocaleTextFunc(),o=a=>{const{filterParams:s}=e;e.filterParams=typeof s=="object"?{...s,...a}:a};switch(t.baseDataType){case"number":{r&&o({comparator:iBt});break}case"boolean":{o(r?{valueFormatter:a=>Ut(a.value)?i(String(a.value),a.value?"True":"False"):i("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(a,s)=>s,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(a,s)=>s===!1,numberOfInputs:0}]});break}case"date":{o(r?{valueFormatter:a=>{const s=n(a);return Ut(s)?s:i("blanks","(Blanks)")},treeList:!0,treeListFormatter:(a,s)=>{if(a==="NaN")return i("invalidDate","Invalid Date");if(s===1&&a!=null){const l=tRe[Number(a)-1];return i(l,eRe[l])}return a??i("blanks","(Blanks)")}}:{isValidDate:rRe});break}case"dateString":{const a=t.dateParser;o(r?{valueFormatter:s=>{const l=n(s);return Ut(l)?l:i("blanks","(Blanks)")},treeList:!0,treeListPathGetter:s=>{const l=a(s??void 0);return l?[String(l.getFullYear()),String(l.getMonth()+1),String(l.getDate())]:null},treeListFormatter:(s,l)=>{if(l===1&&s!=null){const c=tRe[Number(s)-1];return i(c,eRe[c])}return s??i("blanks","(Blanks)")}}:{comparator:(s,l)=>{const c=a(l);return l==null||c<s?-1:c>s?1:0},isValidDate:s=>typeof s=="string"&&rRe(a(s))});break}case"object":{r?o({valueFormatter:a=>{const s=n(a);return Ut(s)?s:i("blanks","(Blanks)")}}):e.filterValueGetter=a=>n({column:a.column,node:a.node,value:this.beans.valueSvc.getValue(a.column,a.node)});break}}}setColFilterActive(e,t,n,r){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",n)),e.dispatchColEvent("filterChanged",n,r)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear()}};function ZH(e,t){return e?new Dr(n=>{e.then(r=>{typeof r.setModel!="function"&&(ut(65),n()),(r.setModel(t)||Dr.resolve()).then(()=>n())})}):Dr.resolve()}function nRe(e){return e.getColDef().filter==="agGroupColumnFilter"}function rRe(e){return e instanceof Date&&!isNaN(e.getTime())}function aBt(e){return!!e.filterManager?.isAnyFilterPresent()}function sBt(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var lBt=class extends dt{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:r})=>this.onAdvFilterEnabledChanged(r),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:n}=this;this.alwaysPassFilter=n.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=n.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){this.warnAdvFilters();return}this.colFilter?.setFilterModel(e,t)}getFilterModel(){return this.colFilter?.getFilterModel()??{}}isColumnFilterPresent(){return!!this.colFilter?.isColumnFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggregateFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){pW(this.gos)&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:n,columns:r=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Dr.resolve()).then(()=>{const i={source:t,type:"filterChanged",columns:r};n&&eu(i,n),this.eventSvc.dispatchEvent(i),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!pW(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doAggregateFiltersPass(t,e.filterInstanceToSkip))}doesRowPassFilter(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doColumnFiltersPass(t,e.filterInstanceToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterActive(e){return!!this.colFilter?.isFilterActive(e)}getOrCreateFilterWrapper(e){return this.colFilter?.getOrCreateFilterWrapper(e)??null}getDefaultFloatingFilter(e){return this.colFilter.getDefaultFloatingFilter(e)}createFilterParams(e,t){return this.colFilter.createFilterParams(e,t)}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getFloatingFilterCompDetails(e,t){return this.colFilter?.getFloatingFilterCompDetails(e,t)}getCurrentFloatingFilterParentModel(e){return this.colFilter?.getCurrentFloatingFilterParentModel(e)}destroyFilter(e,t="api"){this.colFilter?.destroyFilter(e,t)}areFilterCompsDifferent(e,t){return!!this.colFilter?.areFilterCompsDifferent(e,t)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getColumnFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){ut(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advFilterModelUpdateQueue.forEach(e=>this.setAdvFilterModel(e)),this.advFilterModelUpdateQueue=[]}getColumnFilterModel(e){return this.colFilter?.getColumnFilterModel(e)}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setColumnFilterModel(e,t)??Promise.resolve()}setColDefPropertiesForDataType(e,t,n){this.colFilter?.setColDefPropertiesForDataType(e,t,n)}},cBt=class extends dt{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,n,r){e&&!e.isColumn||this.showPopup(e,i=>{this.popupSvc?.positionPopupUnderMouseEvent({column:e,type:n,mouseEvent:t,ePopup:i})},n,t.target,Gu(this.gos),r)}showMenuAfterButtonClick(e,t,n,r){if(e&&!e.isColumn)return;let i=-1,o="left";const a=Gu(this.gos);!a&&this.gos.get("enableRtl")&&(i=1,o="right");const s=a?void 0:4*i,l=a?void 0:4;this.showPopup(e,c=>{this.popupSvc?.positionPopupByComponent({type:n,eventSource:t,ePopup:c,nudgeX:s,nudgeY:l,alignSide:o,keepWithinBounds:!0,position:"under",column:e})},n,t,a,r)}showPopup(e,t,n,r,i,o){const a=e?this.createBean(new IK(e,"COLUMN_MENU")):void 0;if(this.activeMenu=a,!a?.hasFilter()||!e){pi(57);return}const s=Nr({tag:"div",cls:`ag-menu${i?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(s,{keydown:m=>this.trapFocusWithin(m,s)}),s.appendChild(a?.getGui());let l;const c=()=>a?.afterGuiDetached(),u=Ret(this.gos)?r??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,d=m=>{F$(e,!1,"contextMenu");const b=m instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),b&&r&&x0(r)&&bye(r)?.focus({preventScroll:!0}),c(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,n,e),o?.()},p=this.getLocaleTextFunc(),h=i&&n!=="columnFilter"?p("ariaLabelColumnMenu","Column Menu"):p("ariaLabelColumnFilter","Column Filter"),g=this.popupSvc?.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:d,positionCallback:()=>t(s),anchorToElement:u,ariaLabel:h});g&&(this.hidePopup=l=g.hideFunc),a.afterInit().then(()=>{t(s),a.afterGuiAttached({container:n,hidePopup:l})}),F$(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==Qe.TAB||e.defaultPrevented||Cd(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),zu(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:n??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},uBt=class extends dt{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t){if(!t)return;const n=e.getColDef(),{filterValueGetter:r}=n;return r?this.executeFilterValueGetter(r,t.data,e,t,n):this.beans.valueSvc.getValue(e,t)}executeFilterValueGetter(e,t,n,r,i){const{expressionSvc:o,valueSvc:a}=this.beans,s=Gn(this.gos,{data:t,node:r,column:n,colDef:i,getValue:a.getValueCallback.bind(a,r)});return typeof e=="function"?e(s):o?.evaluate(e,s)}},dBt={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},pBt=class extends Gt{constructor(){super(dBt,[Vf]),this.eFloatingFilterText=at}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`)}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})}refresh(e){this.init(e)}},Vnt=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e)}mapCustomOptions(){const{filterOptions:e}=this;e&&e.forEach(t=>{if(typeof t=="string")return;const n=[["displayKey"],["displayName"],["predicate","test"]],r=i=>i.some(o=>t[o]!=null)?!0:(ut(72,{keys:i}),!1);if(!n.every(r)){this.filterOptions=e.filter(i=>i===t)||[];return}this.customFilterOptions[t.displayKey]=t})}selectDefaultItem(e){const{filterOptions:t}=this;if(e.defaultOption)this.defaultOption=e.defaultOption;else if(t.length>=1){const n=t[0];typeof n=="string"?this.defaultOption=n:n.displayKey?this.defaultOption=n.displayKey:ut(73)}else ut(74)}getCustomOption(e){return this.customFilterOptions[e]}};function jN(e,t,n){return n==null?e.splice(t):e.splice(t,n)}function B$(e){return e==null||typeof e=="string"&&e.trim().length===0}function hBt(e){return e==="AND"||e==="OR"?e:"AND"}function fBt(e,t,n){if(e==null)return;const{predicate:r}=e;if(r!=null&&!t.some(i=>i==null))return r(t,n)}function gBt(e,t){let n=e.length;return n>t&&(e.splice(t),ut(78),n=t),n}var Gnt=class extends DK{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(e){const t=this.optionsFactory.getCustomOption(e);if(t){const{numberOfInputs:r}=t;return r??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:e==="inRange"?2:1}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,n)=>{const r=n===0?e:this.optionsFactory.defaultOption;t.setValue(r,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOperatorsOr:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areModelsEqual(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;const n=!e.operator,r=!t.operator;if(!n&&r||n&&!r)return!1;let o;if(n){const a=e,s=t;o=this.areSimpleModelsEqual(a,s)}else{const a=e,s=t;o=a.operator===s.operator&&Md(a.conditions,s.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return o}shouldRefresh(e){const t=this.getModel(),n=t?t.conditions??[t]:null,r=e.filterOptions?.map(o=>typeof o=="string"?o:o.displayKey)??this.getDefaultFilterOptions();return!(!(!n||n.every(o=>r.find(a=>a===o.type)!==void 0))||typeof e.maxNumConditions=="number"&&n&&n.length>e.maxNumConditions)}refresh(e){return!this.shouldRefresh(e)||!super.refresh(e)?!1:(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0)}setModelIntoUi(e){if(e.operator){const n=e;let r=n.conditions;r==null&&(r=[],ut(77));const i=gBt(r,this.maxNumConditions),o=this.getNumConditions();if(i<o)this.removeConditionsAndOperators(i);else if(i>o)for(let s=o;s<i;s++)this.createJoinOperatorPanel(),this.createOption();const a=n.operator==="OR";this.eJoinOperatorsAnd.forEach(s=>s.setValue(!a,!0)),this.eJoinOperatorsOr.forEach(s=>s.setValue(a,!0)),r.forEach((s,l)=>{this.eTypes[l].setValue(s.type,!0),this.setConditionIntoUi(s,l)})}else{const n=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(n.type,!0),this.setConditionIntoUi(n,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),Dr.resolve()}doesFilterPass(e){const t=this.getModel();if(t==null)return!0;const{operator:n}=t,r=[];if(n){const o=t;r.push(...o.conditions??[])}else r.push(t);return r[n&&n==="OR"?"some":"every"](o=>this.individualConditionPasses(e,o))}setParams(e){super.setParams(e),this.setNumConditions(e),this.defaultJoinOperator=hBt(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new Vnt,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(ut(79),t=1),this.maxNumConditions=t;let n=e.numAlwaysVisibleConditions??1;n<1&&(ut(80),n=1),n>t&&(ut(81),n=t),this.numAlwaysVisibleConditions=n}createOption(){const e=this.createManagedBean(new l1);this.eTypes.push(e),e.addCss("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());const t=this.createValueElement();this.eConditionBodies.push(t),this.eFilterBody.appendChild(t),this.putOptionsIntoDropdown(e),this.resetType(e);const n=this.getNumConditions()-1;this.forEachPositionInput(n,r=>this.resetInput(r)),this.addChangedListeners(e,n)}createJoinOperatorPanel(){const e=Nr({tag:"div",cls:"ag-filter-condition"});this.eJoinOperatorPanels.push(e);const t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),n=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);const r=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,i),this.resetJoinOperatorOr(n,r,i),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){const r=this.createManagedBean(new K_t);e.push(r);const i="ag-filter-condition-operator";return r.addCss(i),r.addCss(`${i}-${n}`),t.appendChild(r.getGui()),r}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;t.forEach(n=>{e.addOption(n)}),e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let n=0;n<this.getNumConditions();n++)this.isConditionUiComplete(n)?e=n:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const n=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<n){this.removeConditionsAndOperators(n+1);const r=e+1,i=n-r;i>0&&this.removeConditionsAndOperators(r,i),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((r,i)=>{const o=this.isConditionDisabled(i,e);r.setDisabled(o||this.filterListOptions.length<=1),i===1&&(nf(this.eJoinOperatorPanels[0],o),this.eJoinOperatorsAnd[0].setDisabled(o),this.eJoinOperatorsOr[0].setDisabled(o))}),this.eConditionBodies.forEach((r,i)=>{Nn(r,this.isConditionBodyVisible(i))});const n=(t??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(r=>{r.setValue(!n,!0)}),this.eJoinOperatorsOr.forEach(r=>{r.setValue(n,!0)}),this.forEachInput((r,i,o,a)=>{this.setElementDisplayed(r,i<a),this.setElementDisabled(r,this.isConditionDisabled(o,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:n,eConditionBodies:r,eJoinOperatorPanels:i,eJoinOperatorsAnd:o,eJoinOperatorsOr:a}=this;this.removeComponents(n,e,t),this.removeElements(r,e,t),this.removeValueElements(e,t);const s=Math.max(e-1,0);this.removeElements(i,s,t),this.removeComponents(o,s,t),this.removeComponents(a,s,t)}removeElements(e,t,n){jN(e,t,n).forEach(i=>Ps(i))}removeComponents(e,t,n){jN(e,t,n).forEach(i=>{Ps(i.getGui()),this.destroyBean(i)})}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){const{eFilterBody:t,eTypes:n}=this;let r;if(!this.isReadOnly()){const i=this.getInputs(0)[0];i instanceof rx&&this.isConditionBodyVisible(0)?r=i.getInputElement():r=n[0]?.getFocusableElement()}(r??t).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();const e=this.getModel();this.resetUiToActiveModel(e);let t=-1,n=-1,r=!1;const i=this.getJoinOperator();for(let a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))t===-1&&(t=a,n=a);else{const s=a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1),l=a<t;(s||l)&&(this.removeConditionsAndOperators(a,1),r=!0,l&&n--)}let o=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),o=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),o=!0),o&&this.updateConditionStatusesAndValues(n,i),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n}getPlaceholderText(e,t){let n=this.translate(e);if(typeof this.filterPlaceholder=="function"){const r=this.eTypes[t].getValue(),i=this.translate(r);n=this.filterPlaceholder({filterOptionKey:r,filterOption:i,placeholder:n})}else typeof this.filterPlaceholder=="string"&&(n=this.filterPlaceholder);return n}resetPlaceholder(){const e=this.getLocaleTextFunc();this.forEachInput((t,n,r,i)=>{if(!(t instanceof rx))return;const o=n===0&&i>1?"inRangeStart":n===0?"filterOoo":"inRangeEnd",a=n===0&&i>1?e("ariaFilterFromValue","Filter from value"):n===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");t.setInputPlaceholder(this.getPlaceholderText(o,r)),t.setInputAriaLabel(a)})}setElementValue(e,t,n){e instanceof rx&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){e instanceof Gt&&Nn(e.getGui(),t)}setElementDisabled(e,t){e instanceof Gt&&nf(e.getGui(),t)}attachElementOnChange(e,t){e instanceof rx&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,n)=>{this.forEachPositionTypeInput(n,t,e)})}forEachPositionInput(e,t){const n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){const r=this.getNumberOfInputs(t),i=this.getInputs(e);for(let o=0;o<i.length;o++){const a=i[o];a!=null&&n(a,o,e,r)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return this.getNumberOfInputs(t)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(n=>n==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinOperatorsAnd.forEach((t,n)=>this.resetJoinOperatorAnd(t,n,this.joinOperatorId+n)),this.eJoinOperatorsOr.forEach((t,n)=>this.resetJoinOperatorOr(t,n,this.joinOperatorId+n)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),Dr.resolve()}resetType(e){const n=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(n).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),n)}resetJoinOperator(e,t,n,r,i){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${i}`).setLabel(r),t)}updateJoinOperatorsDisabled(){const e=(t,n)=>this.updateJoinOperatorDisabled(t,n);this.eJoinOperatorsAnd.forEach(e),this.eJoinOperatorsOr.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const n=this.mapValuesFromModel(e);this.forEachInput((r,i,o)=>{o===t&&this.setElementValue(r,n[i]!=null?n[i]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,n,r)=>{this.setElementValue(t,n===0&&r===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,n=>{this.attachElementOnChange(n,this.listener)}))}individualConditionPasses(e,t){const n=this.getCellValue(e.node),r=this.mapValuesFromModel(t),i=this.optionsFactory.getCustomOption(t.type),o=fBt(i,r,n);return o??(n==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,n,t,e))}hasInvalidInputs(){return!1}},$nt=class extends Gnt{setParams(e){super.setParams(e),this.scalarFilterParams=e}evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:n,includeBlanksInGreaterThan:r,includeBlanksInLessThan:i,includeBlanksInRange:o}=this.scalarFilterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(n)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(r)return!0;break;case"lessThan":case"lessThanOrEqual":if(i)return!0;break;case"inRange":if(o)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,n){const r=n.type;if(!this.isValid(t))return r==="notEqual"||r==="notBlank";const i=this.comparator(),o=e[0]!=null?i(e[0],t):0;switch(r){case"equals":return o===0;case"notEqual":return o!==0;case"greaterThan":return o>0;case"greaterThanOrEqual":return o>=0;case"lessThan":return o<0;case"lessThanOrEqual":return o<=0;case"inRange":{const a=i(e[1],t);return this.scalarFilterParams.inRangeInclusive?o>=0&&a<=0:o>0&&a<0}case"blank":return B$(t);case"notBlank":return!B$(t);default:return ut(76,{filterModelType:r}),!0}}},Unt=class{constructor(e,t,n,r,i,o){this.alive=!0,this.context=e,this.eParent=i;const a=VLt(t,n,r);a&&a.newAgStackInstance().then(s=>{if(!this.alive){e.destroyBean(s);return}if(this.dateComp=s,!s)return;i.appendChild(s.getGui()),s?.afterGuiAttached?.();const{tempValue:l,disabled:c}=this;l&&s.setDate(l),c!=null&&s.setDisabled?.(c),o?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){Nn(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}},Xnt=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"],$ye=class{constructor(e,t,n){this.getLocaleTextFunc=e,this.optionsFactory=t,this.valueFormatter=n}getModelAsString(e){if(!e)return null;const t=e.operator!=null,n=this.getLocaleTextFunc();if(t){const r=e,o=(r.conditions??[]).map(s=>this.getModelAsString(s)),a=r.operator==="AND"?"andCondition":"orCondition";return o.join(` ${n(a,ztt[a])} `)}else{if(e.type==="blank"||e.type==="notBlank")return n(e.type,e.type);{const r=e,i=this.optionsFactory.getCustomOption(r.type),{displayKey:o,displayName:a,numberOfInputs:s}=i||{};return o&&a&&s===0?(n(o,a),a):this.conditionToString(r,i)}}}updateParams(e){this.optionsFactory=e.optionsFactory}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},Ynt=class extends $ye{constructor(e,t,n){super(t,n),this.dateFilterParams=e}conditionToString(e,t){const{type:n}=e,{numberOfInputs:r}=t||{},i=n=="inRange"||r===2,o=h0(e.dateFrom),a=h0(e.dateTo),s=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(i){const l=o!==null?WN(o,s):"null",c=a!==null?WN(a,s):"null";return`${l}-${c}`}return o!=null?WN(o,s):`${n}`}updateParams(e){super.updateParams(e),this.dateFilterParams=e.dateFilterParams}},iRe=1e3,oRe=1/0,mBt=class extends $nt{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=iRe,this.maxValidYear=oRe,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(t){super.afterGuiAttached(t),this.dateConditionFromComps[0].afterGuiAttached(t)}mapValuesFromModel(t){const{dateFrom:n,dateTo:r,type:i}=t||{};return[n&&h0(n)||null,r&&h0(r)||null].slice(0,this.getNumberOfInputs(i))}comparator(){return this.dateFilterParams.comparator??vBt}isValid(t){const n=this.dateFilterParams.isValidDate;return!n||n(t)}setParams(t){this.dateFilterParams=t,super.setParams(t);const n=(r,i)=>{if(t[r]!=null)if(isNaN(t[r]))ut(82,{param:r});else return t[r]==null?i:Number(t[r]);return i};this.minValidYear=n("minValidYear",iRe),this.maxValidYear=n("maxValidYear",oRe),this.minValidYear>this.maxValidYear&&ut(83),this.minValidDate=t.minValidDate?t.minValidDate instanceof Date?t.minValidDate:h0(t.minValidDate):null,this.maxValidDate=t.maxValidDate?t.maxValidDate instanceof Date?t.maxValidDate:h0(t.maxValidDate):null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&ut(84),this.filterModelFormatter=new Ynt(this.dateFilterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory)}createDateCompWrapper(t){const{beans:{userCompFactory:n,context:r,gos:i},dateFilterParams:o}=this,a=new Unt(r,n,o.colDef,Gn(i,{onDateChanged:()=>this.onUiChanged(),filterParams:o,location:"filter"}),t);return this.addDestroyFunc(()=>a.destroy()),a}setElementValue(t,n){t.setDate(n)}setElementDisplayed(t,n){t.setDisplayed(n)}setElementDisabled(t,n){t.setDisabled(n)}getDefaultFilterOptions(){return Xnt}createValueElement(){const t=Nr({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(t,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(t,this.eConditionPanelsTo,this.dateConditionToComps,"to"),t}createFromToElement(t,n,r,i){const o=Nr({tag:"div",cls:`ag-filter-${i} ag-filter-date-${i}`});n.push(o),t.appendChild(o),r.push(this.createDateCompWrapper(o))}removeValueElements(t,n){this.removeDateComps(this.dateConditionFromComps,t,n),this.removeDateComps(this.dateConditionToComps,t,n),jN(this.eConditionPanelsFrom,t,n),jN(this.eConditionPanelsTo,t,n)}removeDateComps(t,n,r){jN(t,n,r).forEach(o=>o.destroy())}isValidDateValue(t){if(t===null)return!1;const{minValidDate:n,maxValidDate:r,minValidYear:i,maxValidYear:o}=this;if(n){if(t<n)return!1}else if(t.getUTCFullYear()<i)return!1;if(r){if(t>r)return!1}else if(t.getUTCFullYear()>o)return!1;return!0}isConditionUiComplete(t){if(!super.isConditionUiComplete(t))return!1;let n=!0;return this.forEachInput((r,i,o,a)=>{o!==t||!n||i>=a||(n=n&&this.isValidDateValue(r.getDate()))}),n}areSimpleModelsEqual(t,n){return t.dateFrom===n.dateFrom&&t.dateTo===n.dateTo&&t.type===n.type}createCondition(t){const n=this.getConditionType(t),r={},i=this.getValues(t);return i.length>0&&(r.dateFrom=cp(i[0])),i.length>1&&(r.dateTo=cp(i[1])),{dateFrom:null,dateTo:null,filterType:this.filterType,type:n,...r}}resetPlaceholder(){const t=this.getLocaleTextFunc(),n=this.translate("dateFormatOoo"),r=t("ariaFilterValue","Filter Value");this.forEachInput(i=>{i.setInputPlaceholder(n),i.setInputAriaLabel(r)})}getInputs(t){const{dateConditionFromComps:n,dateConditionToComps:r}=this;return t>=n.length?[null,null]:[n[t],r[t]]}getValues(t){const n=[];return this.forEachPositionInput(t,(r,i,o,a)=>{i<a&&n.push(r.getDate())}),n}translate(t){return t==="lessThan"?super.translate("before"):t==="greaterThan"?super.translate("after"):super.translate(t)}getModelAsString(t){return this.filterModelFormatter.getModelAsString(t)??""}};function vBt(e,t){const n=t;return n<e?-1:n>e?1:0}var Knt=class extends Gt{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let n;t?n=e.conditions[0]:n=e,this.lastType=n.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const n=e;return this.isTypeEditable(n.type)}init(e){this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const n=new Vnt;this.optionsFactory=n,n.init(e.filterParams,this.getDefaultOptions());const r=n.defaultOption;t||(this.lastType=r),this.readOnly=!!e.filterParams.readOnly;const i=this.isTypeEditable(r);this.setEditable(i)}refresh(e){this.setSimpleParams(e)}hasSingleInput(e){const t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return t==null||t==1}isTypeEditable(e){const t=["inRange","empty","blank","notBlank"];return!!e&&!this.readOnly&&this.hasSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},bBt={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},yBt=class extends Knt{constructor(){super(bBt,[Vf]),this.eReadOnlyText=at,this.eDateWrapper=at}getDefaultOptions(){return Xnt}init(e){super.init(e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new Ynt(this.filterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory);const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}refresh(e){super.refresh(e),this.params=e,this.filterParams=e.filterParams,this.dateComp.updateParams(this.getDateComponentParams()),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const n=e?h0(e.dateFrom):null;this.dateComp.setDate(n),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){Nn(this.eDateWrapper,e),Nn(this.eReadOnlyText.getGui(),!e)}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||(super.setLastTypeFromModel(e),this.updateCompOnModelChange(e))}onDateChanged(){const e=this.dateComp.getDate(),t=cp(e);this.params.parentFilterInstance(n=>{if(n){const r=h0(t);n.onFloatingFilterChanged(this.lastType||null,r)}})}getDateComponentParams(){const{filterParams:e,column:t}=this.params,n=wye(e,this.defaultDebounceMs);return Gn(this.gos,{onDateChanged:Ml(this,this.onDateChanged.bind(this),n),filterParams:t.getColDef().filterParams,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:n,params:r}=this;this.dateComp=new Unt(e,t,r.column.getColDef(),this.getDateComponentParams(),n,i=>{i.setInputAriaLabel(this.getAriaLabel(r))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},MBt={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},CBt=class extends Gt{constructor(){super(MBt,[Vf]),this.eDateInput=at,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&yw(),t.type=n?"date":"text";const{minValidYear:r,maxValidYear:i,minValidDate:o,maxValidDate:a,buttons:s}=e.filterParams||{};if(o&&r&&ut(85),a&&i&&ut(86),o&&a){const[l,c]=[o,a].map(u=>u instanceof Date?u:h0(u));l&&c&&l.getTime()>c.getTime()&&ut(87)}o?o instanceof Date?t.min=WN(o):t.min=o:r&&(t.min=`${r}-01-01`),a?a instanceof Date?t.max=WN(a):t.max=a:i&&(t.max=`${i}-12-31`),this.isApply=e.location==="floatingFilter"&&!!s?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return h0(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(cp(e,!1))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}},Qnt=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"],Znt=class extends $ye{conditionToString(e,t){const{numberOfInputs:n}=t||{},{filter:r,filterTo:i,type:o}=e,a=o=="inRange"||n===2,s=this.formatValue.bind(this);return a?`${s(r)}-${s(i)}`:r!=null?s(r):`${o}`}};function Ahe(e){const{allowedCharPattern:t}=e??{};return t??null}var xBt=class extends $nt{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}refresh(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:super.refresh(e)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:r}=e||{};return[this.processValue(t),this.processValue(n)].slice(0,this.getNumberOfInputs(r))}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}setParams(e){this.numberFilterParams=e,super.setParams(e),this.filterModelFormatter=new Znt(this.getLocaleTextFunc.bind(this),this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return Qnt}setElementValue(e,t,n){const{numberFormatter:r}=this.numberFilterParams,i=!n&&r?r(t??null):t;super.setElementValue(e,i)}createValueElement(){const e=Ahe(this.numberFilterParams),t=Nr({tag:"div",cls:"ag-filter-body",role:"presentation"});return this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t}createFromToElement(e,t,n,r){const i=this.createManagedBean(r?new Im({allowedCharPattern:r}):new kK);i.addCss(`ag-filter-${n}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeValueElements(e,t){const n=r=>this.removeComponents(r,e,t);n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,r,i,o)=>{r<o&&t.push(this.processValue(this.stringToFloat(n.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}processValue(e){return e==null||isNaN(e)?null:e}stringToFloat(e){if(typeof e=="number")return e;let t=Tc(e);t!=null&&t.trim()===""&&(t=null);const n=this.numberFilterParams.numberParser;return n?n(t):t==null||t.trim()==="-"?null:parseFloat(t)}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>{if(!t.getInputElement().validity.valid){e=!0;return}}),e}},Jnt=class extends dt{constructor(e){super(),this.params=e,this.eInput=at,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new Im(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const n=r=>this.onValueChanged(r);this.addManagedListeners(t,{input:n,keydown:n})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t}){const{eInput:n}=this;n.setInputAriaLabel(e),t!==void 0&&n.setAutoComplete(t)}};function ert(e){const t=e?.trim();return t===""?e:t}var wBt={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},trt=class extends Knt{constructor(){super(...arguments),this.eFloatingFilterInputContainer=at,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(wBt)}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e)))}init(e){this.setupFloatingFilterInputService(e),super.init(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){this.params=e;const t=e.browserAutoComplete??!1,{inputSvc:n,defaultDebounceMs:r,readOnly:i}=this;if(n.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:t}),this.applyActive=L$(e.filterParams),!i){const o=wye(e.filterParams,r),a=Ml(this,this.syncUpWithParentFilter.bind(this),o);n.setValueChangedListener(a)}}refresh(e){super.refresh(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,n=t.getValue();Xi(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(n,!0)}syncUpWithParentFilter(e){const t=e.key===Qe.ENTER;if(this.applyActive&&!t)return;const{inputSvc:n,params:r}=this;let i=n.getValue();r.filterParams.trimInput&&(i=ert(i),n.setValue(i,!0)),r.parentFilterInstance(o=>{o?.onFloatingFilterChanged(this.lastType||null,i||null)})}setEditable(e){this.inputSvc.setEditable(e)}},SBt=class extends dt{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new kK),this.eTextInput=this.createManagedBean(new Im),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),n=this.eTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,r=>this.onValueChanged(r)),this.setupListeners(n,r=>this.onValueChanged(r))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},ABt=class extends trt{init(e){super.init(e),this.filterModelFormatter=new Znt(this.getLocaleTextFunc.bind(this),this.optionsFactory,e.filterParams?.numberFormatter)}refresh(e){Ahe(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return Qnt}createFloatingFilterInputService(e){return this.allowedCharPattern=Ahe(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Jnt({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new SBt)}},nrt=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],rrt=class extends $ye{conditionToString(e,t){const{numberOfInputs:n}=t||{},{filter:r,filterTo:i,type:o}=e;return o=="inRange"||n===2?`${r}-${i}`:r!=null?`${r}`:`${o}`}},OBt=class extends Gnt{constructor(){super("textFilter"),this.filterType="text",this.defaultFormatter=e=>e,this.defaultLowercaseFormatter=e=>e==null?null:e.toString().toLowerCase(),this.defaultMatcher=({filterOption:e,value:t,filterText:n})=>{if(n==null)return!1;switch(e){case"contains":return t.indexOf(n)>=0;case"notContains":return t.indexOf(n)<0;case"equals":return t===n;case"notEqual":return t!=n;case"startsWith":return t.indexOf(n)===0;case"endsWith":{const r=t.lastIndexOf(n);return r>=0&&r===t.length-n.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}setParams(e){this.textFilterParams=e,super.setParams(e),this.matcher=e.textMatcher||this.defaultMatcher,this.formatter=e.textFormatter||(e.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new rrt(this.getLocaleTextFunc.bind(this),this.optionsFactory)}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},r=this.getValuesWithSideEffects(e,!0);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){return this.getValuesWithSideEffects(e,!1)}getValuesWithSideEffects(e,t){const n=[];return this.forEachPositionInput(e,(r,i,o,a)=>{if(i<a){let s=Tc(r.getValue());t&&this.textFilterParams.trimInput&&(s=ert(s)??null,r.setValue(s,!0)),n.push(s)}}),n}getDefaultFilterOptions(){return nrt}createValueElement(){const e=Nr({tag:"div",cls:"ag-filter-body",role:"presentation"});return this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e}createFromToElement(e,t,n){const r=this.createManagedBean(new Im);r.addCss(`ag-filter-${n}`),r.addCss("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())}removeValueElements(e,t){const n=r=>this.removeComponents(r,e,t);n(this.eValuesFrom),n(this.eValuesTo)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:r}=e||{};return[t||null,n||null].slice(0,this.getNumberOfInputs(r))}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,n,r){const i=e.map(p=>this.formatter(p))||[],o=this.formatter(t),{api:a,colDef:s,column:l,context:c,textFormatter:u}=this.textFilterParams;if(n.type==="blank")return B$(t);if(n.type==="notBlank")return!B$(t);const d={api:a,colDef:s,column:l,context:c,node:r.node,data:r.data,filterOption:n.type,value:o,textFormatter:u};return i.some(p=>this.matcher({...d,filterText:p}))}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}},zBt=class extends trt{init(e){super.init(e),this.filterModelFormatter=new rrt(this.getLocaleTextFunc.bind(this),this.optionsFactory)}refresh(e){super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return nrt}createFloatingFilterInputService(){return this.createManagedBean(new Jnt)}};function TBt(e){return!!e.quickFilter?.isFilterPresent()}function EBt(e){return e.quickFilter?.getText()}function RBt(e){e.quickFilter?.resetCache()}var IBt=class extends dt{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",n=>this.setFilter(n.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:n,pivotResultCols:r}=this.beans,i=t.isPivotMode(),o=e?.getColumns(),a=t.getColDefCols();let s=(i&&!n.get("applyQuickFilterBeforePivotOrAgg")?r?.getPivotResultCols()?.list:a)??[];o&&(s=s.concat(o)),this.colsToUse=n.get("includeHiddenColumnsInQuickFilter")?s:s.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(n=>t?this.doesRowPassCache(e,n):this.doesRowPassNoCache(e,n))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return Ut(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){ut(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(n=>{const r=this.getTextForColumn(n,e);return Ut(r)&&r.indexOf(t)>=0})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.indexOf(t)>=0}doesRowPassMatcher(e,t){let n;e?(this.checkGenerateAggText(t),n=t.quickFilterAggregateText):n=this.getAggText(t);const{quickFilterParts:r,matcher:i}=this;return i(r,n)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let n=this.beans.filterValueSvc.getValue(e,t);const r=e.getColDef();if(r.getQuickFilterText){const i=Gn(this.gos,{value:n,node:t,data:t.data,column:e,colDef:r});n=r.getQuickFilterText(i)}return Ut(n)?n.toString().toUpperCase():null}getAggText(e){const t=[];return this.colsToUse.forEach(n=>{const r=this.getTextForColumn(n,e);Ut(r)&&t.push(r)}),t.join(`
`)}},PBt={moduleName:"ClientSideRowModelFilter",version:Jn,rowModels:["clientSide"],beans:[j6t]},BK={moduleName:"FilterCore",version:Jn,beans:[lBt],apiFunctions:{isAnyFilterPresent:aBt,onFilterChanged:sBt},css:[Y6t],dependsOn:[PBt]},Uye={moduleName:"FilterValue",version:Jn,beans:[uBt]},xw={moduleName:"ColumnFilter",version:Jn,beans:[oBt,cBt],dynamicBeans:{headerFilterCellCtrl:H6t},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:K6t,getColumnFilterInstance:Q6t,destroyFilter:Z6t,setFilterModel:J6t,getFilterModel:eBt,getColumnFilterModel:tBt,setColumnFilterModel:nBt,showColumnFilter:rBt},dependsOn:[BK,pM,Uye,Hnt]},DBt={moduleName:"CustomFilter",version:Jn,userComponents:{agReadOnlyFloatingFilter:pBt},dependsOn:[xw]},kBt={moduleName:"TextFilter",version:Jn,dependsOn:[xw],userComponents:{agTextColumnFilter:OBt,agTextColumnFloatingFilter:zBt}},LBt={moduleName:"NumberFilter",version:Jn,dependsOn:[xw],userComponents:{agNumberColumnFilter:xBt,agNumberColumnFloatingFilter:ABt}},_Bt={moduleName:"DateFilter",version:Jn,dependsOn:[xw],userComponents:{agDateColumnFilter:mBt,agDateInput:CBt,agDateColumnFloatingFilter:yBt}},NBt={moduleName:"QuickFilterCore",version:Jn,rowModels:["clientSide"],beans:[IBt],dependsOn:[BK,Uye]},FBt={moduleName:"QuickFilter",version:Jn,apiFunctions:{isQuickFilterPresent:TBt,getQuickFilter:EBt,resetQuickFilter:RBt},dependsOn:[NBt]},WBt={moduleName:"ExternalFilter",version:Jn,dependsOn:[BK]},U5=class{constructor(e){this.cellValueChanges=e}},bre=class extends U5{constructor(e,t,n,r){super(e),this.initialRange=t,this.finalRange=n,this.ranges=r}},qBt=10,aRe=class{constructor(e){this.actionStack=[],this.maxStackSize=e||qBt,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},BBt=class extends dt{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.activeCellEdit!==null&&y6(this.activeCellEdit,t),r=this.activeRowEdit!==null&&Uc(this.activeRowEdit,t);if(!(n||r||this.isPasting||this.isRangeInAction))return;const{rowPinned:o,rowIndex:a,column:s,oldValue:l,value:c}=e,u={rowPinned:o,rowIndex:a,columnId:s.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(u)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const n=e.get("undoRedoCellEditingLimit");if(n<=0)return;this.undoStack=new aRe(n),this.redoStack=new aRe(n),this.addListeners();const r=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:i=>{i.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:r,newColumnsLoaded:r,columnGroupOpened:r,columnRowGroupChanged:r,columnMoved:r,columnPinned:r,columnVisible:r,rowDragEnd:r}),t.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:n,redoStack:r}=this;t.dispatchEvent({type:"undoStarted",source:e});const i=this.undoRedo(n,r,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:i})}redo(e){const{eventSvc:t,undoStack:n,redoStack:r}=this;t.dispatchEvent({type:"redoStarted",source:e});const i=this.undoRedo(r,n,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:i})}undoRedo(e,t,n,r,i){if(!e)return!1;const o=e.pop();return!o||!o.cellValueChanges?!1:(this.processAction(o,a=>a[r],i),o instanceof bre?this.processRange(o.ranges||[o[n]]):this.processCell(o.cellValueChanges),t.push(o),!0)}processAction(e,t,n){e.cellValueChanges.forEach(r=>{const{rowIndex:i,rowPinned:o,columnId:a}=r,s={rowIndex:i,rowPinned:o},l=lp(this.beans,s);l.displayed&&l.setDataValue(a,t(r),n)})}processRange(e){let t;const n=this.beans.rangeSvc;n.removeAllCellRanges(!0),e.forEach((r,i)=>{if(!r)return;const o=r.startRow,a=r.endRow;i===e.length-1&&(t={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:r.startColumn.getColId()},this.setLastFocusedCell(t));const s={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnStart:r.startColumn,columns:r.columns};n.addCellRange(s)})}processCell(e){const t=e[0],{rowIndex:n,rowPinned:r}=t,i={rowIndex:n,rowPinned:r},o=lp(this.beans,i),a={rowPinned:t.rowPinned,rowIndex:o.rowIndex,columnId:t.columnId};this.setLastFocusedCell(a)}setLastFocusedCell(e){const{rowIndex:t,columnId:n,rowPinned:r}=e,{colModel:i,focusSvc:o,rangeSvc:a}=this.beans,s=i.getCol(n);if(!s)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(s);const c={rowIndex:t,column:s,rowPinned:r};o.setFocusedCell({...c,forceBrowserFocus:!0}),a?.setRangeToCell(c)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new U5(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const n=new U5(this.cellValueChanges);this.pushActionsToUndoStack(n)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new U5(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new bre(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:n}=this.beans;t&&r1(n)?e=new bre(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new U5(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1}})}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},jBt=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}",HBt={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},VBt=class extends Cw{constructor(){super(HBt,[Rm]),this.eCheckbox=at}init(e){this.params=e;const t=e.value??void 0,n=this.eCheckbox;n.setValue(t),n.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(n,{fieldValueChanged:i=>this.setAriaLabel(i.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),n=Q2e(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}},jK=class extends Cw{constructor(e){super({tag:"div",cls:"ag-cell-edit-wrapper",children:[e.getTemplate()]},e.getAgComponents()),this.cellEditorInput=e,this.eInput=at}init(e){this.params=e;const{cellStartedEdit:t,eventKey:n,suppressPreventDefault:r}=e,i=this.eInput;this.cellEditorInput.init(i,e);let o,a=!0;t?(this.focusAfterAttached=!0,n===Qe.BACKSPACE||n===Qe.DELETE?o="":n&&n.length===1?r?a=!1:o=n:(o=this.cellEditorInput.getStartValue(),n!==Qe.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,o=this.cellEditorInput.getStartValue()),a&&o!=null&&i.setStartValue(o),this.addManagedElementListeners(i.getGui(),{keydown:s=>{const{key:l}=s;(l===Qe.PAGE_UP||l===Qe.PAGE_DOWN)&&s.preventDefault()}})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;yw()||t.getFocusableElement().focus();const n=t.getInputElement();this.highlightAllOnFocus?n.select():this.cellEditorInput.setCaret?.()}focusIn(){const e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}},GBt={tag:"ag-input-date-field",ref:"eInput",cls:"ag-cell-editor"},$Bt=class{getTemplate(){return GBt}getAgComponents(){return[Ktt]}init(e,t){this.eInput=e,this.params=t;const{min:n,max:r,step:i}=t;n!=null&&e.setMin(n),r!=null&&e.setMax(r),i!=null&&e.setStep(i)}getValue(){const{eInput:e,params:t}=this,n=e.getDate();return!Ut(n)&&!Ut(t.value)?t.value:n??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return cp(e,!1)}},UBt=class extends jK{constructor(){super(new $Bt)}},XBt={tag:"ag-input-date-field",ref:"eInput",cls:"ag-cell-editor"},YBt=class{constructor(e){this.getDataTypeService=e}getTemplate(){return XBt}getAgComponents(){return[Ktt]}init(e,t){this.eInput=e,this.params=t;const{min:n,max:r,step:i}=t;n!=null&&e.setMin(n),r!=null&&e.setMax(r),i!=null&&e.setStep(i)}getValue(){const{params:e,eInput:t}=this,n=this.formatDate(t.getDate());return!Ut(n)&&!Ut(e.value)?e.value:e.parseValue(n??"")}getStartValue(){return cp(this.parseDate(this.params.value??void 0)??null,!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):h0(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):cp(e??null,!1)??void 0}},KBt=class extends jK{constructor(){super(new YBt(()=>this.beans.dataTypeSvc))}},QBt={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eTextArea",cls:"ag-large-text-input"}]},ZBt=class extends Cw{constructor(){super(QBt,[e5t]),this.eTextArea=at}init(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),e.value!=null&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(e){const t=e.key;(t===Qe.LEFT||t===Qe.UP||t===Qe.RIGHT||t===Qe.DOWN||e.shiftKey&&t===Qe.ENTER)&&e.stopPropagation()}afterGuiAttached(){const e=this.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){const e=this.eTextArea.getValue(),t=this.params;return!Ut(e)&&!Ut(t.value)?t.value:t.parseValue(e)}},JBt={tag:"ag-input-number-field",ref:"eInput",cls:"ag-cell-editor"},ejt=class{getTemplate(){return JBt}getAgComponents(){return[LK]}init(e,t){this.eInput=e,this.params=t;const{max:n,min:r,precision:i,step:o}=t;n!=null&&e.setMax(n),r!=null&&e.setMin(r),i!=null&&e.setPrecision(i),o!=null&&e.setStep(o);const a=e.getInputElement();t.preventStepping?e.addManagedElementListeners(a,{keydown:this.preventStepping}):t.showStepperButtons&&a.classList.add("ag-number-field-input-stepper")}preventStepping(e){(e.key===Qe.UP||e.key===Qe.DOWN)&&e.preventDefault()}getValue(){const{eInput:e,params:t}=this,n=e.getValue();if(!Ut(n)&&!Ut(t.value))return t.value;let r=t.parseValue(n);if(r==null)return r;if(typeof r=="string"){if(r==="")return null;r=Number(r)}return isNaN(r)?null:r}getStartValue(){return this.params.value}setCaret(){yw()&&this.eInput.getInputElement().focus({preventScroll:!0})}},tjt=class extends jK{constructor(){super(new ejt)}},njt={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eSelect",cls:"ag-cell-editor"}]},rjt=class extends Cw{constructor(){super(njt,[C6]),this.eSelect=at,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}init(e){this.focusAfterAttached=e.cellStartedEdit;const{eSelect:t,valueSvc:n,gos:r}=this,{values:i,value:o,eventKey:a}=e;if(Yi(i)){ut(58);return}this.startedByEnter=a!=null?a===Qe.ENTER:!1;let s=!1;i.forEach(d=>{const p={value:d},h=n.formatValue(e.column,null,d),g=h!=null;p.text=g?h:d,t.addOption(p),s=s||o===d}),s?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:u}=e;l!=null&&t.setPickerGap(l),u!=null&&t.setPickerMaxHeight(u),c!=null&&t.setPickerMaxWidth(c),r.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}},ijt={tag:"ag-input-text-field",ref:"eInput",cls:"ag-cell-editor"},ojt=class{getTemplate(){return ijt}getAgComponents(){return[Vf]}init(e,t){this.eInput=e,this.params=t;const n=t.maxLength;n!=null&&e.setMaxLength(n)}getValue(){const{eInput:e,params:t}=this,n=e.getValue();return!Ut(n)&&!Ut(t.value)?t.value:t.parseValue(n)}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){const e=this.eInput,t=e.getValue(),n=Ut(t)&&t.length||0;n&&e.getInputElement().setSelectionRange(n,n)}},sRe=class extends jK{constructor(){super(new ojt)}};function ajt(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function sjt(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function irt(e,t,n="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,n),"ensureVisible")}function ort(e,t,n){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,n),"ensureVisible")}function ljt(e,t,n=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,n),"ensureVisible")}function cjt(e){e.undoRedo?.undo("api")}function ujt(e){e.undoRedo?.redo("api")}function djt(e,t={}){const n=[];return e.rowRenderer.getCellCtrls(t.rowNodes,t.columns).forEach(r=>{const i=r.comp?.getCellEditor();i&&n.push(Mz(i))}),n}function pjt(e){const t=[];return e.rowRenderer.getAllCellCtrls().forEach(n=>{if(n.editing){const{cellPosition:r}=n;t.push(r)}}),t}function hjt(e,t=!1){e.editSvc?.stopAllEditing(t)}function fjt(e,t){const n=e.colModel.getCol(t.colKey);if(!n){ut(12,{colKey:t.colKey});return}const r={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:n};t.rowPinned==null&&ort(e,t.rowIndex),irt(e,t.colKey);const o=Qv(e,r);if(!o)return;const{focusSvc:a,gos:s,editSvc:l}=e,c=()=>{const d=$i(e),p=o.eGui;return d!==p&&!!p?.contains(d)},u=s.get("stopEditingWhenCellsLoseFocus")&&c();(u||!a.isCellFocused(r))&&a.setFocusedCell({...r,forceBrowserFocus:u,preventScrollOnBrowserFocus:!0}),l?.startRowOrCellEdit(o,t.key)}function gjt(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function mjt(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var vjt={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},bjt=class extends Cw{constructor(e){super(vjt),this.params=e}postConstruct(){vz(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,n=r=>{ghe(this.gos,r,t.node,t.column,!0)||t.onKeyDown(r)};this.addManagedElementListeners(e,{keydown:n})}},yjt=class extends dt{constructor(){super(...arguments),this.beanName="editSvc"}startEditing(e,t=null,n=!1,r=null){if(!e.isCellEditable()||e.editing)return!1;if(!e.comp)return e.onCompAttachedFuncs.push(()=>{this.startEditing(e,t,n,r)}),!0;const i=this.createCellEditorParams(e,t,n),o=e.column.getColDef(),a=AEe(this.beans.userCompFactory,o,i),s=a?.popupFromSelector!=null?a.popupFromSelector:!!o.cellEditorPopup,l=a?.popupPositionFromSelector!=null?a.popupPositionFromSelector:o.cellEditorPopupPosition;return lRe(e,!0,a),e.comp.setEditDetails(a,s,l,this.gos.get("reactiveCustomComponents")),this.eventSvc.dispatchEvent(e.createEvent(r,"cellEditingStarted")),!a?.params?.suppressPreventDefault}stopEditing(e,t=!1){if(e.onEditorAttachedFuncs=[],!e.editing)return!1;const{comp:n,column:r,rowNode:i}=e,{newValue:o,newValueExists:a}=Mjt(t,n),s=this.beans.valueSvc.getValueForDisplay(r,i).value;let l=!1;return a&&(l=Cjt(e,s,o,i,r)),lRe(e,!1,void 0),n.setEditDetails(),e.updateAndFormatValue(!1),e.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventSvc.dispatchEvent({...e.createEvent(null,"cellEditingStopped"),oldValue:s,newValue:o,valueChanged:l}),l}handleColDefChanged(e){const t=e.comp?.getCellEditor();if(t?.refresh){const{eventKey:n,cellStartedEdit:r}=e.editCompDetails.params,i=this.createCellEditorParams(e,n,r),o=e.column.getColDef(),a=AEe(this.beans.userCompFactory,o,i);t.refresh(a.params)}}setFocusOutOnEditor(e){if(!e.editing)return;const t=e.comp.getCellEditor();t&&t.focusOut&&t.focusOut()}setFocusInOnEditor(e){if(!e.editing)return;const t=e.comp,n=t.getCellEditor();n?.focusIn?n.focusIn():(e.focusCell(!0),e.onEditorAttachedFuncs.push(()=>t.getCellEditor()?.focusIn?.()))}createPopupEditorWrapper(e){return new bjt(e)}stopAllEditing(e=!1){this.beans.rowRenderer.getAllRowCtrls().forEach(t=>this.stopRowEditing(t,e))}stopRowEditing(e,t=!1){if(e.stoppingRowEdit)return;const n=e.getAllCellCtrls(),r=e.editing;e.stoppingRowEdit=!0;let i=!1;for(const o of n){const a=o.stopEditing(t);r&&!t&&!i&&a&&(i=!0)}i&&this.eventSvc.dispatchEvent(e.createRowEvent("rowValueChanged")),r&&this.beans.rowEditSvc?.setEditing(e,!1),e.stoppingRowEdit=!1}addStopEditingWhenGridLosesFocus(e){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;const t=n=>{const r=n.relatedTarget;if(ahe(r)===null){this.stopAllEditing();return}let i=e.some(o=>o.contains(r))&&vtt(this.gos,r);if(!i){const o=this.beans.popupSvc;i=!!o&&(o.getActivePopups().some(a=>a.contains(r))||o.isElementWithinCustomPopup(r))}i||this.stopAllEditing()};e.forEach(n=>this.addManagedElementListeners(n,{focusout:t}))}setInlineEditingCss(e){const t=e.editing||e.getAllCellCtrls().some(n=>n.editing);e.forEachGui(void 0,n=>{n.rowComp.toggleCss("ag-row-inline-editing",t),n.rowComp.toggleCss("ag-row-not-inline-editing",!t)})}isCellEditable(e,t){if(t.group){if(this.gos.get("treeData")){if(!t.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1}return e.isColumnFunc(t,e.colDef.editable)}startRowOrCellEdit(e,t,n=null){return e.comp?this.gos.get("editType")==="fullRow"?this.beans.rowEditSvc?.startEditing(e.rowCtrl,t,e)??!1:this.startEditing(e,t,!0,n):(e.onCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(e,t,n)}),!0)}stopRowOrCellEdit(e,t=!1,n=!1,r=!1){this.gos.get("editType")==="fullRow"?this.stopRowEditing(e.rowCtrl,t):this.stopEditing(e,t),n||this.navigateAfterEdit(r,e.cellPosition)}createCellEditorParams(e,t,n){const{column:r,rowNode:i,cellPosition:{rowIndex:o}}=e,{valueSvc:a,gos:s}=this.beans;return Gn(s,{value:a.getValueForDisplay(r,i).value,eventKey:t,column:r,colDef:r.getColDef(),rowIndex:o,node:i,data:i.data,cellStartedEdit:n,onKeyDown:e.onKeyDown.bind(e),stopEditing:this.stopRowOrCellEdit.bind(this,e,!1),eGridCell:e.eGui,parseValue:l=>a.parseValue(r,i,l,e.value),formatValue:e.formatValue.bind(e)})}navigateAfterEdit(e,t){if(this.gos.get("enterNavigatesVerticallyAfterEdit")){const r=e?Qe.UP:Qe.DOWN;this.beans.navigation?.navigateToNextCell(null,r,t,!1)}}};function lRe(e,t,n){e.editCompDetails=n,e.editing!==t&&(e.editing=t)}function Mjt(e,t){const n={newValueExists:!1};if(e)return n;const r=t.getCellEditor();return!r||r.isCancelAfterEnd&&r.isCancelAfterEnd()?n:{newValue:r.getValue(),newValueExists:!0}}function Cjt(e,t,n,r,i){if(n===t)return!1;e.suppressRefreshCell=!0;const o=r.setDataValue(i,n,"edit");return e.suppressRefreshCell=!1,o}var xjt=class extends dt{constructor(){super(...arguments),this.beanName="rowEditSvc"}startEditing(e,t=null,n=null,r=null){if(e.editing)return!1;let i=!0,o=!1;const{editSvc:a}=this.beans;return e.getAllCellCtrls().forEach(s=>{const l=s===n;l?i=a?.startEditing(s,t,l,r)??!1:a?.startEditing(s,null,l,r),o||(o=s.editing)}),o&&this.setEditing(e,!0),i}setEditing(e,t){e.editing=t,e.forEachGui(void 0,r=>r.rowComp.toggleCss("ag-row-editing",t));const n=t?e.createRowEvent("rowEditingStarted"):e.createRowEvent("rowEditingStopped");this.eventSvc.dispatchEvent(n)}},hM={moduleName:"EditCore",version:Jn,beans:[yjt,xjt],apiFunctions:{getCellEditorInstances:djt,getEditingCells:pjt,stopEditing:hjt,startEditingCell:fjt},dependsOn:[pM],css:[jBt]},wjt={moduleName:"UndoRedoEdit",version:Jn,beans:[BBt],apiFunctions:{undoCellEditing:cjt,redoCellEditing:ujt,getCurrentUndoSize:gjt,getCurrentRedoSize:mjt},dependsOn:[hM]},Sjt={moduleName:"TextEditor",version:Jn,userComponents:{agCellEditor:sRe,agTextCellEditor:sRe},dependsOn:[hM]},Ajt={moduleName:"NumberEditor",version:Jn,userComponents:{agNumberCellEditor:{classImp:tjt,params:{suppressPreventDefault:!0}}},dependsOn:[hM]},Ojt={moduleName:"DateEditor",version:Jn,userComponents:{agDateCellEditor:UBt,agDateStringCellEditor:KBt},dependsOn:[hM]},zjt={moduleName:"CheckboxEditor",version:Jn,userComponents:{agCheckboxCellEditor:VBt},dependsOn:[hM]},Tjt={moduleName:"SelectEditor",version:Jn,userComponents:{agSelectCellEditor:rjt},dependsOn:[hM]},Ejt={moduleName:"LargeTextEditor",version:Jn,userComponents:{agLargeTextCellEditor:ZBt},dependsOn:[hM]},Rjt={moduleName:"CustomEditor",version:Jn,dependsOn:[hM]},Ijt=class extends dt{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,Sx(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),pye(e))}createColumns(e,t){const n=()=>{Tb(this.beans,this.columns?.tree),this.columns=null},r=e.treeDepth,o=(this.columns?.treeDepth??-1)==r,a=this.generateSelectionCols();if(dye(a,this.columns?.list??[])&&o)return;n();const{colGroupSvc:l}=this.beans,c=l?.findDepth(e.tree)??0,u=l?.balanceTreeForAutoCols(a,c)??[];this.columns={list:a,tree:u,treeDepth:c,map:{}},t(p=>{if(!p)return null;const h=p.filter(g=>!m3(g));return[...a,...h]})}updateColumns(e){const t=Sx(e.source);this.columns?.list.forEach(n=>{const r=this.createSelectionColDef(e.currentValue);n.setColDef(r,null,t),m0(this.beans,{state:[{...r,colId:n.getColId()}]},t)})}getColumn(e){return this.columns?.list.find(t=>hye(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,n=e.get("rowSelection");if(typeof n!="object"||!Kp(e))return!1;const r=(t.autoColSvc?.getColumns()?.length??0)>0;if(n.checkboxLocation==="autoGroupColumn"&&r)return!1;const i=!!LO(n),o=KG(n);return i||o}createSelectionColDef(e){const{gos:t}=this.beans,n=e??t.get("selectionColumnDef"),r=t.get("enableRtl"),{rowSpan:i,spanRows:o,...a}=n??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:r?"right":"left",comparator(s,l,c,u){const d=c.isSelected(),p=u.isSelected();return d===p?0:d?1:-1},editable:!1,suppressFillHandle:!0,pinned:null,...a,colId:qet,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const n=new g3(e,null,t,!1);return this.createBean(n),[n]}onSelectionOptionsChanged(e,t,n){const r=t&&typeof t!="string"?LO(t):void 0,i=e&&typeof e!="string"?LO(e):void 0,o=r!==i,a=t&&typeof t!="string"?KG(t):void 0,s=e&&typeof e!="string"?KG(e):void 0,l=a!==s,c=hW(e),u=hW(t);(o||l||c!==u)&&this.beans.colModel.refreshAll(n)}destroy(){Tb(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,n){if(!this.columns?.list.length)return;const r=e.length+t.length+n.length;if(r===0)return;const i=this.columns.list[0];if(!i.isVisible())return;const o=()=>{let l;switch(i.pinned){case"left":case!0:l=e;break;case"right":l=n;break;default:l=t}l&&Ou(l,i)};(this.beans.rowNumbersSvc?.getColumn(cye)?2:1)===r&&o()}};function Pjt(e,t){if(!t.nodes.every(a=>a.rowPinned&&!b6(a)?(ut(59),!1):a.id===void 0?(ut(60),!1):!0))return;const{nodes:r,source:i,newValue:o}=t;e.selectionSvc?.setNodesSelected({nodes:r,source:i??"api",newValue:o})}function Djt(e,t,n="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:n,selectAll:t})}function kjt(e,t,n="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:n,selectAll:t})}function Ljt(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function _jt(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function Njt(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function Fjt(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function Wjt(e){return e.selectionSvc?.getSelectedNodes()??[]}function qjt(e){return e.selectionSvc?.getSelectedRows()??[]}var Bjt=class extends Xtt{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=tP(e),this.groupSelectsDescendants=yz(e),this.groupSelectsFiltered=z$(e)==="filteredDescendants",this.masterSelectsDetail=CEe(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=yz(e),n=tP(e),r=z$(e)==="filteredDescendants";this.masterSelectsDetail=CEe(e)==="detail",(t!==this.groupSelectsDescendants||r!==this.groupSelectsFiltered||n!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=r,this.mode=n)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,n){if(this.isRowSelectionBlocked(t))return 0;const r=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,n);return r==null?0:(this.selectionCtx.selectAll=!1,"select"in r?(r.reset?this.resetNodes():this.selectRange(r.deselect,!1,n),this.selectRange(r.select,!0,n)):this.setNodesSelected({nodes:[r.node],newValue:r.newValue,clearSelection:r.clearSelection,keepDescendants:r.keepDescendants,event:e,source:n}))}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:n,nodes:r,event:i,source:o,keepDescendants:a=!1}){if(!Kp(this.gos)&&e)return ut(132),0;if(r.length===0)return 0;if(r.length>1&&!this.isMultiSelect())return ut(130),0;let s=0;for(let l=0;l<r.length;l++){const c=r[l],u=mE(c),d=this.groupSelectsFiltered&&u.group;if(u.rowPinned&&!b6(u)){ut(59);continue}if(u.id===void 0){ut(60);continue}d||this.selectRowNode(u,e,i,o)&&(this.detailSelection.delete(u.id),s++),this.groupSelectsDescendants&&u.childrenAfterGroup?.length&&(s+=this.selectChildren(u,e,o))}return n||(r.length===1&&o==="api"&&this.selectionCtx.setRoot(mE(r[0])),e&&(t||!this.isMultiSelect())&&(s+=this.clearOtherNodes(mE(r[0]),a,o)),s>0&&(this.updateGroupsFromChildrenSelections(o),this.dispatchSelectionChanged(o))),s}selectRange(e,t,n){let r=0;return e.forEach(i=>{const o=mE(i);if(o.group&&this.groupSelectsDescendants)return;this.selectRowNode(o,t,void 0,n)&&r++}),r>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n)),r}selectChildren(e,t,n){const r=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return r?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:n,nodes:r}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((n,r)=>{e(n)&&t.set(r,n)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:n,rowModel:r}=this.beans;if(!sa(n))return!1;const i=r.rootNode;if(!i)return!1;t||(t=new Cz(!0,i),t.active=!1);let o=!1;return t.forEachChangedNodeDepthFirst(a=>{if(a!==i){const s=this.calculateSelectedFromChildren(a);o=this.selectRowNode(a,s===null?!1:s,void 0,e)||o}}),o}clearOtherNodes(e,t,n){const r=new Map;let i=0;return this.selectedNodes.forEach(o=>{const a=o.id==e.id;if((t?!Hjt(e,o):!0)&&!a){const l=this.selectedNodes.get(o.id);i+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:n}),this.groupSelectsDescendants&&o.parent&&r.set(o.parent.id,o.parent)}}),r.forEach(o=>{const a=this.calculateSelectedFromChildren(o);this.selectRowNode(o,a===null?!1:a,void 0,n)}),i}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new vp(this.beans);return t.id=e.id,t.data=e.data,t.__daemon=!0,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!sa(e))return;const n=t.getTopLevelNodes();if(n===null)return;const r=[];function i(o){for(let a=0,s=o.length;a<s;a++){const l=o[a];l.isSelected()?r.push(l):l.group&&l.childrenAfterGroup&&i(l.childrenAfterGroup)}}return i(n),r}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const n=sa(this.gos);let r=!1;const i=o=>{const a=this.selectRowNode(mE(o),!1,void 0,e);r||(r=a)};if(t==="currentPage"||t==="filtered"){if(!n){pi(102);return}this.getNodesToSelect(t).forEach(i)}else this.selectedNodes.forEach(i),this.reset(e);if(this.selectionCtx.selectAll=!1,n&&this.groupSelectsDescendants){const o=this.updateGroupsFromChildrenSelections(e);r||(r=o)}r&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,n=0;return this.getNodesToSelect(e).forEach(r=>{this.groupSelectsDescendants&&r.group||(r.isSelected()?t++:r.selectable&&n++)}),{selectedCount:t,notSelectedCount:n}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:n}=this.getSelectedCounts(e);return art(t,n)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],n=i=>t.push(i);if(e==="currentPage")return this.forEachNodeOnPage(i=>{if(!i.group){n(i);return}if(!i.expanded&&!i.footer){const o=a=>{n(a),a.childrenAfterFilter?.forEach(o)};o(i);return}this.groupSelectsDescendants||n(i)}),t;const r=this.beans.rowModel;return e==="filtered"?(r.forEachNodeAfterFilter(n),t):(r.forEachNode(n),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:n}=this.beans,r=t.getFirstRow(),i=t.getLastRow();for(let o=r;o<=i;o++){const a=n.getRow(o);a&&e(a)}}selectAllRowNodes(e){const{gos:t,selectionCtx:n}=this;if(!Kp(t)){ut(132);return}if(lye(t)&&!By(t)){ut(130);return}if(!this.canSelectAll())return;const{source:r,selectAll:i}=e;let o=!1;if(this.getNodesToSelect(i).forEach(a=>{const s=this.selectRowNode(mE(a),!0,void 0,r);o||(o=s)}),n.selectAll=!0,sa(t)&&this.groupSelectsDescendants){const a=this.updateGroupsFromChildrenSelections(r);o||(o=a)}o&&this.dispatchSelectionChanged(r)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t){if(!Array.isArray(e)){pi(103);return}const n=new Set(e),r=[];this.beans.rowModel.forEachNode(i=>{n.has(i.id)&&r.push(i)}),this.setNodesSelected({newValue:!0,nodes:r,source:t})}canSelectAll(){const{gos:e}=this.beans;return!!sa(e)}updateSelectable(e){const{gos:t,rowModel:n}=this.beans;if(!Kp(t))return;const r="selectableChanged",i=e!==void 0,o=sa(t)&&this.groupSelectsDescendants,a=[],s=l=>{if(i&&!l.group)return;if(o&&l.group){const u=l.childrenAfterGroup?.some(d=>d.selectable)??!1;this.setRowSelectable(l,u,!0);return}!this.updateRowSelectable(l,!0)&&l.isSelected()&&a.push(l)};if(o){if(e===void 0){const l=n.rootNode;e=l?new Cz(!1,l):void 0}e?.forEachChangedNodeDepthFirst(s,!i,!i)}else n.forEachNode(s);a.length&&this.setNodesSelected({nodes:a,newValue:!1,source:r}),!i&&o&&this.updateGroupsFromChildrenSelections?.(r)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const n=e.detailNode?.detailGridInfo?.api;if(!n)return;const r=jjt(n);if(e.isSelected()!==r&&this.selectRowNode(e,r,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),!r){const o=this.detailSelection.get(e.id)??new Set;for(const a of n.getSelectedNodes())o.add(a.id);this.detailSelection.set(e.id,o)}}setDetailSelectionState(e,t,n){if(this.masterSelectsDetail){if(!By(t)){ut(269);return}switch(e.isSelected()){case!0:{n.selectAll();break}case!1:{n.deselectAll();break}case void 0:{const r=this.detailSelection.get(e.id);if(r){const i=[];for(const o of r){const a=n.getRowNode(o);a&&i.push(a)}n.setNodesSelected({nodes:i,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function mE(e){return b6(e)?e.pinnedSibling:e.footer?e.sibling:e}function jjt(e){let t=0,n=0;return e.forEachNode(r=>{r.isSelected()?t++:r.selectable&&n++}),art(t,n)}function art(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function Hjt(e,t){let n=t.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}var srt={moduleName:"SharedRowSelection",version:Jn,beans:[Ijt],apiFunctions:{setNodesSelected:Pjt,selectAll:Djt,deselectAll:kjt,selectAllFiltered:Ljt,deselectAllFiltered:_jt,selectAllOnCurrentPage:Njt,deselectAllOnCurrentPage:Fjt,getSelectedNodes:Wjt,getSelectedRows:qjt}},Vjt={moduleName:"RowSelection",version:Jn,rowModels:["clientSide","infinite","viewport"],beans:[Bjt],dependsOn:[srt]};function Gjt(e){e.expansionSvc?.expandAll(!0)}function $jt(e){e.expansionSvc?.expandAll(!1)}function Ujt(e){const t=Pm(e),n=vD(e);t?t.onRowHeightChanged():n&&n.onRowHeightChanged()}function Xjt(e,t,n){const r=vD(e);if(r){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){pi(238);return}r.setRowCount(t,n);return}pi(28);return}const i=qK(e);if(i){i.setRowCount(t,n);return}}function Yjt(e){return Au(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function Kjt(e){return e.rowModel.isLastRowIndexKnown()}var lrt={moduleName:"CsrmSsrmSharedApi",version:Jn,apiFunctions:{expandAll:Gjt,collapseAll:$jt,onRowHeightChanged:Ujt}},crt={moduleName:"SsrmInfiniteSharedApi",version:Jn,apiFunctions:{setRowCount:Xjt,getCacheBlockState:Yjt,isLastRowIndexKnown:Kjt}},Qjt=class extends dt{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";return typeof e=="function"&&(e=e()),e.map(r=>{if(!r){pi(18),t||pi(20);return}if(this.isGridApi(r))return r;const i=r;return"current"in i?i.current?.api:(i.api||pi(19),i.api)}).filter(r=>!!r&&!r.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){this.consuming||this.getAlignedGridApis().forEach(t=>{t.isDestroyed()||t.dispatchEvent(e)})}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const n=[];return e.columns?e.columns.forEach(r=>{n.push(t(r))}):e.column&&n.push(t(e.column)),n}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":ut(21);break}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;t&&e.columnGroups.forEach(n=>{let r=null;n&&(r=t.getProvidedColGroup(n.getGroupId())),!(n&&!r)&&t.setColumnGroupOpened(r,n.isExpanded(),"alignedGridChanged")})}processColumnEvent(e){const t=e.column;let n=null;const r=this.beans,{colResize:i,ctrlsSvc:o,colModel:a}=r;if(t&&(n=a.getColDefCol(t.getColId())),t&&!n)return;const s=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const d=e.api.getColumnState().map(p=>({colId:p.colId}));m0(r,{state:d,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const d=e.api.getColumnState().map(p=>({colId:p.colId,hide:p.hide}));m0(r,{state:d},"alignedGridChanged")}break;case"columnPinned":{const d=e.api.getColumnState().map(p=>({colId:p.colId,pinned:p.pinned}));m0(r,{state:d},"alignedGridChanged")}break;case"columnResized":{const u=e,d={};s.forEach(p=>{d[p.getId()]={key:p.getColId(),newWidth:p.getActualWidth()}}),u.flexColumns?.forEach(p=>{d[p.getId()]&&delete d[p.getId()]}),i?.setColumnWidths(Object.values(d),!1,u.finished,"alignedGridChanged");break}}const c=o.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(u=>{u.setGridOption("alwaysShowVerticalScroll",c)})}},Zjt={moduleName:"AlignedGrids",version:Jn,beans:[Qjt]},Jjt=class extends Utt{constructor(){super(...arguments),this.beanName="csrmNodeSvc"}},yre=class{constructor(){this.removals=new Set,this.updates=new Set,this.adds=new Set}remove(e){this.adds.delete(e)||(this.updates.delete(e),this.removals.add(e))}update(e){this.adds.has(e)||this.updates.add(e)}add(e){this.adds.add(e)}};function eHt(e){if(Yi(e.childrenAfterSort))return;const t=e.childrenAfterSort;for(let n=0;n<t.length;n++){const r=t[n],i=n===0,o=n===e.childrenAfterSort.length-1;r.setFirstChild(i),r.lastChild!==o&&(r.lastChild=o,r.dispatchRowEvent("lastChildChanged")),r.childIndex!==n&&(r.childIndex=n,r.dispatchRowEvent("childIndexChanged"))}}function urt(e){e.sibling&&(e.sibling.childrenAfterSort=e.childrenAfterSort),eHt(e)}var tHt=class extends dt{constructor(){super(...arguments),this.beanName="sortStage",this.refreshProps=new Set(["postSortRows","groupDisplayType","accentedSort"]),this.step="sort"}execute(e){const t=this.beans,n=t.sortSvc.getSortOptions(),r=Ut(n)&&n.length>0,i=r&&!!e.changedRowNodes&&this.gos.get("deltaSort"),o=n.some(({column:a})=>Yg(t.gos)?a.isPrimary()&&a.isRowGroupActive():!!a.getColDef().showRowGroup);this.sort(t,n,r,i,e.changedRowNodes,e.changedPath,o)}sort(e,t,n,r,i,o,a){const{gos:s,colModel:l,rowGroupColsSvc:c,rowNodeSorter:u,rowRenderer:d,showRowGroupCols:p}=e,h=s.get("groupMaintainOrder"),g=l.getCols().some(C=>C.isRowGroupActive()),m=l.isPivotMode(),b=s.getCallback("postSortRows");let y=!1;const M=C=>{const x=m&&C.leafGroup,w=h&&g&&!C.leafGroup&&!a;let S;if(w){const z=c?.columns?.[C.level+1]?.getSort()===null,O=C.childrenAfterAggFilter.slice(0);if(C.childrenAfterSort&&!z){const T={};C.childrenAfterSort.forEach((R,P)=>{T[R.id]=P}),O.sort((R,P)=>(T[R.id]??0)-(T[P.id]??0))}S=O}else!n||x?S=C.childrenAfterAggFilter.slice(0):r&&i?S=nHt(u,C,i,o,t):S=u.doFullSort(C.childrenAfterAggFilter,t);if(y||(y=C.childrenAfterSort?.[0]!==S[0]),C.childrenAfterSort=S,urt(C),b){const A={nodes:C.childrenAfterSort};b(A)}};if(o?.forEachChangedNodeDepthFirst(M),y&&this.gos.get("groupHideOpenParents")){const C=p?.getShowRowGroupCols();C?.length&&d.refreshCells({columns:C,force:!0})}}};function nHt(e,t,n,r,i){const o=t.childrenAfterAggFilter,a=t.childrenAfterSort;if(!a)return e.doFullSort(o,i);const s=new Set,l=[],{updates:c,adds:u}=n;for(let p=0,h=o.length;p<h;++p){const g=o[p];c.has(g)||u.has(g)||r&&!r.canSkip(g)?l.push({currentPos:l.length,rowNode:g}):s.add(g.id)}const d=a.filter(p=>s.has(p.id)).map((p,h)=>({currentPos:h,rowNode:p}));return l.sort((p,h)=>e.compareRowNodes(i,p,h)),rHt(e,i,l,d)}function rHt(e,t,n,r){const i=[];let o=0,a=0;const s=n.length,l=r.length;for(;o<s&&a<l;){const c=n[o],u=r[a],d=e.compareRowNodes(t,c,u);let p;d<0?(p=c,++o):(p=u,++a),i.push(p.rowNode)}for(;o<s;)i.push(n[o++].rowNode);for(;a<l;)i.push(r[a++].rowNode);return i}var iHt=class extends dt{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowsToDisplay=[],this.lastHighlightedRow=null,this.started=!1,this.isRefreshingModel=!1,this.rowNodesCountReady=!1,this.rowCountReady=!1,this.onRowHeightChanged_debounced=Ml(this,this.onRowHeightChanged.bind(this),100)}wireBeans(e){this.colModel=e.colModel,this.valueCache=e.valueCache,this.filterStage=e.filterStage,this.sortStage=e.sortStage,this.flattenStage=e.flattenStage,this.groupStage=e.groupStage,this.aggStage=e.aggStage,this.pivotStage=e.pivotStage,this.filterAggStage=e.filterAggStage}postConstruct(){this.orderedStages=[this.groupStage,this.filterStage,this.pivotStage,this.aggStage,this.sortStage,this.filterAggStage,this.flattenStage].filter(r=>!!r);const e=this.refreshModel.bind(this,{step:"group"}),t=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:t,columnRowGroupChanged:e,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:e,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new vp(this.beans);const n=this.getNewNodeManager();this.nodeManager=n,n.activate(this.rootNode)}getNewNodeManager(){const{gos:e,beans:t}=this;switch(Pet(e)){case"treeNested":return t.csrmChildrenTreeNodeSvc??t.csrmNodeSvc;case"treePath":return t.csrmPathTreeNodeSvc??t.csrmNodeSvc;default:return t.csrmNodeSvc}}addPropertyListeners(){const e=["treeData","treeDataChildrenField",...this.orderedStages.flatMap(({refreshProps:t})=>[...t])];this.addManagedPropertyListeners(e,t=>{const n=t.changeSet?.properties;n&&this.onPropChange(n)}),this.addManagedPropertyListener("rowData",()=>this.onPropChange(["rowData"])),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,n,r){let i,o=!1;do{i=!1;const a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(a,n),c=Math.min(s,r);for(let u=l;u<=c;u++){const d=this.getRow(u);if(d.rowHeightEstimated){const p=bd(this.beans,d);d.setRowHeight(p.height),i=!0,o=!0}}i&&this.setRowTopAndRowIndex()}while(i);return o}onPropChange(e){if(!this.rootNode)return;const t=this.gos,n=new Set(e),r={step:"nothing",changedProps:n},i=n.has("rowData"),o=this.nodeManager,a=this.getNewNodeManager(),s=o!==a||i&&n.has("treeData")&&t.get("treeData")||n.has("treeDataChildrenField")&&t.get("treeData");let l;if((s||i)&&(l=t.get("rowData"),l!=null&&!Array.isArray(l)&&(l=null,ut(1))),s&&(i||(l=o?.extractRowData()??l),o!==a&&(o?.deactivate(),this.nodeManager=a),a.activate(this.rootNode)),l)if(!s&&!this.isEmpty()&&l.length>0&&t.exists("getRowId")&&!t.get("resetRowDataOnUpdate"))r.keepRenderedRows=!0,r.animate=!this.gos.get("suppressAnimationFrame"),r.changedRowNodes=new yre,a.setImmutableRowData(r,l);else{r.rowDataUpdated=!0,r.newData=!0;const{selectionSvc:u,pinnedRowModel:d}=this.beans;u?.reset("rowDataChanged"),d?.isManual()&&d.reset(),this.rowNodesCountReady=!0,a.setNewRowData(l)}if(r.rowDataUpdated)r.step="group";else if(r.step==="nothing"){for(const{refreshProps:c,step:u}of this.orderedStages)if(e.some(d=>c.has(d))){r.step=u;break}}r.step!=="nothing"&&this.refreshModel(r)}setRowTopAndRowIndex(){const{beans:e,rowsToDisplay:t}=this,n=e.environment.getDefaultRowHeight();let r=0;const i=new Set,o=Uu(this.gos,"normal");for(let a=0,s=t.length;a<s;++a){const l=t[a];if(l.id!=null&&i.add(l.id),l.rowHeight==null){const c=bd(e,l,o,n);l.setRowHeight(c.height,c.estimated)}l.setRowTop(r),l.setRowIndex(a),r+=l.rowHeight}return i}clearRowTopAndRowIndex(e,t){const n=e.active,r=o=>{o&&o.id!=null&&!t.has(o.id)&&o.clearRowTopAndRowIndex()},i=o=>{if(o!==null&&(r(o),r(o.detailNode),r(o.sibling),o.hasChildren()&&o.childrenAfterGroup)){const a=o.level==-1;n&&!a&&!o.expanded||o.childrenAfterGroup.forEach(i)}};i(this.rootNode)}clearHighlight(){const e=this.lastHighlightedRow;e&&(e.highlighted=null,e.dispatchRowEvent("rowHighlightChanged"),this.lastHighlightedRow=null)}highlightRow(e,t){const n=e!==this.lastHighlightedRow,r=t!==e.highlighted;(n||r)&&(n&&this.clearHighlight(),e.highlighted=t,e.dispatchRowEvent("rowHighlightChanged"),this.lastHighlightedRow=e)}getLastHighlightedRowNode(){return this.lastHighlightedRow}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){const e=this.rootNode;if(!e||this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===e)return 1;const n=e.childrenAfterAggFilter,r=e.sibling?1:0;return(n?n.length:0)+r}getTopLevelRowDisplayedIndex(e){const{rootNode:t,rowsToDisplay:n}=this;if(!t||!n.length||n[0]===t)return e;const{childrenAfterSort:i}=t,o=s=>{let l=i[s];if(this.gos.get("groupHideOpenParents"))for(;l.expanded&&l.childrenAfterSort&&l.childrenAfterSort.length>0;)l=l.childrenAfterSort[0];return l.rowIndex},{footerSvc:a}=this.beans;return a?a.getTopDisplayIndex(n,e,i,o):o(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:n}=this;if(!t||!n.length||n[0]===t)return e;let i=this.getRow(e);for(i.footer&&(i=i.sibling);i.parent&&i.parent!==t;)i=i.parent;const o=t.childrenAfterSort?.findIndex(a=>a===i);return o===-1?e:o??e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=oI(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=oI(this.gos),r=e.columns.length===0||e.columns.some(i=>i.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:r,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=oI(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:e})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new Cz(!1,this.rootNode);return e||(t.active=!1),t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:n,rowDataUpdated:r}=e;return!(!t||n||!r||t.removals.size||t.adds.size)}refreshModel(e){if(!this.rootNode)return;const t=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&!!e.rowDataUpdated));if(this.nodeManager.refreshModel?.(e,this.started),this.eventSvc.dispatchEvent({type:"beforeRefreshModel",params:e}),!this.started||(e.rowDataUpdated&&this.eventSvc.dispatchEvent({type:"rowDataUpdated"}),this.isRefreshingModel||this.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e)))return;switch(this.isRefreshingModel=!0,e.step){case"group":this.doRowGrouping(e.changedRowNodes,t,!!e.rowNodesOrderChanged,!!e.afterColumnsChanged);case"filter":this.doFilter(t);case"pivot":this.doPivot(t);case"aggregate":this.doAggregate(t);case"filter_aggregates":this.doFilterAggregates(t);case"sort":this.doSort(e.changedRowNodes,t);case"map":this.doRowsToDisplay()}const n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(t,n),this.isRefreshingModel=!1,this.eventSvc.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?.allLeafChildren?.length||!this.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let n=!1,r=!1;const i=[],o=yz(this.gos);return this.forEachNodeAfterFilterAndSort(a=>{if(r)return;if(n&&(a===t||a===e)&&(r=!0,a.group&&o)){i.push(...a.allLeafChildren);return}if(!n){if(a!==t&&a!==e)return;n=!0}if(!a.group||!o){i.push(a);return}}),i}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay;if(this.isEmpty()||t.length===0)return-1;let n=0,r=t.length-1;if(e<=0)return 0;if(zr(t).rowTop<=e)return t.length-1;let o=-1,a=-1;for(;;){const s=Math.floor((n+r)/2),l=t[s];if(this.isRowInPixel(l,e)||(l.rowTop<e?n=s+1:l.rowTop>e&&(r=s-1),o===n&&a===r))return s;o=n,a=r}}isRowInPixel(e,t){const n=e.rowTop,r=e.rowTop+e.rowHeight;return n<=t&&r>t}forEachLeafNode(e){this.rootNode?.allLeafChildren?.forEach((t,n)=>e(t,n))}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){this.rowsToDisplay.forEach(e)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterSort)}forEachPivotNode(e,t=!1,n=!1){const{colModel:r,rowGroupColsSvc:i}=this.beans;if(!r.isPivotMode())return;if(!i?.columns.length){e(this.rootNode,0);return}const o=n?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,a=>a.leafGroup?null:a[o])}depthFirstSearchRowNodes(e,t=!1,n=o=>o.childrenAfterGroup,r=this.rootNode,i=0){let o=i;if(!r)return o;const a=r===this.rootNode;a||e(r,o++);const{footerSvc:s}=this.beans;if(r.hasChildren()&&!r.footer){const l=n(r);if(l){o=s?.addTotalRows(o,r,e,t,a,"top")??o;for(const c of l)o=this.depthFirstSearchRowNodes(e,t,n,c,o);return s?.addTotalRows(o,r,e,t,a,"bottom")??o}}return o}doAggregate(e){const t=this.rootNode;t&&this.aggStage?.execute({rowNode:t,changedPath:e})}doFilterAggregates(e){const t=this.rootNode;this.filterAggStage?this.filterAggStage.execute({rowNode:t,changedPath:e}):t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){this.sortStage?this.sortStage.execute({rowNode:this.rootNode,changedRowNodes:e,changedPath:t}):t.forEachChangedNodeDepthFirst(n=>{n.childrenAfterSort=n.childrenAfterAggFilter.slice(0),urt(n)})}doRowGrouping(e,t,n,r){const i=this.rootNode;if(!this.groupStage?.execute({rowNode:i,changedPath:t,changedRowNodes:e,rowNodesOrderChanged:n,afterColumnsChanged:r})&&!this.nodeManager.treeData){const a=i.sibling;i.childrenAfterGroup=i.allLeafChildren,a&&(a.childrenAfterGroup=i.childrenAfterGroup),i.updateHasChildren()}this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){this.filterStage?this.filterStage.execute({rowNode:this.rootNode,changedPath:e}):e.forEachChangedNodeDepthFirst(t=>{t.childrenAfterFilter=t.childrenAfterGroup,jnt(t)},!0)}doPivot(e){this.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getRowNode(e){if(typeof e=="string"&&e.indexOf(mW)==0){let n;return this.forEachNode(r=>{r.id===e&&(n=r)}),n}return this.nodeManager.getRowNode(e)}batchUpdateRowData(e,t){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];const n=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache?.onDataChanged();const e=[],t=[],n=new yre;let r=!1;this.rowDataTransactionBatch?.forEach(i=>{this.rowNodesCountReady=!0;const{rowNodeTransaction:o,rowsInserted:a}=this.nodeManager.updateRowData(i.rowDataTransaction,n);a&&(r=!0),t.push(o),i.callback&&e.push(i.callback.bind(null,o))}),this.commitTransactions(r,n),e.length>0&&window.setTimeout(()=>{e.forEach(i=>i())},0),t.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:t}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e){this.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const t=new yre,{rowNodeTransaction:n,rowsInserted:r}=this.nodeManager.updateRowData(e,t);return this.commitTransactions(r,t),n}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,rowNodesOrderChanged:e,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:t,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{flattenStage:e,rootNode:t}=this;let n;if(e)n=e.execute({rowNode:t});else{n=t?.childrenAfterSort??[];for(const r of n)r.setUiLevel(0)}this.rowsToDisplay=n}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0),e.sibling&&e.sibling.setRowHeight(e.sibling.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){if(e.rowHeightChanged){if(this.beans.rowAutoHeight?.active)return;this.resetRowHeights()}}onGridReady(){this.started||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlight(),this.started=!1,this.rootNode=null,this.nodeManager=null,this.rowDataTransactionBatch=null,this.orderedStages=my,this.rowsToDisplay=my}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}};function oHt(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function aHt(e,t){const n=Pm(e);n&&((!t||t==="everything")&&(t="group"),n.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function sHt(e){return Pm(e)?.isEmpty()??!0}function lHt(e,t){Pm(e)?.forEachLeafNode(t)}function cHt(e,t){Pm(e)?.forEachNodeAfterFilter(t)}function uHt(e,t){Pm(e)?.forEachNodeAfterFilterAndSort(t)}function dHt(e){if(e.rowAutoHeight?.active){ut(3);return}Pm(e)?.resetRowHeights()}function pHt(e,t){return e.frameworkOverrides.wrapIncoming(()=>Pm(e)?.updateRowData(t))}function hHt(e,t,n){e.frameworkOverrides.wrapIncoming(()=>Pm(e)?.batchUpdateRowData(t,n))}function fHt(e){e.frameworkOverrides.wrapIncoming(()=>Pm(e)?.flushAsyncTransactions())}function gHt(e){return e.selectionSvc?.getBestCostNodeSelection()}var mHt={moduleName:"ClientSideRowModel",version:Jn,rowModels:["clientSide"],beans:[Jjt,iHt,tHt],dependsOn:[Hye]},vHt={moduleName:"ClientSideRowModelApi",version:Jn,apiFunctions:{onGroupExpandedOrCollapsed:oHt,refreshClientSideRowModel:aHt,isRowDataEmpty:sHt,forEachLeafNode:lHt,forEachNodeAfterFilter:cHt,forEachNodeAfterFilterAndSort:uHt,resetRowHeights:dHt,applyTransaction:pHt,applyTransactionAsync:hHt,flushAsyncTransactions:fHt,getBestCostNodeSelection:gHt},dependsOn:[lrt]},bHt=class extends dt{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:n,columnKeys:r,skipRowGroups:i,exportRowNumbers:o}=t,a=this.getColumnsToExport({allColumns:n,skipRowGroups:i,columnKeys:r,exportRowNumbers:o});return[this.prepareSession(a),this.prependContent(t),this.exportColumnGroups(t,a),this.exportHeaders(t,a),this.processPinnedTopRows(t,a),this.processRows(t,a),this.processPinnedBottomRows(t,a),this.appendContent(t)].reduce((s,l)=>l(s),e).parse()}processRow(e,t,n,r){const i=t.shouldRowBeSkipped||(()=>!1),a=t.rowPositions!=null||!!t.onlySelected,s=this.gos.get("groupHideOpenParents")&&!a,l=this.colModel.isPivotMode()?r.leafGroup:!r.group,c=!!r.footer,u=r.allChildrenCount===1&&r.childrenAfterGroup?.length===1&&kkt(this.gos,r);if(!l&&!c&&(t.skipRowGroups||u||s)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&r.rowPinned==="top"||t.skipPinnedBottom&&r.rowPinned==="bottom"||r.stub||r.level===-1&&!l&&!c||i(Gn(this.gos,{node:r})))return;const h=e.onNewBodyRow(r);if(n.forEach((g,m)=>{h.onColumn(g,m,r)}),t.getCustomContentBelowRow){const g=t.getCustomContentBelowRow(Gn(this.gos,{node:r}));g&&e.addCustomContent(g)}}appendContent(e){return t=>{const n=e.appendContent;return n&&t.addCustomContent(n),t}}prependContent(e){return t=>{const n=e.prependContent;return n&&t.addCustomContent(n),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return n=>{if(!e.skipColumnGroupHeaders){const r=new ttt,{colGroupSvc:i}=this.beans,o=i?i.createColumnGroups({columns:t,idCreator:r,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(o,n,e.processGroupHeaderCallback)}return n}}exportHeaders(e,t){return n=>{if(!e.skipColumnHeaders){const r=n.onNewHeaderRow();t.forEach((i,o)=>{r.onColumn(i,o,void 0)})}return n}}processPinnedTopRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="top").sort((i,o)=>i.rowIndex-o.rowIndex).map(i=>this.pinnedRowModel?.getPinnedTopRow(i.rowIndex)).forEach(r):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",r),n}}processRows(e,t){return n=>{const r=this.rowModel,i=sa(this.gos),o=Au(this.gos),a=!i&&e.onlySelected,s=this.processRow.bind(this,n,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)return e.rowPositions.filter(c=>c.rowPinned==null).sort((c,u)=>c.rowIndex-u.rowIndex).map(c=>r.getRow(c.rowIndex)).forEach(s),n;if(this.colModel.isPivotMode())return i?r.forEachPivotNode(s,!0,l==="filteredAndSorted"):o?r.forEachNodeAfterFilterAndSort(s,!0):r.forEachNode(s),n;if(e.onlySelectedAllPages||a){const c=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(c),c.forEach(s)}else l==="all"?r.forEachNode(s):i||o?r.forEachNodeAfterFilterAndSort(s,!0):r.forEachNode(s);return n}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:n}=this.beans;if(!t||!n)return;const r=t.getSortOptions(),i=(o,a)=>o.rowIndex!=null&&a.rowIndex!=null?o.rowIndex-a.rowIndex:o.level===a.level?o.parent?.id===a.parent?.id?n.compareRowNodes(r,{rowNode:o,currentPos:o.rowIndex??-1},{rowNode:a,currentPos:a.rowIndex??-1}):i(o.parent,a.parent):o.level>a.level?i(o.parent,a):i(o,a.parent);e.sort(i)}processPinnedBottomRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="bottom").sort((i,o)=>i.rowIndex-o.rowIndex).map(i=>this.pinnedRowModel?.getPinnedBottomRow(i.rowIndex)).forEach(r):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",r),n}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:n=!1,exportRowNumbers:r=!1,columnKeys:i}=e,{colModel:o,gos:a,visibleCols:s}=this,l=o.isPivotMode(),c=p=>m3(p)?!1:!p0(p)||r;if(i&&i.length)return o.getColsForKeys(i).filter(c);const u=a.get("treeData");let d=[];return t&&!l?d=o.getCols():d=s.allCols,d=d.filter(p=>c(p)&&(n&&!u?!TK(p):!0)),d}recursivelyAddHeaderGroups(e,t,n){const r=[];e.forEach(i=>{const o=i;o.getChildren&&o.getChildren().forEach(a=>r.push(a))}),e.length>0&&Pl(e[0])&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)}doAddHeaderHeader(e,t,n){const r=e.onNewHeaderGroupingRow();let i=0;t.forEach(o=>{const a=o;let s;n?s=n(Gn(this.gos,{columnGroup:a})):s=this.beans.colNames.getDisplayNameForColumnGroup(a,"header");const l=a.getLeafColumns().reduce((c,u,d,p)=>{let h=zr(c);return u.getColumnGroupShow()==="open"?(!h||h[1]!=null)&&(h=[d],c.push(h)):h&&h[1]==null&&(h[1]=d-1),d===p.length-1&&h&&h[1]==null&&(h[1]=d),c},[]);r.onColumn(a,s||"",i++,a.getLeafColumns().length-1,l)})}},drt={moduleName:"SharedExport",version:Jn,beans:[bHt]},cRe=`\r
`,yHt=class extends Bnt{constructor(e){super(e),this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:n}=e;this.suppressQuotes=t,this.columnSeparator=n}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,cRe),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((n,r)=>{r!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(n.data.value||""),n.mergeAcross&&this.appendEmptyCells(n.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,n,r){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,n){t!=0&&(this.result+=this.columnSeparator);const r=this.extractRowCellValue(e,t,t,"csv",n);this.result+=this.putInQuotes(r.valueFormatted??r.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(ut(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=cRe),this.isFirstLine=!1}},MHt=class extends qnt{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){ut(51);return}const t=this.getMergedParams(e),n=this.getData(t),r=new Blob(["\uFEFF",n],{type:"text/plain"}),i=typeof t.fileName=="function"?t.fileName(Gn(this.gos,{})):t.fileName;Gye(this.getFileName(i),r)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:n,rowGroupColsSvc:r,valueSvc:i,gos:o}=this,{processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:u,columnSeparator:d}=e;return new yHt({colModel:t,colNames:n,valueSvc:i,gos:o,processCellCallback:a||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:u||!1,columnSeparator:d||",",rowGroupColsSvc:r})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function CHt(e,t){return e.csvCreator?.getDataAsCsv(t)}function xHt(e,t){e.csvCreator?.exportDataAsCsv(t)}var prt={moduleName:"CsvExport",version:Jn,beans:[MHt],apiFunctions:{getDataAsCsv:CHt,exportDataAsCsv:xHt},dependsOn:[drt]},wHt=class extends dt{constructor(e,t,n){super(),this.id=e,this.parentCache=t,this.params=n,this.state="needsLoading",this.version=0,this.startRow=e*n.blockSize,this.endRow=this.startRow+n.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){const t=e===this.version,n=this.isAlive();return t&&n}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:n,beans:r,rowNodes:i}=this;for(let o=0;o<e;o++){const a=n+o,s=new vp(r);s.setRowHeight(t),s.uiLevel=0,s.setRowIndex(a),s.setRowTop(t*a),i.push(s)}}getBlockStateJson(){const{id:e,startRow:t,endRow:n,state:r}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:n,pageStatus:r}}}setDataAndId(e,t,n){Ut(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(Yi(this.params.datasource.getRows)){ut(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:n,params:{sortModel:r,filterModel:i},gos:o}=this;return{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,n),failCallback:this.pageLoadFailed.bind(this,n),sortModel:r,filterModel:i,context:Gn(o,{}).context}}forEachNode(e,t,n){this.rowNodes.forEach((r,i)=>{this.startRow+i<n&&e(r,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const n=e-this.startRow;return this.rowNodes[n]}processServerResult(e){const{rowNodes:t,beans:n}=this;t.forEach((i,o)=>{const a=e.rowData?e.rowData[o]:void 0;!i.id&&i.alreadyRendered&&a&&(t[o]=new vp(n),t[o].setRowIndex(i.rowIndex),t[o].setRowTop(i.rowTop),t[o].setRowHeight(i.rowHeight),i.clearRowTopAndRowIndex()),this.setDataAndId(t[o],a,this.startRow+o)});const r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)}destroy(){this.rowNodes.forEach(e=>{e.clearRowTopAndRowIndex()}),super.destroy()}},SHt=2,AHt=class extends dt{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const n=Math.floor(e/this.params.blockSize);let r=this.blocks[n];if(!r){if(t)return;r=this.createBlock(n)}return r.getRow(e)}createBlock(e){const t=this.params,n=this.createBean(new wHt(e,this,t));return this.blocks[n.id]=n,this.blockCount++,this.purgeBlocksIfNeeded(n),t.rowNodeBlockLoader.addBlock(n),n}refreshCache(){if(this.blockCount==0){this.purgeCache();return}this.getBlocksInOrder().forEach(t=>t.setStateWaitingToLoad()),this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){this.getBlocksInOrder().forEach(e=>this.destroyBlock(e)),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Gx(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(a=>a!=e),n=(a,s)=>s.lastAccessed-a.lastAccessed;t.sort(n);const r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,o=SHt-1;t.forEach((a,s)=>{const l=a.state==="needsLoading"&&s>=o,c=r?s>=i:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(a)||this.isBlockFocused(a))return;this.removeBlockFromCache(a)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:n,endRow:r}=e;return t.rowIndex>=n&&t.rowIndex<r}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:n}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,n-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:n,overflowSize:r}=this.params,o=(e.id+1)*n+r;this.rowCount<o&&(this.rowCount=o)}}setRowCount(e,t){this.rowCount=e,Ut(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};this.getBlocksInOrder().forEach(n=>n.forEachNode(e,t,this.rowCount))}getBlocksInOrder(){const e=(n,r)=>n.id-r.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];this.getBlocksInOrder().forEach(t=>{t.id*this.params.blockSize>=this.rowCount&&e.push(t)}),e.length>0&&e.forEach(t=>this.destroyBlock(t))}purgeCache(){this.getBlocksInOrder().forEach(e=>this.removeBlockFromCache(e)),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const n=[];let r=-1,i=!1;const o={value:0};let a=!1;return this.getBlocksInOrder().forEach(l=>{if(!a){if(i&&r+1!==l.id){a=!0;return}r=l.id,l.forEachNode(c=>{const u=c===e||c===t;(i||u)&&n.push(c),u&&(i=!i)},o,this.rowCount)}}),a||i?[]:n}},OHt=class extends dt{constructor(){super(...arguments),this.beanName="rowModel"}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){this.gos.get("rowModelType")==="infinite"&&(this.rowHeight=sp(this.beans),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache()))}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=sp(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!mz(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;qy(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:n,rowNodeBlockLoader:r,eventSvc:i,gos:o}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:n?.getSortModel()??[],rowNodeBlockLoader:r,initialRowCount:o.get("infiniteInitialRowCount"),maxBlocksInCache:o.get("maxBlocksInCache"),rowHeight:sp(e),overflowSize:o.get("cacheOverflowSize"),blockSize:o.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new AHt(this.cacheParams)),i.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}};function zHt(e){qK(e)?.refreshCache()}function THt(e){qK(e)?.purgeCache()}function EHt(e){return qK(e)?.getRowCount()}var RHt=class extends dt{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=Oet(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=Ml(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){Ou(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Gx(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(n=>n.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length,t.forEach(n=>n.load()),this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:n,state:r}=t.getBlockStateJson();e[n]=r}),e}printCacheStatus(){Gx(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},IHt={moduleName:"InfiniteRowModelCore",version:Jn,rowModels:["infinite"],beans:[OHt,RHt]},PHt={moduleName:"InfiniteRowModel",version:Jn,apiFunctions:{refreshInfiniteCache:zHt,purgeInfiniteCache:THt,getInfiniteRowCount:EHt},dependsOn:[IHt,crt]},DHt="↑",kHt="↓",LHt={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},_Ht=class extends Gt{constructor(){super(LHt),this.eValue=at,this.eDelta=at,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const n=Math.abs(t),r=e.formatValue(n),i=Ut(r)?r:n,o=t>=0,a=this.eDelta;o?a.textContent=DHt+i:a.textContent=kHt+i,a.classList.toggle("ag-value-change-delta-up",o),a.classList.toggle("ag-value-change-delta-down",!o)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Xi(this.eDelta)}refresh(e,t=!1){const{value:n,valueFormatted:r}=e,{eValue:i,lastValue:o,beans:a}=this;if(n===o||(Ut(r)?i.textContent=r:Ut(n)?i.textContent=n:Xi(i),a.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof n=="number"&&typeof o=="number"){const s=n-o;this.showDelta(e,s)}return o&&i.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}},NHt=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",FHt={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},WHt=class extends Gt{constructor(){super(FHt),this.eCurrent=at,this.refreshCount=0,this.registerCSS(NHt)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);const{beans:t,eCurrent:n}=this,r=Nr({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=r,r.textContent=n.textContent,this.getGui().insertBefore(r,n),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let n=e.value;if(Yi(n)&&(n=""),n===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=n;const r=this.eCurrent;return Ut(e.valueFormatted)?r.textContent=e.valueFormatted:Ut(e.value)?r.textContent=n:Xi(r),!0}},qHt=class extends dt{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,n=this.beans.gos.get("cellFlashDuration"),r=this.beans.gos.get("cellFadeDuration")){const i=this.animations[t];i.delete(e);const o=Date.now(),a=o+n,s=o+n+r,l={phase:"flash",flashEndTime:a,fadeEndTime:s};i.set(e,l);const c=`ag-cell-${t}`,u=`${c}-animation`,{comp:d,eGui:{style:p}}=e;d.toggleCss(c,!0),d.toggleCss(u,!1),p.removeProperty("transition"),p.removeProperty("transition-delay"),this.nextAnimationTime&&a+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),n)}),this.nextAnimationTime=a)}advanceAnimations(){const e=Date.now();let t=null;for(const n of Object.keys(this.animations)){const r=this.animations[n],i=`ag-cell-${n}`,o=`${i}-animation`;for(const[a,s]of r){if(!a.isAlive()||!a.comp){r.delete(a);continue}const{phase:l,flashEndTime:c,fadeEndTime:u}=s,d=l==="flash"?c:u;if(!(e+15>=d)){t=Math.min(d,t??1/0);continue}const{comp:h,eGui:{style:g}}=a;switch(l){case"flash":h.toggleCss(i,!1),h.toggleCss(o,!0),g.transition=`background-color ${u-c}ms`,g.transitionDelay=`${c-e}ms`,t=Math.min(u,t??1/0),s.phase="fade";break;case"fade":h.toggleCss(i,!1),h.toggleCss(o,!1),g.removeProperty("transition"),g.removeProperty("transition-delay"),r.delete(a);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const n=RC(e.cellPosition);t.cells[n]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}};function BHt(e,t={}){const{cellFlashSvc:n}=e;n&&e.frameworkOverrides.wrapIncoming(()=>{e.rowRenderer.getCellCtrls(t.rowNodes,t.columns).forEach(r=>n.flashCell(r,t))})}var hrt={moduleName:"HighlightChanges",version:Jn,beans:[qHt],userComponents:{agAnimateShowChangeCellRenderer:_Ht,agAnimateSlideCellRenderer:WHt},apiFunctions:{flashCells:BHt}};function jHt(e){return e.stateSvc?.getState()??{}}function HHt(e){switch(e={...e},e.version||(e.version="32.1.0"),e.version){case"32.1.0":e=VHt(e)}return e}function VHt(e){return e.cellSelection=GHt(e,"rangeSelection"),e}function GHt(e,t){if(e&&typeof e=="object")return e[t]}var $Ht=class extends dt{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=Ml(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=Ml(this,()=>{this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState())},0),this.onRowSelectedDebounced=Ml(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){this.isClientSideRowModel=sa(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",Jn);const e=this.suppressEventsAndDispatchInitEvent.bind(this);this.beans.ctrlsSvc.whenReady(this,()=>e(()=>this.setupStateOnGridReady()));const[t,n,r]=this.addManagedEventListeners({newColumnsLoaded:({source:i})=>{i==="gridInitializing"&&(t(),e(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{n?.(),e(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{r?.(),e(()=>this.setupStateOnFirstDataRendered())}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getInitialState(){return HHt(this.gos.get("initialState")??{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){const e=()=>this.updateCachedState("sideBar",this.getSideBarState());e(),this.addManagedEventListeners({toolPanelVisibleChanged:e,sideBarUpdated:e})}setupStateOnColumnsInitialised(){const e=this.getInitialState();this.setColumnState(e),this.setColumnGroupState(e),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());const t=n=>()=>this.updateColumnState([n]);this.addManagedEventListeners({columnValueChanged:t("aggregation"),columnMoved:t("columnOrder"),columnPinned:t("columnPinning"),columnResized:t("columnSizing"),columnVisible:t("columnVisibility"),columnPivotChanged:t("pivot"),columnPivotModeChanged:t("pivot"),columnRowGroupChanged:t("rowGroup"),sortChanged:t("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){const{filter:e,rowGroupExpansion:t,rowSelection:n,pagination:r}=this.getInitialState();e&&this.setFilterState(e),t&&this.setRowGroupExpansionState(t),n&&this.setRowSelectionState(n),r&&this.setPaginationState(r);const i=this.updateCachedState.bind(this);i("filter",this.getFilterState()),i("rowGroupExpansion",this.getRowGroupExpansionState()),i("rowSelection",this.getRowSelectionState()),i("pagination",this.getPaginationState());const o=()=>{this.updateRowGroupExpansionStateTimer=0,i("rowGroupExpansion",this.getRowGroupExpansionState())};this.addManagedEventListeners({filterChanged:()=>i("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:o,columnRowGroupChanged:o,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(o)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&i("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){const{scroll:e,cellSelection:t,focusedCell:n,columnOrder:r,rowPinning:i}=this.getInitialState();n&&this.setFocusedCellState(n),t&&this.setCellSelectionState(t),e&&this.setScrollState(e),i&&this.setRowPinningState(i),this.setColumnPivotState(!!r?.orderedColIds);const o=this.updateCachedState.bind(this);o("sideBar",this.getSideBarState()),o("focusedCell",this.getFocusedCellState());const a=this.getRangeSelectionState();o("rangeSelection",a),o("cellSelection",a),o("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>o("focusedCell",this.getFocusedCellState()),cellSelectionChanged:s=>{if(s.finished){const l=this.getRangeSelectionState();o("rangeSelection",l),o("cellSelection",l)}},bodyScrollEnd:()=>o("scroll",this.getScrollState()),pinnedRowsChanged:()=>o("rowPinning",this.getRowPinningState())})}getColumnState(){const e=this.beans;return O6t(E$(e),e.colModel.isPivotMode())}setColumnState(e){const{sort:t,rowGroup:n,aggregation:r,pivot:i,columnPinning:o,columnVisibility:a,columnSizing:s,columnOrder:l,partialColumnState:c}=e,u={},d=b=>{let y=u[b];return y||(y={colId:b},u[b]=y,y)},p=c?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};t&&(t.sortModel.forEach(({colId:b,sort:y},M)=>{const C=d(b);C.sort=y,C.sortIndex=M}),p.sort=null,p.sortIndex=null),n&&(n.groupColIds.forEach((b,y)=>{const M=d(b);M.rowGroup=!0,M.rowGroupIndex=y}),p.rowGroup=null,p.rowGroupIndex=null),r&&(r.aggregationModel.forEach(({colId:b,aggFunc:y})=>{d(b).aggFunc=y}),p.aggFunc=null),i&&(i.pivotColIds.forEach((b,y)=>{const M=d(b);M.pivot=!0,M.pivotIndex=y}),this.gos.updateGridOptions({options:{pivotMode:i.pivotMode},source:"gridInitializing"}),p.pivot=null,p.pivotIndex=null),o&&(o.leftColIds.forEach(b=>{d(b).pinned="left"}),o.rightColIds.forEach(b=>{d(b).pinned="right"}),p.pinned=null),a&&(a.hiddenColIds.forEach(b=>{d(b).hide=!0}),p.hide=null),s&&(s.columnSizingModel.forEach(({colId:b,flex:y,width:M})=>{const C=d(b);C.flex=y??null,C.width=M}),p.flex=null);const h=l?.orderedColIds,g=!!h?.length,m=g?h.map(b=>d(b)):Object.values(u);m.length&&(this.columnStates=m,m0(this.beans,{state:m,applyOrder:g,defaultState:p},"gridInitializing"))}setColumnPivotState(e){const t=this.columnStates;this.columnStates=void 0;const n=this.columnGroupStates;this.columnGroupStates=void 0;const r=this.beans,{pivotResultCols:i,colGroupSvc:o}=r;if(i?.isPivotResultColsPresent()){if(t){const a=[];for(const s of t)i.getPivotResultCol(s.colId)&&a.push(s);m0(r,{state:a,applyOrder:e},"gridInitializing")}n&&o?.setColumnGroupState(n,"gridInitializing")}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return z6t(t)}setColumnGroupState(e){const t=this.beans.colGroupSvc;if(!Object.prototype.hasOwnProperty.call(e,"columnGroup")||!t)return;const n=new Set(e.columnGroup?.openColumnGroupIds),i=t.getColumnGroupState().map(({groupId:o})=>{const a=n.has(o);return a&&n.delete(o),{groupId:o,open:a}});n.forEach(o=>{i.push({groupId:o,open:!0})}),i.length&&(this.columnGroupStates=i),t.setColumnGroupState(i,"gridInitializing")}getFilterState(){const e=this.beans.filterManager;let t=e?.getFilterModel();t&&Object.keys(t).length===0&&(t=void 0);const n=e?.getAdvFilterModel()??void 0;return t||n?{filterModel:t,advancedFilterModel:n}:void 0}setFilterState(e){const t=this.beans.filterManager,{filterModel:n,advancedFilterModel:r}=e??{};n&&t?.setFilterModel(n,"columnFilter"),r&&t?.setAdvFilterModel(r,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:n,type:r,startRow:i,endRow:o,columns:a,startColumn:s}=t;return{id:n,type:r,startRow:i,endRow:o,colIds:a.map(l=>l.getColId()),startColId:s.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:n,colModel:r,visibleCols:i}=this.beans;if(!r1(t)||!n)return;const o=[];e.cellRanges.forEach(a=>{const s=[];if(a.colIds.forEach(c=>{const u=r.getCol(c);u&&s.push(u)}),!s.length)return;let l=r.getCol(a.startColId);if(!l){const c=i.allCols,u=new Set(s);l=c.find(d=>u.has(d))}o.push({...a,columns:s,startColumn:l})}),n.setCellRanges(o)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:n}=e?.getVScrollPosition()??{top:0};return n||t?{top:n,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:n}=e,{frameworkOverrides:r,rowRenderer:i,animationFrameSvc:o,ctrlsSvc:a}=this.beans;r.wrapIncoming(()=>{a.get("center").setCenterViewportScrollLeft(n),a.getScrollFeature()?.setVerticalScrollPosition(t),i.redraw({afterScroll:!0}),o?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:n,rowPinned:r}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:r}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{colId:t,rowIndex:n,rowPinned:r}=e,{focusSvc:i,colModel:o}=this.beans;i.setFocusedCell({column:o.getCol(t),rowIndex:n,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const n=e.getCurrentPage(),r=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!n&&!r))return{page:n,pageSize:r}}setPaginationState(e){const{pagination:t,gos:n}=this.beans;t&&(e.pageSize&&!n.get("paginationAutoPageSize")&&t.setPageSize(e.pageSize,"initialState"),typeof e.page=="number"&&t.setPage(e.page))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e){this.beans.selectionSvc?.setSelectionState(e,"gridInitializing")}getRowGroupExpansionState(){const{expansionSvc:e,rowModel:t}=this.beans;if(!e)return;const n=[];return t.forEachNode(({expanded:r,id:i})=>{r&&i&&n.push(i)}),n.length?{expandedRowGroupIds:n}:void 0}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){this.beans.pinnedRowModel?.setPinnedState(e)}setRowGroupExpansionState(e){this.beans.expansionSvc?.expandRows(e.expandedRowGroupIds)}updateColumnState(e){const t=this.getColumnState();let n=!1;const r=this.cachedState;for(const i of Object.keys(t)){const o=t[i];mz(o,r[i])||(n=!0)}this.cachedState={...r,...t},n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const n=this.cachedState[e];this.setCachedStateValue(e,t),mz(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;e.forEach(t=>{switch(t){case"rowSelection":this.setCachedStateValue(t,this.getRowSelectionState());break}}),e.clear()}dispatchStateUpdateEvent(e){this.suppressEvents||(e.forEach(t=>this.queuedUpdateSources.add(t)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}suppressEventsAndDispatchInitEvent(e){this.suppressEvents=!0;const t=this.beans.colAnimation;t?.setSuppressAnimation(!0),e(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(t?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}},UHt={moduleName:"GridState",version:Jn,beans:[$Ht],apiFunctions:{getState:jHt}};function XHt(e){return e.rowModel.isLastRowIndexKnown()}function YHt(e){return e.pagination?.getPageSize()??100}function KHt(e){return e.pagination?.getCurrentPage()??0}function QHt(e){return e.pagination?.getTotalPages()??1}function ZHt(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function JHt(e){e.pagination?.goToNextPage()}function e8t(e){e.pagination?.goToPreviousPage()}function t8t(e){e.pagination?.goToFirstPage()}function n8t(e){e.pagination?.goToLastPage()}function r8t(e,t){e.pagination?.goToPage(t)}var i8t=class extends dt{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,n=()=>{const r=Math.max(sp(t),1),i=Math.floor(e/r);t.pagination.setPageSize(i,"autoCalculated")};this.isBodyRendered?Ml(this,n,50)():(n(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},e4="paginationPageSizeSelector",o8t={tag:"span",cls:"ag-paging-page-size"},a8t=class extends Gt{constructor(){super(o8t),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(e4,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Xi(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(e4)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),n=!t||!e.includes(t);if(n){const i=this.gos.exists("paginationPageSize"),o=this.gos.get(e4)!==!0;ut(94,{pageSizeSet:i,pageSizesSet:o,pageSizeOptions:e,paginationPageSizeOption:t}),o||ut(95,{paginationPageSizeOption:t,paginationPageSizeSelector:e4}),e.unshift("")}const r=String(n?"":t);this.selectPageSizeComp?(Md(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(r,!0)):this.createPageSizeSelectorComp(e,r),this.hasEmptyOption=n}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const n=this.getLocaleTextFunc(),r=n("pageSizeSelectorLabel","Page Size:"),i=n("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new l1).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(i).setLabel(r).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(e4);return!Array.isArray(t)||!t?.length?e:[...t].sort((n,r)=>n-r)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},s8t={selector:"AG-PAGE-SIZE-SELECTOR",component:a8t},l8t=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:max(var(--ag-row-height),22px);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}",c8t=class extends Gb{constructor(){super(),this.btFirst=at,this.btPrevious=at,this.btNext=at,this.btLast=at,this.lbRecordCount=at,this.lbFirstRowOnPage=at,this.lbLastRowOnPage=at,this.lbCurrent=at,this.lbTotal=at,this.pageSizeComp=at,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(l8t)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[s8t]);const{btFirst:t,btPrevious:n,btNext:r,btLast:i}=this;this.activateTabIndex([t,n,r,i]),t.insertAdjacentElement("afterbegin",er(e?"last":"first",this.beans)),n.insertAdjacentElement("afterbegin",er(e?"next":"previous",this.beans)),r.insertAdjacentElement("afterbegin",er(e?"previous":"next",this.beans)),i.insertAdjacentElement("afterbegin",er(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:o=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(o):ftt(this.beans,o),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(e=>{const{el:t,fn:n}=e;this.addManagedListeners(t,{click:n,keydown:r=>{(r.key===Qe.ENTER||r.key===Qe.SPACE)&&(r.preventDefault(),n())}})}),htt(this.beans,this,this.getGui()),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):xz(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),n=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const r=this.isZeroPagesToDisplay(),i=e===n-1;this.nextButtonDisabled=i||r,this.lastButtonDisabled=!t||r||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){M$(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),n=this.pagination.getMasterRowCount(),r=e?n:null,i=this.pagination.getCurrentPage(),o=this.pagination.getPageSize();let a,s;this.isZeroPagesToDisplay()?a=s=0:(a=o*i+1,s=a+o-1,e&&s>r&&(s=r));const l=a+o-1,c=!e&&n<l,u=this.formatNumber(a);this.lbFirstRowOnPage.textContent=u;let d;const p=this.getLocaleTextFunc();c?d=p("pageLastRowUnknown","?"):d=this.formatNumber(s),this.lbLastRowOnPage.textContent=d;const g=t>0?i+1:0,m=this.formatNumber(g);this.lbCurrent.textContent=m;let b,y;if(e)b=this.formatNumber(t),y=this.formatNumber(r);else{const M=p("more","more");b=M,y=M}this.lbTotal.textContent=b,this.lbRecordCount.textContent=y,this.announceAriaStatus(u,d,y,m,b)}announceAriaStatus(e,t,n,r,i){const o=this.getLocaleTextFunc(),a=o("page","Page"),s=o("to","to"),l=o("of","of"),c=`${e} ${s} ${t} ${l} ${n}`,u=`${a} ${r} ${l} ${i}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnounce?.announceValue(c,"paginationRow")),u!==this.ariaPageStatus&&(this.ariaPageStatus=u,this.ariaAnnounce?.announceValue(u,"paginationPage"))}setTotalLabelsToZero(){const e=this.formatNumber(0);this.lbFirstRowOnPage.textContent=e,this.lbCurrent.textContent=e,this.lbLastRowOnPage.textContent=e,this.lbTotal.textContent=e,this.lbRecordCount.textContent=e,this.announceAriaStatus(e,e,e,e,e)}},u8t={selector:"AG-PAGINATION",component:c8t},d8t=class extends dt{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return u8t}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;!this.active||t===e||typeof t!="number"||(this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return Ut(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:Ut(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:Ut(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:Ut(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const n=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}n!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const n=this.pageSize,r=t-1;this.totalPages=Math.floor(r/n)+1,this.adjustCurrentPageIfInvalid();const i=this.currentPage,o=n*i;let a=n*(i+1)-1;if(a>r&&(a=r),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(o),a===r)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const s=e.getTopLevelRowDisplayedIndex(a+1);this.bottomDisplayedRowIndex=s-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:n}=this,r=e-1;this.totalPages=Math.floor(r/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*n,this.bottomDisplayedRowIndex=t*(n+1)-1,this.bottomDisplayedRowIndex>r&&(this.bottomDisplayedRowIndex=r)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:n=!1,newPageSize:r=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:n,newPageSize:r,keepRenderedRows:t})}},p8t={moduleName:"Pagination",version:Jn,beans:[d8t,i8t],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:XHt,paginationGetPageSize:YHt,paginationGetCurrentPage:KHt,paginationGetTotalPages:QHt,paginationGetRowCount:ZHt,paginationGoToNextPage:JHt,paginationGoToPreviousPage:e8t,paginationGoToFirstPage:t8t,paginationGoToLastPage:n8t,paginationGoToPage:r8t},dependsOn:[pM]};function h8t(e,t={}){const n=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(n))}function frt(e,t,n,r,i){t&&(r&&t.parent&&t.parent.level!==-1&&frt(e,t.parent,n,r,i),t.setExpanded(n,void 0,i))}function f8t(e,t){return e.rowModel.getRowNode(t)}function g8t(e,t,n,r){e.rowRenderer.addRenderedRowListener(t,n,r)}function m8t(e){return e.rowRenderer.getRenderedNodes()}function v8t(e,t,n){e.rowModel.forEachNode(t,n)}function b8t(e){return e.rowRenderer.firstRenderedRow}function y8t(e){return e.rowRenderer.lastRenderedRow}function M8t(e,t){return e.rowModel.getRow(t)}function C8t(e){return e.rowModel.getRowCount()}var x8t={moduleName:"RowApi",version:Jn,apiFunctions:{redrawRows:h8t,setRowNodeExpanded:frt,getRowNode:f8t,addRenderedRowListener:g8t,getRenderedNodes:m8t,forEachNode:v8t,getFirstDisplayedRowIndex:b8t,getLastDisplayedRowIndex:y8t,getDisplayedRowAtIndex:M8t,getDisplayedRowCount:C8t}},w8t={moduleName:"ScrollApi",version:Jn,apiFunctions:{getVerticalPixelRange:ajt,getHorizontalPixelRange:sjt,ensureColumnVisible:irt,ensureIndexVisible:ort,ensureNodeVisible:ljt}};function S8t(e,t,n){if(!t)return;const r=e.ctrlsSvc.getGridBodyCtrl().eGridBody,i=`aria-${t}`;n===null?r.removeAttribute(i):r.setAttribute(i,n)}function A8t(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function O8t(e){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getHeaderRowContainerCtrls().forEach(t=>t.refresh()))}function z8t(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function T8t(e){e.animationFrameSvc?.flushAllFrames()}function E8t(e){return{rowHeight:sp(e),headerHeight:M6(e)}}function R8t(e,t={}){const n=[];if(e.rowRenderer.getCellCtrls(t.rowNodes,t.columns).forEach(o=>{const a=o.getCellRenderer();a!=null&&n.push(Mz(a))}),t.columns?.length)return n;const r=[],i=whe(t.rowNodes);return e.rowRenderer.getAllRowCtrls().forEach(o=>{if(i&&!She(o.rowNode,i)||!o.isFullWidth())return;const a=o.getFullWidthCellRenderers();for(let s=0;s<a.length;s++){const l=a[s];l!=null&&r.push(Mz(l))}}),[...r,...n]}var I8t={moduleName:"RenderApi",version:Jn,apiFunctions:{setGridAriaProperty:S8t,refreshCells:A8t,refreshHeader:O8t,isAnimationFrameQueueEmpty:z8t,flushAllAnimationFrames:T8t,getSizesForCurrentTheme:E8t,getCellRendererInstances:R8t}};function P8t(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function D8t(e,t,n){e.colAutosize?.autoSizeCols({colKeys:t,skipHeader:n,source:"api"})}function k8t(e,t){e.colAutosize?.autoSizeAllColumns("api",t)}var L8t=class extends dt{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}autoSizeCols(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeCols(e));return}const{colKeys:t,skipHeader:n,skipHeaderGroups:r,stopAtGroup:i,source:o="api"}=e,{animationFrameSvc:a,renderStatus:s,colModel:l,autoWidthCalc:c,visibleCols:u}=this.beans;if(a?.flushAllFrames(),this.timesDelayed<5&&s&&!s.areHeaderCellsRendered()){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.autoSizeCols(e)});return}this.timesDelayed=0;const d=[];let p=-1;const h=n??this.gos.get("skipHeaderOnAutoSize"),g=r??h;for(;p!==0;){p=0;const m=[];t.forEach(b=>{if(!b)return;const y=l.getCol(b);if(!y||p0(y)||d.indexOf(y)>=0)return;const M=c.getPreferredWidthForColumn(y,h);if(M>0){const C=_8t(y,M);y.setActualWidth(C,o),d.push(y),p++}m.push(y)}),m.length&&u.refresh(o)}g||this.autoSizeColumnGroupsByColumns(t,o,i),rP(this.eventSvc,d,!0,"autosizeColumns")}autoSizeColumn(e,t,n){e&&this.autoSizeCols({colKeys:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){const{colModel:r,ctrlsSvc:i}=this.beans,o=new Set;r.getColsForKeys(e).forEach(c=>{let u=c.getParent();for(;u&&u!=n;)u.isPadding()||o.add(u),u=u.getParent()});let s;const l=[];for(const c of o){for(const u of i.getHeaderRowContainerCtrls())if(s=u.getHeaderCtrlForColumn(c),s)break;s&&s.resizeLeafColumnsToFit(t)}return l}autoSizeAllColumns(e,t){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e,t));return}const n=this.beans.visibleCols.allCols;this.autoSizeCols({colKeys:n,skipHeader:t,source:e})}addColumnAutosize(e,t){const n=this.gos.get("skipHeaderOnAutoSize"),r=()=>{this.autoSizeColumn(t,"uiColumnResized",n)};e.addEventListener("dblclick",r);const i=new sy(e);return i.addEventListener("doubleTap",r),()=>{e.removeEventListener("dblclick",r),i.removeEventListener("doubleTap",r),i.destroy()}}addColumnGroupResize(e,t,n){const r=this.gos.get("skipHeaderOnAutoSize"),i=()=>{const o=[];t.getDisplayedLeafColumns().forEach(s=>{s.getColDef().suppressAutoSize||o.push(s.getColId())}),o.length>0&&this.autoSizeCols({colKeys:o,skipHeader:r,stopAtGroup:t,source:"uiColumnResized"}),n()};return e.addEventListener("dblclick",i),()=>e.removeEventListener("dblclick",i)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const{ctrlsSvc:n,scrollVisibleSvc:r}=this.beans,i=n.getGridBodyCtrl(),a=i.isVerticalScrollShowing()?r.getScrollbarWidth():0,l=JI(i.eGridBody)-a;if(l>0){this.sizeColumnsToFit(l,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):ut(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",n,r){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,n,r));return}const i={};r&&r?.columnLimits?.forEach(({key:h,...g})=>{i[typeof h=="string"?h:h.getColId()]=g});const o=this.beans.visibleCols.allCols;if(e<=0||!o.length||e===ay(o)&&o.every(g=>{if(g.colDef.suppressSizeToFit)return!0;const m=i?.[g.getId()],b=m?.minWidth??r?.defaultMinWidth,y=m?.maxWidth??r?.defaultMaxWidth,M=g.getActualWidth();return(b==null||M>=b)&&(y==null||M<=y)}))return;const s=[],l=[];o.forEach(h=>{h.getColDef().suppressSizeToFit===!0?l.push(h):s.push(h)});const c=s.slice(0);let u=!1;const d=h=>{Ou(s,h),l.push(h)};for(s.forEach(h=>{h.resetActualWidth(t);const g=i?.[h.getId()],m=g?.minWidth??r?.defaultMinWidth,b=g?.maxWidth??r?.defaultMaxWidth,y=h.getActualWidth();typeof m=="number"&&y<m?h.setActualWidth(m,t,!0):typeof b=="number"&&y>b&&h.setActualWidth(b,t,!0)});!u;){u=!0;const h=e-ay(l);if(h<=0)s.forEach(g=>{const m=i?.[g.getId()]?.minWidth??r?.defaultMinWidth;if(typeof m=="number"){g.setActualWidth(m,t,!0);return}g.setActualWidth(g.minWidth,t)});else{const g=h/ay(s);let m=h;for(let b=s.length-1;b>=0;b--){const y=s[b],M=i?.[y.getId()],C=M?.minWidth??r?.defaultMinWidth,x=M?.maxWidth??r?.defaultMaxWidth,w=y.getMinWidth(),S=y.getMaxWidth(),A=typeof C=="number"&&C>w?C:w,z=typeof x=="number"&&x<S?x:S;let O=Math.round(y.getActualWidth()*g);O<A?(O=A,d(y),u=!1):O>z?(O=z,d(y),u=!1):b===0&&(O=m),y.setActualWidth(O,t,!0),m-=O}}}c.forEach(h=>{h.fireColumnWidthChangedEvent(t)});const p=this.beans.visibleCols;p.setLeftValues(t),p.updateBodyWidths(),!n&&rP(this.eventSvc,c,!0,t)}applyAutosizeStrategy(){const e=this.gos.get("autoSizeStrategy");if(!e)return;const{type:t}=e;setTimeout(()=>{if(t==="fitGridWidth"){const{columnLimits:n,defaultMinWidth:r,defaultMaxWidth:i}=e,o=n?.map(({colId:a,minWidth:s,maxWidth:l})=>({key:a,minWidth:s,maxWidth:l}));this.sizeColumnsToFitGridBody({defaultMinWidth:r,defaultMaxWidth:i,columnLimits:o})}else t==="fitProvidedWidth"&&this.sizeColumnsToFit(e.width,"sizeColumnsToFit")})}onFirstDataRendered(){const e=this.gos.get("autoSizeStrategy");if(e?.type!=="fitCellContents")return;const{colIds:t,skipHeader:n}=e;setTimeout(()=>{t?this.autoSizeCols({colKeys:t,skipHeader:n,source:"autosizeColumns"}):this.autoSizeAllColumns("autosizeColumns",n)})}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(e=>e()),this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function _8t(e,t){const n=e.getMinWidth();t<n&&(t=n);const r=e.getMaxWidth();return e.isGreaterThanMax(t)&&(t=r),t}var N8t={moduleName:"ColumnAutoSize",version:Jn,beans:[L8t],apiFunctions:{sizeColumnsToFit:P8t,autoSizeColumns:D8t,autoSizeAllColumns:k8t},dependsOn:[snt]},F8t=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function W8t(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function q8t(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function B8t(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function j8t(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function H8t(e,t,n){return e.pinnedRowModel?.forEachPinnedRow(t,n)}var V8t={moduleName:"PinnedRow",version:Jn,beans:[V_t],css:[F8t],apiFunctions:{getPinnedTopRowCount:W8t,getPinnedBottomRowCount:q8t,getPinnedTopRow:B8t,getPinnedBottomRow:j8t,forEachPinnedRow:H8t},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},G8t=class extends LN{constructor(e,t,n){super(e.col,e.firstNode,n,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,n,r,i,o,a){this.eWrapper=n,super.setComp(e,t,n,r,i,o,a),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){this.rowNode.rowIndex!=null&&MK(this.eGui,this.rowNode.rowIndex)}setAriaRowSpan(){hkt(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(RK(t)){this.focusedCellPosition=void 0;return}const n=this.isCellFocused();n||(this.focusedCellPosition=void 0),e&&n&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},$8t=class extends N${onRowIndexChanged(){super.onRowIndexChanged(),this.getAllCellCtrls().forEach(e=>e.refreshAriaRowIndex())}getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new G8t(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},U8t=class extends dt{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,n=`${e}Ctrls`,r=this[n],i=r.size,o=this.getAllRelevantRowControls(e),a=new Map;let s=!1;for(const c of o)c.isAlive()&&t?.forEachSpannedColumn(c.rowNode,(u,d)=>{if(a.has(d.firstNode))return;const p=r.get(d.firstNode);if(p){a.set(d.firstNode,p),r.delete(d.firstNode);return}s=!0;const h=new $8t(d.firstNode,this.beans,!1,!1,!1);a.set(d.firstNode,h)});this[n]=a;const l=a.size===i;if(!(!s&&l)){for(const c of r.values())c.destroyFirstPass(!0),c.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,n=t?.getCellSpanByPosition(e);if(!n)return;const r=`${grt(e.rowPinned)}Ctrls`,i=this[r].get(n.firstNode);if(i)return i.getAllCellCtrls().find(o=>o.column===e.column)}getCtrls(e){const t=`${e}Ctrls`;return[...this[t].values()]}destroyRowCtrls(e){const t=`${e}Ctrls`;for(const n of this[t].values())n.destroyFirstPass(!0),n.destroySecondPass();this[t]=new Map}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},grt=e=>e??"center",X8t=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;return this.spannedNodes.forEach(n=>{n!==this.lastNode&&(t+=n.rowHeight)}),e-t}},Y8t=class extends dt{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:n,pinnedRowModel:r,rowModel:i,valueSvc:o,pagination:a}}=this,{colDef:s}=t,l=this[`${e}ValueNodeMap`],c=new Map,u=n.getCallback("isFullWidthRow"),d=s.equals,p=s.spanRows,h=typeof p=="function";let g=null,m=null,b;const y=(C,x)=>{g=C,m=null,b=x},M=C=>{const x=!C.isExpandable()&&!C.group&&!C.detail&&(u?!u({rowNode:C}):!0);if(C.rowIndex==null||!x){y(null,null);return}if(g==null||C.level!==g.level||C.footer||m&&C.rowIndex-1!==m?.getLastNode().rowIndex){y(C,o.getValue(t,C));return}const w=o.getValue(t,C);if(h){const S=Gn(n,{valueA:b,nodeA:g,valueB:w,nodeB:C,column:t,colDef:s});if(!p(S)){y(C,w);return}}else if(d?!d(b,w):b!==w){y(C,w);return}if(!m){const S=l?.get(g);S?.firstNode===g?(S.reset(),m=S):m=new X8t(t,g),c.set(g,m)}m.addSpannedNode(C),c.set(C,m)};switch(e){case"center":i.forEachDisplayedNode?.(C=>{(!a||a.isRowInPage(C.rowIndex))&&M(C)});break;case"top":r?.forEachPinnedRow("top",M);break;case"bottom":r?.forEachPinnedRow("bottom",M);break}this[`${e}ValueNodeMap`]=c}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this[`${grt(e.rowPinned)}ValueNodeMap`].get(e)}},K8t=class extends dt{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=Ml(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=Ml(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const n=this.createManagedBean(new Y8t(e));this.spanningColumns.set(e,n),n.buildCache("top"),n.buildCache("bottom"),n.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const n=this.spanningColumns.get(e);return n?n.isCellSpanning(t):!1}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:n}=this.beans,r=e.column,i=e.rowIndex,o=this.spanningColumns.get(r);if(!o)return;let a;switch(e.rowPinned){case"top":a=t?.getPinnedTopRow(i);break;case"bottom":a=t?.getPinnedBottomRow(i);break;default:a=n.getRow(i)}if(a)return o.getCellSpan(a)}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const n=this.spanningColumns.get(e);if(n)return n.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[n,r]of this.spanningColumns)if(r.isCellSpanning(e)){const i=r.getCellSpan(e);t(n,i)}}destroy(){super.destroy(),this.spanningColumns.clear()}},Q8t={moduleName:"CellSpan",version:Jn,beans:[K8t,U8t]},Z8t=class extends dt{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,n=e.colDef,r=n.cellClassRules,i=this.getCellClassParams(e,n);Oye(this.beans.expressionSvc,r===this.cellClassRules?void 0:this.cellClassRules,r,i,o=>t.toggleCss(o,!0),o=>t.toggleCss(o,!1)),this.cellClassRules=r}applyUserStyles(){const e=this.column,t=e.colDef,n=t.cellStyle;if(!n)return;let r;if(typeof n=="function"){const i=this.getCellClassParams(e,t);r=n(i)}else r=n;r&&this.cellComp.setUserStyles(r)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,n=e.colDef,r=this.getCellClassParams(e,n);this.staticClasses.forEach(o=>t.toggleCss(o,!1));const i=this.beans.cellStyles.getStaticCellClasses(n,r);this.staticClasses=i,i.forEach(o=>t.toggleCss(o,!0))}getCellClassParams(e,t){const{value:n,rowNode:r}=this.cellCtrl;return Gn(this.beans.gos,{value:n,data:r.data,node:r,colDef:t,column:e,rowIndex:r.rowIndex})}},J8t=class extends dt{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,n,r){Oye(this.beans.expressionSvc,void 0,e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)}getStaticCellClasses(e,t){const{cellClass:n}=e;if(!n)return[];let r;return typeof n=="function"?r=n(t):r=n,typeof r=="string"&&(r=[r]),r||[]}createCellCustomStyleFeature(e,t){return new Z8t(e,t)}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach(i=>{n(i)})}},mrt={moduleName:"CellStyle",version:Jn,beans:[J8t]},eVt={moduleName:"RowStyle",version:Jn,beans:[F4t]};function tVt(e,t){return!!e.colHover?.isHovered(t)}var nVt=class extends dt{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=n=>{const{beans:r,gos:i,element:o,columns:a}=this,s=r.colHover;n??!!i.get("columnHoverHighlight")?this.destroyManagedListeners=this.addManagedElementListeners(o,{mouseover:s.setMouseOver.bind(s,a),mouseout:s.clearMouseOver.bind(s)}):(this.destroyManagedListeners.forEach(c=>c()),this.destroyManagedListeners=[])}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},rVt="ag-column-hover",iVt=class extends dt{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,n){const r=()=>{const i=this.isHovered(n);t.toggleCss("ag-column-hover",i)};e.addManagedEventListeners({columnHoverChanged:r}),r()}onCellColumnHover(e,t){if(!t)return;const n=this.isHovered(e);t.toggleCss(rVt,n)}addHeaderFilterColumnHoverListener(e,t,n,r){this.createHoverFeature(e,[n],r);const i=()=>{const o=this.isHovered(n);t.toggleCss("ag-column-hover",o)};e.addManagedEventListeners({columnHoverChanged:i}),i()}createHoverFeature(e,t,n){e.createManagedBean(new nVt(t,n))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},oVt={moduleName:"ColumnHover",version:Jn,beans:[iVt],apiFunctions:{isColumnHovered:tVt}},aVt=class extends dt{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addEventListener(e,t){const n=this.wrapSvc?.wrap(e,t)??t,r=!ZG.has(e),i=r?this.asyncListeners:this.syncListeners;i.has(e)||i.set(e,new Set),i.get(e).add(n),this.eventSvc.addEventListener(e,n,r)}removeEventListener(e,t){const n=this.wrapSvc?.unwrap(e,t)??t,i=!!this.asyncListeners.get(e)?.delete(n);i||this.syncListeners.get(e)?.delete(n),this.eventSvc.removeEventListener(e,n,i)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,n=(o,a)=>{ZG.has(o)&&t(o,a)},r=(o,a)=>{ZG.has(o)||t(o,a)};this.globalListenerPairs.set(e,{syncListener:n,asyncListener:r});const i=this.eventSvc;i.addGlobalListener(n,!1),i.addGlobalListener(r,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:n,globalListenerPairs:r}=this,i=n?.unwrapGlobal(e)??e;if(r.has(i)){const{syncListener:a,asyncListener:s}=r.get(i);t.removeGlobalListener(a,!1),t.removeGlobalListener(s,!0),r.delete(e)}else this.syncGlobalListeners.delete(i),t.removeGlobalListener(i,!1)}destroyEventListeners(e,t){e.forEach((n,r)=>{n.forEach(i=>this.eventSvc.removeEventListener(r,i,t)),n.clear()}),e.clear()}destroyGlobalListeners(e,t){e.forEach(n=>this.eventSvc.removeGlobalListener(n,t)),e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:n,asyncListener:r})=>{t.removeGlobalListener(n,!1),t.removeGlobalListener(r,!0)}),e.clear()}};function sVt(e,t,n){e.apiEventSvc?.addEventListener(t,n)}function lVt(e,t,n){e.apiEventSvc?.removeEventListener(t,n)}function cVt(e,t){e.apiEventSvc?.addGlobalListener(t)}function uVt(e,t){e.apiEventSvc?.removeGlobalListener(t)}var vrt={moduleName:"EventApi",version:Jn,apiFunctions:{addEventListener:sVt,addGlobalListener:cVt,removeEventListener:lVt,removeGlobalListener:uVt},beans:[aVt]},dVt=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);white-space:normal}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}",pVt=class extends dt{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,n,r){e&&t.destroyBean(e);const i=qN(this.gos),{column:o,eGui:a}=t,s=o.getColDef();!r&&i&&!s.headerComponent&&(r=FO(()=>a.querySelector(".ag-header-cell-text")));const l={getColumn:()=>o,getColDef:()=>o.getColDef(),getGui:()=>a,getLocation:()=>"header",getTooltipValue:()=>n??o.getColDef().headerTooltip,shouldDisplayTooltip:r};let c=this.createTooltipFeature(l);return c&&(c=t.createBean(c),t.setRefreshFunction("tooltip",()=>c.refreshTooltip())),c}setupHeaderGroupTooltip(e,t,n,r){e&&t.destroyBean(e);const i=qN(this.gos),{column:o,eGui:a}=t,s=o.getColGroupDef();!r&&i&&!s?.headerGroupComponent&&(r=FO(()=>a.querySelector(".ag-header-group-text")));const l={getColumn:()=>o,getGui:()=>a,getLocation:()=>"headerGroup",getTooltipValue:()=>n??(s&&s.headerTooltip),shouldDisplayTooltip:r};s&&(l.getColDef=()=>s);const c=this.createTooltipFeature(l);return c&&t.createBean(c)}enableCellTooltipFeature(e,t,n){const{column:r,rowNode:i}=e,o=()=>{const l=r.getColDef(),c=i.data;if(l.tooltipField&&Ut(c))return kN(c,l.tooltipField,r.isTooltipFieldContainsDots());const u=l.tooltipValueGetter;return u?u(Gn(this.gos,{location:"cell",colDef:r.getColDef(),column:r,rowIndex:e.cellPosition.rowIndex,node:i,data:i.data,value:e.value,valueFormatted:e.valueFormatted})):null},a=qN(this.gos);!n&&a&&!e.isCellRenderer()&&(n=FO(()=>{const l=e.eGui;return l.children.length===0?l:l.querySelector(".ag-cell-value")}));const s={getColumn:()=>r,getColDef:()=>r.getColDef(),getRowIndex:()=>e.cellPosition.rowIndex,getRowNode:()=>i,getGui:()=>e.eGui,getLocation:()=>"cell",getTooltipValue:t!=null?()=>t:o,getValueFormatted:()=>e.valueFormatted,shouldDisplayTooltip:n};return this.createTooltipFeature(s,this.beans)}refreshRowTooltip(e,t,n,r){const i={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>n,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:r},o=this.beans,a=o.context;e&&t.destroyBean(e,a);const s=this.createTooltipFeature(i,o);return t.createBean(s,a)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=Ut(t.tooltipField)||Ut(t.tooltipValueGetter)||Ut(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},hVt={moduleName:"Tooltip",version:Jn,beans:[pVt],dynamicBeans:{tooltipFeature:i5t},userComponents:{agTooltipComponent:R6t},dependsOn:[pM],css:[dVt]},fVt={moduleName:"Locale",version:Jn,beans:[A6t]},gVt=class extends dt{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=Ml(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:n,pinnedRowModel:r}=this.beans,i=e.autoHeightCols;let o=!1;const a=s=>{const l=s.__autoHeights;let c=bd(this.beans,s).height;for(const u of i){let d=l?.[u.getColId()];const p=n?.getCellSpan(u,s);if(p){if(p.getLastNode()!==s)continue;if(d=n?.getCellSpan(u,s)?.getLastNodeAutoHeight(),!d)return}if(d==null){if(this.colSpanSkipCell(u,s))continue;return}c=Math.max(d,c)}c!==s.rowHeight&&(s.setRowHeight(c),o=!0)};r?.forEachPinnedRow?.("top",a),r?.forEachPinnedRow?.("bottom",a),t.forEachDisplayedNode?.(a),o&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,n){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[n.getId()];return}const r=e.__autoHeights[n.getId()];e.__autoHeights[n.getId()]=t,r!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:n,colViewport:r,visibleCols:i}=this.beans;if(!n.colSpanActive)return!1;let o=[];switch(e.getPinned()){case"left":o=i.getLeftColsForRow(t);break;case"right":o=i.getRightColsForRow(t);break;case null:o=r.getColsWithinViewport(t);break}return!o.includes(e)}setupCellAutoHeight(e,t,n){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const r=t.parentElement,{rowNode:i,column:o}=e,a=this.beans,s=u=>{if(e.editing||!e.isAlive()||!n.isAlive())return;const{paddingTop:d,paddingBottom:p,borderBottomWidth:h,borderTopWidth:g}=f3(r),m=d+p+h+g,y=t.offsetHeight+m;if(u<5){const M=bl(a),C=!M||!M.contains(t),x=y==0;if(C||x){window.setTimeout(()=>s(u+1),0);return}}this.setRowAutoHeight(i,y,o)},l=()=>s(0);l();const c=Hf(a,t,l);return n.addDestroyFunc(()=>{c(),this.setRowAutoHeight(i,void 0,o)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:n}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(n).filter(i=>i.isAutoHeight())),t.length!==0){if(!n.__autoHeights)return!1;for(const r of t){const i=n.__autoHeights[r.getColId()];if(!i||n.rowHeight<i)return!1}}return!0}},mVt={moduleName:"RowAutoHeight",version:Jn,beans:[gVt]},vVt={moduleName:"AllCommunity",version:Jn,dependsOn:[mHt,prt,PHt,B6t,Sjt,Ajt,Ojt,zjt,Tjt,Ejt,Rjt,wjt,kBt,LBt,_Bt,DBt,FBt,WBt,UHt,Zjt,p8t,pFt,x8t,w8t,I8t,N8t,X5t,V8t,Vjt,a6t,mrt,oVt,eVt,vrt,c6t,hrt,hVt,fVt,mVt,U5t,vHt,Q8t]},bVt=class{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(e,t){let n=e[0],r=e[1],i=e[2],o=e[3];n=this.ff(n,r,i,o,t[0],7,-680876936),o=this.ff(o,n,r,i,t[1],12,-389564586),i=this.ff(i,o,n,r,t[2],17,606105819),r=this.ff(r,i,o,n,t[3],22,-1044525330),n=this.ff(n,r,i,o,t[4],7,-176418897),o=this.ff(o,n,r,i,t[5],12,1200080426),i=this.ff(i,o,n,r,t[6],17,-1473231341),r=this.ff(r,i,o,n,t[7],22,-45705983),n=this.ff(n,r,i,o,t[8],7,1770035416),o=this.ff(o,n,r,i,t[9],12,-1958414417),i=this.ff(i,o,n,r,t[10],17,-42063),r=this.ff(r,i,o,n,t[11],22,-1990404162),n=this.ff(n,r,i,o,t[12],7,1804603682),o=this.ff(o,n,r,i,t[13],12,-40341101),i=this.ff(i,o,n,r,t[14],17,-1502002290),r=this.ff(r,i,o,n,t[15],22,1236535329),n=this.gg(n,r,i,o,t[1],5,-165796510),o=this.gg(o,n,r,i,t[6],9,-1069501632),i=this.gg(i,o,n,r,t[11],14,643717713),r=this.gg(r,i,o,n,t[0],20,-373897302),n=this.gg(n,r,i,o,t[5],5,-701558691),o=this.gg(o,n,r,i,t[10],9,38016083),i=this.gg(i,o,n,r,t[15],14,-660478335),r=this.gg(r,i,o,n,t[4],20,-405537848),n=this.gg(n,r,i,o,t[9],5,568446438),o=this.gg(o,n,r,i,t[14],9,-1019803690),i=this.gg(i,o,n,r,t[3],14,-187363961),r=this.gg(r,i,o,n,t[8],20,1163531501),n=this.gg(n,r,i,o,t[13],5,-1444681467),o=this.gg(o,n,r,i,t[2],9,-51403784),i=this.gg(i,o,n,r,t[7],14,1735328473),r=this.gg(r,i,o,n,t[12],20,-1926607734),n=this.hh(n,r,i,o,t[5],4,-378558),o=this.hh(o,n,r,i,t[8],11,-2022574463),i=this.hh(i,o,n,r,t[11],16,1839030562),r=this.hh(r,i,o,n,t[14],23,-35309556),n=this.hh(n,r,i,o,t[1],4,-1530992060),o=this.hh(o,n,r,i,t[4],11,1272893353),i=this.hh(i,o,n,r,t[7],16,-155497632),r=this.hh(r,i,o,n,t[10],23,-1094730640),n=this.hh(n,r,i,o,t[13],4,681279174),o=this.hh(o,n,r,i,t[0],11,-358537222),i=this.hh(i,o,n,r,t[3],16,-722521979),r=this.hh(r,i,o,n,t[6],23,76029189),n=this.hh(n,r,i,o,t[9],4,-640364487),o=this.hh(o,n,r,i,t[12],11,-421815835),i=this.hh(i,o,n,r,t[15],16,530742520),r=this.hh(r,i,o,n,t[2],23,-995338651),n=this.ii(n,r,i,o,t[0],6,-198630844),o=this.ii(o,n,r,i,t[7],10,1126891415),i=this.ii(i,o,n,r,t[14],15,-1416354905),r=this.ii(r,i,o,n,t[5],21,-57434055),n=this.ii(n,r,i,o,t[12],6,1700485571),o=this.ii(o,n,r,i,t[3],10,-1894986606),i=this.ii(i,o,n,r,t[10],15,-1051523),r=this.ii(r,i,o,n,t[1],21,-2054922799),n=this.ii(n,r,i,o,t[8],6,1873313359),o=this.ii(o,n,r,i,t[15],10,-30611744),i=this.ii(i,o,n,r,t[6],15,-1560198380),r=this.ii(r,i,o,n,t[13],21,1309151649),n=this.ii(n,r,i,o,t[4],6,-145523070),o=this.ii(o,n,r,i,t[11],10,-1120210379),i=this.ii(i,o,n,r,t[2],15,718787259),r=this.ii(r,i,o,n,t[9],21,-343485551),e[0]=this.add32(n,e[0]),e[1]=this.add32(r,e[1]),e[2]=this.add32(i,e[2]),e[3]=this.add32(o,e[3])}cmn(e,t,n,r,i,o){return t=this.add32(this.add32(t,e),this.add32(r,o)),this.add32(t<<i|t>>>32-i,n)}ff(e,t,n,r,i,o,a){return this.cmn(t&n|~t&r,e,t,i,o,a)}gg(e,t,n,r,i,o,a){return this.cmn(t&r|n&~r,e,t,i,o,a)}hh(e,t,n,r,i,o,a){return this.cmn(t^n^r,e,t,i,o,a)}ii(e,t,n,r,i,o,a){return this.cmn(n^(t|~r),e,t,i,o,a)}md51(e){const t=e.length,n=[1732584193,-271733879,-1732584194,271733878];let r;for(r=64;r<=e.length;r+=64)this.md5cycle(n,this.md5blk(e.substring(r-64,r)));e=e.substring(r-64);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<e.length;r++)i[r>>2]|=e.charCodeAt(r)<<(r%4<<3);if(i[r>>2]|=128<<(r%4<<3),r>55)for(this.md5cycle(n,i),r=0;r<16;r++)i[r]=0;return i[14]=t*8,this.md5cycle(n,i),n}md5blk(e){const t=[];for(let n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}rhex(e){const t="0123456789abcdef".split("");let n="",r=0;for(;r<4;r++)n+=t[e>>r*8+4&15]+t[e>>r*8&15];return n}hex(e){for(let t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")}md5(e){return this.hex(this.md51(e))}add32(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)}add32Std(e,t){return e+t&4294967295}add32Compat(e,t){const n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}},JH={"01":"GRID","02":"CHARTS","0102":"BOTH"},uRe="https://www.ag-grid.com/licensing/",brt=class F1{constructor(t){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=t,this.md5=new bVt,this.md5.init()}validateLicense(){const t=this.getLicenseDetails(F1.licenseKey),n=`AG Grid ${t.currentLicenseType==="BOTH"?"and AG Charts ":""}Enterprise`,r=t.suppliedLicenseType===void 0?"":`AG ${t.suppliedLicenseType==="BOTH"?"Grid and AG Charts":t.suppliedLicenseType==="GRID"?"Grid":"Charts"} Enterprise`;if(t.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(n);else if(t.expired){const i=F1.getGridReleaseDate(),o=F1.formatDate(i);this.outputExpiredKey(t.expiry,o,n,r)}else t.valid?t.isTrial&&t.trialExpired&&this.outputExpiredTrialKey(t.expiry,n,r):this.outputInvalidLicenseKey(!!t.incorrectLicenseType,n,r)}static extractExpiry(t){const n=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(F1.decode(n),10))}static extractLicenseComponents(t){let n=t.replace(/[\u200B-\u200D\uFEFF]/g,"");if(n=n.replace(/\r?\n|\r/g,""),t.length<=32)return{md5:null,license:t,version:null,isTrial:null};const r=n.length-32,i=n.substring(r),o=n.substring(0,r),[a,s,l]=F1.extractBracketedInformation(n);return{md5:i,license:o,version:a,isTrial:s,type:l}}getLicenseDetails(t){const n=F1.chartsLicenseManager?"BOTH":"GRID";if(!t?.length)return{licenseKey:t,valid:!1,missing:!0,currentLicenseType:n};const r=F1.getGridReleaseDate(),{md5:i,license:o,version:a,isTrial:s,type:l}=F1.extractLicenseComponents(t);let c=i===this.md5.md5(o)&&t.indexOf("For_Trialing_ag-Grid_Only")===-1,u,d,p=null,h=!1,g;function m(){u=p<new Date,d=void 0}if(c&&(p=F1.extractExpiry(o),c=!isNaN(p.getTime()),c))switch(d=r>p,a){case"legacy":case"2":{s&&m();break}case"3":l?.length?(g=l,l!==JH["01"]&&l!==JH["0102"]||n==="BOTH"&&g!=="BOTH"?(c=!1,h=!0):s&&m()):c=!1}return c?{licenseKey:t,valid:c,expiry:F1.formatDate(p),expired:d,version:a,isTrial:s,trialExpired:u,incorrectLicenseType:h,currentLicenseType:n,suppliedLicenseType:g}:{licenseKey:t,valid:c,incorrectLicenseType:h,currentLicenseType:n,suppliedLicenseType:g}}isDisplayWatermark(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!!this.watermarkMessage?.length}getWatermarkMessage(){return this.watermarkMessage||""}getHostname(){const n=(this.document.defaultView||window).location,{hostname:r=""}=n;return r}isForceWatermark(){const n=(this.document.defaultView||window).location,{pathname:r}=n;return r?r.indexOf("forceWatermark")!==-1:!1}isWebsiteUrl(){return this.getHostname().match(/^((?:[\w-]+\.)?ag-grid\.com)$/)!==null}isLocalhost(){return this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)!==null}static formatDate(t){const n=["January","February","March","April","May","June","July","August","September","October","November","December"],r=t.getDate(),i=t.getMonth(),o=t.getFullYear();return r+" "+n[i]+" "+o}static getGridReleaseDate(){return new Date(parseInt(F1.decode(F1.RELEASE_INFORMATION),10))}static decode(t){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r="",i,o,a,s,l,c,u,d=0;const p=t.replace(/[^A-Za-z0-9+/=]/g,"");for(;d<p.length;)s=n.indexOf(p.charAt(d++)),l=n.indexOf(p.charAt(d++)),c=n.indexOf(p.charAt(d++)),u=n.indexOf(p.charAt(d++)),i=s<<2|l>>4,o=(l&15)<<4|c>>2,a=(c&3)<<6|u,r=r+String.fromCharCode(i),c!=64&&(r=r+String.fromCharCode(o)),u!=64&&(r=r+String.fromCharCode(a));return r=F1.utf8_decode(r),r}static utf8_decode(t){t=t.replace(/rn/g,"n");let n="";for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);i<128?n+=String.fromCharCode(i):i>127&&i<2048?(n+=String.fromCharCode(i>>6|192),n+=String.fromCharCode(i&63|128)):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128),n+=String.fromCharCode(i&63|128))}return n}static setChartsLicenseManager(t){this.chartsLicenseManager=t,this.chartsLicenseManager?.setLicenseKey(this.licenseKey,!0)}static setLicenseKey(t){this.licenseKey=t,this.chartsLicenseManager?.setLicenseKey(t,!0)}static extractBracketedInformation(t){if(!t.includes("["))return["legacy",!1,void 0];const n=t.match(/\[(.*?)\]/g).map(s=>s.replace("[","").replace("]",""));if(!n||n.length===0)return["legacy",!1,void 0];const r=n.filter(s=>s==="TRIAL").length===1,i=n.filter(s=>s.indexOf("v")===0)[0],o=i?i.replace("v",""):"legacy",a=JH[n.filter(s=>JH[s])[0]];return[o,r,a]}centerPadAndOutput(t){const n=this.totalMessageLength-t.length;console.error(t.padStart(n/2+t.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(t,n="*",r=""){console.error(t.padEnd(this.totalMessageLength-r.length,n)+r)}outputInvalidLicenseKey(t,n,r){t?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${r} only and does not cover you for ${n}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${uRe}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${uRe}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(t,n,r){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${r} expired on ${t}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(t){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${t} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${t} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(t,n,r,i){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${r} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions of ${i} released before ${t}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${n}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="License Expired"}};brt.RELEASE_INFORMATION="MTc0ODQ1MzQ2MTA5Mg==";var X5=brt,yVt='.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;transition:opacity 1s ease-out 3s;&:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5QjlCOUIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOUI5QjlCIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4yMDZIOC4zNzhsLTIuMTYyIDUuMzRILjc1TDEyLjI1NyA4LjU5Mmg0Ljc2OEwyOC41MyAzNS41NDZoLTUuNTN6bS0xLjcxNy00LjI2TDE0LjYwOSAxNC45NWwtNC41MTQgMTAuOTk4ek0xMDQuNDM3IDE4LjUwOWMxLjU4OS0yLjM1MiA1LjU5NC0yLjYwNyA3LjI0Ny0yLjYwN3Y0LjU3OGMtMi4wMzQgMC00LjA2OS4wNjMtNS4yNzcuOTUzLTEuMjA3Ljg5LTEuODQzIDIuMDk4LTEuODQzIDMuNTZ2MTAuNTUzaC00Ljk1OVYxNS45MDJoNC43Njh6TTExOS4zNzYgMTUuOTAyaC00Ljk1OHYxOS42NDRoNC45NTh6TTExOS4zNzYgNy4xM2gtNC45NTh2NS44NDhoNC45NTh6TTE0My45NzkgNy4xM3YyOC40MTZoLTQuNzY4bC0uMTI3LTIuOTg4YTguMyA4LjMgMCAwIDEtMi42NyAyLjQ4Yy0xLjA4MS41NzItMi40MTYuODktMy45NDIuODktMS4zMzUgMC0yLjYwNi0uMjU1LTMuNjg3LS43LTEuMTQ0LS41MDgtMi4xNjItMS4xNDQtMi45ODgtMi4wMzRhOS42IDkuNiAwIDAgMS0xLjk3MS0zLjE3OWMtLjUwOC0xLjIwNy0uNjk5LTIuNjA2LS42OTktNC4xMzJzLjI1NC0yLjkyNC42OTktNC4xOTZjLjUwOS0xLjI3MSAxLjE0NS0yLjM1MiAxLjk3MS0zLjI0MnMxLjg0NC0xLjU4OSAyLjk4OC0yLjA5OCAyLjM1Mi0uNzYzIDMuNjg3LS43NjNjMS41MjYgMCAyLjc5Ny4yNTUgMy44NzguODI3czEuOTcxIDEuMzM1IDIuNjcgMi40MTZWNy4xOTNoNC45NTl6bS0xMC40MjYgMjQuNTM4YzEuNjUzIDAgMi45MjQtLjU3MiAzLjk0MS0xLjY1M3MxLjUyNi0yLjU0MyAxLjUyNi00LjMyMy0uNTA5LTMuMTc4LTEuNTI2LTQuMzIyYy0xLjAxNy0xLjA4MS0yLjI4OC0xLjY1My0zLjk0MS0xLjY1My0xLjU5IDAtMi45MjUuNTcyLTMuODc4IDEuNjUzLTEuMDE3IDEuMDgtMS41MjYgMi41NDMtMS41MjYgNC4zMjIgMCAxLjc4LjUwOSAzLjE4IDEuNTI2IDQuMjYgMS4wMTcgMS4xNDQgMi4yODggMS43MTYgMy44NzggMS43MTZNNTcuMjAyIDIwLjM1M0g0NC45MzN2NC4yNTloNi45OTNjLS4xOSAyLjE2MS0xLjAxNyAzLjgxNC0yLjQxNiA1LjE1LTEuMzk4IDEuMjctMy4xNzggMS45MDYtNS40NjcgMS45MDYtMS4yNzEgMC0yLjQ4LS4yNTQtMy40OTYtLjY5OWE3IDcgMCAwIDEtMi43MzQtMS45N2MtLjc2My0uODI3LTEuMzM1LTEuODQ0LTEuNzgtMy4wNTJzLS42MzYtMi40OC0uNjM2LTMuOTQyLjE5LTIuNzMzLjYzNi0zLjk0MWMuMzgxLTEuMjA4IDEuMDE3LTIuMTYyIDEuNzgtMy4wNTIuNzYzLS44MjYgMS42NTMtMS40NjIgMi43MzMtMS45N2E5LjEgOS4xIDAgMCAxIDMuNTYtLjdxNC4wMDUgMCA2LjEwMyAxLjkwN2wzLjMwNi0zLjMwNWMtMi40OC0xLjkwNy01LjY1OC0yLjkyNS05LjQwOS0yLjkyNS0yLjA5NyAwLTQuMDA0LjMxOC01LjcyMSAxLjAxOC0xLjcxNi42OTktMy4xNzkgMS41ODktNC4zODYgMi43OTdBMTIuMSAxMi4xIDAgMCAwIDMxLjIgMTYuMjJjLS42MzUgMS43MTctLjk1MyAzLjYyNC0uOTUzIDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1NyAxLjAxNyAyLjAzNSAwIDMuODc4LS4zMTggNS41MzEtMS4wMTcgMS42NTMtLjcgMy4wNTItMS41OSA0LjE5Ni0yLjc5N3ExLjcxNi0xLjgxMiAyLjY3LTQuMzg3Yy42MzYtMS43MTYuOTU0LTMuNjIzLjk1NC01LjY1OHYtLjgyNmMtLjE5MS0uMTI3LS4yNTUtLjQ0NS0uMjU1LS43TTk1Ljk4MiAyMC4zNTNoLTEyLjI3djQuMjU5aDYuOTkzYy0uMTkgMi4xNjEtMS4wMTcgMy44MTQtMi40MTYgNS4xNS0xLjM5OCAxLjI3LTMuMTc4IDEuOTA2LTUuNDY3IDEuOTA2LTEuMjcxIDAtMi40OC0uMjU0LTMuNDk2LS42OTlhNyA3IDAgMCAxLTIuNzM0LTEuOTdjLS43NjMtLjgyNy0xLjMzNS0xLjg0NC0xLjc4LTMuMDUycy0uNjM2LTIuNDgtLjYzNi0zLjk0Mi4xOS0yLjczMy42MzYtMy45NDFjLjM4MS0xLjIwOCAxLjAxNy0yLjE2MiAxLjc4LTMuMDUyLjc2My0uODI2IDEuNjUzLTEuNDYyIDIuNzM0LTEuOTdhOS4xIDkuMSAwIDAgMSAzLjU2LS43cTQuMDA1IDAgNi4xMDMgMS45MDdsMy4zMDUtMy4zMDVjLTIuNDc5LTEuOTA3LTUuNjU4LTIuOTI1LTkuNDA4LTIuOTI1LTIuMDk4IDAtNC4wMDUuMzE4LTUuNzIyIDEuMDE4LTEuNzE2LjY5OS0zLjE3OCAxLjU4OS00LjM4NiAyLjc5N2ExMi4xIDEyLjEgMCAwIDAtMi43OTcgNC4zODZjLS42MzYgMS43MTctLjk1NCAzLjYyNC0uOTU0IDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1OCAxLjAxNyAyLjAzNCAwIDMuODc4LS4zMTggNS41My0xLjAxNyAxLjY1My0uNyAzLjA1Mi0xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}}:where(.ag-ltr) .ag-watermark{right:25px}:where(.ag-rtl) .ag-watermark{left:25px}.ag-watermark-text{font-family:Impact,sans-serif;font-size:19px;font-weight:700;opacity:.5}:where(.ag-ltr) .ag-watermark-text{padding-left:.7rem}:where(.ag-rtl) .ag-watermark-text{padding-right:.7rem}',MVt={tag:"div",cls:"ag-watermark",children:[{tag:"div",ref:"eLicenseTextRef",cls:"ag-watermark-text"}]},CVt=class extends Gt{constructor(){super(MVt),this.eLicenseTextRef=at,this.registerCSS(yVt)}wireBeans(e){this.licenseManager=e.licenseManager}postConstruct(){const e=this.shouldDisplayWatermark();this.setDisplayed(e),e&&(this.eLicenseTextRef.textContent=this.licenseManager.getWatermarkMessage(),window.setTimeout(()=>this.addCss("ag-opacity-zero"),0),window.setTimeout(()=>this.setDisplayed(!1),5e3))}shouldDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}},xVt={selector:"AG-WATERMARK",component:CVt},yrt=class extends dt{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){this.licenseManager=new X5(bl(this.beans)),this.licenseManager.validateLicense()}static getLicenseDetails(e){return new X5(null).getLicenseDetails(e)}getWatermarkSelector(){return xVt}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(e){X5.setLicenseKey(e)}static setChartsLicenseManager(e){X5.setChartsLicenseManager(e)}},wVt=9525,dRe={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49},e8=`\r
`;function pRe(e,t,n){return!t&&t!==""&&t!==0?"":` ${e}="${t}"`}function SVt(e={}){const r=["version"];return e.version||(e.version="1.0"),e.encoding&&r.push("encoding"),e.standalone&&r.push("standalone"),`<?xml ${r.map(o=>`${o}="${e[o]}"`).join(" ")} ?>`}function Mrt(e,t){let n="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(i=>{Object.keys(i.map).forEach(o=>{n+=pRe(i.prefix+o,i.map[o])})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(i=>{n+=pRe(i,e.properties.rawMap[i])}));let r="<"+e.name+n;return!e.children&&e.textNode==null?r+"/>"+e8:e.textNode!=null?r+">"+e.textNode+"</"+e.name+">"+e8:(r+=">"+e8,e.children&&e.children.forEach(i=>{r+=Mrt(i)}),r+"</"+e.name+">"+e8)}var AVt=e=>Math.round(e*96/72),vE=e=>Math.ceil(e*wVt),OVt=e=>{if(e===void 0)return;const n=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(n,0)},JG=(e,t)=>{if(!t)return;let n;return typeof t=="number"?n=t:n=t({rowIndex:e}),n},zVt=(e,t)=>{const{colSpan:n,column:r}=e.position;if(e.width)if(n){const i=t.slice(r-1,r+n-1);let o=0;for(let a=0;a<i.length;a++){const s=i[a].getActualWidth();if(e.width<o+s){e.position.colSpan=a+1,e.totalWidth=e.width,e.width=e.totalWidth-o;break}o+=s}}else e.totalWidth=e.width},TVt=(e,t)=>{const{rowSpan:n,row:r}=e.position;if(e.height)if(n){let i=0,o=0;for(let a=r;a<r+n;a++){const s=AVt(JG(a,t)||20);if(e.height<i+s){e.position.rowSpan=o+1,e.totalHeight=e.height,e.height=e.totalHeight-i;break}i+=s,o++}}else e.totalHeight=e.height},m1=(e,t)=>{const n=SVt({encoding:"UTF-8",standalone:"yes"}),r=Mrt(e);return t?r:`${n}${r}`},wz=e=>{const r=String.fromCharCode,i=Math.floor(e/26),o=e%26;return!i||e===26?r(65+e-1):o?i<26?r(65+i-1)+r(65+o-1):wz(i)+r(65+o-1):wz(i-1)+"Z"},EVt=e=>e.replaceAll(`
`,"_x000a_"),Ohe=e=>{if(e==null)return null;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(r>=0&&r<=31&&r!==10){const a=`_x${r.toString(16).toUpperCase().padStart(4,"0")}_`;t+=a}else t+=e[n]}return t},RVt=e=>{const t=[];for(const n of e.keys()){const r=n.toString(),i={name:"t",textNode:sm(Ohe(r))};r.trim().length!==r.length&&(i.properties={rawMap:{"xml:space":"preserve"}}),t.push({name:"si",children:[i]})}return t},IVt={getTemplate(e){const{name:t,ContentType:n,Extension:r,PartName:i}=e;return{name:t,properties:{rawMap:{Extension:r,PartName:i,ContentType:n}}}}},PVt=IVt,HK=e=>e==="jpg"?"jpeg":e,DVt={getTemplate(e){const t=new Array(e).fill(void 0).map((c,u)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:`/xl/worksheets/sheet${u+1}.xml`})),n=Az.size,r=Ux.size,i={};aP.forEach(c=>{i[HK(c.type)]=!0});const o=new Array(n).fill(void 0).map((c,u)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:`/xl/drawings/drawing${u+1}.xml`})),a=[];Vy.forEach(({name:c})=>{a.push({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",PartName:`/xl/tables/${c}.xml`})});const s=Object.keys(i).map(c=>({name:"Default",ContentType:`image/${c}`,Extension:c}));r&&s.push({name:"Default",Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});const l=[...s,{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},...t,{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},...o,...a,{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}].map(c=>PVt.getTemplate(c));return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:l}}},kVt=DVt,LVt={getTemplate(e){const n=new Date().toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:e},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:n},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:n}]}}},_Vt=LVt,hRe=(e,t)=>({name:`xdr:${e}`,children:[{name:"xdr:col",textNode:t.col.toString()},{name:"xdr:colOff",textNode:t.offsetX.toString()},{name:"xdr:row",textNode:t.row.toString()},{name:"xdr:rowOff",textNode:t.offsetY.toString()}]}),NVt=e=>{const t=[{name:"a:ext",properties:{rawMap:{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}},children:[{name:"a16:creationId",properties:{rawMap:{id:"{822E6D20-D7BC-2841-A643-D49A6EF008A2}","xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main"}}}]}];switch(e.recolor&&e.recolor.toLowerCase()){case"grayscale":case"sepia":case"washout":t.push({name:"a:ext",properties:{rawMap:{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[{name:"adec:decorative",properties:{rawMap:{val:"0","xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative"}}}]})}return{name:"a:extLst",children:t}},FVt=(e,t)=>({name:"xdr:nvPicPr",children:[{name:"xdr:cNvPr",properties:{rawMap:{id:t,name:e.id,descr:e.altText!=null?e.altText:void 0}},children:[NVt(e)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}),fRe=e=>{if(!e.saturation&&!e.tint)return;const t=[];return e.saturation&&t.push({name:"a:satMod",properties:{rawMap:{val:e.saturation*1e3}}}),e.tint&&t.push({name:"a:tint",properties:{rawMap:{val:e.tint*1e3}}}),t},WVt=(e,t)=>({name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:e.color}},children:fRe(e)},{name:"a:srgbClr",properties:{rawMap:{val:t.color}},children:fRe(t)}]}),qVt=(e,t)=>{let n;if(e.transparency){const r=Math.min(Math.max(e.transparency,0),100);n=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(r*1e3)}}}]}if(e.recolor)switch(n||(n=[]),e.recolor.toLocaleLowerCase()){case"grayscale":n.push({name:"a:grayscl"});break;case"sepia":n.push(WVt({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":n.push({name:"a:lum",properties:{rawMap:{bright:"70000",contrast:"-70000"}}});break}return{name:"xdr:blipFill",children:[{name:"a:blip",properties:{rawMap:{cstate:"print","r:embed":`rId${t}`,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}},children:n},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},BVt=(e,t)=>{const n={name:"a:xfrm",children:[{name:"a:off",properties:{rawMap:{x:0,y:0}}},{name:"a:ext",properties:{rawMap:{cx:t.width,cy:t.height}}}]};if(e.rotation){const o=e.rotation;n.properties={rawMap:{rot:Math.min(Math.max(o,0),360)*6e4}}}return{name:"xdr:spPr",children:[n,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},jVt=e=>{e.fitCell=!!e.fitCell||!e.width||!e.height;const{position:t={},fitCell:n,width:r=0,height:i=0,totalHeight:o,totalWidth:a}=e,{offsetX:s=0,offsetY:l=0,row:c=1,rowSpan:u=1,column:d=1,colSpan:p=1}=t;return{from:{row:c-1,col:d-1,offsetX:vE(s),offsetY:vE(l)},to:{row:c-1+(n?1:u-1),col:d-1+(n?1:p-1),offsetX:vE(r+s),offsetY:vE(i+l)},height:vE(o||i),width:vE(a||r)}},HVt=(e,t,n,r)=>({name:"xdr:pic",children:[FVt(e,t+1),qVt(e,n+1),BVt(e,r)]}),VVt={getTemplate(e){const{sheetIndex:t}=e,n=Az.get(t),r=bW.get(t),i=n.map((o,a)=>{const s=jVt(o);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[hRe("from",s.from),hRe("to",s.to),HVt(o,a,r.get(o.id).index,s),{name:"xdr:clientData"}]}});return{name:"xdr:wsDr",properties:{rawMap:{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"}},children:i}}},GVt=VVt,$Vt={getTemplate(e){const{Id:t,Type:n,Target:r}=e;return{name:"Relationship",properties:{rawMap:{Id:t,Type:n,Target:r}}}}},UVt=$Vt,XVt={getTemplate(e){const t=e.map(n=>UVt.getTemplate(n));return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:t}}},x6=XVt,YVt={getTemplate(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.size,uniqueCount:e.size}},children:RVt(e)}}},KVt=YVt,QVt=e=>{switch(e){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}},ZVt={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot",Continuous:"Continuous"},JVt=["Dashed","DashDot","DashDotDot"],eGt={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",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"},tGt={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},nGt={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},rGt=e=>e?eGt[e]||e:"none",ix=e=>e==null?e:(e.charAt(0)==="#"&&(e=e.substring(1)),e.length===6?"FF"+e:e),t8=(e,t)=>{if(!e)return"thin";const n=QVt(t);if(e==="Continuous")return n;const r=ZVt[e];return n==="medium"&&JVt.some(i=>i===r)?`medium${r}`:`${r.charAt(0).toLowerCase()}${r.substring(1)}`},iGt=e=>tGt[e]||"general",oGt=e=>nGt[e]||void 0,t4=e=>({name:"color",properties:{rawMap:{rgb:ix(e||"#000000")}}}),aGt={getTemplate(e){const{left:t,right:n,top:r,bottom:i,diagonal:o}=e,a=t?[t4(t.color)]:void 0,s=n?[t4(n.color)]:void 0,l=r?[t4(r.color)]:void 0,c=i?[t4(i.color)]:void 0,u=o?[t4(o.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t&&t.style}},children:a},{name:"right",properties:{rawMap:{style:n&&n.style}},children:s},{name:"top",properties:{rawMap:{style:r&&r.style}},children:l},{name:"bottom",properties:{rawMap:{style:i&&i.style}},children:c},{name:"diagonal",properties:{rawMap:{style:o&&o.style}},children:u}]}}},sGt=aGt,lGt={getTemplate(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:e.map(t=>sGt.getTemplate(t))}}},cGt=lGt,uGt=e=>{const n=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(n,0)},dGt={getTemplate(e){const{horizontal:t,indent:n,readingOrder:r,rotate:i,shrinkToFit:o,vertical:a,wrapText:s}=e;return{name:"alignment",properties:{rawMap:{horizontal:t&&iGt(t),indent:n,readingOrder:r&&uGt(r),textRotation:i,shrinkToFit:o,vertical:a&&oGt(a),wrapText:s}}}}},pGt=dGt,hGt={getTemplate(e){const t=e.protected===!1?0:1;return{name:"protection",properties:{rawMap:{hidden:e.hideFormula===!0?1:0,locked:t}}}}},fGt=hGt,gGt={getTemplate(e){const{alignment:t,borderId:n,fillId:r,fontId:i,numFmtId:o,protection:a,quotePrefix:s,xfId:l}=e,c=[];return t&&c.push(pGt.getTemplate(t)),a&&c.push(fGt.getTemplate(a)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:a?1:void 0,applyBorder:n?1:void 0,applyFill:r?1:void 0,borderId:n,fillId:r,applyFont:i?1:void 0,fontId:i,applyNumberFormat:o?1:void 0,numFmtId:o,quotePrefix:s?1:void 0,xfId:l}},children:c.length?c:void 0}}},Crt=gGt,mGt={getTemplate(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>Crt.getTemplate(t))}}},vGt=mGt,bGt={getTemplate(e){const{builtinId:t,name:n,xfId:r}=e;return{name:"cellStyle",properties:{rawMap:{builtinId:t,name:n,xfId:r}}}}},yGt=bGt,MGt={getTemplate(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:e.map(t=>yGt.getTemplate(t))}}},CGt=MGt,xGt={getTemplate(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>Crt.getTemplate(t))}}},wGt=xGt,SGt={getTemplate(e){const{patternType:t,fgTheme:n,fgTint:r,fgRgb:i,bgRgb:o,bgIndexed:a}=e,s={name:"patternFill",properties:{rawMap:{patternType:t}}};return(n||r||i)&&(s.children=[{name:"fgColor",properties:{rawMap:{theme:n,tint:r,rgb:i}}}]),(a||o)&&(s.children||(s.children=[]),s.children.push({name:"bgColor",properties:{rawMap:{indexed:a,rgb:o}}})),{name:"fill",children:[s]}}},AGt=SGt,OGt={getTemplate(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:e.map(t=>AGt.getTemplate(t))}}},zGt=OGt,TGt={getTemplate(e){const{size:t,colorTheme:n,color:r="FF000000",fontName:i="Calibri",family:o,scheme:a,italic:s,bold:l,strikeThrough:c,outline:u,shadow:d,underline:p,verticalAlign:h}=e,g=[{name:"sz",properties:{rawMap:{val:t}}},{name:"color",properties:{rawMap:{theme:n,rgb:r}}},{name:"name",properties:{rawMap:{val:i}}}];return o&&g.push({name:"family",properties:{rawMap:{val:o}}}),a&&g.push({name:"scheme",properties:{rawMap:{val:a}}}),s&&g.push({name:"i"}),l&&g.push({name:"b"}),c&&g.push({name:"strike"}),u&&g.push({name:"outline"}),d&&g.push({name:"shadow"}),p&&g.push({name:"u",properties:{rawMap:{val:p}}}),h&&g.push({name:"vertAlign",properties:{rawMap:{val:h}}}),{name:"font",children:g}}},EGt=TGt,RGt={getTemplate(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:e.map(t=>EGt.getTemplate(t))}}},IGt=RGt;function PGt(e){const t=e.split(/(\[[^\]]*\])/);for(let n=0;n<t.length;n++){let r=t[n];r.length&&(r.startsWith("[")||(r=r.replace(/\$/g,'"$"')),t[n]=sm(r))}return t.join("")}var DGt={getTemplate(e){let{formatCode:t,numFmtId:n}=e;return t.length&&(t=PGt(t)),{name:"numFmt",properties:{rawMap:{formatCode:t,numFmtId:n}}}}},kGt=DGt,LGt={getTemplate(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:e.map(t=>kGt.getTemplate(t))}}},_Gt=LGt,j$,PR,HN,VN,GN,xrt,H$,wrt,zhe,Srt=(e,t)=>(e.indexOf("mixedStyle")!==-1&&t>1&&(e+=`_${t}`),e),Art=()=>{j$={base:0},PR=[],HN=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],VN=[{patternType:"none"},{patternType:"gray125"}],GN=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],xrt=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],H$=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],wrt=[{builtinId:0,name:"Normal",xfId:0}]},NGt=e=>{const t=rGt(e.pattern),n=ix(e.color),r=ix(e.patternColor);let i=VN.findIndex(o=>{const{patternType:a,fgRgb:s,bgRgb:l}=o;return!(a!=t||s!=n||l!=r)});return i===-1&&(i=VN.length,VN.push({patternType:t,fgRgb:n,bgRgb:r})),i},FGt=e=>{if(dRe[e])return dRe[e];let t=PR.findIndex(n=>n.formatCode===e);return t===-1?(t=PR.length+164,PR.push({formatCode:e,numFmtId:t})):t=PR[t].numFmtId,t},WGt=e=>{const{borderBottom:t,borderTop:n,borderLeft:r,borderRight:i}=e;let o,a,s,l,c,u,d,p;r&&(s=t8(r.lineStyle,r.weight),d=ix(r.color)),i&&(l=t8(i.lineStyle,i.weight),p=ix(i.color)),t&&(o=t8(t.lineStyle,t.weight),c=ix(t.color)),n&&(a=t8(n.lineStyle,n.weight),u=ix(n.color));let h=GN.findIndex(g=>{const{left:m,right:b,top:y,bottom:M}=g;if(!m&&(s||d)||!b&&(l||p)||!y&&(a||u)||!M&&(o||c))return!1;const{style:C,color:x}=m||{},{style:w,color:S}=b||{},{style:A,color:z}=y||{},{style:O,color:T}=M||{};return!(C!=s||x!=d||w!=l||S!=p||A!=a||z!=u||O!=o||T!=c)});return h===-1&&(h=GN.length,GN.push({left:{style:s,color:d},right:{style:l,color:p},top:{style:a,color:u},bottom:{style:o,color:c},diagonal:{style:void 0,color:void 0}})),h},qGt=e=>{const{fontName:t="Calibri",color:n,size:r,bold:i,italic:o,outline:a,shadow:s,strikeThrough:l,underline:c,family:u,verticalAlign:d}=e,p=ix(n),h=OVt(u),g=c?c.toLocaleLowerCase():void 0,m=d?d.toLocaleLowerCase():void 0;let b=HN.findIndex(y=>!(y.fontName!=t||y.color!=p||y.size!=r||y.bold!=i||y.italic!=o||y.outline!=a||y.shadow!=s||y.strikeThrough!=l||y.underline!=g||y.verticalAlign!=m||y.family!=h));return b===-1&&(b=HN.length,HN.push({fontName:t,color:p,size:r,bold:i,italic:o,outline:a,shadow:s,strikeThrough:l,underline:g,verticalAlign:m,family:h?.toString()})),b},BGt=e=>{const{alignment:t,borders:n,font:r,interior:i,numberFormat:o,protection:a,quotePrefix:s}=e;let{id:l}=e,c=0,u=0,d=0,p=0;l&&(l=Srt(l,zhe),j$[l]==null&&(i&&(c=NGt(i)),n&&(u=WGt(n)),r&&(d=qGt(r)),o&&(p=FGt(o.format)),j$[l]=H$.length,H$.push({alignment:t,borderId:u||0,fillId:c||0,fontId:d||0,numFmtId:p||0,protection:a,quotePrefix:s,xfId:0})))},jGt={getTemplate(e){const t=_Gt.getTemplate(PR),n=IGt.getTemplate(HN.map(l=>({...l,size:l.size!=null?l.size:e}))),r=zGt.getTemplate(VN),i=cGt.getTemplate(GN),o=vGt.getTemplate(xrt),a=wGt.getTemplate(H$),s=CGt.getTemplate(wrt);return Art(),{name:"styleSheet",properties:{rawMap:{"mc:Ignorable":"x14ac x16r2 xr",xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision"}},children:[t,n,r,i,o,a,s,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},HGt=(e,t)=>j$[Srt(e,t)]||0,VGt=(e,t)=>{zhe=t,zhe===1&&Art(),e.forEach(BGt)},GGt=jGt,$Gt={getTemplate(e,t){const{name:n,columns:r,rowRange:i,displayName:o,showRowStripes:a,showColumnStripes:s,showFilterButtons:l,highlightFirstColumn:c,highlightLastColumn:u}=e||{},d=!i||i[0]-i[1]===0;if(!e||!n||!Array.isArray(r)||!r.length||d)return{name:"table"};const p=r.map((M,C)=>({name:"filterColumn",properties:{rawMap:{colId:C.toString(),hiddenButton:l[C]?0:1}}})),h=`A${i[0]}`,g=`${wz(r.length)}${i[1]}`,m=`${h}:${g}`,b=`${t+1}`,y=t?`${o}_${b}`:o;return{name:"table",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",name:n,displayName:y,ref:m,totalsRowShown:0,id:b}},children:[{name:"autoFilter",properties:{rawMap:{ref:m}},children:p},{name:"tableColumns",properties:{rawMap:{count:r.length}},children:r.map((M,C)=>({name:"tableColumn",properties:{rawMap:{id:(C+1).toString(),name:EVt(M),dataCellStyle:"Normal"}}}))},{name:"tableStyleInfo",properties:{rawMap:{name:"TableStyleLight1",showFirstColumn:c?1:0,showLastColumn:u?1:0,showRowStripes:a?1:0,showColumnStripes:s?1:0}}}]}}},UGt=$Gt,Dh=e=>{const[t,n,r,i]=e;return{name:`a:${t}`,children:[{name:`a:${n}`,properties:{rawMap:{val:r,lastClr:i}}}]}},XGt={getTemplate(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[Dh(["dk1","sysClr","windowText","000000"]),Dh(["lt1","sysClr","window","FFFFFF"]),Dh(["dk2","srgbClr","44546A"]),Dh(["lt2","srgbClr","E7E6E6"]),Dh(["accent1","srgbClr","4472C4"]),Dh(["accent2","srgbClr","ED7D31"]),Dh(["accent3","srgbClr","A5A5A5"]),Dh(["accent4","srgbClr","FFC000"]),Dh(["accent5","srgbClr","5B9BD5"]),Dh(["accent6","srgbClr","70AD47"]),Dh(["hlink","srgbClr","0563C1"]),Dh(["folHlink","srgbClr","954F72"])]}}},YGt=XGt,Mn=e=>{const[t,n,r,i]=e;return{name:`a:${t}`,properties:{rawMap:{script:r,typeface:n,panose:i}}}},KGt={getTemplate(){return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[Mn(["latin","Calibri Light",void 0,"020F0302020204030204"]),Mn(["ea",""]),Mn(["cs",""]),Mn(["font","游ゴシック Light","Jpan"]),Mn(["font","맑은 고딕","Hang"]),Mn(["font","等线 Light","Hans"]),Mn(["font","新細明體","Hant"]),Mn(["font","Times New Roman","Arab"]),Mn(["font","Times New Roman","Hebr"]),Mn(["font","Tahoma","Thai"]),Mn(["font","Nyala","Ethi"]),Mn(["font","Vrinda","Beng"]),Mn(["font","Shruti","Gujr"]),Mn(["font","MoolBoran","Khmr"]),Mn(["font","Tunga","Knda"]),Mn(["font","Raavi","Guru"]),Mn(["font","Euphemia","Cans"]),Mn(["font","Plantagenet Cherokee","Cher"]),Mn(["font","Microsoft Yi Baiti","Yiii"]),Mn(["font","Microsoft Himalaya","Tibt"]),Mn(["font","MV Boli","Thaa"]),Mn(["font","Mangal","Deva"]),Mn(["font","Gautami","Telu"]),Mn(["font","Latha","Taml"]),Mn(["font","Estrangelo Edessa","Syrc"]),Mn(["font","Kalinga","Orya"]),Mn(["font","Kartika","Mlym"]),Mn(["font","DokChampa","Laoo"]),Mn(["font","Iskoola Pota","Sinh"]),Mn(["font","Mongolian Baiti","Mong"]),Mn(["font","Times New Roman","Viet"]),Mn(["font","Microsoft Uighur","Uigh"]),Mn(["font","Sylfaen","Geor"]),Mn(["font","Arial","Armn"]),Mn(["font","Leelawadee UI","Bugi"]),Mn(["font","Microsoft JhengHei","Bopo"]),Mn(["font","Javanese Text","Java"]),Mn(["font","Segoe UI","Lisu"]),Mn(["font","Myanmar Text","Mymr"]),Mn(["font","Ebrima","Nkoo"]),Mn(["font","Nirmala UI","Olck"]),Mn(["font","Ebrima","Osma"]),Mn(["font","Phagspa","Phag"]),Mn(["font","Estrangelo Edessa","Syrn"]),Mn(["font","Estrangelo Edessa","Syrj"]),Mn(["font","Estrangelo Edessa","Syre"]),Mn(["font","Nirmala UI","Sora"]),Mn(["font","Microsoft Tai Le","Tale"]),Mn(["font","Microsoft New Tai Lue","Talu"]),Mn(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[Mn(["latin","Calibri",void 0,"020F0502020204030204"]),Mn(["ea",""]),Mn(["cs",""]),Mn(["font","游ゴシック","Jpan"]),Mn(["font","맑은 고딕","Hang"]),Mn(["font","等线","Hans"]),Mn(["font","新細明體","Hant"]),Mn(["font","Arial","Arab"]),Mn(["font","Arial","Hebr"]),Mn(["font","Tahoma","Thai"]),Mn(["font","Nyala","Ethi"]),Mn(["font","Vrinda","Beng"]),Mn(["font","Shruti","Gujr"]),Mn(["font","DaunPenh","Khmr"]),Mn(["font","Tunga","Knda"]),Mn(["font","Raavi","Guru"]),Mn(["font","Euphemia","Cans"]),Mn(["font","Plantagenet Cherokee","Cher"]),Mn(["font","Microsoft Yi Baiti","Yiii"]),Mn(["font","Microsoft Himalaya","Tibt"]),Mn(["font","MV Boli","Thaa"]),Mn(["font","Mangal","Deva"]),Mn(["font","Gautami","Telu"]),Mn(["font","Latha","Taml"]),Mn(["font","Estrangelo Edessa","Syrc"]),Mn(["font","Kalinga","Orya"]),Mn(["font","Kartika","Mlym"]),Mn(["font","DokChampa","Laoo"]),Mn(["font","Iskoola Pota","Sinh"]),Mn(["font","Mongolian Baiti","Mong"]),Mn(["font","Arial","Viet"]),Mn(["font","Microsoft Uighur","Uigh"]),Mn(["font","Sylfaen","Geor"]),Mn(["font","Arial","Armn"]),Mn(["font","Leelawadee UI","Bugi"]),Mn(["font","Microsoft JhengHei","Bopo"]),Mn(["font","Javanese Text","Java"]),Mn(["font","Segoe UI","Lisu"]),Mn(["font","Myanmar Text","Mymr"]),Mn(["font","Ebrima","Nkoo"]),Mn(["font","Nirmala UI","Olck"]),Mn(["font","Ebrima","Osma"]),Mn(["font","Phagspa","Phag"]),Mn(["font","Estrangelo Edessa","Syrn"]),Mn(["font","Estrangelo Edessa","Syrj"]),Mn(["font","Estrangelo Edessa","Syre"]),Mn(["font","Nirmala UI","Sora"]),Mn(["font","Microsoft Tai Le","Tale"]),Mn(["font","Microsoft New Tai Lue","Talu"]),Mn(["font","Ebrima","Tfng"])]}]}}},QGt=KGt,Jv=(e,t,n)=>({name:`a:${e}`,properties:{rawMap:{val:t}},children:n}),Mre=e=>{const[t,n,r,i,o,a]=e,s=[];return s.push(Jv("satMod",r)),i&&s.push(Jv("lumMod",i)),o&&s.push(Jv("tint",o)),a&&s.push(Jv("shade",a)),{name:"a:gs",properties:{rawMap:{pos:t}},children:[{name:"a:schemeClr",properties:{rawMap:{val:n}},children:s}]}},V$=(e,t)=>({name:"a:solidFill",children:[Jv("schemeClr",e,t)]}),The=e=>{const[t,n,r,i,o]=e,[a,s]=o;return{name:"a:gradFill",properties:{rawMap:{rotWithShape:t}},children:[{name:"a:gsLst",children:[Mre(n),Mre(r),Mre(i)]},{name:"a:lin",properties:{rawMap:{ang:a,scaled:s}}}]}},Cre=e=>{const[t,n,r,i]=e;return{name:"a:ln",properties:{rawMap:{w:t,cap:n,cmpd:r,algn:i}},children:[V$("phClr"),Jv("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},xre=e=>{const t=[];if(e){const[n,r,i,o,a]=e;t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:n,dist:r,dir:i,algn:o,rotWithShape:a}},children:[Jv("srgbClr","000000",[Jv("alpha","63000")])]})}return{name:"a:effectStyle",children:[Object.assign({},{name:"a:effectLst"},t.length?{children:t}:{})]}},ZGt=()=>({name:"a:fillStyleLst",children:[V$("phClr"),The(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),The(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]}),JGt=()=>({name:"a:lnStyleLst",children:[Cre(["6350","flat","sng","ctr"]),Cre(["12700","flat","sng","ctr"]),Cre(["19050","flat","sng","ctr"])]}),e7t=()=>({name:"a:effectStyleLst",children:[xre(),xre(),xre(["57150","19050","5400000","ctr","0"])]}),t7t=()=>({name:"a:bgFillStyleLst",children:[V$("phClr"),V$("phClr",[Jv("tint","95000"),Jv("satMod","170000")]),The(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}),n7t={getTemplate(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[ZGt(),JGt(),e7t(),t7t()]}}},r7t=n7t,i7t={getTemplate(){return{name:"a:themeElements",children:[YGt.getTemplate(),QGt.getTemplate(),r7t.getTemplate()]}}},o7t=i7t,a7t={getTemplate(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[o7t.getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}}},s7t=a7t,l7t=()=>({name:"o:shapelayout",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}]},children:[{name:"o:idmap",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:{data:"1"}}}]}),c7t=()=>({name:"v:stroke",properties:{rawMap:{joinstyle:"miter"}}}),u7t=e=>({name:"v:formulas",children:e.map(t=>({name:"v:f",properties:{rawMap:{eqn:t}}}))}),d7t=()=>({name:"v:path",properties:{prefixedAttributes:[{prefix:"o:",map:{connecttype:"rect",extrusionok:"f"}}],rawMap:{gradientshapeok:"t"}}}),Ort=e=>{const{aspectratio:t,rotation:n}=e||{},r={};return t&&(r.aspectratio="t"),n&&(r.rotation="t"),{name:"o:lock",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:r}}};function p7t(e,t,n,r,i){return(e-t)/(n-t)*(i-r)+r}var h7t=(e,t)=>{let n;const{recolor:r,brightness:i,contrast:o,id:a}=e;if(r&&(n={},(r==="Washout"||r==="Grayscale")&&(n.gain="19661f",n.blacklevel="22938f"),(r==="Black & White"||r==="Grayscale")&&(n.grayscale="t",r==="Black & White"&&(n.bilevel="t"))),!r||r==="Grayscale"){if(n||(n={}),o!=null&&o!==50){let s="1";o>=0&&(o<50?s=String(o/50):o<100?s=String(50/(100-o)):o===100&&(s="2147483647f")),n.gain=s}i!=null&&i!==50&&(n.blacklevel=p7t(i,0,100,-.5,.5).toString())}return{name:"v:imagedata",properties:{prefixedAttributes:[{prefix:"o:",map:{relid:`rId${t}`,title:a}}],rawMap:n}}},f7t=()=>{const e=["if lineDrawn pixelLineWidth 0","sum @0 1 0","sum 0 0 @1","prod @2 1 2","prod @3 21600 pixelWidth","prod @3 21600 pixelHeight","sum @0 0 1","prod @6 1 2","prod @7 21600 pixelWidth","sum @8 21600 0","prod @7 21600 pixelHeight","sum @10 21600 0"];return{name:"v:shapetype",properties:{prefixedAttributes:[{prefix:"o:",map:{spt:"75",preferrelative:"t"}}],rawMap:{coordsize:"21600,21600",filled:"f",id:"_x0000_t75",path:"m@4@5l@4@11@9@11@9@5xe",stroked:"f"}},children:[c7t(),u7t(e),d7t(),Ort({aspectratio:!0})]}},gRe=e=>Math.floor((e??0)*.74999943307122),g7t=(e,t)=>{const{width:n=0,height:r=0,altText:i}=e,o=gRe(n),a=gRe(r);return{name:"v:shape",properties:{rawMap:{id:e.headerFooterPosition,"o:spid":"_x0000_s1025",style:`position: absolute; margin-left: 0; margin-top: 10in; margin-bottom: 0; margin-right: 0; width: ${o}pt; height: ${a}pt; z-index: ${t+1}`,type:"#_x0000_t75",alt:i}},children:[h7t(e,t+1),Ort({rotation:!0})]}},m7t={getTemplate(e){const t=Ux.get(e.sheetIndex)||[],n=[l7t(),f7t(),...t.map((r,i)=>g7t(r,i))];return{name:"xml",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{v:"urn:schemas-microsoft-com:vml",o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel"}}]},children:n}}},v7t=m7t,b7t={getTemplate(e,t){const n=(t+1).toString();return{name:"sheet",properties:{rawMap:{name:e,sheetId:n,"r:id":`rId${n}`}}}}},y7t=b7t,M7t={getTemplate(e){return{name:"sheets",children:e.map((t,n)=>y7t.getTemplate(t,n))}}},C7t=M7t,x7t={getTemplate(e,t){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[{name:"bookViews",children:[{name:"workbookView",properties:{rawMap:{activeTab:t}}}]},C7t.getTemplate(e)]}}},w7t=x7t,S7t=e=>Math.ceil((e-12)/7+1),A7t={getTemplate(e){const{min:t,max:n,outlineLevel:r,s:i,width:o,hidden:a,bestFit:s}=e;let l=1,c="0";return o>1&&(l=S7t(o),c="1"),{name:"col",properties:{rawMap:{min:t,max:n,outlineLevel:r??void 0,width:l,style:i,hidden:a?"1":"0",bestFit:s?"1":"0",customWidth:c}}}}},O7t=A7t,z7t={getTemplate(e){return{name:"mergeCell",properties:{rawMap:{ref:e}}}}},T7t=z7t,E7t=e=>{const t=e.charAt(0).toLowerCase();return t==="s"?"inlineStr":t},R7t={getTemplate(e,t,n){const{ref:r,data:i,styleId:o}=e,{type:a,value:s}=i||{type:"empty",value:null};let l=a;a==="f"?l="str":a.charAt(0)===a.charAt(0).toUpperCase()&&(l=E7t(a));const c={name:"c",properties:{rawMap:{r,t:l==="empty"?void 0:l,s:o?HGt(o,n):void 0}}};if(l==="empty")return c;let u;return l==="str"&&a==="f"?u=[{name:"f",textNode:sm(Ohe(s))}]:l==="inlineStr"?u=[{name:"is",children:[{name:"t",textNode:sm(Ohe(s))}]}]:u=[{name:"v",textNode:s}],Object.assign({},c,{children:u})}},I7t=R7t,P7t=(e,t)=>{const n=[];let r=0;for(let i=0;i<e.length;i++){const o=e[i];o.mergeAcross&&(n.push({pos:i,excelPos:r}),r+=o.mergeAcross),r++}if(n.length)for(let i=n.length-1;i>=0;i--){const o=[],a=e[n[i].pos];for(let s=1;s<=a.mergeAcross;s++)o.push({ref:`${wz(n[i].excelPos+1+s)}${t+1}`,styleId:a.styleId,data:{type:"empty",value:null}});o.length&&e.splice(n[i].pos+1,0,...o)}},D7t=e=>e.data?.value!==""||e.styleId!==void 0,k7t={getTemplate(e,t,n){const{collapsed:r,hidden:i,height:o,outlineLevel:a,cells:s=[]}=e;P7t(s,t);const l=s.filter(D7t).map((c,u)=>I7t.getTemplate(c,u,n));return{name:"row",properties:{rawMap:{r:t+1,collapsed:r?"1":"0",hidden:i?"1":"0",ht:o,customHeight:o!=null?"1":"0",spans:"1:1",outlineLevel:a||void 0}},children:l}}},L7t=k7t,_7t=(e,t,n)=>{const r=[],i=[];e.forEach((s,l)=>{const c=s.cells;let u=0,d;c.forEach((p,h)=>{const g=h+u+1,m=wz(g),b=l+1;if(p.mergeAcross){u+=p.mergeAcross;const M=wz(h+u+1);r.push(`${m}${b}:${M}${b}`)}t[g-1]||(t[g-1]={});const{collapsibleRanges:y}=p;y&&y.forEach(M=>{i.push([g+M[0],g+M[1]])}),d=t[g-1],d.min=g,d.max=g,p.ref=`${m}${b}`})}),i.sort((s,l)=>s[0]!==l[0]?s[0]-l[0]:l[1]-s[1]);const o=new Map,a=new Map;return i.filter(s=>{const l=s.toString();return o.get(l)?!1:(o.set(l,!0),!0)}).forEach(s=>{const l=t.find(u=>u.min==s[0]&&u.max==s[1]),c=a.get(s[0]);t.push({min:s[0],max:s[1],outlineLevel:n?void 0:c||1,width:(l||{width:100}).width}),a.set(s[0],(c||0)+1)}),r},N7t=e=>!e||e!=="Portrait"&&e!=="Landscape"?"portrait":e.toLocaleLowerCase(),F7t=e=>{if(e==null)return 1;const n=["Letter","Letter Small","Tabloid","Ledger","Legal","Statement","Executive","A3","A4","A4 Small","A5","A6","B4","B5","Folio","Envelope","Envelope DL","Envelope C5","Envelope B5","Envelope C3","Envelope C4","Envelope C6","Envelope Monarch","Japanese Postcard","Japanese Double Postcard"].indexOf(e);return n===-1?1:n+1},W7t=e=>{const t={"&[Page]":"&P","&[Pages]":"&N","&[Date]":"&D","&[Time]":"&T","&[Tab]":"&A","&[Path]":"&Z","&[File]":"&F","&[Picture]":"&G"};for(const n of Object.keys(t))e=e.replace(n,t[n]);return e},q7t=e=>e==="Center"?"C":e==="Right"?"R":"L",B7t=(e,t)=>(t&&(e+="&amp;&quot;",e+=t.fontName||"Calibri",t.bold!==t.italic?e+=t.bold?",Bold":",Italic":t.bold?e+=",Bold Italic":e+=",Regular",e+="&quot;",t.size&&(e+=`&amp;${t.size}`),t.strikeThrough&&(e+="&amp;S"),t.underline&&(e+=`&amp;${t.underline==="Double"?"E":"U"}`),t.color&&(e+=`&amp;K${t.color.replace("#","").toUpperCase()}`)),e),j7t=(e,t,n)=>e.reduce((r,i,o)=>{const a=q7t(i.position),s=B7t(`${r}&amp;${a}`,i.font),l=["Left","Center","Right"];i.position||(i.position=l[o]);const{image:c}=i;if(i.value==="&[Picture]"&&c){const u=`${a}${t}${n}`;h$t(c,u)}return`${s}${sm(W7t(i.value))}`},""),H7t=e=>{const t=["all","first","even"],n=[];return t.forEach(r=>{const i=e[r],o=r==="all"?"odd":r;if(i)for(const a of Object.keys(i)){const s=i[a],l=`${a.charAt(0).toUpperCase()}${a.slice(1)}`,c=a[0].toUpperCase();if(s){const u=r==="all"?"":r.toUpperCase();n.push({name:`${o}${l}`,properties:{rawMap:{"xml:space":"preserve"}},textNode:j7t(s,c,u)})}}}),n},V7t=e=>t=>(e.length&&t.children.push({name:"cols",children:e.map(n=>O7t.getTemplate(n))}),t),G7t=(e,t)=>n=>(e.length&&n.children.push({name:"sheetData",children:e.map((r,i)=>L7t.getTemplate(r,i,t))}),n),$7t=e=>t=>(e.length&&t.children.push({name:"mergeCells",properties:{rawMap:{count:e.length}},children:e.map(n=>T7t.getTemplate(n))}),t),U7t=e=>t=>{const{top:n=.75,right:r=.7,bottom:i=.75,left:o=.7,header:a=.3,footer:s=.3}=e;return t.children.push({name:"pageMargins",properties:{rawMap:{bottom:i,footer:s,header:a,left:o,right:r,top:n}}}),t},X7t=e=>t=>(e&&t.children.push({name:"pageSetup",properties:{rawMap:{horizontalDpi:0,verticalDpi:0,orientation:N7t(e.orientation),paperSize:F7t(e.pageSize)}}}),t),Y7t=e=>t=>{if(!e)return t;const n=e.first!=null?1:0,r=e.even!=null?1:0;return t.children.push({name:"headerFooter",properties:{rawMap:{differentFirst:n,differentOddEven:r}},children:H7t(e)}),t},K7t=e=>t=>(e&&t.children.push({name:"tableParts",properties:{rawMap:{count:"1"}},children:[{name:"tablePart",properties:{rawMap:{"r:id":`rId${++t.rIdCounter}`}}}]}),t),Q7t=e=>t=>(Az.get(e)?.length&&t.children.push({name:"drawing",properties:{rawMap:{"r:id":`rId${++t.rIdCounter}`}}}),t),Z7t=e=>t=>(Ux.get(e)&&t.children.push({name:"legacyDrawingHF",properties:{rawMap:{"r:id":`rId${++t.rIdCounter}`}}}),t),J7t=(e=0,t=0)=>{const n=e>0||t>0;return n?[{name:"pane",properties:{rawMap:{state:n?"frozen":void 0,topLeftCell:n?`${wz(e+1)}${t+1}`:void 0,xSplit:e===0?void 0:e,ySplit:t===0?void 0:t}}}]:void 0},e$t=(e=!1,t,n)=>r=>(r.children.push({name:"sheetViews",children:[{name:"sheetView",properties:{rawMap:{rightToLeft:e===!0?"1":"0",workbookViewId:"0"}},children:J7t(t,n)}]}),r),t$t=()=>e=>(e.children.push({name:"sheetPr",children:[{name:"outlinePr",properties:{rawMap:{summaryBelow:0}}}]}),e),n$t=e=>t=>{const n=e.reduce((r,i)=>i.outlineLevel&&i.outlineLevel>r?i.outlineLevel:r,0);return t.children.push({name:"sheetFormatPr",properties:{rawMap:{baseColWidth:10,defaultRowHeight:16,outlineLevelRow:n||void 0}}}),t},r$t={getTemplate(e){const{worksheet:t,currentSheet:n,config:r}=e,{margins:i={},pageSetup:o,headerFooterConfig:a,suppressColumnOutline:s,rightToLeft:l,frozenRowCount:c,frozenColumnCount:u}=r,{table:d}=t,{rows:p,columns:h}=d,g=h&&h.length?_7t(p,h,!!s):[],m=Vy.get(n),{children:b}=[t$t(),e$t(l,u,c),n$t(p),V7t(h),G7t(p,n+1),$7t(g),U7t(i),X7t(o),Y7t(a),Q7t(n),Z7t(n),K7t(m)].reduce((y,M)=>M(y),{children:[],rIdCounter:0});return{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:b}}},i$t=r$t,$A=new Map,Hy=[],Sz=new Map,Az=new Map,Ux=new Map,aP=new Map,bW=new Map,Vy=new Map,o$t="AG-GRID-TABLE",Xye="SINGLE_SHEET";function a$t(){return Xye}function s$t(e){Xye=e}function l$t(e,t,n){g$t(t),VGt(e,Hy.length);const r=Object.assign({},n);return n.exportAsExcelTable&&n.colModel.isPivotActive()&&(c$t("pivot mode"),r.exportAsExcelTable=!1),p$t(t,r),R$t(t,r)}function c$t(e){ut(163,{featureName:e})}function u$t(e){return e.replace(/^[^a-zA-Z_]+/,"_").replace(/\s/g,"_").replace(/[^a-zA-Z0-9_]/g,"_")}function d$t(e,t){if(Vy.has(e)){ut(164);return}Vy.set(e,t)}function p$t(e,t){const{exportAsExcelTable:n,prependContent:r,appendContent:i,colModel:o}=t;if(!n)return;const a=typeof n=="boolean"?{}:n,{name:s,showColumnStripes:l,showRowStripes:c,showFilterButton:u,highlightFirstColumn:d,highlightLastColumn:p}=a,h=u$t(s||o$t),g=Hy.length-1,{table:m}=e,{rows:b,columns:y}=m,M=Wtt(o),C=r?r.length:0,x=i?i.length:0,w=b.length,S=y.length,A=[],z=[];for(let O=0;O<S;O++){const T=y[O];A.push(T.displayName||""),z.push(u==="match"||u===void 0?T.filterAllowed??!1:u)}if(!A||!A.length||!w||!h){ut(165);return}d$t(g,{name:`table${Vy.size+1}`,displayName:h,columns:A,showFilterButtons:z,rowRange:[M+C,M+(w-M)-x],showRowStripes:c??!0,showColumnStripes:l??!1,highlightFirstColumn:d??!1,highlightLastColumn:p??!1})}function h$t(e,t){const n=Hy.length-1,r=e;r.headerFooterPosition=t,zrt({imageToAdd:r,idx:n});let i=Ux.get(n);i||(i=[],Ux.set(n,i)),i.find(o=>o.id===e.id)||i.push(e)}function f$t(e,t,n,r,i){const o=Hy.length,{row:a,column:s}=e.position||{},l=e;r&&(t!=null&&n!=null&&(!a||!s)&&(e.position||(e.position={}),e.position=Object.assign({},e.position,{row:t,column:r.indexOf(n)+1})),zVt(l,r),TVt(l,i)),zrt({imageToAdd:l,idx:o});let c=bW.get(o);c||(c=new Map,bW.set(o,c));const u=Az.get(o);u?u.push(l):Az.set(o,[l]),c.get(e.id)||c.set(e.id,{index:c.size,type:e.imageType})}function zrt(e){const{imageToAdd:t,idx:n}=e,r=Sz.get(t.id);if(r){const i=r.find(o=>o.sheetId===n);i?i.image.push(t):r.push({sheetId:n,image:[t]})}else Sz.set(t.id,[{sheetId:n,image:[t]}]),aP.set(t.id,{type:t.imageType,index:aP.size})}function g$t(e){const t=sm(e.name)||"";let n="";for(;Hy.indexOf(`${t}${n}`)!==-1;)n===""?n="_1":n=`_${parseInt(n.slice(1),10)+1}`;e.name=`${t}${n}`,Hy.push(e.name)}function mRe(e){return $A.has(e)?$A.get(e):($A.set(e,$A.size),$A.size-1)}function vRe(){$A.clear(),Sz.clear(),Az.clear(),Ux.clear(),aP.clear(),bW.clear(),Vy.clear(),Hy=[],Xye="SINGLE_SHEET"}function m$t(e){return m1(w7t.getTemplate(Hy,e))}function v$t(e){return m1(GGt.getTemplate(e))}function b$t(){return m1(KVt.getTemplate($A))}function y$t(e){return m1(_Vt.getTemplate(e))}function M$t(e){return m1(kVt.getTemplate(e))}function C$t(){const e=x6.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return m1(e)}function x$t(){return m1(s7t.getTemplate())}function w$t(e,t){return m1(UGt.getTemplate(e,t))}function S$t(e){const t=new Array(e).fill(void 0).map((r,i)=>({Id:`rId${i+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:`worksheets/sheet${i+1}.xml`})),n=x6.getTemplate([...t,{Id:`rId${e+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:`rId${e+2}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:`rId${e+3}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]);return m1(n)}function A$t(e){return m1(GVt.getTemplate({sheetIndex:e}))}function O$t(e){const t=bW.get(e)||[],n=[];for(const[r,i]of t){const{index:o,type:a}=i;n.push({Id:`rId${o+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/image${aP.get(r).index+1}.${HK(a)}`})}return m1(x6.getTemplate(n))}function z$t(e){return m1(v7t.getTemplate({sheetIndex:e}),!0)}function T$t(e){const t=Ux.get(e)||[],n=[];for(let r=0;r<t.length;r++){const i=t[r],o=aP.get(i.id);if(!o)continue;const{index:a,type:s}=o;n.push({Id:`rId${r+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/image${a+1}.${HK(s)}`})}return m1(x6.getTemplate(n))}function E$t({drawingIndex:e,vmlDrawingIndex:t,tableName:n}={}){if(e===void 0&&t===void 0&&n===void 0)return"";const r=[];e!=null&&r.push({Id:`rId${r.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/drawing${e+1}.xml`}),t!=null&&r.push({Id:`rId${r.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Target:`../drawings/vmlDrawing${t+1}.vml`}),n!=null&&r.push({Id:`rId${r.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",Target:`../tables/${n}.xml`});const i=x6.getTemplate(r);return m1(i)}function R$t(e,t){return m1(i$t.getTemplate({worksheet:e,currentSheet:Hy.length-1,config:t}))}var I$t=class extends Bnt{constructor(e){super(e),this.mixedStyles={},this.mixedStyleCounter=0,this.rows=[],this.frozenRowCount=0,this.skipFrozenRows=!1,this.frozenColumnCount=0,this.skipFrozenColumns=!1,this.config=Object.assign({},e),this.stylesByIds={},this.config.baseExcelStyles.forEach(t=>{this.stylesByIds[t.id]=t}),this.excelStyles=[...this.config.baseExcelStyles,{id:"_quotePrefix",quotePrefix:1}]}addCustomContent(e){e.forEach(t=>{const n=this.rows.length+1;let r;!this.config.suppressRowOutline&&t.outlineLevel!=null&&(r=t.outlineLevel);const i={height:JG(n,t.height||this.config.rowHeight),cells:(t.cells||[]).map((o,a)=>{const s=this.addImage(n,this.columnsToExport[a],o.data?.value);let l=null;o.styleId&&(l=typeof o.styleId=="string"?[o.styleId]:o.styleId);const c=this.getStyleId(l);if(s)return this.createCell(c,this.getDataTypeForValue(s.value),s.value==null?"":s.value);const u=o.data?.value??"",d=this.getDataTypeForValue(u);return o.mergeAcross?this.createMergedCell(c,d,u,o.mergeAcross):this.createCell(c,d,u)}),outlineLevel:r};t.collapsed!=null&&(i.collapsed=t.collapsed),t.hidden!=null&&(i.hidden=t.hidden),this.rows.push(i)})}onNewHeaderGroupingRow(){const e=[],{freezeRows:t,headerRowHeight:n}=this.config;return this.rows.push({cells:e,height:JG(this.rows.length+1,n)}),t&&this.frozenRowCount++,{onColumn:(r,i,o,a,s)=>{const l=this.config.styleLinker({rowType:"HEADER_GROUPING",rowIndex:1,value:`grouping-${i}`,columnGroup:r});e.push({...this.createMergedCell(this.getStyleId(l),this.getDataTypeForValue("string"),i,a),collapsibleRanges:s})}}}onNewHeaderRow(){const{freezeRows:e,headerRowHeight:t}=this.config;return e&&this.frozenRowCount++,this.onNewRow(this.onNewHeaderColumn,t)}onNewBodyRow(e){const{freezeRows:t,rowHeight:n}=this.config;this.skipFrozenRows||(t==="headersAndPinnedRows"&&e?.rowPinned==="top"?this.frozenRowCount++:typeof t=="function"?t(Gn(this.gos,{node:e}))?this.frozenRowCount++:this.skipFrozenRows=!0:this.skipFrozenRows=!0);const r=this.onNewRow(this.onNewBodyColumn,n);return e&&this.addRowOutlineIfNecessary(e),r}prepare(e){super.prepare(e),this.columnsToExport=[...e],this.cols=e.map((t,n)=>this.convertColumnToExcel(t,n))}parse(){const e=this.rows.reduce((i,o)=>Math.max(i,o.cells.length),0);for(;this.cols.length<e;)this.cols.push(this.convertColumnToExcel(null,this.cols.length+1));const{config:t}=this;let n;if(t.sheetName!=null){const{sheetName:i}=t,o=typeof i=="function"?i(Gn(this.gos,{})):i;n=String(o).substring(0,31)}else n="ag-grid";const r={name:n,table:{columns:this.cols,rows:this.rows}};return this.createExcel(r)}addRowOutlineIfNecessary(e){const{gos:t,suppressRowOutline:n,rowGroupExpandState:r="expanded"}=this.config;if(t.get("groupHideOpenParents")||n||e.level==null)return;const o=e.footer?1:0,a=zr(this.rows),s=Math.min(e.level+o,7);if(a.outlineLevel=s,r==="expanded")return;const l=r==="collapsed";if(e.isExpandable()){const c=!l&&e.expanded;a.collapsed=!c}a.hidden=!!e.parent&&e.parent.level!==-1&&(l||this.isAnyParentCollapsed(e.parent))}isAnyParentCollapsed(e){for(;e&&e.level!==-1;){if(!e.expanded)return!0;e=e.parent}return!1}convertColumnToExcel(e,t){const n=this.config.columnWidth,i=(e?this.extractHeaderValue(e):void 0)??"",o=e?e.isFilterAllowed():!1;return n?typeof n=="number"?{width:n,displayName:i,filterAllowed:o}:{width:n({column:e,index:t}),displayName:i,filterAllowed:o}:e?{width:Math.max(e.getActualWidth(),75),displayName:i,filterAllowed:o}:{displayName:i,filterAllowed:o}}onNewHeaderColumn(e,t){return n=>{const r=this.extractHeaderValue(n),i=this.config.styleLinker({rowType:"HEADER",rowIndex:e,value:r,column:n});t.push(this.createCell(this.getStyleId(i),this.getDataTypeForValue("string"),r))}}onNewBodyColumn(e,t){let n=0;const{freezeColumns:r,rightToLeft:i}=this.config;return(o,a,s)=>{if(n>0){n-=1;return}if(!this.skipFrozenColumns){const g=o.getPinned();r==="pinned"&&g&&(g===!0||g==="left")!==i?this.frozenColumnCount++:typeof r=="function"&&r(Gn(this.gos,{column:o}))?this.frozenColumnCount++:this.skipFrozenColumns=!0}const{value:l,valueFormatted:c}=this.extractRowCellValue(o,a,e,"excel",s),u=this.config.styleLinker({rowType:"BODY",rowIndex:e,value:l,column:o,node:s}),d=this.getStyleId(u),p=o.getColSpan(s),h=this.addImage(e,o,l);h?t.push(this.createCell(d,this.getDataTypeForValue(h.value),h.value==null?"":h.value)):p>1?(n=p-1,t.push(this.createMergedCell(d,this.getDataTypeForValue(l),l,p-1))):t.push(this.createCell(d,this.getDataTypeForValue(l),l,c))}}onNewRow(e,t){const n=[];return this.rows.push({cells:n,height:JG(this.rows.length+1,t)}),{onColumn:e.bind(this,this.rows.length,n)()}}createExcel(e){const{excelStyles:t,config:n}=this;return this.frozenColumnCount&&(n.frozenColumnCount=this.frozenColumnCount),this.frozenRowCount&&(n.frozenRowCount=this.frozenRowCount),l$t(t,e,n)}getDataTypeForValue(e){return e===void 0?"empty":this.isNumerical(e)?"n":"s"}getTypeFromStyle(e,t){if(this.isFormula(t))return"f";if(e&&e.dataType)switch(e.dataType.toLocaleLowerCase()){case"formula":return"f";case"string":return"s";case"number":return"n";case"datetime":return"d";case"error":return"e";case"boolean":return"b";default:ut(162,{id:e.id,dataType:e.dataType})}return null}addImage(e,t,n){if(!this.config.addImageToCell)return;const r=this.config.addImageToCell(e,t,n);if(r)return f$t(r.image,e,t,this.columnsToExport,this.config.rowHeight),r}createCell(e,t,n,r){const i=this.getStyleById(e);!i?.dataType&&t==="s"&&r!=null&&(n=r);const o=this.getTypeFromStyle(i,n)||t,{value:a,escaped:s}=this.getCellValue(o,n),l=[];return i&&l.push(e),s&&l.push("_quotePrefix"),e=this.getStyleId(l)||void 0,{styleId:e,data:{type:o,value:a}}}createMergedCell(e,t,n,r){const i=n??"";return{styleId:this.getStyleById(e)?e:void 0,data:{type:t,value:t==="s"?mRe(i).toString():n},mergeAcross:r}}getCellValue(e,t){let n=!1;if(t==null||e==="s"&&t==="")return{value:"",escaped:!1};if(e==="s")t&&t[0]==="'"&&(n=!0,t=t.slice(1)),t=mRe(t).toString();else if(e==="f")t=t.slice(1);else if(e==="n"){const r=Number(t);isNaN(r)?t="":t!==""&&(t=r.toString())}return{value:t,escaped:n}}getStyleId(e){if(!e||!e.length)return null;if(e.length===1)return e[0];const t=e.join("-");return this.mixedStyles[t]||this.addNewMixedStyle(e),this.mixedStyles[t].excelID}deepCloneObject(e){return JSON.parse(JSON.stringify(e))}addNewMixedStyle(e){this.mixedStyleCounter+=1;const t=`mixedStyle${this.mixedStyleCounter}`,n={};for(const i of e)for(const o of this.excelStyles)o.id===i&&eu(n,this.deepCloneObject(o));n.id=t;const r=e.join("-");this.mixedStyles[r]={excelID:t,key:r,result:n},this.excelStyles.push(n),this.stylesByIds[t]=n}isFormula(e){return e==null?!1:this.config.autoConvertFormulas&&e.toString().startsWith("=")}isNumerical(e){return typeof e=="bigint"?!0:isFinite(e)&&e!==""&&!isNaN(parseFloat(e))}getStyleById(e){return e==null?null:this.stylesByIds[e]||null}},P$t=async e=>{let t=0;const n=[],r=new WritableStream({write:a=>{n.push(a),t+=a.length}}),i=new ReadableStream({start:a=>{const s=new FileReader;s.onload=l=>{l.target?.result&&a.enqueue(l.target.result),a.close()},s.readAsArrayBuffer(e)}}),o=new window.CompressionStream("deflate-raw");return await i.pipeThrough(o).pipeTo(r),{size:t,content:new Blob(n)}},D$t=async e=>{const t=new Blob([e]),{size:n,content:r}=await P$t(t),i=new Uint8Array(await r.arrayBuffer());return{size:n,content:i}},k$t=e=>{let t=e.getHours();return t<<=6,t=t|e.getMinutes(),t<<=5,t=t|e.getSeconds()/2,t},L$t=e=>{let t=e.getFullYear()-1980;return t<<=4,t=t|e.getMonth()+1,t<<=5,t=t|e.getDate(),t};function n0(e,t){let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e&255),e>>>=8;return n}var bRe=e=>{if(!e.length)return 0;let t=-1,n=0,r=0,i=0;for(let o=0;o<e.length;o++)n=e[o],r=(t^n)&255,i=_$t[r],t=t>>>8^i;return t^-1},yRe=e=>e.length?bRe(typeof e=="string"?new TextEncoder().encode(e):e):0,_$t=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function N$t(e){const t=String.fromCharCode;function n(d){const p=[];if(!d)return[];const h=d.length;let g=0,m,b;for(;g<h;)m=d.charCodeAt(g++),m>=55296&&m<=56319&&g<h?(b=d.charCodeAt(g++),(b&64512)==56320?p.push(((m&1023)<<10)+(b&1023)+65536):(p.push(m),g--)):p.push(m);return p}function r(d){if(d>=55296&&d<=57343)throw Error(Of(255,{point:d}))}function i(d,p){return t(d>>p&63|128)}function o(d){if((d&4294967168)==0)return t(d);let p="";return(d&4294965248)==0?p=t(d>>6&31|192):(d&4294901760)==0?(r(d),p=t(d>>12&15|224),p+=i(d,6)):(d&4292870144)==0&&(p=t(d>>18&7|240),p+=i(d,12),p+=i(d,6)),p+=t(d&63|128),p}const a=n(e),s=a.length;let l=-1,c,u="";for(;++l<s;)c=a[l],u+=o(c);return u}var Trt=(e,t,n,r,i,o)=>{const{content:a,path:s,created:l}=e,c=k$t(l),u=L$t(l),d=yRe(i),p=o!==void 0?o:r,h=N$t(s),g=h!==s;let m="";if(g){const C=n0(1,1)+n0(yRe(h),4)+h;m="up"+n0(C.length,2)+C}const b="\0"+(g?"\0\b":"\0\0")+n0(t?8:0,2)+n0(c,2)+n0(u,2)+n0(p?d:0,4)+n0(o??r,4)+n0(r,4)+n0(h.length,2)+n0(m.length,2),y="PK"+b+h+m,M="PK\0"+b+"\0\0\0\0\0\0"+(a?"\0\0\0\0":"\0\0\0")+n0(n,4)+h+m;return{localFileHeader:Uint8Array.from(y,C=>C.charCodeAt(0)),centralDirectoryHeader:Uint8Array.from(M,C=>C.charCodeAt(0))}},Ert=e=>{let t;if(typeof e=="string"){const n=atob(e.split(";base64,")[1]);t=Uint8Array.from(n,r=>r.charCodeAt(0))}else t=e;return{size:t.length,content:t}},F$t=async(e,t)=>{const{content:n}=e,{size:r,content:i}=n?Ert(n):{size:0,content:Uint8Array.from([])};let o,a,s=!1;if(e.type==="file"&&i&&r>0){const u=await D$t(i);o=u.content,a=u.size,s=!0}return{...Trt(e,s,t,r,i,a),content:o||i,isCompressed:s}},W$t=(e,t)=>{const{content:n}=e,{content:r}=n?Ert(n):{content:Uint8Array.from([])};return{...Trt(e,!1,t,r.length,r,void 0),content:r,isCompressed:!1}},q$t=(e,t,n)=>{const r="PK\0\0\0\0"+n0(e,2)+n0(e,2)+n0(t,4)+n0(n,4)+"\0\0";return Uint8Array.from(r,i=>i.charCodeAt(0))},Rrt=class{constructor(){this.folders=[],this.files=[]}addFolders(e){e.forEach(this.addFolder.bind(this))}addFolder(e){this.folders.push({path:e,created:new Date,isBase64:!1,type:"folder"})}addFile(e,t,n=!1){this.files.push({path:e,created:new Date,content:n?t:new TextEncoder().encode(t),isBase64:n,type:"file"})}async getZipFile(e="application/zip"){const t=await this.buildCompressedFileStream();return this.clearStream(),new Blob([t],{type:e})}getUncompressedZipFile(e="application/zip"){const t=this.buildFileStream();return this.clearStream(),new Blob([t],{type:e})}clearStream(){this.folders=[],this.files=[]}packageFiles(e){let t=0,n=0;for(const c of e){const{localFileHeader:u,centralDirectoryHeader:d,content:p}=c;t+=u.length+p.length,n+=d.length}const r=new Uint8Array(t),i=new Uint8Array(n);let o=0,a=0;for(const c of e){const{localFileHeader:u,centralDirectoryHeader:d,content:p}=c;r.set(u,o),o+=u.length,r.set(p,o),o+=p.length,i.set(d,a),a+=d.length}const s=q$t(e.length,n,t),l=new Uint8Array(r.length+i.length+s.length);return l.set(r),l.set(i,r.length),l.set(s,r.length+i.length),l}async buildCompressedFileStream(){const e=[...this.folders,...this.files],t=[];let n=0;for(const r of e){const i=await F$t(r,n),{localFileHeader:o,content:a}=i;t.push(i),n+=o.length+a.length}return this.packageFiles(t)}buildFileStream(){const e=[...this.folders,...this.files],t=[];let n=0;for(const r of e){const i=W$t(r,n),{localFileHeader:o,content:a}=i;t.push(i),n+=o.length+a.length}return this.packageFiles(t)}},B$t=e=>{if(e.addFolders(["_rels/","docProps/","xl/","xl/theme/","xl/_rels/","xl/worksheets/"]),!Sz.size)return;e.addFolders(["xl/worksheets/_rels","xl/drawings/","xl/drawings/_rels","xl/media/"]);let t=0;Sz.forEach(n=>{const r=n[0].image[0],{base64:i,imageType:o}=r;e.addFile(`xl/media/image${++t}.${HK(o)}`,i,!0)})},j$t=(e,t)=>{let n=0,r=0;for(let i=0;i<t.length;i++){const o=t[i];e.addFile(`xl/worksheets/sheet${i+1}.xml`,o,!1);const a=Sz.size>0&&Az.has(i),s=Vy.size>0&&Vy.get(i),l=Sz.size&&Ux.has(i);if(!a&&!s&&!l)continue;let c,u,d;a&&(H$t(e,i,n),u=n,n++),l&&(V$t(e,i,r),d=r,r++),s&&(c=s.name);const p=`xl/worksheets/_rels/sheet${i+1}.xml.rels`;e.addFile(p,E$t({tableName:c,drawingIndex:u,vmlDrawingIndex:d}))}},H$t=(e,t,n)=>{const r="xl/drawings",i=`${r}/drawing${n+1}.xml`,o=`${r}/_rels/drawing${n+1}.xml.rels`;e.addFile(o,O$t(t)),e.addFile(i,A$t(t))},V$t=(e,t,n)=>{const r="xl/drawings",i=`${r}/vmlDrawing${n+1}.vml`,o=`${r}/_rels/vmlDrawing${n+1}.vml.rels`;e.addFile(i,z$t(t)),e.addFile(o,T$t(t))},G$t=e=>{const t=Vy,n=Array.from(t.keys());for(let r=0;r<n.length;r++){const i=n[r],o=t.get(i);o&&e.addFile(`xl/tables/${o.name}.xml`,w$t(o,r))}},$$t=(e,t,n,r,i)=>{e.addFile("xl/workbook.xml",m$t(i)),e.addFile("xl/styles.xml",v$t(t)),e.addFile("xl/sharedStrings.xml",b$t()),e.addFile("xl/theme/theme1.xml",x$t()),e.addFile("xl/_rels/workbook.xml.rels",S$t(r)),e.addFile("docProps/core.xml",y$t(n)),e.addFile("[Content_Types].xml",M$t(r)),e.addFile("_rels/.rels",C$t())},Irt=(e,t,n={})=>{if(!t||t.length===0)return ut(159),vRe(),!1;const{fontSize:r=11,author:i="AG Grid",activeTab:o=0}=n,a=t.length,s=Math.max(Math.min(o,a-1),0);return B$t(e),G$t(e),j$t(e,t),$$t(e,r,i,a,s),vRe(),!0},Prt=e=>{const{data:t,fontSize:n,author:r,activeSheetIndex:i}=e,o=e.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",a=new Rrt;return Irt(a,t,{author:r,fontSize:n,activeTab:i})?a.getZipFile(o):Promise.resolve(void 0)},MRe=e=>{const{data:t,fontSize:n,author:r,activeSheetIndex:i}=e,o=e.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",a=new Rrt;if(Irt(a,t,{author:r,fontSize:n,activeTab:i}))return a.getUncompressedZipFile(o)},U$t=e=>{const{fileName:t="export.xlsx"}=e;Prt(e).then(n=>{if(n){const r=typeof t=="function"?t():t;Gye(r,n)}})},X$t=class extends qnt{constructor(){super(...arguments),this.beanName="excelCreator"}getMergedParams(e){const t=this.gos.get("defaultExcelExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){ut(160);return}const t=this.getMergedParams(e),r={data:[this.getData(t)],fontSize:t.fontSize,author:t.author,mimeType:t.mimeType};this.packageCompressedFile(r).then(i=>{if(i){const{fileName:o}=t,a=typeof o=="function"?o(Gn(this.gos,{})):o;Gye(this.getFileName(a),i)}})}exportDataAsExcel(e){this.export(e)}getDataAsExcel(e){const t=this.getMergedParams(e),r={data:[this.getData(t)],fontSize:t.fontSize,author:t.author,mimeType:t.mimeType};return this.packageFile(r)}setFactoryMode(e){s$t(e)}getFactoryMode(){return a$t()}getSheetDataForExcel(e){const t=this.getMergedParams(e);return this.getData(t)}getMultipleSheetsAsExcel(e){return MRe(e)}exportMultipleSheetsAsExcel(e){U$t(e)}getDefaultFileExtension(){return"xlsx"}createSerializingSession(e){const{colModel:t,colNames:n,rowGroupColsSvc:r,valueSvc:i,gos:o}=this.beans,a={...e,colModel:t,colNames:n,rowGroupColsSvc:r,valueSvc:i,gos:o,suppressRowOutline:e.suppressRowOutline||e.skipRowGroups,headerRowHeight:e.headerRowHeight||e.rowHeight,baseExcelStyles:o.get("excelStyles")||[],rightToLeft:e.rightToLeft??o.get("enableRtl"),styleLinker:this.styleLinker.bind(this)};return new I$t(a)}styleLinker(e){const{rowType:t,rowIndex:n,value:r,column:i,columnGroup:o,node:a}=e,s=t==="HEADER",l=t==="HEADER_GROUPING",c=s?i:o;let u=[];const{gos:d,cellStyles:p}=this.beans;if(s||l)return u.push("header"),l&&u.push("headerGroup"),c&&(u=u.concat(vye(c.getDefinition(),d,i||null,o||null))),u;const h=d.get("excelStyles"),g=["cell"];if(!h||!h.length)return g;const m=h.map(y=>y.id),b=i.getDefinition();return p?.processAllCellClasses(b,Gn(d,{value:r,data:a.data,node:a,colDef:b,column:i,rowIndex:n}),y=>{m.indexOf(y)>-1&&g.push(y)}),g.sort((y,M)=>m.indexOf(y)<m.indexOf(M)?-1:1)}isExportSuppressed(){return this.gos.get("suppressExcelExport")}packageCompressedFile(e){return Prt(e)}packageFile(e){return MRe(e)}},wi="33.3.2",es={moduleName:"EnterpriseCore",version:wi,beans:[yrt],icons:{accordionOpen:"tree-open",accordionClosed:"tree-closed",accordionIndeterminate:"tree-indeterminate",close:"cross",cancel:"cancel",maximize:"maximize",minimize:"minimize",columnDrag:"grip"},dependsOn:[]},Y$t='.ag-advanced-filter-header{align-items:center;background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);display:flex;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);position:relative}.ag-advanced-filter{align-items:center;display:flex;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}:where(.ag-ltr) .ag-advanced-filter-apply-button,:where(.ag-ltr) .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-advanced-filter-apply-button,:where(.ag-rtl) .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-button{align-items:center;background-color:unset;border:0;display:flex;font-size:var(--ag-font-size);font-weight:600;padding:var(--ag-spacing);&:where(:not(:disabled)){cursor:pointer;&:hover{background-color:var(--ag-row-hover-color)}}}:where(.ag-ltr) .ag-advanced-filter-builder-button-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-advanced-filter-builder-button-label{margin-right:var(--ag-spacing)}.ag-advanced-filter-builder{display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-button-panel{border-top:var(--ag-advanced-filter-builder-button-bar-border);display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-advanced-filter-builder-apply-button,:where(.ag-ltr) .ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-advanced-filter-builder-apply-button,:where(.ag-rtl) .ag-advanced-filter-builder-cancel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-item-wrapper{align-items:center;display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}:where(.ag-ltr) .ag-advanced-filter-builder-item-wrapper{padding-left:calc(var(--ag-icon-size)/2);padding-right:var(--ag-icon-size)}:where(.ag-rtl) .ag-advanced-filter-builder-item-wrapper{padding-left:var(--ag-icon-size);padding-right:calc(var(--ag-icon-size)/2)}:where(.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper) .ag-tab-guard{position:absolute}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size);&:before{height:50%;top:50%}}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-bottom,.ag-advanced-filter-builder-item-tree-line-vertical-top{align-items:center;display:flex;height:100%;position:relative;&:after,&:before{content:"";height:100%;position:absolute}}.ag-advanced-filter-builder-item-tree-line-horizontal:after{border-bottom:1px solid var(--ag-border-color);height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size))}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-horizontal:after{left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-horizontal:after{right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical:before{top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc(50% - var(--ag-icon-size)*1.5/2);top:calc(50% + var(--ag-icon-size)*1.5/2);width:calc(var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-condition{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-item-tree-lines,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-pill-wrapper{align-items:center;display:flex;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0 var(--ag-spacing)}.ag-advanced-filter-builder-pill{border-radius:var(--ag-border-radius);min-height:calc(100% - var(--ag-spacing)*3);min-width:calc(var(--ag-spacing)*2);padding:var(--ag-spacing) calc(var(--ag-spacing)*2);position:relative}:where(.ag-advanced-filter-builder-pill){.ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-value-empty{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-advanced-filter-builder-pill){.ag-picker-field-display{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-advanced-filter-builder-pill){.ag-picker-field-display{margin-left:var(--ag-spacing)}}.ag-advanced-filter-builder-pill-display{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-advanced-filter-builder-join-pill{background-color:var(--ag-advanced-filter-builder-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{background-color:var(--ag-advanced-filter-builder-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{background-color:var(--ag-advanced-filter-builder-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{background-color:var(--ag-advanced-filter-builder-value-pill-color);cursor:text;max-width:140px;:where(.ag-advanced-filter-builder-pill-display){display:block}}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-spacing)*.5)}.ag-advanced-filter-builder-item-button{color:var(--ag-subtle-text-color);cursor:pointer;position:relative}.ag-advanced-filter-builder-item-button,.ag-advanced-filter-builder-pill{&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-advanced-filter-builder-item-button-disabled{cursor:default;opacity:.5}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-spacing)}.ag-advanced-filter-builder-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:hover{background-color:var(--ag-row-hover-color);:where(.ag-advanced-filter-builder-item-button){opacity:1}}}.ag-advanced-filter-builder-invalid{color:var(--ag-invalid-color);cursor:default;margin:0 var(--ag-spacing)}:where(.ag-advanced-filter-builder-validation) .ag-advanced-filter-builder-invalid,:where(.ag-advanced-filter-builder-virtual-list-item-highlight) .ag-advanced-filter-builder-item-button:focus-visible{opacity:1}';function K$t(e){return e.filterManager?.getAdvFilterModel()??null}function Q$t(e,t){e.filterManager?.setAdvFilterModel(t)}function Z$t(e){e.filterManager?.toggleAdvFilterBuilder(!0,"api")}function J$t(e){e.filterManager?.toggleAdvFilterBuilder(!1,"api")}var e9t={ariaAdvancedFilterBuilderItem:e=>`${e[0]}. Level ${e[1]}. Press ENTER to edit`,ariaAdvancedFilterBuilderItemValidation:e=>`${e[0]}. Level ${e[1]}. ${e[2]} Press ENTER to edit`,ariaAdvancedFilterBuilderList:"Advanced Filter Builder List",ariaAdvancedFilterBuilderFilterItem:"Filter Condition",ariaAdvancedFilterBuilderGroupItem:"Filter Group",ariaAdvancedFilterBuilderColumn:"Column",ariaAdvancedFilterBuilderOption:"Option",ariaAdvancedFilterBuilderValue:"Value",ariaAdvancedFilterBuilderJoinOperator:"Join Operator",ariaAdvancedFilterInput:"Advanced Filter Input",ariaLabelAdvancedFilterAutocomplete:"Advanced Filter Autocomplete",advancedFilterContains:"contains",advancedFilterNotContains:"does not contain",advancedFilterTextEquals:"equals",advancedFilterTextNotEqual:"does not equal",advancedFilterStartsWith:"begins with",advancedFilterEndsWith:"ends with",advancedFilterBlank:"is blank",advancedFilterNotBlank:"is not blank",advancedFilterEquals:"=",advancedFilterNotEqual:"!=",advancedFilterGreaterThan:">",advancedFilterGreaterThanOrEqual:">=",advancedFilterLessThan:"<",advancedFilterLessThanOrEqual:"<=",advancedFilterTrue:"is true",advancedFilterFalse:"is false",advancedFilterAnd:"AND",advancedFilterOr:"OR",advancedFilterApply:"Apply",advancedFilterBuilder:"Builder",advancedFilterValidationMissingColumn:"Column is missing",advancedFilterValidationMissingOption:"Option is missing",advancedFilterValidationMissingValue:"Value is missing",advancedFilterValidationInvalidColumn:"Column not found",advancedFilterValidationInvalidOption:"Option not found",advancedFilterValidationMissingQuote:"Value is missing an end quote",advancedFilterValidationNotANumber:"Value is not a number",advancedFilterValidationInvalidDate:"Value is not a valid date",advancedFilterValidationMissingCondition:"Condition is missing",advancedFilterValidationJoinOperatorMismatch:"Join operators within a condition must be the same",advancedFilterValidationInvalidJoinOperator:"Join operator not found",advancedFilterValidationMissingEndBracket:"Missing end bracket",advancedFilterValidationExtraEndBracket:"Too many end brackets",advancedFilterValidationMessage:e=>`Expression has an error. ${e[0]} - ${e[1]}.`,advancedFilterValidationMessageAtEnd:e=>`Expression has an error. ${e[0]} at end of expression.`,advancedFilterBuilderTitle:"Advanced Filter",advancedFilterBuilderApply:"Apply",advancedFilterBuilderCancel:"Cancel",advancedFilterBuilderAddButtonTooltip:"Add Filter or Group",advancedFilterBuilderRemoveButtonTooltip:"Remove",advancedFilterBuilderMoveUpButtonTooltip:"Move Up",advancedFilterBuilderMoveDownButtonTooltip:"Move Down",advancedFilterBuilderAddJoin:"Add Group",advancedFilterBuilderAddCondition:"Add Filter",advancedFilterBuilderSelectColumn:"Select a column",advancedFilterBuilderSelectOption:"Select an option",advancedFilterBuilderEnterValue:"Enter a value...",advancedFilterBuilderValidationAlreadyApplied:"Current filter already applied.",advancedFilterBuilderValidationIncomplete:"Not all conditions are complete.",advancedFilterBuilderValidationSelectColumn:"Must select a column.",advancedFilterBuilderValidationSelectOption:"Must select an option.",advancedFilterBuilderValidationEnterValue:"Must enter a value."};function Ehe(e,t,n){if(!e)return"";const r=n-t;return r?e.slice(0,e.length-r):e}function zx(e,t,n,r,i,o,a){const s=n+(!e.length||a?0:1);let l=0;return i&&(e[s]===" "?l=1:(r+=" ",o&&(r+='"'))),{updatedValue:e.slice(0,t)+r+e.slice(s),updatedPosition:t+r.length+l}}function t9t(e,t,n){let r=t;for(;r<n&&e[r]===" ";)r++;return r}function Rhe(e,t,n,r){let i=t,o=!1;for(;i<e.length;){const a=e[i];if(a==="("){r&&e[i-1]===" "?o=!0:i=i-1;break}else if(a===" "||n&&a===")"){i=i-1;break}i++}return{endPosition:i,isEmpty:o}}function Yye(e,t,n,r){n!==t&&(e.expression=zx(e.expression,r-t.length+1,r,n).updatedValue)}function n9t(e){return e.replace(/(['"])/,"\\$1")}var r9t=class{constructor(e,t){this.params=e,this.startPosition=t,this.type="column",this.valid=!0,this.hasStartChar=!1,this.hasEndChar=!1,this.colName=""}parse(e,t){if(e===Ihe&&!this.colName)this.hasStartChar=!0;else if(e===Phe&&this.hasStartChar){if(this.parseColumn(!1,t))return this.hasEndChar=!0,!1;this.colName+=e}else this.colName+=e}getDisplayValue(){return(this.hasStartChar?Ihe:"")+this.colName+(this.hasEndChar?Phe:"")}getColId(){return this.colId}complete(e){this.parseColumn(!0,e)}getValidationError(){return this.valid?null:{message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidColumn"),startPosition:this.startPosition,endPosition:this.endPosition??this.params.expression.length-1}}parseColumn(e,t){this.endPosition=t;const n=this.params.advFilterExpSvc.getColId(this.colName);return n&&this.hasStartChar&&(this.colId=n.colId,Yye(this.params,this.colName,n.columnName,t-1),this.colName=n.columnName,this.column=this.params.colModel.getColDefCol(this.colId),this.column)?(this.baseCellDataType=this.params.dataTypeSvc?.getBaseDataType(this.column)??"text",!0):(e&&(this.valid=!1),this.baseCellDataType="text",!1)}},i9t=class{constructor(e,t,n){this.params=e,this.startPosition=t,this.baseCellDataType=n,this.type="operator",this.valid=!0,this.expectedNumOperands=0,this.operator=""}parse(e,t){if(e===" "||e===")"){if(this.parseOperator(!1,t-1))return!0;this.operator+=e}else this.operator+=e}complete(e){this.parseOperator(!0,e)}getValidationError(){return this.valid?null:{message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidOption"),startPosition:this.startPosition,endPosition:this.endPosition??this.params.expression.length-1}}getDisplayValue(){return this.operator}getOperatorKey(){return this.parsedOperator}parseOperator(e,t){const n=this.params.advFilterExpSvc.getDataTypeExpressionOperator(this.baseCellDataType),r=n.findOperator(this.operator);if(this.endPosition=t,r){this.parsedOperator=r;const o=n.operators[r];this.expectedNumOperands=o.numOperands;const a=o.displayValue;return Yye(this.params,this.operator,a,t),this.operator=a,!0}return(e||!(r===null))&&(this.valid=!1),!1}},o9t=class{constructor(e,t,n,r){this.params=e,this.startPosition=t,this.baseCellDataType=n,this.column=r,this.type="operand",this.valid=!0,this.operand="",this.validationMessage=null}parse(e,t){if(e===" ")if(this.quotes)this.operand+=e;else return this.parseOperand(!1,t),!0;else if(e===")"){if(this.baseCellDataType==="number"||!this.quotes)return this.parseOperand(!1,t-1),!0;this.operand+=e}else if(!this.operand&&!this.quotes&&(e==="'"||e==='"'))this.quotes=e;else{if(this.quotes&&e===this.quotes)return this.parseOperand(!1,t),!1;this.operand+=e}}complete(e){this.parseOperand(!0,e)}getValidationError(){return this.validationMessage?{message:this.validationMessage,startPosition:this.startPosition,endPosition:this.endPosition??this.params.expression.length-1}:null}getRawValue(){return this.operand}getModelValue(){return this.modelValue}parseOperand(e,t){const{advFilterExpSvc:n}=this.params;if(this.endPosition=t,this.modelValue=this.operand,e&&this.quotes)this.valid=!1,this.validationMessage=n.translate("advancedFilterValidationMissingQuote");else if(this.modelValue==="")this.valid=!1,this.validationMessage=n.translate("advancedFilterValidationMissingValue");else{const r=n.getOperandModelValue(this.operand,this.baseCellDataType,this.column);switch(r!=null&&(this.modelValue=r),this.baseCellDataType){case"number":(this.quotes||isNaN(this.modelValue))&&(this.valid=!1,this.validationMessage=n.translate("advancedFilterValidationNotANumber"));break;case"date":case"dateString":r==null&&(this.valid=!1,this.validationMessage=n.translate("advancedFilterValidationInvalidDate"));break}}}},Ihe="[",Phe="]",a9t=class{constructor(e,t){this.params=e,this.startPosition=t,this.isAwaiting=!0}parseExpression(){let e=this.startPosition;const{expression:t}=this.params;for(;e<t.length;){const n=t[e];if(!(n===" "&&this.isAwaiting)){if(this.isAwaiting=!1,!this.parser){let i;this.columnParser?this.operatorParser?(this.operandParser=new o9t(this.params,e,this.columnParser.baseCellDataType,this.columnParser.column),i=this.operandParser):(this.operatorParser=new i9t(this.params,e,this.columnParser.baseCellDataType),i=this.operatorParser):(this.columnParser=new r9t(this.params,e),i=this.columnParser),this.parser=i}const r=this.parser.parse(n,e);if(r!=null){if(this.isComplete())return this.returnEndPosition(r?e-1:e,!0);this.parser=void 0,this.isAwaiting=!0}}e++}return this.parser?.complete?.(e-1),this.returnEndPosition(e)}isValid(){return this.isComplete()&&this.columnParser.valid&&this.operatorParser.valid&&(!this.operandParser||this.operandParser.valid)}getValidationError(){const e=this.columnParser?.getValidationError()??this.operatorParser?.getValidationError()??this.operandParser?.getValidationError();if(e)return e;const t=this.params.expression.length;let n;return this.columnParser?this.operatorParser?this.operatorParser.expectedNumOperands&&!this.operandParser&&(n="advancedFilterValidationMissingValue"):n="advancedFilterValidationMissingOption":n="advancedFilterValidationMissingColumn",n?{message:this.params.advFilterExpSvc.translate(n),startPosition:t,endPosition:t}:null}getFunctionString(e){return this.getFunctionCommon(e,(t,n,r,i)=>{const o=n9t(r),a=t==null?"":`, params.operands[${t}]`;return`params.operators[${n}].evaluator(expressionProxy.getValue('${o}', node), node, params.evaluatorParams[${i}]${a})`})}getFunctionParsed(e){return this.getFunctionCommon(e,(t,n,r,i)=>(o,a,s)=>s.operators[n].evaluator(o.getValue(r,a),a,s.evaluatorParams[i],t==null?void 0:s.operands[t]))}getAutocompleteListParams(e){if(this.isColumnPosition(e))return this.getColumnAutocompleteListParams(e);if(this.isOperatorPosition(e))return this.getOperatorAutocompleteListParams(e);if(!this.isBeyondEndPosition(e))return{enabled:!1}}updateExpression(e,t,n){const{expression:r}=this.params;if(this.isColumnPosition(e))return zx(this.params.expression,this.startPosition,this.columnParser?.getColId()?this.columnParser.endPosition:Rhe(r,e).endPosition,this.params.advFilterExpSvc.getColumnValue(t),!0);if(this.isOperatorPosition(e)){const i=this.getBaseCellDataTypeFromOperatorAutocompleteType(n),o=this.hasOperand(i,t.key),a=o&&this.doesOperandNeedQuotes(i);let s;if(this.operatorParser?.startPosition!=null&&e<this.operatorParser.startPosition)s=zx(r,e,e,t.displayValue??t.key,o,a);else{let l,c=!1;if(this.operatorParser?.getOperatorKey())l=this.operatorParser.endPosition;else{const{endPosition:u,isEmpty:d}=Rhe(r,e,!0,!0);l=u,c=d}s=zx(r,t9t(r,this.columnParser.endPosition+1,l),l,t.displayValue??t.key,o,a,c)}return{...s,hideAutocomplete:!o}}return null}getModel(){const e=this.columnParser.getColId(),t={filterType:this.columnParser.baseCellDataType,colId:e,type:this.operatorParser.getOperatorKey()};return this.operatorParser.expectedNumOperands&&(t.filter=this.operandParser.getModelValue()),t}getFunctionCommon(e,t){const n=this.columnParser.getColId(),r=this.operatorParser?.getOperatorKey(),{operators:i,evaluatorParams:o,operands:a}=e,s=this.params.advFilterExpSvc.getExpressionOperator(this.columnParser.baseCellDataType,r),l=this.addToListAndGetIndex(i,s),c=this.params.advFilterExpSvc.getExpressionEvaluatorParams(n),u=this.addToListAndGetIndex(o,c),d=this.operatorParser?.expectedNumOperands===0?void 0:this.addToListAndGetIndex(a,this.getOperandValue());return t(d,l,n,u)}getOperandValue(){let e=this.operandParser.getRawValue();const{baseCellDataType:t,column:n}=this.columnParser;switch(t){case"number":e=Number(e);break;case"date":case"dateString":e=this.params.valueSvc.parseValue(n,null,e,void 0);break}if(t==="dateString"){const{dataTypeSvc:r}=this.params;return r?r.getDateParserFunction(n)(e):e}return e}isComplete(){return!!(this.operatorParser&&(!this.operatorParser.expectedNumOperands||this.operatorParser.expectedNumOperands&&this.operandParser))}isColumnPosition(e){return!this.columnParser||this.columnParser.endPosition==null||e<=this.columnParser.endPosition+1}isOperatorPosition(e){return!this.operatorParser||this.operatorParser.endPosition==null||e<=this.operatorParser.endPosition+1}isBeyondEndPosition(e){return this.isComplete()&&this.endPosition!=null&&e>this.endPosition+1&&this.endPosition+1<this.params.expression.length}returnEndPosition(e,t){return this.endPosition=t?e:e-1,e}getColumnAutocompleteListParams(e){return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getColumnAutocompleteEntries(),"column",this.getColumnSearchString(e))}getColumnSearchString(e){const t=this.columnParser?.getDisplayValue()??"",n=Ehe(t,e,this.columnParser?.endPosition==null?this.params.expression.length:this.columnParser.endPosition+1),r=this.columnParser?.hasStartChar&&n.length>0,i=this.columnParser?.hasEndChar&&n.length===t.length+2;return r?n.slice(1,i?-1:void 0):n}getOperatorAutocompleteListParams(e){const t=this.columnParser?.column;if(!t)return{enabled:!1};const n=this.columnParser.baseCellDataType,r=this.operatorParser?.startPosition!=null&&e<this.operatorParser.startPosition?"":Ehe(this.operatorParser?.getDisplayValue()??"",e,this.operatorParser?.endPosition==null?this.params.expression.length:this.operatorParser.endPosition+1);return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getOperatorAutocompleteEntries(t,n),`operator-${n}`,r)}getBaseCellDataTypeFromOperatorAutocompleteType(e){return e?.replace("operator-","")}hasOperand(e,t){return!e||!t||(this.params.advFilterExpSvc.getExpressionOperator(e,t)?.numOperands??0)>0}doesOperandNeedQuotes(e){return e!=="number"}addToListAndGetIndex(e,t){const n=e.length;return e.push(t),n}};function VK(e,t,n){let r=!1;const i=e.toLocaleLowerCase(),o=i+" ",a=Object.keys(t).find(s=>{const l=t[s],c=n(l).toLocaleLowerCase();return c.startsWith(o)&&(r=!0),c===i});return a||(r?null:void 0)}function Kye(e,t){return(t??Object.keys(e)).map(r=>({key:r,displayValue:e[r].displayValue}))}var CRe=class{constructor(e){this.params=e,this.initOperators()}getEntries(e){return Kye(this.operators,e)}findOperator(e){return VK(e,this.operators,({displayValue:t})=>t)}initOperators(){const{translate:e}=this.params;this.operators={contains:{displayValue:e("advancedFilterContains"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!1,(o,a)=>o.includes(a)),numOperands:1},notContains:{displayValue:e("advancedFilterNotContains"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!0,(o,a)=>!o.includes(a)),numOperands:1},equals:{displayValue:e("advancedFilterTextEquals"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!1,(o,a)=>o===a),numOperands:1},notEqual:{displayValue:e("advancedFilterTextNotEqual"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!0,(o,a)=>o!=a),numOperands:1},startsWith:{displayValue:e("advancedFilterStartsWith"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!1,(o,a)=>o.startsWith(a)),numOperands:1},endsWith:{displayValue:e("advancedFilterEndsWith"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!1,(o,a)=>o.endsWith(a)),numOperands:1},blank:{displayValue:e("advancedFilterBlank"),evaluator:t=>t==null||typeof t=="string"&&t.trim().length===0,numOperands:0},notBlank:{displayValue:e("advancedFilterNotBlank"),evaluator:t=>t!=null&&(typeof t!="string"||t.trim().length>0),numOperands:0}}}evaluateExpression(e,t,n,r,i,o){return e==null?i:n.caseSensitive?o(n.valueConverter(e,t),r):o(n.valueConverter(e,t).toLocaleLowerCase(),r.toLocaleLowerCase())}},wre=class{constructor(e){this.params=e,this.initOperators()}getEntries(e){return Kye(this.operators,e)}findOperator(e){return VK(e,this.operators,({displayValue:t})=>t)}initOperators(){const{translate:e,equals:t}=this.params;this.operators={equals:{displayValue:e("advancedFilterEquals"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInEquals,t),numOperands:1},notEqual:{displayValue:e("advancedFilterNotEqual"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInEquals,(a,s)=>!t(a,s)),numOperands:1},greaterThan:{displayValue:e("advancedFilterGreaterThan"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInGreaterThan,(a,s)=>a>s),numOperands:1},greaterThanOrEqual:{displayValue:e("advancedFilterGreaterThanOrEqual"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInGreaterThan,(a,s)=>a>=s),numOperands:1},lessThan:{displayValue:e("advancedFilterLessThan"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInLessThan,(a,s)=>a<s),numOperands:1},lessThanOrEqual:{displayValue:e("advancedFilterLessThanOrEqual"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInLessThan,(a,s)=>a<=s),numOperands:1},blank:{displayValue:e("advancedFilterBlank"),evaluator:n=>n==null,numOperands:0},notBlank:{displayValue:e("advancedFilterNotBlank"),evaluator:n=>n!=null,numOperands:0}}}evaluateSingleOperandExpression(e,t,n,r,i,o){return e==null?i:o(n.valueConverter(e,t),r)}},s9t=class{constructor(e){this.params=e,this.initOperators()}getEntries(e){return Kye(this.operators,e)}findOperator(e){return VK(e,this.operators,({displayValue:t})=>t)}initOperators(){const{translate:e}=this.params;this.operators={true:{displayValue:e("advancedFilterTrue"),evaluator:t=>!!t,numOperands:0},false:{displayValue:e("advancedFilterFalse"),evaluator:t=>t===!1,numOperands:0},blank:{displayValue:e("advancedFilterBlank"),evaluator:t=>t==null,numOperands:0},notBlank:{displayValue:e("advancedFilterNotBlank"),evaluator:t=>t!=null,numOperands:0}}}},l9t=class extends dt{constructor(){super(...arguments),this.beanName="advFilterExpSvc",this.columnNameToIdMap={},this.columnAutocompleteEntries=null,this.expressionEvaluatorParams={}}wireBeans(e){this.valueSvc=e.valueSvc,this.colModel=e.colModel,this.colNames=e.colNames,this.dataTypeSvc=e.dataTypeSvc}postConstruct(){this.expressionJoinOperators=this.generateExpressionJoinOperators(),this.expressionOperators=this.generateExpressionOperators()}parseJoinOperator(e){const{type:t}=e;return this.expressionJoinOperators[t]??t}getColumnDisplayValue(e){const{colId:t}=e,r=this.getColumnAutocompleteEntries().find(({key:o})=>o===t);let i;return r?(i=r.displayValue,this.columnNameToIdMap[i.toLocaleUpperCase()]={colId:t,columnName:i}):i=t,i}getOperatorDisplayValue(e){return this.getExpressionOperator(e.filterType,e.type)?.displayValue??e.type}getOperandModelValue(e,t,n){switch(t){case"number":return Ut(e)?Number(e):null;case"date":return cp(this.valueSvc.parseValue(n,null,e,void 0),!1);case"dateString":{const r=this.valueSvc.parseValue(n,null,e,void 0);return this.dataTypeSvc?cp(this.dataTypeSvc.getDateParserFunction(n)(r)??null,!1):r}}return e}getOperandDisplayValue(e,t){const{colId:n,filter:r}=e,i=this.colModel.getColDefCol(n);let o="";if(r!=null){let a;switch(e.filterType){case"number":a=ap(r)??"";break;case"date":{const s=h0(r);a=i?this.valueSvc.formatValue(i,null,s):null;break}case"dateString":{let s;if(this.dataTypeSvc){const l=h0(r);s=i?this.dataTypeSvc?.getDateFormatterFunction(i)(l??void 0):null}else s=r;a=i?this.valueSvc.formatValue(i,null,s):null;break}}e.filterType!=="number"&&(a=a??ap(r)??"",t||(a=`"${a}"`)),o=t?a:` ${a}`}return o}parseColumnFilterModel(e){const t=this.getColumnDisplayValue(e)??"",n=this.getOperatorDisplayValue(e)??"",r=this.getOperandDisplayValue(e);return`[${t}] ${n}${r}`}updateAutocompleteCache(e,t){if(t==="column"){const{key:n,displayValue:r}=e;this.columnNameToIdMap[e.displayValue.toLocaleUpperCase()]={colId:n,columnName:r}}}translate(e,t){let n=e9t[e];return typeof n=="function"&&(n=n(t)),this.getLocaleTextFunc()(e,n,t)}generateAutocompleteListParams(e,t,n){return{enabled:!0,type:t,searchString:n,entries:e}}getColumnAutocompleteEntries(){if(this.columnAutocompleteEntries)return this.columnAutocompleteEntries;const e=this.colModel.getColDefCols()??[],t=[],n=this.gos.get("includeHiddenColumnsInAdvancedFilter");return e.forEach(r=>{r.getColDef().filter&&(n||r.isVisible()||r.isRowGroupActive())&&t.push({key:r.getColId(),displayValue:this.colNames.getDisplayNameForColumn(r,"advancedFilter")})}),t.sort((r,i)=>{const o=r.displayValue??"",a=i.displayValue??"";return o<a?-1:a>o?1:0}),t}getOperatorAutocompleteEntries(e,t){const n=this.getActiveOperators(e);return this.getDataTypeExpressionOperator(t).getEntries(n)}getJoinOperatorAutocompleteEntries(){return Object.entries(this.expressionJoinOperators).map(([e,t])=>({key:e,displayValue:t}))}getDefaultAutocompleteListParams(e){return this.generateAutocompleteListParams(this.getColumnAutocompleteEntries(),"column",e)}getDataTypeExpressionOperator(e){return this.expressionOperators[e]}getExpressionOperator(e,t){return this.getDataTypeExpressionOperator(e)?.operators?.[t]}getExpressionJoinOperators(){return this.expressionJoinOperators}getColId(e){const t=e.toLocaleUpperCase(),n=this.columnNameToIdMap[t];if(n)return n;const i=this.getColumnAutocompleteEntries().find(({displayValue:o})=>o.toLocaleUpperCase()===t);if(i){const{key:o,displayValue:a}=i,s={colId:o,columnName:a};return this.columnNameToIdMap[t]=s,s}return null}getExpressionEvaluatorParams(e){let t=this.expressionEvaluatorParams[e];if(t)return t;const n=this.colModel.getColDefCol(e);if(!n)return{valueConverter:o=>o};switch(this.dataTypeSvc?.getBaseDataType(n)){case"dateString":t={valueConverter:this.dataTypeSvc?.getDateParserFunction(n)??(o=>o)};break;case"object":n.getColDef().filterValueGetter?t={valueConverter:o=>o}:t={valueConverter:(o,a)=>this.valueSvc.formatValue(n,a,o)??(typeof o.toString=="function"?o.toString():"")};break;case"text":case void 0:t={valueConverter:o=>ap(o)};break;default:t={valueConverter:o=>o};break}const{filterParams:i}=n.getColDef();return i&&["caseSensitive","includeBlanksInEquals","includeBlanksInLessThan","includeBlanksInGreaterThan"].forEach(o=>{const a=i[o];a&&(t[o]=a)}),this.expressionEvaluatorParams[e]=t,t}getColumnDetails(e){const t=this.colModel.getColDefCol(e)??void 0,n=(t?this.dataTypeSvc?.getBaseDataType(t):void 0)??"text";return{column:t,baseCellDataType:n}}generateExpressionOperators(){const e=(t,n)=>this.translate(t,n);return{text:new CRe({translate:e}),boolean:new s9t({translate:e}),object:new CRe({translate:e}),number:new wre({translate:e,equals:(t,n)=>t===n}),date:new wre({translate:e,equals:(t,n)=>t.getTime()===n.getTime()}),dateString:new wre({translate:e,equals:(t,n)=>t.getTime()===n.getTime()})}}getColumnValue({displayValue:e}){return`${Ihe}${e}${Phe}`}generateExpressionJoinOperators(){return{AND:this.translate("advancedFilterAnd"),OR:this.translate("advancedFilterOr")}}getActiveOperators(e){const t=e.getColDef().filterParams?.filterOptions;return t&&t.every(r=>typeof r=="string")?t:void 0}resetColumnCaches(){this.columnAutocompleteEntries=null,this.columnNameToIdMap={},this.expressionEvaluatorParams={}}},c9t=".ag-panel{background-color:var(--ag-panel-background-color);display:flex;flex-direction:column;overflow:hidden;position:relative}.ag-dialog{border:var(--ag-dialog-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dialog-shadow);position:absolute}.ag-panel-title-bar{align-items:center;background-color:var(--ag-panel-title-bar-background-color);border-bottom:var(--ag-panel-title-bar-border);color:var(--ag-panel-title-bar-text-color);cursor:default;display:flex;flex:none;font-weight:var(--ag-panel-title-bar-font-weight);height:var(--ag-header-height);padding:var(--ag-spacing) var(--ag-cell-horizontal-padding)}.ag-panel-title-bar-button{color:var(--ag-panel-title-bar-icon-color);cursor:pointer}:where(.ag-ltr) .ag-panel-title-bar-button{margin-left:calc(var(--ag-spacing)*2);margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-panel-title-bar-button{margin-left:var(--ag-spacing);margin-right:calc(var(--ag-spacing)*2)}.ag-panel-title-bar-title{flex:1 1 auto}.ag-panel-title-bar-buttons{display:flex}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;overflow:hidden;position:relative}:where(.ag-dragging-fill-handle) .ag-dialog,:where(.ag-dragging-range-handle) .ag-dialog{opacity:.7;pointer-events:none}";function u9t(e){const t=e.cssIdentifier||"default";return{tag:"div",cls:`ag-panel ag-${t}-panel`,attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eTitleBar",cls:`ag-panel-title-bar ag-${t}-panel-title-bar ag-unselectable`,children:[{tag:"span",ref:"eTitle",cls:`ag-panel-title-bar-title ag-${t}-panel-title-bar-title`},{tag:"div",ref:"eTitleBarButtons",cls:`ag-panel-title-bar-buttons ag-${t}-panel-title-bar-buttons`}]},{tag:"div",ref:"eContentWrapper",cls:`ag-panel-content-wrapper ag-${t}-panel-content-wrapper`}]}}var Drt=class extends Gt{constructor(e){super(u9t(e)),this.config=e,this.closable=!0,this.eContentWrapper=at,this.eTitleBar=at,this.eTitleBarButtons=at,this.eTitle=at,this.registerCSS(c9t)}postConstruct(){const{component:e,closable:t,hideTitleBar:n,title:r,minWidth:i=250,width:o,minHeight:a=250,height:s,centered:l,popup:c,x:u,y:d}=this.config;this.positionableFeature=new PK(this.getGui(),{minWidth:i,width:o,minHeight:a,height:s,centered:l,x:u,y:d,popup:c,calculateTopBuffer:()=>this.positionableFeature.getHeight()-this.getBodyHeight()}),this.createManagedBean(this.positionableFeature);const p=this.getGui();e&&this.setBodyComponent(e),n?Nn(this.eTitleBar,!1):(r&&this.setTitle(r),this.setClosable(t??this.closable)),this.addManagedElementListeners(this.eTitleBar,{mousedown:h=>{if(p.contains(h.relatedTarget)||p.contains($i(this.beans))||this.eTitleBarButtons.contains(h.target)){h.preventDefault();return}const g=this.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");g&&g.focus()}}),!(c&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")}renderComponent(){const e=this.getGui();e.focus(),this.close=()=>{e.parentElement.removeChild(e),this.destroy()}}getHeight(){return this.positionableFeature.getHeight()}setHeight(e){this.positionableFeature.setHeight(e)}getWidth(){return this.positionableFeature.getWidth()}setWidth(e){this.positionableFeature.setWidth(e)}setClosable(e){if(e!==this.closable&&(this.closable=e),e){const t=this.closeButtonComp=new Gt({tag:"div",cls:"ag-button"});this.createBean(t);const n=t.getGui(),r=er("close",this.beans);r.classList.add("ag-panel-title-bar-button-icon"),n.appendChild(r),this.addTitleBarButton(t),t.addManagedElementListeners(n,{click:this.onBtClose.bind(this)})}else if(this.closeButtonComp){const t=this.closeButtonComp.getGui();t.parentElement.removeChild(t),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}}setBodyComponent(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())}addTitleBarButton(e,t){const n=this.eTitleBarButtons,r=n.children,i=r.length;t==null&&(t=i),t=Math.max(0,Math.min(t,i)),e.addCss("ag-panel-title-bar-button");const o=e.getGui();t===0?n.insertAdjacentElement("afterbegin",o):t===i?n.insertAdjacentElement("beforeend",o):r[t-1].insertAdjacentElement("afterend",o),e.setParentComponent(this)}getBodyHeight(){return CK(this.eContentWrapper)}getBodyWidth(){return JI(this.eContentWrapper)}setTitle(e){this.eTitle.innerText=e}onBtClose(){this.close()}destroy(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));const e=this.getGui();e&&x0(e)&&this.close(),super.destroy()}},w6=class extends Drt{constructor(e){super({...e,popup:!0}),this.isMaximizable=!1,this.isMaximized=!1,this.maximizeListeners=[],this.resizeListenerDestroy=null,this.lastPosition={x:0,y:0,width:0,height:0}}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){const e=this.getGui(),{movable:t,resizable:n,maximizable:r,modal:i,postProcessPopupParams:o}=this.config;if(this.addCss("ag-dialog"),super.postConstruct(),o){const{type:a,eventSource:s,column:l,mouseEvent:c,rowNode:u}=o;this.popupSvc?.callPostProcessPopup(a,e,s,c,l,u)}if(this.tabGuardFeature=this.createManagedBean(new Ztt(this)),this.tabGuardFeature.initialiseTabGuard({isFocusableContainer:!0,onFocusIn:()=>{this.popupSvc?.bringPopupToFront(e)},onTabKeyDown:a=>{if(i)return;const s=a.shiftKey,l=Cd(this.beans,e,!1,s);(!l||this.tabGuardFeature.getTabGuardCtrl().isTabGuard(l))&&Eb(this.beans,s)&&a.preventDefault()}}),t&&this.setMovable(t),r&&this.setMaximizable(r),n&&this.setResizable(n),!this.config.modal){const a=this.beans.ctrlsSvc.get("gridCtrl");a.addFocusableContainer(this),this.addDestroyFunc(()=>a.removeFocusableContainer(this))}}setAllowFocus(e){this.tabGuardFeature.getTabGuardCtrl().setAllowFocus(e)}renderComponent(){const e=this.getGui(),{alwaysOnTop:t,modal:n,title:r,afterGuiAttached:i}=this.config,o=this.getLocaleTextFunc(),a=this.popupSvc?.addPopup({modal:n,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:t,ariaLabel:r||o("ariaLabelDialog","Dialog"),afterGuiAttached:i});a&&(this.close=a.hideFunc)}onClosed(e){this.destroy(),this.config.closedCallback?.(e)}toggleMaximize(){const e=this.positionableFeature.getPosition();if(this.isMaximized){const{x:t,y:n,width:r,height:i}=this.lastPosition;this.setWidth(r),this.setHeight(i),this.positionableFeature.offsetElement(t,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()}refreshMaximizeIcon(){Nn(this.maximizeIcon,!this.isMaximized),Nn(this.minimizeIcon,this.isMaximized)}clearMaximizebleListeners(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(e=>e()),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)}destroy(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),super.destroy()}setResizable(e){this.positionableFeature.setResizable(e)}setMovable(e){this.positionableFeature.setMovable(e,this.eTitleBar)}setMaximizable(e){if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}const t=this.eTitleBar;if(!t||e===this.isMaximizable)return;const n=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),n.addManagedElementListeners(n.getGui(),{click:this.toggleMaximize.bind(this)}),this.addTitleBarButton(n,0),this.maximizeListeners.push(...this.addManagedElementListeners(t,{dblclick:this.toggleMaximize.bind(this)})),[this.resizeListenerDestroy]=this.addManagedListeners(this.positionableFeature,{resize:()=>{this.isMaximized=!1,this.refreshMaximizeIcon()}})}buildMaximizeAndMinimizeElements(){const e=this.maximizeButtonComp=this.createBean(new Gt({tag:"div",cls:"ag-dialog-button"})),t=e.getGui();return this.maximizeIcon=er("maximize",this.beans),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=er("minimize",this.beans),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e}},d9t=".ag-autocomplete{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}}.ag-autocomplete-list-popup{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-autocomplete-list{height:calc(var(--ag-row-height)*6.5);min-width:200px;position:relative;width:100%}.ag-autocomplete-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:focus-visible:after{content:none}&:hover{background-color:var(--ag-row-hover-color)}}.ag-autocomplete-row{align-items:center;display:flex;flex:1 1 auto;overflow:hidden}.ag-autocomplete-row-label{margin:0 var(--ag-widget-container-horizontal-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}";function p9t(e){return{tag:"div",cls:`ag-virtual-list-viewport ag-${e}-virtual-list-viewport`,role:"presentation",children:[{tag:"div",ref:"eContainer",cls:`ag-virtual-list-container ag-${e}-virtual-list-container`}]}}var bD=class extends Gb{constructor(e){super(p9t(e?.cssIdentifier||"default")),this.renderedRows=new Map,this.rowHeight=20,this.pageSize=-1,this.isScrolling=!1,this.isHeightFromTheme=!0,this.eContainer=at,this.awaitStableCallbacks=[];const{cssIdentifier:t="default",ariaRole:n="listbox",listName:r,moveItemCallback:i}=e||{};this.cssIdentifier=t,this.ariaRole=n,this.listName=r,this.moveItemCallback=i}wireBeans(e){this.environment=e.environment}postConstruct(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e),focusInnerElement:e=>this.focusInnerElement(e),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)}),this.refreshAriaProperties(),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanged.bind(this)})}onGridStylesChanged(e){e.listItemHeightChanged&&(this.rowHeight=this.getItemHeight(),this.refresh())}refreshAriaProperties(){const t=this.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),n=this.eContainer;C0(n,this.model?.getRowCount()>0?this.ariaRole:"presentation"),Is(n,t)}addResizeObserver(){const e=()=>sh(this.beans,()=>this.drawVirtualRows()),t=Hf(this.beans,this.getGui(),e);this.addDestroyFunc(t)}focusInnerElement(e){return this.focusRow(e?this.model.getRowCount()-1:0),!0}onFocusIn(e){const t=e.target;t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=lkt(t)-1)}onFocusOut(e){this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)}handleKeyDown(e){const{key:t,shiftKey:n}=e;switch(t){case Qe.UP:case Qe.DOWN:{const r=t===Qe.UP;e.preventDefault(),n?this.moveItem(r):this.navigate(r)}break;case Qe.PAGE_HOME:case Qe.PAGE_END:case Qe.PAGE_UP:case Qe.PAGE_DOWN:this.navigateToPage(t)!==null&&e.preventDefault();break}}onTabKeyDown(e){Cl(e),this.forceFocusOutOfContainer(e.shiftKey)}getNextRow(e){if(this.lastFocusedRowIndex==null)return;const t=this.lastFocusedRowIndex+(e?-1:1);if(!(t<0||t>=this.model.getRowCount()))return t}moveItem(e){if(!this.moveItemCallback)return;const t=this.getComponentAt(this.lastFocusedRowIndex);t&&this.moveItemCallback(t,e)}navigate(e){const t=this.getNextRow(e);t!==void 0&&this.focusRow(t)}navigateToPage(e,t="focused"){let n=!1;t==="focused"&&(t=this.getLastFocusedRow(),n=!0);const r=this.model.getRowCount()-1;let i=-1;return e===Qe.PAGE_HOME?i=0:e===Qe.PAGE_END?i=r:e===Qe.PAGE_DOWN?i=Math.min(t+this.pageSize,r):e===Qe.PAGE_UP&&(i=Math.max(t-this.pageSize,0)),i===-1?null:(n?this.focusRow(i):this.ensureIndexVisible(i),i)}getLastFocusedRow(){return this.lastFocusedRowIndex}focusRow(e){this.isScrolling||(this.isScrolling=!0,this.ensureIndexVisible(e),sh(this.beans,()=>{if(this.isScrolling=!1,!this.isAlive())return;const t=this.renderedRows.get(e);t&&t.eDiv.focus()}))}getComponentAt(e){const t=this.renderedRows.get(e);return t&&t.rowComponent}forEachRenderedRow(e){this.renderedRows.forEach((t,n)=>e(t.rowComponent,n))}getItemHeight(){return this.isHeightFromTheme?this.environment.getDefaultListItemHeight():this.rowHeight}ensureIndexVisible(e,t=!0){const n=this.model.getRowCount();if(typeof e!="number"||e<0||e>=n)return ut(229,{index:e}),!1;const r=e*this.rowHeight,i=r+this.rowHeight,o=this.getGui(),a=o.scrollTop,s=o.offsetHeight,l=a+s,c=t?0:this.rowHeight,u=a>r+c,d=l<i-c;if(u)return o.scrollTop=r,!0;if(d){const p=i-s;return o.scrollTop=p,!0}return!1}setComponentCreator(e){this.componentCreator=e}setComponentUpdater(e){this.componentUpdater=e}getRowHeight(){return this.rowHeight}getScrollTop(){return this.getGui().scrollTop}setRowHeight(e){this.isHeightFromTheme=!1,this.rowHeight=e,this.refresh()}refresh(e){if(this.model==null||!this.isAlive())return;const t=this.model.getRowCount();this.eContainer.style.height=`${t*this.rowHeight}px`,this.refreshAriaProperties(),this.awaitStable(()=>{this.isAlive()&&(this.canSoftRefresh(e)?this.drawVirtualRows(!0):(this.clearVirtualRows(),this.drawVirtualRows()))})}awaitStable(e){if(this.awaitStableCallbacks.push(e),this.awaitStableCallbacks.length>1)return;const t=this.model.getRowCount();fet(()=>this.eContainer.clientHeight>=t*this.rowHeight,()=>{if(!this.isAlive())return;const n=this.awaitStableCallbacks;this.awaitStableCallbacks=[],n.forEach(r=>r())})}canSoftRefresh(e){return!!(e&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)}clearVirtualRows(){this.renderedRows.forEach((e,t)=>this.removeRow(t))}drawVirtualRows(e){if(!this.isAlive()||!this.model)return;const t=this.getGui(),n=t.scrollTop,r=n+t.offsetHeight;if(n===r)this.clearVirtualRows();else{const i=Math.floor(n/this.rowHeight),o=Math.floor(r/this.rowHeight);this.pageSize=Math.floor((r-n)/this.rowHeight),this.ensureRowsRendered(i,o,e)}}ensureRowsRendered(e,t,n){this.renderedRows.forEach((r,i)=>{(i<e||i>t)&&i!==this.lastFocusedRowIndex&&this.removeRow(i)}),n&&this.refreshRows();for(let r=e;r<=t;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)}insertRow(e){const t=this.model.getRow(e),n=this.ariaRole==="tree"?"treeitem":"option",r=Nr({tag:"div",cls:`ag-virtual-list-item ag-${this.cssIdentifier}-virtual-list-item`,role:n,attrs:{tabindex:"-1"}});bK(r,this.model.getRowCount()),yK(r,e+1),r.style.height=`${this.rowHeight}px`,r.style.top=`${this.rowHeight*e}px`;const i=this.componentCreator(t,r);i.addGuiEventListener("focusin",()=>this.lastFocusedRowIndex=e),r.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",r):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",r):this.eContainer.appendChild(r),this.renderedRows.set(e,{rowComponent:i,eDiv:r,value:t})}removeRow(e){const t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)}refreshRows(){const e=this.model.getRowCount();this.renderedRows.forEach((t,n)=>{if(n>=e)this.removeRow(n);else{const r=this.model.getRow(n);this.model.areRowsEqual?.(t.value,r)?this.componentUpdater(r,t.rowComponent):this.removeRow(n)}})}addScrollListener(){this.addGuiEventListener("scroll",()=>this.drawVirtualRows(),{passive:!0})}setModel(e){this.model=e}getAriaElement(){return this.eContainer}destroy(){this.isAlive()&&(this.clearVirtualRows(),this.awaitStableCallbacks.length=0,super.destroy())}},h9t={tag:"div",cls:"ag-autocomplete-row",role:"presentation",children:[{tag:"div",cls:"ag-autocomplete-row-label"}]},f9t=class extends Gt{constructor(){super(h9t),this.hasHighlighting=!1}setState(e,t){this.value=e,this.render(),this.updateSelected(t)}updateSelected(e){this.toggleCss("ag-autocomplete-row-selected",e)}setSearchString(e){let t=!1;const{value:n}=this;if(n&&Ut(e)){const r=n.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(r>=0){t=!0,this.hasHighlighting=!0;const i=r+e.length,o=this.getGui().lastElementChild;Xi(o),o.append(n.slice(0,r),Nr({tag:"b",children:n.slice(r,i)}),n.slice(i))}}!t&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())}render(){this.getGui().lastElementChild.textContent=this.value??" "}},g9t={tag:"div",cls:"ag-autocomplete-list-popup",children:[{tag:"div",ref:"eList",cls:"ag-autocomplete-list"}]},m9t=class extends Cw{constructor(e){super(g9t),this.params=e,this.eList=at,this.searchString=""}postConstruct(){this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new bD({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:()=>this.autocompleteEntries.length,getRow:t=>this.autocompleteEntries[t]});const e=this.virtualList.getGui();this.addManagedListeners(e,{click:()=>this.params.onConfirmed(),mousemove:this.onMouseMove.bind(this),mousedown:t=>t.preventDefault()}),this.setSelectedValue(0)}onNavigationKeyDown(e,t){e.preventDefault();const n=this.autocompleteEntries.indexOf(this.selectedValue),r=t===Qe.UP?n-1:n+1;this.checkSetSelectedValue(r)}setSearch(e){this.searchString=e,Ut(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()}runContainsSearch(e,t){let n,r=!1;const i=e.toLocaleLowerCase(),o=t.filter(a=>{const l=a.toLocaleLowerCase().indexOf(i),c=l===0,u=l>=0;return u&&(!n||!r&&c||r===c&&a.length<n.length)&&(n=a,r=c),u});return!n&&o.length&&(n=o[0]),{topMatch:n,allMatches:o}}runSearch(){const{autocompleteEntries:e,useFuzzySearch:t,forceLastSelection:n}=this.params,r=e.map(l=>l.displayValue??l.key);let i,o;if(t)i=WK({inputValue:this.searchString,allSuggestions:r,hideIrrelevant:!0}).values,o=i.length?i[0]:void 0;else{const l=this.runContainsSearch(this.searchString,r);i=l.allMatches,o=l.topMatch}let a=e.filter(({key:l,displayValue:c})=>i.includes(c??l));if(!a.length&&this.selectedValue&&n?.(this.selectedValue,this.searchString)&&(a=[this.selectedValue]),this.autocompleteEntries=a,this.virtualList.refresh(),!o)return;const s=i.indexOf(o);this.checkSetSelectedValue(s)}updateSearchInList(){this.virtualList.forEachRenderedRow(e=>e.setSearchString(this.searchString))}checkSetSelectedValue(e){e>=0&&e<this.autocompleteEntries.length&&this.setSelectedValue(e)}setSelectedValue(e){const t=this.autocompleteEntries[e];this.selectedValue!==t&&(this.selectedValue=t,this.virtualList.ensureIndexVisible(e),this.virtualList.forEachRenderedRow((n,r)=>{n.updateSelected(e===r)}))}createRowComponent(e){const t=new f9t;return this.createBean(t),t.setState(e.displayValue??e.key,e===this.selectedValue),t}onMouseMove(e){const t=this.virtualList,n=t.getGui().getBoundingClientRect(),r=t.getScrollTop(),i=e.clientY-n.top+r,o=Math.floor(i/t.getRowHeight());this.checkSetSelectedValue(o)}afterGuiAttached(){this.virtualList.refresh()}getSelectedValue(){return this.autocompleteEntries.length?this.selectedValue??null:null}},v9t={tag:"div",cls:"ag-autocomplete",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eAutocompleteInput"}]},b9t=class extends Gt{constructor(){super(v9t,[Vf]),this.eAutocompleteInput=at,this.isListOpen=!1,this.lastPosition=0,this.valid=!0,this.registerCSS(d9t)}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.eAutocompleteInput.onValueChange(e=>this.onValueChanged(e)),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(()=>{this.destroyBean(this.autocompleteList)}),this.addGuiEventListener("focusout",()=>this.onFocusOut())}onValueChanged(e){const t=Tc(e);this.updateValue(t),this.updateAutocompleteList(t)}updateValue(e){this.updateLastPosition(),this.dispatchLocalEvent({type:"eventValueChanged",value:e}),this.validate(e)}updateAutocompleteList(e){const t=this.listGenerator?.(e,this.lastPosition)??{enabled:!1};(!t.type||t.type!==this.autocompleteListParams?.type)&&this.isListOpen&&this.closeList();const n=this.isListOpen;if(this.autocompleteListParams=t,t?.enabled){n||this.openList();const{searchString:r}=t;this.autocompleteList.setSearch(r??"")}else n&&this.closeList()}onKeyDown(e){const t=e.key;switch(this.updateLastPosition(),t){case Qe.ENTER:this.onEnterKeyDown(e);break;case Qe.TAB:this.onTabKeyDown(e);break;case Qe.DOWN:case Qe.UP:this.onUpDownKeyDown(e,t);break;case Qe.LEFT:case Qe.RIGHT:case Qe.PAGE_HOME:case Qe.PAGE_END:setTimeout(()=>{this.updatePositionAndList()});break;case Qe.ESCAPE:this.onEscapeKeyDown(e);break;case Qe.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList());break}}confirmSelection(){const e=this.autocompleteList?.getSelectedValue();e&&(this.closeList(),this.dispatchLocalEvent({type:"eventOptionSelected",value:this.getValue(),position:this.lastPosition,updateEntry:e,autocompleteType:this.autocompleteListParams.type}))}onTabKeyDown(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())}onEnterKeyDown(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()}onUpDownKeyDown(e,t){e.preventDefault(),this.isListOpen?this.autocompleteList?.onNavigationKeyDown(e,t):this.forceOpenList()}onEscapeKeyDown(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))}onFocusOut(){this.isListOpen&&this.closeList()}updatePositionAndList(){this.updateLastPosition(),this.updateAutocompleteList(this.eAutocompleteInput.getValue()??null)}setCaret(e,t){t&&$x(this.beans)&&this.eAutocompleteInput.getFocusableElement().focus();const n=this.eAutocompleteInput.getInputElement();n.setSelectionRange(e,e),e===n.value.length&&(n.scrollLeft=n.scrollWidth)}forceOpenList(){this.onValueChanged(this.eAutocompleteInput.getValue())}updateLastPosition(){this.lastPosition=this.eAutocompleteInput.getInputElement().selectionStart??0}validate(e){if(!this.validator)return;const t=this.validationMessage=this.validator(e);this.eAutocompleteInput.getInputElement().setCustomValidity(t??""),this.valid=!t,this.dispatchLocalEvent({type:"eventValidChanged",isValid:this.valid,validationMessage:t})}openList(){this.isListOpen=!0,this.autocompleteList=this.createBean(new m9t({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:()=>this.confirmSelection(),forceLastSelection:this.forceLastSelection}));const e=this.autocompleteList.getGui(),t={ePopup:e,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gos.get("enableRtl")?"right":"left",keepWithinBounds:!0},n=this.popupSvc.addPopup({eChild:e,anchorToElement:this.getGui(),positionCallback:()=>this.popupSvc.positionPopupByComponent(t),ariaLabel:this.listAriaLabel});this.hidePopup=n.hideFunc,this.autocompleteList.afterGuiAttached()}closeList(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null}onCompleted(){this.isListOpen&&this.closeList(),this.dispatchLocalEvent({type:"eventValueConfirmed",value:this.getValue(),isValid:this.isValid()})}getValue(){return Tc(this.eAutocompleteInput.getValue())}setInputPlaceholder(e){return this.eAutocompleteInput.setInputPlaceholder(e),this}setInputAriaLabel(e){return this.eAutocompleteInput.setInputAriaLabel(e),this}setListAriaLabel(e){return this.listAriaLabel=e,this}setListGenerator(e){return this.listGenerator=e,this}setValidator(e){return this.validator=e,this}isValid(){return this.valid}setValue(e){const{value:t,position:n,silent:r,updateListOnlyIfOpen:i,restoreFocus:o}=e;this.eAutocompleteInput.setValue(t,!0),this.setCaret(n??this.lastPosition,o),r||this.updateValue(t),(!i||this.isListOpen)&&this.updateAutocompleteList(t)}setForceLastSelection(e){return this.forceLastSelection=e,this}setInputDisabled(e){return this.eAutocompleteInput.setDisabled(e),this}},y9t={selector:"AG-AUTOCOMPLETE",component:b9t},M9t={tag:"div",cls:"ag-advanced-filter",role:"presentation",attrs:{tabindex:"-1"},children:[{tag:"ag-autocomplete",ref:"eAutocomplete"},{tag:"button",ref:"eApplyFilterButton",cls:"ag-button ag-standard-button ag-advanced-filter-apply-button"},{tag:"button",ref:"eBuilderFilterButton",cls:"ag-button ag-advanced-filter-builder-button",children:[{tag:"span",ref:"eBuilderFilterButtonIcon",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eBuilderFilterButtonLabel",cls:"ag-advanced-filter-builder-button-label"}]}]},krt=class extends Gt{constructor(){super(M9t,[y9t]),this.eAutocomplete=at,this.eApplyFilterButton=at,this.eBuilderFilterButton=at,this.eBuilderFilterButtonIcon=at,this.eBuilderFilterButtonLabel=at,this.expressionParser=null,this.isApplyDisabled=!0,this.builderOpen=!1}wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc,this.advancedFilter=e.advancedFilter,this.filterManager=e.filterManager,this.registry=e.registry}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getTooltipShowDelayOverride:()=>1e3,getLocation:()=>"advancedFilter"})),this.eAutocomplete.setListGenerator((e,t)=>this.generateAutocompleteListParams(t)).setValidator(()=>this.validateValue()).setForceLastSelection((e,t)=>this.forceLastSelection(e,t)).setInputAriaLabel(this.advFilterExpSvc.translate("ariaAdvancedFilterInput")).setListAriaLabel(this.advFilterExpSvc.translate("ariaLabelAdvancedFilterAutocomplete")),this.refresh(),this.addManagedListeners(this.eAutocomplete,{eventValueChanged:({value:e})=>this.onValueChanged(e),eventValueConfirmed:({isValid:e})=>this.onValueConfirmed(e),eventOptionSelected:({position:e,updateEntry:t,autocompleteType:n})=>this.onOptionSelected(e,t,n),eventValidChanged:({isValid:e,validationMessage:t})=>this.onValidChanged(e,t)}),this.setupApplyButton(),this.setupBuilderButton()}refresh(){const e=this.advancedFilter.getExpressionDisplayValue();this.eAutocomplete.setValue({value:e??"",position:e?.length,updateListOnlyIfOpen:!0})}setInputDisabled(e){this.eAutocomplete.setInputDisabled(e),nf(this.eApplyFilterButton,e||this.isApplyDisabled)}setupApplyButton(){this.eApplyFilterButton.textContent=this.advFilterExpSvc.translate("advancedFilterApply"),this.activateTabIndex([this.eApplyFilterButton]),this.addManagedElementListeners(this.eApplyFilterButton,{click:()=>this.onValueConfirmed(this.eAutocomplete.isValid())}),nf(this.eApplyFilterButton,this.isApplyDisabled)}setupBuilderButton(){this.eBuilderFilterButtonIcon.appendChild(er("advancedFilterBuilder",this.beans)),this.eBuilderFilterButtonLabel.textContent=this.advFilterExpSvc.translate("advancedFilterBuilder"),this.activateTabIndex([this.eBuilderFilterButton]),this.addManagedElementListeners(this.eBuilderFilterButton,{click:()=>this.openBuilder()}),this.addManagedListeners(this.advancedFilter.getCtrl(),{advancedFilterBuilderClosed:()=>this.closeBuilder()})}onValueChanged(e){e=Tc(e),this.advancedFilter.setExpressionDisplayValue(e),this.expressionParser=this.advancedFilter.createExpressionParser(e);const t=this.expressionParser?.parseExpression();t&&t!==e&&this.eAutocomplete.setValue({value:t,silent:!0,restoreFocus:!0})}onValueConfirmed(e){!e||this.isApplyDisabled||(nf(this.eApplyFilterButton,!0),this.advancedFilter.applyExpression(),this.filterManager?.onFilterChanged({source:"advancedFilter"}))}onOptionSelected(e,t,n){const{updatedValue:r,updatedPosition:i,hideAutocomplete:o}=this.updateExpression(e,t,n);this.eAutocomplete.setValue({value:r,position:i,updateListOnlyIfOpen:o,restoreFocus:!0})}validateValue(){return this.expressionParser?.isValid()?null:this.expressionParser?.getValidationMessage()??null}onValidChanged(e,t){this.isApplyDisabled=!e||this.advancedFilter.isCurrentExpressionApplied(),nf(this.eApplyFilterButton,this.isApplyDisabled),this.tooltipFeature?.setTooltipAndRefresh(t)}generateAutocompleteListParams(e){return this.expressionParser?this.expressionParser.getAutocompleteListParams(e):this.advFilterExpSvc.getDefaultAutocompleteListParams("")}updateExpression(e,t,n){return this.advFilterExpSvc.updateAutocompleteCache(t,n),this.expressionParser?.updateExpression(e,t,n)??this.advancedFilter.getDefaultExpression(t)}forceLastSelection({key:e,displayValue:t},n){return!!n.toLocaleLowerCase().match(`^${(t??e).toLocaleLowerCase()}\\s*$`)}openBuilder(){this.builderOpen||(this.builderOpen=!0,nf(this.eBuilderFilterButton,!0),this.advancedFilter.getCtrl().toggleFilterBuilder({source:"ui",eventSource:this.eBuilderFilterButton}))}closeBuilder(){this.builderOpen&&(this.builderOpen=!1,nf(this.eBuilderFilterButton,!1),this.eBuilderFilterButton.focus())}},C9t={tag:"div",cls:"ag-advanced-filter-header",role:"row"},x9t=class extends Gt{constructor(e){super(C9t),this.enabled=e}wireBeans(e){this.colModel=e.colModel,this.focusSvc=e.focusSvc,this.ctrlsSvc=e.ctrlsSvc}postConstruct(){this.setupAdvancedFilter(this.enabled),this.addDestroyFunc(()=>this.destroyBean(this.eAdvancedFilter));const e=()=>{this.enabled&&this.setEnabledHeight()};this.addManagedEventListeners({gridColumnsChanged:()=>this.onGridColumnsChanged(),columnHeaderHeightChanged:e,gridStylesChanged:e}),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addGuiEventListener("keydown",t=>this.onKeyDown(t)),this.addGuiEventListener("focusout",t=>{this.getFocusableElement().contains(t.relatedTarget)||this.focusSvc.clearAdvancedFilterColumn()})}getFocusableElement(){return this.eAdvancedFilter?.getGui()??this.getGui()}setEnabled(e){e!==this.enabled&&this.setupAdvancedFilter(e)}refresh(){this.eAdvancedFilter?.refresh()}getHeight(){return this.height}setInputDisabled(e){this.eAdvancedFilter?.setInputDisabled(e)}setupAdvancedFilter(e){const t=this.getGui();if(e){this.eAdvancedFilter=this.createBean(new krt);const n=this.eAdvancedFilter.getGui();this.eAdvancedFilter.addCss("ag-advanced-filter-header-cell"),this.setEnabledHeight(),this.setAriaRowIndex(),C0(n,"gridcell"),Y2e(n,1),this.setAriaColumnCount(n),t.appendChild(n)}else Xi(t),this.destroyBean(this.eAdvancedFilter),this.height=0;Nn(t,e),this.enabled=e}setEnabledHeight(){const e=this.getGui();this.height=Iye(this.beans);const t=`${this.height}px`;e.style.height=t,e.style.minHeight=t}setAriaColumnCount(e){JJe(e,this.colModel.getCols().length)}setAriaRowIndex(){MK(this.getGui(),this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)}onGridColumnsChanged(){this.eAdvancedFilter&&(this.setAriaColumnCount(this.eAdvancedFilter.getGui()),this.setAriaRowIndex())}onKeyDown(e){switch(e.key){case Qe.ENTER:{this.hasFocus()&&zu(this.getFocusableElement())&&e.preventDefault();break}case Qe.ESCAPE:this.hasFocus()||this.getFocusableElement().focus();break;case Qe.UP:this.navigateUpDown(!0,e);break;case Qe.DOWN:this.navigateUpDown(!1,e);break;case Qe.TAB:if(this.hasFocus())this.navigateLeftRight(e);else{const t=Cd(this.beans,this.getFocusableElement(),null,e.shiftKey);t?(e.preventDefault(),t.focus()):this.navigateLeftRight(e)}break}}navigateUpDown(e,t){this.hasFocus()&&this.focusSvc.focusNextFromAdvancedFilter(e)&&t.preventDefault()}navigateLeftRight(e){(e.shiftKey?this.focusSvc.focusLastHeader():this.focusSvc.focusNextFromAdvancedFilter(!1,!0))&&e.preventDefault()}hasFocus(){return $i(this.beans)===this.getFocusableElement()}},Sre="ag-list-item-hovered",Lrt=class extends dt{constructor(e,t,n){super(),this.comp=e,this.virtualList=t,this.params=n,this.currentDragValue=null,this.lastHoveredListItem=null}wireBeans(e){this.dragAndDrop=e.dragAndDrop}postConstruct(){this.addManagedListeners(this.params.eventSource,{[this.params.listItemDragStartEvent]:this.listItemDragStart.bind(this),[this.params.listItemDragEndEvent]:this.listItemDragEnd.bind(this)}),this.createDropTarget(),this.createAutoScrollService()}listItemDragStart(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)}listItemDragEnd(){window.setTimeout(()=>{this.currentDragValue=null,this.moveBlocked=!1},10)}createDropTarget(){const e={isInterestedIn:t=>t===this.params.dragSourceType,getIconName:()=>this.moveBlocked?"pinned":"move",getContainer:()=>this.comp.getGui(),onDragging:t=>this.onDragging(t),onDragStop:()=>this.onDragStop(),onDragLeave:()=>this.onDragLeave(),onDragCancel:()=>this.onDragCancel()};this.dragAndDrop?.addDropTarget(e)}createAutoScrollService(){const e=this.virtualList.getGui();this.autoScrollService=new Mye({scrollContainer:e,scrollAxis:"y",getVerticalPosition:()=>e.scrollTop,setVerticalPosition:t=>e.scrollTop=t})}onDragging(e){if(!this.currentDragValue||this.moveBlocked)return;const t=this.getListDragItem(e),n=this.virtualList.getComponentAt(t.rowIndex);if(!n)return;const r=n.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===t.rowIndex&&this.lastHoveredListItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=t,C$(r,Sre),C$(r,`ag-item-highlight-${t.position}`))}getListDragItem(e){const t=this.virtualList.getGui(),n=parseFloat(window.getComputedStyle(t).paddingTop),r=this.virtualList.getRowHeight(),i=this.virtualList.getScrollTop(),o=Math.max(0,(e.y-n+i)/r),a=this.params.getNumRows(this.comp)-1,s=Math.min(a,o)|0;return{rowIndex:s,position:Math.round(o)>o||o>a?"bottom":"top",component:this.virtualList.getComponentAt(s)}}onDragStop(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearDragProperties())}onDragCancel(){this.clearDragProperties()}onDragLeave(){this.clearDragProperties()}clearDragProperties(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()}clearHoveredItems(){this.virtualList.getGui().querySelectorAll(`.${Sre}`).forEach(t=>{[Sre,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(n=>{t.classList.remove(n)})}),this.lastHoveredListItem=null}},w9t=class extends dt{constructor(e,t){super(),this.comp=e,this.virtualList=t}postConstruct(){this.createManagedBean(new Lrt(this.comp,this.virtualList,{dragSourceType:bm.AdvancedFilterBuilder,listItemDragStartEvent:"advancedFilterBuilderDragStarted",listItemDragEndEvent:"advancedFilterBuilderDragEnded",eventSource:this,getCurrentDragValue:e=>this.getCurrentDragValue(e),isMoveBlocked:()=>!1,getNumRows:e=>e.getNumItems(),moveItem:(e,t)=>this.moveItem(e,t)}))}getCurrentDragValue(e){return e.item}moveItem(e,t){this.comp.moveItem(e,t)}},S9t={tag:"div",cls:"ag-pill",role:"option",children:[{tag:"span",ref:"eText",cls:"ag-pill-text"},{tag:"span",ref:"eButton",cls:"ag-button ag-pill-button",role:"presentation"}]},A9t=class extends Gt{constructor(e){super(S9t),this.config=e,this.eText=at,this.eButton=at}postConstruct(){const{config:e,eButton:t}=this,{onKeyDown:n,onButtonClick:r}=e;this.getGui().setAttribute("tabindex",String(this.gos.get("tabIndex"))),this.addGuiEventListener("focus",()=>{this.eButton.focus()}),n&&this.addGuiEventListener("keydown",n),r&&this.addManagedElementListeners(t,{click:r})}toggleCloseButtonClass(e,t){this.eButton.classList.toggle(e,t)}setText(e){this.eText.textContent=e}getText(){return this.eText.textContent}},O9t={tag:"div",cls:"ag-pill-container"},z9t=class extends Gt{constructor(){super(O9t),this.pills=[]}init(e){this.params=e,this.refresh()}refresh(){this.clearPills();const{params:e,onPillKeyDown:t}=this;let n=e.getValue();if(!Array.isArray(n)){if(n==null)return;n=[n]}const r=e.valueFormatter??(o=>String(o)),i=n.length;C0(this.getGui(),i===0?"presentation":"listbox");for(let o=0;o<i;o++){const a=n[o],s=this.createBean(new A9t({onButtonClick:()=>this.onPillButtonClick(s),onKeyDown:t.bind(this)})),l=s.getGui();yK(l,o+1),bK(l,i),e.onPillMouseDown&&s.addGuiEventListener("mousedown",e.onPillMouseDown),e.announceItemFocus&&s.addGuiEventListener("focus",e.announceItemFocus),s.setText(r(a)??""),s.toggleCloseButtonClass("ag-icon-cancel",!0),this.appendChild(l),this.pills.push(s)}}onNavigationKeyDown(e){const{key:t}=e;if(!this.pills.length||t!==Qe.LEFT&&t!==Qe.RIGHT)return;e.preventDefault();const{params:n,beans:r}=this,i=$i(r),o=this.getGui();if(o.contains(i)){const a=Cd(r,o,!1,t===Qe.LEFT);a?a.focus():n.eWrapper&&n.eWrapper.focus()}else{const a=lm(o);a.length>0&&a[t===Qe.RIGHT?0:a.length-1].focus()}}clearPills(){const e=this.getGui();e.contains($i(this.beans))&&this.params.eWrapper&&this.params.eWrapper.focus(),Xi(e),this.destroyBeans(this.pills),this.pills=[]}onPillButtonClick(e){this.deletePill(e)}onPillKeyDown(e){const t=e.key;if(t!==Qe.DELETE&&t!==Qe.BACKSPACE)return;e.preventDefault();const n=bl(this.beans),r=this.pills.findIndex(o=>o.getGui().contains(n.activeElement));if(r===-1)return;const i=this.pills[r];i&&this.deletePill(i,r)}deletePill(e,t){const n=e.getText(),r=(this.params.getValue()||[]).filter(i=>i!==n);if(this.params.setValue(r),!r.length&&this.params.eWrapper)this.params.eWrapper.focus();else if(t!=null){const i=this.pills[Math.min(t,this.pills.length-1)];i&&i.getFocusableElement().focus()}}destroy(){this.clearPills(),super.destroy()}},T9t=".ag-rich-select{cursor:default;height:100%}.ag-rich-select-value{align-items:center;background-color:var(--ag-picker-button-background-color);display:flex;height:100%;padding:var(--ag-spacing);:where(.ag-picker-field-display){overflow:hidden;text-overflow:ellipsis;&:where(.ag-display-as-placeholder){opacity:.5}}}.ag-rich-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-input-border-radius);box-shadow:var(--ag-dropdown-shadow);height:auto;position:relative;width:100%;:where(.ag-loading-text){padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}}.ag-rich-select-row{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;padding:0 var(--ag-spacing);white-space:nowrap}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row-highlighted,.ag-rich-select-row:hover{background-image:linear-gradient(var(--ag-row-hover-color),var(--ag-row-hover-color))}.ag-rich-select-row-text-highlight{font-weight:700}.ag-rich-select-field-input{flex:1 1 auto;:where(.ag-input-field-input){border:none!important;box-shadow:none!important;padding:0!important;text-overflow:ellipsis;&::-moz-placeholder{opacity:.8}&::placeholder{opacity:.8}}}:where(.ag-ltr) .ag-rich-select-field-input{left:var(--ag-spacing)}:where(.ag-rtl) .ag-rich-select-field-input{right:var(--ag-spacing)}:where(.ag-popup-editor) .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-pill-container{display:flex;flex-wrap:nowrap;gap:.25rem}.ag-pill{align-items:center;background:var(--ag-select-cell-background-color);border:var(--ag-select-cell-border);border-radius:var(--ag-border-radius);display:flex;padding:0 .25rem;white-space:nowrap}.ag-pill-button{border:none;padding:0;&:hover{color:var(--ag-accent-color);cursor:pointer}}:where(.ag-ltr) .ag-pill-button{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-pill-button{margin-right:var(--ag-spacing)}",E9t={tag:"div",cls:"ag-rich-select-row",role:"presentation"},R9t=class extends Gt{constructor(e){super(E9t),this.params=e}wireBeans(e){this.userCompFactory=e.userCompFactory,this.registry=e.registry}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),shouldDisplayTooltip:()=>this.shouldDisplayTooltip?.()??!0}))}setState(e){const{params:t}=this,n=t.valueFormatter?.(e)??"";this.populateWithRenderer(e,n)||this.populateWithoutRenderer(e,n),this.value=e}highlightString(e){const{parsedValue:t,params:n}=this;if(n.cellRenderer||!Ut(t))return;let r=Ut(e);if(r){const i=t?.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(i>=0){const o=i+e.length,a=this.getGui().querySelector("span");a&&(Xi(a),a.append(t.slice(0,i),Nr({tag:"span",cls:"ag-rich-select-row-text-highlight",children:t.slice(i,o)}),t.slice(o)))}else r=!1}r||this.renderValueWithoutRenderer(t)}updateSelected(e){const t=this.getGui();dW(t.parentElement,e),this.toggleCss("ag-rich-select-row-selected",e)}getValue(){return this.value}toggleHighlighted(e){this.toggleCss("ag-rich-select-row-highlighted",e)}populateWithoutRenderer(e,t){const n=this.getGui(),r=Nr({tag:"span"});r.style.overflow="hidden",r.style.textOverflow="ellipsis";const i=Df(Ut(t)?t:e);this.parsedValue=Ut(i)?i:null,n.appendChild(r),this.renderValueWithoutRenderer(i),this.shouldDisplayTooltip=FO(()=>r),this.tooltipFeature?.setTooltipAndRefresh(this.parsedValue)}renderValueWithoutRenderer(e){const t=this.getGui().querySelector("span");t&&(t.textContent=Ut(e)?e:" ")}populateWithRenderer(e,t){let n,r;if(this.params.cellRenderer){const i=this.getParentComponent()?.getParentComponent();r=rtt(this.userCompFactory,this.params,Gn(this.gos,{value:e,valueFormatted:t,getValue:()=>i?.getValue(),setValue:o=>{i?.setValue(o,!0)},setTooltip:(o,a)=>{this.gos.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=a,this.tooltipFeature?.setTooltipAndRefresh(o)}}))}return r&&(n=r.newAgStackInstance()),n&&_rt(n,this.getGui()),n?(n.then(i=>{this.addDestroyFunc(()=>{this.destroyBean(i)})}),!0):!1}},xRe="ag-rich-select-list",wRe="ag-rich-select-row",I9t=class extends bD{constructor(e,t,n){super({cssIdentifier:"rich-select"}),this.params=e,this.richSelectWrapper=t,this.getSearchString=n,this.lastRowHovered=-1,this.selectedItems=new Set,this.params=e,this.setComponentCreator(this.createRowComponent.bind(this)),this.setComponentUpdater(()=>{})}postConstruct(){super.postConstruct(),this.eLoading=Nr({tag:"div",cls:"ag-loading-text",children:this.getLocaleTextFunc()("loadingOoo","Loading...")});const{cellRowHeight:e,pickerAriaLabelKey:t,pickerAriaLabelValue:n}=this.params;e&&this.setRowHeight(e);const r=this.getGui(),i=this.getAriaElement();this.addManagedListeners(r,{mousemove:this.onMouseMove.bind(this),mouseout:this.onMouseOut.bind(this),mousedown:this.onMouseDown.bind(this),click:this.onClick.bind(this)}),r.classList.add(xRe);const o=`${xRe}-${this.getCompId()}`;i.setAttribute("id",o);const s=this.getLocaleTextFunc()(t,n);Is(i,s),K2e(this.richSelectWrapper,i)}navigateToPage(e){const t=super.navigateToPage(e,this.lastRowHovered);return t!=null&&sh(this.beans,()=>{if(!this.isAlive())return null;this.highlightIndex(t)}),t}drawVirtualRows(e){super.drawVirtualRows(e),this.refreshSelectedItems()}highlightFilterMatch(e){this.forEachRenderedRow(t=>{t.highlightString(e)})}onNavigationKeyDown(e,t){sh(this.beans,()=>{if(!this.currentList||!this.isAlive())return;const n=this.currentList.length,r=this.lastRowHovered,i=e===Qe.DOWN?1:-1,o=Math.min(Math.max(r===-1?0:r+i,0),n-1);this.highlightIndex(o),t()})}selectValue(e){if(!this.currentList)return this.eLoading&&this.appendChild(this.eLoading),!1;if(this.eLoading?.offsetParent&&this.eLoading.parentElement?.removeChild(this.eLoading),e==null)return!1;const t=this.getIndicesForValues(e),n=t.length>0;return n&&(this.refresh(),this.ensureIndexVisible(t[0]),this.refresh(!0)),this.selectListItems(Array.isArray(e)?e:[e]),n}selectListItems(e,t=!1){t||this.selectedItems.clear();for(let n=0;n<e.length;n++){const r=e[n];this.findItemInSelected(r)===void 0&&this.selectedItems.add(r)}this.refreshSelectedItems()}getCurrentList(){return this.currentList}setCurrentList(e){this.currentList=e,this.setModel({getRowCount:()=>e.length,getRow:t=>e[t],areRowsEqual:(t,n)=>t===n})}getSelectedItems(){return this.selectedItems}getLastItemHovered(){return this.currentList[this.lastRowHovered]}highlightIndex(e,t){this.currentList&&(e<0||e>=this.currentList.length?this.lastRowHovered=-1:(this.lastRowHovered=e,this.ensureIndexVisible(e,!t)&&!t&&this.refresh(!0)),this.forEachRenderedRow((n,r)=>{const i=e===r;if(n.toggleHighlighted(i),i){const o=`${wRe}-${n.getCompId()}`;YJe(this.richSelectWrapper,o),this.richSelectWrapper.setAttribute("data-active-option",o)}}))}getIndicesForValues(e){const{currentList:t}=this;if(!t||t.length===0||e==null)return[];if(Array.isArray(e)||(e=[e]),e.length===0)return[];const{valueFormatter:n}=this.params,r=[],i=typeof e[0]=="object",o=t.map(n);for(const a of e){let s=-1;i?s=o.indexOf(n(a)):s=t.indexOf(a),s>=0&&r.push(s)}return r}toggleListItemSelection(e){const t=this.findItemInSelected(e);t!==void 0?this.selectedItems.delete(t):this.selectedItems.add(e),this.refreshSelectedItems(),this.dispatchValueSelected()}refreshSelectedItems(){this.forEachRenderedRow(e=>{const t=this.findItemInSelected(e.getValue())!==void 0;e.updateSelected(t)})}findItemInSelected(e){if(typeof e=="object"){const t=this.params.valueFormatter,n=t(e);for(const r of this.selectedItems)if(t(r)===n)return r}else return this.selectedItems.has(e)?e:void 0}createRowComponent(e,t){const n=new R9t(this.params);t.setAttribute("id",`${wRe}-${n.getCompId()}`),n.setParentComponent(this),this.createBean(n),n.setState(e);const{highlightMatch:r,searchType:i="fuzzy"}=this.params;return r&&i!=="fuzzy"&&n.highlightString(this.getSearchString()),n}getRowForMouseEvent(e){const n=this.getGui().getBoundingClientRect(),r=this.getScrollTop(),i=e.clientY-n.top+r;return Math.min(Math.floor(i/this.getRowHeight()),this.model.getRowCount()-1)}onMouseMove(e){const t=this.getRowForMouseEvent(e);t!==-1&&t!=this.lastRowHovered&&(this.lastRowHovered=t,this.highlightIndex(t,!0))}onMouseDown(e){e.preventDefault()}onMouseOut(e){this.getGui().contains(e.relatedTarget)||this.highlightIndex(-1)}onClick(e){const{multiSelect:t}=this.params;if(!this.currentList)return;const n=this.getRowForMouseEvent(e),r=this.currentList[n];t?this.toggleListItemSelection(r):(this.selectListItems([r]),this.dispatchValueSelected())}dispatchValueSelected(){this.dispatchLocalEvent({type:"richSelectListRowSelected",fromEnterKey:!1,value:this.selectedItems})}destroy(){super.destroy(),this.eLoading=void 0}},P9t={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed",children:[{tag:"span",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"ag-input-text-field",ref:"eInput",cls:"ag-rich-select-field-input"},{tag:"span",ref:"eDeselect",cls:"ag-rich-select-deselect-button ag-picker-field-icon",role:"presentation"},{tag:"span",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},Qye=class extends _ye{constructor(e){super({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"richSelectOpen",ariaRole:"combobox",template:e?.template??P9t,agComponents:[Vf],modalPicker:!1,...e,maxPickerHeight:e?.maxPickerHeight??"calc(var(--ag-row-height) * 6.5)"}),this.searchString="",this.searchStringCreator=null,this.eInput=at,this.eDeselect=at,this.skipWrapperAnnouncement=!1;const{value:t,valueList:n,searchStringCreator:r}=e||{};t!==void 0&&(this.value=t),r&&(this.searchStringCreator=r),n!=null&&this.setValues(n),this.registerCSS(T9t)}wireBeans(e){this.userCompFactory=e.userCompFactory,this.ariaAnnounce=e.ariaAnnounce,this.registry=e.registry}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),shouldDisplayTooltip:()=>this.shouldDisplayTooltip?.()??!0})),super.postConstruct(),this.createListComponent(),this.eDeselect.appendChild(er("richSelectRemove",this.beans));const{allowTyping:e,placeholder:t,suppressDeselectAll:n}=this.config;this.eDeselect.classList.add("ag-hidden"),e?(this.eInput.setAutoComplete(!1).setInputPlaceholder(t),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.setupAriaProperties();const{searchDebounceDelay:r=300}=this.config;this.clearSearchString=Ml(this,this.clearSearchString.bind(this),r),this.renderSelectedValue(),e&&this.eInput.onValueChange(i=>this.searchTextFromString(i)),this.addManagedElementListeners(this.eWrapper,{focus:this.onWrapperFocus.bind(this)}),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)}),n||this.addManagedElementListeners(this.eDeselect,{mousedown:this.onDeselectAllMouseDown.bind(this),click:this.onDeselectAllClick.bind(this)})}setupAriaProperties(){const{eWrapper:e,gos:t}=this;e.tabIndex=t.get("tabIndex");const n=this.getLocaleTextFunc();this.ariaDeleteSelection=n("ariaLabelRichSelectDeleteSelection","Press DELETE to deselect item"),this.ariaDeselectAllItems=n("ariaLabelRichSelectDeselectAllItems","Press DELETE to deselect all items"),this.ariaToggleSelection=n("ariaLabelRichSelectToggleSelection","Press SPACE to toggle selection")}createListComponent(){this.listComponent=this.createBean(new I9t(this.config,this.eWrapper,()=>this.searchString)),this.listComponent.setParentComponent(this),this.addManagedListeners(this.listComponent,{richSelectListRowSelected:e=>{this.onListValueSelected(e.value,e.fromEnterKey)}})}renderSelectedValue(){const{value:e,eDisplayField:t,config:n,gos:r}=this,{allowTyping:i,cellRenderer:o,initialInputValue:a,multiSelect:s,suppressDeselectAll:l,suppressMultiSelectPillRenderer:c}=n,u=n.valueFormatter?.(e)??String(e);if(i){this.eInput.setValue(a??u);return}if(s&&!l){const h=e==null||Array.isArray(e)&&e.length===0;this.eDeselect.classList.toggle("ag-hidden",h)}let d;if(s&&!c){this.createOrUpdatePillContainer(t);return}o&&(d=rtt(this.userCompFactory,n,Gn(this.gos,{value:e,valueFormatted:u,getValue:()=>this.getValue(),setValue:h=>{this.setValue(h,!0)},setTooltip:(h,g)=>{r.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=g,this.tooltipFeature?.setTooltipAndRefresh(h)}})));let p;if(d&&(p=d.newAgStackInstance()),p)Xi(t),_rt(p,t),p.then(h=>{this.addDestroyFunc(()=>this.destroyBean(h))});else{if(Ut(this.value))t.innerText=u,t.classList.remove("ag-display-as-placeholder");else{const{placeholder:h}=n;Ut(h)?(t.textContent=h,t.classList.add("ag-display-as-placeholder")):Xi(t)}this.shouldDisplayTooltip=FO(()=>this.eDisplayField),this.tooltipFeature?.setTooltipAndRefresh(u??null)}}createPickerComponent(){const{values:e}=this;return e&&this.setValueList({valueList:e}),this.listComponent}setSearchStringCreator(e){this.searchStringCreator=e}setValueList(e){const{valueList:t,refresh:n}=e;!this.listComponent||this.listComponent.getCurrentList()===t||(this.listComponent.setCurrentList(t),n&&(this.values?this.listComponent.refresh(!0):(this.setValues(t),this.isPickerDisplayed&&(this.listComponent.selectValue(this.value)||this.listComponent.refresh())),this.alignPickerToComponent()))}setValues(e){this.values=e,this.searchStrings=this.getSearchStringsFromValues(e)}showPicker(){super.showPicker();const{listComponent:e,value:t}=this;if(!e)return;let n=null;e.selectValue(this.value),this.value!=null&&(n=e.getIndicesForValues(Array.isArray(t)?t:[t])[0]),n!=null?e.highlightIndex(n):e.refresh(),this.displayOrHidePicker()}beforeHidePicker(){super.beforeHidePicker()}createOrUpdatePillContainer(e){if(!this.pillContainer){const t=this.pillContainer=this.createBean(new z9t);this.addDestroyFunc(()=>{this.destroyBean(this.pillContainer),this.pillContainer=null}),Xi(e),e.appendChild(t.getGui());const{config:n,eWrapper:r,ariaDeleteSelection:i}=this,{valueFormatter:o}=n;t.init({eWrapper:r,valueFormatter:o,onPillMouseDown:a=>{a.stopImmediatePropagation()},announceItemFocus:()=>{this.announceAriaValue(i)},getValue:()=>this.getValue(),setValue:a=>this.setValue(a,!0)})}this.doWhileBlockingAnnouncement(()=>this.pillContainer?.refresh())}doWhileBlockingAnnouncement(e){this.skipWrapperAnnouncement=!0,e(),this.skipWrapperAnnouncement=!1}onWrapperFocus(){const{eInput:e,config:t}=this,{allowTyping:n,multiSelect:r,suppressDeselectAll:i}=t;if(n){const o=e.getFocusableElement();o.focus(),o.select()}else r&&!i&&!this.skipWrapperAnnouncement&&this.announceAriaValue(this.ariaDeselectAllItems)}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}onDeselectAllMouseDown(e){e.stopImmediatePropagation()}onDeselectAllClick(){this.setValue([],!0)}buildSearchStringFromKeyboardEvent(e){let{key:t}=e;if(t===Qe.BACKSPACE)this.searchString=this.searchString.slice(0,-1),t="";else if(!zye(e))return;e.preventDefault(),this.searchTextFromCharacter(t)}searchTextFromCharacter(e){this.searchString+=e,this.runSearch(),this.clearSearchString()}searchTextFromString(e){e==null&&(e=""),this.searchString=e,this.runSearch()}getSearchStringsFromValues(e){const{config:t}=this,{valueFormatter:n=r=>String(r)}=t;return typeof e[0]=="object"&&this.searchStringCreator?this.searchStringCreator(e):e.map(r=>n(r))}filterListModel(e){const{filterList:t}=this.config;t&&this.setValueList({valueList:e,refresh:!0})}runSearch(){if(!this.listComponent)return;const{values:e}=this,t=this.searchStrings;if(!t){this.listComponent.highlightIndex(-1);return}const{suggestions:n,filteredValues:r}=this.getSuggestionsAndFilteredValues(this.searchString,t),{filterList:i,highlightMatch:o,searchType:a="fuzzy"}=this.config,s=!!(i&&this.searchString!=="");this.filterListModel(s?r:e),this.highlightEmptyValue()||this.highlightListValue(n,r,s),o&&a!=="fuzzy"&&this.listComponent?.highlightFilterMatch(this.searchString),this.displayOrHidePicker()}highlightEmptyValue(){if(this.searchString===""){const e=this.searchStrings?.indexOf("");if(e!==void 0&&e!==-1)return this.listComponent?.highlightIndex(e),!0}return!1}highlightListValue(e,t,n){if(e.length){const r=n?0:this.searchStrings?.indexOf(e[0]);r!==void 0&&this.listComponent?.highlightIndex(r)}else if(this.listComponent?.highlightIndex(-1),!n||t.length)this.listComponent?.ensureIndexVisible(0);else if(n){this.getAriaElement().removeAttribute("data-active-option");const r=this.listComponent?.getAriaElement();r&&YJe(r,null)}}getSuggestionsAndFilteredValues(e,t){let n=[];const r=[];if(!e.length)return{suggestions:n,filteredValues:r};const{searchType:i="fuzzy",filterList:o}=this.config;if(i==="fuzzy"){const a=WK({inputValue:e,allSuggestions:t,hideIrrelevant:!0});n=a.values;const s=a.indices;if(o&&s.length)for(let l=0;l<s.length;l++)r.push(this.values[s[l]])}else n=t.filter((a,s)=>{const l=a.toLocaleLowerCase(),c=this.searchString.toLocaleLowerCase(),u=i==="match"?l.startsWith(c):l.indexOf(c)!==-1;return o&&u&&r.push(this.values[s]),u});return{suggestions:n,filteredValues:r}}displayOrHidePicker(){if(!this.listComponent)return;const e=this.listComponent.getGui(),t=this.listComponent.getCurrentList(),n=t?t.length===0:!1;e.classList.toggle("ag-hidden",n)}clearSearchString(){this.searchString=""}setValue(e,t,n,r){if(this.value===e)return this;const i=Array.isArray(e);if(e!=null){if(!i){const o=this.listComponent?.getCurrentList();if((o?o.indexOf(e):-1)===-1)return this}n||this.listComponent?.selectValue(e)}return super.setValue(e,t),r||this.renderSelectedValue(),this}onNavigationKeyDown(e,t,n){e.preventDefault();const r=t===Qe.DOWN;if(!this.isPickerDisplayed&&r){this.showPicker();return}this.listComponent?.onNavigationKeyDown(t,n)}onEnterKeyDown(e){if(this.isPickerDisplayed&&(e.preventDefault(),this.listComponent?.getCurrentList())){const t=this.listComponent.getLastItemHovered();this.config.multiSelect||t==null?this.dispatchPickerEventAndHidePicker(this.value,!0):this.onListValueSelected(new Set([t]),!0)}}onDeleteKeyDown(e){const{eWrapper:t,beans:n}=this;$i(n)===t&&(e.preventDefault(),this.setValue([],!0))}onTabKeyDown(){const{config:e,isPickerDisplayed:t,listComponent:n}=this,{multiSelect:r}=e;if(!(!t||!n)){if(r){const i=this.getValueFromSet(n.getSelectedItems());i&&this.setValue(i,!1,!0,!0)}else{const i=n.getLastItemHovered();i&&this.setValue(i,!1,!0)}this.hidePicker()}}getValueFromSet(e){const{multiSelect:t}=this.config;let n=null;for(const r of e){if(e.size===1&&!t){n=r;break}n||(n=[]),n.push(r)}return Array.isArray(n)&&n.sort(),n}onListValueSelected(e,t){const n=this.getValueFromSet(e);this.setValue(n,!1,!0),this.config.multiSelect||this.dispatchPickerEventAndHidePicker(n,t)}dispatchPickerEventAndHidePicker(e,t){const n={type:"fieldPickerValueSelected",fromEnterKey:t,value:e};this.dispatchLocalEvent(n),this.hidePicker()}getFocusableElement(){const{allowTyping:e}=this.config;return e?this.eInput.getFocusableElement():super.getFocusableElement()}onKeyDown(e){const{key:t}=e,{isPickerDisplayed:n,config:r,listComponent:i,pickerComponent:o}=this,{allowTyping:a,multiSelect:s,suppressDeselectAll:l}=r;switch(t){case Qe.LEFT:case Qe.RIGHT:(!a||this.pillContainer)&&(e.preventDefault(),this.pillContainer&&(this.listComponent?.highlightIndex(-1),this.pillContainer.onNavigationKeyDown(e)));break;case Qe.PAGE_HOME:case Qe.PAGE_END:if(a){e.preventDefault();const c=this.eInput.getInputElement(),u=t===Qe.PAGE_HOME?0:c.value.length;c.setSelectionRange(u,u);break}case Qe.PAGE_UP:case Qe.PAGE_DOWN:e.preventDefault(),o&&i?.navigateToPage(t);break;case Qe.DOWN:case Qe.UP:this.onNavigationKeyDown(e,t,()=>{s&&(this.doWhileBlockingAnnouncement(()=>this.eWrapper.focus()),this.announceAriaValue(this.ariaToggleSelection))});break;case Qe.ESCAPE:n&&(x0(this.listComponent.getGui())&&(e.preventDefault(),Cl(e)),this.hidePicker());break;case Qe.ENTER:this.onEnterKeyDown(e);break;case Qe.SPACE:if(e.preventDefault(),n&&s&&i){const c=i.getLastItemHovered();c&&i.toggleListItemSelection(c)}break;case Qe.TAB:this.onTabKeyDown();break;case Qe.DELETE:s&&!l&&this.onDeleteKeyDown(e);break;default:a||this.buildSearchStringFromKeyboardEvent(e)}}announceAriaValue(e){this.ariaAnnounce?.announceValue(e,"richSelect")}destroy(){this.listComponent&&(this.listComponent=this.destroyBean(this.listComponent)),this.searchStrings=void 0,super.destroy()}};function _rt(e,t){e.then(n=>{const r=n.getGui();r!=null&&t.appendChild(r)})}var D9t={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"ag-input-text-field",ref:"eInput",cls:"ag-rich-select-field-input"},{tag:"span",ref:"eDeselect",cls:"ag-rich-select-deselect-button ag-picker-field-icon",role:"presentation"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},Nrt=class extends Qye{constructor(e){super({...e,template:D9t,agComponents:[Vf]}),this.params=e}showPicker(){setTimeout(()=>super.showPicker())}hidePicker(){setTimeout(()=>super.hidePicker())}postConstruct(){super.postConstruct();const{wrapperClassName:e,ariaLabel:t}=this.params;Nn(this.eDisplayField,!1),e&&this.eWrapper.classList.add(e),Vx(this.eWrapper,""),Is(this.eWrapper,t)}onEnterKeyDown(e){Cl(e),this.isPickerDisplayed?super.onEnterKeyDown(e):(e.preventDefault(),this.showPicker())}},Frt=class extends dt{constructor(e,t,n){super(),this.eGui=e,this.focusWrapper=t,this.eFocusableComp=n}postConstruct(){this.addManagedElementListeners(this.eGui,{keydown:t=>{switch(t.key){case Qe.TAB:t.defaultPrevented||Cl(t);break;case Qe.UP:case Qe.DOWN:Cl(t);break;case Qe.ESCAPE:if(rh(t))return;this.eGui.contains($i(this.beans))&&(t.preventDefault(),Cl(t),this.focusWrapper.focus());break}}});const e="ag-advanced-filter-builder-virtual-list-item-highlight";this.addManagedListeners(this.focusWrapper,{keydown:t=>{switch(t.key){case Qe.ENTER:if(rh(t))return;$i(this.beans)===this.focusWrapper&&(t.preventDefault(),Cl(t),this.eFocusableComp.getFocusableElement().focus());break}},focusin:()=>{this.focusWrapper.classList.add(e)},focusout:t=>{this.focusWrapper.contains(t.relatedTarget)||this.focusWrapper.classList.remove(e)}})}};function Wrt(e,t){return{pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderAddField",pickerAriaLabelValue:"Advanced Filter Builder Add Field",pickerType:"ag-list",valueList:[{key:"condition",displayValue:e("advancedFilterBuilderAddCondition")},{key:"join",displayValue:e("advancedFilterBuilderAddJoin")}],valueFormatter:n=>n==null?"":n.displayValue??n.key,pickerIcon:"advancedFilterBuilderAdd",maxPickerWidth:`${t??120}px`,wrapperClassName:"ag-advanced-filter-builder-item-button",ariaLabel:e("advancedFilterBuilderAddButtonTooltip")}}var k9t={tag:"div",cls:"ag-advanced-filter-builder-item-wrapper",role:"presentation",children:[{tag:"div",ref:"eItem",cls:"ag-advanced-filter-builder-item",role:"presentation",children:[{tag:"div",cls:"ag-advanced-filter-builder-item-tree-lines",attrs:{"aria-hidden":"true"},children:[{tag:"div",cls:"ag-advanced-filter-builder-item-tree-line-vertical-top ag-advanced-filter-builder-item-tree-line-horizontal"}]}]}]},L9t=class extends Gt{constructor(e,t){super(k9t),this.item=e,this.focusWrapper=t,this.eItem=at}wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc,this.registry=e.registry}postConstruct(){vK(this.focusWrapper,2);const e=Wrt(n=>this.advFilterExpSvc.translate(n),this.gos.get("advancedFilterBuilderParams")?.addSelectWidth),t=this.createManagedBean(new Nrt(e));this.addManagedListeners(t,{fieldPickerValueSelected:({value:n})=>{this.dispatchLocalEvent({type:"advancedFilterBuilderAdded",item:this.item,isJoin:n.key==="join"})}}),this.eItem.appendChild(t.getGui()),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>t.getGui(),getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip")})),this.createManagedBean(new Frt(this.getGui(),this.focusWrapper,t)),Is(this.focusWrapper,this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItem",[this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip"),`${this.item.level+1}`]))}afterAdd(){}},_9t=class extends Gt{constructor(){super({tag:"div",cls:"ag-advanced-filter-builder-item-condition",role:"presentation"}),this.validationMessage=null}wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc}init(e){const{item:t,createPill:n}=e;this.item=t,this.createPill=n,this.filterModel=t.filterModel,this.setupColumnCondition(this.filterModel),this.validate(),this.addDestroyFunc(()=>this.destroyBeans([this.eColumnPill,this.eOperatorPill,this.eOperandPill]))}getDragName(){return this.filterModel.colId?this.advFilterExpSvc.parseColumnFilterModel(this.filterModel):this.getDefaultColumnDisplayValue()}getAriaLabel(){return`${this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderFilterItem")} ${this.getDragName()}`}getValidationMessage(){return this.validationMessage}getFocusableElement(){return this.eColumnPill.getFocusableElement()}setupColumnCondition(e){const t=this.advFilterExpSvc.getColumnDetails(e.colId);this.baseCellDataType=t.baseCellDataType,this.column=t.column,this.numOperands=this.getNumOperands(this.getOperatorKey()),this.eColumnPill=this.createPill({key:this.getColumnKey(),displayValue:this.getColumnDisplayValue()??this.getDefaultColumnDisplayValue(),cssClass:"ag-advanced-filter-builder-column-pill",isSelect:!0,getEditorParams:()=>({values:this.advFilterExpSvc.getColumnAutocompleteEntries()}),update:n=>this.setColumnKey(n),pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderColumnSelectField",pickerAriaLabelValue:"Advanced Filter Builder Column Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderColumn")}),this.getGui().appendChild(this.eColumnPill.getGui()),Ut(this.getColumnKey())&&(this.createOperatorPill(),this.hasOperand()&&this.createOperandPill())}createOperatorPill(){this.eOperatorPill=this.createPill({key:this.getOperatorKey(),displayValue:this.getOperatorDisplayValue()??this.getDefaultOptionSelectValue(),cssClass:"ag-advanced-filter-builder-option-pill",isSelect:!0,getEditorParams:()=>({values:this.getOperatorAutocompleteEntries()}),update:e=>this.setOperatorKey(e),pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderOptionSelectField",pickerAriaLabelValue:"Advanced Filter Builder Option Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderOption")}),this.eColumnPill.getGui().insertAdjacentElement("afterend",this.eOperatorPill.getGui())}createOperandPill(){const{filter:e}=this.filterModel,t=(typeof e=="number"?ap(e):e)??"";this.eOperandPill=this.createPill({key:t,valueFormatter:n=>this.advFilterExpSvc.getOperandDisplayValue({...this.filterModel,filter:n},!0),baseCellDataType:this.baseCellDataType,cssClass:"ag-advanced-filter-builder-value-pill",isSelect:!1,update:n=>this.setOperand(n),ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderValue")}),this.getGui().appendChild(this.eOperandPill.getGui())}getColumnKey(){return this.filterModel.colId}getColumnDisplayValue(){return this.advFilterExpSvc.getColumnDisplayValue(this.filterModel)}getOperatorKey(){return this.filterModel.type}getOperatorDisplayValue(){return this.advFilterExpSvc.getOperatorDisplayValue(this.filterModel)}getOperandDisplayValue(){return this.advFilterExpSvc.getOperandDisplayValue(this.filterModel,!0)}hasOperand(){return this.numOperands>0}getOperatorAutocompleteEntries(){return this.column?this.advFilterExpSvc.getOperatorAutocompleteEntries(this.column,this.baseCellDataType):[]}setColumnKey(e){this.eOperatorPill||this.createOperatorPill();const t=this.advFilterExpSvc.getColumnDetails(e);this.column=t.column;const n=t.baseCellDataType;this.baseCellDataType!==n&&(this.baseCellDataType=n,this.setOperatorKey(void 0),this.eOperatorPill&&(Ps(this.eOperatorPill.getGui()),this.destroyBean(this.eOperatorPill),this.createOperatorPill()),this.validate()),this.filterModel.colId=e,this.filterModel.filterType=this.baseCellDataType}setOperatorKey(e){const t=this.getNumOperands(e);t!==this.numOperands&&(this.numOperands=t,t===0?this.destroyOperandPill():(this.createOperandPill(),this.baseCellDataType!=="number"&&this.setOperand(""))),this.filterModel.type=e,this.validate()}setOperand(e){let t=e;this.baseCellDataType==="number"&&(t=Ut(e)?Number(e):""),this.filterModel.filter=t,this.validate()}getNumOperands(e){return this.advFilterExpSvc.getExpressionOperator(this.baseCellDataType,e)?.numOperands??0}destroyOperandPill(){delete this.filterModel.filter,this.getGui().removeChild(this.eOperandPill.getGui()),this.destroyBean(this.eOperandPill),this.eOperandPill=void 0}validate(){let e=null;Ut(this.getColumnKey())?Ut(this.getOperatorKey())?this.numOperands>0&&!Ut(this.getOperandDisplayValue())&&(e=this.advFilterExpSvc.translate("advancedFilterBuilderValidationEnterValue")):e=this.advFilterExpSvc.translate("advancedFilterBuilderValidationSelectOption"):e=this.advFilterExpSvc.translate("advancedFilterBuilderValidationSelectColumn"),this.item.valid=!e,e!==this.validationMessage&&(this.validationMessage=e,this.dispatchLocalEvent({type:"advancedFilterBuilderValidChanged"}))}getDefaultColumnDisplayValue(){return this.advFilterExpSvc.translate("advancedFilterBuilderSelectColumn")}getDefaultOptionSelectValue(){return this.advFilterExpSvc.translate("advancedFilterBuilderSelectOption")}},N9t={tag:"div",cls:"ag-advanced-filter-builder-pill-wrapper",role:"presentation",children:[{tag:"div",ref:"ePill",cls:"ag-advanced-filter-builder-pill",role:"button",children:[{tag:"span",ref:"eLabel",cls:"ag-advanced-filter-builder-pill-display"}]}]},F9t=class extends Gt{constructor(e){super(N9t),this.params=e,this.ePill=at,this.eLabel=at;const{value:t,valueFormatter:n}=e;this.value=t,this.displayValue=n(t)}wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc}postConstruct(){const{cssClass:e,ariaLabel:t}=this.params;this.ePill.classList.add(e),this.activateTabIndex([this.ePill]),this.eLabel.id=`${this.getCompId()}`,mK(this.ePill,this.eLabel.id),Is(this.ePill,t),this.renderValue(),this.addManagedListeners(this.ePill,{click:n=>{n.preventDefault(),this.showEditor()},keydown:n=>{switch(n.key){case Qe.ENTER:n.preventDefault(),Cl(n),this.showEditor();break}}}),this.addDestroyFunc(()=>this.destroyBean(this.eEditor))}getFocusableElement(){return this.ePill}showEditor(){if(this.eEditor)return;Nn(this.ePill,!1),this.eEditor=this.createEditorComp(this.params.type),this.eEditor.setValue(this.value);const e=this.eEditor.getGui();this.eEditor.addManagedElementListeners(e,{keydown:t=>{switch(t.key){case Qe.ENTER:t.preventDefault(),Cl(t),this.updateValue(!0);break;case Qe.ESCAPE:t.preventDefault(),Cl(t),this.hideEditor(!0);break}},focusout:()=>this.updateValue(!1)}),this.getGui().appendChild(e),this.eEditor.getFocusableElement().focus()}createEditorComp(e){let t;switch(e){case"text":t=new Im;break;case"number":t=new kK;break;case"date":t=new Ytt;break}return this.createBean(t)}hideEditor(e){const{eEditor:t}=this;t&&(this.eEditor=void 0,this.getGui().removeChild(t.getGui()),this.destroyBean(t),Nn(this.ePill,!0),e&&this.ePill.focus())}renderValue(){let e;const{displayValue:t,eLabel:n}=this,{classList:r}=n;r.remove("ag-advanced-filter-builder-value-empty","ag-advanced-filter-builder-value-number","ag-advanced-filter-builder-value-text"),Ut(t)?this.params.type==="number"?(e=t,r.add("ag-advanced-filter-builder-value-number")):(e=`"${t}"`,r.add("ag-advanced-filter-builder-value-text")):(e=this.advFilterExpSvc.translate("advancedFilterBuilderEnterValue"),r.add("ag-advanced-filter-builder-value-empty")),n.textContent=e}updateValue(e){if(!this.eEditor)return;const t=this.eEditor.getValue()??"";this.dispatchLocalEvent({type:"fieldValueChanged",value:t}),this.value=t,this.displayValue=this.params.valueFormatter(t),this.renderValue(),this.hideEditor(e)}},W9t=class extends Gt{wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc}constructor(){super({tag:"div",cls:"ag-advanced-filter-builder-item-condition",role:"presentation"})}init(e){const{item:t,createPill:n}=e,r=t.filterModel;this.filterModel=r,this.ePill=n({key:r.type,displayValue:this.advFilterExpSvc.parseJoinOperator(r),cssClass:"ag-advanced-filter-builder-join-pill",isSelect:!0,getEditorParams:()=>({values:this.advFilterExpSvc.getJoinOperatorAutocompleteEntries()}),update:i=>r.type=i,pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderJoinSelectField",pickerAriaLabelValue:"Advanced Filter Builder Join Operator Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderJoinOperator")}),this.getGui().appendChild(this.ePill.getGui()),this.addDestroyFunc(()=>this.destroyBean(this.ePill))}getDragName(){return this.advFilterExpSvc.parseJoinOperator(this.filterModel)}getAriaLabel(){return`${this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderGroupItem")} ${this.getDragName()}`}getValidationMessage(){return null}getFocusableElement(){return this.ePill.getFocusableElement()}},q9t={tag:"div",cls:"ag-picker-field ag-advanced-filter-builder-pill-wrapper",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-advanced-filter-builder-pill ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display ag-advanced-filter-builder-pill-display"},{tag:"ag-input-text-field",ref:"eInput",cls:"ag-rich-select-field-input"},{tag:"span",ref:"eDeselect",cls:"ag-rich-select-deselect-button ag-picker-field-icon",role:"presentation"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},B9t=class extends Qye{constructor(e){super({...e,template:q9t,agComponents:[Vf]}),this.params=e}getFocusableElement(){return this.eWrapper}showPicker(){setTimeout(()=>super.showPicker())}hidePicker(){setTimeout(()=>super.hidePicker())}postConstruct(){super.postConstruct();const{wrapperClassName:e,ariaLabel:t}=this.params;this.eWrapper.classList.add(e),Vx(this.eWrapper,""),Is(this.eWrapper,t)}createPickerComponent(){if(!this.values){const{values:e}=this.params.getEditorParams();this.values=e;const t=this.value.key,n=e.find(r=>r.key===t)??{key:t,displayValue:this.value.displayValue};this.value=n}return super.createPickerComponent()}onEnterKeyDown(e){Cl(e),this.isPickerDisplayed?super.onEnterKeyDown(e):(e.preventDefault(),this.showPicker())}},j9t={tag:"div",cls:"ag-advanced-filter-builder-item-wrapper",role:"presentation",children:[{tag:"div",cls:"ag-advanced-filter-builder-item",role:"presentation",children:[{tag:"div",ref:"eTreeLines",cls:"ag-advanced-filter-builder-item-tree-lines",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eDragHandle",cls:"ag-drag-handle",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eValidation",cls:"ag-advanced-filter-builder-item-button ag-advanced-filter-builder-invalid",attrs:{"aria-hidden":"true"}}]},{tag:"div",ref:"eButtons",cls:"ag-advanced-filter-builder-item-buttons",children:[{tag:"span",ref:"eMoveUpButton",cls:"ag-advanced-filter-builder-item-button",role:"button"},{tag:"span",ref:"eMoveDownButton",cls:"ag-advanced-filter-builder-item-button",role:"button"},{tag:"div",ref:"eAddButton",role:"presentation"},{tag:"span",ref:"eRemoveButton",cls:"ag-advanced-filter-builder-item-button",role:"button"}]}]},Are=class extends Gb{constructor(e,t,n){super(j9t),this.item=e,this.dragFeature=t,this.focusWrapper=n,this.eTreeLines=at,this.eDragHandle=at,this.eButtons=at,this.eValidation=at,this.eMoveUpButton=at,this.eMoveDownButton=at,this.eAddButton=at,this.eRemoveButton=at,this.moveUpDisabled=!1,this.moveDownDisabled=!1}wireBeans(e){this.dragAndDrop=e.dragAndDrop,this.advFilterExpSvc=e.advFilterExpSvc,this.registry=e.registry}postConstruct(){const{filterModel:e,level:t,showMove:n}=this.item,r=e.filterType==="join";if(this.ePillWrapper=this.createManagedBean(r?new W9t:new _9t),this.ePillWrapper.init({item:this.item,createPill:i=>this.createPill(i)}),this.eDragHandle.insertAdjacentElement("afterend",this.ePillWrapper.getGui()),t===0){const i=Nr({tag:"div",cls:"ag-advanced-filter-builder-item-tree-line-vertical-bottom ag-advanced-filter-builder-item-tree-line-root"});this.eTreeLines.appendChild(i),Nn(this.eDragHandle,!1),Nn(this.eButtons,!1),d1(this.focusWrapper,!0)}else this.setupTreeLines(t),this.eDragHandle.appendChild(er("advancedFilterBuilderDrag",this.beans)),this.setupValidation(),this.setupMoveButtons(n),this.setupAddButton(),this.setupRemoveButton(),this.setupDragging(),this.updateAriaExpanded();vK(this.focusWrapper,t+1),this.initialiseTabGuard({}),this.createManagedBean(new Frt(this.getGui(),this.focusWrapper,this.ePillWrapper)),this.updateAriaLabel(),this.addManagedListeners(this.ePillWrapper,{advancedFilterBuilderValueChanged:()=>this.dispatchLocalEvent({type:"advancedFilterBuilderValueChanged"}),advancedFilterBuilderValidChanged:()=>this.updateValidity()})}setState(e){const{level:t}=this.item;if(t===0)return;const{showMove:n}=this.item,{disableMoveUp:r,disableMoveDown:i,treeLines:o,showStartTreeLine:a}=e;this.updateTreeLines(o,a),this.updateAriaExpanded(),n&&(this.moveUpDisabled=!!r,this.moveDownDisabled=!!i,this.eMoveUpButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",r),this.eMoveDownButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",i),M$(this.eMoveUpButton,!!r),M$(this.eMoveDownButton,!!i),this.moveUpTooltipFeature?.refreshTooltip(),this.moveDownTooltipFeature?.refreshTooltip())}focusMoveButton(e){(e?this.eMoveUpButton:this.eMoveDownButton).focus()}afterAdd(){this.ePillWrapper.getFocusableElement().focus()}setupTreeLines(e){for(let t=0;t<e;t++)this.eTreeLines.appendChild(Nr({tag:"div"}))}updateTreeLines(e,t){const n=e.length-1,{children:r}=this.eTreeLines;for(let o=0;o<n;o++){const a=r.item(o);a&&a.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!e[o])}const i=r.item(n);if(i){i.classList.add("ag-advanced-filter-builder-item-tree-line-horizontal");const o=e[n];i.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-top",o),i.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!o)}this.eDragHandle.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-bottom",t)}setupValidation(){this.eValidation.appendChild(er("advancedFilterBuilderInvalid",this.beans)),this.validationTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eValidation,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.ePillWrapper.getValidationMessage(),getTooltipShowDelayOverride:()=>1e3})),this.updateValidity()}setupAddButton(){const e=Wrt(n=>this.advFilterExpSvc.translate(n),this.gos.get("advancedFilterBuilderParams")?.addSelectWidth),t=this.createManagedBean(new Nrt(e));this.addManagedListeners(t,{fieldPickerValueSelected:({value:n})=>this.dispatchLocalEvent({type:"advancedFilterBuilderAdded",item:this.item,isJoin:n.key==="join"})}),this.eAddButton.appendChild(t.getGui()),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eAddButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip")}))}setupRemoveButton(){this.eRemoveButton.appendChild(er("advancedFilterBuilderRemove",this.beans)),this.addManagedListeners(this.eRemoveButton,{click:()=>this.removeItem(),keydown:e=>{switch(e.key){case Qe.ENTER:e.preventDefault(),Cl(e),this.removeItem();break}}}),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eRemoveButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderRemoveButtonTooltip")})),Is(this.eRemoveButton,this.advFilterExpSvc.translate("advancedFilterBuilderRemoveButtonTooltip")),this.activateTabIndex([this.eRemoveButton])}setupMoveButtons(e){e?(this.eMoveUpButton.appendChild(er("advancedFilterBuilderMoveUp",this.beans)),this.addManagedListeners(this.eMoveUpButton,{click:()=>this.moveItem(!0),keydown:t=>{switch(t.key){case Qe.ENTER:t.preventDefault(),Cl(t),this.moveItem(!0);break}}}),this.moveUpTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eMoveUpButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.moveUpDisabled?null:this.advFilterExpSvc.translate("advancedFilterBuilderMoveUpButtonTooltip")})),Is(this.eMoveUpButton,this.advFilterExpSvc.translate("advancedFilterBuilderMoveUpButtonTooltip")),this.eMoveDownButton.appendChild(er("advancedFilterBuilderMoveDown",this.beans)),this.addManagedListeners(this.eMoveDownButton,{click:()=>this.moveItem(!1),keydown:t=>{switch(t.key){case Qe.ENTER:t.preventDefault(),Cl(t),this.moveItem(!1);break}}}),this.moveDownTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eMoveDownButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.moveDownDisabled?null:this.advFilterExpSvc.translate("advancedFilterBuilderMoveDownButtonTooltip")})),Is(this.eMoveDownButton,this.advFilterExpSvc.translate("advancedFilterBuilderMoveDownButtonTooltip")),this.activateTabIndex([this.eMoveUpButton,this.eMoveDownButton])):(Nn(this.eMoveUpButton,!1),Nn(this.eMoveDownButton,!1))}updateValidity(){set(this.eValidation,!this.item.valid),this.validationTooltipFeature?.refreshTooltip(),this.updateAriaLabel()}createPill(e){const{key:t,cssClass:n,update:r,ariaLabel:i}=e,o=a=>{a!=null&&(r(a),this.dispatchLocalEvent({type:"advancedFilterBuilderValueChanged"}))};if(e.isSelect){const{getEditorParams:a,pickerAriaLabelKey:s,pickerAriaLabelValue:l,displayValue:c}=e,u=this.gos.get("advancedFilterBuilderParams"),d=`${u?.pillSelectMinWidth??140}px`,p=`${u?.pillSelectMaxWidth??200}px`,h=this.createBean(new B9t({pickerAriaLabelKey:s,pickerAriaLabelValue:l,pickerType:"ag-list",value:{key:t,displayValue:c},valueFormatter:g=>g==null?"":g.displayValue??g.key,variableWidth:!0,minPickerWidth:d,maxPickerWidth:p,getEditorParams:a,wrapperClassName:n,ariaLabel:i,pickerIcon:"advancedFilterBuilderSelectOpen"}));return this.addManagedListeners(h,{fieldPickerValueSelected:({value:g})=>o(g?.key)}),h}else{const{baseCellDataType:a,valueFormatter:s}=e,l=this.createBean(new F9t({value:t,valueFormatter:s,cssClass:n,type:this.getInputType(a),ariaLabel:i}));return this.addManagedListeners(l,{fieldValueChanged:({value:c})=>o(c)}),l}}getInputType(e){switch(e){case"text":case"object":case"boolean":return"text";case"number":return"number";case"date":case"dateString":return"date"}}setupDragging(){const e={type:bm.AdvancedFilterBuilder,eElement:this.eDragHandle,dragItemName:()=>this.ePillWrapper.getDragName(),getDefaultIconName:()=>"notAllowed",getDragItem:()=>({}),onDragStarted:()=>this.dragFeature.dispatchLocalEvent({type:"advancedFilterBuilderDragStarted",item:this.item}),onDragStopped:()=>this.dragFeature.dispatchLocalEvent({type:"advancedFilterBuilderDragEnded"})};this.dragAndDrop.addDragSource(e,!0),this.addDestroyFunc(()=>this.dragAndDrop.removeDragSource(e))}updateAriaLabel(){const e=this.ePillWrapper.getAriaLabel(),t=`${this.item.level+1}`,n=this.ePillWrapper.getValidationMessage();let r;n?r=this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItemValidation",[e,t,n]):r=this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItem",[e,t]),Is(this.focusWrapper,r)}updateAriaExpanded(){KJe(this.focusWrapper);const{filterModel:e}=this.item;e?.filterType==="join"&&e.conditions.length&&d1(this.focusWrapper,!0)}removeItem(){this.dispatchLocalEvent({type:"advancedFilterBuilderRemoved",item:this.item})}moveItem(e){this.dispatchLocalEvent({type:"advancedFilterBuilderMoved",item:this.item,backwards:e})}},H9t={tag:"div",cls:"ag-advanced-filter-builder",role:"presentation",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eList",cls:"ag-advanced-filter-builder-list",role:"presentation"},{tag:"div",cls:"ag-advanced-filter-builder-button-panel",role:"presentation",children:[{tag:"button",ref:"eApplyFilterButton",cls:"ag-button ag-standard-button ag-advanced-filter-builder-apply-button"},{tag:"button",ref:"eCancelFilterButton",cls:"ag-button ag-standard-button ag-advanced-filter-builder-cancel-button"}]}]},V9t=class extends Gt{constructor(){super(H9t),this.eList=at,this.eApplyFilterButton=at,this.eCancelFilterButton=at,this.validationMessage=null}wireBeans(e){this.filterManager=e.filterManager,this.advancedFilter=e.advancedFilter,this.advFilterExpSvc=e.advFilterExpSvc,this.registry=e.registry}postConstruct(){const{showMoveButtons:e}=this.gos.get("advancedFilterBuilderParams")??{};this.showMove=!!e,this.addManagedPropertyListener("advancedFilterBuilderParams",({currentValue:t})=>{this.showMove=!!t?.showMoveButtons,this.refreshList(!1)}),this.filterModel=this.setupFilterModel(),this.setupVirtualList(),this.dragFeature=this.createManagedBean(new w9t(this,this.virtualList)),this.setupButtons()}refresh(){const e=this.virtualList;let t=e.getLastFocusedRow();this.setupFilterModel(),this.validateItems(),this.refreshList(!1),t!=null&&(e.getComponentAt(t)||(t=0),e.focusRow(t))}getNumItems(){return this.items.length}moveItem(e,t){!t||!e||this.moveItemToIndex(e,t.rowIndex,t.position)}afterGuiAttached(){this.virtualList.awaitStable(()=>this.virtualList.focusRow(0))}setupVirtualList(){const e=this.virtualList=this.createManagedBean(new bD({cssIdentifier:"advanced-filter-builder",ariaRole:"tree",listName:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderList"),moveItemCallback:this.virtualListMoveItemCallback.bind(this)}));e.setComponentCreator(this.createItemComponent.bind(this)),e.setComponentUpdater(this.updateItemComponent.bind(this)),e.setRowHeight(40),this.eList.appendChild(e.getGui()),e.setModel({getRowCount:()=>this.items?.length||0,getRow:t=>this.items[t],areRowsEqual:(t,n)=>t===n}),this.buildList(),e.refresh()}setupButtons(){this.eApplyFilterButton.textContent=this.advFilterExpSvc.translate("advancedFilterBuilderApply"),this.activateTabIndex([this.eApplyFilterButton]),this.addManagedElementListeners(this.eApplyFilterButton,{click:()=>{this.advancedFilter.setModel(this.filterModel),this.filterManager?.onFilterChanged({source:"advancedFilter"}),this.close()}}),this.validationTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApplyFilterButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.validationMessage,getTooltipShowDelayOverride:()=>1e3})),this.validate();const e=t=>this.toggleCss("ag-advanced-filter-builder-validation",t);this.addManagedListeners(this.eApplyFilterButton,{mouseenter:()=>e(!0),mouseleave:()=>e(!1)}),this.eCancelFilterButton.textContent=this.advFilterExpSvc.translate("advancedFilterBuilderCancel"),this.activateTabIndex([this.eCancelFilterButton]),this.addManagedElementListeners(this.eCancelFilterButton,{click:()=>this.close()})}removeItemFromParent(e){const t=e.parent.conditions.indexOf(e.filterModel);return e.parent.conditions.splice(t,1),t}moveItemToIndex(e,t,n){const r=this.items[t],i=r.filterModel?.filterType==="join"&&n==="bottom",o=i?r.filterModel:r.parent;if(!o||this.isChildOrSelf(o,e.filterModel)||r===e)return;this.removeItemFromParent(e);let a;i?a=0:(a=o.conditions.indexOf(r.filterModel),a===-1?a=o.conditions.length:n==="bottom"&&(a+=1)),o.conditions.splice(a,0,e.filterModel),this.refreshList(!1)}isChildOrSelf(e,t){return e===t||t.filterType==="join"&&t.conditions.some(n=>this.isChildOrSelf(e,n))}setupFilterModel(){const e=this.formatFilterModel(this.advancedFilter.getModel());return this.stringifiedModel=JSON.stringify(e),e}formatFilterModel(e){return e=e??{filterType:"join",type:"AND",conditions:[]},e.filterType!=="join"&&(e={filterType:"join",type:"AND",conditions:[e]}),e}buildList(){const e=(t,n,r,i)=>{n.push({filterModel:t,level:r,parent:i,valid:!0,showMove:this.showMove}),t.filterType==="join"&&(t.conditions.forEach(o=>e(o,n,r+1,t)),r===0&&n.push({filterModel:null,level:r+1,parent:t,valid:!0}))};this.items=[],e(this.filterModel,this.items,0)}refreshList(e){if(!e){const t=[];this.items.forEach(n=>{n.valid||t.push(n.filterModel)}),this.buildList(),t.length&&this.items.forEach(n=>{n.filterModel&&t.includes(n.filterModel)&&(n.valid=!1)})}this.virtualList.refresh(e),this.validate()}updateItemComponent(e,t){const n=this.items.indexOf(e),r=(s,l)=>{const u=this.items.find(d=>d.filterModel===s)?.parent;if(u){const{conditions:d}=u;r(u,l),l.push(d[d.length-1]===s)}},i=[],{filterModel:o}=e;o&&(r(o,i),i[0]=!1);const a=o?.filterType==="join"&&!!o.conditions.length;t.setState({disableMoveUp:n===1,disableMoveDown:!this.canMoveDown(e,n),treeLines:i,showStartTreeLine:a})}createItemComponent(e,t){const n=this.createBean(e.filterModel?new Are(e,this.dragFeature,t):new L9t(e,t));return n.addManagedListeners(n,{advancedFilterBuilderRemoved:({item:r})=>this.removeItem(r),advancedFilterBuilderValueChanged:()=>this.validate(),advancedFilterBuilderAdded:({item:r,isJoin:i})=>this.addItem(r,i),advancedFilterBuilderMoved:({item:r,backwards:i})=>this.moveItemUpDown(r,i)}),n instanceof Are&&this.updateItemComponent(e,n),n}addItem(e,t){const{parent:n,level:r,filterModel:i}=e,o=i?.filterType==="join",a=t?{filterType:"join",type:"AND",conditions:[]}:{},s=o?i:n;let l=o?0:s.conditions.indexOf(i);l>=0?(o||(l+=1),s.conditions.splice(l,0,a)):s.conditions.push(a);let c=this.items.indexOf(e);const u=c>=0;if(u){e.filterModel&&c++;const d=[{filterModel:a,level:o?r+1:r,parent:s,valid:t,showMove:this.showMove}];this.items.splice(c,0,...d)}this.refreshList(u),u&&this.virtualList.getComponentAt(c)?.afterAdd()}removeItem(e){const t=e.parent,{filterModel:n}=e,r=t.conditions.indexOf(n);t.conditions.splice(r,1);const i=e.filterModel?.filterType==="join",o=this.items.indexOf(e),a=!i&&o>=0;a&&this.items.splice(o,1),this.refreshList(a),o>=0&&this.virtualList.focusRow(o)}moveItemUpDown(e,t,n){const r=this.items.indexOf(e),i=t?r-1:r+1;if(i===0||!t&&!this.canMoveDown(e,r))return;const o=this.items[i],a=this.removeItemFromParent(e),{level:s,filterModel:l,parent:c}=e,{level:u,filterModel:d,parent:p}=o;if(t)if(u===s&&d.filterType==="join")d.conditions.push(l);else if(u<=s){const m=p.conditions.indexOf(d);p.conditions.splice(m,0,l)}else c.conditions[a-1].conditions.push(l);else if(u===s)if(d.filterType==="join")d.conditions.splice(0,0,l);else{const m=p.conditions.indexOf(d);p.conditions.splice(m+1,0,l)}else if(a<c.conditions.length)c.conditions.splice(a+1,0,l);else{const m=this.items.find(y=>y.filterModel===c),b=m.parent.conditions.indexOf(m.filterModel)+1;m.parent.conditions.splice(b,0,l)}this.refreshList(!1);const h=this.items.findIndex(({filterModel:m})=>m===l);if(h<0)return;const g=this.virtualList.getComponentAt(h);g instanceof Are&&(n||g.focusMoveButton(t))}virtualListMoveItemCallback(e,t){const n=e.item,r=this.items.indexOf(n);r<=0||r===this.items.length-1||t&&r===1||!t&&!this.canMoveDown(n,r)||(this.moveItemUpDown(n,t,!0),this.virtualList.focusRow(r+(t?-1:1)))}canMoveDown(e,t){return!(e.level===1&&t===this.items.length-2||e.level===1&&e.parent.conditions[e.parent.conditions.length-1]===e.filterModel)}close(){this.advancedFilter.getCtrl().toggleFilterBuilder({source:"ui"})}validate(){let e=!this.items.every(({valid:t})=>t);e?this.validationMessage=this.advFilterExpSvc.translate("advancedFilterBuilderValidationIncomplete"):(e=JSON.stringify(this.filterModel)===this.stringifiedModel,e?this.validationMessage=this.advFilterExpSvc.translate("advancedFilterBuilderValidationAlreadyApplied"):this.validationMessage=null),nf(this.eApplyFilterButton,e),this.validationTooltipFeature?.refreshTooltip()}validateItems(){const e=n=>{n.type=void 0},t=n=>{delete n.filter};this.items.forEach(n=>{if(!n.valid||!n.filterModel||n.filterModel.filterType==="join")return;const{filterModel:r}=n,{colId:i}=r,o=this.advFilterExpSvc.getColumnAutocompleteEntries().find(({key:c})=>c===i),a=this.advFilterExpSvc.getColumnDetails(r.colId);if(!o||!a.column){n.valid=!1,r.colId=void 0,e(r),t(r);return}const l=this.advFilterExpSvc.getDataTypeExpressionOperator(a.baseCellDataType).operators[r.type];if(!l){n.valid=!1,e(r),t(r);return}if(l.numOperands>0&&!Ut(r.filter)){n.valid=!1;return}})}},G9t=class extends dt{constructor(e){super(),this.enabled=e}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.popupSvc=e.popupSvc,this.advFilterExpSvc=e.advFilterExpSvc,this.environment=e.environment}postConstruct(){this.hasAdvancedFilterParent=!!this.gos.get("advancedFilterParent"),this.ctrlsSvc.whenReady(this,()=>this.setAdvancedFilterComp()),this.addManagedEventListeners({advancedFilterEnabledChanged:({enabled:e})=>this.onEnabledChanged(e)}),this.addManagedPropertyListener("advancedFilterParent",()=>this.updateComps()),this.addDestroyFunc(()=>{this.destroyAdvancedFilterComp(),this.destroyBean(this.eBuilderComp),this.eBuilderDialog&&this.eBuilderDialog.isAlive()&&this.destroyBean(this.eBuilderDialog)})}setupHeaderComp(e){this.eHeaderComp&&(this.eHeaderComp?.getGui().remove(),this.destroyBean(this.eHeaderComp)),this.eHeaderComp=this.createManagedBean(new x9t(this.enabled&&!this.hasAdvancedFilterParent)),e.insertAdjacentElement("beforebegin",this.eHeaderComp.getGui())}focusHeaderComp(){return this.eHeaderComp?(this.eHeaderComp.getFocusableElement().focus(),!0):!1}refreshComp(){this.eFilterComp?.refresh(),this.eHeaderComp?.refresh()}refreshBuilderComp(){this.eBuilderComp?.refresh()}getHeaderHeight(){return this.eHeaderComp?.getHeight()??0}setInputDisabled(e){this.eFilterComp?.setInputDisabled(e),this.eHeaderComp?.setInputDisabled(e)}toggleFilterBuilder(e){const{source:t,force:n,eventSource:r}=e;if(n&&this.eBuilderDialog||n===!1&&!this.eBuilderDialog)return;if(this.eBuilderDialog){this.builderDestroySource=t,this.destroyBean(this.eBuilderDialog);return}this.setInputDisabled(!0);const{width:i,height:o,minWidth:a}=this.getBuilderDialogSize();this.eBuilderComp=this.createBean(new V9t),this.eBuilderDialog=this.createBean(new w6({title:this.advFilterExpSvc.translate("advancedFilterBuilderTitle"),component:this.eBuilderComp,width:i,height:o,resizable:!0,movable:!0,maximizable:!0,centered:!0,closable:!0,minWidth:a,afterGuiAttached:()=>this.eBuilderComp?.afterGuiAttached(),postProcessPopupParams:{type:"advancedFilterBuilder",eventSource:r}})),this.dispatchFilterBuilderVisibleChangedEvent(t,!0),this.eBuilderDialog.addEventListener("destroyed",()=>{this.destroyBean(this.eBuilderComp),this.eBuilderComp=void 0,this.eBuilderDialog=void 0,this.setInputDisabled(!1),this.dispatchLocalEvent({type:"advancedFilterBuilderClosed"}),this.dispatchFilterBuilderVisibleChangedEvent(this.builderDestroySource??"ui",!1),this.builderDestroySource=void 0})}dispatchFilterBuilderVisibleChangedEvent(e,t){this.eventSvc.dispatchEvent({type:"advancedFilterBuilderVisibleChanged",source:e,visible:t})}getBuilderDialogSize(){const e=this.gos.get("advancedFilterBuilderParams")?.minWidth??500,t=this.popupSvc.getPopupParent(),n=Math.round(gz(t))-2,r=Math.round(xK(t)*.75)-2,i=Math.min(Math.max(600,e),n),o=Math.min(600,r);return{width:i,height:o,minWidth:e}}onEnabledChanged(e){this.enabled=e,this.updateComps()}updateComps(){this.setAdvancedFilterComp(),this.setHeaderCompEnabled(),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}setAdvancedFilterComp(){if(this.destroyAdvancedFilterComp(),!this.enabled)return;const e=this.gos.get("advancedFilterParent");if(this.hasAdvancedFilterParent=!!e,e){const t=this.createBean(new krt),n=t.getGui();this.environment.applyThemeClasses(n),n.classList.add(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr"),e.appendChild(n),this.eFilterComp=t}}setHeaderCompEnabled(){this.eHeaderComp?.setEnabled(this.enabled&&!this.hasAdvancedFilterParent)}destroyAdvancedFilterComp(){this.eFilterComp&&(Ps(this.eFilterComp.getGui()),this.destroyBean(this.eFilterComp))}},$9t=class{constructor(e){this.params=e,this.operators=[],this.operatorStartPositions=[],this.operatorEndPositions=[],this.activeOperator=0,this.validationError=null}parseExpression(e){this.operators.push(""),this.operatorStartPositions.push(e),this.operatorEndPositions.push(void 0);const{expression:t}=this.params;for(;e<t.length;){const n=t[e];if(n===" "){if(this.parseOperator(e-1))return this.activeOperator++,e-1;this.operators[this.activeOperator]+=n}else this.operators[this.activeOperator]+=n;e++}return this.parseOperator(e-1),e}isValid(){return!this.validationError&&(!this.operators.length||!!this.parsedOperator)}getValidationError(){return this.validationError}getFunction(){return this.parsedOperator==="OR"?"||":"&&"}getModel(){return this.parsedOperator==="OR"?"OR":"AND"}getAutocompleteListParams(e,t){let n;if(t==null)n="";else{const i=this.operators[t],o=this.operatorEndPositions[t];n=Ehe(i,e,o==null?this.params.expression.length:o+1)}let r=this.params.advFilterExpSvc.getJoinOperatorAutocompleteEntries();return(t||t==null&&this.activeOperator)&&(r=r.filter(({key:i})=>i===this.parsedOperator)),this.params.advFilterExpSvc.generateAutocompleteListParams(r,"join",n)}updateExpression(e,t,n){let{expression:r}=this.params;const i=t.displayValue??t.key;if(n===0)for(let s=this.operatorEndPositions.length-1;s>0;s--){const l=this.operatorEndPositions[s];l!=null&&(r=zx(r,this.operatorStartPositions[s],l,i).updatedValue)}const o=this.operatorStartPositions.length>n?this.operatorStartPositions[n]:e,a=(this.operatorEndPositions.length>n?this.operatorEndPositions[n]:void 0)??Rhe(r,e,!0).endPosition;return zx(r,o,a,i,!0)}getNumOperators(){return this.operators.length}getLastOperatorEndPosition(){return this.operatorEndPositions[this.operatorEndPositions.length-1]}parseOperator(e){const t=this.operators.length>this.activeOperator?this.operators[this.activeOperator]:"",n=this.params.advFilterExpSvc.getExpressionJoinOperators(),r=VK(t,n,i=>i);if(r){this.operatorEndPositions[this.activeOperator]=e;const i=n[r];if(this.activeOperator){if(r!==this.parsedOperator)return this.validationError||(this.validationError={message:this.params.advFilterExpSvc.translate("advancedFilterValidationJoinOperatorMismatch"),startPosition:e-t.length+1,endPosition:e}),!1}else this.parsedOperator=r;return t!==i&&(Yye(this.params,t,i,e),this.operators[this.activeOperator]=i),!0}else return r===null?!1:(this.validationError||(this.validationError={message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidJoinOperator"),startPosition:e-t.length+1,endPosition:e}),!0)}},U9t=class qrt{constructor(t,n){this.params=t,this.startPosition=n,this.expectingExpression=!0,this.expectingOperator=!1,this.expressionParsers=[],this.operatorParser=new $9t(this.params),this.missingEndBracket=!1,this.extraEndBracket=!1}parseExpression(){let t=this.startPosition;const{expression:n}=this.params;for(;t<n.length;){const r=n[t];if(r==="("&&!this.expectingOperator){const i=new qrt(this.params,t+1);t=i.parseExpression(),this.expressionParsers.push(i),this.expectingExpression=!1,this.expectingOperator=!0}else{if(r===")")return this.endPosition=t-1,this.startPosition===0&&(this.extraEndBracket=!0),t;if(r!==" ")if(this.expectingExpression){const i=new a9t(this.params,t);t=i.parseExpression(),this.expressionParsers.push(i),this.expectingExpression=!1,this.expectingOperator=!0}else this.expectingOperator&&(t=this.operatorParser.parseExpression(t),this.expectingOperator=!1,this.expectingExpression=!0)}t++}return this.startPosition>0&&(this.missingEndBracket=!0),t}isValid(){return!this.missingEndBracket&&!this.extraEndBracket&&this.expressionParsers.length===this.operatorParser.getNumOperators()+1&&this.operatorParser.isValid()&&this.expressionParsers.every(t=>t.isValid())}getValidationError(){const t=this.operatorParser.getValidationError();for(let r=0;r<this.expressionParsers.length;r++){const i=this.expressionParsers[r].getValidationError();if(i)return t&&t.startPosition<i.startPosition?t:i}if(t)return t;if(this.extraEndBracket)return{message:this.params.advFilterExpSvc.translate("advancedFilterValidationExtraEndBracket"),startPosition:this.endPosition+1,endPosition:this.endPosition+1};let n;return this.expressionParsers.length===this.operatorParser.getNumOperators()?n="advancedFilterValidationMissingCondition":this.missingEndBracket&&(n="advancedFilterValidationMissingEndBracket"),n?{message:this.params.advFilterExpSvc.translate(n),startPosition:this.params.expression.length,endPosition:this.params.expression.length}:null}getFunctionString(t){const n=this.expressionParsers.length>1,r=this.expressionParsers.map(i=>i.getFunctionString(t)).join(` ${this.operatorParser.getFunction()} `);return n?`(${r})`:r}getFunctionParsed(t){const n=this.operatorParser.getFunction(),r=this.expressionParsers.map(o=>o.getFunctionParsed(t)),i=n==="&&"?"every":"some";return(o,a,s)=>r[i](l=>l(o,a,s))}getAutocompleteListParams(t){if(this.endPosition!=null&&t>this.endPosition+1)return;if(!this.expressionParsers.length)return this.getColumnAutocompleteListParams();const n=this.getExpressionParserIndex(t);if(n==null)return this.params.expression[t]==="("?{enabled:!1}:this.getColumnAutocompleteListParams();const i=this.expressionParsers[n].getAutocompleteListParams(t);if(!i){if(n<this.expressionParsers.length-1)return this.operatorParser.getAutocompleteListParams(t,n);if(this.expressionParsers.length===this.operatorParser.getNumOperators()){const o=this.operatorParser.getLastOperatorEndPosition();return o==null||t<=o+1?this.operatorParser.getAutocompleteListParams(t,this.operatorParser.getNumOperators()-1):this.getColumnAutocompleteListParams()}return this.params.expression[t-1]===")"?{enabled:!1}:this.operatorParser.getAutocompleteListParams(t)}return i}updateExpression(t,n,r){const i=this.params.expression,o=this.getExpressionParserIndex(t);if(o==null){const l=r==="column"?this.params.advFilterExpSvc.getColumnValue(n):n.displayValue??n.key;return zx(i,this.startPosition,this.startPosition,l,!0)}const s=this.expressionParsers[o].updateExpression(t,n,r);return s??(r==="column"?zx(i,t,i.length-1,this.params.advFilterExpSvc.getColumnValue(n),!0):this.endPosition!=null&&t>this.endPosition+1?null:this.operatorParser.updateExpression(t,n,o))}getModel(){return this.expressionParsers.length>1?{filterType:"join",type:this.operatorParser.getModel(),conditions:this.expressionParsers.map(t=>t.getModel())}:this.expressionParsers[0].getModel()}getColumnAutocompleteListParams(){return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getColumnAutocompleteEntries(),"column","")}getExpressionParserIndex(t){let n;for(let r=0;r<this.expressionParsers.length&&!(this.expressionParsers[r].startPosition>t);r++)n=r;return n}},X9t=class{constructor(e){this.params=e,this.valid=!1}parseExpression(){this.joinExpressionParser=new U9t(this.params,0);const e=this.joinExpressionParser.parseExpression();return this.valid=e>=this.params.expression.length-1&&this.joinExpressionParser.isValid(),this.params.expression}isValid(){return this.valid}getValidationMessage(){const e=this.joinExpressionParser.getValidationError();if(!e)return null;const{message:t,startPosition:n,endPosition:r}=e;return n<this.params.expression.length?this.params.advFilterExpSvc.translate("advancedFilterValidationMessage",[t,this.params.expression.slice(n,r+1).trim()]):this.params.advFilterExpSvc.translate("advancedFilterValidationMessageAtEnd",[t])}getFunctionString(){const e=this.createFunctionParams();return{functionString:`return ${this.joinExpressionParser.getFunctionString(e)};`,params:e}}getFunctionParsed(){const e=this.createFunctionParams();return{expressionFunction:this.joinExpressionParser.getFunctionParsed(e),params:e}}getAutocompleteListParams(e){return this.joinExpressionParser.getAutocompleteListParams(e)??{enabled:!1}}updateExpression(e,t,n){return this.joinExpressionParser.updateExpression(e,t,n)}getModel(){return this.isValid()?this.joinExpressionParser.getModel():null}createFunctionParams(){return{operands:[],operators:[],evaluatorParams:[]}}},Y9t=class extends dt{constructor(){super(...arguments),this.beanName="advancedFilter",this.appliedExpression=null,this.expression=null,this.isValid=!0}wireBeans(e){this.valueSvc=e.valueSvc,this.colModel=e.colModel,this.dataTypeSvc=e.dataTypeSvc,this.advFilterExpSvc=e.advFilterExpSvc,this.filterValueSvc=e.filterValueSvc}postConstruct(){this.setEnabled(this.gos.get("enableAdvancedFilter"),!0),this.ctrl=this.createManagedBean(new G9t(this.enabled)),this.expressionProxy={getValue:(e,t)=>{const n=this.colModel.getColDefCol(e);return n?this.filterValueSvc.getValue(n,t):void 0}},this.addManagedPropertyListener("enableAdvancedFilter",e=>this.setEnabled(!!e.currentValue)),this.addManagedEventListeners({newColumnsLoaded:e=>this.onNewColumnsLoaded(e)}),this.addManagedPropertyListener("includeHiddenColumnsInAdvancedFilter",()=>this.updateValidity())}isEnabled(){return this.enabled}isFilterPresent(){return!!this.expressionFunction}doesFilterPass(e){return this.expressionFunction(this.expressionProxy,e,this.expressionParams)}getModel(){const e=this.createExpressionParser(this.appliedExpression);return e?.parseExpression(),e?.getModel()??null}setModel(e){const t=(r,i)=>{if(r.filterType==="join"){const o=this.advFilterExpSvc.parseJoinOperator(r),a=r.conditions.map(s=>t(s)).filter(s=>Ut(s)).join(` ${o} `);return i||r.conditions.length<=1?a:`(${a})`}else return this.advFilterExpSvc.parseColumnFilterModel(r)},n=e?t(e,!0):null;this.setExpressionDisplayValue(n),this.applyExpression(),this.ctrl.refreshComp(),this.ctrl.refreshBuilderComp()}getExpressionDisplayValue(){return this.expression}setExpressionDisplayValue(e){this.expression=e}isCurrentExpressionApplied(){return this.appliedExpression===this.expression}createExpressionParser(e){return e?new X9t({expression:e,colModel:this.colModel,dataTypeSvc:this.dataTypeSvc,valueSvc:this.valueSvc,advFilterExpSvc:this.advFilterExpSvc}):null}getDefaultExpression(e){const t=this.advFilterExpSvc.getColumnValue(e)+" ";return{updatedValue:t,updatedPosition:t.length}}isHeaderActive(){return!this.gos.get("advancedFilterParent")}getCtrl(){return this.ctrl}setEnabled(e,t){const n=this.enabled,r=sa(this.gos)||Au(this.gos);e&&!r&&ut(123),this.enabled=e&&r,!t&&this.enabled!==n&&this.eventSvc.dispatchEvent({type:"advancedFilterEnabledChanged",enabled:this.enabled})}applyExpression(){const e=this.createExpressionParser(this.expression);e?.parseExpression(),this.applyExpressionFromParser(e)}applyExpressionFromParser(e){if(this.isValid=!e||e.isValid(),!e||!this.isValid){this.expressionFunction=null,this.expressionParams=null,this.appliedExpression=null;return}const{expressionFunction:t,params:n}=this.getFunction(e);this.expressionFunction=t,this.expressionParams=n,this.appliedExpression=this.expression}getFunction(e){if(this.gos.get("suppressAdvancedFilterEval"))return e.getFunctionParsed();{const{functionString:t,params:n}=e.getFunctionString();return{expressionFunction:new Function("expressionProxy","node","params",t),params:n}}}updateValidity(){this.advFilterExpSvc.resetColumnCaches();const e=this.createExpressionParser(this.expression);e?.parseExpression();const n=(!e||e.isValid())!==this.isValid;return this.applyExpressionFromParser(e),this.ctrl.refreshComp(),this.ctrl.refreshBuilderComp(),n}onNewColumnsLoaded(e){if(e.source!=="gridInitializing"||!this.dataTypeSvc?.isPendingInference)return;this.ctrl.setInputDisabled(!0);const[t]=this.addManagedEventListeners({dataTypesInferred:()=>{t?.(),this.ctrl.setInputDisabled(!1)}})}},K9t={moduleName:"AdvancedFilter",version:wi,beans:[Y9t,l9t],icons:{advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus",advancedFilterBuilderSelectOpen:"small-down",richSelectRemove:"cancel"},apiFunctions:{getAdvancedFilterModel:K$t,setAdvancedFilterModel:Q$t,showAdvancedFilterBuilder:Z$t,hideAdvancedFilterBuilder:J$t},dependsOn:[es,BK,y3,pM,Uye],css:[Y$t]};function Q9t(e){return e.sideBar?.comp.isDisplayed()??!1}function Z9t(e,t){e.sideBar?.comp.setDisplayed(t)}function J9t(e,t){e.sideBar?.comp.setSideBarPosition(t)}function eUt(e,t){e.sideBar?.comp.openToolPanel(t,"api")}function tUt(e){e.sideBar?.comp.close("api")}function nUt(e){return e.sideBar?.comp.openedItem()??null}function rUt(e){e.sideBar?.comp.refresh()}function iUt(e){return e.sideBar?.comp.isToolPanelShowing()??!1}function oUt(e,t){const n=e.sideBar?.comp.getToolPanelInstance(t);return Mz(n)}function aUt(e){return e.sideBar?.comp.getDef()}function Dhe(e,t){if(!t)return null;const n=lm(e),r=n.indexOf(t);if(r===-1)return null;let i=-1;for(let o=r-1;o>=0;o--)if(n[o].classList.contains(WO.TAB_GUARD_TOP)){i=o;break}return i<=0?null:n[i-1]}function Brt(e,t){if(!t)return!1;const n=e.querySelectorAll(`.${Ott}`);if(!n.length)return!1;for(let r=0;r<n.length;r++)if(n[r].contains(t))return!0;return!1}var sUt='.ag-tool-panel-wrapper{display:flex;overflow:hidden auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-side-bar-panel-width)}.ag-select-agg-func-item{align-items:center;display:flex;flex:1 1 auto;flex-flow:row nowrap;height:100%;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;>*{flex:none}}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-side-bar{background-color:var(--ag-side-bar-background-color);display:flex;flex-direction:row-reverse;position:relative}:where(.ag-ltr) :where(.ag-side-bar-left) .ag-tool-panel-horizontal-resize{right:-3px}:where(.ag-rtl) :where(.ag-side-bar-left) .ag-tool-panel-horizontal-resize{left:-3px}:where(.ag-ltr) :where(.ag-side-bar-right) .ag-tool-panel-horizontal-resize{left:-3px}:where(.ag-rtl) :where(.ag-side-bar-right) .ag-tool-panel-horizontal-resize{right:-3px}.ag-side-bar-left{flex-direction:row;order:-1}.ag-side-buttons{background-color:var(--ag-side-button-bar-background-color);padding-top:var(--ag-side-button-bar-top-padding);position:relative}.ag-side-button{background-color:var(--ag-side-button-background-color);border-bottom:var(--ag-side-button-border);border-top:var(--ag-side-button-border);color:var(--ag-side-button-text-color);margin-top:-1px;position:relative;&:before{background-color:transparent;bottom:0;content:"";display:block;position:absolute;top:0;transition:background-color var(--ag-side-button-selected-underline-transition-duration);width:var(--ag-side-button-selected-underline-width)}&:hover{background-color:var(--ag-side-button-hover-background-color);color:var(--ag-side-button-hover-text-color)}&.ag-selected{background-color:var(--ag-side-button-selected-background-color);border-bottom:var(--ag-side-button-selected-border);border-top:var(--ag-side-button-selected-border);color:var(--ag-side-button-selected-text-color);&:before{background-color:var(--ag-side-button-selected-underline-color)}}}:where(.ag-ltr) .ag-side-button{&:before{left:0}}:where(.ag-rtl) .ag-side-button{&:before{right:0}}.ag-side-button-button{align-items:center;display:flex;flex-direction:column;gap:var(--ag-spacing);position:relative;white-space:nowrap;width:100%;&:focus{box-shadow:none}}:where(.ag-ltr) .ag-side-button-button{padding:var(--ag-side-button-vertical-padding) var(--ag-side-button-right-padding) var(--ag-side-button-vertical-padding) var(--ag-side-button-left-padding)}:where(.ag-rtl) .ag-side-button-button{padding:var(--ag-side-button-vertical-padding) var(--ag-side-button-left-padding) var(--ag-side-button-vertical-padding) var(--ag-side-button-right-padding)}.ag-side-button-button:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-side-button-label{writing-mode:vertical-lr}@media (resolution <= 1.5x){.ag-side-button-label{font-family:"Segoe UI",var(--ag-font-family)}:where(.ag-ltr) .ag-side-button-label{transform:rotate(.05deg)}:where(.ag-rtl) .ag-side-button-label{transform:rotate(-.05deg)}}:where(.ag-ltr) .ag-side-bar-left,:where(.ag-rtl) .ag-side-bar-right{border-right:var(--ag-side-panel-border);:where(.ag-tool-panel-wrapper){border-left:var(--ag-side-panel-border)}}:where(.ag-ltr) .ag-side-bar-right,:where(.ag-rtl) .ag-side-bar-left{border-left:var(--ag-side-panel-border);:where(.ag-tool-panel-wrapper){border-right:var(--ag-side-panel-border)}}',lUt={tag:"div",cls:"ag-side-button",role:"presentation",children:[{tag:"button",ref:"eToggleButton",cls:"ag-button ag-side-button-button",role:"tab",attrs:{type:"button",tabindex:"-1","aria-expanded":"false"},children:[{tag:"div",ref:"eIconWrapper",cls:"ag-side-button-icon-wrapper",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eLabel",cls:"ag-side-button-label"}]}]},cUt=class extends Gt{constructor(e){super(),this.toolPanelDef=e,this.eToggleButton=at,this.eIconWrapper=at,this.eLabel=at}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){this.setTemplate(lUt,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}setLabel(){const e=this.toolPanelDef,t=this.getLocaleTextFunc()(e.labelKey,e.labelDefault);this.eLabel.textContent=t}setIcon(){this.eIconWrapper.insertAdjacentElement("afterbegin",er(this.toolPanelDef.iconKey,this.beans))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(e){this.toggleCss("ag-selected",e),d1(this.eToggleButton,e)}},uUt={tag:"div",cls:"ag-side-buttons",role:"tablist"},dUt=class extends Gt{constructor(){super(uUt),this.buttonComps=[]}postConstruct(){this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){if(!(e.key!==Qe.TAB||!e.shiftKey)){if(Eb(this.beans,!0)){e.preventDefault();return}Cl(e)}}setActiveButton(e){this.buttonComps.forEach(t=>{t.setSelected(e===t.getToolPanelId())})}addButtonComp(e){const t=this.createBean(new cUt(e));return this.buttonComps.push(t),this.appendChild(t),t.addEventListener("toggleButtonClicked",()=>{this.dispatchLocalEvent({type:"sideBarButtonClicked",toolPanelId:e.id})}),t}clearButtons(){this.buttonComps=this.destroyBeans(this.buttonComps),Xi(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}},pUt={selector:"AG-SIDE-BAR-BUTTONS",component:dUt},jrt={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columnsToolPanel",toolPanel:"agColumnsToolPanel"},Hrt={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filtersToolPanel",toolPanel:"agFiltersToolPanel"},G$={columns:jrt,filters:Hrt};function khe(e){if(!e)return;if(e===!0)return{toolPanels:[jrt,Hrt],defaultToolPanel:"columns"};if(typeof e=="string")return khe([e]);if(Array.isArray(e)){const n=[];return e.forEach(r=>{const i=G$[r];if(!i){ut(215,{key:r,defaultByKey:G$});return}n.push(i)}),n.length===0?void 0:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:hUt(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}}function hUt(e){const t=[];return e&&e.forEach(n=>{let r=null;if(typeof n=="string"){const i=G$[n];if(!i){ut(215,{key:n,defaultByKey:G$});return}r=i}else r=n;t.push(r)}),t}var fUt=class extends Gt{constructor(){super({tag:"div",cls:"ag-tool-panel-horizontal-resize"}),this.minWidth=100,this.maxWidth=null}postConstruct(){const e=this.beans.horizontalResizeSvc.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(e),this.inverted=this.gos.get("enableRtl")}dispatchResizeEvent(e,t,n){this.eventSvc.dispatchEvent({type:"toolPanelSizeChanged",width:n,started:e,ended:t})}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(e){return this.onResizing(e,!0)}onResizing(e,t=!1){const n=this.inverted?-1:1;let r=Math.max(this.minWidth,Math.floor(this.startingWidth-e*n));this.maxWidth!=null&&(r=Math.min(this.maxWidth,r)),this.elementToResize.style.width=`${r}px`,this.dispatchResizeEvent(!1,t,r)}};function gUt(e,t,n){return e.getCompDetails(t,mUt,void 0,n,!0)}var mUt={name:"toolPanel",optionalMethods:["refresh","getState"]},vUt={tag:"div",cls:"ag-tool-panel-wrapper",role:"tabpanel"},bUt=class extends Gt{constructor(){super(vUt)}postConstruct(){const e=this.getGui(),t=this.resizeBar=this.createManagedBean(new fUt);e.setAttribute("id",`ag-${this.getCompId()}`),t.elementToResize=e,this.appendChild(t)}getToolPanelId(){return this.toolPanelId}setToolPanelDef(e,t){const{id:n,minWidth:r,maxWidth:i,width:o}=e;this.toolPanelId=n,this.width=o;const a=gUt(this.beans.userCompFactory,e,t);if(a==null)return!1;const s=a.newAgStackInstance();this.params=a.params,s.then(this.setToolPanelComponent.bind(this));const l=this.resizeBar;return r!=null&&(l.minWidth=r),i!=null&&(l.maxWidth=i),!0}setToolPanelComponent(e){this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc(()=>{this.destroyBean(e)});const t=this.width;t&&(this.getGui().style.width=`${t}px`)}getToolPanelInstance(){return this.toolPanelCompInstance}setResizerSizerSide(e){const t=this.gos.get("enableRtl"),n=e==="left",r=t?n:!n;this.resizeBar.inverted=r}refresh(){this.toolPanelCompInstance?.refresh(this.params)}},yUt={tag:"div",cls:"ag-side-bar ag-unselectable",children:[{tag:"ag-side-bar-buttons",ref:"sideBarButtons"}]},MUt=class extends Gt{constructor(){super(yUt,[pUt]),this.sideBarButtons=at,this.toolPanelWrappers=[],this.registerCSS(sUt)}postConstruct(){this.sideBarButtons.addEventListener("sideBarButtonClicked",this.onToolPanelButtonClicked.bind(this));const{beans:e,gos:t}=this,{sideBar:n}=t.get("initialState")??{};this.setSideBarDef({sideBarDef:khe(t.get("sideBar")),sideBarState:n}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),e.sideBar.comp=this;const r=this.getFocusableElement();this.createManagedBean(new Mw(r,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),htt(e,this,r)}onTabKeyDown(e){if(e.defaultPrevented)return;const{beans:t,sideBarButtons:n}=this,r=this.getGui(),i=n.getGui(),o=$i(t),a=r.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),s=e.target,l=e.shiftKey;if(!a)return Eb(t,l)?(e.preventDefault(),!0):Eb(t,l,!0);if(i.contains(o)){zu(a,l)&&e.preventDefault();return}if(!l)return;let c=null;a.contains(o)?c=Cd(t,a,void 0,!0):Brt(a,s)&&l&&(c=Dhe(a,s)),c||(c=i.querySelector(".ag-selected button")),c&&c!==e.target&&(e.preventDefault(),c.focus())}handleKeyDown(e){const t=$i(this.beans),n=this.sideBarButtons;if(!n.getGui().contains(t))return;const r=n.getGui(),i=Array.prototype.slice.call(r.querySelectorAll(".ag-side-button")),o=i.findIndex(l=>l.contains(t));let a=null;switch(e.key){case Qe.LEFT:case Qe.UP:a=Math.max(0,o-1);break;case Qe.RIGHT:case Qe.DOWN:a=Math.min(o+1,i.length-1);break}if(a===null)return;const s=i[a].querySelector("button");s&&(s.focus(),e.preventDefault())}onToolPanelButtonClicked(e){const t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(t,"sideBarButtonClicked")}clearDownUi(){this.sideBarButtons.clearButtons(),this.destroyToolPanelWrappers()}setSideBarDef({sideBarDef:e,sideBarState:t,existingToolPanelWrappers:n}){if(this.setDisplayed(!1),this.sideBar=e,e&&e.toolPanels){const r=e.toolPanels;if(this.createToolPanelsAndSideButtons(r,t,n),!this.toolPanelWrappers.length)return;const i=t?t.visible:!e.hiddenByDefault;if(this.setDisplayed(i),this.setSideBarPosition(t?t.position:e.position),i)if(t){const{openToolPanel:o}=t;o&&this.openToolPanel(o,"sideBarInitializing")}else this.openToolPanel(e.defaultToolPanel,"sideBarInitializing")}}getDef(){return this.sideBar}setSideBarPosition(e){e||(e="right"),this.position=e;const t=e==="left",n=t?"right":"left";return this.toggleCss("ag-side-bar-left",t),this.toggleCss("ag-side-bar-right",!t),this.toolPanelWrappers.forEach(r=>{r.setResizerSizerSide(n)}),this.dispatchSideBarUpdated(),this}setDisplayed(e,t){super.setDisplayed(e,t),this.dispatchSideBarUpdated()}getState(){const e={};return this.toolPanelWrappers.forEach(t=>{e[t.getToolPanelId()]=t.getToolPanelInstance()?.getState?.()}),{visible:this.isDisplayed(),position:this.position,openToolPanel:this.openedItem(),toolPanels:e}}createToolPanelsAndSideButtons(e,t,n){for(const r of e)this.createToolPanelAndSideButton(r,t?.toolPanels?.[r.id],n?.[r.id])}validateDef(e){return e.id==null?(ut(212),!1):e.toolPanel==="agFiltersToolPanel"&&this.beans.filterManager?.isAdvFilterEnabled()?(ut(213),!1):!0}createToolPanelAndSideButton(e,t,n){if(!this.validateDef(e))return;let r;if(n)r=n;else if(r=this.createBean(new bUt),!r.setToolPanelDef(e,Gn(this.gos,{initialState:t,onStateUpdated:()=>this.dispatchSideBarUpdated()})))return;r.setDisplayed(!1);const i=r.getGui();this.appendChild(i),this.toolPanelWrappers.push(r);const o=this.sideBarButtons.addButtonComp(e);K2e(o.eToggleButton,i)}refresh(){this.toolPanelWrappers.forEach(e=>e.refresh())}openToolPanel(e,t="api"){const n=this.openedItem();if(n===e)return;this.toolPanelWrappers.forEach(o=>{const a=e===o.getToolPanelId();o.setDisplayed(a)});const r=this.openedItem();n!==r&&(this.sideBarButtons.setActiveButton(e),this.raiseToolPanelVisibleEvent(e,n??void 0,t))}getToolPanelInstance(e){const t=this.toolPanelWrappers.filter(n=>n.getToolPanelId()===e)[0];if(!t){ut(214,{key:e});return}return t.getToolPanelInstance()}raiseToolPanelVisibleEvent(e,t,n){const r=!!e&&!!t,i=this.eventSvc;t&&i.dispatchEvent({type:"toolPanelVisibleChanged",source:n,key:t,visible:!1,switchingToolPanel:r}),e&&i.dispatchEvent({type:"toolPanelVisibleChanged",source:n,key:e,visible:!0,switchingToolPanel:r})}close(e="api"){this.openToolPanel(void 0,e)}isToolPanelShowing(){return!!this.openedItem()}openedItem(){let e=null;return this.toolPanelWrappers.forEach(t=>{t.isDisplayed()&&(e=t.getToolPanelId())}),e}onSideBarUpdated(){const e=khe(this.gos.get("sideBar")),t={};e&&this.sideBar&&e.toolPanels?.forEach(n=>{const{id:r}=n;if(!r)return;const i=this.sideBar.toolPanels?.find(l=>l.id===r);if(!i||n.toolPanel!==i.toolPanel)return;const o=this.toolPanelWrappers.find(l=>l.getToolPanelId()===r);if(!o)return;const a=Gn(this.gos,{...n.toolPanelParams??{},onStateUpdated:()=>this.dispatchSideBarUpdated()});o.getToolPanelInstance()?.refresh(a)===!0&&(this.toolPanelWrappers=this.toolPanelWrappers.filter(l=>l!==o),Ps(o.getGui()),t[r]=o)}),this.clearDownUi(),this.setSideBarDef({sideBarDef:e,existingToolPanelWrappers:t})}dispatchSideBarUpdated(){this.eventSvc.dispatchEvent({type:"sideBarUpdated"})}destroyToolPanelWrappers(){this.toolPanelWrappers.forEach(e=>{Ps(e.getGui()),this.destroyBean(e)}),this.toolPanelWrappers.length=0}destroy(){this.destroyToolPanelWrappers(),super.destroy()}},CUt={selector:"AG-SIDE-BAR",component:MUt},xUt=class extends dt{constructor(){super(...arguments),this.beanName="sideBar"}getSelector(){return CUt}},Zye={moduleName:"SideBar",version:wi,beans:[xUt],apiFunctions:{isSideBarVisible:Q9t,setSideBarVisible:Z9t,setSideBarPosition:J9t,openToolPanel:eUt,closeToolPanel:tUt,getOpenedToolPanel:nUt,refreshToolPanel:rUt,isToolPanelShowing:iUt,getToolPanelInstance:oUt,getSideBar:aUt},dependsOn:[es,int]},wUt={tag:"div"},Vrt=class extends Gt{constructor(){super(wUt)}init(e){this.params=e,this.cssClassPrefix=this.params.cssClassPrefix??"ag-menu-option",this.addAriaAttributes(),this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()}configureDefaults(){return!0}addAriaAttributes(){const{checked:e,subMenu:t}=this.params,n=this.getGui();e&&net(n,e),t&&d1(n,!1)}addIcon(){if(this.params.isCompact)return;const e=Nr({tag:"span",ref:"eIcon",cls:`${this.getClassName("part")} ${this.getClassName("icon")}`,role:"presentation"}),{checked:t,icon:n}=this.params;t?e.appendChild(er("check",this.beans)):n&&(wK(n)?e.appendChild(n):typeof n=="string"?e.innerHTML=n:ut(227)),this.getGui().appendChild(e)}addName(){const e=Nr({tag:"span",ref:"eName",cls:`${this.getClassName("part")} ${this.getClassName("text")}`,children:this.params.name||""});this.getGui().appendChild(e)}addShortcut(){if(this.params.isCompact)return;const e=Nr({tag:"span",ref:"eShortcut",cls:`${this.getClassName("part")} ${this.getClassName("shortcut")}`,children:this.params.shortcut||""});this.getGui().appendChild(e)}addSubMenu(){const e=Nr({tag:"span",ref:"ePopupPointer",cls:`${this.getClassName("part")} ${this.getClassName("popup-pointer")}`}),t=this.getGui();if(this.params.subMenu){const n=this.gos.get("enableRtl")?"subMenuOpenRtl":"subMenuOpen";e.appendChild(er(n,this.beans))}t.appendChild(e)}getClassName(e){return`${this.cssClassPrefix}-${e}`}},SUt='.ag-menu-list{cursor:default;display:table;padding:var(--ag-spacing) 0;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option{cursor:pointer;font-weight:500}:where(.ag-ltr) :where(.ag-menu-option-popup-pointer) .ag-icon{text-align:right}:where(.ag-rtl) :where(.ag-menu-option-popup-pointer) .ag-icon{text-align:left}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{display:flex;flex-wrap:nowrap;width:100%}.ag-compact-menu-option-text{flex:1 1 auto;white-space:nowrap}.ag-menu-separator{height:calc(var(--ag-spacing)*2 + 1px)}.ag-menu-separator-part:after{border-top:1px solid var(--ag-menu-separator-color);content:"";display:block}.ag-compact-menu-option-active,.ag-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-compact-menu-option-part,.ag-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-spacing) + 2px) 0}.ag-compact-menu-option-disabled,.ag-menu-option-disabled{cursor:not-allowed;opacity:.5}.ag-compact-menu-option-icon,.ag-menu-option-icon{width:var(--ag-icon-size)}:where(.ag-ltr) .ag-compact-menu-option-icon,:where(.ag-ltr) .ag-menu-option-icon{padding-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-compact-menu-option-icon,:where(.ag-rtl) .ag-menu-option-icon{padding-right:calc(var(--ag-spacing)*2)}.ag-compact-menu-option-text,.ag-menu-option-text{padding-left:calc(var(--ag-spacing)*2);padding-right:calc(var(--ag-spacing)*2)}:where(.ag-ltr) .ag-compact-menu-option-shortcut,:where(.ag-ltr) .ag-menu-option-shortcut{padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-compact-menu-option-shortcut,:where(.ag-rtl) .ag-menu-option-shortcut{padding-left:var(--ag-spacing)}:where(.ag-ltr) .ag-compact-menu-option-popup-pointer,:where(.ag-ltr) .ag-menu-option-popup-pointer{padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-compact-menu-option-popup-pointer,:where(.ag-rtl) .ag-menu-option-popup-pointer{padding-left:var(--ag-spacing)}.ag-menu-column-select-wrapper{height:265px;overflow:auto;:where(.ag-column-select){height:100%}}.ag-menu:where(.ag-tabs){min-width:290px}.ag-context-menu-loading-icon{pointer-events:none;position:absolute}',GK={moduleName:"MenuItem",version:wi,userComponents:{agMenuItem:Vrt},icons:{check:"tick",subMenuOpen:"small-right",subMenuOpenRtl:"small-left"},css:[SUt]},AUt=".ag-column-select{display:flex;flex:3 1 0px;flex-direction:column;overflow:hidden;position:relative}.ag-column-select-header{align-items:center;display:flex;flex:none;gap:var(--ag-widget-horizontal-spacing);height:var(--ag-header-height);padding-left:var(--ag-widget-container-horizontal-padding);padding-right:var(--ag-widget-container-horizontal-padding);position:relative}.ag-column-select-column,.ag-column-select-column-group{align-items:center;display:flex;gap:var(--ag-widget-horizontal-spacing);height:100%;position:relative;&:where(:not(:last-child)){margin-bottom:var(--ag-widget-vertical-spacing)}}:where(.ag-ltr) .ag-column-select-column,:where(.ag-ltr) .ag-column-select-column-group{padding-left:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}:where(.ag-rtl) .ag-column-select-column,:where(.ag-rtl) .ag-column-select-column-group{padding-right:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}.ag-column-select-header-icon{border-radius:var(--ag-border-radius);cursor:pointer;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}:where(.ag-ltr) .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}:where(.ag-rtl) .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly{opacity:.5;pointer-events:none}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding)*.5) 0}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}",OUt=300,zUt={tag:"div",cls:"ag-column-select-header",role:"presentation",children:[{tag:"div",ref:"eExpand",cls:"ag-column-select-header-icon"},{tag:"ag-checkbox",ref:"eSelect",cls:"ag-column-select-header-checkbox"},{tag:"ag-input-text-field",ref:"eFilterTextField",cls:"ag-column-select-header-filter-wrapper"}]},TUt=class extends Gt{constructor(){super(zUt,[Rm,Vf]),this.eExpand=at,this.eSelect=at,this.eFilterTextField=at}postConstruct(){this.createExpandIcons(),this.addManagedListeners(this.eExpand,{click:this.onExpandClicked.bind(this),keydown:t=>{t.key===Qe.SPACE&&(t.preventDefault(),this.onExpandClicked())}}),this.addManagedElementListeners(this.eSelect.getInputElement(),{click:this.onSelectClicked.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",()=>this.onFunctionsReadOnlyPropChanged()),this.eFilterTextField.setAutoComplete(!1).onValueChange(()=>this.onFilterTextChanged()),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)});const e=this.getLocaleTextFunc();this.eSelect.setInputAriaLabel(e("ariaColumnSelectAll","Toggle All Columns Visibility")),this.eFilterTextField.setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")),this.activateTabIndex([this.eExpand])}onFunctionsReadOnlyPropChanged(){const e=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(e),this.eSelect.toggleCss("ag-column-select-column-readonly",e)}init(e){this.params=e;const t=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(t),this.eSelect.toggleCss("ag-column-select-column-readonly",t),this.beans.colModel.ready&&this.showOrHideOptions()}createExpandIcons(){const e=this.beans;this.eExpand.appendChild(this.eExpandChecked=er("columnSelectOpen",e)),this.eExpand.appendChild(this.eExpandUnchecked=er("columnSelectClosed",e)),this.eExpand.appendChild(this.eExpandIndeterminate=er("columnSelectIndeterminate",e)),this.setExpandState(0)}showOrHideOptions(){const e=this.params,t=!e.suppressColumnFilter,n=!e.suppressColumnSelectAll,r=!e.suppressColumnExpandAll,i=!!this.beans.colModel.colDefCols?.treeDepth,o=this.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(o("searchOoo","Search...")),Nn(this.eFilterTextField.getGui(),t),Nn(this.eSelect.getGui(),n),Nn(this.eExpand,r&&i)}onFilterTextChanged(){this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=Ml(this,()=>{const e=this.eFilterTextField.getValue();this.dispatchLocalEvent({type:"filterChanged",filterText:e})},OUt)),this.onFilterTextChangedDebounced()}onSelectClicked(){this.dispatchLocalEvent({type:this.selectState?"unselectAll":"selectAll"})}onExpandClicked(){this.dispatchLocalEvent({type:this.expandState===0?"collapseAll":"expandAll"})}setExpandState(e){this.expandState=e,Nn(this.eExpandChecked,e===0),Nn(this.eExpandUnchecked,e===1),Nn(this.eExpandIndeterminate,e===2)}setSelectionState(e){this.selectState=e,this.eSelect.setValue(this.selectState)}},EUt={selector:"AG-PRIMARY-COLS-HEADER",component:TUt};function cI(e){return!!e&&typeof e.children<"u"}function PC(e){return cI(e)?e.groupId:e.colId}function Grt(e,t,n){const r=(a,s)=>{const c=a.children.map(PC).includes(PC(s)),u=zr(a.children),d=u&&PC(u)!==PC(s);return c&&d};if(!cI(e))return!0;const i=e,o=n;if(r(i,o)||i.groupId===t&&!i.children.map(PC).includes(PC(o)))return i.children.push(o),!0;for(let a=i.children.length-1;a>=0&&!Grt(i.children[a],t,n);a--);return!1}function RUt(e){const t=(i,o)=>cI(i)&&cI(o)&&PC(i)===PC(o),n=(i,o)=>{if(!cI(o))return i;const a=i,s=o;return s.children&&s.groupId&&Grt(a,s.groupId,s.children[0])||s.children.forEach(l=>n(a,l)),a},r=[];for(let i=1;i<=e.length;i++){const o=e[i-1],a=e[i];t(o,a)?e[i]=n(o,a):r.push(o)}return r}function $rt(e,t){const n=[],r=(o,a)=>{if(cI(o)){const s=o,l=typeof s.groupId<"u"?s.groupId:s.headerName,c=new aI(s,l,!1,a),u=[];return s.children.forEach(d=>{const p=r(d,a+1);p&&u.push(p)}),c.setChildren(u),c}else{const s=o,l=s.colId?s.colId:s.field,c=e.getColDefCol(l);return c||n.push(s),c}},i=[];return t.forEach(o=>{const a=r(o,0);a&&i.push(a)}),n.length>0&&ut(217,{invalidColIds:n}),i}function Urt(e,t){const n=IUt(e),r=RUt(n);t(r)}function IUt(e){const t=(i,o)=>{let a;if(Es(i))if(i.isPadding())a=o;else{const l=Object.assign({},i.getColGroupDef());l.groupId=i.getGroupId(),l.children=[o],a=l}else{const l=Object.assign({},i.getColDef());l.colId=i.getColId(),a=l}const s=i.getOriginalParent();return s?t(s,a):a};return e.getCols().filter(i=>{const o=i.getColDef();return i.isPrimary()&&!o.showRowGroup}).map(i=>t(i,i.getColDef()))}var SRe=class{constructor(e,t,n,r=!1,i){this.displayName=e,this.depth=n,this.group=r,this.localEventService=new Wy,r?(this.columnGroup=t,this._expanded=i,this.children=[]):this.column=t}get expanded(){return!!this._expanded}set expanded(e){e!==this._expanded&&(this._expanded=e,this.localEventService.dispatchEvent({type:"expandedChanged"}))}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}};function Xrt(e,t,n,r){const i=PUt(t);Yrt(e,i,n,r)}function Yrt(e,t,n,r){e.colModel.isPivotMode()?kUt(e,t,n,r):DUt(e,t,n,r)}function PUt(e){const t=[],n=r=>{r.forEach(i=>{i.passesFilter&&(i.group?n(i.children):t.push(i.column))})};return n(e),t}function DUt(e,t,n,r){const i=[];t.forEach(o=>{o.getColDef().lockVisible||o.isVisible()!=n&&i.push({colId:o.getId(),hide:!n})}),i.length>0&&m0(e,{state:i},r)}function kUt(e,t,n,r){LUt(e,t,n,r)}function LUt(e,t,n,r){const i=[],s=n?l=>{if(!l.isAnyFunctionActive())if(l.isAllowValue()){const c=typeof l.getAggFunc()=="string"?l.getAggFunc():e.aggFuncSvc?.getDefaultAggFunc(l);i.push({colId:l.getId(),aggFunc:c})}else l.isAllowRowGroup()?i.push({colId:l.getId(),rowGroup:!0}):l.isAllowPivot()&&i.push({colId:l.getId(),pivot:!0})}:l=>{(l.isPivotActive()||l.isRowGroupActive()||l.isValueActive())&&i.push({colId:l.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};t.forEach(s),i.length>0&&m0(e,{state:i},r)}function Krt(e,t){const{columns:n,visibleState:r,pivotState:i,eventType:o}=t,a=n.map(s=>{const l=s.getColId();if(e.colModel.isPivotMode()){const c=i?.[l];return{colId:l,pivot:c?.pivot,rowGroup:c?.rowGroup,aggFunc:c?.aggFunc}}else return{colId:l,hide:!r?.[l]}});m0(e,{state:a},o)}function Qrt(e){return{pivot:e.isPivotActive(),rowGroup:e.isRowGroupActive(),aggFunc:e.isValueActive()?e.getAggFunc():void 0}}function ARe(e,t,n,r){const i=t.getCol(n);e.groupData||(e.groupData={});const o=i.getColId(),a=e.groupData[o];a!==r&&(e.groupData[o]=r,e.dispatchCellChangedEvent(i,r,a))}function Jye(e,t,n){e.group!==n&&(e.group&&!n&&(e.expanded=!1),e.group=n,e.updateHasChildren(),t.selectionSvc?.updateRowSelectable(e),e.dispatchRowEvent("groupChanged"))}function yW(e,t){const{gos:n,rowGroupColsSvc:r}=t;if(!r||!e)return!1;const i=n.get("groupLockGroupColumns");if(!e.isRowGroupActive()||i===0)return!1;if(i===-1)return!0;const o=r.columns.findIndex(a=>a.getColId()===e.getColId());return i>o}var _Ut=class extends Gb{constructor(e){super(),this.setTemplateFromElement(e.getGui(),void 0,void 0,!0)}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)})}handleKeyDown(e){e.key===Qe.ESCAPE&&this.closePanel()}onTabKeyDown(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())}closePanel(){const e=this.parentComponent;e.closeSubMenu(),setTimeout(()=>e.getGui().focus(),0)}};function NUt(e,t,n){return e.getCompDetails(t,FUt,"agMenuItem",n,!0)}var FUt={name:"menuItem",optionalMethods:["setActive","select","setExpanded","configureDefaults"]},WUt={tag:"div",cls:"ag-menu",role:"presentation"},Lhe=class extends dt{constructor(){super(...arguments),this.ACTIVATION_DELAY=80,this.isActive=!1,this.subMenuIsOpen=!1,this.subMenuIsOpening=!1,this.suppressRootStyles=!0,this.suppressAria=!0,this.suppressFocus=!0}wireBeans(e){this.popupSvc=e.popupSvc,this.userCompFactory=e.userCompFactory,this.registry=e.registry}init(e){const{menuItemDef:t,isAnotherSubMenuOpen:n,level:r,childComponent:i,contextParams:o}=e;return this.params=e.menuItemDef,this.level=r,this.isAnotherSubMenuOpen=n,this.childComponent=i,this.contextParams=o,this.cssClassPrefix=this.params.menuItemParams?.cssClassPrefix??"ag-menu-option",NUt(this.userCompFactory,this.params,Gn(this.gos,{...t,level:r,isAnotherSubMenuOpen:n,openSubMenu:s=>this.openSubMenu(s),closeSubMenu:()=>this.closeSubMenu(),closeMenu:s=>this.closeMenu(s),updateTooltip:(s,l)=>this.refreshTooltip(s,l),onItemActivated:()=>this.onItemActivated()}))?.newAgStackInstance().then(s=>{this.menuItemComp=s;const l=s.configureDefaults?.();l&&this.configureDefaults(l===!0?void 0:l)})??Dr.resolve()}addListeners(e,t){t?.suppressClick||this.addManagedElementListeners(e,{click:n=>this.onItemSelected(n)}),t?.suppressKeyboardSelect||this.addManagedElementListeners(e,{keydown:n=>{(n.key===Qe.ENTER||n.key===Qe.SPACE)&&(n.preventDefault(),this.onItemSelected(n))}}),t?.suppressMouseDown||this.addManagedElementListeners(e,{mousedown:n=>{n.stopPropagation(),n.preventDefault()}}),t?.suppressMouseOver||this.addManagedElementListeners(e,{mouseenter:()=>this.onMouseEnter(),mouseleave:()=>this.onMouseLeave()})}isDisabled(){return!!this.params.disabled}openSubMenu(e=!1,t){if(this.closeSubMenu(),!this.params.subMenu)return;this.subMenuIsOpening=!0;const n=Nr(WUt);this.eSubMenuGui=n;let r,i=()=>{this.subMenuIsOpening=!1};if(this.childComponent){const c=this.createBean(new _Ut(this.childComponent));c.setParentComponent(this);const u=c.getGui(),d="mouseenter",p=()=>this.cancelDeactivate();u.addEventListener(d,p),r=()=>{u.removeEventListener(d,p),this.destroyBean(c)},n.appendChild(u),this.childComponent.afterGuiAttached&&(i=()=>{this.childComponent.afterGuiAttached(),this.subMenuIsOpening=!1})}else if(this.params.subMenu){const c=this.createBean(new S6(this.level+1,this.contextParams));c.setParentComponent(this),c.addMenuItems(this.params.subMenu),n.appendChild(c.getGui()),this.addManagedListeners(c,{closeMenu:u=>this.dispatchLocalEvent(u)}),c.addGuiEventListener("mouseenter",()=>this.cancelDeactivate()),r=()=>this.destroyBean(c),e&&(i=()=>{c.activateFirstItem(),this.subMenuIsOpening=!1})}const{popupSvc:o}=this,a=()=>{const c=this.eGui,{column:u,node:d}=this.contextParams;o?.positionPopupForMenu({eventSource:c,ePopup:n,event:t instanceof MouseEvent?t:void 0,column:u,node:d})},s=this.getLocaleTextFunc(),l=o?.addPopup({modal:!0,eChild:n,positionCallback:a,anchorToElement:this.eGui,ariaLabel:s("ariaLabelSubMenu","SubMenu"),afterGuiAttached:i});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=()=>{l&&l.hideFunc(),this.subMenuIsOpen=!1,this.setAriaExpanded(!1),r(),this.menuItemComp.setExpanded?.(!1),this.eSubMenuGui=void 0},this.menuItemComp.setExpanded?.(!0)}setAriaExpanded(e){this.suppressAria||d1(this.eGui,e)}closeSubMenu(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))}isSubMenuOpen(){return this.subMenuIsOpen}isSubMenuOpening(){return this.subMenuIsOpening}activate(e,t){this.cancelActivate(),!(this.params.disabled&&!t)&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add(`${this.cssClassPrefix}-active`),this.menuItemComp.setActive?.(!0),this.suppressFocus||SK(this.beans,()=>this.eGui.focus({preventScroll:!t})),e&&this.params.subMenu&&window.setTimeout(()=>{this.isAlive()&&this.isActive&&this.openSubMenu()},300),this.onItemActivated())}deactivate(){this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove(`${this.cssClassPrefix}-active`),this.menuItemComp.setActive?.(!1),this.isActive=!1,this.subMenuIsOpen&&this.closeSubMenu()}getGui(){return this.menuItemComp.getGui()}getParentComponent(){return this.parentComponent}setParentComponent(e){this.parentComponent=e}getSubMenuGui(){return this.eSubMenuGui}onItemSelected(e){this.menuItemComp.select?.(),this.params.action?this.beans.frameworkOverrides.wrapOutgoing(()=>this.params.action(Gn(this.gos,{...this.contextParams}))):this.openSubMenu(e&&e.type==="keydown",e),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(e)}closeMenu(e){const t={type:"closeMenu"};e&&(e instanceof MouseEvent?t.mouseEvent=e:t.keyboardEvent=e),this.dispatchLocalEvent(t)}onItemActivated(){const e={type:"menuItemActivated",menuItem:this};this.dispatchLocalEvent(e)}cancelActivate(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)}cancelDeactivate(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)}onMouseEnter(){this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(()=>this.activate(!0),this.ACTIVATION_DELAY):this.activate(!0)}onMouseLeave(){this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(()=>this.deactivate(),this.ACTIVATION_DELAY):this.deactivate()}configureDefaults(e){if(!this.menuItemComp){setTimeout(()=>this.configureDefaults(e));return}let t=this.menuItemComp.getGui();const{suppressRootStyles:n,suppressTooltip:r,suppressAria:i,suppressTabIndex:o,suppressFocus:a}=e||{},s=this.menuItemComp.getRootElement?.();s&&(n||t.classList.add("ag-menu-option-custom"),t=s),this.eGui=t,this.suppressRootStyles=!!n,this.suppressRootStyles||(t.classList.add(this.cssClassPrefix),this.params.cssClasses?.forEach(l=>t.classList.add(l)),this.params.disabled&&t.classList.add(`${this.cssClassPrefix}-disabled`)),r||this.refreshTooltip(this.params.tooltip),this.suppressAria=!!i,this.suppressAria||(C0(t,"menuitem"),this.params.subMenu&&fkt(t,this.params.subMenuRole??"menu"),this.params.disabled&&M$(t,!0)),o||t.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(t,e),this.suppressFocus=!!a}refreshTooltip(e,t){if(this.tooltip=e,this.tooltipFeature=this.destroyBean(this.tooltipFeature),!e||!this.menuItemComp)return;const n=this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getTooltipValue:()=>this.tooltip,getLocation:()=>"menu",shouldDisplayTooltip:t});n&&(this.tooltipFeature=this.createBean(n))}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),this.menuItemComp?.destroy?.(),super.destroy()}},S6=class extends Gb{constructor(e=0,t){super({tag:"div",cls:"ag-menu-list",role:"menu"}),this.level=e,this.menuItems=[],this.params=t??{column:null,node:null,value:null}}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>SK(this.beans,()=>this.handleKeyDown(e)),onFocusIn:e=>this.handleFocusIn(e),onFocusOut:e=>this.handleFocusOut(e)})}onTabKeyDown(e){this.getParentComponent()?.getGui()?.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)}handleKeyDown(e){switch(e.key){case Qe.UP:case Qe.RIGHT:case Qe.DOWN:case Qe.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case Qe.ESCAPE:this.closeIfIsChild()&&Cl(e);break}}handleFocusIn(e){const t=e.relatedTarget;!this.tabGuardFeature.getTabGuardCtrl().isTabGuard(t)&&(this.getGui().contains(t)||this.activeMenuItem?.getSubMenuGui()?.contains(t))||(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())}handleFocusOut(e){const t=e.relatedTarget;!this.activeMenuItem||this.getGui().contains(t)||this.activeMenuItem.getSubMenuGui()?.contains(t)||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()}clearActiveItem(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)}addMenuItems(e){e!=null&&Dr.all(e.map(t=>t==="separator"?Dr.resolve({eGui:this.createSeparator()}):typeof t=="string"?(ut(228,{menuItemOrString:t}),Dr.resolve({eGui:null})):this.addItem(t))).then(t=>{(t??[]).forEach(n=>{n?.eGui&&(this.appendChild(n.eGui),n.comp&&this.menuItems.push(n.comp))})})}addItem(e){const t=this.createManagedBean(new Lhe);return t.init({menuItemDef:e,isAnotherSubMenuOpen:()=>this.menuItems.some(n=>n.isSubMenuOpen()),level:this.level,contextParams:this.params}).then(()=>(t.setParentComponent(this),this.addManagedListeners(t,{closeMenu:n=>{this.dispatchLocalEvent(n)},menuItemActivated:n=>{this.activeMenuItem&&this.activeMenuItem!==n.menuItem&&this.activeMenuItem.deactivate(),this.activeMenuItem=n.menuItem}}),{comp:t,eGui:t.getGui()}))}activateFirstItem(){const e=this.menuItems.filter(t=>!t.isDisabled())[0];e&&e.activate()}createSeparator(){const e={tag:"div",cls:"ag-menu-separator-part"};return Nr({tag:"div",cls:"ag-menu-separator",attrs:{"aria-hidden":"true"},children:[e,e,e,e]})}handleNavKey(e){switch(e){case Qe.UP:case Qe.DOWN:{const n=this.findNextItem(e===Qe.UP);n&&n!==this.activeMenuItem&&n.activate(!1,!0);return}}const t=this.gos.get("enableRtl")?Qe.RIGHT:Qe.LEFT;e===t?this.closeIfIsChild():this.openChild()}closeIfIsChild(e){const t=this.getParentComponent();return t&&t instanceof Lhe?(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus(),!0):!1}openChild(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)}findNextItem(e){const t=[...this.menuItems];if(!t.length)return;if(!this.activeMenuItem)return e?zr(t):t[0];e&&t.reverse();let n,r=!1;for(const i of t){if(!r){i===this.activeMenuItem&&(r=!0);continue}n=i;break}return r&&!n?t[0]:n||this.activeMenuItem}destroy(){this.clearActiveItem(),super.destroy()}},Zrt=class extends Gt{constructor(e,t,n){super({tag:"div",cls:"ag-menu"}),this.column=e,this.mouseEvent=t,this.parentEl=n,this.displayName=null}postConstruct(){const{column:e,beans:{colNames:t}}=this;this.initializeProperties(e);let n;if(vm(e)?n=t.getDisplayNameForColumn(e,"columnToolPanel"):n=t.getDisplayNameForProvidedColumnGroup(null,e,"columnToolPanel"),this.displayName=n,this.buildMenuItemMap(),this.isActive()){this.mouseEvent.preventDefault();const r=this.getMappedMenuItems();if(r.length===0)return;this.displayContextMenu(r)}}initializeProperties(e){let t;Es(e)?t=e.getLeafColumns():t=[e],this.columns=t;const n=this.beans.colModel.isPivotMode();this.allowScrollIntoView=!n&&t.some(this.isColumnValidForScrollIntoView),this.allowGrouping=t.some(r=>r.isPrimary()&&r.isAllowRowGroup()),this.allowValues=t.some(r=>r.isPrimary()&&r.isAllowValue()),this.allowPivoting=n&&t.some(r=>r.isPrimary()&&r.isAllowPivot())}buildMenuItemMap(){const e=this.getLocaleTextFunc(),{beans:t,displayName:n}=this,{rowGroupColsSvc:r,valueColsSvc:i,pivotColsSvc:o,colModel:a}=t,s=new Map;this.menuItemMap=s;const l=a.isPivotMode();s.set("scrollIntoView",{allowedFunction:c=>!c.isPinned()&&!l&&this.isColumnValidForScrollIntoView(c),activeFunction:()=>!1,activateLabel:()=>e("scrollColumnIntoView",`Scroll ${n} into View`,[n]),activateFunction:()=>{const c=this.columns.find(this.isColumnValidForScrollIntoView);c&&this.beans.ctrlsSvc.getScrollFeature().ensureColumnVisible(c)},deActivateFunction:()=>{},addIcon:"ensureColumnVisible"}),s.set("rowGroup",{allowedFunction:c=>c.isPrimary()&&c.isAllowRowGroup()&&!yW(c,t),activeFunction:c=>c.isRowGroupActive(),activateLabel:()=>`${e("groupBy","Group by")} ${n}`,deactivateLabel:()=>`${e("ungroupBy","Un-Group by")} ${n}`,activateFunction:()=>r?.setColumns(this.addColumnsToList(r.columns),"toolPanelUi"),deActivateFunction:()=>r?.setColumns(this.removeColumnsFromList(r.columns),"toolPanelUi"),addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),s.set("value",{allowedFunction:c=>c.isPrimary()&&c.isAllowValue(),activeFunction:c=>c.isValueActive(),activateLabel:()=>e("addToValues",`Add ${n} to values`,[n]),deactivateLabel:()=>e("removeFromValues",`Remove ${n} from values`,[n]),activateFunction:()=>i?.setColumns(this.addColumnsToList(i.columns),"toolPanelUi"),deActivateFunction:()=>i?.setColumns(this.removeColumnsFromList(i.columns),"toolPanelUi"),addIcon:"valuePanel",removeIcon:"valuePanel"}),s.set("pivot",{allowedFunction:c=>l&&c.isPrimary()&&c.isAllowPivot(),activeFunction:c=>c.isPivotActive(),activateLabel:()=>e("addToLabels",`Add ${n} to labels`,[n]),deactivateLabel:()=>e("removeFromLabels",`Remove ${n} from labels`,[n]),activateFunction:()=>o?.setColumns(this.addColumnsToList(o.columns),"toolPanelUi"),deActivateFunction:()=>o?.setColumns(this.removeColumnsFromList(o.columns),"toolPanelUi"),addIcon:"pivotPanel",removeIcon:"pivotPanel"})}isColumnValidForScrollIntoView(e){if(!e.isVisible())return!1;const n=e.getParent();return n?n.getDisplayedChildren()?.indexOf(e)!==-1:!0}addColumnsToList(e){return[...e].concat(this.columns.filter(t=>e.indexOf(t)===-1))}removeColumnsFromList(e){return e.filter(t=>this.columns.indexOf(t)===-1)}displayContextMenu(e){const t=this.getGui(),n=this.createBean(new S6),r=this.getLocaleTextFunc();let i=()=>{};t.appendChild(n.getGui()),n.addMenuItems(e),n.addManagedListeners(n,{closeMenu:()=>{this.parentEl.focus(),i()}});const o=this.beans.popupSvc,a=o.addPopup({modal:!0,eChild:t,closeOnEsc:!0,afterGuiAttached:()=>zu(n.getGui()),ariaLabel:r("ariaLabelContextMenu","Context Menu"),closedCallback:s=>{s instanceof KeyboardEvent&&this.parentEl.focus(),this.destroyBean(n)}});a&&(i=a.hideFunc),o.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:t})}isActive(){return this.allowScrollIntoView||this.allowGrouping||this.allowValues||this.allowPivoting}getMappedMenuItems(){const e=[],{menuItemMap:t,columns:n,displayName:r,beans:i}=this;for(const o of t.values()){const a=n.some(l=>o.allowedFunction(l)&&!o.activeFunction(l)),s=n.some(l=>o.allowedFunction(l)&&o.activeFunction(l));a&&e.push({name:o.activateLabel(r),icon:er(o.addIcon,i,null),action:()=>o.activateFunction()}),s&&o.removeIcon&&o.deactivateLabel&&e.push({name:o.deactivateLabel(r),icon:er(o.removeIcon,i,null),action:()=>o.deActivateFunction?.()})}return e}},qUt={tag:"div",cls:"ag-column-select-column-group",children:[{tag:"span",ref:"eColumnGroupIcons",cls:"ag-column-group-icons",children:[{tag:"span",ref:"eGroupClosedIcon",cls:"ag-column-group-closed-icon"},{tag:"span",ref:"eGroupOpenedIcon",cls:"ag-column-group-opened-icon"}]},{tag:"ag-checkbox",ref:"cbSelect",cls:"ag-column-select-checkbox"},{tag:"span",ref:"eLabel",cls:"ag-column-select-column-label"}]},Jrt=class extends Gt{constructor(e,t,n,r){super(),this.modelItem=e,this.allowDragging=t,this.eventType=n,this.focusWrapper=r,this.cbSelect=at,this.eLabel=at,this.eGroupOpenedIcon=at,this.eGroupClosedIcon=at,this.eColumnGroupIcons=at,this.processingColumnStateChange=!1;const{columnGroup:i,depth:o,displayName:a}=e;this.columnGroup=i,this.columnDepth=o,this.displayName=a}postConstruct(){this.setTemplate(qUt,[Rm]);const{beans:e,cbSelect:t,eLabel:n,displayName:r,columnDepth:i,modelItem:o,focusWrapper:a,columnGroup:s}=this,{registry:l,gos:c}=e,u=er("columnDrag",e);this.eDragHandle=u,u.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");const d=t.getGui(),p=t.getInputElement();d.insertAdjacentElement("afterend",u),p.setAttribute("tabindex","-1"),n.textContent=r??"",this.setupExpandContract(),this.addCss("ag-column-select-indent-"+i),this.getGui().style.setProperty("--ag-indentation-level",String(i)),this.tooltipFeature=this.createOptionalManagedBean(l.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"columnToolPanelColumnGroup",shouldDisplayTooltip:_K(c,()=>n)})),this.addManagedEventListeners({columnPivotModeChanged:this.onColumnStateChanged.bind(this)}),this.addManagedElementListeners(n,{click:this.onLabelClicked.bind(this)}),this.addManagedListeners(t,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedListeners(o,{expandedChanged:this.onExpandChanged.bind(this)}),this.addManagedListeners(a,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),utt(s.getColGroupDef(),c,null,s).forEach(g=>this.toggleCss(g,!0))}getColumns(){return this.columnGroup.getLeafColumns()}setupTooltip(){const e=this.columnGroup.getColGroupDef();if(!e)return;const t=()=>this.tooltipFeature?.setTooltipAndRefresh(e.headerTooltip);t(),this.addManagedEventListeners({newColumnsLoaded:t})}handleKeyDown(e){switch(e.key){case Qe.LEFT:e.preventDefault(),this.modelItem.expanded=!1;break;case Qe.RIGHT:e.preventDefault(),this.modelItem.expanded=!0;break;case Qe.SPACE:e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected());break}}onContextMenu(e){const{columnGroup:t,gos:n}=this;if(n.get("functionsReadOnly"))return;const r=this.createBean(new Zrt(t,e,this.focusWrapper));this.addDestroyFunc(()=>{r.isAlive()&&this.destroyBean(r)})}addVisibilityListenersToAllChildren(){const e=this.onColumnStateChanged.bind(this);this.columnGroup.getLeafColumns().forEach(t=>{this.addManagedListeners(t,{visibleChanged:e,columnValueChanged:e,columnPivotChanged:e,columnRowGroupChanged:e})})}setupDragging(){if(!this.allowDragging){Nn(this.eDragHandle,!1);return}const e=this.beans,{gos:t,eventSvc:n,dragAndDrop:r}=e;let i=!t.get("suppressDragLeaveHidesColumns");const o={type:bm.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDefaultIconName:()=>i?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{i=!t.get("suppressDragLeaveHidesColumns"),n.dispatchEvent({type:"columnPanelItemDragStart",column:this.columnGroup})},onDragStopped:()=>{n.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:a=>{i&&Krt(e,{columns:this.columnGroup.getLeafColumns(),visibleState:a?.visibleState,pivotState:a?.pivotState,eventType:this.eventType})},onGridExit:()=>{i&&this.onChangeCommon(!1)}};r.addDragSource(o,!0),this.addDestroyFunc(()=>r.removeDragSource(o))}createDragItem(){const e=this.columnGroup.getLeafColumns(),t={},n={};return e.forEach(r=>{const i=r.getId();t[i]=r.isVisible(),n[i]=Qrt(r)}),{columns:e,visibleState:t,pivotState:n}}setupExpandContract(){const{beans:e,eGroupClosedIcon:t,eGroupOpenedIcon:n,eColumnGroupIcons:r}=this;t.appendChild(Ox("columnSelectClosed",e,null)),n.appendChild(Ox("columnSelectOpen",e,null));const i=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(t,{click:i}),this.addManagedElementListeners(n,{click:i});const o=new sy(r,!0);this.addManagedListeners(o,{tap:i}),this.addDestroyFunc(o.destroy.bind(o))}onLabelClicked(){const e=!this.cbSelect.getValue();this.onChangeCommon(e)}onCheckboxChanged(e){this.onChangeCommon(e.selected)}getVisibleLeafColumns(){const e=[],t=n=>{n.forEach(r=>{r.passesFilter&&(r.group?t(r.children):e.push(r.column))})};return t(this.modelItem.children),e}onChangeCommon(e){this.refreshAriaLabel(),!this.processingColumnStateChange&&Xrt(this.beans,this.modelItem.children,e,this.eventType)}refreshAriaLabel(){const{cbSelect:e,focusWrapper:t,displayName:n}=this,r=this.getLocaleTextFunc(),i=r("ariaColumnGroup","Column Group"),o=e.getValue(),a=o===void 0?r("ariaIndeterminate","indeterminate"):o?r("ariaVisible","visible"):r("ariaHidden","hidden"),s=r("ariaToggleVisibility","Press SPACE to toggle visibility");Is(t,`${n} ${i}`),e.setInputAriaLabel(`${s} (${a})`),mK(t,e.getInputElement().id)}onColumnStateChanged(){const e=this.workOutSelectedValue(),t=this.workOutReadOnlyValue();this.processingColumnStateChange=!0;const n=this.cbSelect;n.setValue(e),n.setReadOnly(t),this.toggleCss("ag-column-select-column-group-readonly",t),this.processingColumnStateChange=!1}workOutSelectedValue(){const e=this.beans.colModel.isPivotMode(),t=this.getVisibleLeafColumns();let n=0,r=0;if(t.forEach(i=>{!e&&i.getColDef().lockVisible||(this.isColumnChecked(i,e)?n++:r++)}),!(n>0&&r>0))return n>0}workOutReadOnlyValue(){const e=this.beans.colModel.isPivotMode();let t=0;return this.columnGroup.getLeafColumns().forEach(n=>{e?n.isAnyFunctionAllowed()&&t++:n.getColDef().lockVisible||t++}),t===0}isColumnChecked(e,t){if(t){const n=e.isPivotActive(),r=e.isRowGroupActive(),i=e.isValueActive();return n||r||i}return e.isVisible()}onExpandOrContractClicked(){const e=this.modelItem,t=e.expanded;e.expanded=!t}onExpandChanged(){this.setOpenClosedIcons(),this.refreshAriaExpanded()}setOpenClosedIcons(){const e=this.modelItem.expanded;Nn(this.eGroupClosedIcon,!e),Nn(this.eGroupOpenedIcon,e)}refreshAriaExpanded(){d1(this.focusWrapper,this.modelItem.expanded)}getDisplayName(){return this.displayName}onSelectAllChanged(e){const t=this.cbSelect,n=t.getValue();!t.isReadOnly()&&(e&&!n||!e&&n)&&t.toggle()}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}setSelected(e){this.cbSelect.setValue(e,!0)}},Ore=e=>Es(e)?e.getLeafColumns():e?[e]:[],BUt=(e,t,n,r)=>{if(!n||!t)return null;const i=e.colModel.getCols(),o=i.indexOf(n),a=r?o:o+1,s=jUt(i,t,a);return a-s},jUt=(e,t,n)=>{if(!t)return 0;const r=t[0],i=t.length;return e.indexOf(r)<n?i:0},ORe=(e,t,n)=>e.get("suppressMovableColumns")||t.colModel.isPivotMode()?!0:!!n.find(({colDef:o})=>!!o.suppressMovable||!!o.lockPosition),zRe=(e,t,n)=>{if(!n)return;const{component:r}=n;let i=null,o=n.position==="top";if(r instanceof Jrt?(i=r.getColumns()[0],o=!0):r&&(i=r.column),!i)return;const a=BUt(e,t,i,o);a!=null&&e.colMoves?.moveColumns(t,a,"toolPanelUi")},HUt=e=>e.column,VUt={tag:"div",cls:"ag-column-select-column",children:[{tag:"ag-checkbox",ref:"cbSelect",cls:"ag-column-select-checkbox"},{tag:"span",ref:"eLabel",cls:"ag-column-select-column-label"}]},GUt=class extends Gt{constructor(e,t,n,r){super(),this.modelItem=e,this.allowDragging=t,this.groupsExist=n,this.focusWrapper=r,this.eLabel=at,this.cbSelect=at,this.processingColumnStateChange=!1;const{column:i,depth:o,displayName:a}=e;this.column=i,this.columnDepth=o,this.displayName=a}postConstruct(){this.setTemplate(VUt,[Rm]);const{beans:e,cbSelect:t,displayName:n,eLabel:r,columnDepth:i,groupsExist:o,column:a,gos:s,focusWrapper:l}=this,c=er("columnDrag",e);this.eDragHandle=c,c.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");const u=t.getGui(),d=t.getInputElement();u.insertAdjacentElement("afterend",c),d.setAttribute("tabindex","-1"),r.textContent=n,o&&this.addCss("ag-column-select-add-group-indent"),this.addCss(`ag-column-select-indent-${i}`),this.getGui().style.setProperty("--ag-indentation-level",String(i)),this.tooltipFeature=this.createOptionalManagedBean(e.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"columnToolPanelColumn",getColDef:()=>a.getColDef(),shouldDisplayTooltip:_K(s,()=>r)})),this.setupDragging();const p=this.onColumnStateChanged.bind(this);this.addManagedEventListeners({columnPivotModeChanged:p}),this.addManagedListeners(a,{columnValueChanged:p,columnPivotChanged:p,columnRowGroupChanged:p,visibleChanged:p}),this.addManagedListeners(l,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListeners(t,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedElementListeners(r,{click:this.onLabelClicked.bind(this)}),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),utt(a.getColDef(),s,a,null).forEach(g=>this.toggleCss(g,!0))}getColumn(){return this.column}setupTooltip(){const e=()=>this.tooltipFeature?.setTooltipAndRefresh(this.column.getColDef().headerTooltip);e(),this.addManagedEventListeners({newColumnsLoaded:e})}onContextMenu(e){const{column:t,gos:n}=this;if(n.get("functionsReadOnly"))return;const r=this.createBean(new Zrt(t,e,this.focusWrapper));this.addDestroyFunc(()=>{r.isAlive()&&this.destroyBean(r)})}handleKeyDown(e){e.key===Qe.SPACE&&(e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))}onLabelClicked(){if(this.gos.get("functionsReadOnly"))return;const e=!this.cbSelect.getValue();this.onChangeCommon(e)}onCheckboxChanged(e){this.onChangeCommon(e.selected)}onChangeCommon(e){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),!this.processingColumnStateChange&&Yrt(this.beans,[this.column],e,"toolPanelUi"))}refreshAriaLabel(){const{cbSelect:e,focusWrapper:t,displayName:n}=this,r=this.getLocaleTextFunc(),i=r("ariaColumn","Column"),o=e.getValue()?r("ariaVisible","visible"):r("ariaHidden","hidden"),a=r("ariaToggleVisibility","Press SPACE to toggle visibility");Is(t,`${n} ${i}`),this.cbSelect.setInputAriaLabel(`${a} (${o})`),mK(t,e.getInputElement().id)}setupDragging(){const e=this.eDragHandle;if(!this.allowDragging){Nn(e,!1);return}const t=this.beans,{gos:n,eventSvc:r,dragAndDrop:i}=t;let o=!n.get("suppressDragLeaveHidesColumns");const a={type:bm.ToolPanel,eElement:e,dragItemName:this.displayName,getDefaultIconName:()=>o?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{o=!n.get("suppressDragLeaveHidesColumns"),r.dispatchEvent({type:"columnPanelItemDragStart",column:this.column})},onDragStopped:()=>{r.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:s=>{o&&Krt(t,{columns:[this.column],visibleState:s?.visibleState,pivotState:s?.pivotState,eventType:"toolPanelUi"})},onGridExit:()=>{o&&this.onChangeCommon(!1)}};i.addDragSource(a,!0),this.addDestroyFunc(()=>i.removeDragSource(a))}createDragItem(){const e=this.column.getColId(),t={[e]:this.column.isVisible()},n={[e]:Qrt(this.column)};return{columns:[this.column],visibleState:t,pivotState:n}}onColumnStateChanged(){this.processingColumnStateChange=!0;const e=this.beans.colModel.isPivotMode();if(e){const r=this.column.isAnyFunctionActive();this.cbSelect.setValue(r)}else this.cbSelect.setValue(this.column.isVisible());let t=!0,n=!0;if(e){const r=this.gos.get("functionsReadOnly"),i=!this.column.isAnyFunctionAllowed();t=!r&&!i,n=t}else{const{enableRowGroup:r,enableValue:i,lockPosition:o,suppressMovable:a,lockVisible:s}=this.column.getColDef(),l=!!r||!!i,c=!!o||!!a;t=!s,n=l||!c}this.cbSelect.setReadOnly(!t),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!n),this.toggleCss("ag-column-select-column-readonly",!n&&!t),this.cbSelect.setPassive(!1),this.processingColumnStateChange=!1}getDisplayName(){return this.displayName}onSelectAllChanged(e){const t=this.cbSelect;e!==t.getValue()&&(t.isReadOnly()||t.toggle())}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}isExpandable(){return!1}setExpanded(e){ut(158)}},$Ut=class{constructor(e){this.items=e}getRowCount(){return this.items.length}getRow(e){return this.items[e]}},UUt="ag-column-select-list",XUt=class extends Gt{constructor(){super({tag:"div",cls:UUt,role:"presentation"}),this.destroyColumnItemFuncs=[],this.hasLoadedInitialState=!1,this.isInitialState=!1,this.skipRefocus=!1}wireBeans(e){this.colModel=e.colModel}destroy(){this.destroyColumnTree(),super.destroy()}destroyColumnTree(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach(e=>e()),this.destroyColumnItemFuncs=[]}init(e,t,n){this.params=e;const{suppressSyncLayoutWithGrid:r,contractColumnSelection:i,suppressColumnMove:o}=e;this.allowDragging=t,this.eventType=n,r||this.addManagedEventListeners({columnMoved:this.onColumnsChanged.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.onColumnsChanged.bind(this)});const a=this.fireSelectionChangedEvent.bind(this);this.addManagedEventListeners({columnPivotChanged:a,columnPivotModeChanged:a,columnRowGroupChanged:a,columnValueChanged:a,columnVisible:a,newColumnsLoaded:a}),this.expandGroupsByDefault=!i;const s=o||r,l=this.createManagedBean(new bD({cssIdentifier:"column-select",ariaRole:"tree",moveItemCallback:(c,u)=>{s||this.moveItems(c,u)}}));this.virtualList=l,this.appendChild(l.getGui()),l.setComponentCreator((c,u)=>(vK(u,c.depth+1),this.createComponentFromItem(c,u))),this.colModel.ready&&this.onColumnsChanged(),!s&&this.createItemDragFeature()}createItemDragFeature(){const{gos:e,beans:t,eventSvc:n,virtualList:r}=this;this.createManagedBean(new Lrt(this,r,{dragSourceType:bm.ToolPanel,listItemDragStartEvent:"columnPanelItemDragStart",listItemDragEndEvent:"columnPanelItemDragEnd",eventSource:n,getCurrentDragValue:i=>HUt(i),isMoveBlocked:i=>ORe(e,t,Ore(i)),getNumRows:i=>i.getDisplayedColsList().length,moveItem:(i,o)=>zRe(t,Ore(i),o)}))}moveItems(e,t){const{gos:n,beans:r}=this,{modelItem:i}=e,{group:o,columnGroup:a,column:s,expanded:l}=i,c=Ore(o?a:s);if(ORe(n,r,c))return;const u=this.displayedColsList.indexOf(i),d=t?-1:1;let p=0;if(t){const g=e.columnDepth>0&&s.getParent()?.getChildren();g&&g.length&&s===g[0]&&(p=-1)}else o&&(p=l?i.children.length:0);const h=Math.min(Math.max(u+p+d,0),this.displayedColsList.length-1);this.skipRefocus=!0,zRe(r,c,{position:t?"top":"bottom",component:this.virtualList.getComponentAt(h)}),this.focusRowIfAlive(h-p).then(()=>{this.skipRefocus=!1})}createComponentFromItem(e,t){const n=this.allowDragging;if(e.group){const i=new Jrt(e,n,this.eventType,t);return this.createBean(i),i}const r=new GUt(e,n,this.groupsExist,t);return this.createBean(r),r}onColumnsChanged(){const e=this.params;this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!e.initialState);const t=this.getExpandedStates(),n=this.colModel.isPivotMode();!e.suppressSyncLayoutWithGrid&&!n?this.buildTreeFromWhatGridIsDisplaying():this.buildTreeFromProvidedColumnDefs(),this.setExpandedStates(t),this.markFilteredColumns(),this.flattenAndFilterModel(),this.isInitialState=!1}getDisplayedColsList(){return this.displayedColsList}getExpandedStates(){const e={};if(this.isInitialState){const{expandedGroupIds:t}=this.params.initialState;return t.forEach(n=>{e[n]=!0}),e}return this.allColsTree?(this.forEachItem(t=>{if(!t.group)return;const n=t.columnGroup;n&&(e[n.getId()]=t.expanded)}),e):{}}setExpandedStates(e){if(!this.allColsTree)return;const{isInitialState:t}=this;this.forEachItem(n=>{if(!n.group)return;const r=n.columnGroup;if(r){const i=e[r.getId()];(i!=null||t)&&(n.expanded=!!i)}})}buildTreeFromWhatGridIsDisplaying(){Urt(this.colModel,this.setColumnLayout.bind(this))}setColumnLayout(e){const t=$rt(this.colModel,e);this.buildListModel(t),this.groupsExist=e.some(n=>n&&typeof n.children<"u"),this.markFilteredColumns(),this.flattenAndFilterModel()}buildTreeFromProvidedColumnDefs(){const e=this.colModel;this.buildListModel(e.getColDefColTree()),this.groupsExist=!!e.colDefCols?.treeDepth}buildListModel(e){const t=this.onColumnExpanded.bind(this),n=s=>{s.addEventListener("expandedChanged",t);const l=s.removeEventListener.bind(s,"expandedChanged",t);this.destroyColumnItemFuncs.push(l)},r=this.beans.colNames,i=(s,l,c)=>{s.forEach(u=>{Es(u)?o(u,l,c):a(u,l,c)})},o=(s,l,c)=>{const u=s.getColGroupDef();if(u&&u.suppressColumnsToolPanel)return;if(s.isPadding()){i(s.getChildren(),l,c);return}const p=r.getDisplayNameForProvidedColumnGroup(null,s,"columnToolPanel"),h=new SRe(p,s,l,!0,this.expandGroupsByDefault);c.push(h),n(h),i(s.getChildren(),l+1,h.children)},a=(s,l,c)=>{if(s.getColDef()&&s.getColDef().suppressColumnsToolPanel)return;const d=r.getDisplayNameForColumn(s,"columnToolPanel");c.push(new SRe(d,s,l))};this.destroyColumnTree(),i(e,0,this.allColsTree)}onColumnExpanded(){this.flattenAndFilterModel()}flattenAndFilterModel(){this.displayedColsList=[];const e=r=>{r.passesFilter&&(this.displayedColsList.push(r),r.group&&r.expanded&&r.children.forEach(e))},t=this.virtualList;this.allColsTree.forEach(e),t.setModel(new $Ut(this.displayedColsList));let n=null;this.skipRefocus||(n=t.getLastFocusedRow()),t.refresh(),n!=null&&this.focusRowIfAlive(n),this.notifyListeners(),this.refreshAriaLabel()}refreshAriaLabel(){const e=this.getLocaleTextFunc(),t=e("ariaColumnPanelList","Column List"),n=e("columns","Columns"),r=this.displayedColsList.length;Is(this.virtualList.getAriaElement(),`${t} ${r} ${n}`)}focusRowIfAlive(e){return e===-1?Promise.resolve():new Promise(t=>{window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(e),t()},0)})}forEachItem(e){const t=r=>{r.forEach(i=>{e(i),i.group&&t(i.children)})},n=this.allColsTree;n&&t(n)}doSetExpandedAll(e){this.forEachItem(t=>{t.group&&(t.expanded=e)})}setGroupsExpanded(e,t){if(!t){this.doSetExpandedAll(e);return}const n=[];this.forEachItem(i=>{if(!i.group)return;const o=i.columnGroup.getId();t.indexOf(o)>=0&&(i.expanded=e,n.push(o))});const r=t.filter(i=>!n.includes(i));r.length>0&&ut(157,{unrecognisedGroupIds:r})}getExpandState(){let e=0,t=0;return this.forEachItem(n=>{n.group&&(n.expanded?e++:t++)}),e>0&&t>0?2:t>0?1:0}doSetSelectedAll(e){Xrt(this.beans,this.allColsTree,e,this.eventType)}getSelectionState(){let e=0,t=0;const n=this.colModel.isPivotMode();if(this.forEachItem(r=>{if(r.group||!r.passesFilter)return;const i=r.column,o=i.getColDef();let a;if(n){if(!i.isAllowPivot()&&!i.isAllowRowGroup()&&!i.isAllowValue())return;a=i.isValueActive()||i.isPivotActive()||i.isRowGroupActive()}else{if(o.lockVisible)return;a=i.isVisible()}a?e++:t++}),!(e>0&&t>0))return!(e===0||t>0)}setFilterText(e){this.filterText=Ut(e)?e.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()}markFilteredColumns(){const e=n=>{if(!Ut(this.filterText))return!0;const r=n.displayName;return r==null||r.toLowerCase().indexOf(this.filterText)!==-1},t=(n,r)=>{let i=!1;if(n.group){const a=e(n);n.children.forEach(s=>{const l=t(s,a||r);l&&(i=l)})}const o=r||i?!0:e(n);return n.passesFilter=o,o};this.allColsTree.forEach(n=>t(n,!1))}notifyListeners(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()}fireGroupExpandedEvent(){const e=this.getExpandState();this.dispatchLocalEvent({type:"groupExpanded",state:e})}fireSelectionChangedEvent(){if(!this.allColsTree)return;const e=this.getSelectionState();this.dispatchLocalEvent({type:"selectionChanged",state:e})}getExpandedGroups(){const e=[];return this.allColsTree&&this.forEachItem(t=>{t.group&&t.expanded&&e.push(t.columnGroup.getId())}),e}},YUt={selector:"AG-PRIMARY-COLS-LIST",component:XUt},KUt={tag:"div",cls:"ag-column-select",children:[{tag:"ag-primary-cols-header",ref:"primaryColsHeaderPanel"},{tag:"ag-primary-cols-list",ref:"primaryColsListPanel"}]},eit=class extends Gt{constructor(){super(KUt,[EUt,YUt]),this.primaryColsHeaderPanel=at,this.primaryColsListPanel=at,this.registerCSS(AUt)}init(e,t,n){const{primaryColsHeaderPanel:r,primaryColsListPanel:i}=this;r.init(t);const o=t.suppressColumnFilter,a=t.suppressColumnSelectAll;t.suppressColumnExpandAll&&o&&a&&r.setDisplayed(!1),this.addManagedListeners(i,{groupExpanded:l=>{r.setExpandState(l.state),t.onStateUpdated()},selectionChanged:l=>r.setSelectionState(l.state)}),i.init(t,e,n),this.addManagedListeners(r,{expandAll:i.doSetExpandedAll.bind(i,!0),collapseAll:i.doSetExpandedAll.bind(i,!1),selectAll:i.doSetSelectedAll.bind(i,!0),unselectAll:i.doSetSelectedAll.bind(i,!1),filterChanged:l=>i.setFilterText(l.filterText)}),this.positionableFeature=this.createManagedBean(new PK(this.getGui(),{minHeight:100}))}toggleResizable(e){this.positionableFeature.setResizable(e?{bottom:!0}:!1)}expandGroups(e){this.primaryColsListPanel.setGroupsExpanded(!0,e)}collapseGroups(e){this.primaryColsListPanel.setGroupsExpanded(!1,e)}setColumnLayout(e){this.primaryColsListPanel.setColumnLayout(e)}syncLayoutWithGrid(){this.primaryColsListPanel.onColumnsChanged()}getExpandedGroups(){return this.primaryColsListPanel.getExpandedGroups()}},QUt=".ag-column-panel{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.ag-pivot-mode-panel{display:flex;height:var(--ag-header-height)}.ag-pivot-mode-select{align-items:center;display:flex}:where(.ag-ltr) .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-panel-column-select{border-bottom:var(--ag-tool-panel-separator-border)}.ag-column-panel-column-select:where(:nth-child(n+2 of :not(.ag-hidden))){border-top:var(--ag-tool-panel-separator-border)}:where(.ag-column-panel) .ag-column-drop-vertical{flex:1 1 0px;min-height:50px;&:where(:not(.ag-last-column-drop)){border-bottom:var(--ag-tool-panel-separator-border)}}",ZUt=class extends Gt{constructor(){super({tag:"div",cls:"ag-column-panel"}),this.initialised=!1,this.childDestroyFuncs=[],this.registerCSS(QUt)}wireBeans(e){this.colToolPanelFactory=e.colToolPanelFactory}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}init(e){const n={...Gn(this.gos,{suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1}),...e};this.params=n;const{childDestroyFuncs:r,colToolPanelFactory:i,gos:o}=this,a=o.isModuleRegistered("SharedPivot"),s=a||o.isModuleRegistered("SharedRowGrouping");!n.suppressPivotMode&&i&&a&&(this.pivotModePanel=i.createPivotModePanel(this,r));const l=this.createBean(new eit);if(this.primaryColsPanel=l,r.push(()=>this.destroyBean(this.primaryColsPanel)),l.init(!0,n,"toolPanelUi"),l.addCss("ag-column-panel-column-select"),this.appendChild(l),i){!n.suppressRowGroups&&s&&(this.rowGroupDropZonePanel=i.createRowGroupPanel(this,r)),!n.suppressValues&&s&&(this.valuesDropZonePanel=i.createValuesPanel(this,r)),!n.suppressPivots&&a&&(this.pivotDropZonePanel=i.createPivotPanel(this,r)),this.setLastVisible();const[c]=this.addManagedEventListeners({columnPivotModeChanged:()=>{this.resetChildrenHeight(),this.setLastVisible()}});r.push(()=>c())}this.initialised=!0}setPivotModeSectionVisible(e){const t=this.colToolPanelFactory;t&&(this.pivotModePanel=t.setPanelVisible(this.pivotModePanel,e,t.createPivotModePanel.bind(t,this,this.childDestroyFuncs,!0)),this.setLastVisible())}setRowGroupsSectionVisible(e){const t=this.colToolPanelFactory;t&&(this.rowGroupDropZonePanel=t.setPanelVisible(this.rowGroupDropZonePanel,e,t.createRowGroupPanel.bind(t,this,this.childDestroyFuncs)),this.setLastVisible())}setValuesSectionVisible(e){const t=this.colToolPanelFactory;t&&(this.valuesDropZonePanel=t.setPanelVisible(this.valuesDropZonePanel,e,t.createValuesPanel.bind(t,this,this.childDestroyFuncs)),this.setLastVisible())}setPivotSectionVisible(e){const t=this.colToolPanelFactory;t&&(this.pivotDropZonePanel=t.setPanelVisible(this.pivotDropZonePanel,e,t.createPivotPanel.bind(t,this,this.childDestroyFuncs)),this.pivotDropZonePanel?.setDisplayed(e),this.setLastVisible())}setResizers(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(e=>{if(!e)return;const t=e.getGui();e.toggleResizable(!t.classList.contains("ag-last-column-drop")&&!t.classList.contains("ag-hidden"))})}setLastVisible(){const e=this.getGui();Array.prototype.slice.call(e.querySelectorAll(".ag-column-drop")).forEach(i=>i.classList.remove("ag-last-column-drop"));const n=e.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),r=zr(n);r&&r.classList.add("ag-last-column-drop"),this.setResizers()}resetChildrenHeight(){const t=this.getGui().children;for(let n=0;n<t.length;n++){const{style:r}=t[n];r.removeProperty("height"),r.removeProperty("flex")}}expandColumnGroups(e){this.primaryColsPanel.expandGroups(e)}collapseColumnGroups(e){this.primaryColsPanel.collapseGroups(e)}setColumnLayout(e){this.primaryColsPanel.setColumnLayout(e)}syncLayoutWithGrid(){this.primaryColsPanel.syncLayoutWithGrid()}destroyChildren(){const e=this.childDestroyFuncs;e.forEach(t=>t()),e.length=0,Xi(this.getGui())}refresh(e){return this.destroyChildren(),this.init(e),!0}getState(){return{expandedGroupIds:this.primaryColsPanel.getExpandedGroups()}}destroy(){this.destroyChildren(),super.destroy()}},JUt=".ag-column-drop{align-items:center;display:inline-flex;overflow:auto;position:relative;width:100%}.ag-column-drop-list{align-items:center;display:flex}.ag-column-drop-cell{align-items:center;background-color:var(--ag-column-drop-cell-background-color);border:var(--ag-column-drop-cell-border);border-radius:500px;color:var(--ag-column-drop-cell-text-color);display:flex;padding:calc(var(--ag-spacing)*.25);position:relative;&:focus-visible{box-shadow:var(--ag-focus-shadow)}:where(.ag-drag-handle){color:var(--ag-column-drop-cell-drag-handle-color)}}:where(.ag-ltr) .ag-column-drop-cell{padding-left:calc(var(--ag-spacing)*.75)}:where(.ag-rtl) .ag-column-drop-cell{padding-right:calc(var(--ag-spacing)*.75)}.ag-column-drop-cell-text{flex:1 1 auto;margin:0 var(--ag-spacing);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{align-items:stretch;display:flex;flex-direction:column;min-height:75px;overflow:hidden}.ag-column-drop-vertical-title-bar{align-items:center;display:flex;flex:none;padding:var(--ag-widget-container-vertical-padding) calc(var(--ag-spacing)*2) 0}.ag-column-drop-vertical-list{align-items:stretch;flex-direction:column;flex-grow:1;overflow-x:auto;padding-bottom:var(--ag-spacing);padding-left:var(--ag-spacing);padding-right:var(--ag-spacing);position:relative;>*{flex:none}}:where(.ag-column-drop-empty) .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-cell-button{cursor:pointer;min-width:0;opacity:.75;&:hover{opacity:1}}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{width:50%!important}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;white-space:nowrap}:where(.ag-ltr) .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-column-drop-horizontal-list{gap:var(--ag-cell-widget-spacing)}.ag-column-drop-vertical-cell{margin-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-icon{margin-right:var(--ag-widget-horizontal-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-icon{margin-left:var(--ag-widget-horizontal-spacing)}.ag-select-agg-func-popup{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);height:calc(var(--ag-spacing)*5*3.5);padding:0;position:absolute}.ag-select-agg-func-virtual-list-item{cursor:default;&:hover{background-color:var(--ag-selected-row-background-color)}}:where(.ag-ltr) .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-spacing)*2)}:where(.ag-ltr) .ag-column-drop-horizontal-half-width:where(:not(:last-child)){border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-column-drop-horizontal-half-width:where(:not(:last-child)){border-left:1px solid var(--ag-border-color)}";function TRe(e,t,n){e==null||t==null||e.splice(n,0,...t)}var eXt={tag:"div",cls:"ag-unselectable",role:"presentation"},tit=class extends Gt{constructor(e){super(eXt),this.horizontal=e,this.state="notDragging",this.guiDestroyFunctions=[],this.childPillComponents=[],this.resizeEnabled=!1,this.addElementClasses(this.getGui()),this.ePillDropList=Nr({tag:"div"}),this.addElementClasses(this.ePillDropList,"list"),this.registerCSS(JUt)}toggleResizable(e){this.positionableFeature.setResizable(e?{bottom:!0}:!1),this.resizeEnabled=e}isSourceEventFromTarget(e){const{dropZoneTarget:t,dragSource:n}=e;return t.contains(n.eElement)}destroy(){this.destroyGui(),super.destroy()}destroyGui(){this.guiDestroyFunctions.forEach(e=>e()),this.guiDestroyFunctions.length=0,this.childPillComponents.length=0,Xi(this.getGui()),Xi(this.ePillDropList)}init(e){this.params=e??{},this.createManagedBean(new Mw(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.onKeyDown.bind(this)})),this.setupDropTarget(),this.positionableFeature=new PK(this.getGui()),this.createManagedBean(this.positionableFeature),this.refreshGui(),Is(this.ePillDropList,this.getAriaLabel())}onTabKeyDown(e){const t=lm(this.getFocusableElement(),null,!0),n=t.length;if(n===0)return;const{shiftKey:r}=e,i=$i(this.beans),o=i===t[0],a=i===zr(t);n===1||o&&r||a&&!r||t[r?0:n-1].focus()}onKeyDown(e){const{key:t}=e,n=!this.horizontal;let r=t===Qe.DOWN,i=t===Qe.UP;if(!n){const o=this.gos.get("enableRtl");r=!o&&t===Qe.RIGHT||o&&t===Qe.LEFT,i=!o&&t===Qe.LEFT||o&&t===Qe.RIGHT}if(!(!r&&!i))if(e.preventDefault(),e.shiftKey)this.moveFocusedItem(i);else{const o=Cd(this.beans,this.getFocusableElement(),!1,i);o&&o.focus()}}moveFocusedItem(e){const t=this.getFocusedItem();if(t===-1)return;const n=e?-1:1;if(!this.normalizeAndUpdateInsertIndex(t,t+n))return;const i=this.childPillComponents[t];if(!i.isMovable())return;const o=i.getItem();this.focusItemAtIndex(this.insertIndex),this.rearrangeItems([o],!0)}addElementClasses(e,t){t=t?`-${t}`:"";const n=this.horizontal?"horizontal":"vertical";e.classList.add(`ag-column-drop${t}`,`ag-column-drop-${n}${t}`)}setupDropTarget(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),onDragCancel:this.onDragCancel.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.beans.dragAndDrop?.addDropTarget(this.dropTarget)}minimumAllowedNewInsertIndex(){return 0}checkInsertIndex(e){const t=this.getNewInsertIndex(e);return t<0?!1:this.normalizeAndUpdateInsertIndex(this.insertIndex,t)}normalizeAndUpdateInsertIndex(e,t){const n=this.minimumAllowedNewInsertIndex(),r=Math.max(n,t),i=r!==e;return i&&(this.insertIndex=r),i}getNewInsertIndex(e){const t=e.event,n=this.horizontal?t.clientX:t.clientY,r=this.childPillComponents.map(o=>o.getGui().getBoundingClientRect()),i=r.findIndex(o=>this.horizontal?o.right>n&&o.left<n:o.top<n&&o.bottom>n);if(i===-1){const o=this.gos.get("enableRtl");return r.every(l=>n>(this.horizontal?l.right:l.bottom))?o&&this.horizontal?0:this.childPillComponents.length:r.every(l=>n<(this.horizontal?l.left:l.top))?o&&this.horizontal?this.childPillComponents.length:0:this.insertIndex}return this.insertIndex<=i?i+1:i}checkDragStartedBySelf(e){this.state==="notDragging"&&(this.state="rearrangeItems",this.potentialDndItems=this.getItems(e.dragSource.getDragItem()),this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())}onDragging(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()}handleDragEnterEnd(e){}onDragEnter(e){const t=this.getItems(e.dragSource.getDragItem());this.state="newItemsIn";const n=t.filter(i=>this.isItemDroppable(i,e)),r=n.every(i=>this.childPillComponents.map(o=>o.getItem()).indexOf(i)!==-1);if(n.length!==0){if(this.potentialDndItems=n,r){this.state="notDragging";return}this.handleDragEnterEnd(e),this.checkInsertIndex(e),this.refreshGui()}}isPotentialDndItems(){return!!this.potentialDndItems?.length}handleDragLeaveEnd(e){}onDragLeave(e){if(this.state==="rearrangeItems"){const t=this.getItems(e.dragSource.getDragItem());this.removeItems(t)}this.isPotentialDndItems()&&(this.handleDragLeaveEnd(e),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragCancel(e){this.isPotentialDndItems()&&(this.state==="newItemsIn"&&this.handleDragLeaveEnd(e),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragStop(){this.isPotentialDndItems()&&(this.state==="newItemsIn"?this.addItems(this.potentialDndItems):this.rearrangeItems(this.potentialDndItems),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}removeItems(e){const t=this.getExistingItems().filter(n=>!e.includes(n));this.updateItems(t)}addItems(e){if(!e)return;const t=this.getExistingItems().slice(),n=e.filter(r=>t.indexOf(r)<0);TRe(t,n,this.insertIndex),this.updateItems(t)}addItem(e){this.insertIndex=this.getExistingItems().length,this.addItems([e]),this.refreshGui()}rearrangeItems(e,t){let n;return t?n=this.getExistingItems().filter(r=>e.indexOf(r)===-1):n=this.getNonGhostItems().slice(),TRe(n,e,this.insertIndex),Md(n,this.getExistingItems())?!1:(this.updateItems(n),!0)}refreshGui(){let e=0;this.horizontal||(e=this.ePillDropList.scrollTop);const t=this.resizeEnabled,n=this.getFocusedItem(),{eGridDiv:r}=this.beans,i=EK();let o=null;i&&(o=Cd(this.beans,r)??Cd(this.beans,r,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addItemsToGui(),e!==0&&(this.ePillDropList.scrollTop=e),t&&this.toggleResizable(t),i&&this.restoreFocus(n,o)}getFocusedItem(){const e=this.getGui(),t=$i(this.beans);return e.contains(t)?Array.from(e.querySelectorAll(".ag-column-drop-cell")).indexOf(t):-1}focusItemAtIndex(e){const t=this.getGui(),r=Array.from(t.querySelectorAll(".ag-column-drop-cell"))[e];r&&r.focus({preventScroll:!0})}restoreFocus(e,t){const n=this.getGui(),r=Array.from(n.querySelectorAll(".ag-column-drop-cell"));if(e===-1)return;r.length===0&&t.focus();const i=Math.min(r.length-1,e),o=r[i];o&&o.focus()}focusList(e){const t=e?this.childPillComponents.length-1:0;this.restoreFocus(t,this.getFocusableElement())}getNonGhostItems(){const e=this.getExistingItems();return this.isPotentialDndItems()?e.filter(t=>!this.potentialDndItems.includes(t)):e}addItemsToGui(){const t=this.getNonGhostItems().map(n=>this.createItemComponent(n,!1));if(this.isPotentialDndItems()){const n=this.potentialDndItems.map(r=>this.createItemComponent(r,!0));this.insertIndex>=t.length?t.push(...n):t.splice(this.insertIndex,0,...n)}this.appendChild(this.ePillDropList),t.forEach((n,r)=>{r>0&&this.addArrow(this.ePillDropList),this.ePillDropList.appendChild(n.getGui())}),this.addAriaLabelsToComponents()}addAriaLabelsToComponents(){const{childPillComponents:e,ePillDropList:t}=this,n=e.length;C0(t,n===0?"presentation":"listbox");for(let r=0;r<n;r++){const o=e[r].getGui();yK(o,r+1),bK(o,n)}}createItemComponent(e,t){const n=this.createPillComponent(e,this.dropTarget,t,this.horizontal);return n.addEventListener("columnRemove",this.removeItems.bind(this,[e])),this.createBean(n),this.guiDestroyFunctions.push(()=>this.destroyBean(n)),t||this.childPillComponents.push(n),n}addIconAndTitleToGui(){const{title:e,icon:t}=this.params;if(!e||!t)return;const n=Nr({tag:"div"});if(X2e(n,!0),this.addElementClasses(n,"title-bar"),this.addElementClasses(t,"icon"),this.toggleCss("ag-column-drop-empty",this.isExistingItemsEmpty()),n.appendChild(t),!this.horizontal){const r=Nr({tag:"span"});this.addElementClasses(r,"title"),r.textContent=e,n.appendChild(r)}this.appendChild(n)}isExistingItemsEmpty(){return this.getExistingItems().length===0}addEmptyMessageToGui(){const{emptyMessage:e}=this.params;if(!e||!this.isExistingItemsEmpty()||this.isPotentialDndItems())return;const t=Nr({tag:"span"});t.textContent=e,this.addElementClasses(t,"empty-message"),this.ePillDropList.appendChild(t)}addArrow(e){if(this.horizontal){const t=this.gos.get("enableRtl"),n=er(t?"panelDelimiterRtl":"panelDelimiter",this.beans);this.addElementClasses(n,"cell-separator"),e.appendChild(n)}}},tXt={tag:"span",role:"option",children:[{tag:"span",ref:"eDragHandle",cls:"ag-drag-handle ag-column-drop-cell-drag-handle",role:"presentation"},{tag:"span",ref:"eText",cls:"ag-column-drop-cell-text",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eButton",cls:"ag-column-drop-cell-button",role:"presentation"}]},nit=class extends Gt{constructor(e,t,n,r,i){super(),this.dragSourceDropTarget=e,this.ghost=t,this.horizontal=n,this.template=r,this.agComponents=i,this.eText=at,this.eDragHandle=at,this.eButton=at}postConstruct(){this.setTemplate(this.template??tXt,this.agComponents);const e=this.getGui(),{beans:t,eDragHandle:n,eText:r,eButton:i}=this;this.addElementClasses(e),this.addElementClasses(n,"drag-handle"),this.addElementClasses(r,"text"),this.addElementClasses(i,"button"),n.appendChild(er("columnDrag",t)),i.appendChild(er("cancel",t)),this.tooltipFeature=this.createOptionalManagedBean(t.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui()})),this.setupComponents(),!this.ghost&&this.isDraggable()&&this.addDragSource(),this.setupAria(),this.setupTooltip(),this.activateTabIndex(),this.refreshDraggable()}isDraggable(){return!0}refreshDraggable(){this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!this.isDraggable())}setupAria(){const e=this.getLocaleTextFunc(),t=[this.getAriaDisplayName()];this.addAdditionalAriaInstructions(t,e),Is(this.getGui(),t.join(". "))}addAdditionalAriaInstructions(e,t){if(this.isRemovable()){const n=t("ariaDropZoneColumnComponentDescription","Press DELETE to remove");e.push(n)}}setupTooltip(){const e=()=>this.tooltipFeature?.setTooltipAndRefresh(this.getTooltip());e(),this.addManagedEventListeners({newColumnsLoaded:e})}getDragSourceId(){}getDefaultIconName(){return"notAllowed"}addDragSource(){const{beans:{dragAndDrop:e},eDragHandle:t}=this,n=this.createGetDragItem(),r=this.getDefaultIconName(),i={type:this.getDragSourceType(),sourceId:this.getDragSourceId(),eElement:t,getDefaultIconName:()=>r,getDragItem:n,dragItemName:this.getDisplayName()};e?.addDragSource(i,!0),this.addDestroyFunc(()=>e?.removeDragSource(i))}setupComponents(){this.eText.textContent=this.getDisplayValue(),this.setupRemove(),this.ghost&&this.addCss("ag-column-drop-cell-ghost")}isRemovable(){return!0}refreshRemove(){Nn(this.eButton,this.isRemovable())}setupRemove(){this.refreshRemove();const e={type:"columnRemove"};this.addGuiEventListener("keydown",n=>this.onKeyDown(n)),this.addManagedElementListeners(this.eButton,{click:n=>{this.dispatchLocalEvent(e),n.stopPropagation()}});const t=new sy(this.eButton);this.addManagedListeners(t,{tap:()=>this.dispatchLocalEvent(e)}),this.addDestroyFunc(t.destroy.bind(t))}onKeyDown(e){e.key===Qe.DELETE&&this.isRemovable()&&(e.preventDefault(),this.dispatchLocalEvent({type:"columnRemove"}))}getDisplayValue(){return this.getDisplayName()}addElementClasses(e,t){t=t?`-${t}`:"";const n=this.horizontal?"horizontal":"vertical";e.classList.add(`ag-column-drop-cell${t}`,`ag-column-drop-${n}-cell${t}`)}destroy(){super.destroy(),this.dragSourceDropTarget=null}},nXt=class extends nit{constructor(e,t,n,r,i){super(t,n,i),this.column=e,this.dropZonePurpose=r,this.eSortIndicator=at,this.popupShowing=!1}postConstruct(){const{sortSvc:e,colNames:t}=this.beans;this.template={tag:"span",role:"option",children:[{tag:"span",ref:"eDragHandle",cls:"ag-drag-handle ag-column-drop-cell-drag-handle",role:"presentation"},{tag:"span",ref:"eText",cls:"ag-column-drop-cell-text",attrs:{"aria-hidden":"true"}},e?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:void 0,{tag:"span",ref:"eButton",cls:"ag-column-drop-cell-button",role:"presentation"}]},e&&(this.agComponents=[e.getSortIndicatorSelector()]),this.displayName=t.getDisplayNameForColumn(this.column,"columnDrop"),super.postConstruct(),e&&(this.setupSort(),this.addManagedEventListeners({sortChanged:()=>{this.setupAria()}})),this.isGroupingZone()&&this.addManagedPropertyListener("groupLockGroupColumns",()=>{this.refreshRemove(),this.refreshDraggable(),this.setupAria()})}getItem(){return this.column}getDisplayName(){return this.displayName}getTooltip(){return this.column.getColDef().headerTooltip}addAdditionalAriaInstructions(e,t){const n=this.gos.get("rowGroupPanelSuppressSort"),r=this.gos.get("functionsReadOnly");if(this.isAggregationZone()&&!r){const i=t("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");e.push(i)}if(this.isGroupingZone()&&this.column.isSortable()&&!n){const i=t("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");e.push(i)}super.addAdditionalAriaInstructions(e,t)}isMovable(){return this.isDraggable()}isDraggable(){return this.isReadOnly()}isRemovable(){return this.isReadOnly()}isReadOnly(){return!this.isGroupingAndLocked()&&!this.gos.get("functionsReadOnly")}getAriaDisplayName(){const e=this.getLocaleTextFunc(),{name:t,aggFuncName:n}=this.getColumnAndAggFuncName(),r=e("ariaDropZoneColumnComponentAggFuncSeparator"," of "),i={asc:e("ariaDropZoneColumnComponentSortAscending","ascending"),desc:e("ariaDropZoneColumnComponentSortDescending","descending")},o=this.column.getSort(),a=this.gos.get("rowGroupPanelSuppressSort");return[n&&`${n}${r}`,t,this.isGroupingZone()&&!a&&o&&`, ${i[o]}`].filter(s=>!!s).join("")}getColumnAndAggFuncName(){const e=this.displayName;let t="";if(this.isAggregationZone()){const n=this.column.getAggFunc(),r=typeof n=="string"?n:"agg";t=this.getLocaleTextFunc()(r,r)}return{name:e,aggFuncName:t}}setupSort(){if(!(!this.column.isSortable()||!this.isGroupingZone())&&!this.gos.get("rowGroupPanelSuppressSort")){this.eSortIndicator.setupSort(this.column,!0);const e=t=>{t.preventDefault(),this.beans.sortSvc.progressSortFromEvent(this.column,t)};this.addGuiEventListener("click",e),this.addGuiEventListener("keydown",t=>{t.key===Qe.ENTER&&this.isGroupingZone()&&e(t)})}}getDefaultIconName(){return"hide"}createGetDragItem(){const{column:e}=this;return()=>{const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}}}setupComponents(){super.setupComponents(),this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))}onKeyDown(e){super.onKeyDown(e),e.key===Qe.ENTER&&this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&(e.preventDefault(),this.onShowAggFuncSelection())}getDisplayValue(){const{name:e,aggFuncName:t}=this.getColumnAndAggFuncName();return this.isAggregationZone()?`${t}(${e})`:e}onShowAggFuncSelection(){if(this.popupShowing)return;this.popupShowing=!0;const{aggFuncSvc:e,popupSvc:t}=this.beans,n=new bD({cssIdentifier:"select-agg-func"}),r=e.getFuncNames(this.column),i=this.getGui(),o=n.getGui();n.setModel({getRow:function(p){return r[p]},getRowCount:function(){return r.length}}),this.createBean(n);const a=Nr({tag:"div",cls:"ag-select-agg-func-popup"});a.style.top="0px",a.style.left="0px",a.appendChild(o),a.style.width=`${i.clientWidth}px`;const[s]=this.addManagedElementListeners(a,{focusout:p=>{!a.contains(p.relatedTarget)&&u&&u.hideFunc()}}),l=p=>{this.destroyBean(n),this.popupShowing=!1,p?.key==="Escape"&&i.focus(),s&&s()},c=this.getLocaleTextFunc(),u=t.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:l,ariaLabel:c("ariaLabelAggregationFunction","Aggregation Function")});u&&n.setComponentCreator(this.createAggSelect.bind(this,u.hideFunc)),n.addGuiEventListener("keydown",p=>{if(p.key===Qe.ENTER||p.key===Qe.SPACE){const h=n.getLastFocusedRow();if(h==null)return;const g=n.getComponentAt(h);g&&g.selectItem()}}),t.positionPopupByComponent({type:"aggFuncSelect",eventSource:i,ePopup:a,keepWithinBounds:!0,column:this.column,position:"under"}),n.refresh();let d=r.findIndex(p=>p===this.column.getAggFunc());d===-1&&(d=0),n.focusRow(d)}createAggSelect(e,t){const n=()=>{e(),this.getGui().focus(),this.beans.valueColsSvc?.setColumnAggFunc?.(this.column,t,"toolPanelDragAndDrop")},r=this.getLocaleTextFunc(),i=t.toString(),o=r(i,i);return new rXt(n,o)}isGroupingAndLocked(){return this.isGroupingZone()&&yW(this.column,this.beans)}isAggregationZone(){return this.dropZonePurpose==="aggregation"}isGroupingZone(){return this.dropZonePurpose==="rowGroup"}getDragSourceType(){return bm.ToolPanel}destroy(){super.destroy(),this.column=null}},rXt=class extends Gt{constructor(e,t){super({tag:"div",cls:"ag-select-agg-func-item",children:t}),this.selectItem=e,this.addGuiEventListener("click",this.selectItem)}},eMe=class extends tit{constructor(e,t){super(e),this.dropZonePurpose=t,this.addElementClasses(this.getGui(),this.dropZonePurpose.toLowerCase())}init(e){super.init(e),this.addManagedEventListeners({newColumnsLoaded:this.refreshGui.bind(this)}),this.addManagedPropertyListeners(["functionsReadOnly","rowGroupPanelSuppressSort","groupLockGroupColumns"],this.refreshGui.bind(this))}getItems(e){return e.columns??[]}isInterestedIn(e){return e===bm.HeaderCell||e===bm.ToolPanel}minimumAllowedNewInsertIndex(){const{gos:e,rowGroupColsSvc:t}=this.beans,n=e.get("groupLockGroupColumns"),r=t?.columns.length??0;return n===-1?r:Math.min(n,r)}showOrHideColumnOnExit(e){return this.isRowGroupPanel()&&zet(this.gos,!0)&&!e.fromNudge}handleDragEnterEnd(e){if(this.showOrHideColumnOnExit(e)){const r=e.dragSource.getDragItem().columns;this.setColumnsVisible(r,!1,"uiColumnDragged")}}handleDragLeaveEnd(e){if(this.showOrHideColumnOnExit(e)){const n=e.dragSource.getDragItem();this.setColumnsVisible(n.columns,!0,"uiColumnDragged")}}setColumnsVisible(e,t,n){if(e){const r=e.filter(i=>!i.getColDef().lockVisible);this.beans.colModel.setColsVisible(r,t,n)}}isRowGroupPanel(){return this.dropZonePurpose==="rowGroup"}createPillComponent(e,t,n,r){return new nXt(e,t,n,this.dropZonePurpose,r)}},rit=class extends eMe{constructor(e){super(e,"pivot")}postConstruct(){const e=this.getLocaleTextFunc(),t=e("pivotColumnsEmptyMessage","Drag here to set column labels"),n=e("pivots","Column Labels");super.init({icon:er("pivotPanel",this.beans,null),emptyMessage:t,title:n}),this.addManagedEventListeners({newColumnsLoaded:this.refresh.bind(this),columnPivotChanged:this.refresh.bind(this),columnPivotModeChanged:this.checkVisibility.bind(this)}),this.refresh()}getAriaLabel(){return this.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")}refresh(){this.checkVisibility(),this.refreshGui()}checkVisibility(){const e=this.beans.colModel,t=e.isPivotMode();if(this.horizontal)switch(this.gos.get("pivotPanelShow")){case"always":this.setDisplayed(t);break;case"onlyWhenPivoting":{const n=e.isPivotActive();this.setDisplayed(t&&n);break}default:this.setDisplayed(!1);break}else this.setDisplayed(t)}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()?!1:e.isAllowPivot()&&(!e.isPivotActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.beans.pivotColsSvc?.setColumns(e,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"pivot":"notAllowed"}getExistingItems(){return this.beans.pivotColsSvc?.columns??[]}},iit=class extends eMe{constructor(e){super(e,"rowGroup")}postConstruct(){const e=this.getLocaleTextFunc(),t=e("rowGroupColumnsEmptyMessage","Drag here to set row groups"),n=e("groups","Row Groups");super.init({icon:er("rowGroupPanel",this.beans,null),emptyMessage:t,title:n}),this.addManagedEventListeners({columnRowGroupChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()||e.colDef.showRowGroup?!1:e.isAllowRowGroup()&&(!e.isRowGroupActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.beans.rowGroupColsSvc?.setColumns(e,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"group":"notAllowed"}getExistingItems(){return this.beans.rowGroupColsSvc?.columns??[]}},iXt=class extends eMe{constructor(e){super(e,"aggregation")}postConstruct(){const e=this.getLocaleTextFunc(),t=e("valueColumnsEmptyMessage","Drag here to aggregate"),n=e("values","Values");super.init({icon:er("valuePanel",this.beans,null),emptyMessage:t,title:n}),this.addManagedEventListeners({columnValueChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")}getIconName(){return this.isPotentialDndItems()?"aggregate":"notAllowed"}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()?!1:e.isAllowValue()&&(!e.isValueActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.beans.valueColsSvc?.setColumns(e,"toolPanelUi")}getExistingItems(){return this.beans.valueColsSvc?.columns??[]}},oXt={tag:"div",cls:"ag-pivot-mode-panel",children:[{tag:"ag-toggle-button",ref:"cbPivotMode",cls:"ag-pivot-mode-select"}]},aXt=class extends Gt{constructor(){super(...arguments),this.cbPivotMode=at}postConstruct(){this.setTemplate(oXt,[Z_t]);const e=this.cbPivotMode,{colModel:t,ctrlsSvc:n,gos:r}=this.beans;e.setValue(t.isPivotMode());const i=this.getLocaleTextFunc();e.setLabel(i("pivotMode","Pivot Mode"));const o=()=>{const s=!!e.getValue();s!==t.isPivotMode()&&(r.updateGridOptions({options:{pivotMode:s},source:"toolPanelUi"}),n.getHeaderRowContainerCtrls().forEach(l=>l.refresh()))},a=()=>{const s=t.isPivotMode();e.setValue(s)};this.addManagedListeners(e,{fieldValueChanged:o}),this.addManagedEventListeners({newColumnsLoaded:a,columnPivotModeChanged:a})}},sXt=class extends dt{constructor(){super(...arguments),this.beanName="colToolPanelFactory"}setPanelVisible(e,t,n){return e?e.setDisplayed(t):t&&(e=n()),e}createRowGroupPanel(e,t){return this.createPanel(e,t,new iit(!1))}createValuesPanel(e,t){return this.createPanel(e,t,new iXt(!1))}createPivotPanel(e,t){return this.createPanel(e,t,new rit(!1))}createPivotModePanel(e,t,n){return this.createPanel(e,t,new aXt,n)}createPanel(e,t,n,r){return n=e.createBean(n),t.push(()=>e.destroyBean(n)),r?e.prependChild(n):e.appendChild(n),n}},lXt={moduleName:"ColumnsToolPanel",version:wi,beans:[sXt],userComponents:{agColumnsToolPanel:ZUt},icons:{ensureColumnVisible:"column-arrow",columnsToolPanel:"columns",menuAddRowGroup:"group",menuRemoveRowGroup:"group",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate"},dependsOn:[es,Zye,Fye,y3,pM,GK]},cXt=class extends dt{constructor(){super(...arguments),this.beanName="chartMenuItemMapper"}getChartItems(e){const t=this.beans,n=t.chartSvc,r=e==="pivotChart";if(!n)return null;const i=this.getLocaleTextFunc.bind(this),o=r?new uXt(t,n,i):new dXt(t,n,i),a=n.isEnterprise();let s=o.getMenuItem();if(s&&s.subMenu&&!a){const c=u=>({...u,subMenu:u.subMenu?.filter(d=>!d._enterprise).map(d=>c(d))});s=c(s)}const l=this.gos.get("chartToolPanelsDef")?.settingsPanel?.chartGroupsDef;return l&&(s=this.filterAndOrderChartMenu(s,l,o.getConfigLookup())),this.cleanInternals(s)}cleanInternals(e){if(!e)return e;const t=n=>(delete n?._key,delete n?._enterprise,n?.subMenu?.forEach(r=>t(r)),n);return t(e)}buildLookup(e){const t={},n=r=>{t[r._key]=r,r.subMenu&&r.subMenu.forEach(i=>n(i))};return n(e),t}filterAndOrderChartMenu(e,t,n){const r=this.buildLookup(e),i={...e,subMenu:[]};for(const o of Object.keys(t)){const a=t[o],s=n[o];if(s===null)continue;if(s==null){ut(173,{group:o});continue}const l=r[s._key];if(l)if(l.subMenu){const c=a.map(u=>{const d=s[u];if(d==null){ut(174,{group:o,chartType:u});return}return r[d]}).filter(u=>u!==void 0);c.length>0&&(l.subMenu=c,i.subMenu?.push(l))}else i.subMenu?.push(l)}return i.subMenu?.length==0?null:i}},uXt=class{constructor(e,t,n){this.beans=e,this.chartSvc=t,this.getLocaleTextFunc=n}getMenuItem(){const e=this.getLocaleTextFunc(),t=(n,r,i,o,a=!1)=>({name:e(n,r+"‎"),action:()=>this.chartSvc.createPivotChart({chartType:i}),_key:o,_enterprise:a});return{name:e("pivotChart","Pivot Chart"),_key:"pivotChart",subMenu:[{_key:"pivotColumnChart",name:e("columnChart","Column"),subMenu:[t("groupedColumn","Grouped","groupedColumn","pivotGroupedColumn"),t("stackedColumn","Stacked","stackedColumn","pivotStackedColumn"),t("normalizedColumn","100% Stacked","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:e("barChart","Bar"),subMenu:[t("groupedBar","Grouped","groupedBar","pivotGroupedBar"),t("stackedBar","Stacked","stackedBar","pivotStackedBar"),t("normalizedBar","100% Stacked","normalizedBar","pivotNormalizedBar")]},{_key:"pivotPieChart",name:e("pieChart","Pie"),subMenu:[t("pie","Pie","pie","pivotPie"),t("donut","Donut","donut","pivotDonut")]},{_key:"pivotLineChart",name:e("lineChart","Line"),subMenu:[t("lineChart","Line","line","pivotLineChart"),t("stackedLine","Stacked","stackedLine","pivotStackedLine"),t("normalizedLine","100% Stacked","normalizedLine","pivotNormalizedLine")]},{_key:"pivotAreaChart",name:e("areaChart","Area"),subMenu:[t("areaChart","Area","area","pivotArea"),t("stackedArea","Stacked","stackedArea","pivotStackedArea"),t("normalizedArea","100% Stacked","normalizedArea","pivotNormalizedArea")]},{_key:"pivotXYChart",name:e("xyChart","X Y (Scatter)"),subMenu:[t("scatter","Scatter","scatter","pivotScatter"),t("bubble","Bubble","bubble","pivotBubble")]},{_key:"pivotStatisticalChart",_enterprise:!1,name:e("statisticalChart","Statistical"),subMenu:[t("histogramChart","Histogram","histogram","pivotHistogram",!1)]},{_key:"pivotHierarchicalChart",_enterprise:!0,name:e("hierarchicalChart","Hierarchical"),subMenu:[t("treemapChart","Treemap","treemap","pivotTreemap",!0),t("sunburstChart","Sunburst","sunburst","pivotSunburst",!0)]},{_key:"pivotFunnel",name:e("funnel","Funnel"),subMenu:[t("funnel","Funnel","funnel","pivotFunnel"),t("coneFunnel","Cone Funnel","coneFunnel","pivotConeFunnel"),t("pyramid","Pyramid","pyramid","pivotPyramid")]},{_key:"pivotCombinationChart",name:e("combinationChart","Combination"),subMenu:[t("columnLineCombo","Column & Line","columnLineCombo","pivotColumnLineCombo"),t("AreaColumnCombo","Area & Column","areaColumnCombo","pivotAreaColumnCombo")]}],icon:er("chart",this.beans,void 0)}}getConfigLookup(){return{columnGroup:{_key:"pivotColumnChart",column:"pivotGroupedColumn",stackedColumn:"pivotStackedColumn",normalizedColumn:"pivotNormalizedColumn"},barGroup:{_key:"pivotBarChart",bar:"pivotGroupedBar",stackedBar:"pivotStackedBar",normalizedBar:"pivotNormalizedBar"},pieGroup:{_key:"pivotPieChart",pie:"pivotPie",donut:"pivotDonut",doughnut:"pivotDonut"},lineGroup:{_key:"pivotLineChart",line:"pivotLineChart",stackedLine:"pivotStackedLine",normalizedLine:"pivotNormalizedLine"},areaGroup:{_key:"pivotAreaChart",area:"pivotArea",stackedArea:"pivotStackedArea",normalizedArea:"pivotNormalizedArea"},scatterGroup:{_key:"pivotXYChart",bubble:"pivotBubble",scatter:"pivotScatter"},combinationGroup:{_key:"pivotCombinationChart",columnLineCombo:"pivotColumnLineCombo",areaColumnCombo:"pivotAreaColumnCombo",customCombo:null},hierarchicalGroup:{_key:"pivotHierarchicalChart",treemap:"pivotTreemap",sunburst:"pivotSunburst"},statisticalGroup:{_key:"pivotStatisticalChart",histogram:"pivotHistogram",rangeBar:null,rangeArea:null,boxPlot:null},funnelGroup:{_key:"pivotFunnel",funnel:"pivotFunnel",coneFunnel:"pivotConeFunnel",pyramid:"pivotPyramid"},polarGroup:null,specializedGroup:null}}},dXt=class{constructor(e,t,n){this.beans=e,this.chartSvc=t,this.getLocaleTextFunc=n}getMenuItem(){const e=this.getLocaleTextFunc(),t=(n,r,i,o,a=!1)=>({name:e(n,r),action:()=>this.chartSvc.createChartFromCurrentRange(i),_key:o,_enterprise:a});return{name:e("chartRange","Chart Range"),_key:"chartRange",subMenu:[{name:e("columnChart","Column"),subMenu:[t("groupedColumn","Grouped","groupedColumn","rangeGroupedColumn"),t("stackedColumn","Stacked","stackedColumn","rangeStackedColumn"),t("normalizedColumn","100% Stacked","normalizedColumn","rangeNormalizedColumn")],_key:"rangeColumnChart"},{name:e("barChart","Bar"),subMenu:[t("groupedBar","Grouped","groupedBar","rangeGroupedBar"),t("stackedBar","Stacked","stackedBar","rangeStackedBar"),t("normalizedBar","100% Stacked","normalizedBar","rangeNormalizedBar")],_key:"rangeBarChart"},{name:e("pieChart","Pie"),subMenu:[t("pie","Pie","pie","rangePie"),t("donut","Donut","donut","rangeDonut")],_key:"rangePieChart"},{name:e("lineChart","Line"),subMenu:[t("lineChart","Line","line","rangeLineChart"),t("stackedLine","Stacked","stackedLine","rangeStackedLine"),t("normalizedLine","100% Stacked","normalizedLine","rangeNormalizedLine")],_key:"rangeLineChart"},{name:e("areaChart","Area"),subMenu:[t("areaChart","Area","area","rangeArea"),t("stackedArea","Stacked","stackedArea","rangeStackedArea"),t("normalizedArea","100% Stacked","normalizedArea","rangeNormalizedArea")],_key:"rangeAreaChart"},{name:e("xyChart","X Y (Scatter)"),subMenu:[t("scatter","Scatter","scatter","rangeScatter"),t("bubble","Bubble","bubble","rangeBubble")],_key:"rangeXYChart"},{name:e("polarChart","Polar"),subMenu:[t("radarLine","Radar Line","radarLine","rangeRadarLine"),t("radarArea","Radar Area","radarArea","rangeRadarArea"),t("nightingale","Nightingale","nightingale","rangeNightingale"),t("radialColumn","Radial Column","radialColumn","rangeRadialColumn"),t("radialBar","Radial Bar","radialBar","rangeRadialBar")],_key:"rangePolarChart",_enterprise:!0},{name:e("statisticalChart","Statistical"),subMenu:[t("boxPlot","Box Plot","boxPlot","rangeBoxPlot",!0),t("histogramChart","Histogram","histogram","rangeHistogram",!1),t("rangeBar","Range Bar","rangeBar","rangeRangeBar",!0),t("rangeArea","Range Area","rangeArea","rangeRangeArea",!0)],_key:"rangeStatisticalChart",_enterprise:!1},{name:e("hierarchicalChart","Hierarchical"),subMenu:[t("treemap","Treemap","treemap","rangeTreemap"),t("sunburst","Sunburst","sunburst","rangeSunburst")],_key:"rangeHierarchicalChart",_enterprise:!0},{name:e("specializedChart","Specialized"),subMenu:[t("heatmap","Heatmap","heatmap","rangeHeatmap"),t("waterfall","Waterfall","waterfall","rangeWaterfall")],_key:"rangeSpecializedChart",_enterprise:!0},{name:e("funnel","Funnel"),subMenu:[t("funnel","Funnel","funnel","rangeFunnel"),t("coneFunnel","Cone Funnel","coneFunnel","rangeConeFunnel"),t("pyramid","Pyramid","pyramid","rangePyramid")],_key:"rangeFunnel",_enterprise:!0},{name:e("combinationChart","Combination"),subMenu:[t("columnLineCombo","Column & Line","columnLineCombo","rangeColumnLineCombo"),t("AreaColumnCombo","Area & Column","areaColumnCombo","rangeAreaColumnCombo")],_key:"rangeCombinationChart"}],icon:er("chart",this.beans,void 0)}}getConfigLookup(){return{columnGroup:{_key:"rangeColumnChart",column:"rangeGroupedColumn",stackedColumn:"rangeStackedColumn",normalizedColumn:"rangeNormalizedColumn"},barGroup:{_key:"rangeBarChart",bar:"rangeGroupedBar",stackedBar:"rangeStackedBar",normalizedBar:"rangeNormalizedBar"},pieGroup:{_key:"rangePieChart",pie:"rangePie",donut:"rangeDonut",doughnut:"rangeDonut"},lineGroup:{_key:"rangeLineChart",line:"rangeLineChart",stackedLine:"rangeStackedLine",normalizedLine:"rangeNormalizedLine"},areaGroup:{_key:"rangeAreaChart",area:"rangeArea",stackedArea:"rangeStackedArea",normalizedArea:"rangeNormalizedArea"},scatterGroup:{_key:"rangeXYChart",bubble:"rangeBubble",scatter:"rangeScatter"},polarGroup:{_key:"rangePolarChart",radarLine:"rangeRadarLine",radarArea:"rangeRadarArea",nightingale:"rangeNightingale",radialColumn:"rangeRadialColumn",radialBar:"rangeRadialBar"},statisticalGroup:{_key:"rangeStatisticalChart",boxPlot:"rangeBoxPlot",histogram:"rangeHistogram",rangeBar:"rangeRangeBar",rangeArea:"rangeRangeArea"},hierarchicalGroup:{_key:"rangeHierarchicalChart",treemap:"rangeTreemap",sunburst:"rangeSunburst"},specializedGroup:{_key:"rangeSpecializedChart",heatmap:"rangeHeatmap",waterfall:"rangeWaterfall"},funnelGroup:{_key:"rangeFunnel",funnel:"rangeFunnel",coneFunnel:"rangeConeFunnel",pyramid:"rangePyramid"},combinationGroup:{_key:"rangeCombinationChart",columnLineCombo:"rangeColumnLineCombo",areaColumnCombo:"rangeAreaColumnCombo",customCombo:null}}}},pXt=class extends dt{constructor(){super(...arguments),this.beanName="colChooserFactory"}createColumnSelectPanel(e,t,n,r){const i=e.createManagedBean(new eit),o=r??t?.getColDef().columnChooserParams??{},{contractColumnSelection:a,suppressColumnExpandAll:s,suppressColumnFilter:l,suppressColumnSelectAll:c,suppressSyncLayoutWithGrid:u,columnLayout:d}=o;return i.init(!!n,Gn(this.gos,{suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!a,suppressColumnExpandAll:!!s,suppressColumnFilter:!!l,suppressColumnSelectAll:!!c,suppressSyncLayoutWithGrid:!!d||!!u,onStateUpdated:()=>{}}),"columnMenu"),d&&i.setColumnLayout(d),i}showColumnChooser({column:e,chooserParams:t,eventSource:n,headerPosition:r}){this.hideActiveColumnChooser();const i=this.createColumnSelectPanel(this,e,!0,t),o=this.getLocaleTextFunc(),a=this.beans,{visibleCols:s,focusSvc:l,menuUtils:c}=a,u=s.allCols.indexOf(e),d=e?l.focusedHeader??r??null:null;this.activeColumnChooserDialog=this.createBean(new w6({title:o("chooseColumns","Choose Columns"),component:i,width:300,height:300,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{Cd(a,i.getGui())?.focus({preventScroll:!0}),this.dispatchVisibleChangedEvent(!0,e)},closedCallback:p=>{const h=this.activeColumnChooser.getGui();this.destroyBean(this.activeColumnChooser),this.activeColumnChooser=void 0,this.activeColumnChooserDialog=void 0,this.dispatchVisibleChangedEvent(!1,e),e&&c.restoreFocusOnClose({column:e,headerPosition:d,columnIndex:u,eventSource:n},h,p,!0)},postProcessPopupParams:{type:"columnChooser",column:e,eventSource:n}})),this.activeColumnChooser=i}hideActiveColumnChooser(){this.destroyBean(this.activeColumnChooserDialog)}dispatchVisibleChangedEvent(e,t){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:"columnChooser",column:t??null})}},hXt={pinSubMenu:"PinnedColumn",pinLeft:"PinnedColumn",pinRight:"PinnedColumn",clearPinned:"PinnedColumn",pinRowSubMenu:"PinnedRow",pinBottom:"PinnedRow",pinTop:"PinnedRow",unpinRow:"PinnedRow",valueAggSubMenu:"SharedAggregation",autoSizeThis:"ColumnAutoSize",autoSizeAll:"ColumnAutoSize",rowGroup:"SharedRowGrouping",rowUnGroup:"SharedRowGrouping",resetColumns:"CommunityCore",expandAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],contractAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],copy:"Clipboard",copyWithHeaders:"Clipboard",copyWithGroupHeaders:"Clipboard",cut:"Clipboard",paste:"Clipboard",export:["CsvExport","ExcelExport"],csvExport:"CsvExport",excelExport:"ExcelExport",separator:"CommunityCore",pivotChart:"IntegratedCharts",chartRange:"IntegratedCharts",columnFilter:"ColumnFilter",columnChooser:"ColumnMenu",sortAscending:"Sort",sortDescending:"Sort",sortUnSort:"Sort"};function fXt(e,t){const n=hXt[t];n&&e.assertModuleRegistered(n,`menu item '${t}'`)}var zA="separator";function oit(e,t){if(e)for(let n=e.length-2;n>=0;n--){const r=e[n]===t,i=e[n+1]===t;r&&i&&e.splice(n+1,1)}}var gXt=class extends dt{constructor(){super(...arguments),this.beanName="menuItemMapper"}mapWithStockItems(e,t,n,r,i){if(!e)return[];const o=[],a=this.getLocaleTextFunc(),{beans:s,gos:l}=this,{pinnedCols:c,colAutosize:u,aggFuncSvc:d,rowGroupColsSvc:p,colNames:h,colModel:g,clipboardSvc:m,expansionSvc:b,focusSvc:y,csvCreator:M,excelCreator:C,menuSvc:x,colChooserFactory:w,sortSvc:S,chartMenuItemMapper:A,valueColsSvc:z,pinnedRowModel:O}=s,T=(R,P,F,N)=>{switch(fXt(l,R),R){case"pinSubMenu":return c&&P?{name:a("pinColumn","Pin Column"),icon:er("menuPin",s,null),subMenu:["clearPinned","pinLeft","pinRight"]}:null;case"pinLeft":return c&&P?{name:a("pinLeft","Pin Left"),action:()=>c.setColsPinned([P],"left",N),checked:!!P&&P.isPinnedLeft()}:null;case"pinRight":return c&&P?{name:a("pinRight","Pin Right"),action:()=>c.setColsPinned([P],"right",N),checked:!!P&&P.isPinnedRight()}:null;case"clearPinned":return c&&P?{name:a("noPin","No Pin"),action:()=>c.setColsPinned([P],null,N),checked:!!P&&!P.isPinned()}:null;case"pinRowSubMenu":{const L=l.get("enableRowPinning"),W=[],j=n?.rowPinned??n?.pinnedSibling?.rowPinned;return j&&W.push("unpinRow"),L&&L!=="bottom"&&j!="top"&&W.push("pinTop"),L&&L!=="top"&&j!="bottom"&&W.push("pinBottom"),O?.isManual()?{name:a("pinRow","Pin Row"),icon:er("rowPin",s,P),subMenu:W}:null}case"pinTop":return O?.isManual()?{name:a("pinTop","Pin to Top"),icon:er("rowPinTop",s,P),action:({node:L,column:W})=>L&&O.pinRow(L,"top",W)}:null;case"pinBottom":return O?.isManual()?{name:a("pinBottom","Pin to Bottom"),icon:er("rowPinBottom",s,P),action:({node:L,column:W})=>L&&O.pinRow(L,"bottom",W)}:null;case"unpinRow":return O?.isManual()?{name:a("unpinRow","Unpin Row"),icon:er("rowUnpin",s,P),action:({node:L,column:W})=>L&&O.pinRow(L,null,W)}:null;case"valueAggSubMenu":return d&&z&&(P?.isPrimary()||P?.getColDef().pivotValueColumn)?{name:a("valueAggregation","Value Aggregation"),icon:er("menuValue",s,null),subMenu:mXt(P,d,z,a),disabled:l.get("functionsReadOnly")}:null;case"autoSizeThis":return u?{name:a("autosizeThisColumn","Autosize This Column"),action:()=>u.autoSizeColumn(P,N,l.get("skipHeaderOnAutoSize"))}:null;case"autoSizeAll":return u?{name:a("autosizeAllColumns","Autosize All Columns"),action:()=>u.autoSizeAllColumns(N,l.get("skipHeaderOnAutoSize"))}:null;case"rowGroup":return p?{name:a("groupBy","Group by")+" "+h.getDisplayNameForColumn(P,"header"),disabled:l.get("functionsReadOnly")||P?.isRowGroupActive()||!P?.getColDef().enableRowGroup,action:()=>p.addColumns([P],N),icon:er("menuAddRowGroup",s,null)}:null;case"rowUnGroup":if(p&&l.isModuleRegistered("SharedRowGrouping")){const L=P?.getColDef().showRowGroup,W=l.get("groupLockGroupColumns");let j,V,G;if(L===!0)j=a("ungroupAll","Un-Group All"),V=l.get("functionsReadOnly")||W===-1||W>=(p.columns.length??0),G=()=>p.setColumns(p.columns.slice(0,W),N);else if(typeof L=="string"){const q=g.getColDefCol(L),$=q!=null?h.getDisplayNameForColumn(q,"header"):L;j=a("ungroupBy","Un-Group by")+" "+$,V=l.get("functionsReadOnly")||yW(q,s),G=()=>{p.removeColumns([L],N)}}else j=a("ungroupBy","Un-Group by")+" "+h.getDisplayNameForColumn(P,"header"),V=l.get("functionsReadOnly")||!P?.isRowGroupActive()||!P?.getColDef().enableRowGroup||yW(P,s),G=()=>p.removeColumns([P],N);return{name:j,disabled:V,action:G,icon:er("menuRemoveRowGroup",s,null)}}else return null;case"resetColumns":return{name:a("resetColumns","Reset Columns"),action:()=>Zet(s,N)};case"expandAll":return b?{name:a("expandAll","Expand All Row Groups"),action:()=>b.expandAll(!0)}:null;case"contractAll":return b?{name:a("collapseAll","Collapse All Row Groups"),action:()=>b.expandAll(!1)}:null;case"copy":return m?{name:a("copy","Copy"),shortcut:a("ctrlC","Ctrl+C"),icon:er("clipboardCopy",s,null),action:()=>m.copyToClipboard()}:null;case"copyWithHeaders":return m?{name:a("copyWithHeaders","Copy with Headers"),icon:er("clipboardCopy",s,null),action:()=>m.copyToClipboard({includeHeaders:!0})}:null;case"copyWithGroupHeaders":return m?{name:a("copyWithGroupHeaders","Copy with Group Headers"),icon:er("clipboardCopy",s,null),action:()=>m.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}:null;case"cut":if(m){const L=y.getFocusedCell(),W=L?lp(s,L):null,j=W?L?.column.isCellEditable(W):!1;return{name:a("cut","Cut"),shortcut:a("ctrlX","Ctrl+X"),icon:er("clipboardCut",s,null),disabled:!j||l.get("suppressCutToClipboard"),action:()=>m.cutToClipboard(void 0,"contextMenu")}}else return null;case"paste":return m?{name:a("paste","Paste"),shortcut:a("ctrlV","Ctrl+V"),disabled:!0,icon:er("clipboardPaste",s,null),action:()=>m.pasteFromClipboard()}:null;case"export":{const L=[];return!l.get("suppressCsvExport")&&M&&L.push("csvExport"),!l.get("suppressExcelExport")&&C&&L.push("excelExport"),L.length?{name:a("export","Export"),subMenu:L,icon:er("save",s,null)}:null}case"csvExport":return M?{name:a("csvExport","CSV Export"),icon:er("csvExport",s,null),action:()=>M.exportDataAsCsv()}:null;case"excelExport":return C?{name:a("excelExport","Excel Export"),icon:er("excelExport",s,null),action:()=>C.exportDataAsExcel()}:null;case"separator":return R;case"pivotChart":case"chartRange":return A.getChartItems(R);case"columnFilter":return x&&P?{name:a("columnFilter","Column Filter"),icon:er("filter",s,null),action:()=>x.showFilterMenu({column:P,buttonElement:F(),containerType:"columnFilter",positionBy:"button"})}:null;case"columnChooser":{const L=y.focusedHeader;return w?{name:a("columnChooser","Choose Columns"),icon:er("columns",s,null),action:()=>w.showColumnChooser({column:P,eventSource:F(),headerPosition:L})}:null}case"sortAscending":return S?{name:a("sortAscending","Sort Ascending"),icon:er("sortAscending",s,null),action:()=>S.setSortForColumn(P,"asc",!1,N)}:null;case"sortDescending":return S?{name:a("sortDescending","Sort Descending"),icon:er("sortDescending",s,null),action:()=>S.setSortForColumn(P,"desc",!1,N)}:null;case"sortUnSort":return S?{name:a("sortUnSort","Clear Sort"),icon:er("sortUnSort",s,null),action:()=>S.setSortForColumn(P,null,!1,N)}:null;default:return ut(176,{key:R}),null}};return e.forEach(R=>{let P;if(typeof R=="string"?P=T(R,t,r,i):P={...R},!P)return;const F=P,{subMenu:N}=F;N&&N instanceof Array&&(F.subMenu=this.mapWithStockItems(N,t,n,r,i)),P!=null&&o.push(P)}),oit(o,zA),o}};function mXt(e,t,n,r){let i;if(e.isPrimary())i=e;else{const a=e.getColDef().pivotValueColumn;i=Ut(a)?a:void 0}const o=[];if(i){const a=i.isValueActive(),s=t.getFuncNames(i);o.push({name:r("noAggregation","None"),action:()=>{n.removeColumns([i],"contextMenu"),n.setColumnAggFunc(i,void 0,"contextMenu")},checked:!a}),s.forEach(l=>{o.push({name:r(l,t.getDefaultFuncLabel(l)),action:()=>{n.setColumnAggFunc(i,l,"contextMenu"),n.addColumns([i],"contextMenu")},checked:a&&i.getAggFunc()===l})})}return o}var vXt=class extends dt{constructor(){super(...arguments),this.beanName="colMenuFactory"}createMenu(e,t,n,r){const i=e.createManagedBean(new S6(0,{column:n??null,node:null,value:null})),o=this.beans.menuItemMapper.mapWithStockItems(t,n??null,null,r,"columnMenu");return i.addMenuItems(o),i}getMenuItems(e=null,t=null){const n=this.getDefaultMenuOptions(e);let r;const i=(e?.getColDef()??t?.getColGroupDef())?.mainMenuItems;if(Array.isArray(i))r=i;else if(typeof i=="function")r=i(Gn(this.gos,{column:e,columnGroup:t,defaultItems:n}));else{const o=this.gos.getCallback("getMainMenuItems");o?r=o({column:e,columnGroup:t,defaultItems:n}):r=n}return oit(r,zA),r}getDefaultMenuOptions(e){const t=[],{beans:n,gos:r}=this,{colChooserFactory:i,rowGroupColsSvc:o,colModel:a,expansionSvc:s,sortSvc:l,menuSvc:c,pinnedCols:u,aggFuncSvc:d,colAutosize:p}=n,h=Gu(r),g=()=>{!h&&i&&t.push("columnChooser"),t.push("resetColumns")};if(!e)return g(),t;const{colDef:m}=e,b=u&&!m.lockPinned,y=o?.columns.length??0,M=y>0,C=e.isPrimary(),x=d&&C&&M&&e.isAllowValue()||!C;if(l&&!h&&e.isSortable()){const w=e.getSort();w!=="asc"&&t.push("sortAscending"),w!=="desc"&&t.push("sortDescending"),w&&t.push("sortUnSort"),t.push(zA)}if(c?.isFilterMenuItemEnabled(e)&&(t.push("columnFilter"),t.push(zA)),b&&t.push("pinSubMenu"),x&&t.push("valueAggSubMenu"),(b||x)&&t.push(zA),p&&(t.push("autoSizeThis"),t.push("autoSizeAll"),t.push(zA)),o&&r.isModuleRegistered("SharedRowGrouping")){const w=t.length;m.showRowGroup?t.push("rowUnGroup"):e.isAllowRowGroup()&&C&&(e.isRowGroupActive()?yW(e,n)||t.push("rowUnGroup"):t.push("rowGroup")),t.length>w&&t.push(zA)}return g(),s&&sa(r)&&(r.get("treeData")||y>(a.isPivotMode()?1:0))&&(t.push("expandAll"),t.push("contractAll")),t}},bXt="ag-menu",ERe="ag-context-menu-open",yXt="ag-context-menu-loading-icon",MXt=class extends dt{constructor(){super(...arguments),this.beanName="contextMenuSvc",this.destroyLoadingSpinner=null,this.lastPromise=0}hideActiveMenu(){this.destroyBean(this.activeMenu)}getMenuItems(e,t,n,r){const i=[],{clipboardSvc:o,chartSvc:a,csvCreator:s,excelCreator:l,colModel:c,rangeSvc:u,gos:d}=this.beans;if(Ut(e)&&o&&t&&(d.get("suppressCutToClipboard")||i.push("cut"),i.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator")),d.get("enableCharts")&&a&&(c.isPivotMode()&&i.push("pivotChart"),u&&!u.isEmpty()&&i.push("chartRange")),Ut(e)){const m=d.get("enableRowPinning"),b=d.get("isRowPinnable"),y=d.get("grandTotalRow");if(m){const S=e.level>-1&&e.footer,A=e.level===-1&&e.footer;(A&&!(y==="pinnedBottom"||y==="pinnedTop")||!A&&!S)&&(b?.(e)??!0)&&i.push("pinRowSubMenu")}const M=d.get("suppressExcelExport")||!l,C=d.get("suppressCsvExport")||!s;!xx()&&(!M||!C)&&i.push("export")}const p=i.length?i:void 0,h=t?.getColDef().contextMenuItems;return Array.isArray(h)?h:typeof h=="function"?h(Gn(d,{column:t,node:e,value:n,defaultItems:p,event:r})):d.getCallback("getContextMenuItems")?.({column:t,node:e,value:n,defaultItems:p,event:r})??i}getContextMenuPosition(e,t){const n=this.getRowCtrl(e),r=this.getCellGui(n,t);if(!r)return{x:0,y:n?.getRowYPosition()??0};const i=r.getBoundingClientRect();return{x:i.x+i.width/2,y:i.y+i.height/2}}showContextMenu(e){const t=e.rowNode??null,n=e.column??null;let{anchorToElement:r,value:i,source:o}=e;t&&n&&i==null&&(i=this.beans.valueSvc.getValueForDisplay(n,t).value),r==null&&(r=this.getContextMenuAnchorElement(t,n)),this.beans.menuUtils.onContextMenu({mouseEvent:e.mouseEvent??null,touchEvent:e.touchEvent??null,showMenuCallback:a=>this.showMenu(t,n,i,a,r),source:o})}handleContextMenuMouseEvent(e,t,n,r){const i=r?.rowNode??n?.rowNode??null,o=r?.column??n?.findFullWidthInfoForEvent(e||t)?.column??null,{valueSvc:a,ctrlsSvc:s}=this.beans,l=o?a.getValue(o,i):null,c=s.getGridBodyCtrl(),u=r?r.eGui:c.eGridBody;this.showContextMenu({mouseEvent:e,touchEvent:t,rowNode:i,column:o,value:l,anchorToElement:u,source:"ui"})}showMenu(e,t,n,r,i){const o=this.getMenuItems(e,t,n,r);if(pLt(o)){const a=this.lastPromise+1;return this.lastPromise=a,this.destroyLoadingSpinner||this.createLoadingIcon(r),o.then(s=>{if(this.lastPromise!==a)return;const{target:l}=r,c=!l;s&&s.length&&(c||x0(l))&&!this.beans.overlays?.isExclusive()&&this.createContextMenu({menuItems:s,node:e,column:t,value:n,mouseEvent:r,anchorToElement:i}),this.destroyLoadingSpinner?.()}),!0}return o===void 0||!o?.length?!1:(this.createContextMenu({menuItems:o,node:e,column:t,value:n,mouseEvent:r,anchorToElement:i}),!0)}createLoadingIcon(e){const{beans:t}=this,n=this.getLocaleTextFunc(),r=er("loadingMenuItems",t),i=Nr({tag:"div",cls:yXt});i.appendChild(r);const o=bz(t),a=OK(t);if(!a){ut(54);return}a.appendChild(i),t.ariaAnnounce?.announceValue(n("ariaLabelLoadingContextMenu","Loading Context Menu"),"contextmenu"),t.environment.applyThemeClasses(i),che(i,e,t);const s=l=>{che(i,l,t)};o.addEventListener("mousemove",s),this.destroyLoadingSpinner=()=>{o.removeEventListener("mousemove",s),a.removeChild(i),this.destroyLoadingSpinner=null}}createContextMenu(e){const{menuItems:t,node:n,column:r,value:i,mouseEvent:o,anchorToElement:a}=e,{ctrlsSvc:s,focusSvc:l,popupSvc:c}=this.beans,u=s.getGridBodyCtrl().eGridBody,d=new CXt(t,r,n,i);this.createBean(d);const p=d.getGui();r||l.clearFocusedCell();const h={column:r,rowNode:n,type:"contextMenu",mouseEvent:o,ePopup:p,nudgeY:1},g=this.getLocaleTextFunc(),m=c?.addPopup({modal:!0,eChild:p,closeOnEsc:!0,closedCallback:y=>{SK(this.beans,()=>{u.classList.remove(ERe),this.destroyBean(d),this.dispatchVisibleChangedEvent(!1,y===void 0?"api":"ui")})},click:o,positionCallback:()=>{const y=this.gos.get("enableRtl");c?.positionPopupUnderMouseEvent({...h,nudgeX:y?(p.offsetWidth+1)*-1:1})},anchorToElement:a,ariaLabel:g("ariaLabelContextMenu","Context Menu")});m&&(u.classList.add(ERe),d.afterGuiAttached({container:"contextMenu",hidePopup:m.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=d,d.addEventListener("destroyed",()=>{this.activeMenu===d&&(this.activeMenu=null)}),m&&d.addEventListener("closeMenu",y=>m.hideFunc({mouseEvent:y.mouseEvent??void 0,keyboardEvent:y.keyboardEvent??void 0,forceHide:!0}));const b=o&&o instanceof MouseEvent&&o.type==="mousedown";this.dispatchVisibleChangedEvent(!0,b?"api":"ui")}dispatchVisibleChangedEvent(e,t="ui"){this.eventSvc.dispatchEvent({type:"contextMenuVisibleChanged",visible:e,source:t})}getRowCtrl(e){const{rowIndex:t,rowPinned:n}=e||{};if(t!=null)return this.beans.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n})||void 0}getCellGui(e,t){return!e||!t?void 0:e.getCellCtrl(t)?.eGui||void 0}getContextMenuAnchorElement(e,t){const n=this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody,r=this.getRowCtrl(e);if(!r)return n;const i=this.getCellGui(r,t);return i||(r.isFullWidth()?r.getFullWidthElement():n)}destroy(){this.destroyLoadingSpinner?.(),super.destroy()}},CXt=class extends Gt{constructor(t,n,r,i){super({tag:"div",cls:bXt,role:"presentation"}),this.menuItems=t,this.column=n,this.node=r,this.value=i,this.menuList=null,this.focusedCell=null}postConstruct(){const t=this.createManagedBean(new S6(0,{column:this.column,node:this.node,value:this.value})),n=this.beans.menuItemMapper.mapWithStockItems(this.menuItems,this.column,this.node,()=>this.getGui(),"contextMenu");t.addMenuItems(n),this.appendChild(t),this.menuList=t,t.addEventListener("closeMenu",r=>this.dispatchLocalEvent(r))}afterGuiAttached({hidePopup:t}){t&&this.addDestroyFunc(t),this.focusedCell=this.beans.focusSvc.getFocusedCell();const n=this.menuList;n&&SK(this.beans,()=>zu(n.getGui()))}restoreFocusedCell(){const{beans:t,focusedCell:n}=this,r=t.focusSvc,i=r.getFocusedCell();if(i&&n&&y6(i,n)){const{rowIndex:o,rowPinned:a,column:s}=n;$x(t)&&r.setFocusedCell({rowIndex:o,column:s,rowPinned:a,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!EK()})}}destroy(){super.destroy(),this.restoreFocusedCell()}};function xXt(e){return{tag:"div",cls:`ag-tabs ${e}`,children:[{tag:"div",ref:"eHeader"},{tag:"div",ref:"eBody",role:"presentation",cls:`ag-tabs-body ${e?`${e}-body`:""}`}]}}var ait=class extends Gb{constructor(e){super(xXt(e.cssClass)),this.eHeader=at,this.eBody=at,this.items=[],this.tabbedItemScrollMap=new Map,this.params=e}postConstruct(){this.setupHeader(),this.params.items&&this.params.items.forEach(e=>this.addItem(e)),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc(()=>this.activeItem?.tabbedItem?.afterDetachedCallback?.())}setupHeader(){const{enableCloseButton:e,cssClass:t}=this.params,n=(r,i)=>{r.classList.add(`ag-tabs-${i}`),t&&r.classList.add(`${t}-${i}`)};e?(this.setupCloseButton(n),this.eTabHeader=Nr({tag:"div",role:"presentation"}),n(this.eHeader,"header-wrapper"),this.eHeader.appendChild(this.eTabHeader)):this.eTabHeader=this.eHeader,C0(this.eTabHeader,"tablist"),n(this.eTabHeader,"header")}setupCloseButton(e){const t=Nr({tag:"button"});e(t,"close-button");const n=er("close",this.beans);Is(t,this.params.closeButtonAriaLabel),t.appendChild(n),this.addManagedElementListeners(t,{click:()=>this.params.onCloseClicked?.()});const r=Nr({tag:"div",role:"presentation"});e(r,"close-button-wrapper"),r.appendChild(t),this.eHeader.appendChild(r),this.eCloseButton=t}handleKeyDown(e){switch(e.key){case Qe.RIGHT:case Qe.LEFT:{if(!this.eTabHeader.contains($i(this.beans)))return;const t=e.key===Qe.RIGHT,n=this.gos.get("enableRtl"),r=this.items.indexOf(this.activeItem),i=t!==n?Math.min(r+1,this.items.length-1):Math.max(r-1,0);if(r===i)return;e.preventDefault();const o=this.items[i];this.showItemWrapper(o),o.eHeaderButton.focus();break}case Qe.UP:case Qe.DOWN:e.stopPropagation();break}}onTabKeyDown(e){if(e.defaultPrevented)return;const{beans:t,eHeader:n,eBody:r,activeItem:i,params:o}=this,{suppressTrapFocus:a,enableCloseButton:s}=o,l=$i(t),c=e.target,u=e.shiftKey;if(n.contains(l)){e.preventDefault(),s&&u&&!this.eCloseButton?.contains(l)?this.eCloseButton?.focus():a&&u?Dhe(bl(t).body,c)?.focus():this.focusBody(e.shiftKey);return}let d=null;if(Brt(r,c)&&(u&&(d=Dhe(r,c)),!d&&!a&&(d=i.eHeaderButton)),!d&&r.contains(l)&&(d=Cd(t,r,!1,u),!d)){a&&!u?this.forceFocusOutOfContainer(u):s&&!u?(e.preventDefault(),this.eCloseButton?.focus()):(e.preventDefault(),this.focusHeader());return}d&&(e.preventDefault(),d.focus())}focusInnerElement(e){return e?this.focusBody(!0):(this.focusHeader(),!0)}focusHeader(e){this.activeItem.eHeaderButton.focus({preventScroll:e})}focusBody(e){return zu(this.eBody,e)}setAfterAttachedParams(e){this.afterAttachedParams=e}showFirstItem(){this.items.length>0&&this.showItemWrapper(this.items[0])}addItem(e){const t=Nr({tag:"span",cls:"ag-tab",role:"tab",attrs:{tabindex:"-1"}});t.appendChild(e.title),this.eTabHeader.appendChild(t),Is(t,e.titleLabel);const n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))}showItem(e){const t=this.items.find(n=>n.tabbedItem===e);t&&this.showItemWrapper(t)}showItemWrapper(e){const{tabbedItem:t,eHeaderButton:n}=e;if(this.params.onItemClicked?.({item:t}),this.activeItem===e){this.params.onActiveItemClicked?.();return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),Xi(this.eBody),t.bodyPromise.then(r=>{this.eBody.appendChild(r);const i=!EK();if(this.params.suppressFocusBodyOnOpen||zu(this.eBody,!1,i),t.afterAttachedCallback&&t.afterAttachedCallback(this.afterAttachedParams),this.params.keepScrollPosition){const o=t.getScrollableContainer&&t.getScrollableContainer()||r;[this.lastScrollListener]=this.addManagedElementListeners(o,{scroll:()=>{this.tabbedItemScrollMap.set(t.name,o.scrollTop)}});const a=this.tabbedItemScrollMap.get(t.name);a!==void 0&&setTimeout(()=>{o.scrollTop=a},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),this.activeItem.tabbedItem.afterDetachedCallback?.()),n.classList.add("ag-tab-selected"),this.activeItem=e}},DC="filterMenuTab",kC="generalMenuTab",TA="columnsMenuTab",e7=[kC,DC,TA],wXt=class extends dt{constructor(){super(...arguments),this.beanName="enterpriseMenuFactory"}hideActiveMenu(){this.destroyBean(this.activeMenu)}showMenuAfterMouseEvent(e,t,n,r,i){const{column:o,columnGroup:a}=this.splitColumnOrGroup(e),s=i?"filterMenuTab":void 0;this.showMenu(o,a,l=>{const c=l.getGui();this.beans.popupSvc.positionPopupUnderMouseEvent({type:n,column:o,mouseEvent:t,ePopup:c}),s&&l.showTab?.(s),this.dispatchVisibleChangedEvent(!0,!1,o,a,s)},n,s,void 0,t.target,r)}splitColumnOrGroup(e){const t=e&&vm(e);return{column:t?e:void 0,columnGroup:t?void 0:e}}showMenuAfterButtonClick(e,t,n,r,i){let o=-1,a="left";this.gos.get("enableRtl")&&(o=1,a="right");const s=i?"filterMenuTab":void 0,l=s?[s]:void 0,c=Gu(this.gos),u=(c?9:4)*o,d=c?-23:4,{column:p,columnGroup:h}=this.splitColumnOrGroup(e);this.showMenu(p,h,g=>{const m=g.getGui();this.beans.popupSvc.positionPopupByComponent({type:n,column:p,eventSource:t,ePopup:m,alignSide:a,nudgeX:u,nudgeY:d,position:"under",keepWithinBounds:!0}),s&&g.showTab?.(s),this.dispatchVisibleChangedEvent(!0,!1,p,h,s)},n,s,l,t,r)}showMenu(e,t,n,r,i,o,a,s){const l=this.getMenuParams(e,t,o,a);if(!l)return;const{menu:c,eMenuGui:u,anchorToElement:d,restoreFocusParams:p}=l,h=[],{menuUtils:g,popupSvc:m}=this.beans;h.push(y=>{const M=c.getGui();this.destroyBean(c),e&&(F$(e,!1,"contextMenu"),g.restoreFocusOnClose(p,M,y)),s?.()});const b=this.getLocaleTextFunc();if(m.addPopup({modal:!0,eChild:u,closeOnEsc:!0,closedCallback:y=>{h.forEach(M=>M(y)),this.dispatchVisibleChangedEvent(!1,!1,e,t,i)},afterGuiAttached:y=>c.afterGuiAttached(Object.assign({},{container:r},y)),positionCallback:i?()=>n(c):void 0,ariaLabel:b("ariaLabelColumnMenu","Column Menu")}),i||(c.showTabBasedOnPreviousSelection?.(),n(c)),Ret(this.gos)){const y=m.setPopupPositionRelatedToElement(u,d);y&&e&&this.addStopAnchoring(y,e,h)}c.addEventListener("tabSelected",y=>{this.dispatchVisibleChangedEvent(!1,!0,e),this.lastSelectedTab=y.key,this.dispatchVisibleChangedEvent(!0,!0,e)}),e&&F$(e,!0,"contextMenu"),this.activeMenu=c,c.addEventListener("destroyed",()=>{this.activeMenu===c&&(this.activeMenu=null)})}addStopAnchoring(e,t,n){e.then(r=>{t.__addEventListener("leftChanged",r),t.__addEventListener("visibleChanged",r),n.push(()=>{t.__removeEventListener("leftChanged",r),t.__removeEventListener("visibleChanged",r)})})}getMenuParams(e,t,n,r){const{focusSvc:i,visibleCols:o,ctrlsSvc:a}=this.beans,s={column:e,headerPosition:i.focusedHeader,columnIndex:o.allCols.indexOf(e),eventSource:r},l=this.createMenu(e,t,s,n,r);return l?{menu:l,eMenuGui:l.getGui(),anchorToElement:r||a.getGridBodyCtrl().eGridBody,restoreFocusParams:s}:void 0}createMenu(e,t,n,r,i){if(Gu(this.gos))return this.createBean(new SXt(e,n,this.lastSelectedTab,r,i));{const o=this.beans.colMenuFactory.getMenuItems(e,t);return o.length?this.createBean(new AXt(o,e,n,i)):void 0}}dispatchVisibleChangedEvent(e,t,n,r,i){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:t,key:this.lastSelectedTab??i??(Gu(this.gos)?kC:"columnMenu"),column:n??null,columnGroup:r??null})}isMenuEnabled(e){if(!Gu(this.gos))return!0;const t=!this.beans.filterManager?.isFilterAllowed(e),n=e.getColDef().menuTabs??e7;return(t&&n.includes(DC)?n.length-1:n.length)>0}showMenuAfterContextMenuEvent(e,t,n){this.beans.menuUtils.onContextMenu({mouseEvent:t,touchEvent:n,source:"ui",showMenuCallback:r=>(this.showMenuAfterMouseEvent(e,r,"columnMenu"),!0)})}},SXt=class extends dt{constructor(e,t,n,r,i){super(),this.column=e,this.restoreFocusParams=t,this.initialSelection=n,this.restrictTo=r,this.sourceElement=i,this.tabFactories={},this.includeChecks={};const{tabFactories:o,includeChecks:a}=this;o[kC]=this.createMainPanel.bind(this),o[DC]=this.createFilterPanel.bind(this),o[TA]=this.createColumnsPanel.bind(this),a[kC]=()=>!0,a[DC]=()=>e?!!this.beans.filterManager?.isFilterAllowed(e):!1,a[TA]=()=>!0}postConstruct(){const e=this.getTabsToCreate().map(n=>this.createTab(n)),t=new ait({items:e,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)});this.tabbedLayout=this.createBean(t),this.mainMenuList?.setParentComponent(t),this.addDestroyFunc(()=>this.destroyBean(t))}getTabsToCreate(){return this.restrictTo?this.restrictTo:(this.column?.getColDef().menuTabs??e7).filter(e=>this.isValidMenuTabItem(e)&&this.isNotSuppressed(e))}isValidMenuTabItem(e){let t=!0,n=e7;return this.restrictTo!=null&&(t=this.restrictTo.indexOf(e)>-1,n=this.restrictTo),t=t&&e7.indexOf(e)>-1,t||ut(175,{menuTabName:e,itemsToConsider:n}),t}isNotSuppressed(e){return this.includeChecks[e]()}createTab(e){return this.tabFactories[e]()}showTabBasedOnPreviousSelection(){this.showTab(this.initialSelection)}showTab(e){const{tabItemColumns:t,tabbedLayout:n,tabItemFilter:r,tabItemGeneral:i}=this;t&&e===TA?n.showItem(t):r&&e===DC?n.showItem(r):i&&e===kC?n.showItem(i):n.showFirstItem()}onTabItemClicked(e){let t=null;switch(e.item){case this.tabItemColumns:t=TA;break;case this.tabItemFilter:t=DC;break;case this.tabItemGeneral:t=kC;break}t&&this.activateTab(t)}activateTab(e){const t={type:"tabSelected",key:e};this.dispatchLocalEvent(t)}createMainPanel(){const{beans:e,column:t}=this,n=e.colMenuFactory,r=n.createMenu(this,n.getMenuItems(t),this.column,()=>this.sourceElement??this.getGui());this.mainMenuList=r,r.addEventListener("closeMenu",this.onHidePopup.bind(this));const i={title:er("legacyMenu",e,t),titleLabel:kC.replace("MenuTab",""),bodyPromise:Dr.resolve(r.getGui()),name:kC};return this.tabItemGeneral=i,i}onHidePopup(e){this.beans.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,e)}createFilterPanel(){const e=this.column?this.createBean(new IK(this.column,"COLUMN_MENU")):null;this.filterComp=e,e?.hasFilter()||pi(119);const t=r=>e?.afterGuiAttached(r),n=()=>e?.afterGuiDetached();return this.tabItemFilter={title:er("filterTab",this.beans,this.column),titleLabel:DC.replace("MenuTab",""),bodyPromise:Dr.resolve(e?.getGui()),afterAttachedCallback:t,afterDetachedCallback:n,name:DC},this.tabItemFilter}createColumnsPanel(){const e=Nr({tag:"div",cls:"ag-menu-column-select-wrapper"}),{beans:t,column:n}=this,i=t.colChooserFactory.createColumnSelectPanel(this,n).getGui();i.classList.add("ag-menu-column-select"),e.appendChild(i);const o={title:er("columns",t,n),titleLabel:TA.replace("MenuTab",""),bodyPromise:Dr.resolve(e),name:TA};return this.tabItemColumns=o,o}afterGuiAttached(e){const{container:t,hidePopup:n}=e;this.tabbedLayout.setAfterAttachedParams({container:t,hidePopup:n}),n&&(this.hidePopupFunc=n,this.addDestroyFunc(n))}getGui(){return this.tabbedLayout.getGui()}destroy(){super.destroy(),this.destroyBean(this.filterComp)}},AXt=class extends Gt{constructor(e,t,n,r){super({tag:"div",ref:"eColumnMenu",cls:"ag-menu ag-column-menu",role:"presentation"}),this.menuItems=e,this.column=t,this.restoreFocusParams=n,this.sourceElement=r,this.eColumnMenu=at}postConstruct(){const e=this.beans.colMenuFactory.createMenu(this,this.menuItems,this.column,()=>this.sourceElement??this.getGui());this.mainMenuList=e,e.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eColumnMenu.appendChild(e.getGui())}onHidePopup(e){this.beans.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,e)}afterGuiAttached({hidePopup:e}){e&&(this.hidePopupFunc=e,this.addDestroyFunc(e)),zu(this.mainMenuList.getGui())}};function OXt(e,t){const{contextMenuSvc:n}=e;if(!n)return;const{rowNode:r,column:i,value:o,x:a,y:s}=t||{};let{x:l,y:c}=n.getContextMenuPosition(r,i);a!=null&&(l=a),s!=null&&(c=s),n.showContextMenu({mouseEvent:new MouseEvent("mousedown",{clientX:l,clientY:c}),rowNode:r,column:i,value:o,source:"api"})}function zXt(e,t){e.colChooserFactory?.showColumnChooser({chooserParams:t})}function TXt(e){e.colChooserFactory?.hideActiveColumnChooser()}var EXt=class extends dt{constructor(){super(...arguments),this.beanName="menuUtils"}restoreFocusOnClose(e,t,n,r){const{eventSource:i}=e,o=n instanceof KeyboardEvent;if(!r&&!o||!i)return;const a=$i(this.beans);!t.contains(a)&&!$x(this.beans)||this.focusHeaderCell(e)}closePopupAndRestoreFocusOnSelect(e,t,n){let r;n&&n.keyboardEvent&&(r=n.keyboardEvent),e(r&&{keyboardEvent:r});const i=this.beans,o=i.focusSvc,a=o.getFocusedCell();if($x(i))if(a){const{rowIndex:s,rowPinned:l,column:c}=a;o.setFocusedCell({rowIndex:s,column:c,rowPinned:l,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}else this.focusHeaderCell(t)}onContextMenu(e){const{mouseEvent:t,touchEvent:n,showMenuCallback:r,source:i}=e;if(!this.gos.get("allowContextMenuWithControlKey")&&t&&(t.ctrlKey||t.metaKey)||(t&&this.blockMiddleClickScrollsIfNeeded(t),i==="ui"&&this.gos.get("suppressContextMenu")))return;const o=t??n.touches[0];if(r(o)){const a=t??n;a&&a.cancelable&&a.preventDefault()}}async focusHeaderCell(e){const{column:t,columnIndex:n,headerPosition:r,eventSource:i}=e,{visibleCols:o,headerNavigation:a,focusSvc:s}=this.beans,l=await o.allCols.some(c=>c===t);if(this.isAlive()){if(t?.isAlive()&&l&&i&&x0(i)){const c=bye(i);c&&(a?.scrollToColumn(t),c.focus())}else if(r&&n!==-1){const c=o.allCols,u=c[n]||zr(c);u&&s.focusHeaderPosition({headerPosition:{headerRowIndex:r.headerRowIndex,column:u}})}}}blockMiddleClickScrollsIfNeeded(e){this.gos.get("suppressMiddleClickScrolls")&&e.which===2&&e.preventDefault()}},sit={moduleName:"MenuCore",version:wi,beans:[gXt,cXt,EXt],icons:{chart:"chart",columns:"columns",loadingMenuItems:"loading",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",save:"save",csvExport:"csv",excelExport:"excel",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},dependsOn:[es,pM,Hnt,GK]},RXt={moduleName:"ColumnMenu",version:wi,beans:[wXt,vXt,pXt],icons:{ensureColumnVisible:"column-arrow",legacyMenu:"menu",filterTab:"filter",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate"},apiFunctions:{showColumnChooser:zXt,hideColumnChooser:TXt},dependsOn:[sit,y3,Fye]},IXt={moduleName:"ContextMenu",version:wi,beans:[MXt],apiFunctions:{showContextMenu:OXt},dependsOn:[sit]},RRe=class extends Cw{constructor(){super({tag:"div",cls:"ag-cell-edit-wrapper"}),this.isAsync=!1}init(e){this.params=e;const{cellStartedEdit:t,values:n,eventKey:r}=e;Yi(n)&&ut(180);const{params:i,valuesPromise:o}=this.buildRichSelectParams(),a=this.createManagedBean(new Qye(i));this.richSelect=a,a.addCss("ag-cell-editor"),this.appendChild(a),o&&(this.isAsync=!0,o.then(s=>{a.setValueList({valueList:s,refresh:!0});const l=this.getSearchStringCallback(s);l&&a.setSearchStringCreator(l),this.processEventKey(r)})),this.addManagedListeners(a,{fieldPickerValueSelected:this.onEditorPickerValueSelected.bind(this)}),this.focusAfterAttached=t}onEditorPickerValueSelected(e){setTimeout(()=>this.params.stopEditing(!e.fromEnterKey))}buildRichSelectParams(){const e=this.params,{cellRenderer:t,cellHeight:n,value:r,values:i,formatValue:o,searchDebounceDelay:a,valueListGap:s,valueListMaxHeight:l,valueListMaxWidth:c,allowTyping:u,filterList:d,searchType:p,highlightMatch:h,valuePlaceholder:g,eventKey:m,multiSelect:b,suppressDeselectAll:y,suppressMultiSelectPillRenderer:M}=e,C={value:r,cellRenderer:t,cellRowHeight:n,searchDebounceDelay:a,valueFormatter:o,pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"virtual-list",pickerGap:s,allowTyping:u,filterList:d,searchType:p,highlightMatch:h,maxPickerHeight:l,maxPickerWidth:c,placeholder:g,initialInputValue:m?.length===1?m:void 0,multiSelect:b,suppressDeselectAll:y,suppressMultiSelectPillRenderer:M};let x,w;return typeof i=="function"?x=i(e):x=i??[],Array.isArray(x)?(C.valueList=x,C.searchStringCreator=this.getSearchStringCallback(x)):w=x,b&&u&&(e.allowTyping=C.allowTyping=!1,ut(181)),{params:C,valuesPromise:w}}getSearchStringCallback(e){if(typeof e[0]!="object")return;const t=this.params,{colDef:n,formatValue:r}=t;if(n.cellEditorParams?.formatValue)return o=>o.map(r);const{keyCreator:i}=n;if(i){ut(266);const{column:o,node:a,data:s}=t;return l=>l.map(c=>{const u=Gn(this.gos,{value:c,colDef:n,column:o,node:a,data:s});return i(u)})}return o=>o.map(r)}afterGuiAttached(){const{focusAfterAttached:e,params:t}=this;setTimeout(()=>{if(!this.isAlive())return;const n=this.richSelect,{allowTyping:r,eventKey:i}=t;if(e){const o=n.getFocusableElement();o.focus(),r&&(!i||i.length!==1)&&o.select()}n.showPicker(),this.isAsync||this.processEventKey(i)})}processEventKey(e){e&&e?.length===1&&this.richSelect.searchTextFromString(e)}focusIn(){this.richSelect.getFocusableElement().focus()}getValue(){const{params:e}=this,t=this.richSelect.getValue();return e.parseValue?.(t)??t}isPopup(){return!1}},PXt={moduleName:"RichSelect",version:wi,beans:[],userComponents:{agRichSelect:RRe,agRichSelectCellEditor:RRe},icons:{richSelectOpen:"small-down",richSelectRemove:"cancel"},dependsOn:[es,hM]},rO="__AG_SELECT_ALL__",iO="__AG_ADD_SELECTION_TO_FILTER__",DXt={loadingOoo:"Loading...",blanks:"(Blanks)",searchOoo:"Search...",selectAll:"(Select All)",selectAllSearchResults:"(Select All Search Results)",addCurrentSelectionToFilter:"Add current selection to filter",noMatches:"No matches."},kXt={tag:"div",cls:"ag-set-filter-item",attrs:{"aria-hidden":"true"},children:[{tag:"span",cls:"ag-set-filter-group-icons",children:[{tag:"span",ref:"eGroupClosedIcon",cls:"ag-set-filter-group-closed-icon"},{tag:"span",ref:"eGroupOpenedIcon",cls:"ag-set-filter-group-opened-icon"},{tag:"span",ref:"eGroupIndeterminateIcon",cls:"ag-set-filter-group-indeterminate-icon"}]},{tag:"ag-checkbox",ref:"eCheckbox",cls:"ag-set-filter-item-checkbox"}]},LXt={tag:"div",cls:"ag-set-filter-item",children:[{tag:"ag-checkbox",ref:"eCheckbox",cls:"ag-set-filter-item-checkbox"}]},_Xt=class extends Gt{constructor(e){super(e.isGroup?kXt:LXt,[Rm]),this.eCheckbox=at,this.eGroupOpenedIcon=at,this.eGroupClosedIcon=at,this.eGroupIndeterminateIcon=at,this.formattedValue=null,this.focusWrapper=e.focusWrapper,this.value=e.value,this.params=e.params,this.translate=e.translate,this.valueFormatter=e.valueFormatter,this.item=e.item,this.isSelected=e.isSelected,this.isTree=e.isTree,this.depth=e.depth??0,this.isGroup=e.isGroup,this.groupsExist=e.groupsExist,this.isExpanded=e.isExpanded,this.hasIndeterminateExpandState=e.hasIndeterminateExpandState}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getColDef:()=>this.params.colDef,getColumn:()=>this.params.column,getLocation:()=>"setFilterValue",shouldDisplayTooltip:()=>this.shouldDisplayTooltip?.()??!0,getValueFormatted:()=>this.formattedValue,getAdditionalParams:()=>this.isTree?{level:this.depth}:{}})),this.addDestroyFunc(()=>this.destroyCellRendererComponent?.()),this.render(),this.eCheckbox.setLabelEllipsis(!0).setValue(this.isSelected,!0).setDisabled(!!this.params.readOnly).getInputElement().setAttribute("tabindex","-1"),this.refreshVariableAriaLabels(),this.isTree&&(this.depth>0&&(this.addCss("ag-set-filter-indent-"+this.depth),this.getGui().style.setProperty("--ag-indentation-level",String(this.depth))),this.isGroup?this.setupExpansion():this.groupsExist&&this.addCss("ag-set-filter-add-group-indent"),vK(this.getAriaElement(),this.depth+1)),this.refreshAriaChecked(),!this.params.readOnly&&this.eCheckbox.onValueChange(e=>this.onCheckboxChanged(!!e))}getFocusableElement(){return this.focusWrapper}setupExpansion(){const{eGroupClosedIcon:e,eGroupOpenedIcon:t,eGroupIndeterminateIcon:n,hasIndeterminateExpandState:r,beans:i}=this;e.appendChild(Ox("setFilterGroupClosed",i,null)),t.appendChild(Ox("setFilterGroupOpen",i,null));const o=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(e,{click:o}),this.addManagedElementListeners(t,{click:o}),r&&(n.appendChild(Ox("setFilterGroupIndeterminate",i,null)),this.addManagedElementListeners(n,{click:o})),this.setExpandedIcons(),this.refreshAriaExpanded()}onExpandOrContractClicked(){this.setExpanded(!this.isExpanded)}setExpanded(e,t){if(this.isGroup&&e!==this.isExpanded){this.isExpanded=e;const n={type:"expandedChanged",isExpanded:!!e,item:this.item};t||this.dispatchLocalEvent(n),this.setExpandedIcons(),this.refreshAriaExpanded()}}setExpandedIcons(){const{isExpanded:e,hasIndeterminateExpandState:t,eGroupClosedIcon:n,eGroupOpenedIcon:r,eGroupIndeterminateIcon:i}=this;Nn(n,t?e===!1:!e),Nn(r,e===!0),t&&Nn(i,e===void 0)}onCheckboxChanged(e){this.isSelected=e;const t={type:"selectionChanged",isSelected:e,item:this.item};this.dispatchLocalEvent(t),this.refreshVariableAriaLabels(),this.refreshAriaChecked()}toggleSelected(){this.params.readOnly||this.setSelected(!this.isSelected)}setSelected(e,t){this.isSelected=e,this.eCheckbox.setValue(e,t),this.refreshAriaChecked()}refreshVariableAriaLabels(){if(!this.isTree)return;const e=this.getLocaleTextFunc(),t=this.eCheckbox.getValue(),n=t===void 0?e("ariaIndeterminate","indeterminate"):t?e("ariaVisible","visible"):e("ariaHidden","hidden"),r=e("ariaToggleVisibility","Press SPACE to toggle visibility");Vx(this.eCheckbox.getInputElement(),void 0),this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}setupFixedAriaLabels(e){if(!this.isTree)return;const n=this.getLocaleTextFunc()("ariaFilterValue","Filter Value"),r=this.getAriaElement();Is(r,`${e} ${n}`),mK(r,this.eCheckbox.getInputElement().id)}refreshAriaChecked(){const e=this.getAriaElement();net(e,this.eCheckbox.getValue())}refreshAriaExpanded(){d1(this.getAriaElement(),!!this.isExpanded)}refresh(e,t,n){this.item=e,t!==this.isSelected&&this.setSelected(t,!0),this.setExpanded(n,!0);const{cellRendererComponent:r,cellRendererParams:i,beans:o,params:a}=this;if(this.valueFunction){const s=this.valueFunction();this.setTooltipAndCellRendererParams(s,s),r||this.renderCellWithoutCellRenderer()}if(r){const s=iP(o.userCompFactory,a,i);if(!r.refresh?.(s?.params??i)){const c=r;this.renderCell(),this.destroyBean(c)}}}render(){const{params:{column:e}}=this;let{value:t}=this,n=null;typeof t=="function"?(this.valueFunction=t,n=this.valueFunction(),t=n):this.isTree?n=ap(t):n=this.getFormattedValue(e,t),this.formattedValue=n,this.setTooltipAndCellRendererParams(t,n),this.renderCell()}setTooltipAndCellRendererParams(e,t){const n=this.gos;if(this.params.showTooltips&&(!qN(n)||!this.params.cellRenderer)){const r=t??ap(e);this.shouldDisplayTooltip=_K(n,()=>this.eCheckbox.getGui().querySelector(".ag-label")),this.tooltipFeature?.setTooltipAndRefresh(r)}this.cellRendererParams=Gn(n,{value:e,valueFormatted:t,colDef:this.params.colDef,column:this.params.column,setTooltip:(r,i)=>{n.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=i,this.tooltipFeature?.setTooltipAndRefresh(r)}})}getFormattedValue(e,t){return this.beans.valueSvc.formatValue(e,null,t,this.valueFormatter,!1)}renderCell(){const t=iP(this.beans.userCompFactory,this.params,this.cellRendererParams)?.newAgStackInstance();if(t==null){this.renderCellWithoutCellRenderer();return}t.then(n=>{n&&(this.cellRendererComponent=n,this.eCheckbox.setLabel(n.getGui()),this.destroyCellRendererComponent=()=>this.destroyBean(n))})}renderCellWithoutCellRenderer(){const{valueFormatted:e,value:t}=this.cellRendererParams;let n=e??t??this.translate("blanks");typeof n!="string"&&(ut(208),n=""),this.eCheckbox.setLabel(n),this.setupFixedAriaLabels(n)}getComponentHolder(){return this.params.column.getColDef()}},lit=class{getModelAsString(e,t){const{values:n}=e||t.getModel()||{},r=t.getValueModel();if(n==null||r==null)return"";const i=n.filter(s=>r.isKeyAvailable(s)),o=i.length,a=i.slice(0,10).map(s=>t.getFormattedValue(s));return`(${o}) ${a.join(",")}${o>10?",...":""}`}};function _he(e,t,n){let r=e;return r?(r=r.map(i=>ap(Tc(i))),!t&&n&&r.some(i=>i==null)?zr(r)==null?null:r.filter(i=>i!=null):r):null}var NXt=class{constructor(e,t,n,r,i,o,a,s,l,c){this.rowModel=e,this.filterParams=t,this.createKey=n,this.caseFormat=r,this.valueSvc=i,this.treeDataOrGrouping=o,this.treeData=a,this.groupAllowUnbalanced=s,this.addManagedEventListeners=l,this.rowGroupColsSvc=c}extractUniqueValuesAsync(e,t){return new Dr(n=>{if(this.rowModel.isRowDataLoaded())n(this.extractUniqueValues(e,t));else{const[r]=this.addManagedEventListeners({rowCountReady:()=>{r?.(),n(this.extractUniqueValues(e,t))}})}})}extractUniqueValues(e,t){const n=new Map,r=this.extractExistingFormattedKeys(t),i=new Set,o=this.treeData,a=this.rowGroupColsSvc?.columns,s=(l,c)=>{const u=this.caseFormat(l);if(!i.has(u)){i.add(u);let d=l,p=Tc(c);const h=r?.get(u);h!=null&&(d=h,p=t.get(h)),n.set(d,p)}};return this.rowModel.forEachLeafNode(l=>{if(!l.data||!e(l))return;if(this.treeDataOrGrouping){this.addValueForTreeDataOrGrouping(l,o,a,s);return}const c=this.getValue(l);c!=null&&Array.isArray(c)?(c.forEach(u=>{s(this.createKey(u,l),u)}),c.length===0&&s(null,null)):s(this.createKey(c,l),c)}),n}addValueForTreeDataOrGrouping(e,t,n=[],r){let i;if(t){if(e.childrenAfterGroup?.length)return;i=e.getRoute()??[e.key??e.id]}else i=n.map(a=>this.valueSvc.getKeyForNode(a,e)),i.push(this.getValue(e));const o=_he(i,t,this.groupAllowUnbalanced);r(this.createKey(o),o)}getValue(e){return this.filterParams.getValue(e)}extractExistingFormattedKeys(e){if(!e)return null;const t=new Map;return e.forEach((n,r)=>{t.set(this.caseFormat(r),r)}),t}},FXt=class{constructor({caseFormat:e}){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1,this.caseFormat=e}allFilteringKeys(){return this.filteringKeys}allFilteringKeysCaseFormatted(){return this.filteringKeysCaseFormatted}setFilteringKeys(e){this.filteringKeys=new Set(e),this.hasNoAppliedFilteringKeys=!this.filteringKeys||this.filteringKeys.size===0,this.filteringKeysCaseFormatted=new Set,this.filteringKeys.forEach(t=>this.filteringKeysCaseFormatted.add(this.caseFormat(t)))}addFilteringKey(e){this.filteringKeys==null&&(this.filteringKeys=new Set,this.filteringKeysCaseFormatted=new Set),this.filteringKeys.add(e),this.filteringKeysCaseFormatted.add(this.caseFormat(e)),this.hasNoAppliedFilteringKeys&&(this.hasNoAppliedFilteringKeys=!1)}hasCaseFormattedFilteringKey(e){return this.filteringKeysCaseFormatted.has(this.caseFormat(e))}hasFilteringKey(e){return this.filteringKeys.has(e)}reset(){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1}},WXt=class{constructor(e,t,n,r){this.valueSvc=e,this.valueFormatter=t,this.formatter=n,this.column=r,this.displayedKeys=[]}updateDisplayedValuesToAllAvailable(e,t,n){this.displayedKeys=Array.from(n)}updateDisplayedValuesToMatchMiniFilter(e,t,n,r,i){this.displayedKeys=[];for(const o of n)if(o==null)i&&this.displayedKeys.push(o);else{const a=e(o),s=this.valueSvc.formatValue(this.column,null,a,this.valueFormatter,!1),l=this.formatter(s);r(l)&&this.displayedKeys.push(o)}}getDisplayedValueCount(){return this.displayedKeys.length}getDisplayedItem(e){return this.displayedKeys[e]}getSelectAllItem(){return rO}getAddSelectionToFilterItem(){return iO}getDisplayedKeys(){return this.displayedKeys}forEachDisplayedKey(e){this.displayedKeys.forEach(e)}someDisplayedKey(e){return this.displayedKeys.some(e)}hasGroups(){return!1}refresh(){}},qXt=e=>Yi(e)?null:!(e instanceof Date)||isNaN(e.getTime())?["NaN"]:[String(e.getFullYear()),String(e.getMonth()+1),String(e.getDate())],IRe=class{constructor(e,t,n,r){this.formatter=e,this.treeListPathGetter=t,this.treeListFormatter=n,this.treeDataOrGrouping=r,this.allDisplayedItemsTree=[],this.activeDisplayedItemsFlat=[],this.selectAllItem={depth:0,filterPasses:!0,available:!0,treeKey:rO,children:this.allDisplayedItemsTree,expanded:!0,key:rO,parentTreeKeys:[]},this.addSelectionToFilterItem={depth:0,filterPasses:!0,available:!0,treeKey:iO,expanded:!0,key:iO,parentTreeKeys:[]}}updateOnParamsChange(e){this.treeListFormatter=e}updateDisplayedValuesToAllAvailable(e,t,n,r){r==="reload"?this.generateItemTree(e,t,n):r==="otherFilter"?(this.updateAvailable(n),this.updateExpandAll()):r==="miniFilter"&&(this.resetFilter(),this.updateExpandAll()),this.flattenItems()}updateDisplayedValuesToMatchMiniFilter(e,t,n,r,i,o){o==="reload"?this.generateItemTree(e,t,n):o==="otherFilter"&&this.updateAvailable(n),this.updateFilter(r,i),this.updateExpandAll(),this.flattenItems()}generateItemTree(e,t,n){this.allDisplayedItemsTree=[],this.groupsExist=!1;const r=this.getTreeListPathGetter(e,n);for(const i of t){const o=e(i),a=r(o)??[null];a.length>1&&(this.groupsExist=!0);const s=n.has(i);let l=this.allDisplayedItemsTree,c,u=[];a.forEach((d,p)=>{l||(l=[],c.children=l),c=l.find(h=>h.treeKey?.toUpperCase()===d?.toUpperCase()),c||(c={treeKey:d,depth:p,filterPasses:!0,expanded:!1,available:s,parentTreeKeys:u},p===a.length-1&&(c.key=i),l.push(c)),l=c.children,u=[...u,d]})}this.updateAvailable(n),this.selectAllItem.children=this.allDisplayedItemsTree,this.selectAllItem.expanded=!1}getTreeListPathGetter(e,t){if(this.treeListPathGetter)return this.treeListPathGetter;if(this.treeDataOrGrouping)return r=>r;let n=!1;for(const r of t){const i=e(r);if(i instanceof Date){n=!0;break}else if(i!=null)break}return n?qXt:(ut(211),r=>[String(r)])}flattenItems(){this.activeDisplayedItemsFlat=[];const e=t=>{t.forEach(n=>{!n.filterPasses||!n.available||(this.activeDisplayedItemsFlat.push(n),n.children&&n.expanded&&e(n.children))})};e(this.allDisplayedItemsTree)}resetFilter(){const e=t=>{t.children&&t.children.forEach(n=>{e(n)}),t.filterPasses=!0};this.allDisplayedItemsTree.forEach(t=>e(t))}updateFilter(e,t){const n=r=>r.available?r.treeKey==null?t:e(this.formatter(this.treeListFormatter?this.treeListFormatter(r.treeKey,r.depth,r.parentTreeKeys):r.treeKey)):!1;this.allDisplayedItemsTree.forEach(r=>this.recursiveItemCheck(r,!1,n,"filterPasses"))}getDisplayedValueCount(){return this.activeDisplayedItemsFlat.length}getDisplayedItem(e){return this.activeDisplayedItemsFlat[e]}getSelectAllItem(){return this.selectAllItem}getAddSelectionToFilterItem(){return this.addSelectionToFilterItem}getDisplayedKeys(){const e=[];return this.forEachDisplayedKey(t=>e.push(t)),e}forEachDisplayedKey(e){const t=(n,r)=>{n.children?(!n.expanded||!r)&&n.children.forEach(i=>{i.filterPasses&&t(i,!1)}):e(n.key)};this.activeDisplayedItemsFlat.forEach(n=>t(n,!0))}someDisplayedKey(e){const t=(n,r)=>{if(n.children){if(!n.expanded||!r)return n.children.some(i=>i.filterPasses?t(i,!1):!1)}else return e(n.key);return!1};return this.activeDisplayedItemsFlat.some(n=>t(n,!0))}hasGroups(){return this.groupsExist}refresh(){this.updateExpandAll(),this.flattenItems()}updateExpandAll(){const e=(n,r,i)=>{for(const o of n){if(!o.filterPasses||!o.available||!o.children)continue;if(r=r||!!o.expanded,i=i||!o.expanded,r&&i)return;const a=e(o.children,r,i);if(a===void 0)return;a?r=!0:i=!0}return r&&i?void 0:r},t=this.getSelectAllItem();t.expanded=e(t.children,!1,!1)}recursiveItemCheck(e,t,n,r){let i=!1;e.children&&e.children.forEach(a=>{const s=this.recursiveItemCheck(a,t||n(e),n,r);i=i||s});const o=t||i||n(e);return e[r]=o,o}updateAvailable(e){const t=n=>e.has(n.key);this.allDisplayedItemsTree.forEach(n=>this.recursiveItemCheck(n,!1,t,"available"))}},BXt=class{constructor(e){this.localEventService=new Wy,this.miniFilterText=null,this.addCurrentSelectionToFilter=!1,this.providedValues=null,this.allValues=new Map,this.availableKeys=new Set,this.selectedKeys=new Set,this.initialised=!1;const{usingComplexObjects:t,rowGroupColsSvc:n,valueSvc:r,treeDataTreeList:i,groupingTreeList:o,filterParams:a,gos:s,valueFormatter:l,addManagedEventListeners:c}=e,{column:u,colDef:d,textFormatter:p,doesRowPassOtherFilter:h,suppressSorting:g,comparator:m,rowModel:b,values:y,caseSensitive:M,treeList:C,treeListPathGetter:x,treeListFormatter:w}=a;this.filterParams=a,this.gos=s,this.setIsLoading=e.setIsLoading,this.translate=e.translate,this.caseFormat=e.caseFormat,this.createKey=e.createKey,this.usingComplexObjects=!!e.usingComplexObjects,this.formatter=p??(O=>O??null),this.doesRowPassOtherFilters=h,this.suppressSorting=g||!1,this.filteringKeys=new FXt({caseFormat:this.caseFormat});const S=m??d.comparator,A=!!i||!!o;this.compareByValue=!!(t&&S||A||C&&!x),A&&!S?this.entryComparator=this.createTreeDataOrGroupingComparator():C&&!x&&!S?this.entryComparator=([O,T],[R,P])=>YG(T,P):this.entryComparator=([O,T],[R,P])=>S(T,P),this.keyComparator=S??YG,this.caseSensitive=!!M;const z=s.get("groupAllowUnbalanced");sa(s)&&(this.clientSideValuesExtractor=new NXt(b,this.filterParams,this.createKey,this.caseFormat,r,A,!!i,z,c,n)),y==null?this.valuesType=2:(this.valuesType=Array.isArray(y)?0:1,this.providedValues=y),this.displayValueModel=C?new IRe(this.formatter,x,w,i||o):new WXt(r,l,this.formatter,u),this.updateAllValues().then(O=>this.resetSelectionState(O||[]))}addEventListener(e,t,n){this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService.removeEventListener(e,t,n)}updateOnParamsChange(e){return new Dr(t=>{const{values:n,textFormatter:r,suppressSorting:i,treeListFormatter:o}=e,a=this.providedValues,s=this.suppressSorting;if(this.filterParams=e,this.formatter=r??(l=>l??null),this.suppressSorting=i||!1,this.providedValues=n??null,this.displayValueModel instanceof IRe&&this.displayValueModel.updateOnParamsChange(o),this.providedValues!==a||this.suppressSorting!==s){!n||n.length===0?(this.valuesType=2,this.providedValues=null):this.valuesType=Array.isArray(n)?0:1;const l=this.getModel();this.updateAllValues().then(()=>{this.setModel(l).then(()=>t())})}else t()})}refreshValues(){return new Dr(e=>{this.allValuesPromise.then(()=>{const t=this.getModel();this.updateAllValues(),this.setModel(t).then(()=>e())})})}overrideValues(e){return new Dr(t=>{this.allValuesPromise.then(()=>{this.valuesType=0,this.providedValues=e,this.refreshValues().then(()=>t())})})}refreshAfterAnyFilterChanged(){return this.showAvailableOnly()?this.allValuesPromise.then(e=>(this.updateAvailableKeys(e??[],"otherFilter"),!0)):Dr.resolve(!1)}isInitialised(){return this.initialised}updateAllValues(){return this.allValuesPromise=new Dr(e=>{switch(this.valuesType){case 2:this.getValuesFromRowsAsync(!1).then(t=>e(this.processAllValues(t)));break;case 0:{e(this.processAllValues(this.uniqueValues(this.validateProvidedValues(this.providedValues))));break}case 1:{this.setIsLoading(!0);const t=this.providedValues,{column:n,colDef:r}=this.filterParams,i=Gn(this.gos,{success:o=>{this.setIsLoading(!1),e(this.processAllValues(this.uniqueValues(this.validateProvidedValues(o))))},colDef:r,column:n});window.setTimeout(()=>t(i),0);break}}}),this.allValuesPromise.then(e=>this.updateAvailableKeys(e||[],"reload")).then(()=>this.initialised=!0),this.allValuesPromise}processAllValues(e){const t=this.sortKeys(e);return this.allValues=e??new Map,t}validateProvidedValues(e){if(this.usingComplexObjects&&e?.length){const t=e[0];t&&typeof t!="object"&&typeof t!="function"&&(this.createKey(t)==null?ut(209):ut(210))}return e}setValuesType(e){this.valuesType=e}getValuesType(){return this.valuesType}isKeyAvailable(e){return this.availableKeys.has(e)}showAvailableOnly(){return this.valuesType===2}updateAvailableKeys(e,t){const n=this.showAvailableOnly()?this.sortKeys(this.getValuesFromRows(!0)):e;this.availableKeys=new Set(n),this.localEventService.dispatchEvent({type:"availableValuesChanged"}),this.updateDisplayedValues(t,e)}sortKeys(e){const t=e??new Map;if(this.suppressSorting)return Array.from(t.keys());let n;return this.compareByValue?n=Array.from(t.entries()).sort(this.entryComparator).map(([r])=>r):n=Array.from(t.keys()).sort(this.keyComparator),this.filterParams.excelMode&&t.has(null)&&(n=n.filter(r=>r!=null),n.push(null)),n}getParamsForValuesFromRows(e=!1){if(!this.clientSideValuesExtractor)return pi(113),null;const t=r=>!e||this.doesRowPassOtherFilters(r),n=e&&!this.caseSensitive?this.allValues:void 0;return{predicate:t,existingValues:n}}getValuesFromRows(e=!1){const t=this.getParamsForValuesFromRows(e);return t?this.clientSideValuesExtractor.extractUniqueValues(t.predicate,t.existingValues):null}getValuesFromRowsAsync(e=!1){const t=this.getParamsForValuesFromRows(e);return t?this.clientSideValuesExtractor.extractUniqueValuesAsync(t.predicate,t.existingValues):Dr.resolve(null)}setMiniFilter(e){return e=Tc(e),this.miniFilterText===e?!1:(e===null&&this.setAddCurrentSelectionToFilter(!1),this.miniFilterText=e,this.updateDisplayedValues("miniFilter"),!0)}getMiniFilter(){return this.miniFilterText}updateDisplayedValues(e,t){if(e==="expansion"){this.displayValueModel.refresh();return}if(this.miniFilterText==null){this.displayValueModel.updateDisplayedValuesToAllAvailable(o=>this.getValue(o),t,this.availableKeys,e);return}const n=this.caseFormat(this.formatter(this.miniFilterText)||""),r=o=>o!=null&&this.caseFormat(o).indexOf(n)>=0,i=!!this.filterParams.excelMode&&r(this.translate("blanks"));this.displayValueModel.updateDisplayedValuesToMatchMiniFilter(o=>this.getValue(o),t,this.availableKeys,r,i,e)}getDisplayedValueCount(){return this.displayValueModel.getDisplayedValueCount()}getDisplayedItem(e){return this.displayValueModel.getDisplayedItem(e)}getSelectAllItem(){return this.displayValueModel.getSelectAllItem()}getAddSelectionToFilterItem(){return this.displayValueModel.getAddSelectionToFilterItem()}hasSelections(){return this.filterParams.defaultToNothingSelected?this.selectedKeys.size>0:this.allValues.size!==this.selectedKeys.size}getKeys(){return Array.from(this.allValues.keys())}getValues(){return Array.from(this.allValues.values())}getValue(e){return this.allValues.get(e)}setAddCurrentSelectionToFilter(e){this.addCurrentSelectionToFilter=e}isInWindowsExcelMode(){return this.filterParams.excelMode==="windows"}isAddCurrentSelectionToFilterChecked(){return this.isInWindowsExcelMode()&&this.addCurrentSelectionToFilter}showAddCurrentSelectionToFilter(){return this.isInWindowsExcelMode()&&Ut(this.miniFilterText)&&this.miniFilterText.length>0}selectAllMatchingMiniFilter(e=!1){this.miniFilterText==null?this.selectedKeys=new Set(this.allValues.keys()):(e&&this.selectedKeys.clear(),this.displayValueModel.forEachDisplayedKey(t=>this.selectedKeys.add(t)))}deselectAllMatchingMiniFilter(){this.miniFilterText==null?this.selectedKeys.clear():this.displayValueModel.forEachDisplayedKey(e=>this.selectedKeys.delete(e))}selectKey(e){this.selectedKeys.add(e)}deselectKey(e){this.filterParams.excelMode&&this.isEverythingVisibleSelected()&&this.resetSelectionState(this.displayValueModel.getDisplayedKeys()),this.selectedKeys.delete(e)}isKeySelected(e){return this.selectedKeys.has(e)}isEverythingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(e=>!this.isKeySelected(e))}isNothingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(e=>this.isKeySelected(e))}getModel(){if(!this.hasSelections())return null;const e=this.isAddCurrentSelectionToFilterChecked()?this.filteringKeys.allFilteringKeys():null;if(e&&e.size>0){if(this.selectedKeys){const t=new Set([...Array.from(e),...Array.from(this.selectedKeys).filter(n=>!e.has(n))]);return Array.from(t)}return Array.from(e)}return Array.from(this.selectedKeys)}setModel(e){return this.allValuesPromise.then(t=>{if(e==null)this.resetSelectionState(t??[]);else{this.selectedKeys.clear();const n=new Map;this.allValues.forEach((r,i)=>{n.set(this.caseFormat(i),i)}),e.forEach(r=>{const i=this.caseFormat(Tc(r)),o=n.get(i);o!==void 0&&this.selectKey(o)})}})}uniqueValues(e){const t=new Map,n=new Set;return(e??[]).forEach(r=>{const i=Tc(r),o=this.createKey(i),a=this.caseFormat(o);n.has(a)||(n.add(a),t.set(o,i))}),t}resetSelectionState(e){this.filterParams.defaultToNothingSelected?this.selectedKeys.clear():this.selectedKeys=new Set(e)}hasGroups(){return this.displayValueModel.hasGroups()}createTreeDataOrGroupingComparator(){return([e,t],[n,r])=>{if(t==null)return r==null?0:-1;if(r==null)return 1;for(let i=0;i<t.length;i++){if(i>=r.length)return 1;const o=YG(t[i],r[i]);if(o!==0)return o}return 0}}setAppliedModelKeys(e){this.filteringKeys.setFilteringKeys(e)}addToAppliedModelKeys(e){this.filteringKeys.addFilteringKey(e)}getAppliedModelKeys(){return this.filteringKeys.allFilteringKeys()}getCaseFormattedAppliedModelKeys(){return this.filteringKeys.allFilteringKeysCaseFormatted()}hasAppliedModelKey(e){return this.filteringKeys.hasCaseFormattedFilteringKey(e)}hasAnyAppliedModelKey(){return!this.filteringKeys.hasNoAppliedFilteringKeys}},cit=class extends DK{constructor(){super("setFilter"),this.filterType="set",this.eMiniFilter=at,this.eFilterLoading=at,this.eFilterLoadingIcon=at,this.eSetFilterList=at,this.eFilterNoMatches=at,this.caseSensitive=!1,this.treeDataTreeList=!1,this.groupingTreeList=!1,this.hardRefreshVirtualList=!1,this.noValueFormatterSupplied=!1,this.filterModelFormatter=new lit,this.updateSetFilterOnParamsChange=e=>{this.setFilterParams=e,this.caseSensitive=!!e.caseSensitive;const t=e.keyCreator??e.colDef.keyCreator;this.setValueFormatter(e.valueFormatter,t,!!e.treeList,!!e.colDef.refData);const n=e.column.getId().startsWith(jy);this.treeDataTreeList=this.gos.get("treeData")&&!!e.treeList&&n,this.groupingTreeList=!!this.rowGroupColsSvc?.columns.length&&!!e.treeList&&n,this.createKey=this.generateCreateKey(t,this.treeDataTreeList||this.groupingTreeList)}}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc,this.dataTypeSvc=e.dataTypeSvc}postConstruct(){super.postConstruct()}updateUiVisibility(){}createBodyTemplate(){return{tag:"div",cls:"ag-set-filter",children:[{tag:"div",ref:"eFilterLoading",cls:"ag-filter-loading ag-loading ag-hidden",children:[{tag:"span",ref:"eFilterLoadingIcon",cls:"ag-loading-icon"},{tag:"span",cls:"ag-loading-text",children:this.translateForSetFilter("loadingOoo")}]},{tag:"ag-input-text-field",ref:"eMiniFilter",cls:"ag-mini-filter"},{tag:"div",ref:"eFilterNoMatches",cls:"ag-filter-no-matches ag-hidden",children:this.translateForSetFilter("noMatches")},{tag:"div",ref:"eSetFilterList",cls:"ag-set-filter-list",role:"presentation"}]}}getAgComponents(){return[Vf]}handleKeyDown(e){if(super.handleKeyDown(e),!e.defaultPrevented)switch(e.key){case Qe.SPACE:this.handleKeySpace(e);break;case Qe.ENTER:this.handleKeyEnter(e);break;case Qe.LEFT:this.handleKeyLeft(e);break;case Qe.RIGHT:this.handleKeyRight(e);break}}handleKeySpace(e){this.getComponentForKeyEvent(e)?.toggleSelected()}handleKeyEnter(e){const{excelMode:t,readOnly:n}=this.setFilterParams;!t||n||(e.preventDefault(),this.onBtApply(!1,!1,e),this.setFilterParams.excelMode==="mac"&&this.eMiniFilter.getInputElement().select())}handleKeyLeft(e){this.getComponentForKeyEvent(e)?.setExpanded(!1)}handleKeyRight(e){this.getComponentForKeyEvent(e)?.setExpanded(!0)}getComponentForKeyEvent(e){if(!this.eSetFilterList.contains($i(this.beans)))return;const t=this.virtualList.getLastFocusedRow();if(t==null)return;const n=this.virtualList.getComponentAt(t);if(n==null)return;e.preventDefault();const{readOnly:r}=this.setFilterParams;if(!r)return n}getCssIdentifier(){return"set-filter"}setModel(e){return e==null&&this.valueModel.getModel()==null?(this.setMiniFilter(null),Dr.resolve()):super.setModel(e)}refresh(e){if(this.applyExcelModeOptions(e),!super.refresh(e))return!1;const t=this.setFilterParams;return["treeList","treeListPathGetter","caseSensitive","comparator","excelMode"].some(r=>e[r]!==t?.[r])||this.haveColDefParamsChanged(e)?!1:(super.updateParams(e),this.updateSetFilterOnParamsChange(e),this.updateMiniFilter(),e.suppressSelectAll!==t?.suppressSelectAll&&this.createVirtualListModel(e),this.valueModel.updateOnParamsChange(e).then(()=>{this.isAlive()&&this.refreshFilterValues()}),!0)}haveColDefParamsChanged(e){const{colDef:t,keyCreator:n}=e,{colDef:r,keyCreator:i}=this.setFilterParams,o=n??t.keyCreator,a=i??r?.keyCreator,s=t.filterValueGetter!==r?.filterValueGetter,l=o!==a,c=!!this.dataTypeSvc&&!!o&&this.dataTypeSvc.getFormatValue(t.cellDataType)===o&&t.valueFormatter!==r?.valueFormatter;return s||l||c}setModelAndRefresh(e){return this.valueModel.setModel(e).then(()=>{this.isAlive()&&this.checkAndRefreshVirtualList()})}resetUiToDefaults(){return this.setMiniFilter(null),this.setModelAndRefresh(null)}setModelIntoUi(e){this.setMiniFilter(null);const t=e==null?null:e.values;return this.setModelAndRefresh(t)}getModelFromUi(){const e=this.valueModel.getModel();return e?{values:e,filterType:this.filterType}:null}getValueModel(){return this.valueModel}areModelsEqual(e,t){return e==null&&t==null?!0:e!=null&&t!=null&&Md(e.values,t.values)}setParams(e){this.applyExcelModeOptions(e),super.setParams(e),this.updateSetFilterOnParamsChange(e);const t=e.keyCreator??e.colDef.keyCreator;this.valueModel=new BXt({filterParams:e,setIsLoading:n=>this.setIsLoading(n),translate:n=>this.translateForSetFilter(n),caseFormat:n=>this.caseFormat(n),createKey:this.createKey,valueFormatter:this.valueFormatter,usingComplexObjects:!!t,gos:this.gos,rowGroupColsSvc:this.rowGroupColsSvc,valueSvc:this.valueSvc,treeDataTreeList:this.treeDataTreeList,groupingTreeList:this.groupingTreeList,addManagedEventListeners:n=>this.addManagedEventListeners(n)}),this.initialiseFilterBodyUi(),this.addEventListenersForDataChanges()}onAddCurrentSelectionToFilterChange(e){this.valueModel.setAddCurrentSelectionToFilter(e)}setValueFormatter(e,t,n,r){let i=e;if(!i){if(t&&!n){pi(249);return}this.noValueFormatterSupplied=!0,r||(i=o=>ap(o.value))}this.valueFormatter=i}generateCreateKey(e,t){return t&&!e?(pi(250),()=>null):e?(n,r=null)=>{const i=this.getKeyCreatorParams(n,r);return Tc(e(i))}:n=>Tc(ap(n))}getFormattedValue(e){let t=this.valueModel.getValue(e);this.noValueFormatterSupplied&&(this.treeDataTreeList||this.groupingTreeList)&&Array.isArray(t)&&(t=zr(t));const n=this.valueSvc.formatValue(this.setFilterParams.column,null,t,this.valueFormatter,!1);return n??ap(t)??this.translateForSetFilter("blanks")}applyExcelModeOptions(e){e.excelMode==="windows"?(e.buttons||(e.buttons=["apply","cancel"]),e.closeOnApply==null&&(e.closeOnApply=!0)):e.excelMode==="mac"&&(e.buttons||(e.buttons=["reset"]),e.applyMiniFilterWhileTyping==null&&(e.applyMiniFilterWhileTyping=!0),e.debounceMs==null&&(e.debounceMs=500)),e.excelMode&&e.defaultToNothingSelected&&(e.defaultToNothingSelected=!1,ut(207))}addEventListenersForDataChanges(){if(!this.isValuesTakenFromGrid())return;this.addManagedPropertyListeners(["groupAllowUnbalanced"],()=>{this.syncAfterDataChange()});const e=Ml(this,this.syncAfterDataChange.bind(this),0);this.addManagedEventListeners({cellValueChanged:t=>{t.column===this.setFilterParams.column&&e()}})}syncAfterDataChange(){const e=!this.applyActive||this.areModelsEqual(this.getModel(),this.getModelFromUi());return this.valueModel.refreshValues().then(()=>{this.isAlive()&&(this.checkAndRefreshVirtualList(),e&&this.onBtApply(!1,!0))})}setIsLoading(e){Nn(this.eFilterLoading,e),e||(this.hardRefreshVirtualList=!0)}initialiseFilterBodyUi(){this.initVirtualList(),this.initMiniFilter(),this.initLoading()}initLoading(){const e=er("setFilterLoading",this.beans,this.setFilterParams.column);e&&this.eFilterLoadingIcon.appendChild(e)}initVirtualList(){const t=this.getLocaleTextFunc()("ariaFilterList","Filter List"),n=!!this.setFilterParams.treeList,r=this.virtualList=this.createBean(new bD({cssIdentifier:"filter",ariaRole:n?"tree":"listbox",listName:t})),i=this.eSetFilterList;n&&i.classList.add("ag-set-filter-tree-list"),i&&i.appendChild(r.getGui());const{cellHeight:o}=this.setFilterParams;o!=null&&r.setRowHeight(o);const a=(l,c)=>this.createSetListItem(l,n,c);r.setComponentCreator(a);const s=(l,c)=>this.updateSetListItem(l,c);r.setComponentUpdater(s),this.createVirtualListModel(this.setFilterParams)}createVirtualListModel(e){let t;e.suppressSelectAll?t=new jXt(this.valueModel):t=new HXt(this.valueModel,()=>this.isSelectAllSelected()),e.treeList&&(t=new VXt(t)),this.virtualList.setModel(t)}getSelectAllLabel(){const e=this.valueModel.getMiniFilter()==null||!this.setFilterParams.excelMode?"selectAll":"selectAllSearchResults";return this.translateForSetFilter(e)}getAddSelectionToFilterLabel(){return this.translateForSetFilter("addCurrentSelectionToFilter")}createSetListItem(e,t,n){const r=this.valueModel.hasGroups(),{isSelected:i,isExpanded:o}=this.isSelectedExpanded(e),{value:a,depth:s,isGroup:l,hasIndeterminateExpandState:c,selectedListener:u,expandedListener:d}=this.newSetListItemAttributes(e),p={focusWrapper:n,value:a,params:this.setFilterParams,translate:g=>this.translateForSetFilter(g),valueFormatter:this.valueFormatter,item:e,isSelected:i,isTree:t,depth:s,groupsExist:r,isGroup:l,isExpanded:o,hasIndeterminateExpandState:c},h=this.createBean(new _Xt(p));return h.addEventListener("selectionChanged",u),d&&h.addEventListener("expandedChanged",d),h}newSetTreeItemAttributes(e){const t=this.valueModel.hasGroups();return e.key===rO?{value:()=>this.getSelectAllLabel(),isGroup:t,depth:e.depth,hasIndeterminateExpandState:!0,selectedListener:n=>this.onSelectAll(n.isSelected),expandedListener:n=>this.onExpandAll(n.item,n.isExpanded)}:e.key===iO?{value:()=>this.getAddSelectionToFilterLabel(),depth:e.depth,isGroup:!1,hasIndeterminateExpandState:!1,selectedListener:n=>{this.onAddCurrentSelectionToFilterChange(n.isSelected)}}:e.children?{value:this.setFilterParams.treeListFormatter?.(e.treeKey,e.depth,e.parentTreeKeys)??e.treeKey,depth:e.depth,isGroup:!0,selectedListener:n=>this.onGroupItemSelected(n.item,n.isSelected),expandedListener:n=>this.onExpandedChanged(n.item,n.isExpanded)}:{value:this.setFilterParams.treeListFormatter?.(e.treeKey,e.depth,e.parentTreeKeys)??e.treeKey,depth:e.depth,selectedListener:n=>this.onItemSelected(n.item.key,n.isSelected)}}newSetListItemAttributes(e){return this.isSetFilterModelTreeItem(e)?this.newSetTreeItemAttributes(e):e===rO?{value:()=>this.getSelectAllLabel(),selectedListener:t=>this.onSelectAll(t.isSelected)}:e===iO?{value:()=>this.getAddSelectionToFilterLabel(),selectedListener:t=>{this.onAddCurrentSelectionToFilterChange(t.isSelected)}}:{value:this.valueModel.getValue(e),selectedListener:t=>this.onItemSelected(t.item,t.isSelected)}}updateSetListItem(e,t){const{isSelected:n,isExpanded:r}=this.isSelectedExpanded(e);t.refresh(e,n,r)}isSelectedExpanded(e){let t,n;return this.isSetFilterModelTreeItem(e)?(n=e.expanded,e.key===rO?t=this.isSelectAllSelected():e.key===iO?t=this.valueModel.isAddCurrentSelectionToFilterChecked():e.children?t=this.areAllChildrenSelected(e):t=this.valueModel.isKeySelected(e.key)):e===rO?t=this.isSelectAllSelected():e===iO?t=this.valueModel.isAddCurrentSelectionToFilterChecked():t=this.valueModel.isKeySelected(e),{isSelected:t,isExpanded:n}}isSetFilterModelTreeItem(e){return e?.treeKey!==void 0}initMiniFilter(){const{eMiniFilter:e}=this,t=this.getLocaleTextFunc();e.setDisplayed(!this.setFilterParams.suppressMiniFilter),e.setValue(this.valueModel.getMiniFilter()),e.onValueChange(()=>this.onMiniFilterInput()),e.setInputAriaLabel(t("ariaSearchFilterValues","Search filter values")),this.addManagedElementListeners(e.getInputElement(),{keydown:n=>this.onMiniFilterKeyDown(n)})}updateMiniFilter(){const{eMiniFilter:e}=this;e.isDisplayed()!==!this.setFilterParams.suppressMiniFilter&&e.setDisplayed(!this.setFilterParams.suppressMiniFilter);const t=this.valueModel.getMiniFilter();e.getValue()!==t&&e.setValue(t)}afterGuiAttached(e){super.afterGuiAttached(e),this.resetExpansion(),this.refreshVirtualList();const{eMiniFilter:t}=this;t.setInputPlaceholder(this.translateForSetFilter("searchOoo")),(!e||!e.suppressFocus)&&(t.isDisplayed()?t.getFocusableElement().focus():this.virtualList.awaitStable(()=>this.virtualList.focusRow(0)))}afterGuiDetached(){super.afterGuiDetached(),this.setFilterParams.excelMode&&this.resetMiniFilter();const e=this.getModel();(this.setFilterParams.excelMode||!this.areModelsEqual(e,this.getModelFromUi()))&&(this.resetUiToActiveModel(e),this.showOrHideResults())}applyModel(e="api"){this.setFilterParams.excelMode&&e!=="rowDataUpdated"&&this.valueModel.isEverythingVisibleSelected()&&this.valueModel.selectAllMatchingMiniFilter();const t=this.valueModel.showAddCurrentSelectionToFilter()&&this.valueModel.isAddCurrentSelectionToFilterChecked();if(t&&!this.getModel())return!1;const n=super.applyModel(e),r=this.getModel();return r?(t||this.valueModel.setAppliedModelKeys(new Set),r.values.forEach(i=>{this.valueModel.addToAppliedModelKeys(i)})):t||this.valueModel.setAppliedModelKeys(null),n}isModelValid(e){return this.setFilterParams.excelMode?e==null||e.values.length>0:!0}doesFilterPass(e){if(!this.valueModel.getCaseFormattedAppliedModelKeys())return!0;if(!this.valueModel.hasAnyAppliedModelKey())return!1;const{node:t}=e;if(this.treeDataTreeList)return this.doesFilterPassForTreeData(t);if(this.groupingTreeList)return this.doesFilterPassForGrouping(t);const n=this.getValueFromNode(t);return n!=null&&Array.isArray(n)?n.length===0?this.valueModel.hasAppliedModelKey(null):n.some(r=>this.isInAppliedModel(this.createKey(r,t))):this.isInAppliedModel(this.createKey(n,t))}doesFilterPassForTreeData(e){return e.childrenAfterGroup?.length?!1:this.isInAppliedModel(this.createKey(_he(e.getRoute()??[e.key??e.id],!0,this.gos.get("groupAllowUnbalanced"))))}doesFilterPassForGrouping(e){const t=(this.rowGroupColsSvc?.columns??[]).map(n=>this.valueSvc.getKeyForNode(n,e));return t.push(this.getValueFromNode(e)),this.isInAppliedModel(this.createKey(_he(t,!1,this.gos.get("groupAllowUnbalanced"))))}isInAppliedModel(e){return this.valueModel.hasAppliedModelKey(e)}getValueFromNode(e){return this.setFilterParams.getValue(e)}getKeyCreatorParams(e,t=null){const{colDef:n,column:r,api:i,context:o}=this.setFilterParams;return{value:e,colDef:n,column:r,node:t,data:t?.data,api:i,context:o}}onNewRowsLoaded(){this.isValuesTakenFromGrid()&&this.syncAfterDataChange()}isValuesTakenFromGrid(){return this.valueModel.getValuesType()===2}setFilterValues(e){this.valueModel.overrideValues(e).then(()=>{this.isAlive()&&(this.checkAndRefreshVirtualList(),this.onUiChanged())})}resetFilterValues(){this.valueModel.setValuesType(2),this.syncAfterDataChange()}refreshFilterValues(){this.valueModel.isInitialised()&&this.valueModel.refreshValues().then(()=>{this.isAlive()&&(this.hardRefreshVirtualList=!0,this.checkAndRefreshVirtualList(),this.onUiChanged())})}onAnyFilterChanged(){setTimeout(()=>{this.isAlive()&&this.valueModel.refreshAfterAnyFilterChanged().then(e=>{e&&this.isAlive()&&(this.checkAndRefreshVirtualList(),this.showOrHideResults())})},0)}onMiniFilterInput(){if(!this.valueModel.setMiniFilter(this.eMiniFilter.getValue()))return;const{applyMiniFilterWhileTyping:e,readOnly:t}=this.setFilterParams;!t&&e?this.filterOnAllVisibleValues(!1):this.updateUiAfterMiniFilterChange()}updateUiAfterMiniFilterChange(){const{excelMode:e,readOnly:t}=this.setFilterParams;e==null||t?this.checkAndRefreshVirtualList():this.valueModel.getMiniFilter()==null?this.resetUiToActiveModel(this.getModel()):(this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged()),this.showOrHideResults()}showOrHideResults(){const e=this.valueModel.getMiniFilter()!=null&&this.valueModel.getDisplayedValueCount()<1;Nn(this.eFilterNoMatches,e),Nn(this.eSetFilterList,!e)}resetMiniFilter(){this.eMiniFilter.setValue(null,!0),this.valueModel.setMiniFilter(null)}resetUiToActiveModel(e,t){this.setModelAndRefresh(e==null?null:e.values).then(()=>{this.isAlive()&&(this.onUiChanged(!1,"prevent"),t?.())})}handleCancelEnd(e){this.setMiniFilter(null),super.handleCancelEnd(e)}onMiniFilterKeyDown(e){const{excelMode:t,readOnly:n}=this.setFilterParams;e.key===Qe.ENTER&&!t&&!n&&this.filterOnAllVisibleValues()}filterOnAllVisibleValues(e=!0){this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged(!1,e?"immediately":"debounce"),this.showOrHideResults()}focusRowIfAlive(e){return e==null?Promise.resolve():new Promise(t=>{window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(e),t()},0)})}onSelectAll(e){e?this.valueModel.selectAllMatchingMiniFilter():this.valueModel.deselectAllMatchingMiniFilter(),this.refreshAfterSelection()}onGroupItemSelected(e,t){const n=r=>{r.filterPasses&&(r.children?r.children.forEach(i=>n(i)):this.selectItem(r.key,t))};n(e),this.refreshAfterSelection()}onItemSelected(e,t){this.selectItem(e,t),this.refreshAfterSelection()}selectItem(e,t){t?this.valueModel.selectKey(e):this.valueModel.deselectKey(e)}onExpandAll(e,t){const n=r=>{r.filterPasses&&r.available&&r.children&&(r.children.forEach(i=>n(i)),r.expanded=t)};n(e),this.refreshAfterExpansion()}onExpandedChanged(e,t){e.expanded=t,this.refreshAfterExpansion()}refreshAfterExpansion(){const e=this.virtualList.getLastFocusedRow();this.valueModel.updateDisplayedValues("expansion"),this.checkAndRefreshVirtualList(),this.focusRowIfAlive(e)}refreshAfterSelection(){const e=this.virtualList.getLastFocusedRow();this.checkAndRefreshVirtualList(),this.onUiChanged(),this.focusRowIfAlive(e)}setMiniFilter(e){this.eMiniFilter.setValue(e),this.onMiniFilterInput()}getMiniFilter(){return this.valueModel.getMiniFilter()}checkAndRefreshVirtualList(){this.virtualList.refresh(!this.hardRefreshVirtualList),this.hardRefreshVirtualList&&(this.hardRefreshVirtualList=!1)}getFilterKeys(){return this.valueModel.getKeys()}getFilterValues(){return this.valueModel.getValues()}getValues(){return this.getFilterKeys()}refreshVirtualList(){this.setFilterParams.refreshValuesOnOpen?this.refreshFilterValues():this.checkAndRefreshVirtualList()}translateForSetFilter(e){return this.getLocaleTextFunc()(e,DXt[e])}isSelectAllSelected(){if(this.setFilterParams.defaultToNothingSelected){if(this.valueModel.hasSelections()&&this.valueModel.isEverythingVisibleSelected())return!0;if(this.valueModel.isNothingVisibleSelected())return!1}else{if(this.valueModel.hasSelections()&&this.valueModel.isNothingVisibleSelected())return!1;if(this.valueModel.isEverythingVisibleSelected())return!0}}areAllChildrenSelected(e){const t=n=>{if(n.children){let r=!1,i=!1;return n.children.some(a=>{if(!a.filterPasses||!a.available)return!1;const s=t(a);return s===void 0?!0:(s?r=!0:i=!0,r&&i)})?void 0:r}else return this.valueModel.isKeySelected(n.key)};return this.setFilterParams.defaultToNothingSelected?this.valueModel.hasSelections()&&t(e):t(e)}destroy(){this.virtualList=this.destroyBean(this.virtualList),super.destroy()}caseFormat(e){return e==null||typeof e!="string"||this.caseSensitive?e:e.toUpperCase()}resetExpansion(){if(!this.setFilterParams.treeList)return;const e=this.valueModel.getSelectAllItem();if(this.isSetFilterModelTreeItem(e)){const t=n=>{n.children&&(n.children.forEach(r=>t(r)),n.expanded=!1)};t(e),this.valueModel.updateDisplayedValues("expansion")}}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e,this)}getPositionableElement(){return this.eSetFilterList}},jXt=class{constructor(e){this.model=e}getRowCount(){return this.model.getDisplayedValueCount()}getRow(e){return this.model.getDisplayedItem(e)}areRowsEqual(e,t){return e===t}},HXt=class{constructor(e,t){this.model=e,this.isSelectAllSelected=t}getRowCount(){const t=this.model.showAddCurrentSelectionToFilter()?2:1;return this.model.getDisplayedValueCount()+t}getRow(e){if(e===0)return this.model.getSelectAllItem();const t=this.model.showAddCurrentSelectionToFilter(),n=t?2:1;return e===1&&t?this.model.getAddSelectionToFilterItem():this.model.getDisplayedItem(e-n)}areRowsEqual(e,t){return e===t}},VXt=class{constructor(e){this.model=e}getRowCount(){return this.model.getRowCount()}getRow(e){return this.model.getRow(e)}areRowsEqual(e,t){return e==null&&t==null?!0:e!=null&&t!=null&&e.treeKey===t.treeKey&&e.depth===t.depth}},GXt={tag:"div",cls:"ag-floating-filter-input ag-set-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},$Xt=class extends Gt{constructor(){super(GXt,[Vf]),this.eFloatingFilterText=at,this.availableValuesListenerAdded=!1,this.filterModelFormatter=new lit}wireBeans(e){this.colNames=e.colNames}init(e){this.params=e,this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams(e)}setParams(e){const t=this.colNames.getDisplayNameForColumn(e.column,"header",!0),n=this.getLocaleTextFunc();this.eFloatingFilterText.setInputAriaLabel(`${t} ${n("ariaFilterInput","Filter Input")}`)}refresh(e){this.params=e,this.setParams(e)}onParentModelChanged(e){this.updateFloatingFilterText(e)}parentSetFilterInstance(e){this.params.parentFilterInstance(t=>{if(!(t instanceof cit)){pi(248);return}e(t)})}addAvailableValuesListener(){this.parentSetFilterInstance(e=>{const t=e.getValueModel();t&&this.addManagedListeners(t,{availableValuesChanged:()=>this.updateFloatingFilterText()})}),this.availableValuesListenerAdded=!0}updateFloatingFilterText(e){this.availableValuesListenerAdded||this.addAvailableValuesListener(),this.parentSetFilterInstance(t=>{this.eFloatingFilterText.setValue(this.filterModelFormatter.getModelAsString(e,t))})}},UXt={moduleName:"SetFilter",version:wi,userComponents:{agSetColumnFilter:cit,agSetColumnFloatingFilter:$Xt},icons:{setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",setFilterLoading:"loading"},dependsOn:[es,xw]},XXt=".ag-status-bar{border-top:var(--ag-footer-row-border);display:flex;justify-content:space-between;line-height:1.5;overflow:hidden;padding-left:calc(var(--ag-spacing)*4);padding-right:calc(var(--ag-spacing)*4)}.ag-status-panel,:where(.ag-status-panel.ag-status-panel-aggregations .ag-status-name-value){display:inline-flex}.ag-status-name-value{color:var(--ag-status-bar-label-color);font-weight:var(--ag-status-bar-label-font-weight);margin-left:var(--ag-spacing);margin-right:var(--ag-spacing);padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding);white-space:nowrap}.ag-status-name-value-value{color:var(--ag-status-bar-value-color);font-weight:var(--ag-status-bar-value-font-weight)}.ag-status-bar-left{display:inline-flex}.ag-status-bar-center{display:inline-flex;text-align:center}.ag-status-bar-right{display:inline-flex}";function YXt(e,t,n){return e.getCompDetails(t,KXt,void 0,n,!0)}var KXt={name:"statusPanel",optionalMethods:["refresh"]},QXt={tag:"div",cls:"ag-status-bar",children:[{tag:"div",ref:"eStatusBarLeft",cls:"ag-status-bar-left",role:"status"},{tag:"div",ref:"eStatusBarCenter",cls:"ag-status-bar-center",role:"status"},{tag:"div",ref:"eStatusBarRight",cls:"ag-status-bar-right",role:"status"}]},ZXt=class extends Gt{constructor(){super(QXt),this.updateQueued=!1,this.panelsPromise=Dr.resolve(),this.eStatusBarLeft=at,this.eStatusBarCenter=at,this.eStatusBarRight=at,this.compDestroyFunctions={},this.registerCSS(XXt)}wireBeans(e){this.userCompFactory=e.userCompFactory,this.statusBarSvc=e.statusBarSvc}postConstruct(){this.processStatusPanels(new Map),this.addManagedPropertyListeners(["statusBar"],this.handleStatusBarChanged.bind(this))}processStatusPanels(e){const t=this.gos.get("statusBar")?.statusPanels;if(t){const n=t.filter(o=>o.align==="left"),r=t.filter(o=>o.align==="center"),i=t.filter(o=>!o.align||o.align==="right");this.panelsPromise=Dr.all([this.createAndRenderComponents(n,this.eStatusBarLeft,e),this.createAndRenderComponents(r,this.eStatusBarCenter,e),this.createAndRenderComponents(i,this.eStatusBarRight,e)])}else this.setDisplayed(!1)}handleStatusBarChanged(){this.updateQueued||(this.updateQueued=!0,this.panelsPromise.then(()=>{this.updateStatusBar(),this.updateQueued=!1}))}updateStatusBar(){const e=this.gos.get("statusBar")?.statusPanels,t=Array.isArray(e)&&e.length>0;this.setDisplayed(t);const n=new Map;t&&e.forEach(r=>{const i=r.key??r.statusPanel,o=this.statusBarSvc.getStatusPanel(i);if(o?.refresh){const a=Gn(this.gos,{...r.statusPanelParams??{},key:i});o.refresh(a)&&(n.set(i,o),delete this.compDestroyFunctions[i],Ps(o.getGui()))}}),this.resetStatusBar(),t&&this.processStatusPanels(n)}resetStatusBar(){Xi(this.eStatusBarLeft),Xi(this.eStatusBarCenter),Xi(this.eStatusBarRight),this.destroyComponents(),this.statusBarSvc.unregisterAllComponents()}destroy(){this.destroyComponents(),super.destroy()}destroyComponents(){Object.values(this.compDestroyFunctions).forEach(e=>e()),this.compDestroyFunctions={}}createAndRenderComponents(e,t,n){const r=[];return e.forEach(i=>{const o=i.key||i.statusPanel,a=n.get(o);let s;if(a)s=Dr.resolve(a);else{const l=YXt(this.userCompFactory,i,Gn(this.gos,{key:o}));if(l==null)return;s=l.newAgStackInstance()}r.push({key:o,promise:s})}),Dr.all(r.map(i=>i.promise)).then(()=>{r.forEach(i=>{i.promise.then(o=>{const a=()=>{this.destroyBean(o)};this.isAlive()?(this.statusBarSvc.registerStatusPanel(i.key,o),t.appendChild(o.getGui()),this.compDestroyFunctions[i.key]=a):a()})})})}},JXt={selector:"AG-STATUS-BAR",component:ZXt},eYt={tag:"div",cls:"ag-status-name-value",children:[{tag:"span",ref:"eLabel"},": ",{tag:"span",ref:"eValue",cls:"ag-status-name-value-value"}]},A6=class extends Gt{constructor(){super(eYt),this.eLabel=at,this.eValue=at}setLabel(e,t){this.setDisplayed(!1),this.eLabel.textContent=this.getLocaleTextFunc()(e,t)}setValue(e,t){this.eValue.textContent=this.valueFormatter(Gn(this.gos,{value:e,totalRows:t,key:this.key}))}},tYt={selector:"AG-NAME-VALUE",component:A6},uit=e=>{let t=0;return e.forEachNodeAfterFilter(n=>{n.data&&t++}),t},O6=e=>{let t=0;return e.forEachNode(n=>{n.data&&t++}),t};function nYt(e,t){return typeof e!="number"?"":xz(Math.round(e*100)/100,t)}var rYt={tag:"div",cls:"ag-status-panel ag-status-panel-aggregations",children:[{tag:"ag-name-value",ref:"avgAggregationComp"},{tag:"ag-name-value",ref:"countAggregationComp"},{tag:"ag-name-value",ref:"minAggregationComp"},{tag:"ag-name-value",ref:"maxAggregationComp"},{tag:"ag-name-value",ref:"sumAggregationComp"}]},iYt=class extends Gt{constructor(){super(rYt,[tYt]),this.sumAggregationComp=at,this.countAggregationComp=at,this.minAggregationComp=at,this.maxAggregationComp=at,this.avgAggregationComp=at}postConstruct(){if(!sa(this.gos)&&!Au(this.gos)){ut(221);return}this.avgAggregationComp.setLabel("avg","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addManagedEventListeners({cellSelectionChanged:this.onCellSelectionChanged.bind(this),modelUpdated:this.onCellSelectionChanged.bind(this)})}init(e){this.refresh(e)}refresh(e){this.params=e;const t=e.valueFormatter??(({value:r})=>nYt(r,this.getLocaleTextFunc.bind(this))),n=["avg","count","min","max","sum"];for(const r of n){const i=this.getAllowedAggregationValueComponent(r);i&&(i.key=r,i.valueFormatter=t.bind(this))}return this.onCellSelectionChanged(),!0}setAggregationComponentValue(e,t,n){const r=this.getAllowedAggregationValueComponent(e),i=O6(this.beans.rowModel);Ut(r)&&r?(r.setValue(t,i),r.setDisplayed(n)):this.getAggregationValueComponent(e)?.setDisplayed(!1)}getAllowedAggregationValueComponent(e){const{aggFuncs:t}=this.params;return!t||t.includes(e)?this.getAggregationValueComponent(e):null}getAggregationValueComponent(e){const t=`${e}AggregationComp`;return this[t]}onCellSelectionChanged(){const e=this.beans,{rangeSvc:t,valueSvc:n}=e,r=t?.getCellRanges();let i=0,o=0,a=0,s=null,l=null;const c={};if(r?.length&&t)for(let p=0;p<r.length;p++){const h=r[p];let g=t.getRangeStartRow(h);const m=t.getRangeEndRow(h);for(;!(Yi(g)||!g||t0(m,g)||!g||!h.columns);)h.columns.forEach(y=>{if(g===null)return;const M=RC({rowPinned:g.rowPinned,column:y,rowIndex:g.rowIndex});if(c[M])return;c[M]=!0;const C=lp(e,g);if(Yi(C))return;let x=n.getValue(y,C);Yi(x)||x===""||(o++,!(typeof x=="object"&&"value"in x&&(x=x.value,x===""))&&(typeof x=="string"&&(x=Number(x)),typeof x=="number"&&!isNaN(x)&&(i+=x,(l===null||x>l)&&(l=x),(s===null||x<s)&&(s=x),a++)))}),g=Gp(e,g)}const u=o>1,d=a>1;this.setAggregationComponentValue("count",o,u),this.setAggregationComponentValue("sum",i,d),this.setAggregationComponentValue("min",s,d),this.setAggregationComponentValue("max",l,d),this.setAggregationComponentValue("avg",i/a,d)}},oYt=class extends A6{postConstruct(){if(this.setLabel("filteredRows","Filtered"),!sa(this.gos)){ut(222);return}this.addCss("ag-status-panel"),this.addCss("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);const e=this.onDataChanged.bind(this);this.addManagedEventListeners({modelUpdated:e})}onDataChanged(){const{rowModel:e}=this.beans,t=O6(e),n=uit(e);this.setValue(n,t),this.setDisplayed(t!==n)}init(e){this.refresh(e),this.onDataChanged()}updateValueFormatter(e){this.valueFormatter=e??(({value:t})=>xz(t,this.getLocaleTextFunc.bind(this)))}refresh(e){const{key:t,valueFormatter:n}=e;return this.key=t,this.updateValueFormatter(n),!0}},aYt=class extends A6{postConstruct(){const e=this.gos;if(!sa(e)&&!Au(e)){ut(223);return}this.setLabel("selectedRows","Selected"),this.addCss("ag-status-panel"),this.addCss("ag-status-panel-selected-row-count");const t=this.onRowSelectionChanged.bind(this);this.addManagedEventListeners({modelUpdated:t,selectionChanged:t})}onRowSelectionChanged(){const{selectionSvc:e,rowModel:t}=this.beans,n=e?.getSelectionCount()??0,r=O6(t);if(this.setValue(n,r),n<0){this.setDisplayed(!0);return}this.setDisplayed(n>0)}init(e){this.refresh(e),this.onRowSelectionChanged()}updateValueFormatter(e){this.valueFormatter=e??(({value:t})=>t==null||t>=0?xz(t,this.getLocaleTextFunc.bind(this)):this.getLocaleTextFunc()("statusBarLastRowUnknown","?"))}refresh(e){const{key:t,valueFormatter:n}=e;return this.key=t,this.updateValueFormatter(n),!0}},sYt=class extends A6{postConstruct(){if(!sa(this.gos)){ut(224);return}this.setLabel("totalAndFilteredRows","Rows"),this.addCss("ag-status-panel"),this.addCss("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)})}onDataChanged(){const{rowModel:e}=this.beans,t=uit(e),n=O6(e);this.setValue(t,n)}init(e){this.refresh(e),this.onDataChanged()}updateValueFormatter(e){this.valueFormatter=e??(({value:t,totalRows:n})=>{const r=this.getLocaleTextFunc.bind(this),i=xz(t,r),o=xz(n??t,r);if(t===n)return i;const a=r();return`${i} ${a("of","of")} ${o}`})}refresh(e){const{key:t,valueFormatter:n}=e;return this.key=t,this.updateValueFormatter(n),!0}},lYt=class extends A6{postConstruct(){if(this.setLabel("totalRows","Total Rows"),!sa(this.gos)){ut(225);return}this.addCss("ag-status-panel"),this.addCss("ag-status-panel-total-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)})}onDataChanged(){const e=O6(this.beans.rowModel);this.setValue(e,e)}init(e){this.refresh(e),this.onDataChanged()}updateValueFormatter(e){this.valueFormatter=e??(({value:t})=>xz(t,this.getLocaleTextFunc.bind(this)))}refresh(e){const{key:t,valueFormatter:n}=e;return this.key=t,this.updateValueFormatter(n),!0}};function cYt(e,t){const n=e.statusBarSvc?.getStatusPanel(t);return Mz(n)}var uYt=class extends dt{constructor(){super(),this.beanName="statusBarSvc",this.comps=new Map}registerStatusPanel(e,t){this.comps.set(e,t)}unregisterStatusPanel(e){this.comps.delete(e)}unregisterAllComponents(){this.comps.clear()}getStatusPanel(e){return this.comps.get(e)}destroy(){this.unregisterAllComponents(),super.destroy()}},dYt={moduleName:"StatusBar",version:wi,beans:[uYt],userComponents:{agAggregationComponent:iYt,agTotalRowCountComponent:lYt,agFilteredRowCountComponent:oYt,agTotalAndFilteredRowCountComponent:sYt,agSelectedRowCountComponent:aYt},selectors:[JXt],apiFunctions:{getStatusPanel:cYt},dependsOn:[es,FK]};function dit(e){return e.excelCreator?.getFactoryMode()==="MULTI_SHEET"?(ut(161),!1):!0}function pYt(e,t){if(dit(e))return e.excelCreator?.getDataAsExcel(t)}function hYt(e,t){dit(e)&&e.excelCreator?.exportDataAsExcel(t)}function fYt(e,t){return e.excelCreator?.setFactoryMode("MULTI_SHEET"),e.excelCreator?.getSheetDataForExcel(t)}function gYt(e,t){return e.excelCreator?.getMultipleSheetsAsExcel(t)}function mYt(e,t){e.excelCreator?.exportMultipleSheetsAsExcel(t)}var vYt={moduleName:"ExcelExport",version:wi,beans:[X$t],apiFunctions:{getDataAsExcel:pYt,exportDataAsExcel:hYt,getSheetDataForExcel:fYt,getMultipleSheetsAsExcel:gYt,exportMultipleSheetsAsExcel:mYt},dependsOn:[drt,es]};function bYt(e){const t=e.cssIdentifier||"default",n=e.direction||"vertical";return{tag:"div",cls:`ag-group ag-${t}-group`,role:"presentation",children:[{tag:"div",ref:"eToolbar",cls:`ag-group-toolbar ag-${t}-group-toolbar`,children:[{tag:"ag-checkbox",ref:"cbGroupEnabled"}]},{tag:"div",ref:"eContainer",cls:`ag-group-container ag-group-container-${n} ag-${t}-group-container`}]}}var Gy=class extends Gt{constructor(e={}){super(bYt(e),[Rm]),this.params=e,this.suppressEnabledCheckbox=!0,this.suppressToggleExpandOnEnableChange=!1,this.eToolbar=at,this.cbGroupEnabled=at,this.eContainer=at;const{enabled:t,items:n,suppressEnabledCheckbox:r,expanded:i,suppressToggleExpandOnEnableChange:o,useToggle:a}=e;this.cssIdentifier=e.cssIdentifier||"default",this.enabled=t??!0,this.items=n||[],this.useToggle=a??!1,this.alignItems=e.alignItems||"center",this.expanded=i??!0,r!=null&&(this.suppressEnabledCheckbox=r),o!=null&&(this.suppressToggleExpandOnEnableChange=o)}postConstruct(){if(this.setupTitleBar(),this.items.length){const i=this.items;this.items=[],this.addItems(i)}const e=this.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.enabled&&this.setEnabled(this.enabled,void 0,!0),this.setAlignItems(this.alignItems);const{onEnableChange:t,onExpandedChange:n,suppressOpenCloseIcons:r}=this.params;this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(r??!1),this.refreshChildDisplay(),Nn(this.eContainer,this.expanded),this.cbGroupEnabled.onValueChange(i=>{this.setEnabled(i,!0,this.suppressToggleExpandOnEnableChange),this.dispatchEnableChangeEvent(i)}),t!=null&&this.onEnableChange(t),n!=null&&this.onExpandedChange(n)}refreshChildDisplay(){Nn(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),this.eTitleBar?.refreshOnExpand(this.expanded)}isExpanded(){return this.expanded}setAlignItems(e){this.alignItems!==e&&this.removeCss(`ag-group-item-alignment-${this.alignItems}`),this.alignItems=e;const t=`ag-group-item-alignment-${this.alignItems}`;return this.addCss(t),this}toggleGroupExpand(e,t){if(this.eTitleBar?.isSuppressCollapse()&&!this.useToggle)e=!0,t=!0;else if(e=e??!this.expanded,this.expanded===e)return this;return this.expanded=e,this.refreshChildDisplay(),Nn(this.eContainer,e),t||this.dispatchLocalEvent({type:e?"expanded":"collapsed"}),this}addItems(e){e.forEach(t=>this.addItem(t))}prependItem(e){this.insertItem(e,!0)}addItem(e){this.insertItem(e,!1)}insertItem(e,t){const n=this.eContainer,r=e instanceof Gt?e.getGui():e;r.classList.add("ag-group-item",`ag-${this.cssIdentifier}-group-item`),t?(n.insertAdjacentElement("afterbegin",r),this.items.unshift(r)):(n.appendChild(r),this.items.push(r))}hideItem(e,t){const n=this.items[t];Nn(n,!e)}getItemIndex(e){const t=e instanceof Gt?e.getGui():e;return this.items.indexOf(t)}setTitle(e){return this.eTitleBar?.setTitle(e),this}addTitleBarWidget(e){return this.eTitleBar?.addWidget(e),this}addCssClassToTitleBar(e){this.eTitleBar?.addCss(e)}dispatchEnableChangeEvent(e){const t={type:"enableChange",enabled:e};this.dispatchLocalEvent(t)}setEnabled(e,t,n){return this.enabled=e,this.refreshDisabledStyles(),n||this.toggleGroupExpand(e),t||(this.cbGroupEnabled.setValue(e),this.eToggle?.setValue(e)),this}isEnabled(){return this.enabled}onEnableChange(e){return this.addManagedListeners(this,{enableChange:t=>e(t.enabled)}),this}onExpandedChange(e){return this.addManagedListeners(this,{expanded:()=>e(!0),collapsed:()=>e(!1)}),this}hideEnabledCheckbox(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this}hideOpenCloseIcons(e){return this.eTitleBar?.hideOpenCloseIcons(e),this}refreshDisabledStyles(){const e=!this.enabled;this.eContainer.classList.toggle("ag-disabled",e),this.eTitleBar?.refreshDisabledStyles(this.suppressEnabledCheckbox&&e),this.eContainer.classList.toggle("ag-disabled-group-container",e)}setupTitleBar(){const e=this.useToggle?this.createToggleTitleBar():this.createDefaultTitleBar();this.eToolbar.insertAdjacentElement("beforebegin",e.getGui())}createDefaultTitleBar(){const e=this.createManagedBean(new MYt(this.params));return this.eTitleBar=e,e.refreshOnExpand(this.expanded),this.addManagedListeners(e,{expandedChanged:t=>this.toggleGroupExpand(t.expanded)}),e}createToggleTitleBar(){const e=this.createManagedBean(new b3({value:this.enabled,label:this.params.title,labelAlignment:"left",labelWidth:"flex",onValueChange:t=>{this.setEnabled(t,!0),this.dispatchEnableChangeEvent(t)}}));return e.addCss("ag-group-title-bar"),e.addCss(`ag-${this.params.cssIdentifier??"default"}-group-title-bar ag-unselectable`),this.eToggle=e,this.toggleGroupExpand(this.enabled),e}},zre="ag-disabled-group-title-bar";function yYt(e){const t=e.cssIdentifier??"default";return{tag:"div",cls:`ag-group-title-bar ag-${t}-group-title-bar ag-unselectable`,role:e.suppressKeyboardNavigation?"presentation":"role",children:[{tag:"span",ref:"eGroupOpenedIcon",cls:`ag-group-title-bar-icon ag-${t}-group-title-bar-icon`,role:"presentation"},{tag:"span",ref:"eGroupClosedIcon",cls:`ag-group-title-bar-icon ag-${t}-group-title-bar-icon`,role:"presentation"},{tag:"span",ref:"eTitle",cls:`ag-group-title ag-${t}-group-title`}]}}var MYt=class extends Gt{constructor(e={}){super(yYt(e)),this.suppressOpenCloseIcons=!1,this.suppressKeyboardNavigation=!1,this.eGroupOpenedIcon=at,this.eGroupClosedIcon=at,this.eTitle=at;const{title:t,suppressOpenCloseIcons:n,suppressKeyboardNavigation:r}=e;t&&t.length>0&&(this.title=t),n!=null&&(this.suppressOpenCloseIcons=n),this.suppressKeyboardNavigation=r??!1}postConstruct(){this.setTitle(this.title),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()}setupExpandContract(){this.eGroupClosedIcon.appendChild(Ox("accordionClosed",this.beans,null)),this.eGroupOpenedIcon.appendChild(Ox("accordionOpen",this.beans,null)),this.addManagedElementListeners(this.getGui(),{click:()=>this.dispatchExpandChanged(),keydown:e=>{switch(e.key){case Qe.ENTER:case Qe.SPACE:e.preventDefault(),this.dispatchExpandChanged();break;case Qe.RIGHT:case Qe.LEFT:e.preventDefault(),this.dispatchExpandChanged(e.key===Qe.RIGHT);break}}})}refreshOnExpand(e){this.refreshAriaStatus(e),this.refreshOpenCloseIcons(e)}refreshAriaStatus(e){this.suppressOpenCloseIcons||d1(this.getGui(),e)}refreshOpenCloseIcons(e){const t=!this.suppressOpenCloseIcons;Nn(this.eGroupOpenedIcon,t&&e),Nn(this.eGroupClosedIcon,t&&!e)}isSuppressCollapse(){return this.suppressOpenCloseIcons}dispatchExpandChanged(e){const t={type:"expandedChanged",expanded:e};this.dispatchLocalEvent(t)}setTitle(e){const t=this.getGui(),n=!!e&&e.length>0;e=n?e:void 0,this.eTitle.textContent=e??"",Nn(t,n),e!==this.title&&(this.title=e);const r=t.classList.contains(zre);return this.refreshDisabledStyles(r),this}addWidget(e){return this.getGui().appendChild(e),this}hideOpenCloseIcons(e){return this.suppressOpenCloseIcons=e,e&&this.dispatchExpandChanged(!0),this}refreshDisabledStyles(e){const t=this.getGui();e?(t.classList.add(zre),t.removeAttribute("tabindex")):(t.classList.remove(zre),typeof this.title=="string"&&!this.suppressKeyboardNavigation?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))}},Qs={selector:"AG-GROUP-COMPONENT",component:Gy};function pit(e){const{filters:t}=e;return t&&t.length>0?t:[{filter:"agTextColumnFilter"},{filter:"agSetColumnFilter"}]}function PRe(e,t){if(e!=null)for(let n=e.length-1;n>=0;n--)t(e[n],n)}function CYt(e,t){return t.title!=null?t.title:e instanceof DK?e.getFilterTitle():"Filter"}var hit=class extends Gb{constructor(){super({tag:"div",cls:"ag-multi-filter ag-menu-list-compact"}),this.filterType="multi",this.filterDefs=[],this.filters=[],this.guiDestroyFuncs=[],this.filterGuis=[],this.activeFilterIndices=[],this.lastActivatedMenuItem=null,this.afterFiltersReadyFuncs=[]}postConstruct(){this.initialiseTabGuard({onFocusIn:e=>this.onFocusIn(e)})}init(e){this.params=e,this.filterDefs=pit(e);const{column:t,filterChangedCallback:n}=e;this.column=t,this.filterChangedCallback=n;const r=[];return this.filterDefs.forEach((i,o)=>{const a=this.createFilter(i,o);a!=null&&r.push(a)}),new Dr(i=>{Dr.all(r).then(o=>{this.filters=o,this.refreshGui("columnMenu").then(()=>{i()})})}).then(()=>{this.afterFiltersReadyFuncs.forEach(i=>i()),this.afterFiltersReadyFuncs.length=0})}refreshGui(e){return e===this.lastOpenedInContainer?Dr.resolve():(this.tabGuardFeature.removeAllChildrenExceptTabGuards(),this.destroyChildren(),Dr.all(this.filters.map((t,n)=>{const r=this.filterDefs[n],i=CYt(t,r);let o;if(r.display==="subMenu"&&e!=="toolPanel")o=this.insertFilterMenu(t,i).then(a=>a.getGui());else if(r.display==="subMenu"||r.display==="accordion"){const a=this.insertFilterGroup(t,i);o=Dr.resolve(a.getGui())}else o=Dr.resolve(t.getGui());return o})).then(t=>{t.forEach((n,r)=>{r>0&&this.appendChild(Nr({tag:"div",cls:"ag-filter-separator"})),this.appendChild(n)}),this.filterGuis=t,this.lastOpenedInContainer=e}))}destroyChildren(){this.guiDestroyFuncs.forEach(e=>e()),this.guiDestroyFuncs.length=0,this.filterGuis.length=0}insertFilterMenu(e,t){const n=this.createBean(new Lhe);return n.init({menuItemDef:{name:t,subMenu:[],subMenuRole:"dialog",cssClasses:["ag-multi-filter-menu-item"],menuItem:Vrt,menuItemParams:{cssClassPrefix:"ag-compact-menu-option",isCompact:!0}},level:0,isAnotherSubMenuOpen:()=>!1,childComponent:e,contextParams:{column:null,node:null,value:null}}).then(()=>{n.setParentComponent(this),this.guiDestroyFuncs.push(()=>this.destroyBean(n)),this.addManagedListeners(n,{menuItemActivated:i=>{this.lastActivatedMenuItem&&this.lastActivatedMenuItem!==i.menuItem&&this.lastActivatedMenuItem.deactivate(),this.lastActivatedMenuItem=i.menuItem}});const r=n.getGui();return n.addManagedElementListeners(r,{keydown:i=>{const{key:o}=i;switch(o){case Qe.UP:case Qe.RIGHT:case Qe.DOWN:case Qe.LEFT:i.preventDefault(),o===Qe.RIGHT&&n.openSubMenu(!0);break}},focusin:()=>n.activate(),focusout:()=>{!n.isSubMenuOpen()&&!n.isSubMenuOpening()&&n.deactivate()}}),n})}insertFilterGroup(e,t){const n=this.createBean(new Gy({title:t,cssIdentifier:"multi-filter"}));return this.guiDestroyFuncs.push(()=>this.destroyBean(n)),n.addItem(e.getGui()),n.toggleGroupExpand(!1),e.afterGuiAttached&&n.addManagedListeners(n,{expanded:()=>e.afterGuiAttached({container:this.lastOpenedInContainer,suppressFocus:!0,hidePopup:this.hidePopup})}),n}isFilterActive(){return this.filters.some(e=>e.isFilterActive())}getLastActiveFilterIndex(){const e=this.activeFilterIndices;return e.length>0?e[e.length-1]:null}doesFilterPass(e,t){let n=!0;return this.filters.forEach(r=>{!n||r===t||!r.isFilterActive()||(n=r.doesFilterPass(e))}),n}getModelFromUi(){return{filterType:this.filterType,filterModels:this.filters.map(t=>{const n=t;return typeof n.getModelFromUi=="function"?n.getModelFromUi():null})}}getModel(){return this.isFilterActive()?{filterType:this.filterType,filterModels:this.filters.map(t=>t.isFilterActive()?t.getModel():null)}:null}setModel(e){const t=(r,i)=>new Dr(o=>{const a=r.setModel(i);a?a.then(()=>o()):o()});let n=[];return e==null?n=this.filters.map((r,i)=>t(r,null).then(()=>{this.updateActiveList(i)})):this.filters.forEach((r,i)=>{const o=e.filterModels.length>i?e.filterModels[i]:null,a=t(r,o).then(()=>{this.updateActiveList(i)});n.push(a)}),Dr.all(n).then(()=>{})}applyModel(e="api"){let t=!1;return this.filters.forEach(n=>{n instanceof DK&&(t=n.applyModel(e)||t)}),t}getChildFilterInstance(e){return this.filters[e]}afterGuiAttached(e){let t;e?(this.hidePopup=e.hidePopup,t=this.refreshGui(e.container)):(this.hidePopup=void 0,t=Dr.resolve());const n=e?.suppressFocus;t.then(()=>{const{filterDefs:r,filters:i,filterGuis:o,beans:a}=this;let s=!!n;r&&PRe(r,(c,u)=>{const d=u===0,p=c.display&&c.display!=="inline",h=n||!d||p,g={...e??{},suppressFocus:h},m=i?.[u];if(m&&(this.executeFunctionIfExistsOnFilter(m,"afterGuiAttached",g),d&&!h&&(s=!0)),!n&&d&&p){const b=o[u];b&&(zu(b)||b.focus({preventScroll:!0}),s=!0)}});const l=$i(a);!s&&($x(a)||this.getGui().contains(l))&&this.forceFocusOutOfContainer(!0)})}afterGuiDetached(){this.executeFunctionIfExists("afterGuiDetached")}onAnyFilterChanged(){this.executeFunctionIfExists("onAnyFilterChanged")}onNewRowsLoaded(){this.executeFunctionIfExists("onNewRowsLoaded")}destroy(){this.filters.forEach(e=>this.destroyBean(e)),this.filters.length=0,this.destroyChildren(),this.hidePopup=void 0,super.destroy()}executeFunctionIfExists(e,...t){PRe(this.filters,n=>{this.executeFunctionIfExistsOnFilter(n,e,t)})}executeFunctionIfExistsOnFilter(e,t,...n){const r=e[t];typeof r=="function"&&r.apply(e,n)}createFilter(e,t){const{filterModifiedCallback:n,doesRowPassOtherFilter:r}=this.params,{filterManager:i,userCompFactory:o}=this.beans;let a;const s={...i.createFilterParams(this.column,this.column.getColDef()),filterModifiedCallback:n,filterChangedCallback:u=>{this.executeWhenAllFiltersReady(()=>this.filterChanged(t,u))},doesRowPassOtherFilter:u=>r(u)&&this.doesFilterPass({node:u,data:u.data},a)},l=itt(o,e,s,"agTextColumnFilter");if(!l)return null;const c=l.newAgStackInstance();return c.then(u=>{if(u&&(a=u,e.display==="subMenu")){const d=u.getGui();C0(d,"dialog")}}),c}executeWhenAllFiltersReady(e){(this.filters?.length??0)>0?e():this.afterFiltersReadyFuncs.push(e)}updateActiveList(e){const{filters:t,activeFilterIndices:n}=this,r=t[e];Ou(n,e),r.isFilterActive()&&n.push(e)}filterChanged(e,t){this.updateActiveList(e),this.filterChangedCallback(t);const n=this.filters[e];this.filters.forEach(r=>{r!==n&&typeof r.onAnyFilterChanged=="function"&&r.onAnyFilterChanged()})}onFocusIn(e){const t=this.lastActivatedMenuItem;t!=null&&!t.getGui().contains(e.target)&&(t.deactivate(),this.lastActivatedMenuItem=null)}getModelAsString(e){if(!this.filters||!e?.filterModels?.length)return"";const t=this.getLastActiveFilterIndex()??0;return this.filters[t].getModelAsString?.(e.filterModels[t])??""}},xYt={tag:"div",cls:"ag-multi-floating-filter ag-floating-filter-input"},wYt=class extends Gt{constructor(){super(xYt),this.floatingFilters=[],this.compDetailsList=[]}init(e){this.params=e;const{compDetailsList:t}=this.getCompDetailsList(e);return this.setParams(t)}setParams(e){const t=[];return e.forEach(n=>{const r=n?.newAgStackInstance();r!=null&&(this.compDetailsList.push(n),t.push(r))}),Dr.all(t).then(n=>{n.forEach((r,i)=>{this.floatingFilters.push(r);const o=r.getGui();this.appendChild(o),i>0&&Nn(o,!1)})})}refresh(e){this.params=e;const{compDetailsList:t,floatingFilterParamsList:n}=this.getCompDetailsList(e);t.length===this.compDetailsList.length&&t.every((i,o)=>!this.beans.filterManager?.areFilterCompsDifferent(this.compDetailsList[o],i))?n.forEach((i,o)=>{this.floatingFilters[o].refresh?.(i)}):(Xi(this.getGui()),this.destroyBeans(this.floatingFilters),this.floatingFilters=[],this.compDetailsList=[],this.setParams(t))}getCompDetailsList(e){const t=[],n=[],r=e.filterParams,i=e.currentParentModel;return pit(r).forEach((o,a)=>{const s={...e,parentFilterInstance:c=>{this.parentMultiFilterInstance(u=>{const d=u.getChildFilterInstance(a);d!=null&&c(d)})},currentParentModel:()=>i()?.filterModels?.[a]??null};eu(s.filterParams,o.filterParams);const l=this.getCompDetails(o,s);l&&(t.push(l),n.push(s))}),{compDetailsList:t,floatingFilterParamsList:n}}onParentModelChanged(e,t){t&&t.afterFloatingFilter||this.parentMultiFilterInstance(n=>{if(e==null)this.floatingFilters.forEach((r,i)=>{r.onParentModelChanged(null,t),Nn(r.getGui(),i===0)});else{const r=n.getLastActiveFilterIndex();this.floatingFilters.forEach((i,o)=>{const a=e.filterModels.length>o?e.filterModels[o]:null;i.onParentModelChanged(a,t);const s=r==null?o===0:o===r;Nn(i.getGui(),s)})}})}destroy(){this.destroyBeans(this.floatingFilters),this.floatingFilters.length=0,super.destroy()}getCompDetails(e,t){const{filterManager:n,frameworkOverrides:r,userCompFactory:i}=this.beans,o=Ttt(r,e,()=>n.getDefaultFloatingFilter(this.params.column))??"agReadOnlyFloatingFilter";return ott(i,e,t,o)}parentMultiFilterInstance(e){this.params.parentFilterInstance(t=>{t instanceof hit||pi(120),e(t)})}},SYt={moduleName:"MultiFilter",version:wi,userComponents:{agMultiColumnFilter:hit,agMultiColumnFloatingFilter:wYt},dependsOn:[es,xw,GK]},AYt=class extends dt{constructor(){super(...arguments),this.beanName="aggColNameSvc"}getHeaderName(e,t){if(this.gos.get("suppressAggFuncInHeader"))return t;const{valueColsSvc:n,colModel:r,rowGroupColsSvc:i}=this.beans,o=e.getColDef().pivotValueColumn,a=Ut(o);let s=null,l;if(a){const c=n?.columns??[],u=this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&c.length===1,d=e.getColDef().pivotTotalColumnIds!==void 0;if(u&&!d)return t;s=o?o.getAggFunc():null,l=!0}else{const c=e.isValueActive(),u=r.isPivotMode()||i?.columns.length!==0;c&&u?(s=e.getAggFunc(),l=!0):l=!1}if(l){const c=typeof s=="string"?s:"func";return`${this.getLocaleTextFunc()(c,c)}(${t})`}return t}},OYt={sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"},zYt=class extends dt{constructor(){super(...arguments),this.beanName="aggFuncSvc",this.aggFuncsMap={},this.initialised=!1}postConstruct(){this.init()}init(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gos.get("aggFuncs")))}initialiseWithDefaultAggregations(){const e=this.aggFuncsMap;e.sum=TYt,e.first=EYt,e.last=RYt,e.min=IYt,e.max=PYt,e.count=DYt,e.avg=kYt,this.initialised=!0}isAggFuncPossible(e,t){const r=this.getFuncNames(e).includes(t),i=Ut(this.aggFuncsMap[t]);return r&&i}getDefaultFuncLabel(e){return OYt[e]??e}getDefaultAggFunc(e){const t=e.getColDef().defaultAggFunc;if(Ut(t)&&this.isAggFuncPossible(e,t))return t;if(this.isAggFuncPossible(e,"sum"))return"sum";const n=this.getFuncNames(e);return n?.length?n[0]:null}addAggFuncs(e){if(this.init(),!!e)for(const t of Object.keys(e))this.aggFuncsMap[t]=e[t]}getAggFunc(e){return this.init(),this.aggFuncsMap[e]}getFuncNames(e){const t=e.getColDef().allowedAggFuncs;return t??Object.keys(this.aggFuncsMap).sort()}clear(){this.aggFuncsMap={}}};function TYt(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];typeof i=="number"?n===null?n=i:n+=typeof n=="number"?i:BigInt(i):typeof i=="bigint"&&(n===null?n=i:n=(typeof n=="bigint"?n:BigInt(n))+i)}return n}function EYt(e){return e.values.length>0?e.values[0]:null}function RYt(e){return e.values.length>0?zr(e.values):null}function IYt(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];(typeof i=="number"||typeof i=="bigint")&&(n===null||n>i)&&(n=i)}return n}function PYt(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];(typeof i=="number"||typeof i=="bigint")&&(n===null||n<i)&&(n=i)}return n}function DYt(e){const{values:t}=e;let n=0;for(let i=0;i<t.length;i++){const o=t[i];n+=o!=null&&typeof o.value=="number"?o.value:1}const r=e.rowNode?.aggData?.[e.column.getColId()];return r&&r.value===n?r:{value:n,toString:function(){return this.value.toString()},toNumber:function(){return this.value}}}function kYt(e){const{values:t}=e;let n=0,r=0;for(let a=0;a<t.length;a++){const s=t[a];let l=null;typeof s=="number"||typeof s=="bigint"?(l=s,r++):s!=null&&(typeof s.value=="number"||typeof s.value=="bigint")&&typeof s.count=="number"&&(l=s.value*(typeof s.value=="number"?s.count:BigInt(s.count)),r+=s.count),typeof l=="number"?n+=typeof n=="number"?l:BigInt(l):typeof l=="bigint"&&(n=(typeof n=="bigint"?n:BigInt(n))+l)}let i=null;r>0&&(i=n/(typeof n=="number"?r:BigInt(r)));const o=e.rowNode?.aggData?.[e.column?.getColId()];return o&&o.count===r&&o.value===i?o:{count:r,value:i,toString:function(){return typeof this.value=="number"||typeof this.value=="bigint"?this.value.toString():""},toNumber:function(){return this.value}}}function LYt(e,t){e.aggFuncSvc&&e.aggFuncSvc.addAggFuncs(t)}function _Yt(e){e.aggFuncSvc&&e.aggFuncSvc.clear()}function NYt(e,t,n){e.valueColsSvc?.setColumnAggFunc?.(t,n,"api")}function uI(e,t,n,r,i,o){const a=typeof n=="string"?e.aggFuncSvc.getAggFunc(n):n;if(typeof a!="function")return pi(109,{aggFuncOrString:n}),null;const s=Gn(e.gos,{values:t,column:r,colDef:r.colDef,pivotResultColumn:o,rowNode:i,data:i?.data});return a(s)}var FYt=class extends dt{constructor(){super(...arguments),this.beanName="aggStage",this.refreshProps=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","suppressAggFilteredOnly","grandTotalRow"]),this.step="aggregate"}wireBeans(e){this.colModel=e.colModel,this.pivotColsSvc=e.pivotColsSvc,this.valueColsSvc=e.valueColsSvc,this.pivotResultCols=e.pivotResultCols,this.valueSvc=e.valueSvc}execute(e){const t=!this.valueColsSvc?.columns?.length,n=!this.gos.getCallback("getGroupRowAgg");if(t&&n&&e.changedPath?.active)return;const r=this.createAggDetails(e);this.recursivelyCreateAggData(r)}createAggDetails(e){const t=this.colModel.isPivotActive(),n=this.valueColsSvc?.columns,r=t&&this.pivotColsSvc?this.pivotColsSvc.columns:[];return{alwaysAggregateAtRootLevel:this.gos.get("alwaysAggregateAtRootLevel"),groupIncludeTotalFooter:!!iye(this.gos),changedPath:e.changedPath,valueColumns:n??[],pivotColumns:r,filteredOnly:!this.isSuppressAggFilteredOnly(),userAggFunc:this.gos.getCallback("getGroupRowAgg")}}isSuppressAggFilteredOnly(){return pW(this.gos)!==void 0||this.gos.get("suppressAggFilteredOnly")}recursivelyCreateAggData(e){const t=n=>{if(!n.hasChildren()){n.aggData&&this.setAggData(n,null);return}if(n.level===-1&&!e.groupIncludeTotalFooter){const o=!this.colModel.isPivotMode();if(!e.alwaysAggregateAtRootLevel&&o){this.setAggData(n,null);return}}this.aggregateRowNode(n,e)};e.changedPath.forEachChangedNodeDepthFirst(t,!0)}aggregateRowNode(e,t){const n=t.valueColumns.length===0,r=t.pivotColumns.length===0;let i;t.userAggFunc?i=t.userAggFunc({nodes:e.childrenAfterFilter}):n?i=null:r?i=this.aggregateRowNodeUsingValuesOnly(e,t):i=this.aggregateRowNodeUsingValuesAndPivot(e),this.setAggData(e,i),e.sibling&&this.setAggData(e.sibling,i)}aggregateRowNodeUsingValuesAndPivot(e){const t={},n=this.pivotResultCols?.getPivotResultCols()?.list??[];let r=!0;const i=this.beans;for(let o=0;o<n.length;o++){const a=n[o],s=a.getColDef();if(s.pivotTotalColumnIds!=null){r=!1;continue}const l=s.pivotKeys??[];let c;e.leafGroup?c=this.getValuesFromMappedSet(e.childrenMapped,l,s.pivotValueColumn):c=this.getValuesPivotNonLeaf(e,s.colId),t[s.colId]=uI(i,c,s.pivotValueColumn.getAggFunc(),s.pivotValueColumn,e,a)}if(!r)for(let o=0;o<n.length;o++){const a=n[o],s=a.getColDef();if(s.pivotTotalColumnIds==null||!s.pivotTotalColumnIds.length)continue;const l=s.pivotTotalColumnIds.map(c=>t[c]);t[s.colId]=uI(i,l,s.pivotValueColumn.getAggFunc(),s.pivotValueColumn,e,a)}return t}aggregateRowNodeUsingValuesOnly(e,t){const n={},{changedPath:r,valueColumns:i,filteredOnly:o}=t,a=r.active?r.getValueColumnsForNode(e,i):i,s=r.active?r.getNotValueColumnsForNode(e,i):null,l=this.getValuesNormal(e,a,o),c=e.aggData,u=this.beans;return a.forEach((d,p)=>{n[d.getId()]=uI(u,l[p],d.getAggFunc(),d,e)}),s&&c&&s.forEach(d=>{n[d.getId()]=c[d.getId()]}),n}getValuesPivotNonLeaf(e,t){return e.childrenAfterFilter.map(n=>n.aggData[t])}getValuesFromMappedSet(e,t,n){let r=e;for(let i=0;i<t.length;i++){const o=t[i];r=r?r[o]:null}return r?r.map(i=>this.valueSvc.getValue(n,i)):[]}getValuesNormal(e,t,n){const r=[];t.forEach(()=>r.push([]));const i=t.length,o=n?e.childrenAfterFilter:e.childrenAfterGroup,a=o.length;for(let s=0;s<a;s++){const l=o[s];for(let c=0;c<i;c++){const u=t[c],d=this.valueSvc.getValue(u,l);r[c].push(d)}}return r}setAggData(e,t){const n=e.aggData;if(e.aggData=t,e.__localEventService){const r=i=>{const o=e.aggData?e.aggData[i]:void 0,a=n?n[i]:void 0;if(o===a)return;const s=this.colModel.getColById(i);s&&e.dispatchCellChangedEvent(s,o,a)};if(n)for(const i of Object.keys(n))r(i);if(t)for(const i of Object.keys(t))(!n||!(i in n))&&r(i)}}},WYt=class extends dt{constructor(){super(...arguments),this.beanName="filterAggStage",this.refreshProps=new Set([]),this.step="filter_aggregates"}wireBeans(e){this.filterManager=e.filterManager}execute(e){const t=this.beans.colModel.isPivotMode(),n=this.filterManager?.isAggregateFilterPresent()||this.filterManager?.isAggregateQuickFilterPresent(),r=c=>!c.node.group,i=c=>c.node.leafGroup,o=pW(this.gos)||(t?i:r),{changedPath:a}=e,s=(c,u=!1)=>{c.childrenAfterFilter&&(c.childrenAfterAggFilter=c.childrenAfterFilter,u&&c.childrenAfterAggFilter.forEach(d=>s(d,u)),this.setAllChildrenCount(c)),c.sibling&&(c.sibling.childrenAfterAggFilter=c.childrenAfterAggFilter)},l=c=>{c.childrenAfterAggFilter=c.childrenAfterFilter?.filter(u=>o({node:u})&&this.filterManager.doesRowPassAggregateFilters({rowNode:u})?(s(u,!0),!0):u.childrenAfterAggFilter?.length)||null,this.setAllChildrenCount(c),c.sibling&&(c.sibling.childrenAfterAggFilter=c.childrenAfterAggFilter)};a.forEachChangedNodeDepthFirst(n?l:s,!0)}setAllChildrenCountTreeData(e){const t=e.childrenAfterAggFilter;let n=0;if(t){const r=t.length;n=r;for(let i=0;i<r;++i)n+=t[i].allChildrenCount??0}e.setAllChildrenCount(n===0&&e.level>=0?null:n)}setAllChildrenCountGridGrouping(e){let t=0;e.childrenAfterAggFilter.forEach(n=>{n.group?t+=n.allChildrenCount:t++}),e.setAllChildrenCount(t)}setAllChildrenCount(e){if(!e.hasChildren()){e.setAllChildrenCount(null);return}this.gos.get("treeData")?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)}};function Ry(e,t){if(e.sibling)return;const n=Stt(e,t);n.footer=!0,n.setRowTop(null),n.setRowIndex(null),n.oldRowTop=null,n.id="rowGroupFooter_"+e.id,n.sibling=e,e.sibling=n}function tMe(e){e.sibling&&(e.sibling.setRowTop(null),e.sibling.setRowIndex(null),e.sibling=void 0)}var qYt=class extends dt{constructor(){super(...arguments),this.beanName="footerSvc"}addTotalRows(e,t,n,r,i,o){let a=e;if(i){const c=r&&iye(this.gos);return BYt(o,c)&&(Ry(t,this.beans),n(t.sibling,a++)),a}const s=eP(this.gos);return(r&&s({node:t}))===o&&(Ry(t,this.beans),n(t.sibling,a++)),a}getTopDisplayIndex(e,t,n,r){let i=t;if(e[0].footer){if(t===0)return 0;i-=1}const o=e[e.length-1],a=i>=n.length;return o.footer&&a?o.rowIndex:r(i)}doesCellShowTotalPrefix(e,t){return!e.footer||!t?.getColDef().showRowGroup?!1:this.gos.get("treeData")?!0:e.level===-1?this.beans.showRowGroupCols?.getShowRowGroupCols()[0]===t:!!e.rowGroupColumn&&t&&t.isRowGroupDisplayed(e.rowGroupColumn.getId())}applyTotalPrefix(e,t,n,r){const i=r.getColDef().cellRendererParams?.totalValueGetter;if(i){const o=Gn(this.gos,{column:r,node:n,value:e,formattedValue:t});if(typeof i==="function")return i(o);if(typeof i=="string")return this.beans.expressionSvc?.evaluate(i,o);ut(179)}return n.level===-1?this.getLocaleTextFunc()("footerTotal","Total")+" ":this.getTotalValue(t??e)??""}getTotalValue(e){return this.getLocaleTextFunc()("footerTotal","Total")+" "+(e??"")}};function BYt(e,t){switch(t){case"top":case"pinnedTop":return e==="top";case"bottom":case"pinnedBottom":return e==="bottom";default:return!1}}var fit=class extends fye{constructor(){super(...arguments),this.beanName="valueColsSvc",this.eventName="columnValueChanged",this.columnProcessors={set:(e,t,n)=>this.setValueActive(t,e,n),add:(e,t,n)=>this.setValueActive(!0,e,n),remove:(e,t,n)=>this.setValueActive(!1,e,n)},this.columnExtractors={setFlagFunc:(e,t,n)=>this.setColValueActive(e,t,n),getIndexFunc:()=>{},getInitialIndexFunc:()=>{},getValueFunc:e=>{const t=e.aggFunc;if(t===null||t==="")return null;if(t!==void 0)return!!t},getInitialValueFunc:e=>e.initialAggFunc!=null&&e.initialAggFunc!=""},this.modifyColumnsNoEventsCallbacks={addCol:e=>this.columns.push(e),removeCol:e=>Ou(this.columns,e)}}extractCols(e,t){return this.columns=super.extractCols(e,t),this.columns.forEach(n=>{const r=n.getColDef();r.aggFunc!=null&&r.aggFunc!=""?this.setColAggFunc(n,r.aggFunc):n.getAggFunc()||this.setColAggFunc(n,r.initialAggFunc)}),this.columns}setColumnAggFunc(e,t,n){if(!e)return;const r=this.colModel.getColDefCol(e);r&&(this.setColAggFunc(r,t),this.dispatchColumnChangedEvent(this.eventSvc,this.eventName,[r],n))}syncColumnWithState(e,t,n){const r=n("aggFunc").value1;r!==void 0&&(typeof r=="string"?(this.setColAggFunc(e,r),e.isValueActive()||(this.setColValueActive(e,!0,t),this.modifyColumnsNoEventsCallbacks.addCol(e))):(Ut(r)&&ut(33),e.isValueActive()&&(this.setColValueActive(e,!1,t),this.modifyColumnsNoEventsCallbacks.removeCol(e))))}setValueActive(e,t,n){if(e!==t.isValueActive()&&(this.setColValueActive(t,e,n),e&&!t.getAggFunc()&&this.aggFuncSvc)){const r=this.aggFuncSvc.getDefaultAggFunc(t);this.setColAggFunc(t,r)}}setColAggFunc(e,t){e.aggFunc=t,e.dispatchStateUpdatedEvent("aggFunc")}setColValueActive(e,t,n){e.aggregationActive!==t&&(e.aggregationActive=t,e.dispatchColEvent("columnValueChanged",n))}},nMe={moduleName:"SharedAggregation",version:wi,beans:[zYt,AYt,qYt,fit],apiFunctions:{addAggFuncs:LYt,clearAggFuncs:_Yt,setColumnAggFunc:NYt},dependsOn:[es]},git={moduleName:"Aggregation",version:wi,beans:[FYt,WYt],rowModels:["clientSide"],dependsOn:[nMe]},mit=class extends fye{constructor(){super(...arguments),this.beanName="pivotColsSvc",this.eventName="columnPivotChanged",this.columnProcessors={set:(e,t,n)=>this.setColPivotActive(e,t,n),add:(e,t,n)=>this.setColPivotActive(e,!0,n),remove:(e,t,n)=>this.setColPivotActive(e,!1,n)},this.columnOrdering={enableProp:"pivot",initialEnableProp:"initialPivot",indexProp:"pivotIndex",initialIndexProp:"initialPivotIndex"},this.columnExtractors={setFlagFunc:(e,t,n)=>this.setColPivotActive(e,t,n),getIndexFunc:e=>e.pivotIndex,getInitialIndexFunc:e=>e.initialPivotIndex,getValueFunc:e=>e.pivot,getInitialValueFunc:e=>e.initialPivot},this.modifyColumnsNoEventsCallbacks={addCol:e=>this.columns.push(e),removeCol:e=>Ou(this.columns,e)}}syncColumnWithState(e,t,n,r){const{value1:i,value2:o}=n("pivot","pivotIndex");(i!==void 0||o!==void 0)&&(typeof o=="number"||i?(e.isPivotActive()||(this.setColPivotActive(e,!0,t),this.modifyColumnsNoEventsCallbacks.addCol(e)),r&&typeof o=="number"&&(r[e.getId()]=o)):e.isPivotActive()&&(this.setColPivotActive(e,!1,t),this.modifyColumnsNoEventsCallbacks.removeCol(e)))}setColPivotActive(e,t,n){e.pivotActive!==t&&(e.pivotActive=t,e.dispatchColEvent("columnPivotChanged",n)),e.dispatchStateUpdatedEvent("pivot")}},jYt=class extends fye{constructor(){super(...arguments),this.beanName="rowGroupColsSvc",this.eventName="columnRowGroupChanged",this.columnProcessors={set:(e,t,n)=>this.setActive(t,e,n),add:(e,t,n)=>this.setActive(!0,e,n),remove:(e,t,n)=>this.setActive(!1,e,n)},this.columnOrdering={enableProp:"rowGroup",initialEnableProp:"initialRowGroup",indexProp:"rowGroupIndex",initialIndexProp:"initialRowGroupIndex"},this.columnExtractors={setFlagFunc:(e,t,n)=>this.setColRowGroupActive(e,t,n),getIndexFunc:e=>e.rowGroupIndex,getInitialIndexFunc:e=>e.initialRowGroupIndex,getValueFunc:e=>e.rowGroup,getInitialValueFunc:e=>e.initialRowGroup},this.modifyColumnsNoEventsCallbacks={addCol:e=>this.columns.push(e),removeCol:e=>Ou(this.columns,e)}}moveColumn(e,t,n){if(this.columns.length===0)return;const r=this.columns[e],i=this.columns.slice(e,t);this.columns.splice(e,1),this.columns.splice(t,0,r),this.updateIndexMap(),this.eventSvc.dispatchEvent({type:this.eventName,columns:i,column:i.length===1?i[0]:null,source:n})}syncColumnWithState(e,t,n,r){const{value1:i,value2:o}=n("rowGroup","rowGroupIndex");(i!==void 0||o!==void 0)&&(typeof o=="number"||i?(e.isRowGroupActive()||(this.setColRowGroupActive(e,!0,t),this.modifyColumnsNoEventsCallbacks.addCol(e)),r&&typeof o=="number"&&(r[e.getId()]=o)):e.isRowGroupActive()&&(this.setColRowGroupActive(e,!1,t),this.modifyColumnsNoEventsCallbacks.removeCol(e)))}setActive(e,t,n){e!==t.isRowGroupActive()&&(this.setColRowGroupActive(t,e,n),zet(this.gos,e)&&this.colModel.setColsVisible([t],!e,n))}setColRowGroupActive(e,t,n){e.rowGroupActive!==t&&(e.rowGroupActive=t,e.dispatchColEvent("columnRowGroupChanged",n)),e.dispatchStateUpdatedEvent("rowGroup")}},HYt=class extends dt{constructor(){super(...arguments),this.beanName="autoColSvc"}postConstruct(){this.addManagedPropertyListener("autoGroupColumnDef",this.updateColumns.bind(this))}addColumns(e){this.columns!=null&&(e.list=this.columns.list.concat(e.list),e.tree=this.columns.tree.concat(e.tree),pye(e))}createColumns(e,t){const n=this.beans,{colModel:r,gos:i,rowGroupColsSvc:o,colGroupSvc:a}=n,s=r.isPivotMode(),l=aye(i,s),c=s?i.get("pivotSuppressAutoColumn"):this.isSuppressAutoCol(),u=o?.columns,p=!(u&&u.length>0||i.get("treeData"))||c||l,h=()=>{this.columns&&(Tb(n,this.columns.tree),this.columns=null)};if(p){h();return}const g=this.generateAutoCols(u),m=dye(g,this.columns?.list||null),b=e.treeDepth,M=(this.columns?this.columns.treeDepth:-1)==b;if(m&&M)return;h();const C=a?.findDepth(e.tree)??0,x=a?.balanceTreeForAutoCols(g,C)??[];this.columns={list:g,tree:x,treeDepth:C,map:{}},t(S=>{if(!S)return null;const A=S.filter(z=>!TK(z));return[...g,...A]})}updateColumns(e){const t=Sx(e.source);this.columns?.list.forEach((n,r)=>this.updateOneAutoCol(n,r,t))}getColumn(e){return this.columns?.list.find(t=>hye(t,e))??null}getColumns(){return this.columns?.list??null}generateAutoCols(e=[]){const t=[],n=this.gos.get("treeData");let r=oye(this.gos);return n&&r&&(ut(182),r=!1),r?e.forEach((i,o)=>{t.push(this.createOneAutoCol(i,o))}):t.push(this.createOneAutoCol()),t}isSuppressAutoCol(){const e=this.gos;return e.get("groupDisplayType")==="custom"?!0:e.get("treeDataDisplayType")==="custom"}createOneAutoCol(e,t){let n;e?n=`${jy}-${e.getId()}`:n=jy;const r=this.createAutoColDef(n,e,t);r.colId=n;const i=new g3(r,null,n,!0);return this.createBean(i),i}updateOneAutoCol(e,t,n){const r=e.getColDef(),i=typeof r.showRowGroup=="string"?r.showRowGroup:void 0,o=this.beans,a=i!=null?o.colModel.getColDefCol(i):void 0,s=e.getId(),l=this.createAutoColDef(s,a??void 0,t);e.setColDef(l,null,n),m0(o,{state:[{colId:s,...l}]},n)}createAutoColDef(e,t,n){let r=this.createBaseColDef(t);const i=this.gos.get("autoGroupColumnDef");eu(r,i),r=nP(this.beans,r,e,!0),this.gos.get("treeData")||Yi(r.field)&&Yi(r.valueGetter)&&Yi(r.filterValueGetter)&&r.filter!=="agGroupColumnFilter"&&(r.filter=!1),n&&n>0&&(r.headerCheckboxSelection=!1);const o=Yg(this.gos),a=r.valueGetter||r.field!=null;return o&&!a&&(r.sortIndex=void 0,r.initialSort=void 0),r}createBaseColDef(e){const t=this.gos.get("autoGroupColumnDef"),r={headerName:this.getLocaleTextFunc()("group","Group"),showRowGroup:e?.getColId()??!0};return t&&(t.cellRenderer||t.cellRendererSelector)||(r.cellRenderer="agGroupCellRenderer"),e&&(r.headerName=this.beans.colNames.getDisplayNameForColumn(e,"header")??void 0,r.headerValueGetter=e.colDef.headerValueGetter),r}destroy(){Tb(this.beans,this.columns?.tree),super.destroy()}},vit=class extends dt{addExpandedCss(e,t){t.isExpandable()&&(e.push("ag-row-group"),e.push(t.expanded?"ag-row-group-expanded":"ag-row-group-contracted"))}getRowExpandedListeners(e){const{rowNode:t}=e,n=this.updateExpandedCss.bind(this,e,t);return{expandedChanged:n,hasChildrenChanged:n}}setExpanded(e,t,n,r){if(e.expanded===t)return;e.expanded=t,e.dispatchRowEvent("expandedChanged");const i={...wtt(e,this.gos,"rowGroupOpened"),expanded:t,event:n||null};this.dispatchExpandedEvent(i,r)}isExpandable(e){return e.footer?!1:this.beans.colModel.isPivotMode()?e.hasChildren()&&!e.leafGroup:e.hasChildren()||e.master}updateExpandedCss(e,t){const n=t.isExpandable(),r=t.expanded==!0;e.forEachGui(void 0,i=>{const o=i.rowComp;o.toggleCss("ag-row-group",n),o.toggleCss("ag-row-group-expanded",n&&r),o.toggleCss("ag-row-group-contracted",n&&!r),d1(i.element,n&&r)})}},VYt=class extends vit{constructor(){super(...arguments),this.beanName="expansionSvc",this.events=[]}wireBeans(e){this.rowModel=e.rowModel}expandRows(e){const t=new Set(e);this.rowModel.forEachNode(n=>{n.id&&t.has(n.id)&&(n.expanded=!0)}),this.onGroupExpandedOrCollapsed()}expandAll(e){const{gos:t,colModel:n,eventSvc:r}=this.beans,i=this.rowModel,o=t.get("treeData"),a=n.isPivotActive(),s=c=>{c&&c.forEach(u=>{const d=()=>{u.expanded=e,s(u.childrenAfterGroup)};if(o){Ut(u.childrenAfterGroup)&&d();return}if(a){!u.leafGroup&&d();return}u.group&&d()})},l=i.rootNode;l&&s(l.childrenAfterGroup),i.refreshModel({step:"map"}),r.dispatchEvent({type:"expandOrCollapseAll",source:e?"expandAll":"collapseAll"})}onGroupExpandedOrCollapsed(){this.rowModel.refreshModel({step:"map"})}dispatchExpandedEvent(e,t){this.events.push(e);const n=()=>{this.rowModel.onRowGroupOpened(),this.events.forEach(i=>this.eventSvc.dispatchEvent(i));const r=this.events.map(i=>i.node);this.beans.rowRenderer.refreshCells({rowNodes:r}),this.events=[]};t?n():(this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.debounce(n)),this.dispatchExpandedDebounced())}debounce(e){const t=this.beans.animationFrameSvc;if(!t)return()=>window.setTimeout(e,0);let n=!1;return()=>{if(!t.active){window.setTimeout(e,0);return}n||(n=!0,t.addDestroyTask(()=>{n=!1,e()}))}}};function bit(e){let t=e.get("groupHideParentOfSingleChild");return t||(t=e.get("groupRemoveSingleChildren"),!t&&e.get("groupRemoveLowestSingleChildren")&&(t="leafGroupsOnly")),{groupHideParentOfSingleChild:t,isGroupMultiAutoColumn:oye(e),hideOpenParents:e.get("groupHideOpenParents"),grandTotalRow:iye(e),groupTotalRow:eP(e)}}function yit(e,t,n){return e.groupHideParentOfSingleChild===!0&&n&&t.childrenAfterGroup.length===1}function Mit(e,t,n){return e.groupHideParentOfSingleChild==="leafGroupsOnly"&&n&&t.leafGroup&&t.childrenAfterGroup.length===1}function Cit(e,t,n,r,i,o){const a=r&&!n,s=r&&t.leafGroup,l=e.hideOpenParents&&t.expanded&&!t.master&&!s;return!a&&!l&&!i&&!o}var GYt=class extends dt{constructor(){super(...arguments),this.beanName="flattenStage",this.refreshProps=new Set(["groupHideParentOfSingleChild","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupTotalRow","masterDetail"]),this.step="map"}execute(e){const t=e.rowNode,n=[],r=this.beans.colModel.isPivotMode(),i=r&&t.leafGroup&&t.aggData,o=i?[t]:t.childrenAfterSort,a=bit(this.gos);this.recursivelyAddToRowsToDisplay(a,o,n,r,0);const s=n.length>0,l=a.grandTotalRow;if(!i&&s&&l)if(Ry(t,this.beans),l==="pinnedBottom"||l==="pinnedTop")this.beans.pinnedRowModel?.setGrandTotalPinned(l==="pinnedBottom"?"bottom":"top");else{const u=l==="top";this.addRowNodeToRowsToDisplay(a,t.sibling,n,0,u)}return n}recursivelyAddToRowsToDisplay(e,t,n,r,i){if(t?.length)for(let o=0;o<t.length;o++){const a=t[o],s=a.hasChildren(),l=yit(e,a,s),c=Mit(e,a,s);if(Cit(e,a,s,r,l,c)&&this.addRowNodeToRowsToDisplay(e,a,n,i),!(r&&a.leafGroup))if(s){const d=l||c;if(a.expanded||d){const p=e.groupTotalRow({node:a});p||tMe(a);const h=d?i:i+1;p==="top"&&(Ry(a,this.beans),this.addRowNodeToRowsToDisplay(e,a.sibling,n,h)),this.recursivelyAddToRowsToDisplay(e,a.childrenAfterSort,n,r,h),p==="bottom"&&(Ry(a,this.beans),this.addRowNodeToRowsToDisplay(e,a.sibling,n,h))}}else{const d=this.beans.masterDetailSvc?.getDetail(a);d&&this.addRowNodeToRowsToDisplay(e,d,n,i)}}}addRowNodeToRowsToDisplay(e,t,n,r,i){i?n.unshift(t):n.push(t),t.setUiLevel(e.isGroupMultiAutoColumn?0:r)}},$Yt=class extends dt{constructor(){super(...arguments),this.beanName="groupStage",this.refreshProps=new Set(["groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType","treeData","treeDataChildrenField","treeDataParentIdField"]),this.step="group",this.approach=null,this.strategy=void 0}destroy(){super.destroy(),this.strategy=void 0,this.approach=null}createStrategy(){const{beans:e,approach:t}=this;let n;switch(t){case"treeSelfRef":n="treeParentIdStrategy";break;case"group":n="groupStrategy";break}if(n){const r=e.registry.createDynamicBean(n,!1);return this.createOptionalManagedBean(r),r}}execute(e){let t=this.strategy;const n=Pet(this.gos);return this.approach!==n&&(this.approach=n,this.destroyBean(t),t&&this.approach!=="treeNested"&&this.approach!=="treePath"&&UYt(e.rowNode),t=this.createStrategy(),this.strategy=t),t?.execute(e),!!t}},UYt=e=>{const t=e.allLeafChildren,n=e.sibling;e.treeNodeFlags=0,e.childrenAfterGroup=t,e.childrenMapped=null,e.groupData=null,n&&(n.childrenAfterGroup=e.childrenAfterGroup,n.childrenAfterAggFilter=e.childrenAfterAggFilter,n.childrenAfterFilter=e.childrenAfterFilter,n.childrenAfterSort=e.childrenAfterSort,n.childrenMapped=null,n.groupData=null);for(const r of t){const i=r.sibling;DRe(r),i&&DRe(i),r.parent=e,r.level=0,r.key=null,r.treeNodeFlags=0,(r.group||r.hasChildren())&&(r.group=!1,r.updateHasChildren())}e.updateHasChildren()},DRe=e=>{e.allLeafChildren=null,e.childrenAfterGroup=null,e.childrenAfterAggFilter=null,e.childrenAfterFilter=null,e.childrenAfterSort=null,e.childrenMapped=null,e.groupData&&(e.groupData=null)};function kRe(e,t,n){let r=e;const i=r.level-t.level;if(i<=0||!n.get("groupHideOpenParents"))return!1;for(let a=0;a<i;a++){if(!(r.parent?.getFirstChild()===r))return!1;r=r.parent}return r===t}var xit=class extends dt{constructor(){super(...arguments),this.indentClass=null}init(e,t,n,r,i,o,a){this.params=a,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=i,this.comp=e,this.compClass=o;const{node:s,column:l}=a;if(this.node=s,this.displayedNode=s,!this.isEmbeddedRowMismatch()){if(s.footer){this.initFooterCell();return}if(!l){this.initFullWidthCell();return}this.displayedNode=this.beans.showRowGroupColValueSvc?.getDisplayedNode(s,l)??this.node,this.setupExpand(),this.setupCheckbox(),this.addGroupValue(),this.setupIndent()}}initFooterCell(){const{node:e}=this.params;this.addGroupValue(),this.setupIndent(),e.level===-1||this.comp.toggleCss("ag-row-group-leaf-indent",!0)}initFullWidthCell(){const e=()=>{const{rowDragSvc:t}=this.beans;if(!this.params.rowDrag||!t)return;const n=t.createRowDragComp(()=>this.params.value,this.params.node);this.createManagedBean(n),this.eGui.insertAdjacentElement("afterbegin",n.getGui())};this.setupExpand(),e(),this.setupCheckbox(),this.addGroupValue(),this.setupIndent()}getCellAriaRole(){const e=this.params.colDef?.cellAriaRole,t=this.params.column?.getColDef().cellAriaRole;return e||t||"gridcell"}isEmbeddedRowMismatch(){if(!this.params.fullWidth||!this.gos.get("embedFullWidthRows"))return!1;const{visibleCols:e}=this.beans,t=this.params.pinned==="left",n=this.params.pinned==="right",r=!t&&!n;return this.gos.get("enableRtl")?e.isPinningLeft()?!n:!r:e.isPinningLeft()?!t:!r}addGroupValue(){const{params:{value:e,valueFormatted:t}}=this,n=this.getInnerCompDetails();this.comp.setInnerRenderer(n,t??e??null)}setupExpand(){const{colModel:e}=this.beans,{eGridCell:t,column:n,suppressDoubleClickExpand:r}=this.params,i=(c,u)=>{const d=er(c,this.beans,null);d&&(u.appendChild(d),this.addDestroyFunc(()=>u.removeChild(d)))};i("groupExpanded",this.eExpanded),i("groupContracted",this.eContracted);const o=this.comp,a=()=>{if(!this.isExpandable())return;const u=this.displayedNode.expanded;o.setExpandedDisplayed(u),o.setContractedDisplayed(!u),d1(t,!!this.displayedNode.expanded)},s=()=>{const c=this.isExpandable();o.toggleCss("ag-cell-expandable",c),o.toggleCss("ag-row-group",c);const u=!c&&e.isPivotMode();o.toggleCss("ag-pivot-leaf-group",u);const d=!e.isPivotMode()&&(!this.displayedNode.footer||this.displayedNode.level!==-1);o.toggleCss("ag-row-group-leaf-indent",!c&&d);const p=this.getChildCount(),h=p>0?`(${p})`:"";o.setChildCount(h),c?a():(o.setExpandedDisplayed(!1),o.setContractedDisplayed(!1),KJe(t))};(()=>{!(n?.isCellEditable(this.displayedNode)&&this.gos.get("enableGroupEdit"))&&!r&&this.addManagedListeners(t,{dblclick:this.onCellDblClicked.bind(this)}),this.addManagedListeners(this.eExpanded,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(this.eContracted,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedListeners(this.displayedNode,{allChildrenCountChanged:s,masterChanged:s,groupChanged:s,hasChildrenChanged:s,expandedChanged:a})})(),s()}getInnerCompDetails(){const{userCompFactory:e,findSvc:t}=this.beans,n=this.params;if(n.fullWidth){const l=this.gos.get("groupRowRendererParams"),c=VH(e,l,n);return c||(t?.isMatch(n.node,null)?VH(e,{...l,innerRenderer:"agFindCellRenderer"},n):void 0)}const r=l=>l&&l.componentClass==this.compClass,i=VH(e,n,n);if(i&&!r(i))return i;const{displayedNode:{rowGroupColumn:o}}=this,a=o?.colDef,s=o&&n.column?.isRowGroupDisplayed(o.getId());if(a&&s){const l=iP(e,a,n);if(l)if(r(l)){if(a?.cellRendererParams?.innerRenderer)return VH(e,a.cellRendererParams,n)}else return l}if(t?.isMatch(n.node,n.column))return iP(e,{...a??n.colDef,cellRenderer:"agFindCellRenderer"},n)}getChildCount(){const{column:e,suppressCount:t}=this.params;if(t)return 0;const{allChildrenCount:n,rowGroupColumn:r}=this.displayedNode;return!((n??0)>0&&(!r||!e||e?.isRowGroupDisplayed(r.getId())))||this.gos.get("showOpenedGroup")&&this.displayedNode!==this.node&&!kRe(this.node,this.displayedNode,this.gos)?0:n??0}isExpandable(){const{node:e,column:t,colDef:n}=this.params;if(!this.displayedNode.isExpandable()||e.rowPinned)return!1;if(!t)return!0;if(e.hasChildren()&&n){const{showRowGroup:o}=n;if(!o)return!1;if(o===!0)return!0}return e===this.displayedNode?e.rowGroupColumn&&t?.isRowGroupDisplayed(e.rowGroupColumn.getId())?!0:e.master?n?.showRowGroup===!0||n?.showRowGroup==null:!1:kRe(this.node,this.displayedNode,this.gos)}setupIndent(){const{suppressPadding:e,node:t,colDef:n}=this.params;if(e)return;const r=()=>{let i=0;n&&n.showRowGroup!==!0?i=0:i=t.uiLevel;const o="ag-row-group-indent-"+i;o!==this.indentClass&&(this.indentClass&&this.comp.toggleCss(this.indentClass,!1),this.indentClass=o,this.comp.toggleCss(o,!0),this.eGui.style.setProperty("--ag-indentation-level",String(i)))};this.addManagedListeners(t,{uiLevelChanged:r.bind(this)}),r()}setupCheckbox(){const{node:e}=this.params;!e.footer&&!e.rowPinned&&!e.detail&&(this.addManagedPropertyListener("rowSelection",({currentValue:n,previousValue:r})=>{const i=typeof n=="object"?n:void 0,o=typeof r=="object"?r:void 0;i?.checkboxLocation!==o?.checkboxLocation&&(this.destroyCheckbox(),this.addCheckbox())}),this.addCheckbox())}addCheckbox(){const{selectionSvc:e}=this.beans;if(!e||!Kp(this.gos))return;const{node:t,column:n}=this.params,r=this.gos.get("rowSelection"),i=hW(r);if(i==="selectionColumn")return;if(i==="autoGroupColumn"){const c=n?.getColDef().showRowGroup!=null,u=!n&&t.group;if(!(c||u))return}const o=typeof r=="object"?LO(r):this.params.checkbox;if(!(typeof o=="function"||o===!0))return;if(typeof n?.getColDef().showRowGroup=="string"&&!this.isExpandable()){this.comp.setCheckboxSpacing(!0);return}const l=e.createCheckboxSelectionComponent();this.cbComp=l,this.createBean(l),l.init({rowNode:t,column:n,overrides:{isVisible:o,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(l.getGui()),this.comp.setCheckboxVisible(!0)}destroyCheckbox(){this.comp.setCheckboxSpacing(!1),this.comp.setCheckboxVisible(!1),this.cbComp&&this.eCheckbox.removeChild(this.cbComp.getGui()),this.cbComp=this.destroyBean(this.cbComp)}onExpandClicked(e){rh(e)||(Cl(e),this.onExpandOrContract(e))}onKeyDown(e){!(e.key===Qe.ENTER)||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)}onCellDblClicked(e){if(rh(e))return;dhe(this.eExpanded,e)||dhe(this.eContracted,e)||this.onExpandOrContract(e)}onExpandOrContract(e){if(!this.isExpandable())return;const t=this.displayedNode,n=!t.expanded;!n&&t.sticky&&this.beans.ctrlsSvc.getScrollFeature().setVerticalScrollPosition(t.rowTop-t.stickyRowTop),t.setExpanded(n,e)}destroy(){super.destroy(),this.destroyCheckbox()}},XYt={tag:"span",cls:"ag-cell-wrapper",children:[{tag:"span",ref:"eExpanded",cls:"ag-group-expanded ag-hidden"},{tag:"span",ref:"eContracted",cls:"ag-group-contracted ag-hidden"},{tag:"span",ref:"eCheckbox",cls:"ag-group-checkbox ag-invisible"},{tag:"span",ref:"eValue",cls:"ag-group-value"},{tag:"span",ref:"eChildCount",cls:"ag-group-child-count"}]},LRe=class extends Gt{constructor(){super(XYt),this.eExpanded=at,this.eContracted=at,this.eCheckbox=at,this.eValue=at,this.eChildCount=at}init(t){const n={setInnerRenderer:(a,s)=>this.setRenderDetails(a,s),setChildCount:a=>this.eChildCount.textContent=a,toggleCss:(a,s)=>this.toggleCss(a,s),setContractedDisplayed:a=>Nn(this.eContracted,a),setExpandedDisplayed:a=>Nn(this.eExpanded,a),setCheckboxVisible:a=>this.eCheckbox.classList.toggle("ag-invisible",!a),setCheckboxSpacing:a=>this.eCheckbox.classList.toggle("ag-group-checkbox-spacing",a)},r=this.createManagedBean(new xit),i=!t.colDef,o=this.getGui();r.init(n,o,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),i&&C0(o,r.getCellAriaRole())}setRenderDetails(t,n){t?t.newAgStackInstance().then(r=>{if(!r)return;const i=()=>this.destroyBean(r);this.isAlive()?(this.eValue.appendChild(r.getGui()),this.addDestroyFunc(i)):i()}):this.eValue.innerText=n}destroy(){this.destroyBean(this.innerCellRenderer),super.destroy()}refresh(){return!1}},YYt=".ag-group-checkbox-spacing{width:var(--ag-icon-size)}:where(.ag-ltr) .ag-group-checkbox-spacing{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-checkbox-spacing{margin-left:var(--ag-cell-widget-spacing)}",KYt=class extends dt{constructor(){super(...arguments),this.beanName="showRowGroupColValueSvc"}getGroupValue(e,t){if(!t)return e.group?{displayedNode:e,value:e.groupValue}:null;const n=this.beans.valueSvc,r=t.colDef.showRowGroup;if(!r)return null;if(e.level===-1&&e.footer)return{displayedNode:e,value:null};if(typeof r=="string"){if((this.beans.rowGroupColsSvc?.getColumnIndex(r)??-1)>e.level)return null;const a=this.getDisplayedNode(e,t,!0);if(a)return{displayedNode:a,value:n.getValue(t,a)}}const i=n.getValue(t,e);if(i==null){const o=this.getDisplayedNode(e,t);if(o)return{displayedNode:o,value:n.getValue(t,o)}}return{displayedNode:e,value:i}}formatAndPrefixGroupColValue(e,t,n=!1){const r=this.formatGroupColValue(e,t,n),{value:i,displayedNode:o}=e,a=this.beans.footerSvc;return a?.doesCellShowTotalPrefix(o,t)?a.applyTotalPrefix(i,r,o,t):o.footer&&o.level===-1?null:r}formatGroupColValue(e,t,n=!1){const r=this.beans.valueSvc,{displayedNode:i,value:o}=e,a=i.rowGroupColumn,s=i.group&&!t;if(a&&(s||t?.isRowGroupDisplayed(a.colId))){if(n&&a.colDef.useValueFormatterForExport===!1)return null;const c=r.formatValue(a,i,o);return c==null&&i.key===""?this.getLocaleTextFunc()("blanks","(Blanks)"):c}return!t||i.group||n&&t.colDef.useValueFormatterForExport===!1?null:r.formatValue(t,i,o)}getDisplayedNode(e,t,n=!1){const r=this.gos,i=r.get("groupHideOpenParents"),o=r.get("showOpenedGroup")&&!n;if(!i&&!o)return;const a=t.colDef.showRowGroup;if(a===!0)return e.group?void 0:e.parent??void 0;let s=e;for(;s&&s.rowGroupColumn?.getId()!=a;){const l=s===s.parent?.getFirstChild();if(!o&&!l)return;s=s.parent}if(s!==e)return s??void 0}},QYt=class extends dt{constructor(){super(...arguments),this.beanName="showRowGroupCols"}refresh(){this.showRowGroupCols=[],this.showRowGroupColsMap={};const{colModel:e,rowGroupColsSvc:t}=this.beans;e.getCols().forEach(n=>{const i=n.getColDef().showRowGroup,o=typeof i=="string";!o&&!(i===!0)||(this.showRowGroupCols.push(n),o?this.showRowGroupColsMap[i]=n:t&&t.columns.forEach(s=>{this.showRowGroupColsMap[s.getId()]=n}))})}getShowRowGroupCols(){return this.showRowGroupCols}getShowRowGroupCol(e){return this.showRowGroupColsMap[e]}getSourceColumnsForGroupColumn(e){const t=e.getColDef().showRowGroup;if(!t)return null;const{rowGroupColsSvc:n,colModel:r}=this.beans;if(t===!0&&n)return n.columns.slice(0);const i=r.getColDefCol(t);return i?[i]:null}isRowGroupDisplayed(e,t){const{colDef:n}=e;if(n?.showRowGroup==null)return!1;const r=n.showRowGroup===!0,i=n.showRowGroup===t;return r||i}},ZYt=class extends dt{constructor(e,t){super(),this.createRowCon=e,this.destroyRowCtrls=t,this.stickyTopRowCtrls=[],this.stickyBottomRowCtrls=[],this.extraTopHeight=0,this.extraBottomHeight=0}postConstruct(){this.isClientSide=sa(this.gos),this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl}),this.resetStickyContainers()}setOffsetTop(e){this.extraTopHeight!==e&&(this.extraTopHeight=e,this.eventSvc.dispatchEvent({type:"stickyTopOffsetChanged",offset:e}))}setOffsetBottom(e){this.extraBottomHeight!==e&&(this.extraBottomHeight=e)}resetOffsets(){this.setOffsetBottom(0),this.setOffsetTop(0)}getLastPixelOfGroup(e){return this.isClientSide?eKt(e):JYt(e)}getFirstPixelOfGroup(e){return e.footer?e.sibling.rowTop+e.sibling.rowHeight-1:e.hasChildren()?e.rowTop-1:0}updateStickyRows(e){const t=e==="top";let n=0;if(!this.canRowsBeSticky())return this.refreshNodesAndContainerHeight(e,new Set,n);const{rowModel:r,rowRenderer:i,pinnedRowModel:o}=this.beans,a=t?i.firstVisibleVPixel-this.extraTopHeight:i.lastVisibleVPixel-this.extraTopHeight,s=new Set,l=p=>{if(s.add(p),t){const h=this.getLastPixelOfGroup(p),g=a+n+p.rowHeight;h<g?p.stickyRowTop=n+(h-g):p.stickyRowTop=n}else{const h=this.getFirstPixelOfGroup(p),g=a-(n+p.rowHeight);h>g?p.stickyRowTop=n-(h-g):p.stickyRowTop=n}n=0,s.forEach(h=>{const g=h.stickyRowTop+h.rowHeight;n<g&&(n=g)})},c=this.areFooterRowsStickySuppressed(),u=this.gos.get("suppressGroupRowsSticky"),d=p=>{if(!p.displayed)return!1;if(p.footer){if(c===!0||c==="grand"&&p.level===-1||c==="group"&&p.level>-1)return!1;const h=p.sibling.rowIndex?p.sibling.rowIndex+1===p.rowIndex:!1;return e==="bottom"&&h||p.level===-1&&o?.getGrandTotalPinned()?!1:!s.has(p)}return p.isExpandable()?u===!0||e==="bottom"?!1:!s.has(p)&&p.expanded:!1};for(let p=0;p<100;p++){let h=a+n;t||(h=a-n);const g=r.getRowIndexAtPixel(h),m=r.getRow(g);if(m==null)break;const y=this.getStickyAncestors(m).find(C=>(t?C.rowIndex<g:C.rowIndex>g)&&d(C));if(y){l(y);continue}if((t?m.rowTop<h:m.rowTop+m.rowHeight>h)&&d(m)){l(m);continue}break}return t||s.forEach(p=>{p.stickyRowTop=n-(p.stickyRowTop+p.rowHeight)}),this.refreshNodesAndContainerHeight(e,s,n)}areFooterRowsStickySuppressed(){const e=this.gos.get("suppressStickyTotalRow");if(e===!0)return!0;const t=e==="group",n=e==="grand";return t&&n?!0:n?"grand":t?"group":!1}canRowsBeSticky(){const e=zK(this.gos),t=this.areFooterRowsStickySuppressed(),n=this.gos.get("suppressGroupRowsSticky");return e&&(!t||!n)}getStickyAncestors(e){const t=[];let n=e.footer?e.sibling:e.parent;for(;n;)n.sibling&&t.push(n.sibling),t.push(n),n=n.parent;return t.reverse()}checkStickyRows(){const e=this.updateStickyRows("top"),t=this.updateStickyRows("bottom");return e||t}destroyStickyCtrls(){this.resetStickyContainers()}resetStickyContainers(){this.refreshNodesAndContainerHeight("top",new Set,0),this.refreshNodesAndContainerHeight("bottom",new Set,0)}refreshStickyNode(e){const t=new Set;if(this.stickyTopRowCtrls.some(n=>n.rowNode===e)){for(let n=0;n<this.stickyTopRowCtrls.length;n++){const r=this.stickyTopRowCtrls[n].rowNode;r!==e&&t.add(r)}this.refreshNodesAndContainerHeight("top",t,this.topContainerHeight)&&this.checkStickyRows();return}for(let n=0;n<this.stickyBottomRowCtrls.length;n++){const r=this.stickyBottomRowCtrls[n].rowNode;r!==e&&t.add(r)}this.refreshNodesAndContainerHeight("bottom",t,this.bottomContainerHeight)&&this.checkStickyRows()}refreshNodesAndContainerHeight(e,t,n){const r=e==="top",i=r?this.stickyTopRowCtrls:this.stickyBottomRowCtrls,o={},a=[];for(let h=0;h<i.length;h++){const g=i[h].rowNode;if(!t.has(g)){o[g.id]=i[h],g.sticky=!1;continue}a.push(i[h])}const s=new Set;for(let h=0;h<a.length;h++)s.add(a[h].rowNode);const l=[];t.forEach(h=>{s.has(h)||(h.sticky=!0,l.push(this.createRowCon(h,!1,!1)))});let c=!!l.length||a.length!==i.length;r?this.topContainerHeight!==n&&(this.topContainerHeight=n,this.gridBodyCtrl.setStickyTopHeight(n),c=!0):this.bottomContainerHeight!==n&&(this.bottomContainerHeight=n,this.gridBodyCtrl.setStickyBottomHeight(n),c=!0),this.destroyRowCtrls(o,!1);const u=[...a,...l];u.sort((h,g)=>g.rowNode.rowIndex-h.rowNode.rowIndex),r||u.reverse(),u.forEach(h=>h.setRowTop(h.rowNode.stickyRowTop));const d=this.beans.pageBounds;let p=0;return r?(t.forEach(h=>{h.rowIndex<d.getFirstRow()&&(p+=h.rowHeight)}),p>this.topContainerHeight&&(p=this.topContainerHeight),this.setOffsetTop(p)):(t.forEach(h=>{h.rowIndex>d.getLastRow()&&(p+=h.rowHeight)}),p>this.bottomContainerHeight&&(p=this.bottomContainerHeight),this.setOffsetBottom(p)),c?(r?this.stickyTopRowCtrls=u:this.stickyBottomRowCtrls=u,!0):!1}ensureRowHeightsValid(){let e=!1;const t=n=>{const r=n.rowNode;if(r.rowHeightEstimated){const i=bd(this.beans,r);r.setRowHeight(i.height),e=!0}};return this.stickyTopRowCtrls.forEach(t),this.stickyBottomRowCtrls.forEach(t),e}};function JYt(e){if(e.isExpandable()||e.footer){if(e.master&&e.detailNode)return e.detailNode.rowTop+e.detailNode.rowHeight;if(!e.sibling||Math.abs(e.sibling.rowIndex-e.rowIndex)===1){let n=e.childStore?.getStoreBounds();return e.footer&&(n=e.sibling.childStore?.getStoreBounds()),(n?.heightPx??0)+(n?.topPx??0)}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}function eKt(e){if(e.isExpandable()||e.footer){if(e.footer&&e.rowIndex===0)return Number.MAX_SAFE_INTEGER;if(!e.sibling||Math.abs(e.sibling.rowIndex-e.rowIndex)===1){let r=e.footer?e.sibling:e;for(;r.isExpandable()&&r.expanded;)if(r.master&&r.detailNode)r=r.detailNode;else if(r.childrenAfterSort){if(r.childrenAfterSort.length===0)break;r=zr(r.childrenAfterSort)}return r.rowTop+r.rowHeight}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}var tKt=class extends dt{constructor(){super(...arguments),this.beanName="stickyRowSvc"}createStickyRowFeature(e,t,n){const r=this.gos;if(zK(r)&&sa(r)||Au(r))return e.createManagedBean(new ZYt(t,n))}},wit={moduleName:"GroupCellRenderer",version:wi,userComponents:{agGroupRowRenderer:LRe,agGroupCellRenderer:LRe},dynamicBeans:{groupCellRendererCtrl:xit},icons:{groupContracted:"tree-closed",groupExpanded:"tree-open"},css:[YYt],dependsOn:[es]},Sit={moduleName:"GroupColumn",version:wi,beans:[HYt,QYt,KYt,jYt,mit,fit],dependsOn:[es,wit]},$K={moduleName:"ClientSideRowModelHierarchy",version:wi,rowModels:["clientSide"],beans:[$Yt,GYt,VYt],dependsOn:[es]},rMe={moduleName:"StickyRow",version:wi,beans:[tKt]},nKt=class extends Gt{constructor(){super()}postConstruct(){this.setGui(this.createNorthPanel());const e=this.onRowGroupChanged.bind(this);this.addManagedEventListeners({columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedPropertyListener("rowGroupPanelShow",e),this.addManagedPropertyListener("pivotPanelShow",()=>this.onPivotPanelShow()),this.onRowGroupChanged()}createNorthPanel(){const e=Nr({tag:"div",cls:"ag-column-drop-wrapper",role:"presentation"}),t=new iit(!0);this.rowGroupComp=this.createManagedBean(t);const n=new rit(!0);this.pivotComp=this.createManagedBean(n),e.appendChild(t.getGui()),e.appendChild(n.getGui());const r=this.onDropPanelVisible.bind(this);return this.addManagedListeners(t,{displayChanged:r}),this.addManagedListeners(n,{displayChanged:r}),this.onDropPanelVisible(),e}onDropPanelVisible(){const{rowGroupComp:e,pivotComp:t}=this,n=e.isDisplayed()&&t.isDisplayed(),r="ag-column-drop-horizontal-half-width";e.toggleCss(r,n),t.toggleCss(r,n)}onRowGroupChanged(){const e=this.rowGroupComp;if(!e)return;const t=this.gos.get("rowGroupPanelShow");if(t==="always")e.setDisplayed(!0);else if(t==="onlyWhenGrouping"){const n=this.beans.rowGroupColsSvc?.columns?.length!==0;e.setDisplayed(n)}else e.setDisplayed(!1)}onPivotPanelShow(){const e=this.pivotComp;if(!e)return;const t=this.gos.get("pivotPanelShow");if(t==="always")e.setDisplayed(!0);else if(t==="onlyWhenPivoting"){const n=this.beans.colModel.isPivotActive();e.setDisplayed(n)}else e.setDisplayed(!1)}},rKt={selector:"AG-GRID-HEADER-DROP-ZONES",component:nKt},iKt={tag:"div",cls:"ag-group-filter",children:[{tag:"div",ref:"eGroupField"},{tag:"div",ref:"eUnderlyingFilter"}]},oKt=class extends Gb{constructor(){super(iKt),this.filterType="group",this.eGroupField=at,this.eUnderlyingFilter=at}wireBeans(e){this.filterManager=e.filterManager,this.showRowGroupCols=e.showRowGroupCols}postConstruct(){this.initialiseTabGuard({})}init(e){return this.updateParams(e).then(()=>{this.addManagedEventListeners({columnRowGroupChanged:()=>this.onColumnRowGroupChanged(),filterDestroyed:t=>this.onFilterDestroyed(t)})})}refresh(e){return this.updateParams(e),!0}updateParams(e){return this.params=e,this.validateParams(),this.updateGroups()}validateParams(){const{colDef:e}=this.params;e.field&&ut(234),e.filterValueGetter&&ut(235),e.filterParams&&ut(236)}updateGroups(){const e=this.updateGroupField();return this.getUnderlyingFilters(e)}getSourceColumns(){if(this.groupColumn=this.params.column,this.gos.get("treeData"))return ut(237),[];const e=this.showRowGroupCols?.getSourceColumnsForGroupColumn(this.groupColumn);return e||(ut(183),[])}updateGroupField(){const e=this.eGroupField;Xi(e),this.eGroupFieldSelect&&this.destroyBean(this.eGroupFieldSelect);const t=this.getSourceColumns(),n=t.filter(r=>r.isFilterAllowed());return n.length?(t.length===1?(this.selectedColumn=n[0],Nn(e,!1)):((!this.selectedColumn||!n.some(r=>r.getId()===this.selectedColumn.getId()))&&(this.selectedColumn=n[0]),this.createGroupFieldSelectElement(n),e.appendChild(this.eGroupFieldSelect.getGui()),e.appendChild(Nr({tag:"div",cls:"ag-filter-separator"})),Nn(e,!0)),n):(this.selectedColumn=void 0,Nn(e,!1),null)}createGroupFieldSelectElement(e){const t=this.createManagedBean(new l1);this.eGroupFieldSelect=t;const n=this.getLocaleTextFunc();t.setLabel(n("groupFilterSelect","Select field:")),t.setLabelAlignment("top"),t.addOptions(e.map(r=>({value:r.getId(),text:this.beans.colNames.getDisplayNameForColumn(r,"groupFilter",!1)??void 0}))),t.setValue(this.selectedColumn.getId()),t.onValueChange(r=>this.updateSelectedColumn(r)),t.addCss("ag-group-filter-field-select-wrapper"),e.length===1&&t.setDisabled(!0)}getUnderlyingFilters(e){if(!e)return this.filterColumnPairs=void 0,this.selectedFilter=void 0,this.beans.colFilter?.setColFilterActive(this.groupColumn,!1,"columnRowGroupChanged"),Dr.resolve();const t=[],n=[];return e.forEach(r=>{const i=this.filterManager.getOrCreateFilterWrapper(r);i?.filterPromise&&t.push(i.filterPromise.then(o=>(o&&n.push({filter:o,column:r}),r.getId()===this.selectedColumn.getId()&&(this.selectedFilter=o??void 0),o)))}),Dr.all(t).then(()=>{this.filterColumnPairs=n,this.beans.colFilter?.setColFilterActive(this.groupColumn,this.isFilterActive(),"columnRowGroupChanged")})}addUnderlyingFilterElement(){if(Xi(this.eUnderlyingFilter),!this.selectedColumn)return Dr.resolve();const e=this.createManagedBean(new IK(this.selectedColumn,"COLUMN_MENU"));return this.filterWrapperComp=e,e.hasFilter()?(this.eUnderlyingFilter.appendChild(e.getGui()),e.getFilter()?.then(()=>{e.afterGuiAttached?.(this.afterGuiAttachedParams),!this.afterGuiAttachedParams?.suppressFocus&&this.eGroupFieldSelect&&!this.eGroupFieldSelect.isDisabled()&&this.eGroupFieldSelect.getFocusableElement().focus()})??Dr.resolve()):Dr.resolve()}updateSelectedColumn(e){if(!e)return;this.filterWrapperComp?.afterGuiDetached(),this.destroyBean(this.filterWrapperComp);const t=this.getFilterColumnPair(e);this.selectedColumn=t?.column,this.selectedFilter=t?.filter,this.dispatchLocalEvent({type:"selectedColumnChanged"}),this.addUnderlyingFilterElement()}isFilterActive(){return!!this.filterColumnPairs?.some(({filter:e})=>e.isFilterActive())}doesFilterPass(){return!0}getModel(){return null}setModel(){return Dr.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.addUnderlyingFilterElement()}afterGuiDetached(){Xi(this.eUnderlyingFilter),this.selectedFilter?.afterGuiDetached?.()}onColumnRowGroupChanged(){this.updateGroups().then(()=>{this.dispatchLocalEvent({type:"columnRowGroupChanged"})})}onFilterDestroyed({column:e,source:t}){if(t==="gridDestroyed")return;const n=e.getColId();this.filterColumnPairs?.some(({column:r})=>r.getColId()===n)&&setTimeout(()=>{this.isAlive()&&this.updateGroups()})}getFilterColumnPair(e){if(e)return this.filterColumnPairs?.find(({column:t})=>t.getId()===e)}getSelectedFilter(){return this.selectedFilter}getSelectedColumn(){return this.selectedColumn}isFilterAllowed(){return!!this.selectedColumn}},aKt={tag:"div",ref:"eFloatingFilter",cls:"ag-group-floating-filter ag-floating-filter-input",role:"presentation"},sKt=class extends Gt{constructor(){super(aKt),this.eFloatingFilter=at,this.haveAddedColumnListeners=!1}wireBeans(e){this.filterManager=e.filterManager}init(e){this.params=e;const t=oye(this.gos);return new Dr(n=>{this.params.parentFilterInstance(r=>{this.parentFilterInstance=r,t?this.setupUnderlyingFloatingFilterElement().then(()=>n()):(this.setupReadOnlyFloatingFilterElement(),n())})}).then(()=>{const n=this.onColChange.bind(this);this.addManagedListeners(this.parentFilterInstance,{selectedColumnChanged:n,columnRowGroupChanged:n})})}refresh(e){this.params=e,this.setParams()}setParams(){const e=this.beans.colNames.getDisplayNameForColumn(this.params.column,"header",!0),t=this.getLocaleTextFunc();this.eFloatingFilterText?.setInputAriaLabel(`${e} ${t("ariaFilterInput","Filter Input")}`)}setupReadOnlyFloatingFilterElement(){this.eFloatingFilterText||(this.eFloatingFilterText=this.createManagedBean(new Im),this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams()),this.updateDisplayedValue(),this.eFloatingFilter.appendChild(this.eFloatingFilterText.getGui())}setupUnderlyingFloatingFilterElement(){this.showingUnderlyingFloatingFilter=!1,this.underlyingFloatingFilter=void 0,Xi(this.eFloatingFilter);const e=this.parentFilterInstance.getSelectedColumn();if(e&&!e.isVisible()){const t=this.filterManager.getFloatingFilterCompDetails(e,this.params.showParentFilter);if(t)return this.haveAddedColumnListeners||(this.haveAddedColumnListeners=!0,this.addManagedListeners(e,{visibleChanged:this.onColumnVisibleChanged.bind(this),colDefChanged:this.onColDefChanged.bind(this)})),t.newAgStackInstance().then(n=>{this.underlyingFloatingFilter=n,this.underlyingFloatingFilter?.onParentModelChanged(this.parentFilterInstance.getSelectedFilter()?.getModel()),this.appendChild(n.getGui()),this.showingUnderlyingFloatingFilter=!0})}return this.setupReadOnlyFloatingFilterElement(),Dr.resolve()}onColumnVisibleChanged(){this.setupUnderlyingFloatingFilterElement()}onColDefChanged(e){if(!e.column)return;const t=this.filterManager.getFloatingFilterCompDetails(e.column,this.params.showParentFilter);t&&this.underlyingFloatingFilter?.refresh?.(t.params)}onParentModelChanged(e,t){this.showingUnderlyingFloatingFilter?this.underlyingFloatingFilter?.onParentModelChanged(this.parentFilterInstance.getSelectedFilter()?.getModel(),t):this.updateDisplayedValue()}updateDisplayedValue(){const{eFloatingFilterText:e,parentFilterInstance:t}=this;if(!t||!e)return;const n=t.getSelectedFilter();if(!n){e.setValue(""),e.setDisplayed(!1);return}if(e.setDisplayed(!0),n.getModelAsString){const r=n.getModel();e.setValue(r==null?"":n.getModelAsString(r))}else e.setValue("")}onColChange(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()}},Tre=class{constructor(){this.allSets=new Map}removeFromChildrenAfterGroup(e,t){const n=this.getSet(e);(n.fromChildrenAfterGroup??(n.fromChildrenAfterGroup=new Set)).add(t)}isRemoveFromAllLeafChildren(e,t){return!!this.allSets.get(e)?.fromAllLeafChildren?.has(t)}preventRemoveFromAllLeafChildren(e,t){this.allSets.get(e)?.fromAllLeafChildren?.delete(t)}removeFromAllLeafChildren(e,t){const n=this.getSet(e);(n.fromAllLeafChildren??(n.fromAllLeafChildren=new Set)).add(t)}getSet(e){let t=this.allSets.get(e);return t||(t={fromChildrenAfterGroup:null,fromAllLeafChildren:null},this.allSets.set(e,t)),t}getAllParents(){return Array.from(this.allSets.keys())}flush(){const e=this.allSets;for(const t of e.keys()){const n=e.get(t);if(n){const{fromChildrenAfterGroup:r,fromAllLeafChildren:i}=n,{childrenAfterGroup:o,allLeafChildren:a}=t;o&&r&&(_Re(o,r),t.updateHasChildren()),a&&i&&_Re(a,i)}}e.clear()}};function _Re(e,t){let n=0;for(let r=0,i=e.length;r<i;++r){const o=e[r];t.has(o)||(e[n++]=o)}e.length=n}function lKt(e){if(!e)return!1;const t=e.length;if(t<2)return!1;let n=!1;for(let r=1;r<t;r++)if(NRe(e[r-1],e[r])>0){n=!0;break}return n?(e.sort(NRe),!0):!1}function NRe(e,t){const n=e.sourceRowIndex,r=t.sourceRowIndex,i=n>=0,o=r>=0,a=i&&o,s=!i&&!o;return a?n-r:s?e.__objectId-t.__objectId:i?1:-1}var cKt=class extends dt{wireBeans(e){this.colModel=e.colModel,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc,this.selectionSvc=e.selectionSvc,this.showRowGroupCols=e.showRowGroupCols}execute(e){const t=this.createGroupingDetails(e),n=e.changedRowNodes;n?this.handleDeltaUpdate(t,n):this.shotgunResetEverything(t,!!e.afterColumnsChanged);const r=e.changedPath;this.positionLeafsAndGroups(r),this.orderGroups(t),this.selectionSvc?.updateSelectableAfterGrouping(r)}positionLeafsAndGroups(e){e.forEachChangedNodeDepthFirst(t=>{if(t.childrenAfterGroup){const n=[],r=[];let i;t.childrenAfterGroup.forEach(o=>{o.childrenAfterGroup?.length?o.key===""&&!i?i=o:r.push(o):n.push(o)}),i&&r.push(i),t.childrenAfterGroup=[...n,...r]}},!1)}createGroupingDetails(e){const{rowNode:t,changedPath:n,rowNodesOrderChanged:r}=e,i=this.rowGroupColsSvc?.columns;return{expandByDefault:this.gos.get("groupDefaultExpanded"),groupedCols:i,rootNode:t,pivotMode:this.colModel.isPivotMode(),groupedColCount:i?.length??0,rowNodesOrderChanged:!!r,changedPath:n,groupAllowUnbalanced:this.gos.get("groupAllowUnbalanced"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault"),initialGroupOrderComparator:this.gos.getCallback("initialGroupOrderComparator"),keyCreators:i?.map(a=>a.getColDef().keyCreator)??[]}}handleDeltaUpdate(e,{removals:t,updates:n,adds:r}){const i=new Tre;t.size&&this.removeNodes(t,e,i);for(const s of n)this.moveNodeInWrongPath(s,e,i);const o=e.changedPath;for(const s of r)this.insertOneNode(s,e),o.active&&o.addParentNode(s.parent);const a=i.getAllParents();i.flush(),this.removeEmptyGroups(a,e),e.rowNodesOrderChanged&&this.sortChildren(e)}sortChildren(e){e.changedPath.forEachChangedNodeDepthFirst(t=>{lKt(t.childrenAfterGroup)&&e.changedPath.addParentNode(t)},!1,!0)}orderGroups(e){const t=e.initialGroupOrderComparator;Ut(t)&&n(e.rootNode);function n(r){Ut(r.childrenAfterGroup)&&!r.leafGroup&&(r.childrenAfterGroup.sort((o,a)=>t({nodeA:o,nodeB:a})),r.childrenAfterGroup.forEach(o=>n(o)))}}getExistingPathForNode(e,t){const n=[];let r=e.parent;for(;r&&r!==t.rootNode;)n.push({key:r.key,rowGroupColumn:r.rowGroupColumn,field:r.field}),r=r.parent;return n.reverse(),n}moveNodeInWrongPath(e,t,n){t.changedPath.active&&t.changedPath.addParentNode(e.parent);const r=s=>s.key,i=this.getExistingPathForNode(e,t).map(r),o=this.getGroupInfo(e,t).map(r);Md(i,o)||this.moveNode(e,t,n)}moveNode(e,t,n){if(this.removeNodesFromParents([e],t,n),this.insertOneNode(e,t,n),e.setData(e.data),t.changedPath.active){const r=e.parent;t.changedPath.addParentNode(r)}}removeNodes(e,t,n){if(this.removeNodesFromParents(e,t,n),t.changedPath.active)for(const r of e)t.changedPath.addParentNode(r.parent)}forEachParentGroup(e,t,n){let r=t;for(;r&&r!==e.rootNode;)n(r),r=r.parent}removeNodesFromParents(e,t,n){const r=n==null,i=n||new Tre;for(const o of e)this.removeFromParent(o,i),this.forEachParentGroup(t,o.parent,a=>{i.removeFromAllLeafChildren(a,o)});r&&i.flush()}removeEmptyGroups(e,t){let n=!0;const r=i=>{const o=this.getChildrenMappedKey(i.key,i.rowGroupColumn),a=i.parent;return(a?.childrenMapped?!a.childrenMapped[o]:!0)?!1:!!i.group&&(i.childrenAfterGroup?.length??0)===0};for(;n;){n=!1;const i=new Tre;e.forEach(o=>{this.forEachParentGroup(t,o,a=>{r(a)&&(n=!0,this.removeFromParent(a,i),this.selectionSvc?.setNodesSelected({nodes:[a],newValue:!1,source:"rowGroupChanged"}))})}),i.flush()}}removeFromParent(e,t){e.parent&&(t?t.removeFromChildrenAfterGroup(e.parent,e):(Ou(e.parent.childrenAfterGroup,e),e.parent.updateHasChildren()));const n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);e.parent?.childrenMapped&&delete e.parent.childrenMapped[n],e.setRowTop(null),e.setRowIndex(null)}addToParent(e,t){const n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);t?.childrenMapped&&t.childrenMapped[n]!==e&&(t.childrenMapped[n]=e,t.childrenAfterGroup.push(e),Jye(t,this.beans,!0))}areGroupColsEqual(e,t){return e==null||t==null||e.pivotMode!==t.pivotMode?!1:Md(e.groupedCols,t.groupedCols)&&Md(e.keyCreators,t.keyCreators)}checkAllGroupDataAfterColsChanged(e){const t=n=>{n&&n.forEach(r=>{if(!r.group)return;const o={field:r.field,key:r.key,rowGroupColumn:r.rowGroupColumn,leafNode:r.allLeafChildren?.[0]};this.setGroupData(r,o),t(r.childrenAfterGroup)})};t(e.rootNode.childrenAfterGroup)}shotgunResetEverything(e,t){if(this.noChangeInGroupingColumns(e,t))return;this.selectionSvc?.filterFromSelection?.(o=>!o.group);const{groupedCols:n}=e,r=e.rootNode;r.leafGroup=n.length===0,r.childrenAfterGroup=[],r.childrenMapped={},r.updateHasChildren();const i=r.sibling;i&&(i.childrenAfterGroup=r.childrenAfterGroup,i.childrenMapped=r.childrenMapped),this.insertNodes(r.allLeafChildren,e)}noChangeInGroupingColumns(e,t){let n=!1;const r=this.showRowGroupCols.getShowRowGroupCols(),i=r?r.map(o=>o.getId()).join("-"):"";return t&&(n=this.areGroupColsEqual(e,this.oldGroupingDetails),this.oldGroupDisplayColIds!==i&&this.checkAllGroupDataAfterColsChanged(e)),this.oldGroupingDetails=e,this.oldGroupDisplayColIds=i,n}insertNodes(e,t){e.forEach(n=>{this.insertOneNode(n,t),t.changedPath.active&&t.changedPath.addParentNode(n.parent)})}insertOneNode(e,t,n){const r=this.getGroupInfo(e,t),i=this.findParentForNode(e,r,t,n);i.group||ut(184,{parentGroupData:i.data,childNodeData:e.data}),e.parent=i,e.level=r.length,i.childrenAfterGroup.push(e),i.updateHasChildren()}findParentForNode(e,t,n,r){let i=n.rootNode;return t.forEach((o,a)=>{i=this.getOrCreateNextNode(i,o,a,n),r?.isRemoveFromAllLeafChildren(i,e)?r?.preventRemoveFromAllLeafChildren(i,e):i.allLeafChildren.push(e)}),i}getOrCreateNextNode(e,t,n,r){const i=this.getChildrenMappedKey(t.key,t.rowGroupColumn);let o=e?.childrenMapped?.[i];return o||(o=this.createGroup(t,e,n,r),this.addToParent(o,e)),o}createGroup(e,t,n,r){const i=new vp(this.beans);return i.group=!0,i.field=e.field,i.rowGroupColumn=e.rowGroupColumn,this.setGroupData(i,e),i.key=e.key,i.id=this.createGroupId(i,t,n),i.level=n,i.leafGroup=n===r.groupedColCount-1,i.allLeafChildren=[],i.setAllChildrenCount(0),i.rowGroupIndex=n,i.childrenAfterGroup=[],i.childrenMapped={},i.updateHasChildren(),i.parent=t,this.setExpandedInitialValue(r,i),i}createGroupId(e,t,n){const r=(i,o)=>{if(!i.rowGroupColumn)return null;const a=o?r(o,o.parent):null;return`${a==null?"":a+"-"}${i.rowGroupColumn.getColId()}-${i.key}`};return mW+r(e,t)}setGroupData(e,t){const n=t.rowGroupColumn;n&&t.leafNode&&(e.groupValue=this.valueSvc.getValue(n,t.leafNode)),e.groupData={},this.showRowGroupCols.getShowRowGroupCols().forEach(i=>{const o=e.rowGroupColumn;o!==null&&i.isRowGroupDisplayed(o.getId())&&(e.groupData[i.getColId()]=this.valueSvc.getValue(o,t.leafNode))})}getChildrenMappedKey(e,t){return t?t.getId()+"-"+e:e}setExpandedInitialValue(e,t){if(e.pivotMode&&t.leafGroup){t.expanded=!1;return}const n=e.isGroupOpenByDefault;if(n){const r={rowNode:t,field:t.field,key:t.key,level:t.level,rowGroupColumn:t.rowGroupColumn};t.expanded=n(r)==!0;return}if(e.expandByDefault===-1){t.expanded=!0;return}t.expanded=t.level<e.expandByDefault}getGroupInfo(e,t){const n=[];return t.groupedCols.forEach(r=>{let i=this.valueSvc.getKeyForNode(r,e),o=i!=null&&i!=="";if((t.pivotMode||!t.groupAllowUnbalanced)&&!o&&(i="",o=!0),o){const s={key:i,field:r.getColDef().field,rowGroupColumn:r,leafNode:e};n.push(s)}}),n}};function uKt(e,t){e.rowGroupColsSvc?.setColumns(t,"api")}function dKt(e,t){e.rowGroupColsSvc?.removeColumns(t,"api")}function pKt(e,t){e.rowGroupColsSvc?.addColumns(t,"api")}function hKt(e,t,n){e.rowGroupColsSvc?.moveColumn?.(t,n,"api")}function fKt(e){return e.rowGroupColsSvc?.columns??[]}var Ait={moduleName:"SharedRowGrouping",version:wi,apiFunctions:{setRowGroupColumns:uKt,removeRowGroupColumns:dKt,addRowGroupColumns:pKt,getRowGroupColumns:fKt,moveRowGroupColumn:hKt},dependsOn:[es,nMe,Sit,rMe]},Oit={moduleName:"RowGrouping",version:wi,dynamicBeans:{groupStrategy:cKt},rowModels:["clientSide"],dependsOn:[Ait,git,$K]},gKt={moduleName:"RowGroupingPanel",version:wi,selectors:[rKt],icons:{pivotPanel:"pivot",rowGroupPanel:"group",panelDelimiter:"small-right",panelDelimiterRtl:"small-left"},dependsOn:[es,pM]},mKt={moduleName:"GroupFilter",version:wi,userComponents:{agGroupColumnFilter:oKt,agGroupColumnFloatingFilter:sKt},dependsOn:[es,xw]},vKt=class extends dt{constructor(){super(...arguments),this.beanName="rowModel",this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}ensureRowHeightsValid(e,t,n,r){return!1}postConstruct(){const e=this.beans;this.rowHeight=sp(e),this.addManagedEventListeners({viewportChanged:this.onViewportChanged.bind(this)}),this.addManagedPropertyListener("viewportDatasource",()=>this.updateDatasource()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=sp(e),this.updateRowHeights()})}start(){this.updateDatasource()}isLastRowIndexKnown(){return!0}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){const e=this.datasource;e&&(e.destroy?.(),this.beans.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)}updateDatasource(){const e=this.gos.get("viewportDatasource");e&&this.setViewportDatasource(e)}getPageSize(){return this.gos.get("viewportRowModelPageSize")}getBufferSize(){return this.gos.get("viewportRowModelBufferSize")}calculateFirstRow(e){const t=this.getBufferSize(),n=this.getPageSize(),r=e-t;return r<0?0:Math.floor(r/n)*n}calculateLastRow(e){if(e===-1)return e;const t=this.getBufferSize(),n=this.getPageSize(),r=e+t,i=Math.ceil(r/n)*n,o=this.rowCount-1;return Math.min(i,o)}onViewportChanged(e){const t=this.calculateFirstRow(e.firstRow),n=this.calculateLastRow(e.lastRow);(this.firstRow!==t||this.lastRow!==n)&&(this.firstRow=t,this.lastRow=n,this.purgeRowsNotInViewport(),this.datasource?.setViewportRange(this.firstRow,this.lastRow))}purgeRowsNotInViewport(){const e=this.rowNodesByIndex;Object.keys(e).forEach(t=>{const n=parseInt(t,10);if(n<this.firstRow||n>this.lastRow){if(this.isRowFocused(n))return;delete e[n]}})}isRowFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();return!t||t.rowPinned!=null?!1:t.rowIndex===e}setViewportDatasource(e){this.destroyDatasource(),this.datasource=e,this.rowCount=-1,e.init?e.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):ut(226)}getType(){return"viewport"}getRow(e){return this.rowNodesByIndex[e]||(this.rowNodesByIndex[e]=this.createBlankRowNode(e)),this.rowNodesByIndex[e]}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}getRowCount(){return this.rowCount===-1?0:this.rowCount}getRowIndexAtPixel(e){return this.rowHeight!==0?Math.floor(e/this.rowHeight):0}getRowBounds(e){const t=this.rowHeight;return{rowHeight:t,rowTop:t*e}}updateRowHeights(){const e=this.rowHeight;this.forEachNode(t=>{t.setRowHeight(e),t.setRowTop(e*t.rowIndex)}),this.eventSvc.dispatchEvent({type:"modelUpdated",newData:!1,newPage:!1,keepRenderedRows:!0,animate:!1})}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}isEmpty(){return this.rowCount>0}isRowsToRender(){return this.rowCount>0}getNodesInRangeForSelection(e,t){const n=e.rowIndex,r=t.rowIndex,i=n<this.firstRow||n>this.lastRow,o=r<this.firstRow||r>this.lastRow;if(i||o)return[];const a=[],s=n<=r?n:r,l=n<=r?r:n;for(let c=s;c<=l;c++)a.push(this.rowNodesByIndex[c]);return a}forEachNode(e){let t=0;Object.keys(this.rowNodesByIndex).forEach(n=>{const r=parseInt(n,10),i=this.rowNodesByIndex[r];e(i,t),t++})}setRowData(e){const t=this.rowNodesByIndex;for(const n of Object.keys(e)){const r=e[n],i=parseInt(n,10);if(i>=this.firstRow&&i<=this.lastRow){let o=t[i];Yi(o)&&(o=this.createBlankRowNode(i),t[i]=o),o.setDataAndId(r,i.toString())}}}createBlankRowNode(e){const t=new vp(this.beans),n=this.rowHeight;return t.setRowHeight(n),t.setRowTop(n*e),t.setRowIndex(e),t}setRowCount(e,t=!1){if(e===this.rowCount)return;this.rowCount=e;const n=this.eventSvc;n.dispatchEventOnce({type:"rowCountReady"}),n.dispatchEvent({type:"modelUpdated",newData:!1,newPage:!1,keepRenderedRows:t,animate:!1})}isRowPresent(e){return!!this.getRowNode(e.id)}},bKt={moduleName:"ViewportRowModel",version:wi,rowModels:["viewport"],beans:[vKt],dependsOn:[es]};function yKt(e,t){e.clipboardSvc?.copyToClipboard(t)}function MKt(e,t){e.clipboardSvc?.cutToClipboard(t)}function CKt(e,t){e.clipboardSvc?.copySelectedRowsToClipboard(t)}function xKt(e,t){e.clipboardSvc?.copySelectedRangeToClipboard(t)}function wKt(e){e.clipboardSvc?.copyRangeDown()}function SKt(e){e.clipboardSvc?.pasteFromClipboard()}var Ere="paste",Rre="dragCopy",FRe="clipboard";function AKt(e,t=","){const n=[],r=o=>o==="\r"||o===`
`;let i=!1;if(e==="")return[[""]];for(let o=0,a=0,s=0;s<e.length;s++){const l=e[s-1],c=e[s],u=e[s+1],d=()=>{n[o]||(n[o]=[]),n[o][a]||(n[o][a]="")};if(d(),c==='"'&&(i?u==='"'?(n[o][a]+='"',s++):i=!1:(l===void 0||l===t||r(l))&&(i=!0)),!i&&c!=='"'){if(c===t){a++,d();continue}else if(r(c)){a=0,o++,d(),c==="\r"&&u===`
`&&s++;continue}}n[o][a]+=c}return n}var OKt=class extends dt{constructor(){super(...arguments),this.beanName="clipboardSvc",this.clientSideRowModel=null,this.gridCtrl=null,this.lastPasteOperationTime=0,this.navigatorApiFailed=!1}postConstruct(){const{gos:e,rowModel:t,ctrlsSvc:n}=this.beans;sa(e)&&(this.clientSideRowModel=t),n.whenReady(this,r=>{this.gridCtrl=r.gridCtrl})}destroy(){super.destroy(),this.clientSideRowModel=null,this.gridCtrl=null}pasteFromClipboard(){!this.gos.get("suppressClipboardApi")&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(t=>{ut(40,{e:t,method:"readText"}),this.navigatorApiFailed=!0,this.pasteFromClipboardLegacy()}):this.pasteFromClipboardLegacy()}pasteFromClipboardLegacy(){let e=!1;const t=n=>{const r=Date.now();r-this.lastPasteOperationTime<50&&(e=!0,n.preventDefault()),this.lastPasteOperationTime=r};this.executeOnTempElement(n=>{n.addEventListener("paste",t),n.focus({preventScroll:!0})},n=>{const r=n.value;e?this.refocusLastFocusedCell():this.processClipboardData(r),n.removeEventListener("paste",t)})}refocusLastFocusedCell(){const{focusSvc:e}=this.beans,t=e.getFocusedCell();t&&e.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0})}getClipboardDelimiter(){const e=this.gos.get("clipboardDelimiter");return Ut(e)?e:"	"}processClipboardData(e){if(e==null)return;let t=AKt(e,this.getClipboardDelimiter());const n=this.gos.getCallback("processDataFromClipboard");if(n&&(t=n({data:t})),t==null)return;this.gos.get("suppressLastEmptyLineOnPaste")&&this.removeLastLineIfBlank(t);const{rangeSvc:r}=this.beans,i=(o,a,s,l)=>{r?.isMoreThanOneCell()&&!this.hasOnlyOneValueToPaste(t)?this.pasteIntoActiveRange(r,t,o,a,l):this.pasteStartingFromFocusedCell(t,o,a,s,l)};this.doPasteOperation(i)}doPasteOperation(e){const t="clipboard",{eventSvc:n,focusSvc:r,rowRenderer:i,gos:o}=this.beans;n.dispatchEvent({type:"pasteStart",source:t});const{clientSideRowModel:a}=this,s=a?.rootNode,l=s&&new Cz(o.get("aggregateOnlyChangedColumns"),s),c={},u=[],d=r.getFocusedCell();e(c,u,d,l);const p=[...u];l&&(a.doAggregate(l),l.forEachChangedNodeDepthFirst(h=>{p.push(h)})),i.refreshCells({rowNodes:p}),this.dispatchFlashCells(c),this.fireRowChanged(u),this.refocusLastFocusedCell(),n.dispatchEvent({type:"pasteEnd",source:t})}pasteIntoActiveRange(e,t,n,r,i){const o=this.getRangeSize(e)%t.length!=0;let a=0,s=0;const l=(c,u,d,p)=>{if(p-a>=t.length){if(o)return;a+=s,s=0}const g=t[p-a];r.push(u);const m=this.gos.getCallback("processCellFromClipboard");d.forEach((b,y)=>{if(!b.isCellEditable(u)||b.isSuppressPaste(u))return;y>=g.length&&(y=y%g.length);const M=this.processCell(u,b,g[y],Rre,m,!0);u.setDataValue(b,M,Ere),i&&i.addParentNode(u.parent,[b]);const{rowIndex:C,rowPinned:x}=c,w=RC({rowIndex:C,column:b,rowPinned:x});n[w]=!0}),s++};this.iterateActiveRanges(!1,l)}getDisplayedColumnsStartingAt(e){let t=e;const n=[],r=this.beans.visibleCols;for(;t!=null;)n.push(t),t=r.getColAfter(t);return n}pasteStartingFromFocusedCell(e,t,n,r,i){if(!r)return;const o={rowIndex:r.rowIndex,rowPinned:r.rowPinned},a=this.getDisplayedColumnsStartingAt(r.column);this.isPasteSingleValueIntoRange(e)?this.pasteSingleValueIntoRange(e,n,t,i):this.pasteMultipleValues(e,o,n,a,t,FRe,i)}isPasteSingleValueIntoRange(e){const t=this.beans.rangeSvc;return this.hasOnlyOneValueToPaste(e)&&!!t&&!t.isEmpty()}pasteSingleValueIntoRange(e,t,n,r){const i=e[0][0],o=(a,s,l)=>{t.push(s),l.forEach(c=>this.updateCellValue(s,c,i,n,FRe,r))};this.iterateActiveRanges(!1,o)}hasOnlyOneValueToPaste(e){return e.length===1&&e[0].length===1}copyRangeDown(){const{rangeSvc:e,gos:t,valueSvc:n}=this.beans;if(!e||e.isEmpty())return;const r=[],i=(o,a,s,l)=>{const c=t.getCallback("processCellForClipboard"),u=t.getCallback("processCellFromClipboard"),d=(p,h,g)=>{r.length?(a.push(h),g.forEach((m,b)=>{if(!m.isCellEditable(h)||m.isSuppressPaste(h))return;const y=this.processCell(h,m,r[b],Rre,u,!0);h.setDataValue(m,y,Ere),l&&l.addParentNode(h.parent,[m]);const{rowIndex:M,rowPinned:C}=p,x=RC({rowIndex:M,column:m,rowPinned:C});o[x]=!0})):g.forEach(m=>{const b=this.processCell(h,m,n.getValue(m,h),Rre,c,!1,!0);r.push(b)})};this.iterateActiveRanges(!0,d)};this.doPasteOperation(i)}removeLastLineIfBlank(e){const t=zr(e);if(t&&t.length===1&&t[0]===""){if(e.length===1)return;Ou(e,t)}}fireRowChanged(e){this.gos.get("editType")==="fullRow"&&e.forEach(t=>{this.eventSvc.dispatchEvent({type:"rowValueChanged",node:t,data:t.data,rowIndex:t.rowIndex,rowPinned:t.rowPinned})})}pasteMultipleValues(e,t,n,r,i,o,a){let s=t;const l=this.beans,{gos:c}=l,u=this.clientSideRowModel!=null&&!c.get("enableGroupEdit")&&!c.get("treeData"),d=()=>{for(;;){if(!s)return null;const p=lp(l,s);if(s=Gp(l,{rowPinned:s.rowPinned,rowIndex:s.rowIndex}),p==null)return null;if(!(p.detail||p.footer||u&&p.group))return p}};e.forEach(p=>{const h=d();h&&(p.forEach((g,m)=>this.updateCellValue(h,r[m],g,i,o,a)),n.push(h))})}updateCellValue(e,t,n,r,i,o){if(!e||!t||!t.isCellEditable(e)||t.isSuppressPaste(e))return;const a=this.processCell(e,t,n,i,this.gos.getCallback("processCellFromClipboard"),!0);e.setDataValue(t,a,Ere);const{rowIndex:s,rowPinned:l}=e,c=RC({rowIndex:s,column:t,rowPinned:l});r[c]=!0,o&&o.addParentNode(e.parent,[t])}copyToClipboard(e={}){this.copyOrCutToClipboard(e)}cutToClipboard(e={},t="api"){this.gos.get("suppressCutToClipboard")||(this.eventSvc.dispatchEvent({type:"cutStart",source:t}),this.copyOrCutToClipboard(e,!0),this.eventSvc.dispatchEvent({type:"cutEnd",source:t}))}copyOrCutToClipboard(e,t){let{includeHeaders:n,includeGroupHeaders:r}=e;const{gos:i,focusSvc:o}=this.beans;n==null&&(n=i.get("copyHeadersToClipboard")),r==null&&(r=i.get("copyGroupHeadersToClipboard"));const a={includeHeaders:n,includeGroupHeaders:r},s=i.get("rowSelection"),l=i.get("cellSelection");let c=null;this.shouldCopyCells(l,s)?(this.copySelectedRangeToClipboard(a),c=0):this.shouldCopyRows(s)?(this.copySelectedRowsToClipboard(a),c=1):o.isAnyCellFocused()&&(this.copyFocusedCellToClipboard(a),c=2),t&&c!==null&&this.clearCellsAfterCopy(c)}shouldCopyCells(e,t){const{rangeSvc:n,selectionSvc:r,gos:i}=this.beans;if(!n||n.isEmpty())return!1;if(e)return!(typeof t=="object"&&t.copySelectedRows&&!r?.isEmpty());{const o=i.get("suppressCopySingleCellRanges");return!(!n.isMoreThanOneCell()&&o)}}shouldCopyRows(e){const{selectionSvc:t,gos:n}=this.beans;return t?.isEmpty()??!0?!1:e&&typeof e!="string"?e.copySelectedRows??!1:!n.get("suppressCopyRowsToClipboard")}clearCellsAfterCopy(e){const t=this.beans,{rangeSvc:n,focusSvc:r,eventSvc:i}=t;if(i.dispatchEvent({type:"keyShortcutChangedCellStart"}),e===0)n.clearCellRangeCellValues({cellEventSource:"clipboardSvc"});else if(e===1)this.clearSelectedRows();else{const o=r.getFocusedCell();if(o==null)return;const a=lp(t,o);a&&this.clearCellValue(a,o.column)}i.dispatchEvent({type:"keyShortcutChangedCellEnd"})}clearSelectedRows(){const{selectionSvc:e,visibleCols:t}=this.beans,n=e?.getSelectedNodes()??[],r=t.allCols;for(const i of n)for(const o of r)this.clearCellValue(i,o)}clearCellValue(e,t){if(!t.isCellEditable(e))return;const n=this.beans.valueSvc.getDeleteValue(t,e);e.setDataValue(t,n,"clipboardSvc")}iterateActiveRanges(e,t,n){const r=this.beans.rangeSvc;if(!r||r.isEmpty())return;const i=r.getCellRanges();e?this.iterateActiveRange(i[0],t,n,!0):i.forEach((o,a)=>this.iterateActiveRange(o,t,n,a===i.length-1))}iterateActiveRange(e,t,n,r){const{beans:i}=this,{rangeSvc:o}=i;if(!o)return;let a=o.getRangeStartRow(e);const s=o.getRangeEndRow(e);n&&e.columns&&n(e.columns);let l=0,c=!1;for(;!c&&a!=null;){const u=lp(i,a);c=Uc(a,s),t(a,u,e.columns,l++,c&&r),a=Gp(i,a)}}copySelectedRangeToClipboard(e={}){const t=this.beans.rangeSvc;if(!t||t.isEmpty())return;const n=t.areAllRangesAbleToMerge(),{data:r,cellsToFlash:i}=n?this.buildDataFromMergedRanges(t,e):this.buildDataFromRanges(t,e);this.copyDataToClipboard(r),this.dispatchFlashCells(i)}buildDataFromMergedRanges(e,t){const n=new Set,r=e.getCellRanges(),i=new Map,o=[],a={};r.forEach(u=>{u.columns.forEach(h=>n.add(h));const{rowPositions:d,cellsToFlash:p}=this.getRangeRowPositionsAndCellsToFlash(e,u);d.forEach(h=>{const g=`${h.rowIndex}-${h.rowPinned||"null"}`;i.get(g)||(i.set(g,!0),o.push(h))}),Object.assign(a,p)});const s=this.beans.visibleCols.allCols,l=Array.from(n);return l.sort((u,d)=>{const p=s.indexOf(u),h=s.indexOf(d);return p-h}),{data:this.buildExportParams({columns:l,rowPositions:o,includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders}),cellsToFlash:a}}buildDataFromRanges(e,t){const n=e.getCellRanges(),r=[],i={};return n.forEach(o=>{const{rowPositions:a,cellsToFlash:s}=this.getRangeRowPositionsAndCellsToFlash(e,o);Object.assign(i,s),r.push(this.buildExportParams({columns:o.columns,rowPositions:a,includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders}))}),{data:r.join(`
`),cellsToFlash:i}}getRangeRowPositionsAndCellsToFlash(e,t){const n=[],r={},i=e.getRangeStartRow(t),o=e.getRangeEndRow(t);let a=i;for(;a&&(n.push(a),t.columns.forEach(s=>{const{rowIndex:l,rowPinned:c}=a,u=RC({rowIndex:l,column:s,rowPinned:c});r[u]=!0}),!Uc(a,o));)a=Gp(this.beans,a);return{rowPositions:n,cellsToFlash:r}}getCellsToFlashFromRowNodes(e){const t=this.beans.visibleCols.allCols,n={};for(let r=0;r<e.length;r++){const{level:i,rowIndex:o,rowPinned:a,sibling:s}=e[r],l=i===-1?s.rowIndex:o;if(l!=null)for(let c=0;c<t.length;c++){const u=t[c],d=RC({rowIndex:l,column:u,rowPinned:a});n[d]=!0}}return n}copyFocusedCellToClipboard(e={}){let t=this.beans.focusSvc.getFocusedCell();if(t==null)return;t=this.beans.rowSpanSvc?.getCellStart(t)??t;const n=RC(t),r={rowPinned:t.rowPinned,rowIndex:t.rowIndex},i=t.column,o=this.buildExportParams({columns:[i],rowPositions:[r],includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders});this.copyDataToClipboard(o),this.dispatchFlashCells({[n]:!0})}copySelectedRowsToClipboard(e={}){const{columnKeys:t,includeHeaders:n,includeGroupHeaders:r}=e,i=this.buildExportParams({columns:t,includeHeaders:n,includeGroupHeaders:r});this.copyDataToClipboard(i);const o=this.beans.selectionSvc?.getSelectedNodes()||[];this.dispatchFlashCells(this.getCellsToFlashFromRowNodes(o))}buildExportParams(e){const{columns:t,rowPositions:n,includeHeaders:r=!1,includeGroupHeaders:i=!1}=e,{gos:o,csvCreator:a}=this.beans,s=({node:c,column:u})=>{const{value:d,valueFormatted:p}=this.beans.valueSvc.getValueForDisplay(u,c,!0);return p??d??""},l={columnKeys:t,rowPositions:n,skipColumnHeaders:!r,skipColumnGroupHeaders:!i,suppressQuotes:!0,columnSeparator:this.getClipboardDelimiter(),onlySelected:!n,processCellCallback:o.getCallback("processCellForClipboard"),processRowGroupCallback:s,processHeaderCallback:o.getCallback("processHeaderForClipboard"),processGroupHeaderCallback:o.getCallback("processGroupHeaderForClipboard")};return a.getDataAsCsv(l,!0)}dispatchFlashCells(e){window.setTimeout(()=>{this.eventSvc.dispatchEvent({type:"flashCells",cells:e})},0)}processCell(e,t,n,r,i,o,a){const s=this.beans.valueSvc;return i?i({column:t,node:e,value:n,type:r,formatValue:c=>s.formatValue(t,e??null,c)??c,parseValue:c=>s.parseValue(t,e??null,c,s.getValue(t,e))}):o&&t.getColDef().useValueParserForImport!==!1?s.parseValue(t,e??null,n,s.getValue(t,e)):a&&t.getColDef().useValueFormatterForExport!==!1?s.formatValue(t,e??null,n)??n:n}copyDataToClipboard(e){const t=this.gos.getCallback("sendToClipboard");if(t){t({data:e});return}if(!this.gos.get("suppressClipboardApi")&&navigator.clipboard){navigator.clipboard.writeText(e).catch(r=>{ut(40,{e:r,method:"writeText"}),this.copyDataToClipboardLegacy(e)});return}this.copyDataToClipboardLegacy(e)}copyDataToClipboardLegacy(e){this.executeOnTempElement(t=>{const n=bl(this.beans),r=$i(this.beans);t.value=e||" ",t.select(),t.focus({preventScroll:!0}),n.execCommand("copy")||ut(41),r!=null&&r.focus!=null&&r.focus({preventScroll:!0})})}executeOnTempElement(e,t){if(!this.gridCtrl)return;const n=bl(this.beans),r=n.createElement("textarea"),i=r.style;i.width="1px",i.height="1px";const o=n.documentElement;i.top=o.scrollTop+"px",i.left=o.scrollLeft+"px",i.position="absolute",i.opacity="0";const a=this.gridCtrl.getGui();a.appendChild(r);try{e(r)}catch{ut(42)}t?window.setTimeout(()=>{t(r),a.removeChild(r)},100):a.removeChild(r)}getRangeSize(e){const t=e.getCellRanges();let n=0,r=0;return t.length>0&&(n=e.getRangeStartRow(t[0]).rowIndex,r=e.getRangeEndRow(t[0]).rowIndex),n-r+1}},zKt={moduleName:"Clipboard",version:wi,beans:[OKt],apiFunctions:{copyToClipboard:yKt,cutToClipboard:MKt,copySelectedRowsToClipboard:CKt,copySelectedRangeToClipboard:xKt,copySelectedRangeDown:wKt,pasteFromClipboard:SKt},dependsOn:[es,prt,FK,hrt]},TKt='.ag-row-number-cell{background-color:var(--ag-header-background-color);border:none;color:var(--ag-header-text-color);font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}:where(.ag-ltr) .ag-row-number-cell{text-align:right}:where(.ag-rtl) .ag-row-number-cell{text-align:left}.ag-row-numbers-resizer{bottom:-2px;cursor:ns-resize;height:4px;position:absolute;width:100%}:where(.ag-ltr) .ag-row-numbers-resizer{left:0}:where(.ag-rtl) .ag-row-numbers-resizer{right:0}:where(.ag-row-number-header.ag-row-number-selection-enabled){cursor:cell}.ag-row-number-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-row-number-range-selected{background-color:var(--ag-row-numbers-selected-color)}:where(.ag-ltr){.ag-row-number-header,:where(.ag-cell.ag-row-number-cell):not(.ag-cell-last-left-pinned){border-right:var(--ag-pinned-column-border)}:where(.ag-cell.ag-row-number-cell.ag-row-number-selection-enabled){cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxLjUiPjxwYXRoIGQ9Ik0zLjQ0NSA4LjkxMVY3LjQwOUg5Ljc1VjYuMDE0bDIuNTM1IDIuMTQ2LTIuNTM1IDIuMTQ2VjguOTExeiIgc3R5bGU9InN0cm9rZTojZmZmO3N0cm9rZS13aWR0aDouNDFweCIgdHJhbnNmb3JtPSJtYXRyaXgoMS41Nzg0IDAgMCAxLjg2NDI5IC00LjQxMyAtNy4yMTIpIi8+PC9zdmc+"),auto}}:where(.ag-rtl){.ag-row-number-header,:where(.ag-cell.ag-row-number-cell):not(.ag-cell-first-right-pinned){border-left:var(--ag-pinned-column-border)}:where(.ag-cell.ag-row-number-cell.ag-row-number-selection-enabled){cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxLjUiPjxwYXRoIGQ9Ik01Ljk3OSA4LjkxMXYxLjM5NUwzLjQ0NSA4LjE2bDIuNTM0LTIuMTQ2djEuMzk1aDYuMzA2djEuNTAyeiIgc3R5bGU9InN0cm9rZTojZmZmO3N0cm9rZS13aWR0aDouNDFweCIgdHJhbnNmb3JtPSJtYXRyaXgoMS41Nzg0IDAgMCAxLjg2NDI5IC00LjQxMyAtNy4yMTIpIi8+PC9zdmc+"),auto}}',EKt={tag:"div",cls:"ag-row-numbers-resizer"},RKt=class extends Gt{constructor(e){super(EKt),this.cellCtrl=e,this.initialYPosition=-1,this.dragging=!1}postConstruct(){const{beans:e,cellCtrl:t}=this,{dragSvc:n,environment:r}=e;this.defaultRowHeight=r.getDefaultRowHeight(),n.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:this.onDragging.bind(this),onDragStop:this.onDragStop.bind(this),onDragCancel:this.onDragCancel.bind(this)});const i=t.getRowPosition();this.node=lp(this.beans,i)}onDragStart(e){this.node&&(this.dragging=!0,this.initialHeight=this.node.rowHeight,this.beans.eventSvc.dispatchEvent({type:"rowResizeStarted",node:this.node,event:e,rowHeight:this.initialHeight}))}onDragging(e){const{clientY:t}=e;if(this.initialYPosition===-1||!this.dragging){this.initialYPosition=t;return}const{beans:n,initialHeight:r,initialYPosition:i,defaultRowHeight:o,node:a}=this;if(r==null)return;const s=a?.rowHeight,l=Math.max(r-(i-t),o);if(s===l)return;a?.setRowHeight(l);const{rowRenderer:c,rowModel:u,pinnedRowModel:d}=n,p=!!a?.rowPinned;p&&c.redraw({afterScroll:!0}),(!p||d?.isManual())&&u.onRowHeightChanged({animate:!1})}onDragStop(e){this.beans.eventSvc.dispatchEvent({type:"rowResizeEnded",node:this.node,event:e,rowHeight:this.node?.rowHeight}),this.clearDragDetails()}onDragCancel(){this.clearDragDetails()}clearDragDetails(){this.initialYPosition=-1,this.initialHeight=null,this.dragging=!1}destroy(){this.clearDragDetails(),this.node=void 0,super.destroy()}};function zit(e){const t=e.get("rowNumbers");return!(!t||typeof t!="object"||!t.enableRowResizer)}var IKt=class{constructor(e,t){this.beans=e,this.cellCtrl=t}refreshRowResizer(){!zit(this.beans.gos)||!this.isRowResizeSupported(this.cellCtrl.rowNode)?this.removeRowResizerFromCellComp():this.addResizerToCellComp()}isRowResizeSupported(e){const{pinnedRowModel:t,rowModel:n,visibleCols:r}=this.beans,i=!!n.onRowHeightChanged;return r.autoHeightCols.length?(ut(276),!1):e.rowPinned!=null?t?.isManual()?i:!0:i}addResizerToCellComp(){const{beans:e,cellCtrl:t}=this,{eGui:n}=t;let{rowResizer:r}=this;if(!r){if(r=e.registry.createDynamicBean("rowNumberRowResizer",!1,t),!r)return;this.rowResizer=e.context.createBean(r)}n.appendChild(r.getGui())}removeRowResizerFromCellComp(){if(!this.rowResizer)return;const{eGui:e}=this.cellCtrl;e.removeChild(this.rowResizer.getGui()),this.rowResizer=this.beans.context.destroyBean(this.rowResizer)}destroy(){this.removeRowResizerFromCellComp()}},PKt=class extends dt{constructor(){super(...arguments),this.beanName="rowNumbersSvc",this.isIntegratedWithSelection=!1}postConstruct(){const e=Ml(this,this.refreshCells.bind(this,!1,!0),10);this.addManagedEventListeners({modelUpdated:e,rangeSelectionChanged:()=>this.refreshCells(!0),pinnedRowsChanged:e}),this.addManagedPropertyListeners(["rowNumbers","cellSelection"],t=>{this.refreshSelectionIntegration(),this.updateColumns(t)}),this.refreshSelectionIntegration()}addColumns(e){this.columns!=null&&(e.list=this.columns.list.concat(e.list),e.tree=this.columns.tree.concat(e.tree),pye(e))}createColumns(e,t){if(!this.gos.get("rowNumbers"))return;const n=()=>{Tb(this.beans,this.columns?.tree),this.columns=null},r=e.treeDepth,o=(this.columns?.treeDepth??-1)==r,a=this.generateRowNumberCols();if(dye(a,this.columns?.list??[])&&o)return;n();const{colGroupSvc:l}=this.beans,c=l?.findDepth(e.tree)??0,u=l?.balanceTreeForAutoCols(a,c)??[];this.columns={list:a,tree:u,treeDepth:c,map:{}},t(p=>{if(!p)return null;const h=p.filter(g=>!p0(g));return[...a,...h]})}handleMouseDownOnCell(e,t){return!this.isIntegratedWithSelection||t.target.classList.contains("ag-row-numbers-resizer")?!1:(t.shiftKey||setTimeout(()=>{this.focusFirstRenderedCellAtRowPosition(e)}),!0)}updateColumns(e){const t=Sx(e.source);this.refreshSelectionIntegration(),this.columns?.list.forEach(n=>{const r=this.createRowNumbersColDef();n.setColDef(r,null,t),m0(this.beans,{state:[{colId:n.getColId(),...r}]},t)})}getColumn(){return this.columns?.list.find(p0)??null}getColumns(){return this.columns?.list??null}setupForHeader(e){const{column:t,eGridHeader:n}=e.params;p0(t)&&(Is(n,"Row Number"),this.addManagedElementListeners(n,{click:this.onHeaderClick.bind(this),keydown:this.onHeaderKeyDown.bind(this),focus:this.onHeaderFocus.bind(this)}))}createRowNumbersRowResizerFeature(e,t){if(zit(this.gos))return new IKt(e,t)}refreshSelectionIntegration(){const{beans:e}=this,{gos:t,rangeSvc:n}=e,r=t.get("cellSelection");this.refreshRowNumberOverrides(),this.isIntegratedWithSelection=!!n&&!!r&&!this.isSuppressCellSelectionIntegration}refreshRowNumberOverrides(){const e=this.gos.get("rowNumbers");if(this.rowNumberOverrides={},!e||typeof e!="object")return;e.suppressCellSelectionIntegration&&(this.isSuppressCellSelectionIntegration=!0);const t=["contextMenuItems","context","onCellClicked","onCellContextMenu","onCellDoubleClicked","headerTooltip","headerStyle","headerComponent","headerComponentParams","suppressHeaderKeyboardEvent","tooltipField","tooltipValueGetter","tooltipComponent","tooltipComponentParams","valueGetter","valueFormatter","width","maxWidth","minWidth","resizable"];for(const n of t)e[n]!=null&&(this.rowNumberOverrides[n]=e[n])}onHeaderFocus(){this.beans.ariaAnnounce?.announceValue("Press Space to select all cells","ariaSelectAllCells")}onHeaderKeyDown(e){!this.isIntegratedWithSelection||e.key!==Qe.SPACE||mhe(this.beans)}onHeaderClick(){this.isIntegratedWithSelection&&mhe(this.beans)}refreshCells(e,t){const n=this.getColumn();if(n){if(t){const r=this.beans.autoWidthCalc?.getPreferredWidthForElements([this.createDummyElement(n)],2);r!=null&&this.beans.colResize?.setColumnWidths([{key:n,newWidth:r}],!1,!0,"rowNumbersService")}this.beans.rowRenderer.refreshCells({columns:[n],force:e})}}createDummyElement(e){const t=Nr({tag:"div",cls:"ag-cell-value ag-cell"});let n=String(this.beans.rowModel.getRowCount()+1);if(typeof this.rowNumberOverrides.valueFormatter=="function"){const r=Gn(this.beans.gos,{data:void 0,value:n,node:null,column:e,colDef:e.colDef});n=this.rowNumberOverrides.valueFormatter(r)}return t.textContent=n,t}createRowNumbersColDef(){const{gos:e,contextMenuSvc:t}=this.beans,n=e.get("enableRtl");return{minWidth:60,width:60,resizable:!1,valueGetter:this.valueGetter,contextMenuItems:this.isIntegratedWithSelection||!t?void 0:()=>[],...this.rowNumberOverrides,colId:cye,chartDataType:"excluded",suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPinned:!0,pinned:n?"right":"left",lockPosition:n?"right":"left",editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,suppressSizeToFit:!0,suppressHeaderContextMenu:!0,suppressNavigable:!0,headerClass:this.getHeaderClass(),cellClass:this.getCellClass.bind(this),cellAriaRole:"rowheader"}}valueGetter(e){const t=e.node;if(t?.rowPinned&&t.pinnedSibling){const{rowIndex:n}=t.pinnedSibling;return`${n==null?"-":n+1}`}return String((t?.rowIndex||0)+1)}getHeaderClass(){const e=["ag-row-number-header"];return this.isIntegratedWithSelection&&e.push("ag-row-number-selection-enabled"),e}getCellClass(e){const{beans:t}=this,{rangeSvc:n,gos:r}=t,{node:i}=e,o=["ag-row-number-cell"],a=r.get("cellSelection");if(!n||!a)return o;this.isIntegratedWithSelection&&o.push("ag-row-number-selection-enabled");const s=n.getCellRanges();if(!s.length)return o;const l=this.beans.visibleCols.allCols.length-1,c=typeof a=="object"&&a.enableHeaderHighlight;for(const u of s)n.isRowInRange(i.rowIndex,i.rowPinned,u)&&(c&&o.push("ag-row-number-range-highlight"),u.columns.length===l&&o.push("ag-row-number-range-selected"));return o}generateRowNumberCols(){const{gos:e}=this;if(!e.get("rowNumbers"))return[];const t=this.createRowNumbersColDef(),n=t.colId;e.validateColDef(t,n,!0);const r=new g3(t,null,n,!1);return this.createBean(r),[r]}focusFirstRenderedCellAtRowPosition(e){const{beans:t,gos:n}=this,{visibleCols:r,colViewport:i}=t,o=n.get("enableRtl")?r.rightCols:r.leftCols;let a;if(o.length==1){const u=lp(t,e);if(!u)return;a=i.getColsWithinViewport(u)}else a=o;const s=a.find(u=>!p0(u));if(!s)return;const{rowPinned:l,rowIndex:c}=e;t.focusSvc.setFocusedCell({rowIndex:c,rowPinned:l,column:s,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}destroy(){Tb(this.beans,this.columns?.tree),this.rowNumberOverrides=null,super.destroy()}},DKt={moduleName:"RowNumbers",version:wi,beans:[PKt],dynamicBeans:{rowNumberRowResizer:RKt},dependsOn:[es,mrt,y3],css:[TKt]},kKt={tag:"div",cls:"ag-filter-toolpanel-search",role:"presentation",children:[{tag:"div",ref:"eExpand",cls:"ag-filter-toolpanel-expand"},{tag:"ag-input-text-field",ref:"eFilterTextField",cls:"ag-filter-toolpanel-search-input"}]},LKt=class extends Gt{constructor(){super(...arguments),this.eExpand=at,this.eFilterTextField=at}postConstruct(){this.setTemplate(kKt,[Vf]);const e=this.getLocaleTextFunc();this.eFilterTextField.setAutoComplete(!1).setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")).onValueChange(this.onSearchTextChanged.bind(this)),this.createExpandIcons(),this.setExpandState(0),this.addManagedElementListeners(this.eExpand,{click:this.onExpandClicked.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)})}init(e){this.params=e,this.beans.colModel.ready&&this.showOrHideOptions()}createExpandIcons(){const{eExpand:e,beans:t}=this;e.appendChild(this.eExpandChecked=er("accordionOpen",t)),e.appendChild(this.eExpandUnchecked=er("accordionClosed",t)),e.appendChild(this.eExpandIndeterminate=er("accordionIndeterminate",t))}showOrHideOptions(){const{params:e,eFilterTextField:t}=this,n=!e.suppressFilterSearch,r=!e.suppressExpandAll,i=this.getLocaleTextFunc();t.setInputPlaceholder(i("searchOoo","Search..."));const o=s=>s.getOriginalParent()&&s.isFilterAllowed(),a=this.beans.colModel.getCols().some(o);Nn(t.getGui(),n),Nn(this.eExpand,r&&a)}onSearchTextChanged(){this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=Ml(this,()=>this.dispatchLocalEvent({type:"searchChanged",searchText:this.eFilterTextField.getValue()}),300)),this.onSearchTextChangedDebounced()}onExpandClicked(){const e=this.currentExpandState===0?{type:"collapseAll"}:{type:"expandAll"};this.dispatchLocalEvent(e)}setExpandState(e){this.currentExpandState=e,Nn(this.eExpandChecked,e===0),Nn(this.eExpandUnchecked,e===1),Nn(this.eExpandIndeterminate,e===2)}},_Kt={selector:"AG-FILTERS-TOOL-PANEL-HEADER",component:LKt},NKt={tag:"div",cls:"ag-filter-toolpanel-instance",children:[{tag:"div",ref:"eFilterToolPanelHeader",cls:"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header",role:"button",attrs:{"aria-expanded":"false"},children:[{tag:"div",ref:"eExpand",cls:"ag-filter-toolpanel-expand"},{tag:"span",ref:"eFilterName",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilterIcon",cls:"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon",attrs:{"aria-hidden":"true"}}]},{tag:"div",ref:"agFilterToolPanelBody",cls:"ag-filter-toolpanel-instance-body ag-filter"}]},Tit=class extends Gt{constructor(e,t){super(NKt),this.hideHeader=e,this.expandedCallback=t,this.eFilterToolPanelHeader=at,this.eFilterName=at,this.agFilterToolPanelBody=at,this.eFilterIcon=at,this.eExpand=at,this.expanded=!1}postConstruct(){const{beans:e,eExpand:t}=this,n=er("accordionOpen",e);this.eExpandChecked=n;const r=er("accordionClosed",e);this.eExpandUnchecked=r,t.appendChild(n),t.appendChild(r)}setColumn(e){this.column=e;const{beans:t,eFilterToolPanelHeader:n,eFilterIcon:r,eExpandChecked:i,hideHeader:o}=this;this.eFilterName.innerText=t.colNames.getDisplayNameForColumn(e,"filterToolPanel",!1)||"",this.addManagedListeners(n,{click:this.toggleExpanded.bind(this),keydown:this.onKeyDown.bind(this)}),this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)}),this.addInIcon("filterActive",r,e),Nn(r,this.isFilterActive(),{skipAriaHidden:!0}),Nn(i,!1),o?(Nn(n,!1),n.removeAttribute("tabindex")):n.setAttribute("tabindex","0"),this.addManagedListeners(e,{filterChanged:this.onFilterChanged.bind(this)})}onKeyDown(e){const{key:t}=e,{ENTER:n,SPACE:r,LEFT:i,RIGHT:o}=Qe;t!==n&&t!==r&&t!==i&&t!==o||(e.preventDefault(),t===n||t===r?this.toggleExpanded():t===Qe.LEFT?this.collapse():this.expand())}getColumn(){return this.column}getColumnFilterName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"filterToolPanel",!1)}addCssClassToTitleBar(e){this.eFilterToolPanelHeader.classList.add(e)}addInIcon(e,t,n){if(t==null)return;const r=er(e,this.beans,n);t.appendChild(r)}isFilterActive(){return!!this.beans.filterManager?.isFilterActive(this.column)}onFilterChanged(){Nn(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),this.dispatchLocalEvent({type:"filterChanged"})}toggleExpanded(){this.expanded?this.collapse():this.expand()}expand(){this.expanded||(this.expanded=!0,d1(this.eFilterToolPanelHeader,!0),Nn(this.eExpandChecked,!0),Nn(this.eExpandUnchecked,!1),this.addFilterElement(),this.expandedCallback())}addFilterElement(e){const t=Nr({tag:"div",cls:"ag-filter-toolpanel-instance-filter"}),n=this.createManagedBean(new IK(this.column,"TOOLBAR"));this.filterWrapperComp=n,n.hasFilter()&&n.getFilter()?.then(r=>{this.underlyingFilter=r,r&&(t.appendChild(n.getGui()),this.agFilterToolPanelBody.appendChild(t),n.afterGuiAttached({container:"toolPanel",suppressFocus:e}))})}collapse(){if(!this.expanded)return;this.expanded=!1,d1(this.eFilterToolPanelHeader,!1),this.removeFilterElement(),Nn(this.eExpandChecked,!1),Nn(this.eExpandUnchecked,!0);const e=this.filterWrapperComp;e?.afterGuiDetached(),this.destroyBean(e),this.expandedCallback()}removeFilterElement(){Xi(this.agFilterToolPanelBody)}isExpanded(){return this.expanded}refreshFilter(e){if(!this.expanded)return;const t=this.underlyingFilter;t&&(e?typeof t.refreshVirtualList=="function"&&t.refreshVirtualList():t.afterGuiDetached?.())}onFilterOpened(e){e.source==="COLUMN_MENU"&&e.column===this.column&&this.expanded&&this.collapse()}},nC=class Eit extends Gt{constructor(t,n,r,i,o){super(),this.columnGroup=t,this.childFilterComps=n,this.expandedCallback=r,this.depth=i,this.showingColumn=o,this.filterGroupComp=at}postConstruct(){const t={cssIdentifier:"filter-toolpanel",direction:"vertical"};this.setTemplate({tag:"div",cls:"ag-filter-toolpanel-group-wrapper",children:[{tag:"ag-group-component",ref:"filterGroupComp"}]},[Qs],{filterGroupComp:t}),this.setGroupTitle();const{filterGroupComp:n,depth:r,childFilterComps:i,gos:o}=this;n.setAlignItems("stretch"),n.addCss(`ag-filter-toolpanel-group-level-${r}`),n.getGui().style.setProperty("--ag-indentation-level",String(r)),n.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${r}-header`),i.forEach(a=>{n.addItem(a),a.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${r+1}-header`),a.getGui().style.setProperty("--ag-indentation-level",String(r+1))}),this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"filterToolPanelColumnGroup",shouldDisplayTooltip:_K(o,()=>n.getGui().querySelector(".ag-group-title"))})),this.refreshFilterClass(),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip(),this.addInIcon("filterActive")}setupTooltip(){if(!this.showingColumn)return;const t=()=>{this.tooltipFeature?.setTooltipAndRefresh(this.columnGroup.getColDef().headerTooltip)};t(),this.addManagedEventListeners({newColumnsLoaded:t})}addCssClassToTitleBar(t){this.filterGroupComp.addCssClassToTitleBar(t)}refreshFilters(t){this.childFilterComps.forEach(n=>{n instanceof Eit?n.refreshFilters(t):n.refreshFilter(t)})}isColumnGroup(){return Es(this.columnGroup)}isExpanded(){return this.filterGroupComp.isExpanded()}getChildren(){return this.childFilterComps}getFilterGroupName(){return this.filterGroupName??""}getFilterGroupId(){return this.columnGroup.getId()}hideGroupItem(t,n){this.filterGroupComp.hideItem(t,n)}hideGroup(t){this.setDisplayed(!t)}addInIcon(t){const n=er(t,this.beans);n&&n.classList.add("ag-filter-toolpanel-group-instance-header-icon"),this.filterGroupComp.addTitleBarWidget(n)}forEachToolPanelFilterChild(t){this.childFilterComps.forEach(n=>{n instanceof Tit&&t(n)})}addExpandCollapseListeners(){const t=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(r=>r.expand()),n=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(r=>r.collapse());this.addManagedListeners(this.filterGroupComp,{expanded:t,collapsed:n})}getColumns(){return Es(this.columnGroup)?this.columnGroup.getLeafColumns():[this.columnGroup]}addFilterChangedListeners(){this.getColumns().forEach(t=>{this.addManagedListeners(t,{filterChanged:()=>this.refreshFilterClass()})}),Es(this.columnGroup)||this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)})}refreshFilterClass(){const t=this.getColumns(),n=()=>t.some(r=>r.isFilterActive());this.filterGroupComp.toggleCss("ag-has-filter",n())}onFilterOpened(t){t.source==="COLUMN_MENU"&&t.column===this.columnGroup&&this.isExpanded()&&this.collapse()}expand(){this.filterGroupComp.toggleGroupExpand(!0)}collapse(){this.filterGroupComp.toggleGroupExpand(!1)}setGroupTitle(){const t=this.columnGroup,n=Es(t)?this.getColumnGroupName(t):this.getColumnName(t);this.filterGroupName=n,this.filterGroupComp.setTitle(n||"")}getColumnGroupName(t){return this.beans.colNames.getDisplayNameForProvidedColumnGroup(null,t,"filterToolPanel")}getColumnName(t){return this.beans.colNames.getDisplayNameForColumn(t,"filterToolPanel",!1)}destroyFilters(){this.childFilterComps=this.destroyBeans(this.childFilterComps),Xi(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}},FKt=class extends Gt{constructor(){super({tag:"div",cls:"ag-filter-list-panel"}),this.initialised=!1,this.hasLoadedInitialState=!1,this.isInitialState=!1,this.filterGroupComps=[],this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending=!1}wireBeans(e){this.colModel=e.colModel}init(e){this.initialised=!0;const t=Gn(this.gos,{suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1});eu(t,e),this.params=t,t.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:()=>this.onColumnsChanged()}),this.addManagedEventListeners({newColumnsLoaded:()=>this.onColumnsChanged(),toolPanelVisibleChanged:n=>{n.key==="filters"&&this.refreshFilters(n.visible)},dragStarted:()=>{this.suppressOnColumnsChanged=!0},dragStopped:()=>{this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending&&(this.onColumnsChangedPending=!1,this.onColumnsChanged())}}),this.colModel.ready&&this.onColumnsChanged()}onColumnsChanged(){if(this.suppressOnColumnsChanged){this.onColumnsChangedPending=!0;return}const e=this.colModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs(),this.refreshAriaLabel()}syncFilterLayout(){Urt(this.colModel,this.setFiltersLayout.bind(this)),this.refreshAriaLabel()}buildTreeFromProvidedColumnDefs(){const e=this.colModel.getColDefColTree();this.recreateFilters(e)}setFiltersLayout(e){const t=$rt(this.colModel,e);this.recreateFilters(t)}recreateFilters(e){const t=$i(this.beans);this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!this.params.initialState);const n=this.getExpansionState();this.destroyFilters();const r=this.recursivelyAddComps(e,0,n);this.filterGroupComps=r;const i=r.length;i&&(r.forEach(a=>this.appendChild(a)),this.setFirstAndLastVisible(0,i-1));const o=this.searchFilterText;Ut(o)&&this.searchFilters(o),this.fireExpandedEvent(),this.getGui().contains(t)&&t.focus(),this.isInitialState=!1,this.refreshAriaLabel()}recursivelyAddComps(e,t,n){return e.map(r=>{if(Es(r))return this.recursivelyAddFilterGroupComps(r,t,n)?.flatMap(l=>l)??[];const i=r;if(!this.shouldDisplayFilter(i))return[];const o=t===0,a=new Tit(o,()=>this.onFilterExpanded());if(this.createBean(a),a.setColumn(i),n.get(i.getId())&&a.expand(),t>0)return a;const s=this.createBean(new nC(i,[a],this.onGroupExpanded.bind(this),t,!0));return s.addCssClassToTitleBar("ag-filter-toolpanel-header"),n.get(s.getFilterGroupId())||s.collapse(),s}).flatMap(r=>r)}refreshAriaLabel(){const e=this.getLocaleTextFunc(),t=e("ariaFilterPanelList","Filter List"),n=e("filters","Filters"),l=this.getGui().querySelectorAll(".ag-filter-toolpanel-group-item:not(.ag-filter-toolpanel-group-wrapper, .ag-hidden)").length;Is(this.getAriaElement(),`${t} ${l} ${n}`)}recursivelyAddFilterGroupComps(e,t,n){if(!this.filtersExistInChildren(e.getChildren()))return;const r=e.getColGroupDef();if(r&&r.suppressFiltersToolPanel)return[];const i=e.isPadding()?t:t+1,o=this.recursivelyAddComps(e.getChildren(),i,n).flatMap(l=>l);if(e.isPadding())return o;const a=new nC(e,o,this.onGroupExpanded.bind(this),t,!1);this.createBean(a),a.addCssClassToTitleBar("ag-filter-toolpanel-header");const s=n.get(a.getFilterGroupId());return(this.isInitialState&&!s||s===!1)&&a.collapse(),[a]}filtersExistInChildren(e){return e.some(t=>Es(t)?this.filtersExistInChildren(t.getChildren()):this.shouldDisplayFilter(t))}shouldDisplayFilter(e){const t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t}getExpansionState(){const e=new Map;if(this.isInitialState){const{expandedColIds:n,expandedGroupIds:r}=this.params.initialState;return n.forEach(i=>e.set(i,!0)),r.forEach(i=>e.set(i,!0)),e}const t=n=>{e.set(n.getFilterGroupId(),n.isExpanded()),n.getChildren().forEach(r=>{r instanceof nC?t(r):e.set(r.getColumn().getId(),r.isExpanded())})};return this.filterGroupComps.forEach(t),e}refresh(){}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}expandFilterGroups(e,t){const n=[],r=i=>{const o=i.getFilterGroupId();(!t||t.includes(o))&&(e&&i.isColumnGroup()?i.expand():i.collapse(),n.push(o)),i.getChildren().forEach(s=>{s instanceof nC&&r(s)})};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){const i=t.filter(o=>n.indexOf(o)<0);i.length>0&&ut(166,{unrecognisedGroupIds:i})}}expandFilters(e,t){const n=[],r=i=>{if(i instanceof nC){let s=!1;return i.getChildren().forEach(l=>{r(l)&&(e?(i.expand(),s=!0):i.isColumnGroup()||i.collapse())}),s}const o=i.getColumn().getColId(),a=!t||t.includes(o);return a&&(e?i.expand():i.collapse(),n.push(o)),a};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){const i=t.filter(o=>n.indexOf(o)<0);i.length>0&&ut(167,{unrecognisedColIds:i})}}onGroupExpanded(){this.fireExpandedEvent()}onFilterExpanded(){this.dispatchLocalEvent({type:"filterExpanded"})}fireExpandedEvent(){let e=0,t=0;const n=i=>{i.isColumnGroup()&&(i.isExpanded()?e++:t++,i.getChildren().forEach(o=>{o instanceof nC&&n(o)}))};this.filterGroupComps.forEach(n);let r;e>0&&t>0?r=2:t>0?r=1:r=0,this.dispatchLocalEvent({type:"groupExpanded",state:r})}performFilterSearch(e){this.searchFilterText=Ut(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)}searchFilters(e){const t=o=>!Ut(e)||o.toLowerCase().indexOf(e)!==-1,n=(o,a)=>{if(!(o instanceof nC))return t(o.getColumnFilterName()||"");const s=o.getChildren(),l=t(o.getFilterGroupName()),c=a||l;if(c){o.hideGroup(!1);for(let d=0;d<s.length;d++)n(s[d],c),o.hideGroupItem(!1,d);return!0}let u=!1;return s.forEach((d,p)=>{const h=n(d,a);o.hideGroupItem(!h,p),h&&(u=!0)}),o.hideGroup(!u),u};let r,i;this.filterGroupComps.forEach((o,a)=>{n(o,!1);const s=o.getGui()?.classList.contains("ag-hidden");r===void 0?s||(r=a,i=a):!s&&i!==a&&(i=a)}),this.setFirstAndLastVisible(r,i),this.refreshAriaLabel()}setFirstAndLastVisible(e,t){this.filterGroupComps.forEach((n,r)=>{n.removeCss("ag-first-group-visible"),n.removeCss("ag-last-group-visible"),r===e&&n.addCss("ag-first-group-visible"),r===t&&n.addCss("ag-last-group-visible")})}refreshFilters(e){this.filterGroupComps.forEach(t=>t.refreshFilters(e))}getExpandedFiltersAndGroups(){const e=[],t=new Set,n=r=>{if(r instanceof nC){r.getChildren().forEach(o=>n(o));const i=r.getFilterGroupId();r.isExpanded()&&!t.has(i)&&e.push(i)}else r.isExpanded()&&t.add(r.getColumn().getColId())};return this.filterGroupComps.forEach(n),{expandedGroupIds:e,expandedColIds:Array.from(t)}}destroyFilters(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),Xi(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}},WKt={selector:"AG-FILTERS-TOOL-PANEL-LIST",component:FKt},qKt=".ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{align-items:center;color:var(--ag-header-text-color);display:flex;font-weight:var(--ag-header-font-weight);padding:0 var(--ag-spacing);>*{align-items:center;display:flex}}.ag-filter-toolpanel-header{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing);position:relative;&:focus-visible{border-radius:var(--ag-border-radius);box-shadow:inset var(--ag-focus-shadow)}}:where(.ag-ltr) .ag-filter-toolpanel-group-instance-header-icon,:where(.ag-ltr) .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-group-instance-header-icon,:where(.ag-rtl) .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-spacing)}.ag-filter-toolpanel-search{min-height:var(--ag-header-height);padding-bottom:var(--ag-spacing);padding-top:var(--ag-widget-container-vertical-padding)}:where(.ag-filter-toolpanel-group:not(.ag-has-filter)>.ag-group-title-bar) .ag-filter-toolpanel-group-instance-header-icon{display:none}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-spacing)*4)}:where(.ag-ltr) .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-spacing)}.ag-filter-toolpanel-expand{cursor:pointer}:where(.ag-ltr) .ag-filter-toolpanel-expand{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-expand{margin-left:var(--ag-spacing)}:where(.ag-ltr) .ag-filter-toolpanel-group-title-bar,:where(.ag-ltr) .ag-filter-toolpanel-instance-header{padding-left:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-filter-toolpanel-group-title-bar,:where(.ag-rtl) .ag-filter-toolpanel-instance-header{padding-right:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}:where(.ag-ltr) .ag-filter-toolpanel-instance-body{margin-left:var(--ag-filter-tool-panel-group-indent)}:where(.ag-rtl) .ag-filter-toolpanel-instance-body{margin-right:var(--ag-filter-tool-panel-group-indent)}.ag-filter-toolpanel-instance-filter{background-color:var(--ag-chrome-background-color)}.ag-filter-toolpanel-group-level-0{border-top:none}",BKt={tag:"div",cls:"ag-filter-toolpanel",children:[{tag:"ag-filters-tool-panel-header",ref:"filtersToolPanelHeaderPanel"},{tag:"ag-filters-tool-panel-list",ref:"filtersToolPanelListPanel"}]},jKt=class extends Gt{constructor(){super(BKt,[_Kt,WKt]),this.filtersToolPanelHeaderPanel=at,this.filtersToolPanelListPanel=at,this.initialised=!1,this.listenerDestroyFuncs=[],this.registerCSS(qKt)}init(e){this.initialised&&(this.listenerDestroyFuncs.forEach(s=>s()),this.listenerDestroyFuncs=[]),this.initialised=!0;const n={...Gn(this.gos,{suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1}),...e};this.params=n;const{filtersToolPanelHeaderPanel:r,filtersToolPanelListPanel:i}=this;r.init(n),i.init(n);const o=n.suppressExpandAll,a=n.suppressFilterSearch;o&&a&&r.setDisplayed(!1),this.listenerDestroyFuncs.push(...this.addManagedListeners(r,{expandAll:()=>i.expandFilterGroups(!0),collapseAll:()=>i.expandFilterGroups(!1),searchChanged:s=>i.performFilterSearch(s.searchText)}),...this.addManagedListeners(i,{filterExpanded:n.onStateUpdated,groupExpanded:s=>{r.setExpandState(s.state),n.onStateUpdated()}}))}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}setFilterLayout(e){this.filtersToolPanelListPanel.setFiltersLayout(e)}expandFilterGroups(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)}collapseFilterGroups(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)}expandFilters(e){this.filtersToolPanelListPanel.expandFilters(!0,e)}collapseFilters(e){this.filtersToolPanelListPanel.expandFilters(!1,e)}syncLayoutWithGrid(){this.filtersToolPanelListPanel.syncFilterLayout()}refresh(e){return this.init(e),!0}getState(){return this.filtersToolPanelListPanel.getExpandedFiltersAndGroups()}},HKt={moduleName:"FiltersToolPanel",version:wi,userComponents:{agFiltersToolPanel:jKt},icons:{filtersToolPanel:"filter"},dependsOn:[Zye,es,xw]},Rit=class extends dt{constructor(){super(...arguments),this.loadRowDataVersion=0}wireBeans(e){this.environment=e.environment}init(e,t){this.params=t,this.comp=e,t.pinned==null&&(this.setAutoHeightClasses(),this.setupRefreshStrategy(),this.createDetailGrid(),this.loadRowData(),this.addManagedEventListeners({fullWidthRowFocused:this.onFullWidthRowFocused.bind(this)}))}onFullWidthRowFocused(e){const t=this.params,n={rowIndex:t.node.rowIndex,rowPinned:t.node.rowPinned},r={rowIndex:e.rowIndex,rowPinned:e.rowPinned};Uc(n,r)&&zu(this.comp.getGui(),e.fromBelow)}setAutoHeightClasses(){const e=this.gos.get("detailRowAutoHeight"),t=e?"ag-details-row-auto-height":"ag-details-row-fixed-height",n=e?"ag-details-grid-auto-height":"ag-details-grid-fixed-height",r=this.comp;r.toggleCss(t,!0),r.toggleDetailGridCss(n,!0)}setupRefreshStrategy(){const e=this.params.refreshStrategy;if(e=="everything"||e=="nothing"||e=="rows"){this.refreshStrategy=e;return}e!=null&&ut(170,{providedStrategy:e}),this.refreshStrategy="rows"}createDetailGrid(){const{params:e,gos:t}=this;if(Yi(e.detailGridOptions)){ut(171);return}const n=t.get("theme"),r=e.detailGridOptions.theme;r&&r!==n&&ut(267);const i={themeStyleContainer:this.environment.eStyleContainer,...e.detailGridOptions,theme:n};t.get("detailRowAutoHeight")&&(i.domLayout="autoHeight"),this.comp.setDetailGrid(i)}registerDetailWithMaster(e){const{params:t,beans:{selectionSvc:n,findSvc:r}}=this,i=t.node.id,o=t.api,a={id:i,api:e},s=t.node;if(o.isDestroyed())return;o.addDetailGridInfo(i,a),s.detailGridInfo=a;const l=s.parent;r?.registerDetailGrid(s,e);function c(){l&&n?.refreshMasterNodeState(l)}function u({node:d,source:p}){d!==l||p==="masterDetail"||e.isDestroyed()||n?.setDetailSelectionState(l,t.detailGridOptions,e)}e.addEventListener("firstDataRendered",()=>{e.isDestroyed()||o.isDestroyed()||(n?.setDetailSelectionState(l,t.detailGridOptions,e),e.addEventListener("selectionChanged",c),o.addEventListener("rowSelected",u))}),this.addDestroyFunc(()=>{s.detailGridInfo===a&&(o.isDestroyed()||o.removeDetailGridInfo(i),s.detailGridInfo=null)})}loadRowData(){this.loadRowDataVersion++;const e=this.loadRowDataVersion,t=this.params;if(t.detailGridOptions?.rowModelType==="serverSide"){t.node.detailGridInfo?.api?.refreshServerSide({purge:!0});return}const n=t.getDetailRowData;if(!n){ut(172);return}const r=o=>{this.loadRowDataVersion===e&&this.comp.setRowData(o)},i={node:t.node,data:t.node.data,successCallback:r,context:Gn(this.gos,{}).context};n(i)}refresh(){switch(this.refreshStrategy){case"nothing":return!0;case"everything":return!1}return this.loadRowData(),!0}},VKt=class{constructor(e){this.parentWrapper=e}wrap(e,t,n,r){return this.parentWrapper.wrap(e,t,n,r)}},GKt={tag:"div",cls:"ag-details-row"},$Kt={tag:"div",cls:"ag-details-row",role:"gridcell",children:[{tag:"div",ref:"eDetailGrid",cls:"ag-details-grid",role:"presentation"}]},UKt=class extends Gt{constructor(){super(...arguments),this.eDetailGrid=at}wireBeans(t){this.context=t.context}init(t){this.params=t,this.selectAndSetTemplate();const n={toggleCss:(r,i)=>this.toggleCss(r,i),toggleDetailGridCss:(r,i)=>this.eDetailGrid.classList.toggle(r,i),setDetailGrid:r=>this.setDetailGrid(r),setRowData:r=>this.setRowData(r),getGui:()=>this.eDetailGrid};this.ctrl=this.createManagedBean(new Rit),this.ctrl.init(n,t)}refresh(){return this.ctrl?.refresh()??!1}selectAndSetTemplate(){const t=this.params;if(t.pinned){this.setTemplate(GKt);return}const n=()=>{this.setTemplate($Kt)};if(Yi(t.template))n();else if(typeof t.template=="string")this.setTemplate(t.template,[]);else if(typeof t.template=="function"){const r=t.template,i=r(t);this.setTemplate(i,[])}else ut(168),n();this.eDetailGrid==null&&ut(169)}setDetailGrid(t){if(!this.eDetailGrid)return;const n=this.context.getBean("frameworkCompWrapper"),r=new VKt(n),{frameworkOverrides:i}=this.beans,o=w6t(this.eDetailGrid,t,{frameworkOverrides:i,providedBeanInstances:{frameworkCompWrapper:r},modules:ctt(this.params.api.getGridId(),t.rowModelType??"clientSide")});this.detailApi=o,this.ctrl?.registerDetailWithMaster(o),this.addDestroyFunc(()=>{o.destroy()})}setRowData(t){this.detailApi?.setGridOption("rowData",t)}};function UK(e,t){const n=e.masterDetailSvc?.store;return n?t(n):void 0}function XKt(e,t,n){UK(e,r=>{r[t]=n})}function YKt(e,t){UK(e,n=>{delete n[t]})}function KKt(e,t){return UK(e,n=>n[t])}function QKt(e,t){UK(e,n=>{let r=0;Object.values(n).forEach(i=>{i&&t(i,r++)})})}var ZKt=".ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}",JKt=class extends dt{constructor(){super(...arguments),this.beanName="masterDetailSvc",this.store={}}isEnabled(){const e=this.gos;return e.get("masterDetail")&&!e.get("treeData")}postConstruct(){sa(this.gos)&&(this.enabled=this.isEnabled(),this.addManagedEventListeners({beforeRefreshModel:this.beforeRefreshModel.bind(this)}))}beforeRefreshModel({params:e}){if(e.changedProps){const t=this.isEnabled();if(this.enabled!==t){this.setMasters(null);return}}e.rowDataUpdated&&this.setMasters(e.changedRowNodes)}setMasters(e){const t=this.isEnabled();this.enabled=t;const n=this.gos,r=n.get("isRowMaster"),i=n.get("groupDefaultExpanded"),o=(a,s,l)=>{const c=a.master;let u=t;if(t)if(s||l){if(r){const d=a.data;u=!!d&&!!r(d)}}else u=c;if(u&&s)if(i===-1)a.expanded=!0;else{const d=this.beans.rowGroupColsSvc?.columns.length??0;a.expanded=d<i}else!u&&c&&(a.expanded=!1);u!==c&&(a.master=u,a.dispatchRowEvent("masterChanged"))};if(e){for(const a of e.updates)o(a,!1,!0);for(const a of e.adds)o(a,!0,!1)}else{const a=Pm(this.beans)?.rootNode?.allLeafChildren;if(a)for(let s=0,l=a.length;s<l;++s)o(a[s],!0,!1)}}getDetail(e){if(!e.master||!e.expanded)return null;let t=e.detailNode;return t||(t=new vp(this.beans),t.detail=!0,t.selectable=!1,t.parent=e,Ut(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t)}setupDetailRowAutoHeight(e,t){const{gos:n,beans:r}=this;if(!n.get("detailRowAutoHeight"))return;const i=()=>{const a=t.clientHeight;if(a!=null&&a>0){const s=()=>{const{rowModel:l}=this.beans,{rowNode:c}=e;c.setRowHeight(a),(sa(n)||Au(n))&&l.onRowHeightChanged()};window.setTimeout(s,0)}},o=Hf(r,t,i);e.addDestroyFunc(o),i()}destroy(){this.store={},super.destroy()}},eQt={moduleName:"SharedMasterDetail",version:wi,beans:[JKt],userComponents:{agDetailCellRenderer:UKt},dynamicBeans:{detailCellRendererCtrl:Rit},apiFunctions:{addDetailGridInfo:XKt,removeDetailGridInfo:YKt,getDetailGridInfo:KKt,forEachDetailGridInfo:QKt},dependsOn:[es,wit,rMe],css:[ZKt]},tQt={moduleName:"MasterDetail",version:wi,dependsOn:[eQt,$K,vrt]},Iit=class extends Gt{constructor(){super(...arguments),this.changedCalculatedValues=!1,this.dragging=!1,this.shouldDestroyOnEndDragging=!1}postConstruct(){const{dragSvc:e,rangeSvc:t}=this.beans;e.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:n=>{this.dragging=!0,t.autoScrollService.check(n),this.changedCalculatedValues&&(this.onDrag(n),this.changedCalculatedValues=!1)},onDragStop:n=>{this.dragging=!1,this.onDragEnd(n),this.clearDragProperties(),this.shouldDestroyOnEndDragging&&this.destroy()},onDragCancel:()=>{this.dragging=!1,this.onDragCancel(),this.clearDragProperties()}}),this.addManagedElementListeners(this.getGui(),{mousedown:this.preventRangeExtension.bind(this)})}getLastCellHovered(){return this.lastCellHovered}preventRangeExtension(e){e.stopPropagation()}onDragStart(e){[this.cellHoverListener]=this.addManagedElementListeners(this.beans.ctrlsSvc.get("gridCtrl").getGui(),{mousemove:this.updateValuesOnMove.bind(this)}),document.body.classList.add(this.getDraggingCssClass())}getDraggingCssClass(){return`ag-dragging-${this.type===0?"fill":"range"}-handle`}updateValuesOnMove(e){const t=btt(this.gos,e);!t||this.shouldSkipCell(t)||this.lastCellHovered&&y6(t,this.lastCellHovered)||(this.lastCellHovered=t,this.changedCalculatedValues=!0)}clearDragProperties(){this.clearValues(),this.beans.rangeSvc.autoScrollService.ensureCleared(),document.body.classList.remove(this.getDraggingCssClass())}getType(){return this.type}refresh(e){const t=this.cellCtrl,n=this.getGui(),r=zr(this.beans.rangeSvc.getCellRanges()),i=r.startRow,o=r.endRow;if(i&&o&&(t0(o,i)?(this.rangeStartRow=o,this.rangeEndRow=i):(this.rangeStartRow=i,this.rangeEndRow=o)),t!==e||!x0(n)){this.cellCtrl=e;const a=e.comp.getParentOfValue();a&&a.appendChild(n)}this.cellRange=r}clearValues(){this.lastCellHovered=void 0,this.removeListeners()}removeListeners(){const e=this.cellHoverListener;e&&(e(),this.cellHoverListener=void 0)}destroy(){if(!this.shouldDestroyOnEndDragging&&this.dragging){Nn(this.getGui(),!1),this.shouldDestroyOnEndDragging=!0;return}this.shouldDestroyOnEndDragging=!1,super.destroy(),this.removeListeners();const e=this.getGui();e.parentElement?.removeChild(e)}};function nQt(e){const t=e.length;let n=0;if(t<=1)return e;for(let d=0;d<e.length;d++){const p=e[d],h=p.toString().split("e-");if(h.length>1){n=Math.max(n,parseInt(h[1],10));continue}Math.floor(p)!==p&&(n=Math.max(n,p.toString().split(".")[1].length))}let r=0,i=0,o=0,a=0,s=0;for(let d=0;d<t;d++)s=e[d],r+=d,i+=s,a+=d*d,o+=d*s;const l=(t*o-r*i)/(t*a-r*r),c=i/t-l*r/t,u=[];for(let d=0;d<=t;d++)u.push(parseFloat((d*l+c).toFixed(n)));return u}var rQt={tag:"div",cls:"ag-fill-handle"},iQt=class extends Iit{constructor(){super(rQt),this.markedCells=[],this.cellValues=[],this.isUp=!1,this.isLeft=!1,this.isReduce=!1,this.type=0}updateValuesOnMove(e){super.updateValuesOnMove(e),this.initialXY||(this.initialXY=k$(this.beans,e));const{x:t,y:n}=this.initialXY,{x:r,y:i}=k$(this.beans,e),o=Math.abs(t-r),a=Math.abs(n-i),s=this.getFillHandleDirection();let l;s==="xy"?l=o>a?"x":"y":l=s,l!==this.dragAxis&&(this.dragAxis=l,this.changedCalculatedValues=!0)}shouldSkipCell(e){return p0(e.column)}onDrag(e){if(!this.initialPosition){const n=this.cellCtrl;if(!n)return;this.initialPosition=n.cellPosition}const t=this.getLastCellHovered();t&&this.markPathFrom(this.initialPosition,t)}onDragEnd(e){if(this.initialXY=null,!this.markedCells.length)return;const t=this.dragAxis==="x",{cellRange:n,rangeStartRow:r,rangeEndRow:i,beans:o}=this,a=n.columns.length;let s;const{rangeSvc:l,eventSvc:c}=o;if(!this.isUp&&!this.isLeft)s=l.createCellRangeFromCellRangeParams({rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,columnStart:n.columns[0],rowEndIndex:t?i.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:t?i.rowPinned:this.lastCellMarked.rowPinned,columnEnd:t?this.lastCellMarked.column:n.columns[a-1]});else{const u=t?r:this.lastCellMarked;s=l.createCellRangeFromCellRangeParams({rowStartIndex:u.rowIndex,rowStartPinned:u.rowPinned,columnStart:t?this.lastCellMarked.column:n.columns[0],rowEndIndex:i.rowIndex,rowEndPinned:i.rowPinned,columnEnd:n.columns[a-1]})}s&&(c.dispatchEvent({type:"fillStart"}),this.handleValueChanged(n,s,e),l.setCellRanges([s]),c.dispatchEvent({type:"fillEnd",initialRange:n,finalRange:s}))}onDragCancel(){this.initialXY=null,this.markedCells.length&&this.clearMarkedPath()}getFillHandleDirection(){const e=Zne(this.gos)?.direction;return e?e!=="x"&&e!=="y"&&e!=="xy"?(ut(177),"xy"):e:"xy"}handleValueChanged(e,t,n){const{beans:r}=this,{rangeSvc:i,gos:o,valueSvc:a}=r,s=i.getRangeEndRow(e),l=i.getRangeStartRow(e),c=i.getRangeEndRow(t),u=i.getRangeStartRow(t),d=this.dragAxis==="y";if(this.isReduce&&!Zne(o)?.suppressClearOnFillReduction){const w=d?e.columns:e.columns.filter(A=>t.columns.indexOf(A)<0),S=d?Gp(r,c):u;S&&this.clearCellsInRange(S,s,w);return}const p=[],h=[],g=[],m=[];let b=!0,y=0;const M=()=>{p.length=0,h.length=0,g.length=0,m.length=0,y=0},C=(w,S)=>{let A=this.isUp?s:l,z=!1;for(d&&(b=!0,M());!z&&A;){const O=lp(r,A);if(!O)break;d&&w?x(p,w,O,()=>!Uc(A,this.isUp?l:s)):S&&(b=!0,M(),S.forEach(T=>x(p,T,O,()=>T!==(this.isLeft?e.columns[0]:zr(e.columns))))),z=Uc(A,this.isUp?u:c),A=this.isUp?Ax(this.beans,A):Gp(r,A)}},x=(w,S,A,z)=>{let O,T=!1;if(b)O=a.getValue(S,A),h.push(O),g.push(a.getValue(S,A,!0)),m.push(a.formatValue(S,A,O)),b=z();else{const{value:R,fromUserFunction:P,sourceCol:F,sourceRowNode:N}=this.processValues({event:n,values:w,initialValues:h,initialNonAggregatedValues:g,initialFormattedValues:m,col:S,rowNode:A,idx:y++});if(O=R,S.isCellEditable(A)){const L=a.getValue(S,A);if(!P){if(F){const W=F.getColDef();if(W.useValueFormatterForExport!==!1&&W.valueFormatter){const j=a.formatValue(F,N,O);j!=null&&(O=j)}}S.getColDef().useValueParserForImport!==!1&&(O=a.parseValue(S,A,F?O:ap(O),L))}!P||L!==O?A.setDataValue(S,O,"rangeSvc"):T=!0}}T||w.push({value:O,column:S,rowNode:A})};if(d)e.columns.forEach(w=>{C(w)});else{const w=this.isLeft?[...t.columns].reverse():t.columns;C(void 0,w)}}clearCellsInRange(e,t,n){const r={startRow:e,endRow:t,columns:n,startColumn:n[0]};this.beans.rangeSvc.clearCellRangeCellValues({cellRanges:[r]})}processValues(e){const{event:t,values:n,initialValues:r,initialNonAggregatedValues:i,initialFormattedValues:o,col:a,rowNode:s,idx:l}=e,c=Zne(this.gos)?.setFillValue,u=this.dragAxis==="y";let d;if(u?d=this.isUp?"up":"down":d=this.isLeft?"left":"right",c){const h=Gn(this.gos,{event:t,values:n.map(({value:m})=>m),initialValues:r,initialNonAggregatedValues:i,initialFormattedValues:o,currentIndex:l,currentCellValue:this.beans.valueSvc.getValue(a,s),direction:d,column:a,rowNode:s}),g=c(h);if(g!==!1)return{value:g,fromUserFunction:!0}}const p=!n.some(({value:h})=>{const g=parseFloat(h);return isNaN(g)||g.toString()!==h.toString()});if(t.altKey||!p){if(p&&r.length===1){const b=this.isUp||this.isLeft?-1:1;return{value:parseFloat(zr(n).value)+1*b,fromUserFunction:!1}}const{value:h,column:g,rowNode:m}=n[l%n.length];return{value:h,fromUserFunction:!1,sourceCol:g,sourceRowNode:m}}return{value:zr(nQt(n.map(({value:h})=>Number(h)))),fromUserFunction:!1}}clearValues(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,super.clearValues()}clearMarkedPath(){this.markedCells.forEach(e=>{if(!e.isAlive())return;const{comp:t}=e;t.toggleCss("ag-selection-fill-top",!1),t.toggleCss("ag-selection-fill-right",!1),t.toggleCss("ag-selection-fill-bottom",!1),t.toggleCss("ag-selection-fill-left",!1)}),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1}clearCellValues(){this.cellValues.length=0}markPathFrom(e,t){if(this.clearMarkedPath(),this.clearCellValues(),this.dragAxis==="y"){if(Uc(t,e))return;const n=t0(t,e),{rangeStartRow:r,rangeEndRow:i}=this;n&&(t.rowPinned==r.rowPinned&&t.rowIndex>=r.rowIndex||r.rowPinned!=i.rowPinned&&t.rowPinned==i.rowPinned&&t.rowIndex<=i.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,n),this.isReduce=!1)}else{const n=e.column,r=t.column;if(n===r)return;const i=this.beans.visibleCols.allCols,o=i.indexOf(n),a=i.indexOf(r);a<=o&&a>=i.indexOf(this.cellRange.columns[0])?(this.reduceHorizontal(e,t),this.isReduce=!0):(this.extendHorizontal(e,t,a<o),this.isReduce=!1)}this.lastCellMarked=t}extendVertical(e,t,n){const r=this.beans,{rangeSvc:i}=r;let o=e;do{const a=this.cellRange,s=a.columns.length;for(let l=0;l<s;l++){const c=a.columns[l],d={...{rowIndex:o.rowIndex,rowPinned:o.rowPinned},column:c},p=i.isCellInSpecificRange(d,a),h=Uc(o,e);if(n&&(this.isUp=!0),!h){const g=Qv(r,d);if(g){this.markedCells.push(g);const m=g.comp;p||(m.toggleCss("ag-selection-fill-left",l===0),m.toggleCss("ag-selection-fill-right",l===s-1)),m.toggleCss(n?"ag-selection-fill-top":"ag-selection-fill-bottom",Uc(o,t))}}}if(Uc(o,t))break}while(o=n?Ax(this.beans,o):Gp(r,o))}reduceVertical(e,t){let n=e;const r=this.beans;do{const i=this.cellRange,o=i.columns.length,a=Uc(n,t);for(let s=0;s<o;s++){const c={...{rowIndex:n.rowIndex,rowPinned:n.rowPinned},column:i.columns[s]},u=Qv(r,c);u&&(this.markedCells.push(u),u.comp.toggleCss("ag-selection-fill-bottom",Uc(n,t)))}if(a)break}while(n=Ax(r,n))}extendHorizontal(e,t,n){const r=this.beans,{visibleCols:i}=r,o=i.allCols,a=o.indexOf(n?t.column:e.column),s=o.indexOf(n?this.cellRange.columns[0]:t.column),l=n?0:1,c=o.slice(a+l,s+l),{rangeStartRow:u,rangeEndRow:d}=this;c.forEach(p=>{let h=u,g=!1;do{g=Uc(h,d);const m=Qv(r,{rowIndex:h.rowIndex,rowPinned:h.rowPinned,column:p});if(m){this.markedCells.push(m);const b=m.comp;b.toggleCss("ag-selection-fill-top",Uc(h,u)),b.toggleCss("ag-selection-fill-bottom",Uc(h,d)),n?(this.isLeft=!0,b.toggleCss("ag-selection-fill-left",p===c[0])):b.toggleCss("ag-selection-fill-right",p===zr(c))}h=Gp(r,h)}while(!g)})}reduceHorizontal(e,t){const n=this.beans,{visibleCols:r}=n,i=r.allCols,o=i.indexOf(t.column),a=i.indexOf(e.column),s=i.slice(o,a),{rangeStartRow:l,rangeEndRow:c}=this;s.forEach(u=>{let d=l,p=!1;do{p=Uc(d,c);const h=Qv(this.beans,{rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:u});h&&(this.markedCells.push(h),h.comp.toggleCss("ag-selection-fill-right",u===s[0])),d=Gp(n,d)}while(!p)})}refresh(e){const t=this.beans.rangeSvc.getCellRanges()[0];if(!t.startRow||!t.endRow){this.destroy();return}super.refresh(e)}},oQt=class extends Iit{constructor(){super({tag:"div",cls:"ag-range-handle"}),this.type=1,this.rangeFixed=!1}onDrag(e){const t=this.getLastCellHovered();if(!t)return;const n=this.beans.rangeSvc,r=n.getCellRanges(),i=zr(r);this.rangeFixed||(this.fixRangeStartEnd(i),this.rangeFixed=!0),this.endPosition={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column},r.length===2&&r[0].type===hf.DIMENSION&&i.type===hf.VALUE&&!Uc(this.endPosition,n.getRangeEndRow(i))&&n.updateRangeEnd(r[0],{...this.endPosition,column:r[0].columns[0]},!0),n.extendLatestRangeToCell(this.endPosition)}shouldSkipCell(e){return!1}onDragEnd(e){const t=zr(this.beans.rangeSvc.getCellRanges());this.fixRangeStartEnd(t),this.rangeFixed=!1}onDragCancel(){this.rangeFixed=!1}fixRangeStartEnd(e){const t=this.beans.rangeSvc,n=t.getRangeStartRow(e),r=t.getRangeEndRow(e),i=e.columns[0];e.startRow=n,e.endRow=r,e.startColumn=i}},aQt=".ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing),.ag-cell-range-selected.ag-cell-range-chart,.ag-cell-range-selected:not(.ag-cell-focus){background-color:var(--ag-range-selection-background-color);&.ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important;&.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}}}.ag-cell-range-selected-1.ag-cell-range-chart,.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2.ag-cell-range-chart,.ag-cell-range-selected-2:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-3.ag-cell-range-chart,.ag-cell-range-selected-3:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-4.ag-cell-range-chart,.ag-cell-range-selected-4:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell){&.ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}&.ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}&.ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}&.ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}:where(.ag-ltr) .ag-cell.ag-selection-fill-right,:where(.ag-ltr) .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}:where(.ag-rtl) .ag-cell.ag-selection-fill-right,:where(.ag-rtl) .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}:where(.ag-ltr) .ag-cell.ag-selection-fill-left,:where(.ag-ltr) .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}:where(.ag-rtl) .ag-cell.ag-selection-fill-left,:where(.ag-rtl) .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{background-color:var(--ag-range-selection-border-color);bottom:-1px;height:6px;position:absolute;width:6px}:where(.ag-ltr) .ag-fill-handle,:where(.ag-ltr) .ag-range-handle{right:-1px}:where(.ag-rtl) .ag-fill-handle,:where(.ag-rtl) .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}:where(.ag-ltr) .ag-range-handle{cursor:nwse-resize}:where(.ag-rtl) .ag-range-handle{cursor:nesw-resize}";function sQt(e){return e.rangeSvc?.getCellRanges()??null}function lQt(e,t){e.rangeSvc?.addCellRange(t)}function WRe(e){e.rangeSvc?.removeAllCellRanges()}var n4="ag-cell-range-selected",cQt="ag-cell-range-chart",uQt="ag-cell-range-single-cell",dQt="ag-cell-range-chart-category",pQt="ag-cell-range-handle",hQt="ag-cell-range-top",fQt="ag-cell-range-right",gQt="ag-cell-range-bottom",mQt="ag-cell-range-left";function vQt(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t.handle?.mode==="range":!1:e.get("enableRangeHandle")}function qRe(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t.handle?.mode==="fill":!1:e.get("enableFillHandle")}var bQt=class{constructor(e,t){this.beans=e,this.cellCtrl=t,this.rangeSvc=e.rangeSvc}setComp(e){this.cellComp=e,this.eGui=this.cellCtrl.eGui,this.onCellSelectionChanged()}onCellSelectionChanged(){const e=this.cellComp;if(!e)return;const{rangeSvc:t,cellCtrl:n,eGui:r}=this,i=t.getCellRangeCount(n.cellPosition);this.rangeCount=i;const o=this.getHasChartRange();this.hasChartRange=o,e.toggleCss(n4,i!==0),e.toggleCss(`${n4}-1`,i===1),e.toggleCss(`${n4}-2`,i===2),e.toggleCss(`${n4}-3`,i===3),e.toggleCss(`${n4}-4`,i>=4),e.toggleCss(cQt,o),dW(r,i>0?!0:void 0),e.toggleCss(uQt,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle()}updateRangeBorders(){const e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,r=!t&&e.right,i=!t&&e.bottom,o=!t&&e.left,a=this.cellComp;a.toggleCss(hQt,n),a.toggleCss(fQt,r),a.toggleCss(gQt,i),a.toggleCss(mQt,o)}isSingleCell(){const{rangeSvc:e}=this;return this.rangeCount===1&&!!e&&!e.isMoreThanOneCell()}getHasChartRange(){const{rangeSvc:e}=this;if(!this.rangeCount||!e)return!1;const t=e.getCellRanges();return t.length>0&&t.every(n=>[hf.DIMENSION,hf.VALUE].includes(n.type))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){const e=this.beans.gos.get("enableRtl");let t=!1,n=!1,r=!1,i=!1;const{rangeSvc:o,beans:{visibleCols:a},cellCtrl:{cellPosition:s}}=this,l=s.column,c=o.getCellRanges().filter(p=>o.isCellInSpecificRange(s,p));if(!c.length)return{top:t,right:n,bottom:r,left:i};let u,d;e?(u=a.getColAfter(l),d=a.getColBefore(l)):(u=a.getColBefore(l),d=a.getColAfter(l)),u||(i=!0),d||(n=!0);for(let p=0;p<c.length&&!(t&&n&&r&&i);p++){const h=c[p],g=o.getRangeStartRow(h),m=o.getRangeEndRow(h);!t&&Uc(g,s)&&(t=!0),!r&&Uc(m,s)&&(r=!0),!i&&u&&h.columns.indexOf(u)<0&&(i=!0),!n&&d&&h.columns.indexOf(d)<0&&(n=!0)}return{top:t,right:n,bottom:r,left:i}}refreshHandle(){if(this.beans.context.isDestroyed())return;const e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.toggleCss(pQt,!!this.selectionHandle)}shouldHaveSelectionHandle(){const e=this.beans.gos,t=this.rangeSvc,n=t.getCellRanges(),r=n.length;if(this.rangeCount<1||r<1)return!1;const i=zr(n),{cellPosition:o}=this.cellCtrl,a=qRe(e)&&!this.cellCtrl.column.isSuppressFillHandle(),s=vQt(e);let l=r===1&&!this.cellCtrl.editing&&(a||s);if(this.hasChartRange){const u=n[0].type===hf.DIMENSION&&t.isCellInSpecificRange(o,n[0]);this.cellComp.toggleCss(dQt,u),l=i.type===hf.VALUE}return l&&i.endRow!=null&&t.isContiguousRange(i)&&t.isBottomRightCell(i,o)}addSelectionHandle(){const{beans:e,rangeSvc:t}=this,n=zr(t.getCellRanges()).type,i=qRe(e.gos)&&Yi(n)?0:1;if(this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle=e.context.destroyBean(this.selectionHandle)),!this.selectionHandle){const o=e.registry.createDynamicBean(i===0?"fillHandle":"rangeHandle",!1);o&&(this.selectionHandle=e.context.createBean(o))}this.selectionHandle?.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}},yQt=class extends dt{constructor(e){super(),this.eContainer=e}postConstruct(){const{beans:e,gos:t,eContainer:n}=this,r=e.rangeSvc,i={eElement:n,onDragStart:r.onDragStart.bind(r),onDragStop:r.onDragStop.bind(r),onDragging:r.onDragging.bind(r)},o=e.dragSvc,a=o.addDragSource.bind(o,i),s=o.removeDragSource.bind(o,i);this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{r1(t)?a():s()}),this.addDestroyFunc(s),r1(t)&&a()}},MQt=class extends dt{constructor(e,t){super(),this.column=e,this.comp=t,this.columnMap=new Map,this.isActive=!1,this.resetColumnMap()}postConstruct(){this.addManagedPropertyListener("cellSelection",()=>{this.refreshActive()}),this.refreshActive(),this.setupRangeHeaderHighlight()}resetColumnMap(){this.columnMap.clear();let e;this.column.isColumn?e=[this.column]:e=this.column.getDisplayedLeafColumns();for(const t of e)this.columnMap.set(t,!1)}refreshActive(){const{gos:e,rangeSvc:t}=this.beans,n=e.get("cellSelection");this.isActive=!!(n&&t&&typeof n=="object"&&n.enableHeaderHighlight)}setupRangeHeaderHighlight(){const e=this.onRangeSelectionChanged.bind(this);this.addManagedEventListeners({rangeSelectionChanged:e,columnPinned:e,columnMoved:e,columnGroupOpened:e}),e()}onRangeSelectionChanged(){if(!this.isActive)return;this.resetColumnMap();const e=this.beans.rangeSvc.getCellRanges();let t=!1,n=!0;for(const r of e){if(t)break;for(const i of r.columns)this.columnMap.has(i)&&(this.columnMap.set(i,!0),t||(t=!0))}for(const r of Array.from(this.columnMap.values()))if(r===!1){n=!1;break}this.comp.toggleCss("ag-header-range-highlight",t&&n)}destroy(){super.destroy(),this.comp=null,this.column=null}},CQt=class extends dt{constructor(){super(...arguments),this.beanName="rangeSvc",this.cellRanges=[],this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1,this.intersectionRange=!1}wireBeans(e){this.rowModel=e.rowModel,this.dragSvc=e.dragSvc,this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.cellNavigation=e.cellNavigation,this.ctrlsSvc=e.ctrlsSvc,this.valueSvc=e.valueSvc}postConstruct(){const e=this.onColumnsChanged.bind(this),t=()=>this.removeAllCellRanges(),n=this.refreshLastRangeStart.bind(this);this.addManagedEventListeners({newColumnsLoaded:e,columnVisible:e,columnValueChanged:e,columnPivotModeChanged:t,columnRowGroupChanged:t,columnPivotChanged:t,columnGroupOpened:n,columnMoved:n,columnPinned:n}),this.ctrlsSvc.whenReady(this,r=>{const i=r.gridBodyCtrl;this.autoScrollService=new Mye({scrollContainer:i.eBodyViewport,scrollAxis:"xy",getVerticalPosition:()=>i.scrollFeature.getVScrollPosition().top,setVerticalPosition:o=>i.scrollFeature.setVerticalScrollPosition(o),getHorizontalPosition:()=>i.scrollFeature.getHScrollPosition().left,setHorizontalPosition:o=>i.scrollFeature.setHorizontalScrollPosition(o),shouldSkipVerticalScroll:()=>!Uu(this.gos,"normal"),shouldSkipHorizontalScroll:()=>!i.scrollFeature.isHorizontalScrollShowing()})})}onDragStart(e){if(!r1(this.gos))return;const{ctrlKey:t,metaKey:n,shiftKey:r}=e,i=t||n,a=!jH(this.gos)?i:!1,s=r&&!!this.cellRanges?.length;!a&&(!s||Ut(zr(this.cellRanges).type))&&this.removeAllCellRanges(!0);const l=this.dragSvc.startTarget;if(l&&this.updateValuesOnMove(l),!!this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=e,this.intersectionRange=a&&this.getCellRangeCount(this.lastCellHovered)>1,s||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=zr(this.cellRanges);else{const c={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned},u=this.getColumnsFromModel([this.lastCellHovered.column]);if(!u||!u.length)return;this.draggingRange={startRow:c,endRow:c,columns:u,startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsSvc.getGridBodyCtrl().eBodyViewport.addEventListener("scroll",this.bodyScrollListener,{passive:!0}),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}onDragging(e){const{dragging:t,lastCellHovered:n,newestRangeStartCell:r,autoScrollService:i,cellHasChanged:o}=this;if(!t||!e)return;this.updateValuesOnMove(e.target),this.lastMouseEvent=e;const a=h=>n&&n.rowPinned===h&&r.rowPinned===h,s=a("top")||a("bottom");if(i.check(e,s),!o||!n)return;const l=r?.column,c=n?.column,u=this.calculateColumnsBetween(l,c);if(!u)return;const{rowIndex:d,rowPinned:p}=n;this.draggingRange.endRow={rowIndex:d,rowPinned:p},this.draggingRange.columns=u,this.dispatchChangedEvent(!1,!1,this.draggingRange.id)}onDragStop(){if(!this.dragging)return;const{id:e}=this.draggingRange;this.autoScrollService.ensureCleared(),this.ctrlsSvc.getGridBodyCtrl().eBodyViewport.removeEventListener("scroll",this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,e)}onColumnsChanged(){this.refreshLastRangeStart();const e=this.visibleCols.allCols;this.cellRanges.forEach(n=>{const r=n.columns;n.columns=n.columns.filter(o=>o.isVisible()&&e.indexOf(o)!==-1),!Md(r,n.columns)&&this.dispatchChangedEvent(!1,!0,n.id)});const t=this.cellRanges.length;this.cellRanges=this.cellRanges.filter(n=>n.columns.length>0),t>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)}refreshLastRangeStart(){const e=zr(this.cellRanges);e&&this.refreshRangeStart(e)}isContiguousRange(e){const t=e.columns;if(!t.length)return!1;const n=this.visibleCols.allCols,r=t.map(i=>n.indexOf(i)).sort((i,o)=>i-o);return zr(r)-r[0]+1===t.length}getRangeStartRow(e){return e.startRow&&e.endRow?t0(e.startRow,e.endRow)?e.startRow:e.endRow:{rowIndex:0,rowPinned:(this.beans.pinnedRowModel?.getPinnedTopRowCount()??0)>0?"top":null}}getRangeEndRow(e){if(e.startRow&&e.endRow)return t0(e.startRow,e.endRow)?e.endRow:e.startRow;const t=this.beans.pinnedRowModel?.getPinnedBottomRowCount()??0;return t>0?{rowIndex:t-1,rowPinned:"bottom"}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}}setRangeToCell(e,t=!1){const{gos:n}=this;if(!r1(n))return;const r=n.get("rowNumbers"),i=p0(e.column);r&&this.setSelectionMode(i);const o=this.calculateColumnsBetween(e.column,e.column);if(!o)return;(jH(this.gos)||!t||Yi(this.cellRanges))&&this.removeAllCellRanges(!0);const s={rowIndex:e.rowIndex,rowPinned:e.rowPinned},l={startRow:s,endRow:s,columns:o,startColumn:e.column};this.cellRanges.push(l),this.setNewestRangeStartCell(e),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}extendLatestRangeToCell(e){if(this.isEmpty()||!this.newestRangeStartCell)return;const t=zr(this.cellRanges);this.setSelectionMode(p0(e.column)),this.updateRangeEnd(t,e)}updateRangeEnd(e,t,n=!1){const r=t.column,i=this.calculateColumnsBetween(e.startColumn,r);!i||this.isLastCellOfRange(e,t)||(e.columns=i,e.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},n||this.dispatchChangedEvent(!0,!0,e.id))}getRangeEdgeColumns(e){const t=this.visibleCols.allCols,n=e.columns.map(r=>t.indexOf(r)).filter(r=>r>-1).sort((r,i)=>r-i);return{left:t[n[0]],right:t[zr(n)]}}extendLatestRangeInDirection(e){if(this.isEmpty()||!this.newestRangeStartCell)return;const t=e.key,n=e.ctrlKey||e.metaKey,r=zr(this.cellRanges),i=this.newestRangeStartCell,o=r.columns[0],a=zr(r.columns),s=r.endRow.rowIndex,l=r.endRow.rowPinned,u={column:i.column===o?a:o,rowIndex:s,rowPinned:l},d=this.cellNavigation.getNextCellToFocus(t,u,n);if(d)return this.setCellRange({rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,rowEndIndex:d.rowIndex,rowEndPinned:d.rowPinned,columnStart:i.column,columnEnd:d.column}),d}setCellRange(e){r1(this.gos)&&(this.removeAllCellRanges(!0),this.addCellRange(e))}setCellRanges(e){if(!Md(this.cellRanges,e)&&this.verifyCellRanges(this.gos)){this.removeAllCellRanges(!0);for(const t of e){if(t.columns&&t.startRow){const n=this.getColumnsFromModel(t.columns);if(!n||n.length===0)continue;t.columns=n;const{startRow:r}=t;this.setNewestRangeStartCell({rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:t.columns[0]})}this.cellRanges.push(t)}this.dispatchChangedEvent(!1,!0)}}clearCellRangeCellValues(e){const{beans:t,valueSvc:n,eventSvc:r}=this,{cellEventSource:i="rangeSvc",dispatchWrapperEvents:o,wrapperEventSource:a="deleteKey"}=e;let{cellRanges:s}=e;o&&(r.dispatchEvent({type:"cellSelectionDeleteStart",source:a}),r.dispatchEvent({type:"rangeDeleteStart",source:a})),s||(s=this.cellRanges),s.forEach(l=>{this.forEachRowInRange(l,c=>{const u=lp(t,c);if(u)for(let d=0;d<l.columns.length;d++){const p=this.getColumnFromModel(l.columns[d]);if(!p||!p.isCellEditable(u))continue;const h=n.getDeleteValue(p,u);u.setDataValue(p,h,i)}})}),o&&(r.dispatchEvent({type:"cellSelectionDeleteEnd",source:a}),r.dispatchEvent({type:"rangeDeleteEnd",source:a}))}createCellRangeFromCellRangeParams(e){return this.createPartialCellRangeFromRangeParams(e,!1)}createPartialCellRangeFromRangeParams(e,t){const{columns:n,columnStart:r,columnEnd:i,rowStartIndex:o,rowStartPinned:a,rowEndIndex:s,rowEndPinned:l}=e,c=this.getColumnsFromParams(n,r,i);if(!c||!t&&c.columns.length===0)return;const{columns:u,startsOnTheRight:d}=c,p=this.createRowPosition(o,a),h=this.createRowPosition(s,l);return{startRow:p,endRow:h,columns:u,startColumn:this.getColumnFromModel(r)??(d?zr(u):u[0])}}addCellRange(e){const t=this.gos;if(!r1(t)||!this.verifyCellRanges(t))return;this.setSelectionMode(!1);const n=this.createCellRangeFromCellRangeParams(e);n&&(n.startRow&&this.setNewestRangeStartCell({rowIndex:n.startRow.rowIndex,rowPinned:n.startRow.rowPinned,column:n.startColumn}),this.cellRanges.push(n),this.dispatchChangedEvent(!1,!0,n.id))}getCellRanges(){return this.cellRanges}isEmpty(){return this.cellRanges.length===0}isMoreThanOneCell(){const e=this.cellRanges.length;if(e===0)return!1;if(e>1)return!0;const t=this.cellRanges[0],n=this.getRangeStartRow(t),r=this.getRangeEndRow(t);return n.rowPinned!==r.rowPinned||n.rowIndex!==r.rowIndex||t.columns.length!==1}areAllRangesAbleToMerge(){const e=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach(r=>{this.forEachRowInRange(r,i=>{const o=`${i.rowPinned||"normal"}_${i.rowIndex}`,a=e.get(o),s=r.columns.map(l=>l.getId());if(a){const l=s.filter(c=>a.indexOf(c)===-1);a.push(...l)}else e.set(o,s)})});let n;for(const r of e.values()){const i=r.sort().join();if(n===void 0){n=i;continue}if(n!==i)return!1}return!0}removeAllCellRanges(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.dispatchChangedEvent(!1,!0))}isCellInAnyRange(e){return this.getCellRangeCount(e)>0}isCellInSpecificRange(e,t){const n=t.columns!==null&&t.columns.includes(e.column),r=this.isRowInRange(e.rowIndex,e.rowPinned,t);return n&&r}isBottomRightCell(e,t){const n=this.visibleCols.allCols,r=e.columns.map(c=>n.indexOf(c)).sort((c,u)=>c-u),{startRow:i,endRow:o}=e,a=t0(i,o)?o:i,s=n.indexOf(t.column)===zr(r),l=t.rowIndex===a.rowIndex&&Tc(t.rowPinned)===Tc(a.rowPinned);return s&&l}getCellRangeCount(e){return this.isEmpty()?0:this.cellRanges.filter(t=>this.isCellInSpecificRange(e,t)).length}isRowInRange(e,t,n){const r=this.getRangeStartRow(n),i=this.getRangeEndRow(n),o={rowIndex:e,rowPinned:t||null},a=o.rowIndex===r.rowIndex&&o.rowPinned==r.rowPinned,s=o.rowIndex===i.rowIndex&&o.rowPinned==i.rowPinned;if(a||s)return!0;const l=!t0(o,r),c=t0(o,i);return l&&c}intersectLastRange(e){if(e&&this.dragging||jH(this.gos)||this.isEmpty())return;const t=zr(this.cellRanges),n=this.getRangeStartRow(t),r=this.getRangeEndRow(t),i=[];this.cellRanges.slice(0,-1).forEach(o=>{const a=this.getRangeStartRow(o),s=this.getRangeEndRow(o),l=o.columns,c=l.filter(d=>t.columns.indexOf(d)===-1);if(c.length===l.length){i.push(o);return}if(t0(r,a)||t0(s,n)){i.push(o);return}const u=i.length;if(t0(a,n)){const d={columns:[...l],startColumn:t.startColumn,startRow:{...a},endRow:Ax(this.beans,n)};i.push(d)}if(c.length>0){const d={columns:c,startColumn:c.includes(t.startColumn)?t.startColumn:c[0],startRow:this.rowMax([{...n},{...a}]),endRow:this.rowMin([{...r},{...s}])};i.push(d)}t0(r,s)&&i.push({columns:[...l],startColumn:t.startColumn,startRow:Gp(this.beans,r),endRow:{...s}}),i.length-u===1&&(i[i.length-1].id=o.id)}),this.cellRanges=i,e&&this.dispatchChangedEvent(!1,!0)}createRangeHighlightFeature(e,t,n){e.createManagedBean(new MQt(t,n))}setSelectionMode(e){this.selectionMode=e?1:0}refreshRangeStart(e){const{startColumn:t,columns:n}=e,r=(l,c)=>{const u=e.columns.filter(d=>d!==l);l?(e.startColumn=l,e.columns=c?[l,...u]:[...u,l]):e.columns=u},{left:i,right:o}=this.getRangeEdgeColumns(e);if(t===n[0]&&t!==i){r(i,!0);return}if(t===zr(n)&&t===o){r(o,!1);return}}setNewestRangeStartCell(e){this.newestRangeStartCell=e}getColumnsFromParams(e,t,n){const r=!e&&!t&&!n;let i,o=!1;return r||e?i=this.getColumnsFromModel(r?void 0:e):t&&n&&(i=this.calculateColumnsBetween(t,n),i&&i.length&&(o=i[0]!==this.getColumnFromModel(t))),i?{columns:i,startsOnTheRight:o}:void 0}createRowPosition(e,t){return e!=null?{rowIndex:e,rowPinned:t}:void 0}verifyCellRanges(e){const t=Lkt(e)&&jH(e)&&this.cellRanges.length>1;return t&&ut(93),!t}forEachRowInRange(e,t){const n=this.getRangeStartRow(e),r=this.getRangeEndRow(e);let i=n;for(;i&&(t(i),!Uc(i,r));)i=Gp(this.beans,i)}onBodyScroll(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)}isLastCellOfRange(e,t){const{startRow:n,endRow:r}=e,i=t0(n,r)?r:n,o=t.rowIndex===i.rowIndex&&t.rowPinned===i.rowPinned,a=e.columns[0],s=zr(e.columns),l=e.startColumn===a?s:a;return t.column===l&&o}rowMax(e){let t;return e.forEach(n=>{(t===void 0||t0(t,n))&&(t=n)}),t}rowMin(e){let t;return e.forEach(n=>{(t===void 0||t0(n,t))&&(t=n)}),t}updateValuesOnMove(e){const t=yye(this.gos,e),n=t?.cellPosition;if(this.cellHasChanged=!1,!(!n||this.lastCellHovered&&y6(n,this.lastCellHovered))){if(t?.editing){this.dragSvc.cancelDrag(e);return}this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=n}}shouldSkipCurrentColumn(e){return p0(e)}dispatchChangedEvent(e,t,n){this.eventSvc.dispatchEvent({type:"cellSelectionChanged",started:e,finished:t,id:n}),this.eventSvc.dispatchEvent({type:"rangeSelectionChanged",started:e,finished:t,id:n})}getColumnFromModel(e){return typeof e=="string"?this.colModel.getCol(e):e}getColumnsFromModel(e){const{gos:t,visibleCols:n}=this,r=t.get("rowNumbers");(!e||this.selectionMode===1)&&(e=n.allCols);const i=[];for(const o of e){const a=this.getColumnFromModel(o);!a||r&&this.shouldSkipCurrentColumn(a)||i.push(a)}return i.length?i:void 0}calculateColumnsBetween(e,t){const n=this.visibleCols.allCols,r=this.getColumnFromModel(e),i=this.getColumnFromModel(t),o=r===i,a=n.indexOf(r);if(a<0){ut(178,{colId:r.getId()});return}const s=o?a:n.indexOf(i);if(s<0){ut(178,{colId:i.getId()});return}if(o||this.selectionMode===1)return this.getColumnsFromModel([r]);const l=Math.min(a,s),c=l===a?s:a,u=[];for(let d=l;d<=c;d++)u.push(n[d]);return this.getColumnsFromModel(u)}createDragListenerFeature(e){return new yQt(e)}createCellRangeFeature(e,t){return new bQt(e,t)}},Pit={moduleName:"CellSelection",version:wi,beans:[CQt],dynamicBeans:{fillHandle:iQt,rangeHandle:oQt},apiFunctions:{getCellRanges:sQt,addCellRange:lQt,clearRangeSelection:WRe,clearCellSelection:WRe},dependsOn:[es,FK,Nye],css:[aQt]},xQt={tag:"div",cls:"ag-loading",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},wQt=class extends Gt{constructor(){super(xQt),this.eLoadingIcon=at,this.eLoadingText=at}init(e){e.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){this.eLoadingText.textContent=this.getLocaleTextFunc()("loadingError","ERR")}setupLoading(){const e=er("groupLoading",this.beans,null);e&&this.eLoadingIcon.appendChild(e),this.eLoadingText.textContent=this.getLocaleTextFunc()("loadingOoo","Loading")}refresh(e){return!1}},SQt={tag:"div",cls:"ag-skeleton-container"},AQt=class extends Gt{constructor(){super(SQt)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>Vx(e.eParentOfValue)),Vx(e.eParentOfValue,t),e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){const e=this.getLocaleTextFunc();this.getGui().textContent=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");Is(this.getGui(),t)}setupLoading(e){const t=Nr({tag:"div",cls:"ag-skeleton-effect"}),n=e.node.rowIndex;if(n!=null){const o=75+25*(n%2===0?Math.sin(n):Math.cos(n));t.style.width=`${o}%`}this.getGui().appendChild(t);const i=this.getLocaleTextFunc()("ariaSkeletonCellLoading","Row data is loading");Is(this.getGui(),i)}refresh(e){return!1}},OQt={moduleName:"LoadingCellRenderer",version:wi,userComponents:{agLoadingCellRenderer:wQt},icons:{groupLoading:"loading"},dependsOn:[es]},zQt={moduleName:"SkeletonCellRenderer",version:wi,userComponents:{agSkeletonCellRenderer:AQt},dependsOn:[es]};function TQt(e){return e.colModel.isPivotMode()}function EQt(e,t,n){return e.pivotResultCols?.lookupPivotResultCol(t,n)??null}function RQt(e,t){e.valueColsSvc?.setColumns(t,"api")}function IQt(e){return e.valueColsSvc?.columns??[]}function PQt(e,t){e.valueColsSvc?.removeColumns(t,"api")}function DQt(e,t){e.valueColsSvc?.addColumns(t,"api")}function kQt(e,t){e.pivotColsSvc?.setColumns(t,"api")}function LQt(e,t){e.pivotColsSvc?.removeColumns(t,"api")}function _Qt(e,t){e.pivotColsSvc?.addColumns(t,"api")}function NQt(e){return e.pivotColsSvc?.columns??[]}function FQt(e,t){e.pivotResultCols?.setPivotResultCols(t,"api")}function WQt(e){const t=e.pivotResultCols?.getPivotResultCols();return t?t.list:null}var BRe="PivotRowTotal_",qQt=({headerName:e},{headerName:t})=>e&&!t?1:!e&&t?-1:!e&&!t?0:e<t?-1:e>t?1:0,BQt=e=>(t,n)=>e(t.headerName,n.headerName),jQt=class extends dt{constructor(){super(...arguments),this.beanName="pivotColDefSvc"}wireBeans(e){this.colModel=e.colModel,this.pivotColsSvc=e.pivotColsSvc,this.valueColsSvc=e.valueColsSvc,this.colNames=e.colNames}postConstruct(){const e=()=>this.gos.get("serverSidePivotResultFieldSeparator")??"_";this.fieldSeparator=e(),this.addManagedPropertyListener("serverSidePivotResultFieldSeparator",()=>{this.fieldSeparator=e()});const t=()=>this.gos.get("pivotDefaultExpanded");this.pivotDefaultExpanded=t(),this.addManagedPropertyListener("pivotDefaultExpanded",()=>{this.pivotDefaultExpanded=t()})}createPivotColumnDefs(e){const t=this.createPivotColumnsFromUniqueValues(e);function n(o,a=[]){return o.forEach(s=>{s.children!==void 0?n(s.children,a):a.push(s)}),a}const r=n(t);this.addRowGroupTotals(t,r),this.addExpandablePivotGroups(t,r),this.addPivotTotalsToGroups(t,r);const i=r.map(o=>({...o}));return{pivotColumnGroupDefs:t,pivotColumnDefs:i}}createPivotColumnsFromUniqueValues(e){const t=this.pivotColsSvc?.columns??[],n=t.length;return this.recursivelyBuildGroup(0,e,[],n,t)}recursivelyBuildGroup(e,t,n,r,i){if(e>=r)return this.buildMeasureCols(n);const{pivotComparator:o}=i[e].getColDef(),a=o?BQt(o):qQt,s=this.valueColsSvc?.columns;if(s?.length===1&&this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&e===r-1){const c=[];for(const u of t.keys()){const d=[...n,u],p=this.createColDef(s[0],u,d);p.columnGroupShow="open",c.push(p)}return c.sort(a),c}const l=[];for(const c of t.keys()){const u=this.pivotDefaultExpanded===-1||e<this.pivotDefaultExpanded,d=[...n,c];l.push({children:this.recursivelyBuildGroup(e+1,t.get(c),d,r,i),headerName:c,pivotKeys:d,columnGroupShow:"open",openByDefault:u,groupId:this.generateColumnGroupId(d)})}return l.sort(a),l}buildMeasureCols(e){const t=this.valueColsSvc?.columns??[];return t.length===0?[this.createColDef(null,"-",e)]:t.map(n=>{const r=this.colNames.getDisplayNameForColumn(n,"header");return{...this.createColDef(n,r,e),columnGroupShow:"open"}})}addExpandablePivotGroups(e,t){const n=this.gos.get("suppressExpandablePivotGroups");if(n||this.gos.get("pivotColumnGroupTotals"))return;const r=(i,o,a)=>{if("children"in i){const{valueColsSvc:c}=this,{columns:u=[]}=c??{},d=new Map;i.children.forEach(g=>{r(g,o,d)});const p=!i.children.some(g=>g.children),h=p&&u.length===1&&this.gos.get("removePivotHeaderRowWhenSingleValueColumn");u.forEach(g=>{const m=this.colNames.getDisplayNameForColumn(g,"header"),b=this.createColDef(g,m,i.pivotKeys);b.pivotTotalColumnIds=d.get(g.getColId()),b.columnGroupShow=n?"open":"closed",b.aggFunc=g.getAggFunc(),(!p||h)&&(i.children.push(b),o.push(b))}),this.merge(a,d);return}if(!i.pivotValueColumn)return;const s=i.pivotValueColumn.getColId();a.has(s)?a.get(s).push(i.colId):a.set(s,[i.colId])};e.forEach(i=>{r(i,t,new Map)})}addPivotTotalsToGroups(e,t){if(!this.gos.get("pivotColumnGroupTotals"))return;const n=this.gos.get("pivotColumnGroupTotals")==="after",r=this.valueColsSvc?.columns,i=r?.map(o=>o.getAggFunc());if(!(!i||i.length<1||!this.sameAggFuncs(i))&&r){const o=r[0];e.forEach(a=>{this.recursivelyAddPivotTotal(a,t,o,n)})}}recursivelyAddPivotTotal(e,t,n,r){const i=e;if(!i.children){const a=e;return a.colId?[a.colId]:null}let o=[];if(i.children.forEach(a=>{const s=this.recursivelyAddPivotTotal(a,t,n,r);s&&(o=o.concat(s))}),i.children.length>1){const s=this.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),l=this.createColDef(n,s,e.pivotKeys,!0);l.pivotTotalColumnIds=o,l.aggFunc=n.getAggFunc(),l.columnGroupShow=this.gos.get("suppressExpandablePivotGroups")?"open":void 0;const c=e.children;r?c.push(l):c.unshift(l),t.push(l)}return o}addRowGroupTotals(e,t){if(!this.gos.get("pivotRowTotals"))return;const n=this.gos.get("pivotRowTotals")==="after",i=(this.valueColsSvc?.columns??[]).slice();n||i.reverse();const o=i.length>1||!this.gos.get("removePivotHeaderRowWhenSingleValueColumn");for(let a=0;a<i.length;a++){const s=i[a],l=this.colNames.getDisplayNameForColumn(s,"header"),c=this.createColDef(s,l,[]),u=[];for(let p=0;p<t.length;p++){const h=t[p];h.pivotValueColumn===s&&u.push(h.colId)}c.pivotTotalColumnIds=u,c.colId=BRe+c.colId;const d=o?{children:[c],pivotKeys:[],groupId:`${BRe}_pivotGroup_${s.getColId()}`}:c;t.push(c),n?e.push(d):e.unshift(d)}}createColDef(e,t,n,r=!1){const i={};if(e){const o=e.getColDef();Object.assign(i,o),i.hide=!1}return i.headerName=t,i.colId=this.generateColumnId(n||[],e&&!r?e.getColId():""),i.field=i.colId,i.valueGetter=o=>o.data?.[o.colDef.field],i.pivotKeys=n,i.pivotValueColumn=e,i.filter===!0&&(i.filter="agNumberColumnFilter"),i}sameAggFuncs(e){if(e.length==1)return!0;for(let t=1;t<e.length;t++)if(e[t]!==e[0])return!1;return!0}merge(e,t){t.forEach((n,r)=>{const o=[...e.has(r)?e.get(r):[],...n];e.set(r,o)})}generateColumnGroupId(e){return`pivotGroup_${(this.pivotColsSvc?.columns??[]).map(n=>n.getColId()).join("-")}_${e.join("-")}`}generateColumnId(e,t){return`pivot_${(this.pivotColsSvc?.columns??[]).map(r=>r.getColId()).join("-")}_${e.join("-")}_${t}`}createColDefsFromFields(e){const t=new Map;for(let i=0;i<e.length;i++){const a=e[i].split(this.fieldSeparator);let s=t;for(let l=0;l<a.length;l++){const c=a[l];let u=s.get(c);u||(u=new Map,s.set(c,u)),s=u}}const n=(i,o,a,s)=>{const l=[];for(const[d,p]of a){const h=n(`${i}${this.fieldSeparator}${d}`,d,p,s+1);l.push(h)}if(l.length===0){const d=this.colModel.getColDefCol(o);if(d){const h=this.colNames.getDisplayNameForColumn(d,"header")??o,g=this.createColDef(d,h,void 0,!1);return g.colId=i,g.aggFunc=d.getAggFunc(),g.valueGetter=m=>m.data?.[i],g}return{colId:i,headerName:o,valueGetter:h=>h.data?.[i]}}return this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&l.length===1&&"colId"in l[0]?(l[0].headerName=o,l[0]):{openByDefault:this.pivotDefaultExpanded===-1||s<this.pivotDefaultExpanded,groupId:i,headerName:o,children:l}},r=[];for(const[i,o]of t){const a=n(i,i,o,0);r.push(a)}return r}},HQt=class extends dt{constructor(){super(...arguments),this.beanName="pivotResultCols"}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols}destroy(){Tb(this.beans,this.pivotResultCols?.tree),super.destroy()}isPivotResultColsPresent(){return this.pivotResultCols!=null}lookupPivotResultCol(e,t){if(this.pivotResultCols==null)return null;const n=this.colModel.getColDefCol(t);let r=null;return this.pivotResultCols.list.forEach(i=>{const o=i.getColDef().pivotKeys,a=i.getColDef().pivotValueColumn;Md(o,e)&&a===n&&(r=i)}),r}getPivotResultCols(){return this.pivotResultCols}getPivotResultCol(e){return this.pivotResultCols?this.colModel.getColFromCollection(e,this.pivotResultCols):null}setPivotResultCols(e,t){if(this.colModel.ready&&!(e==null&&this.pivotResultCols==null)){if(e){this.processPivotResultColDef(e);const r=(t==="api"?Bet:tLt)(this.beans,e,!1,this.pivotResultCols?.tree||this.previousPivotResultCols||void 0,t);Tb(this.beans,this.pivotResultCols?.tree,r.columnTree);const i=r.columnTree,o=r.treeDepth,a=uye(i),s={};this.pivotResultCols={tree:i,treeDepth:o,list:a,map:s},this.pivotResultCols.list.forEach(c=>this.pivotResultCols.map[c.getId()]=c);const l=!!this.previousPivotResultCols;this.previousPivotResultCols=null,this.colModel.refreshCols(!l)}else this.previousPivotResultCols=this.pivotResultCols?this.pivotResultCols.tree:null,this.pivotResultCols=null,this.colModel.refreshCols(!1);this.visibleCols.refresh(t)}}processPivotResultColDef(e){const t=this.gos.get("processPivotResultColDef"),n=this.gos.get("processPivotResultColGroupDef");if(!t&&!n)return;const r=i=>{i.forEach(o=>{if(Ut(o.children)){const s=o;n&&n(s),r(s.children)}else t&&t(o)})};e&&r(e)}},jRe="Exceeded maximum allowed pivot column count.",t7=e=>{const t={};return e.forEach((n,r)=>t[r]=n instanceof Map?t7(n):n),t},VQt=class extends dt{constructor(){super(...arguments),this.beanName="pivotStage",this.refreshProps=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),this.step="pivot",this.uniqueValues=new Map,this.lastTimeFailed=!1,this.maxUniqueValues=-1,this.currentUniqueCount=0}wireBeans(e){this.valueSvc=e.valueSvc,this.colModel=e.colModel,this.pivotResultCols=e.pivotResultCols,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueColsSvc=e.valueColsSvc,this.pivotColsSvc=e.pivotColsSvc,this.pivotColDefSvc=e.pivotColDefSvc}execute(e){const t=e.changedPath;this.colModel.isPivotActive()?this.executePivotOn(t):this.executePivotOff(t)}executePivotOff(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues=new Map,this.pivotResultCols.isPivotResultColsPresent()&&(this.pivotResultCols.setPivotResultCols(null,"rowModelUpdated"),e&&(e.active=!1))}executePivotOn(e){const t=this.valueColsSvc?.columns.length??1,n=this.gos.get("pivotMaxGeneratedColumns");this.maxUniqueValues=n===-1?-1:n/t;let r;try{r=this.bucketUpRowNodes(e)}catch(y){if(y.message===jRe){this.pivotResultCols.setPivotResultCols([],"rowModelUpdated"),this.eventSvc.dispatchEvent({type:"pivotMaxColumnsExceeded",message:y.message}),this.lastTimeFailed=!0;return}throw y}const i=this.setUniqueValues(r),o=this.valueColsSvc?.columns??[],a=o.map(y=>`${y.getId()}-${y.getColDef().headerName}`).join("#"),s=o.map(y=>y.getAggFunc().toString()).join("#"),l=this.aggregationColumnsHashLastTime!==a,c=this.aggregationFuncsHashLastTime!==s;this.aggregationColumnsHashLastTime=a,this.aggregationFuncsHashLastTime=s;const u=(this.rowGroupColsSvc?.columns??[]).map(y=>y.getId()).join("#"),d=u!==this.groupColumnsHashLastTime;this.groupColumnsHashLastTime=u;const p=this.gos.get("pivotRowTotals"),h=this.gos.get("pivotColumnGroupTotals"),g=this.gos.get("suppressExpandablePivotGroups"),m=this.gos.get("removePivotHeaderRowWhenSingleValueColumn"),b=p!==this.pivotRowTotalsLastTime||h!==this.pivotColumnGroupTotalsLastTime||g!==this.suppressExpandablePivotGroupsLastTime||m!==this.removePivotHeaderRowWhenSingleValueColumnLastTime;if(this.pivotRowTotalsLastTime=p,this.pivotColumnGroupTotalsLastTime=h,this.suppressExpandablePivotGroupsLastTime=g,this.removePivotHeaderRowWhenSingleValueColumnLastTime=m,this.lastTimeFailed||i||l||d||c||b){const{pivotColumnGroupDefs:y,pivotColumnDefs:M}=this.pivotColDefSvc.createPivotColumnDefs(this.uniqueValues);this.pivotColumnDefs=M,this.pivotResultCols.setPivotResultCols(y,"rowModelUpdated"),e&&(e.active=!1)}this.lastTimeFailed=!1}setUniqueValues(e){const t=JSON.stringify(t7(this.uniqueValues)),n=JSON.stringify(t7(e));return t!==n?(this.uniqueValues=e,!0):!1}bucketUpRowNodes(e){this.currentUniqueCount=0;const t=new Map;e.forEachChangedNodeDepthFirst(r=>{r.leafGroup&&(r.childrenMapped=null)});const n=r=>{r.leafGroup?this.bucketRowNode(r,t):r.childrenAfterFilter?.forEach(n)};return e.executeFromRootNode(n),t}bucketRowNode(e,t){const n=this.pivotColsSvc?.columns;n?.length===0?e.childrenMapped=null:e.childrenMapped=t7(this.bucketChildren(e.childrenAfterFilter,n,0,t)),e.sibling&&(e.sibling.childrenMapped=e.childrenMapped)}bucketChildren(e,t=[],n,r){const i=new Map,o=t[n];if(e.forEach(s=>{let l=this.valueSvc.getKeyForNode(o,s);if(Yi(l)&&(l=""),!r.get(l)){this.currentUniqueCount+=1,r.set(l,new Map);const c=this.maxUniqueValues!==-1,u=this.currentUniqueCount>this.maxUniqueValues;if(c&&u)throw Error(jRe)}i.has(l)||i.set(l,[]),i.get(l).push(s)}),n===t.length-1)return i;const a=new Map;for(const s of i.keys())a.set(s,this.bucketChildren(i.get(s),t,n+1,r.get(s)));return a}getPivotColumnDefs(){return this.pivotColumnDefs}},Dit={moduleName:"SharedPivot",version:wi,beans:[HQt,jQt,mit],apiFunctions:{isPivotMode:TQt,getPivotResultColumn:EQt,setValueColumns:RQt,getValueColumns:IQt,removeValueColumns:PQt,addValueColumns:DQt,setPivotColumns:kQt,removePivotColumns:LQt,addPivotColumns:_Qt,getPivotColumns:NQt,setPivotResultColumns:FQt,getPivotResultColumns:WQt},dependsOn:[Ait,lnt]},GQt={moduleName:"Pivot",version:wi,rowModels:["clientSide"],beans:[VQt],dependsOn:[Dit,Oit,$K]},$Qt=(e,t)=>e.treeNode.sourceIdx-t.treeNode.sourceIdx,UQt=my.values(),XQt=class Nhe{constructor(t,n){this.parent=t,this.key=n,this.children=null,this.invalidatedHead=null,this.invalidatedNext=void 0,this.row=null,this.oldRow=null,this.duplicateRows=null,this.childrenAfterGroup=my,this.allLeafChildren=null,this.childrenChanged=!1,this.leafChildrenChanged=!1,this.sourceIdx=-1}get size(){return this.children?.size??0}isEmptyFillerNode(){return!this.row?.data&&!this.children?.size}enumChildren(){return this.children?.values()??UQt}upsertKey(t){typeof t!="string"&&(t=String(t));let n=this.children?.get(t);return n||(n=new Nhe(this,t),(this.children??(this.children=new Map))?.set(n.key,n)),n}appendKey(t){const n=this.children;typeof t!="string"&&(t=String(t));let r=n?.get(t);return r?(n.delete(t),n.set(t,r)):(r=new Nhe(this,t),(this.children??(this.children=new Map))?.set(r.key,r)),r}destroy(){const{row:t,parent:n}=this;t!==null&&t.treeNode===this&&(t.treeNode=null),n!==null&&(this.parent=null,n.children?.delete(this.key))}setRow(t){const n=this.row;return n===t?!1:(n!==null&&(n.treeNode=null),t!==null&&(t.treeNode=this),this.row=t,!0)}removeRow(t){const{row:n,duplicateRows:r}=this;if(n===t){if(this.row=null,r!==null)for(const i of r){this.row=i,r.delete(i);break}}else if(!r?.delete(t))return!1;return r?.size===0&&(this.duplicateRows=null),t.treeNode=null,!0}addDuplicateRow(t){let n=this.duplicateRows;if(n===null)n=new Set,this.duplicateRows=n;else if(n.has(t))return!1;return n.add(t),t.treeNode=this,t.childrenAfterGroup=my,t.allLeafChildren=null,!0}sortFirstDuplicateRow(){const t=this.duplicateRows,n=this.row;if(!n||!t)return n;let r=n;for(const i of t)i.sourceRowIndex<r.sourceRowIndex&&(r=i);return r!==n&&(t.delete(r),t.add(n),this.row=r),r}dequeueInvalidated(){for(;;){const t=this.invalidatedHead;if(!t)return null;if(this.invalidatedHead=t.invalidatedNext??null,t.parent===this)return t.invalidatedNext=void 0,t}}invalidate(){let t=this,n=this.parent;for(;n!==null&&t.invalidatedNext===void 0;)t.invalidatedNext=n.invalidatedHead,n.invalidatedHead=t,t=n,n=t.parent}invalidateOrder(){const t=this.parent;!t||t.childrenChanged||((t.children?.size??0)>1||(this.children?.size??0)>1||!t.row?.data)&&(t.childrenChanged=!0,t.invalidate())}getNewSourceIdx(){const t=this.row;return t?.data?t.sourceRowIndex:this.childrenAfterGroup[0]?.treeNode?.sourceIdx??this.sourceIdx}updateChildrenAfterGroup(t,n){this.childrenChanged=!1;const r=t&&this.children?.size;if(!r)return this.childrenAfterGroup.length===0?!1:(this.childrenAfterGroup=n?[]:my,this.leafChildrenChanged=!0,!0);let i=!1,o=this.childrenAfterGroup;o===my?(o=new Array(r),this.childrenAfterGroup=o,i=!0):o.length!==r&&(o.length=r,i=!0);let a=0,s=-1,l=!1;for(const c of this.enumChildren()){const u=c.getNewSourceIdx();u<s&&(l=!0),s=u,c.sourceIdx=u;const d=c.row;o[a]!==d&&(o[a]=d,i=!0),++a}return i&&(this.leafChildrenChanged=!0),l&&this.reorderChildrenList(o),i||l}reorderChildrenList(t){const n=t.length,r=this.children;t.sort($Qt),r.clear();for(let i=0;i<n;++i){const o=t[i].treeNode;r.set(o.key,o)}}updateAllLeafChildren(){const{parent:t,childrenAfterGroup:n}=this;this.leafChildrenChanged=!1;let r=!1;const i=n.length;if(i===0)this.allLeafChildren&&(r||(r=this.allLeafChildren.length!==0),this.allLeafChildren=null);else{const o=this.allLeafChildren??(this.allLeafChildren=[]),a=o.length;let s=0;for(let l=0;l<i;++l){const c=n[l],u=c.treeNode?.allLeafChildren,d=u?.length;if(c.data&&((s>=a||o[s]!==c)&&(o[s]=c,r=!0),++s),d)for(let p=0;p<d;++p){const h=u[p];(s>=a||o[s]!==h)&&(o[s]=h,r=!0),++s}}a!==s&&(o.length=s,r=!0)}r&&t&&(t.leafChildrenChanged=!0)}},YQt=e=>(e.treeNodeFlags&1)!==0,kit=e=>(e.treeNodeFlags&2)!==0,HRe=e=>(e.treeNodeFlags&4)!==0,KQt=e=>(e.treeNodeFlags&8)!==0,VRe=e=>(e.treeNodeFlags&16)!==0,GRe=(e,t)=>{t?e.treeNodeFlags|=2:e.treeNodeFlags&=-3},QQt=e=>{const t=e.treeNodeFlags;(t&1)!==0&&(e.treeNodeFlags=t|4)},ZQt=e=>{const t=e.treeNodeFlags;(t&1)!==0&&(e.treeNodeFlags=t|12)},N2=e=>{e&&(e.treeNodeFlags|=16)},$Re=e=>{const t=e.level<0,n=e.treeNodeFlags,r=(n&1)!==0;if(e.treeNodeFlags=1|n&-29,!r||t){const i=e.childrenAfterGroup;e.childrenAfterFilter=i,e.childrenAfterAggFilter=i,e.childrenAfterSort=i}if(t){const i=e.sibling;i&&(i.childrenAfterGroup=e.childrenAfterGroup,i.childrenMapped=e.childrenMapped)}},r4=e=>{e.treeNodeFlags=0},JQt=(e,t,n)=>{if(t!==n&&t!==null&&t.group&&kit(t)&&!e.isGroupOpenByDefault)return t.expanded;const r=e.isGroupOpenByDefault;return r?r({rowNode:n,field:n.field,key:n.key,level:n.level,rowGroupColumn:n.rowGroupColumn})==!0:e.expandByDefault===-1||n.level<e.expandByDefault},Lit=class extends Utt{constructor(){super(...arguments),this.oldGroupDisplayColIds="",this.rowsPendingDestruction=null,this.treeCommitPending=!0,this.treeRoot=null}activate(e){super.activate(e),this.treeSetRootNode(e),this.treeCommitPending=!0}treeSetRootNode(e){let t=this.treeRoot;t||(t=new XQt(null,""),t.childrenChanged=!0,this.treeRoot=t),t.row=e,e.treeNode=t}destroy(){super.destroy(),this.treeRoot=null,this.rowsPendingDestruction=null,this.oldGroupDisplayColIds=""}deactivate(){const{treeRoot:e,rootNode:t}=this;e&&(t&&e.removeRow(t),this.treeDestroy(e),e.destroy()),t&&r4(t),this.commitDestroyedRows(),super.deactivate(),this.treeRoot=null,this.oldGroupDisplayColIds=""}treeSetRow(e,t,n){const r=e.row;if(e===this.treeRoot)return!1;let i=!1;if(r!==t){const o=t.treeNode;o!==null&&o!==e&&(o.removeRow(t),o.invalidate()),r===null?(e.setRow(t),i=!0):r.data?e.addDuplicateRow(t)&&(i=!0):(e.setRow(t),this.destroyRow(r,!0),i=!0)}return!n&&!HRe(t)&&(QQt(t),i=!0),i&&e.invalidate(),this.rowsPendingDestruction?.delete(t),i}treeRemove(e,t){if(e===this.treeRoot)return;let n=!1;if(e.removeRow(t)){const r=e.parent;r&&(r.childrenChanged=!0),this.destroyRow(t,!t.data),n=!0}n&&e.invalidate()}treeCommit(e){const{treeRoot:t,rootNode:n}=this;if(!t||!n)return;this.treeCommitPending=!1;const r=this.treeData,i=e?.active?e:null,o={rootNode:n,activeChangedPath:i,treeData:r,expandByDefault:this.gos.get("groupDefaultExpanded"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault")};this.treeCommitChildren(o,t,!1,0);const a=t.row;a&&(r&&(a.leafGroup=!1),t.childrenChanged&&t.updateChildrenAfterGroup(r,!0)&&N2(a),(r||!i)&&(a.childrenAfterGroup=t.childrenAfterGroup),i&&VRe(a)&&i.addParentNode(a),$Re(a),a.updateHasChildren()),this.commitDestroyedRows(),r&&this.beans.selectionSvc?.updateSelectableAfterGrouping(e)}treeCommitChildren(e,t,n,r){for(;;){const i=t.dequeueInvalidated();if(i===null)break;i.parent===t&&this.treeCommitChild(e,i,n||!(t.row?.expanded??!0),r)}t.childrenChanged||(t.childrenChanged=(e.treeData?t.size:0)!==t.row.childrenAfterGroup?.length)}treeCommitChild(e,t,n,r){if(t.isEmptyFillerNode()){this.treeClear(t);return}if(this.treeCommitPreOrder(e,t,r),this.treeCommitChildren(e,t,n,r+1),t.isEmptyFillerNode()){this.treeClear(t);return}this.treeCommitPostOrder(e,t,n)}treeCommitPreOrder(e,t,n){let r=t.row;if(r===null?(r=this.createFillerRow(t,n),t.setRow(r)):(r=t.sortFirstDuplicateRow(),r.allChildrenCount===void 0&&(r.allChildrenCount=null)),e.treeData){if(r.level=n,r.parent=t.parent.row,t.oldRow!==r)for(const o of t.enumChildren()){const a=o.row;a!==null&&(a.parent=r)}const i=t.key;r.key!==i?(r.key=i,ZQt(r),this.setGroupData(r,i)):r.groupData||this.setGroupData(r,i)}else e.activeChangedPath||(r.level=0,r.parent=e.rootNode,r.key=t.key)}treeCommitPostOrder(e,t,n){const r=t.parent,i=t.row,o=t.oldRow,a=i.group;if(t.childrenChanged&&t.updateChildrenAfterGroup(e.treeData,!1)&&N2(i),t.leafChildrenChanged&&t.updateAllLeafChildren(),e.treeData||!e.activeChangedPath){i.childrenAfterGroup=t.childrenAfterGroup,i.allLeafChildren=t.allLeafChildren;const c=t.childrenAfterGroup.length>0,u=c||!i.data;a!==u?(N2(i),Jye(i,this.beans,u),!u&&!i.expanded&&GRe(i,!1)):i.hasChildren()!==c&&(N2(i),i.updateHasChildren()),u&&!kit(i)&&(i.expanded=JQt(e,o,i),GRe(i,!0)),HRe(i)&&(N2(r.row),KQt(i)&&i.setData(i.data))}o!==i&&(t.oldRow=i,o!==null&&(a||t.size!==0)&&N2(i),r.childrenChanged=!0,N2(r.row)),VRe(i)&&(this.treeData?e.activeChangedPath?.addParentNode(i):N2(e.rootNode)),$Re(i),t.duplicateRows?.size&&!t.duplicateRowsWarned&&(t.duplicateRowsWarned=!0,ut(186,{rowId:i.id,rowData:i.data,duplicateRowsData:Array.from(t.duplicateRows).map(c=>c.data)})),n&&i.rowIndex!==null&&i.clearRowTopAndRowIndex();const s=t.getNewSourceIdx(),l=t.sourceIdx;l!==s&&(t.sourceIdx=s,l!==-1&&(r.childrenChanged=!0))}createFillerRow(e,t){const n=new vp(this.beans);n.key=e.key,n.group=!0,n.field=null,n.leafGroup=!1,n.rowGroupIndex=null,n.allChildrenCount=null;let r=t+"-"+e.key,i=e.parent;for(;i!==null;){const o=i.parent;if(o===null)break;--t,r=`${t}-${i.key}-${r}`,i=o}return n.id=mW+r,n}setGroupData(e,t){e.groupValue=t;const n={};e.groupData=n;const r=this.beans.showRowGroupCols?.getShowRowGroupCols();if(r)for(const i of r)n[i.getColId()]=t}treeClear(e){const{parent:t,oldRow:n}=e;if(t!==null&&n!==null&&(t.childrenChanged=!0,t.row!==null&&N2(t.row)),e!==this.treeRoot){let r=e.row;for(;r!==null&&e.removeRow(r);)this.destroyRow(r,!r.data),r=e.row}for(const r of e.enumChildren())this.treeClear(r);e.destroy()}treeDestroy(e){const{row:t,duplicateRows:n}=e;if(t&&(e!==this.treeRoot&&!t.data?this.destroyRow(t,!0):r4(t)),n)for(const r of n)e!==this.treeRoot&&!r.data?this.destroyRow(r,!0):r4(r);for(const r of e.enumChildren())this.treeDestroy(r);e.destroy()}destroyRow(e,t){if(e.isSelected())t=!1;else if(!YQt(e)){r4(e);return}if(!t){(this.rowsPendingDestruction??(this.rowsPendingDestruction=new Set)).add(e);return}r4(e),e.clearRowTopAndRowIndex(),e.groupData=null}commitDestroyedRows(){const{rowsPendingDestruction:e}=this;let t=null;if(e!==null){for(const n of e)this.destroyRow(n,!0),n.isSelected()&&(t??(t=[])).push(n);this.rowsPendingDestruction=null}t&&this.deselectNodes(t)}refreshModel(e,t){if(t&&this.treeCommitPending&&this.treeCommit(e.changedPath),!!e.afterColumnsChanged)if(this.treeData){const n=this.beans.showRowGroupCols?.getShowRowGroupCols()?.map(r=>r.getId()).join("-")??"";if(this.oldGroupDisplayColIds!==n){this.oldGroupDisplayColIds=n;const r=this.rootNode?.childrenAfterGroup;if(r)for(let i=0,o=r.length??0;i<o;++i){const a=r[i],s=a.treeNode;s&&this.setGroupData(a,s.key)}}}else this.oldGroupDisplayColIds=""}},eZt=e=>{if(typeof e!="string"||!e.length)return[];const t=e.split(".");return t.includes("__proto__")?[]:t},_it=e=>{const t=eZt(e);let n=null;const r=t.length-1;return r===0?n=i=>i?.[e]:r>0?n=i=>{let o=i;for(let a=0;a<=r&&o!==null&&o!==void 0;++a)if(o=o[t[a]],a<r&&typeof o!="object"&&o!==void 0)return null;return o}:n=()=>{},n.path=e,n},tZt=class extends Lit{constructor(){super(...arguments),this.beanName="csrmChildrenTreeNodeSvc",this.childrenGetter=null}get treeData(){return this.gos.get("treeData")}extractRowData(){const e=this.treeRoot;return e&&Array.from(e.enumChildren(),t=>t.row.data)}destroy(){super.destroy(),this.childrenGetter=null}activate(e){const t=this.childrenGetter,n=this.gos.get("treeDataChildrenField");(!t||t.path!==n)&&(this.childrenGetter=_it(n)),super.activate(e)}updateRowData(e,t){return ut(268),{changedRowNodes:t,rowNodeTransaction:{add:[],remove:[],update:[]},rowsInserted:!1}}loadNewRowData(e){const t=this.treeRoot,n=this.rootNode,r=this.childrenGetter,i=new Map,o=[];n.allLeafChildren=o,this.treeClear(t),this.treeSetRootNode(n);const a=(s,l)=>{let c=i.get(l);if(c!==void 0){pi(2,{nodeId:c.id});return}c=this.createRowNode(l,o.length),i.set(l,c),o.push(c),s=s.upsertKey(c.id),this.treeSetRow(s,c,!0);const u=r?.(l);if(u)for(let d=0,p=u.length;d<p;++d)a(s,u[d])};for(let s=0,l=e.length;s<l;++s)a(t,e[s]);this.treeCommitPending=!0}setImmutableRowData(e,t){this.dispatchRowDataUpdateStartedEvent(t);const n=this.gos,r=this.treeRoot,i=this.rootNode,o=this.childrenGetter,a=qy(n),s=!n.get("suppressMaintainUnsortedOrder"),l=new Map,c=new Cz(!1,i);e.changedPath=c;const u=e.changedRowNodes,d=i.allLeafChildren,p=[],h=[];let g=!1,m=!1;const M=s?(w,S,A)=>{const z=S?.length;let O=!0,T=-1;for(let R=0;R<z;++R){const P=C(w,S[R],A);P>=0&&(P<T&&(O=!1),T=P)}O||(g=!0,w.childrenChanged||(w.childrenChanged=!0,w.invalidate()))}:(w,S,A)=>{for(let z=0,O=S.length;z<O;++z)C(w,S[z],A)},C=(w,S,A)=>{let z=l.get(S);if(z!==void 0)return ut(2,{nodeId:z.id}),-1;const O=a({data:S,level:A});let T=!1;z=this.getRowNode(O),z?z.data!==S&&(u.update(z),z.updateData(S),!z.selectable&&z.isSelected()&&h.push(z)):(z=this.createRowNode(S,-1),u.add(z),T=!0),l.set(S,z);let R,P;s?(P=w.appendKey(z.id),R=z.sourceRowIndex,z.sourceRowIndex=p.push(z)-1):(P=w.upsertKey(z.id),R=-1),this.treeSetRow(P,z,T)&&(m=!0);const F=o?.(S);return F&&M(P,F,A+1),R};if(M(r,t,0),d)for(let w=0,S=d.length;w<S;++w){const A=d[w],z=A.treeNode;if(z){const O=A.data;O&&!l.has(O)&&(A.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(A.pinnedSibling,null),u.remove(A),this.treeRemove(z,A))}}if(!s){const w=S=>{for(const A of S.enumChildren()){const z=A.row;z&&(z.sourceRowIndex=p.push(z)-1,w(A))}};w(r)}i.allLeafChildren=p,r.allLeafChildren=p,h.length&&this.deselectNodes(h),this.treeCommitPending=!0;const x=i.sibling;x&&(x.allLeafChildren=p),(m||g)&&(e.rowDataUpdated=!0,e.rowNodesOrderChanged||(e.rowNodesOrderChanged=g))}refreshModel(e,t){const n=this.rootNode;if(n&&e.changedProps?.has("treeData")&&!e.newData){this.treeSetRootNode(n);const r=this.treeRoot,i=n.allLeafChildren;if(i)for(let o=0,a=i.length;o<a;++o){const s=i[o];s.groupData=null,s.treeNode?.invalidate()}r.childrenChanged=!0,this.treeCommitPending=!0}super.refreshModel(e,t)}},nZt=class extends Lit{constructor(){super(...arguments),this.beanName="csrmPathTreeNodeSvc"}loadNewRowData(e){const t=this.rootNode,n=this.treeRoot;this.treeClear(n),this.treeSetRootNode(t),super.loadNewRowData(e);const r=t.allLeafChildren,i=this.gos.get("getDataPath");for(let o=0,a=r.length;o<a;++o)this.addOrUpdateRow(i,r[o],!0);this.treeCommitPending=!0}get treeData(){const e=this.gos;return e.get("treeData")&&!!e.get("getDataPath")}refreshModel(e,t){const n=e.changedRowNodes;n&&this.executeTransactions(n,e.rowNodesOrderChanged),super.refreshModel(e,t)}executeTransactions(e,t){const n=this.treeRoot;if(!n)return;this.treeSetRootNode(this.rootNode);for(const o of e.removals){const a=o.treeNode;a&&this.treeRemove(a,o)}const r=this.gos.get("getDataPath");for(const o of e.updates)this.addOrUpdateRow(r,o,!1);for(const o of e.adds)this.addOrUpdateRow(r,o,!0);const i=n.row?.allLeafChildren;if(t&&i)for(let o=0,a=i.length;o<a;++o){const s=i[o].treeNode;s&&s.sourceIdx!==o&&s.invalidateOrder()}this.treeCommitPending=!0}addOrUpdateRow(e,t,n){const r=this.treeRoot;if(!this.treeData){this.treeSetRow(r.upsertKey(t.id),t,n);return}const i=e?.(t.data),o=i?.length;if(!o)ut(185,{data:t.data});else{let a=0,s=r;do s=s.upsertKey(i[a++]);while(a<o);this.treeSetRow(s,t,n)}}},$$=2147483648,iMe=1073741824,n8=536870912,U$=536870911,rZt=class extends dt{constructor(){super(...arguments),this.parentIdGetter=null,this.oldGroupDisplayColIds=null}destroy(){super.destroy(),this.parentIdGetter=null,this.oldGroupDisplayColIds=null}execute(e){const t=e.rowNode;let n=!e.changedRowNodes,r=t.childrenAfterGroup;(!r||r===t.allLeafChildren)&&(n=!0,t.childrenAfterGroup=r=[]);let i=!1;(e.afterColumnsChanged||this.oldGroupDisplayColIds===null)&&(i=this.updateGroupDisplayColsIds());let o=this.parentIdGetter;const a=this.gos.get("treeDataParentIdField");(!o||o.path!==a)&&(o=_it(a));const s=!this.gos.get("getRowId");s||cZt(this.beans.rowModel,e,o,n),r.length=t.treeNodeFlags&U$,t.treeNodeFlags=0;const l=this.gos.get("groupDefaultExpanded"),c=this.gos.getCallback("isGroupOpenByDefault"),u=e.changedPath?.active?e.changedPath:void 0;let d=0;const p=(h,g)=>{++d;let m=h.treeNodeFlags;const b=h.childrenAfterGroup??(h.childrenAfterGroup=my),y=m&U$;let M=(m&iMe)!==0;b.length!==y&&(b.length=y,M=!0);let C=M||(m&$$)!==0,x=M;h.treeNodeFlags=m&n8,h.level=g++;let w=0;for(let T=0;T<y;++T){const R=b[T];p(R,g)&&(x=!0),w+=(R.allLeafChildren?.length??0)+1}let S=h.allLeafChildren;(S===b||S===void 0)&&(S=h.allLeafChildren=null),(x||(S?.length??0)!==w)&&(x=sZt(h,S,w));const A=h.id;(h.key!==A||!h.groupData||i)&&(C=!0,h.key=A,this.setGroupData(h,A));const z=h.group,O=y>0;return z!==O?(C=!0,Jye(h,this.beans,O),!O&&!h.expanded&&(m=h.treeNodeFlags&=~n8)):h.hasChildren()!==O&&(C=!0,h.updateHasChildren()),O&&(m&n8)===0&&(h.treeNodeFlags|=n8,h.expanded=lZt(c,l,h)),(M||x||n)&&aZt(h,b),C&&u?.addParentNode(h),x};for(let h=0,g=r.length;h<g;++h)p(r[h],0);n&&oZt(t,r),d!==t.allLeafChildren.length&&!s&&iZt(t,p)}updateGroupDisplayColsIds(){const e=this.beans.showRowGroupCols?.getShowRowGroupCols()?.map(t=>t.getId()).join("-")??"";return this.oldGroupDisplayColIds!==e?(this.oldGroupDisplayColIds=e,!0):!1}setGroupData(e,t){const n={};e.groupData=n;const r=this.beans.showRowGroupCols?.getShowRowGroupCols();if(r)for(const i of r)n[i.getColId()]=t}},iZt=(e,t)=>{const n=new Set,r=o=>{n.add(o);for(const a of o.childrenAfterGroup)r(a)};r(e);const i=e.childrenAfterGroup;i.length=0;for(const o of e.allLeafChildren)if(n.has(o))o.parent===e&&i.push(o);else{const a=o.parent;ut(270,{id:o.id,parentId:a.id}),a.childrenAfterGroup=a.childrenAfterGroup.filter(s=>s!==o),a.treeNodeFlags=a.treeNodeFlags-1|iMe|$$,o.parent=e,t(o,0),r(o),i.push(o)}},oZt=(e,t)=>{e.childrenAfterFilter=t,e.childrenAfterAggFilter=t,e.childrenAfterSort=t;const n=e.sibling;n&&(n.childrenAfterGroup=e.childrenAfterGroup,n.childrenAfterAggFilter=e.childrenAfterAggFilter,n.childrenAfterSort=e.childrenAfterSort)},aZt=(e,t)=>{e.allLeafChildren??(e.allLeafChildren=null),e.childrenAfterFilter??(e.childrenAfterFilter=t),e.childrenAfterAggFilter??(e.childrenAfterAggFilter=t),e.childrenAfterSort??(e.childrenAfterSort=t);const n=e.sibling;n&&(n.allLeafChildren=e.allLeafChildren,n.childrenAfterGroup=e.childrenAfterGroup,n.childrenAfterAggFilter=e.childrenAfterAggFilter,n.childrenAfterFilter=e.childrenAfterFilter,n.childrenAfterSort=e.childrenAfterSort)},sZt=(e,t,n)=>{if(n===0)return t?(e.allLeafChildren=null,!!t?.length):!1;let r=!1;t?t.length!==n&&(t.length=n,r=!0):(t=e.allLeafChildren=new Array(n),r=!0);let i=0;const o=e.childrenAfterGroup;if(o)for(const a of o){r||(r=t[i]!==a),t[i++]=a;const s=a.allLeafChildren;if(s)for(const l of s)r||(r=t[i]!==l),t[i++]=l}return r},lZt=(e,t,n)=>e?e({rowNode:n,field:n.field,key:n.key,level:n.level,rowGroupColumn:n.rowGroupColumn})==!0:t===-1||n.level<t,cZt=(e,{rowNode:t,changedRowNodes:n},r,i)=>{const o=n?.updates,a=n?.adds,s=t.allLeafChildren;for(let l=0,c=s.length;l<c;++l){const u=s[l],d=o?.has(u)||a?.has(u),p=u.parent;let h;if(d||i){const y=r(u.data);y==null?h=t:(h=e.getRowNode(y),h||(ut(271,{id:u.id,parentId:y}),h=t))}else h=u.parent??t;let g=h.treeNodeFlags;const m=g&U$;g=g&~U$|m+1;let b=h.childrenAfterGroup;(!b||b===my)&&(h.childrenAfterGroup=b=[]),(b.length<=m||b[m]!==u)&&(b[m]=u,g|=iMe),(d||u.parent!==h)&&(u.parent=h,g|=$$,p!==h&&p!==null&&(p.treeNodeFlags|=$$)),h.treeNodeFlags=g}},Nit={moduleName:"SharedTreeData",version:wi,dependsOn:[es,nMe,Sit,rMe]},uZt={moduleName:"TreeData",version:wi,beans:[nZt,tZt],dynamicBeans:{treeParentIdStrategy:rZt},rowModels:["clientSide"],dependsOn:[Nit,git,$K]},dZt="ag-Grid-MissingKey",pZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmBlockUtils"}wireBeans(e){this.valueSvc=e.valueSvc,this.showRowGroupCols=e.showRowGroupCols,this.nodeManager=e.ssrmNodeManager,this.expansionSvc=e.expansionSvc,this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory}createRowNode(e){const t=new vp(this.beans),n=e.rowHeight!=null?e.rowHeight:sp(this.beans);return t.setRowHeight(n),t.group=e.group,t.leafGroup=e.leafGroup,t.level=e.level,t.uiLevel=e.level,t.parent=e.parent,t.stub=!0,t.__needsRefreshWhenVisible=!1,t.group&&(t.expanded=!1,t.field=e.field,t.rowGroupColumn=e.rowGroupColumn,t.rowGroupIndex=e.level),t}destroyRowNode(e,t=!1){e.childStore&&!t&&(this.destroyBean(e.childStore),e.childStore=null),e.sibling&&!e.footer&&this.destroyRowNode(e.sibling,!1),e.clearRowTopAndRowIndex(),e.id!=null&&this.nodeManager.removeNode(e)}setTreeGroupInfo(e){e.updateHasChildren();const t=this.gos.get("getServerSideGroupKey"),n=e.hasChildren();n&&t!=null&&(e.key=t(e.data)),!n&&e.childStore!=null&&(this.destroyBean(e.childStore),e.childStore=null,e.expanded=!1)}setRowGroupInfo(e){if(e.key=this.valueSvc.getValue(e.rowGroupColumn,e),(e.key===null||e.key===void 0)&&AK(()=>{ut(190,{rowGroupId:e.rowGroupColumn?.getId(),data:e.data})},"SSBlock-BadKey"),this.gos.get("groupAllowUnbalanced")&&e.key===""){const i=this.serverSideRowModel.getParams();e.childStore=this.createBean(this.storeFactory.createStore(i,e))}eP(this.beans.gos)({node:e})&&(Ry(e,this.beans),e.sibling&&(e.sibling.uiLevel=e.uiLevel+1))}setMasterDetailInfo(e){const t=this.gos.get("isRowMaster");t!=null?e.master=t(e.data):e.master=!0}updateDataIntoRowNode(e,t){e.updateData(t),this.gos.get("treeData")?(this.setTreeGroupInfo(e),this.setChildCountIntoRowNode(e),this.updateRowFooter(e)):e.group?(this.setChildCountIntoRowNode(e),this.updateRowFooter(e)):this.gos.get("masterDetail")}updateRowFooter(e){if(!e.footer){if(e.group&&eP(this.beans.gos)({node:e})&&!e.sibling){Ry(e,this.beans);return}e.sibling&&tMe(e)}}setDataIntoRowNode(e,t,n,r){e.stub=!1;const i=this.gos.get("treeData");e.setDataAndId(t,n),i?this.setTreeGroupInfo(e):e.group?this.setRowGroupInfo(e):this.gos.get("masterDetail")&&this.setMasterDetailInfo(e),(i||e.group)&&(this.setGroupDataIntoRowNode(e),this.setChildCountIntoRowNode(e)),Ut(t)&&(e.setRowHeight(bd(this.beans,e,!1,r).height),e.sibling?.setRowHeight(bd(this.beans,e.sibling,!1,r).height))}setChildCountIntoRowNode(e){const t=this.gos.get("getChildCount");t&&e.setAllChildrenCount(t(e.data))}setGroupDataIntoRowNode(e){e.groupValue=e.key;const t=this.showRowGroupCols?.getShowRowGroupCols()??[],n=this.gos.get("treeData");t.forEach(r=>{if(e.groupData==null&&(e.groupData={}),n)e.groupData[r.getColId()]=e.key;else if(r.isRowGroupDisplayed(e.rowGroupColumn.getId())){const i=this.valueSvc.getValue(e.rowGroupColumn,e);e.groupData[r.getColId()]=i}})}clearDisplayIndex(e){e.clearRowTopAndRowIndex(),e.hasChildren()&&!!e.childStore&&e.childStore?.clearDisplayIndexes(),e.master&&e.detailNode&&e.detailNode?.clearRowTopAndRowIndex()}setDisplayIndex(e,t,n,r){const i=this.gos.get("groupAllowUnbalanced")&&e.group&&e.key==="";if(this.gos.get("groupHideOpenParents")&&e.group&&e.expanded||i?(e.setRowIndex(null),e.setRowTop(null)):(e.setRowIndex(t.value++),e.setRowTop(n.value),n.value+=e.rowHeight),e.setUiLevel(r),e.footer)return;if(e.master&&(e.expanded&&e.detailNode?(e.detailNode.setRowIndex(t.value++),e.detailNode.setRowTop(n.value),n.value+=e.detailNode.rowHeight):e.detailNode&&e.detailNode.clearRowTopAndRowIndex()),e.hasChildren()&&!!e.childStore){const l=e.childStore;e.expanded||i?l.setDisplayIndexes(t,n,i?r:r+1):l.clearDisplayIndexes()}}extractRowBounds(e,t){const n=r=>({rowHeight:r.rowHeight,rowTop:r.rowTop});if(e.rowIndex===t)return n(e);if(e.hasChildren()&&e.expanded&&e.childStore){const r=e.childStore;if(r.isDisplayIndexInStore(t))return r.getRowBounds(t)}else if(e.master&&e.expanded&&e.detailNode&&e.detailNode.rowIndex===t)return n(e.detailNode)}isPixelInNodeRange(e,t){return!Ut(e.rowTop)||!Ut(e.rowHeight)?!1:t>=e.rowTop&&t<e.rowTop+e.rowHeight}getIndexAtPixel(e,t){if(this.isPixelInNodeRange(e,t))return e.rowIndex;const n=e.master&&e.expanded,r=e.detailNode;if(n&&r&&this.isPixelInNodeRange(r,t))return r.rowIndex;if(e.hasChildren()&&e.expanded&&e.childStore){const i=e.childStore;if(i.isPixelInRange(t))return i.getRowIndexAtPixel(t)}return null}createNodeIdPrefix(e){const t=[];let n=e;for(;n&&n.level>=0;)n.key===""?t.push(dZt):t.push(n.key),n=n.parent;if(t.length>0)return t.reverse().join("-")}checkOpenByDefault(e){return this.expansionSvc?.checkOpenByDefault(e)}},hZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmExpandListener"}wireBeans(e){this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory}postConstruct(){Au(this.gos)&&this.addManagedEventListeners({rowGroupOpened:this.onRowGroupOpened.bind(this)})}onRowGroupOpened(e){const t=e.node;if(t.expanded){if(t.master)this.createDetailNode(t);else if(Yi(t.childStore)){const n=this.serverSideRowModel.getParams();t.childStore=this.createBean(this.storeFactory.createStore(n,t))}}else this.gos.get("purgeClosedRowNodes")&&Ut(t.childStore)&&(t.childStore=this.destroyBean(t.childStore));this.eventSvc.dispatchEvent({type:"storeUpdated"})}createDetailNode(e){if(Ut(e.detailNode))return e.detailNode;const t=new vp(this.beans);t.detail=!0,t.selectable=!1,t.parent=e,Ut(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1;const n=200,r=bd(this.beans,t).height;return t.rowHeight=r||n,e.detailNode=t,t}},fZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmFilterListener"}wireBeans(e){this.serverSideRowModel=e.rowModel,this.filterManager=e.filterManager,this.listenerUtils=e.ssrmListenerUtils}postConstruct(){Au(this.gos)&&this.addManagedEventListeners({advancedFilterEnabledChanged:()=>this.onFilterChanged(!0),filterChanged:()=>this.onFilterChanged()})}onFilterChanged(e){const t=this.serverSideRowModel.getParams();if(!t)return;const n=t.filterModel;let r,i;if(this.filterManager?.isAdvFilterEnabled()){r=this.filterManager.getAdvFilterModel();const l=e?Object.keys(n??{}):this.getAdvancedFilterColumns(n),c=this.getAdvancedFilterColumns(r);l.forEach(u=>c.add(u)),i=Array.from(c)}else if(r=this.filterManager?.getFilterModel()??{},e){const l=this.getAdvancedFilterColumns(n);Object.keys(r).forEach(c=>l.add(c)),i=Array.from(l)}else i=this.findChangedColumns(n,r);const o=this.listenerUtils.isSortingWithValueColumn(i),a=this.listenerUtils.isSortingWithSecondaryColumn(i),s={valueColChanged:o,secondaryColChanged:a,changedColumns:i};this.serverSideRowModel.refreshAfterFilter(r,s)}findChangedColumns(e,t){const n={};Object.keys(e).forEach(i=>n[i]=!0),Object.keys(t).forEach(i=>n[i]=!0);const r=[];return Object.keys(n).forEach(i=>{const o=JSON.stringify(e[i]),a=JSON.stringify(t[i]);o!=a&&r.push(i)}),r}getAdvancedFilterColumns(e){const t=new Set;if(!e)return t;const n=r=>{r.filterType==="join"?r.conditions.forEach(i=>n(i)):t.add(r.colId)};return n(e),t}},gZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmListenerUtils"}wireBeans(e){this.pivotResultCols=e.pivotResultCols,this.valueColsSvc=e.valueColsSvc}isSortingWithValueColumn(e){const t=(this.valueColsSvc?.columns??[]).map(n=>n.getColId());for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1}isSortingWithSecondaryColumn(e){const t=this.pivotResultCols?.getPivotResultCols();if(!t)return!1;const n=t.list.map(r=>r.getColId());for(let r=0;r<e.length;r++)if(n.indexOf(e[r])>-1)return!0;return!1}},mZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmSortSvc"}wireBeans(e){this.sortSvc=e.sortSvc,this.serverSideRowModel=e.rowModel,this.listenerUtils=e.ssrmListenerUtils}postConstruct(){Au(this.gos)&&this.addManagedEventListeners({sortChanged:this.onSortChanged.bind(this)})}onSortChanged(){const e=this.serverSideRowModel.getParams();if(!e)return;const t=this.sortSvc.getSortModel(),n=e.sortModel,r=this.findChangedColumnsInSort(t,n),i=this.listenerUtils.isSortingWithValueColumn(r),o=this.listenerUtils.isSortingWithSecondaryColumn(r),a={valueColChanged:i,secondaryColChanged:o,changedColumns:r};this.serverSideRowModel.refreshAfterSort(t,a)}findChangedColumnsInSort(e,t){let n=[];[e,t].forEach(o=>{if(o){const a=o.map(s=>s.colId);n=n.concat(a)}});const r=(o,a)=>{const s=o?o.sort:null,l=a?a.sort:null;return s!==l},i=(o,a)=>{const s=o?t.indexOf(o):-1,l=a?e.indexOf(a):-1;return s!==l};return n.filter(o=>{const a=t.find(l=>l.colId===o),s=e.find(l=>l.colId===o);return r(a,s)||i(a,s)})}},vZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmNodeManager",this.rowNodes=new Map}addRowNode(e){const t=e.id;this.rowNodes.has(t)&&ut(187,{rowId:t,firstData:this.rowNodes.get(t).data,secondData:e.data}),this.rowNodes.set(t,e)}removeNode(e){const t=e.id;this.rowNodes.delete(t)}destroy(){this.clear(),super.destroy()}clear(){this.rowNodes.clear(),super.destroy()}},bZt=class extends dt{constructor(){super(...arguments),this.beanName="rowModel",this.pauseStoreUpdateListening=!1,this.started=!1,this.managingPivotResultColumns=!1,this.onRowHeightChanged_debounced=Ml(this,this.onRowHeightChanged.bind(this),100)}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.pivotResultCols=e.pivotResultCols,this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc,this.valueColsSvc=e.valueColsSvc,this.filterManager=e.filterManager,this.sortSvc=e.sortSvc,this.rowRenderer=e.rowRenderer,this.nodeManager=e.ssrmNodeManager,this.storeFactory=e.ssrmStoreFactory,this.pivotColDefSvc=e.pivotColDefSvc}ensureRowHeightsValid(){return!1}start(){this.started=!0,this.updateDatasource()}destroyDatasource(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)}postConstruct(){const e=this.resetRootStore.bind(this);this.addManagedEventListeners({newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.onStoreUpdated.bind(this),columnValueChanged:e,columnPivotChanged:e,columnRowGroupChanged:e,columnPivotModeChanged:e}),this.addManagedPropertyListeners(["masterDetail","treeData","removePivotHeaderRowWhenSingleValueColumn","cacheBlockSize"],e),this.addManagedPropertyListeners(["groupAllowUnbalanced","groupTotalRow"],()=>this.onStoreUpdated()),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights()),this.verifyProps(),this.addManagedPropertyListener("serverSideDatasource",()=>this.updateDatasource())}updateDatasource(){const e=this.gos.get("serverSideDatasource");e&&this.setDatasource(e)}verifyProps(){Kp(this.gos)&&!this.gos.exists("getRowId")&&ut(188)}setDatasource(e){this.started&&(this.destroyDatasource(),this.datasource=e,this.resetRootStore())}applyRowData(e,t,n){const r=this.getRootStore();if(!r)return;const i=r.getChildStore(n);i&&i.applyRowData(e,t,e.rowData.length)}isLastRowIndexKnown(){const e=this.getRootStore();return e?e.isLastRowIndexKnown():!1}onColumnEverything(){if(!this.storeParams){this.resetRootStore();return}const e=this.columnsToValueObjects(this.rowGroupColsSvc?.columns),t=this.columnsToValueObjects(this.valueColsSvc?.columns),n=this.columnsToValueObjects(this.pivotColsSvc?.columns),r=c=>{const u={};c.oldCols.forEach(h=>u[h.id]=h);const d=c.newCols.every(h=>{const g=u[h.id];return g&&delete u[h.id],g&&g.field===h.field&&g.aggFunc===h.aggFunc}),p=!c.allowRemovedColumns&&!!Object.values(u).length;return d&&!p},i=!mz(this.storeParams.sortModel,this.sortSvc?.getSortModel()??[]),o=!r({oldCols:this.storeParams.rowGroupCols,newCols:e}),a=!r({oldCols:this.storeParams.pivotCols,newCols:n}),s=!!e?.length&&!r({oldCols:this.storeParams.valueCols,newCols:t,allowRemovedColumns:!0});if(i||o||a||s)this.resetRootStore();else{const c=this.createStoreParams();this.storeParams.rowGroupCols=c.rowGroupCols,this.storeParams.pivotCols=c.pivotCols,this.storeParams.valueCols=c.valueCols}}destroyRootStore(){!this.rootNode||!this.rootNode.childStore||(this.rootNode.childStore=this.destroyBean(this.rootNode.childStore),this.nodeManager.clear())}refreshAfterSort(e,t){this.storeParams&&(this.storeParams.sortModel=e);const n=this.getRootStore();n&&(n.refreshAfterSort(t),this.onStoreUpdated())}generateSecondaryColumns(e){if(!this.pivotColDefSvc){this.gos.assertModuleRegistered("SharedPivot",2);return}const t=this.pivotColDefSvc.createColDefsFromFields(e);this.managingPivotResultColumns=!0,this.pivotResultCols?.setPivotResultCols(t,"rowModelUpdated")}resetRowHeights(){const e=this.resetRowHeightsForAllRowNodes(),t=bd(this.beans,this.rootNode);if(this.rootNode.setRowHeight(t.height,t.estimated),this.rootNode.sibling){const n=bd(this.beans,this.rootNode.sibling);this.rootNode.sibling.setRowHeight(n.height,n.estimated)}e&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{const n=bd(this.beans,t);t.setRowHeight(n.height,n.estimated);const r=t.detailNode;if(r){const i=bd(this.beans,r);r.setRowHeight(i.height,i.estimated)}if(t.sibling){const i=bd(this.beans,t.sibling);r?.setRowHeight(i.height,i.estimated)}e=!0}),e}resetRootStore(){this.destroyRootStore(),this.rootNode=new vp(this.beans),this.rootNode.group=!0,this.rootNode.level=-1,this.datasource&&(this.storeParams=this.createStoreParams(),this.rootNode.childStore=this.createBean(this.storeFactory.createStore(this.storeParams,this.rootNode)),this.updateRowIndexesAndBounds()),this.managingPivotResultColumns&&(this.pivotResultCols?.setPivotResultCols(null,"api"),this.managingPivotResultColumns=!1),this.dispatchModelUpdated(!0)}columnsToValueObjects(e=[]){return e.map(t=>({id:t.getId(),aggFunc:t.getAggFunc(),displayName:this.colNames.getDisplayNameForColumn(t,"model"),field:t.getColDef().field}))}createStoreParams(){const e=this.columnsToValueObjects(this.rowGroupColsSvc?.columns),t=this.columnsToValueObjects(this.valueColsSvc?.columns),n=this.columnsToValueObjects(this.pivotColsSvc?.columns),r=rye(this.gos);return{valueCols:t,rowGroupCols:e,pivotCols:n,pivotMode:this.colModel.isPivotMode(),filterModel:this.filterManager?.isAdvFilterEnabled()?this.filterManager?.getAdvFilterModel():this.filterManager?.getFilterModel()??{},sortModel:this.sortSvc?.getSortModel()??[],datasource:this.datasource,lastAccessedSequence:{value:0},dynamicRowHeight:r}}getParams(){return this.storeParams}dispatchModelUpdated(e=!1){this.eventSvc.dispatchEvent({type:"modelUpdated",animate:!e,keepRenderedRows:!e,newPage:!1,newData:!1})}onStoreUpdated(){this.pauseStoreUpdateListening||(this.updateRowIndexesAndBounds(),this.dispatchModelUpdated())}onRowHeightChanged(){this.updateRowIndexesAndBounds(),this.dispatchModelUpdated()}updateRowIndexesAndBounds(){const e=this.getRootStore();e&&e.setDisplayIndexes({value:0},{value:0},0)}retryLoads(){const e=this.getRootStore();e&&(e.retryLoads(),this.onStoreUpdated())}getRow(e){const t=this.getRootStore();if(t)return t.getRowUsingDisplayIndex(e)}setPaused(e){this.pauseStoreUpdateListening=e}expandAll(e){this.pauseStoreUpdateListening=!0,this.forEachNode(t=>{t.stub||t.hasChildren()&&t.setExpanded(e)}),this.pauseStoreUpdateListening=!1,this.onStoreUpdated()}refreshAfterFilter(e,t){this.storeParams&&(this.storeParams.filterModel=e);const n=this.getRootStore();n&&(n.refreshAfterFilter(t),this.onStoreUpdated())}getRootStore(){return this.rootNode?.childStore}getRowCount(){const e=this.getRootStore();return e?e.getDisplayIndexEnd():0}getTopLevelRowCount(){const e=this.getRootStore();return e?e.getRowCount():1}getTopLevelRowDisplayedIndex(e){const t=this.getRootStore();return t?t.getTopLevelRowDisplayedIndex(e):e}getRowBounds(e){const t=this.getRootStore();return t?t.getRowBounds(e):{rowTop:0,rowHeight:sp(this.beans)}}getBlockStates(){const e=this.getRootStore();if(!e)return;const t={};return e.forEachStoreDeep(n=>{const r=n.getBlockStates();for(const i of Object.keys(r))t[i]=r[i]}),t}getRowIndexAtPixel(e){const t=this.getRootStore();return e<=0||!t?0:t.getRowIndexAtPixel(e)}isEmpty(){return!1}isRowsToRender(){return this.getRootStore()!=null&&this.getRowCount()>0}getType(){return"serverSide"}forEachNode(e){const t=this.getRootStore();t&&t.forEachNodeDeep(e)}forEachDisplayedNode(e){const t=(n,r)=>{n.stub||!n.displayed||e(n,r)};this.forEachNode(t)}forEachNodeAfterFilterAndSort(e,t=!1){const n=this.getRootStore();n&&n.forEachNodeDeepAfterFilterAndSort(e,void 0,t)}executeOnStore(e,t){if(!this.started)return!1;const n=this.getRootStore();if(!n)return!0;const r=n.getChildStore(e);return r&&t(r),!0}refreshStore(e={}){const t=e.route?e.route:[];this.executeOnStore(t,n=>n.refreshStore(e.purge==!0))}getStoreState(){const e=[],t=this.getRootStore();return t&&t.addStoreStates(e),e}getNodesInRangeForSelection(e,t){const n=e.rowIndex,r=t.rowIndex;if(n===null&&r===null)return[];if(r===null)return e?[e]:[];if(n===null)return[t];const i=[],[o,a]=[n,r].sort((s,l)=>s-l);return this.forEachNode(s=>{const l=s.rowIndex;l==null||s.stub||l>=o&&l<=a&&i.push(s)}),i.length!==a-o+1?null:i}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n),n.detailNode&&n.detailNode.id===e&&(t=n.detailNode)}),t}isRowPresent(e){return!!this.getRowNode(e.id)}setRowCount(e,t){const n=this.getRootStore();n&&n.setRowCount(e,t)}destroy(){this.destroyDatasource(),this.destroyRootStore(),super.destroy()}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}};function yZt(e){return e.selectionSvc?.getSelectionState()??null}function MZt(e,t){e.selectionSvc?.setSelectionState(t,"api")}function CZt(e,t){return e.ssrmTxnManager?.applyTransaction(t)}function xZt(e,t){const n=t.startRow??0,r=t.route??[];if(n<0){ut(189,{startRow:n});return}vD(e)?.applyRowData(t.successParams,n,r)}function wZt(e,t,n){return e.ssrmTxnManager?.applyTransactionAsync(t,n)}function SZt(e){vD(e)?.retryLoads()}function AZt(e){return e.ssrmTxnManager?.flushAsyncTransactions()}function OZt(e,t){vD(e)?.refreshStore(t)}function zZt(e){return vD(e)?.getStoreState()??[]}var TZt=class extends vit{constructor(){super(...arguments),this.beanName="expansionSvc",this.queuedRowIds=new Set}wireBeans(e){this.serverSideRowModel=e.rowModel}postConstruct(){this.addManagedEventListeners({columnRowGroupChanged:()=>{this.queuedRowIds.clear()}})}checkOpenByDefault(e){if(!e.isExpandable())return;if(this.queuedRowIds.has(e.id)){this.queuedRowIds.delete(e.id),e.setExpanded(!0);return}const t=this.gos.getCallback("isServerSideGroupOpenByDefault");if(!t)return;const n={data:e.data,rowNode:e};t(n)&&e.setExpanded(!0)}expandRows(e){e.forEach(t=>{const n=this.serverSideRowModel.getRowNode(t);n?n.setExpanded(!0):this.queuedRowIds.add(t)})}expandAll(e){this.serverSideRowModel.expandAll(e)}onGroupExpandedOrCollapsed(){}dispatchExpandedEvent(e){this.eventSvc.dispatchEvent(e),this.beans.rowRenderer.refreshCells({rowNodes:[e.node]})}},Ire=class extends dt{constructor(e){super(),this.selectionCtx=e,this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectAllUsed=!1,this.selectedNodes={}}getSelectedState(){return{selectAll:this.selectedState.selectAll,toggledNodes:[...this.selectedState.toggledNodes]}}setSelectedState(e){if(typeof e!="object"){pi(116);return}if(!("selectAll"in e)){pi(116);return}if(typeof e.selectAll!="boolean"){pi(117);return}if(!("toggledNodes"in e)||!Array.isArray(e.toggledNodes))return ut(197);const t={selectAll:e.selectAll,toggledNodes:new Set};e.toggledNodes.forEach(r=>{typeof r=="string"?t.toggledNodes.add(r):ut(196,{key:r})});const n=t.selectAll||t.toggledNodes.size>1;if(lye(this.gos)&&!By(this.gos)&&n){ut(130);return}this.selectedState=t}deleteSelectionStateFromParent(e,t){if(this.selectedState.toggledNodes.size===0)return!1;let n=!1;return t.forEach(r=>{this.selectedState.toggledNodes.delete(r)&&(n=!0)}),n}setNodesSelected(e){const{nodes:t,clearSelection:n,newValue:r,source:i}=e;if(t.length===0)return 0;const o=n&&r;if(!By(this.gos)||o){if(t.length>1)return pi(130),0;const s=t[0],l=s.footer?s.sibling:s;return r&&l.selectable?(this.selectedNodes={[l.id]:l},this.selectedState={selectAll:!1,toggledNodes:new Set([l.id])}):(this.selectedNodes={},this.selectedState={selectAll:!1,toggledNodes:new Set}),1}const a=(s,l=r)=>{const c=s.footer?s.sibling:s;l&&c.selectable?this.selectedNodes[c.id]=c:delete this.selectedNodes[c.id],l===this.selectedState.selectAll||!c.selectable?this.selectedState.toggledNodes.delete(c.id):this.selectedState.toggledNodes.add(c.id)};return t.forEach(s=>a(s)),t.length===1&&i==="api"&&this.selectionCtx.setRoot(t[0].footer?t[0].sibling:t[0]),1}processNewRow(e){this.selectedNodes[e.id]&&(this.selectedNodes[e.id]=e)}isNodeSelected(e){const t=this.selectedState.toggledNodes.has(e.id);return this.selectedState.selectAll?!t:t}getSelectedNodes(e=!1,t=!0){const{selectedState:{selectAll:n},selectedNodes:r,selectAllUsed:i}=this;return t&&i&&ut(199),e&&n?null:Object.values(r)}getSelectedRows(){return(this.getSelectedNodes()??[]).map(e=>e.data)}getSelectionCount(){return this.selectedState.selectAll?-1:this.selectedState.toggledNodes.size}isEmpty(){return!this.selectedState.selectAll&&!this.selectedState.toggledNodes?.size}selectAllRowNodes(){this.reset(!0)}deselectAllRowNodes(){this.reset(!1)}reset(e){this.selectedState={selectAll:e,toggledNodes:new Set},this.selectedNodes={},this.selectAllUsed||(this.selectAllUsed=e)}getSelectAllState(){return this.selectedState.selectAll?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}},r8=class extends dt{constructor(e){super(),this.selectionCtx=e,this.selectedState={selectAllChildren:!1,toggledNodes:new Map}}wireBeans(e){this.rowModel=e.rowModel,this.rowGroupColsSvc=e.rowGroupColsSvc,this.filterManager=e.filterManager,this.selectionSvc=e.selectionSvc}postConstruct(){this.addManagedEventListeners({modelUpdated:()=>this.removeRedundantState(),columnRowGroupChanged:()=>this.selectionSvc.reset("rowGroupChanged")})}getSelectedState(){const{gos:e,rowGroupColsSvc:t,selectedState:n}=this,r=e.get("treeData"),i=(o,a,s)=>{const l={nodeId:s};if((r||t&&a<=t.columns.length)&&(l.selectAllChildren=o.selectAllChildren),o.toggledNodes.size){const c=[];o.toggledNodes.forEach((u,d)=>{const p=i(u,a+1,d);c.push(p)}),l.toggledNodes=c}return l};return i(n,0)}setSelectedState(e){if("selectAll"in e){pi(111);return}const t=(n,r)=>{if(typeof n!="object")throw pi(243),new Error;if("selectAllChildren"in n&&typeof n.selectAllChildren!="boolean")throw pi(244),new Error;if("toggledNodes"in n){if(!Array.isArray(n.toggledNodes))throw pi(245),new Error;if(!n.toggledNodes.every(l=>typeof l=="object"&&"nodeId"in l&&typeof l.nodeId=="string"))throw pi(246),new Error}const i=n.selectAllChildren??!r,o=n.toggledNodes?.map(s=>[s.nodeId,t(s,i)]);if(o?.some(([,s])=>i===s.selectAllChildren&&s.toggledNodes.size===0))throw pi(247),new Error;return{selectAllChildren:i,toggledNodes:new Map(o)}};try{this.selectedState=t(e,!!e.selectAllChildren)}catch{}}deleteSelectionStateFromParent(e,t){let n=this.selectedState;const r=[...e];for(;n&&r.length;)n=n.toggledNodes.get(r.pop());if(!n)return!1;let i=!1;return t.forEach(o=>{n?.toggledNodes.delete(o)&&(i=!0)}),i&&this.removeRedundantState(),i}setNodesSelected({nodes:e,newValue:t,clearSelection:n,source:r}){if(e.length===0)return 0;const i=n&&t;if(!By(this.gos)||i){if(e.length>1)return pi(130),0;this.deselectAllRowNodes()}return e.forEach(o=>{const a=o.footer?o.sibling:o,s=this.getRouteToNode(a);this.recursivelySelectNode(s,this.selectedState,t)}),this.removeRedundantState(),e.length===1&&r==="api"&&this.selectionCtx.setRoot(e[0].footer?e[0].sibling:e[0]),1}isNodeSelected(e){const t=this.getRouteToNode(e);return this.isNodePathSelected(t,this.selectedState)}isNodePathSelected([e,...t],n){if(t.length===0){const r=n.toggledNodes.has(e.id);if(e.hasChildren()){const i=n.toggledNodes.get(e.id);if(i&&i.toggledNodes.size)return}return n.selectAllChildren?!r:r}if(n.toggledNodes.has(e.id)){const r=n.toggledNodes.get(e.id);if(r)return this.isNodePathSelected(t,r)}return n.selectAllChildren}getRouteToNode(e){const t=[];let n=e;for(;n.parent;)t.push(n),n=n.parent;return t.reverse()}removeRedundantState(){if(this.filterManager?.isAnyFilterPresent())return;const e=(t=this.selectedState,n,r)=>{if(t.toggledNodes.forEach((a,s)=>{e(a,s,t)}),n){const s=this.rowModel.getRowNode(n)?.childStore;if(s?.isLastRowIndexKnown()&&t.toggledNodes.size>=s.getRowCount()){for(const u of t.toggledNodes.entries()){const[d,p]=u;if(p.toggledNodes.size>0||!this.rowModel.getRowNode(d))return}t.selectAllChildren=!t.selectAllChildren,t.toggledNodes.clear()}}const i=t.toggledNodes.size===0,o=r?.selectAllChildren===t.selectAllChildren;i&&o&&r?.toggledNodes.delete(n)};e()}recursivelySelectNode([e,...t],n,r){if(!e)return;if(!t.length){const s=e.selectable;if(n.selectAllChildren===r||!s){n.toggledNodes.delete(e.id);return}const c={selectAllChildren:r,toggledNodes:new Map};n.toggledNodes.set(e.id,c);return}const o=n.toggledNodes.has(e.id),a=n.toggledNodes.get(e.id)??{selectAllChildren:n.selectAllChildren,toggledNodes:new Map};o||n.toggledNodes.set(e.id,a),this.recursivelySelectNode(t,a,r),n.selectAllChildren===a.selectAllChildren&&a.toggledNodes.size===0&&n.toggledNodes.delete(e.id)}getSelectedNodes(e=!1){if(ut(202),this.selectedState.selectAllChildren&&e)return null;const t=[];return this.rowModel.forEachNode(n=>{n.isSelected()&&t.push(n)}),t}processNewRow(){}getSelectedRows(){return this.getSelectedNodes()?.map(e=>e.data)??[]}getSelectionCount(){return-1}isEmpty(){return!this.selectedState.selectAllChildren&&!this.selectedState.toggledNodes?.size}selectAllRowNodes(){this.reset(!0)}deselectAllRowNodes(){this.reset(!1)}reset(e){this.selectedState={selectAllChildren:e,toggledNodes:new Map}}getSelectAllState(){return this.selectedState.selectAllChildren?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}},EZt=class extends Xtt{constructor(){super(...arguments),this.beanName="selectionSvc"}postConstruct(){super.postConstruct(),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],()=>{const n=yz(this.gos),r=n&&this.selectionStrategy instanceof Ire?r8:!n&&this.selectionStrategy instanceof r8?Ire:void 0;r&&(this.destroyBean(this.selectionStrategy),this.selectionStrategy=this.createManagedBean(new r(this.selectionCtx)),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}),this.addManagedPropertyListeners(["rowSelection"],()=>{const n=tP(this.gos);n!==this.selectionMode&&(this.selectionMode=n,this.deselectAllRowNodes({source:"api"}))}),this.selectionMode=tP(this.gos);const t=yz(this.gos)?r8:Ire;this.selectionStrategy=this.createManagedBean(new t(this.selectionCtx))}handleSelectionEvent(e,t,n){if(this.isRowSelectionBlocked(t))return 0;let r=0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,n);return i==null?0:(this.selectionCtx.selectAll=!1,"select"in i?(i.reset?this.selectionStrategy.deselectAllRowNodes({source:"api"}):this.selectionStrategy.setNodesSelected({nodes:i.deselect,newValue:!1,source:n}),r=this.selectionStrategy.setNodesSelected({nodes:i.select,newValue:!0,source:n})):r=this.selectionStrategy.setNodesSelected({nodes:[i.node],newValue:i.newValue,clearSelection:i.clearSelection,event:e,source:n}),this.shotgunResetNodeSelectionState(n),this.dispatchSelectionChanged(n),r)}getSelectionState(){return this.selectionStrategy.getSelectedState()}setSelectionState(e,t){if(!Kp(this.gos)){ut(132);return}Array.isArray(e)||(this.selectionStrategy.setSelectedState(e),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged(t))}setNodesSelected(e){if(!Kp(this.gos)&&e.newValue)return ut(132),0;const{nodes:t,...n}=e;if(t.length>1&&this.selectionMode!=="multiRow")return ut(130),0;const r={nodes:t.filter(o=>o.selectable),...n};if(!r.nodes.length)return 0;const i=this.selectionStrategy.setNodesSelected(r);return this.shotgunResetNodeSelectionState(r.source),this.dispatchSelectionChanged(r.source),i}deleteSelectionStateFromParent(e,t){this.selectionStrategy.deleteSelectionStateFromParent(e,t)&&(this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}shotgunResetNodeSelectionState(e){this.beans.rowModel.forEachNode(t=>{if(t.stub)return;const n=this.selectionStrategy.isNodeSelected(t);n!==t.isSelected()&&this.selectRowNode(t,n,void 0,e)})}getSelectedNodes(){return this.selectionStrategy.getSelectedNodes()??[]}getSelectedRows(){return this.selectionStrategy.getSelectedRows()}getSelectionCount(){return this.selectionStrategy.getSelectionCount()}syncInRowNode(e){this.selectionStrategy.processNewRow(e);const t=this.selectionStrategy.isNodeSelected(e);if(t!=!1&&!e.selectable){this.selectionStrategy.setNodesSelected({nodes:[e],newValue:!1,source:"api"}),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api");return}e.__selected=t}reset(){this.selectionStrategy.deselectAllRowNodes({source:"api"}),this.selectionCtx.reset()}isEmpty(){return this.selectionStrategy.isEmpty()}hasNodesToSelect(){return!0}selectAllRowNodes(e){if(!Kp(this.gos)){ut(132);return}if(URe(e),lye(this.gos)&&!By(this.gos))return ut(130);this.selectionStrategy.selectAllRowNodes(e),this.selectionCtx.selectAll=!0,this.beans.rowModel.forEachNode(t=>{t.stub||this.selectRowNode(t,!0,void 0,e.source)}),this.dispatchSelectionChanged(e.source)}deselectAllRowNodes(e){URe(e),this.selectionStrategy.deselectAllRowNodes(e),this.selectionCtx.selectAll=!1,this.beans.rowModel.forEachNode(t=>{t.stub||this.selectRowNode(t,!1,void 0,e.source)}),this.dispatchSelectionChanged(e.source)}getSelectAllState(e){return this.selectionStrategy.getSelectAllState(e)}getBestCostNodeSelection(){return ut(194,{method:"getBestCostNodeSelection"})}updateSelectable(){if(!Kp(this.gos))return;const e=[];this.beans.rowModel.forEachNode(t=>{!this.updateRowSelectable(t,!0)&&t.isSelected()&&e.push(t)}),e.length&&this.setNodesSelected({nodes:e,newValue:!1,source:"selectableChanged"})}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.selectionStrategy instanceof r8?null:this.selectionStrategy.getSelectedNodes(!0,!1),serverSideState:this.getSelectionState()})}updateSelectableAfterGrouping(){return pi(194,{method:"updateSelectableAfterGrouping"})}refreshMasterNodeState(){}setDetailSelectionState(){}};function URe({selectAll:e}){(e==="filtered"||e==="currentPage")&&ut(195,{justCurrentPage:e==="currentPage"})}var RZt=class extends dt{constructor(){super(...arguments),this.beanName="rowChildrenSvc"}getHasChildrenValue(e){const t=this.gos.get("treeData"),n=this.gos.get("isServerSideGroup");return!e.stub&&!e.footer&&(t?!!n&&n(e.data):!!e.group)}},IZt=class extends dt{constructor(){super(...arguments),this.beanName="lazyBlockLoadingSvc",this.outboundRequests=0,this.cacheLoadingNodesMap=new Map,this.isCheckQueued=!1,this.nextBlockToLoad=void 0}wireBeans(e){this.rowRenderer=e.rowRenderer,this.rowModel=e.rowModel}postConstruct(){this.maxOutboundRequests=Oet(this.gos)}subscribe(e){this.cacheLoadingNodesMap.set(e,new Set)}unsubscribe(e){this.cacheLoadingNodesMap.delete(e)}queueLoadCheck(){this.isCheckQueued||(this.isCheckQueued=!0,setTimeout(()=>{this.queueLoadAction(),this.isCheckQueued=!1}))}onLoadComplete(){this.outboundRequests-=1,this.queueLoadCheck()}hasAvailableLoadBandwidth(){return this.maxOutboundRequests===void 0?!0:this.outboundRequests<this.maxOutboundRequests}queueLoadAction(){const e=this.getBlockToLoad();if(!e)return;const t=this.nextBlockToLoad&&this.nextBlockToLoad.cache===e.cache&&this.nextBlockToLoad.index===e.index;if(!t&&(!this.nextBlockToLoad||!t)){this.nextBlockToLoad=e,window.clearTimeout(this.loaderTimeout);const n=Number(this.nextBlockToLoad.index),r=this.nextBlockToLoad.cache,i=e.index+e.cache.getBlockSize();this.loaderTimeout=window.setTimeout(()=>{r.isAlive()&&(this.loaderTimeout=void 0,this.attemptLoad(r,n,i),this.nextBlockToLoad=void 0)},this.gos.get("blockLoadDebounceMillis"))}}attemptLoad(e,t,n){this.hasAvailableLoadBandwidth()&&(this.executeLoad(e,t,n),this.queueLoadCheck())}executeLoad(e,t,n){const r=e.getSsrmParams(),i={startRow:t,endRow:n,rowGroupCols:r.rowGroupCols,valueCols:r.valueCols,pivotCols:r.pivotCols,pivotMode:r.pivotMode,groupKeys:e.store.getParentNode().getRoute()??[],filterModel:r.filterModel,sortModel:r.sortModel},o=this.cacheLoadingNodesMap.get(e),a=()=>{for(let d=0;d<n-t;d++)o.delete(t+d)},s=()=>{for(let d=0;d<n-t;d++)o.add(t+d)},l=d=>{this.onLoadComplete(),e.onLoadSuccess(t,n-t,d),a()},c=()=>{this.onLoadComplete(),e.onLoadFailed(t,n-t),a()},u=Gn(this.gos,{request:i,success:l,fail:c,parentNode:e.store.getParentNode()});s(),this.outboundRequests+=1,e.getSsrmParams().datasource?.getRows(u)}getBlockToLoad(){const e=this.rowRenderer.firstRenderedRow,t=this.rowRenderer.lastRenderedRow;for(let s=e;s<=t;s++){const l=this.rowModel.getRow(s);if(!l)continue;const c=l.parent?.childStore;if(!c)continue;const u=c.getCache(),d=u.getNodes().getBy("node",l);if(!(!d||this.cacheLoadingNodesMap.get(u)?.has(d.index))&&(l.__needsRefreshWhenVisible||l.stub&&!l.failedLoad))return{cache:u,index:u.getBlockStartIndex(d.index)}}let n=null,r=null,i=Number.MAX_SAFE_INTEGER;for(const s of this.cacheLoadingNodesMap.keys())s.getNodesToRefresh().forEach(c=>{if(c.rowIndex==null){r=c,n=s;return}const u=s.getNodes().getBy("node",c);if(!u||this.cacheLoadingNodesMap.get(s)?.has(u.index))return;const p=Math.abs(e-c.rowIndex),h=Math.abs(c.rowIndex-t);p<i&&(r=c,i=p,n=s),h<i&&(r=c,i=h,n=s)});if(!n)return;const o=n,a=o.getNodes().getBy("node",r)?.index;return a==null?void 0:{cache:o,index:o.getBlockStartIndex(a)}}isRowLoading(e,t){return this.cacheLoadingNodesMap.get(e)?.has(t)??!1}},PZt=class{constructor(...e){this.indexes=e,this.maps=new Map(this.indexes.map(t=>[t,new Map]))}getSize(){return this.maps.get(this.indexes[0]).size}getBy(e,t){return this.maps.get(e).get(t)}set(e){this.indexes.forEach(t=>{this.maps.get(t).set(e[t],e)})}delete(e){this.indexes.forEach(t=>{this.maps.get(t).delete(e[t])})}clear(){this.maps.forEach(e=>e.clear())}getIterator(e){return this.maps.get(e).values()}forEach(e){const t=this.getIterator(this.indexes[0]);let n;for(;(n=t.next())&&!n.done;)e(n.value)}find(e){const t=this.getIterator(this.indexes[0]);let n;for(;(n=t.next())&&!n.done;)if(e(n.value))return n.value}filter(e){const t=this.getIterator(this.indexes[0]);let n;const r=[];for(;(n=t.next())&&!n.done;)e(n.value)&&r.push(n.value);return r}},DZt=100,Pre=class extends dt{constructor(e,t,n,r){super(),this.live=!0,this.removedNodeCache=new Map,this.store=e,this.numberOfRows=t,this.isLastRowKnown=n,this.storeParams=r}wireBeans(e){this.rowRenderer=e.rowRenderer,this.blockUtils=e.ssrmBlockUtils,this.focusSvc=e.focusSvc,this.nodeManager=e.ssrmNodeManager,this.serverSideRowModel=e.rowModel,this.rowNodeSorter=e.rowNodeSorter,this.sortSvc=e.sortSvc,this.lazyBlockLoadingSvc=e.lazyBlockLoadingSvc,this.colModel=e.colModel}postConstruct(){this.lazyBlockLoadingSvc.subscribe(this),this.nodeMap=new PZt("index","id","node"),this.nodeDisplayIndexMap=new Map,this.nodesToRefresh=new Set,this.defaultNodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),this.getRowIdFunc=qy(this.gos),this.isMasterDetail=this.gos.get("masterDetail")}destroy(){this.lazyBlockLoadingSvc.unsubscribe(this),this.numberOfRows=0,this.nodeMap.forEach(e=>this.blockUtils.destroyRowNode(e.node)),this.nodeMap.clear(),this.nodeDisplayIndexMap.clear(),this.nodesToRefresh.clear(),this.live=!1,super.destroy()}getRowByDisplayIndex(e){if(!this.store.isDisplayIndexInStore(e))return;const t=this.nodeDisplayIndexMap.get(e);if(t)return(t.stub||t.__needsRefreshWhenVisible)&&this.lazyBlockLoadingSvc.queueLoadCheck(),t;if(this.gos.get("groupHideOpenParents")||this.gos.get("groupAllowUnbalanced")){const l=this.nodeMap.find(c=>!!c.node.childStore?.isDisplayIndexInStore(e));if(l)return l.node.childStore?.getRowUsingDisplayIndex(e)}if(e===this.store.getDisplayIndexStart())return this.createStubNode(0,e);const r=this.nodeDisplayIndexMap.get(e-1);if(r){if(this.isMasterDetail&&r.master&&r.expanded)return r.detailNode;if(r.expanded&&r.childStore?.isDisplayIndexInStore(e))return r.childStore?.getRowUsingDisplayIndex(e);const l=this.nodeMap.getBy("node",r);return this.createStubNode(l.index+1,e)}const i=this.getSurroundingNodesByDisplayIndex(e);if(i==null){const l=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(l,e)}const{previousNode:o,nextNode:a}=i;if(o&&o.node.expanded&&o.node.childStore?.isDisplayIndexInStore(e))return o.node.childStore?.getRowUsingDisplayIndex(e);if(a){const l=a.node.rowIndex-e,c=a.index-l;return this.createStubNode(c,e)}const s=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(s,e)}createStubNode(e,t){const n=this.store.getRowBounds(t),r=this.createRowAtIndex(e,null,i=>{i.setRowIndex(t),i.setRowTop(n.rowTop),this.nodeDisplayIndexMap.set(t,i)});if(e===0&&this.gos.get("groupHideOpenParents")){const i=this.store.getParentNode().groupData;if(i)for(const o of Object.keys(i))ARe(r,this.colModel,o,i[o])}return this.lazyBlockLoadingSvc.queueLoadCheck(),r}getRowByStoreIndex(e){return this.nodeMap.getBy("index",e)?.node}skipDisplayIndexes(e,t,n){if(e===0)return;const r=sp(this.beans);t.value+=e,n.value+=e*r}setDisplayIndexes(e,t,n){this.nodeDisplayIndexMap.clear();const r={};this.nodeMap.forEach(a=>{r[a.index]=a.node});let i=-1;for(const a of Object.keys(r)){const s=r[a],l=Number(a),c=l-1-i;this.skipDisplayIndexes(c,e,t);const u=l===0;if(s.setFirstChild(u),u&&this.gos.get("groupHideOpenParents")){const d=this.store.getParentNode().groupData;if(d)for(const p of Object.keys(d))ARe(s,this.colModel,p,u?d[p]:void 0)}this.blockUtils.setDisplayIndex(s,e,t,n),s.rowIndex!=null&&this.nodeDisplayIndexMap.set(s.rowIndex,s),i=l}const o=this.numberOfRows-1-i;this.skipDisplayIndexes(o,e,t),this.purgeExcessRows()}getRowCount(){return this.numberOfRows}setRowCount(e,t){this.numberOfRows=e,t!=null&&(this.isLastRowKnown=t,t===!1&&(this.numberOfRows+=1)),this.fireStoreUpdatedEvent()}getNodes(){return this.nodeMap}getNodeCachedByDisplayIndex(e){return this.nodeDisplayIndexMap.get(e)??null}getNodesToRefresh(){return this.nodesToRefresh}getSurroundingNodesByDisplayIndex(e){let t,n;return this.nodeMap.forEach(r=>{if(e>r.node.rowIndex){(n==null||n.node.rowIndex<r.node.rowIndex)&&(n=r);return}if(t==null||t.node.rowIndex>r.node.rowIndex){t=r;return}}),!n&&!t?null:{previousNode:n,nextNode:t}}getDisplayIndexFromStoreIndex(e){const t=this.nodeMap.getBy("index",e);if(t)return t.node.rowIndex;let n,r;if(this.nodeMap.forEach(a=>{if(e>a.index){(r==null||r.index<a.index)&&(r=a);return}if(n==null||n.index>a.index){n=a;return}}),!n)return this.store.getDisplayIndexEnd()-(this.numberOfRows-e);if(!r)return this.store.getDisplayIndexStart()+e;const i=e-r.index;return(r.node.childStore?.getDisplayIndexEnd()??r.node.rowIndex)+i}createRowAtIndex(e,t,n){const r=this.nodeMap.getBy("index",e);if(r){const{node:o}=r;if(o.__needsRefreshWhenVisible=!1,this.doesNodeMatch(t,o))return this.blockUtils.updateDataIntoRowNode(o,t),this.nodesToRefresh.delete(o),o;if(this.getRowIdFunc==null&&o.hasChildren()&&o.expanded)return this.nodesToRefresh.delete(o),o;this.destroyRowAtIndex(e)}if(t&&this.getRowIdFunc!=null){const o=this.getRowId(t),a=o&&this.removedNodeCache?.get(o);if(a)return this.removedNodeCache?.delete(o),this.blockUtils.updateDataIntoRowNode(a,t),this.nodeMap.set({id:a.id,node:a,index:e}),this.nodesToRefresh.delete(a),a.__needsRefreshWhenVisible=!1,a;const s=this.nodeMap.getBy("id",o);if(s){this.nodeMap.delete(s);const{node:l,index:c}=s;return this.blockUtils.updateDataIntoRowNode(l,t),this.nodeMap.set({id:l.id,node:l,index:e}),this.nodesToRefresh.delete(l),l.__needsRefreshWhenVisible=!1,this.getBlockStartIndex(c)===this.getBlockStartIndex(e)||this.markBlockForVerify(c),l}}const i=this.blockUtils.createRowNode(this.store.getRowDetails());if(t!=null){const o=this.getPrefixedId(this.store.getIdSequence().value++);this.blockUtils.setDataIntoRowNode(i,t,o,void 0),this.serverSideRowModel.setPaused(!0),this.blockUtils.checkOpenByDefault(i),this.serverSideRowModel.setPaused(!1),this.nodeManager.addRowNode(i)}return this.nodeMap.set({id:i.id,node:i,index:e}),n&&n(i),i}getBlockStates(){const e={},t={};this.nodeMap.forEach(({node:o,index:a})=>{const s=this.getBlockStartIndex(a);!o.stub&&!o.failedLoad&&(e[s]=(e[s]??0)+1);let l="loaded";o.failedLoad?l="failed":this.lazyBlockLoadingSvc.isRowLoading(this,s)?l="loading":(this.nodesToRefresh.has(o)||o.stub)&&(l="needsLoading"),t[s]||(t[s]=new Set),t[s].add(l)});const n={loading:4,failed:3,needsLoading:2,loaded:1},r=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),i={};for(const o of Object.keys(t)){const s=[...t[o]].sort((u,d)=>(n[u]??0)-(n[d]??0))[0],l=Number(o)/this.getBlockSize(),c=r?`${r}-${l}`:String(l);i[c]={blockNumber:l,startRow:Number(o),endRow:Number(o)+this.getBlockSize(),pageStatus:s,loadedRowCount:e[o]??0}}return i}destroyRowAtIndex(e){const t=this.nodeMap.getBy("index",e);t&&(this.nodeMap.delete(t),this.nodeDisplayIndexMap.delete(t.node.rowIndex),this.nodesToRefresh.size>0?this.removedNodeCache.set(t.node.id,t.node):this.blockUtils.destroyRowNode(t.node),this.nodesToRefresh.delete(t.node))}getSsrmParams(){return this.store.getSsrmParams()}getPrefixedId(e){return this.defaultNodeIdPrefix?this.defaultNodeIdPrefix+"-"+e:e.toString()}markBlockForVerify(e){const[t,n]=this.getBlockBounds(e);this.nodeMap.filter(i=>i.index>=t&&i.index<n).forEach(({node:i})=>{i.__needsRefreshWhenVisible=!0})}doesNodeMatch(e,t){if(t.stub)return!1;const n=this.getRowId(e);return n===null?t.data===e:t.id===n}purgeStubsOutsideOfViewport(){const{firstRenderedRow:e,lastRenderedRow:t}=this.rowRenderer,n=this.getBlockStartIndex(e),[,r]=this.getBlockBounds(t);this.nodeMap.forEach(i=>{this.lazyBlockLoadingSvc.isRowLoading(this,i.index)||i.node.failedLoad||i.node.stub&&(i.index<n||i.index>r)&&this.destroyRowAtIndex(i.index)})}getBlocksDistanceFromRow(e,t){const n={};return e.forEach(({node:r,index:i})=>{const[o,a]=this.getBlockBounds(i);if(o in n)return;const s=Math.abs(r.rowIndex-t);let l;const c=this.nodeMap.getBy("index",[a-1]);c&&(l=Math.abs(c.node.rowIndex-t));const u=l==null||s<l?s:l;n[o]=u}),Object.entries(n)}purgeExcessRows(){if(this.purgeStubsOutsideOfViewport(),this.store.getDisplayIndexEnd()==null||this.storeParams.maxBlocksInCache==null)return;const{firstRenderedRow:e,lastRenderedRow:t}=this.rowRenderer,n=new Set,r=new Set;this.nodeMap.forEach(({index:h,node:g})=>{const m=this.getBlockStartIndex(h);n.add(m),g.rowIndex>=e&&g.rowIndex<=t&&r.add(m)});const i=Math.max(r.size,this.storeParams.maxBlocksInCache??0),a=n.size-i;if(a<=0)return;let s=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;r.forEach(h=>{s>h&&(s=h),l<h&&(l=h)});const c=this.nodeMap.filter(({node:h,index:g})=>{const m=this.getBlockStartIndex(g);return!(m>=s&&m<=l)&&!this.isNodeCached(h)});if(c.length===0)return;const u=e+(t-e)/2,d=this.getBlocksDistanceFromRow(c,u),p=this.getBlockSize();d.sort((h,g)=>Math.sign(g[1]-h[1]));for(let h=0;h<Math.min(a,d.length);h++){const g=Number(d[h][0]);for(let m=g;m<g+p;m++){const b=this.nodeMap.getBy("index",m);!b||this.isNodeCached(b.node)||this.destroyRowAtIndex(m)}}}isNodeFocused(e){const t=this.focusSvc.getFocusCellToUseAfterRefresh();return!t||t.rowPinned!=null?!1:t.rowIndex===e.rowIndex}isNodeCached(e){const t=this.gos.get("groupAllowUnbalanced")&&e.key==="";return e.isExpandable()&&e.expanded||this.isNodeFocused(e)||t}extractDuplicateIds(e){if(this.getRowIdFunc==null)return[];const t=new Set,n=new Set;return e.forEach(r=>{const i=this.getRowId(r);if(t.has(i)){n.add(i);return}t.add(i)}),[...n]}onLoadSuccess(e,t,n){if(!this.live)return;const r=n.groupLevelInfo;if(this.store.setStoreInfo(r),this.getRowIdFunc!=null){const a=this.extractDuplicateIds(n.rowData);if(a.length>0){const s=a.join(", ");ut(205,{duplicateIdText:s}),this.onLoadFailed(e,t);return}}n.pivotResultFields&&this.serverSideRowModel.generateSecondaryColumns(n.pivotResultFields);const i=this.nodesToRefresh.size>0;if(n.rowData.forEach((a,s)=>{const l=e+s,c=this.nodeMap.getBy("index",l);if(c?.node?.stub){this.createRowAtIndex(l,a);return}if(c&&this.doesNodeMatch(a,c.node)){this.blockUtils.updateDataIntoRowNode(c.node,a),this.nodesToRefresh.delete(c.node),c.node.__needsRefreshWhenVisible=!1;return}this.createRowAtIndex(l,a)}),n.rowCount!=null&&n.rowCount!==-1)this.numberOfRows=n.rowCount,this.isLastRowKnown=!0;else if(t>n.rowData.length)this.numberOfRows=e+n.rowData.length,this.isLastRowKnown=!0;else if(!this.isLastRowKnown){const a=e+n.rowData.length+1;a>this.numberOfRows&&(this.numberOfRows=a)}this.isLastRowKnown&&this.nodeMap.filter(s=>s.index>=this.numberOfRows).forEach(s=>this.destroyRowAtIndex(s.index)),this.fireStoreUpdatedEvent();const o=this.nodesToRefresh.size===0;i&&o&&this.fireRefreshFinishedEvent()}fireRefreshFinishedEvent(){this.nodesToRefresh.size===0&&(this.removedNodeCache.forEach(t=>{this.blockUtils.destroyRowNode(t)}),this.removedNodeCache=new Map,this.store.fireRefreshFinishedEvent())}isStoreFullyLoaded(){const e=this.isLastRowKnown,t=this.nodeMap.getSize()===this.numberOfRows;if(!e||!t||this.nodesToRefresh.size>0)return;let n=-1;return this.nodeMap.find(i=>(n+=1,!!(i.index!==n||i.node.__needsRefreshWhenVisible||i.node.stub)))==null}isLastRowIndexKnown(){return this.isLastRowKnown}onLoadFailed(e,t){if(!this.live)return;const n=this.nodesToRefresh.size>0;for(let i=e;i<e+t&&i<this.getRowCount();i++){let{node:o}=this.nodeMap.getBy("index",i)??{};o&&this.nodesToRefresh.delete(o),(!o||!o.stub)&&(o&&!o.stub&&this.destroyRowAtIndex(i),o=this.createRowAtIndex(i)),o.__needsRefreshWhenVisible=!1,o.failedLoad=!0}const r=this.nodesToRefresh.size===0;n&&r&&this.fireRefreshFinishedEvent(),this.fireStoreUpdatedEvent()}markNodesForRefresh(){this.nodeMap.forEach(e=>{e.node.stub&&!e.node.failedLoad||this.nodesToRefresh.add(e.node)}),this.lazyBlockLoadingSvc.queueLoadCheck(),this.isLastRowKnown&&this.numberOfRows===0&&(this.numberOfRows=1,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())}isNodeInCache(e){return!!this.nodeMap.getBy("id",e)}fireStoreUpdatedEvent(){this.live&&this.store.fireStoreUpdatedEvent()}getRowId(e){if(this.getRowIdFunc==null)return null;const{level:t}=this.store.getRowDetails(),n=this.store.getParentNode().getRoute()??[];return this.getRowIdFunc({data:e,parentKeys:n.length>0?n:void 0,level:t})}getOrderedNodeMap(){const e={};return this.nodeMap.forEach(t=>e[t.index]=t),e}clearDisplayIndexes(){this.nodeDisplayIndexMap.clear()}clientSideSortRows(){const e=this.sortSvc?.getSortOptions()??[];if(!e.some(i=>i.sort!=null)||!this.rowNodeSorter)return;const n=new Array(this.nodeMap.getSize());this.nodeMap.forEach(i=>n[i.index]=i.node),this.nodeMap.clear(),this.rowNodeSorter.doFullSort(n,e).forEach((i,o)=>{this.nodeMap.set({id:i.id,node:i,index:o})})}updateRowNodes(e){const t=[];return e.forEach(n=>{const r=this.getRowId(n),i=this.nodeMap.getBy("id",r);i&&(this.blockUtils.updateDataIntoRowNode(i.node,n),t.push(i.node))}),t}insertRowNodes(e,t){const n=this.store.getRowCount()-(this.store.getParentNode().sibling?1:0),r=t==null&&this.isLastRowKnown?n:t;if(r==null||n<r)return[];const i={};e.forEach(l=>{const c=this.getRowId(l);c&&this.isNodeInCache(c)||(i[c]=l)});const o=Object.values(i),a=o.length;if(a===0)return[];const s=this.nodeMap.filter(l=>l.index>=r);return s.forEach(l=>this.nodeMap.delete(l)),s.forEach(l=>{this.nodeMap.set({node:l.node,index:l.index+a,id:l.id})}),this.numberOfRows+=a,o.map((l,c)=>this.createRowAtIndex(r+c,l))}removeRowNodes(e){const t=[],n=[];let r=0;const i=[...e],o=this.getOrderedNodeMap();let a=-1;for(const s of Object.keys(o)){a+=1;const l=o[s],c=i.findIndex(d=>d===l.id);if(c!==-1){i.splice(c,1),this.destroyRowAtIndex(Number(s)),t.push(l.node),r+=1;continue}if(r===0)continue;const u=Number(s);a!==u&&n.push(l.node),this.nodeMap.delete(l),this.nodeMap.set({id:l.id,node:l.node,index:u-r})}return this.numberOfRows-=this.isLastRowIndexKnown()?e.length:r,i.length>0&&n.length>0&&(n.forEach(s=>s.__needsRefreshWhenVisible=!0),this.lazyBlockLoadingSvc.queueLoadCheck()),t}getBlockSize(){return this.storeParams.cacheBlockSize||DZt}getBlockStartIndex(e){const t=this.getBlockSize();return e-e%t}getBlockBounds(e){const t=this.getBlockStartIndex(e),n=this.getBlockSize();return[t,t+n]}},kZt=class extends dt{constructor(e,t,n){super(),this.idSequence={value:0},this.ssrmParams=e,this.parentRowNode=n,this.storeParams=t,this.level=n.level+1,this.group=e.rowGroupCols?this.level<e.rowGroupCols.length:!1,this.leafGroup=e.rowGroupCols?this.level===e.rowGroupCols.length-1:!1,this.info={}}wireBeans(e){this.blockUtils=e.ssrmBlockUtils,this.storeUtils=e.ssrmStoreUtils,this.selectionSvc=e.selectionSvc,this.rowGroupColsSvc=e.rowGroupColsSvc}postConstruct(){let e=1;if(this.level===0&&(e=this.storeUtils.getServerSideInitialRowCount()??1,this.eventSvc.dispatchEventOnce({type:"rowCountReady"})),this.cache=this.createManagedBean(new Pre(this,e,!1,this.storeParams)),!this.gos.get("treeData")&&this.group&&this.rowGroupColsSvc){const n=this.ssrmParams.rowGroupCols[this.level];this.groupField=n.field,this.rowGroupColumn=this.rowGroupColsSvc.columns[this.level]}}destroy(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.destroyBean(this.cache),super.destroy()}applyRowData(e,t,n){this.cache.onLoadSuccess(t,n,e)}applyTransaction(e){const t=qy(this.gos);if(!t)return ut(206),{status:Lv.Cancelled};const n=this.gos.getCallback("isApplyServerSideTransaction");if(n){const u={transaction:e,parentNode:this.parentRowNode,groupLevelInfo:this.info};if(!n(u))return{status:Lv.Cancelled}}const r=this.cache.isStoreFullyLoaded();let i;e.update?.length&&(i=this.cache.updateRowNodes(e.update));let o;if(e.add?.length){let u=e.addIndex;u!=null&&u<0&&(u=void 0),o=this.cache.insertRowNodes(e.add,u)}let a;if(e.remove?.length){const u=e.remove.map(p=>t({level:this.level,parentKeys:this.parentRowNode.getRoute()??[],data:p})),d=[...new Set(u)];a=this.cache.removeRowNodes(d)}const s=this.gos.get("serverSideEnableClientSideSort"),l=i?.length||o?.length;return r&&s&&l&&this.cache.clientSideSortRows(),this.updateSelectionAfterTransaction(i,a),{status:Lv.Applied,update:i,add:o,remove:a}}updateSelectionAfterTransaction(e,t){if(!this.selectionSvc)return;const n=[];e?.forEach(r=>{r.isSelected()&&!r.selectable&&n.push(r)}),t?.forEach(r=>{r.isSelected()&&n.push(r)}),n.length&&this.selectionSvc.setNodesSelected({newValue:!1,clearSelection:!1,nodes:n,source:"rowDataChanged"})}clearDisplayIndexes(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.cache.getNodes().forEach(e=>this.blockUtils.clearDisplayIndex(e.node)),this.parentRowNode.sibling&&this.blockUtils.clearDisplayIndex(this.parentRowNode.sibling),this.cache.clearDisplayIndexes()}getDisplayIndexStart(){return this.displayIndexStart}getDisplayIndexEnd(){return this.displayIndexEnd}getRowCount(){return this.parentRowNode.sibling?this.cache.getRowCount()+1:this.cache.getRowCount()}setRowCount(e,t){this.cache.setRowCount(e,t)}isDisplayIndexInStore(e){return this.cache.getRowCount()===0?!1:this.displayIndexStart<=e&&e<this.getDisplayIndexEnd()}setDisplayIndexes(e,t,n){this.displayIndexStart=e.value,this.topPx=t.value;const r=this.parentRowNode.level>-1&&eP(this.gos)({node:this.parentRowNode});r||tMe(this.parentRowNode),r==="top"&&(Ry(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,n)),this.cache.setDisplayIndexes(e,t,n),r==="bottom"&&(Ry(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,n)),this.displayIndexEnd=e.value,this.heightPx=t.value-this.topPx}forEachStoreDeep(e,t={value:0}){e(this,t.value++),this.cache.getNodes().forEach(n=>{const r=n.node.childStore;r&&r.forEachStoreDeep(e,t)})}forEachNodeDeep(e,t={value:0}){this.cache.getNodes().forEach(n=>{e(n.node,t.value++);const r=n.node.childStore;r&&r.forEachNodeDeep(e,t)})}forEachNodeDeepAfterFilterAndSort(e,t={value:0},n=!1){const r=this.parentRowNode.level>-1&&eP(this.gos)({node:this.parentRowNode});r==="top"&&e(this.parentRowNode.sibling,t.value++);const i=this.cache.getOrderedNodeMap();for(const o of Object.values(i)){e(o.node,t.value++);const a=o.node.childStore;a&&a.forEachNodeDeepAfterFilterAndSort(e,t,n)}r==="bottom"&&e(this.parentRowNode.sibling,t.value++)}retryLoads(){this.cache.getNodes().forEach(({node:e})=>{e.failedLoad&&(e.failedLoad=!1,e.__needsRefreshWhenVisible=!0,e.stub=!0)}),this.forEachChildStoreShallow(e=>e.retryLoads()),this.fireStoreUpdatedEvent()}getRowUsingDisplayIndex(e){return this.parentRowNode.sibling&&e===this.parentRowNode.sibling.rowIndex?this.parentRowNode.sibling:this.cache.getRowByDisplayIndex(e)}getRowBounds(e){if(!this.isDisplayIndexInStore(e))return null;const t=this.cache.getNodeCachedByDisplayIndex(e);if(t){const s=this.blockUtils.extractRowBounds(t,e);if(s)return s}const{previousNode:n,nextNode:r}=this.cache.getSurroundingNodesByDisplayIndex(e)??{};if(n){const s=this.blockUtils.extractRowBounds(n.node,e);if(s!=null)return s}const i=sp(this.beans);if(r){const s=(r.node.rowIndex-e)*i;return{rowTop:r.node.rowTop-s,rowHeight:i}}const o=this.topPx+this.heightPx,a=(this.getDisplayIndexEnd()-e)*i;return{rowTop:o-a,rowHeight:i}}isPixelInRange(e){return e>=this.topPx&&e<this.topPx+this.heightPx}getRowIndexAtPixel(e){if(e<this.topPx)return this.getDisplayIndexStart();if(e>=this.topPx+this.heightPx)return this.getDisplayIndexEnd()-1;if(this.parentRowNode.sibling&&e>this.parentRowNode.sibling.rowTop&&e<this.parentRowNode.sibling.rowTop+this.parentRowNode.sibling.rowHeight)return this.parentRowNode.sibling.rowIndex;let t=Number.MAX_SAFE_INTEGER,n=null,r=Number.MAX_SAFE_INTEGER,i=null;if(this.cache.getNodes().forEach(({node:l})=>{const c=Math.abs(e-l.rowTop);if(l.rowTop<e){c<t&&(t=c,n=l);return}c<r&&(r=c,i=l)}),n=n,i=i,n){const l=this.blockUtils.getIndexAtPixel(n,e);if(l!=null)return l}const o=sp(this.beans);if(i){const l=i.rowTop,c=Math.ceil((l-e)/o);return i.rowIndex-c}const a=this.topPx+this.heightPx,s=Math.floor((a-e)/o);return this.getDisplayIndexEnd()-s}getChildStore(e){return this.storeUtils.getChildStore(e,this,t=>{const n=this.cache.getNodes().find(r=>r.node.key==t);return n?n.node:null})}forEachChildStoreShallow(e){this.cache.getNodes().forEach(({node:t})=>{t.childStore&&e(t.childStore)})}refreshAfterSort(e){if(this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){const n=this.cache.isStoreFullyLoaded(),r=this.gos.get("serverSideEnableClientSideSort");if(!(n&&r)){const o=this.cache.getRowCount(),a=this.cache.isLastRowIndexKnown();this.destroyBean(this.cache),this.cache=this.createManagedBean(new Pre(this,o,a,this.storeParams));return}this.cache.clientSideSortRows()}this.forEachChildStoreShallow(n=>n.refreshAfterSort(e))}refreshAfterFilter(e){if(!this.storeUtils.isServerSideOnlyRefreshFilteredGroups()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){this.refreshStore(!0);return}this.forEachChildStoreShallow(n=>n.refreshAfterFilter(e))}refreshStore(e){if(e){this.destroyBean(this.cache),this.cache=this.createManagedBean(new Pre(this,1,!1,this.storeParams)),this.fireStoreUpdatedEvent();return}this.cache.markNodesForRefresh()}getTopLevelRowDisplayedIndex(e){return this.cache.getDisplayIndexFromStoreIndex(e)??e}isLastRowIndexKnown(){return this.cache.isLastRowIndexKnown()}getRowNodesInRange(e,t){return this.cache.getNodes().filter(({node:n})=>n.rowIndex>=e.rowIndex&&n.rowIndex<=t.rowIndex).map(({node:n})=>n)}addStoreStates(e){e.push({route:this.parentRowNode.getRoute()??[],rowCount:this.getRowCount(),lastRowIndexKnown:this.isLastRowIndexKnown(),info:this.info,maxBlocksInCache:this.storeParams.maxBlocksInCache,cacheBlockSize:this.storeParams.cacheBlockSize}),this.forEachChildStoreShallow(t=>t.addStoreStates(e))}getIdSequence(){return this.idSequence}getParentNode(){return this.parentRowNode}getRowDetails(){return{field:this.groupField,group:this.group,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn}}getSsrmParams(){return this.ssrmParams}setStoreInfo(e){e&&Object.assign(this.info,e)}fireStoreUpdatedEvent(){this.eventSvc.dispatchEvent({type:"storeUpdated"})}fireRefreshFinishedEvent(){this.eventSvc.dispatchEvent({type:"storeRefreshed",route:this.parentRowNode.getRoute()})}getBlockStates(){return this.cache.getBlockStates()}getStoreBounds(){return{topPx:this.topPx,heightPx:this.heightPx}}getCache(){return this.cache}getFirstNode(){return this.cache.getNodes().getBy("index",0)?.node??null}},LZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmStoreFactory"}wireBeans(e){this.colModel=e.colModel,this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc,this.rowAutoHeight=e.rowAutoHeight}createStore(e,t){const n=this.getStoreParams(e,t);return new kZt(e,n,t)}getStoreParams(e,t){const n=this.getLevelSpecificParams(t),r=this.getBlockSize(n),i=this.getMaxBlocksInCache(e,n);return{cacheBlockSize:r,maxBlocksInCache:i}}getMaxBlocksInCache(e,t){const n=t&&t.maxBlocksInCache!=null?t.maxBlocksInCache:this.gos.get("maxBlocksInCache");if(n!=null&&n>=0){if(e.dynamicRowHeight){ut(203);return}if(this.rowAutoHeight?.active){ut(204);return}return n}}getBlockSize(e){const t=e&&e.cacheBlockSize!=null?e.cacheBlockSize:this.gos.get("cacheBlockSize");return t!=null&&t>0?t:100}getLevelSpecificParams(e){const t=this.gos.getCallback("getServerSideGroupLevelParams");if(!t)return;const n={level:e.level+1,parentRowNode:e.level>=0?e:void 0,rowGroupColumns:this.rowGroupColsSvc?.columns??[],pivotColumns:this.pivotColsSvc?.columns??[],pivotMode:this.colModel.isPivotMode()};return t(n)}},_Zt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmStoreUtils"}wireBeans(e){this.colModel=e.colModel,this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory}getChildStore(e,t,n){if(!e?.length)return t;const r=e[0],i=n(r);if(i){if(e.length===1&&!i.childStore){const s=this.serverSideRowModel.getParams();i.childStore=this.createBean(this.storeFactory.createStore(s,i))}const o=e.slice(1,e.length),a=i.childStore;return a?a.getChildStore(o):null}return null}isServerRefreshNeeded(e,t,n){if(n.valueColChanged||n.secondaryColChanged)return!0;const r=e.level+1;if(!(r<t.length))return!0;const a=t[r].id;return n.changedColumns.indexOf(a)>-1?!0:this.colModel.getCols().filter(u=>u.getColDef().showRowGroup&&n.changedColumns.includes(u.getId())).map(u=>u.getColDef().showRowGroup).some(u=>u===!0||u===a)}getServerSideInitialRowCount(){return this.gos.get("serverSideInitialRowCount")}isServerSideSortAllLevels(){return this.gos.get("serverSideSortAllLevels")&&Au(this.gos)}isServerSideOnlyRefreshFilteredGroups(){return this.gos.get("serverSideOnlyRefreshFilteredGroups")&&Au(this.gos)}},NZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmTxnManager",this.asyncTransactions=[]}wireBeans(e){this.valueCache=e.valueCache,this.serverSideRowModel=e.rowModel,this.selectionSvc=e.selectionSvc}postConstruct(){Au(this.gos)}applyTransactionAsync(e,t){this.asyncTransactionsTimeout==null&&this.scheduleExecuteAsync(),this.asyncTransactions.push({transaction:e,callback:t})}scheduleExecuteAsync(){const e=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimeout=window.setTimeout(()=>{this.executeAsyncTransactions()},e)}executeAsyncTransactions(){if(!this.asyncTransactions)return;const e=[],t=[],n=[];let r=!1;this.asyncTransactions.forEach(i=>{let o;if(this.serverSideRowModel.executeOnStore(i.transaction.route,l=>{o=l.applyTransaction(i.transaction)})?o==null&&(o={status:Lv.StoreNotFound}):o={status:Lv.StoreNotStarted},t.push(o),o.status==Lv.StoreLoading){n.push(i);return}i.callback&&e.push(()=>i.callback(o)),o.status===Lv.Applied&&(r=!0)}),e.length>0&&window.setTimeout(()=>{e.forEach(i=>i())},0),this.asyncTransactionsTimeout=void 0,this.asyncTransactions=n,r&&(this.valueCache?.onDataChanged(),this.eventSvc.dispatchEvent({type:"storeUpdated"})),t.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:t})}flushAsyncTransactions(){this.asyncTransactionsTimeout!=null&&clearTimeout(this.asyncTransactionsTimeout),this.executeAsyncTransactions()}applyTransaction(e){let t;if(this.serverSideRowModel.executeOnStore(e.route,r=>{t=r.applyTransaction(e)}))if(t){if(this.valueCache?.onDataChanged(),t.remove&&this.selectionSvc){const r=t.remove.map(i=>i.id);this.selectionSvc.deleteSelectionStateFromParent(e.route||[],r)}return this.eventSvc.dispatchEvent({type:"storeUpdated"}),t}else return{status:Lv.StoreNotFound};else return{status:Lv.StoreNotStarted}}},FZt={moduleName:"ServerSideRowModel",version:wi,rowModels:["serverSide"],beans:[bZt,hZt,_Zt,pZt,vZt,NZt,fZt,LZt,gZt,EZt,IZt,RZt,TZt,mZt],dependsOn:[es,Hye,srt,Dit,Nit,OQt,zQt]},WZt={moduleName:"ServerSideRowModelApi",version:wi,apiFunctions:{getServerSideSelectionState:yZt,setServerSideSelectionState:MZt,applyServerSideTransaction:CZt,applyServerSideTransactionAsync:wZt,applyServerSideRowData:xZt,retryServerSideLoads:SZt,flushServerSideAsyncTransactions:AZt,refreshServerSide:OZt,getServerSideGroupLevelState:zZt},dependsOn:[es,lrt,crt]},qZt=".ag-sparkline-wrapper{height:100%;line-height:normal;position:absolute;top:0;width:100%}",Dre=Symbol("WrappedFunctionMarker"),XRe=(e,t)=>{if(e[Dre])return e;const n=(...r)=>t(e,...r);return n[Dre]=Dre,n};function BZt(e){return{content:`${e.xValue} ${e.yValue}`}}function jZt(e){return{content:`${e.yValue}`}}var HZt=class extends Gt{constructor(){super({tag:"div",cls:"ag-sparkline-wrapper",children:[{tag:"span",ref:"eSparkline"}]}),this.eSparkline=at,this.cachedWidth=0,this.cachedHeight=0,this.dataRef=[],this.processedData=[]}postConstruct(){this.env=this.beans.environment,this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes","styleNonce"],()=>this.refresh(this.params))}createListener(e=!0){return()=>this.updateSize(this.params?.column?.getActualWidth()??0,(this.params?.node.rowHeight??0)-2,e)}initGridObserver(){const e=this.createListener(),t=this.createListener(!1),n=this.params?.column,r=this.params?.node;n.__addEventListener("columnStateUpdated",e),r.__addEventListener("heightChanged",e),this.addDestroyFunc(()=>{n.__removeEventListener("columnStateUpdated",e),r.__removeEventListener("heightChanged",e)}),t()}updateSize(e,t,n=!0){if(e-=this.env.getCellPadding(),e!==this.cachedWidth||t!==this.cachedHeight){this.cachedWidth=e,this.cachedHeight=t;const r=this.refresh.bind(this);n?A$(()=>this.isAlive()&&r()):r()}}init(e){this.params=e,this.initGridObserver()}refresh(e=this.params){var t;this.params=e;const n=this.cachedWidth,r=this.cachedHeight,i=this.gos.get("styleNonce");if(!this.sparklineInstance&&e&&n>0&&r>0){if(this.sparklineOptions={container:this.eSparkline,width:n,height:r,...e.sparklineOptions,...i?{styleNonce:i}:{},data:this.processData(e.value)},(t=this.sparklineOptions).type??(t.type="line"),this.sparklineOptions.tooltip?.renderer)this.wrapTooltipRenderer();else{const a=this.getDefaultTooltipRenderer();this.sparklineOptions.tooltip={...this.sparklineOptions.tooltip,renderer:a}}const o=this.sparklineOptions?.theme;return this.sparklineOptions.type==="bar"&&this.sparklineOptions.itemStyler?this.wrapItemStyler(this.sparklineOptions):o?.overrides?.bar?.series?.itemStyler&&this.wrapItemStyler(o.overrides.bar.series),this.sparklineInstance=e.createSparkline(this.sparklineOptions),!0}else if(this.sparklineInstance)return this.sparklineInstance.update({...this.sparklineOptions,data:this.processData(e?.value),width:n,height:r,...i?{styleNonce:i}:{}}),!0;return!1}processData(e=[]){return e.length===0?e:(this.dataRef!==e&&(this.dataRef=e,this.processedData=Array.isArray(e[0])?e.filter(t=>t!=null):e),this.processedData)}createContext(){return{data:this.params?.data,cellData:this.params?.value}}getDefaultTooltipRenderer(e){const t=e?.title,n=this.sparklineOptions.xKey,r=Array.isArray(this.sparklineOptions.data?.[0]);return!t&&(n||r)?BZt:jZt}wrapItemStyler(e){e.itemStyler=XRe(e.itemStyler,(t,n)=>t({...n,context:this.createContext()}))}wrapTooltipRenderer(){this.sparklineOptions.tooltip={...this.sparklineOptions.tooltip,renderer:XRe(this.sparklineOptions.tooltip.renderer,(e,t)=>{const n=e({...t,context:this.createContext()});return typeof n=="string"?n:{...this.getDefaultTooltipRenderer(n)(t),...n}})}}destroy(){super.destroy(),this.sparklineInstance?.destroy()}},YRe="Sparklines",VZt={moduleName:YRe,version:wi,dependsOn:[es],validate:()=>({isValid:!1,message:Cet(258)}),with:e=>(e.setup(),{moduleName:YRe,version:wi,dependsOn:[es],css:[qZt],userComponents:{agSparklineCellRenderer:{classImp:HZt,params:{createSparkline:e.createSparkline}}},validate:()=>({isValid:!0})})},GZt=".ag-find-cell{display:block;overflow:hidden;text-overflow:ellipsis}.ag-find-match{background-color:var(--ag-find-match-background-color);color:var(--ag-find-match-color)}.ag-find-active-match{background-color:var(--ag-find-active-match-background-color);color:var(--ag-find-active-match-color)}";function $Zt(e){e.findSvc?.next()}function UZt(e){e.findSvc?.previous()}function XZt(e){return e.findSvc?.totalMatches??0}function YZt(e,t,n){e.findSvc?.goTo(t,n)}function KZt(e){e.findSvc?.clearActive()}function QZt(e){return e.findSvc?.activeMatch}function ZZt(e,t){const{node:n,column:r}=t;return e.findSvc?.getNumMatches(n,r)??0}function JZt(e,t){return e.findSvc?.getParts(t)??[]}function eJt(e){return e.findSvc?.refresh(!0)}var tJt={tag:"span",cls:"ag-find-cell"},nJt=class extends Gt{constructor(){super(tJt)}init(e){this.refresh(e)}refresh(e){const{node:t,column:n}=e,{findSvc:r,valueSvc:i}=this.beans,{value:o,valueFormatted:a}=i.getValueForDisplay(n,t,!0),s=a??o??"",l=this.getGui();Xi(l);const c=r?.getParts({value:s,node:t,column:n??null});if(!c)return l.textContent=Df(s)??"",l.classList.remove("ag-find-cell-active-match"),!0;let u=!1;for(const{value:d,match:p,activeMatch:h}of c){const g=Df(d)??"";if(p){const m=Nr({tag:"mark",cls:"ag-find-match"});m.textContent=g,h&&(m.classList.add("ag-find-active-match"),u=!0),l.appendChild(m)}else l.appendChild(document.createTextNode(g))}return l.classList.toggle("ag-find-cell-active-match",u),!0}};function KRe(e){return e?.toLocaleLowerCase()}function i4(e,t,n){const r=t(Df(n));let i=0;if(r?.length){let o=-1;for(;o=r.indexOf(e,o+1),o!=-1;)i++}return i}var rJt=class extends dt{constructor(){super(...arguments),this.beanName="findSvc",this.active=!1,this.topMatches=new Map,this.topNodes=[],this.topNumMatches=0,this.centerMatches=new Map,this.centerNodes=[],this.centerNumMatches=0,this.bottomMatches=new Map,this.bottomNodes=[],this.caseFormat=KRe,this.scrollOnRefresh=!1,this.totalMatches=0}postConstruct(){if(!sa(this.gos))return;const e=this.refresh.bind(this,!1),t=this.refresh.bind(this,!0),n=Ml(this,()=>{this.isAlive()&&t()},0);this.refreshDebounced=n,this.addManagedPropertyListener("findSearchValue",e),this.addManagedPropertyListener("findOptions",({currentValue:i,previousValue:o})=>{mz(i,o)||e()}),this.addManagedPropertyListeners(["groupSuppressBlankHeader","showOpenedGroup"],t),this.addManagedEventListeners({modelUpdated:t,displayedColumnsChanged:t,pinnedRowDataChanged:t,cellValueChanged:n,rowNodeDataChanged:n});const r=this.beans.rowSpanSvc;r&&this.addManagedListeners(r,{spannedCellsUpdated:n}),e()}next(){this.findAcrossContainers(!1,["top",null,"bottom"],1,1)}previous(){this.findAcrossContainers(!0,["bottom",null,"top"],this.totalMatches,-1)}goTo(e,t){if(!t&&e===this.activeMatch?.numOverall)return;const{topMatches:n,topNumMatches:r,centerMatches:i,centerNumMatches:o,bottomMatches:a}=this;if(e<=r){this.goToInContainer(n,e,0);return}if(e<=o){this.goToInContainer(i,e,r);return}this.goToInContainer(a,e,r+o)}clearActive(){this.activeMatch&&this.setActive(void 0)}isMatch(e,t){return this.active&&!!this.getMatches(e.rowPinned).get(e)?.some(([n])=>n===t)}getNumMatches(e,t){return this.getMatches(e.rowPinned).get(e)?.find(([n])=>n===t)?.[1]??0}getParts(e){const{value:t,node:n,column:r,precedingNumMatches:i}=e,o=this.findSearchValue,a=Df(t)??"";if(Yi(o))return[{value:a}];const s=this.caseFormat(a)??"",l=this.getActiveMatchNum(n,r)-(i??0);let c=0,u=0;const d=o.length,p=[];for(;;){const h=s.indexOf(o,c);if(h!=-1){u++,h>c&&p.push({value:a.slice(c,h)});const g=h+d;p.push({value:a.slice(h,g),match:!0,activeMatch:u===l}),c=g}else return c<a.length&&p.push({value:a.slice(c)}),p}}registerDetailGrid(e,t){const n=this.gos;if(!sa(n))return;const r=()=>n.get("findOptions")?.searchDetail,i=o=>{const s=this.centerMatches.get(e)?.[0]?.[1]??0;o!==s&&this.refreshDebounced()};t.addEventListener("findChanged",o=>{t.isDestroyed()||!this.isAlive()||!this.active||!r()||i(o.totalMatches)}),t.addEventListener("gridPreDestroyed",()=>{if(!this.isAlive()||!this.active||!r())return;const o=e.parent,a=this.findSearchValue;if(!o||!a)return;const s=n.get("detailCellRendererParams")?.getFindMatches?.({node:o,data:o.data,findSearchValue:n.get("findSearchValue"),updateMatches:this.refreshDebounced,getMatchesForValue:l=>i4(a,this.caseFormat,l)})??0;i(s)}),r()&&t.setGridOption("findSearchValue",n.get("findSearchValue"))}refresh(e){const t=new Set([...this.topNodes,...this.centerNodes,...this.bottomNodes]);this.topNodes=[],this.centerNodes=[],this.bottomNodes=[];const{topNodes:n,topMatches:r,centerMatches:i,centerNodes:o,bottomNodes:a,bottomMatches:s,beans:{gos:l,visibleCols:c,rowModel:u,valueSvc:d,pinnedRowModel:p,pagination:h,rowSpanSvc:g,masterDetailSvc:m,colModel:b},findSearchValue:y}=this,M=l.get("findOptions"),C=M?.caseSensitive?U=>U??void 0:KRe;this.caseFormat=C;const x=l.get("findSearchValue"),w=C(x?.trim());this.findSearchValue=w,r.clear(),i.clear(),s.clear();const S=e?this.activeMatch:void 0;this.activeMatch=void 0;const A=l.get("masterDetail")&&M?.searchDetail&&m;if(Yi(w)){if(this.active=!1,this.topNumMatches=0,this.centerNumMatches=0,this.totalMatches=0,this.refreshRows(t),A){const U=m.store;for(const X of Object.keys(U))U[X]?.api?.findClearActive()}Yi(y)||this.dispatchFindChanged();return}const z=c.allCols,O=l.getCallback("isFullWidthRow"),T=l.get("detailCellRendererParams"),R=l.get("fullWidthCellRendererParams"),P=l.get("groupRowRendererParams"),F=bit(l),N=b.isPivotMode();let L=0,W,j,V=!1;const G=(U,X,Q,re)=>{if(!Q)return;let ee=W.get(U);ee||(ee=[],W.set(U,ee),j.push(U),re||t.add(U)),ee.push([X,Q]),L+=Q},q=U=>{if(V){let ee=U.rowIndex,se=U.parent;for(;ee==null&&se;)ee=se.rowIndex,se=se.parent;if(ee==null||!h.isRowInPage(ee))return}const X=U.hasChildren();if(!Cit(F,U,X,N,yit(F,U,X),Mit(F,U,X)))return;const Q=U.data;if(O?.({rowNode:U})){if(R){const ee=R.getFindMatches?.({node:U,data:Q,findSearchValue:x,updateMatches:this.refreshDebounced,getMatchesForValue:se=>i4(w,C,se)})??0;G(U,null,ee)}return}if(sye(l,U,N)){let ee;const se=P?.getFindText;if(se){const te=d.getValueForDisplay(void 0,U).value;ee=se(Gn(l,{value:te,node:U,data:Q,column:null,colDef:null,getValueFormatted:()=>{const{valueFormatted:ce}=d.getValueForDisplay(void 0,U,!0);return ce}}))}else{const{value:te,valueFormatted:ce}=d.getValueForDisplay(void 0,U,!0);ee=ce??te}const pe=i4(w,C,ee);G(U,null,pe);return}const re=U.level>0&&l.get("groupHideOpenParents")&&U.parent?.getFirstChild()===U&&!U.parent?.expanded;for(const ee of z){if(p0(ee)||m3(ee))continue;const se=g?.getCellSpan(ee,U);if(se&&se.firstNode!==U||ee.colDef.showRowGroup&&re)continue;let pe;const te=ee.colDef,ce=te.getFindText;if(ce){const ae=d.getValueForDisplay(ee,U).value;pe=ce(Gn(l,{value:ae,node:U,data:Q,column:ee,colDef:te,getValueFormatted:()=>{const{valueFormatted:ne}=d.getValueForDisplay(ee,U,!0);return ne}}))}else{const{value:ae,valueFormatted:ne}=d.getValueForDisplay(ee,U,!0);pe=ne??ae}const oe=i4(w,C,pe);G(U,ee,oe)}if(U.master&&A){const ee=U.detailNode;if(ee){const se=ee.detailGridInfo?.api;if(se){se.setGridOption("findSearchValue",x);const pe=se.findGetTotalMatches();G(ee,null,pe);return}}if(T){const se=T.getFindMatches?.({node:U,data:Q,findSearchValue:x,updateMatches:this.refreshDebounced,getMatchesForValue:pe=>i4(w,C,pe)})??0;G(ee??{parent:U,dummy:!0},null,se,!ee)}}};W=r,j=n,p?.forEachPinnedRow("top",q),this.topNumMatches=L;let $=L;W=i,j=o,L=0,V=!!h&&!!M?.currentPageOnly,u.forEachNodeAfterFilterAndSort(q,!0),this.centerNumMatches=L,$+=L,W=s,j=a,L=0,V=!1,p?.forEachPinnedRow("bottom",q),$+=L,this.totalMatches=$,this.active=!0,this.refreshRows(t),S&&this.resetActiveMatch(S),this.dispatchFindChanged()}resetActiveMatch(e){const{column:t,numInMatch:n}=e;let r=e.node;if(r.dummy){const c=r.parent?.detailNode;if(!c)return;r=c}const i=r.rowPinned??null;if(!this.getMatches(i)?.get(r)?.some(([c,u])=>c===t&&u>=n))return;let a=0;i==null?a=this.topNumMatches:i==="bottom"&&(a=this.topNumMatches+this.centerNumMatches),(()=>{const c=this.getMatches(i);for(const u of c.keys()){const d=u===r,p=c.get(u);for(const[h,g]of p){if(d&&h===t){a+=n;return}a+=g}}})();const l={...e,node:r,numOverall:a};this.activeMatch=l,this.refreshRows(new Set([r]),t==null?void 0:new Set([t])),this.scrollOnRefresh&&(this.scrollOnRefresh=!1,this.scrollToActive(l)),this.setDetailActive(l)}refreshRows(e,t){e.size&&this.beans.rowRenderer.refreshCells({rowNodes:[...e],columns:t?[...t]:void 0,force:!0,suppressFlash:!0})}findAcrossContainers(e,t,n,r){if(!this.totalMatches){this.setActive();return}const i=this.activeMatch;let o=t;if(i){const{column:a,node:s,numInMatch:l,numOverall:c}=i,u=s.rowPinned??null,d=c+r;if(this.findInContainer(u,e,d,s,a,l))return;const h=t.indexOf(u),g=t.length;if(t.slice(h+1,g).some(b=>this.findInContainer(b,e,d)))return;o=t.slice(0,h+1)}o.some(a=>this.findInContainer(a,e,n))}findInContainer(e,t,n,r,i,o){const a=this.getMatches(e),s=this.getRowNodes(e),l=t?-1:1;if(r!=null){const p=a.get(r),h=p?.findIndex(([m])=>m===i);if(h!=null&&h!=-1){const[m,b]=p[h];if(t?o>1:o<b)return this.setActive({column:m,node:r,numInMatch:o+l,numOverall:n}),!0}const g=h!=null&&h!=-1?p?.[h+l]:void 0;if(g){const[m,b]=g;return this.setActive({column:m,node:r,numInMatch:t?b:1,numOverall:n}),!0}}let c;if(r==null)c=s[t?s.length-1:0];else{const p=s.findIndex(h=>h===r);c=s[p+l]}if(c==null)return!1;const u=a.get(c),d=u?.[t?u.length-1:0];if(d){const[p,h]=d;return this.setActive({column:p,node:c,numInMatch:t?h:1,numOverall:n}),!0}return!1}dispatchFindChanged(){const{eventSvc:e,activeMatch:t,totalMatches:n,findSearchValue:r}=this;e.dispatchEvent({type:"findChanged",activeMatch:t,totalMatches:n,findSearchValue:r})}setActive(e){if(e&&e.node.rowIndex==null){const n=e.node;let r=n.footer?n.sibling:n.parent;for(;r&&r.level!==-1;)r.expanded=!0,r=r.parent;this.activeMatch=e,this.scrollOnRefresh=!0,this.beans.expansionSvc?.onGroupExpandedOrCollapsed();return}const t=this.activeMatch;this.activeMatch=e,this.refreshAndScrollToActive(e,t),e&&this.setDetailActive(e),this.dispatchFindChanged()}setDetailActive({node:e,numInMatch:t}){e.detail&&e.detailGridInfo?.api?.findGoTo(t)}refreshAndScrollToActive(e,t){if(e||t){const n=new Set,r=new Set;let i=!1;const o=a=>{if(!a)return;const{node:s,column:l}=a;n.add(s),l==null?i=!0:r.add(l)};o(e),o(t),this.refreshRows(n,i?void 0:r)}e&&this.scrollToActive(e)}scrollToActive({node:{rowPinned:e,rowIndex:t},column:n}){const{ctrlsSvc:r,pagination:i,gos:o}=this.beans,a=r.getScrollFeature();e==null&&t!=null&&(i&&!o.get("findOptions")?.currentPageOnly&&!i.isRowInPage(t)&&i.goToPageWithIndex(t),a.ensureIndexVisible(t)),a.ensureColumnVisible(n)}goToInContainer(e,t,n){let r=n;for(const i of e.keys()){const o=e.get(i);for(const[a,s]of o){if(t<=r+s){this.setActive({column:a,node:i,numInMatch:t-r,numOverall:t});return}r+=s}}}getMatches(e){return e==="top"?this.topMatches:e==="bottom"?this.bottomMatches:this.centerMatches}getRowNodes(e){return e==="top"?this.topNodes:e==="bottom"?this.bottomNodes:this.centerNodes}getActiveMatchNum(e,t){const n=this.activeMatch;return n!=null&&n.node===e&&n.column===t?n.numInMatch:0}destroy(){this.topMatches.clear(),this.topNodes.length=0,this.centerMatches.clear(),this.centerNodes.length=0,this.bottomMatches.clear(),this.bottomNodes.length=0,this.activeMatch=void 0,super.destroy()}},iJt={moduleName:"FindCore",version:wi,rowModels:["clientSide"],beans:[rJt],userComponents:{agFindCellRenderer:nJt},css:[GZt]},oJt={moduleName:"Find",version:wi,apiFunctions:{findGetTotalMatches:XZt,findGoTo:YZt,findNext:$Zt,findPrevious:UZt,findGetActiveMatch:QZt,findGetNumMatches:ZZt,findGetParts:JZt,findClearActive:KZt,findRefresh:eJt},dependsOn:[iJt]},aJt=class extends dt{constructor(e){super(),this.beanName="agChartsExports",this.isEnterprise=!1,this.create=e.create,this._Theme=e._Theme,this._Scene=e._Scene,this.isEnterprise=e.isEnterprise,this._Util=e._Util}};function QRe(e){return e.chart!=null?e.chart:e}function UA(e,t,n){if(e==null)return n;const r=t.split(".");let i=e;for(;r.length>1;)if(i=i[r.shift()],i==null)return n;const o=i[r[0]];return o??n}function sJt(e,t,n){if(e==null)return;const r=t.split(".");let i=e;r.forEach((o,a)=>{i[o]||(i[o]={}),a<r.length-1&&(i=i[o])}),i[r[r.length-1]]=n}var lJt={column:"bar",groupedColumn:"bar",stackedColumn:"bar",normalizedColumn:"bar",bar:"bar",groupedBar:"bar",stackedBar:"bar",normalizedBar:"bar",line:"line",stackedLine:"line",normalizedLine:"line",scatter:"scatter",bubble:"bubble",pie:"pie",donut:"donut",doughnut:"donut",area:"area",stackedArea:"area",normalizedArea:"area",histogram:"histogram",radarLine:"radar-line",radarArea:"radar-area",nightingale:"nightingale",radialColumn:"radial-column",radialBar:"radial-bar",sunburst:"sunburst",rangeBar:"range-bar",rangeArea:"range-area",boxPlot:"box-plot",treemap:"treemap",heatmap:"heatmap",waterfall:"waterfall",funnel:"funnel",coneFunnel:"cone-funnel",pyramid:"pyramid"},cJt=new Set(["columnLineCombo","areaColumnCombo","customCombo"]),uJt=["grouped","stacked","normalized"],Fit={area:{isCartesian:!0,canInvert:!0},bar:{isCartesian:!0,canInvert:!0},histogram:{isCartesian:!0},line:{isCartesian:!0,canInvert:!0},pie:{isPie:!0},donut:{isPie:!0,canInvert:!0},scatter:{isCartesian:!0},bubble:{isCartesian:!0},"radial-column":{isPolar:!0,isEnterprise:!0,isRadial:!0,canInvert:!0},"radial-bar":{isPolar:!0,isEnterprise:!0,isRadial:!0,canInvert:!0},"radar-line":{isPolar:!0,isEnterprise:!0,canInvert:!0},"radar-area":{isPolar:!0,isEnterprise:!0,canInvert:!0},nightingale:{isPolar:!0,isEnterprise:!0,canInvert:!0},"range-bar":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},"range-area":{isCartesian:!0,isEnterprise:!0},"box-plot":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},treemap:{isEnterprise:!0,isHierarchical:!0},sunburst:{isEnterprise:!0,isHierarchical:!0},heatmap:{isCartesian:!0,isEnterprise:!0},waterfall:{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},funnel:{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},"cone-funnel":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},pyramid:{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0}};function dJt(e){return!!Fit[e]}function oMe(e){return cJt.has(e)}function ww(e,t){return!!Fit[e]?.[t]}function pJt(e){return ww(Xs(e),"isEnterprise")}var hJt=new Set(["stackedColumn","normalizedColumn","stackedBar","normalizedBar"]);function fJt(e){return hJt.has(e)}function ox(e){return ww(e,"isCartesian")}function Fhe(e){return e==="funnel"||e==="cone-funnel"||e==="pyramid"}function Whe(e){return ww(e,"isPolar")}function gJt(e){return ww(e,"isRadial")}function oO(e){return ww(e,"isHierarchical")}function MW(e){return e==="doughnut"?"donut":e}function Wit(e){return lJt[e]}function Xs(e){return Wit(e)??"line"}function qit(e){return ww(e,"isPie")}function mJt(e){return e==="pie"||e==="waterfall"||e==="histogram"||e==="funnel"||e==="coneFunnel"||e==="pyramid"}function qhe(e){return oO(Xs(e))?void 0:1}function X$(e){return oO(Xs(e))?2:mJt(e)?1:void 0}function Bit(e){return!oMe(e)&&ww(Xs(e),"canInvert")}function vJt(e){return ww(Xs(e),"canSwitchDirection")}function aMe(e){switch(e){case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":case"stackedLine":case"normalizedLine":case"stackedArea":case"normalizedArea":return`${e}Full`;case"doughnut":return"donut";case"areaColumnCombo":return"AreaColumnCombo";default:return e}}var jit=["number","category","grouped-category","log","time"];function bJt(e){switch(e){case"bar":case"stackedBar":case"normalizedBar":return["number","category"];case"groupedBar":return["number","grouped-category"];case"column":case"stackedColumn":case"normalizedColumn":case"line":case"stackedLine":case"normalizedLine":case"area":case"stackedArea":case"normalizedArea":case"histogram":return["category","number"];case"groupedColumn":return["grouped-category","number"];case"scatter":case"bubble":return["number","number"];default:return}}function yJt(e,t,n,r,i){const{chartOptionsToRestore:o,chartPaletteToRestore:a,chartThemeToRestore:s,agChartsExports:l}=e,c=AJt(e),u=sMe(c,l._Theme),d=u?{baseTheme:c}:Hit(e,c)??{},p=e.getGridOptionsChartThemeOverrides(),h=e.apiChartThemeOverrides,g=Xs(e.chartType),m=e.crossFiltering?CJt(t,e,g):void 0,M=[u?wJt(e,n,(()=>{const C=x=>x?Object.keys(x).some(w=>UA(x[w],"title.enabled",!1)):!1;return C(p)||C(h)})()):void 0,SJt(),r,m,p,h,{...o??{}},i].filter(C=>!!C).reduce((C,x)=>({baseTheme:C,overrides:x}),d);if(a&&c===s){const C=e.agChartsExports._Theme.getChartTheme(d).palette;MJt(a,C)||(M.palette=a)}return M}function MJt(e,t){const n=(r,i)=>r===i?!0:r?.length!==i?.length?!1:r?.every((o,a)=>o===i?.[a])??!1;return n(e.fills,t.fills)&&n(e.strokes,t.strokes)}function sMe(e,t){return Object.keys(t.themes).includes(e)}function CJt(e,t,n){const i={tooltip:{delay:500},legend:{listeners:{legendItemClick:a=>{const s=e.getChart(),l=[a.seriesId,`${a.seriesId}-filtered-out`];s.series.filter(c=>l.includes(c.id)).forEach(c=>c.toggleSeriesItem(void 0,"category",a.itemId,void 0))}}},listeners:{click:a=>t.crossFilterCallback(a,!0)}};if(n==="pie"||n==="donut")return{[n]:{series:{fills:{$if:[{$eq:[{$value:"$index"},0]},{$map:[{$mix:[{$value:"$1"},{$ref:"backgroundColor"},.7]},{$palette:"fills"}]},{$palette:"fills"}]},strokes:{$if:[{$eq:[{$value:"$index"},0]},{$map:[{$mix:[{$value:"$1"},{$ref:"backgroundColor"},.7]},{$palette:"strokes"}]},{$palette:"strokes"}]}},...i}};const o={};return n!=="line"&&(o.fill={$if:[{$isEven:[{$value:"$index"}]},{$palette:"fill"},{$mix:[{$path:["../$prevIndex/fill",{$palette:"fill"}]},{$ref:"backgroundColor"},.7]}]}),{[n]:{series:{stroke:{$if:[{$isEven:[{$value:"$index"}]},{$palette:"stroke"},{$mix:[{$path:["../$prevIndex/fill",{$palette:"stroke"}]},{$ref:"backgroundColor"},.7]}]},...o},...i}}}var xJt=jit.reduce((e,t)=>({...e,[t]:{title:{_enabledFromTheme:!0}}}),{});function wJt(e,t,n){const r=e.getExtraPaddingDirections();return{common:{...t?{animation:{duration:500}}:void 0,axes:xJt,padding:{top:!n&&r.includes("top")?40:20,right:r.includes("right")?30:20,bottom:r.includes("bottom")?40:20,left:r.includes("left")?30:20}}}}function SJt(){return{pie:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}},donut:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}}}}function AJt(e){let t=e.getChartThemeName();const n=e.getChartThemes();return n.includes(t)||(t=n[0]),t}function Hit(e,t){const{customChartThemes:n}=e,r=n&&n[t];return r||ut(140,{name:t}),r}var yD=class{constructor(e){this.chartProxyParams=e,this.clearThemeOverrides=!1,this.agChartsExports=e.agChartsExports,this.chart=e.chartInstance,this.chartType=e.chartType,this.crossFiltering=e.crossFiltering,this.crossFilterCallback=e.crossFilterCallback,this.standaloneChartType=Xs(this.chartType),this.chart==null?this.chart=e.agChartsExports.create(this.getCommonChartOptions()):this.clearThemeOverrides=!0}crossFilteringReset(){}update(e){this.getChartRef().update(this.getUpdateOptions(e,this.getCommonChartOptions(e.updatedOverrides)))}updateThemeOverrides(e){this.getChartRef().updateDelta({theme:{overrides:e}})}getChart(){return QRe(this.chart)}getChartRef(){return this.chart}downloadChart(e,t,n){const{chart:r}=this,i=QRe(r),o=t||(i.title?i.title.text:"chart"),{width:a,height:s}=e||{};r.download({width:a,height:s,fileName:o,fileFormat:n})}getChartImageDataURL(e){return this.getChart().getCanvasDataURL(e)}getChartOptions(){return this.chart.getOptions()}getChartThemeOverrides(){return this.getChartOptions().theme.overrides??{}}getChartPalette(){return this.agChartsExports._Theme.getChartTheme(this.getChartOptions().theme).palette}setPaired(e){const t=Xs(this.chartProxyParams.chartType);this.chart.updateDelta({theme:{overrides:{[t]:{paired:e}}}})}isPaired(){const e=Xs(this.chartProxyParams.chartType);return UA(this.getChartThemeOverrides(),`${e}.paired`,!0)}lookupCustomChartTheme(e){return Hit(this.chartProxyParams,e)}getSeriesGroupType(){}transformCategoryData(e,t){return e.map((n,r)=>{const i=n[t],o=i&&i.toString?i.toString():"",a={...n};return a[t]={id:r,value:i,toString:()=>o},a})}getCommonChartOptions(e){const t=this.clearThemeOverrides?{}:this.chart?.getOptions()??{},n=this.chart!=null?this.getActiveFormattingPanelOverrides():void 0;this.clearThemeOverrides=!1;const r=this.chartProxyParams.styleNonce,i=yJt(this.chartProxyParams,this,this.agChartsExports.isEnterprise,this.getChartThemeDefaults(),e??n),o={...t,mode:"integrated",...r?{styleNonce:r}:{}};return this.chartProxyParams.suppressFieldDotNotation!==void 0&&(o.suppressFieldDotNotation=this.chartProxyParams.suppressFieldDotNotation),o.theme=i,o.container=this.chartProxyParams.parentElement,o}getChartThemeDefaults(){const e=this.getSeriesChartThemeDefaults(),t=e?{[this.standaloneChartType]:e}:{},n={enabled:!0,snap:!0,label:{enabled:!1}},r=this.agChartsExports.isEnterprise?{zoom:{enabled:!0},animation:{enabled:!0,duration:500},axes:{number:{crosshair:n},category:{crosshair:n},log:{crosshair:n},time:{crosshair:n}}}:{};return r.minHeight=0,r.minWidth=0,r.navigator={enabled:!1},{common:r,...t}}getSeriesChartThemeDefaults(){}getActiveFormattingPanelOverrides(){return this.clearThemeOverrides?{}:this.chart?.getOptions().theme?.overrides??{}}destroy({keepChartInstance:e=!1}={}){if(e)return this.chart.resetAnimations(),this.chart;this.destroyChart()}destroyChart(){this.chart&&(this.chart.destroy(),this.chart=void 0)}},Sw=class extends yD{constructor(){super(...arguments),this.crossFilteringAllPoints=new Set,this.crossFilteringSelectedPoints=[]}getUpdateOptions(e,t){const n=this.getAxes(e,t);return{...t,data:this.getData(e,n),axes:n,series:this.getSeries(e)}}getData(e,t){const n=["area","line"].includes(this.standaloneChartType);return this.crossFiltering&&n?this.getCrossFilterData(e):this.getDataTransformedData(e,t)}getDataTransformedData(e,t){const n=t[0].type,{categories:r,data:i}=e,[o]=r;switch(n){case"category":return this.transformCategoryData(i,o.id);case"time":return this.transformTimeData(i,o.id);default:return i}}getXAxisType(e){return e.grouping?"grouped-category":this.isXAxisOfType(e,"time",t=>t instanceof Date)?"time":this.isXAxisOfType(e,"number")?"number":"category"}isXAxisOfType(e,t,n){const[r]=e.categories;if(r?.chartDataType)return r.chartDataType===t;if(!n)return!1;const i=e.data[0];return i?n(i[r.id]):!1}transformTimeData(e,t){return e[0]?.[t]instanceof Date?e:e.map(r=>{const i=r[t];return typeof i=="string"?{...r,[t]:new Date(i)}:r})}crossFilteringReset(){this.crossFilteringSelectedPoints=[],this.crossFilteringAllPoints.clear()}crossFilteringPointSelected(e){return this.crossFilteringSelectedPoints.length==0||this.crossFilteringSelectedPoints.includes(e)}crossFilteringDeselectedPoints(){return this.crossFilteringSelectedPoints.length>0&&this.crossFilteringAllPoints.size!==this.crossFilteringSelectedPoints.length}extractLineAreaCrossFilterSeries(e,t){const[n]=t.categories,r=i=>this.standaloneChartType==="area"?t.getCrossFilteringContext().lastSelectedChartId===t.chartId?i+"-total":i:i+"-total";return e.map(i=>(i.yKey=r(i.yKey),i.listeners={nodeClick:o=>{const a=o.datum[i.xKey],s=o.event.metaKey||o.event.ctrlKey;this.crossFilteringAddSelectedPoint(s,a),this.crossFilterCallback(o)}},i.marker={itemStyler:o=>{const a=o.datum[n.id];return{fill:o.highlighted?"yellow":o.fill,size:o.highlighted?14:this.crossFilteringPointSelected(a)?8:0}}},this.standaloneChartType==="area"&&(i.fillOpacity=this.crossFilteringDeselectedPoints()?.3:1),this.standaloneChartType==="line"&&(i.strokeOpacity=this.crossFilteringDeselectedPoints()?.3:1),i))}getCrossFilterData(e){this.crossFilteringAllPoints.clear();const[t]=e.categories,n=e.fields[0].colId,r=`${n}-filtered-out`,i=e.getCrossFilteringContext().lastSelectedChartId;return e.data.map(o=>{const a=o[t.id];this.crossFilteringAllPoints.add(a);const s=this.crossFilteringPointSelected(a);return this.standaloneChartType==="area"&&i===e.chartId&&(o[`${n}-total`]=s?o[n]:o[n]+o[r]),this.standaloneChartType==="line"&&(o[`${n}-total`]=s?o[n]:o[n]+o[r]),o})}crossFilteringAddSelectedPoint(e,t){e?this.crossFilteringSelectedPoints.push(t):this.crossFilteringSelectedPoints=[t]}isHorizontal(e){const t=this.standaloneChartType;if(t!=="waterfall"&&t!=="box-plot"&&t!=="range-bar")return!1;const n=e.theme,r=i=>{const o=i?.overrides?.[t]?.series?.direction;return o!=null?o==="horizontal":typeof i?.baseTheme=="object"?r(i.baseTheme):!1};return r(n)}},OJt=class extends Sw{getSeries(e){const t=e.fields[0];return[{type:this.standaloneChartType,xKey:t.colId,xName:t.displayName,yName:this.chartProxyParams.translate("histogramFrequency"),areaPlot:!1}]}getAxes(e){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]}},zJt=class extends Sw{getAxes(e,t){return[{type:this.getXAxisType(e),position:this.isHorizontal(t)?"left":"bottom"},{type:"number",position:this.isHorizontal(t)?"bottom":"left"}]}getSeries(e){const[t]=e.categories,[n]=e.fields;return[{type:this.standaloneChartType,xKey:t.id,xName:t.name,yKey:n.colId,yName:n.displayName??void 0}]}},TJt=class extends yD{getUpdateOptions(e,t){return{...t,data:this.transformFunnelCategories(e),series:this.getSeries(e)}}transformFunnelCategories(e){const{data:t}=e,[{id:n}]=e.categories;return t.map((r,i)=>({...r,[n]:{name:r[n],id:i,toString:()=>r[n]}}))}getSeriesChartThemeDefaults(){const e={crosshair:{enabled:!1}};return{zoom:{enabled:!1},...this.chartType!=="pyramid"&&{axes:{category:e,number:e}}}}getSeries(e){const[{id:t}]=e.categories,[{colId:n}]=e.fields;return[{type:this.standaloneChartType,stageKey:t,valueKey:n}]}},n7="AG-GRID-DEFAULT-LABEL-KEY";function EJt(e,t){const n=Vit(e,r,i);return lMe(n);function r(a){return t.length}function i(a,s){const l=t[s],c=a[l];return o(c)}function o(a){return a==null?null:String(a)}}function RJt(e,t){const n=Vit(e,r,i);return lMe(n);function r(o){return t(o)?.length??0}function i(o,a){const s=t(o);if(!s)return null;const l=s.length-1-a;return s[l]}}function lMe(e,t=null,n){const{depth:r,rootValues:i,value:o,children:a}=e;if(i)return i.map(l=>({[n7]:t,...l}));if(r===0)return[{[n7]:t,...o}];const s=[];for(const[l,c]of a.entries())s.push(...lMe(c,l,!0));return n?[{[n7]:t,children:s,...o??{}}]:s}function Vit(e,t,n){const r={depth:0,children:new Map};return e.forEach(o=>{const a=t(o);i(o,a,n,0,r)}),r;function i(o,a,s,l,c){if(l===a)return l===0?(c.rootValues||(c.rootValues=[]),c.rootValues.push(o)):c.value=o,c;{const u=s(o,l),d=c.children.get(u),p=i(o,a,s,l+1,d||{depth:0,children:new Map});return c.children.set(u,p),c.depth=Math.max(1+p.depth,c.depth),c}}}var IJt=class extends yD{getUpdateOptions(e,t){const{fields:n}=e,[r,i]=n;return{...t,series:this.getSeries(r,i),data:this.getData(e,r,i)}}getSeriesChartThemeDefaults(){return{gradientLegend:{gradient:{preferredLength:200},position:"right"}}}getSeries(e,t){return[{type:this.standaloneChartType,labelKey:n7,sizeKey:e?.colId,sizeName:e?.displayName??void 0,colorKey:t?.colId,colorName:t?.displayName??void 0}]}getData(e,t,n){const{categories:r,data:i,groupData:o,grouping:a}=e;if(a){const s=n?i.concat(o?.map(l=>{const c={...l};return delete c[t.colId],c})??[]):i;return RJt(s,l=>l[jy]?.labels??null)}else{const s=r.map(({id:l})=>l);return EJt(i,s)}}},PJt=class extends yD{getAxes(e){const t=this.standaloneChartType==="radial-bar";return[{type:t?"angle-number":"angle-category"},{type:t?"radius-category":"radius-number"}]}getSeries(e){const{fields:t,categories:n,seriesGroupType:r}=e,[i]=n,o=this.standaloneChartType==="radial-bar",a=this.getSeriesGroupTypeOptions(r);return t.map(s=>({type:this.standaloneChartType,angleKey:o?s.colId:i.id,angleName:o?s.displayName??void 0:i.name,radiusKey:o?i.id:s.colId,radiusName:o?i.name:s.displayName??void 0,...a}))}getSeriesGroupType(){const e=this.standaloneChartType;if(!["nightingale","radial-bar","radial-column"].includes(e))return;const t=this.getChart().series?.[0]?.properties.toJson(),n=()=>t.normalizedTo?"normalized":"stacked";return e==="nightingale"?t.grouped?"grouped":n():t.stacked?n():"grouped"}getUpdateOptions(e,t){const n=this.getAxes(e);return{...t,data:this.getData(e,n),axes:n,series:this.getSeries(e)}}getData(e,t){if(t.some(r=>r.type==="angle-category"||r.type==="radius-category")){const[r]=e.categories;return this.transformCategoryData(e.data,r.id)}else return e.data}getSeriesGroupTypeOptions(e){return e?{grouped:e==="grouped"||void 0,stacked:e!=="grouped"||void 0,normalizedTo:e==="normalized"?100:void 0}:{}}};function DJt(e,t){return e.reduce((n,r,i,o)=>n.concat(t(r,i,o)),new Array)}var kJt="AG-GRID-DEFAULT-HEATMAP-CATEGORY-KEY",LJt="AG-GRID-DEFAULT-HEATMAP-SERIES-KEY",_Jt="AG-GRID-DEFAULT-HEATMAP-VALUE-KEY",NJt=class extends yD{getUpdateOptions(e,t){const n=LJt,r=_Jt,i=kJt;return{...t,series:this.getSeries(e,n,r,i),data:this.getData(e,n,r,i)}}getSeries(e,t,n,r){const[i]=e.categories;return[{type:this.standaloneChartType,yKey:r,xKey:t,colorKey:n,yName:i.name,xName:void 0,colorName:void 0}]}getData(e,t,n,r){const[i]=e.categories;return DJt(e.data,(o,a)=>{const s=o[i.id],l=s==null?"":String(s),c={id:a,value:s,toString:()=>l};return e.fields.map(({colId:u,displayName:d})=>({...o,[t]:d,[n]:o[u],[r]:c}))})}getSeriesChartThemeDefaults(){return{gradientLegend:{gradient:{preferredLength:200},position:"right"},series:{tooltip:{renderer:FJt}}}}};function FJt(e){const{xKey:t,yKey:n,colorKey:r,yName:i,datum:o}=e;return{title:"",data:[{label:i,value:o[n]},{label:o[t],value:r&&o[r]}].map(({label:s,value:l})=>({label:String(s),value:String(l)}))}}var WJt=class extends dt{wireBeans(e){this.sortSvc=e.sortSvc,this.gridRowModel=e.rowModel,this.colModel=e.colModel,this.valueSvc=e.valueSvc,this.pivotResultCols=e.pivotResultCols,this.rowNodeSorter=e.rowNodeSorter}getData(e){if(e.crossFiltering){if(e.grouping)return ut(141),{chartData:[],colNames:{}};if(!sa(this.gos))return ut(142),{chartData:[],colNames:{}}}Au(this.gos)&&e.pivoting&&this.updatePivotKeysForSSRM();const n=this.extractRowsFromGridRowModel(e);return n.chartData=this.aggregateRowsByDimension(e,n.chartData),n}extractRowsFromGridRowModel(e){const{crossFiltering:t,startRow:n,endRow:r,valueCols:i,dimensionCols:o,grouping:a}=e;let s=[];const l={},c={},u={};let d={},p=[],h;if(t)d=this.getFilteredRowNodes(),p=this.getAllRowNodes(),h=p.length;else{const M=this.gridRowModel.getRowCount()-1;n===r&&n===0&&o.length===0&&i.length===0?h=0:h=(r>=0?Math.min(r,M):M)-n+1}h>0&&i.forEach(M=>{let C=[];const x=M.getColDef().pivotKeys;x&&(C=x.slice());const w=M.getColDef().headerName;w&&C.push(w),C.length>0&&(l[M.getId()]=C)});let g=0,m=0;const b={};for(let M=0;M<h;M++){const C=t?p[M]:this.gridRowModel.getRow(M+n);if(C.footer||C.detail){g++;continue}const x={};o.forEach(w=>{const S=w.colId,A=this.colModel.getCol(S);if(A){const z=this.valueSvc.getValue(A,C);if(a){const O=z?.toString?String(z.toString()):" ",T=this.getGroupLabels(C,O),R=T.slice().reverse(),P={value:R,id:m++,toString:()=>R.filter(Boolean).join(" - ")},F=P.toString(),N=b[F];x[S]=N||(b[F]=P),C.group&&(c[T.toString()]=M-g);const L=T.slice(1,T.length).toString();L&&(u[L]=c[L])}else x[S]=z}else x[Ib]=M+1}),i.forEach(w=>{const S=w.getColId();if(t){const A=S+"-filtered-out",z=this.valueSvc.getValue(w,C);let O=z;z!=null&&(typeof z.toNumber=="function"?O=z.toNumber():typeof z.value=="number"&&(O=z.value)),d[C.id]?(x[S]=O,x[A]=e.aggFunc||e.isScatter?void 0:0):(x[S]=e.aggFunc||e.isScatter?void 0:0,x[A]=O)}else{let A=this.valueSvc.getValue(w,C);A&&typeof A.value=="number"&&(A=A.value),A&&Object.prototype.hasOwnProperty.call(A,"toString")&&(A=parseFloat(A.toString())),x[S]=A!=null&&typeof A.toNumber=="function"?A.toNumber():A}}),s.push(x)}let y;if(a){const M=Object.values(u),C=s;s=[],y=[];for(let x=0;x<C.length;x++)(M.includes(x)?y:s).push(C[x])}return{chartData:s,colNames:l,groupChartData:y}}aggregateRowsByDimension(e,t){const n=e.dimensionCols;if(!e.aggFunc||n.length===0)return t;const r=zr(n),i=r&&r.colId,o={},a=[];return t.forEach(s=>{let l=o;n.forEach(c=>{const u=c.colId,d=s[u];if(u===i){let p=l[d];p||(p={__children:[]},n.forEach(h=>{const g=h.colId;p[g]=s[g]}),l[d]=p,a.push(p)),p.__children.push(s)}else l[d]||(l[d]={}),l=l[d]})}),this.gos.assertModuleRegistered("SharedAggregation",1)&&a.forEach(s=>e.valueCols.forEach(l=>{const c=l.getColId();if(e.crossFiltering){const u=s.__children.filter(m=>typeof m[c]<"u").map(m=>m[c]),d=uI(this.beans,u,e.aggFunc,l);s[c]=d&&typeof d.value<"u"?d.value:d;const p=`${c}-filtered-out`,h=s.__children.filter(m=>typeof m[p]<"u").map(m=>m[p]),g=uI(this.beans,h,e.aggFunc,l);s[p]=g&&typeof g.value<"u"?g.value:g}else{const u=s.__children.map(p=>p[c]),d=uI(this.beans,u,e.aggFunc,l);s[c]=d&&typeof d.value<"u"?d.value:d}})),a}updatePivotKeysForSSRM(){const e=this.pivotResultCols?.getPivotResultCols()?.list;if(!e)return;const t=this.extractPivotKeySeparator(e);e.forEach(n=>{if(t==="")n.getColDef().pivotKeys=[];else{const r=n.getColId().split(t);n.getColDef().pivotKeys=r.slice(0,r.length-1)}})}extractPivotKeySeparator(e){if(e.length===0)return"";const t=(r,i)=>{const o=r.getGroupId();return r.getParent()?t(r.getParent(),o):i.split(o)[1][0]},n=e[0];return n.getParent()==null?"":t(n.getParent(),n.getColId())}getGroupLabels(e,t){const n=[t];for(;e&&e.level!==0;)if(e=e.parent,e)if(e.group){const r=this.colModel.getCol(jy);if(r){const i=this.valueSvc.getValue(r,e),o=i?.toString?String(i.toString()):" ";n.push(o)}}else n.push(e.key);return n}getFilteredRowNodes(){const e={};return this.gridRowModel.forEachNodeAfterFilterAndSort(t=>{e[t.id]=t}),e}getAllRowNodes(){const e=[];return this.gridRowModel.forEachNode(t=>{e.push(t)}),this.sortRowNodes(e)}sortRowNodes(e){const t=this.sortSvc?.getSortOptions();return!t||t.length==0||!this.rowNodeSorter?e:this.rowNodeSorter.doFullSort(e,t)}},qJt=class extends dt{constructor(){super(...arguments),this.beanName="chartColSvc",this.valueColsWithoutSeriesType=new Set}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.valueSvc=e.valueSvc}postConstruct(){const e=()=>this.valueColsWithoutSeriesType.clear();this.addManagedEventListeners({newColumnsLoaded:e,rowDataUpdated:e})}getColumn(e){return this.colModel.getColDefCol(e)}getAllDisplayedColumns(){return this.beans.visibleCols.allCols}getColDisplayName(e,t){const n="chart",r=this.colNames.getDisplayNameForColumn(e,n);if(t){const i=[r],o=a=>{if(!a)return;const s=this.colNames.getDisplayNameForColumnGroup(a,n);s?.length&&(i.unshift(s),o(a.getParent()))};return o(e.getParent()),i.join(" - ")}return r}getRowGroupColumns(){return this.beans.rowGroupColsSvc?.columns??[]}getGroupDisplayColumns(){return this.beans.showRowGroupCols?.getShowRowGroupCols()??[]}isPivotMode(){return this.colModel.isPivotMode()}isPivotActive(){return this.colModel.isPivotActive()}getChartColumns(){const e=this.colModel.getCols(),t=new Set,n=new Set;return e.forEach(r=>{const i=r.getColDef(),o=i.chartDataType;if(o)switch(o){case"category":case"time":t.add(r);return;case"series":n.add(r);return;case"excluded":return;default:ut(153,{chartDataType:o});break}if(i.colId==="ag-Grid-AutoColumn"){t.add(r);return}if(!r.isPrimary()){n.add(r);return}(this.isInferredValueCol(r)?n:t).add(r)}),{dimensionCols:t,valueCols:n}}isInferredValueCol(e){const t=e.getColId();if(t==="ag-Grid-AutoColumn")return!1;const n=lp(this.beans,{rowIndex:0,rowPinned:null});if(!n)return this.valueColsWithoutSeriesType.has(t);let r=this.valueSvc.getValue(e,n);r==null&&(r=this.extractLeafData(n,e)),r!=null&&(typeof r.toNumber=="function"?r=r.toNumber():typeof r.value=="number"&&(r=r.value));const i=typeof r=="number"||e.colDef.cellDataType==="number"||["series","time"].includes(e.colDef.chartDataType);return i?this.valueColsWithoutSeriesType.add(t):r==null&&e.colDef.cellDataType!=="number"&&ut(265,{colId:t}),i}extractLeafData(e,t){if(!e.allLeafChildren)return null;for(let n=0;n<e.allLeafChildren.length;n++){const r=e.allLeafChildren[n],i=this.valueSvc.getValue(t,r);if(i!=null)return i}return null}destroy(){this.valueColsWithoutSeriesType.clear(),super.destroy()}},BJt=new Set(["line","groupedColumn","stackedColumn","area","stackedArea"]),jJt=class extends dt{constructor(e){super(),this.suppressComboChartWarnings=!1,this.chartDataModel=e,this.seriesChartTypes=e.params.seriesChartTypes??[]}postConstruct(){this.initComboCharts()}update(e){this.seriesChartTypes=e??this.seriesChartTypes,this.initComboCharts(),this.updateSeriesChartTypes()}initComboCharts(){const e=this.seriesChartTypes&&this.seriesChartTypes.length>0;(this.chartDataModel.chartType==="customCombo"||e)&&(this.chartDataModel.chartType="customCombo",this.savedCustomSeriesChartTypes=this.seriesChartTypes||[])}updateSeriesChartTypes(){if(this.chartDataModel.isComboChart()){if(this.seriesChartTypes=this.seriesChartTypes.map(e=>{const t=["groupedColumn","stackedColumn","stackedArea"].includes(e.chartType);return e.secondaryAxis=t?!1:e.secondaryAxis,e}),this.chartDataModel.chartType==="customCombo"){this.updateSeriesChartTypesForCustomCombo();return}this.updateChartSeriesTypesForBuiltInCombos()}}updateSeriesChartTypesForCustomCombo(){!(this.seriesChartTypes&&this.seriesChartTypes.length>0)&&!this.suppressComboChartWarnings&&ut(150),this.seriesChartTypes=this.seriesChartTypes.map(r=>(BJt.has(r.chartType)||(ut(151,{chartType:r.chartType}),r.chartType="line"),r));const t=r=>{(!this.savedCustomSeriesChartTypes||this.savedCustomSeriesChartTypes.length===0)&&(this.savedCustomSeriesChartTypes=this.seriesChartTypes);const i=this.savedCustomSeriesChartTypes.find(o=>o.colId===r.colId);return i||(r.selected&&!this.suppressComboChartWarnings&&ut(152,{colId:r.colId}),{colId:r.colId,chartType:"line",secondaryAxis:!1})},n=this.chartDataModel.valueColState.map(t);this.seriesChartTypes=n,this.savedCustomSeriesChartTypes=n,this.suppressComboChartWarnings=!0}updateChartSeriesTypesForBuiltInCombos(){const{chartType:e,valueColState:t}=this.chartDataModel,n=e==="columnLineCombo"?"groupedColumn":"stackedArea",r=e==="columnLineCombo"?"line":"groupedColumn",i=t.filter(a=>a.selected),o=Math.ceil(i.length/2);this.seriesChartTypes=i.map((a,s)=>{const l=s>=o?r:n;return{colId:a.colId,chartType:l,secondaryAxis:!1}})}},Ib="AG-GRID-DEFAULT-CATEGORY",HJt=class extends dt{constructor(e){super(),this.unlinked=!1,this.chartData=[],this.valueColState=[],this.dimensionColState=[],this.colNames={},this.crossFiltering=!1,this.grouping=!1,this.params=e,this.chartId=e.chartId,this.setParams(e)}wireBeans(e){this.rangeSvc=e.rangeSvc,this.chartTranslation=e.chartTranslation}setParams(e){const{chartType:t,pivotChart:n,chartThemeName:r,switchCategorySeries:i,aggFunc:o,cellRange:a,suppressChartRanges:s,unlinkChart:l,crossFiltering:c,seriesGroupType:u}=e;this.chartType=t,this.pivotChart=n??!1,this.chartThemeName=r,this.switchCategorySeries=!!i,this.aggFunc=o,this.referenceCellRange=a,this.suppliedCellRange=a,this.suppressChartRanges=s??!1,this.unlinked=!!l,this.crossFiltering=!!c,this.seriesGroupType=u}postConstruct(){this.datasource=this.createManagedBean(new WJt),this.chartColSvc=this.createManagedBean(new qJt),this.comboChartModel=this.createManagedBean(new jJt(this)),this.updateCellRanges({setColsFromRange:!0}),this.updateData()}updateModel(e){const{cellRange:t,seriesChartTypes:n}=e;t!==this.suppliedCellRange&&(this.dimensionCellRange=void 0,this.valueCellRange=void 0),this.setParams(e),this.updateSelectedDimensions(t?.columns),this.updateCellRanges({setColsFromRange:!0}),(this.isComboChart()||n)&&this.comboChartModel.update(n),this.unlinked||this.updateData()}updateCellRanges(e){const{updatedColState:t,resetOrder:n,maintainColState:r,setColsFromRange:i}=e??{};this.valueCellRange&&(this.referenceCellRange=this.valueCellRange);const{dimensionCols:o,valueCols:a}=this.chartColSvc.getChartColumns(),s=this.getAllColumnsFromRanges();t&&this.updateColumnState(t,n),this.setDimensionCellRange(o,s,t),this.setValueCellRange(a,s,i),!t&&!r&&(this.resetColumnState(),this.syncDimensionCellRange()),this.comboChartModel.updateSeriesChartTypes()}updateData(){const{startRow:e,endRow:t}=this.getRowIndexes();this.pivotChart&&this.resetColumnState(),this.grouping=this.isGrouping();const n={aggFunc:this.aggFunc,dimensionCols:this.getSelectedDimensions(),grouping:this.grouping,pivoting:this.isPivotActive(),crossFiltering:this.crossFiltering,valueCols:this.getSelectedValueCols(),startRow:e,endRow:t,isScatter:["scatter","bubble"].includes(this.chartType)},{chartData:r,colNames:i,groupChartData:o}=this.datasource.getData(n);this.chartData=r,this.groupChartData=o,this.colNames=i,this.categoryAxisType=void 0}isGrouping(){const e=this.gos.get("treeData"),t=e?null:this.chartColSvc.getRowGroupColumns(),n=e||t&&t.length>0,r=this.getSelectedDimensions().map(({colId:a})=>a),o=this.chartColSvc.getGroupDisplayColumns().map(a=>a.getColId()).some(a=>r.includes(a));return!!n&&o}getSelectedValueCols(){return this.valueColState.filter(e=>e.selected).map(e=>e.column)}getSelectedDimensions(){return this.dimensionColState.filter(e=>e.selected)}getColDisplayName(e,t){return this.chartColSvc.getColDisplayName(e,t)}isPivotMode(){return this.chartColSvc.isPivotMode()}getChartDataType(e){const t=this.chartColSvc.getColumn(e);return t?t.getColDef().chartDataType:void 0}isPivotActive(){return this.chartColSvc.isPivotActive()}createCellRange(e,...t){return{id:this.chartId,startRow:this.referenceCellRange.startRow,endRow:this.referenceCellRange.endRow,columns:t,startColumn:e===hf.DIMENSION||this.referenceCellRange.startColumn==null?t[0]:this.referenceCellRange.startColumn,type:e}}getAllColumnsFromRanges(){if(this.pivotChart)return new Set(this.chartColSvc.getAllDisplayedColumns());const e=this.dimensionCellRange||this.valueCellRange?[]:this.referenceCellRange.columns;return this.dimensionCellRange&&e.push(...this.dimensionCellRange.columns),this.valueCellRange&&e.push(...this.valueCellRange.columns),new Set(e)}getRowIndexes(){let e=0,t=0;const{rangeSvc:n,valueCellRange:r,dimensionCellRange:i}=this,o=r||i;if(n&&o){e=n.getRangeStartRow(o).rowIndex;const a=n.getRangeEndRow(o);t=a.rowPinned==="bottom"?-1:a.rowIndex}return{startRow:e,endRow:t}}resetColumnState(){const{dimensionCols:e,valueCols:t}=this.chartColSvc.getChartColumns(),n=this.getAllColumnsFromRanges(),r=this.valueColState.length<1;this.dimensionColState=[],this.valueColState=[];const i=oO(Xs(this.chartType));let o=!1,a=1;const s=this.suppliedCellRange.columns[0];e.forEach(u=>{const d=u.getColId()==="ag-Grid-AutoColumn";let p=!1;this.crossFiltering&&this.aggFunc?s.getColId()===u.getColId()&&(p=!0):p=d?!0:(!o||i)&&n.has(u),this.dimensionColState.push({column:u,colId:u.getColId(),displayName:this.getColDisplayName(u),selected:p,order:a++}),p&&(o=!0)});const l={colId:Ib,displayName:this.chartTranslation.translate("defaultCategory"),selected:!o,order:0};this.dimensionColState.unshift(l);const c=this.referenceCellRange.columns.filter(u=>t.has(u));t.forEach(u=>{r&&this.referenceCellRange.columns.includes(u)&&(u=c.shift()),this.valueColState.push({column:u,colId:u.getColId(),displayName:this.getColDisplayName(u),selected:n.has(u),order:a++})})}updateColumnState(e,t){const n=c=>c.colId===e.colId,{dimensionColState:r,valueColState:i}=this,o=r.find(n),a=i.find(n);if(o)if(oO(Xs(this.chartType)))o.selected=e.selected;else{const u=e.selected?o:r.filter(d=>d!==o).find(({selected:d})=>d);r.forEach(d=>d.selected=d===u)}else a&&(a.selected=e.selected);const s=[...r,...i],l=[];t||(s.forEach((c,u)=>{u===e.order&&l.push(e.colId),c.colId!==e.colId&&l.push(c.colId)}),s.forEach(c=>{const u=l.indexOf(c.colId);c.order=u>=0?l.indexOf(c.colId):s.length-1})),this.reorderColState()}reorderColState(){const e=(t,n)=>t.order-n.order;this.dimensionColState.sort(e),this.valueColState.sort(e)}setDimensionCellRange(e,t,n){this.dimensionCellRange=void 0;const r=oO(Xs(this.chartType));if(!n&&!this.dimensionColState.length){const s=new Array;e.forEach(l=>{s.length>0&&!r||!t.has(l)||s.push(l)}),s.length>0&&(this.dimensionCellRange=this.createCellRange(hf.DIMENSION,...s));return}let i=n?[n]:[];if(this.crossFiltering&&this.aggFunc){const s=this.suppliedCellRange.columns[0];i=this.dimensionColState.filter(l=>l.colId===s.getColId())}else(r||i.length===0||i.some(({column:s})=>!s||!e.has(s)))&&(i=this.dimensionColState.filter(s=>s.selected));const o=i.length===1?i[0].colId===Ib:!1,a=i.map(({column:s})=>s).filter(s=>s!=null);a.length>0&&!o&&(this.dimensionCellRange=this.createCellRange(hf.DIMENSION,...a))}setValueCellRange(e,t,n){this.valueCellRange=void 0;const r=[],i=X$(this.chartType);let o=0;if(e.forEach(a=>{n?(i==null||o<i)&&t.has(a)&&(r.push(a),o++):this.valueColState.some(s=>s.selected&&s.colId===a.getColId())&&r.push(a)}),r.length>0){let a=[];this.valueColState.length>0?a=this.valueColState.map(s=>s.colId):t.forEach(s=>a.push(s.getColId())),r.sort((s,l)=>a.indexOf(s.getColId())-a.indexOf(l.getColId())),this.valueCellRange=this.createCellRange(hf.VALUE,...r)}}resetCellRanges(e,t){if(!e&&!t)return;const{dimensionCols:n,valueCols:r}=this.chartColSvc.getChartColumns(),i=this.getAllColumnsFromRanges();e&&this.setDimensionCellRange(n,i),t&&this.setValueCellRange(r,i)}updateSelectedDimensions(e){const t=new Set(e.map(r=>r.getColId()));if(oO(Xs(this.chartType))){const r=this.dimensionColState.filter(o=>t.has(o.colId)),i=new Set(r.map(o=>o.colId));this.dimensionColState=this.dimensionColState.map(o=>({...o,selected:i.has(o.colId)}))}else{const i=(this.dimensionColState.find(o=>t.has(o.colId))||this.dimensionColState[0]).colId;this.dimensionColState=this.dimensionColState.map(o=>({...o,selected:o.colId===i}))}}syncDimensionCellRange(){const e=this.getSelectedDimensions();if(e.length===0)return;const t=e.map(({column:n})=>n).filter(n=>n!=null);t.length>0&&(this.dimensionCellRange=this.createCellRange(hf.DIMENSION,...t))}isComboChart(e){return oMe(e??this.chartType)}},Git=class extends Sw{getAxes(e,t){return[{type:this.getXAxisType(e),position:this.isHorizontal(t)?"left":"bottom"},{type:"number",position:this.isHorizontal(t)?"bottom":"left"}]}computeSeriesStatistics(e,t){const{data:n,fields:r}=e,[i]=e.categories,o=i.id||Ib,a=this.groupDataByCategory(o,n);return Array.from(a).map(([s,l])=>{const c={[i.id]:s};return r.forEach((u,d)=>{const p=l.map(g=>g[u.colId]).filter(g=>typeof g=="number"&&!isNaN(g)),h=t(p);for(const g of Object.keys(h)){const m=`${g}:${d}`;c[m]=p.length>0?h[g]:null}}),c})}groupDataByCategory(e,t){const n=r=>{if(e===Ib)return 1;const i=r[e];return i==null?"":i instanceof Date?i.getTime():i};return t.reduce((r,i)=>{const o=n(i),a=r.get(o);return a?a.push(i):r.set(o,[i]),r},new Map)}},VJt=class extends Git{getSeries(e){const[t]=e.categories;return e.fields.map((n,r)=>({type:this.standaloneChartType,xKey:t.id,xName:t.name,yName:n.displayName??void 0,minName:"Min",q1Name:"Q1",medianName:"Median",q3Name:"Q3",maxName:"Max",minKey:`min:${r}`,q1Key:`q1:${r}`,medianKey:`median:${r}`,q3Key:`q3:${r}`,maxKey:`max:${r}`}))}getData(e){return this.computeSeriesStatistics(e,t=>{const n=t.sort((r,i)=>r-i);return{min:n[0],q1:this.quantile(n,.25),median:this.quantile(n,.5),q3:this.quantile(n,.75),max:n[n.length-1]}})}quantile(e,t){const n=(e.length-1)*t,r=Math.floor(n),i=n-r;return e[r+1]!==void 0?e[r]+i*(e[r+1]-e[r]):e[r]}},GJt=class extends Git{getSeries(e){const[t]=e.categories;return e.fields.map((n,r)=>({type:this.standaloneChartType,xKey:t.id,xName:t.name,yName:n.displayName??void 0,yLowName:"Min",yHighName:"Max",yLowKey:`min:${r}`,yHighKey:`max:${r}`}))}getData(e){return this.computeSeriesStatistics(e,t=>({min:Math.min(...t),max:Math.max(...t)}))}},$Jt=class extends dt{constructor(){super(...arguments),this.beanName="enterpriseChartProxyFactory"}createChartProxy(e){switch(e.chartType){case"histogram":return new OJt(e);case"radarLine":case"radarArea":case"nightingale":case"radialColumn":case"radialBar":return new PJt(e);case"rangeBar":case"rangeArea":return new GJt(e);case"boxPlot":return new VJt(e);case"treemap":case"sunburst":return new IJt(e);case"heatmap":return new NJt(e);case"waterfall":return new zJt(e);case"funnel":case"coneFunnel":case"pyramid":return new TJt(e)}}},$it=class extends dt{constructor(e,t,n,r){super(),this.chartController=e,this.eGui=t,this.cssClass=n,this.createPanels=r,this.panels=[]}postConstruct(){this.addManagedListeners(this.chartController,{chartUpdated:()=>this.refreshPanels(!0),chartApiUpdate:()=>this.refreshPanels(!1)})}addComponent(e){this.createBean(e),this.panels.push(e),e.addCss(this.cssClass),this.eGui.appendChild(e.getGui())}refreshPanels(e){const t=this.chartController.getChartType(),n=this.chartController.isGrouping(),r=Xs(t);e&&t===this.chartType&&n===this.isGrouping||(this.destroyPanels(),this.createPanels(t,r),this.chartType=t,this.isGrouping=n)}destroyPanels(){this.panels.forEach(e=>{Ps(e.getGui()),this.destroyBean(e)}),this.panels=[]}destroy(){this.destroyPanels(),super.destroy()}},UJt=class extends Gt{constructor(e){super(),this.chartMenuParamsFactory=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuParamsFactory.addEnableParams("animation.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("animation"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuParamsFactory.getDefaultNumberInputParams("animation.duration","durationMillis",{min:0});this.setTemplate(`<div>
            <ag-group-component data-ref="animationGroup">
                <ag-input-number-field data-ref="animationHeightInput"></ag-input>
            </ag-group-component>
        </div>`,[Qs,LK],{animationGroup:e,animationHeightInput:t})}},XJt={tag:"div",cls:"ag-color-input",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:"input",ref:"eInput",cls:"ag-input-field-input"},{tag:"div",ref:"eColor",cls:"ag-color-input-color"}]}]},YJt=class extends Im{constructor(){super({template:XJt}),this.eColor=at}wireBeans(e){this.chartTranslation=e.chartTranslation,this.color=e.agChartsExports._Util.Color}setColor(e){const t=e.toRgbaString();this.setValue(this.color.fromString(t).toHexString().toUpperCase(),!0),this.eColor.style.backgroundColor=t}setValue(e,t){const n=this.color.validColorString(e??"");return this.eInput.setCustomValidity(n?"":this.chartTranslation.translate("invalidColor")),super.setValue(e,t),n&&!t&&this.dispatchLocalEvent({type:"colorChanged"}),this}onColorChanged(e){this.addManagedListeners(this,{colorChanged:()=>e(this.color.fromString(this.value))})}},KJt={selector:"AG-COLOR-INPUT",component:YJt},ZRe=8,i8=[],QJt=class extends Gt{constructor(e){super(`<div class="ag-color-panel" tabindex="-1">
            <div data-ref="spectrumColor" class="ag-spectrum-color">
                <div class="ag-spectrum-sat ag-spectrum-fill">
                    <div data-ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">
                        <div data-ref="spectrumDragger" class="ag-spectrum-dragger"></div>
                    </div>
                </div>
            </div>
            <div class="ag-spectrum-tools">
                <div data-ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">
                    <div class="ag-spectrum-hue-background"></div>
                    <div data-ref="spectrumHueSlider" class="ag-spectrum-slider"></div>
                </div>
                <div data-ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">
                    <div class="ag-spectrum-alpha-background"></div>
                    <div data-ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>
                </div>
                <ag-color-input data-ref="colorInput"></ag-color-input>
                <div data-ref="recentColors" class="ag-recent-colors"></div>
            </div>
        </div>`,[KJt]),this.H=1,this.S=1,this.B=1,this.A=1,this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1,this.colorChanged=!1,this.spectrumColor=at,this.spectrumVal=at,this.spectrumDragger=at,this.spectrumHue=at,this.spectrumHueSlider=at,this.spectrumAlpha=at,this.spectrumAlphaSlider=at,this.colorInput=at,this.recentColors=at,this.picker=e.picker}wireBeans(e){this._Color=e.agChartsExports._Util.Color}postConstruct(){this.initTabIndex(),this.initRecentColors(),this.addGuiEventListener("focus",()=>this.spectrumColor.focus()),this.addGuiEventListener("keydown",e=>{e.key===Qe.ENTER&&!e.defaultPrevented&&this.destroy()}),this.addManagedListeners(this.spectrumColor,{keydown:e=>this.moveDragger(e)}),this.addManagedListeners(this.spectrumAlphaSlider,{keydown:e=>this.moveAlphaSlider(e)}),this.addManagedListeners(this.spectrumHueSlider,{keydown:e=>this.moveHueSlider(e)}),this.addManagedListeners(this.spectrumVal,{mousedown:this.onSpectrumDraggerDown.bind(this)}),this.addManagedListeners(this.spectrumHue,{mousedown:this.onSpectrumHueDown.bind(this)}),this.addManagedListeners(this.spectrumAlpha,{mousedown:this.onSpectrumAlphaDown.bind(this)}),this.addGuiEventListener("mousemove",e=>{this.onSpectrumDraggerMove(e),this.onSpectrumHueMove(e),this.onSpectrumAlphaMove(e)}),this.addManagedListeners(document,{mouseup:this.onMouseUp.bind(this)}),this.colorInput.onColorChanged(this.setColor.bind(this)),this.addManagedListeners(this.recentColors,{click:this.onRecentColorClick.bind(this),keydown:e=>{(e.key===Qe.ENTER||e.key===Qe.SPACE)&&(e.preventDefault(),this.onRecentColorClick(e))}})}initTabIndex(){const e=this.tabIndex=this.gos.get("tabIndex").toString();this.spectrumColor.setAttribute("tabindex",e),this.spectrumHueSlider.setAttribute("tabindex",e),this.spectrumAlphaSlider.setAttribute("tabindex",e)}refreshSpectrumRect(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()}refreshHueRect(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()}refreshAlphaRect(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()}onSpectrumDraggerDown(e){e.preventDefault(),this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)}onSpectrumDraggerMove(e){this.isSpectrumDragging&&this.moveDragger(e)}onSpectrumHueDown(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)}onSpectrumHueMove(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)}onSpectrumAlphaDown(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)}onSpectrumAlphaMove(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)}onMouseUp(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1}moveDragger(e){const t=this.spectrumValRect;if(!t)return;let n,r;if(e instanceof MouseEvent)n=e.clientX-t.left,r=e.clientY-t.top;else{const i=e.key===Qe.LEFT,o=e.key===Qe.RIGHT,a=e.key===Qe.UP,s=e.key===Qe.DOWN,l=a||s,c=i||o;if(!l&&!c)return;e.preventDefault();const{x:u,y:d}=this.getSpectrumValue();n=u+(c?i?-5:5:0),r=d+(l?a?-5:5:0)}n=Math.max(n,0),n=Math.min(n,t.width),r=Math.max(r,0),r=Math.min(r,t.height),this.setSpectrumValue(n/t.width,1-r/t.height)}moveHueSlider(e){const t=this.spectrumHueRect;if(!t)return;const n=this.moveSlider(this.spectrumHueSlider,e);n!=null&&(this.H=1-n/t.width,this.update())}moveAlphaSlider(e){const t=this.spectrumAlphaRect;if(!t)return;const n=this.moveSlider(this.spectrumAlphaSlider,e);n!=null&&(this.A=n/t.width,this.update())}moveSlider(e,t){const n=e.getBoundingClientRect(),r=e.parentElement?.getBoundingClientRect();if(!e||!r)return null;const i=n.width/2;let o;if(t instanceof MouseEvent)o=Math.floor(t.clientX-r.left);else{const a=t.key===Qe.LEFT,s=t.key===Qe.RIGHT;if(!a&&!s)return null;t.preventDefault();const l=a?-5:5;o=parseFloat(e.style.left)+i+l}return o=Math.max(o,0),o=Math.min(o,r.width),e.style.left=o-i+"px",o}update(e){const{A:t,S:n,B:r,H:i,_Color:o}=this,a=i*360,s=o.fromHSB(a,n,r,t),l=s.toRgbaString(),u=o.fromHSB(a,n,r).toRgbaString(),p=o.fromHSB(a,1,1).toRgbaString(),h=this.picker;o.fromString(h.getValue()).toRgbaString()!==l&&(this.colorChanged=!0),h.setValue(l),this.spectrumColor.style.backgroundColor=p,this.spectrumDragger.style.backgroundColor=u,this.spectrumHueSlider.style.backgroundColor=p,this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color-from",o.fromHSB(a,n,r,0).toRgbaString()),this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color-to",u),this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color",l),e||this.colorInput.setColor(s)}setSpectrumValue(e,t,n){const r=this.spectrumValRect||this.refreshSpectrumRect();if(r==null)return;const i=this.spectrumDragger,o=i.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,i.style.left=e*r.width-o.width/2+"px",i.style.top=(1-t)*r.height-o.height/2+"px",this.update(n)}getSpectrumValue(){const e=this.spectrumDragger,t=e.getBoundingClientRect(),n=parseFloat(e.style.left)+t.width/2,r=parseFloat(e.style.top)+t.height/2;return{x:n,y:r}}initRecentColors(){const e=i8,t=e.map((n,r)=>`<div class="ag-recent-color" id=${r} style="background-color: ${n}; width: 15px; height: 15px;" recent-color="${n}" tabIndex="${this.tabIndex}"></div>`);this.recentColors.innerHTML=t.join(""),Nn(this.recentColors,!!e.length)}setValue(e){const t=this._Color.fromString(e);this.setColor(t,!0)}setColor(e,t){const[n,r,i]=e.toHSB();this.H=(isNaN(n)?0:n)/360,this.A=e.a;const o=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=`${(this.H-1)*-o.width-this.spectrumHueSlider.getBoundingClientRect().width/2}px`,this.spectrumAlphaSlider.style.left=`${this.A*a.width-this.spectrumAlphaSlider.getBoundingClientRect().width/2}px`,this.setSpectrumValue(r,i,!t)}onRecentColorClick(e){const t=e.target;if(!Ut(t.id))return;const n=parseInt(t.id,10);this.setValue(i8[n]),this.destroy()}addRecentColor(){const t=this._Color.fromHSB(this.H*360,this.S,this.B,this.A).toRgbaString();let n=i8;!this.colorChanged||n[0]===t||(n=n.filter(r=>r!=t),n=[t].concat(n),n.length>ZRe&&(n=n.slice(0,ZRe)),i8=n)}destroy(){this.addRecentColor(),super.destroy()}},Uit=class extends _ye{constructor(e){super({pickerAriaLabelKey:"ariaLabelColorPicker",pickerAriaLabelValue:"Color Picker",pickerType:"ag-list",className:"ag-color-picker",pickerIcon:"chartsColorPicker",...e})}postConstruct(){this.eDisplayFieldColor=Nr({tag:"span",cls:"ag-color-picker-color"}),this.eDisplayFieldText=Nr({tag:"span",cls:"ag-color-picker-value"}),this.eDisplayField.append(this.eDisplayFieldColor,this.eDisplayFieldText),super.postConstruct(),this.value&&this.setValue(this.value)}createPickerComponent(){const e=this.eWrapper.getBoundingClientRect(),t=this.beans.popupSvc.getParentRect();return this.createBean(new w6({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:e.right-t.left-190,y:e.top-t.top-250-(this.config.pickerGap??0),postProcessPopupParams:{type:"colorPicker",eventSource:this.eWrapper}}))}renderAndPositionPicker(){const e=this.pickerComponent,t=this.createBean(new QJt({picker:this}));return e.addCss("ag-color-dialog"),t.addDestroyFunc(()=>{e.isAlive()&&this.destroyBean(e)}),e.setParentComponent(this),e.setBodyComponent(t),t.setValue(this.getValue()),t.getGui().focus(),e.addDestroyFunc(()=>{this.isDestroyingPicker?this.isDestroyingPicker=!1:(this.beforeHidePicker(),this.isDestroyingPicker=!0,t.isAlive()&&this.destroyBean(t),this.isAlive()&&this.getFocusableElement().focus())}),()=>this.pickerComponent?.close()}setValue(e){return this.value===e?this:(this.eDisplayFieldColor.style.backgroundColor=e,this.eDisplayFieldText.textContent=this.beans.agChartsExports._Util.Color.fromString(e).toHexString().toUpperCase(),super.setValue(e))}getValue(){return this.value}},$b={selector:"AG-COLOR-PICKER",component:Uit},ZJt=class extends Gt{constructor(e){super(),this.chartMenuParamsFactory=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuParamsFactory.addEnableParams("crosshair.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("crosshair"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuParamsFactory.getDefaultCheckboxParams("crosshair.label.enabled","crosshairLabel"),n=this.chartMenuParamsFactory.getDefaultCheckboxParams("crosshair.snap","crosshairSnap"),r=this.chartMenuParamsFactory.getDefaultColorPickerParams("crosshair.stroke","color");this.setTemplate(`<div>
            <ag-group-component data-ref="crosshairGroup">
                <ag-checkbox data-ref="crosshairLabelCheckbox"></ag-checkbox>
                <ag-checkbox data-ref="crosshairSnapCheckbox"></ag-checkbox>
                <ag-color-picker data-ref="crosshairStrokeColorPicker"></ag-color-picker>
            </ag-group-component>
        </div>`,[Qs,Rm,$b],{crosshairGroup:e,crosshairLabelCheckbox:t,crosshairSnapCheckbox:n,crosshairStrokeColorPicker:r})}},JJt=class extends rx{constructor(e){super(e,"ag-range-field","range")}postConstruct(){super.postConstruct();const{min:e,max:t,step:n}=this.config;e!=null&&this.setMinValue(e),t!=null&&this.setMaxValue(t),this.setStep(n||1)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>{const t=e.target.value;this.setValue(t)}})}setMinValue(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this}setMaxValue(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this}setStep(e){return this.eInput.setAttribute("step",e.toString()),this}setValue(e,t){this.min!=null&&(e=Math.max(parseFloat(e),this.min).toString()),this.max!=null&&(e=Math.min(parseFloat(e),this.max).toString());const n=super.setValue(e,t);return this.eInput.value=e,n}},een={selector:"AG-INPUT-RANGE",component:JJt},jp=class extends Lye{constructor(e){super(e,`<div class="ag-slider">
            <label data-ref="eLabel"></label>
            <div class="ag-wrapper ag-slider-wrapper">
                <ag-input-range data-ref="eSlider"></ag-input-range>
                <ag-input-number-field data-ref="eText"></ag-input-number-field>
            </div>
        </div>`,[een,LK]),this.eLabel=at,this.eSlider=at,this.eText=at,this.labelAlignment="top"}postConstruct(){super.postConstruct(),this.eSlider.addCss("ag-slider-field");const{minValue:e,maxValue:t,textFieldWidth:n,step:r,value:i,onValueChange:o}=this.config;e!=null&&this.setMinValue(e),t!=null&&this.setMaxValue(t),n!=null&&this.setTextFieldWidth(n),r!=null&&this.setStep(r),i!=null&&this.setValue(i),o!=null&&this.onValueChange(o)}onValueChange(e){return this.addManagedListeners(this.eText,{fieldValueChanged:()=>{const t=parseFloat(this.eText.getValue());this.eSlider.setValue(t.toString(),!0),e(t||0)}}),this.addManagedListeners(this.eSlider,{fieldValueChanged:()=>{const t=this.eSlider.getValue();this.eText.setValue(t,!0),e(parseFloat(t))}}),this}setSliderWidth(e){return this.eSlider.setWidth(e),this}setTextFieldWidth(e){return this.eText.setWidth(e),this}setMinValue(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this}setMaxValue(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this}getValue(){return this.eText.getValue()}setValue(e,t){return this.getValue()===e?this:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}setStep(e){return this.eSlider.setStep(e),this.eText.setStep(e),this}},yp={selector:"AG-SLIDER",component:jp},ten=class extends Gt{constructor(e){super(),this.chartMenuParamsFactory=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuParamsFactory.addEnableParams("navigator.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("navigator"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuParamsFactory.getDefaultSliderParams("navigator.height","height",60);t.minValue=10;const n=this.chartMenuParamsFactory.getDefaultCheckboxParams("navigator.miniChart.enabled","miniChart");this.setTemplate(`<div>
            <ag-group-component data-ref="navigatorGroup">
                <ag-slider data-ref="navigatorHeightSlider"></ag-slider>
                <ag-checkbox data-ref="navigatorMiniChartCheckbox"></ag-checkbox>
            </ag-group-component>
        </div>`,[Qs,yp,Rm],{navigatorGroup:e,navigatorHeightSlider:t,navigatorMiniChartCheckbox:n})}},nen=class extends Gt{constructor(e){super(),this.chartMenuParamsFactory=e,this.zoomScrollingStepInput=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuParamsFactory.addEnableParams("zoom.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("zoom"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuParamsFactory.getDefaultCheckboxParams("zoom.enableScrolling","scrollingZoom"),n=this.chartMenuParamsFactory.getDefaultSliderParams("zoom.scrollingStep","scrollingStep",1);n.step=.01,n.minValue=n.step;const r=this.chartMenuParamsFactory.getDefaultCheckboxParams("zoom.enableSelecting","selectingZoom");t.onValueChange=(i=>o=>{i&&(i(o),this.zoomScrollingStepInput.setDisabled(!o))})(t.onValueChange),this.setTemplate(`<div>
            <ag-group-component data-ref="zoomGroup">
                <ag-checkbox data-ref="zoomSelectingCheckbox"></ag-checkbox>
                <ag-checkbox data-ref="zoomScrollingCheckbox"></ag-checkbox>
                <ag-slider data-ref="zoomScrollingStepInput"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,Rm,yp],{zoomGroup:e,zoomScrollingCheckbox:t,zoomScrollingStepInput:n,zoomSelectingCheckbox:r}),this.zoomScrollingStepInput.setDisabled(!t.value)}},ren=["navigator","zoom","animation","crosshair"],ien=class extends Gt{constructor(e){super('<div class="ag-chart-advanced-settings-wrapper"></div>'),this.chartMenuContext=e}postConstruct(){this.chartPanelFeature=this.createManagedBean(new $it(this.chartMenuContext.chartController,this.getGui(),"ag-chart-advanced-settings-section",(e,t)=>this.createPanels(e,t))),this.chartPanelFeature.refreshPanels()}createPanels(e,t){ren.forEach(n=>{if(!this.isGroupPanelShownForSeries(n,t))return;const r=this.createPanel(n);this.chartPanelFeature.addComponent(r)})}isGroupPanelShownForSeries(e,t){return e==="animation"||ox(t)&&!Fhe(t)}createPanel(e){const{chartMenuParamsFactory:t,chartAxisMenuParamsFactory:n}=this.chartMenuContext;switch(e){case"navigator":return new ten(t);case"zoom":return new nen(t);case"animation":return new UJt(t);case"crosshair":return new ZJt(n)}}},oen=class extends dt{constructor(){super(...arguments),this.beanName="advSettingsMenuFactory"}showMenu(e,t){this.hideMenu();const n=this.createBean(new aen(e));this.activeDialog=this.createBean(new w6({title:this.beans.chartTranslation.translate("advancedSettings"),component:n,width:300,height:400,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{lm(n.getGui())[0]?.focus()},closedCallback:()=>{this.activeMenu=this.destroyBean(this.activeMenu),this.activeDialog=void 0,t?.focus({preventScroll:!0})}})),this.activeMenu=n}hideMenu(){this.activeDialog&&this.destroyBean(this.activeDialog)}destroy(){this.activeMenu=this.destroyBean(this.activeMenu),this.activeDialog=this.destroyBean(this.activeDialog),super.destroy()}},aen=class extends Gb{constructor(e){super('<div class="ag-chart-advanced-settings"></div>'),this.chartMenuContext=e}postConstruct(){this.advancedSettingsPanel=this.createManagedBean(new ien(this.chartMenuContext)),this.getGui().appendChild(this.advancedSettingsPanel.getGui()),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),focusTrapActive:!0})}onTabKeyDown(e){if(e.defaultPrevented)return;e.preventDefault();const t=e.shiftKey,n=this.advancedSettingsPanel.getGui(),r=Cd(this.beans,n,!1,t);if(r)r.focus();else{const i=lm(n);i.length&&i[t?i.length-1:0].focus()}}},sen=class extends dt{constructor(){super(...arguments),this.beanName="chartMenuListFactory"}wireBeans(e){this.popupSvc=e.popupSvc,this.chartMenuSvc=e.chartMenuSvc,this.chartTranslation=e.chartTranslation}showMenuList(e){const{eventSource:t,showMenu:n,chartMenuContext:r}=e,i=this.chartMenuSvc.doChartToolPanelsExist(r.chartController),o=this.mapWithStockItems(this.getMenuItems(r.chartController,i),r,n,t,i);if(!o.length)return;const a=this.createBean(new len(o));this.activeChartMenuList=a;let s=-1,l="left";this.gos.get("enableRtl")&&(s=1,l="right");const c=a.getGui();this.popupSvc.addPopup({modal:!0,eChild:c,closeOnEsc:!0,closedCallback:()=>{this.destroyBean(a),this.activeChartMenuList=void 0,$x(this.beans)&&t.focus({preventScroll:!0})},afterGuiAttached:u=>a.afterGuiAttached(u),positionCallback:()=>{this.popupSvc.positionPopupByComponent({type:"chartMenu",eventSource:t,ePopup:c,alignSide:l,nudgeX:4*s,nudgeY:4,position:"under",keepWithinBounds:!0})},ariaLabel:"Chart Menu"})}getMenuItems(e,t){const n=[...t?["chartEdit"]:[],...e.isEnterprise()?["chartAdvancedSettings"]:[],e.isChartLinked()?"chartUnlink":"chartLink","chartDownload"],r=this.gos.get("chartMenuItems");return r?Array.isArray(r)?r:r(Gn(this.gos,{defaultItems:n})):n}mapWithStockItems(e,t,n,r,i){if(!e)return[];const o=[];return e.forEach(a=>{let s;if(typeof a=="string"?s=this.getStockMenuItem(a,t,n,r,i):s={...a},!s)return;const{subMenu:l}=s;Array.isArray(l)&&(s.subMenu=this.mapWithStockItems(l,t,n,r,i)),o.push(s)}),o}getStockMenuItem(e,t,n,r,i){switch(e){case"chartEdit":return i?this.createMenuItem(this.chartTranslation.translate("chartEdit"),"chartsMenuEdit",n):null;case"chartAdvancedSettings":return this.createMenuItem(this.chartTranslation.translate("chartAdvancedSettings"),"chartsMenuAdvancedSettings",()=>this.chartMenuSvc.openAdvancedSettings(t,r));case"chartUnlink":return t.chartController.isChartLinked()?this.createMenuItem(this.chartTranslation.translate("chartUnlink"),"unlinked",()=>this.chartMenuSvc.toggleLinked(t)):null;case"chartLink":return t.chartController.isChartLinked()?null:this.createMenuItem(this.chartTranslation.translate("chartLink"),"linked",()=>this.chartMenuSvc.toggleLinked(t));case"chartDownload":return this.createMenuItem(this.chartTranslation.translate("chartDownload"),"chartsDownload",()=>this.chartMenuSvc.downloadChart(t))}return null}createMenuItem(e,t,n){return{name:e,icon:er(t,this.beans,null),action:n}}destroy(){this.destroyBean(this.activeChartMenuList),super.destroy()}},len=class extends Gt{constructor(e){super(`
            <div data-ref="eChartsMenu" role="presentation" class="ag-menu ag-chart-menu-popup"></div>
        `),this.menuItems=e,this.eChartsMenu=at}postConstruct(){this.mainMenuList=this.createManagedBean(new S6(0)),this.mainMenuList.addMenuItems(this.menuItems),this.mainMenuList.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eChartsMenu.appendChild(this.mainMenuList.getGui())}onHidePopup(){this.hidePopupFunc?.()}afterGuiAttached({hidePopup:e}){e&&(this.hidePopupFunc=e,this.addDestroyFunc(e)),zu(this.mainMenuList.getGui())}},cen=class extends dt{constructor(){super(...arguments),this.beanName="chartCrossFilterSvc"}wireBeans(e){this.colModel=e.colModel,this.valueSvc=e.valueSvc,this.filterManager=e.filterManager,sa(this.gos,e.rowModel)&&(this.clientSideRowModel=e.rowModel)}filter(e,t=!1){const n=this.filterManager?.getFilterModel()??{};if(t){this.resetFilters(n);return}const r=this.extractFilterColId(e);this.isValidColumnFilter(r)?this.updateFilters(n,e,r):ut(154,{colId:r})}resetFilters(e){Object.keys(e).length>0&&(this.filterManager?.setFilterModel(null),this.filterManager?.onFilterChanged({source:"api"}))}updateFilters(e,t,n){const r=this.extractFilterColId(t),i=t.datum[r];if(i===void 0)return;const o=i.toString();if(t.event.metaKey||t.event.ctrlKey){const a=this.getCurrentGridValuesForCategory(n),s=a.includes(o);let l;s?l=a.filter(c=>c!==o):(l=a,l.push(o)),e[n]=this.getUpdatedFilterModel(n,l)}else{const a=[o];e={[n]:this.getUpdatedFilterModel(n,a)}}this.filterManager?.setFilterModel(e)}getUpdatedFilterModel(e,t){return this.getColumnFilterType(e)==="agMultiColumnFilter"?{filterType:"multi",filterModels:[null,{filterType:"set",values:t}]}:{filterType:"set",values:t}}getCurrentGridValuesForCategory(e){const t=[],n=this.getColumnById(e);return this.clientSideRowModel?.forEachNodeAfterFilter(r=>{if(n&&!r.group){const i=this.valueSvc.getValue(n,r)+"";t.includes(i)||t.push(i)}}),t}extractFilterColId(e){return e.xKey||e.calloutLabelKey}isValidColumnFilter(e){e.indexOf("-filtered-out")&&(e=e.replace("-filtered-out",""));const t=this.getColumnFilterType(e);return typeof t=="boolean"?t:["agSetColumnFilter","agMultiColumnFilter"].includes(t)}getColumnFilterType(e){const t=this.getColumnById(e);if(t)return t.getColDef().filter}getColumnById(e){return this.colModel.getCol(e)}},uen=["chartUnlink","chartLink","chartDownload","chartMenu"],r7={settings:"chartSettings",data:"chartData",format:"chartFormat"},den=class extends dt{constructor(){super(...arguments),this.beanName="chartMenuSvc"}wireBeans(e){this.advSettingsMenuFactory=e.advSettingsMenuFactory}downloadChart(e,t,n,r){e.chartController.getChartProxy().downloadChart(t,n,r)}toggleLinked(e){e.chartController.detachChartRange()}openAdvancedSettings(e,t){this.advSettingsMenuFactory?.showMenu(e,t)}hideAdvancedSettings(){this.advSettingsMenuFactory?.hideMenu()}getChartToolbarOptions(){const e=["chartMenu"],t=this.gos.getCallback("getChartToolbarItems");return t?t({defaultItems:e}).filter(r=>uen.includes(r)?!0:(ut(155,{option:r}),!1)):e}getChartToolPanels(e){const t=this.gos.get("chartToolPanelsDef");let r=t?.panels?.map(a=>{const s=r7[a];return s||ut(156,{panel:a}),s}).filter(a=>!!a)??Object.values(r7);e.isPivotChart()&&(r=r.filter(a=>a!=="chartData"));const i=t?.defaultToolPanel,o=i&&r7[i]||r[0];return{panels:r,defaultPanel:o}}doesChartToolbarExist(){return this.getChartToolbarOptions().length>0}doChartToolPanelsExist(e){const{panels:t}=this.getChartToolPanels(e);return t.length>0}},pen={pivotChartTitle:"Pivot Chart",rangeChartTitle:"Range Chart",settings:"Chart",data:"Set Up",format:"Customize",categories:"Categories",defaultCategory:"(None)",series:"Series",switchCategorySeries:"Switch Category / Series",categoryValues:"Category Values",seriesLabels:"Series Labels",aggregate:"Aggregate",xyValues:"X Y Values",paired:"Paired Mode",axis:"Axis",xAxis:"Horizontal Axis",yAxis:"Vertical Axis",polarAxis:"Polar Axis",radiusAxis:"Radius Axis",navigator:"Navigator",zoom:"Zoom",animation:"Animation",crosshair:"Crosshair",color:"Color",thickness:"Thickness",preferredLength:"Preferred Length",xType:"X Type",axisType:"Axis Type",automatic:"Automatic",category:"Category",number:"Number",time:"Time",timeFormat:"Time Format",autoRotate:"Auto Rotate",labelRotation:"Rotation",circle:"Circle",polygon:"Polygon",square:"Square",cross:"Cross",diamond:"Diamond",plus:"Plus",triangle:"Triangle",heart:"Heart",orientation:"Orientation",fixed:"Fixed",parallel:"Parallel",perpendicular:"Perpendicular",radiusAxisPosition:"Position",ticks:"Ticks",gridLines:"Grid Lines",width:"Width",height:"Height",length:"Length",padding:"Padding",spacing:"Spacing",chartStyle:"Chart Style",title:"Title",chartTitles:"Titles",chartTitle:"Chart Title",chartSubtitle:"Subtitle",horizontalAxisTitle:"Horizontal Axis Title",verticalAxisTitle:"Vertical Axis Title",polarAxisTitle:"Polar Axis Title",titlePlaceholder:"Chart Title",background:"Background",font:"Font",weight:"Weight",top:"Top",right:"Right",bottom:"Bottom",left:"Left",labels:"Labels",calloutLabels:"Callout Labels",sectorLabels:"Sector Labels",positionRatio:"Position Ratio",size:"Size",shape:"Shape",minSize:"Minimum Size",maxSize:"Maximum Size",legend:"Legend",position:"Position",markerSize:"Marker Size",markerStroke:"Marker Stroke",markerPadding:"Marker Padding",itemSpacing:"Item Spacing",itemPaddingX:"Item Padding X",itemPaddingY:"Item Padding Y",layoutHorizontalSpacing:"Horizontal Spacing",layoutVerticalSpacing:"Vertical Spacing",strokeWidth:"Stroke Width",offset:"Offset",offsets:"Offsets",tooltips:"Tooltips",callout:"Callout",markers:"Markers",shadow:"Shadow",blur:"Blur",xOffset:"X Offset",yOffset:"Y Offset",lineWidth:"Line Width",lineDash:"Line Dash",lineDashOffset:"Dash Offset",scrollingZoom:"Scrolling",scrollingStep:"Scrolling Step",selectingZoom:"Selecting",durationMillis:"Duration (ms)",crosshairLabel:"Label",crosshairSnap:"Snap to Node",normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",predefined:"Predefined",fillOpacity:"Fill Opacity",strokeColor:"Line Color",strokeOpacity:"Line Opacity",miniChart:"Mini-Chart",histogramBinCount:"Bin count",connectorLine:"Connector Line",seriesItems:"Series Items",seriesItemType:"Item Type",seriesItemPositive:"Positive",seriesItemNegative:"Negative",seriesItemLabels:"Item Labels",columnGroup:"Column",barGroup:"Bar",pieGroup:"Pie",lineGroup:"Line",scatterGroup:"X Y (Scatter)",areaGroup:"Area",polarGroup:"Polar",statisticalGroup:"Statistical",hierarchicalGroup:"Hierarchical",specializedGroup:"Specialized",combinationGroup:"Combination",groupedColumnTooltip:"Grouped",stackedColumnTooltip:"Stacked",normalizedColumnTooltip:"100% Stacked",groupedBarTooltip:"Grouped",stackedBarTooltip:"Stacked",normalizedBarTooltip:"100% Stacked",pieTooltip:"Pie",donutTooltip:"Donut",lineTooltip:"Line",stackedLineTooltip:"Stacked",normalizedLineTooltip:"100% Stacked",groupedAreaTooltip:"Area",stackedAreaTooltip:"Stacked",normalizedAreaTooltip:"100% Stacked",scatterTooltip:"Scatter",bubbleTooltip:"Bubble",histogramTooltip:"Histogram",radialColumnTooltip:"Radial Column",radialBarTooltip:"Radial Bar",radarLineTooltip:"Radar Line",radarAreaTooltip:"Radar Area",nightingaleTooltip:"Nightingale",rangeBarTooltip:"Range Bar",rangeAreaTooltip:"Range Area",boxPlotTooltip:"Box Plot",treemapTooltip:"Treemap",sunburstTooltip:"Sunburst",waterfallTooltip:"Waterfall",heatmapTooltip:"Heatmap",columnLineComboTooltip:"Column & Line",areaColumnComboTooltip:"Area & Column",customComboTooltip:"Custom Combination",innerRadius:"Inner Radius",startAngle:"Start Angle",endAngle:"End Angle",reverseDirection:"Reverse Direction",groupPadding:"Group Padding",seriesPadding:"Series Padding",tile:"Tile",whisker:"Whisker",cap:"Cap",capLengthRatio:"Length Ratio",labelPlacement:"Placement",inside:"Inside",outside:"Outside",noDataToChart:"No data available to be charted.",pivotChartRequiresPivotMode:"Pivot Chart requires Pivot Mode enabled.",chartSettingsToolbarTooltip:"Menu",chartLinkToolbarTooltip:"Linked to Grid",chartUnlinkToolbarTooltip:"Unlinked from Grid",chartDownloadToolbarTooltip:"Download Chart",chartMenuToolbarTooltip:"Menu",chartEdit:"Edit Chart",chartAdvancedSettings:"Advanced Settings",chartLink:"Link to Grid",chartUnlink:"Unlink from Grid",chartDownload:"Download Chart",histogramFrequency:"Frequency",seriesChartType:"Series Chart Type",seriesType:"Series Type",secondaryAxis:"Secondary Axis",seriesAdd:"Add a series",categoryAdd:"Add a category",bar:"Bar",column:"Column",histogram:"Histogram",advancedSettings:"Advanced Settings",direction:"Direction",horizontal:"Horizontal",vertical:"Vertical",seriesGroupType:"Group Type",groupedSeriesGroupType:"Grouped",stackedSeriesGroupType:"Stacked",normalizedSeriesGroupType:"100% Stacked",legendEnabled:"Enabled",invalidColor:"Color value is invalid",groupedColumnFull:"Grouped Column",stackedColumnFull:"Stacked Column",normalizedColumnFull:"100% Stacked Column",groupedBarFull:"Grouped Bar",stackedBarFull:"Stacked Bar",normalizedBarFull:"100% Stacked Bar",stackedAreaFull:"Stacked Area",normalizedAreaFull:"100% Stacked Area",stackedLineFull:"Stacked Line",normalizedLineFull:"100% Stacked Line",customCombo:"Custom Combination",funnel:"Funnel",coneFunnel:"Cone Funnel",pyramid:"Pyramid",funnelGroup:"Funnel",funnelTooltip:"Funnel",coneFunnelTooltip:"Cone Funnel",pyramidTooltip:"Pyramid",dropOff:"Drop-Off",stageLabels:"Stage Labels",reverse:"Reverse",groupedColumn:"Grouped",stackedColumn:"Stacked",pie:"Pie",donut:"Donut",line:"Line",scatter:"Scatter",bubble:"Bubble",area:"Area",stackedArea:"Stacked",radarLine:"Radar Line",radarArea:"Radar Area",nightingale:"Nightingale",radialColumn:"Radial Column",radialBar:"Radial Bar",boxPlot:"Box Plot",rangeBar:"Range Bar",rangeArea:"Range Area",treemap:"Treemap",sunburst:"Sunburst",waterfall:"Waterfall",heatmap:"Heatmap",columnLineCombo:"Column & Line",AreaColumnCombo:"Area & Column",ariaChartMenuClose:"Close Chart Edit Menu",ariaChartSelected:"Selected",group:"Group",timeFormatSlashesDDMMYYYY:"DD/MM/YYYY",timeFormatSlashesMMDDYYYY:"MM/DD/YYYY",timeFormatSlashesDDMMYY:"DD/MM/YY",timeFormatSlashesMMDDYY:"MM/DD/YY",timeFormatDotsDDMYY:"DD.M.YY",timeFormatDotsMDDYY:"M.DD.YY",timeFormatDashesYYYYMMDD:"YYYY-MM-DD",timeFormatSpacesDDMMMMYYYY:"DD MMMM YYYY",timeFormatHHMMSS:"HH:MM:SS",timeFormatHHMMSSAmPm:"HH:MM:SS AM/PM",sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"},hen=class extends dt{constructor(){super(...arguments),this.beanName="chartTranslation"}translate(e){const t=this.getLocaleTextFunc(),n=pen[e];return t(e,n)}},MD=e=>t=>t==null?!0:e(t),JRe=e=>typeof e=="string",Xit=e=>typeof e=="boolean",fen=e=>typeof e=="object",py=(e,t)=>n=>`AG Grid - unable to update chart as invalid params supplied:  \`${e}: ${n}\`, expected ${t}.`,Yit=e=>`${e} is not supported in AG Charts Community ('ag-charts-enterprise' hasn't been loaded). See https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/ for more details.`,gen=["doughnut"],cMe=["type","chartId","chartType","chartThemeName","chartThemeOverrides","unlinkChart"];function men(e){return!!Wit(e)||oMe(e)}function ven(e){return gen.includes(e)}var ben=MD(e=>{if(men(e))return!0;if(ven(e)){const t=MW(e);return sb(`The chart type '${e}' has been deprecated. Please use '${t}' instead.`),t}return!1}),yen=MD(e=>typeof e=="object"),Men=MD(e=>typeof e=="object"),Cen=MD(e=>typeof e=="string"||typeof e=="function"),Kit=e=>({property:"chartType",validationFn:MD(t=>e||!t||!pJt(t)),warnMessage:t=>Yit(`The '${t}' chart type`)}),Qit=e=>({property:"switchCategorySeries",validationFn:MD(t=>{if(!t||e)return!0}),warnMessage:()=>Yit("'switchCategorySeries' has been ignored as it"),warnIfFixed:!0}),uMe=()=>[{property:"chartId",validationFn:JRe,warnMessage:py("chartId","string")},{property:"chartType",validationFn:ben,warnMessage:py("chartType","ChartType")},{property:"chartThemeName",validationFn:JRe,warnMessage:py("chartThemeName","string")},{property:"chartThemeOverrides",validationFn:yen,warnMessage:py("chartThemeOverrides","AgChartThemeOverrides")},{property:"unlinkChart",validationFn:Xit,warnMessage:py("unlinkChart","boolean")}],Zit=e=>[{property:"cellRange",validationFn:Men,warnMessage:py("cellRange","ChartParamsCellRange")},{property:"suppressChartRanges",validationFn:Xit,warnMessage:py("suppressChartRanges","boolean")},{property:"aggFunc",validationFn:Cen,warnMessage:py("aggFunc","string or IAggFunc")},Qit(e)];function xen(e,t){switch(e.type){case"rangeChartUpdate":return Sen(e,t);case"pivotChartUpdate":return Aen(e);case"crossFilterChartUpdate":return Oen(e,t);default:return sb(`Invalid value supplied for 'type': ${e.type}. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.`),!1}}function wen(e,t){return XK(e,[Kit(t),Qit(t)])}function Sen(e,t){const n=[...uMe(),Kit(t),...Zit(t),{property:"seriesChartTypes",validationFn:r=>r===void 0||Array.isArray(r)&&r.every(fen),warnMessage:py("seriesChartTypes","Array of SeriesChartType")}];return XK(e,n,[...cMe,"cellRange","suppressChartRanges","switchCategorySeries","aggFunc","seriesChartTypes","seriesGroupType"],"UpdateRangeChartParams")}function Aen(e){const t=[...uMe()];return XK(e,t,[...cMe],"UpdatePivotChartParams")}function Oen(e,t){const n=[...uMe(),...Zit(t)];return XK(e,n,[...cMe,"cellRange","suppressChartRanges","aggFunc"],"UpdateCrossFilterChartParams")}function XK(e,t,n,r){let i;for(const o of t){const{property:a,validationFn:s,warnMessage:l,warnIfFixed:c}=o;if(a in e){const u=e[a],d=s(u);if(d===!0)continue;if(d===!1)return sb(l(u)),!1;i=i||{...e},i[a]=d,c&&sb(l(u))}}if(n){for(const o of Object.keys(e))if(!n.includes(o))return sb(`Unexpected property supplied. ${r} does not contain: \`${o}\`.`),!1}return i||!0}var Jit=["ag-default","ag-material","ag-sheets","ag-polychroma","ag-vivid"],zen=class extends dt{constructor(e){super(),this.model=e,this.isEnterprise=()=>this.agChartsExports.isEnterprise}wireBeans(e){this.rangeSvc=e.rangeSvc,this.agChartsExports=e.agChartsExports}postConstruct(){this.setChartRange(),this.model.unlinked&&this.rangeSvc&&this.rangeSvc.setCellRanges([]);const e=this.updateForGridChange.bind(this,{});this.addManagedEventListeners({cellSelectionChanged:t=>{t.id&&t.id===this.model.chartId&&this.updateForRangeChange()},columnMoved:e,columnPinned:e,columnVisible:e,columnRowGroupChanged:e,modelUpdated:e,cellValueChanged:this.updateForDataChange.bind(this)})}update(e){if(!this.validUpdateType(e))return!1;const t=xen(e,this.agChartsExports.isEnterprise);if(!t)return!1;const n=t===!0?e:t;return this.applyValidatedChartParams(n),!0}applyValidatedChartParams(e){const{chartId:t,chartType:n,chartThemeName:r,unlinkChart:i}=e,a={...{chartId:t,pivotChart:this.model.pivotChart,chartType:n??this.model.chartType,chartThemeName:r??this.model.chartThemeName,unlinkChart:i??this.model.unlinked,cellRange:this.model.suppliedCellRange,switchCategorySeries:this.model.switchCategorySeries,aggFunc:this.model.aggFunc,seriesChartTypes:void 0,suppressChartRanges:!1,crossFiltering:!1}};switch(e.type){case"rangeChartUpdate":a.cellRange=this.createCellRange(e)??this.model.suppliedCellRange,a.switchCategorySeries=e.switchCategorySeries??this.model.switchCategorySeries,a.aggFunc=e.aggFunc??this.model.aggFunc,a.seriesChartTypes=e.seriesChartTypes,a.suppressChartRanges=e.suppressChartRanges??this.model.suppressChartRanges,a.seriesGroupType=e.seriesGroupType??this.model.seriesGroupType;break;case"crossFilterChartUpdate":a.cellRange=this.createCellRange(e)??this.model.suppliedCellRange,a.switchCategorySeries=!1,a.aggFunc=e.aggFunc??this.model.aggFunc,a.crossFiltering=!0,a.suppressChartRanges=e.suppressChartRanges??this.model.suppressChartRanges;break;case"pivotChartUpdate":a.switchCategorySeries=!1;break}this.model.updateModel(a),a.unlinkChart||a.suppressChartRanges?this.rangeSvc?.setCellRanges([]):this.setChartRange()}updateForGridChange(e){if(this.model.unlinked)return;const{maintainColState:t,setColsFromRange:n}=e??{};this.model.updateCellRanges({maintainColState:t,setColsFromRange:n}),this.model.updateData(),this.setChartRange()}updateForDataChange(){this.model.unlinked||(this.model.updateData(),this.raiseChartModelUpdateEvent())}updateForRangeChange(){this.updateForGridChange({setColsFromRange:!0}),this.raiseChartRangeSelectionChangedEvent()}updateForPanelChange(e){this.model.updateCellRanges(e),this.model.updateData(),e.skipAnimation&&this.getChartProxy().getChartRef().skipAnimations(),this.setChartRange(),this.raiseChartRangeSelectionChangedEvent()}updateThemeOverrides(e){this.chartProxy.updateThemeOverrides(e)}getChartUpdateParams(e){const n=this.getSelectedValueColState().map(a=>({colId:a.colId,displayName:a.displayName})),r=this.getChartData(),i=this.getSelectedDimensions(),o={data:r,groupData:this.model.groupChartData,grouping:this.isGrouping(),categories:i.map(a=>({id:a.colId,name:a.displayName,chartDataType:this.model.categoryAxisType??this.model.getChartDataType(a.colId)})),fields:n,chartId:this.getChartId(),getCrossFilteringContext:()=>({lastSelectedChartId:"xxx"}),seriesChartTypes:this.getSeriesChartTypes(),updatedOverrides:e,seriesGroupType:this.model.seriesGroupType};return this.isCategorySeriesSwitched()?this.invertCategorySeriesParams(o):o}invertCategorySeriesParams(e){const[t]=e.categories,n=[{id:Ib,name:""}],r=e.data.map((o,a)=>{const s=`${t.id}:${a}`,l=o[t.id],c=l==null?"":String(l);return{colId:s,displayName:c}}),i=e.fields.map(o=>{const a={[Ib]:o.displayName};for(const[s,l]of e.data.entries()){const c=`${t.id}:${s}`,u=l[o.colId];a[c]=u}return a});return{...e,categories:n,fields:r,data:i}}getChartModel(){const e=this.model.pivotChart?"pivot":"range",t=this.isComboChart()?this.model.comboChartModel.seriesChartTypes:void 0;return{modelType:e,chartId:this.model.chartId,chartType:this.model.chartType,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy?.getChartThemeOverrides(),chartPalette:this.chartProxy?.getChartPalette(),cellRange:this.getCellRangeParams(),switchCategorySeries:this.model.switchCategorySeries,suppressChartRanges:this.model.suppressChartRanges,aggFunc:this.model.aggFunc,unlinkChart:this.model.unlinked,seriesChartTypes:t,seriesGroupType:this.model.seriesGroupType}}getChartId(){return this.model.chartId}getChartData(){return this.model.chartData}getChartType(){return this.model.chartType}setChartType(e){this.updateMultiSeriesAndCategory(this.model.chartType,e),this.model.chartType=e,this.model.comboChartModel.updateSeriesChartTypes(),this.model.switchCategorySeries=!1,this.model.categoryAxisType=void 0,this.model.seriesGroupType=void 0,this.raiseChartModelUpdateEvent()}isCategorySeriesSwitched(){return this.model.switchCategorySeries&&!this.model.isGrouping()}switchCategorySeries(e){Bit(this.getChartType())&&(this.model.switchCategorySeries=e,this.raiseChartModelUpdateEvent())}getAggFunc(){return this.model.aggFunc}setAggFunc(e,t){this.model.aggFunc!==e&&(this.model.aggFunc=e,!t&&(this.model.updateData(),this.raiseChartModelUpdateEvent()))}updateMultiSeriesAndCategory(e,t){const n=(s,l)=>{let c=0;for(const u of s)u.selected&&(c>=l?u.selected=!1:c++);c===0&&(s[0].selected=!0)},r=qhe(t),i=X$(t),o=r!=null&&(qhe(e)??100)>(r??100),a=i!=null&&(X$(e)??100)>(i??100);o&&n(this.model.dimensionColState,r),a&&n(this.model.valueColState,i),(o||a)&&(this.model.resetCellRanges(o,a),this.setChartRange(!0))}setChartThemeName(e,t){this.model.chartThemeName=e,t||this.raiseChartModelUpdateEvent()}getChartThemeName(){return this.model.chartThemeName}isPivotChart(){return this.model.pivotChart}isPivotMode(){return this.model.isPivotMode()}isGrouping(){return this.model.isGrouping()}isCrossFilterChart(){return this.model.crossFiltering}getThemeNames(){return this.gos.get("chartThemes")||Jit}getThemes(){return this.getThemeNames().map(t=>{const r=sMe(t,this.agChartsExports._Theme)?t:this.chartProxy.lookupCustomChartTheme(t);return this.agChartsExports._Theme.getChartTheme(r)})}getPalettes(){return this.getThemes().map(t=>t.palette)}getValueColState(){return this.model.valueColState.map(this.displayNameMapper.bind(this))}getSelectedValueColState(){return this.getValueColState().filter(e=>e.selected)}getSelectedDimensions(){return this.model.getSelectedDimensions()}displayNameMapper(e){const{column:t}=e;if(t)e.displayName=this.model.getColDisplayName(t,this.model.isPivotMode());else{const n=this.model.colNames[e.colId];e.displayName=n?n.join(" - "):this.model.getColDisplayName(t)}return e}getColStateForMenu(){return{dimensionCols:this.model.dimensionColState,valueCols:this.getValueColState()}}setChartRange(e=!1){this.rangeSvc&&!this.model.suppressChartRanges&&!this.model.unlinked&&this.rangeSvc.setCellRanges(this.getCellRanges()),e||this.raiseChartModelUpdateEvent()}detachChartRange(){this.model.unlinked=!this.model.unlinked,this.model.unlinked?this.rangeSvc&&this.rangeSvc.setCellRanges([]):this.updateForGridChange(),this.dispatchLocalEvent({type:"chartLinkedChanged"})}setChartProxy(e){this.chartProxy=e}getChartProxy(){return this.chartProxy}isActiveXYChart(){return["scatter","bubble"].includes(this.getChartType())}isChartLinked(){return!this.model.unlinked}customComboExists(){const e=this.model.comboChartModel.savedCustomSeriesChartTypes;return e&&e.length>0}getSeriesChartTypes(){return this.model.comboChartModel.seriesChartTypes}isComboChart(e){return this.model.isComboChart(e)}updateSeriesChartType(e,t,n){const r=this.model.comboChartModel.seriesChartTypes.find(i=>i.colId===e);if(r){const i=this.model.chartType!=="customCombo";i&&(this.model.chartType="customCombo");const o=r.chartType;t!=null&&(r.chartType=t),n!=null&&(r.secondaryAxis=n),this.model.comboChartModel.savedCustomSeriesChartTypes=this.model.comboChartModel.seriesChartTypes,this.model.comboChartModel.updateSeriesChartTypes(),this.updateForDataChange(),i&&this.dispatchLocalEvent({type:"chartTypeChanged"}),o!==t&&this.dispatchLocalEvent({type:"chartSeriesChartTypeChanged"}),this.raiseChartOptionsChangedEvent()}}getActiveSeriesChartTypes(){const e=this.getSelectedValueColState().map(t=>t.colId);return this.getSeriesChartTypes().filter(t=>e.includes(t.colId))}getChartSeriesTypes(e){const t=e??this.getChartType();return this.isComboChart(t)?["line","bar","area"]:[Xs(t)]}getChartSeriesType(){const e=this.getSeriesChartTypes();if(e.length===0)return"bar";const t=e[0].chartType;return t==="columnLineCombo"?"bar":t==="areaColumnCombo"?"area":Xs(t)}getCellRanges(){return[this.model.dimensionCellRange,this.model.valueCellRange].filter(e=>e)}createCellRange(e){return e.cellRange&&this.rangeSvc?.createPartialCellRangeFromRangeParams(e.cellRange,!0)}validUpdateType(e){if(!e.type)return ut(136),!1;const t={"Range Chart":()=>!this.isPivotChart()&&!this.isCrossFilterChart(),"Pivot Chart":()=>this.isPivotChart(),"Cross Filter Chart":()=>this.isCrossFilterChart()},n=Object.keys(t).find(i=>t[i]())??"Range Chart",r=e.type===`${n[0].toLowerCase()}${n.slice(1).replace(/ /g,"")}Update`;return r||ut(137,{currentChartType:n,type:e.type}),r}getCellRangeParams(){const e=this.getCellRanges(),t=e[0],n=t&&t.startRow||null,r=t&&t.endRow||null;return{rowStartIndex:n&&n.rowIndex,rowStartPinned:n&&n.rowPinned,rowEndIndex:r&&r.rowIndex,rowEndPinned:r&&r.rowPinned,columns:e.reduce((i,o)=>i.concat(o.columns.map(a=>a.getId())),[])}}setCategoryAxisType(e){this.model.categoryAxisType=e,this.raiseChartModelUpdateEvent()}getSeriesGroupType(){return this.model.seriesGroupType??this.chartProxy.getSeriesGroupType()}setSeriesGroupType(e){this.model.seriesGroupType=e,this.raiseChartModelUpdateEvent()}raiseChartModelUpdateEvent(){this.dispatchLocalEvent({type:"chartModelUpdate"}),this.raiseChartOptionsChangedEvent()}raiseChartUpdatedEvent(){this.dispatchLocalEvent({type:"chartUpdated"})}raiseChartApiUpdateEvent(){this.dispatchLocalEvent({type:"chartApiUpdate"})}raiseChartOptionsChangedEvent(){const{chartId:e,chartType:t}=this.getChartModel();this.eventSvc.dispatchEvent({type:"chartOptionsChanged",chartId:e,chartType:t,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy?.getChartThemeOverrides()})}raiseChartRangeSelectionChangedEvent(){this.eventSvc.dispatchEvent({type:"chartRangeSelectionChanged",id:this.model.chartId,chartId:this.model.chartId,cellRange:this.getCellRangeParams()})}destroy(){super.destroy(),this.rangeSvc&&this.rangeSvc.setCellRanges([])}},Ten=class extends Sw{getAxes(e){const t=[{type:this.getXAxisType(e),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){const n=t[1];n.label={...n.label,formatter:r=>Math.round(r.value)+"%"}}return t}getSeries(e){const[t]=e.categories,n=e.fields.map(r=>({type:this.standaloneChartType,xKey:t.id,xName:t.name,yKey:r.colId,yName:r.displayName,normalizedTo:this.chartType==="normalizedArea"?100:void 0,stacked:["normalizedArea","stackedArea"].includes(this.chartType)}));return this.crossFiltering?this.extractLineAreaCrossFilterSeries(n,e):n}isNormalised(){return!this.crossFiltering&&this.chartType==="normalizedArea"}},Een=new Set(["bar","groupedBar","stackedBar","normalizedBar"]),Ren=class extends Sw{getAxes(e){const t=[{type:this.getXAxisType(e),position:this.isHorizontal()?"left":"bottom"},{type:"number",position:this.isHorizontal()?"bottom":"left"}];if(this.isNormalised()){const n=t[1];n.label={...n.label,formatter:r=>Math.round(r.value)+"%"}}return t}getSeries(e){const[t]=e.categories,n=e.fields.map(r=>({type:this.standaloneChartType,direction:this.isHorizontal()?"horizontal":"vertical",stacked:this.crossFiltering||fJt(this.chartType),normalizedTo:this.isNormalised()?100:void 0,xKey:t.id,xName:t.name,yKey:r.colId,yName:r.displayName}));return this.crossFiltering?this.extractCrossFilterSeries(n):n}extractCrossFilterSeries(e){const t=[];for(let n=0;n<e.length;n++){const i={...e[n],listeners:{nodeClick:this.crossFilterCallback}},o={...i,yKey:`${i.yKey}-filtered-out`,showInLegend:!1};t.push(i),t.push(o)}return t}isNormalised(){const e=["normalizedColumn","normalizedBar"];return!this.crossFiltering&&e.includes(this.chartType)}isHorizontal(){return Een.has(this.chartType)}},Ien=class extends Sw{getAxes(e){const t=[{type:this.getXAxisType(e),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){const n=t[1];n.label={...n.label,formatter:r=>Math.round(r.value)+"%"}}return t}getSeries(e){const[t]=e.categories,n=["normalizedLine","stackedLine"].includes(this.chartType),r=e.fields.map(i=>({type:this.standaloneChartType,xKey:t.id,xName:t.name,yKey:i.colId,yName:i.displayName,normalizedTo:n&&this.isNormalised()?100:void 0,stacked:n}));return this.crossFiltering?this.extractLineAreaCrossFilterSeries(r,e):r}isNormalised(){const e=["normalizedLine"];return!this.crossFiltering&&e.includes(this.chartType)}},Pen=class extends Sw{getAxes(e){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]}getSeries(e){const[t]=e.categories,n=this.isPaired(),r=this.getSeriesDefinitions(e.fields,n),i=t.id===Ib?void 0:t,o=r.map(a=>a?.sizeField?{type:"bubble",xKey:a.xField.colId,xName:a.xField.displayName??void 0,yKey:a.yField.colId,yName:a.yField.displayName??void 0,title:`${a.yField.displayName} vs ${a.xField.displayName}`,sizeKey:a.sizeField.colId,sizeName:a.sizeField.displayName??"",labelKey:i?i.id:a.yField.colId,labelName:i?i.name:void 0}:{type:"scatter",xKey:a.xField.colId,xName:a.xField.displayName??void 0,yKey:a.yField.colId,yName:a.yField.displayName??void 0,title:`${a.yField.displayName} vs ${a.xField.displayName}`,labelKey:i?i.id:a.yField.colId,labelName:i?i.name:void 0});return this.crossFiltering?this.extractCrossFilterSeries(o,e):o}extractCrossFilterSeries(e,t){const{data:n}=t,r=l=>`${l}-filtered-out`,i=(l,c)=>{const u=[1/0,-1/0];if(c!=null)for(const d of l){const p=d[c]??d[r(c)];p<u[0]&&(u[0]=p),p>u[1]&&(u[1]=p)}if(u[0]<=u[1])return u},o=l=>{let c;if(l.type==="bubble"){const{sizeKey:u}=l;c=i(n,u)}return{...l,domain:c,highlightStyle:{item:{fill:"yellow"}},listeners:{...l.listeners,nodeClick:this.crossFilterCallback}}},a=l=>{const{yKey:c,xKey:u}=l;let d={};return l.type==="bubble"&&(d={sizeKey:r(l.sizeKey)}),{...l,...d,yKey:r(c),xKey:r(u),showInLegend:!1,listeners:{...l.listeners,nodeClick:p=>{const h=p.datum[r(u)],g={...p,xKey:u,datum:{...p.datum,[u]:h}};this.crossFilterCallback(g)}}}},s=e.map(o);return[...s,...s.map(a)]}getSeriesDefinitions(e,t){if(e.length<2)return[];const n=this.chartType==="bubble";if(t)return n?e.map((i,o)=>o%3===0?{xField:i,yField:e[o+1],sizeField:e[o+2]}:null).filter(i=>i&&i.yField&&i.sizeField):e.map((i,o)=>o%2===0?{xField:i,yField:e[o+1]}:null).filter(i=>i&&i.yField);const r=e[0];return n?e.map((i,o)=>o%2===1?{xField:r,yField:i,sizeField:e[o+1]}:null).filter(i=>i&&i.sizeField):e.filter((i,o)=>o>0).map(i=>({xField:r,yField:i}))}},Den=class extends Sw{getAxes(e){const t=e?e.fields:[],n=new Map(t.map(a=>[a.colId,a])),{primaryYKeys:r,secondaryYKeys:i}=this.getYKeys(t,e.seriesChartTypes),o=[{type:this.getXAxisType(e),position:"bottom"}];return r.length>0&&o.push({type:"number",keys:r,position:"left"}),i.length>0&&i.forEach(a=>{const s=n.get(a);if(!(s&&s.colId===a))return;const c={type:"number",keys:[a],position:"right"};o.push(c)}),o}getSeries(e){const{fields:t,seriesChartTypes:n}=e,[r]=e.categories;return t.map(i=>{const o=n.find(a=>a.colId===i.colId);if(o){const a=o.chartType,l=["groupedColumn","groupedBar"].includes(a)?{grouped:!0}:{};return{type:Xs(a),xKey:r.id,yKey:i.colId,yName:i.displayName,stacked:["stackedArea","stackedColumn"].includes(a),...l}}})}getYKeys(e,t){const n=[],r=[];return e.forEach(i=>{const o=i.colId,a=t.find(s=>s.colId===o);a&&(a.secondaryAxis?r.push(o):n.push(o))}),{primaryYKeys:n,secondaryYKeys:r}}};function ken(e){const t=e.currentOffset;e.currentOffset-=e.offsetAmount;const n=e.currentOffset;return e.currentOffset-=e.offsetAmount,{outerRadiusOffset:t,innerRadiusOffset:n}}var Len=class extends yD{getUpdateOptions(e,t){return{...t,data:this.crossFiltering?this.getCrossFilterData(e):e.data,series:this.getSeries(e)}}getSeries(e){const[t]=e.categories,n=e.fields.length,r={currentOffset:0,offsetAmount:n>1?20:40},i=this.getFields(e).map(o=>{const a={type:this.standaloneChartType,angleKey:o.colId,angleName:o.displayName,sectorLabelKey:o.colId,calloutLabelName:t.name,calloutLabelKey:t.id};if(this.chartType==="donut"||this.chartType==="doughnut"){const{outerRadiusOffset:s,innerRadiusOffset:l}=ken(r),c=o.displayName?{title:{text:o.displayName,showInLegend:n>1}}:void 0;return{...a,type:"donut",outerRadiusOffset:s,innerRadiusOffset:l,...c}}return a});return this.crossFiltering?this.extractCrossFilterSeries(i):i}getCrossFilterData(e){const t=e.fields[0].colId,n=`${t}-filtered-out`;return e.data.map(r=>{const i=r[t]+r[n];return r[`${t}-total`]=i,r[n]=1,r[t]=r[t]/i,r})}extractCrossFilterSeries(e){const t=e[0],n=t.angleKey,r={...t,radiusMin:0,radiusMax:1,listeners:{nodeClick:this.crossFilterCallback},legendItemKey:t.calloutLabelKey,angleKey:`${n}-total`},i={...r,radiusKey:n,sectorLabelKey:`${n}-total`};return[{...r,radiusKey:`${n}-filtered-out`,showInLegend:!1},i]}getFields(e){return this.chartType==="pie"?e.fields.slice(0,1):e.fields}},_en=class extends Gt{constructor(){super('<div class="ag-chart-menu" data-ref="eMenu"></div>'),this.eMenu=at,this.buttonListenersDestroyFuncs=[]}wireBeans(e){this.chartTranslation=e.chartTranslation}updateParams(e){const{buttons:t}=e;this.createButtons(t)}createButtons(e){this.buttonListenersDestroyFuncs.forEach(n=>n?.()),this.buttonListenersDestroyFuncs=[];const t=this.eMenu;Xi(t),e.forEach(n=>{const{buttonName:r,iconName:i,callback:o}=n,a=this.createButton(i),s=this.chartTranslation.translate(r+"ToolbarTooltip");s&&a instanceof HTMLElement&&(a.title=s),this.buttonListenersDestroyFuncs.push(...this.addManagedElementListeners(a,{click:l=>o(l.currentTarget)})),t.appendChild(a)})}createButton(e){const t=er(e,this.beans);t.classList.add("ag-chart-menu-icon");const n=Nr({tag:"button",attrs:{type:"button"},cls:"ag-chart-menu-toolbar-button"});return n.appendChild(t),n}destroy(){this.buttonListenersDestroyFuncs=[],super.destroy()}},Nen=".ag-pill-select{display:flex;flex-direction:column}:where(.ag-pill-select){.ag-column-drop-list{padding:0}.ag-select{padding-top:var(--ag-spacing)}.ag-picker-field-wrapper{background-color:transparent;border:0}.ag-picker-field-display{cursor:pointer;font-weight:500}.ag-picker-field-display,.ag-picker-field-icon{color:var(--ag-chart-menu-label-color)}}",Fen=class extends Gt{constructor(e){super('<div class="ag-pill-select" role="presentation"></div>'),this.config=e??{};const{selectedValueList:t,valueFormatter:n,valueList:r}=this.config;this.selectedValues=t??[],this.valueList=r??[],this.valueFormatter=n??(i=>sm(i)),this.registerCSS(Nen)}postConstruct(){const{ariaLabel:e,onValuesChange:t,dragSourceId:n}=this.config;this.dropZonePanel=this.createManagedBean(new qen({getValues:()=>this.selectedValues,setValues:i=>this.updateValues(i),isDraggable:()=>this.selectedValues.length>1},i=>this.valueFormatter(i),e,n)),this.getGui().appendChild(this.dropZonePanel.getGui()),this.initSelect(),t!=null&&(this.onValuesChange=t)}setValues(e,t){const{added:n,removed:r,updated:i}=this.getChanges(this.valueList,e);let o=!1;return(n.length||r.length||i.length)&&(o=!0),this.valueList=e,this.updateValues(t,o,!0),this}setValueFormatter(e){return this.valueFormatter=e,this}initSelect(){const e=this.createSelectOptions();if(!e.length)return!1;const{selectPlaceholder:t}=this.config;return this.eSelect=this.createBean(new l1({options:e,placeholder:t,onValueChange:n=>this.addValue(n),pickerIcon:"chartsMenuAdd"})),this.getGui().appendChild(this.eSelect.getGui()),!0}createSelectOptions(){const e=[],{maxSelection:t}=this.config;return t&&this.selectedValues.length>=t||this.valueList.forEach(n=>{this.selectedValues.includes(n)||e.push({value:n,text:this.valueFormatter(n)})}),e}addValue(e){this.dropZonePanel.addItem(e)}updateValues(e,t,n){const r=this.selectedValues;this.selectedValues=e;const i=this.getChanges(r,e),o=t||i.added.length||i.removed.length,a=$i(this.beans),s=this.eSelect?.getGui().contains(a),l=this.dropZonePanel?.getGui().contains(a);n||this.onValuesChange?.(i);const c=o?!this.refreshSelect():!1;this.dropZonePanel.refreshGui(),o&&s&&(c?this.dropZonePanel.focusList(!0):this.eSelect?.getFocusableElement().focus()),l&&!e.length&&this.eSelect?.getFocusableElement().focus()}getChanges(e,t){const n=t.filter(o=>!e.includes(o)),r=e.filter(o=>!t.includes(o)),i=t.filter((o,a)=>e[a]!==o);return{added:n,removed:r,updated:i,selected:t}}refreshSelect(){if(!this.eSelect)return this.initSelect();const e=this.createSelectOptions();return e.length?(this.eSelect.clearOptions().addOptions(e).setValue(void 0,!0),!0):(Ps(this.eSelect.getGui()),this.eSelect=this.destroyBean(this.eSelect),!1)}destroy(){this.destroyBean(this.eSelect),super.destroy()}},Wen=class extends nit{constructor(e,t,n,r,i,o){super(t,n,!1),this.value=e,this.valueFormatter=r,this.draggable=i,this.sourceId=o}getItem(){return this.value}getDisplayName(){return this.valueFormatter(this.value)}getAriaDisplayName(){return this.getDisplayName()}getTooltip(){}createGetDragItem(){return()=>({value:this.value})}getDragSourceType(){return bm.ChartPanel}getDragSourceId(){return this.sourceId}isMovable(){return this.isDraggable()}isDraggable(){return this.draggable}},qen=class extends tit{constructor(e,t,n,r){super(!1),this.model=e,this.valueFormatter=t,this.ariaLabel=n,this.sourceId=r}postConstruct(){super.init()}isItemDroppable(e,t){return this.isSourceEventFromTarget(t)||this.sourceId!=null&&this.sourceId===t.dragSource.sourceId}updateItems(e){this.model.setValues(e)}getExistingItems(){return this.model.getValues()}getIconName(){return this.isPotentialDndItems()?"move":"notAllowed"}getAriaLabel(){return this.ariaLabel}createPillComponent(e,t,n){return new Wen(e,t,n,this.valueFormatter,this.model.isDraggable(),this.sourceId)}getItems(e){return[e.value]}isInterestedIn(e){return e===bm.ChartPanel}},eot=class extends Gt{constructor(e,t,n,r){super(r),this.chartController=e,this.allowMultipleSelection=t,this.maxSelection=n}wireBeans(e){this.chartTranslation=e.chartTranslation}addItem(e){this.groupComp.addItem(e)}createGroup(e,t,n,r,i){if(this.allowMultipleSelection){const o=e.filter(a=>a.selected);this.valuePillSelect=this.groupComp.createManagedBean(new Fen({valueList:e,selectedValueList:o,valueFormatter:t,selectPlaceholder:this.chartTranslation.translate(n),dragSourceId:r,onValuesChange:a=>this.onValueChange(a),maxSelection:this.maxSelection})),this.groupComp.addItem(this.valuePillSelect)}else{const o=this.createValueSelectParams(e);o.onValueChange=a=>{e.forEach(s=>{s.selected=!1}),a.selected=!0,a.colId===Ib&&this.chartController.setAggFunc(void 0,!0),this.chartController.updateForPanelChange({updatedColState:a,skipAnimation:i?.()})},this.valueSelect=this.groupComp.createManagedBean(new l1(o)),this.groupComp.addItem(this.valueSelect)}}refreshValueSelect(e){if(!this.valueSelect)return;const{options:t,value:n}=this.createValueSelectParams(e);this.valueSelect.clearOptions().addOptions(t).setValue(n,!0)}createValueSelectParams(e){let t;return{options:e.map(r=>{const i=r.displayName??"";return r.selected&&(t=r),{value:r,text:i}}),value:t}}onValueChange({added:e,updated:t,removed:n,selected:r}){let i,o;const a=()=>{r.forEach((s,l)=>{s.order=l}),o=!0};e.length?(i=e[0],i.selected=!0,a()):n.length?(i=n[0],i.selected=!1):t.length&&(a(),i=t[0]),i&&this.chartController.updateForPanelChange({updatedColState:i,resetOrder:o})}destroy(){this.valuePillSelect=void 0,this.valueSelect=void 0,super.destroy()}},Ben="sum",jen=class extends eot{constructor(e,t,n,r,i){super(e,n,void 0,'<div id="categoriesGroup"></div>'),this.title=t,this.dimensionCols=r,this.isOpen=i}postConstruct(){this.groupComp=this.createBean(new Gy({title:this.title,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen})),this.createGroup(this.dimensionCols,e=>e.displayName??"","categoryAdd","categorySelect",()=>!this.chartController.getAggFunc()),this.createAggFuncControls(this.dimensionCols),this.getGui().appendChild(this.groupComp.getGui())}refresh(e){this.valuePillSelect?.setValues(e,e.filter(t=>t.selected)),this.refreshValueSelect(e),this.refreshAggFuncControls(e,this.chartController.getAggFunc())}createAggFuncControls(e){const t=this.chartController.getAggFunc();this.groupComp.addItem(this.aggFuncToggle=this.createBean(new b3({label:this.chartTranslation.translate("aggregate"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:t!=null,onValueChange:n=>{const r=n?Ben:void 0;this.chartController.setAggFunc(r),this.aggFuncSelect?.setValue(r,!0),this.aggFuncSelect?.setDisplayed(r!=null)}}))),this.groupComp.addItem(this.aggFuncSelect=this.createBean(new l1({options:[{value:"sum",text:this.chartTranslation.translate("sum")},{value:"first",text:this.chartTranslation.translate("first")},{value:"last",text:this.chartTranslation.translate("last")},{value:"min",text:this.chartTranslation.translate("min")},{value:"max",text:this.chartTranslation.translate("max")},{value:"count",text:this.chartTranslation.translate("count")},{value:"avg",text:this.chartTranslation.translate("avg")}],value:typeof t=="string"?t:void 0,onValueChange:n=>{this.chartController.setAggFunc(n)}}))),this.refreshAggFuncControls(e,t)}refreshAggFuncControls(e,t){const r=e.filter(i=>i.selected).some(i=>i.colId!==Ib);this.aggFuncToggle?.setValue(t!=null),this.aggFuncSelect?.setValue(typeof t=="string"?t:void 0,!0),this.aggFuncToggle?.setDisplayed(r),this.aggFuncSelect?.setDisplayed(r&&t!=null)}clearAggFuncControls(){this.aggFuncToggle=this.destroyBean(this.aggFuncToggle),this.aggFuncSelect=this.destroyBean(this.aggFuncSelect)}destroy(){this.clearAggFuncControls(),this.groupComp=this.destroyBean(this.groupComp),super.destroy()}},Oz=class extends dt{constructor(e){super(),this.chartOptionsProxy=e}wireBeans(e){this.chartTranslation=e.chartTranslation}getDefaultColorPickerParams(e,t,n){return this.addValueParams(e,{label:this.chartTranslation.translate(t??"color"),labelWidth:"flex",inputWidth:"flex",labelAlignment:"top",pickerGap:6},n)}getDefaultNumberInputParams(e,t,n){return this.addValueParams(e,{label:this.chartTranslation.translate(t),labelAlignment:"top",labelWidth:"flex",inputWidth:"flex",precision:n?.precision,step:n?.step,min:n?.min,max:n?.max},{parseInputValue:r=>{const i=Number(r);return isNaN(i)?void 0:i},formatInputValue:r=>r==null?"":`${r}`})}getDefaultSliderParams(e,t,n,r){let i=this.chartOptionsProxy.getValue(e)??0;r&&Array.isArray(i)&&(i=i[0]);const o=this.getDefaultSliderParamsWithoutValueParams(i,t,n);return o.onValueChange=a=>this.chartOptionsProxy.setValue(e,r?[a]:a),o}getDefaultSliderParamsWithoutValueParams(e,t,n){return{label:this.chartTranslation.translate(t),minValue:0,maxValue:Math.max(e,n),textFieldWidth:45,value:`${e}`}}getDefaultCheckboxParams(e,t,n){const r=this.chartOptionsProxy.getValue(e),i={label:this.chartTranslation.translate(t),value:r,readOnly:n?.readOnly,passive:n?.passive};return i.onValueChange=o=>{this.chartOptionsProxy.setValue(e,typeof o=="boolean"?o:void 0)},i}getDefaultToggleParams(e,t,n){const r=this.chartOptionsProxy.getValue(e),i={label:this.chartTranslation.translate(t),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:r,readOnly:n?.readOnly,passive:n?.passive};return i.onValueChange=o=>{this.chartOptionsProxy.setValue(e,typeof o=="boolean"?o:void 0)},i}getDefaultSelectParams(e,t,n){return this.getDefaultSelectParamsWithoutValueParams(t,n,this.chartOptionsProxy.getValue(e),r=>{this.chartOptionsProxy.setValue(e,r)})}getDefaultSelectParamsWithoutValueParams(e,t,n,r){return{label:this.chartTranslation.translate(e),labelAlignment:"top",options:t,pickerGap:6,value:n,onValueChange:r}}getDefaultFontPanelParams(e,t){const n=r=>`${e}.${r}`;return this.addEnableParams(n("enabled"),{name:this.chartTranslation.translate(t),suppressEnabledCheckbox:!1,chartMenuParamsFactory:this,keyMapper:n})}addValueParams(e,t,n){const r=this.chartOptionsProxy.getValue(e);return t.value=n?.formatInputValue?n.formatInputValue(r):r,t.onValueChange=i=>{const o=n?.parseInputValue?n.parseInputValue(i):i;this.chartOptionsProxy.setValue(e,o)},t}addEnableParams(e,t){return t.enabled=this.chartOptionsProxy.getValue(e)??!1,t.onEnableChange=n=>this.chartOptionsProxy.setValue(e,n),t}getChartOptions(){return this.chartOptionsProxy}},Hen=class extends Gt{constructor(e,t){super(),this.chartMenuContext=e,this.isOpen=t,this.chartSpecificGroup=at,this.hasContent=!1}wireBeans(e){this.chartTranslation=e.chartTranslation,this.chartSvc=e.chartSvc}postConstruct(){const t={title:this.getTitle(),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen,items:[...this.createDirectionSelect(),this.createReverseSelect(),this.createGroupTypeSelect()]};this.setTemplate(`
            <div id="chartSpecificGroup">
                <ag-group-component data-ref="chartSpecificGroup"></ag-group-component>
            </div>`,[Qs],{chartSpecificGroup:t}),this.setDisplayed(this.hasContent)}refresh(){this.hasContent=!1,this.chartSpecificGroup.setTitle(this.getTitle()),this.updateDirectionSelect(),this.updateReverseSelect(),this.updateGroupTypeSelect(),this.setDisplayed(this.hasContent)}getTitle(){const e=this.chartMenuContext.chartController.getChartType();return this.chartTranslation.translate(aMe(e))}createDirectionSelect(){if(!this.chartSvc.isEnterprise())return[];const{chartOptionsService:e,chartController:t}=this.chartMenuContext,n=e.getSeriesOptionsProxy(()=>Xs(t.getChartType())),r=this.createManagedBean(new Oz(n)),i=["horizontal","vertical"].map(s=>({value:s,text:this.chartTranslation.translate(s)})),o=r.getDefaultSelectParams("direction","direction",i),a=o.onValueChange;return o.onValueChange=s=>{a(s),t.raiseChartModelUpdateEvent()},this.directionSelect=this.createManagedBean(new l1(o)),this.updateDirectionSelect(),[this.directionSelect]}createReverseSelect(){const{chartMenuParamsFactory:e}=this.chartMenuContext,t=e.getDefaultToggleParams("series.reverse","reverse");return this.reverseToggle=this.createManagedBean(new b3(t)),this.updateReverseSelect(),this.reverseToggle}updateReverseSelect(){const e=this.chartMenuContext.chartController.getChartType()==="pyramid";this.updateDisplayed(this.reverseToggle,e)}updateDirectionSelect(){const e=vJt(this.chartMenuContext.chartController.getChartType());this.updateDisplayed(this.directionSelect,e)}createGroupTypeSelect(){const{chartController:e,chartMenuParamsFactory:t}=this.chartMenuContext;return this.groupTypeSelect=this.createManagedBean(new l1(t.getDefaultSelectParamsWithoutValueParams("seriesGroupType",uJt.map(n=>({value:n,text:this.chartTranslation.translate(`${n}SeriesGroupType`)})),e.getSeriesGroupType(),n=>e.setSeriesGroupType(n)))),this.updateGroupTypeSelect(),this.groupTypeSelect}updateGroupTypeSelect(){const e=["radialColumn","radialBar","nightingale"].includes(this.chartMenuContext.chartController.getChartType());this.updateDisplayed(this.groupTypeSelect,e)}updateDisplayed(e,t){e?.setDisplayed(t),e&&(this.hasContent=this.hasContent||t)}},Ven=class extends Gt{constructor(e,t,n){super('<div id="seriesChartTypeGroup"></div>'),this.chartController=e,this.columns=t,this.isOpen=n,this.selectedColIds=[],this.chartTypeComps=new Map,this.secondaryAxisComps=new Map}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){this.createSeriesChartTypeGroup(this.columns)}refresh(e){Md(this.getValidColIds(e),this.selectedColIds)?this.refreshComps():this.recreate(e)}recreate(e){this.isOpen=this.seriesChartTypeGroupComp.isExpanded(),Xi(this.getGui()),this.destroyBean(this.seriesChartTypeGroupComp),this.columns=e,this.selectedColIds=[],this.clearComps(),this.postConstruct()}getValidColIds(e){const t=this.chartController.getSeriesChartTypes();return e.filter(n=>n.selected&&!!t.filter(r=>r.colId===n.colId)[0]).map(({colId:n})=>n)}createSeriesChartTypeGroup(e){this.seriesChartTypeGroupComp=this.createBean(new Gy({title:this.chartTranslation.translate("seriesChartType"),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen}));const t=this.chartController.getSeriesChartTypes();e.forEach(n=>{if(!n.selected)return;const r=t.filter(c=>c.colId===n.colId)[0];if(!r)return;this.selectedColIds.push(n.colId);const i=this.seriesChartTypeGroupComp.createManagedBean(new Gy({title:n.displayName,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-format-sub-level"})),o=c=>["groupedColumn","stackedColumn","stackedArea"].includes(c),a=this.seriesChartTypeGroupComp.createManagedBean(new v3({label:this.chartTranslation.translate("secondaryAxis"),labelWidth:"flex",disabled:o(r.chartType),value:!!r.secondaryAxis,onValueChange:c=>this.chartController.updateSeriesChartType(n.colId,void 0,c)}));i.addItem(a);const s=["line","area","stackedArea","groupedColumn","stackedColumn"].map(c=>({value:c,text:this.chartTranslation.translate(aMe(c))})),l=i.createManagedBean(new l1({options:s,value:r.chartType,onValueChange:c=>this.chartController.updateSeriesChartType(n.colId,c)}));i.addItem(l),this.seriesChartTypeGroupComp.addItem(i),this.chartTypeComps.set(n.colId,l),this.secondaryAxisComps.set(n.colId,a)}),this.getGui().appendChild(this.seriesChartTypeGroupComp.getGui())}refreshComps(){const e=this.chartController.getSeriesChartTypes();this.selectedColIds.forEach(t=>{const n=e.find(o=>o.colId===t);if(!n)return;const r=this.chartTypeComps.get(t),i=this.secondaryAxisComps.get(t);r?.setValue(n.chartType),i?.setValue(!!n.secondaryAxis),i?.setDisabled(this.isSecondaryAxisDisabled(n.chartType))})}clearComps(){this.chartTypeComps.clear(),this.secondaryAxisComps.clear()}isSecondaryAxisDisabled(e){return["groupedColumn","stackedColumn","stackedArea"].includes(e)}destroy(){this.clearComps(),this.seriesChartTypeGroupComp=this.destroyBean(this.seriesChartTypeGroupComp),super.destroy()}},Gen=class extends eot{constructor(e,t,n,r,i,o,a){super(e,r,i,'<div id="seriesGroup"></div>'),this.chartOptionsService=t,this.title=n,this.valueCols=o,this.isOpen=a}postConstruct(){if(this.groupComp=this.createBean(new Gy({title:this.title,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen})),this.chartController.isActiveXYChart()){const e=this.groupComp.createManagedBean(new b3({label:this.chartTranslation.translate("paired"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:this.chartOptionsService.getPairedMode(),onValueChange:t=>{this.chartOptionsService.setPairedMode(!!t),this.chartController.updateForGridChange({maintainColState:!0})}}));this.groupComp.addItem(e)}this.createGroup(this.valueCols,this.generateGetSeriesLabel(this.valueCols),"seriesAdd","seriesSelect"),this.getGui().appendChild(this.groupComp.getGui())}refresh(e){this.valuePillSelect?.setValueFormatter(this.generateGetSeriesLabel(e)),this.valuePillSelect?.setValues(e,e.filter(t=>t.selected)),this.refreshValueSelect(e)}generateGetSeriesLabel(e){if(!this.chartController.isActiveXYChart())return o=>o.displayName??"";const t=e.filter(o=>o.selected),n=this.chartController.getChartType()==="bubble",r=this.chartOptionsService.getPairedMode(),i=new Map;return i.set(0,"X"),i.set(1,"Y"),i.set(2,"size"),o=>{const a=o.displayName??"";if(!o.selected)return a;const s=t.indexOf(o);if(s===-1)return a;let l;return r?l=i.get(s%(n?3:2)):s===0?l="X":l=n&&s%2===0?"size":"Y",`${a} (${l})`}}destroy(){this.groupComp=this.destroyBean(this.groupComp),super.destroy()}},$en={groups:[{type:"categories",isOpen:!0},{type:"series",isOpen:!0},{type:"seriesChartType",isOpen:!0},{type:"chartSpecific",isOpen:!0}]},Uen=class extends Gt{constructor(e){super('<div class="ag-chart-data-wrapper ag-scrollable-container"></div>'),this.chartMenuContext=e,this.isSwitchCategorySeriesToggled=!1,this.restoreSwitchCategorySeriesToggleFocus=!1,this.panels=[],this.chartController=e.chartController}wireBeans(e){this.chartTranslation=e.chartTranslation,this.chartSvc=e.chartSvc}postConstruct(){this.createSwitchCategorySeriesToggle(),this.isSwitchCategorySeriesToggled=this.chartController.isCategorySeriesSwitched(),this.updatePanels();const e=this.updatePanels.bind(this);this.addManagedListeners(this.chartController,{chartModelUpdate:e,chartApiUpdate:e})}destroy(){this.clearPanelComponents(),super.destroy()}updatePanels(){const e=this.chartType,t=this.isSwitchCategorySeriesToggled,{dimensionCols:n,valueCols:r}=this.chartController.getColStateForMenu();this.chartType=this.chartController.getChartType(),this.isSwitchCategorySeriesToggled=this.chartController.isCategorySeriesSwitched();const i=this.isSwitchCategorySeriesToggled!==t;this.canRefresh(e,this.chartType)&&!i?(this.categoriesDataPanel?.refresh(n),this.seriesDataPanel?.refresh(r),this.seriesChartTypePanel?.refresh(r),this.chartSpecificPanel?.refresh()):this.recreatePanels(n,r);const o=Bit(this.chartType)&&this.chartSvc.isEnterprise()&&!this.chartController.isGrouping();Nn(this.switchCategorySeriesToggle.getGui(),o),i&&this.switchCategorySeriesToggle?.setValue(this.chartController.isCategorySeriesSwitched()),this.restoreSwitchCategorySeriesToggleFocus&&(this.restoreSwitchCategorySeriesToggleFocus=!1,o&&this.switchCategorySeriesToggle.getFocusableElement().focus())}canRefresh(e,t){if(e===void 0)return!1;if(e===t)return!0;const n=r=>["columnLineCombo","areaColumnCombo","customCombo"].includes(r);return!!(n(e)&&n(t))}recreatePanels(e,t){this.clearPanelComponents();const{chartType:n}=this;if(!n)return;const r=this.chartController.isCategorySeriesSwitched();this.getDataPanelDef().groups?.forEach(({type:i,isOpen:o})=>{i===(r?"series":"categories")?(this.categoriesDataPanel=this.createBean(new jen(this.chartController,this.getCategoryGroupTitle(r),this.getCategoryGroupMultipleSelect(n,r),e,o)),this.panels.push(this.categoriesDataPanel)):i===(r?"categories":"series")?(this.seriesDataPanel=this.createBean(new Gen(this.chartController,this.chartMenuContext.chartOptionsService,this.getSeriesGroupTitle(r),this.getSeriesGroupMultipleSelect(n,r),this.getSeriesGroupMaxSelection(n,r),t,o)),this.panels.push(this.seriesDataPanel)):i==="seriesChartType"?this.chartController.isComboChart()&&(this.seriesChartTypePanel=this.createBean(new Ven(this.chartController,t,o)),this.panels.push(this.seriesChartTypePanel)):i==="chartSpecific"?(this.chartSpecificPanel=this.createBean(new Hen(this.chartMenuContext,o)),this.panels.push(this.chartSpecificPanel)):ut(144,{type:i})}),(r?this.categoriesDataPanel:this.seriesDataPanel)?.addItem(this.switchCategorySeriesToggle.getGui()),this.addPanelComponents()}addPanelComponents(){if(!this.panels.length)return;const t=bl(this.beans).createDocumentFragment();for(const n of this.panels)n.addCss("ag-chart-data-section"),t.appendChild(n.getGui());this.getGui().appendChild(t)}clearPanelComponents(){const e=this.getGui();this.panels.forEach(t=>{e.removeChild(t.getGui()),this.destroyBean(t)}),this.panels=[]}getDataPanelDef(){return this.gos.get("chartToolPanelsDef")?.dataPanel??$en}getCategoryGroupTitle(e){return e?this.chartTranslation.translate("seriesLabels"):this.chartTranslation.translate(this.chartController.isActiveXYChart()?"labels":"categories")}getCategoryGroupMultipleSelect(e,t){return t?!1:qhe(e)!==1}getSeriesGroupTitle(e){return e?this.chartTranslation.translate("categoryValues"):this.chartTranslation.translate(this.chartController.isActiveXYChart()?"xyValues":"series")}getSeriesGroupMultipleSelect(e,t){return this.getSeriesGroupMaxSelection(e,t)!==1}getSeriesGroupMaxSelection(e,t){if(!t)return X$(e)}createSwitchCategorySeriesToggle(){this.switchCategorySeriesToggle=this.createManagedBean(new b3({label:this.chartTranslation.translate("switchCategorySeries"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:this.chartController.isCategorySeriesSwitched(),onValueChange:e=>{this.restoreSwitchCategorySeriesToggleFocus=!0,this.chartController.switchCategorySeries(e)}}))}},Xen=class extends Lye{constructor(e){super(e,`<div class="ag-angle-select">
            <div data-ref="eLabel"></div>
            <div class="ag-wrapper ag-angle-select-wrapper">
                <div class="ag-angle-select-field">
                    <div data-ref="eParentCircle" class="ag-angle-select-parent-circle">
                        <div data-ref="eChildCircle" class="ag-angle-select-child-circle"></div>
                    </div>
                </div>
                <ag-input-number-field data-ref="eAngleValue"></ag-input-number-field>
            </div>
        </div>`,[LK]),this.eLabel=at,this.eParentCircle=at,this.eChildCircle=at,this.eAngleValue=at,this.radius=0,this.offsetX=0,this.offsetY=0}wireBeans(e){this.dragSvc=e.dragSvc}postConstruct(){super.postConstruct();const{value:e,onValueChange:t}=this.config;e!=null&&this.setValue(e,void 0,!0),t!=null&&this.onValueChange(t),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:()=>{this.parentCircleRect=this.eParentCircle.getBoundingClientRect()},onDragging:n=>this.calculateAngleDrag(n),onDragStop:()=>{}},this.dragSvc?.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(`${this.degrees}`).onValueChange(n=>{(n==null||n==="")&&(n="0"),n=this.eAngleValue.normalizeValue(n);let r=parseFloat(n);r>180&&(r=r-360),this.setValue(r)}),this.updateNumberInput(),Ut(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListeners(this,{fieldValueChanged:()=>{this.eAngleValue.getInputElement().contains($i(this.beans))||this.updateNumberInput()}})}updateNumberInput(){const e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())}positionChildCircle(e){const t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,r=t.width/2,i=t.height/2;n.style.left=`${r+Math.cos(e)*8}px`,n.style.top=`${i+Math.sin(e)*8}px`}calculatePolar(){const e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)}calculateCartesian(){const e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)}setOffsetX(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this}setOffsetY(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this}calculateAngleDrag(e){const t=this.parentCircleRect,n=t.width/2,r=t.height/2,i=e.clientX-t.left,o=e.clientY-t.top,a=i-n,s=o-r,l=Math.atan2(s,a);this.setValue(l,!0)}toDegrees(e){return e/Math.PI*180}toRadians(e){return e/180*Math.PI}normalizeNegativeValue(e){return e<0?360+e:e}normalizeAngle180(e){return e%=Math.PI*2,e<-Math.PI?e+=Math.PI*2:e>=Math.PI&&(e-=Math.PI*2),e}getRadius(){return this.radius}setRadius(e){return this.radius===e?this:(this.radius=e,this.calculateCartesian(),this)}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>{e(this.degrees)}}),this}getValue(e){return e?this.toRadians(this.degrees):this.degrees}setValue(e,t,n){let r;return t?r=e:r=this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(r),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(r),n||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}setWidth(e){return am(this.getGui(),e),this}setDisabled(e){return super.setDisabled(e),this.eAngleValue.setDisabled(e),this}destroy(){this.dragSvc?.removeDragSource(this.dragListener),super.destroy()}};function Yen(e){return e[0].toUpperCase()+e.substring(1).toLowerCase()}var Tx=class extends Gt{constructor(e){super(),this.params=e,this.fontGroup=at,this.activeComps=[],this.chartOptions=e.chartMenuParamsFactory.getChartOptions()}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{cssIdentifier:e="charts-format-sub-level",name:t,enabled:n,onEnableChange:r,suppressEnabledCheckbox:i,chartMenuParamsFactory:o,keyMapper:a}=this.params,s={cssIdentifier:e,direction:"vertical",suppressOpenCloseIcons:!0,title:t,enabled:n,suppressEnabledCheckbox:!0,onEnableChange:l=>{r&&r(l)},useToggle:!i};this.setTemplate(`<div class="ag-font-panel">
        <ag-group-component data-ref="fontGroup">
            <ag-select data-ref="familySelect"></ag-select>
            <ag-select data-ref="weightStyleSelect"></ag-select>
            <div class="ag-charts-font-size-color">
                <ag-select data-ref="sizeSelect"></ag-select>
                <ag-color-picker data-ref="colorPicker"></ag-color-picker>
            </div>
        </ag-group-component>
    </div>`,[Qs,C6,$b],{fontGroup:s,familySelect:this.getFamilySelectParams(),weightStyleSelect:this.getWeightStyleSelectParams(),sizeSelect:this.getSizeSelectParams(),colorPicker:o.getDefaultColorPickerParams(a("color"))}),this.toggleCss("ag-font-panel-no-header",!t)}addItem(e,t){t?this.fontGroup.prependItem(e):this.fontGroup.addItem(e),this.activeComps.push(e)}setEnabled(e){this.fontGroup.setEnabled(e)}getFamilySelectParams(){const e=["Arial, sans-serif","Aria Black, sans-serif","Book Antiqua,  serif","Charcoal, sans-serif","Comic Sans MS, cursive","Courier, monospace","Courier New, monospace","Gadget, sans-serif","Geneva, sans-serif","Helvetica, sans-serif","Impact, sans-serif","Lucida Console, monospace","Lucida Grande, sans-serif","Lucida Sans Unicode,  sans-serif","Monaco, monospace","Palatino Linotype, serif","Palatino, serif","Times New Roman, serif","Times, serif","Verdana, sans-serif"],t=this.getInitialFontValue("fontFamily");let n=e[0];if(t){const o=e.map(a=>a.toLowerCase()).indexOf(t.toLowerCase());if(o>=0)n=e[o];else{const a=Yen(t);e.push(a),n=a}}const r=e.sort().map(i=>({value:i,text:i}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("font",r,`${n}`,i=>this.setFont({fontFamily:i}))}getSizeSelectParams(){const e=[8,10,12,14,16,18,20,22,24,26,28,30,32,34,36],t=this.getInitialFontValue("fontSize");e.includes(t)||e.push(t);const n=e.sort((r,i)=>r-i).map(r=>({value:`${r}`,text:`${r}`}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("size",n,`${t}`,r=>this.setFont({fontSize:parseInt(r,10)}))}getWeightStyleSelectParams(){const e=this.getInitialFontValue("fontWeight")??"normal",t=this.getInitialFontValue("fontStyle")??"normal",n=[{name:"normal",weight:"normal",style:"normal"},{name:"bold",weight:"bold",style:"normal"},{name:"italic",weight:"normal",style:"italic"},{name:"boldItalic",weight:"bold",style:"italic"}];let r=n.find(o=>o.weight===e&&o.style===t);r||(r={name:"predefined",weight:e,style:t},n.unshift(r));const i=n.map(o=>({value:o.name,text:this.chartTranslation.translate(o.name)}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("weight",i,r.name,o=>{const a=n.find(s=>s.name===o);this.setFont({fontWeight:a.weight,fontStyle:a.style})})}destroyActiveComps(){this.activeComps.forEach(e=>{Ps(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActiveComps(),super.destroy()}setFont(e){const{keyMapper:t}=this.params;for(const n of Object.keys(e)){const r=e[n];r&&this.chartOptions.setValue(t(n),r)}}getInitialFontValue(e){const{keyMapper:t}=this.params;return this.chartOptions.getValue(t(e))}},Ken=class extends Gt{constructor(e){super(),this.chartMenuUtils=e,this.axisTicksSizeSlider=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{chartMenuUtils:e}=this,t=e.addEnableParams("tick.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("ticks"),suppressEnabledCheckbox:!0,useToggle:!0}),n=e.getDefaultColorPickerParams("tick.stroke"),r=e.getDefaultSliderParams("tick.width","width",10),i=e.getDefaultSliderParams("tick.size","length",30);this.setTemplate(`<div>
            <ag-group-component data-ref="axisTicksGroup">
                <ag-color-picker data-ref="axisTicksColorPicker"></ag-color-picker>
                <ag-slider data-ref="axisTicksWidthSlider"></ag-slider>
                <ag-slider data-ref="axisTicksSizeSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,$b,yp],{axisTicksGroup:t,axisTicksColorPicker:n,axisTicksWidthSlider:r,axisTicksSizeSlider:i})}setTickSizeSliderDisplayed(e){this.axisTicksSizeSlider.setDisplayed(e)}},Qen=class extends Gt{constructor(e){super(),this.chartMenuUtils=e,this.chartOptions=e.getChartOptions()}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuUtils.addEnableParams("gridLine.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("gridLines"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.getGridLineColorPickerParams("color"),n=this.getGridLineWidthSliderParams("thickness"),r=this.getGridLineDashSliderParams("lineDash");this.setTemplate(`<div>
            <ag-group-component data-ref="gridLineGroup">
                <ag-color-picker data-ref="gridLineColorPicker"></ag-color-picker>
                <ag-slider data-ref="gridLineWidthSlider"></ag-slider>
                <ag-slider data-ref="gridLineLineDashSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,$b,yp],{gridLineGroup:e,gridLineColorPicker:t,gridLineWidthSlider:n,gridLineLineDashSlider:r})}getGridLineColorPickerParams(e){return this.chartMenuUtils.getDefaultColorPickerParams("gridLine.style",e,{formatInputValue:t=>t?.[0]?.stroke,parseInputValue:t=>{const n=this.chartOptions.getValue("gridLine.style")??[];return n.length===0?[{stroke:t,lineDash:[]}]:[{...n[0],stroke:t}]}})}getGridLineWidthSliderParams(e){return this.chartMenuUtils.getDefaultSliderParams("gridLine.width",e,10)}getGridLineDashSliderParams(e){const n=this.chartOptions.getValue("gridLine.style")?.[0]?.lineDash?.[0],r=this.chartMenuUtils.getDefaultSliderParamsWithoutValueParams(n??0,e,30);return r.onValueChange=i=>{const o=this.chartOptions.getValue("gridLine.style.0.stroke");this.chartOptions.setValue("gridLine.style",[{lineDash:[i],stroke:o}])},r}},Zen="%d %B %Y",o8=class extends Gt{constructor(e,t){super(),this.axisType=e,this.options=t,this.axisGroup=at,this.axisTypeSelect=at,this.axisPositionSelect=at,this.axisTimeFormatSelect=at,this.activePanels=[],this.updateFuncs=[];const{chartOptionsService:n,seriesType:r,chartController:i}=t;this.chartOptionsService=n,this.chartController=i,this.chartOptionsSeriesProxy=n.getSeriesOptionsProxy(()=>r)}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{isExpandedOnInit:e,chartOptionsService:t,registerGroupComponent:n}=this.options,r=this.axisType,i={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate(r),expanded:e,suppressEnabledCheckbox:!0},o=t.getCartesianAxisOptionsProxy(this.axisType),a=this.createManagedBean(new Oz(o)),s=this.createManagedBean(new Oz(t.getCartesianAxisThemeOverridesProxy(this.axisType))),l=this.getAxisTypeSelectParams(a,t.getCartesianAxisAppliedThemeOverridesProxy(this.axisType)),c=this.getAxisPositionSelectParams(a),u=this.getAxisTimeFormatSelectParams(a),d=this.getAxisColorInputParams(s),p=this.getAxisLineWidthSliderParams(s);this.setTemplate(`<div>
            <ag-group-component data-ref="axisGroup">
                <ag-select data-ref="axisTypeSelect"></ag-select>
                <ag-select data-ref="axisTimeFormatSelect"></ag-select>
                <ag-select data-ref="axisPositionSelect"></ag-select>
                <ag-color-picker data-ref="axisColorInput"></ag-color-picker>
                <ag-slider data-ref="axisLineWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,C6,$b,yp],{axisGroup:i,axisTypeSelect:l??void 0,axisPositionSelect:c??void 0,axisTimeFormatSelect:u??void 0,axisColorInput:d,axisLineWidthSlider:p}),n(this.axisGroup),this.axisTypeSelect.setDisplayed(!!l.options?.length),c||this.removeTemplateComponent(this.axisPositionSelect);const h=()=>{const m=o.getValue("type")==="time";Nn(this.axisTimeFormatSelect.getGui(),m)};u?(h(),this.addManagedEventListeners({chartOptionsChanged:()=>{h()}})):this.removeTemplateComponent(this.axisTimeFormatSelect),this.initGridLines(s),this.initAxisTicks(s),this.initAxisLabels(s);const g=()=>this.updateFuncs.forEach(m=>m());this.addManagedListeners(this.chartController,{chartUpdated:g,chartModelUpdate:()=>setTimeout(()=>{this.isAlive()&&(this.refreshAxisTypeSelect(a),h())})})}getAxisTypeSelectParams(e,t){const n=e.getChartOptions(),r=this.getAxisTypeSelectOptions(),i=e.getDefaultSelectParams("type","axisType",r);return i.onValueChange=o=>{const a=n.getValue("type");if(o===a)return;const s=t.getValue("*"),l=a==="time",c=o==="time",u=l!==c?c?Zen:void 0:null;if(this.chartOptionsService.setCartesianCategoryAxisType(this.axisType,o),u!==null){const d=n.getValue("label")??{};n.setValue("label",{...d,format:u})}t.setValue("*",s)},i}refreshAxisTypeSelect(e){const t=this.getAxisTypeSelectOptions(),n=!!t.length;this.axisTypeSelect.setDisplayed(n),n&&this.axisTypeSelect.clearOptions().addOptions(t).setValue(e.getChartOptions().getValue("type"))}getAxisTypeSelectOptions(){const e=this.chartController,t=e.getChartType(),n=()=>{const r=e.getChartData()[0];return r?e.getSelectedDimensions().every(i=>!isNaN(parseFloat(r[i.colId]))):!1};return["heatmap","histogram","boxPlot","rangeBar","scatter","bubble"].includes(t)||e.isGrouping()||!this.isCategoryAxis()||e.isCategorySeriesSwitched()||!n()?[]:["category","number","time"].map(r=>({value:r,text:this.translate(r)}))}isCategoryAxis(){const e=this.chartOptionsSeriesProxy.getValue("direction")==="horizontal";return e&&this.axisType==="yAxis"||!e&&this.axisType==="xAxis"}getAxisPositionSelectParams(e){const t=((n,r)=>{switch(n){case"heatmap":return null;default:switch(r){case"xAxis":return[{value:"top",text:this.translate("top")},{value:"bottom",text:this.translate("bottom")}];case"yAxis":return[{value:"left",text:this.translate("left")},{value:"right",text:this.translate("right")}]}}})(this.chartController.getChartType(),this.axisType);return t?e.getDefaultSelectParams("position","position",t):null}getAxisTimeFormatSelectParams(e){if(!this.isCategoryAxis())return null;const t=[{value:"%d/%m/%Y",text:this.translate("timeFormatSlashesDDMMYYYY")},{value:"%m/%d/%Y",text:this.translate("timeFormatSlashesMMDDYYYY")},{value:"%d/%m/%y",text:this.translate("timeFormatSlashesDDMMYY")},{value:"%m/%d/%y",text:this.translate("timeFormatSlashesMMDDYY")},{value:"%d.%e.%y",text:this.translate("timeFormatDotsDDMYY")},{value:"%e.%d.%y",text:this.translate("timeFormatDotsMDDYY")},{value:"%Y-%m-%d",text:this.translate("timeFormatDashesYYYYMMDD")},{value:"%d %B %Y",text:this.translate("timeFormatSpacesDDMMMMYYYY")},{value:"%H:%M:%S",text:this.translate("timeFormatHHMMSS")},{value:"%I:%M:%S %p",text:this.translate("timeFormatHHMMSSAmPm")}];return e.getDefaultSelectParams("label.format","timeFormat",t)}getAxisColorInputParams(e){return e.getDefaultColorPickerParams("line.stroke")}getAxisLineWidthSliderParams(e){const t=e.getChartOptions(),n=()=>t.getValue("line.enabled")?t.getValue("line.width"):null,r=o=>{t.setValues([{expression:"line.enabled",value:o!=null},{expression:"line.width",value:o??0}])},i=e.getDefaultSliderParamsWithoutValueParams(n()??0,"thickness",10);return i.onValueChange=o=>{r(o===0?null:o)},i}initGridLines(e){if(this.chartController.getChartType()==="heatmap")return;const n=this.createBean(new Qen(e));this.axisGroup.addItem(n),this.activePanels.push(n)}initAxisTicks(e){if(!this.hasConfigurableAxisTicks())return;const t=this.createBean(new Ken(e));this.axisGroup.addItem(t),this.activePanels.push(t);const n=()=>t.setTickSizeSliderDisplayed(this.isGroupedCategoryAxis());this.updateFuncs.push(n),n()}hasConfigurableAxisTicks(){switch(this.chartController.getChartType()){case"radarLine":case"radarArea":case"rangeBar":case"boxPlot":case"waterfall":return!1;default:return!0}}initAxisLabels(e){const t={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:e,keyMapper:r=>`label.${r}`},n=this.createBean(new Tx(t));this.axisGroup.addItem(n),this.activePanels.push(n),this.addAdditionalLabelComps(n,e)}addAdditionalLabelComps(e,t){this.addLabelPadding(e,t);const n=this.createRotationWidget("labelRotation",t),r=this.initLabelRotation(n,t);e.addItem(r),e.addItem(n)}initLabelRotation(e,t){const n=t.getChartOptions(),r=()=>n.getValue("label.rotation"),i=()=>n.getValue("label.autoRotate"),o=u=>{u&&(this.prevRotation=r()),n.setValues([{expression:"label.autoRotate",value:u},{expression:"label.rotation",value:u?void 0:this.prevRotation}]),e.setDisplayed(!u)},s=typeof r()=="number"?!1:i(),l=this.createBean(new v3({label:this.translate("autoRotate"),value:s,onValueChange:o}));e.setDisplayed(!s);const c=()=>l.setDisplayed(this.isGroupedCategoryAxis());return this.updateFuncs.push(c),c(),l}createRotationWidget(e,t){const n=t.getChartOptions(),r=()=>n.getValue("label.rotation"),i=l=>n.setValue("label.rotation",l),a=`${this.chartTranslation.translate(e)} °`,s=new Xen({label:a,labelWidth:"flex",value:r()??0,onValueChange:i});return this.updateFuncs.push(()=>{s.setValue(r()??0)}),this.createBean(s)}isGroupedCategoryAxis(){return this.chartOptionsService.getCartesianAxisOptionsProxy(this.axisType).getValue("type")==="grouped-category"?!this.isCategoryAxis():!0}addLabelPadding(e,t){const n=this.createBean(new jp(t.getDefaultSliderParams("label.spacing","padding",30)));e.addItem(n)}translate(e){return this.chartTranslation.translate(e)}removeTemplateComponent(e){Ps(e.getGui()),this.destroyBean(e)}destroyActivePanels(){this.activePanels.forEach(e=>{Ps(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActivePanels(),super.destroy()}},Jen=class extends Gt{constructor(e){super(),this.options=e,this.axisGroup=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{isExpandedOnInit:e,chartAxisMenuParamsFactory:t,registerGroupComponent:n}=this.options,r={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate("polarAxis"),expanded:e,suppressEnabledCheckbox:!0},i=t.getDefaultColorPickerParams("line.stroke"),o=t.getDefaultSliderParams("line.width","thickness",10);this.setTemplate(`<div>
            <ag-group-component data-ref="axisGroup">
                <ag-color-picker data-ref="axisColorInput"></ag-color-picker>
                <ag-slider data-ref="axisLineWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,$b,yp],{axisGroup:r,axisColorInput:i,axisLineWidthSlider:o}),n(this.axisGroup),this.initAxis(),this.initAxisLabels(),this.initRadiusAxis()}initAxis(){const e=this.options.chartController.getChartType();if(["radarLine","radarArea"].includes(e)){const n=[{value:"circle",text:this.translate("circle")},{value:"polygon",text:this.translate("polygon")}];this.axisGroup.addItem(this.createSelect({labelKey:"shape",options:n,property:"shape"}))}e!=="pie"&&this.axisGroup.addItem(this.createSlider({labelKey:"innerRadius",defaultMaxValue:1,property:"innerRadiusRatio"}))}initAxisLabels(){const e={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:this.options.chartAxisMenuParamsFactory,keyMapper:r=>`label.${r}`},t=this.createManagedBean(new Tx(e)),n=this.createOrientationWidget();t.addItem(n),this.axisGroup.addItem(t)}createOrientationWidget(){const e=[{value:"fixed",text:this.translate("fixed")},{value:"parallel",text:this.translate("parallel")},{value:"perpendicular",text:this.translate("perpendicular")}];return this.createSelect({labelKey:"orientation",options:e,property:"label.orientation"})}initRadiusAxis(){const e=Xs(this.options.chartController.getChartType());if(!gJt(e))return;const t=[this.createSlider({labelKey:"groupPadding",defaultMaxValue:1,property:"paddingInner"}),this.createSlider({labelKey:"seriesPadding",defaultMaxValue:1,property:"groupPaddingInner"})],n=this.createManagedBean(new Gy({cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,enabled:!0,suppressEnabledCheckbox:!0,title:this.translate("padding"),items:t})).hideEnabledCheckbox(!0).hideOpenCloseIcons(!0);this.axisGroup.addItem(n)}createSlider(e){const{labelKey:t,defaultMaxValue:n,step:r=.05,property:i}=e,o=this.options.chartAxisMenuParamsFactory.getDefaultSliderParams(i,t,n);return o.step=r,this.createManagedBean(new jp(o))}createSelect(e){const{labelKey:t,options:n,property:r}=e;return this.createManagedBean(new l1(this.options.chartAxisMenuParamsFactory.getDefaultSelectParams(r,t,n)))}translate(e){return this.chartTranslation.translate(e)}},etn=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuUtils.addEnableParams("background.visible",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("background"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuUtils.getDefaultColorPickerParams("background.fill");this.setTemplate(`<div>
            <ag-group-component data-ref="chartBackgroundGroup">
                <ag-color-picker data-ref="colorPicker"></ag-color-picker>
            </ag-group-component>
        <div>`,[Qs,$b],{chartBackgroundGroup:e,colorPicker:t})}},ttn=class extends Gt{constructor(e,t){super(),this.chartMenuUtils=e,this.chartController=t,this.paddingTopSlider=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("padding"),suppressEnabledCheckbox:!0},t=n=>this.chartMenuUtils.getDefaultSliderParams("padding."+n,n,200);this.setTemplate(`<div>
            <ag-group-component data-ref="chartPaddingGroup">
                <ag-slider data-ref="paddingTopSlider"></ag-slider>
                <ag-slider data-ref="paddingRightSlider"></ag-slider>
                <ag-slider data-ref="paddingBottomSlider"></ag-slider>
                <ag-slider data-ref="paddingLeftSlider"></ag-slider>
            </ag-group-component>
        <div>`,[Qs,yp],{chartPaddingGroup:e,paddingTopSlider:t("top"),paddingRightSlider:t("right"),paddingBottomSlider:t("bottom"),paddingLeftSlider:t("left")}),this.addManagedEventListeners({chartOptionsChanged:n=>{this.updateTopPadding(n.chartOptions)}})}updateTopPadding(e){const t=[...this.chartController.getChartSeriesTypes(),"common"].map(n=>e?.[n]?.padding?.top).find(n=>n!=null);t!=null&&this.paddingTopSlider.setValue(`${t}`)}},ntn=class extends Gt{constructor(e){super(),this.options=e,this.chartGroup=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{chartController:e,chartMenuParamsFactory:t,isExpandedOnInit:n,registerGroupComponent:r}=this.options,i={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("chartStyle"),expanded:n,suppressEnabledCheckbox:!0,items:[this.createManagedBean(new ttn(t,e)),this.createManagedBean(new etn(t))]};this.setTemplate(`<div>
            <ag-group-component data-ref="chartGroup"></ag-group-component>
        </div>`,[Qs],{chartGroup:i}),r(this.chartGroup)}},rtn=class extends dt{constructor(e){super(),this.groupContainer=e,this.id=0,this.groupComponents=new Map}addGroupComponent(e){const t=this.id++;this.groupComponents.set(t,e),e.isExpanded()&&(this.expandedGroupComponent=t),e.onExpandedChange(n=>{if(n){const r=this.expandedGroupComponent;if(this.expandedGroupComponent=t,r!=null){const i=e.getGui(),o=i.offsetTop-this.groupContainer.parentElement.scrollTop;this.groupComponents.get(r)?.toggleGroupExpand(!1,!0);let a=i.offsetTop-o;a<0&&(a=0),a!==this.groupContainer.parentElement.scrollTop&&(this.groupContainer.parentElement.scrollTop=a)}}else this.expandedGroupComponent=void 0})}destroy(){this.groupComponents.clear(),super.destroy()}},itn=class extends Gt{constructor(e,t){super(),this.options=e,this.chartMenuContext=t,this.legendGroup=at,this.enabledGroup=at,this.isGradient=["treemap","sunburst","heatmap"].includes(e.seriesType),this.key=this.isGradient?"gradientLegend":"legend",this.chartController=t.chartController}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{chartMenuParamsFactory:e,isExpandedOnInit:t,registerGroupComponent:n}=this.options,r=this.createManagedBean(new l1(e.getDefaultSelectParams(`${this.key}.position`,"position",["top","right","bottom","left"].map(a=>({value:a,text:this.chartTranslation.translate(a)})))));this.enabledGroup=this.createManagedBean(new Gy(e.addEnableParams(`${this.key}.enabled`,{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("legendEnabled"),suppressEnabledCheckbox:!0,useToggle:!0,items:[this.createLabelPanel(e),r,...this.getItems(e)]})));const i={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("legend"),suppressEnabledCheckbox:!0,expanded:t,items:[this.enabledGroup]};this.setTemplate(`<div>
            <ag-group-component data-ref="legendGroup">
            </ag-group-component>
        </div>`,[Qs],{legendGroup:i}),n(this.legendGroup);const o=this.updateLegendEnabledState.bind(this);this.addManagedListeners(this.chartController,{chartModelUpdate:o,chartApiUpdate:o})}updateLegendEnabledState(){const{valueCols:e}=this.chartController.getColStateForMenu();this.enabledGroup.setEnabled(e.filter(t=>t.selected).length>1)}getItems(e){const t=(n,r,i)=>this.createManagedBean(new jp(e.getDefaultSliderParams(`${this.key}.${n}`,r,i)));return this.isGradient?[this.createManagedBean(new v3(e.addValueParams("gradientLegend.reverseOrder",{label:this.chartTranslation.translate("reverseDirection"),labelWidth:"flex"}))),t("gradient.thickness","thickness",40),t("gradient.preferredLength","preferredLength",300),t("spacing","spacing",200)]:[t("spacing","spacing",200),t("item.marker.size","markerSize",40),t("item.marker.strokeWidth","markerStroke",10),t("item.marker.padding","itemSpacing",20),t("item.paddingX","layoutHorizontalSpacing",50),t("item.paddingY","layoutVerticalSpacing",50)]}createLabelPanel(e){const t=this.isGradient?"gradientLegend.scale.label":"legend.item.label",n={enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:e,keyMapper:r=>`${t}.${r}`,cssIdentifier:"charts-format-sub-level-no-header"};return this.createManagedBean(new Tx(n))}},otn=class extends Gt{constructor(e){super(),this.params=e,this.toggleableGroup=at,this.activeComps=[],this.chartOptions=e.chartMenuParamsFactory.getChartOptions()}postConstruct(){const{tag:e,cssIdentifier:t="charts-format-sub-level",title:n,suppressEnabledCheckbox:r}=this.params,i=this.params.chartMenuParamsFactory.addEnableParams(`${e}.enabled`,{cssIdentifier:t,direction:"vertical",suppressOpenCloseIcons:!0,title:n,suppressEnabledCheckbox:!0,useToggle:!r});this.setTemplate(`<div class="ag-toggleable-group-panel">
                <ag-group-component data-ref="toggleableGroup">
                </ag-group-component>
            </div>`,[Qs],{toggleableGroup:i}),this.toggleCss("ag-toggleable-group-panel-no-header",!n)}addItem(e,t){t?this.toggleableGroup.prependItem(e):this.toggleableGroup.addItem(e),this.activeComps.push(e)}setEnabled(e){this.toggleableGroup.setEnabled(e)}destroyActiveComps(){this.activeComps.forEach(e=>{Ps(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActiveComps(),super.destroy()}},atn=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("callout"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="calloutGroup">
                <ag-slider data-ref="calloutLengthSlider"></ag-slider>
                <ag-slider data-ref="calloutStrokeWidthSlider"></ag-slider>
                <ag-slider data-ref="labelOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,yp],{calloutGroup:e,calloutLengthSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLine.length","length",40),calloutStrokeWidthSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLine.strokeWidth","strokeWidth",10),labelOffsetSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLabel.offset","offset",30)})}},stn=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("cap"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0},t=this.chartMenuUtils.getDefaultSliderParams("cap.lengthRatio","capLengthRatio",1);t.step=.05,this.setTemplate(`<div>
            <ag-group-component data-ref="capsGroup">
                <ag-slider data-ref="capLengthRatioSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,yp],{capsGroup:e,capLengthRatioSlider:t})}},ltn=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("connectorLine"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="lineGroup">
                <ag-color-picker data-ref="lineColorPicker"></ag-color-picker>
                <ag-slider data-ref="lineStrokeWidthSlider"></ag-slider>
                <ag-slider data-ref="lineOpacitySlider"></ag-slider>
                <ag-slider data-ref="lineDashSlider"></ag-slider>                
            </ag-group-component>
        </div>`,[Qs,$b,yp],{lineGroup:e,lineColorPicker:this.chartMenuUtils.getDefaultColorPickerParams("line.stroke"),lineStrokeWidthSlider:this.getSliderParams("strokeWidth",10,"line.strokeWidth"),lineDashSlider:this.getSliderParams("lineDash",30,"line.lineDash",1,!0),lineOpacitySlider:this.getSliderParams("strokeOpacity",1,"line.strokeOpacity",.05)})}getSliderParams(e,t,n,r=1,i=!1){const o=this.chartMenuUtils.getDefaultSliderParams(n,e,t,i);return o.step=r,o}};function tot(e){return["square","circle","cross","diamond","plus","triangle","heart"].map(t=>({value:t,text:e.translate(t)}))}var ctn=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuUtils.addEnableParams("marker.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("markers"),suppressEnabledCheckbox:!0,useToggle:!0,suppressOpenCloseIcons:!0});this.setTemplate(`<div>
            <ag-group-component data-ref="seriesMarkersGroup">
                <ag-select data-ref="seriesMarkerShapeSelect"></ag-select>
                <ag-slider data-ref="seriesMarkerSizeSlider"></ag-slider>
                <ag-slider data-ref="seriesMarkerStrokeWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,C6,yp],{seriesMarkersGroup:e,seriesMarkerShapeSelect:this.chartMenuUtils.getDefaultSelectParams("marker.shape","shape",tot(this.chartTranslation)),seriesMarkerSizeSlider:this.chartMenuUtils.getDefaultSliderParams("marker.size","size",60),seriesMarkerStrokeWidthSlider:this.chartMenuUtils.getDefaultSliderParams("marker.strokeWidth","strokeWidth",10)})}},utn=class extends Gt{constructor(e){super(),this.chartMenuUtils=e,this.seriesItemsGroup=at,this.activePanels=[]}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("seriesItems"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="seriesItemsGroup">
                <ag-select data-ref="seriesItemSelect"></ag-select>
            </ag-group-component>
        </div>`,[Qs,C6],{seriesItemsGroup:e,seriesItemSelect:this.getSeriesItemsParams()}),this.initSeriesControls()}getSeriesItemsParams(){const e=[{value:"positive",text:this.chartTranslation.translate("seriesItemPositive")},{value:"negative",text:this.chartTranslation.translate("seriesItemNegative")}],t=n=>{this.destroyActivePanels(),this.initSeriesControls(n)};return this.chartMenuUtils.getDefaultSelectParamsWithoutValueParams("seriesItemType",e,"positive",t)}initSeriesControls(e="positive"){this.initSlider("strokeWidth",10,`item.${e}.strokeWidth`),this.initSlider("lineDash",30,`item.${e}.lineDash`,1,!0),this.initSlider("strokeOpacity",1,`item.${e}.strokeOpacity`,.05,!1),this.initSlider("fillOpacity",1,`item.${e}.fillOpacity`,.05,!1),this.initItemLabels(e)}initSlider(e,t,n,r=1,i=!1){const o=this.chartMenuUtils.getDefaultSliderParams(n,e,t,i);o.step=r;const a=this.seriesItemsGroup.createManagedBean(new jp(o));this.seriesItemsGroup.addItem(a),this.activePanels.push(a)}initItemLabels(e){const t=this.chartMenuUtils.getDefaultFontPanelParams(`item.${e}.label`,"seriesItemLabels"),n=this.createBean(new Tx(t));this.seriesItemsGroup.addItem(n),this.activePanels.push(n)}destroyActivePanels(){this.activePanels.forEach(e=>{Ps(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActivePanels(),super.destroy()}},dtn=class extends Gt{constructor(e,t="shadow"){super(),this.chartMenuUtils=e,this.propertyKey=t}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.propertyKey,t=this.chartMenuUtils.addEnableParams(`${e}.enabled`,{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("shadow"),suppressEnabledCheckbox:!0,useToggle:!0}),n=this.chartMenuUtils.getDefaultColorPickerParams(`${e}.color`);this.setTemplate(`<div>
            <ag-group-component data-ref="shadowGroup">
                <ag-color-picker data-ref="shadowColorPicker"></ag-color-picker>
                <ag-slider data-ref="shadowBlurSlider"></ag-slider>
                <ag-slider data-ref="shadowXOffsetSlider"></ag-slider>
                <ag-slider data-ref="shadowYOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,$b,yp],{shadowGroup:t,shadowColorPicker:n,shadowBlurSlider:this.getSliderParams("blur",0,20),shadowXOffsetSlider:this.getSliderParams("xOffset",-10,10),shadowYOffsetSlider:this.getSliderParams("yOffset",-10,10)})}getSliderParams(e,t,n){const r=`${this.propertyKey}.${e}`,i=this.chartMenuUtils.getDefaultSliderParams(r,e,n);return i.minValue=t,i}},ptn=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="groupSpacing">
                <ag-slider data-ref="groupPaddingSlider"></ag-slider>
                <ag-slider data-ref="groupSpacingSlider"></ag-slider>
            </ag-group-component>
            <ag-group-component data-ref="tileSpacing">
                <ag-slider data-ref="tilePaddingSlider"></ag-slider>
                <ag-slider data-ref="tileSpacingSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,yp],{groupSpacing:{...e,title:this.chartTranslation.translate("group")},tileSpacing:{...e,title:this.chartTranslation.translate("tile")},groupPaddingSlider:this.getSliderParams("padding","group.padding"),groupSpacingSlider:this.getSliderParams("spacing","group.gap"),tilePaddingSlider:this.getSliderParams("padding","tile.padding"),tileSpacingSlider:this.getSliderParams("spacing","tile.gap")})}getSliderParams(e,t){return this.chartMenuUtils.getDefaultSliderParams(t,e,10)}},htn=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("whisker"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="whiskersGroup">
                <ag-color-picker data-ref="whiskerColorPicker"></ag-color-picker>
                <ag-slider data-ref="whiskerThicknessSlider"></ag-slider>
                <ag-slider data-ref="whiskerOpacitySlider"></ag-slider>
                <ag-slider data-ref="whiskerLineDashSlider"></ag-slider>
                <ag-slider data-ref="whiskerLineDashOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Qs,$b,yp],{whiskersGroup:e,whiskerColorPicker:this.chartMenuUtils.getDefaultColorPickerParams("whisker.stroke"),whiskerThicknessSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.strokeWidth","strokeWidth",10),whiskerOpacitySlider:this.chartMenuUtils.getDefaultSliderParams("whisker.strokeOpacity","strokeOpacity",1),whiskerLineDashSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.lineDash","lineDash",30,!0),whiskerLineDashOffsetSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.lineDashOffset","lineDashOffset",30)})}},pl="tooltips",ud="strokeWidth",o4="lineWidth",Hd="lineDash",uu="lineOpacity",Vd="fillOpacity",jc="labels",F2="shadow",a8="stageLabels",a4="markers",ftn=class extends Gt{constructor(e){super(),this.options=e,this.seriesGroup=at,this.activePanels=[],this.widgetFuncs={lineWidth:()=>this.initStrokeWidth(o4),[ud]:()=>this.initStrokeWidth("strokeWidth"),lineColor:()=>this.initLineColor(),[Hd]:()=>this.initLineDash(),[uu]:()=>this.initOpacity("strokeOpacity"),[Vd]:()=>this.initOpacity("fillOpacity"),markers:()=>new ctn(this.chartMenuUtils),[jc]:()=>this.initLabels(),sectorLabels:()=>this.initSectorLabels(),[F2]:()=>new dtn(this.chartMenuUtils),[pl]:()=>this.initTooltips(),bins:()=>this.initBins(),whiskers:()=>new htn(this.chartMenuUtils),caps:()=>new stn(this.chartMenuUtils),connectorLine:()=>new ltn(this.chartMenuUtils),seriesItems:()=>new utn(this.chartMenuUtils),tileSpacing:()=>new ptn(this.chartMenuUtils),shape:()=>this.initShape(),size:()=>this.initSize("size","size"),minSize:()=>this.initSize("size","minSize"),maxSize:()=>this.initSize("maxSize","maxSize"),dropoff:()=>this.initDropOff(),stageLabels:()=>this.initStageLabels()},this.seriesWidgetMappings={bar:[pl,ud,Hd,uu,Vd,jc,F2],pie:[pl,ud,uu,Vd,jc,"sectorLabels",F2],donut:[pl,ud,uu,Vd,jc,"sectorLabels",F2],line:[pl,o4,Hd,uu,a4,jc],scatter:[pl,"shape","size",ud,jc],bubble:[pl,"shape","minSize","maxSize",ud,jc],area:[pl,o4,Hd,uu,Vd,a4,jc,F2],histogram:[pl,"bins",ud,Hd,uu,Vd,jc,F2],"radial-column":[pl,ud,Hd,uu,Vd,jc],"radial-bar":[pl,ud,Hd,uu,Vd,jc],"radar-line":[pl,ud,Hd,uu,a4,jc],"radar-area":[pl,ud,Hd,uu,Vd,a4,jc],nightingale:[pl,ud,Hd,uu,Vd,jc],"box-plot":[pl,ud,Hd,uu,Vd,"whiskers","caps"],"range-bar":[pl,ud,Hd,uu,Vd,jc],"range-area":[pl,o4,Hd,uu,Vd,a4,jc,F2],treemap:[pl,"tileSpacing"],sunburst:[pl],heatmap:[pl,jc,"lineColor",o4,uu],waterfall:[pl,"connectorLine","seriesItems"],funnel:[pl,ud,Hd,uu,Vd,jc,"dropoff",a8,F2],"cone-funnel":[pl,ud,Hd,uu,Vd,jc,a8],pyramid:[pl,ud,Hd,uu,Vd,jc,a8,F2]},this.seriesType=e.seriesType}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{isExpandedOnInit:e,chartOptionsService:t,chartController:n,registerGroupComponent:r}=this.options,i={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate("series"),expanded:e,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="seriesGroup">
            </ag-group-component>
        </div>`,[Qs],{seriesGroup:i}),r(this.seriesGroup),this.chartMenuUtils=this.createManagedBean(new Oz(t.getSeriesOptionsProxy(()=>this.seriesType))),this.addManagedListeners(n,{chartSeriesChartTypeChanged:this.refreshWidgets.bind(this)}),this.refreshWidgets()}refreshWidgets(){const{chartController:e}=this.options;this.destroyActivePanels(),e.getChartProxy().getChart().waitForUpdate().then(()=>{this.isAlive()&&(e.isComboChart()&&(this.updateSeriesType(),this.initSeriesSelect()),(this.seriesWidgetMappings[this.seriesType]??[]).forEach(r=>{const i=this.widgetFuncs[r]();let o;if(Array.isArray(i)){const a=this.createBean(i[0]);o=a,i[1](a)}else o=this.createBean(i);this.seriesGroup.addItem(o),this.activePanels.push(o)}))}).catch(n=>pi(105,{e:n}))}initSeriesSelect(){const e=this.createBean(new l1(this.chartMenuUtils.getDefaultSelectParamsWithoutValueParams("seriesType",this.getSeriesSelectOptions(),`${this.seriesType}`,t=>{this.seriesType=t,this.refreshWidgets()})));this.seriesGroup.addItem(e),this.activePanels.push(e)}initTooltips(){return new b3(this.chartMenuUtils.addValueParams("tooltip.enabled",{label:this.translate("tooltips"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex"}))}initLineColor(){return new Uit(this.chartMenuUtils.getDefaultColorPickerParams("stroke","strokeColor"))}initStrokeWidth(e,t){return new jp(this.chartMenuUtils.getDefaultSliderParams(t?`${t}.${e}`:"strokeWidth",e,10))}initLineDash(e){return new jp(this.chartMenuUtils.getDefaultSliderParams(e?`${e}.lineDash`:"lineDash","lineDash",30,!0))}initOpacity(e,t){const n=this.chartMenuUtils.getDefaultSliderParams(t?`${t}.${e}`:e,e,1);return n.step=.05,new jp(n)}initDropOff(){return[new otn({tag:"dropOff",cssIdentifier:"charts-format-sub-level",title:this.translate("dropOff"),suppressEnabledCheckbox:!1,chartMenuParamsFactory:this.chartMenuUtils}),n=>{[this.initStrokeWidth("strokeWidth","dropOff"),this.initLineDash("dropOff"),this.initOpacity("strokeOpacity","dropOff"),this.initOpacity("fillOpacity","dropOff")].forEach(r=>{const i=n.createManagedBean(r);n.addItem(i),this.activePanels.push(i)})}]}initLabels(){const e=qit(this.seriesType),t=e?"calloutLabel":"label",n=e?"calloutLabels":"labels",r=this.chartMenuUtils.getDefaultFontPanelParams(t,n);return[new Tx(r),a=>{if(e){const s=a.createManagedBean(new atn(this.chartMenuUtils));a.addItem(s),this.activePanels.push(s)}if(this.seriesType==="range-bar"){const s=[{value:"inside",text:this.translate("inside")},{value:"outside",text:this.translate("outside")}],l=a.createManagedBean(new l1(this.chartMenuUtils.getDefaultSelectParams("label.placement","labelPlacement",s)));a.addItem(l),this.activePanels.push(l);const c=a.createManagedBean(new jp(this.chartMenuUtils.getDefaultSliderParams("label.padding","padding",200)));a.addItem(c),this.activePanels.push(c)}}]}initSectorLabels(){const e=this.chartMenuUtils.getDefaultFontPanelParams("sectorLabel","sectorLabels");return[new Tx(e),r=>{const i=this.chartMenuUtils.getDefaultSliderParams("sectorLabel.positionRatio","positionRatio",1);i.step=.05;const o=r.createManagedBean(new jp(i));r.addItem(o)}]}initStageLabels(){return new Tx(this.chartMenuUtils.getDefaultFontPanelParams("stageLabel",a8))}initBins(){const e=this.chartMenuUtils.getDefaultSliderParams("binCount","histogramBinCount",20),t=this.chartMenuUtils.getChartOptions(),n=(t.getValue("bins")??t.getValue("calculatedBins",!0)).length;return e.value=`${n}`,e.maxValue=Math.max(n,20),new jp(e)}initShape(){return new l1(this.chartMenuUtils.getDefaultSelectParams("shape","shape",tot(this.chartTranslation)))}initSize(e,t){return new jp(this.chartMenuUtils.getDefaultSliderParams(e,t,60))}getSeriesSelectOptions(){const e=this.getActiveSeriesTypes();return["area","bar","line"].filter(t=>e.includes(t)).map(t=>({value:t,text:this.translate(t)}))}updateSeriesType(){const e=this.getActiveSeriesTypes();!e.includes(this.seriesType)&&e.length>0&&(this.seriesType=e[0])}getActiveSeriesTypes(){return this.options.chartController.getActiveSeriesChartTypes().map(e=>Xs(e.chartType))}translate(e){return this.chartTranslation.translate(e)}destroyActivePanels(){this.activePanels.forEach(e=>{Ps(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActivePanels(),super.destroy()}},Y5=class extends Gt{constructor(e,t,n){super("<div></div>"),this.chartMenuUtils=e,this.name=t,this.key=n,this.chartOptions=e.getChartOptions()}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){this.initFontPanel()}hasTitle(){const e=this.chartOptions.getValue(this.key);return e&&e.enabled&&e.text&&e.text.length>0}initFontPanel(){const e=this.hasTitle(),t={name:this.chartTranslation.translate(this.name),enabled:e,suppressEnabledCheckbox:!1,chartMenuParamsFactory:this.chartMenuUtils,keyMapper:n=>`${this.key}.${n}`,onEnableChange:n=>this.onEnableChange(n)};this.fontPanel=this.createManagedBean(new Tx(t)),this.fontPanel.addItem(this.createBean(new Im(this.getTextInputParams())),!0),this.fontPanel.addItem(this.createBean(new jp(this.getSpacingSliderParams()))),this.getGui().appendChild(this.fontPanel.getGui())}getTextInputParams(){return this.chartMenuUtils.addValueParams(`${this.key}.text`,{label:this.chartTranslation.translate("title"),labelAlignment:"top"})}getSpacingSliderParams(){return this.chartMenuUtils.getDefaultSliderParams(`${this.key}.spacing`,"spacing",100)}onEnableChange(e){this.chartOptions.setValue(`${this.key}.enabled`,e)}},gtn=class extends Y5{wireBeans(e){super.wireBeans(e),this.chartMenuSvc=e.chartMenuSvc}postConstruct(){this.titlePlaceholder=this.chartTranslation.translate("titlePlaceholder"),super.postConstruct(),this.addManagedEventListeners({chartTitleEdit:()=>{this.fontPanel.setEnabled(this.hasTitle())}})}getTextInputParams(){const e=super.getTextInputParams();return this.shouldOverrideTextWithPlaceholder(e.value)&&(e.value=this.titlePlaceholder),e}getSpacingSliderParams(){const e=super.getSpacingSliderParams();return e.value="10",e}onEnableChange(e){if(this.chartMenuSvc.doesChartToolbarExist()){const n=this.chartOptions.getValue("padding.top");this.chartOptions.setValue("padding.top",e?n-20:n+20)}this.chartOptions.setValue(`${this.key}.enabled`,e);const t=this.chartOptions.getValue(`${this.key}.text`);e&&this.shouldOverrideTextWithPlaceholder(t)&&this.chartOptions.setValue(`${this.key}.text`,this.titlePlaceholder)}shouldOverrideTextWithPlaceholder(e){return e==="Title"||e?.trim().length===0}},mtn=class extends Gt{constructor(e){super(),this.options=e,this.titleGroup=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{chartMenuParamsFactory:e,chartAxisMenuParamsFactory:t,chartOptionsService:n,seriesType:r,isExpandedOnInit:i=!1,registerGroupComponent:o}=this.options,a=[];if(ox(r)&&r!=="pyramid"){const l=c=>this.createManagedBean(new Oz(n.getCartesianAxisThemeOverridesProxy(c)));a.push(this.createManagedBean(new Y5(l("xAxis"),"horizontalAxisTitle","title"))),a.push(this.createManagedBean(new Y5(l("yAxis"),"verticalAxisTitle","title")))}else Whe(r)&&a.push(this.createManagedBean(new Y5(t,"polarAxisTitle","title")));const s={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("chartTitles"),expanded:i,suppressEnabledCheckbox:!0,items:[this.createManagedBean(new gtn(e,"chartTitle","title")),this.createManagedBean(new Y5(e,"chartSubtitle","subtitle")),...a]};this.setTemplate(`<div>
            <ag-group-component data-ref="titleGroup"></ag-group-component>
        </div>`,[Qs],{titleGroup:s}),o(this.titleGroup)}},vtn={groups:[{type:"chart"},{type:"titles"},{type:"legend"},{type:"series"},{type:"axis"}]},eIe=["axis","horizontalAxis","verticalAxis"],btn=class extends Gt{constructor(e){super('<div class="ag-chart-format-wrapper"></div>'),this.chartMenuContext=e}postConstruct(){this.groupExpansionFeature=this.createManagedBean(new rtn(this.getGui())),this.chartPanelFeature=this.createManagedBean(new $it(this.chartMenuContext.chartController,this.getGui(),"ag-chart-format-section",(e,t)=>this.createPanels(t))),this.chartPanelFeature.refreshPanels()}createPanels(e){let t=!1;this.getFormatPanelDef().groups?.forEach(({type:n,isOpen:r=!1})=>{if(!this.isGroupPanelShownInSeries(n,e))return;r&&(t&&ut(145,{group:n}),t=!0);const i=a=>this.groupExpansionFeature.addGroupComponent(a),o={...this.chartMenuContext,isExpandedOnInit:r,seriesType:e,registerGroupComponent:i};switch(n){case"chart":this.chartPanelFeature.addComponent(new ntn(o));break;case"titles":this.chartPanelFeature.addComponent(new mtn(o));break;case"legend":this.chartPanelFeature.addComponent(new itn(o,this.chartMenuContext));break;case"axis":Whe(e)?this.chartPanelFeature.addComponent(new Jen(o)):ox(e)&&(this.chartPanelFeature.addComponent(new o8("xAxis",o)),this.chartPanelFeature.addComponent(new o8("yAxis",o)));break;case"horizontalAxis":this.chartPanelFeature.addComponent(new o8("xAxis",o));break;case"verticalAxis":this.chartPanelFeature.addComponent(new o8("yAxis",o));break;case"series":this.chartPanelFeature.addComponent(new ftn(o));break;default:ut(147,{group:n})}})}getFormatPanelDef(){const e=this.gos.get("chartToolPanelsDef")?.formatPanel;return e||vtn}isGroupPanelShownInSeries(e,t){const n=["chart","titles","legend","series"].includes(e)||ox(t)&&eIe.includes(e)||Whe(t)&&e==="axis",r=Fhe(t)&&e==="legend"||Fhe(t)&&eIe.includes(e);return n&&!r}},ytn="ag-chart-mini-thumbnail-canvas",M3=class extends Gt{constructor(e,t,n){super(),this.agChartsExports=t,this.tooltipName=n,this.size=58,this.padding=5;const{_Scene:r}=t;this.root=new r.Group;const i=new r.Scene({width:this.size,height:this.size});i.canvas.element.classList.add(ytn),i.setRoot(this.root),i.setContainer(e),this.scene=i}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){this.scene.canvas.element.title=this.chartTranslation.translate(this.tooltipName);try{this.scene.render()}catch(e){pi(108,{e})}}};function z6(e){const{stacked:t,size:n,padding:r,xScalePadding:i,xScaleDomain:o,yScaleDomain:a,agChartsExports:{_Scene:s}}=e,l=new s.CategoryScale;l.domain=o,l.range=[r,n-r],l.paddingInner=i,l.paddingOuter=i;const c=new s.LinearScale;c.domain=a,c.range=[n-r,r];const u=(d,p,h)=>d.map((g,m)=>{const b=h.convert(g),y=new s.Rect;return y.x=p.convert(m),y.y=b,y.width=p.bandwidth,y.height=h.convert(0)-b,y.strokeWidth=0,y.crisp=!0,y});return t?e.data.map(d=>u(d,l,c)):u(e.data,l,c)}function Mtn(e,t,n,r){const i=[],o=[];t.forEach(l=>{l.forEach(([c,u])=>{i.push(c),o.push(u)})});const a=new e.LinearScale;a.domain=[Math.min(...i),Math.max(...i)],a.range=[r,n-r];const s=new e.LinearScale;return s.domain=[Math.min(...o),Math.max(...o)],s.range=[n-r,r],{xScale:a,yScale:s}}function not(e,t,n,r){const i=[0,t[0].length-1],o=t.reduce((l,c)=>(c.forEach(u=>{u<l[0]&&(l[0]=u),u>l[1]&&(l[1]=u)}),l),[1/0,-1/0]);o[0]--,o[o.length-1]++;const a=new e.LinearScale;a.domain=i,a.range=[r,n-r];const s=new e.LinearScale;return s.domain=o,s.range=[n-r,r],{xScale:a,yScale:s}}function rot(e,t,n){return e.map(r=>r.map((i,o)=>[o>0?"lineTo":"moveTo",t.convert(o),n.convert(i)]))}function Ctn(e,t,n){return e.map(([r,i],o)=>[o>0?"lineTo":"moveTo",t.convert(r),n.convert(i)])}function xtn(e){const t=e[0],n=e[1],r=zr(e);return(n[1]!==r[1]||n[2]!==r[2])&&e.push([t[0],n[1],n[2]]),e}function iot(e,t){const n=new e.Path;return t.forEach(([r,i,o])=>n.path[r](i,o)),n}function wtn(e,t,n){return e.map((r,i,o)=>{const s=[...n?Stn(o,i,t):oot(r,t)].reverse().map(([u,d,p])=>["lineTo",d,p]),l=r[0],c=zr(s);return(l[1]!==c[1]||l[2]!==c[2])&&s.push(["lineTo",l[1],l[2]]),[...r,...s]})}function Stn(e,t,n){return t===0?oot(e[t],n):[...e[t-1]]}function oot(e,t){return e.map(([n,r])=>[n,r,t.convert(0)])}function aot(e,t){const n=iot(e,t);return n.fill=void 0,n.lineCap="round",n.strokeWidth=3,n}function Atn({_Scene:e},t,n,r,i){const{xScale:o,yScale:a}=Mtn(e,n,r,i),u=n.map(p=>Ctn(p,o,a)).map(p=>xtn(p)).map(p=>aot(e,p)).reduce((p,h)=>p.concat(h),[]),d=new e.Group;return d.setClipRect(new e.BBox(i,i,r-i*2,r-i*2)),d.append(u),t.append(d),u}function dMe({_Scene:e},t,n,r,i){const{xScale:o,yScale:a}=not(e,n,r,i),l=rot(n,o,a).map(u=>aot(e,u)),c=new e.Group;return c.setClipRect(new e.BBox(i,i,r-i*2,r-i*2)),c.append(l),t.append(c),l}function Otn(e,t,n,r,i,o=!1){const{xScale:a,yScale:s}=not(e,n,r,i),l=wtn(rot(n,a,s),s,o),c=new e.Group;c.setClipRect(new e.BBox(i,i,r-i*2,r-i*2));const u=l.map(d=>iot(e,d));return c.append(u),t.append(c),u}function sot(e){return e.map((t,n,r)=>t.map((i,o)=>r.slice(0,n+1).reduce((a,s)=>a+s[o],0)))}function lot(e){const t=e.map((n,r)=>e.reduce((i,o)=>Math.max(i,o[r]),0));return e.map(n=>n.map((r,i)=>r/t[i]*19))}function cot(e,t,n,r,i,o,a=0){const{_Scene:s}=e,l=new s.LinearScale;l.domain=[0,7],l.range=[-Math.PI,Math.PI].map(g=>g+Math.PI/2);const c=new s.LinearScale;c.domain=[0,10],c.range=[i,o];const u=[],d=r/2,p=n.map(g=>{const m=new s.Path;return m.strokeWidth=1,m.strokeOpacity=.5,m.lineCap="round",m.fill=void 0,m.fillOpacity=.8,g.forEach((b,y)=>{const M=l.convert(y),C=i+o-c.convert(b),x=C*Math.cos(M)+d,w=C*Math.sin(M)+d;if(m.path[y>0?"lineTo":"moveTo"](x,w),a>0){const S=new s.Marker({shape:"circle"});S.x=x,S.y=w,S.size=a,u.push(S)}}),m.path.closePath(),m}),h=new s.Group;return h.append([...p,...u]),t.append(h),{paths:p,markers:u}}function YK(e){let[t,n]=[1/0,-1/0];return{processedData:e.reduce((i,o,a)=>{const s=a>0?i[a-1]:void 0;i[a]??(i[a]=[]);const l=i[a];return o.forEach((c,u)=>{s&&(c+=s[u]),l[u]=c,l[u]<t&&(t=l[u]),l[u]>n&&(n=l[u])}),i},[]),min:t,max:n}}var ztn=[[[13,16],[13,12],[3,12],[3,16]],[[12,11],[12,7],[4,7],[4,11]],[[10.125,6],[10.125,1.5],[5.875,1.5],[5.875,6]]],pMe=class extends M3{constructor(e,t,n,r,i,o="funnelTooltip",a=ztn){super(e,t,o),this.shapes=Atn(t,this.root,a,this.size,this.padding),this.updateColors(n,r)}updateColors(e,t){this.shapes.forEach(n=>{n.fill=e[0],n.stroke=t[0],n.strokeWidth=0})}},Ttn={chartType:"funnel",miniChart:pMe},Etn=[[[13,16],[10.75,11.5],[5.25,11.5],[3,16]],[[10.75,11.5],[8.875,6],[7.125,6],[5.25,11.5]],[[8.875,6],[8.875,1.5],[7.125,1.5],[7.125,6]]],Rtn=class extends pMe{constructor(e,t,n,r,i,o="coneFunnelTooltip"){super(e,t,n,r,i,o,Etn)}updateColors(e,t){this.shapes.forEach((n,r)=>{n.fill=e[0],n.fillOpacity=1-r*.2,n.stroke=t[0],n.strokeWidth=0})}},Itn={chartType:"coneFunnel",miniChart:Rtn},Ptn=[[[8,16],[10,12],[6,12]],[[10.5,11],[12.5,7],[3.5,7],[5.5,11]],[[13,6],[15.5,1.5],[.5,1.5],[3,6]]],Dtn=class extends pMe{constructor(e,t,n,r,i,o="pyramidTooltip"){super(e,t,n,r,i,o,Ptn)}updateColors(e,t){this.shapes.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r],n.strokeWidth=0})}},ktn={chartType:"pyramid",miniChart:Dtn},v1=class extends M3{constructor(e,t,n){super(e,t,n),this.stroke="gray",this.axisOvershoot=3}postConstruct(){const{_Scene:e}=this.agChartsExports,t=this.size,n=this.padding,r=new e.Line;r.x1=n,r.y1=n,r.x2=n,r.y2=t-n+this.axisOvershoot,r.stroke=this.stroke;const i=new e.Line;i.x1=n-this.axisOvershoot+1,i.y1=t-n,i.x2=t-n+1,i.y2=t-n,i.stroke=this.stroke;const o=this.root;o.append(r),o.append(i),super.postConstruct()}},Ltn=class extends v1{constructor(e,t,n,r){super(e,t,"groupedColumnTooltip"),this.columnData=[2,3,4];const{root:i,columnData:o,size:a,padding:s}=this;this.columns=z6({stacked:!1,data:o,size:a,padding:s,xScaleDomain:[0,1,2],yScaleDomain:[0,4],xScalePadding:.3,agChartsExports:t}),i.append(this.columns),this.updateColors(n,r)}updateColors(e,t){this.columns.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}},_tn={chartType:"groupedColumn",miniChart:Ltn},Ntn=[[8,12,16],[6,9,12],[2,3,4]],uot=class extends v1{constructor(e,t,n,r,i,o=Ntn,a=[0,16],s="stackedColumnTooltip"){super(e,t,s);const{root:l,size:c,padding:u}=this;this.stackedColumns=z6({stacked:!0,data:o,size:c,padding:u,xScaleDomain:[0,1,2],yScaleDomain:a,xScalePadding:.3,agChartsExports:t}),l.append(Wet(this.stackedColumns)),this.updateColors(n,r)}updateColors(e,t){this.stackedColumns.forEach((n,r)=>n.forEach(i=>{i.fill=e[r],i.stroke=t[r]}))}},Ftn={chartType:"stackedColumn",miniChart:uot},Wtn=[[10,10,10],[6,7,8],[2,4,6]],qtn=class extends uot{constructor(e,t,n,r,i){super(e,t,n,r,i,Wtn,[0,10],"normalizedColumnTooltip")}},Btn={chartType:"normalizedColumn",miniChart:qtn},jtn=class extends v1{constructor(e,t,n,r){super(e,t,"groupedBarTooltip");const{_Scene:i}=t,o=this.padding,a=this.size,s=[2,3,4],l=new i.CategoryScale;l.domain=[0,1,2],l.range=[o,a-o],l.paddingInner=.3,l.paddingOuter=.3;const c=new i.LinearScale;c.domain=[0,4],c.range=[a-o,o];const u=c.convert(0),d=l.bandwidth;this.bars=s.map((p,h)=>{const g=new i.Rect;return g.x=o,g.y=l.convert(h),g.width=u-c.convert(p),g.height=d,g.strokeWidth=0,g.crisp=!0,g}),this.updateColors(n,r),this.root.append(this.bars)}updateColors(e,t){this.bars.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}},Htn={chartType:"groupedBar",miniChart:jtn},Vtn=[[8,12,16],[6,9,12],[2,3,4]],dot=class extends v1{constructor(e,t,n,r,i,o=Vtn,a=[0,16],s="stackedBarTooltip"){super(e,t,s);const{_Scene:l}=t,c=this.size,u=this.padding,d=new l.CategoryScale;d.domain=[0,1,2],d.range=[u,c-u],d.paddingInner=.3,d.paddingOuter=.3;const p=new l.LinearScale;p.domain=a,p.range=[c-u,u];const h=p.convert(0),g=d.bandwidth;this.bars=o.map(m=>m.map((b,y)=>{const M=new l.Rect;return M.x=u,M.y=d.convert(y),M.width=h-p.convert(b),M.height=g,M.strokeWidth=0,M.crisp=!0,M})),this.updateColors(n,r),this.root.append(Wet(this.bars))}updateColors(e,t){this.bars.forEach((n,r)=>n.forEach(i=>{i.fill=e[r],i.stroke=t[r]}))}},Gtn={chartType:"stackedBar",miniChart:dot},$tn=[[10,10,10],[6,7,8],[2,4,6]],Utn=class extends dot{constructor(e,t,n,r,i){super(e,t,n,r,i,$tn,[0,10],"normalizedBarTooltip")}},Xtn={chartType:"normalizedBar",miniChart:Utn},pot=class extends M3{constructor(e,t,n,r,i,o=.6,a="donutTooltip"){super(e,t,a);const{size:s,padding:l,agChartsExports:{_Scene:c}}=this,u=(s-l*2)/2,d=u+l,p=c.toRadians,h=[[p(-90),p(30)],[p(30),p(120)],[p(120),p(180)],[p(180),p(210)],[p(210),p(240)],[p(240),p(270)]];this.sectors=h.map(([g,m])=>{const b=new c.Sector;return b.centerX=d,b.centerY=d,b.innerRadius=u*o,b.outerRadius=u,b.startAngle=g,b.endAngle=m,b.stroke=void 0,b.strokeWidth=0,b.inset=.75,b}),this.updateColors(n,r),this.root.append(this.sectors)}updateColors(e,t){this.sectors.forEach((n,r)=>{n.fill=e[r%e.length],n.stroke=t[r%t.length]})}},tIe={chartType:"donut",miniChart:pot},Ytn=class extends pot{constructor(e,t,n,r,i){super(e,t,n,r,i,0,"pieTooltip")}},Ktn={chartType:"pie",miniChart:Ytn},hMe=[[1,3,5],[2,6,4],[5,3,1]],fMe=class extends v1{constructor(e,t,n,r,i,o=hMe,a="lineTooltip"){super(e,t,a);const{size:s,padding:l,root:c}=this;this.lines=dMe(t,c,o,s,l),this.updateColors(n,r)}updateColors(e,t){this.lines.forEach((n,r)=>{n.stroke=e[r]})}},Qtn={chartType:"line",miniChart:fMe},hot=sot(hMe),Ztn=class extends fMe{constructor(e,t,n,r,i,o=hot,a="stackedLineTooltip"){super(e,t,n,r,i,o,a)}},Jtn={chartType:"stackedLine",miniChart:Ztn},enn=lot(hot),tnn=class extends fMe{constructor(e,t,n,r,i,o=enn,a="normalizedLineTooltip"){super(e,t,n,r,i,o,a)}},nnn={chartType:"normalizedLine",miniChart:tnn},rnn=class extends v1{constructor(e,t,n,r){super(e,t,"scatterTooltip");const{size:i,padding:o,agChartsExports:{_Scene:a}}=this,s=[[[.3,3],[1.1,.9],[2,.4],[3.4,2.4]],[[0,.3],[1,2],[2.4,1.4],[3,0]]],l=new a.LinearScale;l.domain=[-.5,4],l.range=[o*2,i-o];const c=new a.LinearScale;c.domain=[-.5,3.5],c.range=[i-o,o];const u=[];s.forEach(p=>{p.forEach(([h,g])=>{const m=new a.Arc;m.strokeWidth=0,m.centerX=l.convert(h),m.centerY=c.convert(g),m.radius=2.5,u.push(m)})}),this.points=u,this.updateColors(n,r);const d=new a.Group;d.setClipRect(new a.BBox(o,o,i-o*2,i-o*2)),d.append(this.points),this.root.append(d)}updateColors(e,t){this.points.forEach((n,r)=>{n.stroke=t[r%t.length],n.fill=e[r%e.length]})}},inn={chartType:"scatter",miniChart:rnn},onn=class extends v1{constructor(e,t,n,r){super(e,t,"bubbleTooltip");const{size:i,padding:o,agChartsExports:{_Scene:a}}=this,s=[[[.1,.3,5],[.5,.4,7],[.2,.8,7]],[[.8,.7,5],[.7,.3,9]]],l=new a.LinearScale;l.domain=[0,1],l.range=[o*2,i-o];const c=new a.LinearScale;c.domain=[0,1],c.range=[i-o,o];const u=[];s.forEach(p=>{p.forEach(([h,g,m])=>{const b=new a.Arc;b.strokeWidth=0,b.centerX=l.convert(h),b.centerY=c.convert(g),b.radius=m,b.fillOpacity=.7,u.push(b)})}),this.points=u,this.updateColors(n,r);const d=new a.Group;d.setClipRect(new a.BBox(o,o,i-o*2,i-o*2)),d.append(this.points),this.root.append(d)}updateColors(e,t){this.points.forEach((n,r)=>{n.stroke=t[r%t.length],n.fill=e[r%e.length]})}},ann={chartType:"bubble",miniChart:onn},fot=hMe,got=class extends v1{constructor(e,t,n,r,i,o=fot,a="groupedAreaTooltip",s=!1){super(e,t,a),this.areas=Otn(t._Scene,this.root,o,this.size,this.padding,s),this.updateColors(n,r)}updateColors(e,t){this.areas.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r],n.strokeWidth=1,n.strokeOpacity=.75,n.fillOpacity=.7})}},snn={chartType:"area",miniChart:got},mot=sot(fot),vot=class extends got{constructor(e,t,n,r,i,o=mot,a="stackedAreaTooltip"){super(e,t,n,r,i,o,a,!0)}updateColors(e,t){this.areas.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}},lnn={chartType:"stackedArea",miniChart:vot},cnn=lot(mot),unn=class extends vot{constructor(e,t,n,r,i,o=cnn,a="normalizedAreaTooltip"){super(e,t,n,r,i,o,a)}},dnn={chartType:"normalizedArea",miniChart:unn},pnn=class extends v1{constructor(e,t,n,r){super(e,t,"histogramTooltip");const{padding:i,size:o,agChartsExports:{_Scene:a}}=this,s=[2,5,11,13,10,6,1],l=new a.LinearScale;l.domain=[0,s.length],l.range=[i,o-i];const c=new a.LinearScale;c.domain=[0,s.reduce((d,p)=>Math.max(d,p),0)],c.range=[o-i,i];const u=c.convert(0);this.bars=s.map((d,p)=>{const h=c.convert(d),g=l.convert(p),m=l.convert(p+1),b=new a.Rect;return b.x=g,b.y=h,b.width=m-g,b.height=u-h,b.strokeWidth=1,b.strokeOpacity=.75,b.crisp=!0,b}),this.updateColors(n,r),this.root.append(this.bars)}updateColors([e],[t]){this.bars.forEach(n=>{n.fill=e,n.stroke=t})}},hnn={chartType:"histogram",miniChart:pnn},CD=class extends M3{constructor(e,t,n){super(e,t,n),this.stroke="gray",this.showRadiusAxisLine=!0,this.showAngleAxisLines=!0}postConstruct(){const{_Scene:e}=this.agChartsExports,t=this.size,n=this.padding,r=n*2,i=(t-r)/2,o=this.showAngleAxisLines?[i,i*.8,i*.6,i*.4]:[],a=new e.Line;a.x1=t/2,a.y1=n,a.x2=t/2,a.y2=t-n-i-o[o.length-1],a.stroke=this.stroke,a.strokeOpacity=.5,a.fill=void 0,a.visible=this.showRadiusAxisLine;const s=n+i;this.gridLines=o.map((c,u)=>{const d=new e.Path;return d.path.arc(s,s,c,0,2*Math.PI),d.strokeWidth=1,d.stroke=this.stroke,d.strokeOpacity=u===0?.5:.2,d.fill=void 0,d});const l=this.root;l.append(a),this.gridLines.length>0&&l.append(this.gridLines),super.postConstruct()}},fnn=class extends CD{constructor(e,t,n,r){super(e,t,"radialColumnTooltip"),this.data=[[6,8,10,2,6,5],[4,4,3,6,4,4],[5,4,2,9,8,9]],this.showRadiusAxisLine=!1;const{padding:i,size:o,data:a,agChartsExports:{_Scene:s}}=this,l=(o-i*2)/2,u=l*.4,d=new s.CategoryScale;d.domain=a[0].map((y,M)=>M),d.range=[0,2*Math.PI],d.paddingInner=0,d.paddingOuter=0;const p=d.bandwidth*.7,{processedData:h,max:g}=YK(a),m=new s.LinearScale;m.domain=[0,g],m.range=[u,l];const b=this.size/2;this.series=h.map((y,M)=>{const x=M===0?void 0:h[M-1],w=new s.TranslatableGroup({zIndex:1e6}),S=y.map((A,z)=>{const O=x?.[z],T=m.convert(A),R=m.convert(O??0),P=d.convert(z),F=P+p,N=s.getRadialColumnWidth(P,F,l,.5,.5),L=new s.RadialColumnShape;return L.columnWidth=N,L.innerRadius=R,L.outerRadius=T,L.startAngle=P,L.endAngle=F,L.isBeveled=!0,L.axisInnerRadius=u,L.axisOuterRadius=l,L.stroke=void 0,L.strokeWidth=0,L});return w.append(S),w.translationX=b,w.translationY=b,w}),this.root.append(this.series),this.updateColors(n,r)}updateColors(e,t){this.series.forEach((n,r)=>{for(const i of n.children())i.fill=e[r%e.length],i.stroke=t[r%t.length]})}},gnn={chartType:"radialColumn",miniChart:fnn},mnn=class extends CD{constructor(e,t,n,r){super(e,t,"radialBarTooltip"),this.data=[[6,8,10],[4,4,3],[5,4,2]],this.showRadiusAxisLine=!1;const{size:i,padding:o,data:a,agChartsExports:{_Scene:s}}=this,l=(i-o)/2,u=l*.4,d=new s.CategoryScale;d.domain=a[0].map((C,x)=>x),d.range=[u,l],d.paddingInner=.5,d.paddingOuter=0;const p=d.bandwidth,{processedData:h,max:g}=YK(a),m=new s.LinearScale;m.domain=[0,Math.ceil(g*1.5)];const b=3/2*Math.PI,y=b+2*Math.PI;m.range=[b,y];const M=i/2;this.series=h.map((C,x)=>{const w=x<0?void 0:h[x-1],S=new s.Group({zIndex:1e6}),A=C.map((z,O)=>{const T=w?.[O]??0,R=d.convert(O),P=R-p,F=m.convert(T),N=m.convert(z),L=new s.Sector;return L.centerX=M,L.centerY=M,L.innerRadius=P,L.outerRadius=R,L.startAngle=F,L.endAngle=N,L.stroke=void 0,L.strokeWidth=0,L});return S.append(A),S}),this.root.append(this.series),this.updateColors(n,r)}updateColors(e,t){this.series.forEach((n,r)=>{for(const i of n.children())i.fill=e[r%e.length],i.stroke=t[r%t.length]})}},vnn={chartType:"radialBar",miniChart:mnn},bnn=class extends CD{constructor(e,t,n,r){super(e,t,"radarLineTooltip"),this.markerSize=4,this.data=[[8,7,8,7,8,8,7,8],[6,8,5,10,6,7,4,6],[0,3,3,5,4,4,2,0]],this.showRadiusAxisLine=!1;const{size:i,padding:o,root:a,data:s}=this,l=(i-o*2)/2,c=0,{paths:u,markers:d}=cot(t,a,s,i,l,c,this.markerSize);this.lines=u,this.markers=d,this.updateColors(n,r)}updateColors(e,t){this.lines.forEach((n,r)=>{const i=this.data[r].length;n.stroke=e[r];const o=r*i,a=o+i;this.markers.slice(o,a).forEach(l=>{l.stroke=t[r],l.fill=e[r]})})}},ynn={chartType:"radarLine",miniChart:bnn},Mnn=class extends CD{constructor(e,t,n,r){super(e,t,"radarAreaTooltip"),this.data=[[8,10,5,7,4,1,5,8],[1,1,2,7,7,8,10,1],[4,5,9,9,4,2,3,4]];const{size:i,padding:o,root:a,data:s}=this;this.showRadiusAxisLine=!1;const l=(i-o*2)/2,c=l-i*.3;this.areas=cot(t,a,s,i,l,c).paths,this.updateColors(n,r)}updateColors(e,t){this.areas.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}},Cnn={chartType:"radarArea",miniChart:Mnn},xnn=class extends CD{constructor(e,t,n,r){super(e,t,"nightingaleTooltip"),this.data=[[6,10,9,8,7,8],[4,6,5,4,5,5],[3,5,4,3,4,7]],this.showRadiusAxisLine=!1;const{size:i,padding:o,data:a,agChartsExports:{_Scene:s}}=this,l=(i-o*2)/2,c=new s.CategoryScale;c.domain=a[0].map((m,b)=>b),c.range=[-Math.PI,Math.PI],c.paddingInner=0,c.paddingOuter=0;const u=c.bandwidth*.7,{processedData:d,max:p}=YK(a),h=new s.LinearScale;h.domain=[0,p],h.range=[0,l];const g=i/2;this.series=d.map((m,b)=>{const y=b<0?void 0:d[b-1],M=new s.Group({zIndex:1e6}),C=m.map((x,w)=>{const S=y?.[w],A=h.convert(x),z=h.convert(S??0),O=c.convert(w),T=O+u,R=new s.Sector;return R.centerX=g,R.centerY=g,R.innerRadius=z,R.outerRadius=A,R.startAngle=O,R.endAngle=T,R.stroke=void 0,R.strokeWidth=0,R});return M.append(C),M}),this.root.append(this.series),this.updateColors(n,r)}updateColors(e,t){this.series.forEach((n,r)=>{for(const i of n.children())i.fill=e[r%e.length],i.stroke=t[r%t.length]})}},wnn={chartType:"nightingale",miniChart:xnn},Snn=class extends v1{constructor(e,t,n,r){super(e,t,"rangeBarTooltip");const i=[3,3.5,3];this.bars=this.createRangeBar(this.root,i,this.size,this.padding,"vertical"),this.updateColors(n,r)}updateColors(e,t){this.bars.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}createRangeBar(e,t,n,r,i){const o=i==="horizontal",a=2*r,{_Scene:s}=this.agChartsExports,l=new s.CategoryScale;l.domain=t.map((g,m)=>m),l.range=[r,n-r],l.paddingInner=.3,l.paddingOuter=.3;const c=.7,u=1.3,d=new s.LinearScale;d.domain=[t.reduce((g,m)=>Math.min(g,m),1/0)*c,t.reduce((g,m)=>Math.max(g,m),0)*u],d.range=[a,n-a];const p=l.bandwidth,h=t.map((g,m)=>{const[b,y]=[g*c,g*u],M=l.convert(m),C=d.convert(b),x=d.convert(y)-C,w=new s.Rect;return w.x=o?C:M,w.y=o?M:C,w.width=o?x:p,w.height=o?p:x,w.strokeWidth=0,w.crisp=!0,w});return e.append(h),h}},Ann={chartType:"rangeBar",miniChart:Snn},Onn=class extends v1{constructor(e,t,n,r){super(e,t,"rangeAreaTooltip");const i=4,o=[kre({offset:.375*i,length:i,pattern:{low:3,high:5,period:i}}),kre({offset:.375*i,length:i,pattern:{low:2.25,high:4.25,period:i}}),kre({offset:.75*i,length:i,pattern:{low:2.5,high:4.5,period:i}})],a=1.75,s=o.map(u=>u.map(([d,p])=>({x:d,low:p-.5*a,high:p+.5*a}))),{lines:l,areas:c}=this.createRangeArea(this.root,s,this.size,this.padding);this.lines=l,this.areas=c,this.updateColors(n,r)}updateColors(e,t){e=rIe(e,1,2),t=rIe(t,1,2),this.lines.forEach(([n,r],i)=>{n.fill=void 0,n.stroke=t[i],r.fill=void 0,r.stroke=t[i]}),this.areas.forEach((n,r)=>{n.fill=e[r]})}createRangeArea(e,t,n,r){const i=t.reduce((m,b)=>b.reduce((y,{x:M})=>Math.min(y,M),m),1/0),o=t.reduce((m,b)=>b.reduce((y,{x:M})=>Math.max(y,M),m),-1/0),a=t.reduce((m,b)=>b.reduce((y,{low:M})=>Math.min(y,M),m),1/0),s=t.reduce((m,b)=>b.reduce((y,{high:M})=>Math.max(y,M),m),-1/0),{_Scene:l}=this.agChartsExports,c=new l.LinearScale;c.domain=[i,o],c.range=[r,n-r];const u=2*r,d=new l.LinearScale;d.domain=[a,s],d.range=[n-u,u];const p=[],h=[];return t.map(m=>{const b=new l.Path,y=new l.Path,M=new l.Path;return p.push([b,y]),h.push(M),b.strokeWidth=0,y.strokeWidth=0,M.strokeWidth=0,M.fillOpacity=.8,b.path.clear(),y.path.clear(),M.path.clear(),m.map((C,x)=>{const{x:w,low:S,high:A}=C,z=c.convert(w),O=d.convert(S),T=d.convert(A),R=x>0?"lineTo":"moveTo";return b.path[R](z,T),y.path[R](z,O),M.path[R](z,T),[z,O]})}).forEach((m,b)=>{const y=m.length-1,M=h[b];for(let C=y;C>=0;C--){const[x,w]=m[C];M.path.lineTo(x,w)}}),e.append(h.concat(...p)),{lines:p,areas:h}}};function kre(e){const{offset:t,length:n,pattern:r}=e,i=s(t,n,r),o=0,a=n;return(i.length===0||i[0][0]!==o)&&i.unshift(l(o,t,r)),i[i.length-1][0]!==a&&i.push(l(a,t,r)),i;function s(u,d,p){const{period:h}=p,g=u/h,b=[0,.5].map(M=>M-g).map(nIe).sort((M,C)=>M-C);return Array.from({length:Math.floor(b.length*(h/d))},(M,C)=>b[C%b.length]+Math.floor(C/b.length)).map(M=>M*h).map(M=>l(M,u,p))}function l(u,d,p){return[u,c(d+u,p)]}function c(u,d){const{low:p,high:h,period:g}=d,m=nIe(u/g),b=m>.5?1-2*(m-.5):2*m;return p+(h-p)*b}}function nIe(e){const t=e%1;return t<0?t+1:t}function rIe(e,t,n){const r=[...e],i=r[t];return r[t]=r[n],r[n]=i,r}var znn={chartType:"rangeArea",miniChart:Onn},Tnn=class extends v1{constructor(e,t,n,r,i){super(e,t,"boxPlotTooltip");const{size:o,padding:a,agChartsExports:{_Scene:s}}=this,l=[11,11.5,10.5],c=1.2,u=1.1,d=.9,p=.8,h=new s.LinearScale;h.domain=[l.reduce((y,M)=>Math.min(y,M),1/0)*p,l.reduce((y,M)=>Math.max(y,M),0)*c],h.range=[o-1.5*a,a];const g=new s.CategoryScale;g.domain=l.map((y,M)=>M),g.range=[a,o-a],g.paddingInner=.4,g.paddingOuter=.2;const m=Math.round(g.bandwidth),b=Math.round(g.bandwidth/2);this.boxPlotGroups=l.map((y,M)=>{const[C,x,w,S]=[y*p,y*d,y*u,y*c],A=Math.round(h.convert(w)),z=Math.round(g.convert(M)),O=Math.round(z+m),T=Math.round(h.convert(x)),R=Math.round(h.convert(C)),P=Math.round(h.convert(y)),F=Math.round(h.convert(S)),N=z+b,L=new s.Group,W=new s.Rect,j=new s.Line,V=new s.Line,G=new s.Line,q=new s.Line,$=new s.Line;return W.x=z,W.y=A,W.width=m,W.height=T-A,W.strokeWidth=1,W.strokeOpacity=.75,W.crisp=!0,this.setLineProperties(j,z,O,P,P),this.setLineProperties(V,N,N,F,A),this.setLineProperties(G,N,N,R,T),this.setLineProperties(q,z,O,F,F),this.setLineProperties($,z,O,R,R),L.append([W,j,V,G,q,$]),L}),this.updateColors(n,r,i),this.root.append(this.boxPlotGroups)}updateColors(e,t,n){const{_Theme:r}=this.agChartsExports;this.boxPlotGroups.forEach((i,o)=>{for(const a of i.children()){const s=e[o%e.length];a.fill=n?s:r.resolveOperation({$mix:[s,{$ref:"backgroundColor"},.7]}),a.stroke=t[o%t.length]}})}setLineProperties(e,t,n,r,i){e.x1=t,e.x2=n,e.y1=r,e.y2=i,e.strokeOpacity=.75}},Enn={chartType:"boxPlot",miniChart:Tnn},Rnn=class extends M3{constructor(e,t,n,r,i){super(e,t,"treemapTooltip");const{size:o,padding:a,agChartsExports:{_Scene:s}}=this,l=[[1,1],[3,2,1]],u=l.length%2===0?.3:.2,d=[a,o-a],p=l.length,h=p*(p+1)/2,g=u/(p-1),m=d[1]-d[0],b=m-u;let y=d[0];this.rects=l.reduce((C,x,w)=>{C??(C=[]);const S=(p-w)/h,A=b*S,z=x.length,O=x.reduce((N,L)=>N+=L,0),T=u/(z-1||1),R=z>1?m-u:m;let P=d[0];const F=x.map(N=>{const L=new s.Rect,W=R*N/O;return L.x=y,L.y=P,L.width=A,L.height=W,L.strokeWidth=.75,L.crisp=!0,P+=W+T,L});return y+=A+g,C.push(...F),C},[]),this.updateColors(n,r,i);const M=new s.Group;M.setClipRect(new s.BBox(a,a,o-a,o-a)),M.append(this.rects),this.root.append(M)}updateColors(e,t,n){const{_Theme:r}=this.agChartsExports;this.rects.forEach((i,o)=>{i.fill=e[o%t.length],i.stroke=n?t[o%t.length]:r.resolveOperation({$ref:"backgroundColor"})})}},Inn={chartType:"treemap",miniChart:Rnn},Pnn=class extends CD{constructor(e,t,n,r){super(e,t,"sunburstTooltip"),this.data=[[[],[]],[[],[]],[[],[]]],this.angleOffset=-Math.PI/2,this.innerRadiusRatio=0,this.showRadiusAxisLine=!1,this.showAngleAxisLines=!1;const{data:i,size:o,padding:a,angleOffset:s,innerRadiusRatio:l,agChartsExports:{_Scene:c}}=this,u=(o-a*2)/2,d=[s+0,s+2*Math.PI],p=Math.abs(d[1]-d[0]),h=[u*l,u],g=Math.abs(h[1]-h[0]);let m=0;const b=(w,S)=>{w.forEach(A=>{const z=S+1;m=Math.max(m,z),b(A,z)})};b(i,0);const y=g/m,M=this.size/2,C=d[0];this.series=[];const x=(w,S,A,z,O)=>{if(!Array.isArray(w))return;const R=S+1;let P=A;w.forEach((F,N,L)=>{let W=O;W||(W=new c.Group,this.series.push(W));const j=h[0]+S*y,V=h[0]+R*y,G=1/L.length,q=P,$=q+z*G,U=new c.Sector;U.centerX=M,U.centerY=M,U.innerRadius=j,U.outerRadius=V,U.startAngle=q,U.endAngle=$,U.stroke=void 0,U.strokeWidth=0,U.inset=.75,P=$,W.append(U),x(F,R,q,Math.abs($-q),W)})};x(i,0,C,p),this.root.append(this.series),this.updateColors(n,r)}updateColors(e,t){this.series.forEach((n,r)=>{for(const i of n.children())i.fill=e[r%e.length],i.stroke=t[r%t.length]})}},Dnn={chartType:"sunburst",miniChart:Pnn},knn=class extends M3{constructor(e,t,n,r,i){super(e,t,"heatmapTooltip");const{size:o,padding:a,agChartsExports:{_Scene:s}}=this,l=3,c=Array.from({length:l},(b,y)=>Array.from({length:l},(M,C)=>C)),u=c.map((b,y)=>y),d=new s.CategoryScale;d.domain=u,d.range=[a,o-a],d.paddingInner=.01,d.paddingOuter=.1;const p=new s.CategoryScale;p.domain=u,p.range=[a,o-a],p.paddingInner=.01,p.paddingOuter=.1;const h=d.bandwidth??0,g=p.bandwidth??0;this.rects=c.reduce((b,y,M)=>{b??(b=[]);const C=y.map((x,w)=>{const S=new s.Rect;return S.x=d.convert(M),S.y=p.convert(w),S.width=h,S.height=g,S.strokeWidth=0,S.crisp=!0,S});return b.push(...C),b},[]),this.updateColors(n,r,i);const m=new s.Group;m.setClipRect(new s.BBox(a,a,o-a,o-a)),m.append(this.rects),this.root.append(m)}updateColors(e,t,n){const{_Theme:r,_Util:i}=this.agChartsExports,o=n?[e[0],e[1]]:r.resolveOperation({$palette:"divergingColors"}),a=n?t[0]:r.resolveOperation({$ref:"backgroundColor"}),s=i.interpolateColor(o[0],o[1]);this.rects.forEach((l,c)=>{l.fill=s(c*.2),l.stroke=a})}},Lnn={chartType:"heatmap",miniChart:knn},_nn=class extends v1{constructor(e,t,n,r,i){super(e,t,"waterfallTooltip"),this.data=[4,3,-3,6,-3],this.bars=this.createWaterfall(this.root,this.data,this.size,this.padding,"vertical").bars,this.updateColors(n,r,i)}updateColors(e,t,n){const{data:r,agChartsExports:{_Theme:i}}=this,o={fill:n?e[0]:i.resolveOperation({$palette:"altUp.fill"}),stroke:n?t[0]:i.resolveOperation({$palette:"altUp.stroke"})},a={fill:n?e[1]:i.resolveOperation({$palette:"altDown.fill"}),stroke:n?t[1]:i.resolveOperation({$palette:"altDown.stroke"})};this.bars.forEach((s,l)=>{const c=r[l]>=0;s.fill=c?o.fill:a.fill,s.stroke=c?o.stroke:a.stroke})}createWaterfall(e,t,n,r,i){const o=2*r,{processedData:a,min:s,max:l}=YK(t.map(C=>[C])),c=a.reduce((C,x)=>C.concat(x),[]),{_Scene:u}=this.agChartsExports,d=new u.LinearScale;d.domain=[Math.min(s,0),l],d.range=[n-o,o];const p=new u.CategoryScale;p.domain=t.map((C,x)=>x),p.range=[r,n-r],p.paddingInner=.2,p.paddingOuter=.3;const h=p.bandwidth,g=new u.Path;g.stroke="#575757",g.strokeWidth=0;const m=Math.floor(g.strokeWidth)%2/2,b=g.path;b.clear();const y=i==="horizontal",M=c.map((C,x)=>{const w=x>0?c[x-1]:0,A=t[x]>0,z=Math.round(d.convert(C)),O=Math.round(d.convert(w)),T=(A?z:O)-m,R=(A?O:z)+m,P=Math.abs(R-T),F=p.convert(x),N=new u.Rect;N.x=y?T:F,N.y=y?F:T,N.width=y?P:h,N.height=y?h:P,N.strokeWidth=0,N.crisp=!0;const L=z+m,W=O+m;if(x>0){const G=y?W:N.x,q=y?N.y:W;b.lineTo(G,q)}const j=y?L:N.x,V=y?N.y:L;return b.moveTo(j,V),N});return e.append([g,...M]),{bars:M}}},Nnn={chartType:"waterfall",miniChart:_nn},Fnn=class extends v1{constructor(e,t,n,r){super(e,t,"columnLineComboTooltip"),this.columnData=[3,4],this.lineData=[[5,4,6,5,4]];const{root:i,columnData:o,lineData:a,size:s,padding:l}=this;this.columns=z6({stacked:!1,data:o,size:s,padding:l,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5,agChartsExports:t}),i.append(this.columns),this.lines=dMe(t,i,a,s,l),this.updateColors(n,r)}updateColors(e,t){this.columns.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]}),this.lines.forEach((n,r)=>{n.stroke=e[r+2]})}},Wnn={chartType:"columnLineCombo",miniChart:Fnn},qnn=class extends v1{constructor(e,t,n,r){super(e,t,"areaColumnComboTooltip"),this.columnData=[3,4.5],this.areaData=[[5,4,6,5,4]];const{root:i,columnData:o,areaData:a,size:s,padding:l,agChartsExports:{_Scene:c}}=this;this.columns=z6({stacked:!1,data:o,size:s,padding:l,xScaleDomain:[0,1],yScaleDomain:[0,6],xScalePadding:.5,agChartsExports:t});const u=new c.CategoryScale;u.range=[l,s-l],u.domain=[0,1,2,3,4],u.paddingInner=1,u.paddingOuter=0;const d=new c.LinearScale;d.range=[s-l,l],d.domain=[0,6];const p=[],h=d.convert(0),g=u.convert(0);a.forEach((y,M)=>{const C=p[M]||(p[M]=[]);y.forEach((w,S)=>{const A=w,z=S,O=u.convert(z),T=d.convert(A);C[S]={x:O,y:T}});const x=u.convert(y.length-1);p[M].push({x,y:h},{x:g,y:h})}),this.areas=p.map(y=>{const M=new c.Path;M.strokeWidth=0,M.fillOpacity=.8;const C=M.path;return y.forEach((x,w)=>C[w>0?"lineTo":"moveTo"](x.x,x.y)),M});const m=new c.Group;m.setClipRect(new c.BBox(l,l,s-l*2,s-l*2));const b=new c.Group;b.setClipRect(new c.BBox(l,l,s-l*2,s-l*2)),m.append(this.areas),b.append(this.columns),i.append(m),i.append(b),this.updateColors(n,r)}updateColors(e,t){this.areas.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]}),this.columns.forEach((n,r)=>{n.fill=e[r+1],n.stroke=t[r+1]})}},Bnn={chartType:"areaColumnCombo",miniChart:qnn},jnn=class extends M3{constructor(e,t,n,r){super(e,t,"customComboTooltip"),this.columnData=[3,4],this.lineData=[[5,4,6,5,4]];const{root:i,columnData:o,lineData:a,size:s,padding:l,agChartsExports:{_Scene:c}}=this;this.columns=z6({stacked:!1,data:o,size:s,padding:l,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5,agChartsExports:t}),i.append(this.columns),this.lines=dMe(this.agChartsExports,i,a,s,l);const u="grey",d=3,p=new c.Line;p.x1=l,p.y1=l,p.x2=l,p.y2=s-l+d,p.stroke=u;const h=new c.Line;h.x1=l-d+1,h.y1=s-l,h.x2=s-l+1,h.y2=s-l,h.stroke=u;const g=new c.Path;this.buildPenIconPath(g),g.fill="whitesmoke",g.stroke="darkslategrey",g.strokeWidth=1,i.append([h,p,g]),this.updateColors(n,r)}updateColors(e,t){this.columns.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]}),this.lines.forEach((n,r)=>{n.stroke=e[r+2]})}buildPenIconPath(e){const{path:t}=e;t.moveTo(25.76,43.46),t.lineTo(31.27,48.53),t.moveTo(49.86,22),t.lineTo(49.86,22),t.cubicCurveTo(49.01994659053345,21.317514933510974,47.89593834348529,21.09645997825817,46.86,21.41),t.lineTo(46.86,21.41),t.cubicCurveTo(45.55460035985361,21.77260167850787,44.38777081121966,22.517979360321792,43.51,23.55),t.lineTo(25.51,43.8),t.lineTo(25.43,43.89),t.lineTo(23.01,51.89),t.lineTo(22.83,52.46),t.lineTo(31.02,48.86),t.lineTo(49.02,28.52),t.lineTo(49.02,28.52),t.cubicCurveTo(49.940716461596224,27.521914221246085,50.54302631059587,26.2720342455763,50.75,24.93),t.lineTo(50.75,24.93),t.cubicCurveTo(50.95363374988308,23.866379846512814,50.62080640232334,22.77066734274871,49.86,22),t.closePath(),t.moveTo(41.76,25.5),t.lineTo(47.34,30.5),t.moveTo(40.74,26.65),t.lineTo(46.25,31.71)}},Hnn={chartType:"customCombo",miniChart:jnn},iIe={columnGroup:{column:{range:!0,pivot:!0,enterprise:!1,icon:_tn},stackedColumn:{range:!0,pivot:!0,enterprise:!1,icon:Ftn},normalizedColumn:{range:!0,pivot:!0,enterprise:!1,icon:Btn}},barGroup:{bar:{range:!0,pivot:!0,enterprise:!1,icon:Htn},stackedBar:{range:!0,pivot:!0,enterprise:!1,icon:Gtn},normalizedBar:{range:!0,pivot:!0,enterprise:!1,icon:Xtn}},pieGroup:{pie:{range:!0,pivot:!0,enterprise:!1,icon:Ktn},donut:{range:!0,pivot:!0,enterprise:!1,icon:tIe},doughnut:{range:!0,pivot:!0,enterprise:!1,icon:tIe}},lineGroup:{line:{range:!0,pivot:!0,enterprise:!1,icon:Qtn},stackedLine:{range:!0,pivot:!0,enterprise:!1,icon:Jtn},normalizedLine:{range:!0,pivot:!0,enterprise:!1,icon:nnn}},scatterGroup:{scatter:{range:!0,pivot:!0,enterprise:!1,icon:inn},bubble:{range:!0,pivot:!0,enterprise:!1,icon:ann}},areaGroup:{area:{range:!0,pivot:!0,enterprise:!1,icon:snn},stackedArea:{range:!0,pivot:!0,enterprise:!1,icon:lnn},normalizedArea:{range:!0,pivot:!0,enterprise:!1,icon:dnn}},polarGroup:{radarLine:{range:!0,pivot:!1,enterprise:!0,icon:ynn},radarArea:{range:!0,pivot:!1,enterprise:!0,icon:Cnn},nightingale:{range:!0,pivot:!1,enterprise:!0,icon:wnn},radialColumn:{range:!0,pivot:!1,enterprise:!0,icon:gnn},radialBar:{range:!0,pivot:!1,enterprise:!0,icon:vnn}},statisticalGroup:{boxPlot:{range:!0,pivot:!1,enterprise:!0,icon:Enn},histogram:{range:!0,pivot:!1,enterprise:!1,icon:hnn},rangeBar:{range:!0,pivot:!1,enterprise:!0,icon:Ann},rangeArea:{range:!0,pivot:!1,enterprise:!0,icon:znn}},hierarchicalGroup:{treemap:{range:!0,pivot:!0,enterprise:!0,icon:Inn},sunburst:{range:!0,pivot:!0,enterprise:!0,icon:Dnn}},specializedGroup:{heatmap:{range:!0,pivot:!1,enterprise:!0,icon:Lnn},waterfall:{range:!0,pivot:!1,enterprise:!0,icon:Nnn}},combinationGroup:{columnLineCombo:{range:!0,pivot:!0,enterprise:!1,icon:Wnn},areaColumnCombo:{range:!0,pivot:!0,enterprise:!1,icon:Bnn},customCombo:{range:!0,pivot:!0,enterprise:!1,icon:Hnn}},funnelGroup:{funnel:{range:!0,pivot:!1,enterprise:!0,icon:Ttn},coneFunnel:{range:!0,pivot:!1,enterprise:!0,icon:Itn},pyramid:{range:!0,pivot:!1,enterprise:!0,icon:ktn}}},Vnn={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","donut"],lineGroup:["line","stackedLine","normalizedLine"],areaGroup:["area","stackedArea","normalizedArea"],scatterGroup:["scatter","bubble"],polarGroup:["radarLine","radarArea","nightingale","radialColumn","radialBar"],statisticalGroup:["boxPlot","histogram","rangeBar","rangeArea"],hierarchicalGroup:["treemap","sunburst"],specializedGroup:["heatmap","waterfall"],funnelGroup:["funnel","coneFunnel","pyramid"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]},Gnn=class extends Gt{constructor(e,t,n,r,i=Vnn){super('<div class="ag-chart-settings-mini-wrapper"></div>'),this.wrappers=new Map,this.chartController=e,this.fills=t,this.strokes=n,this.isCustomTheme=r,this.chartGroups={...i}}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){!this.chartController.customComboExists()&&this.chartGroups.combinationGroup&&(this.chartGroups.combinationGroup=this.chartGroups.combinationGroup.filter(o=>o!=="customCombo"));const e=this.getGui(),t=this.chartController.isEnterprise(),n=this.chartController.isPivotChart(),r=!n,i=Object.keys(this.chartGroups).map(o=>{const a=o in iIe?iIe[o]:void 0;if(!a)return ut(148,{group:o}),null;const l=(this.chartGroups[o]??[]).map(c=>{const u=c in a?a[c]:void 0;return u?!t&&u.enterprise?null:r&&u.range||n&&u.pivot?u:null:(ut(149,{group:o,chartType:c}),null)}).filter(c=>c!=null);return l.length===0?null:{label:this.chartTranslation.translate(o),items:l}}).filter(o=>o!=null);for(const{label:o,items:a}of i){const s=this.createBean(new Gy({title:o,suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-settings",direction:"horizontal",suppressKeyboardNavigation:!0}));for(const l of a){const{miniChart:c,chartType:u}=l.icon,d=document.createElement("div");d.classList.add("ag-chart-mini-thumbnail"),d.setAttribute("tabindex","0"),d.setAttribute("role","button");const p=u,h=()=>{this.chartController.setChartType(p),this.updateSelectedMiniChart()};this.addManagedListeners(d,{click:h,keydown:g=>{(g.key==Qe.ENTER||g.key===Qe.SPACE)&&(g.preventDefault(),h())}}),this.wrappers.set(p,d),this.createBean(new c(d,this.beans.agChartsExports,this.fills,this.strokes,this.isCustomTheme)),s.addItem(d)}e.appendChild(s.getGui())}this.updateSelectedMiniChart()}updateSelectedMiniChart(){const e=this.chartController.getChartType();this.wrappers.forEach((t,n)=>{const r=n===e;t.classList.toggle("ag-selected",r);const i=this.chartTranslation.translate(aMe(n)),o=r?`${i}. ${this.chartTranslation.translate("ariaChartSelected")}`:i;Is(t,o)})}destroy(){this.wrappers.clear(),super.destroy()}},$nn=class extends Gt{constructor(e){super(`<div class="ag-chart-settings-wrapper">
            <div data-ref="eMiniChartsContainer" class="ag-chart-settings-mini-charts-container ag-scrollable-container"></div>
            <div data-ref="eNavBar" class="ag-chart-settings-nav-bar">
                <div data-ref="ePrevBtn" class="ag-chart-settings-prev">
                    <button type="button" class="ag-button ag-chart-settings-prev-button"></button>
                </div>
                <div data-ref="eCardSelector" class="ag-chart-settings-card-selector"></div>
                <div data-ref="eNextBtn" class="ag-chart-settings-next">
                    <button type="button" class="ag-button ag-chart-settings-next-button"></button>
                </div>
            </div>
        </div>`),this.chartController=e,this.eMiniChartsContainer=at,this.eNavBar=at,this.eCardSelector=at,this.ePrevBtn=at,this.eNextBtn=at,this.miniChartsContainers=[],this.cardItems=[],this.activePaletteIndex=0,this.palettes=[],this.themes=[]}postConstruct(){this.resetPalettes(),this.ePrevBtn.insertAdjacentElement("afterbegin",er("chartsThemePrevious",this.beans)),this.eNextBtn.insertAdjacentElement("afterbegin",er("chartsThemeNext",this.beans)),this.addManagedElementListeners(this.ePrevBtn,{click:()=>this.setActivePalette(this.getPrev(),"left")}),this.addManagedElementListeners(this.eNextBtn,{click:()=>this.setActivePalette(this.getNext(),"right")});const e=()=>this.resetPalettes(!0);this.addManagedListeners(this.chartController,{chartTypeChanged:e,chartApiUpdate:e}),this.scrollSelectedIntoView()}scrollSelectedIntoView(){setTimeout(()=>{const e=r=>!r.getGui().classList.contains("ag-hidden"),n=this.miniChartsContainers.find(e).getGui().querySelector(".ag-selected");if(n){const r=n.offsetParent;r&&this.eMiniChartsContainer.scrollTo(0,r.offsetTop)}},250)}resetPalettes(e){const t=this.chartController.getPalettes(),n=this.gos.get("chartToolPanelsDef")?.settingsPanel?.chartGroupsDef;if(Md(t,this.palettes)&&!e||this.isAnimating)return;this.palettes=t,this.themes=this.chartController.getThemeNames(),this.activePaletteIndex=this.themes.findIndex(i=>i===this.chartController.getChartThemeName()),this.cardItems=[],Xi(this.eCardSelector),this.destroyMiniCharts();const{themes:r}=this;this.palettes.forEach((i,o)=>{const a=this.activePaletteIndex===o,{fills:s=[],strokes:l=[]}=i,c=r[o],u=!sMe(c,this.beans.agChartsExports._Theme),d=this.createBean(new Gnn(this.chartController,s,l,u,n));this.miniChartsContainers.push(d),this.eMiniChartsContainer.appendChild(d.getGui()),this.addCardLink(o),a?d.updateSelectedMiniChart():d.setDisplayed(!1)}),Nn(this.eNavBar,this.palettes.length>1),C$(this.cardItems[this.activePaletteIndex],"ag-selected","ag-not-selected")}addCardLink(e){const t=document.createElement("div");t.classList.add("ag-chart-settings-card-item"),this.addManagedElementListeners(t,{click:()=>{this.setActivePalette(e,e<this.activePaletteIndex?"left":"right")}}),this.eCardSelector.appendChild(t),this.cardItems.push(t)}getPrev(){let e=this.activePaletteIndex-1;return e<0&&(e=this.palettes.length-1),e}getNext(){let e=this.activePaletteIndex+1;return e>=this.palettes.length&&(e=0),e}setActivePalette(e,t){if(this.isAnimating||this.activePaletteIndex===e)return;C$(this.cardItems[e],"ag-selected","ag-not-selected");const n=this.miniChartsContainers[this.activePaletteIndex],r=n.getGui(),i=this.miniChartsContainers[e],o=i.getGui();n.updateSelectedMiniChart(),i.updateSelectedMiniChart();const a=t==="left"?-1:1,s=o.style.left=`${gz(this.getGui())*a}px`;this.activePaletteIndex=e,this.isAnimating=!0;const l="ag-animating";i.setDisplayed(!0),n.addCss(l),i.addCss(l),this.chartController.setChartThemeName(this.themes[e]),window.setTimeout(()=>{r.style.left=`${-parseFloat(s)}px`,o.style.left="0px"},0),window.setTimeout(()=>{this.isAnimating=!1,n.removeCss(l),i.removeCss(l),n.setDisplayed(!1)},300)}destroyMiniCharts(){Xi(this.eMiniChartsContainer),this.miniChartsContainers=this.destroyBeans(this.miniChartsContainers)}destroy(){this.destroyMiniCharts(),super.destroy()}},Unn="data",Xnn="format",Ynn=class extends Gt{constructor(e,t){super(),this.panels=e,this.chartMenuContext=t,this.tabs=[]}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){this.panels.forEach(e=>{const t=e.replace("chart","").toLowerCase(),n=this.createPanel(t),r=this.createTab(e,t,n);this.tabs.push(r),this.addDestroyFunc(()=>this.destroyBean(n))}),this.tabbedLayout=new ait({items:this.tabs,cssClass:"ag-chart-tabbed-menu",keepScrollPosition:!0,suppressFocusBodyOnOpen:!0,suppressTrapFocus:!0,enableCloseButton:!0,closeButtonAriaLabel:this.chartTranslation.translate("ariaChartMenuClose"),onCloseClicked:()=>{this.eventSource?.focus({preventScroll:!0}),this.dispatchLocalEvent({type:"closed"})}}),this.createBean(this.tabbedLayout)}createTab(e,t,n){const r=Nr({tag:"div",cls:`ag-chart-tab ag-chart-${t}`});this.createBean(n),r.appendChild(n.getGui());const i=this.chartTranslation.translate(t);return{title:Nr({tag:"div",children:i}),titleLabel:i,bodyPromise:Dr.resolve(r),getScrollableContainer:()=>r.querySelector(".ag-scrollable-container")||r,name:e}}showTab(e){const t=this.tabs[e];this.tabbedLayout.showItem(t)}getGui(){return this.tabbedLayout&&this.tabbedLayout.getGui()}showMenu(e,t){this.eventSource=e,t||this.tabbedLayout?.focusHeader(!0)}destroy(){this.parentComponent&&this.parentComponent.isAlive()&&this.destroyBean(this.parentComponent),super.destroy()}createPanel(e){switch(e){case Unn:return new Uen(this.chartMenuContext);case Xnn:return new btn(this.chartMenuContext);default:return new $nn(this.chartMenuContext.chartController)}}},Knn=class extends Gt{constructor(e,t,n){super('<div class="ag-chart-menu-wrapper"></div>'),this.eChartContainer=e,this.eMenuPanelContainer=t,this.chartMenuContext=n,this.buttons={chartLink:{iconName:"linked",callback:()=>this.chartMenuSvc.toggleLinked(this.chartMenuContext)},chartUnlink:{iconName:"unlinked",callback:()=>this.chartMenuSvc.toggleLinked(this.chartMenuContext)},chartDownload:{iconName:"chartsDownload",callback:()=>this.chartMenuSvc.downloadChart(this.chartMenuContext)},chartMenu:{iconName:"chartsMenu",callback:r=>this.showMenuList(r)}},this.panels=[],this.menuVisible=!1,this.chartController=n.chartController}wireBeans(e){this.chartMenuSvc=e.chartMenuSvc,this.chartMenuListFactory=e.chartMenuListFactory,this.environment=e.environment}postConstruct(){this.chartToolbar=this.createManagedBean(new _en),this.getGui().appendChild(this.chartToolbar.getGui()),this.refreshToolbarAndPanels(),this.addManagedEventListeners({chartCreated:e=>{e.chartId===this.chartController.getChartId()&&this.gos.get("chartToolPanelsDef")?.defaultToolPanel&&this.showMenu({panel:this.defaultPanel,suppressFocus:!0})}}),this.addManagedListeners(this.chartController,{chartLinkedChanged:this.refreshToolbarAndPanels.bind(this)}),this.refreshMenuClasses(),this.addManagedListeners(this.chartController,{chartApiUpdate:this.refreshToolbarAndPanels.bind(this)})}isVisible(){return this.menuVisible}getExtraPaddingDirections(){return["chartMenu","chartLink","chartUnlink","chartDownload"].some(e=>this.chartToolbarOptions.includes(e))?["top"]:[]}refreshToolbarAndPanels(){this.initToolbarOptionsAndPanels(),this.updateToolbar()}initToolbarOptionsAndPanels(){const{panels:e,defaultPanel:t}=this.chartMenuSvc.getChartToolPanels(this.chartController);this.panels=e,this.defaultPanel=t,this.chartToolbarOptions=this.chartMenuSvc.getChartToolbarOptions()}updateToolbar(){const e=this.chartToolbarOptions.map(t=>{const{iconName:n,callback:r}=this.buttons[t];return{buttonName:t,iconName:n,callback:r}});this.chartToolbar.updateParams({buttons:e})}createMenuPanel(e){const t=this.menuPanel=this.createBean(new Drt({height:"100%",closable:!0,hideTitleBar:!0,cssIdentifier:"chart-menu"}));return t.setParentComponent(this),this.eMenuPanelContainer.appendChild(t.getGui()),this.tabbedMenu=this.createBean(new Ynn(this.panels,this.chartMenuContext)),this.addManagedListeners(this.tabbedMenu,{closed:()=>{this.hideMenu()}}),this.addManagedListeners(t,{destroyed:()=>this.destroyBean(this.tabbedMenu)}),new Dr(n=>{window.setTimeout(()=>{t.setBodyComponent(this.tabbedMenu),this.tabbedMenu.showTab(e),n(t)},100)})}showContainer(e,t){this.menuPanel&&(this.menuVisible=!0,this.refreshMenuClasses(),this.tabbedMenu.showMenu(e,t))}showMenu(e){const{panel:t,eventSource:n,suppressFocus:r}=e??{};if(this.menuPanel&&!t)this.showContainer(n,r);else{const i=t||this.defaultPanel;let o=this.panels.indexOf(i);o<0&&(ut(143,{panel:t}),o=this.panels.indexOf(this.defaultPanel)),this.menuPanel?(this.tabbedMenu.showTab(o),this.showContainer(n,r)):this.createMenuPanel(o).then(()=>this.showContainer(n,r))}}hideMenu(){this.menuVisible=!1,this.refreshMenuClasses()}refreshMenuClasses(){this.eChartContainer.classList.toggle("ag-chart-menu-visible",this.menuVisible),this.eChartContainer.classList.toggle("ag-chart-menu-hidden",!this.menuVisible)}showMenuList(e){this.chartMenuListFactory.showMenuList({eventSource:e,showMenu:()=>this.showMenu({eventSource:e}),chartMenuContext:this.chartMenuContext})}destroy(){super.destroy(),this.menuPanel&&this.menuPanel.isAlive()&&this.destroyBean(this.menuPanel),this.tabbedMenu&&this.tabbedMenu.isAlive()&&this.destroyBean(this.tabbedMenu)}},bot=["number","category","time","grouped-category"],Qnn=["angle-category","angle-number","radius-category","radius-number"],Znn=[...bot,...Qnn],Jnn=class extends dt{constructor(e){super(),this.chartController=e}getChartThemeOverridesProxy(){return{getValue:e=>this.getChartOption(e),setValue:(e,t)=>this.setChartThemeOverrides([{expression:e,value:t}]),setValues:e=>this.setChartThemeOverrides(e)}}getAxisThemeOverridesProxy(){return{getValue:e=>this.getAxisProperty(e),setValue:(e,t)=>this.setAxisThemeOverrides([{expression:e,value:t}]),setValues:e=>this.setAxisThemeOverrides(e)}}getCartesianAxisOptionsProxy(e){return{getValue:t=>this.getCartesianAxisProperty(e,t),setValue:(t,n)=>this.setCartesianAxisOptions(e,[{expression:t,value:n}]),setValues:t=>this.setCartesianAxisOptions(e,t)}}getCartesianAxisThemeOverridesProxy(e){return{getValue:t=>this.getCartesianAxisProperty(e,t),setValue:(t,n)=>this.setCartesianAxisThemeOverrides(e,[{expression:t,value:n}]),setValues:t=>this.setCartesianAxisThemeOverrides(e,t)}}getCartesianAxisAppliedThemeOverridesProxy(e){return{getValue:t=>this.getCartesianAxisThemeOverride(e,t==="*"?null:t),setValue:(t,n)=>this.setCartesianAxisThemeOverrides(e,[{expression:t==="*"?null:t,value:n}]),setValues:t=>this.setCartesianAxisThemeOverrides(e,t)}}getSeriesOptionsProxy(e){return{getValue:(t,n)=>this.getSeriesOption(e(),t,n),setValue:(t,n)=>this.setSeriesOptions(e(),[{expression:t,value:n}]),setValues:t=>this.setSeriesOptions(e(),t)}}getPersistedChartThemeOverrides(e,t,n,r){const i=this.getRetainedChartThemeOverrideKeys(n,r),o=this.getRetainedChartAxisThemeOverrideKeys(null,n,r),a=this.createChartOptions();for(const s of i){const l=this.retrieveChartOptionsThemeOverride(e,n,s);l!==void 0&&this.assignChartOptionsThemeOverride(a,r,s,l)}return t&&this.assignPersistedAxisOverrides({existingAxes:t,retainedChartAxisThemeOverrideKeys:o,existingChartOptions:e,targetChartOptions:a,existingChartType:n,targetChartType:r}),a.theme.overrides}assignPersistedAxisOverrides(e){const{existingAxes:t,retainedChartAxisThemeOverrideKeys:n,existingChartOptions:r,targetChartOptions:i,existingChartType:o,targetChartType:a}=e;for(const{expression:s,targetAxisTypes:l}of n)for(const c of t.map(u=>u.type)){const u=this.retrieveChartOptionsThemeOverride(r,o,["axes",c,s].join("."));if(u!==void 0)for(const d of l)this.assignChartOptionsThemeOverride(i,a,["axes",d,s].join("."),u)}}getRetainedChartThemeOverrideKeys(e,t){const n=["animation"],r=["zoom","navigator"],i=((o,a)=>{const s=new Array;return ox(Xs(o))&&ox(Xs(a))&&s.push(...r),s})(e,t);return[...n,...i]}getRetainedChartAxisThemeOverrideKeys(e,t,n){return ox(Xs(t))&&ox(Xs(n))?this.getRetainedCartesianAxisThemeOverrideKeys(e).map(i=>({expression:i,targetAxisTypes:bot})):[]}getRetainedCartesianAxisThemeOverrideKeys(e){const t=e==="xAxis"?["",".top",".bottom"]:e==="yAxis"?["",".left",".right"]:["",".left",".right",".top",".bottom"],n=["crosshair"],r=new Array;for(const i of n)for(const o of t)r.push(`${i}${o}`);return r}getChartOption(e){return UA(this.getChart(),e,void 0)}setChartThemeOverrides(e){const t=this.getChartType(),n=this.createChartOptions();for(const{expression:r,value:i}of e)this.assignChartOptionsThemeOverride(n,t,r,i);this.applyChartOptions(n)}applyChartOptions(e,t){if(Object.keys(e).length===0)return;this.updateChart(e),!t?.silent&&this.raiseChartOptionsChangedEvent()}awaitChartOptionUpdate(e){this.chartController.getChartProxy().getChart().waitForUpdate().then(()=>e()).catch(n=>pi(108,{e:n}))}getAxisProperty(e){return UA(this.getChart().axes?.[0],e,void 0)}setAxisThemeOverrides(e){const t=this.getChart(),n=this.getChartType(),r=this.createChartOptions();for(const{expression:i,value:o}of e){const a=t.axes?.filter(s=>{const l=i.split(".");let c=s;for(const u of l){if(!(u in c))return!1;c=c[u]}return!0});if(a)for(const s of a)this.isValidAxisType(s)&&this.assignChartAxisThemeOverride(r,n,s.type,null,i,o)}this.applyChartOptions(r)}getCartesianAxisProperty(e,t){const n=this.getChartAxes(),r=this.getCartesianAxis(n,e);return UA(r,t,void 0)}getCartesianAxisThemeOverride(e,t){const n=this.getChartAxes(),r=this.getCartesianAxis(n,e);if(!r||!this.isValidAxisType(r))return;const i=this.getChartType(),o=this.getChart().getOptions();return this.retrieveChartAxisThemeOverride(o,i,r.type,e==="yAxis"?["left","right"]:["bottom","top"],t)}setCartesianAxisThemeOverrides(e,t){const n=this.getChartAxes(),r=this.getCartesianAxis(n,e);if(!r||!this.isValidAxisType(r))return;const i=this.getChartType(),o=this.createChartOptions();for(const{expression:a,value:s}of t)this.assignChartAxisThemeOverride(o,i,r.type,e==="yAxis"?["left","right"]:["bottom","top"],a,s);this.applyChartOptions(o)}setCartesianAxisOptions(e,t){this.updateCartesianAxisOptions(e,(n,r,i)=>{const o=r.indexOf(i);for(const{expression:a,value:s}of t)this.assignChartOption(n,`axes.${o}.${a}`,s)})}updateCartesianAxisOptions(e,t){const n=this.getChart().getOptions(),r="axes"in n?n.axes:void 0;if(!n||!r)return;const i=this.getChartAxes(),o=this.getCartesianAxis(i,e);if(!o)return;const a=this.createChartOptions();a.axes=r,t(a,i,o,n),this.applyChartOptions(a)}setCartesianCategoryAxisType(e,t){this.updateCartesianAxisOptions(e,(n,r,i,o)=>{const a=this.getChartType();this.assignPersistedAxisOverrides({existingAxes:[i],retainedChartAxisThemeOverrideKeys:this.getRetainedChartAxisThemeOverrideKeys(e,a,a),existingChartOptions:o,targetChartOptions:n,existingChartType:a,targetChartType:a}),this.assignChartOption(n,"axes.0.type",t),this.chartController.setCategoryAxisType(t)})}getCartesianAxis(e,t){if(!(e.length<2))switch(t){case"xAxis":return e[0].direction==="x"?e[0]:e[1];case"yAxis":return e[1].direction==="y"?e[1]:e[0]}}getSeriesOption(e,t,n){const r=this.getChart().series.find(i=>ern(e,i));return UA(n?r:r?.properties.toJson(),t,void 0)}setSeriesOptions(e,t){const n=this.createChartOptions();for(const{expression:r,value:i}of t)this.assignChartOptionsSeriesThemeOverride(n,e,`series.${r}`,i);this.applyChartOptions(n)}getPairedMode(){return this.chartController.getChartProxy().isPaired()}setPairedMode(e){this.chartController.getChartProxy().setPaired(e)}getChartAxes(){return this.getChart().axes??[]}retrieveChartAxisThemeOverride(e,t,n,r,i){if(r)for(const o of r){const a=this.retrieveChartOptionsThemeOverride(e,t,["axes",n,o,...i?[i]:[]].join("."));if(a!==void 0)return a}else return this.retrieveChartOptionsThemeOverride(e,t,["axes",n,...i?[i]:[]].join("."))}assignChartAxisThemeOverride(e,t,n,r,i,o){if(r)for(const a of r)this.assignChartOptionsThemeOverride(e,t,["axes",n,a,...i?[i]:[]].join("."),o);else this.assignChartOptionsThemeOverride(e,t,["axes",n,...i?[i]:[]].join("."),o)}isValidAxisType(e){return Znn.includes(e.type)}getChartType(){return this.chartController.getChartType()}getChart(){return this.chartController.getChartProxy().getChart()}updateChart(e){const t=this.chartController.getChartProxy().getChartRef();t.skipAnimations(),t.updateDelta(e)}createChartOptions(){return{theme:{overrides:{}}}}retrieveChartOptionsThemeOverride(e,t,n){const r=this.getChartThemeOverridesSeriesTypeKeys(t);for(const i of r){const o=this.retrieveChartOptionsSeriesThemeOverride(e,i,n);if(o!==void 0)return o}}assignChartOptionsThemeOverride(e,t,n,r){const i=this.getChartThemeOverridesSeriesTypeKeys(t);for(const o of i)this.assignChartOptionsSeriesThemeOverride(e,o,n,r)}retrieveChartOptionsSeriesThemeOverride(e,t,n){return this.retrieveChartOption(e,["theme","overrides",t,...n?[n]:[]].join("."))}assignChartOptionsSeriesThemeOverride(e,t,n,r){this.assignChartOption(e,["theme","overrides",t,...n?[n]:[]].join("."),r)}getChartThemeOverridesSeriesTypeKeys(e){const t=this.chartController.getChartSeriesTypes(e);return this.chartController.isComboChart()&&t.push("common"),t}retrieveChartOption(e,t){return UA(e,t,void 0)}assignChartOption(e,t,n){sJt(e,t,n)}raiseChartOptionsChangedEvent(){const e=this.chartController.getChartModel();this.eventSvc.dispatchEvent({type:"chartOptionsChanged",chartId:e.chartId,chartType:e.chartType,chartThemeName:this.chartController.getChartThemeName(),chartOptions:e.chartOptions})}};function ern(e,t){return dJt(e)&&t.type===e}var trn=class extends Gt{constructor(e){super(`
            <div style="height: 100%; width: 100%;">
                <div class="ag-chart" data-ref="eWrapper">
                    <div data-ref="eChartContainer" class="ag-chart-components-wrapper ag-chart-menu-hidden">
                        <div data-ref="eChart" class="ag-chart-canvas-wrapper"></div>
                        <div data-ref="eEmpty" class="ag-chart-empty-text ag-unselectable"></div>
                    </div>
                    <div data-ref="eMenuContainer" class="ag-chart-docked-container"></div>
                </div>
            </div>
            `),this.eChart=at,this.eWrapper=at,this.eChartContainer=at,this.eMenuContainer=at,this.eEmpty=at,this.params=e}wireBeans(e){this.crossFilterService=e.chartCrossFilterSvc,this.chartTranslation=e.chartTranslation,this.chartMenuSvc=e.chartMenuSvc,this.focusSvc=e.focusSvc,this.popupSvc=e.popupSvc,this.enterpriseChartProxyFactory=e.enterpriseChartProxyFactory,this.environment=e.environment}postConstruct(){const e={...this.params,chartType:MW(this.params.chartType),chartThemeName:this.getThemeName()},t=this.gos.get("enableRtl");this.eWrapper.classList.add(t?"ag-rtl":"ag-ltr");const n=this.createBean(new HJt(e));this.chartController=this.createManagedBean(new zen(n)),this.chartOptionsService=this.createManagedBean(new Jnn(this.chartController)),this.validateCustomThemes(),this.createChart(),this.params.insideDialog?this.addDialog():(this.addManagedEventListeners({gridStylesChanged:this.updateTheme.bind(this)}),this.updateTheme()),this.addMenu(),this.addManagedElementListeners(this.getGui(),{focusin:this.setActiveChartCellRange.bind(this)}),this.addManagedListeners(this.chartController,{chartModelUpdate:this.update.bind(this)}),this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes"],this.reactivePropertyUpdate.bind(this)),this.update(),this.raiseChartCreatedEvent()}updateTheme(){this.environment.applyThemeClasses(this.getGui())}createChart(){let e;this.chartProxy&&(e=this.chartProxy.destroy({keepChartInstance:!0}));const t=(i,o)=>{const a=this.params.crossFilteringContext;a.lastSelectedChartId=o?"":this.chartController.getChartId(),o&&this.params.crossFilteringResetCallback(),this.crossFilterService.filter(i,o)},n=this.chartController.getChartType(),r={agChartsExports:this.beans.agChartsExports,chartType:n,chartInstance:e,getChartThemeName:this.getChartThemeName.bind(this),getChartThemes:this.getChartThemes.bind(this),customChartThemes:this.gos.get("customChartThemes"),styleNonce:this.gos.get("styleNonce"),getGridOptionsChartThemeOverrides:()=>this.getGridOptionsChartThemeOverrides(),getExtraPaddingDirections:()=>this.chartMenu?.getExtraPaddingDirections()??[],apiChartThemeOverrides:this.params.chartThemeOverrides,crossFiltering:this.params.crossFiltering??!1,crossFilterCallback:t,parentElement:this.eChart,grouping:this.chartController.isGrouping(),chartThemeToRestore:this.params.chartThemeName,chartOptionsToRestore:this.params.chartOptionsToRestore,chartPaletteToRestore:this.params.chartPaletteToRestore,seriesChartTypes:this.chartController.getSeriesChartTypes(),suppressFieldDotNotation:this.gos.get("suppressFieldDotNotation"),translate:i=>this.chartTranslation.translate(i)};if(this.params.chartOptionsToRestore=void 0,this.chartType=n,this.chartProxy=this.createChartProxy(r),!this.chartProxy){ut(138,{chartType:r.chartType});return}this.chartController.setChartProxy(this.chartProxy),this.createMenuContext()}createMenuContext(){if(this.chartMenuContext)return;const e=this.createManagedBean(new Oz(this.chartOptionsService.getChartThemeOverridesProxy())),t=this.createManagedBean(new Oz(this.chartOptionsService.getAxisThemeOverridesProxy()));this.chartMenuContext={chartController:this.chartController,chartOptionsService:this.chartOptionsService,chartMenuParamsFactory:e,chartAxisMenuParamsFactory:t}}getChartThemeName(){return this.chartController.getChartThemeName()}getChartThemes(){return this.chartController.getThemeNames()}getGridOptionsChartThemeOverrides(){return this.gos.get("chartThemeOverrides")}createChartProxy(e){const{chartType:t}=e;switch(t){case"column":case"bar":case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":return new Ren(e);case"pie":case"donut":case"doughnut":return new Len(e);case"area":case"stackedArea":case"normalizedArea":return new Ten(e);case"line":case"stackedLine":case"normalizedLine":return new Ien(e);case"scatter":case"bubble":return new Pen(e);case"columnLineCombo":case"areaColumnCombo":case"customCombo":return new Den(e)}const n=this.enterpriseChartProxyFactory?.createChartProxy(e);if(!n)throw Of(251,{chartType:t});return n}addDialog(){const e=this.chartTranslation.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle"),{width:t,height:n}=this.getBestDialogSize(),r=this.params.focusDialogOnOpen?()=>setTimeout(()=>zu(this.getGui())):void 0;this.chartDialog=new w6({resizable:!0,movable:!0,maximizable:!0,title:e,width:t,height:n,component:this,centered:!0,closable:!0,afterGuiAttached:r,postProcessPopupParams:{type:"chart"}}),this.createBean(this.chartDialog),this.chartDialog.addEventListener("destroyed",()=>{this.destroy(),this.chartMenuSvc.hideAdvancedSettings();const i=this.focusSvc.getFocusedCell();setTimeout(()=>{this.focusSvc.isAlive()&&(i?this.focusSvc.setFocusedCell({...i,forceBrowserFocus:!0}):ftt(this.beans))})})}getBestDialogSize(){const e=this.popupSvc.getPopupParent(),t=gz(e)*.75,n=xK(e)*.75,r=.553,i=this.chartProxy.getChart();let o=this.params.insideDialog?850:i.width,a=this.params.insideDialog?470:i.height;return(o>t||a>n)&&(o=Math.min(o,t),a=Math.round(o*r),a>n&&(a=n,o=Math.min(o,Math.round(a/r)))),{width:o,height:a}}addMenu(){this.params.crossFiltering||(this.chartMenu=this.createBean(new Knn(this.eChartContainer,this.eMenuContainer,this.chartMenuContext)),this.eChartContainer.appendChild(this.chartMenu.getGui()))}update(e){if(e?.chartId&&!this.chartController.update(e))return;const t=this.chartTypeChanged(e),n=t||this.chartEmpty?(i=>{const o=this.chartType,a=i,s=this.chartProxy.getChart(),l=s?.getOptions(),c=s?.axes;return this.chartOptionsService.getPersistedChartThemeOverrides(l,c,o,a??o)})(t):void 0;t&&this.createChart(),n&&e?.chartThemeOverrides&&eu(n,e.chartThemeOverrides);const r=n??e?.chartThemeOverrides;this.updateChart(r),e?.chartId&&this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartApiUpdateEvent()})}updateChart(e){const{chartProxy:t}=this,n=this.chartController.getSelectedValueColState(),r=this.chartController.getChartData(),i=this.handleEmptyChart(r,n.length);if(this.chartEmpty=i,i){e&&this.chartController.updateThemeOverrides(e);return}const o=this.chartController.getChartUpdateParams(e);t.update(o),this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartUpdatedEvent()})}chartTypeChanged(e){const[t,n]=[this.chartController.getChartType(),e?.chartType],r=n?MW(n):void 0;return this.chartType!==t?r??t:r&&t!==r?r:null}getChartModel(){return this.chartController.getChartModel()}getChartImageDataURL(e){return this.chartProxy.getChartImageDataURL(e)}handleEmptyChart(e,t){const n=this.chartController.isPivotChart()&&!this.chartController.isPivotMode(),r=this.chartController.getChartType();let i=1;this.chartController.isActiveXYChart()?i=r==="bubble"?3:2:oO(Xs(r))&&(i=0);const o=t<i||e.length===0;if(this.eChart){const a=n||o;Nn(this.eChart,!a),Nn(this.eEmpty,a)}return n?(this.eEmpty.textContent=this.chartTranslation.translate("pivotChartRequiresPivotMode"),!0):o?(this.eEmpty.textContent=this.chartTranslation.translate("noDataToChart"),!0):!1}downloadChart(e,t,n){this.chartProxy.downloadChart(e,t,n)}openChartToolPanel(e){const t=e&&r7[e];this.chartMenu.showMenu({panel:t})}closeChartToolPanel(){this.chartMenu.hideMenu()}getChartId(){return this.chartController.getChartId()}getUnderlyingChart(){return this.chartProxy.getChartRef()}crossFilteringReset(){this.chartProxy.crossFilteringReset()}setActiveChartCellRange(e){this.getGui().contains(e.relatedTarget)||this.chartController.setChartRange(!0)}getThemeName(){const e=this.gos.get("chartThemes")||Jit;if(e.length===0)throw new Error(Of(254));const{chartThemeName:t}=this.params;return e.includes(t)?t:e[0]}getAllKeysInObjects(e){const t={};return e.filter(n=>n!=null).forEach(n=>{Object.keys(n).forEach(r=>t[r]=null)}),Object.keys(t)}validateCustomThemes(){const e=this.getChartThemes(),t=this.gos.get("customChartThemes");t&&this.getAllKeysInObjects([t]).forEach(n=>{e.includes(n)||ut(139,{customThemeName:n})})}reactivePropertyUpdate(){this.chartController.setChartThemeName(this.getThemeName(),!0);const e=this.getChartId(),t=this.chartController.isCrossFilterChart()?"crossFilter":this.getChartModel().modelType,n=this.gos.get("chartThemeOverrides")||{};this.update({type:`${t}ChartUpdate`,chartId:e,chartThemeOverrides:n})}raiseChartCreatedEvent(){this.chartProxy.getChart().waitForUpdate().then(()=>{this.eventSvc.dispatchEvent({type:"chartCreated",chartId:this.chartController.getChartId()})})}raiseChartDestroyedEvent(){this.eventSvc.dispatchEvent({type:"chartDestroyed",chartId:this.chartController.getChartId()})}destroy(){super.destroy(),this.chartProxy&&this.chartProxy.destroy(),this.destroyBean(this.chartMenu),this.chartDialog&&this.chartDialog.isAlive()&&this.destroyBean(this.chartDialog),this.onDestroyColorSchemeChangeListener?.();const e=this.getGui();Xi(e),Ps(e),this.raiseChartDestroyedEvent()}};function nrn(e){return e.version,e.version==null&&(e.version=vrn(e)),e=Gd("23.0.0",e,rrn),e=Gd("24.0.0",e,irn),e=Gd("25.1.0",e,orn),e=Gd("26.0.0",e,arn),e=Gd("26.1.0",e,srn),e=Gd("26.2.0",e,lrn),e=Gd("28.0.0",e,crn),e=Gd("28.2.0",e,urn),e=Gd("29.0.0",e,drn),e=Gd("29.1.0",e,yot),e=Gd("29.2.0",e,Mot),e=Gd("30.0.0",e,prn),e=Gd("31.0.0",e,hrn),e=Gd("32.0.0",e,frn),e=Gd("33.0.0",e,grn),e=mrn(e),e=Gd(wi,e,t=>t),e}function rrn(e){return e=gd("chartOptions.legend.item.marker.type","shape",e),e=gd("chartOptions.seriesDefaults.marker.type","shape",e),e=gd("chartOptions.legend.padding","spacing",e),e}function irn(e){e=vs("chartOptions.seriesDefaults.marker.minSize",e);const{chartType:t,chartPalette:n,chartOptions:{xAxis:r,yAxis:i,...o},...a}=e,l=bJt(t)?.map((u,d)=>({type:u,...d===0?r:i}));return{chartType:t,chartThemeName:{borneo:"ag-default",material:"ag-material",bright:"ag-vivid"}[n]??"ag-default",chartOptions:{...o,axes:l,xAxis:r,yAxis:i},...a}}function orn(e){return e=gd("chartOptions.seriesDefaults.label.minRequiredAngle","minAngle",e),e}function arn(e){return e=vy("chartOptions.seriesDefaults.highlightStyle",e,({dimOpacity:n,...r})=>({...r,...n!=null?{series:{dimOpacity:n}}:{}})),e=vs("chart",e),e=vs("chartOptions.seriesDefaults.tooltipClass",e),e=vs("chartOptions.seriesDefaults.tooltipTracking",e),e=aIe("chartOptions.axes[].label.rotation",0,e),e=aIe("chartOptions.axes[].label.rotation",335,e),e}function srn(e){const t=({item:n,series:r,...i})=>({item:{...i,...n},...r?{series:r}:{}});return e=vy("chartOptions.seriesDefaults.highlightStyle",e,t),e=vy("chartOptions.series[].highlightStyle",e,t),e}function lrn(e){e=i7("chartOptions.seriesDefaults.fill.opacity","chartOptions.seriesDefaults.fillOpacity",e),e=i7("chartOptions.seriesDefaults.stroke.opacity","chartOptions.seriesDefaults.strokeOpacity",e),e=i7("chartOptions.seriesDefaults.stroke.width","chartOptions.seriesDefaults.strokeWidth",e),e=vs("chartOptions.seriesDefaults.fill",e),e=vs("chartOptions.seriesDefaults.stroke",e),e=vs("chartOptions.seriesDefaults.callout.colors",e),e=vs("chartOptions.xAxis",e),e=vs("chartOptions.yAxis",e);const{chartType:t,chartOptions:{axes:n,series:r,seriesDefaults:i,...o},...a}=e,s=MW(t),l=Xs(s),c=[l],u={};if(!qit(l)){const p={top:{},bottom:{},left:{},right:{}},h=n.map(({type:g,...m})=>({[g]:{...p,...m}})).reduce(lIe,{});jit.filter(g=>h[g]==null).forEach(g=>{h[g]={...p}}),u.axes=h}const d=c.map(p=>({[p]:{...u,series:i,...o}})).reduce(lIe,{});return e={...a,chartType:s,chartOptions:d},e}function crn(e){return e=vs("chartOptions.*.title.padding",e),e=vs("chartOptions.*.subtitle.padding",e),e=vs("chartOptions.*.axes.*.title.padding",e),e=gMe("chartOptions.*.axes.*.title.enabled",!1,e),e}function urn(e){return e=gd("chartOptions.pie.series.callout","calloutLine",e),e=gd("chartOptions.pie.series.label","calloutLabel",e),e=gd("chartOptions.pie.series.labelKey","sectorLabelKey",e),e=gd("chartOptions.pie.series.labelName","sectorLabelName",e),e=gd("chartOptions.donut.series.callout","calloutLine",e),e=gd("chartOptions.donut.series.label","calloutLabel",e),e=gd("chartOptions.donut.series.labelKey","sectorLabelKey",e),e=gd("chartOptions.donut.series.labelName","sectorLabelName",e),e}function drn(e){return e=s4("chartOptions.scatter.series.fill","chartOptions.scatter.series.marker.fill",e),e=s4("chartOptions.scatter.series.fillOpacity","chartOptions.scatter.series.marker.fillOpacity",e),e=s4("chartOptions.scatter.series.stroke","chartOptions.scatter.series.marker.stroke",e),e=s4("chartOptions.scatter.series.strokeOpacity","chartOptions.scatter.series.marker.strokeOpacity",e),e=s4("chartOptions.scatter.series.strokeWidth","chartOptions.scatter.series.marker.strokeWidth",e),e=i7("chartOptions.scatter.series.paired","chartOptions.scatter.paired",e),e}function yot(e){return e=vs("chartOptions.axes[].tick.count",e),e}function Mot(e){return e=vy("chartOptions.*.tooltip",e,({tracking:n,...r})=>{const i={...r};return n===!1?(i.position??(i.position={type:"pointer"}),i.range??(i.range="nearest")):n===!0&&(i.position??(i.position={type:"node"}),i.range??(i.range="nearest")),i}),e}function prn(e){return e=gd("chartOptions.pie.series.labelKey","sectorLabelKey",e),e=gd("chartOptions.pie.series.labelName","sectorLabelName",e),e=yot(e),e=Mot(e),e=vs("chartOptions.*.series.flipXY",e),e=Cot("chartOptions.common.legend.enabled",!0,e),e=gMe("chartOptions.common.legend.position","right",e),e}function hrn(e){const t={"ag-pastel":"ag-sheets","ag-solar":"ag-polychroma"},n=gd("chartOptions.column","bar",e),r=t[n.chartThemeName]||n.chartThemeName;return{...n,chartThemeName:r}}function frn(e){return e=ym("chartOptions.*.autoSize",!0,e,(t,n)=>{t[n]===!0||t[n]===!1&&(t.minHeight=600,t.minWidth=300),delete t[n]}),e}function grn(e){return e=vs("chartOptions.*.axes.category.label.format",e),e=vs("chartOptions.*.axes.category.crosshair.label.format",e),e=vs("chartOptions.*.axes.angle-category.label.format",e),e=vs("chartOptions.*.axes.radius-category.label.format",e),e=gd("chartOptions.*.axes.*.label.padding","spacing",e),e=gd("chartOptions.*.navigator.miniChart.label.padding","spacing",e),e=vs("chartOptions.*.axes.*.crossLines.label.className",e),e=ym("chartOptions.*.axes.*.crossLines.label.position",!0,e,(t,n)=>{typeof t[n]=="string"&&(t[n]=t[n].replace(/([A-Z])/,"-$1").toLowerCase())}),e=vs("chartOptions.bullet",e),e=sIe("chartOptions.bar.series.label.placement",e,{inside:"inside-center",outside:"inside-end"}),e=sIe("chartOptions.waterfall.series.item.*.label.placement",e,{inside:"inside-center",start:"outside-start",end:"outside-end"}),e=vs("chartOptions.*.navigator.min",e),e=vs("chartOptions.*.navigator.max",e),e=vs("chartOptions.*.zoom.ratioX",e),e=vs("chartOptions.*.zoom.ratioY",e),e=vs("chartOptions.*.zoom.rangeX",e),e=vs("chartOptions.*.zoom.rangeY",e),e}function mrn(e){return e=vs("chartOptions.*.width",e),e=vs("chartOptions.*.height",e),e=gMe("chartOptions.*.axes.category.label.autoRotate",!0,e),e}function vrn(e){const t=e;if(e.version!=null)return e.version;const n=(c,...u)=>Object.keys(c||{}).some(d=>u.includes(d)),r=t.chartOptions,i=n(r,"seriesDefaults")?r?.seriesDefaults:r?.[Object.keys(r)[0]],o={"27.0.0":n(t,"seriesChartTypes"),"26.2.0":!n(r,"seriesDefaults"),"26.1.0":n(i?.highlightStyle,"item"),"26.0.0":n(i?.highlightStyle,"series"),"25.1.0":n(i?.label,"minAngle"),"25.0.0":n(t,"modelType","aggFunc","unlinkChart","suppressChartRanges")||n(i,"lineDash","lineDashOffset"),"24.0.0":n(t,"chartThemeName","chart")||n(r,"series"),"23.2.0":n(r,"navigator"),"23.0.0":n(r?.legend?.item?.marker,"shape"),"22.1.0":n(t,"chartPalette","chartType")},a="27.1.0",s=Object.entries(o).filter(([c,u])=>u),[l=a]=s[0];return l}function Gd(e,t,n){if(oIe(e)>oIe(t.version)){const r=n(t);return r.version=e,r}return t}function brn(e){const t=e.includes("-beta")?e.replace(/-beta.*/,""):e,n=typeof t=="string"?t.split(".").map(r=>Number(r)):[];if(n.length!==3||n.some(r=>isNaN(r)))throw new Error(Of(253,{version:t}));return{major:n[0],minor:n[1],patch:n[2]}}function oIe(e){const{major:t,minor:n,patch:r}=brn(e);return t*1e4+n*100+r}function aIe(e,t,n){return ym(e,!0,n,(r,i)=>{r[i]===t&&delete r[i]})}function gMe(e,t,n){return ym(e,!1,n,(r,i)=>{r[i]==null&&(r[i]=t)})}function Cot(e,t,n){typeof e=="string"&&(e=e.split("."));const r=e[0];return e.length>1&&(n[r]=Cot(e.slice(1),t,n[r]??{})),Object.keys(n).includes(r)||(n[r]=t),n}function i7(e,t,n){let r,i=!1;return n=ym(e,!0,n,(o,a)=>{i=!0,r=o[a],delete o[a]}),i?ym(t,!1,n,(o,a)=>{o[a]=r}):n}function s4(e,t,n){let r,i=!1;return n=ym(e,!0,n,(o,a)=>{i=!0,r=o[a],delete o[a]}),i?ym(t,!1,n,(o,a)=>{o[a]===void 0&&(o[a]=r)}):n}function gd(e,t,n){return ym(e,!0,n,(r,i)=>{r[t]=r[i],delete r[i]})}function vs(e,t){return ym(e,!0,t,(n,r)=>delete n[r])}function ym(e,t,n,r){const i=e instanceof Array?e:e.split("."),o=i.slice(0,i.length-1),a=i[i.length-1];return vy(o,n,s=>{const l=Object.keys(s).includes(a);if(t&&!l)return s;const c={...s};return r(c,a),c})}function vy(e,t,n){const r=e instanceof Array?e:e.split(".");if(t={...t},r.length===0)return n(t);if(r[0].startsWith("{")){const i=r[0].substring(1,r[0].lastIndexOf("}")).split(",");for(const o of i)t[o]!=null&&(t[o]=vy(r.slice(1),t[o],n))}else if(r[0].endsWith("[]")){const i=r[0].substring(0,e[0].indexOf("["));t[i]instanceof Array&&(t[i]=t[i].map(o=>vy(r.slice(1),o,n)))}else if(r[0]==="*")for(const i of Object.keys(t))t[i]=vy(r.slice(1),t[i],n);else t[r[0]]!=null&&(t[r[0]]=vy(r.slice(1),t[r[0]],n));return t}function sIe(e,t,n){return ym(e,!0,t,(r,i)=>{typeof r[i]=="string"&&(r[i]=n[i]??i)})}var lIe=(e,t)=>({...e,...t}),yrn=class extends dt{constructor(){super(...arguments),this.beanName="chartSvc",this.activeCharts=new Set,this.activeChartComps=new Set,this.crossFilteringContext={lastSelectedChartId:""},this.isEnterprise=()=>this.agChartsExports.isEnterprise}wireBeans(e){this.visibleCols=e.visibleCols,this.rangeSvc=e.rangeSvc,this.agChartsExports=e.agChartsExports}updateChart(e){if(this.activeChartComps.size===0){ut(124);return}const t=[...this.activeChartComps].find(n=>n.getChartId()===e.chartId);if(!t){ut(125,{chartId:e.chartId});return}t.update(e)}getChartModels(){const e=[],t=n=>({...n,version:wi});return this.activeChartComps.forEach(n=>e.push(t(n.getChartModel()))),e}getChartRef(e){let t;return this.activeCharts.forEach(n=>{n.chartId===e&&(t=n)}),t}getChartComp(e){let t;return this.activeChartComps.forEach(n=>{n.getChartId()===e&&(t=n)}),t}getChartImageDataURL(e){let t;return this.activeChartComps.forEach(n=>{n.getChartId()===e.chartId&&(t=n.getChartImageDataURL(e.fileFormat))}),t}downloadChart(e){Array.from(this.activeChartComps).find(n=>n.getChartId()===e.chartId)?.downloadChart(e.dimensions,e.fileName,e.fileFormat)}openChartToolPanel(e){Array.from(this.activeChartComps).find(n=>n.getChartId()===e.chartId)?.openChartToolPanel(e.panel)}closeChartToolPanel(e){Array.from(this.activeChartComps).find(n=>n.getChartId()===e)?.closeChartToolPanel()}createChartFromCurrentRange(e="groupedColumn",t){const n=this.getSelectedRange();return this.createChart({cellRange:n,chartType:e,focusDialogOnOpen:!t})}restoreChart(e,t){if(!e){ut(126);return}e.version!==wi&&(e=nrn(e));let n,r,i,o;if(e.modelType==="pivot"?(this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"}),n=this.createCellRange(void 0,!0),r=!0,i=!0):(n=this.createCellRange(e.cellRange),o=e.chartPalette,i=e.suppressChartRanges),!!n)return this.createChart({...e,cellRange:n,pivotChart:r,suppressChartRanges:i,chartContainer:t,chartOptionsToRestore:e.chartOptions,chartPaletteToRestore:o})}createRangeChart(e,t){const n=this.createCellRange(e.cellRange);if(n)return this.createChart({...e,cellRange:n,focusDialogOnOpen:!t})}createPivotChart(e,t){this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"});const n=this.createCellRange(void 0,!0);if(n)return this.createChart({...e,cellRange:n,pivotChart:!0,suppressChartRanges:!0,focusDialogOnOpen:!t})}createCrossFilterChart(e,t){const n=this.createCellRange(e.cellRange);if(!n)return;const i=typeof e.suppressChartRanges<"u"&&e.suppressChartRanges!==null?e.suppressChartRanges:!0;return this.createChart({...e,cellRange:n,suppressChartRanges:i,crossFiltering:!0,focusDialogOnOpen:!t})}createChart(e){const t=wen(e,this.agChartsExports.isEnterprise);if(!t)return;e=t===!0?e:t;const{chartType:n,chartContainer:r}=e,i=this.gos.getCallback("createChartContainer"),o={...e,chartId:this.generateId(),chartType:MW(n),insideDialog:!(r||i),crossFilteringContext:this.crossFilteringContext,crossFilteringResetCallback:()=>this.activeChartComps.forEach(l=>l.crossFilteringReset())},a=new trn(o);this.createBean(a);const s=this.createChartRef(a);return r?r.appendChild(s.chartElement):i?i(s):a.addEventListener("destroyed",()=>{this.activeChartComps.delete(a),this.activeCharts.delete(s)}),s}createChartRef(e){const t={destroyChart:()=>{this.activeCharts.has(t)&&(this.destroyBean(e),this.activeChartComps.delete(e),this.activeCharts.delete(t))},focusChart:()=>{zu(e.getGui())},chartElement:e.getGui(),chart:e.getUnderlyingChart(),chartId:e.getChartModel().chartId};return this.activeCharts.add(t),this.activeChartComps.add(e),t}getSelectedRange(){const e=this.rangeSvc?.getCellRanges();if(!e||e.length===0)return{columns:[]};const t=new Set;let n=Number.MAX_VALUE,r=-Number.MAX_VALUE;if(e.forEach(({startRow:o,endRow:a,columns:s})=>{if(!(o&&a))return;s.forEach(p=>t.add(p));let{rowIndex:l,rowPinned:c}=o,{rowIndex:u,rowPinned:d}=a;if(c==="top"){if(d==="top")return;l=0}if(d==="bottom"){if(c==="bottom")return;u=this.beans.pageBounds.getLastRow()}l!==void 0&&(n=Math.min(n,l)),u!==void 0&&(r=Math.max(r,u))}),n===Number.MAX_VALUE||r===-Number.MAX_VALUE)return{columns:[]};const i=Array.from(t);return{columns:i,startColumn:i[0],startRow:{rowIndex:n,rowPinned:void 0},endRow:{rowIndex:r,rowPinned:void 0}}}generateId(){return`id-${Math.random().toString(36).substring(2,18)}`}createCellRange(e,t){const n=t?{rowStartIndex:null,rowStartPinned:void 0,rowEndIndex:null,rowEndPinned:void 0,columns:this.visibleCols.allCols.map(i=>i.getColId())}:e,r=n&&this.rangeSvc?.createPartialCellRangeFromRangeParams(n,!0);return r||ut(127,{allRange:t}),r}destroy(){this.activeCharts.forEach(e=>e.destroyChart()),super.destroy()}};function Mrn(e){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.getChartModels())}function Crn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.getChartRef(t))}function xrn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.getChartImageDataURL(t))}function wrn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.downloadChart(t))}function Srn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.openChartToolPanel(t))}function Arn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.closeChartToolPanel(t.chartId))}function Orn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.createRangeChart(t,!0))}function zrn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.createPivotChart(t,!0))}function Trn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.createCrossFilterChart(t,!0))}function Ern(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.updateChart(t))}function Rrn(e,t,n){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.restoreChart(t,n))}var Irn=`.ag-chart{display:flex;height:100%;position:relative;width:100%}.ag-chart-components-wrapper{display:flex}.ag-chart-canvas-wrapper,.ag-chart-components-wrapper{flex:1 1 auto;position:relative}.ag-chart-menu{background:var(--ag-background-color);background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);border-radius:var(--ag-border-radius);display:flex;flex-direction:row;gap:20px;padding:4px 2px;position:absolute;top:8px;width:auto;--ag-icon-size:20px}:where(.ag-ltr) .ag-chart-menu{justify-content:right;right:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-rtl) .ag-chart-menu{justify-content:left;left:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}.ag-chart-docked-container{min-width:var(--ag-chart-menu-panel-width);position:relative}:where(.ag-chart-menu-hidden)~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.ag-chart-tabbed-menu-header{cursor:default;flex:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-tabbed-menu-body{align-items:stretch;display:flex;flex:1 1 auto;overflow:hidden;position:relative;&:after{background:linear-gradient(var(--ag-background-color),transparent);content:"";display:block;height:16px;left:0;position:absolute;right:0;top:0}}.ag-chart-tab{overflow:hidden;overflow-y:auto;width:100%}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.ag-chart-settings-nav-bar{align-items:center;border-top:1px solid var(--ag-border-color);display:flex;height:30px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-chart-settings-card-selector{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:space-around;padding:0 10px}.ag-chart-settings-card-item{background-color:var(--ag-foreground-color);border-radius:4px;cursor:pointer;height:8px;position:relative;width:8px;&.ag-not-selected{opacity:.2}&:before{background-color:transparent;content:" ";display:block;height:20px;left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;width:20px}&.ag-selected{background-color:var(--ag-accent-color)}}.ag-chart-settings-next,.ag-chart-settings-prev{flex:none;position:relative;&:focus-within{border-radius:1px;box-shadow:var(--ag-focus-shadow)}}.ag-chart-settings-next-button,.ag-chart-settings-prev-button{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ag-chart-settings-mini-charts-container{flex:1 1 auto;overflow:hidden auto;position:relative}.ag-chart-settings-mini-wrapper{display:flex;flex-direction:column;left:0;min-height:100%;overflow:hidden;padding-bottom:var(--ag-widget-container-vertical-padding);position:absolute;top:0;width:100%;&.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}}.ag-chart-mini-thumbnail{border:1px solid var(--ag-border-color);border-radius:5px;cursor:pointer;padding:1px;&.ag-selected{border-color:var(--ag-accent-color);border-width:2px;padding:unset}&:focus-visible{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;padding-bottom:16px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-chrome-background-color)}.ag-chart-advanced-settings,.ag-chart-advanced-settings-wrapper{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-advanced-settings-section{border-bottom:1px solid var(--ag-border-color);display:flex;margin:0;padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding)}.ag-chart-empty-text{align-items:center;background-color:var(--ag-background-color);display:flex;height:100%;justify-content:center;top:0;width:100%}.ag-charts-font-size-color{align-self:stretch;display:flex;justify-content:space-between}.ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding);position:relative}.ag-charts-data-group-item:where(:not(:last-child)){margin-bottom:var(--ag-spacing)}.ag-chart-menu-icon{border-radius:var(--ag-border-radius);cursor:pointer;margin:2px 0;opacity:.8;&:hover{opacity:1}}.ag-chart-menu-toolbar-button{background-color:unset;border:0;border-radius:1px;padding:0 2px}.ag-chart-data-column-drag-handle{margin-left:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-title-bar{background-color:unset;position:relative}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding)*.5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-item:where(:not(.ag-charts-format-sub-level-group,.ag-pill-select,.ag-select)){height:var(--ag-list-item-height)}.ag-charts-data-group-item:where(.ag-picker-field){margin-top:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-container,.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-spacing)*2);padding:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-item,.ag-charts-format-top-level-group-item{margin:var(--ag-spacing) 0}.ag-charts-format-sub-level-group-container{display:flex;flex-direction:column;padding:var(--ag-widget-vertical-spacing) 0}.ag-charts-settings-group-container{display:grid;grid-template-columns:60px 1fr 60px 1fr 60px;padding:var(--ag-spacing);row-gap:8px;:where(.ag-chart-mini-thumbnail:nth-child(3n+1)){grid-column:1}:where(.ag-chart-mini-thumbnail:nth-child(3n+2)){grid-column:3}:where(.ag-chart-mini-thumbnail:nth-child(3n+3)){grid-column:5}}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0;:where(.ag-label:not(.ag-group-title-bar)){color:var(--ag-chart-menu-label-color)}:where(.ag-label-align-top .ag-label){margin-bottom:var(--ag-widget-vertical-spacing);margin-top:calc(var(--ag-widget-vertical-spacing)*.5)}:where(.ag-slider.ag-label-align-top .ag-label){margin-bottom:0}:where(label){display:inline-block}}.ag-chart-menu-panel{--ag-panel-background-color:var(--ag-chrome-background-color)}:where(.ag-ltr) .ag-chart-menu-panel{border-left:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-chart-menu-panel{border-right:1px solid var(--ag-border-color)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{border-top:none;font-weight:500;padding:0 calc(var(--ag-spacing)*1.5)}.ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500;padding:var(--ag-widget-vertical-spacing) 0}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-charts-data-group-container,.ag-charts-data-group-title-bar,.ag-charts-format-sub-level-group,.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-group-item:last-child,.ag-charts-format-top-level-group,.ag-charts-format-top-level-group-item,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container{margin:0;padding:0}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:relative}.ag-charts-data-group,.ag-charts-format-top-level-group{border-top:1px solid var(--ag-border-color)}:where(.ag-charts-data-group) .ag-charts-data-group-container,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container,:where(.ag-charts-settings-group) .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-no-header-group-container>*,.ag-charts-format-top-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-advanced-settings-top-level-group-container{margin:0}:where(.ag-charts-advanced-settings-top-level-group){.ag-charts-advanced-settings-top-level-group-container,.ag-charts-advanced-settings-top-level-group-title-bar{padding:0 var(--ag-widget-container-horizontal-padding)}}.ag-charts-advanced-settings-top-level-group-item{margin-bottom:0;margin-top:calc(var(--ag-widget-vertical-spacing)*2)}.ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-angle-select{align-items:center;display:flex}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-border-color);border-radius:12px;display:block;height:24px;position:relative;width:24px}.ag-angle-select-child-circle{background-color:var(--ag-foreground-color);border-radius:3px;height:6px;left:12px;margin-left:-3px;margin-top:-4px;position:absolute;top:4px;width:6px}.ag-slider-wrapper{display:flex;:where(.ag-input-field){flex:1 1 auto}}.ag-color-panel{display:flex;flex-direction:column;padding:var(--ag-spacing);text-align:center;width:100%}.ag-spectrum-color{cursor:default;flex:1 1 auto;overflow:visible;position:relative}.ag-spectrum-fill{inset:0;position:absolute}.ag-spectrum-val{background-image:linear-gradient(0deg,#000,hsla(20,42%,65%,0));cursor:pointer}.ag-spectrum-dragger{background:#000;border:3px solid #fff;border-radius:18px;box-shadow:0 0 2px 0 rgba(0,0,0,.24);cursor:pointer;height:18px;pointer-events:none;position:absolute;width:18px}.ag-spectrum-alpha,.ag-spectrum-hue{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(270deg,red 3%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%;width:100%}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>') 0 0 /4px 4px;height:100%;width:100%}.ag-spectrum-tool{border-radius:2px;cursor:pointer;height:11px;margin-bottom:10px;position:relative}.ag-spectrum-slider{border:2px solid #fff;border-radius:13px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:13px;margin-top:-12px;pointer-events:none;position:absolute;width:13px}:where(.ag-spectrum-alpha) .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) var(--ag-background-color)}.ag-recent-colors{display:flex;gap:6px;margin-bottom:2px;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing)}.ag-recent-color{border:1px solid var(--ag-border-color);cursor:pointer}.ag-angle-select[disabled]{opacity:.5;pointer-events:none}:where(.ag-ltr) .ag-angle-select-field,:where(.ag-ltr) .ag-slider-field{margin-right:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-angle-select-field,:where(.ag-rtl) .ag-slider-field{margin-left:calc(var(--ag-spacing)*2)}.ag-color-dialog{border-radius:5px}:where(.ag-color-picker){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-picker-field-display{align-items:center;display:flex;flex-direction:row;min-height:var(--ag-list-item-height)}}:where(.ag-ltr) .ag-color-picker-color,:where(.ag-ltr) .ag-color-picker-value{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-color-picker-color,:where(.ag-rtl) .ag-color-picker-value{margin-left:var(--ag-spacing)}.ag-spectrum-tools{padding-bottom:0;padding-left:0;padding-right:0}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:2px}.ag-color-input-color,.ag-color-picker-color,.ag-recent-color{border-radius:4px}.ag-spectrum-sat{background-image:linear-gradient(90deg,#fff,hsla(20,42%,65%,0))}.ag-recent-color,.ag-spectrum-color,.ag-spectrum-slider{&:where(:not(:disabled,[readonly])):focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-color-input-color,.ag-color-picker-color{border:1px solid var(--ag-border-color);border-radius:2px;height:var(--ag-icon-size);width:var(--ag-icon-size)}:where(.ag-color-input){.ag-color-input-color{position:absolute}}:where(.ag-ltr) :where(.ag-color-input){.ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-color-input){.ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-right:var(--ag-spacing)}}.ag-range-field{align-items:center;display:flex;:where(.ag-input-wrapper){height:100%}}.ag-range-field-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;height:100%;overflow:visible;padding:0;width:100%;&:disabled{opacity:.5}}.ag-range-field-input{&::-webkit-slider-runnable-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-webkit-slider-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-webkit-slider-runnable-track{background-color:var(--ag-accent-color)}}.ag-range-field-input{&::-moz-range-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-moz-ag-range-thumb{-moz-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-moz-ag-range-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-moz-ag-range-track{background-color:var(--ag-accent-color)}}`,xot=28,wot=6;function Bhe(e){return e&&e.match(/\d+\.\d+\.\d+/)}function Prn({gridMajorVersion:e,chartsMajorVersion:t}){const n=parseInt(e,10),r=parseInt(t,10),i=n-xot,o=r-wot,a=i>=0;return i===o&&a}function Drn(e){if(!Bhe(e))return;const[t,n]=e.split(".")||[],r=`${t}.${n}.x`,o=parseInt(t,10)-xot+wot;if(o<0)return;const s=`${o}.${n}.x`;return{gridMajorMinor:r,chartsMajorMinor:s}}function s8({type:e,gridVersion:t,chartsVersion:n}){const r="AG Grid: AG Grid version is incompatible. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.",i=Drn(t);if(!i)return r;const{gridMajorMinor:o,chartsMajorMinor:a}=i;return e==="incompatible"?`AG Grid version ${t} and AG Charts version ${n} is not supported. AG Grid version ${o} should be used with AG Chart ${a}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:e==="invalidCharts"?`AG Grid version ${o} should be used with AG Chart ${a} not ${n}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:r}function krn({gridVersion:e,chartsVersion:t}){if(!Bhe(t))return{isValid:!1,message:s8({type:"invalidCharts",gridVersion:e,chartsVersion:t})};if(!Bhe(e))return{isValid:!1,message:s8({type:"invalidGrid",gridVersion:e,chartsVersion:t})};const[n,r]=e.split(".")||[],[i,o,a]=t.split(".")||[],s=Prn({gridMajorVersion:n,chartsMajorVersion:i});return s&&r===o||a.includes("beta")?{isValid:!0}:!s||r!==o?{isValid:!1,message:s8({type:"incompatible",gridVersion:e,chartsVersion:t})}:{isValid:!1,message:s8({type:"invalid",gridVersion:e,chartsVersion:t})}}var Lrn={linked:"linked",unlinked:"unlinked",chartsMenu:"menu-alt",chartsDownload:"save",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",chartsColorPicker:"small-down",chartsThemePrevious:"previous",chartsThemeNext:"next"},_rn={getChartModels:Mrn,getChartRef:Crn,getChartImageDataURL:xrn,downloadChart:wrn,openChartToolPanel:Srn,closeChartToolPanel:Arn,createRangeChart:Orn,createPivotChart:zrn,createCrossFilterChart:Trn,updateChart:Ern,restoreChart:Rrn},cIe=[Pit,es,y3,pM,GK],uIe="IntegratedCharts",Nrn={moduleName:uIe,version:wi,dependsOn:cIe,validate:()=>({isValid:!1,message:Cet(257)}),with:e=>{if(e.setup(),e.setGridContext?.(!0),e.isEnterprise&&e.setLicenseKey){const t={setLicenseKey:e.setLicenseKey};X5.setChartsLicenseManager(t)}return{moduleName:uIe,version:wi,icons:Lrn,apiFunctions:_rn,dependsOn:cIe,css:[Irn],validate:()=>krn({gridVersion:wi,chartsVersion:e.VERSION}),beans:[aJt.bind(null,e),yrn,hen,cen,sen,den,$Jt,oen]}}},dIe=[vVt,zKt,lXt,vYt,HKt,tQt,RXt,IXt,Pit,PXt,DKt,Oit,gKt,mKt,FZt,WZt,UXt,SYt,K9t,Zye,dYt,bKt,GQt,uZt,oJt],pIe="AllEnterprise",Frn={with:e=>({moduleName:pIe,version:wi,dependsOn:[...dIe,Nrn.with(e),VZt.with(e)]}),moduleName:pIe,version:wi,dependsOn:dIe},Y$={black:"#000",white:"#fff"},Lre={300:"#e57373",500:"#f44336",700:"#d32f2f"},_re={A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Nre={300:"#7986cb",500:"#3f51b5",700:"#303f9f"},Fre={300:"#64b5f6",500:"#2196f3",700:"#1976d2"},Wre={300:"#81c784",500:"#4caf50",700:"#388e3c"},qre={300:"#ffb74d",500:"#ff9800",700:"#f57c00"},mMe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}function p1(e){"@babel/helpers - typeof";return p1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p1(e)}function Bre(e){return e&&p1(e)==="object"&&e.constructor===Object}function Xx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},r=n.clone?Y({},e):e;return Bre(e)&&Bre(t)&&Object.keys(t).forEach(function(i){i!=="__proto__"&&(Bre(t[i])&&i in e?r[i]=Xx(e[i],t[i],n):r[i]=t[i])}),r}var jre={exports:{}},Hre,hIe;function Wrn(){if(hIe)return Hre;hIe=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hre=e,Hre}var Vre,fIe;function qrn(){if(fIe)return Vre;fIe=1;var e=Wrn();function t(){}function n(){}return n.resetWarningCache=t,Vre=function(){function r(a,s,l,c,u,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Vre}var gIe;function Brn(){return gIe||(gIe=1,jre.exports=qrn()()),jre.exports}var XA=Brn();const Z=qn(XA);function jrn(e,t){if(p1(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(p1(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zz(e){var t=jrn(e,"string");return p1(t)=="symbol"?t:t+""}function tn(e,t,n){return(t=zz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sP(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var Gre={exports:{}},fs={};/** @license React v17.0.2
 * 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 mIe;function Hrn(){if(mIe)return fs;mIe=1;var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,h=60122,g=60117,m=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),n=y("react.fragment"),r=y("react.strict_mode"),i=y("react.profiler"),o=y("react.provider"),a=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),p=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),m=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function M(F){if(typeof F=="object"&&F!==null){var N=F.$$typeof;switch(N){case e:switch(F=F.type,F){case n:case i:case r:case l:case c:return F;default:switch(F=F&&F.$$typeof,F){case a:case s:case d:case u:case o:return F;default:return N}}case t:return N}}}var C=o,x=e,w=s,S=n,A=d,z=u,O=t,T=i,R=r,P=l;return fs.ContextConsumer=a,fs.ContextProvider=C,fs.Element=x,fs.ForwardRef=w,fs.Fragment=S,fs.Lazy=A,fs.Memo=z,fs.Portal=O,fs.Profiler=T,fs.StrictMode=R,fs.Suspense=P,fs.isAsyncMode=function(){return!1},fs.isConcurrentMode=function(){return!1},fs.isContextConsumer=function(F){return M(F)===a},fs.isContextProvider=function(F){return M(F)===o},fs.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===e},fs.isForwardRef=function(F){return M(F)===s},fs.isFragment=function(F){return M(F)===n},fs.isLazy=function(F){return M(F)===d},fs.isMemo=function(F){return M(F)===u},fs.isPortal=function(F){return M(F)===t},fs.isProfiler=function(F){return M(F)===i},fs.isStrictMode=function(F){return M(F)===r},fs.isSuspense=function(F){return M(F)===l},fs.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===n||F===i||F===m||F===r||F===l||F===c||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===d||F.$$typeof===u||F.$$typeof===o||F.$$typeof===a||F.$$typeof===s||F.$$typeof===g||F.$$typeof===p||F[0]===h)},fs.typeOf=M,fs}var vIe;function Vrn(){return vIe||(vIe=1,Gre.exports=Hrn()),Gre.exports}Vrn();function vMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Grn(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(function(r){return r+r})),n?"rgb".concat(n.length===4?"a":"","(").concat(n.map(function(r,i){return i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3}).join(", "),")"):""}function $rn(e){e=Tz(e);var t=e,n=t.values,r=n[0],i=n[1]/100,o=n[2]/100,a=i*Math.min(o,1-o),s=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(d+r/30)%12;return o-a*Math.max(Math.min(p-3,9-p,1),-1)},l="rgb",c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(n[3])),KK({type:l,values:c})}function Tz(e){if(e.type)return e;if(e.charAt(0)==="#")return Tz(Grn(e));var t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla"].indexOf(n)===-1)throw new Error(sP(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map(function(i){return parseFloat(i)}),{type:n,values:r}}function KK(e){var t=e.type,n=e.values;return t.indexOf("rgb")!==-1?n=n.map(function(r,i){return i<3?parseInt(r,10):r}):t.indexOf("hsl")!==-1&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Urn(e,t){var n=jhe(e),r=jhe(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function jhe(e){e=Tz(e);var t=e.type==="hsl"?Tz($rn(e)).values:e.values;return t=t.map(function(n){return n/=255,n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function EA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return jhe(e)>.5?CW(e,t):xW(e,t)}function Xrn(e,t){return Ho(e,t)}function Ho(e,t){return e=Tz(e),t=vMe(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.values[3]=t,KK(e)}function CW(e,t){if(e=Tz(e),t=vMe(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]*=1-t;return KK(e)}function xW(e,t){if(e=Tz(e),t=vMe(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return KK(e)}function Lt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fn(e,t){if(e==null)return{};var n,r,i=Lt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var o0=["xs","sm","md","lg","xl"];function Yrn(e){var t=e.values,n=t===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=r===void 0?"px":r,o=e.step,a=o===void 0?5:o,s=fn(e,["values","unit","step"]);function l(h){var g=typeof n[h]=="number"?n[h]:h;return"@media (min-width:".concat(g).concat(i,")")}function c(h){var g=o0.indexOf(h)+1,m=n[o0[g]];if(g===o0.length)return l("xs");var b=typeof m=="number"&&g>0?m:h;return"@media (max-width:".concat(b-a/100).concat(i,")")}function u(h,g){var m=o0.indexOf(g);return m===o0.length-1?l(h):"@media (min-width:".concat(typeof n[h]=="number"?n[h]:h).concat(i,") and ")+"(max-width:".concat((m!==-1&&typeof n[o0[m+1]]=="number"?n[o0[m+1]]:g)-a/100).concat(i,")")}function d(h){return u(h,h)}function p(h){return n[h]}return Y({keys:o0,values:n,up:l,down:c,between:u,only:d,width:p},s)}function Krn(e,t,n){var r;return Y({gutters:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",`
      paddingLeft: theme.spacing(2),
      paddingRight: theme.spacing(2),
      [theme.breakpoints.up('sm')]: {
        paddingLeft: theme.spacing(3),
        paddingRight: theme.spacing(3),
      },
      `].join(`
`)),Y({paddingLeft:t(2),paddingRight:t(2)},o,tn({},e.up("sm"),Y({paddingLeft:t(3),paddingRight:t(3)},o[e.up("sm")])))},toolbar:(r={minHeight:56},tn(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),tn(r,e.up("sm"),{minHeight:64}),r)},n)}var bIe={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Y$.white,default:mMe[50]},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}},$re={text:{primary:Y$.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:mMe[800],default:"#303030"},action:{active:Y$.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}};function yIe(e,t,n,r){var i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=xW(e.main,i):t==="dark"&&(e.dark=CW(e.main,o)))}function Qrn(e){var t=e.primary,n=t===void 0?{light:Nre[300],main:Nre[500],dark:Nre[700]}:t,r=e.secondary,i=r===void 0?{light:_re.A200,main:_re.A400,dark:_re.A700}:r,o=e.error,a=o===void 0?{light:Lre[300],main:Lre[500],dark:Lre[700]}:o,s=e.warning,l=s===void 0?{light:qre[300],main:qre[500],dark:qre[700]}:s,c=e.info,u=c===void 0?{light:Fre[300],main:Fre[500],dark:Fre[700]}:c,d=e.success,p=d===void 0?{light:Wre[300],main:Wre[500],dark:Wre[700]}:d,h=e.type,g=h===void 0?"light":h,m=e.contrastThreshold,b=m===void 0?3:m,y=e.tonalOffset,M=y===void 0?.2:y,C=fn(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(z){var O=Urn(z,$re.text.primary)>=b?$re.text.primary:bIe.text.primary;return O}var w=function(O){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(O=Y({},O),!O.main&&O[T]&&(O.main=O[T]),!O.main)throw new Error(sP(4,T));if(typeof O.main!="string")throw new Error(sP(5,JSON.stringify(O.main)));return yIe(O,"light",R,M),yIe(O,"dark",P,M),O.contrastText||(O.contrastText=x(O.main)),O},S={dark:$re,light:bIe},A=Xx(Y({common:Y$,type:g,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(u),success:w(p),grey:mMe,contrastThreshold:b,getContrastText:x,augmentColor:w,tonalOffset:M},S[g]),C);return A}function Sot(e){return Math.round(e*1e5)/1e5}function Zrn(e){return Sot(e)}var MIe={textTransform:"uppercase"},CIe='"Roboto", "Helvetica", "Arial", sans-serif';function Jrn(e,t){var n=typeof t=="function"?t(e):t,r=n.fontFamily,i=r===void 0?CIe:r,o=n.fontSize,a=o===void 0?14:o,s=n.fontWeightLight,l=s===void 0?300:s,c=n.fontWeightRegular,u=c===void 0?400:c,d=n.fontWeightMedium,p=d===void 0?500:d,h=n.fontWeightBold,g=h===void 0?700:h,m=n.htmlFontSize,b=m===void 0?16:m,y=n.allVariants,M=n.pxToRem,C=fn(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=M||function(z){return"".concat(z/b*x,"rem")},S=function(O,T,R,P,F){return Y({fontFamily:i,fontWeight:O,fontSize:w(T),lineHeight:R},i===CIe?{letterSpacing:"".concat(Sot(P/T),"em")}:{},F,y)},A={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(u,48,1.167,0),h4:S(u,34,1.235,.25),h5:S(u,24,1.334,0),h6:S(p,20,1.6,.15),subtitle1:S(u,16,1.75,.15),subtitle2:S(p,14,1.57,.1),body1:S(u,16,1.5,.15),body2:S(u,14,1.43,.15),button:S(p,14,1.75,.4,MIe),caption:S(u,12,1.66,.4),overline:S(u,12,2.66,1,MIe)};return Xx(Y({htmlFontSize:b,pxToRem:w,round:Zrn,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:g},A),C,{clone:!1})}var ein=.2,tin=.14,nin=.12;function hl(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(ein,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(tin,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(nin,")")].join(",")}var rin=["none",hl(0,2,1,-1,0,1,1,0,0,1,3,0),hl(0,3,1,-2,0,2,2,0,0,1,5,0),hl(0,3,3,-2,0,3,4,0,0,1,8,0),hl(0,2,4,-1,0,4,5,0,0,1,10,0),hl(0,3,5,-1,0,5,8,0,0,1,14,0),hl(0,3,5,-1,0,6,10,0,0,1,18,0),hl(0,4,5,-2,0,7,10,1,0,2,16,1),hl(0,5,5,-3,0,8,10,1,0,3,14,2),hl(0,5,6,-3,0,9,12,1,0,3,16,2),hl(0,6,6,-3,0,10,14,1,0,4,18,3),hl(0,6,7,-4,0,11,15,1,0,4,20,3),hl(0,7,8,-4,0,12,17,2,0,5,22,4),hl(0,7,8,-4,0,13,19,2,0,5,24,4),hl(0,7,9,-4,0,14,21,2,0,5,26,4),hl(0,8,9,-5,0,15,22,2,0,6,28,5),hl(0,8,10,-5,0,16,24,2,0,6,30,5),hl(0,8,11,-5,0,17,26,2,0,6,32,5),hl(0,9,11,-5,0,18,28,2,0,7,34,6),hl(0,9,12,-6,0,19,29,2,0,7,36,6),hl(0,10,13,-6,0,20,31,3,0,8,38,7),hl(0,10,13,-6,0,21,33,3,0,8,40,7),hl(0,10,14,-6,0,22,35,3,0,8,42,7),hl(0,11,14,-7,0,23,36,3,0,9,44,8),hl(0,11,15,-7,0,24,38,3,0,9,46,8)],iin={borderRadius:4};function Hhe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oin(e){if(Array.isArray(e))return Hhe(e)}function ain(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bMe(e,t){if(e){if(typeof e=="string")return Hhe(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hhe(e,t):void 0}}function sin(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T6(e){return oin(e)||ain(e)||bMe(e)||sin()}function K$(e,t){return t?Xx(e,t,{clone:!1}):e}var lin={xs:0,sm:600,md:960,lg:1280,xl:1920},xIe={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(lin[t],"px)")}};function Aot(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||xIe;return t.reduce(function(a,s,l){return a[r.up(r.keys[l])]=n(t[l]),a},{})}if(p1(t)==="object"){var i=e.theme.breakpoints||xIe;return Object.keys(t).reduce(function(a,s){return a[i.up(s)]=n(t[s]),a},{})}var o=n(t);return o}function wIe(e,t){return!t||typeof t!="string"?null:t.split(".").reduce(function(n,r){return n&&n[r]?n[r]:null},e)}function Fr(e){var t=e.prop,n=e.cssProperty,r=n===void 0?e.prop:n,i=e.themeKey,o=e.transform,a=function(l){if(l[t]==null)return null;var c=l[t],u=l.theme,d=wIe(u,i)||{},p=function(g){var m;return typeof d=="function"?m=d(g):Array.isArray(d)?m=d[g]||g:(m=wIe(d,g)||g,o&&(m=o(m))),r===!1?m:tn({},r,m)};return Aot(l,c,p)};return a.propTypes={},a.filterProps=[t],a}function fM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(o){return t.reduce(function(a,s){var l=s(o);return l?K$(a,l):a},{})};return r.propTypes={},r.filterProps=t.reduce(function(i,o){return i.concat(o.filterProps)},[]),r}function E6(e){return typeof e!="number"?e:"".concat(e,"px solid")}var cin=Fr({prop:"border",themeKey:"borders",transform:E6}),uin=Fr({prop:"borderTop",themeKey:"borders",transform:E6}),din=Fr({prop:"borderRight",themeKey:"borders",transform:E6}),pin=Fr({prop:"borderBottom",themeKey:"borders",transform:E6}),hin=Fr({prop:"borderLeft",themeKey:"borders",transform:E6}),fin=Fr({prop:"borderColor",themeKey:"palette"}),gin=Fr({prop:"borderRadius",themeKey:"shape"}),min=fM(cin,uin,din,pin,hin,fin,gin);function SIe(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function vin(e){var t=function(r){var i=e(r);return r.css?Y({},K$(i,e(Y({theme:r.theme},r.css))),SIe(r.css,[e.filterProps])):r.sx?Y({},K$(i,e(Y({theme:r.theme},r.sx))),SIe(r.sx,[e.filterProps])):i};return t.propTypes={},t.filterProps=["css","sx"].concat(T6(e.filterProps)),t}var bin=Fr({prop:"displayPrint",cssProperty:!1,transform:function(t){return{"@media print":{display:t}}}}),yin=Fr({prop:"display"}),Min=Fr({prop:"overflow"}),Cin=Fr({prop:"textOverflow"}),xin=Fr({prop:"visibility"}),win=Fr({prop:"whiteSpace"});const Sin=fM(bin,yin,Min,Cin,xin,win);var Ain=Fr({prop:"flexBasis"}),Oin=Fr({prop:"flexDirection"}),zin=Fr({prop:"flexWrap"}),Tin=Fr({prop:"justifyContent"}),Ein=Fr({prop:"alignItems"}),Rin=Fr({prop:"alignContent"}),Iin=Fr({prop:"order"}),Pin=Fr({prop:"flex"}),Din=Fr({prop:"flexGrow"}),kin=Fr({prop:"flexShrink"}),Lin=Fr({prop:"alignSelf"}),_in=Fr({prop:"justifyItems"}),Nin=Fr({prop:"justifySelf"}),Fin=fM(Ain,Oin,zin,Tin,Ein,Rin,Iin,Pin,Din,kin,Lin,_in,Nin),Win=Fr({prop:"gridGap"}),qin=Fr({prop:"gridColumnGap"}),Bin=Fr({prop:"gridRowGap"}),jin=Fr({prop:"gridColumn"}),Hin=Fr({prop:"gridRow"}),Vin=Fr({prop:"gridAutoFlow"}),Gin=Fr({prop:"gridAutoColumns"}),$in=Fr({prop:"gridAutoRows"}),Uin=Fr({prop:"gridTemplateColumns"}),Xin=Fr({prop:"gridTemplateRows"}),Yin=Fr({prop:"gridTemplateAreas"}),Kin=Fr({prop:"gridArea"}),Qin=fM(Win,qin,Bin,jin,Hin,Vin,Gin,$in,Uin,Xin,Yin,Kin),Zin=Fr({prop:"color",themeKey:"palette"}),Jin=Fr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),eon=fM(Zin,Jin),ton=Fr({prop:"position"}),non=Fr({prop:"zIndex",themeKey:"zIndex"}),ron=Fr({prop:"top"}),ion=Fr({prop:"right"}),oon=Fr({prop:"bottom"}),aon=Fr({prop:"left"});const son=fM(ton,non,ron,ion,oon,aon);var lon=Fr({prop:"boxShadow",themeKey:"shadows"});function Aw(e){return e<=1?"".concat(e*100,"%"):e}var con=Fr({prop:"width",transform:Aw}),uon=Fr({prop:"maxWidth",transform:Aw}),don=Fr({prop:"minWidth",transform:Aw}),pon=Fr({prop:"height",transform:Aw}),hon=Fr({prop:"maxHeight",transform:Aw}),fon=Fr({prop:"minHeight",transform:Aw});Fr({prop:"size",cssProperty:"width",transform:Aw});Fr({prop:"size",cssProperty:"height",transform:Aw});var gon=Fr({prop:"boxSizing"}),mon=fM(con,uon,don,pon,hon,fon,gon);function von(e){if(Array.isArray(e))return e}function bon(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function yon(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xu(e,t){return von(e)||bon(e,t)||bMe(e,t)||yon()}function Mon(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Con={m:"margin",p:"padding"},xon={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},AIe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},won=Mon(function(e){if(e.length>2)if(AIe[e])e=AIe[e];else return[e];var t=e.split(""),n=Xu(t,2),r=n[0],i=n[1],o=Con[r],a=xon[i]||"";return Array.isArray(a)?a.map(function(s){return o+s}):[o+a]}),Oot=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function zot(e){var t=e.spacing||8;return typeof t=="number"?function(n){return t*n}:Array.isArray(t)?function(n){return t[n]}:typeof t=="function"?t:function(){}}function Son(e,t){if(typeof t=="string"||t==null)return t;var n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:"-".concat(r)}function Aon(e,t){return function(n){return e.reduce(function(r,i){return r[i]=Son(t,n),r},{})}}function yMe(e){var t=e.theme,n=zot(t);return Object.keys(e).map(function(r){if(Oot.indexOf(r)===-1)return null;var i=won(r),o=Aon(i,n),a=e[r];return Aot(e,a,o)}).reduce(K$,{})}yMe.propTypes={};yMe.filterProps=Oot;var Oon=Fr({prop:"fontFamily",themeKey:"typography"}),zon=Fr({prop:"fontSize",themeKey:"typography"}),Ton=Fr({prop:"fontStyle",themeKey:"typography"}),Eon=Fr({prop:"fontWeight",themeKey:"typography"}),Ron=Fr({prop:"letterSpacing"}),Ion=Fr({prop:"lineHeight"}),Pon=Fr({prop:"textAlign"}),Don=fM(Oon,zon,Ton,Eon,Ron,Ion,Pon);function kon(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=zot({spacing:e}),n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length===0?t(1):o.length===1?t(o[0]):o.map(function(s){if(typeof s=="string")return s;var l=t(s);return typeof l=="number"?"".concat(l,"px"):l}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var OIe={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)"},lh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zIe(e){return"".concat(Math.round(e),"ms")}const Lon={easing:OIe,duration:lh,create:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.duration,i=r===void 0?lh.standard:r,o=n.easing,a=o===void 0?OIe.easeInOut:o,s=n.delay,l=s===void 0?0:s;return fn(n,["duration","easing","delay"]),(Array.isArray(t)?t:[t]).map(function(c){return"".concat(c," ").concat(typeof i=="string"?i:zIe(i)," ").concat(a," ").concat(typeof l=="string"?l:zIe(l))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var n=t/36;return Math.round((4+15*Math.pow(n,.25)+n/5)*10)}};var Tot={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function C3(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.breakpoints,n=t===void 0?{}:t,r=e.mixins,i=r===void 0?{}:r,o=e.palette,a=o===void 0?{}:o,s=e.spacing,l=e.typography,c=l===void 0?{}:l,u=fn(e,["breakpoints","mixins","palette","spacing","typography"]),d=Qrn(a),p=Yrn(n),h=kon(s),g=Xx({breakpoints:p,direction:"ltr",mixins:Krn(p,h,i),overrides:{},palette:d,props:{},shadows:rin,typography:Jrn(d,c),spacing:h,shape:iin,transitions:Lon,zIndex:Tot},u),m=arguments.length,b=new Array(m>1?m-1:0),y=1;y<m;y++)b[y-1]=arguments[y];return g=b.reduce(function(M,C){return Xx(M,C)},g),g}function _on(){return C3.apply(void 0,arguments)}var Non=typeof Symbol=="function"&&Symbol.for;const Eot=Non?Symbol.for("mui.nested"):"__THEME_NESTED__";var Fon=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Won(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,n=t===void 0?!1:t,r=e.productionPrefix,i=r===void 0?"jss":r,o=e.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),l=0,c=function(){return l+=1,l};return function(u,d){var p=d.options.name;if(p&&p.indexOf("Mui")===0&&!d.options.link&&!n){if(Fon.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var h="".concat(s).concat(p,"-").concat(u.key);return!d.options.theme[Eot]||a!==""?h:"".concat(h,"-").concat(c())}return"".concat(s).concat(i).concat(c())}}function QK(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i=t.props[n],o;for(o in i)r[o]===void 0&&(r[o]=i[o]);return r}var TIe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R6=(typeof window>"u"?"undefined":TIe(window))==="object"&&(typeof document>"u"?"undefined":TIe(document))==="object"&&document.nodeType===9;function EIe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zz(r.key),r)}}function so(e,t,n){return t&&EIe(e.prototype,t),n&&EIe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q$(e,t){return Q$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Q$(e,t)}function ha(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Q$(e,t)}function xn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var qon={}.constructor;function Vhe(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Vhe);if(e.constructor!==qon)return e;var t={};for(var n in e)t[n]=Vhe(e[n]);return t}function MMe(e,t,n){e===void 0&&(e="unnamed");var r=n.jss,i=Vhe(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var RIe=function(t,n){for(var r="",i=0;i<t.length&&t[i]!=="!important";i++)r&&(r+=n),r+=t[i];return r},BO=function(t){if(!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&t[r]!=="!important";r++)n&&(n+=", "),n+=RIe(t[r]," ");else n=RIe(t,", ");return t[t.length-1]==="!important"&&(n+=" !important"),n};function xD(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
`,space:" "}}function l4(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function wW(e,t,n){n===void 0&&(n={});var r="";if(!t)return r;var i=n,o=i.indent,a=o===void 0?0:o,s=t.fallbacks;n.format===!1&&(a=-1/0);var l=xD(n),c=l.linebreak,u=l.space;if(e&&a++,s)if(Array.isArray(s))for(var d=0;d<s.length;d++){var p=s[d];for(var h in p){var g=p[h];g!=null&&(r&&(r+=c),r+=l4(h+":"+u+BO(g)+";",a))}}else for(var m in s){var b=s[m];b!=null&&(r&&(r+=c),r+=l4(m+":"+u+BO(b)+";",a))}for(var y in t){var M=t[y];M!=null&&y!=="fallbacks"&&(r&&(r+=c),r+=l4(y+":"+u+BO(M)+";",a))}return!r&&!n.allowEmpty||!e?r:(a--,r&&(r=""+c+r+c),l4(""+e+u+"{"+r,a)+l4("}",a))}var Bon=/([[\].#*$><+~=|^:(),"'`\s])/g,IIe=typeof CSS<"u"&&CSS.escape,CMe=(function(e){return IIe?IIe(e):e.replace(Bon,"\\$1")}),Rot=(function(){function e(n,r,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=r,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(r,i,o){if(i===void 0)return this.style[r];var a=o?o.force:!1;if(!a&&this.style[r]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,r,this));var l=s==null||s===!1,c=r in this.style;if(l&&!c&&!a)return this;var u=l&&c;if(u?delete this.style[r]:this.style[r]=s,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,r):this.renderer.setProperty(this.renderable,r,s),this;var d=this.options.sheet;return d&&d.attached,this},e})(),Ghe=(function(e){ha(t,e);function t(r,i,o){var a;a=e.call(this,r,i,o)||this;var s=o.selector,l=o.scoped,c=o.sheet,u=o.generateId;return s?a.selectorText=s:l!==!1&&(a.id=u(xn(xn(a)),c),a.selectorText="."+CMe(a.id)),a}var n=t.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=BO(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?Y({},i,{allowEmpty:!0}):i;return wW(this.selectorText,this.style,s)},so(t,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t})(Rot),jon={onCreateRule:function(t,n,r){return t[0]==="@"||r.parent&&r.parent.type==="keyframes"?null:new Ghe(t,n,r)}},Ure={indent:1,children:!0},Hon=/@([\w-]+)/,Von=(function(){function e(n,r,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(Hon);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new ZK(Y({},i,{parent:this}));for(var a in r)this.rules.add(a,r[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.indexOf=function(r){return this.rules.indexOf(r)},t.addRule=function(r,i,o){var a=this.rules.add(r,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(r,i,o){var a=this.rules.replace(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(r){r===void 0&&(r=Ure);var i=xD(r),o=i.linebreak;if(r.indent==null&&(r.indent=Ure.indent),r.children==null&&(r.children=Ure.children),r.children===!1)return this.query+" {}";var a=this.rules.toString(r);return a?this.query+" {"+o+a+o+"}":""},e})(),Gon=/@container|@media|@supports\s+/,$on={onCreateRule:function(t,n,r){return Gon.test(t)?new Von(t,n,r):null}},Xre={indent:1,children:!0},Uon=/@keyframes\s+([\w-]+)/,$he=(function(){function e(n,r,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(Uon);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,l=i.generateId;this.id=a===!1?this.name:CMe(l(this,s)),this.rules=new ZK(Y({},i,{parent:this}));for(var c in r)this.rules.add(c,r[c],Y({},i,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(r){r===void 0&&(r=Xre);var i=xD(r),o=i.linebreak;if(r.indent==null&&(r.indent=Xre.indent),r.children==null&&(r.children=Xre.children),r.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(r);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},e})(),Xon=/@keyframes\s+/,Yon=/\$([\w-]+)/g,Uhe=function(t,n){return typeof t=="string"?t.replace(Yon,function(r,i){return i in n?n[i]:r}):t},PIe=function(t,n,r){var i=t[n],o=Uhe(i,r);o!==i&&(t[n]=o)},Kon={onCreateRule:function(t,n,r){return typeof t=="string"&&Xon.test(t)?new $he(t,n,r):null},onProcessStyle:function(t,n,r){return n.type!=="style"||!r||("animation-name"in t&&PIe(t,"animation-name",r.keyframes),"animation"in t&&PIe(t,"animation",r.keyframes)),t},onChangeValue:function(t,n,r){var i=r.options.sheet;if(!i)return t;switch(n){case"animation":return Uhe(t,i.keyframes);case"animation-name":return Uhe(t,i.keyframes);default:return t}}},Qon=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?Y({},i,{allowEmpty:!0}):i;return wW(this.key,this.style,s)},t})(Rot),Zon={onCreateRule:function(t,n,r){return r.parent&&r.parent.type==="keyframes"?new Qon(t,n,r):null}},Jon=(function(){function e(n,r,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=r,this.options=i}var t=e.prototype;return t.toString=function(r){var i=xD(r),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=wW(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return wW(this.at,this.style,r)},e})(),ean=/@font-face/,tan={onCreateRule:function(t,n,r){return ean.test(t)?new Jon(t,n,r):null}},nan=(function(){function e(n,r,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=r,this.options=i}var t=e.prototype;return t.toString=function(r){return wW(this.key,this.style,r)},e})(),ran={onCreateRule:function(t,n,r){return t==="@viewport"||t==="@-ms-viewport"?new nan(t,n,r):null}},ian=(function(){function e(n,r,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=r,this.options=i}var t=e.prototype;return t.toString=function(r){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
`);return i}return this.key+" "+this.value+";"},e})(),oan={"@charset":!0,"@import":!0,"@namespace":!0},aan={onCreateRule:function(t,n,r){return t in oan?new ian(t,n,r):null}},DIe=[jon,$on,Kon,Zon,tan,ran,aan],san={process:!0},kIe={force:!0,process:!0},ZK=(function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var t=e.prototype;return t.add=function(r,i,o){var a=this.options,s=a.parent,l=a.sheet,c=a.jss,u=a.Renderer,d=a.generateId,p=a.scoped,h=Y({classes:this.classes,parent:s,sheet:l,jss:c,Renderer:u,generateId:d,scoped:p,name:r,keyframes:this.keyframes,selector:void 0},o),g=r;r in this.raw&&(g=r+"-d"+this.counter++),this.raw[g]=i,g in this.classes&&(h.selector="."+CMe(this.classes[g]));var m=MMe(g,i,h);if(!m)return null;this.register(m);var b=h.index===void 0?this.index.length:h.index;return this.index.splice(b,0,m),m},t.replace=function(r,i,o){var a=this.get(r),s=this.index.indexOf(a);a&&this.remove(a);var l=o;return s!==-1&&(l=Y({},o,{index:s})),this.add(r,i,l)},t.get=function(r){return this.map[r]},t.remove=function(r){this.unregister(r),delete this.raw[r.key],this.index.splice(this.index.indexOf(r),1)},t.indexOf=function(r){return this.index.indexOf(r)},t.process=function(){var r=this.options.jss.plugins;this.index.slice(0).forEach(r.onProcessRule,r)},t.register=function(r){this.map[r.key]=r,r instanceof Ghe?(this.map[r.selector]=r,r.id&&(this.classes[r.key]=r.id)):r instanceof $he&&this.keyframes&&(this.keyframes[r.name]=r.id)},t.unregister=function(r){delete this.map[r.key],r instanceof Ghe?(delete this.map[r.selector],delete this.classes[r.key]):r instanceof $he&&delete this.keyframes[r.name]},t.update=function(){var r,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(r=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],r=null),r)this.updateOne(this.get(r),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},t.updateOne=function(r,i,o){o===void 0&&(o=san);var a=this.options,s=a.jss.plugins,l=a.sheet;if(r.rules instanceof e){r.rules.update(i,o);return}var c=r.style;if(s.onUpdate(i,r,l,o),o.process&&c&&c!==r.style){s.onProcessStyle(r.style,r,l);for(var u in r.style){var d=r.style[u],p=c[u];d!==p&&r.prop(u,d,kIe)}for(var h in c){var g=r.style[h],m=c[h];g==null&&g!==m&&r.prop(h,null,kIe)}}},t.toString=function(r){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=xD(r),l=s.linebreak,c=0;c<this.index.length;c++){var u=this.index[c],d=u.toString(r);!d&&!a||(i&&(i+=l),i+=d)}return i},e})(),Iot=(function(){function e(n,r){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Y({},r,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),r.Renderer&&(this.renderer=new r.Renderer(this)),this.rules=new ZK(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(r,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(r,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},t.replaceRule=function(r,i,o){var a=this.rules.get(r);if(!a)return this.addRule(r,i,o);var s=this.rules.replace(r,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},t.insertRule=function(r){this.renderer&&this.renderer.insertRule(r)},t.addRules=function(r,i){var o=[];for(var a in r){var s=this.addRule(a,r[a],i);s&&o.push(s)}return o},t.getRule=function(r){return this.rules.get(r)},t.deleteRule=function(r){var i=typeof r=="object"?r:this.rules.get(r);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},t.indexOf=function(r){return this.rules.indexOf(r)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var r;return(r=this.rules).update.apply(r,arguments),this},t.updateOne=function(r,i,o){return this.rules.updateOne(r,i,o),this},t.toString=function(r){return this.rules.toString(r)},e})(),lan=(function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(r,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](r,i,o);if(s)return s}return null},t.onProcessRule=function(r){if(!r.isProcessed){for(var i=r.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](r,i);r.style&&this.onProcessStyle(r.style,r,i),r.isProcessed=!0}},t.onProcessStyle=function(r,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},t.onProcessSheet=function(r){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](r)},t.onUpdate=function(r,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](r,i,o,a)},t.onChangeValue=function(r,i,o){for(var a=r,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},t.use=function(r,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(r)===-1&&(o.push(r),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var l in s)l in a&&a[l].push(s[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e})(),can=(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(r){var i=this.registry,o=r.options.index;if(i.indexOf(r)===-1){if(i.length===0||o>=this.index){i.push(r);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,r);return}}},t.reset=function(){this.registry=[]},t.remove=function(r){var i=this.registry.indexOf(r);this.registry.splice(i,1)},t.toString=function(r){for(var i=r===void 0?{}:r,o=i.attached,a=Lt(i,["attached"]),s=xD(a),l=s.linebreak,c="",u=0;u<this.registry.length;u++){var d=this.registry[u];o!=null&&d.attached!==o||(c&&(c+=l),c+=d.toString(a))}return c},so(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e})(),$N=new can,Xhe=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),Yhe="2f1acc6c3a606b082e5eef5e54414ffb";Xhe[Yhe]==null&&(Xhe[Yhe]=0);var LIe=Xhe[Yhe]++,_Ie=function(t){t===void 0&&(t={});var n=0,r=function(o,a){n+=1;var s="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),t.minify?""+(l||"c")+LIe+s+n:l+o.key+"-"+LIe+(s?"-"+s:"")+"-"+n};return r},Pot=function(t){var n;return function(){return n||(n=t()),n}},uan=function(t,n){try{return t.attributeStyleMap?t.attributeStyleMap.get(n):t.style.getPropertyValue(n)}catch{return""}},dan=function(t,n,r){try{var i=r;if(Array.isArray(r)&&(i=BO(r)),t.attributeStyleMap)t.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;t.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},pan=function(t,n){try{t.attributeStyleMap?t.attributeStyleMap.delete(n):t.style.removeProperty(n)}catch{}},han=function(t,n){return t.selectorText=n,t.selectorText===n},Dot=Pot(function(){return document.querySelector("head")});function fan(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function gan(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function man(e){for(var t=Dot(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===e)return r}return null}function van(e){var t=$N.registry;if(t.length>0){var n=fan(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=gan(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&typeof r=="string"){var i=man(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function ban(e,t){var n=t.insertionPoint,r=van(t);if(r!==!1&&r.parent){r.parent.insertBefore(e,r.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling);return}Dot().appendChild(e)}var yan=Pot(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),NIe=function(t,n,r){try{"insertRule"in t?t.insertRule(n,r):"appendRule"in t&&t.appendRule(n)}catch{return!1}return t.cssRules[r]},FIe=function(t,n){var r=t.cssRules.length;return n===void 0||n>r?r:n},Man=function(){var t=document.createElement("style");return t.textContent=`
`,t},Can=(function(){function e(n){this.getPropertyValue=uan,this.setProperty=dan,this.removeProperty=pan,this.setSelector=han,this.hasInsertedRules=!1,this.cssRules=[],n&&$N.add(n),this.sheet=n;var r=this.sheet?this.sheet.options:{},i=r.media,o=r.meta,a=r.element;this.element=a||Man(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=yan();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){ban(this.element,this.sheet.options);var r=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&r&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var r=this.element.parentNode;r&&r.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
`)}},t.deploy=function(){var r=this.sheet;if(r){if(r.options.link){this.insertRules(r.rules);return}this.element.textContent=`
`+r.toString()+`
`}},t.insertRules=function(r,i){for(var o=0;o<r.index.length;o++)this.insertRule(r.index[o],o,i)},t.insertRule=function(r,i,o){if(o===void 0&&(o=this.element.sheet),r.rules){var a=r,s=o;if(r.type==="conditional"||r.type==="keyframes"){var l=FIe(o,i);if(s=NIe(o,a.toString({children:!1}),l),s===!1)return!1;this.refCssRule(r,l,s)}return this.insertRules(a.rules,s),s}var c=r.toString();if(!c)return!1;var u=FIe(o,i),d=NIe(o,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(r,u,d),d)},t.refCssRule=function(r,i,o){r.renderable=o,r.options.parent instanceof Iot&&this.cssRules.splice(i,0,o)},t.deleteRule=function(r){var i=this.element.sheet,o=this.indexOf(r);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},t.indexOf=function(r){return this.cssRules.indexOf(r)},t.replaceRule=function(r,i){var o=this.indexOf(r);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},t.getRules=function(){return this.element.sheet.cssRules},e})(),xan=0,wan=(function(){function e(n){this.id=xan++,this.version="10.10.0",this.plugins=new lan,this.options={id:{minify:!1},createGenerateId:_Ie,Renderer:R6?Can:null,plugins:[]},this.generateId=_Ie({minify:!1});for(var r=0;r<DIe.length;r++)this.plugins.use(DIe[r],{queue:"internal"});this.setup(n)}var t=e.prototype;return t.setup=function(r){return r===void 0&&(r={}),r.createGenerateId&&(this.options.createGenerateId=r.createGenerateId),r.id&&(this.options.id=Y({},this.options.id,r.id)),(r.createGenerateId||r.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),r.insertionPoint!=null&&(this.options.insertionPoint=r.insertionPoint),"Renderer"in r&&(this.options.Renderer=r.Renderer),r.plugins&&this.use.apply(this,r.plugins),this},t.createStyleSheet=function(r,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=$N.index===0?0:$N.index+1);var s=new Iot(r,Y({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},t.removeStyleSheet=function(r){return r.detach(),$N.remove(r),this},t.createRule=function(r,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof r=="object")return this.createRule(void 0,r,i);var a=Y({},o,{name:r,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=MMe(r,i,a);return s&&this.plugins.onProcessRule(s),s},t.use=function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){r.plugins.use(s)}),this},e})(),kot=function(t){return new wan(t)},xMe=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Lot(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if(i==="function")t||(t={}),t[n]=r;else if(i==="object"&&r!==null&&!Array.isArray(r)){var o=Lot(r);o&&(t||(t={}),t[n]=o)}}return t}/**
 * A better abstraction over CSS.
 *
 * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
 * @website https://github.com/cssinjs/jss
 * @license MIT
 */kot();var _ot=Date.now(),Yre="fnValues"+_ot,Kre="fnStyle"+ ++_ot,San=function(){return{onCreateRule:function(n,r,i){if(typeof r!="function")return null;var o=MMe(n,{},i);return o[Kre]=r,o},onProcessStyle:function(n,r){if(Yre in r||Kre in r)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return r[Yre]=i,n},onUpdate:function(n,r,i,o){var a=r,s=a[Kre];s&&(a.style=s(n)||{});var l=a[Yre];if(l)for(var c in l)a.prop(c,l[c](n),o)}}},Ex="@global",Khe="@global ",Aan=(function(){function e(n,r,i){this.type="global",this.at=Ex,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new ZK(Y({},i,{parent:this}));for(var o in r)this.rules.add(o,r[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.addRule=function(r,i,o){var a=this.rules.add(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(r,i,o){var a=this.rules.replace(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(r){return this.rules.indexOf(r)},t.toString=function(r){return this.rules.toString(r)},e})(),Oan=(function(){function e(n,r,i){this.type="global",this.at=Ex,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(Khe.length);this.rule=i.jss.createRule(o,r,Y({},i,{parent:this}))}var t=e.prototype;return t.toString=function(r){return this.rule?this.rule.toString(r):""},e})(),zan=/\s*,\s*/g;function Not(e,t){for(var n=e.split(zan),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Tan(e,t){var n=e.options,r=e.style,i=r?r[Ex]:null;if(i){for(var o in i)t.addRule(o,i[o],Y({},n,{selector:Not(o,e.selector)}));delete r[Ex]}}function Ean(e,t){var n=e.options,r=e.style;for(var i in r)if(!(i[0]!=="@"||i.substr(0,Ex.length)!==Ex)){var o=Not(i.substr(Ex.length),e.selector);t.addRule(o,r[i],Y({},n,{selector:o})),delete r[i]}}function Ran(){function e(n,r,i){if(!n)return null;if(n===Ex)return new Aan(n,r,i);if(n[0]==="@"&&n.substr(0,Khe.length)===Khe)return new Oan(n,r,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function t(n,r){n.type!=="style"||!r||(Tan(n,r),Ean(n,r))}return{onCreateRule:e,onProcessRule:t}}var WIe=/\s*,\s*/g,Ian=/&/g,Pan=/\$([\w-]+)/g;function Dan(){function e(i,o){return function(a,s){var l=i.getRule(s)||o&&o.getRule(s);return l?l.selector:s}}function t(i,o){for(var a=o.split(WIe),s=i.split(WIe),l="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<s.length;d++){var p=s[d];l&&(l+=", "),l+=p.indexOf("&")!==-1?p.replace(Ian,u):u+" "+p}return l}function n(i,o,a){if(a)return Y({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var l=Y({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete l.name,l}function r(i,o,a){if(o.type!=="style")return i;var s=o,l=s.options.parent,c,u;for(var d in i){var p=d.indexOf("&")!==-1,h=d[0]==="@";if(!(!p&&!h)){if(c=n(s,l,c),p){var g=t(d,s.selector);u||(u=e(l,a)),g=g.replace(Pan,u);var m=s.key+"-"+d;"replaceRule"in l?l.replaceRule(m,i[d],Y({},c,{selector:g})):l.addRule(m,i[d],Y({},c,{selector:g}))}else h&&l.addRule(d,{},c).addRule(s.key,i[d],{selector:s.selector});delete i[d]}}return i}return{onProcessStyle:r}}var kan=/[A-Z]/g,Lan=/^ms-/,Qre={};function _an(e){return"-"+e.toLowerCase()}function Fot(e){if(Qre.hasOwnProperty(e))return Qre[e];var t=e.replace(kan,_an);return Qre[e]=Lan.test(t)?"-"+t:t}function Z$(e){var t={};for(var n in e){var r=n.indexOf("--")===0?n:Fot(n);t[r]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Z$):t.fallbacks=Z$(e.fallbacks)),t}function Nan(){function e(n){if(Array.isArray(n)){for(var r=0;r<n.length;r++)n[r]=Z$(n[r]);return n}return Z$(n)}function t(n,r,i){if(r.indexOf("--")===0)return n;var o=Fot(r);return r===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:t}}var rn=xMe&&CSS?CSS.px:"px",l8=xMe&&CSS?CSS.ms:"ms",bE=xMe&&CSS?CSS.percent:"%",Fan={"animation-delay":l8,"animation-duration":l8,"background-position":rn,"background-position-x":rn,"background-position-y":rn,"background-size":rn,border:rn,"border-bottom":rn,"border-bottom-left-radius":rn,"border-bottom-right-radius":rn,"border-bottom-width":rn,"border-left":rn,"border-left-width":rn,"border-radius":rn,"border-right":rn,"border-right-width":rn,"border-top":rn,"border-top-left-radius":rn,"border-top-right-radius":rn,"border-top-width":rn,"border-width":rn,"border-block":rn,"border-block-end":rn,"border-block-end-width":rn,"border-block-start":rn,"border-block-start-width":rn,"border-block-width":rn,"border-inline":rn,"border-inline-end":rn,"border-inline-end-width":rn,"border-inline-start":rn,"border-inline-start-width":rn,"border-inline-width":rn,"border-start-start-radius":rn,"border-start-end-radius":rn,"border-end-start-radius":rn,"border-end-end-radius":rn,margin:rn,"margin-bottom":rn,"margin-left":rn,"margin-right":rn,"margin-top":rn,"margin-block":rn,"margin-block-end":rn,"margin-block-start":rn,"margin-inline":rn,"margin-inline-end":rn,"margin-inline-start":rn,padding:rn,"padding-bottom":rn,"padding-left":rn,"padding-right":rn,"padding-top":rn,"padding-block":rn,"padding-block-end":rn,"padding-block-start":rn,"padding-inline":rn,"padding-inline-end":rn,"padding-inline-start":rn,"mask-position-x":rn,"mask-position-y":rn,"mask-size":rn,height:rn,width:rn,"min-height":rn,"max-height":rn,"min-width":rn,"max-width":rn,bottom:rn,left:rn,top:rn,right:rn,inset:rn,"inset-block":rn,"inset-block-end":rn,"inset-block-start":rn,"inset-inline":rn,"inset-inline-end":rn,"inset-inline-start":rn,"box-shadow":rn,"text-shadow":rn,"column-gap":rn,"column-rule":rn,"column-rule-width":rn,"column-width":rn,"font-size":rn,"font-size-delta":rn,"letter-spacing":rn,"text-decoration-thickness":rn,"text-indent":rn,"text-stroke":rn,"text-stroke-width":rn,"word-spacing":rn,motion:rn,"motion-offset":rn,outline:rn,"outline-offset":rn,"outline-width":rn,perspective:rn,"perspective-origin-x":bE,"perspective-origin-y":bE,"transform-origin":bE,"transform-origin-x":bE,"transform-origin-y":bE,"transform-origin-z":bE,"transition-delay":l8,"transition-duration":l8,"vertical-align":rn,"flex-basis":rn,"shape-margin":rn,size:rn,gap:rn,grid:rn,"grid-gap":rn,"row-gap":rn,"grid-row-gap":rn,"grid-column-gap":rn,"grid-template-rows":rn,"grid-template-columns":rn,"grid-auto-rows":rn,"grid-auto-columns":rn,"box-shadow-x":rn,"box-shadow-y":rn,"box-shadow-blur":rn,"box-shadow-spread":rn,"font-line-height":rn,"text-shadow-x":rn,"text-shadow-y":rn,"text-shadow-blur":rn};function Wot(e){var t=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var Wan=Wot(Fan);function UN(e,t,n){if(t==null)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=UN(e,t[r],n);else if(typeof t=="object")if(e==="fallbacks")for(var i in t)t[i]=UN(i,t[i],n);else for(var o in t)t[o]=UN(e+"-"+o,t[o],n);else if(typeof t=="number"&&isNaN(t)===!1){var a=n[e]||Wan[e];return a&&!(t===0&&a===rn)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function qan(e){e===void 0&&(e={});var t=Wot(e);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=UN(a,i[a],t);return i}function r(i,o){return UN(o,i,t)}return{onProcessStyle:n,onChangeValue:r}}var K5="",Qhe="",qot="",Bot="",Ban=R6&&"ontouchstart"in document.documentElement;if(R6){var Zre={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jan=document.createElement("p"),Jre=jan.style,Han="Transform";for(var eie in Zre)if(eie+Han in Jre){K5=eie,Qhe=Zre[eie];break}K5==="Webkit"&&"msHyphens"in Jre&&(K5="ms",Qhe=Zre.ms,Bot="edge"),K5==="Webkit"&&"-apple-trailing-word"in Jre&&(qot="apple")}var go={js:K5,css:Qhe,vendor:qot,browser:Bot,isTouch:Ban};function Van(e){return e[1]==="-"||go.js==="ms"?e:"@"+go.css+"keyframes"+e.substr(10)}var Gan={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:go.js==="ms"?"-webkit-"+t:go.css+t}},$an={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:go.js==="Webkit"?go.css+"print-"+t:t}},Uan=/[-\s]+(.)?/g;function Xan(e,t){return t?t.toUpperCase():""}function wMe(e){return e.replace(Uan,Xan)}function Yx(e){return wMe("-"+e)}var Yan={noPrefill:["mask"],supportedProperty:function(t,n){if(!/^mask/.test(t))return!1;if(go.js==="Webkit"){var r="mask-image";if(wMe(r)in n)return t;if(go.js+Yx(r)in n)return go.css+t}return t}},Kan={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:go.vendor==="apple"&&!go.isTouch?go.css+t:t}},Qan={noPrefill:["transform"],supportedProperty:function(t,n,r){return t!=="transform"?!1:r.transform?t:go.css+t}},Zan={noPrefill:["transition"],supportedProperty:function(t,n,r){return t!=="transition"?!1:r.transition?t:go.css+t}},Jan={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:go.js==="Webkit"||go.js==="ms"&&go.browser!=="edge"?go.css+t:t}},esn={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:go.js==="Moz"||go.js==="ms"||go.vendor==="apple"?go.css+t:t}},tsn={supportedProperty:function(t,n){if(!/^break-/.test(t))return!1;if(go.js==="Webkit"){var r="WebkitColumn"+Yx(t);return r in n?go.css+"column-"+t:!1}if(go.js==="Moz"){var i="page"+Yx(t);return i in n?"page-"+t:!1}return!1}},nsn={supportedProperty:function(t,n){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(go.js==="Moz")return t;var r=t.replace("-inline","");return go.js+Yx(r)in n?go.css+r:!1}},rsn={supportedProperty:function(t,n){return wMe(t)in n?t:!1}},isn={supportedProperty:function(t,n){var r=Yx(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:go.js+r in n?go.css+t:go.js!=="Webkit"&&"Webkit"+r in n?"-webkit-"+t:!1}},osn={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:go.js==="ms"?""+go.css+t:t}},asn={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:go.js==="ms"?go.css+"scroll-chaining":t}},ssn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},lsn={supportedProperty:function(t,n){var r=ssn[t];return r&&go.js+Yx(r)in n?go.css+r:!1}},jot={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},csn=Object.keys(jot),usn=function(t){return go.css+t},dsn={supportedProperty:function(t,n,r){var i=r.multiple;if(csn.indexOf(t)>-1){var o=jot[t];if(!Array.isArray(o))return go.js+Yx(o)in n?go.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(go.js+Yx(o[0])in n))return!1;return o.map(usn)}return!1}},Hot=[Gan,$an,Yan,Kan,Qan,Zan,Jan,esn,tsn,nsn,rsn,isn,osn,asn,lsn,dsn],qIe=Hot.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),psn=Hot.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,T6(t.noPrefill)),e},[]),Q5,YA={};if(R6){Q5=document.createElement("p");var tie=window.getComputedStyle(document.documentElement,"");for(var nie in tie)isNaN(nie)||(YA[tie[nie]]=tie[nie]);psn.forEach(function(e){return delete YA[e]})}function Zhe(e,t){if(t===void 0&&(t={}),!Q5)return e;if(YA[e]!=null)return YA[e];(e==="transition"||e==="transform")&&(t[e]=e in Q5.style);for(var n=0;n<qIe.length&&(YA[e]=qIe[n](e,Q5.style,t),!YA[e]);n++);try{Q5.style[e]=""}catch{return!1}return YA[e]}var yE={},hsn={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},fsn=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,xC;function gsn(e,t,n){if(t==="var")return"var";if(t==="all")return"all";if(n==="all")return", all";var r=t?Zhe(t):", "+Zhe(n);return r||t||n}R6&&(xC=document.createElement("p"));function BIe(e,t){var n=t;if(!xC||e==="content")return t;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var r=e+n;if(yE[r]!=null)return yE[r];try{xC.style[e]=n}catch{return yE[r]=!1,!1}if(hsn[e])n=n.replace(fsn,gsn);else if(xC.style[e]===""&&(n=go.css+n,n==="-ms-flex"&&(xC.style[e]="-ms-flexbox"),xC.style[e]=n,xC.style[e]===""))return yE[r]=!1,!1;return xC.style[e]="",yE[r]=n,yE[r]}function msn(){function e(i){if(i.type==="keyframes"){var o=i;o.at=Van(o.at)}}function t(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(t);continue}var s=!1,l=Zhe(o);l&&l!==o&&(s=!0);var c=!1,u=BIe(l,BO(a));u&&u!==a&&(c=!0),(s||c)&&(s&&delete i[o],i[l||o]=u||a)}return i}function n(i,o){return o.type!=="style"?i:t(i)}function r(i,o){return BIe(o,BO(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:r}}function vsn(){var e=function(n,r){return n.length===r.length?n>r?1:-1:n.length-r.length};return{onProcessStyle:function(n,r){if(r.type!=="style")return n;for(var i={},o=Object.keys(n).sort(e),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}function bsn(){return{plugins:[San(),Ran(),Dan(),Nan(),qan(),typeof window>"u"?null:msn(),vsn()]}}var v=Wr();const E=qn(v),SW=CDt({__proto__:null,default:E},[v]);function SMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=Y({},t);return Object.keys(n).forEach(function(i){n[i]&&(r[i]="".concat(t[i]," ").concat(n[i]))}),r}var DR={set:function(t,n,r,i){var o=t.get(n);o||(o=new Map,t.set(n,o)),o.set(r,i)},get:function(t,n,r){var i=t.get(n);return i?i.get(r):void 0},delete:function(t,n,r){var i=t.get(n);i.delete(r)}},Vot=E.createContext(null);function x3(){var e=E.useContext(Vot);return e}var ysn=kot(bsn()),Msn=Won(),Csn=new Map,xsn={disableGeneration:!1,generateClassName:Msn,jss:ysn,sheetsCache:null,sheetsManager:Csn,sheetsRegistry:null},wsn=E.createContext(xsn),jIe=-1e9;function Ssn(){return jIe+=1,jIe}var Asn={};function Osn(e){var t=typeof e=="function";return{create:function(r,i){var o;try{o=t?e(r):e}catch(l){throw l}if(!i||!r.overrides||!r.overrides[i])return o;var a=r.overrides[i],s=Y({},o);return Object.keys(a).forEach(function(l){s[l]=Xx(s[l],a[l])}),s},options:{}}}function zsn(e,t,n){var r=e.state,i=e.stylesOptions;if(i.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=SMe({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function Tsn(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=DR.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},DR.set(i.sheetsManager,o,r,s));var l=Y({},o.options,i,{theme:r,flip:typeof i.flip=="boolean"?i.flip:r.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=i.sheetsRegistry;if(s.refs===0){var u;i.sheetsCache&&(u=DR.get(i.sheetsCache,o,r));var d=o.create(r,a);u||(u=i.jss.createStyleSheet(d,Y({link:!1},l)),u.attach(),i.sheetsCache&&DR.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Lot(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,Y({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=SMe({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Esn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Rsn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=DR.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;o.refs===0&&(DR.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function Isn(e,t){var n=E.useRef([]),r,i=E.useMemo(function(){return{}},t);n.current!==i&&(n.current=i,r=e()),E.useEffect(function(){return function(){r&&r()}},[i])}function AMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=o===void 0?Asn:o,s=fn(t,["name","classNamePrefix","Component","defaultTheme"]),l=Osn(e),c=n||r||"makeStyles";l.options={index:Ssn(),name:n,meta:c,classNamePrefix:c};var u=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=x3()||a,g=Y({},E.useContext(wsn),s),m=E.useRef(),b=E.useRef();Isn(function(){var M={name:n,state:{},stylesCreator:l,stylesOptions:g,theme:h};return Tsn(M,p),b.current=!1,m.current=M,function(){Rsn(M)}},[h,l]),E.useEffect(function(){b.current&&Esn(m.current,p),b.current=!0});var y=zsn(m.current,p.classes,i);return y};return u}function Io(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Got(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Got(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $t(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Got(e))&&(r&&(r+=" "),r+=t);return r}var rie={exports:{}},Ua={};/** @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 HIe;function Psn(){if(HIe)return Ua;HIe=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case t:switch(w=w.type,w){case l:case c:case r:case o:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case g:case h:case a:return w;default:return S}}case n:return S}}}function x(w){return C(w)===c}return Ua.AsyncMode=l,Ua.ConcurrentMode=c,Ua.ContextConsumer=s,Ua.ContextProvider=a,Ua.Element=t,Ua.ForwardRef=u,Ua.Fragment=r,Ua.Lazy=g,Ua.Memo=h,Ua.Portal=n,Ua.Profiler=o,Ua.StrictMode=i,Ua.Suspense=d,Ua.isAsyncMode=function(w){return x(w)||C(w)===l},Ua.isConcurrentMode=x,Ua.isContextConsumer=function(w){return C(w)===s},Ua.isContextProvider=function(w){return C(w)===a},Ua.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ua.isForwardRef=function(w){return C(w)===u},Ua.isFragment=function(w){return C(w)===r},Ua.isLazy=function(w){return C(w)===g},Ua.isMemo=function(w){return C(w)===h},Ua.isPortal=function(w){return C(w)===n},Ua.isProfiler=function(w){return C(w)===o},Ua.isStrictMode=function(w){return C(w)===i},Ua.isSuspense=function(w){return C(w)===d},Ua.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===i||w===d||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===h||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===b||w.$$typeof===y||w.$$typeof===M||w.$$typeof===m)},Ua.typeOf=C,Ua}var VIe;function Dsn(){return VIe||(VIe=1,rie.exports=Psn()),rie.exports}var iie,GIe;function ksn(){if(GIe)return iie;GIe=1;var e=Dsn(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;function h(g,m,b){if(typeof m!="string"){if(p){var y=d(m);y&&y!==p&&h(g,y,b)}var M=l(m);c&&(M=M.concat(c(m)));for(var C=a(g),x=a(m),w=0;w<M.length;++w){var S=M[w];if(!n[S]&&!(b&&b[S])&&!(x&&x[S])&&!(C&&C[S])){var A=u(m,S);try{s(g,S,A)}catch{}}}}return g}return iie=h,iie}var Lsn=ksn();const OMe=qn(Lsn);function _sn(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Nsn(e){var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.name,a=fn(i,["name"]),s=o,l=typeof r=="function"?function(p){return{root:function(g){return r(Y({theme:p},g))}}}:{root:r},c=AMe(l,Y({Component:e,name:o||e.displayName,classNamePrefix:s},a)),u;r.filterProps&&(u=r.filterProps,delete r.filterProps),r.propTypes&&(r.propTypes,delete r.propTypes);var d=E.forwardRef(function(h,g){var m=h.children,b=h.className,y=h.clone,M=h.component,C=fn(h,["children","className","clone","component"]),x=c(h),w=$t(x.root,b),S=C;if(u&&(S=_sn(S,u)),y)return E.cloneElement(m,Y({className:$t(m.props.className,w)},S));if(typeof m=="function")return m(Y({className:w},S));var A=M||e;return E.createElement(A,Y({ref:g,className:w},S),m)});return OMe(d,e),d};return t}function Fsn(e,t){if(typeof t=="function"){var n=t(e);return n}return Y({},e,t)}function Ow(e){var t=e.children,n=e.theme,r=x3(),i=E.useMemo(function(){var o=r===null?n:Fsn(r,n);return o!=null&&(o[Eot]=r!==null),o},[n,r]);return E.createElement(Vot.Provider,{value:i},t)}var Wsn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(r){var i=n.defaultTheme,o=n.withTheme,a=o===void 0?!1:o,s=n.name,l=fn(n,["defaultTheme","withTheme","name"]),c=s,u=AMe(t,Y({defaultTheme:i,Component:r,name:s||r.displayName,classNamePrefix:c},l)),d=E.forwardRef(function(h,g){h.classes;var m=h.innerRef,b=fn(h,["classes","innerRef"]),y=u(Y({},r.defaultProps,h)),M,C=b;return(typeof s=="string"||a)&&(M=x3()||i,s&&(C=QK({theme:M,name:s,props:b})),a&&!C.theme&&(C.theme=M)),E.createElement(r,Y({ref:m||g,classes:y},C))});return OMe(d,r),d}};function Mp(e){return e}var JK=C3();function Et(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return AMe(e,Y({defaultTheme:JK},t))}var $ot=function(t){var n=Nsn(t);return function(r,i){return n(r,Y({defaultTheme:JK},i))}};function ql(){var e=x3()||JK;return e}function or(e,t){return Wsn(e,Y({defaultTheme:JK},t))}function $r(e){if(typeof e!="string")throw new Error(sP(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(r,i){return i==null?r:function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r.apply(this,s),i.apply(this,s)}},function(){})}var qsn=function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}},Uot=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=a===void 0?"inherit":a,l=t.component,c=l===void 0?"svg":l,u=t.fontSize,d=u===void 0?"medium":u,p=t.htmlColor,h=t.titleAccess,g=t.viewBox,m=g===void 0?"0 0 24 24":g,b=fn(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return v.createElement(c,Y({className:$t(i.root,o,s!=="inherit"&&i["color".concat($r(s))],d!=="default"&&d!=="medium"&&i["fontSize".concat($r(d))]),focusable:"false",viewBox:m,color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},b),r,h?v.createElement("title",null,h):null)});Uot.muiName="SvgIcon";const Ez=or(qsn,{name:"MuiSvgIcon"})(Uot);function Ui(e,t){var n=function(i,o){return E.createElement(Ez,Y({ref:o},i),e)};return n.muiName=Ez.muiName,E.memo(E.forwardRef(n))}function $y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,n;function r(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=this,l=function(){e.apply(s,o)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function Bsn(e,t){return function(){return null}}function XN(e,t){return v.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function yd(e){return e&&e.ownerDocument||document}function eQ(e){var t=yd(e);return t.defaultView||window}function jsn(e){return function(){return null}}function Uy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Hsn(e,t,n,r,i){return null}function cb(e){var t=e.controlled,n=e.default;e.name,e.state;var r=v.useRef(t!==void 0),i=r.current,o=v.useState(n),a=o[0],s=o[1],l=i?t:a,c=v.useCallback(function(u){i||s(u)},[]);return[l,c]}var Vsn=typeof window<"u"?v.useLayoutEffect:v.useEffect;function bs(e){var t=v.useRef(e);return Vsn(function(){t.current=e}),v.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function Ba(e,t){return v.useMemo(function(){return e==null&&t==null?null:function(n){Uy(e,n),Uy(t,n)}},[e,t])}function zMe(e){var t=v.useState(e),n=t[0],r=t[1],i=e||n;return v.useEffect(function(){n==null&&r("mui-".concat(Math.round(Math.random()*1e5)))},[n]),i}var oie={exports:{}},_p={},aie={exports:{}},sie={};/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $Ie;function Gsn(){return $Ie||($Ie=1,(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var $=e.unstable_now();l(!0,$),l=null}catch(U){throw setTimeout(u,0),U}};t=function($){l!==null?setTimeout(t,0,$):(l=$,setTimeout(u,0))},n=function($,U){c=setTimeout($,U)},r=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,b=-1,y=5,M=0;e.unstable_shouldYield=function(){return e.unstable_now()>=M},i=function(){},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<$?Math.floor(1e3/$):5};var C=new MessageChannel,x=C.port2;C.port1.onmessage=function(){if(m!==null){var $=e.unstable_now();M=$+y;try{m(!0,$)?x.postMessage(null):(g=!1,m=null)}catch(U){throw x.postMessage(null),U}}else g=!1},t=function($){m=$,g||(g=!0,x.postMessage(null))},n=function($,U){b=d(function(){$(e.unstable_now())},U)},r=function(){p(b),b=-1}}function w($,U){var X=$.length;$.push(U);e:for(;;){var Q=X-1>>>1,re=$[Q];if(re!==void 0&&0<z(re,U))$[Q]=U,$[X]=re,X=Q;else break e}}function S($){return $=$[0],$===void 0?null:$}function A($){var U=$[0];if(U!==void 0){var X=$.pop();if(X!==U){$[0]=X;e:for(var Q=0,re=$.length;Q<re;){var ee=2*(Q+1)-1,se=$[ee],pe=ee+1,te=$[pe];if(se!==void 0&&0>z(se,X))te!==void 0&&0>z(te,se)?($[Q]=te,$[pe]=X,Q=pe):($[Q]=se,$[ee]=X,Q=ee);else if(te!==void 0&&0>z(te,X))$[Q]=te,$[pe]=X,Q=pe;else break e}}return U}return null}function z($,U){var X=$.sortIndex-U.sortIndex;return X!==0?X:$.id-U.id}var O=[],T=[],R=1,P=null,F=3,N=!1,L=!1,W=!1;function j($){for(var U=S(T);U!==null;){if(U.callback===null)A(T);else if(U.startTime<=$)A(T),U.sortIndex=U.expirationTime,w(O,U);else break;U=S(T)}}function V($){if(W=!1,j($),!L)if(S(O)!==null)L=!0,t(G);else{var U=S(T);U!==null&&n(V,U.startTime-$)}}function G($,U){L=!1,W&&(W=!1,r()),N=!0;var X=F;try{for(j(U),P=S(O);P!==null&&(!(P.expirationTime>U)||$&&!e.unstable_shouldYield());){var Q=P.callback;if(typeof Q=="function"){P.callback=null,F=P.priorityLevel;var re=Q(P.expirationTime<=U);U=e.unstable_now(),typeof re=="function"?P.callback=re:P===S(O)&&A(O),j(U)}else A(O);P=S(O)}if(P!==null)var ee=!0;else{var se=S(T);se!==null&&n(V,se.startTime-U),ee=!1}return ee}finally{P=null,F=X,N=!1}}var q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){L||N||(L=!0,t(G))},e.unstable_getCurrentPriorityLevel=function(){return F},e.unstable_getFirstCallbackNode=function(){return S(O)},e.unstable_next=function($){switch(F){case 1:case 2:case 3:var U=3;break;default:U=F}var X=F;F=U;try{return $()}finally{F=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=q,e.unstable_runWithPriority=function($,U){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var X=F;F=$;try{return U()}finally{F=X}},e.unstable_scheduleCallback=function($,U,X){var Q=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Q+X:Q):X=Q,$){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=X+re,$={id:R++,callback:U,priorityLevel:$,startTime:X,expirationTime:re,sortIndex:-1},X>Q?($.sortIndex=X,w(T,$),S(O)===null&&$===S(T)&&(W?r():W=!0,n(V,X-Q))):($.sortIndex=re,w(O,$),L||N||(L=!0,t(G))),$},e.unstable_wrapCallback=function($){var U=F;return function(){var X=F;F=U;try{return $.apply(this,arguments)}finally{F=X}}}})(sie)),sie}var UIe;function $sn(){return UIe||(UIe=1,aie.exports=Gsn()),aie.exports}/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var XIe;function Usn(){if(XIe)return _p;XIe=1;var e=Wr(),t=fK(),n=$sn();function r(I){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+I,H=1;H<arguments.length;H++)_+="&args[]="+encodeURIComponent(arguments[H]);return"Minified React error #"+I+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!e)throw Error(r(227));var i=new Set,o={};function a(I,_){s(I,_),s(I+"Capture",_)}function s(I,_){for(o[I]=_,I=0;I<_.length;I++)i.add(_[I])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=/^[: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]*$/,u=Object.prototype.hasOwnProperty,d={},p={};function h(I){return u.call(p,I)?!0:u.call(d,I)?!1:c.test(I)?p[I]=!0:(d[I]=!0,!1)}function g(I,_,H,J){if(H!==null&&H.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return J?!1:H!==null?!H.acceptsBooleans:(I=I.toLowerCase().slice(0,5),I!=="data-"&&I!=="aria-");default:return!1}}function m(I,_,H,J){if(_===null||typeof _>"u"||g(I,_,H,J))return!0;if(J)return!1;if(H!==null)switch(H.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function b(I,_,H,J,fe,xe,Pe){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=J,this.attributeNamespace=fe,this.mustUseProperty=H,this.propertyName=I,this.type=_,this.sanitizeURL=xe,this.removeEmptyString=Pe}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(I){y[I]=new b(I,0,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(I){var _=I[0];y[_]=new b(_,1,!1,I[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(I){y[I]=new b(I,2,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(I){y[I]=new b(I,2,!1,I,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(I){y[I]=new b(I,3,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(I){y[I]=new b(I,3,!0,I,null,!1,!1)}),["capture","download"].forEach(function(I){y[I]=new b(I,4,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(function(I){y[I]=new b(I,6,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(function(I){y[I]=new b(I,5,!1,I.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function C(I){return I[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(I){var _=I.replace(M,C);y[_]=new b(_,1,!1,I,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(I){var _=I.replace(M,C);y[_]=new b(_,1,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(I){var _=I.replace(M,C);y[_]=new b(_,1,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(I){y[I]=new b(I,1,!1,I.toLowerCase(),null,!1,!1)}),y.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(I){y[I]=new b(I,1,!1,I.toLowerCase(),null,!0,!0)});function x(I,_,H,J){var fe=y.hasOwnProperty(_)?y[_]:null,xe=fe!==null?fe.type===0:J?!1:!(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N");xe||(m(_,H,fe,J)&&(H=null),J||fe===null?h(_)&&(H===null?I.removeAttribute(_):I.setAttribute(_,""+H)):fe.mustUseProperty?I[fe.propertyName]=H===null?fe.type===3?!1:"":H:(_=fe.attributeName,J=fe.attributeNamespace,H===null?I.removeAttribute(_):(fe=fe.type,H=fe===3||fe===4&&H===!0?"":""+H,J?I.setAttributeNS(J,_,H):I.setAttribute(_,H))))}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,A=60106,z=60107,O=60108,T=60114,R=60109,P=60110,F=60112,N=60113,L=60120,W=60115,j=60116,V=60121,G=60128,q=60129,$=60130,U=60131;if(typeof Symbol=="function"&&Symbol.for){var X=Symbol.for;S=X("react.element"),A=X("react.portal"),z=X("react.fragment"),O=X("react.strict_mode"),T=X("react.profiler"),R=X("react.provider"),P=X("react.context"),F=X("react.forward_ref"),N=X("react.suspense"),L=X("react.suspense_list"),W=X("react.memo"),j=X("react.lazy"),V=X("react.block"),X("react.scope"),G=X("react.opaque.id"),q=X("react.debug_trace_mode"),$=X("react.offscreen"),U=X("react.legacy_hidden")}var Q=typeof Symbol=="function"&&Symbol.iterator;function re(I){return I===null||typeof I!="object"?null:(I=Q&&I[Q]||I["@@iterator"],typeof I=="function"?I:null)}var ee;function se(I){if(ee===void 0)try{throw Error()}catch(H){var _=H.stack.trim().match(/\n( *(at )?)/);ee=_&&_[1]||""}return`
`+ee+I}var pe=!1;function te(I,_){if(!I||pe)return"";pe=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(pt){var J=pt}Reflect.construct(I,[],_)}else{try{_.call()}catch(pt){J=pt}I.call(_.prototype)}else{try{throw Error()}catch(pt){J=pt}I()}}catch(pt){if(pt&&J&&typeof pt.stack=="string"){for(var fe=pt.stack.split(`
`),xe=J.stack.split(`
`),Pe=fe.length-1,$e=xe.length-1;1<=Pe&&0<=$e&&fe[Pe]!==xe[$e];)$e--;for(;1<=Pe&&0<=$e;Pe--,$e--)if(fe[Pe]!==xe[$e]){if(Pe!==1||$e!==1)do if(Pe--,$e--,0>$e||fe[Pe]!==xe[$e])return`
`+fe[Pe].replace(" at new "," at ");while(1<=Pe&&0<=$e);break}}}finally{pe=!1,Error.prepareStackTrace=H}return(I=I?I.displayName||I.name:"")?se(I):""}function ce(I){switch(I.tag){case 5:return se(I.type);case 16:return se("Lazy");case 13:return se("Suspense");case 19:return se("SuspenseList");case 0:case 2:case 15:return I=te(I.type,!1),I;case 11:return I=te(I.type.render,!1),I;case 22:return I=te(I.type._render,!1),I;case 1:return I=te(I.type,!0),I;default:return""}}function oe(I){if(I==null)return null;if(typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case z:return"Fragment";case A:return"Portal";case T:return"Profiler";case O:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case P:return(I.displayName||"Context")+".Consumer";case R:return(I._context.displayName||"Context")+".Provider";case F:var _=I.render;return _=_.displayName||_.name||"",I.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case W:return oe(I.type);case V:return oe(I._render);case j:_=I._payload,I=I._init;try{return oe(I(_))}catch{}}return null}function ae(I){switch(typeof I){case"boolean":case"number":case"object":case"string":case"undefined":return I;default:return""}}function ne(I){var _=I.type;return(I=I.nodeName)&&I.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function le(I){var _=ne(I)?"checked":"value",H=Object.getOwnPropertyDescriptor(I.constructor.prototype,_),J=""+I[_];if(!I.hasOwnProperty(_)&&typeof H<"u"&&typeof H.get=="function"&&typeof H.set=="function"){var fe=H.get,xe=H.set;return Object.defineProperty(I,_,{configurable:!0,get:function(){return fe.call(this)},set:function(Pe){J=""+Pe,xe.call(this,Pe)}}),Object.defineProperty(I,_,{enumerable:H.enumerable}),{getValue:function(){return J},setValue:function(Pe){J=""+Pe},stopTracking:function(){I._valueTracker=null,delete I[_]}}}}function he(I){I._valueTracker||(I._valueTracker=le(I))}function be(I){if(!I)return!1;var _=I._valueTracker;if(!_)return!0;var H=_.getValue(),J="";return I&&(J=ne(I)?I.checked?"true":"false":I.value),I=J,I!==H?(_.setValue(I),!0):!1}function me(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}}function Me(I,_){var H=_.checked;return t({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:H??I._wrapperState.initialChecked})}function Oe(I,_){var H=_.defaultValue==null?"":_.defaultValue,J=_.checked!=null?_.checked:_.defaultChecked;H=ae(_.value!=null?_.value:H),I._wrapperState={initialChecked:J,initialValue:H,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function de(I,_){_=_.checked,_!=null&&x(I,"checked",_,!1)}function ie(I,_){de(I,_);var H=ae(_.value),J=_.type;if(H!=null)J==="number"?(H===0&&I.value===""||I.value!=H)&&(I.value=""+H):I.value!==""+H&&(I.value=""+H);else if(J==="submit"||J==="reset"){I.removeAttribute("value");return}_.hasOwnProperty("value")?Ae(I,_.type,H):_.hasOwnProperty("defaultValue")&&Ae(I,_.type,ae(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(I.defaultChecked=!!_.defaultChecked)}function ue(I,_,H){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var J=_.type;if(!(J!=="submit"&&J!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+I._wrapperState.initialValue,H||_===I.value||(I.value=_),I.defaultValue=_}H=I.name,H!==""&&(I.name=""),I.defaultChecked=!!I._wrapperState.initialChecked,H!==""&&(I.name=H)}function Ae(I,_,H){(_!=="number"||me(I.ownerDocument)!==I)&&(H==null?I.defaultValue=""+I._wrapperState.initialValue:I.defaultValue!==""+H&&(I.defaultValue=""+H))}function Ce(I){var _="";return e.Children.forEach(I,function(H){H!=null&&(_+=H)}),_}function Ee(I,_){return I=t({children:void 0},_),(_=Ce(_.children))&&(I.children=_),I}function Ge(I,_,H,J){if(I=I.options,_){_={};for(var fe=0;fe<H.length;fe++)_["$"+H[fe]]=!0;for(H=0;H<I.length;H++)fe=_.hasOwnProperty("$"+I[H].value),I[H].selected!==fe&&(I[H].selected=fe),fe&&J&&(I[H].defaultSelected=!0)}else{for(H=""+ae(H),_=null,fe=0;fe<I.length;fe++){if(I[fe].value===H){I[fe].selected=!0,J&&(I[fe].defaultSelected=!0);return}_!==null||I[fe].disabled||(_=I[fe])}_!==null&&(_.selected=!0)}}function _e(I,_){if(_.dangerouslySetInnerHTML!=null)throw Error(r(91));return t({},_,{value:void 0,defaultValue:void 0,children:""+I._wrapperState.initialValue})}function Ie(I,_){var H=_.value;if(H==null){if(H=_.children,_=_.defaultValue,H!=null){if(_!=null)throw Error(r(92));if(Array.isArray(H)){if(!(1>=H.length))throw Error(r(93));H=H[0]}_=H}_==null&&(_=""),H=_}I._wrapperState={initialValue:ae(H)}}function Le(I,_){var H=ae(_.value),J=ae(_.defaultValue);H!=null&&(H=""+H,H!==I.value&&(I.value=H),_.defaultValue==null&&I.defaultValue!==H&&(I.defaultValue=H)),J!=null&&(I.defaultValue=""+J)}function we(I){var _=I.textContent;_===I._wrapperState.initialValue&&_!==""&&_!==null&&(I.value=_)}var ve={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function De(I){switch(I){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ze(I,_){return I==null||I==="http://www.w3.org/1999/xhtml"?De(_):I==="http://www.w3.org/2000/svg"&&_==="foreignObject"?"http://www.w3.org/1999/xhtml":I}var Ve,Ke=(function(I){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(_,H,J,fe){MSApp.execUnsafeLocalFunction(function(){return I(_,H,J,fe)})}:I})(function(I,_){if(I.namespaceURI!==ve.svg||"innerHTML"in I)I.innerHTML=_;else{for(Ve=Ve||document.createElement("div"),Ve.innerHTML="<svg>"+_.valueOf().toString()+"</svg>",_=Ve.firstChild;I.firstChild;)I.removeChild(I.firstChild);for(;_.firstChild;)I.appendChild(_.firstChild)}});function et(I,_){if(_){var H=I.firstChild;if(H&&H===I.lastChild&&H.nodeType===3){H.nodeValue=_;return}}I.textContent=_}var it={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ft=["Webkit","ms","Moz","O"];Object.keys(it).forEach(function(I){Ft.forEach(function(_){_=_+I.charAt(0).toUpperCase()+I.substring(1),it[_]=it[I]})});function Dt(I,_,H){return _==null||typeof _=="boolean"||_===""?"":H||typeof _!="number"||_===0||it.hasOwnProperty(I)&&it[I]?(""+_).trim():_+"px"}function Qn(I,_){I=I.style;for(var H in _)if(_.hasOwnProperty(H)){var J=H.indexOf("--")===0,fe=Dt(H,_[H],J);H==="float"&&(H="cssFloat"),J?I.setProperty(H,fe):I[H]=fe}}var ir=t({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hn(I,_){if(_){if(ir[I]&&(_.children!=null||_.dangerouslySetInnerHTML!=null))throw Error(r(137,I));if(_.dangerouslySetInnerHTML!=null){if(_.children!=null)throw Error(r(60));if(!(typeof _.dangerouslySetInnerHTML=="object"&&"__html"in _.dangerouslySetInnerHTML))throw Error(r(61))}if(_.style!=null&&typeof _.style!="object")throw Error(r(62))}}function Zn(I,_){if(I.indexOf("-")===-1)return typeof _.is=="string";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}}function Br(I){return I=I.target||I.srcElement||window,I.correspondingUseElement&&(I=I.correspondingUseElement),I.nodeType===3?I.parentNode:I}var vr=null,Fe=null,He=null;function Xe(I){if(I=xh(I)){if(typeof vr!="function")throw Error(r(280));var _=I.stateNode;_&&(_=Zm(_),vr(I.stateNode,I.type,_))}}function ct(I){Fe?He?He.push(I):He=[I]:Fe=I}function lt(){if(Fe){var I=Fe,_=He;if(He=Fe=null,Xe(I),_)for(I=0;I<_.length;I++)Xe(_[I])}}function Je(I,_){return I(_)}function ft(I,_,H,J,fe){return I(_,H,J,fe)}function Tt(){}var St=Je,un=!1,Un=!1;function Yr(){(Fe!==null||He!==null)&&(Tt(),lt())}function yr(I,_,H){if(Un)return I(_,H);Un=!0;try{return St(I,_,H)}finally{Un=!1,Yr()}}function dr(I,_){var H=I.stateNode;if(H===null)return null;var J=Zm(H);if(J===null)return null;H=J[_];e:switch(_){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(J=!J.disabled)||(I=I.type,J=!(I==="button"||I==="input"||I==="select"||I==="textarea")),I=!J;break e;default:I=!1}if(I)return null;if(H&&typeof H!="function")throw Error(r(231,_,typeof H));return H}var si=!1;if(l)try{var $o={};Object.defineProperty($o,"passive",{get:function(){si=!0}}),window.addEventListener("test",$o,$o),window.removeEventListener("test",$o,$o)}catch{si=!1}function Uo(I,_,H,J,fe,xe,Pe,$e,pt){var Bt=Array.prototype.slice.call(arguments,3);try{_.apply(H,Bt)}catch(gr){this.onError(gr)}}var Qi=!1,di=null,kt=!1,It=null,Vn={onError:function(I){Qi=!0,di=I}};function jr(I,_,H,J,fe,xe,Pe,$e,pt){Qi=!1,di=null,Uo.apply(Vn,arguments)}function Jr(I,_,H,J,fe,xe,Pe,$e,pt){if(jr.apply(this,arguments),Qi){if(Qi){var Bt=di;Qi=!1,di=null}else throw Error(r(198));kt||(kt=!0,It=Bt)}}function xa(I){var _=I,H=I;if(I.alternate)for(;_.return;)_=_.return;else{I=_;do _=I,(_.flags&1026)!==0&&(H=_.return),I=_.return;while(I)}return _.tag===3?H:null}function Xo(I){if(I.tag===13){var _=I.memoizedState;if(_===null&&(I=I.alternate,I!==null&&(_=I.memoizedState)),_!==null)return _.dehydrated}return null}function La(I){if(xa(I)!==I)throw Error(r(188))}function ad(I){var _=I.alternate;if(!_){if(_=xa(I),_===null)throw Error(r(188));return _!==I?null:I}for(var H=I,J=_;;){var fe=H.return;if(fe===null)break;var xe=fe.alternate;if(xe===null){if(J=fe.return,J!==null){H=J;continue}break}if(fe.child===xe.child){for(xe=fe.child;xe;){if(xe===H)return La(fe),I;if(xe===J)return La(fe),_;xe=xe.sibling}throw Error(r(188))}if(H.return!==J.return)H=fe,J=xe;else{for(var Pe=!1,$e=fe.child;$e;){if($e===H){Pe=!0,H=fe,J=xe;break}if($e===J){Pe=!0,J=fe,H=xe;break}$e=$e.sibling}if(!Pe){for($e=xe.child;$e;){if($e===H){Pe=!0,H=xe,J=fe;break}if($e===J){Pe=!0,J=xe,H=fe;break}$e=$e.sibling}if(!Pe)throw Error(r(189))}}if(H.alternate!==J)throw Error(r(190))}if(H.tag!==3)throw Error(r(188));return H.stateNode.current===H?I:_}function Lu(I){if(I=ad(I),!I)return null;for(var _=I;;){if(_.tag===5||_.tag===6)return _;if(_.child)_.child.return=_,_=_.child;else{if(_===I)break;for(;!_.sibling;){if(!_.return||_.return===I)return null;_=_.return}_.sibling.return=_.return,_=_.sibling}}return null}function Lc(I,_){for(var H=I.alternate;_!==null;){if(_===I||_===H)return!0;_=_.return}return!1}var Dd,fi,Ns,_u,kd=!1,ou=[],As=null,au=null,Xn=null,wn=new Map,nn=new Map,Lr=[],Os="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Va(I,_,H,J,fe){return{blockedOn:I,domEventName:_,eventSystemFlags:H|16,nativeEvent:fe,targetContainers:[J]}}function wa(I,_){switch(I){case"focusin":case"focusout":As=null;break;case"dragenter":case"dragleave":au=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":wn.delete(_.pointerId);break;case"gotpointercapture":case"lostpointercapture":nn.delete(_.pointerId)}}function _c(I,_,H,J,fe,xe){return I===null||I.nativeEvent!==xe?(I=Va(_,H,J,fe,xe),_!==null&&(_=xh(_),_!==null&&fi(_)),I):(I.eventSystemFlags|=J,_=I.targetContainers,fe!==null&&_.indexOf(fe)===-1&&_.push(fe),I)}function cc(I,_,H,J,fe){switch(_){case"focusin":return As=_c(As,I,_,H,J,fe),!0;case"dragenter":return au=_c(au,I,_,H,J,fe),!0;case"mouseover":return Xn=_c(Xn,I,_,H,J,fe),!0;case"pointerover":var xe=fe.pointerId;return wn.set(xe,_c(wn.get(xe)||null,I,_,H,J,fe)),!0;case"gotpointercapture":return xe=fe.pointerId,nn.set(xe,_c(nn.get(xe)||null,I,_,H,J,fe)),!0}return!1}function C1(I){var _=fg(I.target);if(_!==null){var H=xa(_);if(H!==null){if(_=H.tag,_===13){if(_=Xo(H),_!==null){I.blockedOn=_,_u(I.lanePriority,function(){n.unstable_runWithPriority(I.priority,function(){Ns(H)})});return}}else if(_===3&&H.stateNode.hydrate){I.blockedOn=H.tag===3?H.stateNode.containerInfo:null;return}}}I.blockedOn=null}function zp(I){if(I.blockedOn!==null)return!1;for(var _=I.targetContainers;0<_.length;){var H=xT(I.domEventName,I.eventSystemFlags,_[0],I.nativeEvent);if(H!==null)return _=xh(H),_!==null&&fi(_),I.blockedOn=H,!1;_.shift()}return!0}function IM(I,_,H){zp(I)&&H.delete(_)}function Re(){for(kd=!1;0<ou.length;){var I=ou[0];if(I.blockedOn!==null){I=xh(I.blockedOn),I!==null&&Dd(I);break}for(var _=I.targetContainers;0<_.length;){var H=xT(I.domEventName,I.eventSystemFlags,_[0],I.nativeEvent);if(H!==null){I.blockedOn=H;break}_.shift()}I.blockedOn===null&&ou.shift()}As!==null&&zp(As)&&(As=null),au!==null&&zp(au)&&(au=null),Xn!==null&&zp(Xn)&&(Xn=null),wn.forEach(IM),nn.forEach(IM)}function qe(I,_){I.blockedOn===_&&(I.blockedOn=null,kd||(kd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Re)))}function st(I){function _(fe){return qe(fe,I)}if(0<ou.length){qe(ou[0],I);for(var H=1;H<ou.length;H++){var J=ou[H];J.blockedOn===I&&(J.blockedOn=null)}}for(As!==null&&qe(As,I),au!==null&&qe(au,I),Xn!==null&&qe(Xn,I),wn.forEach(_),nn.forEach(_),H=0;H<Lr.length;H++)J=Lr[H],J.blockedOn===I&&(J.blockedOn=null);for(;0<Lr.length&&(H=Lr[0],H.blockedOn===null);)C1(H),H.blockedOn===null&&Lr.shift()}function _t(I,_){var H={};return H[I.toLowerCase()]=_.toLowerCase(),H["Webkit"+I]="webkit"+_,H["Moz"+I]="moz"+_,H}var hn={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},hr={},eo={};l&&(eo=document.createElement("div").style,"AnimationEvent"in window||(delete hn.animationend.animation,delete hn.animationiteration.animation,delete hn.animationstart.animation),"TransitionEvent"in window||delete hn.transitionend.transition);function Fs(I){if(hr[I])return hr[I];if(!hn[I])return I;var _=hn[I],H;for(H in _)if(_.hasOwnProperty(H)&&H in eo)return hr[I]=_[H];return I}var Al=Fs("animationend"),uc=Fs("animationiteration"),P0=Fs("animationstart"),Rj=Fs("transitionend"),Ij=new Map,bT=new Map,Bte=["abort","abort",Al,"animationEnd",uc,"animationIteration",P0,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rj,"transitionEnd","waiting","waiting"];function Fk(I,_){for(var H=0;H<I.length;H+=2){var J=I[H],fe=I[H+1];fe="on"+(fe[0].toUpperCase()+fe.slice(1)),bT.set(J,_),Ij.set(J,fe),a(fe,[J])}}var jte=n.unstable_now;jte();var ps=8;function Vm(I){if((1&I)!==0)return ps=15,1;if((2&I)!==0)return ps=14,2;if((4&I)!==0)return ps=13,4;var _=24&I;return _!==0?(ps=12,_):(I&32)!==0?(ps=11,32):(_=192&I,_!==0?(ps=10,_):(I&256)!==0?(ps=9,256):(_=3584&I,_!==0?(ps=8,_):(I&4096)!==0?(ps=7,4096):(_=4186112&I,_!==0?(ps=6,_):(_=62914560&I,_!==0?(ps=5,_):I&67108864?(ps=4,67108864):(I&134217728)!==0?(ps=3,134217728):(_=805306368&I,_!==0?(ps=2,_):(1073741824&I)!==0?(ps=1,1073741824):(ps=8,I))))))}function Hte(I){switch(I){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Vte(I){switch(I){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(r(358,I))}}function Gw(I,_){var H=I.pendingLanes;if(H===0)return ps=0;var J=0,fe=0,xe=I.expiredLanes,Pe=I.suspendedLanes,$e=I.pingedLanes;if(xe!==0)J=xe,fe=ps=15;else if(xe=H&134217727,xe!==0){var pt=xe&~Pe;pt!==0?(J=Vm(pt),fe=ps):($e&=xe,$e!==0&&(J=Vm($e),fe=ps))}else xe=H&~Pe,xe!==0?(J=Vm(xe),fe=ps):$e!==0&&(J=Vm($e),fe=ps);if(J===0)return 0;if(J=31-Gm(J),J=H&((0>J?0:1<<J)<<1)-1,_!==0&&_!==J&&(_&Pe)===0){if(Vm(_),fe<=ps)return _;ps=fe}if(_=I.entangledLanes,_!==0)for(I=I.entanglements,_&=J;0<_;)H=31-Gm(_),fe=1<<H,J|=I[H],_&=~fe;return J}function Pj(I){return I=I.pendingLanes&-1073741825,I!==0?I:I&1073741824?1073741824:0}function yT(I,_){switch(I){case 15:return 1;case 14:return 2;case 12:return I=Sa(24&~_),I===0?yT(10,_):I;case 10:return I=Sa(192&~_),I===0?yT(8,_):I;case 8:return I=Sa(3584&~_),I===0&&(I=Sa(4186112&~_),I===0&&(I=512)),I;case 2:return _=Sa(805306368&~_),_===0&&(_=268435456),_}throw Error(r(358,I))}function Sa(I){return I&-I}function Ga(I){for(var _=[],H=0;31>H;H++)_.push(I);return _}function MT(I,_,H){I.pendingLanes|=_;var J=_-1;I.suspendedLanes&=J,I.pingedLanes&=J,I=I.eventTimes,_=31-Gm(_),I[_]=H}var Gm=Math.clz32?Math.clz32:Ute,Gte=Math.log,$te=Math.LN2;function Ute(I){return I===0?32:31-(Gte(I)/$te|0)|0}var Xte=n.unstable_UserBlockingPriority,Dj=n.unstable_runWithPriority,CT=!0;function su(I,_,H,J){un||Tt();var fe=lg,xe=un;un=!0;try{ft(fe,I,_,H,J)}finally{(un=xe)||Yr()}}function Wk(I,_,H,J){Dj(Xte,lg.bind(null,I,_,H,J))}function lg(I,_,H,J){if(CT){var fe;if((fe=(_&4)===0)&&0<ou.length&&-1<Os.indexOf(I))I=Va(null,I,_,H,J),ou.push(I);else{var xe=xT(I,_,H,J);if(xe===null)fe&&wa(I,J);else{if(fe){if(-1<Os.indexOf(I)){I=Va(xe,I,_,H,J),ou.push(I);return}if(cc(xe,I,_,H,J))return;wa(I,J)}Jk(I,_,J,null,H)}}}}function xT(I,_,H,J){var fe=Br(J);if(fe=fg(fe),fe!==null){var xe=xa(fe);if(xe===null)fe=null;else{var Pe=xe.tag;if(Pe===13){if(fe=Xo(xe),fe!==null)return fe;fe=null}else if(Pe===3){if(xe.stateNode.hydrate)return xe.tag===3?xe.stateNode.containerInfo:null;fe=null}else xe!==fe&&(fe=null)}}return Jk(I,_,J,fe,H),null}var bh=null,Ld=null,$w=null;function qk(){if($w)return $w;var I,_=Ld,H=_.length,J,fe="value"in bh?bh.value:bh.textContent,xe=fe.length;for(I=0;I<H&&_[I]===fe[I];I++);var Pe=H-I;for(J=1;J<=Pe&&_[H-J]===fe[xe-J];J++);return $w=fe.slice(I,1<J?1-J:void 0)}function Uw(I){var _=I.keyCode;return"charCode"in I?(I=I.charCode,I===0&&_===13&&(I=13)):I=_,I===10&&(I=13),32<=I||I===13?I:0}function Xw(){return!0}function Bk(){return!1}function _d(I){function _(H,J,fe,xe,Pe){this._reactName=H,this._targetInst=fe,this.type=J,this.nativeEvent=xe,this.target=Pe,this.currentTarget=null;for(var $e in I)I.hasOwnProperty($e)&&(H=I[$e],this[$e]=H?H(xe):xe[$e]);return this.isDefaultPrevented=(xe.defaultPrevented!=null?xe.defaultPrevented:xe.returnValue===!1)?Xw:Bk,this.isPropagationStopped=Bk,this}return t(_.prototype,{preventDefault:function(){this.defaultPrevented=!0;var H=this.nativeEvent;H&&(H.preventDefault?H.preventDefault():typeof H.returnValue!="unknown"&&(H.returnValue=!1),this.isDefaultPrevented=Xw)},stopPropagation:function(){var H=this.nativeEvent;H&&(H.stopPropagation?H.stopPropagation():typeof H.cancelBubble!="unknown"&&(H.cancelBubble=!0),this.isPropagationStopped=Xw)},persist:function(){},isPersistent:Xw}),_}var Nc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(I){return I.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jk=_d(Nc),Nu=t({},Nc,{view:0,detail:0}),Yte=_d(Nu),wT,yh,$m,PM=t({},Nu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kw,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!==$m&&($m&&I.type==="mousemove"?(wT=I.screenX-$m.screenX,yh=I.screenY-$m.screenY):yh=wT=0,$m=I),wT)},movementY:function(I){return"movementY"in I?I.movementY:yh}}),zs=_d(PM),Um=t({},PM,{dataTransfer:0}),Hk=_d(Um),Kte=t({},Nu,{relatedTarget:0}),Yw=_d(Kte),Qte=t({},Nc,{animationName:0,elapsedTime:0,pseudoElement:0}),Zte=_d(Qte),Jte=t({},Nc,{clipboardData:function(I){return"clipboardData"in I?I.clipboardData:window.clipboardData}}),kj=_d(Jte),ST=t({},Nc,{data:0}),h2=_d(ST),ene={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lj={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"},_j={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vk(I){var _=this.nativeEvent;return _.getModifierState?_.getModifierState(I):(I=_j[I])?!!_[I]:!1}function Kw(){return Vk}var Nj=t({},Nu,{key:function(I){if(I.key){var _=ene[I.key]||I.key;if(_!=="Unidentified")return _}return I.type==="keypress"?(I=Uw(I),I===13?"Enter":String.fromCharCode(I)):I.type==="keydown"||I.type==="keyup"?Lj[I.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kw,charCode:function(I){return I.type==="keypress"?Uw(I):0},keyCode:function(I){return I.type==="keydown"||I.type==="keyup"?I.keyCode:0},which:function(I){return I.type==="keypress"?Uw(I):I.type==="keydown"||I.type==="keyup"?I.keyCode:0}}),tne=_d(Nj),Gk=t({},PM,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),AT=_d(Gk),nne=t({},Nu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kw}),Fj=_d(nne),D0=t({},Nc,{propertyName:0,elapsedTime:0,pseudoElement:0}),$k=_d(D0),Qw=t({},PM,{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}),Wj=_d(Qw),qj=[9,13,27,32],Uk=l&&"CompositionEvent"in window,Zw=null;l&&"documentMode"in document&&(Zw=document.documentMode);var rne=l&&"TextEvent"in window&&!Zw,Bj=l&&(!Uk||Zw&&8<Zw&&11>=Zw),jj=" ",f2=!1;function Hj(I,_){switch(I){case"keyup":return qj.indexOf(_.keyCode)!==-1;case"keydown":return _.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vj(I){return I=I.detail,typeof I=="object"&&"data"in I?I.data:null}var Xm=!1;function Gj(I,_){switch(I){case"compositionend":return Vj(_);case"keypress":return _.which!==32?null:(f2=!0,jj);case"textInput":return I=_.data,I===jj&&f2?null:I;default:return null}}function Ym(I,_){if(Xm)return I==="compositionend"||!Uk&&Hj(I,_)?(I=qk(),$w=Ld=bh=null,Xm=!1,I):null;switch(I){case"paste":return null;case"keypress":if(!(_.ctrlKey||_.altKey||_.metaKey)||_.ctrlKey&&_.altKey){if(_.char&&1<_.char.length)return _.char;if(_.which)return String.fromCharCode(_.which)}return null;case"compositionend":return Bj&&_.locale!=="ko"?null:_.data;default:return null}}var OT={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 $j(I){var _=I&&I.nodeName&&I.nodeName.toLowerCase();return _==="input"?!!OT[I.type]:_==="textarea"}function Uj(I,_,H,J){ct(J),_=Ch(_,"onChange"),0<_.length&&(H=new jk("onChange","change",null,H,J),I.push({event:H,listeners:_}))}var Jw=null,Mh=null;function Tp(I){oS(I,0)}function eS(I){var _=wh(I);if(be(_))return I}function ine(I,_){if(I==="change")return _}var Xj=!1;if(l){var Xk;if(l){var Yk="oninput"in document;if(!Yk){var Yj=document.createElement("div");Yj.setAttribute("oninput","return;"),Yk=typeof Yj.oninput=="function"}Xk=Yk}else Xk=!1;Xj=Xk&&(!document.documentMode||9<document.documentMode)}function g2(){Jw&&(Jw.detachEvent("onpropertychange",wt),Mh=Jw=null)}function wt(I){if(I.propertyName==="value"&&eS(Mh)){var _=[];if(Uj(_,Mh,I,Br(I)),I=Tp,un)I(_);else{un=!0;try{Je(I,_)}finally{un=!1,Yr()}}}}function Zt(I,_,H){I==="focusin"?(g2(),Jw=_,Mh=H,Jw.attachEvent("onpropertychange",wt)):I==="focusout"&&g2()}function Wt(I){if(I==="selectionchange"||I==="keyup"||I==="keydown")return eS(Mh)}function Mr(I,_){if(I==="click")return eS(_)}function Wi(I,_){if(I==="input"||I==="change")return eS(_)}function ga(I,_){return I===_&&(I!==0||1/I===1/_)||I!==I&&_!==_}var Aa=typeof Object.is=="function"?Object.is:ga,ns=Object.prototype.hasOwnProperty;function m2(I,_){if(Aa(I,_))return!0;if(typeof I!="object"||I===null||typeof _!="object"||_===null)return!1;var H=Object.keys(I),J=Object.keys(_);if(H.length!==J.length)return!1;for(J=0;J<H.length;J++)if(!ns.call(_,H[J])||!Aa(I[H[J]],_[H[J]]))return!1;return!0}function Kj(I){for(;I&&I.firstChild;)I=I.firstChild;return I}function k0(I,_){var H=Kj(I);I=0;for(var J;H;){if(H.nodeType===3){if(J=I+H.textContent.length,I<=_&&J>=_)return{node:H,offset:_-I};I=J}e:{for(;H;){if(H.nextSibling){H=H.nextSibling;break e}H=H.parentNode}H=void 0}H=Kj(H)}}function tS(I,_){return I&&_?I===_?!0:I&&I.nodeType===3?!1:_&&_.nodeType===3?tS(I,_.parentNode):"contains"in I?I.contains(_):I.compareDocumentPosition?!!(I.compareDocumentPosition(_)&16):!1:!1}function Qj(){for(var I=window,_=me();_ instanceof I.HTMLIFrameElement;){try{var H=typeof _.contentWindow.location.href=="string"}catch{H=!1}if(H)I=_.contentWindow;else break;_=me(I.document)}return _}function Km(I){var _=I&&I.nodeName&&I.nodeName.toLowerCase();return _&&(_==="input"&&(I.type==="text"||I.type==="search"||I.type==="tel"||I.type==="url"||I.type==="password")||_==="textarea"||I.contentEditable==="true")}var zT=l&&"documentMode"in document&&11>=document.documentMode,cg=null,ma=null,nS=null,TT=!1;function rS(I,_,H){var J=H.window===H?H.document:H.nodeType===9?H:H.ownerDocument;TT||cg==null||cg!==me(J)||(J=cg,"selectionStart"in J&&Km(J)?J={start:J.selectionStart,end:J.selectionEnd}:(J=(J.ownerDocument&&J.ownerDocument.defaultView||window).getSelection(),J={anchorNode:J.anchorNode,anchorOffset:J.anchorOffset,focusNode:J.focusNode,focusOffset:J.focusOffset}),nS&&m2(nS,J)||(nS=J,J=Ch(ma,"onSelect"),0<J.length&&(_=new jk("onSelect","select",null,_,H),I.push({event:_,listeners:J}),_.target=cg)))}Fk("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Fk("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Fk(Bte,2);for(var Zj="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Kk=0;Kk<Zj.length;Kk++)bT.set(Zj[Kk],0);s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iS="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ET=new Set("cancel close invalid load scroll toggle".split(" ").concat(iS));function ug(I,_,H){var J=I.type||"unknown-event";I.currentTarget=H,Jr(J,_,void 0,I),I.currentTarget=null}function oS(I,_){_=(_&4)!==0;for(var H=0;H<I.length;H++){var J=I[H],fe=J.event;J=J.listeners;e:{var xe=void 0;if(_)for(var Pe=J.length-1;0<=Pe;Pe--){var $e=J[Pe],pt=$e.instance,Bt=$e.currentTarget;if($e=$e.listener,pt!==xe&&fe.isPropagationStopped())break e;ug(fe,$e,Bt),xe=pt}else for(Pe=0;Pe<J.length;Pe++){if($e=J[Pe],pt=$e.instance,Bt=$e.currentTarget,$e=$e.listener,pt!==xe&&fe.isPropagationStopped())break e;ug(fe,$e,Bt),xe=pt}}}if(kt)throw I=It,kt=!1,It=null,I}function hs(I,_){var H=uS(_),J=I+"__bubble";H.has(J)||(sS(_,I,2,!1),H.add(J))}var aS="_reactListening"+Math.random().toString(36).slice(2);function Qk(I){I[aS]||(I[aS]=!0,i.forEach(function(_){ET.has(_)||Zk(_,!1,I,null),Zk(_,!0,I,null)}))}function Zk(I,_,H,J){var fe=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,xe=H;I==="selectionchange"&&H.nodeType!==9&&(xe=H.ownerDocument);var Pe=uS(xe),$e=I+"__"+(_?"capture":"bubble");Pe.has($e)||(_&&(fe|=4),sS(xe,I,fe,_),Pe.add($e))}function sS(I,_,H,J){var fe=bT.get(_);switch(fe===void 0?2:fe){case 0:fe=su;break;case 1:fe=Wk;break;default:fe=lg}H=fe.bind(null,_,H,I),fe=void 0,!si||_!=="touchstart"&&_!=="touchmove"&&_!=="wheel"||(fe=!0),J?fe!==void 0?I.addEventListener(_,H,{capture:!0,passive:fe}):I.addEventListener(_,H,!0):fe!==void 0?I.addEventListener(_,H,{passive:fe}):I.addEventListener(_,H,!1)}function Jk(I,_,H,J,fe){var xe=J;if((_&1)===0&&(_&2)===0&&J!==null)e:for(;;){if(J===null)return;var Pe=J.tag;if(Pe===3||Pe===4){var $e=J.stateNode.containerInfo;if($e===fe||$e.nodeType===8&&$e.parentNode===fe)break;if(Pe===4)for(Pe=J.return;Pe!==null;){var pt=Pe.tag;if((pt===3||pt===4)&&(pt=Pe.stateNode.containerInfo,pt===fe||pt.nodeType===8&&pt.parentNode===fe))return;Pe=Pe.return}for(;$e!==null;){if(Pe=fg($e),Pe===null)return;if(pt=Pe.tag,pt===5||pt===6){J=xe=Pe;continue e}$e=$e.parentNode}}J=J.return}yr(function(){var Bt=xe,gr=Br(H),Ai=[];e:{var gn=Ij.get(I);if(gn!==void 0){var Hr=jk,Ti=I;switch(I){case"keypress":if(Uw(H)===0)break e;case"keydown":case"keyup":Hr=tne;break;case"focusin":Ti="focus",Hr=Yw;break;case"focusout":Ti="blur",Hr=Yw;break;case"beforeblur":case"afterblur":Hr=Yw;break;case"click":if(H.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Hr=zs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Hr=Hk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Hr=Fj;break;case Al:case uc:case P0:Hr=Zte;break;case Rj:Hr=$k;break;case"scroll":Hr=Yte;break;case"wheel":Hr=Wj;break;case"copy":case"cut":case"paste":Hr=kj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Hr=AT}var vi=(_&4)!==0,Rt=!vi&&I==="scroll",bt=vi?gn!==null?gn+"Capture":null:gn;vi=[];for(var zt=Bt,an;zt!==null;){an=zt;var cn=an.stateNode;if(an.tag===5&&cn!==null&&(an=cn,bt!==null&&(cn=dr(zt,bt),cn!=null&&vi.push(dg(zt,cn,an)))),Rt)break;zt=zt.return}0<vi.length&&(gn=new Hr(gn,Ti,null,H,gr),Ai.push({event:gn,listeners:vi}))}}if((_&7)===0){e:{if(gn=I==="mouseover"||I==="pointerover",Hr=I==="mouseout"||I==="pointerout",gn&&(_&16)===0&&(Ti=H.relatedTarget||H.fromElement)&&(fg(Ti)||Ti[Qm]))break e;if((Hr||gn)&&(gn=gr.window===gr?gr:(gn=gr.ownerDocument)?gn.defaultView||gn.parentWindow:window,Hr?(Ti=H.relatedTarget||H.toElement,Hr=Bt,Ti=Ti?fg(Ti):null,Ti!==null&&(Rt=xa(Ti),Ti!==Rt||Ti.tag!==5&&Ti.tag!==6)&&(Ti=null)):(Hr=null,Ti=Bt),Hr!==Ti)){if(vi=zs,cn="onMouseLeave",bt="onMouseEnter",zt="mouse",(I==="pointerout"||I==="pointerover")&&(vi=AT,cn="onPointerLeave",bt="onPointerEnter",zt="pointer"),Rt=Hr==null?gn:wh(Hr),an=Ti==null?gn:wh(Ti),gn=new vi(cn,zt+"leave",Hr,H,gr),gn.target=Rt,gn.relatedTarget=an,cn=null,fg(gr)===Bt&&(vi=new vi(bt,zt+"enter",Ti,H,gr),vi.target=an,vi.relatedTarget=Rt,cn=vi),Rt=cn,Hr&&Ti)t:{for(vi=Hr,bt=Ti,zt=0,an=vi;an;an=pg(an))zt++;for(an=0,cn=bt;cn;cn=pg(cn))an++;for(;0<zt-an;)vi=pg(vi),zt--;for(;0<an-zt;)bt=pg(bt),an--;for(;zt--;){if(vi===bt||bt!==null&&vi===bt.alternate)break t;vi=pg(vi),bt=pg(bt)}vi=null}else vi=null;Hr!==null&&Jj(Ai,gn,Hr,vi,!1),Ti!==null&&Rt!==null&&Jj(Ai,Rt,Ti,vi,!0)}}e:{if(gn=Bt?wh(Bt):window,Hr=gn.nodeName&&gn.nodeName.toLowerCase(),Hr==="select"||Hr==="input"&&gn.type==="file")var Li=ine;else if($j(gn))if(Xj)Li=Wi;else{Li=Wt;var Rr=Zt}else(Hr=gn.nodeName)&&Hr.toLowerCase()==="input"&&(gn.type==="checkbox"||gn.type==="radio")&&(Li=Mr);if(Li&&(Li=Li(I,Bt))){Uj(Ai,Li,H,gr);break e}Rr&&Rr(I,gn,Bt),I==="focusout"&&(Rr=gn._wrapperState)&&Rr.controlled&&gn.type==="number"&&Ae(gn,"number",gn.value)}switch(Rr=Bt?wh(Bt):window,I){case"focusin":($j(Rr)||Rr.contentEditable==="true")&&(cg=Rr,ma=Bt,nS=null);break;case"focusout":nS=ma=cg=null;break;case"mousedown":TT=!0;break;case"contextmenu":case"mouseup":case"dragend":TT=!1,rS(Ai,H,gr);break;case"selectionchange":if(zT)break;case"keydown":case"keyup":rS(Ai,H,gr)}var Oi;if(Uk)e:{switch(I){case"compositionstart":var Co="onCompositionStart";break e;case"compositionend":Co="onCompositionEnd";break e;case"compositionupdate":Co="onCompositionUpdate";break e}Co=void 0}else Xm?Hj(I,H)&&(Co="onCompositionEnd"):I==="keydown"&&H.keyCode===229&&(Co="onCompositionStart");Co&&(Bj&&H.locale!=="ko"&&(Xm||Co!=="onCompositionStart"?Co==="onCompositionEnd"&&Xm&&(Oi=qk()):(bh=gr,Ld="value"in bh?bh.value:bh.textContent,Xm=!0)),Rr=Ch(Bt,Co),0<Rr.length&&(Co=new h2(Co,I,null,H,gr),Ai.push({event:Co,listeners:Rr}),Oi?Co.data=Oi:(Oi=Vj(H),Oi!==null&&(Co.data=Oi)))),(Oi=rne?Gj(I,H):Ym(I,H))&&(Bt=Ch(Bt,"onBeforeInput"),0<Bt.length&&(gr=new h2("onBeforeInput","beforeinput",null,H,gr),Ai.push({event:gr,listeners:Bt}),gr.data=Oi))}oS(Ai,_)})}function dg(I,_,H){return{instance:I,listener:_,currentTarget:H}}function Ch(I,_){for(var H=_+"Capture",J=[];I!==null;){var fe=I,xe=fe.stateNode;fe.tag===5&&xe!==null&&(fe=xe,xe=dr(I,H),xe!=null&&J.unshift(dg(I,xe,fe)),xe=dr(I,_),xe!=null&&J.push(dg(I,xe,fe))),I=I.return}return J}function pg(I){if(I===null)return null;do I=I.return;while(I&&I.tag!==5);return I||null}function Jj(I,_,H,J,fe){for(var xe=_._reactName,Pe=[];H!==null&&H!==J;){var $e=H,pt=$e.alternate,Bt=$e.stateNode;if(pt!==null&&pt===J)break;$e.tag===5&&Bt!==null&&($e=Bt,fe?(pt=dr(H,xe),pt!=null&&Pe.unshift(dg(H,pt,$e))):fe||(pt=dr(H,xe),pt!=null&&Pe.push(dg(H,pt,$e)))),H=H.return}Pe.length!==0&&I.push({event:_,listeners:Pe})}function RT(){}var eL=null,DM=null;function lS(I,_){switch(I){case"button":case"input":case"select":case"textarea":return!!_.autoFocus}return!1}function cS(I,_){return I==="textarea"||I==="option"||I==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var eH=typeof setTimeout=="function"?setTimeout:void 0,tH=typeof clearTimeout=="function"?clearTimeout:void 0;function tL(I){I.nodeType===1?I.textContent="":I.nodeType===9&&(I=I.body,I!=null&&(I.textContent=""))}function kM(I){for(;I!=null;I=I.nextSibling){var _=I.nodeType;if(_===1||_===3)break}return I}function Ul(I){I=I.previousSibling;for(var _=0;I;){if(I.nodeType===8){var H=I.data;if(H==="$"||H==="$!"||H==="$?"){if(_===0)return I;_--}else H==="/$"&&_++}I=I.previousSibling}return null}var Fc=0;function one(I){return{$$typeof:G,toString:I,valueOf:I}}var IT=Math.random().toString(36).slice(2),hg="__reactFiber$"+IT,PT="__reactProps$"+IT,Qm="__reactContainer$"+IT,LM="__reactEvents$"+IT;function fg(I){var _=I[hg];if(_)return _;for(var H=I.parentNode;H;){if(_=H[Qm]||H[hg]){if(H=_.alternate,_.child!==null||H!==null&&H.child!==null)for(I=Ul(I);I!==null;){if(H=I[hg])return H;I=Ul(I)}return _}I=H,H=I.parentNode}return null}function xh(I){return I=I[hg]||I[Qm],!I||I.tag!==5&&I.tag!==6&&I.tag!==13&&I.tag!==3?null:I}function wh(I){if(I.tag===5||I.tag===6)return I.stateNode;throw Error(r(33))}function Zm(I){return I[PT]||null}function uS(I){var _=I[LM];return _===void 0&&(_=I[LM]=new Set),_}var Jm=[],_M=-1;function ev(I){return{current:I}}function Ts(I){0>_M||(I.current=Jm[_M],Jm[_M]=null,_M--)}function cl(I,_){_M++,Jm[_M]=I.current,I.current=_}var tv={},dc=ev(tv),Wc=ev(!1),nv=tv;function ke(I,_){var H=I.type.contextTypes;if(!H)return tv;var J=I.stateNode;if(J&&J.__reactInternalMemoizedUnmaskedChildContext===_)return J.__reactInternalMemoizedMaskedChildContext;var fe={},xe;for(xe in H)fe[xe]=_[xe];return J&&(I=I.stateNode,I.__reactInternalMemoizedUnmaskedChildContext=_,I.__reactInternalMemoizedMaskedChildContext=fe),fe}function pc(I){return I=I.childContextTypes,I!=null}function v2(){Ts(Wc),Ts(dc)}function L0(I,_,H){if(dc.current!==tv)throw Error(r(168));cl(dc,_),cl(Wc,H)}function To(I,_,H){var J=I.stateNode;if(I=_.childContextTypes,typeof J.getChildContext!="function")return H;J=J.getChildContext();for(var fe in J)if(!(fe in I))throw Error(r(108,oe(_)||"Unknown",fe));return t({},H,J)}function DT(I){return I=(I=I.stateNode)&&I.__reactInternalMemoizedMergedChildContext||tv,nv=dc.current,cl(dc,I),cl(Wc,Wc.current),!0}function nH(I,_,H){var J=I.stateNode;if(!J)throw Error(r(169));H?(I=To(I,_,nv),J.__reactInternalMemoizedMergedChildContext=I,Ts(Wc),Ts(dc),cl(dc,I)):Ts(Wc),cl(Wc,H)}var nL=null,_0=null,ane=n.unstable_runWithPriority,rL=n.unstable_scheduleCallback,iL=n.unstable_cancelCallback,sne=n.unstable_shouldYield,rH=n.unstable_requestPaint,Ep=n.unstable_now,lne=n.unstable_getCurrentPriorityLevel,kT=n.unstable_ImmediatePriority,iH=n.unstable_UserBlockingPriority,oH=n.unstable_NormalPriority,aH=n.unstable_LowPriority,Sh=n.unstable_IdlePriority,oL={},cne=rH!==void 0?rH:function(){},gg=null,LT=null,aL=!1,rv=Ep(),Fu=1e4>rv?Ep:function(){return Ep()-rv};function NM(){switch(lne()){case kT:return 99;case iH:return 98;case oH:return 97;case aH:return 96;case Sh:return 95;default:throw Error(r(332))}}function x1(I){switch(I){case 99:return kT;case 98:return iH;case 97:return oH;case 96:return aH;case 95:return Sh;default:throw Error(r(332))}}function b2(I,_){return I=x1(I),ane(I,_)}function dS(I,_,H){return I=x1(I),rL(I,_,H)}function Ah(){if(LT!==null){var I=LT;LT=null,iL(I)}sH()}function sH(){if(!aL&&gg!==null){aL=!0;var I=0;try{var _=gg;b2(99,function(){for(;I<_.length;I++){var H=_[I];do H=H(!0);while(H!==null)}}),gg=null}catch(H){throw gg!==null&&(gg=gg.slice(I+1)),rL(kT,Ah),H}finally{aL=!1}}}var une=w.ReactCurrentBatchConfig;function w1(I,_){if(I&&I.defaultProps){_=t({},_),I=I.defaultProps;for(var H in I)_[H]===void 0&&(_[H]=I[H]);return _}return _}var pS=ev(null),_T=null,FM=null,WM=null;function y2(){WM=FM=_T=null}function qM(I){var _=pS.current;Ts(pS),I.type._context._currentValue=_}function lH(I,_){for(;I!==null;){var H=I.alternate;if((I.childLanes&_)===_){if(H===null||(H.childLanes&_)===_)break;H.childLanes|=_}else I.childLanes|=_,H!==null&&(H.childLanes|=_);I=I.return}}function M2(I,_){_T=I,WM=FM=null,I=I.dependencies,I!==null&&I.firstContext!==null&&((I.lanes&_)!==0&&(qc=!0),I.firstContext=null)}function S1(I,_){if(WM!==I&&_!==!1&&_!==0)if((typeof _!="number"||_===1073741823)&&(WM=I,_=1073741823),_={context:I,observedBits:_,next:null},FM===null){if(_T===null)throw Error(r(308));FM=_,_T.dependencies={lanes:0,firstContext:_,responders:null}}else FM=FM.next=_;return I._currentValue}var Wu=!1;function hS(I){I.updateQueue={baseState:I.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function iv(I,_){I=I.updateQueue,_.updateQueue===I&&(_.updateQueue={baseState:I.baseState,firstBaseUpdate:I.firstBaseUpdate,lastBaseUpdate:I.lastBaseUpdate,shared:I.shared,effects:I.effects})}function hc(I,_){return{eventTime:I,lane:_,tag:0,payload:null,callback:null,next:null}}function ov(I,_){if(I=I.updateQueue,I!==null){I=I.shared;var H=I.pending;H===null?_.next=_:(_.next=H.next,H.next=_),I.pending=_}}function sL(I,_){var H=I.updateQueue,J=I.alternate;if(J!==null&&(J=J.updateQueue,H===J)){var fe=null,xe=null;if(H=H.firstBaseUpdate,H!==null){do{var Pe={eventTime:H.eventTime,lane:H.lane,tag:H.tag,payload:H.payload,callback:H.callback,next:null};xe===null?fe=xe=Pe:xe=xe.next=Pe,H=H.next}while(H!==null);xe===null?fe=xe=_:xe=xe.next=_}else fe=xe=_;H={baseState:J.baseState,firstBaseUpdate:fe,lastBaseUpdate:xe,shared:J.shared,effects:J.effects},I.updateQueue=H;return}I=H.lastBaseUpdate,I===null?H.firstBaseUpdate=_:I.next=_,H.lastBaseUpdate=_}function BM(I,_,H,J){var fe=I.updateQueue;Wu=!1;var xe=fe.firstBaseUpdate,Pe=fe.lastBaseUpdate,$e=fe.shared.pending;if($e!==null){fe.shared.pending=null;var pt=$e,Bt=pt.next;pt.next=null,Pe===null?xe=Bt:Pe.next=Bt,Pe=pt;var gr=I.alternate;if(gr!==null){gr=gr.updateQueue;var Ai=gr.lastBaseUpdate;Ai!==Pe&&(Ai===null?gr.firstBaseUpdate=Bt:Ai.next=Bt,gr.lastBaseUpdate=pt)}}if(xe!==null){Ai=fe.baseState,Pe=0,gr=Bt=pt=null;do{$e=xe.lane;var gn=xe.eventTime;if((J&$e)===$e){gr!==null&&(gr=gr.next={eventTime:gn,lane:0,tag:xe.tag,payload:xe.payload,callback:xe.callback,next:null});e:{var Hr=I,Ti=xe;switch($e=_,gn=H,Ti.tag){case 1:if(Hr=Ti.payload,typeof Hr=="function"){Ai=Hr.call(gn,Ai,$e);break e}Ai=Hr;break e;case 3:Hr.flags=Hr.flags&-4097|64;case 0:if(Hr=Ti.payload,$e=typeof Hr=="function"?Hr.call(gn,Ai,$e):Hr,$e==null)break e;Ai=t({},Ai,$e);break e;case 2:Wu=!0}}xe.callback!==null&&(I.flags|=32,$e=fe.effects,$e===null?fe.effects=[xe]:$e.push(xe))}else gn={eventTime:gn,lane:$e,tag:xe.tag,payload:xe.payload,callback:xe.callback,next:null},gr===null?(Bt=gr=gn,pt=Ai):gr=gr.next=gn,Pe|=$e;if(xe=xe.next,xe===null){if($e=fe.shared.pending,$e===null)break;xe=$e.next,$e.next=null,fe.lastBaseUpdate=$e,fe.shared.pending=null}}while(!0);gr===null&&(pt=Ai),fe.baseState=pt,fe.firstBaseUpdate=Bt,fe.lastBaseUpdate=gr,E2|=Pe,I.lanes=Pe,I.memoizedState=Ai}}function jM(I,_,H){if(I=_.effects,_.effects=null,I!==null)for(_=0;_<I.length;_++){var J=I[_],fe=J.callback;if(fe!==null){if(J.callback=null,J=H,typeof fe!="function")throw Error(r(191,fe));fe.call(J)}}}var mg=new e.Component().refs;function fS(I,_,H,J){_=I.memoizedState,H=H(J,_),H=H==null?_:t({},_,H),I.memoizedState=H,I.lanes===0&&(I.updateQueue.baseState=H)}var NT={isMounted:function(I){return(I=I._reactInternals)?xa(I)===I:!1},enqueueSetState:function(I,_,H){I=I._reactInternals;var J=F0(),fe=xg(I),xe=hc(J,fe);xe.payload=_,H!=null&&(xe.callback=H),ov(I,xe),wg(I,fe,J)},enqueueReplaceState:function(I,_,H){I=I._reactInternals;var J=F0(),fe=xg(I),xe=hc(J,fe);xe.tag=1,xe.payload=_,H!=null&&(xe.callback=H),ov(I,xe),wg(I,fe,J)},enqueueForceUpdate:function(I,_){I=I._reactInternals;var H=F0(),J=xg(I),fe=hc(H,J);fe.tag=2,_!=null&&(fe.callback=_),ov(I,fe),wg(I,J,H)}};function gS(I,_,H,J,fe,xe,Pe){return I=I.stateNode,typeof I.shouldComponentUpdate=="function"?I.shouldComponentUpdate(J,xe,Pe):_.prototype&&_.prototype.isPureReactComponent?!m2(H,J)||!m2(fe,xe):!0}function cH(I,_,H){var J=!1,fe=tv,xe=_.contextType;return typeof xe=="object"&&xe!==null?xe=S1(xe):(fe=pc(_)?nv:dc.current,J=_.contextTypes,xe=(J=J!=null)?ke(I,fe):tv),_=new _(H,xe),I.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=NT,I.stateNode=_,_._reactInternals=I,J&&(I=I.stateNode,I.__reactInternalMemoizedUnmaskedChildContext=fe,I.__reactInternalMemoizedMaskedChildContext=xe),_}function lL(I,_,H,J){I=_.state,typeof _.componentWillReceiveProps=="function"&&_.componentWillReceiveProps(H,J),typeof _.UNSAFE_componentWillReceiveProps=="function"&&_.UNSAFE_componentWillReceiveProps(H,J),_.state!==I&&NT.enqueueReplaceState(_,_.state,null)}function fc(I,_,H,J){var fe=I.stateNode;fe.props=H,fe.state=I.memoizedState,fe.refs=mg,hS(I);var xe=_.contextType;typeof xe=="object"&&xe!==null?fe.context=S1(xe):(xe=pc(_)?nv:dc.current,fe.context=ke(I,xe)),BM(I,H,fe,J),fe.state=I.memoizedState,xe=_.getDerivedStateFromProps,typeof xe=="function"&&(fS(I,_,xe,H),fe.state=I.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof fe.getSnapshotBeforeUpdate=="function"||typeof fe.UNSAFE_componentWillMount!="function"&&typeof fe.componentWillMount!="function"||(_=fe.state,typeof fe.componentWillMount=="function"&&fe.componentWillMount(),typeof fe.UNSAFE_componentWillMount=="function"&&fe.UNSAFE_componentWillMount(),_!==fe.state&&NT.enqueueReplaceState(fe,fe.state,null),BM(I,H,fe,J),fe.state=I.memoizedState),typeof fe.componentDidMount=="function"&&(I.flags|=4)}var HM=Array.isArray;function VM(I,_,H){if(I=H.ref,I!==null&&typeof I!="function"&&typeof I!="object"){if(H._owner){if(H=H._owner,H){if(H.tag!==1)throw Error(r(309));var J=H.stateNode}if(!J)throw Error(r(147,I));var fe=""+I;return _!==null&&_.ref!==null&&typeof _.ref=="function"&&_.ref._stringRef===fe?_.ref:(_=function(xe){var Pe=J.refs;Pe===mg&&(Pe=J.refs={}),xe===null?delete Pe[fe]:Pe[fe]=xe},_._stringRef=fe,_)}if(typeof I!="string")throw Error(r(284));if(!H._owner)throw Error(r(290,I))}return I}function N0(I,_){if(I.type!=="textarea")throw Error(r(31,Object.prototype.toString.call(_)==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":_))}function FT(I){function _(Rt,bt){if(I){var zt=Rt.lastEffect;zt!==null?(zt.nextEffect=bt,Rt.lastEffect=bt):Rt.firstEffect=Rt.lastEffect=bt,bt.nextEffect=null,bt.flags=8}}function H(Rt,bt){if(!I)return null;for(;bt!==null;)_(Rt,bt),bt=bt.sibling;return null}function J(Rt,bt){for(Rt=new Map;bt!==null;)bt.key!==null?Rt.set(bt.key,bt):Rt.set(bt.index,bt),bt=bt.sibling;return Rt}function fe(Rt,bt){return Rt=uv(Rt,bt),Rt.index=0,Rt.sibling=null,Rt}function xe(Rt,bt,zt){return Rt.index=zt,I?(zt=Rt.alternate,zt!==null?(zt=zt.index,zt<bt?(Rt.flags=2,bt):zt):(Rt.flags=2,bt)):bt}function Pe(Rt){return I&&Rt.alternate===null&&(Rt.flags=2),Rt}function $e(Rt,bt,zt,an){return bt===null||bt.tag!==6?(bt=VL(zt,Rt.mode,an),bt.return=Rt,bt):(bt=fe(bt,zt),bt.return=Rt,bt)}function pt(Rt,bt,zt,an){return bt!==null&&bt.elementType===zt.type?(an=fe(bt,zt.props),an.ref=VM(Rt,bt,zt),an.return=Rt,an):(an=lE(zt.type,zt.key,zt.props,null,Rt.mode,an),an.ref=VM(Rt,bt,zt),an.return=Rt,an)}function Bt(Rt,bt,zt,an){return bt===null||bt.tag!==4||bt.stateNode.containerInfo!==zt.containerInfo||bt.stateNode.implementation!==zt.implementation?(bt=GL(zt,Rt.mode,an),bt.return=Rt,bt):(bt=fe(bt,zt.children||[]),bt.return=Rt,bt)}function gr(Rt,bt,zt,an,cn){return bt===null||bt.tag!==7?(bt=ZM(zt,Rt.mode,an,cn),bt.return=Rt,bt):(bt=fe(bt,zt),bt.return=Rt,bt)}function Ai(Rt,bt,zt){if(typeof bt=="string"||typeof bt=="number")return bt=VL(""+bt,Rt.mode,zt),bt.return=Rt,bt;if(typeof bt=="object"&&bt!==null){switch(bt.$$typeof){case S:return zt=lE(bt.type,bt.key,bt.props,null,Rt.mode,zt),zt.ref=VM(Rt,null,bt),zt.return=Rt,zt;case A:return bt=GL(bt,Rt.mode,zt),bt.return=Rt,bt}if(HM(bt)||re(bt))return bt=ZM(bt,Rt.mode,zt,null),bt.return=Rt,bt;N0(Rt,bt)}return null}function gn(Rt,bt,zt,an){var cn=bt!==null?bt.key:null;if(typeof zt=="string"||typeof zt=="number")return cn!==null?null:$e(Rt,bt,""+zt,an);if(typeof zt=="object"&&zt!==null){switch(zt.$$typeof){case S:return zt.key===cn?zt.type===z?gr(Rt,bt,zt.props.children,an,cn):pt(Rt,bt,zt,an):null;case A:return zt.key===cn?Bt(Rt,bt,zt,an):null}if(HM(zt)||re(zt))return cn!==null?null:gr(Rt,bt,zt,an,null);N0(Rt,zt)}return null}function Hr(Rt,bt,zt,an,cn){if(typeof an=="string"||typeof an=="number")return Rt=Rt.get(zt)||null,$e(bt,Rt,""+an,cn);if(typeof an=="object"&&an!==null){switch(an.$$typeof){case S:return Rt=Rt.get(an.key===null?zt:an.key)||null,an.type===z?gr(bt,Rt,an.props.children,cn,an.key):pt(bt,Rt,an,cn);case A:return Rt=Rt.get(an.key===null?zt:an.key)||null,Bt(bt,Rt,an,cn)}if(HM(an)||re(an))return Rt=Rt.get(zt)||null,gr(bt,Rt,an,cn,null);N0(bt,an)}return null}function Ti(Rt,bt,zt,an){for(var cn=null,Li=null,Rr=bt,Oi=bt=0,Co=null;Rr!==null&&Oi<zt.length;Oi++){Rr.index>Oi?(Co=Rr,Rr=null):Co=Rr.sibling;var Zi=gn(Rt,Rr,zt[Oi],an);if(Zi===null){Rr===null&&(Rr=Co);break}I&&Rr&&Zi.alternate===null&&_(Rt,Rr),bt=xe(Zi,bt,Oi),Li===null?cn=Zi:Li.sibling=Zi,Li=Zi,Rr=Co}if(Oi===zt.length)return H(Rt,Rr),cn;if(Rr===null){for(;Oi<zt.length;Oi++)Rr=Ai(Rt,zt[Oi],an),Rr!==null&&(bt=xe(Rr,bt,Oi),Li===null?cn=Rr:Li.sibling=Rr,Li=Rr);return cn}for(Rr=J(Rt,Rr);Oi<zt.length;Oi++)Co=Hr(Rr,Rt,Oi,zt[Oi],an),Co!==null&&(I&&Co.alternate!==null&&Rr.delete(Co.key===null?Oi:Co.key),bt=xe(Co,bt,Oi),Li===null?cn=Co:Li.sibling=Co,Li=Co);return I&&Rr.forEach(function(dv){return _(Rt,dv)}),cn}function vi(Rt,bt,zt,an){var cn=re(zt);if(typeof cn!="function")throw Error(r(150));if(zt=cn.call(zt),zt==null)throw Error(r(151));for(var Li=cn=null,Rr=bt,Oi=bt=0,Co=null,Zi=zt.next();Rr!==null&&!Zi.done;Oi++,Zi=zt.next()){Rr.index>Oi?(Co=Rr,Rr=null):Co=Rr.sibling;var dv=gn(Rt,Rr,Zi.value,an);if(dv===null){Rr===null&&(Rr=Co);break}I&&Rr&&dv.alternate===null&&_(Rt,Rr),bt=xe(dv,bt,Oi),Li===null?cn=dv:Li.sibling=dv,Li=dv,Rr=Co}if(Zi.done)return H(Rt,Rr),cn;if(Rr===null){for(;!Zi.done;Oi++,Zi=zt.next())Zi=Ai(Rt,Zi.value,an),Zi!==null&&(bt=xe(Zi,bt,Oi),Li===null?cn=Zi:Li.sibling=Zi,Li=Zi);return cn}for(Rr=J(Rt,Rr);!Zi.done;Oi++,Zi=zt.next())Zi=Hr(Rr,Rt,Oi,Zi.value,an),Zi!==null&&(I&&Zi.alternate!==null&&Rr.delete(Zi.key===null?Oi:Zi.key),bt=xe(Zi,bt,Oi),Li===null?cn=Zi:Li.sibling=Zi,Li=Zi);return I&&Rr.forEach(function(zne){return _(Rt,zne)}),cn}return function(Rt,bt,zt,an){var cn=typeof zt=="object"&&zt!==null&&zt.type===z&&zt.key===null;cn&&(zt=zt.props.children);var Li=typeof zt=="object"&&zt!==null;if(Li)switch(zt.$$typeof){case S:e:{for(Li=zt.key,cn=bt;cn!==null;){if(cn.key===Li){switch(cn.tag){case 7:if(zt.type===z){H(Rt,cn.sibling),bt=fe(cn,zt.props.children),bt.return=Rt,Rt=bt;break e}break;default:if(cn.elementType===zt.type){H(Rt,cn.sibling),bt=fe(cn,zt.props),bt.ref=VM(Rt,cn,zt),bt.return=Rt,Rt=bt;break e}}H(Rt,cn);break}else _(Rt,cn);cn=cn.sibling}zt.type===z?(bt=ZM(zt.props.children,Rt.mode,an,zt.key),bt.return=Rt,Rt=bt):(an=lE(zt.type,zt.key,zt.props,null,Rt.mode,an),an.ref=VM(Rt,bt,zt),an.return=Rt,Rt=an)}return Pe(Rt);case A:e:{for(cn=zt.key;bt!==null;){if(bt.key===cn)if(bt.tag===4&&bt.stateNode.containerInfo===zt.containerInfo&&bt.stateNode.implementation===zt.implementation){H(Rt,bt.sibling),bt=fe(bt,zt.children||[]),bt.return=Rt,Rt=bt;break e}else{H(Rt,bt);break}else _(Rt,bt);bt=bt.sibling}bt=GL(zt,Rt.mode,an),bt.return=Rt,Rt=bt}return Pe(Rt)}if(typeof zt=="string"||typeof zt=="number")return zt=""+zt,bt!==null&&bt.tag===6?(H(Rt,bt.sibling),bt=fe(bt,zt),bt.return=Rt,Rt=bt):(H(Rt,bt),bt=VL(zt,Rt.mode,an),bt.return=Rt,Rt=bt),Pe(Rt);if(HM(zt))return Ti(Rt,bt,zt,an);if(re(zt))return vi(Rt,bt,zt,an);if(Li&&N0(Rt,zt),typeof zt>"u"&&!cn)switch(Rt.tag){case 1:case 22:case 0:case 11:case 15:throw Error(r(152,oe(Rt.type)||"Component"))}return H(Rt,bt)}}var C2=FT(!0),av=FT(!1),GM={},Ws=ev(GM),x2=ev(GM),mS=ev(GM);function w2(I){if(I===GM)throw Error(r(174));return I}function cL(I,_){switch(cl(mS,_),cl(x2,I),cl(Ws,GM),I=_.nodeType,I){case 9:case 11:_=(_=_.documentElement)?_.namespaceURI:ze(null,"");break;default:I=I===8?_.parentNode:_,_=I.namespaceURI||null,I=I.tagName,_=ze(_,I)}Ts(Ws),cl(Ws,_)}function sv(){Ts(Ws),Ts(x2),Ts(mS)}function uH(I){w2(mS.current);var _=w2(Ws.current),H=ze(_,I.type);_!==H&&(cl(x2,I),cl(Ws,H))}function S2(I){x2.current===I&&(Ts(Ws),Ts(x2))}var Zs=ev(0);function WT(I){for(var _=I;_!==null;){if(_.tag===13){var H=_.memoizedState;if(H!==null&&(H=H.dehydrated,H===null||H.data==="$?"||H.data==="$!"))return _}else if(_.tag===19&&_.memoizedProps.revealOrder!==void 0){if((_.flags&64)!==0)return _}else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===I)break;for(;_.sibling===null;){if(_.return===null||_.return===I)return null;_=_.return}_.sibling.return=_.return,_=_.sibling}return null}var vg=null,A1=null,Oh=!1;function dH(I,_){var H=E1(5,null,null,0);H.elementType="DELETED",H.type="DELETED",H.stateNode=_,H.return=I,H.flags=8,I.lastEffect!==null?(I.lastEffect.nextEffect=H,I.lastEffect=H):I.firstEffect=I.lastEffect=H}function qT(I,_){switch(I.tag){case 5:var H=I.type;return _=_.nodeType!==1||H.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(I.stateNode=_,!0):!1;case 6:return _=I.pendingProps===""||_.nodeType!==3?null:_,_!==null?(I.stateNode=_,!0):!1;case 13:return!1;default:return!1}}function BT(I){if(Oh){var _=A1;if(_){var H=_;if(!qT(I,_)){if(_=kM(H.nextSibling),!_||!qT(I,_)){I.flags=I.flags&-1025|2,Oh=!1,vg=I;return}dH(vg,H)}vg=I,A1=kM(_.firstChild)}else I.flags=I.flags&-1025|2,Oh=!1,vg=I}}function pH(I){for(I=I.return;I!==null&&I.tag!==5&&I.tag!==3&&I.tag!==13;)I=I.return;vg=I}function jT(I){if(I!==vg)return!1;if(!Oh)return pH(I),Oh=!0,!1;var _=I.type;if(I.tag!==5||_!=="head"&&_!=="body"&&!cS(_,I.memoizedProps))for(_=A1;_;)dH(I,_),_=kM(_.nextSibling);if(pH(I),I.tag===13){if(I=I.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(r(317));e:{for(I=I.nextSibling,_=0;I;){if(I.nodeType===8){var H=I.data;if(H==="/$"){if(_===0){A1=kM(I.nextSibling);break e}_--}else H!=="$"&&H!=="$!"&&H!=="$?"||_++}I=I.nextSibling}A1=null}}else A1=vg?kM(I.stateNode.nextSibling):null;return!0}function uL(){A1=vg=null,Oh=!1}var A2=[];function vS(){for(var I=0;I<A2.length;I++)A2[I]._workInProgressVersionPrimary=null;A2.length=0}var bS=w.ReactCurrentDispatcher,Nd=w.ReactCurrentBatchConfig,$M=0,ul=null,lu=null,Xl=null,HT=!1,UM=!1;function sd(){throw Error(r(321))}function dL(I,_){if(_===null)return!1;for(var H=0;H<_.length&&H<I.length;H++)if(!Aa(I[H],_[H]))return!1;return!0}function VT(I,_,H,J,fe,xe){if($M=xe,ul=_,_.memoizedState=null,_.updateQueue=null,_.lanes=0,bS.current=I===null||I.memoizedState===null?mL:mH,I=H(J,fe),UM){xe=0;do{if(UM=!1,!(25>xe))throw Error(r(301));xe+=1,Xl=lu=null,_.updateQueue=null,bS.current=vL,I=H(J,fe)}while(UM)}if(bS.current=CS,_=lu!==null&&lu.next!==null,$M=0,Xl=lu=ul=null,HT=!1,_)throw Error(r(300));return I}function O2(){var I={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xl===null?ul.memoizedState=Xl=I:Xl=Xl.next=I,Xl}function bg(){if(lu===null){var I=ul.alternate;I=I!==null?I.memoizedState:null}else I=lu.next;var _=Xl===null?ul.memoizedState:Xl.next;if(_!==null)Xl=_,lu=I;else{if(I===null)throw Error(r(310));lu=I,I={memoizedState:lu.memoizedState,baseState:lu.baseState,baseQueue:lu.baseQueue,queue:lu.queue,next:null},Xl===null?ul.memoizedState=Xl=I:Xl=Xl.next=I}return Xl}function Rp(I,_){return typeof _=="function"?_(I):_}function z2(I){var _=bg(),H=_.queue;if(H===null)throw Error(r(311));H.lastRenderedReducer=I;var J=lu,fe=J.baseQueue,xe=H.pending;if(xe!==null){if(fe!==null){var Pe=fe.next;fe.next=xe.next,xe.next=Pe}J.baseQueue=fe=xe,H.pending=null}if(fe!==null){fe=fe.next,J=J.baseState;var $e=Pe=xe=null,pt=fe;do{var Bt=pt.lane;if(($M&Bt)===Bt)$e!==null&&($e=$e.next={lane:0,action:pt.action,eagerReducer:pt.eagerReducer,eagerState:pt.eagerState,next:null}),J=pt.eagerReducer===I?pt.eagerState:I(J,pt.action);else{var gr={lane:Bt,action:pt.action,eagerReducer:pt.eagerReducer,eagerState:pt.eagerState,next:null};$e===null?(Pe=$e=gr,xe=J):$e=$e.next=gr,ul.lanes|=Bt,E2|=Bt}pt=pt.next}while(pt!==null&&pt!==fe);$e===null?xe=J:$e.next=Pe,Aa(J,_.memoizedState)||(qc=!0),_.memoizedState=J,_.baseState=xe,_.baseQueue=$e,H.lastRenderedState=J}return[_.memoizedState,H.dispatch]}function yS(I){var _=bg(),H=_.queue;if(H===null)throw Error(r(311));H.lastRenderedReducer=I;var J=H.dispatch,fe=H.pending,xe=_.memoizedState;if(fe!==null){H.pending=null;var Pe=fe=fe.next;do xe=I(xe,Pe.action),Pe=Pe.next;while(Pe!==fe);Aa(xe,_.memoizedState)||(qc=!0),_.memoizedState=xe,_.baseQueue===null&&(_.baseState=xe),H.lastRenderedState=xe}return[xe,J]}function GT(I,_,H){var J=_._getVersion;J=J(_._source);var fe=_._workInProgressVersionPrimary;if(fe!==null?I=fe===J:(I=I.mutableReadLanes,(I=($M&I)===I)&&(_._workInProgressVersionPrimary=J,A2.push(_))),I)return H(_._source);throw A2.push(_),Error(r(350))}function co(I,_,H,J){var fe=cu;if(fe===null)throw Error(r(349));var xe=_._getVersion,Pe=xe(_._source),$e=bS.current,pt=$e.useState(function(){return GT(fe,_,H)}),Bt=pt[1],gr=pt[0];pt=Xl;var Ai=I.memoizedState,gn=Ai.refs,Hr=gn.getSnapshot,Ti=Ai.source;Ai=Ai.subscribe;var vi=ul;return I.memoizedState={refs:gn,source:_,subscribe:J},$e.useEffect(function(){gn.getSnapshot=H,gn.setSnapshot=Bt;var Rt=xe(_._source);if(!Aa(Pe,Rt)){Rt=H(_._source),Aa(gr,Rt)||(Bt(Rt),Rt=xg(vi),fe.mutableReadLanes|=Rt&fe.pendingLanes),Rt=fe.mutableReadLanes,fe.entangledLanes|=Rt;for(var bt=fe.entanglements,zt=Rt;0<zt;){var an=31-Gm(zt),cn=1<<an;bt[an]|=Rt,zt&=~cn}}},[H,_,J]),$e.useEffect(function(){return J(_._source,function(){var Rt=gn.getSnapshot,bt=gn.setSnapshot;try{bt(Rt(_._source));var zt=xg(vi);fe.mutableReadLanes|=zt&fe.pendingLanes}catch(an){bt(function(){throw an})}})},[_,J]),Aa(Hr,H)&&Aa(Ti,_)&&Aa(Ai,J)||(I={pending:null,dispatch:null,lastRenderedReducer:Rp,lastRenderedState:gr},I.dispatch=Bt=XM.bind(null,ul,I),pt.queue=I,pt.baseQueue=null,gr=GT(fe,_,H),pt.memoizedState=pt.baseState=gr),gr}function hH(I,_,H){var J=bg();return co(J,I,_,H)}function MS(I){var _=O2();return typeof I=="function"&&(I=I()),_.memoizedState=_.baseState=I,I=_.queue={pending:null,dispatch:null,lastRenderedReducer:Rp,lastRenderedState:I},I=I.dispatch=XM.bind(null,ul,I),[_.memoizedState,I]}function lv(I,_,H,J){return I={tag:I,create:_,destroy:H,deps:J,next:null},_=ul.updateQueue,_===null?(_={lastEffect:null},ul.updateQueue=_,_.lastEffect=I.next=I):(H=_.lastEffect,H===null?_.lastEffect=I.next=I:(J=H.next,H.next=I,I.next=J,_.lastEffect=I)),I}function pL(I){var _=O2();return I={current:I},_.memoizedState=I}function $T(){return bg().memoizedState}function hL(I,_,H,J){var fe=O2();ul.flags|=I,fe.memoizedState=lv(1|_,H,void 0,J===void 0?null:J)}function Fd(I,_,H,J){var fe=bg();J=J===void 0?null:J;var xe=void 0;if(lu!==null){var Pe=lu.memoizedState;if(xe=Pe.destroy,J!==null&&dL(J,Pe.deps)){lv(_,H,xe,J);return}}ul.flags|=I,fe.memoizedState=lv(1|_,H,xe,J)}function fH(I,_){return hL(516,4,I,_)}function T2(I,_){return Fd(516,4,I,_)}function UT(I,_){return Fd(4,2,I,_)}function fL(I,_){if(typeof _=="function")return I=I(),_(I),function(){_(null)};if(_!=null)return I=I(),_.current=I,function(){_.current=null}}function gL(I,_,H){return H=H!=null?H.concat([I]):null,Fd(4,2,fL.bind(null,_,I),H)}function ld(){}function yg(I,_){var H=bg();_=_===void 0?null:_;var J=H.memoizedState;return J!==null&&_!==null&&dL(_,J[1])?J[0]:(H.memoizedState=[I,_],I)}function XT(I,_){var H=bg();_=_===void 0?null:_;var J=H.memoizedState;return J!==null&&_!==null&&dL(_,J[1])?J[0]:(I=I(),H.memoizedState=[I,_],I)}function gH(I,_){var H=NM();b2(98>H?98:H,function(){I(!0)}),b2(97<H?97:H,function(){var J=Nd.transition;Nd.transition=1;try{I(!1),_()}finally{Nd.transition=J}})}function XM(I,_,H){var J=F0(),fe=xg(I),xe={lane:fe,action:H,eagerReducer:null,eagerState:null,next:null},Pe=_.pending;if(Pe===null?xe.next=xe:(xe.next=Pe.next,Pe.next=xe),_.pending=xe,Pe=I.alternate,I===ul||Pe!==null&&Pe===ul)UM=HT=!0;else{if(I.lanes===0&&(Pe===null||Pe.lanes===0)&&(Pe=_.lastRenderedReducer,Pe!==null))try{var $e=_.lastRenderedState,pt=Pe($e,H);if(xe.eagerReducer=Pe,xe.eagerState=pt,Aa(pt,$e))return}catch{}finally{}wg(I,fe,J)}}var CS={readContext:S1,useCallback:sd,useContext:sd,useEffect:sd,useImperativeHandle:sd,useLayoutEffect:sd,useMemo:sd,useReducer:sd,useRef:sd,useState:sd,useDebugValue:sd,useDeferredValue:sd,useTransition:sd,useMutableSource:sd,useOpaqueIdentifier:sd,unstable_isNewReconciler:!1},mL={readContext:S1,useCallback:function(I,_){return O2().memoizedState=[I,_===void 0?null:_],I},useContext:S1,useEffect:fH,useImperativeHandle:function(I,_,H){return H=H!=null?H.concat([I]):null,hL(4,2,fL.bind(null,_,I),H)},useLayoutEffect:function(I,_){return hL(4,2,I,_)},useMemo:function(I,_){var H=O2();return _=_===void 0?null:_,I=I(),H.memoizedState=[I,_],I},useReducer:function(I,_,H){var J=O2();return _=H!==void 0?H(_):_,J.memoizedState=J.baseState=_,I=J.queue={pending:null,dispatch:null,lastRenderedReducer:I,lastRenderedState:_},I=I.dispatch=XM.bind(null,ul,I),[J.memoizedState,I]},useRef:pL,useState:MS,useDebugValue:ld,useDeferredValue:function(I){var _=MS(I),H=_[0],J=_[1];return fH(function(){var fe=Nd.transition;Nd.transition=1;try{J(I)}finally{Nd.transition=fe}},[I]),H},useTransition:function(){var I=MS(!1),_=I[0];return I=gH.bind(null,I[1]),pL(I),[I,_]},useMutableSource:function(I,_,H){var J=O2();return J.memoizedState={refs:{getSnapshot:_,setSnapshot:null},source:I,subscribe:H},co(J,I,_,H)},useOpaqueIdentifier:function(){if(Oh){var I=!1,_=one(function(){throw I||(I=!0,H("r:"+(Fc++).toString(36))),Error(r(355))}),H=MS(_)[1];return(ul.mode&2)===0&&(ul.flags|=516,lv(5,function(){H("r:"+(Fc++).toString(36))},void 0,null)),_}return _="r:"+(Fc++).toString(36),MS(_),_},unstable_isNewReconciler:!1},mH={readContext:S1,useCallback:yg,useContext:S1,useEffect:T2,useImperativeHandle:gL,useLayoutEffect:UT,useMemo:XT,useReducer:z2,useRef:$T,useState:function(){return z2(Rp)},useDebugValue:ld,useDeferredValue:function(I){var _=z2(Rp),H=_[0],J=_[1];return T2(function(){var fe=Nd.transition;Nd.transition=1;try{J(I)}finally{Nd.transition=fe}},[I]),H},useTransition:function(){var I=z2(Rp)[0];return[$T().current,I]},useMutableSource:hH,useOpaqueIdentifier:function(){return z2(Rp)[0]},unstable_isNewReconciler:!1},vL={readContext:S1,useCallback:yg,useContext:S1,useEffect:T2,useImperativeHandle:gL,useLayoutEffect:UT,useMemo:XT,useReducer:yS,useRef:$T,useState:function(){return yS(Rp)},useDebugValue:ld,useDeferredValue:function(I){var _=yS(Rp),H=_[0],J=_[1];return T2(function(){var fe=Nd.transition;Nd.transition=1;try{J(I)}finally{Nd.transition=fe}},[I]),H},useTransition:function(){var I=yS(Rp)[0];return[$T().current,I]},useMutableSource:hH,useOpaqueIdentifier:function(){return yS(Rp)[0]},unstable_isNewReconciler:!1},bL=w.ReactCurrentOwner,qc=!1;function Wd(I,_,H,J){_.child=I===null?av(_,null,H,J):C2(_,I.child,H,J)}function Mg(I,_,H,J,fe){H=H.render;var xe=_.ref;return M2(_,fe),J=VT(I,_,H,J,xe,fe),I!==null&&!qc?(_.updateQueue=I.updateQueue,_.flags&=-517,I.lanes&=~fe,qd(I,_,fe)):(_.flags|=1,Wd(I,_,J,fe),_.child)}function yL(I,_,H,J,fe,xe){if(I===null){var Pe=H.type;return typeof Pe=="function"&&!HL(Pe)&&Pe.defaultProps===void 0&&H.compare===null&&H.defaultProps===void 0?(_.tag=15,_.type=Pe,ML(I,_,Pe,J,fe,xe)):(I=lE(H.type,null,J,_,_.mode,xe),I.ref=_.ref,I.return=_,_.child=I)}return Pe=I.child,(fe&xe)===0&&(fe=Pe.memoizedProps,H=H.compare,H=H!==null?H:m2,H(fe,J)&&I.ref===_.ref)?qd(I,_,xe):(_.flags|=1,I=uv(Pe,J),I.ref=_.ref,I.return=_,_.child=I)}function ML(I,_,H,J,fe,xe){if(I!==null&&m2(I.memoizedProps,J)&&I.ref===_.ref)if(qc=!1,(xe&fe)!==0)(I.flags&16384)!==0&&(qc=!0);else return _.lanes=I.lanes,qd(I,_,xe);return CL(I,_,H,J,xe)}function xS(I,_,H){var J=_.pendingProps,fe=J.children,xe=I!==null?I.memoizedState:null;if(J.mode==="hidden"||J.mode==="unstable-defer-without-hiding")if((_.mode&4)===0)_.memoizedState={baseLanes:0},LS(_,H);else if((H&1073741824)!==0)_.memoizedState={baseLanes:0},LS(_,xe!==null?xe.baseLanes:H);else return I=xe!==null?xe.baseLanes|H:H,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:I},LS(_,I),null;else xe!==null?(J=xe.baseLanes|H,_.memoizedState=null):J=H,LS(_,J);return Wd(I,_,fe,H),_.child}function vH(I,_){var H=_.ref;(I===null&&H!==null||I!==null&&I.ref!==H)&&(_.flags|=128)}function CL(I,_,H,J,fe){var xe=pc(H)?nv:dc.current;return xe=ke(_,xe),M2(_,fe),H=VT(I,_,H,J,xe,fe),I!==null&&!qc?(_.updateQueue=I.updateQueue,_.flags&=-517,I.lanes&=~fe,qd(I,_,fe)):(_.flags|=1,Wd(I,_,H,fe),_.child)}function bH(I,_,H,J,fe){if(pc(H)){var xe=!0;DT(_)}else xe=!1;if(M2(_,fe),_.stateNode===null)I!==null&&(I.alternate=null,_.alternate=null,_.flags|=2),cH(_,H,J),fc(_,H,J,fe),J=!0;else if(I===null){var Pe=_.stateNode,$e=_.memoizedProps;Pe.props=$e;var pt=Pe.context,Bt=H.contextType;typeof Bt=="object"&&Bt!==null?Bt=S1(Bt):(Bt=pc(H)?nv:dc.current,Bt=ke(_,Bt));var gr=H.getDerivedStateFromProps,Ai=typeof gr=="function"||typeof Pe.getSnapshotBeforeUpdate=="function";Ai||typeof Pe.UNSAFE_componentWillReceiveProps!="function"&&typeof Pe.componentWillReceiveProps!="function"||($e!==J||pt!==Bt)&&lL(_,Pe,J,Bt),Wu=!1;var gn=_.memoizedState;Pe.state=gn,BM(_,J,Pe,fe),pt=_.memoizedState,$e!==J||gn!==pt||Wc.current||Wu?(typeof gr=="function"&&(fS(_,H,gr,J),pt=_.memoizedState),($e=Wu||gS(_,H,$e,J,gn,pt,Bt))?(Ai||typeof Pe.UNSAFE_componentWillMount!="function"&&typeof Pe.componentWillMount!="function"||(typeof Pe.componentWillMount=="function"&&Pe.componentWillMount(),typeof Pe.UNSAFE_componentWillMount=="function"&&Pe.UNSAFE_componentWillMount()),typeof Pe.componentDidMount=="function"&&(_.flags|=4)):(typeof Pe.componentDidMount=="function"&&(_.flags|=4),_.memoizedProps=J,_.memoizedState=pt),Pe.props=J,Pe.state=pt,Pe.context=Bt,J=$e):(typeof Pe.componentDidMount=="function"&&(_.flags|=4),J=!1)}else{Pe=_.stateNode,iv(I,_),$e=_.memoizedProps,Bt=_.type===_.elementType?$e:w1(_.type,$e),Pe.props=Bt,Ai=_.pendingProps,gn=Pe.context,pt=H.contextType,typeof pt=="object"&&pt!==null?pt=S1(pt):(pt=pc(H)?nv:dc.current,pt=ke(_,pt));var Hr=H.getDerivedStateFromProps;(gr=typeof Hr=="function"||typeof Pe.getSnapshotBeforeUpdate=="function")||typeof Pe.UNSAFE_componentWillReceiveProps!="function"&&typeof Pe.componentWillReceiveProps!="function"||($e!==Ai||gn!==pt)&&lL(_,Pe,J,pt),Wu=!1,gn=_.memoizedState,Pe.state=gn,BM(_,J,Pe,fe);var Ti=_.memoizedState;$e!==Ai||gn!==Ti||Wc.current||Wu?(typeof Hr=="function"&&(fS(_,H,Hr,J),Ti=_.memoizedState),(Bt=Wu||gS(_,H,Bt,J,gn,Ti,pt))?(gr||typeof Pe.UNSAFE_componentWillUpdate!="function"&&typeof Pe.componentWillUpdate!="function"||(typeof Pe.componentWillUpdate=="function"&&Pe.componentWillUpdate(J,Ti,pt),typeof Pe.UNSAFE_componentWillUpdate=="function"&&Pe.UNSAFE_componentWillUpdate(J,Ti,pt)),typeof Pe.componentDidUpdate=="function"&&(_.flags|=4),typeof Pe.getSnapshotBeforeUpdate=="function"&&(_.flags|=256)):(typeof Pe.componentDidUpdate!="function"||$e===I.memoizedProps&&gn===I.memoizedState||(_.flags|=4),typeof Pe.getSnapshotBeforeUpdate!="function"||$e===I.memoizedProps&&gn===I.memoizedState||(_.flags|=256),_.memoizedProps=J,_.memoizedState=Ti),Pe.props=J,Pe.state=Ti,Pe.context=pt,J=Bt):(typeof Pe.componentDidUpdate!="function"||$e===I.memoizedProps&&gn===I.memoizedState||(_.flags|=4),typeof Pe.getSnapshotBeforeUpdate!="function"||$e===I.memoizedProps&&gn===I.memoizedState||(_.flags|=256),J=!1)}return YT(I,_,H,J,xe,fe)}function YT(I,_,H,J,fe,xe){vH(I,_);var Pe=(_.flags&64)!==0;if(!J&&!Pe)return fe&&nH(_,H,!1),qd(I,_,xe);J=_.stateNode,bL.current=_;var $e=Pe&&typeof H.getDerivedStateFromError!="function"?null:J.render();return _.flags|=1,I!==null&&Pe?(_.child=C2(_,I.child,null,xe),_.child=C2(_,null,$e,xe)):Wd(I,_,$e,xe),_.memoizedState=J.state,fe&&nH(_,H,!0),_.child}function xL(I){var _=I.stateNode;_.pendingContext?L0(I,_.pendingContext,_.pendingContext!==_.context):_.context&&L0(I,_.context,!1),cL(I,_.containerInfo)}var KT={dehydrated:null,retryLane:0};function wL(I,_,H){var J=_.pendingProps,fe=Zs.current,xe=!1,Pe;return(Pe=(_.flags&64)!==0)||(Pe=I!==null&&I.memoizedState===null?!1:(fe&2)!==0),Pe?(xe=!0,_.flags&=-65):I!==null&&I.memoizedState===null||J.fallback===void 0||J.unstable_avoidThisFallback===!0||(fe|=1),cl(Zs,fe&1),I===null?(J.fallback!==void 0&&BT(_),I=J.children,fe=J.fallback,xe?(I=SL(_,I,fe,H),_.child.memoizedState={baseLanes:H},_.memoizedState=KT,I):typeof J.unstable_expectedLoadTime=="number"?(I=SL(_,I,fe,H),_.child.memoizedState={baseLanes:H},_.memoizedState=KT,_.lanes=33554432,I):(H=jd({mode:"visible",children:I},_.mode,H,null),H.return=_,_.child=H)):I.memoizedState!==null?xe?(J=Ip(I,_,J.children,J.fallback,H),xe=_.child,fe=I.child.memoizedState,xe.memoizedState=fe===null?{baseLanes:H}:{baseLanes:fe.baseLanes|H},xe.childLanes=I.childLanes&~H,_.memoizedState=KT,J):(H=cd(I,_,J.children,H),_.memoizedState=null,H):xe?(J=Ip(I,_,J.children,J.fallback,H),xe=_.child,fe=I.child.memoizedState,xe.memoizedState=fe===null?{baseLanes:H}:{baseLanes:fe.baseLanes|H},xe.childLanes=I.childLanes&~H,_.memoizedState=KT,J):(H=cd(I,_,J.children,H),_.memoizedState=null,H)}function SL(I,_,H,J){var fe=I.mode,xe=I.child;return _={mode:"hidden",children:_},(fe&2)===0&&xe!==null?(xe.childLanes=0,xe.pendingProps=_):xe=jd(_,fe,0,null),H=ZM(H,fe,J,null),xe.return=I,H.return=I,xe.sibling=H,I.child=xe,H}function cd(I,_,H,J){var fe=I.child;return I=fe.sibling,H=uv(fe,{mode:"visible",children:H}),(_.mode&2)===0&&(H.lanes=J),H.return=_,H.sibling=null,I!==null&&(I.nextEffect=null,I.flags=8,_.firstEffect=_.lastEffect=I),_.child=H}function Ip(I,_,H,J,fe){var xe=_.mode,Pe=I.child;I=Pe.sibling;var $e={mode:"hidden",children:H};return(xe&2)===0&&_.child!==Pe?(H=_.child,H.childLanes=0,H.pendingProps=$e,Pe=H.lastEffect,Pe!==null?(_.firstEffect=H.firstEffect,_.lastEffect=Pe,Pe.nextEffect=null):_.firstEffect=_.lastEffect=null):H=uv(Pe,$e),I!==null?J=uv(I,J):(J=ZM(J,xe,fe,null),J.flags|=2),J.return=_,H.return=_,H.sibling=J,_.child=H,J}function yH(I,_){I.lanes|=_;var H=I.alternate;H!==null&&(H.lanes|=_),lH(I.return,_)}function AL(I,_,H,J,fe,xe){var Pe=I.memoizedState;Pe===null?I.memoizedState={isBackwards:_,rendering:null,renderingStartTime:0,last:J,tail:H,tailMode:fe,lastEffect:xe}:(Pe.isBackwards=_,Pe.rendering=null,Pe.renderingStartTime=0,Pe.last=J,Pe.tail=H,Pe.tailMode=fe,Pe.lastEffect=xe)}function wS(I,_,H){var J=_.pendingProps,fe=J.revealOrder,xe=J.tail;if(Wd(I,_,J.children,H),J=Zs.current,(J&2)!==0)J=J&1|2,_.flags|=64;else{if(I!==null&&(I.flags&64)!==0)e:for(I=_.child;I!==null;){if(I.tag===13)I.memoizedState!==null&&yH(I,H);else if(I.tag===19)yH(I,H);else if(I.child!==null){I.child.return=I,I=I.child;continue}if(I===_)break e;for(;I.sibling===null;){if(I.return===null||I.return===_)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}J&=1}if(cl(Zs,J),(_.mode&2)===0)_.memoizedState=null;else switch(fe){case"forwards":for(H=_.child,fe=null;H!==null;)I=H.alternate,I!==null&&WT(I)===null&&(fe=H),H=H.sibling;H=fe,H===null?(fe=_.child,_.child=null):(fe=H.sibling,H.sibling=null),AL(_,!1,fe,H,xe,_.lastEffect);break;case"backwards":for(H=null,fe=_.child,_.child=null;fe!==null;){if(I=fe.alternate,I!==null&&WT(I)===null){_.child=fe;break}I=fe.sibling,fe.sibling=H,H=fe,fe=I}AL(_,!0,H,null,xe,_.lastEffect);break;case"together":AL(_,!1,null,null,void 0,_.lastEffect);break;default:_.memoizedState=null}return _.child}function qd(I,_,H){if(I!==null&&(_.dependencies=I.dependencies),E2|=_.lanes,(H&_.childLanes)!==0){if(I!==null&&_.child!==I.child)throw Error(r(153));if(_.child!==null){for(I=_.child,H=uv(I,I.pendingProps),_.child=H,H.return=_;I.sibling!==null;)I=I.sibling,H=H.sibling=uv(I,I.pendingProps),H.return=_;H.sibling=null}return _.child}return null}var OL,QT,MH,zL;OL=function(I,_){for(var H=_.child;H!==null;){if(H.tag===5||H.tag===6)I.appendChild(H.stateNode);else if(H.tag!==4&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===_)break;for(;H.sibling===null;){if(H.return===null||H.return===_)return;H=H.return}H.sibling.return=H.return,H=H.sibling}},QT=function(){},MH=function(I,_,H,J){var fe=I.memoizedProps;if(fe!==J){I=_.stateNode,w2(Ws.current);var xe=null;switch(H){case"input":fe=Me(I,fe),J=Me(I,J),xe=[];break;case"option":fe=Ee(I,fe),J=Ee(I,J),xe=[];break;case"select":fe=t({},fe,{value:void 0}),J=t({},J,{value:void 0}),xe=[];break;case"textarea":fe=_e(I,fe),J=_e(I,J),xe=[];break;default:typeof fe.onClick!="function"&&typeof J.onClick=="function"&&(I.onclick=RT)}Hn(H,J);var Pe;H=null;for(Bt in fe)if(!J.hasOwnProperty(Bt)&&fe.hasOwnProperty(Bt)&&fe[Bt]!=null)if(Bt==="style"){var $e=fe[Bt];for(Pe in $e)$e.hasOwnProperty(Pe)&&(H||(H={}),H[Pe]="")}else Bt!=="dangerouslySetInnerHTML"&&Bt!=="children"&&Bt!=="suppressContentEditableWarning"&&Bt!=="suppressHydrationWarning"&&Bt!=="autoFocus"&&(o.hasOwnProperty(Bt)?xe||(xe=[]):(xe=xe||[]).push(Bt,null));for(Bt in J){var pt=J[Bt];if($e=fe?.[Bt],J.hasOwnProperty(Bt)&&pt!==$e&&(pt!=null||$e!=null))if(Bt==="style")if($e){for(Pe in $e)!$e.hasOwnProperty(Pe)||pt&&pt.hasOwnProperty(Pe)||(H||(H={}),H[Pe]="");for(Pe in pt)pt.hasOwnProperty(Pe)&&$e[Pe]!==pt[Pe]&&(H||(H={}),H[Pe]=pt[Pe])}else H||(xe||(xe=[]),xe.push(Bt,H)),H=pt;else Bt==="dangerouslySetInnerHTML"?(pt=pt?pt.__html:void 0,$e=$e?$e.__html:void 0,pt!=null&&$e!==pt&&(xe=xe||[]).push(Bt,pt)):Bt==="children"?typeof pt!="string"&&typeof pt!="number"||(xe=xe||[]).push(Bt,""+pt):Bt!=="suppressContentEditableWarning"&&Bt!=="suppressHydrationWarning"&&(o.hasOwnProperty(Bt)?(pt!=null&&Bt==="onScroll"&&hs("scroll",I),xe||$e===pt||(xe=[])):typeof pt=="object"&&pt!==null&&pt.$$typeof===G?pt.toString():(xe=xe||[]).push(Bt,pt))}H&&(xe=xe||[]).push("style",H);var Bt=xe;(_.updateQueue=Bt)&&(_.flags|=4)}},zL=function(I,_,H,J){H!==J&&(_.flags|=4)};function zh(I,_){if(!Oh)switch(I.tailMode){case"hidden":_=I.tail;for(var H=null;_!==null;)_.alternate!==null&&(H=_),_=_.sibling;H===null?I.tail=null:H.sibling=null;break;case"collapsed":H=I.tail;for(var J=null;H!==null;)H.alternate!==null&&(J=H),H=H.sibling;J===null?_||I.tail===null?I.tail=null:I.tail.sibling=null:J.sibling=null}}function SS(I,_,H){var J=_.pendingProps;switch(_.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return pc(_.type)&&v2(),null;case 3:return sv(),Ts(Wc),Ts(dc),vS(),J=_.stateNode,J.pendingContext&&(J.context=J.pendingContext,J.pendingContext=null),(I===null||I.child===null)&&(jT(_)?_.flags|=4:J.hydrate||(_.flags|=256)),QT(_),null;case 5:S2(_);var fe=w2(mS.current);if(H=_.type,I!==null&&_.stateNode!=null)MH(I,_,H,J,fe),I.ref!==_.ref&&(_.flags|=128);else{if(!J){if(_.stateNode===null)throw Error(r(166));return null}if(I=w2(Ws.current),jT(_)){J=_.stateNode,H=_.type;var xe=_.memoizedProps;switch(J[hg]=_,J[PT]=xe,H){case"dialog":hs("cancel",J),hs("close",J);break;case"iframe":case"object":case"embed":hs("load",J);break;case"video":case"audio":for(I=0;I<iS.length;I++)hs(iS[I],J);break;case"source":hs("error",J);break;case"img":case"image":case"link":hs("error",J),hs("load",J);break;case"details":hs("toggle",J);break;case"input":Oe(J,xe),hs("invalid",J);break;case"select":J._wrapperState={wasMultiple:!!xe.multiple},hs("invalid",J);break;case"textarea":Ie(J,xe),hs("invalid",J)}Hn(H,xe),I=null;for(var Pe in xe)xe.hasOwnProperty(Pe)&&(fe=xe[Pe],Pe==="children"?typeof fe=="string"?J.textContent!==fe&&(I=["children",fe]):typeof fe=="number"&&J.textContent!==""+fe&&(I=["children",""+fe]):o.hasOwnProperty(Pe)&&fe!=null&&Pe==="onScroll"&&hs("scroll",J));switch(H){case"input":he(J),ue(J,xe,!0);break;case"textarea":he(J),we(J);break;case"select":case"option":break;default:typeof xe.onClick=="function"&&(J.onclick=RT)}J=I,_.updateQueue=J,J!==null&&(_.flags|=4)}else{switch(Pe=fe.nodeType===9?fe:fe.ownerDocument,I===ve.html&&(I=De(H)),I===ve.html?H==="script"?(I=Pe.createElement("div"),I.innerHTML="<script><\/script>",I=I.removeChild(I.firstChild)):typeof J.is=="string"?I=Pe.createElement(H,{is:J.is}):(I=Pe.createElement(H),H==="select"&&(Pe=I,J.multiple?Pe.multiple=!0:J.size&&(Pe.size=J.size))):I=Pe.createElementNS(I,H),I[hg]=_,I[PT]=J,OL(I,_,!1,!1),_.stateNode=I,Pe=Zn(H,J),H){case"dialog":hs("cancel",I),hs("close",I),fe=J;break;case"iframe":case"object":case"embed":hs("load",I),fe=J;break;case"video":case"audio":for(fe=0;fe<iS.length;fe++)hs(iS[fe],I);fe=J;break;case"source":hs("error",I),fe=J;break;case"img":case"image":case"link":hs("error",I),hs("load",I),fe=J;break;case"details":hs("toggle",I),fe=J;break;case"input":Oe(I,J),fe=Me(I,J),hs("invalid",I);break;case"option":fe=Ee(I,J);break;case"select":I._wrapperState={wasMultiple:!!J.multiple},fe=t({},J,{value:void 0}),hs("invalid",I);break;case"textarea":Ie(I,J),fe=_e(I,J),hs("invalid",I);break;default:fe=J}Hn(H,fe);var $e=fe;for(xe in $e)if($e.hasOwnProperty(xe)){var pt=$e[xe];xe==="style"?Qn(I,pt):xe==="dangerouslySetInnerHTML"?(pt=pt?pt.__html:void 0,pt!=null&&Ke(I,pt)):xe==="children"?typeof pt=="string"?(H!=="textarea"||pt!=="")&&et(I,pt):typeof pt=="number"&&et(I,""+pt):xe!=="suppressContentEditableWarning"&&xe!=="suppressHydrationWarning"&&xe!=="autoFocus"&&(o.hasOwnProperty(xe)?pt!=null&&xe==="onScroll"&&hs("scroll",I):pt!=null&&x(I,xe,pt,Pe))}switch(H){case"input":he(I),ue(I,J,!1);break;case"textarea":he(I),we(I);break;case"option":J.value!=null&&I.setAttribute("value",""+ae(J.value));break;case"select":I.multiple=!!J.multiple,xe=J.value,xe!=null?Ge(I,!!J.multiple,xe,!1):J.defaultValue!=null&&Ge(I,!!J.multiple,J.defaultValue,!0);break;default:typeof fe.onClick=="function"&&(I.onclick=RT)}lS(H,J)&&(_.flags|=4)}_.ref!==null&&(_.flags|=128)}return null;case 6:if(I&&_.stateNode!=null)zL(I,_,I.memoizedProps,J);else{if(typeof J!="string"&&_.stateNode===null)throw Error(r(166));H=w2(mS.current),w2(Ws.current),jT(_)?(J=_.stateNode,H=_.memoizedProps,J[hg]=_,J.nodeValue!==H&&(_.flags|=4)):(J=(H.nodeType===9?H:H.ownerDocument).createTextNode(J),J[hg]=_,_.stateNode=J)}return null;case 13:return Ts(Zs),J=_.memoizedState,(_.flags&64)!==0?(_.lanes=H,_):(J=J!==null,H=!1,I===null?_.memoizedProps.fallback!==void 0&&jT(_):H=I.memoizedState!==null,J&&!H&&(_.mode&2)!==0&&(I===null&&_.memoizedProps.unstable_avoidThisFallback!==!0||(Zs.current&1)!==0?gc===0&&(gc=3):((gc===0||gc===3)&&(gc=4),cu===null||(E2&134217727)===0&&(R2&134217727)===0||Ih(cu,Ol))),(J||H)&&(_.flags|=4),null);case 4:return sv(),QT(_),I===null&&Qk(_.stateNode.containerInfo),null;case 10:return qM(_),null;case 17:return pc(_.type)&&v2(),null;case 19:if(Ts(Zs),J=_.memoizedState,J===null)return null;if(xe=(_.flags&64)!==0,Pe=J.rendering,Pe===null)if(xe)zh(J,!1);else{if(gc!==0||I!==null&&(I.flags&64)!==0)for(I=_.child;I!==null;){if(Pe=WT(I),Pe!==null){for(_.flags|=64,zh(J,!1),xe=Pe.updateQueue,xe!==null&&(_.updateQueue=xe,_.flags|=4),J.lastEffect===null&&(_.firstEffect=null),_.lastEffect=J.lastEffect,J=H,H=_.child;H!==null;)xe=H,I=J,xe.flags&=2,xe.nextEffect=null,xe.firstEffect=null,xe.lastEffect=null,Pe=xe.alternate,Pe===null?(xe.childLanes=0,xe.lanes=I,xe.child=null,xe.memoizedProps=null,xe.memoizedState=null,xe.updateQueue=null,xe.dependencies=null,xe.stateNode=null):(xe.childLanes=Pe.childLanes,xe.lanes=Pe.lanes,xe.child=Pe.child,xe.memoizedProps=Pe.memoizedProps,xe.memoizedState=Pe.memoizedState,xe.updateQueue=Pe.updateQueue,xe.type=Pe.type,I=Pe.dependencies,xe.dependencies=I===null?null:{lanes:I.lanes,firstContext:I.firstContext}),H=H.sibling;return cl(Zs,Zs.current&1|2),_.child}I=I.sibling}J.tail!==null&&Fu()>rE&&(_.flags|=64,xe=!0,zh(J,!1),_.lanes=33554432)}else{if(!xe)if(I=WT(Pe),I!==null){if(_.flags|=64,xe=!0,H=I.updateQueue,H!==null&&(_.updateQueue=H,_.flags|=4),zh(J,!0),J.tail===null&&J.tailMode==="hidden"&&!Pe.alternate&&!Oh)return _=_.lastEffect=J.lastEffect,_!==null&&(_.nextEffect=null),null}else 2*Fu()-J.renderingStartTime>rE&&H!==1073741824&&(_.flags|=64,xe=!0,zh(J,!1),_.lanes=33554432);J.isBackwards?(Pe.sibling=_.child,_.child=Pe):(H=J.last,H!==null?H.sibling=Pe:_.child=Pe,J.last=Pe)}return J.tail!==null?(H=J.tail,J.rendering=H,J.tail=H.sibling,J.lastEffect=_.lastEffect,J.renderingStartTime=Fu(),H.sibling=null,_=Zs.current,cl(Zs,xe?_&1|2:_&1),H):null;case 23:case 24:return z1(),I!==null&&I.memoizedState!==null!=(_.memoizedState!==null)&&J.mode!=="unstable-defer-without-hiding"&&(_.flags|=4),null}throw Error(r(156,_.tag))}function dne(I){switch(I.tag){case 1:pc(I.type)&&v2();var _=I.flags;return _&4096?(I.flags=_&-4097|64,I):null;case 3:if(sv(),Ts(Wc),Ts(dc),vS(),_=I.flags,(_&64)!==0)throw Error(r(285));return I.flags=_&-4097|64,I;case 5:return S2(I),null;case 13:return Ts(Zs),_=I.flags,_&4096?(I.flags=_&-4097|64,I):null;case 19:return Ts(Zs),null;case 4:return sv(),null;case 10:return qM(I),null;case 23:case 24:return z1(),null;default:return null}}function ZT(I,_){try{var H="",J=_;do H+=ce(J),J=J.return;while(J);var fe=H}catch(xe){fe=`
Error generating stack: `+xe.message+`
`+xe.stack}return{value:I,source:_,stack:fe}}function JT(I,_){try{console.error(_.value)}catch(H){setTimeout(function(){throw H})}}var eE=typeof WeakMap=="function"?WeakMap:Map;function TL(I,_,H){H=hc(-1,H),H.tag=3,H.payload={element:null};var J=_.value;return H.callback=function(){iE||(iE=!0,NL=J),JT(I,_)},H}function AS(I,_,H){H=hc(-1,H),H.tag=3;var J=I.type.getDerivedStateFromError;if(typeof J=="function"){var fe=_.value;H.payload=function(){return JT(I,_),J(fe)}}var xe=I.stateNode;return xe!==null&&typeof xe.componentDidCatch=="function"&&(H.callback=function(){typeof J!="function"&&(Eh===null?Eh=new Set([this]):Eh.add(this),JT(I,_));var Pe=_.stack;this.componentDidCatch(_.value,{componentStack:Pe!==null?Pe:""})}),H}var EL=typeof WeakSet=="function"?WeakSet:Set;function OS(I){var _=I.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(H){Sg(I,H)}else _.current=null}function pne(I,_){switch(_.tag){case 0:case 11:case 15:case 22:return;case 1:if(_.flags&256&&I!==null){var H=I.memoizedProps,J=I.memoizedState;I=_.stateNode,_=I.getSnapshotBeforeUpdate(_.elementType===_.type?H:w1(_.type,H),J),I.__reactInternalSnapshotBeforeUpdate=_}return;case 3:_.flags&256&&tL(_.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(r(163))}function CH(I,_,H){switch(H.tag){case 0:case 11:case 15:case 22:if(_=H.updateQueue,_=_!==null?_.lastEffect:null,_!==null){I=_=_.next;do{if((I.tag&3)===3){var J=I.create;I.destroy=J()}I=I.next}while(I!==_)}if(_=H.updateQueue,_=_!==null?_.lastEffect:null,_!==null){I=_=_.next;do{var fe=I;J=fe.next,fe=fe.tag,(fe&4)!==0&&(fe&1)!==0&&(zH(H,I),yne(H,I)),I=J}while(I!==_)}return;case 1:I=H.stateNode,H.flags&4&&(_===null?I.componentDidMount():(J=H.elementType===H.type?_.memoizedProps:w1(H.type,_.memoizedProps),I.componentDidUpdate(J,_.memoizedState,I.__reactInternalSnapshotBeforeUpdate))),_=H.updateQueue,_!==null&&jM(H,_,I);return;case 3:if(_=H.updateQueue,_!==null){if(I=null,H.child!==null)switch(H.child.tag){case 5:I=H.child.stateNode;break;case 1:I=H.child.stateNode}jM(H,_,I)}return;case 5:I=H.stateNode,_===null&&H.flags&4&&lS(H.type,H.memoizedProps)&&I.focus();return;case 6:return;case 4:return;case 12:return;case 13:H.memoizedState===null&&(H=H.alternate,H!==null&&(H=H.memoizedState,H!==null&&(H=H.dehydrated,H!==null&&st(H))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(r(163))}function zS(I,_){for(var H=I;;){if(H.tag===5){var J=H.stateNode;if(_)J=J.style,typeof J.setProperty=="function"?J.setProperty("display","none","important"):J.display="none";else{J=H.stateNode;var fe=H.memoizedProps.style;fe=fe!=null&&fe.hasOwnProperty("display")?fe.display:null,J.style.display=Dt("display",fe)}}else if(H.tag===6)H.stateNode.nodeValue=_?"":H.memoizedProps;else if((H.tag!==23&&H.tag!==24||H.memoizedState===null||H===I)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===I)break;for(;H.sibling===null;){if(H.return===null||H.return===I)return;H=H.return}H.sibling.return=H.return,H=H.sibling}}function RL(I,_){if(_0&&typeof _0.onCommitFiberUnmount=="function")try{_0.onCommitFiberUnmount(nL,_)}catch{}switch(_.tag){case 0:case 11:case 14:case 15:case 22:if(I=_.updateQueue,I!==null&&(I=I.lastEffect,I!==null)){var H=I=I.next;do{var J=H,fe=J.destroy;if(J=J.tag,fe!==void 0)if((J&4)!==0)zH(_,H);else{J=_;try{fe()}catch(xe){Sg(J,xe)}}H=H.next}while(H!==I)}break;case 1:if(OS(_),I=_.stateNode,typeof I.componentWillUnmount=="function")try{I.props=_.memoizedProps,I.state=_.memoizedState,I.componentWillUnmount()}catch(xe){Sg(_,xe)}break;case 5:OS(_);break;case 4:PL(I,_)}}function tE(I){I.alternate=null,I.child=null,I.dependencies=null,I.firstEffect=null,I.lastEffect=null,I.memoizedProps=null,I.memoizedState=null,I.pendingProps=null,I.return=null,I.updateQueue=null}function xH(I){return I.tag===5||I.tag===3||I.tag===4}function IL(I){e:{for(var _=I.return;_!==null;){if(xH(_))break e;_=_.return}throw Error(r(160))}var H=_;switch(_=H.stateNode,H.tag){case 5:var J=!1;break;case 3:_=_.containerInfo,J=!0;break;case 4:_=_.containerInfo,J=!0;break;default:throw Error(r(161))}H.flags&16&&(et(_,""),H.flags&=-17);e:t:for(H=I;;){for(;H.sibling===null;){if(H.return===null||xH(H.return)){H=null;break e}H=H.return}for(H.sibling.return=H.return,H=H.sibling;H.tag!==5&&H.tag!==6&&H.tag!==18;){if(H.flags&2||H.child===null||H.tag===4)continue t;H.child.return=H,H=H.child}if(!(H.flags&2)){H=H.stateNode;break e}}J?Pp(I,H,_):nE(I,H,_)}function Pp(I,_,H){var J=I.tag,fe=J===5||J===6;if(fe)I=fe?I.stateNode:I.stateNode.instance,_?H.nodeType===8?H.parentNode.insertBefore(I,_):H.insertBefore(I,_):(H.nodeType===8?(_=H.parentNode,_.insertBefore(I,H)):(_=H,_.appendChild(I)),H=H._reactRootContainer,H!=null||_.onclick!==null||(_.onclick=RT));else if(J!==4&&(I=I.child,I!==null))for(Pp(I,_,H),I=I.sibling;I!==null;)Pp(I,_,H),I=I.sibling}function nE(I,_,H){var J=I.tag,fe=J===5||J===6;if(fe)I=fe?I.stateNode:I.stateNode.instance,_?H.insertBefore(I,_):H.appendChild(I);else if(J!==4&&(I=I.child,I!==null))for(nE(I,_,H),I=I.sibling;I!==null;)nE(I,_,H),I=I.sibling}function PL(I,_){for(var H=_,J=!1,fe,xe;;){if(!J){J=H.return;e:for(;;){if(J===null)throw Error(r(160));switch(fe=J.stateNode,J.tag){case 5:xe=!1;break e;case 3:fe=fe.containerInfo,xe=!0;break e;case 4:fe=fe.containerInfo,xe=!0;break e}J=J.return}J=!0}if(H.tag===5||H.tag===6){e:for(var Pe=I,$e=H,pt=$e;;)if(RL(Pe,pt),pt.child!==null&&pt.tag!==4)pt.child.return=pt,pt=pt.child;else{if(pt===$e)break e;for(;pt.sibling===null;){if(pt.return===null||pt.return===$e)break e;pt=pt.return}pt.sibling.return=pt.return,pt=pt.sibling}xe?(Pe=fe,$e=H.stateNode,Pe.nodeType===8?Pe.parentNode.removeChild($e):Pe.removeChild($e)):fe.removeChild(H.stateNode)}else if(H.tag===4){if(H.child!==null){fe=H.stateNode.containerInfo,xe=!0,H.child.return=H,H=H.child;continue}}else if(RL(I,H),H.child!==null){H.child.return=H,H=H.child;continue}if(H===_)break;for(;H.sibling===null;){if(H.return===null||H.return===_)return;H=H.return,H.tag===4&&(J=!1)}H.sibling.return=H.return,H=H.sibling}}function DL(I,_){switch(_.tag){case 0:case 11:case 14:case 15:case 22:var H=_.updateQueue;if(H=H!==null?H.lastEffect:null,H!==null){var J=H=H.next;do(J.tag&3)===3&&(I=J.destroy,J.destroy=void 0,I!==void 0&&I()),J=J.next;while(J!==H)}return;case 1:return;case 5:if(H=_.stateNode,H!=null){J=_.memoizedProps;var fe=I!==null?I.memoizedProps:J;I=_.type;var xe=_.updateQueue;if(_.updateQueue=null,xe!==null){for(H[PT]=J,I==="input"&&J.type==="radio"&&J.name!=null&&de(H,J),Zn(I,fe),_=Zn(I,J),fe=0;fe<xe.length;fe+=2){var Pe=xe[fe],$e=xe[fe+1];Pe==="style"?Qn(H,$e):Pe==="dangerouslySetInnerHTML"?Ke(H,$e):Pe==="children"?et(H,$e):x(H,Pe,$e,_)}switch(I){case"input":ie(H,J);break;case"textarea":Le(H,J);break;case"select":I=H._wrapperState.wasMultiple,H._wrapperState.wasMultiple=!!J.multiple,xe=J.value,xe!=null?Ge(H,!!J.multiple,xe,!1):I!==!!J.multiple&&(J.defaultValue!=null?Ge(H,!!J.multiple,J.defaultValue,!0):Ge(H,!!J.multiple,J.multiple?[]:"",!1))}}}return;case 6:if(_.stateNode===null)throw Error(r(162));_.stateNode.nodeValue=_.memoizedProps;return;case 3:H=_.stateNode,H.hydrate&&(H.hydrate=!1,st(H.containerInfo));return;case 12:return;case 13:_.memoizedState!==null&&(_L=Fu(),zS(_.child,!0)),kL(_);return;case 19:kL(_);return;case 17:return;case 23:case 24:zS(_,_.memoizedState!==null);return}throw Error(r(163))}function kL(I){var _=I.updateQueue;if(_!==null){I.updateQueue=null;var H=I.stateNode;H===null&&(H=I.stateNode=new EL),_.forEach(function(J){var fe=Cne.bind(null,I,J);H.has(J)||(H.add(J),J.then(fe,fe))})}}function hne(I,_){return I!==null&&(I=I.memoizedState,I===null||I.dehydrated!==null)?(_=_.memoizedState,_!==null&&_.dehydrated===null):!1}var fne=Math.ceil,O1=w.ReactCurrentDispatcher,TS=w.ReactCurrentOwner,yi=0,cu=null,dl=null,Ol=0,Kr=0,YM=ev(0),gc=0,Th=null,KM=0,E2=0,R2=0,Bc=0,LL=null,_L=0,rE=1/0;function QM(){rE=Fu()+500}var wr=null,iE=!1,NL=null,Eh=null,qu=!1,mc=null,I2=90,FL=[],ES=[],Cg=null,RS=0,P2=null,IS=-1,Rh=0,oE=0,PS=null,aE=!1;function F0(){return(yi&48)!==0?Fu():IS!==-1?IS:IS=Fu()}function xg(I){if(I=I.mode,(I&2)===0)return 1;if((I&4)===0)return NM()===99?1:2;if(Rh===0&&(Rh=KM),une.transition!==0){oE!==0&&(oE=LL!==null?LL.pendingLanes:0),I=Rh;var _=4186112&~oE;return _&=-_,_===0&&(I=4186112&~I,_=I&-I,_===0&&(_=8192)),_}return I=NM(),(yi&4)!==0&&I===98?I=yT(12,Rh):(I=Hte(I),I=yT(I,Rh)),I}function wg(I,_,H){if(50<RS)throw RS=0,P2=null,Error(r(185));if(I=sE(I,_),I===null)return null;MT(I,_,H),I===cu&&(R2|=_,gc===4&&Ih(I,Ol));var J=NM();_===1?(yi&8)!==0&&(yi&48)===0?DS(I):(Bd(I,H),yi===0&&(QM(),Ah())):((yi&4)===0||J!==98&&J!==99||(Cg===null?Cg=new Set([I]):Cg.add(I)),Bd(I,H)),LL=I}function sE(I,_){I.lanes|=_;var H=I.alternate;for(H!==null&&(H.lanes|=_),H=I,I=I.return;I!==null;)I.childLanes|=_,H=I.alternate,H!==null&&(H.childLanes|=_),H=I,I=I.return;return H.tag===3?H.stateNode:null}function Bd(I,_){for(var H=I.callbackNode,J=I.suspendedLanes,fe=I.pingedLanes,xe=I.expirationTimes,Pe=I.pendingLanes;0<Pe;){var $e=31-Gm(Pe),pt=1<<$e,Bt=xe[$e];if(Bt===-1){if((pt&J)===0||(pt&fe)!==0){Bt=_,Vm(pt);var gr=ps;xe[$e]=10<=gr?Bt+250:6<=gr?Bt+5e3:-1}}else Bt<=_&&(I.expiredLanes|=pt);Pe&=~pt}if(J=Gw(I,I===cu?Ol:0),_=ps,J===0)H!==null&&(H!==oL&&iL(H),I.callbackNode=null,I.callbackPriority=0);else{if(H!==null){if(I.callbackPriority===_)return;H!==oL&&iL(H)}_===15?(H=DS.bind(null,I),gg===null?(gg=[H],LT=rL(kT,sH)):gg.push(H),H=oL):_===14?H=dS(99,DS.bind(null,I)):(H=Vte(_),H=dS(H,WL.bind(null,I))),I.callbackPriority=_,I.callbackNode=H}}function WL(I){if(IS=-1,oE=Rh=0,(yi&48)!==0)throw Error(r(327));var _=I.callbackNode;if(cv()&&I.callbackNode!==_)return null;var H=Gw(I,I===cu?Ol:0);if(H===0)return null;var J=H,fe=yi;yi|=16;var xe=BL();(cu!==I||Ol!==J)&&(QM(),T1(I,J));do try{mne();break}catch($e){SH(I,$e)}while(!0);if(y2(),O1.current=xe,yi=fe,dl!==null?J=0:(cu=null,Ol=0,J=gc),(KM&R2)!==0)T1(I,0);else if(J!==0){if(J===2&&(yi|=64,I.hydrate&&(I.hydrate=!1,tL(I.containerInfo)),H=Pj(I),H!==0&&(J=_S(I,H))),J===1)throw _=Th,T1(I,0),Ih(I,H),Bd(I,Fu()),_;switch(I.finishedWork=I.current.alternate,I.finishedLanes=H,J){case 0:case 1:throw Error(r(345));case 2:D2(I);break;case 3:if(Ih(I,H),(H&62914560)===H&&(J=_L+500-Fu(),10<J)){if(Gw(I,0)!==0)break;if(fe=I.suspendedLanes,(fe&H)!==H){F0(),I.pingedLanes|=I.suspendedLanes&fe;break}I.timeoutHandle=eH(D2.bind(null,I),J);break}D2(I);break;case 4:if(Ih(I,H),(H&4186112)===H)break;for(J=I.eventTimes,fe=-1;0<H;){var Pe=31-Gm(H);xe=1<<Pe,Pe=J[Pe],Pe>fe&&(fe=Pe),H&=~xe}if(H=fe,H=Fu()-H,H=(120>H?120:480>H?480:1080>H?1080:1920>H?1920:3e3>H?3e3:4320>H?4320:1960*fne(H/1960))-H,10<H){I.timeoutHandle=eH(D2.bind(null,I),H);break}D2(I);break;case 5:D2(I);break;default:throw Error(r(329))}}return Bd(I,Fu()),I.callbackNode===_?WL.bind(null,I):null}function Ih(I,_){for(_&=~Bc,_&=~R2,I.suspendedLanes|=_,I.pingedLanes&=~_,I=I.expirationTimes;0<_;){var H=31-Gm(_),J=1<<H;I[H]=-1,_&=~J}}function DS(I){if((yi&48)!==0)throw Error(r(327));if(cv(),I===cu&&(I.expiredLanes&Ol)!==0){var _=Ol,H=_S(I,_);(KM&R2)!==0&&(_=Gw(I,_),H=_S(I,_))}else _=Gw(I,0),H=_S(I,_);if(I.tag!==0&&H===2&&(yi|=64,I.hydrate&&(I.hydrate=!1,tL(I.containerInfo)),_=Pj(I),_!==0&&(H=_S(I,_))),H===1)throw H=Th,T1(I,0),Ih(I,_),Bd(I,Fu()),H;return I.finishedWork=I.current.alternate,I.finishedLanes=_,D2(I),Bd(I,Fu()),null}function wH(){if(Cg!==null){var I=Cg;Cg=null,I.forEach(function(_){_.expiredLanes|=24&_.pendingLanes,Bd(_,Fu())})}Ah()}function qL(I,_){var H=yi;yi|=1;try{return I(_)}finally{yi=H,yi===0&&(QM(),Ah())}}function kS(I,_){var H=yi;yi&=-2,yi|=8;try{return I(_)}finally{yi=H,yi===0&&(QM(),Ah())}}function LS(I,_){cl(YM,Kr),Kr|=_,KM|=_}function z1(){Kr=YM.current,Ts(YM)}function T1(I,_){I.finishedWork=null,I.finishedLanes=0;var H=I.timeoutHandle;if(H!==-1&&(I.timeoutHandle=-1,tH(H)),dl!==null)for(H=dl.return;H!==null;){var J=H;switch(J.tag){case 1:J=J.type.childContextTypes,J!=null&&v2();break;case 3:sv(),Ts(Wc),Ts(dc),vS();break;case 5:S2(J);break;case 4:sv();break;case 13:Ts(Zs);break;case 19:Ts(Zs);break;case 10:qM(J);break;case 23:case 24:z1()}H=H.return}cu=I,dl=uv(I.current,null),Ol=Kr=KM=_,gc=0,Th=null,Bc=R2=E2=0}function SH(I,_){do{var H=dl;try{if(y2(),bS.current=CS,HT){for(var J=ul.memoizedState;J!==null;){var fe=J.queue;fe!==null&&(fe.pending=null),J=J.next}HT=!1}if($M=0,Xl=lu=ul=null,UM=!1,TS.current=null,H===null||H.return===null){gc=1,Th=_,dl=null;break}e:{var xe=I,Pe=H.return,$e=H,pt=_;if(_=Ol,$e.flags|=2048,$e.firstEffect=$e.lastEffect=null,pt!==null&&typeof pt=="object"&&typeof pt.then=="function"){var Bt=pt;if(($e.mode&2)===0){var gr=$e.alternate;gr?($e.updateQueue=gr.updateQueue,$e.memoizedState=gr.memoizedState,$e.lanes=gr.lanes):($e.updateQueue=null,$e.memoizedState=null)}var Ai=(Zs.current&1)!==0,gn=Pe;do{var Hr;if(Hr=gn.tag===13){var Ti=gn.memoizedState;if(Ti!==null)Hr=Ti.dehydrated!==null;else{var vi=gn.memoizedProps;Hr=vi.fallback===void 0?!1:vi.unstable_avoidThisFallback!==!0?!0:!Ai}}if(Hr){var Rt=gn.updateQueue;if(Rt===null){var bt=new Set;bt.add(Bt),gn.updateQueue=bt}else Rt.add(Bt);if((gn.mode&2)===0){if(gn.flags|=64,$e.flags|=16384,$e.flags&=-2981,$e.tag===1)if($e.alternate===null)$e.tag=17;else{var zt=hc(-1,1);zt.tag=2,ov($e,zt)}$e.lanes|=1;break e}pt=void 0,$e=_;var an=xe.pingCache;if(an===null?(an=xe.pingCache=new eE,pt=new Set,an.set(Bt,pt)):(pt=an.get(Bt),pt===void 0&&(pt=new Set,an.set(Bt,pt))),!pt.has($e)){pt.add($e);var cn=Mne.bind(null,xe,Bt,$e);Bt.then(cn,cn)}gn.flags|=4096,gn.lanes=_;break e}gn=gn.return}while(gn!==null);pt=Error((oe($e.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}gc!==5&&(gc=2),pt=ZT(pt,$e),gn=Pe;do{switch(gn.tag){case 3:xe=pt,gn.flags|=4096,_&=-_,gn.lanes|=_;var Li=TL(gn,xe,_);sL(gn,Li);break e;case 1:xe=pt;var Rr=gn.type,Oi=gn.stateNode;if((gn.flags&64)===0&&(typeof Rr.getDerivedStateFromError=="function"||Oi!==null&&typeof Oi.componentDidCatch=="function"&&(Eh===null||!Eh.has(Oi)))){gn.flags|=4096,_&=-_,gn.lanes|=_;var Co=AS(gn,xe,_);sL(gn,Co);break e}}gn=gn.return}while(gn!==null)}OH(H)}catch(Zi){_=Zi,dl===H&&H!==null&&(dl=H=H.return);continue}break}while(!0)}function BL(){var I=O1.current;return O1.current=CS,I===null?CS:I}function _S(I,_){var H=yi;yi|=16;var J=BL();cu===I&&Ol===_||T1(I,_);do try{gne();break}catch(fe){SH(I,fe)}while(!0);if(y2(),yi=H,O1.current=J,dl!==null)throw Error(r(261));return cu=null,Ol=0,gc}function gne(){for(;dl!==null;)AH(dl)}function mne(){for(;dl!==null&&!sne();)AH(dl)}function AH(I){var _=EH(I.alternate,I,Kr);I.memoizedProps=I.pendingProps,_===null?OH(I):dl=_,TS.current=null}function OH(I){var _=I;do{var H=_.alternate;if(I=_.return,(_.flags&2048)===0){if(H=SS(H,_,Kr),H!==null){dl=H;return}if(H=_,H.tag!==24&&H.tag!==23||H.memoizedState===null||(Kr&1073741824)!==0||(H.mode&4)===0){for(var J=0,fe=H.child;fe!==null;)J|=fe.lanes|fe.childLanes,fe=fe.sibling;H.childLanes=J}I!==null&&(I.flags&2048)===0&&(I.firstEffect===null&&(I.firstEffect=_.firstEffect),_.lastEffect!==null&&(I.lastEffect!==null&&(I.lastEffect.nextEffect=_.firstEffect),I.lastEffect=_.lastEffect),1<_.flags&&(I.lastEffect!==null?I.lastEffect.nextEffect=_:I.firstEffect=_,I.lastEffect=_))}else{if(H=dne(_),H!==null){H.flags&=2047,dl=H;return}I!==null&&(I.firstEffect=I.lastEffect=null,I.flags|=2048)}if(_=_.sibling,_!==null){dl=_;return}dl=_=I}while(_!==null);gc===0&&(gc=5)}function D2(I){var _=NM();return b2(99,vne.bind(null,I,_)),null}function vne(I,_){do cv();while(mc!==null);if((yi&48)!==0)throw Error(r(327));var H=I.finishedWork;if(H===null)return null;if(I.finishedWork=null,I.finishedLanes=0,H===I.current)throw Error(r(177));I.callbackNode=null;var J=H.lanes|H.childLanes,fe=J,xe=I.pendingLanes&~fe;I.pendingLanes=fe,I.suspendedLanes=0,I.pingedLanes=0,I.expiredLanes&=fe,I.mutableReadLanes&=fe,I.entangledLanes&=fe,fe=I.entanglements;for(var Pe=I.eventTimes,$e=I.expirationTimes;0<xe;){var pt=31-Gm(xe),Bt=1<<pt;fe[pt]=0,Pe[pt]=-1,$e[pt]=-1,xe&=~Bt}if(Cg!==null&&(J&24)===0&&Cg.has(I)&&Cg.delete(I),I===cu&&(dl=cu=null,Ol=0),1<H.flags?H.lastEffect!==null?(H.lastEffect.nextEffect=H,J=H.firstEffect):J=H:J=H.firstEffect,J!==null){if(fe=yi,yi|=32,TS.current=null,eL=CT,Pe=Qj(),Km(Pe)){if("selectionStart"in Pe)$e={start:Pe.selectionStart,end:Pe.selectionEnd};else e:if($e=($e=Pe.ownerDocument)&&$e.defaultView||window,(Bt=$e.getSelection&&$e.getSelection())&&Bt.rangeCount!==0){$e=Bt.anchorNode,xe=Bt.anchorOffset,pt=Bt.focusNode,Bt=Bt.focusOffset;try{$e.nodeType,pt.nodeType}catch{$e=null;break e}var gr=0,Ai=-1,gn=-1,Hr=0,Ti=0,vi=Pe,Rt=null;t:for(;;){for(var bt;vi!==$e||xe!==0&&vi.nodeType!==3||(Ai=gr+xe),vi!==pt||Bt!==0&&vi.nodeType!==3||(gn=gr+Bt),vi.nodeType===3&&(gr+=vi.nodeValue.length),(bt=vi.firstChild)!==null;)Rt=vi,vi=bt;for(;;){if(vi===Pe)break t;if(Rt===$e&&++Hr===xe&&(Ai=gr),Rt===pt&&++Ti===Bt&&(gn=gr),(bt=vi.nextSibling)!==null)break;vi=Rt,Rt=vi.parentNode}vi=bt}$e=Ai===-1||gn===-1?null:{start:Ai,end:gn}}else $e=null;$e=$e||{start:0,end:0}}else $e=null;DM={focusedElem:Pe,selectionRange:$e},CT=!1,PS=null,aE=!1,wr=J;do try{bne()}catch(Zi){if(wr===null)throw Error(r(330));Sg(wr,Zi),wr=wr.nextEffect}while(wr!==null);PS=null,wr=J;do try{for(Pe=I;wr!==null;){var zt=wr.flags;if(zt&16&&et(wr.stateNode,""),zt&128){var an=wr.alternate;if(an!==null){var cn=an.ref;cn!==null&&(typeof cn=="function"?cn(null):cn.current=null)}}switch(zt&1038){case 2:IL(wr),wr.flags&=-3;break;case 6:IL(wr),wr.flags&=-3,DL(wr.alternate,wr);break;case 1024:wr.flags&=-1025;break;case 1028:wr.flags&=-1025,DL(wr.alternate,wr);break;case 4:DL(wr.alternate,wr);break;case 8:$e=wr,PL(Pe,$e);var Li=$e.alternate;tE($e),Li!==null&&tE(Li)}wr=wr.nextEffect}}catch(Zi){if(wr===null)throw Error(r(330));Sg(wr,Zi),wr=wr.nextEffect}while(wr!==null);if(cn=DM,an=Qj(),zt=cn.focusedElem,Pe=cn.selectionRange,an!==zt&&zt&&zt.ownerDocument&&tS(zt.ownerDocument.documentElement,zt)){for(Pe!==null&&Km(zt)&&(an=Pe.start,cn=Pe.end,cn===void 0&&(cn=an),"selectionStart"in zt?(zt.selectionStart=an,zt.selectionEnd=Math.min(cn,zt.value.length)):(cn=(an=zt.ownerDocument||document)&&an.defaultView||window,cn.getSelection&&(cn=cn.getSelection(),$e=zt.textContent.length,Li=Math.min(Pe.start,$e),Pe=Pe.end===void 0?Li:Math.min(Pe.end,$e),!cn.extend&&Li>Pe&&($e=Pe,Pe=Li,Li=$e),$e=k0(zt,Li),xe=k0(zt,Pe),$e&&xe&&(cn.rangeCount!==1||cn.anchorNode!==$e.node||cn.anchorOffset!==$e.offset||cn.focusNode!==xe.node||cn.focusOffset!==xe.offset)&&(an=an.createRange(),an.setStart($e.node,$e.offset),cn.removeAllRanges(),Li>Pe?(cn.addRange(an),cn.extend(xe.node,xe.offset)):(an.setEnd(xe.node,xe.offset),cn.addRange(an)))))),an=[],cn=zt;cn=cn.parentNode;)cn.nodeType===1&&an.push({element:cn,left:cn.scrollLeft,top:cn.scrollTop});for(typeof zt.focus=="function"&&zt.focus(),zt=0;zt<an.length;zt++)cn=an[zt],cn.element.scrollLeft=cn.left,cn.element.scrollTop=cn.top}CT=!!eL,DM=eL=null,I.current=H,wr=J;do try{for(zt=I;wr!==null;){var Rr=wr.flags;if(Rr&36&&CH(zt,wr.alternate,wr),Rr&128){an=void 0;var Oi=wr.ref;if(Oi!==null){var Co=wr.stateNode;switch(wr.tag){case 5:an=Co;break;default:an=Co}typeof Oi=="function"?Oi(an):Oi.current=an}}wr=wr.nextEffect}}catch(Zi){if(wr===null)throw Error(r(330));Sg(wr,Zi),wr=wr.nextEffect}while(wr!==null);wr=null,cne(),yi=fe}else I.current=H;if(qu)qu=!1,mc=I,I2=_;else for(wr=J;wr!==null;)_=wr.nextEffect,wr.nextEffect=null,wr.flags&8&&(Rr=wr,Rr.sibling=null,Rr.stateNode=null),wr=_;if(J=I.pendingLanes,J===0&&(Eh=null),J===1?I===P2?RS++:(RS=0,P2=I):RS=0,H=H.stateNode,_0&&typeof _0.onCommitFiberRoot=="function")try{_0.onCommitFiberRoot(nL,H,void 0,(H.current.flags&64)===64)}catch{}if(Bd(I,Fu()),iE)throw iE=!1,I=NL,NL=null,I;return(yi&8)!==0||Ah(),null}function bne(){for(;wr!==null;){var I=wr.alternate;aE||PS===null||((wr.flags&8)!==0?Lc(wr,PS)&&(aE=!0):wr.tag===13&&hne(I,wr)&&Lc(wr,PS)&&(aE=!0));var _=wr.flags;(_&256)!==0&&pne(I,wr),(_&512)===0||qu||(qu=!0,dS(97,function(){return cv(),null})),wr=wr.nextEffect}}function cv(){if(I2!==90){var I=97<I2?97:I2;return I2=90,b2(I,TH)}return!1}function yne(I,_){FL.push(_,I),qu||(qu=!0,dS(97,function(){return cv(),null}))}function zH(I,_){ES.push(_,I),qu||(qu=!0,dS(97,function(){return cv(),null}))}function TH(){if(mc===null)return!1;var I=mc;if(mc=null,(yi&48)!==0)throw Error(r(331));var _=yi;yi|=32;var H=ES;ES=[];for(var J=0;J<H.length;J+=2){var fe=H[J],xe=H[J+1],Pe=fe.destroy;if(fe.destroy=void 0,typeof Pe=="function")try{Pe()}catch(pt){if(xe===null)throw Error(r(330));Sg(xe,pt)}}for(H=FL,FL=[],J=0;J<H.length;J+=2){fe=H[J],xe=H[J+1];try{var $e=fe.create;fe.destroy=$e()}catch(pt){if(xe===null)throw Error(r(330));Sg(xe,pt)}}for($e=I.current.firstEffect;$e!==null;)I=$e.nextEffect,$e.nextEffect=null,$e.flags&8&&($e.sibling=null,$e.stateNode=null),$e=I;return yi=_,Ah(),!0}function jL(I,_,H){_=ZT(H,_),_=TL(I,_,1),ov(I,_),_=F0(),I=sE(I,1),I!==null&&(MT(I,1,_),Bd(I,_))}function Sg(I,_){if(I.tag===3)jL(I,I,_);else for(var H=I.return;H!==null;){if(H.tag===3){jL(H,I,_);break}else if(H.tag===1){var J=H.stateNode;if(typeof H.type.getDerivedStateFromError=="function"||typeof J.componentDidCatch=="function"&&(Eh===null||!Eh.has(J))){I=ZT(_,I);var fe=AS(H,I,1);if(ov(H,fe),fe=F0(),H=sE(H,1),H!==null)MT(H,1,fe),Bd(H,fe);else if(typeof J.componentDidCatch=="function"&&(Eh===null||!Eh.has(J)))try{J.componentDidCatch(_,I)}catch{}break}}H=H.return}}function Mne(I,_,H){var J=I.pingCache;J!==null&&J.delete(_),_=F0(),I.pingedLanes|=I.suspendedLanes&H,cu===I&&(Ol&H)===H&&(gc===4||gc===3&&(Ol&62914560)===Ol&&500>Fu()-_L?T1(I,0):Bc|=H),Bd(I,_)}function Cne(I,_){var H=I.stateNode;H!==null&&H.delete(_),_=0,_===0&&(_=I.mode,(_&2)===0?_=1:(_&4)===0?_=NM()===99?1:2:(Rh===0&&(Rh=KM),_=Sa(62914560&~Rh),_===0&&(_=4194304))),H=F0(),I=sE(I,_),I!==null&&(MT(I,_,H),Bd(I,H))}var EH;EH=function(I,_,H){var J=_.lanes;if(I!==null)if(I.memoizedProps!==_.pendingProps||Wc.current)qc=!0;else if((H&J)!==0)qc=(I.flags&16384)!==0;else{switch(qc=!1,_.tag){case 3:xL(_),uL();break;case 5:uH(_);break;case 1:pc(_.type)&&DT(_);break;case 4:cL(_,_.stateNode.containerInfo);break;case 10:J=_.memoizedProps.value;var fe=_.type._context;cl(pS,fe._currentValue),fe._currentValue=J;break;case 13:if(_.memoizedState!==null)return(H&_.child.childLanes)!==0?wL(I,_,H):(cl(Zs,Zs.current&1),_=qd(I,_,H),_!==null?_.sibling:null);cl(Zs,Zs.current&1);break;case 19:if(J=(H&_.childLanes)!==0,(I.flags&64)!==0){if(J)return wS(I,_,H);_.flags|=64}if(fe=_.memoizedState,fe!==null&&(fe.rendering=null,fe.tail=null,fe.lastEffect=null),cl(Zs,Zs.current),J)break;return null;case 23:case 24:return _.lanes=0,xS(I,_,H)}return qd(I,_,H)}else qc=!1;switch(_.lanes=0,_.tag){case 2:if(J=_.type,I!==null&&(I.alternate=null,_.alternate=null,_.flags|=2),I=_.pendingProps,fe=ke(_,dc.current),M2(_,H),fe=VT(null,_,J,I,fe,H),_.flags|=1,typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0){if(_.tag=1,_.memoizedState=null,_.updateQueue=null,pc(J)){var xe=!0;DT(_)}else xe=!1;_.memoizedState=fe.state!==null&&fe.state!==void 0?fe.state:null,hS(_);var Pe=J.getDerivedStateFromProps;typeof Pe=="function"&&fS(_,J,Pe,I),fe.updater=NT,_.stateNode=fe,fe._reactInternals=_,fc(_,J,I,H),_=YT(null,_,J,!0,xe,H)}else _.tag=0,Wd(null,_,fe,H),_=_.child;return _;case 16:fe=_.elementType;e:{switch(I!==null&&(I.alternate=null,_.alternate=null,_.flags|=2),I=_.pendingProps,xe=fe._init,fe=xe(fe._payload),_.type=fe,xe=_.tag=xne(fe),I=w1(fe,I),xe){case 0:_=CL(null,_,fe,I,H);break e;case 1:_=bH(null,_,fe,I,H);break e;case 11:_=Mg(null,_,fe,I,H);break e;case 14:_=yL(null,_,fe,w1(fe.type,I),J,H);break e}throw Error(r(306,fe,""))}return _;case 0:return J=_.type,fe=_.pendingProps,fe=_.elementType===J?fe:w1(J,fe),CL(I,_,J,fe,H);case 1:return J=_.type,fe=_.pendingProps,fe=_.elementType===J?fe:w1(J,fe),bH(I,_,J,fe,H);case 3:if(xL(_),J=_.updateQueue,I===null||J===null)throw Error(r(282));if(J=_.pendingProps,fe=_.memoizedState,fe=fe!==null?fe.element:null,iv(I,_),BM(_,J,null,H),J=_.memoizedState.element,J===fe)uL(),_=qd(I,_,H);else{if(fe=_.stateNode,(xe=fe.hydrate)&&(A1=kM(_.stateNode.containerInfo.firstChild),vg=_,xe=Oh=!0),xe){if(I=fe.mutableSourceEagerHydrationData,I!=null)for(fe=0;fe<I.length;fe+=2)xe=I[fe],xe._workInProgressVersionPrimary=I[fe+1],A2.push(xe);for(H=av(_,null,J,H),_.child=H;H;)H.flags=H.flags&-3|1024,H=H.sibling}else Wd(I,_,J,H),uL();_=_.child}return _;case 5:return uH(_),I===null&&BT(_),J=_.type,fe=_.pendingProps,xe=I!==null?I.memoizedProps:null,Pe=fe.children,cS(J,fe)?Pe=null:xe!==null&&cS(J,xe)&&(_.flags|=16),vH(I,_),Wd(I,_,Pe,H),_.child;case 6:return I===null&&BT(_),null;case 13:return wL(I,_,H);case 4:return cL(_,_.stateNode.containerInfo),J=_.pendingProps,I===null?_.child=C2(_,null,J,H):Wd(I,_,J,H),_.child;case 11:return J=_.type,fe=_.pendingProps,fe=_.elementType===J?fe:w1(J,fe),Mg(I,_,J,fe,H);case 7:return Wd(I,_,_.pendingProps,H),_.child;case 8:return Wd(I,_,_.pendingProps.children,H),_.child;case 12:return Wd(I,_,_.pendingProps.children,H),_.child;case 10:e:{J=_.type._context,fe=_.pendingProps,Pe=_.memoizedProps,xe=fe.value;var $e=_.type._context;if(cl(pS,$e._currentValue),$e._currentValue=xe,Pe!==null)if($e=Pe.value,xe=Aa($e,xe)?0:(typeof J._calculateChangedBits=="function"?J._calculateChangedBits($e,xe):1073741823)|0,xe===0){if(Pe.children===fe.children&&!Wc.current){_=qd(I,_,H);break e}}else for($e=_.child,$e!==null&&($e.return=_);$e!==null;){var pt=$e.dependencies;if(pt!==null){Pe=$e.child;for(var Bt=pt.firstContext;Bt!==null;){if(Bt.context===J&&(Bt.observedBits&xe)!==0){$e.tag===1&&(Bt=hc(-1,H&-H),Bt.tag=2,ov($e,Bt)),$e.lanes|=H,Bt=$e.alternate,Bt!==null&&(Bt.lanes|=H),lH($e.return,H),pt.lanes|=H;break}Bt=Bt.next}}else Pe=$e.tag===10&&$e.type===_.type?null:$e.child;if(Pe!==null)Pe.return=$e;else for(Pe=$e;Pe!==null;){if(Pe===_){Pe=null;break}if($e=Pe.sibling,$e!==null){$e.return=Pe.return,Pe=$e;break}Pe=Pe.return}$e=Pe}Wd(I,_,fe.children,H),_=_.child}return _;case 9:return fe=_.type,xe=_.pendingProps,J=xe.children,M2(_,H),fe=S1(fe,xe.unstable_observedBits),J=J(fe),_.flags|=1,Wd(I,_,J,H),_.child;case 14:return fe=_.type,xe=w1(fe,_.pendingProps),xe=w1(fe.type,xe),yL(I,_,fe,xe,J,H);case 15:return ML(I,_,_.type,_.pendingProps,J,H);case 17:return J=_.type,fe=_.pendingProps,fe=_.elementType===J?fe:w1(J,fe),I!==null&&(I.alternate=null,_.alternate=null,_.flags|=2),_.tag=1,pc(J)?(I=!0,DT(_)):I=!1,M2(_,H),cH(_,J,fe),fc(_,J,fe,H),YT(null,_,J,!0,I,H);case 19:return wS(I,_,H);case 23:return xS(I,_,H);case 24:return xS(I,_,H)}throw Error(r(156,_.tag))};function RH(I,_,H,J){this.tag=I,this.key=H,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=J,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function E1(I,_,H,J){return new RH(I,_,H,J)}function HL(I){return I=I.prototype,!(!I||!I.isReactComponent)}function xne(I){if(typeof I=="function")return HL(I)?1:0;if(I!=null){if(I=I.$$typeof,I===F)return 11;if(I===W)return 14}return 2}function uv(I,_){var H=I.alternate;return H===null?(H=E1(I.tag,_,I.key,I.mode),H.elementType=I.elementType,H.type=I.type,H.stateNode=I.stateNode,H.alternate=I,I.alternate=H):(H.pendingProps=_,H.type=I.type,H.flags=0,H.nextEffect=null,H.firstEffect=null,H.lastEffect=null),H.childLanes=I.childLanes,H.lanes=I.lanes,H.child=I.child,H.memoizedProps=I.memoizedProps,H.memoizedState=I.memoizedState,H.updateQueue=I.updateQueue,_=I.dependencies,H.dependencies=_===null?null:{lanes:_.lanes,firstContext:_.firstContext},H.sibling=I.sibling,H.index=I.index,H.ref=I.ref,H}function lE(I,_,H,J,fe,xe){var Pe=2;if(J=I,typeof I=="function")HL(I)&&(Pe=1);else if(typeof I=="string")Pe=5;else e:switch(I){case z:return ZM(H.children,fe,xe,_);case q:Pe=8,fe|=16;break;case O:Pe=8,fe|=1;break;case T:return I=E1(12,H,_,fe|8),I.elementType=T,I.type=T,I.lanes=xe,I;case N:return I=E1(13,H,_,fe),I.type=N,I.elementType=N,I.lanes=xe,I;case L:return I=E1(19,H,_,fe),I.elementType=L,I.lanes=xe,I;case $:return jd(H,fe,xe,_);case U:return I=E1(24,H,_,fe),I.elementType=U,I.lanes=xe,I;default:if(typeof I=="object"&&I!==null)switch(I.$$typeof){case R:Pe=10;break e;case P:Pe=9;break e;case F:Pe=11;break e;case W:Pe=14;break e;case j:Pe=16,J=null;break e;case V:Pe=22;break e}throw Error(r(130,I==null?I:typeof I,""))}return _=E1(Pe,H,_,fe),_.elementType=I,_.type=J,_.lanes=xe,_}function ZM(I,_,H,J){return I=E1(7,I,J,_),I.lanes=H,I}function jd(I,_,H,J){return I=E1(23,I,J,_),I.elementType=$,I.lanes=H,I}function VL(I,_,H){return I=E1(6,I,null,_),I.lanes=H,I}function GL(I,_,H){return _=E1(4,I.children!==null?I.children:[],I.key,_),_.lanes=H,_.stateNode={containerInfo:I.containerInfo,pendingChildren:null,implementation:I.implementation},_}function wne(I,_,H){this.tag=_,this.containerInfo=I,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=H,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ga(0),this.expirationTimes=Ga(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ga(0),this.mutableSourceEagerHydrationData=null}function IH(I,_,H){var J=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:J==null?null:""+J,children:I,containerInfo:_,implementation:H}}function cE(I,_,H,J){var fe=_.current,xe=F0(),Pe=xg(fe);e:if(H){H=H._reactInternals;t:{if(xa(H)!==H||H.tag!==1)throw Error(r(170));var $e=H;do{switch($e.tag){case 3:$e=$e.stateNode.context;break t;case 1:if(pc($e.type)){$e=$e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}$e=$e.return}while($e!==null);throw Error(r(171))}if(H.tag===1){var pt=H.type;if(pc(pt)){H=To(H,pt,$e);break e}}H=$e}else H=tv;return _.context===null?_.context=H:_.pendingContext=H,_=hc(xe,Pe),_.payload={element:I},J=J===void 0?null:J,J!==null&&(_.callback=J),ov(fe,_),wg(fe,Pe,xe),Pe}function $L(I){if(I=I.current,!I.child)return null;switch(I.child.tag){case 5:return I.child.stateNode;default:return I.child.stateNode}}function PH(I,_){if(I=I.memoizedState,I!==null&&I.dehydrated!==null){var H=I.retryLane;I.retryLane=H!==0&&H<_?H:_}}function UL(I,_){PH(I,_),(I=I.alternate)&&PH(I,_)}function XL(){return null}function YL(I,_,H){var J=H!=null&&H.hydrationOptions!=null&&H.hydrationOptions.mutableSources||null;if(H=new wne(I,_,H!=null&&H.hydrate===!0),_=E1(3,null,null,_===2?7:_===1?3:0),H.current=_,_.stateNode=H,hS(_),I[Qm]=H.current,Qk(I.nodeType===8?I.parentNode:I),J)for(I=0;I<J.length;I++){_=J[I];var fe=_._getVersion;fe=fe(_._source),H.mutableSourceEagerHydrationData==null?H.mutableSourceEagerHydrationData=[_,fe]:H.mutableSourceEagerHydrationData.push(_,fe)}this._internalRoot=H}YL.prototype.render=function(I){cE(I,this._internalRoot,null,null)},YL.prototype.unmount=function(){var I=this._internalRoot,_=I.containerInfo;cE(null,I,null,function(){_[Qm]=null})};function NS(I){return!(!I||I.nodeType!==1&&I.nodeType!==9&&I.nodeType!==11&&(I.nodeType!==8||I.nodeValue!==" react-mount-point-unstable "))}function Sne(I,_){if(_||(_=I?I.nodeType===9?I.documentElement:I.firstChild:null,_=!(!_||_.nodeType!==1||!_.hasAttribute("data-reactroot"))),!_)for(var H;H=I.lastChild;)I.removeChild(H);return new YL(I,0,_?{hydrate:!0}:void 0)}function uE(I,_,H,J,fe){var xe=H._reactRootContainer;if(xe){var Pe=xe._internalRoot;if(typeof fe=="function"){var $e=fe;fe=function(){var Bt=$L(Pe);$e.call(Bt)}}cE(_,Pe,I,fe)}else{if(xe=H._reactRootContainer=Sne(H,J),Pe=xe._internalRoot,typeof fe=="function"){var pt=fe;fe=function(){var Bt=$L(Pe);pt.call(Bt)}}kS(function(){cE(_,Pe,I,fe)})}return $L(Pe)}Dd=function(I){if(I.tag===13){var _=F0();wg(I,4,_),UL(I,4)}},fi=function(I){if(I.tag===13){var _=F0();wg(I,67108864,_),UL(I,67108864)}},Ns=function(I){if(I.tag===13){var _=F0(),H=xg(I);wg(I,H,_),UL(I,H)}},_u=function(I,_){return _()},vr=function(I,_,H){switch(_){case"input":if(ie(I,H),_=H.name,H.type==="radio"&&_!=null){for(H=I;H.parentNode;)H=H.parentNode;for(H=H.querySelectorAll("input[name="+JSON.stringify(""+_)+'][type="radio"]'),_=0;_<H.length;_++){var J=H[_];if(J!==I&&J.form===I.form){var fe=Zm(J);if(!fe)throw Error(r(90));be(J),ie(J,fe)}}}break;case"textarea":Le(I,H);break;case"select":_=H.value,_!=null&&Ge(I,!!H.multiple,_,!1)}},Je=qL,ft=function(I,_,H,J,fe){var xe=yi;yi|=4;try{return b2(98,I.bind(null,_,H,J,fe))}finally{yi=xe,yi===0&&(QM(),Ah())}},Tt=function(){(yi&49)===0&&(wH(),cv())},St=function(I,_){var H=yi;yi|=2;try{return I(_)}finally{yi=H,yi===0&&(QM(),Ah())}};function DH(I,_){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!NS(_))throw Error(r(200));return IH(I,_,null,H)}var Ane={Events:[xh,wh,Zm,ct,lt,cv,{current:!1}]},FS={findFiberByHostInstance:fg,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},One={bundleType:FS.bundleType,version:FS.version,rendererPackageName:FS.rendererPackageName,rendererConfig:FS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(I){return I=Lu(I),I===null?null:I.stateNode},findFiberByHostInstance:FS.findFiberByHostInstance||XL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dE=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dE.isDisabled&&dE.supportsFiber)try{nL=dE.inject(One),_0=dE}catch{}}return _p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ane,_p.createPortal=DH,_p.findDOMNode=function(I){if(I==null)return null;if(I.nodeType===1)return I;var _=I._reactInternals;if(_===void 0)throw typeof I.render=="function"?Error(r(188)):Error(r(268,Object.keys(I)));return I=Lu(_),I=I===null?null:I.stateNode,I},_p.flushSync=function(I,_){var H=yi;if((H&48)!==0)return I(_);yi|=1;try{if(I)return b2(99,I.bind(null,_))}finally{yi=H,Ah()}},_p.hydrate=function(I,_,H){if(!NS(_))throw Error(r(200));return uE(null,I,_,!0,H)},_p.render=function(I,_,H){if(!NS(_))throw Error(r(200));return uE(null,I,_,!1,H)},_p.unmountComponentAtNode=function(I){if(!NS(I))throw Error(r(40));return I._reactRootContainer?(kS(function(){uE(null,null,I,!1,function(){I._reactRootContainer=null,I[Qm]=null})}),!0):!1},_p.unstable_batchedUpdates=qL,_p.unstable_createPortal=function(I,_){return DH(I,_,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},_p.unstable_renderSubtreeIntoContainer=function(I,_,H,J){if(!NS(H))throw Error(r(200));if(I==null||I._reactInternals===void 0)throw Error(r(38));return uE(I,_,H,!1,J)},_p.version="17.0.2",_p}var YIe;function Xsn(){if(YIe)return oie.exports;YIe=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(),oie.exports=Usn(),oie.exports}var Bl=Xsn();const kR=qn(Bl);var tQ=!0,Jhe=!1,KIe=null,Ysn={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ksn(e){var t=e.type,n=e.tagName;return!!(n==="INPUT"&&Ysn[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Qsn(e){e.metaKey||e.altKey||e.ctrlKey||(tQ=!0)}function lie(){tQ=!1}function Zsn(){this.visibilityState==="hidden"&&Jhe&&(tQ=!0)}function Jsn(e){e.addEventListener("keydown",Qsn,!0),e.addEventListener("mousedown",lie,!0),e.addEventListener("pointerdown",lie,!0),e.addEventListener("touchstart",lie,!0),e.addEventListener("visibilitychange",Zsn,!0)}function eln(e){var t=e.target;try{return t.matches(":focus-visible")}catch{}return tQ||Ksn(t)}function tln(){Jhe=!0,window.clearTimeout(KIe),KIe=window.setTimeout(function(){Jhe=!1},100)}function nQ(){var e=v.useCallback(function(t){var n=Bl.findDOMNode(t);n!=null&&Jsn(n.ownerDocument)},[]);return{isFocusVisible:eln,onBlurVisible:tln,ref:e}}const nln=Object.freeze(Object.defineProperty({__proto__:null,capitalize:$r,createChainedFunction:Kx,createSvgIcon:Ui,debounce:$y,deprecatedPropType:Bsn,isMuiElement:XN,ownerDocument:yd,ownerWindow:eQ,requirePropFactory:jsn,setRef:Uy,unstable_useId:zMe,unsupportedProp:Hsn,useControlled:cb,useEventCallback:bs,useForkRef:Ba,useIsFocusVisible:nQ},Symbol.toStringTag,{value:"Module"}));function rln(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function iln(e,t){e.classList?e.classList.add(t):rln(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function QIe(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function oln(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=QIe(e.className,t):e.setAttribute("class",QIe(e.className&&e.className.baseVal||"",t))}const ZIe={disabled:!1},J$=E.createContext(null);var Xot=function(t){return t.scrollTop},Z5="unmounted",RA="exited",IA="entering",MR="entered",efe="exiting",b1=(function(e){ha(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=RA,o.appearStatus=IA):l=MR:r.unmountOnExit||r.mountOnEnter?l=Z5:l=RA,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Z5?{status:RA}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==IA&&a!==MR&&(o=IA):(a===IA||a===MR)&&(o=efe)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===IA){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:kR.findDOMNode(this);a&&Xot(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===RA&&this.setState({status:Z5})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[kR.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||ZIe.disabled){this.safeSetState({status:MR},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:IA},function(){o.props.onEntering(c,u),o.onTransitionEnd(p,function(){o.safeSetState({status:MR},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:kR.findDOMNode(this);if(!o||ZIe.disabled){this.safeSetState({status:RA},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:efe},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:RA},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:kR.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Z5)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Lt(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(J$.Provider,{value:null},typeof a=="function"?a(i,s):E.cloneElement(E.Children.only(a),s))},t})(E.Component);b1.contextType=J$;b1.propTypes={};function ME(){}b1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ME,onEntering:ME,onEntered:ME,onExit:ME,onExiting:ME,onExited:ME};b1.UNMOUNTED=Z5;b1.EXITED=RA;b1.ENTERING=IA;b1.ENTERED=MR;b1.EXITING=efe;var aln=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return iln(t,r)})},cie=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return oln(t,r)})},rQ=(function(e){ha(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,l)},r.onEntering=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1],p=d?"appear":"enter";r.addClass(u,p,"active"),r.props.onEntering&&r.props.onEntering(s,l)},r.onEntered=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1],p=d?"appear":"enter";r.removeClasses(u,p),r.addClass(u,p,"done"),r.props.onEntered&&r.props.onEntered(s,l)},r.onExit=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var l=r.resolveArguments(s),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,l){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,l]},r.getClassNames=function(s){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+s:l[s],p=c?d+"-active":l[s+"Active"],h=c?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:p,doneClassName:h}},r}var n=t.prototype;return n.addClass=function(i,o,a){var s=this.getClassNames(o)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;o==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&i&&Xot(i),s&&(this.appliedClasses[o][a]=s,aln(i,s))},n.removeClasses=function(i,o){var a=this.appliedClasses[o],s=a.base,l=a.active,c=a.done;this.appliedClasses[o]={},s&&cie(i,s),l&&cie(i,l),c&&cie(i,c)},n.render=function(){var i=this.props;i.classNames;var o=Lt(i,["classNames"]);return E.createElement(b1,Y({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(E.Component);rQ.defaultProps={classNames:""};rQ.propTypes={};function TMe(e,t){var n=function(o){return t&&v.isValidElement(o)?t(o):o},r=Object.create(null);return e&&v.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function sln(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function aO(e,t,n){return n[t]!=null?n[t]:e.props[t]}function lln(e,t){return TMe(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:aO(n,"appear",e),enter:aO(n,"enter",e),exit:aO(n,"exit",e)})})}function cln(e,t,n){var r=TMe(e.children),i=sln(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(v.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=v.isValidElement(c)&&!c.props.in;l&&(!s||u)?i[o]=v.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:aO(a,"exit",e),enter:aO(a,"enter",e)}):!l&&s&&!u?i[o]=v.cloneElement(a,{in:!1}):l&&s&&v.isValidElement(c)&&(i[o]=v.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:aO(a,"exit",e),enter:aO(a,"enter",e)}))}}),i}var uln=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},dln={component:"div",childFactory:function(t){return t}},w3=(function(e){ha(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(xn(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?lln(i,s):cln(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=TMe(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=Y({},s.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=Lt(i,["component","childFactory"]),l=this.state.contextValue,c=uln(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?E.createElement(J$.Provider,{value:l},c):E.createElement(J$.Provider,{value:l},E.createElement(o,s,c))},t})(E.Component);w3.propTypes={};w3.defaultProps=dln;var EMe=function(t){return t.scrollTop};function Qx(e,t){var n=e.timeout,r=e.style,i=r===void 0?{}:r;return{duration:i.transitionDuration||typeof n=="number"?n:n[t.mode]||0,delay:i.transitionDelay}}var pln=function(t){return{root:{height:0,overflow:"hidden",transition:t.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}},Yot=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.collapsedHeight,s=t.collapsedSize,l=s===void 0?"0px":s,c=t.component,u=c===void 0?"div":c,d=t.disableStrictModeCompat,p=d===void 0?!1:d,h=t.in,g=t.onEnter,m=t.onEntered,b=t.onEntering,y=t.onExit,M=t.onExited,C=t.onExiting,x=t.style,w=t.timeout,S=w===void 0?lh.standard:w,A=t.TransitionComponent,z=A===void 0?b1:A,O=fn(t,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=ql(),R=v.useRef(),P=v.useRef(null),F=v.useRef(),N=typeof(a||l)=="number"?"".concat(a||l,"px"):a||l;v.useEffect(function(){return function(){clearTimeout(R.current)}},[]);var L=T.unstable_strictMode&&!p,W=v.useRef(null),j=Ba(n,L?W:void 0),V=function(se){return function(pe,te){if(se){var ce=L?[W.current,pe]:[pe,te],oe=Xu(ce,2),ae=oe[0],ne=oe[1];ne===void 0?se(ae):se(ae,ne)}}},G=V(function(ee,se){ee.style.height=N,g&&g(ee,se)}),q=V(function(ee,se){var pe=P.current?P.current.clientHeight:0,te=Qx({style:x,timeout:S},{mode:"enter"}),ce=te.duration;if(S==="auto"){var oe=T.transitions.getAutoHeightDuration(pe);ee.style.transitionDuration="".concat(oe,"ms"),F.current=oe}else ee.style.transitionDuration=typeof ce=="string"?ce:"".concat(ce,"ms");ee.style.height="".concat(pe,"px"),b&&b(ee,se)}),$=V(function(ee,se){ee.style.height="auto",m&&m(ee,se)}),U=V(function(ee){var se=P.current?P.current.clientHeight:0;ee.style.height="".concat(se,"px"),y&&y(ee)}),X=V(M),Q=V(function(ee){var se=P.current?P.current.clientHeight:0,pe=Qx({style:x,timeout:S},{mode:"exit"}),te=pe.duration;if(S==="auto"){var ce=T.transitions.getAutoHeightDuration(se);ee.style.transitionDuration="".concat(ce,"ms"),F.current=ce}else ee.style.transitionDuration=typeof te=="string"?te:"".concat(te,"ms");ee.style.height=N,C&&C(ee)}),re=function(se,pe){var te=L?se:pe;S==="auto"&&(R.current=setTimeout(te,F.current||0))};return v.createElement(z,Y({in:h,onEnter:G,onEntered:$,onEntering:q,onExit:U,onExited:X,onExiting:Q,addEndListener:re,nodeRef:L?W:void 0,timeout:S==="auto"?null:S},O),function(ee,se){return v.createElement(u,Y({className:$t(i.root,i.container,o,{entered:i.entered,exited:!h&&N==="0px"&&i.hidden}[ee]),style:Y({minHeight:N},x),ref:j},se),v.createElement("div",{className:i.wrapper,ref:P},v.createElement("div",{className:i.wrapperInner},r)))})});Yot.muiSupportAuto=!0;const RMe=or(pln,{name:"MuiCollapse"})(Yot);var hln=function(t){var n={};return t.shadows.forEach(function(r,i){n["elevation".concat(i)]={boxShadow:r}}),Y({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},n)},fln=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"div":o,s=t.square,l=s===void 0?!1:s,c=t.elevation,u=c===void 0?1:c,d=t.variant,p=d===void 0?"elevation":d,h=fn(t,["classes","className","component","square","elevation","variant"]);return v.createElement(a,Y({className:$t(r.root,i,p==="outlined"?r.outlined:r["elevation".concat(u)],!l&&r.rounded),ref:n},h))});const Pt=or(hln,{name:"MuiPaper"})(fln);var gln=typeof window>"u"?v.useEffect:v.useLayoutEffect;function mln(e){var t=e.classes,n=e.pulsate,r=n===void 0?!1:n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=l===void 0?function(){}:l,u=e.timeout,d=v.useState(!1),p=d[0],h=d[1],g=$t(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},b=$t(t.child,p&&t.childLeaving,r&&t.childPulsate),y=bs(c);return gln(function(){if(!s){h(!0);var M=setTimeout(y,u);return function(){clearTimeout(M)}}},[y,s,u]),v.createElement("span",{className:g,style:m},v.createElement("span",{className:b}))}var tfe=550,vln=80,bln=function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(tfe,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(tfe,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},yln=v.forwardRef(function(t,n){var r=t.center,i=r===void 0?!1:r,o=t.classes,a=t.className,s=fn(t,["center","classes","className"]),l=v.useState([]),c=l[0],u=l[1],d=v.useRef(0),p=v.useRef(null);v.useEffect(function(){p.current&&(p.current(),p.current=null)},[c]);var h=v.useRef(!1),g=v.useRef(null),m=v.useRef(null),b=v.useRef(null);v.useEffect(function(){return function(){clearTimeout(g.current)}},[]);var y=v.useCallback(function(w){var S=w.pulsate,A=w.rippleX,z=w.rippleY,O=w.rippleSize,T=w.cb;u(function(R){return[].concat(T6(R),[v.createElement(mln,{key:d.current,classes:o,timeout:tfe,pulsate:S,rippleX:A,rippleY:z,rippleSize:O})])}),d.current+=1,p.current=T},[o]),M=v.useCallback(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=arguments.length>2?arguments[2]:void 0,z=S.pulsate,O=z===void 0?!1:z,T=S.center,R=T===void 0?i||S.pulsate:T,P=S.fakeElement,F=P===void 0?!1:P;if(w.type==="mousedown"&&h.current){h.current=!1;return}w.type==="touchstart"&&(h.current=!0);var N=F?null:b.current,L=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0},W,j,V;if(R||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)W=Math.round(L.width/2),j=Math.round(L.height/2);else{var G=w.touches?w.touches[0]:w,q=G.clientX,$=G.clientY;W=Math.round(q-L.left),j=Math.round($-L.top)}if(R)V=Math.sqrt((2*Math.pow(L.width,2)+Math.pow(L.height,2))/3),V%2===0&&(V+=1);else{var U=Math.max(Math.abs((N?N.clientWidth:0)-W),W)*2+2,X=Math.max(Math.abs((N?N.clientHeight:0)-j),j)*2+2;V=Math.sqrt(Math.pow(U,2)+Math.pow(X,2))}w.touches?m.current===null&&(m.current=function(){y({pulsate:O,rippleX:W,rippleY:j,rippleSize:V,cb:A})},g.current=setTimeout(function(){m.current&&(m.current(),m.current=null)},vln)):y({pulsate:O,rippleX:W,rippleY:j,rippleSize:V,cb:A})},[i,y]),C=v.useCallback(function(){M({},{pulsate:!0})},[M]),x=v.useCallback(function(w,S){if(clearTimeout(g.current),w.type==="touchend"&&m.current){w.persist(),m.current(),m.current=null,g.current=setTimeout(function(){x(w,S)});return}m.current=null,u(function(A){return A.length>0?A.slice(1):A}),p.current=S},[]);return v.useImperativeHandle(n,function(){return{pulsate:C,start:M,stop:x}},[C,M,x]),v.createElement("span",Y({className:$t(o.root,a),ref:b},s),v.createElement(w3,{component:null,exit:!0},c))});const Mln=or(bln,{flip:!1,name:"MuiTouchRipple"})(v.memo(yln));var Cln={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},xln=v.forwardRef(function(t,n){var r=t.action,i=t.buttonRef,o=t.centerRipple,a=o===void 0?!1:o,s=t.children,l=t.classes,c=t.className,u=t.component,d=u===void 0?"button":u,p=t.disabled,h=p===void 0?!1:p,g=t.disableRipple,m=g===void 0?!1:g,b=t.disableTouchRipple,y=b===void 0?!1:b,M=t.focusRipple,C=M===void 0?!1:M,x=t.focusVisibleClassName,w=t.onBlur,S=t.onClick,A=t.onFocus,z=t.onFocusVisible,O=t.onKeyDown,T=t.onKeyUp,R=t.onMouseDown,P=t.onMouseLeave,F=t.onMouseUp,N=t.onTouchEnd,L=t.onTouchMove,W=t.onTouchStart,j=t.onDragLeave,V=t.tabIndex,G=V===void 0?0:V,q=t.TouchRippleProps,$=t.type,U=$===void 0?"button":$,X=fn(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Q=v.useRef(null);function re(){return Bl.findDOMNode(Q.current)}var ee=v.useRef(null),se=v.useState(!1),pe=se[0],te=se[1];h&&pe&&te(!1);var ce=nQ(),oe=ce.isFocusVisible,ae=ce.onBlurVisible,ne=ce.ref;v.useImperativeHandle(r,function(){return{focusVisible:function(){te(!0),Q.current.focus()}}},[]),v.useEffect(function(){pe&&C&&!m&&ee.current.pulsate()},[m,C,pe]);function le(it,Ft){var Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y;return bs(function(Qn){Ft&&Ft(Qn);var ir=Dt;return!ir&&ee.current&&ee.current[it](Qn),!0})}var he=le("start",R),be=le("stop",j),me=le("stop",F),Me=le("stop",function(it){pe&&it.preventDefault(),P&&P(it)}),Oe=le("start",W),de=le("stop",N),ie=le("stop",L),ue=le("stop",function(it){pe&&(ae(it),te(!1)),w&&w(it)},!1),Ae=bs(function(it){Q.current||(Q.current=it.currentTarget),oe(it)&&(te(!0),z&&z(it)),A&&A(it)}),Ce=function(){var Ft=re();return d&&d!=="button"&&!(Ft.tagName==="A"&&Ft.href)},Ee=v.useRef(!1),Ge=bs(function(it){C&&!Ee.current&&pe&&ee.current&&it.key===" "&&(Ee.current=!0,it.persist(),ee.current.stop(it,function(){ee.current.start(it)})),it.target===it.currentTarget&&Ce()&&it.key===" "&&it.preventDefault(),O&&O(it),it.target===it.currentTarget&&Ce()&&it.key==="Enter"&&!h&&(it.preventDefault(),S&&S(it))}),_e=bs(function(it){C&&it.key===" "&&ee.current&&pe&&!it.defaultPrevented&&(Ee.current=!1,it.persist(),ee.current.stop(it,function(){ee.current.pulsate(it)})),T&&T(it),S&&it.target===it.currentTarget&&Ce()&&it.key===" "&&!it.defaultPrevented&&S(it)}),Ie=d;Ie==="button"&&X.href&&(Ie="a");var Le={};Ie==="button"?(Le.type=U,Le.disabled=h):((Ie!=="a"||!X.href)&&(Le.role="button"),Le["aria-disabled"]=h);var we=Ba(i,n),ve=Ba(ne,Q),De=Ba(we,ve),ze=v.useState(!1),Ve=ze[0],Ke=ze[1];v.useEffect(function(){Ke(!0)},[]);var et=Ve&&!m&&!h;return v.createElement(Ie,Y({className:$t(l.root,c,pe&&[l.focusVisible,x],h&&l.disabled),onBlur:ue,onClick:S,onFocus:Ae,onKeyDown:Ge,onKeyUp:_e,onMouseDown:he,onMouseLeave:Me,onMouseUp:me,onDragLeave:be,onTouchEnd:de,onTouchMove:ie,onTouchStart:Oe,ref:De,tabIndex:h?-1:G},Le,X),s,et?v.createElement(Mln,Y({ref:ee,center:a},q)):null)});const Rz=or(Cln,{name:"MuiButtonBase"})(xln);var wln=function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:Ho(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Ho(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Ho(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},Sln=v.forwardRef(function(t,n){var r=t.edge,i=r===void 0?!1:r,o=t.children,a=t.classes,s=t.className,l=t.color,c=l===void 0?"default":l,u=t.disabled,d=u===void 0?!1:u,p=t.disableFocusRipple,h=p===void 0?!1:p,g=t.size,m=g===void 0?"medium":g,b=fn(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return v.createElement(Rz,Y({className:$t(a.root,s,c!=="default"&&a["color".concat($r(c))],d&&a.disabled,m==="small"&&a["size".concat($r(m))],{start:a.edgeStart,end:a.edgeEnd}[i]),centerRipple:!0,focusRipple:!h,disabled:d,ref:n},b),v.createElement("span",{className:a.label},o))});const bn=or(wln,{name:"MuiIconButton"})(Sln);var Aln=function(t){var n=t.palette.type==="light"?t.palette.grey[100]:t.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:t.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:n,color:t.palette.getContrastText(n)},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}},Oln=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=o===void 0?"primary":o,s=t.position,l=s===void 0?"fixed":s,c=fn(t,["classes","className","color","position"]);return v.createElement(Pt,Y({square:!0,component:"header",elevation:4,className:$t(r.root,r["position".concat($r(l))],r["color".concat($r(a))],i,l==="fixed"&&"mui-fixed"),ref:n},c))});const iQ=or(Aln,{name:"MuiAppBar"})(Oln);var zln={entering:{opacity:1},entered:{opacity:1}},Tln={enter:lh.enteringScreen,exit:lh.leavingScreen},Kot=v.forwardRef(function(t,n){var r=t.children,i=t.disableStrictModeCompat,o=i===void 0?!1:i,a=t.in,s=t.onEnter,l=t.onEntered,c=t.onEntering,u=t.onExit,d=t.onExited,p=t.onExiting,h=t.style,g=t.TransitionComponent,m=g===void 0?b1:g,b=t.timeout,y=b===void 0?Tln:b,M=fn(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),C=ql(),x=C.unstable_strictMode&&!o,w=v.useRef(null),S=Ba(r.ref,n),A=Ba(x?w:void 0,S),z=function(W){return function(j,V){if(W){var G=x?[w.current,j]:[j,V],q=Xu(G,2),$=q[0],U=q[1];U===void 0?W($):W($,U)}}},O=z(c),T=z(function(L,W){EMe(L);var j=Qx({style:h,timeout:y},{mode:"enter"});L.style.webkitTransition=C.transitions.create("opacity",j),L.style.transition=C.transitions.create("opacity",j),s&&s(L,W)}),R=z(l),P=z(p),F=z(function(L){var W=Qx({style:h,timeout:y},{mode:"exit"});L.style.webkitTransition=C.transitions.create("opacity",W),L.style.transition=C.transitions.create("opacity",W),u&&u(L)}),N=z(d);return v.createElement(m,Y({appear:!0,in:a,nodeRef:x?w:void 0,onEnter:T,onEntered:R,onEntering:O,onExit:F,onExited:N,onExiting:P,timeout:y},M),function(L,W){return v.cloneElement(r,Y({style:Y({opacity:0,visibility:L==="exited"&&!a?"hidden":void 0},zln[L],h,r.props.style),ref:A},W))})}),Eln={root:{zIndex:-1,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"},invisible:{backgroundColor:"transparent"}},Rln=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.invisible,s=a===void 0?!1:a,l=t.open,c=t.transitionDuration,u=t.TransitionComponent,d=u===void 0?Kot:u,p=fn(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return v.createElement(d,Y({in:l,timeout:c},p),v.createElement("div",{className:$t(i.root,o,s&&i.invisible),"aria-hidden":!0,ref:n},r))});const I6=or(Eln,{name:"MuiBackdrop"})(Rln);var uie=10,die=4,Iln=function(t){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:uie*2,lineHeight:1,padding:"0 6px",height:uie*2,borderRadius:uie,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},colorError:{backgroundColor:t.palette.error.main,color:t.palette.error.contrastText},dot:{borderRadius:die,height:die*2,minWidth:die*2,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}},Pln=v.forwardRef(function(t,n){var r=t.anchorOrigin,i=r===void 0?{vertical:"top",horizontal:"right"}:r,o=t.badgeContent,a=t.children,s=t.classes,l=t.className,c=t.color,u=c===void 0?"default":c,d=t.component,p=d===void 0?"span":d,h=t.invisible,g=t.max,m=g===void 0?99:g,b=t.overlap,y=b===void 0?"rectangle":b,M=t.showZero,C=M===void 0?!1:M,x=t.variant,w=x===void 0?"standard":x,S=fn(t,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),A=h;h==null&&(o===0&&!C||o==null&&w!=="dot")&&(A=!0);var z="";return w!=="dot"&&(z=o>m?"".concat(m,"+"):o),v.createElement(p,Y({className:$t(s.root,l),ref:n},S),a,v.createElement("span",{className:$t(s.badge,s["".concat(i.horizontal).concat($r(i.vertical),"}")],s["anchorOrigin".concat($r(i.vertical)).concat($r(i.horizontal)).concat($r(y))],u!=="default"&&s["color".concat($r(u))],A&&s.invisible,w==="dot"&&s.dot)},z))});const Qot=or(Iln,{name:"MuiBadge"})(Pln);var Dln=vin(fM(min,Sin,Fin,Qin,son,eon,lon,mon,yMe,Don)),Tn=$ot("div")(Dln,{name:"MuiBox"}),kln=function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},JIe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Lln=v.forwardRef(function(t,n){var r=t.align,i=r===void 0?"inherit":r,o=t.classes,a=t.className,s=t.color,l=s===void 0?"initial":s,c=t.component,u=t.display,d=u===void 0?"initial":u,p=t.gutterBottom,h=p===void 0?!1:p,g=t.noWrap,m=g===void 0?!1:g,b=t.paragraph,y=b===void 0?!1:b,M=t.variant,C=M===void 0?"body1":M,x=t.variantMapping,w=x===void 0?JIe:x,S=fn(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),A=c||(y?"p":w[C]||JIe[C])||"span";return v.createElement(A,Y({className:$t(o.root,a,C!=="inherit"&&o[C],l!=="initial"&&o["color".concat($r(l))],m&&o.noWrap,h&&o.gutterBottom,y&&o.paragraph,i!=="inherit"&&o["align".concat($r(i))],d!=="initial"&&o["display".concat($r(d))]),ref:n},S))});const vt=or(kln,{name:"MuiTypography"})(Lln);var _ln=function(t){return{root:Y({},t.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:t.shape.borderRadius,color:t.palette.text.primary,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Ho(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:t.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Ho(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Ho(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(t.palette.action.disabledBackground)}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(Ho(t.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.primary.main),backgroundColor:Ho(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(Ho(t.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.secondary.main),backgroundColor:Ho(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(t.palette.action.disabled)}},contained:{color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],boxShadow:t.shadows[2],"&:hover":{backgroundColor:t.palette.grey.A100,boxShadow:t.shadows[4],"@media (hover: none)":{boxShadow:t.shadows[2],backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:t.shadows[6]},"&:active":{boxShadow:t.shadows[8]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}},containedPrimary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},containedSecondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},Nln=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=a===void 0?"default":a,l=t.component,c=l===void 0?"button":l,u=t.disabled,d=u===void 0?!1:u,p=t.disableElevation,h=p===void 0?!1:p,g=t.disableFocusRipple,m=g===void 0?!1:g,b=t.endIcon,y=t.focusVisibleClassName,M=t.fullWidth,C=M===void 0?!1:M,x=t.size,w=x===void 0?"medium":x,S=t.startIcon,A=t.type,z=A===void 0?"button":A,O=t.variant,T=O===void 0?"text":O,R=fn(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=S&&v.createElement("span",{className:$t(i.startIcon,i["iconSize".concat($r(w))])},S),F=b&&v.createElement("span",{className:$t(i.endIcon,i["iconSize".concat($r(w))])},b);return v.createElement(Rz,Y({className:$t(i.root,i[T],o,s==="inherit"?i.colorInherit:s!=="default"&&i["".concat(T).concat($r(s))],w!=="medium"&&[i["".concat(T,"Size").concat($r(w))],i["size".concat($r(w))]],h&&i.disableElevation,d&&i.disabled,C&&i.fullWidth),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:$t(i.focusVisible,y),ref:n,type:z},R),v.createElement("span",{className:i.label},P,r,F))});const Ne=or(_ln,{name:"MuiButton"})(Nln);Ne.styles;var Fln=function(t){return{root:{display:"inline-flex",borderRadius:t.shape.borderRadius},contained:{boxShadow:t.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:Ho(t.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:Ho(t.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:t.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:t.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(t.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(t.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(t.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(t.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:t.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:t.palette.secondary.dark}}}},Wln=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=a===void 0?"default":a,l=t.component,c=l===void 0?"div":l,u=t.disabled,d=u===void 0?!1:u,p=t.disableElevation,h=p===void 0?!1:p,g=t.disableFocusRipple,m=g===void 0?!1:g,b=t.disableRipple,y=b===void 0?!1:b,M=t.fullWidth,C=M===void 0?!1:M,x=t.orientation,w=x===void 0?"horizontal":x,S=t.size,A=S===void 0?"medium":S,z=t.variant,O=z===void 0?"outlined":z,T=fn(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),R=$t(i.grouped,i["grouped".concat($r(w))],i["grouped".concat($r(O))],i["grouped".concat($r(O)).concat($r(w))],i["grouped".concat($r(O)).concat(s!=="default"?$r(s):"")],d&&i.disabled);return v.createElement(c,Y({role:"group",className:$t(i.root,o,C&&i.fullWidth,h&&i.disableElevation,O==="contained"&&i.contained,w==="vertical"&&i.vertical),ref:n},T),v.Children.map(r,function(P){return v.isValidElement(P)?v.cloneElement(P,{className:$t(R,P.props.className),color:P.props.color||s,disabled:P.props.disabled||d,disableElevation:P.props.disableElevation||h,disableFocusRipple:m,disableRipple:y,fullWidth:C,size:P.props.size||A,variant:P.props.variant||O}):null}))});const Iz=or(Fln,{name:"MuiButtonGroup"})(Wln);var qln={root:{overflow:"hidden"}},Bln=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.raised,a=o===void 0?!1:o,s=fn(t,["classes","className","raised"]);return v.createElement(Pt,Y({className:$t(r.root,i),elevation:a?8:1,ref:n},s))});const wD=or(qln,{name:"MuiCard"})(Bln);var jln={root:{padding:16,"&:last-child":{paddingBottom:24}}},Hln=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"div":o,s=fn(t,["classes","className","component"]);return v.createElement(a,Y({className:$t(r.root,i),ref:n},s))});const SD=or(jln,{name:"MuiCardContent"})(Hln);var P6=v.createContext();function Zot(){return v.useContext(P6)}function S3(){return v.useContext(P6)}var Vln={root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},Gln=v.forwardRef(function(t,n){var r=t.autoFocus,i=t.checked,o=t.checkedIcon,a=t.classes,s=t.className,l=t.defaultChecked,c=t.disabled,u=t.icon,d=t.id,p=t.inputProps,h=t.inputRef,g=t.name,m=t.onBlur,b=t.onChange,y=t.onFocus,M=t.readOnly,C=t.required,x=t.tabIndex,w=t.type,S=t.value,A=fn(t,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),z=cb({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),O=Xu(z,2),T=O[0],R=O[1],P=S3(),F=function(G){y&&y(G),P&&P.onFocus&&P.onFocus(G)},N=function(G){m&&m(G),P&&P.onBlur&&P.onBlur(G)},L=function(G){var q=G.target.checked;R(q),b&&b(G,q)},W=c;P&&typeof W>"u"&&(W=P.disabled);var j=w==="checkbox"||w==="radio";return v.createElement(bn,Y({component:"span",className:$t(a.root,s,T&&a.checked,W&&a.disabled),disabled:W,tabIndex:null,role:void 0,onFocus:F,onBlur:N,ref:n},A),v.createElement("input",Y({autoFocus:r,checked:i,defaultChecked:l,className:a.input,disabled:W,id:j&&d,name:g,onChange:L,readOnly:M,ref:h,required:C,tabIndex:x,type:w,value:S},p)),T?o:u)});const Jot=or(Vln,{name:"PrivateSwitchBase"})(Gln),$ln=Ui(v.createElement("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"})),Uln=Ui(v.createElement("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"})),Xln=Ui(v.createElement("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"}));var Yln=function(t){return{root:{color:t.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:Ho(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:Ho(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}}}},Kln=v.createElement(Uln,null),Qln=v.createElement($ln,null),Zln=v.createElement(Xln,null),Jln=v.forwardRef(function(t,n){var r=t.checkedIcon,i=r===void 0?Kln:r,o=t.classes,a=t.color,s=a===void 0?"secondary":a,l=t.icon,c=l===void 0?Qln:l,u=t.indeterminate,d=u===void 0?!1:u,p=t.indeterminateIcon,h=p===void 0?Zln:p,g=t.inputProps,m=t.size,b=m===void 0?"medium":m,y=fn(t,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),M=d?h:c,C=d?h:i;return v.createElement(Jot,Y({type:"checkbox",classes:{root:$t(o.root,o["color".concat($r(s))],d&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:s,inputProps:Y({"data-indeterminate":d},g),icon:v.cloneElement(M,{fontSize:M.props.fontSize===void 0&&b==="small"?b:M.props.fontSize}),checkedIcon:v.cloneElement(C,{fontSize:C.props.fontSize===void 0&&b==="small"?b:C.props.fontSize}),ref:n},y))});const Qr=or(Yln,{name:"MuiCheckbox"})(Jln),ecn=Ui(v.createElement("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"}));var tcn=function(t){var n=t.palette.type==="light"?t.palette.grey[300]:t.palette.grey[700],r=Ho(t.palette.text.primary,.26);return{root:{fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:t.palette.getContrastText(n),backgroundColor:n,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:t.palette.type==="light"?t.palette.grey[700]:t.palette.grey[300],fontSize:t.typography.pxToRem(12)},"& $avatarColorPrimary":{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.dark},"& $avatarColorSecondary":{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:EA(n,.08)},"&:active":{boxShadow:t.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:EA(t.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:EA(t.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:EA(n,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:EA(t.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:EA(t.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Ho(t.palette.text.primary,t.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(t.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Ho(t.palette.primary.main,t.palette.action.hoverOpacity)}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(t.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Ho(t.palette.secondary.main,t.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:t.palette.type==="light"?t.palette.grey[700]:t.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:r,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Ho(r,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Ho(t.palette.primary.contrastText,.7),"&:hover, &:active":{color:t.palette.primary.contrastText}},deleteIconColorSecondary:{color:Ho(t.palette.secondary.contrastText,.7),"&:hover, &:active":{color:t.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Ho(t.palette.primary.main,.7),"&:hover, &:active":{color:t.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Ho(t.palette.secondary.main,.7),"&:hover, &:active":{color:t.palette.secondary.main}}}};function ePe(e){return e.key==="Backspace"||e.key==="Delete"}var ncn=v.forwardRef(function(t,n){var r=t.avatar,i=t.classes,o=t.className,a=t.clickable,s=t.color,l=s===void 0?"default":s,c=t.component,u=t.deleteIcon,d=t.disabled,p=d===void 0?!1:d,h=t.icon,g=t.label,m=t.onClick,b=t.onDelete,y=t.onKeyDown,M=t.onKeyUp,C=t.size,x=C===void 0?"medium":C,w=t.variant,S=w===void 0?"default":w,A=fn(t,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),z=v.useRef(null),O=Ba(z,n),T=function(U){U.stopPropagation(),b&&b(U)},R=function(U){U.currentTarget===U.target&&ePe(U)&&U.preventDefault(),y&&y(U)},P=function(U){U.currentTarget===U.target&&(b&&ePe(U)?b(U):U.key==="Escape"&&z.current&&z.current.blur()),M&&M(U)},F=a!==!1&&m?!0:a,N=x==="small",L=c||(F?Rz:"div"),W=L===Rz?{component:"div"}:{},j=null;if(b){var V=$t(l!=="default"&&(S==="default"?i["deleteIconColor".concat($r(l))]:i["deleteIconOutlinedColor".concat($r(l))]),N&&i.deleteIconSmall);j=u&&v.isValidElement(u)?v.cloneElement(u,{className:$t(u.props.className,i.deleteIcon,V),onClick:T}):v.createElement(ecn,{className:$t(i.deleteIcon,V),onClick:T})}var G=null;r&&v.isValidElement(r)&&(G=v.cloneElement(r,{className:$t(i.avatar,r.props.className,N&&i.avatarSmall,l!=="default"&&i["avatarColor".concat($r(l))])}));var q=null;return h&&v.isValidElement(h)&&(q=v.cloneElement(h,{className:$t(i.icon,h.props.className,N&&i.iconSmall,l!=="default"&&i["iconColor".concat($r(l))])})),v.createElement(L,Y({role:F||b?"button":void 0,className:$t(i.root,o,l!=="default"&&[i["color".concat($r(l))],F&&i["clickableColor".concat($r(l))],b&&i["deletableColor".concat($r(l))]],S!=="default"&&[i.outlined,{primary:i.outlinedPrimary,secondary:i.outlinedSecondary}[l]],p&&i.disabled,N&&i.sizeSmall,F&&i.clickable,b&&i.deletable),"aria-disabled":p?!0:void 0,tabIndex:F||b?0:void 0,onClick:m,onKeyDown:R,onKeyUp:P,ref:O},W,A),G||q,v.createElement("span",{className:$t(i.label,N&&i.labelSmall)},g),j)});const gM=or(tcn,{name:"MuiChip"})(ncn);var rC=44,rcn=function(t){return{root:{display:"inline-block"},static:{transition:t.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:t.transitions.create("transform")},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:t.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:t.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},icn=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=o===void 0?"primary":o,s=t.disableShrink,l=s===void 0?!1:s,c=t.size,u=c===void 0?40:c,d=t.style,p=t.thickness,h=p===void 0?3.6:p,g=t.value,m=g===void 0?0:g,b=t.variant,y=b===void 0?"indeterminate":b,M=fn(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},x={},w={};if(y==="determinate"||y==="static"){var S=2*Math.PI*((rC-h)/2);C.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(m),C.strokeDashoffset="".concat(((100-m)/100*S).toFixed(3),"px"),x.transform="rotate(-90deg)"}return v.createElement("div",Y({className:$t(r.root,i,a!=="inherit"&&r["color".concat($r(a))],{determinate:r.determinate,indeterminate:r.indeterminate,static:r.static}[y]),style:Y({width:u,height:u},x,d),ref:n,role:"progressbar"},w,M),v.createElement("svg",{className:r.svg,viewBox:"".concat(rC/2," ").concat(rC/2," ").concat(rC," ").concat(rC)},v.createElement("circle",{className:$t(r.circle,l&&r.circleDisableShrink,{determinate:r.circleDeterminate,indeterminate:r.circleIndeterminate,static:r.circleStatic}[y]),style:C,cx:rC,cy:rC,r:(rC-h)/2,fill:"none",strokeWidth:h})))});const Kt=or(rcn,{name:"MuiCircularProgress",flip:!1})(icn);function tPe(e){return e.substring(2).toLowerCase()}function ocn(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}function acn(e){var t=e.children,n=e.disableReactTree,r=n===void 0?!1:n,i=e.mouseEvent,o=i===void 0?"onClick":i,a=e.onClickAway,s=e.touchEvent,l=s===void 0?"onTouchEnd":s,c=v.useRef(!1),u=v.useRef(null),d=v.useRef(!1),p=v.useRef(!1);v.useEffect(function(){return setTimeout(function(){d.current=!0},0),function(){d.current=!1}},[]);var h=v.useCallback(function(M){u.current=Bl.findDOMNode(M)},[]),g=Ba(t.ref,h),m=bs(function(M){var C=p.current;if(p.current=!1,!(!d.current||!u.current||ocn(M))){if(c.current){c.current=!1;return}var x;if(M.composedPath)x=M.composedPath().indexOf(u.current)>-1;else{var w=yd(u.current);x=!w.documentElement.contains(M.target)||u.current.contains(M.target)}!x&&(r||!C)&&a(M)}}),b=function(C){return function(x){p.current=!0;var w=t.props[C];w&&w(x)}},y={ref:g};return l!==!1&&(y[l]=b(l)),v.useEffect(function(){if(l!==!1){var M=tPe(l),C=yd(u.current),x=function(){c.current=!0};return C.addEventListener(M,m),C.addEventListener("touchmove",x),function(){C.removeEventListener(M,m),C.removeEventListener("touchmove",x)}}},[m,l]),o!==!1&&(y[o]=b(o)),v.useEffect(function(){if(o!==!1){var M=tPe(o),C=yd(u.current);return C.addEventListener(M,m),function(){C.removeEventListener(M,m)}}},[m,o]),v.createElement(v.Fragment,null,v.cloneElement(t,y))}var scn=function(t){return{root:tn({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:t.spacing(2),paddingRight:t.spacing(2),display:"block"},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(t.breakpoints.values).reduce(function(n,r){var i=t.breakpoints.values[r];return i!==0&&(n[t.breakpoints.up(r)]={maxWidth:i}),n},{}),maxWidthXs:tn({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),maxWidthSm:tn({},t.breakpoints.up("sm"),{maxWidth:t.breakpoints.values.sm}),maxWidthMd:tn({},t.breakpoints.up("md"),{maxWidth:t.breakpoints.values.md}),maxWidthLg:tn({},t.breakpoints.up("lg"),{maxWidth:t.breakpoints.values.lg}),maxWidthXl:tn({},t.breakpoints.up("xl"),{maxWidth:t.breakpoints.values.xl})}},lcn=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"div":o,s=t.disableGutters,l=s===void 0?!1:s,c=t.fixed,u=c===void 0?!1:c,d=t.maxWidth,p=d===void 0?"lg":d,h=fn(t,["classes","className","component","disableGutters","fixed","maxWidth"]);return v.createElement(a,Y({className:$t(r.root,i,u&&r.fixed,l&&r.disableGutters,p!==!1&&r["maxWidth".concat($r(String(p)))]),ref:n},h))});const ccn=or(scn,{name:"MuiContainer"})(lcn);var ucn={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},dcn=function(t){return Y({color:t.palette.text.primary},t.typography.body2,{backgroundColor:t.palette.background.default,"@media print":{backgroundColor:t.palette.common.white}})},pcn=function(t){return{"@global":{html:ucn,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:Y({margin:0},dcn(t),{"&::backdrop":{backgroundColor:t.palette.background.default}})}}};function hcn(e){var t=e.children,n=t===void 0?null:t;return e.classes,v.createElement(v.Fragment,null,n)}const eat=or(pcn,{name:"MuiCssBaseline"})(hcn);function fcn(e){return e=typeof e=="function"?e():e,Bl.findDOMNode(e)}var pie=typeof window<"u"?v.useLayoutEffect:v.useEffect,tat=v.forwardRef(function(t,n){var r=t.children,i=t.container,o=t.disablePortal,a=o===void 0?!1:o,s=t.onRendered,l=v.useState(null),c=l[0],u=l[1],d=Ba(v.isValidElement(r)?r.ref:null,n);return pie(function(){a||u(fcn(i)||document.body)},[i,a]),pie(function(){if(c&&!a)return Uy(n,c),function(){Uy(n,null)}},[n,c,a]),pie(function(){s&&(c||a)&&s()},[s,c,a]),a?v.isValidElement(r)?v.cloneElement(r,{ref:d}):r:c&&Bl.createPortal(r,c)});function nat(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function gcn(e){var t=yd(e);return t.body===e?eQ(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function YN(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nPe(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function rPe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(T6(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(s){s.nodeType===1&&o.indexOf(s)===-1&&a.indexOf(s.tagName)===-1&&YN(s,i)})}function hie(e,t){var n=-1;return e.some(function(r,i){return t(r)?(n=i,!0):!1}),n}function mcn(e,t){var n=[],r=[],i=e.container,o;if(!t.disableScrollLock){if(gcn(i)){var a=nat();n.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(nPe(i)+a,"px"),o=yd(i).querySelectorAll(".mui-fixed"),[].forEach.call(o,function(u){r.push(u.style.paddingRight),u.style.paddingRight="".concat(nPe(u)+a,"px")})}var s=i.parentElement,l=s.nodeName==="HTML"&&window.getComputedStyle(s)["overflow-y"]==="scroll"?s:i;n.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}var c=function(){o&&[].forEach.call(o,function(d,p){r[p]?d.style.paddingRight=r[p]:d.style.removeProperty("padding-right")}),n.forEach(function(d){var p=d.value,h=d.el,g=d.key;p?h.style.setProperty(g,p):h.style.removeProperty(g)})};return c}function vcn(e){var t=[];return[].forEach.call(e.children,function(n){n.getAttribute&&n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}var bcn=(function(){function e(){Io(this,e),this.modals=[],this.containers=[]}return so(e,[{key:"add",value:function(n,r){var i=this.modals.indexOf(n);if(i!==-1)return i;i=this.modals.length,this.modals.push(n),n.modalRef&&YN(n.modalRef,!1);var o=vcn(r);rPe(r,n.mountNode,n.modalRef,o,!0);var a=hie(this.containers,function(s){return s.container===r});return a!==-1?(this.containers[a].modals.push(n),i):(this.containers.push({modals:[n],container:r,restore:null,hiddenSiblingNodes:o}),i)}},{key:"mount",value:function(n,r){var i=hie(this.containers,function(a){return a.modals.indexOf(n)!==-1}),o=this.containers[i];o.restore||(o.restore=mcn(o,r))}},{key:"remove",value:function(n){var r=this.modals.indexOf(n);if(r===-1)return r;var i=hie(this.containers,function(s){return s.modals.indexOf(n)!==-1}),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(n),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),n.modalRef&&YN(n.modalRef,!0),rPe(o.container,n.mountNode,n.modalRef,o.hiddenSiblingNodes,!1),this.containers.splice(i,1);else{var a=o.modals[o.modals.length-1];a.modalRef&&YN(a.modalRef,!1)}return r}},{key:"isTopModal",value:function(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}]),e})();function ycn(e){var t=e.children,n=e.disableAutoFocus,r=n===void 0?!1:n,i=e.disableEnforceFocus,o=i===void 0?!1:i,a=e.disableRestoreFocus,s=a===void 0?!1:a,l=e.getDoc,c=e.isEnabled,u=e.open,d=v.useRef(),p=v.useRef(null),h=v.useRef(null),g=v.useRef(),m=v.useRef(null),b=v.useCallback(function(C){m.current=Bl.findDOMNode(C)},[]),y=Ba(t.ref,b),M=v.useRef();return v.useEffect(function(){M.current=u},[u]),!M.current&&u&&typeof window<"u"&&(g.current=l().activeElement),v.useEffect(function(){if(u){var C=yd(m.current);!r&&m.current&&!m.current.contains(C.activeElement)&&(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var x=function(){var z=m.current;if(z!==null){if(!C.hasFocus()||o||!c()||d.current){d.current=!1;return}m.current&&!m.current.contains(C.activeElement)&&m.current.focus()}},w=function(z){o||!c()||z.keyCode!==9||C.activeElement===m.current&&(d.current=!0,z.shiftKey?h.current.focus():p.current.focus())};C.addEventListener("focus",x,!0),C.addEventListener("keydown",w,!0);var S=setInterval(function(){x()},50);return function(){clearInterval(S),C.removeEventListener("focus",x,!0),C.removeEventListener("keydown",w,!0),s||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}},[r,o,s,c,u]),v.createElement(v.Fragment,null,v.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),v.cloneElement(t,{ref:y}),v.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var iPe={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Mcn=v.forwardRef(function(t,n){var r=t.invisible,i=r===void 0?!1:r,o=t.open,a=fn(t,["invisible","open"]);return o?v.createElement("div",Y({"aria-hidden":!0,ref:n},a,{style:Y({},iPe.root,i?iPe.invisible:{},a.style)})):null});function Ccn(e){return e=typeof e=="function"?e():e,Bl.findDOMNode(e)}function xcn(e){return e.children?e.children.props.hasOwnProperty("in"):!1}var wcn=new bcn,Scn=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},IMe=v.forwardRef(function(t,n){var r=x3(),i=QK({name:"MuiModal",props:Y({},t),theme:r}),o=i.BackdropComponent,a=o===void 0?Mcn:o,s=i.BackdropProps,l=i.children,c=i.closeAfterTransition,u=c===void 0?!1:c,d=i.container,p=i.disableAutoFocus,h=p===void 0?!1:p,g=i.disableBackdropClick,m=g===void 0?!1:g,b=i.disableEnforceFocus,y=b===void 0?!1:b,M=i.disableEscapeKeyDown,C=M===void 0?!1:M,x=i.disablePortal,w=x===void 0?!1:x,S=i.disableRestoreFocus,A=S===void 0?!1:S,z=i.disableScrollLock,O=z===void 0?!1:z,T=i.hideBackdrop,R=T===void 0?!1:T,P=i.keepMounted,F=P===void 0?!1:P,N=i.manager,L=N===void 0?wcn:N,W=i.onBackdropClick,j=i.onClose,V=i.onEscapeKeyDown,G=i.onRendered,q=i.open,$=fn(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),U=v.useState(!0),X=U[0],Q=U[1],re=v.useRef({}),ee=v.useRef(null),se=v.useRef(null),pe=Ba(se,n),te=xcn(i),ce=function(){return yd(ee.current)},oe=function(){return re.current.modalRef=se.current,re.current.mountNode=ee.current,re.current},ae=function(){L.mount(oe(),{disableScrollLock:O}),se.current.scrollTop=0},ne=bs(function(){var Ae=Ccn(d)||ce().body;L.add(oe(),Ae),se.current&&ae()}),le=v.useCallback(function(){return L.isTopModal(oe())},[L]),he=bs(function(Ae){ee.current=Ae,Ae&&(G&&G(),q&&le()?ae():YN(se.current,!0))}),be=v.useCallback(function(){L.remove(oe())},[L]);if(v.useEffect(function(){return function(){be()}},[be]),v.useEffect(function(){q?ne():(!te||!u)&&be()},[q,be,te,u,ne]),!F&&!q&&(!te||X))return null;var me=function(){Q(!1)},Me=function(){Q(!0),u&&be()},Oe=function(Ce){Ce.target===Ce.currentTarget&&(W&&W(Ce),!m&&j&&j(Ce,"backdropClick"))},de=function(Ce){Ce.key!=="Escape"||!le()||(V&&V(Ce),C||(Ce.stopPropagation(),j&&j(Ce,"escapeKeyDown")))},ie=Scn(r||{zIndex:Tot}),ue={};return l.props.tabIndex===void 0&&(ue.tabIndex=l.props.tabIndex||"-1"),te&&(ue.onEnter=Kx(me,l.props.onEnter),ue.onExited=Kx(Me,l.props.onExited)),v.createElement(tat,{ref:he,container:d,disablePortal:w},v.createElement("div",Y({ref:pe,onKeyDown:de,role:"presentation"},$,{style:Y({},ie.root,!q&&X?ie.hidden:{},$.style)}),R?null:v.createElement(a,Y({open:q,onClick:Oe},s)),v.createElement(ycn,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:A,getDoc:ce,isEnabled:le,open:q},v.cloneElement(l,ue))))}),Acn=function(t){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(t.breakpoints.values.xs,444),"&$paperScrollBody":tn({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:t.breakpoints.values.sm,"&$paperScrollBody":tn({},t.breakpoints.down(t.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:t.breakpoints.values.md,"&$paperScrollBody":tn({},t.breakpoints.down(t.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:t.breakpoints.values.lg,"&$paperScrollBody":tn({},t.breakpoints.down(t.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:t.breakpoints.values.xl,"&$paperScrollBody":tn({},t.breakpoints.down(t.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},Ocn={enter:lh.enteringScreen,exit:lh.leavingScreen},zcn=v.forwardRef(function(t,n){var r=t.BackdropProps,i=t.children,o=t.classes,a=t.className,s=t.disableBackdropClick,l=s===void 0?!1:s,c=t.disableEscapeKeyDown,u=c===void 0?!1:c,d=t.fullScreen,p=d===void 0?!1:d,h=t.fullWidth,g=h===void 0?!1:h,m=t.maxWidth,b=m===void 0?"sm":m,y=t.onBackdropClick,M=t.onClose,C=t.onEnter,x=t.onEntered,w=t.onEntering,S=t.onEscapeKeyDown,A=t.onExit,z=t.onExited,O=t.onExiting,T=t.open,R=t.PaperComponent,P=R===void 0?Pt:R,F=t.PaperProps,N=F===void 0?{}:F,L=t.scroll,W=L===void 0?"paper":L,j=t.TransitionComponent,V=j===void 0?Kot:j,G=t.transitionDuration,q=G===void 0?Ocn:G,$=t.TransitionProps,U=t["aria-describedby"],X=t["aria-labelledby"],Q=fn(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),re=v.useRef(),ee=function(te){re.current=te.target},se=function(te){te.target===te.currentTarget&&te.target===re.current&&(re.current=null,y&&y(te),!l&&M&&M(te,"backdropClick"))};return v.createElement(IMe,Y({className:$t(o.root,a),BackdropComponent:I6,BackdropProps:Y({transitionDuration:q},r),closeAfterTransition:!0},l?{disableBackdropClick:l}:{},{disableEscapeKeyDown:u,onEscapeKeyDown:S,onClose:M,open:T,ref:n},Q),v.createElement(V,Y({appear:!0,in:T,timeout:q,onEnter:C,onEntering:w,onEntered:x,onExit:A,onExiting:O,onExited:z,role:"none presentation"},$),v.createElement("div",{className:$t(o.container,o["scroll".concat($r(W))]),onMouseUp:se,onMouseDown:ee},v.createElement(P,Y({elevation:24,role:"dialog","aria-describedby":U,"aria-labelledby":X},N,{className:$t(o.paper,o["paperScroll".concat($r(W))],o["paperWidth".concat($r(String(b)))],N.className,p&&o.paperFullScreen,g&&o.paperFullWidth)}),i))))});const Qu=or(Acn,{name:"MuiDialog"})(zcn);var Tcn={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},Ecn=v.forwardRef(function(t,n){var r=t.disableSpacing,i=r===void 0?!1:r,o=t.classes,a=t.className,s=fn(t,["disableSpacing","classes","className"]);return v.createElement("div",Y({className:$t(o.root,a,!i&&o.spacing),ref:n},s))});const Ed=or(Tcn,{name:"MuiDialogActions"})(Ecn);var Rcn=function(t){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(t.palette.divider),borderBottom:"1px solid ".concat(t.palette.divider)}}},Icn=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.dividers,a=o===void 0?!1:o,s=fn(t,["classes","className","dividers"]);return v.createElement("div",Y({className:$t(r.root,i,a&&r.dividers),ref:n},s))});const ru=or(Rcn,{name:"MuiDialogContent"})(Icn);var Pcn={root:{marginBottom:12}},Dcn=v.forwardRef(function(t,n){return v.createElement(vt,Y({component:"p",variant:"body1",color:"textSecondary",ref:n},t))});const mM=or(Pcn,{name:"MuiDialogContentText"})(Dcn);var kcn={root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},Lcn=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.disableTypography,s=a===void 0?!1:a,l=fn(t,["children","classes","className","disableTypography"]);return v.createElement("div",Y({className:$t(i.root,o),ref:n},l),s?r:v.createElement(vt,{component:"h2",variant:"h6"},r))});const T0=or(kcn,{name:"MuiDialogTitle"})(Lcn);var _cn=function(t){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:t.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Ho(t.palette.divider,.08)},middle:{marginLeft:t.spacing(2),marginRight:t.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}},Ncn=v.forwardRef(function(t,n){var r=t.absolute,i=r===void 0?!1:r,o=t.classes,a=t.className,s=t.component,l=s===void 0?"hr":s,c=t.flexItem,u=c===void 0?!1:c,d=t.light,p=d===void 0?!1:d,h=t.orientation,g=h===void 0?"horizontal":h,m=t.role,b=m===void 0?l!=="hr"?"separator":void 0:m,y=t.variant,M=y===void 0?"fullWidth":y,C=fn(t,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return v.createElement(l,Y({className:$t(o.root,a,M!=="fullWidth"&&o[M],i&&o.absolute,u&&o.flexItem,p&&o.light,g==="vertical"&&o.vertical),role:b,ref:n},C))});const la=or(_cn,{name:"MuiDivider"})(Ncn);function Fcn(e,t){var n=t.getBoundingClientRect(),r;if(t.fakeTransform)r=t.fakeTransform;else{var i=window.getComputedStyle(t);r=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(r&&r!=="none"&&typeof r=="string"){var s=r.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return e==="left"?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-n.left,"px)"):e==="right"?"translateX(-".concat(n.left+n.width-o,"px)"):e==="up"?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-n.top,"px)"):"translateY(-".concat(n.top+n.height-a,"px)")}function c8(e,t){var n=Fcn(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Wcn={enter:lh.enteringScreen,exit:lh.leavingScreen},qcn=v.forwardRef(function(t,n){var r=t.children,i=t.direction,o=i===void 0?"down":i,a=t.in,s=t.onEnter,l=t.onEntered,c=t.onEntering,u=t.onExit,d=t.onExited,p=t.onExiting,h=t.style,g=t.timeout,m=g===void 0?Wcn:g,b=t.TransitionComponent,y=b===void 0?b1:b,M=fn(t,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=ql(),x=v.useRef(null),w=v.useCallback(function(W){x.current=Bl.findDOMNode(W)},[]),S=Ba(r.ref,w),A=Ba(S,n),z=function(j){return function(V){j&&(V===void 0?j(x.current):j(x.current,V))}},O=z(function(W,j){c8(o,W),EMe(W),s&&s(W,j)}),T=z(function(W,j){var V=Qx({timeout:m,style:h},{mode:"enter"});W.style.webkitTransition=C.transitions.create("-webkit-transform",Y({},V,{easing:C.transitions.easing.easeOut})),W.style.transition=C.transitions.create("transform",Y({},V,{easing:C.transitions.easing.easeOut})),W.style.webkitTransform="none",W.style.transform="none",c&&c(W,j)}),R=z(l),P=z(p),F=z(function(W){var j=Qx({timeout:m,style:h},{mode:"exit"});W.style.webkitTransition=C.transitions.create("-webkit-transform",Y({},j,{easing:C.transitions.easing.sharp})),W.style.transition=C.transitions.create("transform",Y({},j,{easing:C.transitions.easing.sharp})),c8(o,W),u&&u(W)}),N=z(function(W){W.style.webkitTransition="",W.style.transition="",d&&d(W)}),L=v.useCallback(function(){x.current&&c8(o,x.current)},[o]);return v.useEffect(function(){if(!(a||o==="down"||o==="right")){var W=$y(function(){x.current&&c8(o,x.current)});return window.addEventListener("resize",W),function(){W.clear(),window.removeEventListener("resize",W)}}},[o,a]),v.useEffect(function(){a||L()},[a,L]),v.createElement(y,Y({nodeRef:x,onEnter:O,onEntered:R,onEntering:T,onExit:F,onExited:N,onExiting:P,appear:!0,in:a,timeout:m},M),function(W,j){return v.cloneElement(r,Y({ref:A,style:Y({visibility:W==="exited"&&!a?"hidden":void 0},h,r.props.style)},j))})}),Bcn=function(t){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:t.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(t.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(t.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(t.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(t.palette.divider)},modal:{}}},rat={left:"right",right:"left",top:"down",bottom:"up"};function jcn(e){return["left","right"].indexOf(e)!==-1}function Hcn(e,t){return e.direction==="rtl"&&jcn(t)?rat[t]:t}var Vcn={enter:lh.enteringScreen,exit:lh.leavingScreen},Gcn=v.forwardRef(function(t,n){var r=t.anchor,i=r===void 0?"left":r,o=t.BackdropProps,a=t.children,s=t.classes,l=t.className,c=t.elevation,u=c===void 0?16:c,d=t.ModalProps;d=d===void 0?{}:d;var p=d.BackdropProps,h=fn(d,["BackdropProps"]),g=t.onClose,m=t.open,b=m===void 0?!1:m,y=t.PaperProps,M=y===void 0?{}:y,C=t.SlideProps,x=t.TransitionComponent,w=x===void 0?qcn:x,S=t.transitionDuration,A=S===void 0?Vcn:S,z=t.variant,O=z===void 0?"temporary":z,T=fn(t,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),R=ql(),P=v.useRef(!1);v.useEffect(function(){P.current=!0},[]);var F=Hcn(R,i),N=v.createElement(Pt,Y({elevation:O==="temporary"?u:0,square:!0},M,{className:$t(s.paper,s["paperAnchor".concat($r(F))],M.className,O!=="temporary"&&s["paperAnchorDocked".concat($r(F))])}),a);if(O==="permanent")return v.createElement("div",Y({className:$t(s.root,s.docked,l),ref:n},T),N);var L=v.createElement(w,Y({in:b,direction:rat[F],timeout:A,appear:P.current},C),N);return O==="persistent"?v.createElement("div",Y({className:$t(s.root,s.docked,l),ref:n},T),L):v.createElement(IMe,Y({BackdropProps:Y({},o,p,{transitionDuration:A}),BackdropComponent:I6,className:$t(s.root,s.modal,l),open:b,onClose:g,ref:n},T,h),L)});const iat=or(Bcn,{name:"MuiDrawer",flip:!1})(Gcn);function AD(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(i,o){return i[o]=t[o],r&&typeof t[o]>"u"&&(i[o]=r[o]),i},{})}function u8(e,t){return parseInt(e[t],10)||0}var $cn=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ucn={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}},PMe=v.forwardRef(function(t,n){var r=t.onChange,i=t.rows,o=t.rowsMax,a=t.rowsMin,s=t.maxRows,l=t.minRows,c=l===void 0?1:l,u=t.style,d=t.value,p=fn(t,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=s||o,g=i||a||c,m=v.useRef(d!=null),b=m.current,y=v.useRef(null),M=Ba(n,y),C=v.useRef(null),x=v.useRef(0),w=v.useState({}),S=w[0],A=w[1],z=v.useCallback(function(){var T=y.current,R=window.getComputedStyle(T),P=C.current;P.style.width=R.width,P.value=T.value||t.placeholder||"x",P.value.slice(-1)===`
`&&(P.value+=" ");var F=R["box-sizing"],N=u8(R,"padding-bottom")+u8(R,"padding-top"),L=u8(R,"border-bottom-width")+u8(R,"border-top-width"),W=P.scrollHeight-N;P.value="x";var j=P.scrollHeight-N,V=W;g&&(V=Math.max(Number(g)*j,V)),h&&(V=Math.min(Number(h)*j,V)),V=Math.max(V,j);var G=V+(F==="border-box"?N+L:0),q=Math.abs(V-W)<=1;A(function($){return x.current<20&&(G>0&&Math.abs(($.outerHeightStyle||0)-G)>1||$.overflow!==q)?(x.current+=1,{overflow:q,outerHeightStyle:G}):$})},[h,g,t.placeholder]);v.useEffect(function(){var T=$y(function(){x.current=0,z()});return window.addEventListener("resize",T),function(){T.clear(),window.removeEventListener("resize",T)}},[z]),$cn(function(){z()}),v.useEffect(function(){x.current=0},[d]);var O=function(R){x.current=0,b||z(),r&&r(R)};return v.createElement(v.Fragment,null,v.createElement("textarea",Y({value:d,onChange:O,ref:M,rows:g,style:Y({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},u)},p)),v.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:C,tabIndex:-1,style:Y({},Ucn.shadow,u)}))});function oPe(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function DMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e&&(oPe(e.value)&&e.value!==""||t&&oPe(e.defaultValue)&&e.defaultValue!=="")}function Xcn(e){return e.startAdornment}var Ycn=function(t){var n=t.palette.type==="light",r={color:"currentColor",opacity:n?.42:.5,transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},i={opacity:"0 !important"},o={opacity:n?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Y({},t.typography.body1,{color:t.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:t.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},Kcn=typeof window>"u"?v.useEffect:v.useLayoutEffect,Qcn=v.forwardRef(function(t,n){var r=t["aria-describedby"],i=t.autoComplete,o=t.autoFocus,a=t.classes,s=t.className;t.color;var l=t.defaultValue,c=t.disabled,u=t.endAdornment;t.error;var d=t.fullWidth,p=d===void 0?!1:d,h=t.id,g=t.inputComponent,m=g===void 0?"input":g,b=t.inputProps,y=b===void 0?{}:b,M=t.inputRef;t.margin;var C=t.multiline,x=C===void 0?!1:C,w=t.name,S=t.onBlur,A=t.onChange,z=t.onClick,O=t.onFocus,T=t.onKeyDown,R=t.onKeyUp,P=t.placeholder,F=t.readOnly,N=t.renderSuffix,L=t.rows,W=t.rowsMax,j=t.rowsMin,V=t.maxRows,G=t.minRows,q=t.startAdornment,$=t.type,U=$===void 0?"text":$,X=t.value,Q=fn(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),re=y.value!=null?y.value:X,ee=v.useRef(re!=null),se=ee.current,pe=v.useRef(),te=v.useCallback(function(Ie){},[]),ce=Ba(y.ref,te),oe=Ba(M,ce),ae=Ba(pe,oe),ne=v.useState(!1),le=ne[0],he=ne[1],be=Zot(),me=AD({props:t,muiFormControl:be,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});me.focused=be?be.focused:le,v.useEffect(function(){!be&&c&&le&&(he(!1),S&&S())},[be,c,le,S]);var Me=be&&be.onFilled,Oe=be&&be.onEmpty,de=v.useCallback(function(Ie){DMe(Ie)?Me&&Me():Oe&&Oe()},[Me,Oe]);Kcn(function(){se&&de({value:re})},[re,de,se]);var ie=function(Le){if(me.disabled){Le.stopPropagation();return}O&&O(Le),y.onFocus&&y.onFocus(Le),be&&be.onFocus?be.onFocus(Le):he(!0)},ue=function(Le){S&&S(Le),y.onBlur&&y.onBlur(Le),be&&be.onBlur?be.onBlur(Le):he(!1)},Ae=function(Le){if(!se){var we=Le.target||pe.current;if(we==null)throw new Error(sP(1));de({value:we.value})}for(var ve=arguments.length,De=new Array(ve>1?ve-1:0),ze=1;ze<ve;ze++)De[ze-1]=arguments[ze];y.onChange&&y.onChange.apply(y,[Le].concat(De)),A&&A.apply(void 0,[Le].concat(De))};v.useEffect(function(){de(pe.current)},[]);var Ce=function(Le){pe.current&&Le.currentTarget===Le.target&&pe.current.focus(),z&&z(Le)},Ee=m,Ge=Y({},y,{ref:ae});typeof Ee!="string"?Ge=Y({inputRef:ae,type:U},Ge,{ref:null}):x?L&&!V&&!G&&!W&&!j?Ee="textarea":(Ge=Y({minRows:L||G,rowsMax:W,maxRows:V},Ge),Ee=PMe):Ge=Y({type:U},Ge);var _e=function(Le){de(Le.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};return v.useEffect(function(){be&&be.setAdornedStart(!!q)},[be,q]),v.createElement("div",Y({className:$t(a.root,a["color".concat($r(me.color||"primary"))],s,me.disabled&&a.disabled,me.error&&a.error,p&&a.fullWidth,me.focused&&a.focused,be&&a.formControl,x&&a.multiline,q&&a.adornedStart,u&&a.adornedEnd,me.margin==="dense"&&a.marginDense),onClick:Ce,ref:n},Q),q,v.createElement(P6.Provider,{value:null},v.createElement(Ee,Y({"aria-invalid":me.error,"aria-describedby":r,autoComplete:i,autoFocus:o,defaultValue:l,disabled:me.disabled,id:h,onAnimationStart:_e,name:w,placeholder:P,readOnly:F,required:me.required,rows:L,value:re,onKeyDown:T,onKeyUp:R},Ge,{className:$t(a.input,y.className,me.disabled&&a.disabled,x&&a.inputMultiline,me.hiddenLabel&&a.inputHiddenLabel,q&&a.inputAdornedStart,u&&a.inputAdornedEnd,U==="search"&&a.inputTypeSearch,me.margin==="dense"&&a.inputMarginDense),onBlur:ue,onChange:Ae,onFocus:ie}))),u,N?N(Y({},me,{startAdornment:q})):null)});const kMe=or(Ycn,{name:"MuiInputBase"})(Qcn);var Zcn=function(t){var n=t.palette.type==="light",r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:i,borderTopLeftRadius:t.shape.borderRadius,borderTopRightRadius:t.shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:n?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:i}},"&$focused":{backgroundColor:n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:t.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(t.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:t.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(t.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:t.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.type==="light"?null:"#fff",caretColor:t.palette.type==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},oat=v.forwardRef(function(t,n){var r=t.disableUnderline,i=t.classes,o=t.fullWidth,a=o===void 0?!1:o,s=t.inputComponent,l=s===void 0?"input":s,c=t.multiline,u=c===void 0?!1:c,d=t.type,p=d===void 0?"text":d,h=fn(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return v.createElement(kMe,Y({classes:Y({},i,{root:$t(i.root,!r&&i.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:p},h))});oat.muiName="Input";const aat=or(Zcn,{name:"MuiFilledInput"})(oat);var Jcn={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},eun=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=a===void 0?"primary":a,l=t.component,c=l===void 0?"div":l,u=t.disabled,d=u===void 0?!1:u,p=t.error,h=p===void 0?!1:p,g=t.fullWidth,m=g===void 0?!1:g,b=t.focused,y=t.hiddenLabel,M=y===void 0?!1:y,C=t.margin,x=C===void 0?"none":C,w=t.required,S=w===void 0?!1:w,A=t.size,z=t.variant,O=z===void 0?"standard":z,T=fn(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),R=v.useState(function(){var re=!1;return r&&v.Children.forEach(r,function(ee){if(XN(ee,["Input","Select"])){var se=XN(ee,["Select"])?ee.props.input:ee;se&&Xcn(se.props)&&(re=!0)}}),re}),P=R[0],F=R[1],N=v.useState(function(){var re=!1;return r&&v.Children.forEach(r,function(ee){XN(ee,["Input","Select"])&&DMe(ee.props,!0)&&(re=!0)}),re}),L=N[0],W=N[1],j=v.useState(!1),V=j[0],G=j[1],q=b!==void 0?b:V;d&&q&&G(!1);var $,U=v.useCallback(function(){W(!0)},[]),X=v.useCallback(function(){W(!1)},[]),Q={adornedStart:P,setAdornedStart:F,color:s,disabled:d,error:h,filled:L,focused:q,fullWidth:m,hiddenLabel:M,margin:(A==="small"?"dense":void 0)||x,onBlur:function(){G(!1)},onEmpty:X,onFilled:U,onFocus:function(){G(!0)},registerEffect:$,required:S,variant:O};return v.createElement(P6.Provider,{value:Q},v.createElement(c,Y({className:$t(i.root,o,x!=="none"&&i["margin".concat($r(x))],m&&i.fullWidth),ref:n},T),r))});const ja=or(Jcn,{name:"MuiFormControl"})(eun);var tun=function(t){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:t.palette.text.disabled}}}},nun=v.forwardRef(function(t,n){t.checked;var r=t.classes,i=t.className,o=t.control,a=t.disabled;t.inputRef;var s=t.label,l=t.labelPlacement,c=l===void 0?"end":l;t.name,t.onChange,t.value;var u=fn(t,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),d=S3(),p=a;typeof p>"u"&&typeof o.props.disabled<"u"&&(p=o.props.disabled),typeof p>"u"&&d&&(p=d.disabled);var h={disabled:p};return["checked","name","onChange","value","inputRef"].forEach(function(g){typeof o.props[g]>"u"&&typeof t[g]<"u"&&(h[g]=t[g])}),v.createElement("label",Y({className:$t(r.root,i,c!=="end"&&r["labelPlacement".concat($r(c))],p&&r.disabled),ref:n},u),v.cloneElement(o,h),v.createElement(vt,{component:"span",className:$t(r.label,p&&r.disabled)},s))});const So=or(tun,{name:"MuiFormControlLabel"})(nun);var run={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},iun=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.row,a=o===void 0?!1:o,s=fn(t,["classes","className","row"]);return v.createElement("div",Y({className:$t(r.root,i,a&&r.row),ref:n},s))});const OD=or(run,{name:"MuiFormGroup"})(iun);var oun=function(t){return{root:Y({color:t.palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:t.palette.text.disabled},"&$error":{color:t.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},aun=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=a===void 0?"p":a;t.disabled,t.error,t.filled,t.focused,t.margin,t.required,t.variant;var l=fn(t,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"]),c=S3(),u=AD({props:t,muiFormControl:c,states:["variant","margin","disabled","error","filled","focused","required"]});return v.createElement(s,Y({className:$t(i.root,(u.variant==="filled"||u.variant==="outlined")&&i.contained,o,u.disabled&&i.disabled,u.error&&i.error,u.filled&&i.filled,u.focused&&i.focused,u.required&&i.required,u.margin==="dense"&&i.marginDense),ref:n},l),r===" "?v.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):r)});const oQ=or(oun,{name:"MuiFormHelperText"})(aun);var sun=function(t){return{root:Y({color:t.palette.text.secondary},t.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:t.palette.primary.main},"&$disabled":{color:t.palette.text.disabled},"&$error":{color:t.palette.error.main}}),colorSecondary:{"&$focused":{color:t.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:t.palette.error.main}}}},lun=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className;t.color;var a=t.component,s=a===void 0?"label":a;t.disabled,t.error,t.filled,t.focused,t.required;var l=fn(t,["children","classes","className","color","component","disabled","error","filled","focused","required"]),c=S3(),u=AD({props:t,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]});return v.createElement(s,Y({className:$t(i.root,i["color".concat($r(u.color||"primary"))],o,u.disabled&&i.disabled,u.error&&i.error,u.filled&&i.filled,u.focused&&i.focused,u.required&&i.required),ref:n},l),r,u.required&&v.createElement("span",{"aria-hidden":!0,className:$t(i.asterisk,u.error&&i.error)}," ","*"))});const cun=or(sun,{name:"MuiFormLabel"})(lun);var uun=[0,1,2,3,4,5,6,7,8,9,10],dun=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function pun(e,t,n){var r={};dun.forEach(function(i){var o="grid-".concat(n,"-").concat(i);if(i===!0){r[o]={flexBasis:0,flexGrow:1,maxWidth:"100%"};return}if(i==="auto"){r[o]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};return}var a="".concat(Math.round(i/12*1e8)/1e6,"%");r[o]={flexBasis:a,flexGrow:0,maxWidth:a}}),n==="xs"?Y(e,r):e[t.breakpoints.up(n)]=r}function fie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}function hun(e,t){var n={};return uun.forEach(function(r){var i=e.spacing(r);i!==0&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(fie(i,2)),width:"calc(100% + ".concat(fie(i),")"),"& > $item":{padding:fie(i,2)}})}),n}var fun=function(t){return Y({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},hun(t,"xs"),t.breakpoints.keys.reduce(function(n,r){return pun(n,t,r),n},{}))},gun=v.forwardRef(function(t,n){var r=t.alignContent,i=r===void 0?"stretch":r,o=t.alignItems,a=o===void 0?"stretch":o,s=t.classes,l=t.className,c=t.component,u=c===void 0?"div":c,d=t.container,p=d===void 0?!1:d,h=t.direction,g=h===void 0?"row":h,m=t.item,b=m===void 0?!1:m,y=t.justify,M=t.justifyContent,C=M===void 0?"flex-start":M,x=t.lg,w=x===void 0?!1:x,S=t.md,A=S===void 0?!1:S,z=t.sm,O=z===void 0?!1:z,T=t.spacing,R=T===void 0?0:T,P=t.wrap,F=P===void 0?"wrap":P,N=t.xl,L=N===void 0?!1:N,W=t.xs,j=W===void 0?!1:W,V=t.zeroMinWidth,G=V===void 0?!1:V,q=fn(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),$=$t(s.root,l,p&&[s.container,R!==0&&s["spacing-xs-".concat(String(R))]],b&&s.item,G&&s.zeroMinWidth,g!=="row"&&s["direction-xs-".concat(String(g))],F!=="wrap"&&s["wrap-xs-".concat(String(F))],a!=="stretch"&&s["align-items-xs-".concat(String(a))],i!=="stretch"&&s["align-content-xs-".concat(String(i))],(y||C)!=="flex-start"&&s["justify-content-xs-".concat(String(y||C))],j!==!1&&s["grid-xs-".concat(String(j))],O!==!1&&s["grid-sm-".concat(String(O))],A!==!1&&s["grid-md-".concat(String(A))],w!==!1&&s["grid-lg-".concat(String(w))],L!==!1&&s["grid-xl-".concat(String(L))]);return v.createElement(u,Y({className:$,ref:n},q))}),D=or(fun,{name:"MuiGrid"})(gun);function nfe(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var mun={entering:{opacity:1,transform:nfe(1)},entered:{opacity:1,transform:"none"}},aQ=v.forwardRef(function(t,n){var r=t.children,i=t.disableStrictModeCompat,o=i===void 0?!1:i,a=t.in,s=t.onEnter,l=t.onEntered,c=t.onEntering,u=t.onExit,d=t.onExited,p=t.onExiting,h=t.style,g=t.timeout,m=g===void 0?"auto":g,b=t.TransitionComponent,y=b===void 0?b1:b,M=fn(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=v.useRef(),x=v.useRef(),w=ql(),S=w.unstable_strictMode&&!o,A=v.useRef(null),z=Ba(r.ref,n),O=Ba(S?A:void 0,z),T=function(G){return function(q,$){if(G){var U=S?[A.current,q]:[q,$],X=Xu(U,2),Q=X[0],re=X[1];re===void 0?G(Q):G(Q,re)}}},R=T(c),P=T(function(V,G){EMe(V);var q=Qx({style:h,timeout:m},{mode:"enter"}),$=q.duration,U=q.delay,X;m==="auto"?(X=w.transitions.getAutoHeightDuration(V.clientHeight),x.current=X):X=$,V.style.transition=[w.transitions.create("opacity",{duration:X,delay:U}),w.transitions.create("transform",{duration:X*.666,delay:U})].join(","),s&&s(V,G)}),F=T(l),N=T(p),L=T(function(V){var G=Qx({style:h,timeout:m},{mode:"exit"}),q=G.duration,$=G.delay,U;m==="auto"?(U=w.transitions.getAutoHeightDuration(V.clientHeight),x.current=U):U=q,V.style.transition=[w.transitions.create("opacity",{duration:U,delay:$}),w.transitions.create("transform",{duration:U*.666,delay:$||U*.333})].join(","),V.style.opacity="0",V.style.transform=nfe(.75),u&&u(V)}),W=T(d),j=function(G,q){var $=S?G:q;m==="auto"&&(C.current=setTimeout($,x.current||0))};return v.useEffect(function(){return function(){clearTimeout(C.current)}},[]),v.createElement(y,Y({appear:!0,in:a,nodeRef:S?A:void 0,onEnter:P,onEntered:F,onEntering:R,onExit:L,onExited:W,onExiting:N,addEndListener:j,timeout:m==="auto"?null:m},M),function(V,G){return v.cloneElement(r,Y({style:Y({opacity:0,transform:nfe(.75),visibility:V==="exited"&&!a?"hidden":void 0},mun[V],h,r.props.style),ref:O},G))})});aQ.muiSupportAuto=!0;function sat(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=x3(),r=QK({theme:n,name:"MuiUseMediaQuery",props:{}}),i=typeof e=="function"?e(n):e;i=i.replace(/^@media( ?)/m,"");var o=typeof window<"u"&&typeof window.matchMedia<"u",a=Y({},r,t),s=a.defaultMatches,l=s===void 0?!1:s,c=a.matchMedia,u=c===void 0?o?window.matchMedia:null:c,d=a.noSsr,p=d===void 0?!1:d,h=a.ssrMatchMedia,g=h===void 0?null:h,m=v.useState(function(){return p&&o?u(i).matches:g?g(i).matches:l}),b=m[0],y=m[1];return v.useEffect(function(){var M=!0;if(o){var C=u(i),x=function(){M&&y(C.matches)};return x(),C.addListener(x),function(){M=!1,C.removeListener(x)}}},[i,u,o]),b}var vun=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r?o0.indexOf(t)<=o0.indexOf(n):o0.indexOf(t)<o0.indexOf(n)},bun=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r?o0.indexOf(n)<=o0.indexOf(t):o0.indexOf(n)<o0.indexOf(t)},yun=typeof window>"u"?v.useEffect:v.useLayoutEffect,Mun=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(n){var r=t.withTheme,i=r===void 0?!1:r,o=t.noSSR,a=o===void 0?!1:o,s=t.initialWidth;function l(c){var u=ql(),d=c.theme||u,p=QK({theme:d,name:"MuiWithWidth",props:Y({},c)}),h=p.initialWidth,g=p.width,m=fn(p,["initialWidth","width"]),b=v.useState(!1),y=b[0],M=b[1];yun(function(){M(!0)},[]);var C=d.breakpoints.keys.slice().reverse(),x=C.reduce(function(S,A){var z=sat(d.breakpoints.up(A));return!S&&z?A:S},null),w=Y({width:g||(y||a?x:void 0)||h||s},i?{theme:d}:{},m);return w.width===void 0?null:v.createElement(n,w)}return OMe(l,n),l}};function lat(e){var t=e.children,n=e.only,r=e.width,i=ql(),o=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){var s=n[a];if(r===s){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(var l=0;l<i.breakpoints.keys.length;l+=1){var c=i.breakpoints.keys[l],u=e["".concat(c,"Up")],d=e["".concat(c,"Down")];if(u&&vun(c,r)||d&&bun(c,r)){o=!1;break}}return o?t:null}lat.propTypes={children:Z.node,className:Z.string,implementation:Z.oneOf(["js","css"]),initialWidth:Z.oneOf(["xs","sm","md","lg","xl"]),lgDown:Z.bool,lgUp:Z.bool,mdDown:Z.bool,mdUp:Z.bool,only:Z.oneOfType([Z.oneOf(["xs","sm","md","lg","xl"]),Z.arrayOf(Z.oneOf(["xs","sm","md","lg","xl"]))]),smDown:Z.bool,smUp:Z.bool,width:Z.string.isRequired,xlDown:Z.bool,xlUp:Z.bool,xsDown:Z.bool,xsUp:Z.bool};const Cun=Mun()(lat);var xun=function(t){var n={display:"none"};return t.breakpoints.keys.reduce(function(r,i){return r["only".concat($r(i))]=tn({},t.breakpoints.only(i),n),r["".concat(i,"Up")]=tn({},t.breakpoints.up(i),n),r["".concat(i,"Down")]=tn({},t.breakpoints.down(i),n),r},{})};function wun(e){var t=e.children,n=e.classes,r=e.className,i=e.only;fn(e,["children","classes","className","only"]);var o=ql(),a=[];r&&a.push(r);for(var s=0;s<o.breakpoints.keys.length;s+=1){var l=o.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];c&&a.push(n["".concat(l,"Up")]),u&&a.push(n["".concat(l,"Down")])}if(i){var d=Array.isArray(i)?i:[i];d.forEach(function(p){a.push(n["only".concat($r(p))])})}return v.createElement("div",{className:a.join(" ")},t)}const Sun=or(xun,{name:"PrivateHiddenCss"})(wun);function aPe(e){var t=e.implementation,n=t===void 0?"js":t,r=e.lgDown,i=r===void 0?!1:r,o=e.lgUp,a=o===void 0?!1:o,s=e.mdDown,l=s===void 0?!1:s,c=e.mdUp,u=c===void 0?!1:c,d=e.smDown,p=d===void 0?!1:d,h=e.smUp,g=h===void 0?!1:h,m=e.xlDown,b=m===void 0?!1:m,y=e.xlUp,M=y===void 0?!1:y,C=e.xsDown,x=C===void 0?!1:C,w=e.xsUp,S=w===void 0?!1:w,A=fn(e,["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);return n==="js"?v.createElement(Cun,Y({lgDown:i,lgUp:a,mdDown:l,mdUp:u,smDown:p,smUp:g,xlDown:b,xlUp:M,xsDown:x,xsUp:S},A)):v.createElement(Sun,Y({lgDown:i,lgUp:a,mdDown:l,mdUp:u,smDown:p,smUp:g,xlDown:b,xlUp:M,xsDown:x,xsUp:S},A))}var Aun=function(t){var n=t.palette.type==="light",r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:t.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(t.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:t.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(t.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},cat=v.forwardRef(function(t,n){var r=t.disableUnderline,i=t.classes,o=t.fullWidth,a=o===void 0?!1:o,s=t.inputComponent,l=s===void 0?"input":s,c=t.multiline,u=c===void 0?!1:c,d=t.type,p=d===void 0?"text":d,h=fn(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return v.createElement(kMe,Y({classes:Y({},i,{root:$t(i.root,!r&&i.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:p},h))});cat.muiName="Input";const D6=or(Aun,{name:"MuiInput"})(cat);var Oun={root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},zun=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=a===void 0?"div":a,l=t.disablePointerEvents,c=l===void 0?!1:l,u=t.disableTypography,d=u===void 0?!1:u,p=t.position,h=t.variant,g=fn(t,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),m=Zot()||{},b=h;return h&&m.variant,m&&!b&&(b=m.variant),v.createElement(P6.Provider,{value:null},v.createElement(s,Y({className:$t(i.root,o,p==="end"?i.positionEnd:i.positionStart,c&&i.disablePointerEvents,m.hiddenLabel&&i.hiddenLabel,b==="filled"&&i.filled,m.margin==="dense"&&i.marginDense),ref:n},g),typeof r=="string"&&!d?v.createElement(vt,{color:"textSecondary"},r):r))});const ac=or(Oun,{name:"MuiInputAdornment"})(zun);var Tun=function(t){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:t.transitions.create(["color","transform"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},Eun=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.disableAnimation,a=o===void 0?!1:o;t.margin;var s=t.shrink;t.variant;var l=fn(t,["classes","className","disableAnimation","margin","shrink","variant"]),c=S3(),u=s;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);var d=AD({props:t,muiFormControl:c,states:["margin","variant"]});return v.createElement(cun,Y({"data-shrink":u,className:$t(r.root,i,c&&r.formControl,!a&&r.animated,u&&r.shrink,d.margin==="dense"&&r.marginDense,{filled:r.filled,outlined:r.outlined}[d.variant]),classes:{focused:r.focused,disabled:r.disabled,error:r.error,required:r.required,asterisk:r.asterisk},ref:n},l))});const ol=or(Tun,{name:"MuiInputLabel"})(Eun);var dI=v.createContext({}),Run={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},Iun=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=a===void 0?"ul":a,l=t.dense,c=l===void 0?!1:l,u=t.disablePadding,d=u===void 0?!1:u,p=t.subheader,h=fn(t,["children","classes","className","component","dense","disablePadding","subheader"]),g=v.useMemo(function(){return{dense:c}},[c]);return v.createElement(dI.Provider,{value:g},v.createElement(s,Y({className:$t(i.root,o,c&&i.dense,!d&&i.padding,p&&i.subheader),ref:n},h),p,r))});const tp=or(Run,{name:"MuiList"})(Iun);var Pun=function(t){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:t.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:t.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(t.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},Dun=typeof window>"u"?v.useEffect:v.useLayoutEffect,kun=v.forwardRef(function(t,n){var r=t.alignItems,i=r===void 0?"center":r,o=t.autoFocus,a=o===void 0?!1:o,s=t.button,l=s===void 0?!1:s,c=t.children,u=t.classes,d=t.className,p=t.component,h=t.ContainerComponent,g=h===void 0?"li":h,m=t.ContainerProps;m=m===void 0?{}:m;var b=m.className,y=fn(m,["className"]),M=t.dense,C=M===void 0?!1:M,x=t.disabled,w=x===void 0?!1:x,S=t.disableGutters,A=S===void 0?!1:S,z=t.divider,O=z===void 0?!1:z,T=t.focusVisibleClassName,R=t.selected,P=R===void 0?!1:R,F=fn(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),N=v.useContext(dI),L={dense:C||N.dense||!1,alignItems:i},W=v.useRef(null);Dun(function(){a&&W.current&&W.current.focus()},[a]);var j=v.Children.toArray(c),V=j.length&&XN(j[j.length-1],["ListItemSecondaryAction"]),G=v.useCallback(function(X){W.current=Bl.findDOMNode(X)},[]),q=Ba(G,n),$=Y({className:$t(u.root,d,L.dense&&u.dense,!A&&u.gutters,O&&u.divider,w&&u.disabled,l&&u.button,i!=="center"&&u.alignItemsFlexStart,V&&u.secondaryAction,P&&u.selected),disabled:w},F),U=p||"li";return l&&($.component=p||"div",$.focusVisibleClassName=$t(u.focusVisible,T),U=Rz),V?(U=!$.component&&!p?"div":U,g==="li"&&(U==="li"?U="div":$.component==="li"&&($.component="div")),v.createElement(dI.Provider,{value:L},v.createElement(g,Y({className:$t(u.container,b),ref:q},y),v.createElement(U,$,j),j.pop()))):v.createElement(dI.Provider,{value:L},v.createElement(U,Y({ref:q},$),j))});const ya=or(Pun,{name:"MuiListItem"})(kun);var Lun=function(t){return{root:{minWidth:56,color:t.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}},_un=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=fn(t,["classes","className"]),a=v.useContext(dI);return v.createElement("div",Y({className:$t(r.root,i,a.alignItems==="flex-start"&&r.alignItemsFlexStart),ref:n},o))});const $0=or(Lun,{name:"MuiListItemIcon"})(_un);var Nun={root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},uat=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=fn(t,["classes","className"]);return v.createElement("div",Y({className:$t(r.root,i),ref:n},o))});uat.muiName="ListItemSecondaryAction";const Fun=or(Nun,{name:"MuiListItemSecondaryAction"})(uat);var Wun={root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},qun=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.disableTypography,s=a===void 0?!1:a,l=t.inset,c=l===void 0?!1:l,u=t.primary,d=t.primaryTypographyProps,p=t.secondary,h=t.secondaryTypographyProps,g=fn(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=v.useContext(dI),b=m.dense,y=u??r;y!=null&&y.type!==vt&&!s&&(y=v.createElement(vt,Y({variant:b?"body2":"body1",className:i.primary,component:"span",display:"block"},d),y));var M=p;return M!=null&&M.type!==vt&&!s&&(M=v.createElement(vt,Y({variant:"body2",className:i.secondary,color:"textSecondary",display:"block"},h),M)),v.createElement("div",Y({className:$t(i.root,o,b&&i.dense,c&&i.inset,y&&M&&i.multiline),ref:n},g),y,M)});const ia=or(Wun,{name:"MuiListItemText"})(qun);var Bun=function(t){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:t.palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},colorPrimary:{color:t.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}},jun=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=o===void 0?"default":o,s=t.component,l=s===void 0?"li":s,c=t.disableGutters,u=c===void 0?!1:c,d=t.disableSticky,p=d===void 0?!1:d,h=t.inset,g=h===void 0?!1:h,m=fn(t,["classes","className","color","component","disableGutters","disableSticky","inset"]);return v.createElement(l,Y({className:$t(r.root,i,a!=="default"&&r["color".concat($r(a))],g&&r.inset,!p&&r.sticky,!u&&r.gutters),ref:n},m))});const Bv=or(Bun,{name:"MuiListSubheader"})(jun);function sPe(e,t){var n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function lPe(e,t){var n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cPe(e){return[e.horizontal,e.vertical].map(function(t){return typeof t=="number"?"".concat(t,"px"):t}).join(" ")}function Hun(e,t){for(var n=t,r=0;n&&n!==e;)n=n.parentElement,r+=n.scrollTop;return r}function gie(e){return typeof e=="function"?e():e}var Vun={root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},Gun=v.forwardRef(function(t,n){var r=t.action,i=t.anchorEl,o=t.anchorOrigin,a=o===void 0?{vertical:"top",horizontal:"left"}:o,s=t.anchorPosition,l=t.anchorReference,c=l===void 0?"anchorEl":l,u=t.children,d=t.classes,p=t.className,h=t.container,g=t.elevation,m=g===void 0?8:g,b=t.getContentAnchorEl,y=t.marginThreshold,M=y===void 0?16:y,C=t.onEnter,x=t.onEntered,w=t.onEntering,S=t.onExit,A=t.onExited,z=t.onExiting,O=t.open,T=t.PaperProps,R=T===void 0?{}:T,P=t.transformOrigin,F=P===void 0?{vertical:"top",horizontal:"left"}:P,N=t.TransitionComponent,L=N===void 0?aQ:N,W=t.transitionDuration,j=W===void 0?"auto":W,V=t.TransitionProps,G=V===void 0?{}:V,q=fn(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),$=v.useRef(),U=v.useCallback(function(oe){if(c==="anchorPosition")return s;var ae=gie(i),ne=ae&&ae.nodeType===1?ae:yd($.current).body,le=ne.getBoundingClientRect(),he=oe===0?a.vertical:"center";return{top:le.top+sPe(le,he),left:le.left+lPe(le,a.horizontal)}},[i,a.horizontal,a.vertical,s,c]),X=v.useCallback(function(oe){var ae=0;if(b&&c==="anchorEl"){var ne=b(oe);if(ne&&oe.contains(ne)){var le=Hun(oe,ne);ae=ne.offsetTop+ne.clientHeight/2-le||0}}return ae},[a.vertical,c,b]),Q=v.useCallback(function(oe){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{vertical:sPe(oe,F.vertical)+ae,horizontal:lPe(oe,F.horizontal)}},[F.horizontal,F.vertical]),re=v.useCallback(function(oe){var ae=X(oe),ne={width:oe.offsetWidth,height:oe.offsetHeight},le=Q(ne,ae);if(c==="none")return{top:null,left:null,transformOrigin:cPe(le)};var he=U(ae),be=he.top-le.vertical,me=he.left-le.horizontal,Me=be+ne.height,Oe=me+ne.width,de=eQ(gie(i)),ie=de.innerHeight-M,ue=de.innerWidth-M;if(be<M){var Ae=be-M;be-=Ae,le.vertical+=Ae}else if(Me>ie){var Ce=Me-ie;be-=Ce,le.vertical+=Ce}if(me<M){var Ee=me-M;me-=Ee,le.horizontal+=Ee}else if(Oe>ue){var Ge=Oe-ue;me-=Ge,le.horizontal+=Ge}return{top:"".concat(Math.round(be),"px"),left:"".concat(Math.round(me),"px"),transformOrigin:cPe(le)}},[i,c,U,X,Q,M]),ee=v.useCallback(function(){var oe=$.current;if(oe){var ae=re(oe);ae.top!==null&&(oe.style.top=ae.top),ae.left!==null&&(oe.style.left=ae.left),oe.style.transformOrigin=ae.transformOrigin}},[re]),se=function(ae,ne){w&&w(ae,ne),ee()},pe=v.useCallback(function(oe){$.current=Bl.findDOMNode(oe)},[]);v.useEffect(function(){O&&ee()}),v.useImperativeHandle(r,function(){return O?{updatePosition:function(){ee()}}:null},[O,ee]),v.useEffect(function(){if(O){var oe=$y(function(){ee()});return window.addEventListener("resize",oe),function(){oe.clear(),window.removeEventListener("resize",oe)}}},[O,ee]);var te=j;j==="auto"&&!L.muiSupportAuto&&(te=void 0);var ce=h||(i?yd(gie(i)).body:void 0);return v.createElement(IMe,Y({container:ce,open:O,ref:n,BackdropProps:{invisible:!0},className:$t(d.root,p)},q),v.createElement(L,Y({appear:!0,in:O,onEnter:C,onEntered:x,onExit:S,onExited:A,onExiting:z,timeout:te},G,{onEntering:Kx(se,G.onEntering)}),v.createElement(Pt,Y({elevation:m,ref:pe},R,{className:$t(d.paper,R.className)}),u)))});const A3=or(Vun,{name:"MuiPopover"})(Gun);function mie(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function uPe(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function dat(e,t){if(t===void 0)return!0;var n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function c4(e,t,n,r,i,o){for(var a=!1,s=i(e,t,t?n:!1);s;){if(s===e.firstChild){if(a)return;a=!0}var l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!dat(s,o)||l)s=i(e,s,n);else{s.focus();return}}}var $un=typeof window>"u"?v.useEffect:v.useLayoutEffect,LMe=v.forwardRef(function(t,n){var r=t.actions,i=t.autoFocus,o=i===void 0?!1:i,a=t.autoFocusItem,s=a===void 0?!1:a,l=t.children,c=t.className,u=t.disabledItemsFocusable,d=u===void 0?!1:u,p=t.disableListWrap,h=p===void 0?!1:p,g=t.onKeyDown,m=t.variant,b=m===void 0?"selectedMenu":m,y=fn(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),M=v.useRef(null),C=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$un(function(){o&&M.current.focus()},[o]),v.useImperativeHandle(r,function(){return{adjustStyleForScrollbar:function(T,R){var P=!M.current.style.width;if(T.clientHeight<M.current.clientHeight&&P){var F="".concat(nat(),"px");M.current.style[R.direction==="rtl"?"paddingLeft":"paddingRight"]=F,M.current.style.width="calc(100% + ".concat(F,")")}return M.current}}},[]);var x=function(T){var R=M.current,P=T.key,F=yd(R).activeElement;if(P==="ArrowDown")T.preventDefault(),c4(R,F,h,d,mie);else if(P==="ArrowUp")T.preventDefault(),c4(R,F,h,d,uPe);else if(P==="Home")T.preventDefault(),c4(R,null,h,d,mie);else if(P==="End")T.preventDefault(),c4(R,null,h,d,uPe);else if(P.length===1){var N=C.current,L=P.toLowerCase(),W=performance.now();N.keys.length>0&&(W-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&L!==N.keys[0]&&(N.repeating=!1)),N.lastTime=W,N.keys.push(L);var j=F&&!N.repeating&&dat(F,N);N.previousKeyMatched&&(j||c4(R,F,!1,d,mie,N))?T.preventDefault():N.previousKeyMatched=!1}g&&g(T)},w=v.useCallback(function(O){M.current=Bl.findDOMNode(O)},[]),S=Ba(w,n),A=-1;v.Children.forEach(l,function(O,T){v.isValidElement(O)&&(O.props.disabled||(b==="selectedMenu"&&O.props.selected||A===-1)&&(A=T))});var z=v.Children.map(l,function(O,T){if(T===A){var R={};return s&&(R.autoFocus=!0),O.props.tabIndex===void 0&&b==="selectedMenu"&&(R.tabIndex=0),v.cloneElement(O,R)}return O});return v.createElement(tp,Y({role:"menu",ref:S,className:c,onKeyDown:x,tabIndex:o?0:-1},y),z)}),dPe={vertical:"top",horizontal:"right"},pPe={vertical:"top",horizontal:"left"},Uun={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},Xun=v.forwardRef(function(t,n){var r=t.autoFocus,i=r===void 0?!0:r,o=t.children,a=t.classes,s=t.disableAutoFocusItem,l=s===void 0?!1:s,c=t.MenuListProps,u=c===void 0?{}:c,d=t.onClose,p=t.onEntering,h=t.open,g=t.PaperProps,m=g===void 0?{}:g,b=t.PopoverClasses,y=t.transitionDuration,M=y===void 0?"auto":y,C=t.TransitionProps;C=C===void 0?{}:C;var x=C.onEntering,w=fn(C,["onEntering"]),S=t.variant,A=S===void 0?"selectedMenu":S,z=fn(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),O=ql(),T=i&&!l&&h,R=v.useRef(null),P=v.useRef(null),F=function(){return P.current},N=function(G,q){R.current&&R.current.adjustStyleForScrollbar(G,O),p&&p(G,q),x&&x(G,q)},L=function(G){G.key==="Tab"&&(G.preventDefault(),d&&d(G,"tabKeyDown"))},W=-1;v.Children.map(o,function(V,G){v.isValidElement(V)&&(V.props.disabled||(A!=="menu"&&V.props.selected||W===-1)&&(W=G))});var j=v.Children.map(o,function(V,G){return G===W?v.cloneElement(V,{ref:function($){P.current=Bl.findDOMNode($),Uy(V.ref,$)}}):V});return v.createElement(A3,Y({getContentAnchorEl:F,classes:b,onClose:d,TransitionProps:Y({onEntering:N},w),anchorOrigin:O.direction==="rtl"?dPe:pPe,transformOrigin:O.direction==="rtl"?dPe:pPe,PaperProps:Y({},m,{classes:Y({},m.classes,{root:a.paper})}),open:h,ref:n,transitionDuration:M},z),v.createElement(LMe,Y({onKeyDown:L,actions:R,autoFocus:i&&(W===-1||l),autoFocusItem:T,variant:A},u,{className:$t(a.list,u.className)}),j))});const e9=or(Uun,{name:"MuiMenu"})(Xun);var Yun=function(t){return{root:Y({},t.typography.body1,tn({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},t.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Y({},t.typography.body2,{minHeight:"auto"})}},Kun=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"li":o,s=t.disableGutters,l=s===void 0?!1:s,c=t.ListItemClasses,u=t.role,d=u===void 0?"menuitem":u,p=t.selected,h=t.tabIndex,g=fn(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]),m;return t.disabled||(m=h!==void 0?h:-1),v.createElement(ya,Y({button:!0,role:d,tabIndex:m,component:a,selected:p,disableGutters:l,classes:Y({dense:r.dense},c),className:$t(r.root,i,p&&r.selected,!l&&r.gutters),ref:n},g))});const lr=or(Yun,{name:"MuiMenuItem"})(Kun);var pat=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.disabled,a=t.IconComponent,s=t.inputRef,l=t.variant,c=l===void 0?"standard":l,u=fn(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return v.createElement(v.Fragment,null,v.createElement("select",Y({className:$t(r.root,r.select,r[c],i,o&&r.disabled),disabled:o,ref:s||n},u)),t.multiple?null:v.createElement(a,{className:$t(r.icon,r["icon".concat($r(c))],o&&r.disabled)}))});const hat=Ui(v.createElement("path",{d:"M7 10l5 5 5-5z"}));var fat=function(t){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:t.palette.type==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:t.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:t.palette.action.active,"&$disabled":{color:t.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Qun=v.createElement(D6,null),gat=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.IconComponent,a=o===void 0?hat:o,s=t.input,l=s===void 0?Qun:s,c=t.inputProps;t.variant;var u=fn(t,["children","classes","IconComponent","input","inputProps","variant"]),d=S3(),p=AD({props:t,muiFormControl:d,states:["variant"]});return v.cloneElement(l,Y({inputComponent:pat,inputProps:Y({children:r,classes:i,IconComponent:a,variant:p.variant,type:void 0},c,l?l.props.inputProps:{}),ref:n},u))});gat.muiName="Select";or(fat,{name:"MuiNativeSelect"})(gat);var Zun=function(t){return{root:{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"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}},Jun=v.forwardRef(function(t,n){t.children;var r=t.classes,i=t.className,o=t.label,a=t.labelWidth,s=t.notched,l=t.style,c=fn(t,["children","classes","className","label","labelWidth","notched","style"]),u=ql(),d=u.direction==="rtl"?"right":"left";if(o!==void 0)return v.createElement("fieldset",Y({"aria-hidden":!0,className:$t(r.root,i),ref:n,style:l},c),v.createElement("legend",{className:$t(r.legendLabelled,s&&r.legendNotched)},o?v.createElement("span",null,o):v.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var p=a>0?a*.75+8:.01;return v.createElement("fieldset",Y({"aria-hidden":!0,style:Y(tn({},"padding".concat($r(d)),8),l),className:$t(r.root,i),ref:n},c),v.createElement("legend",{className:r.legend,style:{width:s?p:.01}},v.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))});const edn=or(Zun,{name:"PrivateNotchedOutline"})(Jun);var tdn=function(t){var n=t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:t.shape.borderRadius,"&:hover $notchedOutline":{borderColor:t.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:n}},"&$focused $notchedOutline":{borderColor:t.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:t.palette.error.main},"&$disabled $notchedOutline":{borderColor:t.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:t.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:n},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:t.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.type==="light"?null:"#fff",caretColor:t.palette.type==="light"?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},mat=v.forwardRef(function(t,n){var r=t.classes,i=t.fullWidth,o=i===void 0?!1:i,a=t.inputComponent,s=a===void 0?"input":a,l=t.label,c=t.labelWidth,u=c===void 0?0:c,d=t.multiline,p=d===void 0?!1:d,h=t.notched,g=t.type,m=g===void 0?"text":g,b=fn(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return v.createElement(kMe,Y({renderSuffix:function(M){return v.createElement(edn,{className:r.notchedOutline,label:l,labelWidth:u,notched:typeof h<"u"?h:!!(M.startAdornment||M.filled||M.focused)})},classes:Y({},r,{root:$t(r.root,r.underline),notchedOutline:null}),fullWidth:o,inputComponent:s,multiline:p,ref:n,type:m},b))});mat.muiName="Input";const vat=or(tdn,{name:"MuiOutlinedInput"})(mat);/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1-lts
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */var k6=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",ndn=(function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(k6&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0})();function rdn(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function idn(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ndn))}}var odn=k6&&window.Promise,adn=odn?rdn:idn;function bat(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function O3(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function _Me(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function L6(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=O3(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:L6(_Me(e))}function yat(e){return e&&e.referenceNode?e.referenceNode:e}var hPe=k6&&!!(window.MSInputMethodContext&&document.documentMode),fPe=k6&&/MSIE 10/.test(navigator.userAgent);function zD(e){return e===11?hPe:e===10?fPe:hPe||fPe}function lP(e){if(!e)return document.documentElement;for(var t=zD(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&O3(n,"position")==="static"?lP(n):n}function sdn(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||lP(e.firstElementChild)===e}function rfe(e){return e.parentNode!==null?rfe(e.parentNode):e}function t9(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return sdn(a)?a:lP(a);var s=rfe(e);return s.host?t9(s.host,t):t9(e,rfe(t).host)}function cP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function ldn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=cP(t,"top"),i=cP(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function gPe(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function mPe(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],zD(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Mat(e){var t=e.body,n=e.documentElement,r=zD(10)&&getComputedStyle(n);return{height:mPe("Height",t,n,r),width:mPe("Width",t,n,r)}}var cdn=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},udn=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),uP=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},vf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Zx(e){return vf({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ife(e){var t={};try{if(zD(10)){t=e.getBoundingClientRect();var n=cP(e,"top"),r=cP(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?Mat(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=O3(e);l-=gPe(u,"x"),c-=gPe(u,"y"),i.width-=l,i.height-=c}return Zx(i)}function NMe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=zD(10),i=t.nodeName==="HTML",o=ife(e),a=ife(t),s=L6(e),l=O3(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Zx({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(d=ldn(d,t)),d}function ddn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=NMe(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:cP(n),s=t?0:cP(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return Zx(l)}function Cat(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(O3(e,"position")==="fixed")return!0;var n=_Me(e);return n?Cat(n):!1}function xat(e){if(!e||!e.parentElement||zD())return document.documentElement;for(var t=e.parentElement;t&&O3(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function FMe(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?xat(e):t9(e,yat(t));if(r==="viewport")o=ddn(a,i);else{var s=void 0;r==="scrollParent"?(s=L6(_Me(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=NMe(s,a,i);if(s.nodeName==="HTML"&&!Cat(a)){var c=Mat(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}else o=l}n=n||0;var p=typeof n=="number";return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function pdn(e){var t=e.width,n=e.height;return t*n}function wat(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=FMe(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(p){return vf({key:p},s[p],{area:pdn(s[p])})}).sort(function(p,h){return h.area-p.area}),c=l.filter(function(p){var h=p.width,g=p.height;return h>=n.clientWidth&&g>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Sat(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?xat(t):t9(t,yat(n));return NMe(n,i,r)}function Aat(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function n9(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function Oat(e,t,n){n=n.split("-")[0];var r=Aat(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[c]:i[s]=t[n9(s)],i}function _6(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function hdn(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=_6(e,function(i){return i[t]===n});return e.indexOf(r)}function zat(e,t,n){var r=n===void 0?e:e.slice(0,hdn(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&bat(o)&&(t.offsets.popper=Zx(t.offsets.popper),t.offsets.reference=Zx(t.offsets.reference),t=o(t,i))}),t}function fdn(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Sat(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=wat(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Oat(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=zat(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Tat(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function WMe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function gdn(){return this.state.isDestroyed=!0,Tat(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[WMe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Eat(e){var t=e.ownerDocument;return t?t.defaultView:window}function Rat(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||Rat(L6(o.parentNode),t,n,r),r.push(o)}function mdn(e,t,n,r){n.updateBound=r,Eat(e).addEventListener("resize",n.updateBound,{passive:!0});var i=L6(e);return Rat(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function vdn(){this.state.eventsEnabled||(this.state=mdn(this.reference,this.options,this.state,this.scheduleUpdate))}function bdn(e,t){return Eat(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function ydn(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=bdn(this.reference,this.state))}function qMe(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function ofe(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&qMe(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Mdn(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Cdn(e){return ofe(e.instance.popper,e.styles),Mdn(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&ofe(e.arrowElement,e.arrowStyles),e}function xdn(e,t,n,r,i){var o=Sat(i,t,e,n.positionFixed),a=wat(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),ofe(t,{position:n.positionFixed?"fixed":"absolute"}),n}function wdn(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(y){return y},l=o(i.width),c=o(r.width),u=["left","right"].indexOf(e.placement)!==-1,d=e.placement.indexOf("-")!==-1,p=l%2===c%2,h=l%2===1&&c%2===1,g=t?u||d||p?o:a:s,m=t?o:s;return{left:g(h&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:g(r.right)}}var Sdn=k6&&/Firefox/i.test(navigator.userAgent);function Adn(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=_6(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,s=lP(e.instance.popper),l=ife(s),c={position:i.position},u=wdn(e,window.devicePixelRatio<2||!Sdn),d=n==="bottom"?"top":"bottom",p=r==="right"?"left":"right",h=WMe("transform"),g=void 0,m=void 0;if(d==="bottom"?s.nodeName==="HTML"?m=-s.clientHeight+u.bottom:m=-l.height+u.bottom:m=u.top,p==="right"?s.nodeName==="HTML"?g=-s.clientWidth+u.right:g=-l.width+u.right:g=u.left,a&&h)c[h]="translate3d("+g+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var b=d==="bottom"?-1:1,y=p==="right"?-1:1;c[d]=m*b,c[p]=g*y,c.willChange=d+", "+p}var M={"x-placement":e.placement};return e.attributes=vf({},M,e.attributes),e.styles=vf({},c,e.styles),e.arrowStyles=vf({},e.offsets.arrow,e.arrowStyles),e}function Iat(e,t,n){var r=_6(e,function(s){var l=s.name;return l===t}),i=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function Odn(e,t){var n;if(!Iat(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=["left","right"].indexOf(i)!==-1,c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",g=Aat(r)[c];s[h]-g<a[d]&&(e.offsets.popper[d]-=a[d]-(s[h]-g)),s[d]+g>a[h]&&(e.offsets.popper[d]+=s[d]+g-a[h]),e.offsets.popper=Zx(e.offsets.popper);var m=s[d]+s[c]/2-g/2,b=O3(e.instance.popper),y=parseFloat(b["margin"+u]),M=parseFloat(b["border"+u+"Width"]),C=m-e.offsets.popper[d]-y-M;return C=Math.max(Math.min(a[c]-g,C),0),e.arrowElement=r,e.offsets.arrow=(n={},uP(n,d,Math.round(C)),uP(n,p,""),n),e}function zdn(e){return e==="end"?"start":e==="start"?"end":e}var Pat=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],vie=Pat.slice(3);function vPe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=vie.indexOf(e),r=vie.slice(n+1).concat(vie.slice(0,n));return t?r.reverse():r}var bie={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Tdn(e,t){if(Tat(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=FMe(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=n9(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case bie.FLIP:a=[r,i];break;case bie.CLOCKWISE:a=vPe(r);break;case bie.COUNTERCLOCKWISE:a=vPe(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=n9(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p=r==="left"&&d(c.right)>d(u.left)||r==="right"&&d(c.left)<d(u.right)||r==="top"&&d(c.bottom)>d(u.top)||r==="bottom"&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),g=d(c.right)>d(n.right),m=d(c.top)<d(n.top),b=d(c.bottom)>d(n.bottom),y=r==="left"&&h||r==="right"&&g||r==="top"&&m||r==="bottom"&&b,M=["top","bottom"].indexOf(r)!==-1,C=!!t.flipVariations&&(M&&o==="start"&&h||M&&o==="end"&&g||!M&&o==="start"&&m||!M&&o==="end"&&b),x=!!t.flipVariationsByContent&&(M&&o==="start"&&g||M&&o==="end"&&h||!M&&o==="start"&&b||!M&&o==="end"&&m),w=C||x;(p||y||w)&&(e.flipped=!0,(p||y)&&(r=a[l+1]),w&&(o=zdn(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=vf({},e.offsets.popper,Oat(e.instance.popper,e.offsets.reference,e.placement)),e=zat(e.instance.modifiers,e,"flip"))}),e}function Edn(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}function Rdn(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=Zx(s);return l[t]/100*o}else if(a==="vh"||a==="vw"){var c=void 0;return a==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*o}else return o}function Idn(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(u){return u.trim()}),s=a.indexOf(_6(a,function(u){return u.search(/,|\s/)!==-1}));a[s]&&a[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=s!==-1?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map(function(u,d){var p=(d===1?!o:o)?"height":"width",h=!1;return u.reduce(function(g,m){return g[g.length-1]===""&&["+","-"].indexOf(m)!==-1?(g[g.length-1]=m,h=!0,g):h?(g[g.length-1]+=m,h=!1,g):g.concat(m)},[]).map(function(g){return Rdn(g,p,t,n)})}),c.forEach(function(u,d){u.forEach(function(p,h){qMe(p)&&(i[d]+=p*(u[h-1]==="-"?-1:1))})}),i}function Pdn(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return qMe(+n)?l=[+n,0]:l=Idn(n,o,a,s),s==="left"?(o.top+=l[0],o.left-=l[1]):s==="right"?(o.top+=l[0],o.left+=l[1]):s==="top"?(o.left+=l[0],o.top-=l[1]):s==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function Ddn(e,t){var n=t.boundariesElement||lP(e.instance.popper);e.instance.reference===n&&(n=lP(n));var r=WMe("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=FMe(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(h){var g=u[h];return u[h]<l[h]&&!t.escapeWithReference&&(g=Math.max(u[h],l[h])),uP({},h,g)},secondary:function(h){var g=h==="right"?"left":"top",m=u[g];return u[h]>l[h]&&!t.escapeWithReference&&(m=Math.min(u[g],l[h]-(h==="right"?u.width:u.height))),uP({},g,m)}};return c.forEach(function(p){var h=["left","top"].indexOf(p)!==-1?"primary":"secondary";u=vf({},u,d[h](p))}),e.offsets.popper=u,e}function kdn(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",c=s?"width":"height",u={start:uP({},l,o[l]),end:uP({},l,o[l]+o[c]-a[c])};e.offsets.popper=vf({},a,u[r])}return e}function Ldn(e){if(!Iat(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=_6(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function _dn(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=n9(t),e.offsets.popper=Zx(i),e}var Ndn={shift:{order:100,enabled:!0,fn:kdn},offset:{order:200,enabled:!0,fn:Pdn,offset:0},preventOverflow:{order:300,enabled:!0,fn:Ddn,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Edn},arrow:{order:500,enabled:!0,fn:Odn,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Tdn,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:_dn},hide:{order:800,enabled:!0,fn:Ldn},computeStyle:{order:850,enabled:!0,fn:Adn,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Cdn,onLoad:xdn,gpuAcceleration:void 0}},Fdn={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ndn},sQ=(function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};cdn(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=adn(this.update.bind(this)),this.options=vf({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(vf({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=vf({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return vf({name:a},r.options.modifiers[a])}).sort(function(a,s){return a.order-s.order}),this.modifiers.forEach(function(a){a.enabled&&bat(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return udn(e,[{key:"update",value:function(){return fdn.call(this)}},{key:"destroy",value:function(){return gdn.call(this)}},{key:"enableEventListeners",value:function(){return vdn.call(this)}},{key:"disableEventListeners",value:function(){return ydn.call(this)}}]),e})();sQ.Utils=(typeof window<"u"?window:global).PopperUtils;sQ.placements=Pat;sQ.Defaults=Fdn;function Wdn(e,t){var n=t&&t.direction||"ltr";if(n==="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 bPe(e){return typeof e=="function"?e():e}var qdn=typeof window<"u"?v.useLayoutEffect:v.useEffect,Bdn={},Dat=v.forwardRef(function(t,n){var r=t.anchorEl,i=t.children,o=t.container,a=t.disablePortal,s=a===void 0?!1:a,l=t.keepMounted,c=l===void 0?!1:l,u=t.modifiers,d=t.open,p=t.placement,h=p===void 0?"bottom":p,g=t.popperOptions,m=g===void 0?Bdn:g,b=t.popperRef,y=t.style,M=t.transition,C=M===void 0?!1:M,x=fn(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=v.useRef(null),S=Ba(w,n),A=v.useRef(null),z=Ba(A,b),O=v.useRef(z);qdn(function(){O.current=z},[z]),v.useImperativeHandle(b,function(){return A.current},[]);var T=v.useState(!0),R=T[0],P=T[1],F=x3(),N=Wdn(h,F),L=v.useState(N),W=L[0],j=L[1];v.useEffect(function(){A.current&&A.current.update()});var V=v.useCallback(function(){if(!(!w.current||!r||!d)){A.current&&(A.current.destroy(),O.current(null));var Q=function(se){j(se.placement)};bPe(r);var re=new sQ(bPe(r),w.current,Y({placement:N},m,{modifiers:Y({},s?{}:{preventOverflow:{boundariesElement:"window"}},u,m.modifiers),onCreate:Kx(Q,m.onCreate),onUpdate:Kx(Q,m.onUpdate)}));O.current(re)}},[r,s,u,d,N,m]),G=v.useCallback(function(Q){Uy(S,Q),V()},[S,V]),q=function(){P(!1)},$=function(){A.current&&(A.current.destroy(),O.current(null))},U=function(){P(!0),$()};if(v.useEffect(function(){return function(){$()}},[]),v.useEffect(function(){!d&&!C&&$()},[d,C]),!c&&!d&&(!C||R))return null;var X={placement:W};return C&&(X.TransitionProps={in:d,onEnter:q,onExited:U}),v.createElement(tat,{disablePortal:s,container:o},v.createElement("div",Y({ref:G,role:"tooltip"},x,{style:Y({position:"fixed",top:0,left:0,display:!d&&c&&!C?"none":null},y)}),typeof i=="function"?i(X):i))});function ea(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q$(e,t)}function lQ(e,t){if(t&&(p1(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xn(e)}function Pz(e){return Pz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pz(e)}function yPe(e,t){return p1(t)==="object"&&t!==null?e===t:String(e)===String(t)}function jdn(e){return e==null||typeof e=="string"&&!e.trim()}var Hdn=v.forwardRef(function(t,n){var r=t["aria-label"],i=t.autoFocus,o=t.autoWidth,a=t.children,s=t.classes,l=t.className,c=t.defaultValue,u=t.disabled,d=t.displayEmpty,p=t.IconComponent,h=t.inputRef,g=t.labelId,m=t.MenuProps,b=m===void 0?{}:m,y=t.multiple,M=t.name,C=t.onBlur,x=t.onChange,w=t.onClose,S=t.onFocus,A=t.onOpen,z=t.open,O=t.readOnly,T=t.renderValue,R=t.SelectDisplayProps,P=R===void 0?{}:R,F=t.tabIndex;t.type;var N=t.value,L=t.variant,W=L===void 0?"standard":L,j=fn(t,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),V=cb({controlled:N,default:c,name:"Select"}),G=Xu(V,2),q=G[0],$=G[1],U=v.useRef(null),X=v.useState(null),Q=X[0],re=X[1],ee=v.useRef(z!=null),se=ee.current,pe=v.useState(),te=pe[0],ce=pe[1],oe=v.useState(!1),ae=oe[0],ne=oe[1],le=Ba(n,h);v.useImperativeHandle(le,function(){return{focus:function(){Q.focus()},node:U.current,value:q}},[Q,q]),v.useEffect(function(){i&&Q&&Q.focus()},[i,Q]),v.useEffect(function(){if(Q){var De=yd(Q).getElementById(g);if(De){var ze=function(){getSelection().isCollapsed&&Q.focus()};return De.addEventListener("click",ze),function(){De.removeEventListener("click",ze)}}}},[g,Q]);var he=function(ze,Ve){ze?A&&A(Ve):w&&w(Ve),se||(ce(o?null:Q.clientWidth),ne(ze))},be=function(ze){ze.button===0&&(ze.preventDefault(),Q.focus(),he(!0,ze))},me=function(ze){he(!1,ze)},Me=v.Children.toArray(a),Oe=function(ze){var Ve=Me.map(function(et){return et.props.value}).indexOf(ze.target.value);if(Ve!==-1){var Ke=Me[Ve];$(Ke.props.value),x&&x(ze,Ke)}},de=function(ze){return function(Ve){y||he(!1,Ve);var Ke;if(y){Ke=Array.isArray(q)?q.slice():[];var et=q.indexOf(ze.props.value);et===-1?Ke.push(ze.props.value):Ke.splice(et,1)}else Ke=ze.props.value;ze.props.onClick&&ze.props.onClick(Ve),q!==Ke&&($(Ke),x&&(Ve.persist(),Object.defineProperty(Ve,"target",{writable:!0,value:{value:Ke,name:M}}),x(Ve,ze)))}},ie=function(ze){if(!O){var Ve=[" ","ArrowUp","ArrowDown","Enter"];Ve.indexOf(ze.key)!==-1&&(ze.preventDefault(),he(!0,ze))}},ue=Q!==null&&(se?z:ae),Ae=function(ze){!ue&&C&&(ze.persist(),Object.defineProperty(ze,"target",{writable:!0,value:{value:q,name:M}}),C(ze))};delete j["aria-invalid"];var Ce,Ee,Ge=[],_e=!1;(DMe({value:q})||d)&&(T?Ce=T(q):_e=!0);var Ie=Me.map(function(De){if(!v.isValidElement(De))return null;var ze;if(y){if(!Array.isArray(q))throw new Error(sP(2));ze=q.some(function(Ve){return yPe(Ve,De.props.value)}),ze&&_e&&Ge.push(De.props.children)}else ze=yPe(q,De.props.value),ze&&_e&&(Ee=De.props.children);return v.cloneElement(De,{"aria-selected":ze?"true":void 0,onClick:de(De),onKeyUp:function(Ke){Ke.key===" "&&Ke.preventDefault(),De.props.onKeyUp&&De.props.onKeyUp(Ke)},role:"option",selected:ze,value:void 0,"data-value":De.props.value})});_e&&(Ce=y?Ge.join(", "):Ee);var Le=te;!o&&se&&Q&&(Le=Q.clientWidth);var we;typeof F<"u"?we=F:we=u?null:0;var ve=P.id||(M?"mui-component-select-".concat(M):void 0);return v.createElement(v.Fragment,null,v.createElement("div",Y({className:$t(s.root,s.select,s.selectMenu,s[W],l,u&&s.disabled),ref:re,tabIndex:we,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":ue?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,ve].filter(Boolean).join(" ")||void 0,onKeyDown:ie,onMouseDown:u||O?null:be,onBlur:Ae,onFocus:S},P,{id:ve}),jdn(Ce)?v.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Ce),v.createElement("input",Y({value:Array.isArray(q)?q.join(","):q,name:M,ref:U,"aria-hidden":!0,onChange:Oe,tabIndex:-1,className:s.nativeInput,autoFocus:i},j)),v.createElement(p,{className:$t(s.icon,s["icon".concat($r(W))],ue&&s.iconOpen,u&&s.disabled)}),v.createElement(e9,Y({id:"menu-".concat(M||""),anchorEl:Q,open:ue,onClose:me},b,{MenuListProps:Y({"aria-labelledby":g,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:Y({},b.PaperProps,{style:Y({minWidth:Le},b.PaperProps!=null?b.PaperProps.style:null)})}),Ie))}),Vdn=fat,Gdn=v.createElement(D6,null),$dn=v.createElement(aat,null),kat=v.forwardRef(function e(t,n){var r=t.autoWidth,i=r===void 0?!1:r,o=t.children,a=t.classes,s=t.displayEmpty,l=s===void 0?!1:s,c=t.IconComponent,u=c===void 0?hat:c,d=t.id,p=t.input,h=t.inputProps,g=t.label,m=t.labelId,b=t.labelWidth,y=b===void 0?0:b,M=t.MenuProps,C=t.multiple,x=C===void 0?!1:C,w=t.native,S=w===void 0?!1:w,A=t.onClose,z=t.onOpen,O=t.open,T=t.renderValue,R=t.SelectDisplayProps,P=t.variant,F=P===void 0?"standard":P,N=fn(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),L=S?pat:Hdn,W=S3(),j=AD({props:t,muiFormControl:W,states:["variant"]}),V=j.variant||F,G=p||{standard:Gdn,outlined:v.createElement(vat,{label:g,labelWidth:y}),filled:$dn}[V];return v.cloneElement(G,Y({inputComponent:L,inputProps:Y({children:o,IconComponent:u,variant:V,type:void 0,multiple:x},S?{id:d}:{autoWidth:i,displayEmpty:l,labelId:m,MenuProps:M,onClose:A,onOpen:z,open:O,renderValue:T,SelectDisplayProps:Y({id:d},R)},h,{classes:h?SMe({baseClasses:a,newClasses:h.classes,Component:e}):a},p?p.props.inputProps:{}),ref:n},N))});kat.muiName="Select";const cs=or(Vdn,{name:"MuiSelect"})(kat);var Udn=function(t){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Y({zIndex:1},t.typography.body2,{fontSize:t.typography.pxToRem(12),lineHeight:1.2,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:t.palette.primary.contrastText,transform:"rotate(45deg)"}}};function Xdn(e){var t=e.children,n=e.classes,r=e.className,i=e.open,o=e.value,a=e.valueLabelDisplay;return a==="off"?t:v.cloneElement(t,{className:$t(t.props.className,(i||a==="on")&&n.open,n.thumb)},v.createElement("span",{className:$t(n.offset,r)},v.createElement("span",{className:n.circle},v.createElement("span",{className:n.label},o))))}const Ydn=or(Udn,{name:"PrivateValueLabel"})(Xdn);function yie(e,t){return e-t}function Mie(e,t,n){return Math.min(Math.max(t,e),n)}function MPe(e,t){var n=e.reduce(function(i,o,a){var s=Math.abs(t-o);return i===null||s<i.distance||s===i.distance?{distance:s,index:a}:i},null),r=n.index;return r}function d8(e,t){if(t.current!==void 0&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function p8(e,t,n){return(e-t)*100/(n-t)}function Kdn(e,t,n){return(n-t)*e+t}function Qdn(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}function CPe(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Qdn(t)))}function xPe(e){var t=e.values,n=e.source,r=e.newValue,i=e.index;if(t[i]===r)return n;var o=t.slice();return o[i]=r,o}function h8(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;(!t.current.contains(document.activeElement)||Number(document.activeElement.getAttribute("data-index"))!==n)&&t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var f8={horizontal:{offset:function(t){return{left:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},"horizontal-reverse":{offset:function(t){return{right:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},vertical:{offset:function(t){return{bottom:"".concat(t,"%")}},leap:function(t){return{height:"".concat(t,"%")}}}},wPe=function(t){return t},Zdn=function(t){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:t.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:t.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:t.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:t.palette.type==="light"?xW(t.palette.primary.main,.62):CW(t.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow"],{duration:t.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Ho(t.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Ho(t.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Ho(t.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Ho(t.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:t.palette.background.paper,opacity:.8},markLabel:Y({},t.typography.body2,{color:t.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:t.palette.text.primary}}},Jdn=v.forwardRef(function(t,n){var r=t["aria-label"],i=t["aria-labelledby"],o=t["aria-valuetext"],a=t.classes,s=t.className,l=t.color,c=l===void 0?"primary":l,u=t.component,d=u===void 0?"span":u,p=t.defaultValue,h=t.disabled,g=h===void 0?!1:h,m=t.getAriaLabel,b=t.getAriaValueText,y=t.marks,M=y===void 0?!1:y,C=t.max,x=C===void 0?100:C,w=t.min,S=w===void 0?0:w,A=t.name,z=t.onChange,O=t.onChangeCommitted,T=t.onMouseDown,R=t.orientation,P=R===void 0?"horizontal":R,F=t.scale,N=F===void 0?wPe:F,L=t.step,W=L===void 0?1:L,j=t.ThumbComponent,V=j===void 0?"span":j,G=t.track,q=G===void 0?"normal":G,$=t.value,U=t.ValueLabelComponent,X=U===void 0?Ydn:U,Q=t.valueLabelDisplay,re=Q===void 0?"off":Q,ee=t.valueLabelFormat,se=ee===void 0?wPe:ee,pe=fn(t,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),te=ql(),ce=v.useRef(),oe=v.useState(-1),ae=oe[0],ne=oe[1],le=v.useState(-1),he=le[0],be=le[1],me=cb({controlled:$,default:p,name:"Slider"}),Me=Xu(me,2),Oe=Me[0],de=Me[1],ie=Array.isArray(Oe),ue=ie?Oe.slice().sort(yie):[Oe];ue=ue.map(function(lt){return Mie(lt,S,x)});var Ae=M===!0&&W!==null?T6(Array(Math.floor((x-S)/W)+1)).map(function(lt,Je){return{value:S+W*Je}}):M||[],Ce=nQ(),Ee=Ce.isFocusVisible,Ge=Ce.onBlurVisible,_e=Ce.ref,Ie=v.useState(-1),Le=Ie[0],we=Ie[1],ve=v.useRef(),De=Ba(_e,ve),ze=Ba(n,De),Ve=bs(function(lt){var Je=Number(lt.currentTarget.getAttribute("data-index"));Ee(lt)&&we(Je),be(Je)}),Ke=bs(function(){Le!==-1&&(we(-1),Ge()),be(-1)}),et=bs(function(lt){var Je=Number(lt.currentTarget.getAttribute("data-index"));be(Je)}),it=bs(function(){be(-1)}),Ft=te.direction==="rtl",Dt=bs(function(lt){var Je=Number(lt.currentTarget.getAttribute("data-index")),ft=ue[Je],Tt=(x-S)/10,St=Ae.map(function(si){return si.value}),un=St.indexOf(ft),Un,Yr=Ft?"ArrowLeft":"ArrowRight",yr=Ft?"ArrowRight":"ArrowLeft";switch(lt.key){case"Home":Un=S;break;case"End":Un=x;break;case"PageUp":W&&(Un=ft+Tt);break;case"PageDown":W&&(Un=ft-Tt);break;case Yr:case"ArrowUp":W?Un=ft+W:Un=St[un+1]||St[St.length-1];break;case yr:case"ArrowDown":W?Un=ft-W:Un=St[un-1]||St[0];break;default:return}if(lt.preventDefault(),W&&(Un=CPe(Un,W,S)),Un=Mie(Un,S,x),ie){var dr=Un;Un=xPe({values:ue,source:Oe,newValue:Un,index:Je}).sort(yie),h8({sliderRef:ve,activeIndex:Un.indexOf(dr)})}de(Un),we(Je),z&&z(lt,Un),O&&O(lt,Un)}),Qn=v.useRef(),ir=P;Ft&&P!=="vertical"&&(ir+="-reverse");var Hn=function(Je){var ft=Je.finger,Tt=Je.move,St=Tt===void 0?!1:Tt,un=Je.values,Un=Je.source,Yr=ve.current,yr=Yr.getBoundingClientRect(),dr=yr.width,si=yr.height,$o=yr.bottom,Uo=yr.left,Qi;ir.indexOf("vertical")===0?Qi=($o-ft.y)/si:Qi=(ft.x-Uo)/dr,ir.indexOf("-reverse")!==-1&&(Qi=1-Qi);var di;if(di=Kdn(Qi,S,x),W)di=CPe(di,W,S);else{var kt=Ae.map(function(Jr){return Jr.value}),It=MPe(kt,di);di=kt[It]}di=Mie(di,S,x);var Vn=0;if(ie){St?Vn=Qn.current:Vn=MPe(un,di);var jr=di;di=xPe({values:un,source:Un,newValue:di,index:Vn}).sort(yie),Vn=di.indexOf(jr),Qn.current=Vn}return{newValue:di,activeIndex:Vn}},Zn=bs(function(lt){var Je=d8(lt,ce);if(Je){var ft=Hn({finger:Je,move:!0,values:ue,source:Oe}),Tt=ft.newValue,St=ft.activeIndex;h8({sliderRef:ve,activeIndex:St,setActive:ne}),de(Tt),z&&z(lt,Tt)}}),Br=bs(function(lt){var Je=d8(lt,ce);if(Je){var ft=Hn({finger:Je,values:ue,source:Oe}),Tt=ft.newValue;ne(-1),lt.type==="touchend"&&be(-1),O&&O(lt,Tt),ce.current=void 0;var St=yd(ve.current);St.removeEventListener("mousemove",Zn),St.removeEventListener("mouseup",Br),St.removeEventListener("touchmove",Zn),St.removeEventListener("touchend",Br)}}),vr=bs(function(lt){lt.preventDefault();var Je=lt.changedTouches[0];Je!=null&&(ce.current=Je.identifier);var ft=d8(lt,ce),Tt=Hn({finger:ft,values:ue,source:Oe}),St=Tt.newValue,un=Tt.activeIndex;h8({sliderRef:ve,activeIndex:un,setActive:ne}),de(St),z&&z(lt,St);var Un=yd(ve.current);Un.addEventListener("touchmove",Zn),Un.addEventListener("touchend",Br)});v.useEffect(function(){var lt=ve.current;lt.addEventListener("touchstart",vr);var Je=yd(lt);return function(){lt.removeEventListener("touchstart",vr),Je.removeEventListener("mousemove",Zn),Je.removeEventListener("mouseup",Br),Je.removeEventListener("touchmove",Zn),Je.removeEventListener("touchend",Br)}},[Br,Zn,vr]);var Fe=bs(function(lt){T&&T(lt),lt.preventDefault();var Je=d8(lt,ce),ft=Hn({finger:Je,values:ue,source:Oe}),Tt=ft.newValue,St=ft.activeIndex;h8({sliderRef:ve,activeIndex:St,setActive:ne}),de(Tt),z&&z(lt,Tt);var un=yd(ve.current);un.addEventListener("mousemove",Zn),un.addEventListener("mouseup",Br)}),He=p8(ie?ue[0]:S,S,x),Xe=p8(ue[ue.length-1],S,x)-He,ct=Y({},f8[ir].offset(He),f8[ir].leap(Xe));return v.createElement(d,Y({ref:ze,className:$t(a.root,a["color".concat($r(c))],s,g&&a.disabled,Ae.length>0&&Ae.some(function(lt){return lt.label})&&a.marked,q===!1&&a.trackFalse,P==="vertical"&&a.vertical,q==="inverted"&&a.trackInverted),onMouseDown:Fe},pe),v.createElement("span",{className:a.rail}),v.createElement("span",{className:a.track,style:ct}),v.createElement("input",{value:ue.join(","),name:A,type:"hidden"}),Ae.map(function(lt,Je){var ft=p8(lt.value,S,x),Tt=f8[ir].offset(ft),St;return q===!1?St=ue.indexOf(lt.value)!==-1:St=q==="normal"&&(ie?lt.value>=ue[0]&&lt.value<=ue[ue.length-1]:lt.value<=ue[0])||q==="inverted"&&(ie?lt.value<=ue[0]||lt.value>=ue[ue.length-1]:lt.value>=ue[0]),v.createElement(v.Fragment,{key:lt.value},v.createElement("span",{style:Tt,"data-index":Je,className:$t(a.mark,St&&a.markActive)}),lt.label!=null?v.createElement("span",{"aria-hidden":!0,"data-index":Je,style:Tt,className:$t(a.markLabel,St&&a.markLabelActive)},lt.label):null)}),ue.map(function(lt,Je){var ft=p8(lt,S,x),Tt=f8[ir].offset(ft);return v.createElement(X,{key:Je,valueLabelFormat:se,valueLabelDisplay:re,className:a.valueLabel,value:typeof se=="function"?se(N(lt),Je):se,index:Je,open:he===Je||ae===Je||re==="on",disabled:g},v.createElement(V,{className:$t(a.thumb,a["thumbColor".concat($r(c))],ae===Je&&a.active,g&&a.disabled,Le===Je&&a.focusVisible),tabIndex:g?null:0,role:"slider",style:Tt,"data-index":Je,"aria-label":m?m(Je):r,"aria-labelledby":i,"aria-orientation":P,"aria-valuemax":N(x),"aria-valuemin":N(S),"aria-valuenow":N(lt),"aria-valuetext":b?b(N(lt),Je):o,onKeyDown:Dt,onFocus:Ve,onBlur:Ke,onMouseOver:et,onMouseLeave:it}))}))});const e0n=or(Zdn,{name:"MuiSlider"})(Jdn);var t0n=function(t){var n=t.palette.type==="light"?.8:.98,r=EA(t.palette.background.default,n);return{root:Y({},t.typography.body2,tn({color:t.palette.getContrastText(r),backgroundColor:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:t.shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},n0n=v.forwardRef(function(t,n){var r=t.action,i=t.classes,o=t.className,a=t.message,s=t.role,l=s===void 0?"alert":s,c=fn(t,["action","classes","className","message","role"]);return v.createElement(Pt,Y({role:l,square:!0,elevation:6,className:$t(i.root,o),ref:n},c),v.createElement("div",{className:i.message},a),r?v.createElement("div",{className:i.action},r):null)});const r0n=or(t0n,{name:"MuiSnackbarContent"})(n0n);var i0n=function(t){var n={top:8},r={bottom:8},i={justifyContent:"flex-end"},o={justifyContent:"flex-start"},a={top:24},s={bottom:24},l={right:24},c={left:24},u={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:t.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Y({},n,tn({},t.breakpoints.up("sm"),Y({},a,u))),anchorOriginBottomCenter:Y({},r,tn({},t.breakpoints.up("sm"),Y({},s,u))),anchorOriginTopRight:Y({},n,i,tn({},t.breakpoints.up("sm"),Y({left:"auto"},a,l))),anchorOriginBottomRight:Y({},r,i,tn({},t.breakpoints.up("sm"),Y({left:"auto"},s,l))),anchorOriginTopLeft:Y({},n,o,tn({},t.breakpoints.up("sm"),Y({right:"auto"},a,c))),anchorOriginBottomLeft:Y({},r,o,tn({},t.breakpoints.up("sm"),Y({right:"auto"},s,c)))}},o0n=v.forwardRef(function(t,n){var r=t.action,i=t.anchorOrigin;i=i===void 0?{vertical:"bottom",horizontal:"center"}:i;var o=i.vertical,a=i.horizontal,s=t.autoHideDuration,l=s===void 0?null:s,c=t.children,u=t.classes,d=t.className,p=t.ClickAwayListenerProps,h=t.ContentProps,g=t.disableWindowBlurListener,m=g===void 0?!1:g,b=t.message,y=t.onClose,M=t.onEnter,C=t.onEntered,x=t.onEntering,w=t.onExit,S=t.onExited,A=t.onExiting,z=t.onMouseEnter,O=t.onMouseLeave,T=t.open,R=t.resumeHideDuration,P=t.TransitionComponent,F=P===void 0?aQ:P,N=t.transitionDuration,L=N===void 0?{enter:lh.enteringScreen,exit:lh.leavingScreen}:N,W=t.TransitionProps,j=fn(t,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),V=v.useRef(),G=v.useState(!0),q=G[0],$=G[1],U=bs(function(){y&&y.apply(void 0,arguments)}),X=bs(function(oe){!y||oe==null||(clearTimeout(V.current),V.current=setTimeout(function(){U(null,"timeout")},oe))});v.useEffect(function(){return T&&X(l),function(){clearTimeout(V.current)}},[T,l,X]);var Q=function(){clearTimeout(V.current)},re=v.useCallback(function(){l!=null&&X(R??l*.5)},[l,R,X]),ee=function(ae){z&&z(ae),Q()},se=function(ae){O&&O(ae),re()},pe=function(ae){y&&y(ae,"clickaway")},te=function(){$(!0)},ce=function(){$(!1)};return v.useEffect(function(){if(!m&&T)return window.addEventListener("focus",re),window.addEventListener("blur",Q),function(){window.removeEventListener("focus",re),window.removeEventListener("blur",Q)}},[m,re,T]),!T&&q?null:v.createElement(acn,Y({onClickAway:pe},p),v.createElement("div",Y({className:$t(u.root,u["anchorOrigin".concat($r(o)).concat($r(a))],d),onMouseEnter:ee,onMouseLeave:se,ref:n},j),v.createElement(F,Y({appear:!0,in:T,onEnter:Kx(ce,M),onEntered:C,onEntering:x,onExit:w,onExited:Kx(te,S),onExiting:A,timeout:L,direction:o==="top"?"down":"up"},W),c||v.createElement(r0n,Y({message:b,action:r},h)))))});const pr=or(i0n,{flip:!1,name:"MuiSnackbar"})(o0n);var a0n=function(t){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:t.palette.type==="light"?t.palette.grey[50]:t.palette.grey[400],transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:t.palette.type==="light"?t.palette.grey[400]:t.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:t.palette.type==="light"?.12:.1}},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:Ho(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.type==="light"?t.palette.grey[400]:t.palette.grey[800]},"&$checked + $track":{backgroundColor:t.palette.primary.main},"&$disabled + $track":{backgroundColor:t.palette.type==="light"?t.palette.common.black:t.palette.common.white}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:Ho(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.type==="light"?t.palette.grey[400]:t.palette.grey[800]},"&$checked + $track":{backgroundColor:t.palette.secondary.main},"&$disabled + $track":{backgroundColor:t.palette.type==="light"?t.palette.common.black:t.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:t.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.palette.type==="light"?t.palette.common.black:t.palette.common.white,opacity:t.palette.type==="light"?.38:.3}}},s0n=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=o===void 0?"secondary":o,s=t.edge,l=s===void 0?!1:s,c=t.size,u=c===void 0?"medium":c,d=fn(t,["classes","className","color","edge","size"]),p=v.createElement("span",{className:r.thumb});return v.createElement("span",{className:$t(r.root,i,{start:r.edgeStart,end:r.edgeEnd}[l],u==="small"&&r["size".concat($r(u))])},v.createElement(Jot,Y({type:"checkbox",icon:p,checkedIcon:p,classes:{root:$t(r.switchBase,r["color".concat($r(a))]),input:r.input,checked:r.checked,disabled:r.disabled},ref:n},d)),v.createElement("span",{className:r.track}))});const dP=or(a0n,{name:"MuiSwitch"})(s0n);var l0n=function(t){var n;return{root:Y({},t.typography.button,(n={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},tn(n,t.breakpoints.up("sm"),{padding:"6px 24px"}),tn(n,"overflow","hidden"),tn(n,"whiteSpace","normal"),tn(n,"textAlign","center"),tn(n,t.breakpoints.up("sm"),{minWidth:160}),n)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:t.palette.text.secondary,"&$selected":{color:t.palette.primary.main},"&$disabled":{color:t.palette.text.disabled}},textColorSecondary:{color:t.palette.text.secondary,"&$selected":{color:t.palette.secondary.main},"&$disabled":{color:t.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:t.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}},c0n=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.disabled,a=o===void 0?!1:o,s=t.disableFocusRipple,l=s===void 0?!1:s,c=t.fullWidth,u=t.icon,d=t.indicator,p=t.label,h=t.onChange,g=t.onClick,m=t.onFocus,b=t.selected,y=t.selectionFollowsFocus,M=t.textColor,C=M===void 0?"inherit":M,x=t.value,w=t.wrapped,S=w===void 0?!1:w,A=fn(t,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]),z=function(R){h&&h(R,x),g&&g(R)},O=function(R){y&&!b&&h&&h(R,x),m&&m(R)};return v.createElement(Rz,Y({focusRipple:!l,className:$t(r.root,r["textColor".concat($r(C))],i,a&&r.disabled,b&&r.selected,p&&u&&r.labelIcon,c&&r.fullWidth,S&&r.wrapped),ref:n,role:"tab","aria-selected":b,disabled:a,onClick:z,onFocus:O,tabIndex:b?0:-1},A),v.createElement("span",{className:r.wrapper},u,p),d)});const KN=or(l0n,{name:"MuiTab"})(c0n);var u0n=function(t){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:tn({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),regular:t.mixins.toolbar,dense:{minHeight:48}}},d0n=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"div":o,s=t.disableGutters,l=s===void 0?!1:s,c=t.variant,u=c===void 0?"regular":c,d=fn(t,["classes","className","component","disableGutters","variant"]);return v.createElement(a,Y({className:$t(r.root,r[u],i,!l&&r.gutters),ref:n},d))});const N6=or(u0n,{name:"MuiToolbar"})(d0n),p0n=Ui(v.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),h0n=Ui(v.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));var CE;function Lat(){if(CE)return CE;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),CE="reverse",e.scrollLeft>0?CE="default":(e.scrollLeft=1,e.scrollLeft===0&&(CE="negative")),document.body.removeChild(e),CE}function SPe(e,t){var n=e.scrollLeft;if(t!=="rtl")return n;var r=Lat();switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function f0n(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function g0n(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},o=r.ease,a=o===void 0?f0n:o,s=r.duration,l=s===void 0?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},h=function g(m){if(d){i(new Error("Animation cancelled"));return}c===null&&(c=m);var b=Math.min(1,(m-c)/l);if(t[e]=a(b)*(n-u)+u,b>=1){requestAnimationFrame(function(){i(null)});return}requestAnimationFrame(g)};return u===n?(i(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}var m0n={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function v0n(e){var t=e.onChange,n=fn(e,["onChange"]),r=v.useRef(),i=v.useRef(null),o=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return v.useEffect(function(){var a=$y(function(){var s=r.current;o(),s!==r.current&&t(r.current)});return window.addEventListener("resize",a),function(){a.clear(),window.removeEventListener("resize",a)}},[t]),v.useEffect(function(){o(),t(r.current)},[t]),v.createElement("div",Y({style:m0n,ref:i},n))}var b0n=function(t){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},colorPrimary:{backgroundColor:t.palette.primary.main},colorSecondary:{backgroundColor:t.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}},y0n=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=t.orientation,s=fn(t,["classes","className","color","orientation"]);return v.createElement("span",Y({className:$t(r.root,r["color".concat($r(o))],i,a==="vertical"&&r.vertical),ref:n},s))});const M0n=or(b0n,{name:"PrivateTabIndicator"})(y0n);var C0n={root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},x0n=v.createElement(p0n,{fontSize:"small"}),w0n=v.createElement(h0n,{fontSize:"small"}),S0n=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.direction,a=t.orientation,s=t.disabled,l=fn(t,["classes","className","direction","orientation","disabled"]);return v.createElement(Rz,Y({component:"div",className:$t(r.root,i,s&&r.disabled,a==="vertical"&&r.vertical),ref:n,role:null,tabIndex:null},l),o==="left"?x0n:w0n)});const A0n=or(C0n,{name:"MuiTabScrollButton"})(S0n);var O0n=function(t){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:tn({},t.breakpoints.down("xs"),{display:"none"}),indicator:{}}},z0n=v.forwardRef(function(t,n){var r=t["aria-label"],i=t["aria-labelledby"],o=t.action,a=t.centered,s=a===void 0?!1:a,l=t.children,c=t.classes,u=t.className,d=t.component,p=d===void 0?"div":d,h=t.indicatorColor,g=h===void 0?"secondary":h,m=t.onChange,b=t.orientation,y=b===void 0?"horizontal":b,M=t.ScrollButtonComponent,C=M===void 0?A0n:M,x=t.scrollButtons,w=x===void 0?"auto":x,S=t.selectionFollowsFocus,A=t.TabIndicatorProps,z=A===void 0?{}:A,O=t.TabScrollButtonProps,T=t.textColor,R=T===void 0?"inherit":T,P=t.value,F=t.variant,N=F===void 0?"standard":F,L=fn(t,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),W=ql(),j=N==="scrollable",V=W.direction==="rtl",G=y==="vertical",q=G?"scrollTop":"scrollLeft",$=G?"top":"left",U=G?"bottom":"right",X=G?"clientHeight":"clientWidth",Q=G?"height":"width",re=v.useState(!1),ee=re[0],se=re[1],pe=v.useState({}),te=pe[0],ce=pe[1],oe=v.useState({start:!1,end:!1}),ae=oe[0],ne=oe[1],le=v.useState({overflow:"hidden",marginBottom:null}),he=le[0],be=le[1],me=new Map,Me=v.useRef(null),Oe=v.useRef(null),de=function(){var it=Me.current,Ft;if(it){var Dt=it.getBoundingClientRect();Ft={clientWidth:it.clientWidth,scrollLeft:it.scrollLeft,scrollTop:it.scrollTop,scrollLeftNormalized:SPe(it,W.direction),scrollWidth:it.scrollWidth,top:Dt.top,bottom:Dt.bottom,left:Dt.left,right:Dt.right}}var Qn;if(it&&P!==!1){var ir=Oe.current.children;if(ir.length>0){var Hn=ir[me.get(P)];Qn=Hn?Hn.getBoundingClientRect():null}}return{tabsMeta:Ft,tabMeta:Qn}},ie=bs(function(){var et,it=de(),Ft=it.tabsMeta,Dt=it.tabMeta,Qn=0;if(Dt&&Ft)if(G)Qn=Dt.top-Ft.top+Ft.scrollTop;else{var ir=V?Ft.scrollLeftNormalized+Ft.clientWidth-Ft.scrollWidth:Ft.scrollLeft;Qn=Dt.left-Ft.left+ir}var Hn=(et={},tn(et,$,Qn),tn(et,Q,Dt?Dt[Q]:0),et);if(isNaN(te[$])||isNaN(te[Q]))ce(Hn);else{var Zn=Math.abs(te[$]-Hn[$]),Br=Math.abs(te[Q]-Hn[Q]);(Zn>=1||Br>=1)&&ce(Hn)}}),ue=function(it){g0n(q,Me.current,it)},Ae=function(it){var Ft=Me.current[q];G?Ft+=it:(Ft+=it*(V?-1:1),Ft*=V&&Lat()==="reverse"?-1:1),ue(Ft)},Ce=function(){Ae(-Me.current[X])},Ee=function(){Ae(Me.current[X])},Ge=v.useCallback(function(et){be({overflow:null,marginBottom:-et})},[]),_e=function(){var it={};it.scrollbarSizeListener=j?v.createElement(v0n,{className:c.scrollable,onChange:Ge}):null;var Ft=ae.start||ae.end,Dt=j&&(w==="auto"&&Ft||w==="desktop"||w==="on");return it.scrollButtonStart=Dt?v.createElement(C,Y({orientation:y,direction:V?"right":"left",onClick:Ce,disabled:!ae.start,className:$t(c.scrollButtons,w!=="on"&&c.scrollButtonsDesktop)},O)):null,it.scrollButtonEnd=Dt?v.createElement(C,Y({orientation:y,direction:V?"left":"right",onClick:Ee,disabled:!ae.end,className:$t(c.scrollButtons,w!=="on"&&c.scrollButtonsDesktop)},O)):null,it},Ie=bs(function(){var et=de(),it=et.tabsMeta,Ft=et.tabMeta;if(!(!Ft||!it)){if(Ft[$]<it[$]){var Dt=it[q]+(Ft[$]-it[$]);ue(Dt)}else if(Ft[U]>it[U]){var Qn=it[q]+(Ft[U]-it[U]);ue(Qn)}}}),Le=bs(function(){if(j&&w!=="off"){var et=Me.current,it=et.scrollTop,Ft=et.scrollHeight,Dt=et.clientHeight,Qn=et.scrollWidth,ir=et.clientWidth,Hn,Zn;if(G)Hn=it>1,Zn=it<Ft-Dt-1;else{var Br=SPe(Me.current,W.direction);Hn=V?Br<Qn-ir-1:Br>1,Zn=V?Br>1:Br<Qn-ir-1}(Hn!==ae.start||Zn!==ae.end)&&ne({start:Hn,end:Zn})}});v.useEffect(function(){var et=$y(function(){ie(),Le()}),it=eQ(Me.current);return it.addEventListener("resize",et),function(){et.clear(),it.removeEventListener("resize",et)}},[ie,Le]);var we=v.useCallback($y(function(){Le()}));v.useEffect(function(){return function(){we.clear()}},[we]),v.useEffect(function(){se(!0)},[]),v.useEffect(function(){ie(),Le()}),v.useEffect(function(){Ie()},[Ie,te]),v.useImperativeHandle(o,function(){return{updateIndicator:ie,updateScrollButtons:Le}},[ie,Le]);var ve=v.createElement(M0n,Y({className:c.indicator,orientation:y,color:g},z,{style:Y({},te,z.style)})),De=0,ze=v.Children.map(l,function(et){if(!v.isValidElement(et))return null;var it=et.props.value===void 0?De:et.props.value;me.set(it,De);var Ft=it===P;return De+=1,v.cloneElement(et,{fullWidth:N==="fullWidth",indicator:Ft&&!ee&&ve,selected:Ft,selectionFollowsFocus:S,onChange:m,textColor:R,value:it})}),Ve=function(it){var Ft=it.target,Dt=Ft.getAttribute("role");if(Dt==="tab"){var Qn=null,ir=y!=="vertical"?"ArrowLeft":"ArrowUp",Hn=y!=="vertical"?"ArrowRight":"ArrowDown";switch(y!=="vertical"&&W.direction==="rtl"&&(ir="ArrowRight",Hn="ArrowLeft"),it.key){case ir:Qn=Ft.previousElementSibling||Oe.current.lastChild;break;case Hn:Qn=Ft.nextElementSibling||Oe.current.firstChild;break;case"Home":Qn=Oe.current.firstChild;break;case"End":Qn=Oe.current.lastChild;break}Qn!==null&&(Qn.focus(),it.preventDefault())}},Ke=_e();return v.createElement(p,Y({className:$t(c.root,u,G&&c.vertical),ref:n},L),Ke.scrollButtonStart,Ke.scrollbarSizeListener,v.createElement("div",{className:$t(c.scroller,j?c.scrollable:c.fixed),style:he,ref:Me,onScroll:we},v.createElement("div",{"aria-label":r,"aria-labelledby":i,className:$t(c.flexContainer,G&&c.flexContainerVertical,s&&!j&&c.centered),onKeyDown:Ve,ref:Oe,role:"tablist"},ze),ee&&ve),Ke.scrollButtonEnd)});const _at=or(O0n,{name:"MuiTabs"})(z0n);var T0n={standard:D6,filled:aat,outlined:vat},E0n={root:{}},R0n=v.forwardRef(function(t,n){var r=t.autoComplete,i=t.autoFocus,o=i===void 0?!1:i,a=t.children,s=t.classes,l=t.className,c=t.color,u=c===void 0?"primary":c,d=t.defaultValue,p=t.disabled,h=p===void 0?!1:p,g=t.error,m=g===void 0?!1:g,b=t.FormHelperTextProps,y=t.fullWidth,M=y===void 0?!1:y,C=t.helperText,x=t.hiddenLabel,w=t.id,S=t.InputLabelProps,A=t.inputProps,z=t.InputProps,O=t.inputRef,T=t.label,R=t.multiline,P=R===void 0?!1:R,F=t.name,N=t.onBlur,L=t.onChange,W=t.onFocus,j=t.placeholder,V=t.required,G=V===void 0?!1:V,q=t.rows,$=t.rowsMax,U=t.maxRows,X=t.minRows,Q=t.select,re=Q===void 0?!1:Q,ee=t.SelectProps,se=t.type,pe=t.value,te=t.variant,ce=te===void 0?"standard":te,oe=fn(t,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),ae={};if(ce==="outlined"&&(S&&typeof S.shrink<"u"&&(ae.notched=S.shrink),T)){var ne,le=(ne=S?.required)!==null&&ne!==void 0?ne:G;ae.label=v.createElement(v.Fragment,null,T,le&&" *")}re&&((!ee||!ee.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);var he=C&&w?"".concat(w,"-helper-text"):void 0,be=T&&w?"".concat(w,"-label"):void 0,me=T0n[ce],Me=v.createElement(me,Y({"aria-describedby":he,autoComplete:r,autoFocus:o,defaultValue:d,fullWidth:M,multiline:P,name:F,rows:q,rowsMax:$,maxRows:U,minRows:X,type:se,value:pe,id:w,inputRef:O,onBlur:N,onChange:L,onFocus:W,placeholder:j,inputProps:A},ae,z));return v.createElement(ja,Y({className:$t(s.root,l),disabled:h,error:m,fullWidth:M,hiddenLabel:x,ref:n,required:G,color:u,variant:ce},oe),T&&v.createElement(ol,Y({htmlFor:w,id:be},S),T),re?v.createElement(cs,Y({"aria-describedby":he,id:w,labelId:be,value:pe,input:Me},ee),a):Me,C&&v.createElement(oQ,Y({id:he},b),C))});const je=or(E0n,{name:"MuiTextField"})(R0n);function APe(e){return Math.round(e*1e5)/1e5}function I0n(){return{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}}}var P0n=function(t){return{popper:{zIndex:t.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:I0n(),tooltip:{backgroundColor:Ho(t.palette.grey[700],.9),borderRadius:t.shape.borderRadius,color:t.palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(10),lineHeight:"".concat(APe(14/10),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Ho(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(APe(16/14),"em"),fontWeight:t.typography.fontWeightRegular},tooltipPlacementLeft:tn({transformOrigin:"right center",margin:"0 24px "},t.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:tn({transformOrigin:"left center",margin:"0 24px"},t.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:tn({transformOrigin:"center bottom",margin:"24px 0"},t.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:tn({transformOrigin:"center top",margin:"24px 0"},t.breakpoints.up("sm"),{margin:"14px 0"})}},g8=!1,Cie=null,D0n=v.forwardRef(function(t,n){var r=t.arrow,i=r===void 0?!1:r,o=t.children,a=t.classes,s=t.disableFocusListener,l=s===void 0?!1:s,c=t.disableHoverListener,u=c===void 0?!1:c,d=t.disableTouchListener,p=d===void 0?!1:d,h=t.enterDelay,g=h===void 0?100:h,m=t.enterNextDelay,b=m===void 0?0:m,y=t.enterTouchDelay,M=y===void 0?700:y,C=t.id,x=t.interactive,w=x===void 0?!1:x,S=t.leaveDelay,A=S===void 0?0:S,z=t.leaveTouchDelay,O=z===void 0?1500:z,T=t.onClose,R=t.onOpen,P=t.open,F=t.placement,N=F===void 0?"bottom":F,L=t.PopperComponent,W=L===void 0?Dat:L,j=t.PopperProps,V=t.title,G=t.TransitionComponent,q=G===void 0?aQ:G,$=t.TransitionProps,U=fn(t,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),X=ql(),Q=v.useState(),re=Q[0],ee=Q[1],se=v.useState(null),pe=se[0],te=se[1],ce=v.useRef(!1),oe=v.useRef(),ae=v.useRef(),ne=v.useRef(),le=v.useRef(),he=cb({controlled:P,default:!1,name:"Tooltip",state:"open"}),be=Xu(he,2),me=be[0],Me=be[1],Oe=me,de=zMe(C);v.useEffect(function(){return function(){clearTimeout(oe.current),clearTimeout(ae.current),clearTimeout(ne.current),clearTimeout(le.current)}},[]);var ie=function(Fe){clearTimeout(Cie),g8=!0,Me(!0),R&&R(Fe)},ue=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(He){var Xe=o.props;He.type==="mouseover"&&Xe.onMouseOver&&Fe&&Xe.onMouseOver(He),!(ce.current&&He.type!=="touchstart")&&(re&&re.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(ne.current),g||g8&&b?(He.persist(),ae.current=setTimeout(function(){ie(He)},g8?b:g)):ie(He))}},Ae=nQ(),Ce=Ae.isFocusVisible,Ee=Ae.onBlurVisible,Ge=Ae.ref,_e=v.useState(!1),Ie=_e[0],Le=_e[1],we=function(){Ie&&(Le(!1),Ee())},ve=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(He){re||ee(He.currentTarget),Ce(He)&&(Le(!0),ue()(He));var Xe=o.props;Xe.onFocus&&Fe&&Xe.onFocus(He)}},De=function(Fe){clearTimeout(Cie),Cie=setTimeout(function(){g8=!1},800+A),Me(!1),T&&T(Fe),clearTimeout(oe.current),oe.current=setTimeout(function(){ce.current=!1},X.transitions.duration.shortest)},ze=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(He){var Xe=o.props;He.type==="blur"&&(Xe.onBlur&&Fe&&Xe.onBlur(He),we()),He.type==="mouseleave"&&Xe.onMouseLeave&&He.currentTarget===re&&Xe.onMouseLeave(He),clearTimeout(ae.current),clearTimeout(ne.current),He.persist(),ne.current=setTimeout(function(){De(He)},A)}},Ve=function(Fe){ce.current=!0;var He=o.props;He.onTouchStart&&He.onTouchStart(Fe)},Ke=function(Fe){Ve(Fe),clearTimeout(ne.current),clearTimeout(oe.current),clearTimeout(le.current),Fe.persist(),le.current=setTimeout(function(){ue()(Fe)},M)},et=function(Fe){o.props.onTouchEnd&&o.props.onTouchEnd(Fe),clearTimeout(le.current),clearTimeout(ne.current),Fe.persist(),ne.current=setTimeout(function(){De(Fe)},O)},it=Ba(ee,n),Ft=Ba(Ge,it),Dt=v.useCallback(function(vr){Uy(Ft,Bl.findDOMNode(vr))},[Ft]),Qn=Ba(o.ref,Dt);V===""&&(Oe=!1);var ir=!Oe&&!u,Hn=Y({"aria-describedby":Oe?de:null,title:ir&&typeof V=="string"?V:null},U,o.props,{className:$t(U.className,o.props.className),onTouchStart:Ve,ref:Qn}),Zn={};p||(Hn.onTouchStart=Ke,Hn.onTouchEnd=et),u||(Hn.onMouseOver=ue(),Hn.onMouseLeave=ze(),w&&(Zn.onMouseOver=ue(!1),Zn.onMouseLeave=ze(!1))),l||(Hn.onFocus=ve(),Hn.onBlur=ze(),w&&(Zn.onFocus=ve(!1),Zn.onBlur=ze(!1)));var Br=v.useMemo(function(){return Xx({popperOptions:{modifiers:{arrow:{enabled:!!pe,element:pe}}}},j)},[pe,j]);return v.createElement(v.Fragment,null,v.cloneElement(o,Hn),v.createElement(W,Y({className:$t(a.popper,w&&a.popperInteractive,i&&a.popperArrow),placement:N,anchorEl:re,open:re?Oe:!1,id:Hn["aria-describedby"],transition:!0},Zn,Br),function(vr){var Fe=vr.placement,He=vr.TransitionProps;return v.createElement(q,Y({timeout:X.transitions.duration.shorter},He,$),v.createElement("div",{className:$t(a.tooltip,a["tooltipPlacement".concat($r(Fe.split("-")[0]))],ce.current&&a.touch,i&&a.tooltipArrow)},V,i?v.createElement("span",{className:a.arrow,ref:te}):null))}))});const ls=or(P0n,{name:"MuiTooltip",flip:!1})(D0n);class TD{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const AW=typeof window>"u"||"Deno"in window;function Kh(){}function k0n(e,t){return typeof e=="function"?e(t):e}function afe(e){return typeof e=="number"&&e>=0&&e!==1/0}function Nat(e,t){return Math.max(e+(t||0)-Date.now(),0)}function J5(e,t,n){return F6(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function L0n(e,t,n){return F6(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function LC(e,t,n){return F6(e)?[{...t,queryKey:e},n]:[e||{},t]}function OPe(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(F6(a)){if(r){if(t.queryHash!==BMe(a,t.options))return!1}else if(!r9(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function zPe(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(F6(o)){if(!t.options.mutationKey)return!1;if(n){if(sO(t.options.mutationKey)!==sO(o))return!1}else if(!r9(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function BMe(e,t){return(t?.queryKeyHashFn||sO)(e)}function sO(e){return JSON.stringify(e,(t,n)=>sfe(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function r9(e,t){return Fat(e,t)}function Fat(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Fat(e[n],t[n])):!1}function Wat(e,t){if(e===t)return e;const n=TPe(e)&&TPe(t);if(n||sfe(e)&&sfe(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let s=0;for(let l=0;l<o;l++){const c=n?l:i[l];a[c]=Wat(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function i9(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function TPe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sfe(e){if(!EPe(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!EPe(n)||!n.hasOwnProperty("isPrototypeOf"))}function EPe(e){return Object.prototype.toString.call(e)==="[object Object]"}function F6(e){return Array.isArray(e)}function qat(e){return new Promise(t=>{setTimeout(t,e)})}function RPe(e){qat(0).then(e)}function _0n(){if(typeof AbortController=="function")return new AbortController}function lfe(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Wat(e,t):t}class N0n extends TD{constructor(){super(),this.setup=t=>{if(!AW&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const o9=new N0n,IPe=["online","offline"];class F0n extends TD{constructor(){super(),this.setup=t=>{if(!AW&&window.addEventListener){const n=()=>t();return IPe.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{IPe.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const a9=new F0n;function W0n(e){return Math.min(1e3*2**e,3e4)}function cQ(e){return(e??"online")==="online"?a9.isOnline():!0}class Bat{constructor(t){this.revert=t?.revert,this.silent=t?.silent}}function o7(e){return e instanceof Bat}function jat(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((b,y)=>{o=b,a=y}),l=b=>{r||(h(new Bat(b)),e.abort==null||e.abort())},c=()=>{t=!0},u=()=>{t=!1},d=()=>!o9.isFocused()||e.networkMode!=="always"&&!a9.isOnline(),p=b=>{r||(r=!0,e.onSuccess==null||e.onSuccess(b),i?.(),o(b))},h=b=>{r||(r=!0,e.onError==null||e.onError(b),i?.(),a(b))},g=()=>new Promise(b=>{i=y=>{const M=r||!d();return M&&b(y),M},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let b;try{b=e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(p).catch(y=>{var M,C;if(r)return;const x=(M=e.retry)!=null?M:3,w=(C=e.retryDelay)!=null?C:W0n,S=typeof w=="function"?w(n,y):w,A=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,y);if(t||!A){h(y);return}n++,e.onFail==null||e.onFail(n,y),qat(S).then(()=>{if(d())return g()}).then(()=>{t?h(y):m()})})};return cQ(e.networkMode)?m():g().then(m),{promise:s,cancel:l,continue:()=>i?.()?s:Promise.resolve(),cancelRetry:c,continueRetry:u}}const jMe=console;function q0n(){let e=[],t=0,n=u=>{u()},r=u=>{u()};const i=u=>{let d;t++;try{d=u()}finally{t--,t||s()}return d},o=u=>{t?e.push(u):RPe(()=>{n(u)})},a=u=>(...d)=>{o(()=>{u(...d)})},s=()=>{const u=e;e=[],u.length&&RPe(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:a,schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u}}}const rc=q0n();class Hat{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),afe(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(AW?1/0:300*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class B0n extends Hat{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||jMe,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||j0n(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=lfe(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Kh).catch(Kh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Nat(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(g=>g.options.queryFn);h&&this.setOptions(h.options)}const a=_0n(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(l(u),(r=this.options.behavior)==null||r.onFetch(u),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=u.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=u.fetchOptions)==null?void 0:d.meta})}const p=h=>{if(o7(h)&&h.silent||this.dispatch({type:"error",error:h}),!o7(h)){var g,m,b,y;(g=(m=this.cache.config).onError)==null||g.call(m,h,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=jat({fn:u.fetchFn,abort:a?.abort.bind(a),onSuccess:h=>{var g,m,b,y;if(typeof h>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(g=(m=this.cache.config).onSuccess)==null||g.call(m,h,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(h,g)=>{this.dispatch({type:"failed",failureCount:h,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,o;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:cQ(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return o7(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),rc.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function j0n(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class H0n extends TD{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const o=n.queryKey,a=(i=n.queryHash)!=null?i:BMe(o,n);let s=this.get(a);return s||(s=new B0n({cache:this,logger:t.getLogger(),queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){rc.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=LC(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>OPe(r,i))}findAll(t,n){const[r]=LC(t,n);return Object.keys(r).length>0?this.queries.filter(i=>OPe(r,i)):this.queries}notify(t){rc.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){rc.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){rc.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class V0n extends Hat{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||jMe,this.observers=[],this.state=t.state||Vat(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var A;return this.retryer=jat({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(z,O)=>{this.dispatch({type:"failed",failureCount:z,error:O})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(A=this.options.retry)!=null?A:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,o,a,s,l,c,u;if(!n){var d,p,h,g;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(p=this.mutationCache.config).onMutate)==null?void 0:d.call(p,this.state.variables,this));const z=await((h=(g=this.options).onMutate)==null?void 0:h.call(g,this.state.variables));z!==this.state.context&&this.dispatch({type:"loading",context:z,variables:this.state.variables})}const A=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,A,this.state.variables,this.state.context,this)),await((o=(a=this.options).onSuccess)==null?void 0:o.call(a,A,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,A,null,this.state.variables,this.state.context,this)),await((c=(u=this.options).onSettled)==null?void 0:c.call(u,A,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:A}),A}catch(A){try{var m,b,y,M,C,x,w,S;throw await((m=(b=this.mutationCache.config).onError)==null?void 0:m.call(b,A,this.state.variables,this.state.context,this)),await((y=(M=this.options).onError)==null?void 0:y.call(M,A,this.state.variables,this.state.context)),await((C=(x=this.mutationCache.config).onSettled)==null?void 0:C.call(x,void 0,A,this.state.variables,this.state.context,this)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,void 0,A,this.state.variables,this.state.context)),A}finally{this.dispatch({type:"error",error:A})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!cQ(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),rc.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Vat(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class G0n extends TD{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new V0n({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){rc.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>zPe(t,n))}findAll(t){return this.mutations.filter(n=>zPe(t,n))}notify(t){rc.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return rc.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(Kh)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function $0n(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,c=l?.pageParam,u=l?.direction==="forward",d=l?.direction==="backward",p=((o=e.state.data)==null?void 0:o.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[];let g=h,m=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var A;if((A=e.signal)!=null&&A.aborted)m=!0;else{var z;(z=e.signal)==null||z.addEventListener("abort",()=>{m=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),M=(S,A,z,O)=>(g=O?[A,...g]:[...g,A],O?[z,...S]:[...S,z]),C=(S,A,z,O)=>{if(m)return Promise.reject("Cancelled");if(typeof z>"u"&&!A&&S.length)return Promise.resolve(S);const T={queryKey:e.queryKey,pageParam:z,meta:e.options.meta};b(T);const R=y(T);return Promise.resolve(R).then(F=>M(S,z,F,O))};let x;if(!p.length)x=C([]);else if(u){const S=typeof c<"u",A=S?c:PPe(e.options,p);x=C(p,S,A)}else if(d){const S=typeof c<"u",A=S?c:U0n(e.options,p);x=C(p,S,A,!0)}else{g=[];const S=typeof e.options.getNextPageParam>"u";x=(s&&p[0]?s(p[0],0,p):!0)?C([],S,h[0]):Promise.resolve(M([],h[0],p[0]));for(let z=1;z<p.length;z++)x=x.then(O=>{if(s&&p[z]?s(p[z],z,p):!0){const R=S?h[z]:PPe(e.options,O);return C(O,S,R)}return Promise.resolve(M(O,h[z],p[z]))})}return x.then(S=>({pages:S,pageParams:g}))}}}}function PPe(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function U0n(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class X0n{constructor(t={}){this.queryCache=t.queryCache||new H0n,this.mutationCache=t.mutationCache||new G0n,this.logger=t.logger||jMe,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=o9.subscribe(()=>{o9.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=a9.subscribe(()=>{a9.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=LC(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=J5(t,n,r),o=this.getQueryData(i.queryKey);return o?Promise.resolve(o):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),o=i?.state.data,a=k0n(n,o);if(typeof a>"u")return;const s=J5(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return rc.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=LC(t,n),i=this.queryCache;rc.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(t,n,r){const[i,o]=LC(t,n,r),a=this.queryCache,s={type:"active",...i};return rc.batch(()=>(a.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(s,o)))}cancelQueries(t,n,r){const[i,o={}]=LC(t,n,r);typeof o.revert>"u"&&(o.revert=!0);const a=rc.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(o)));return Promise.all(a).then(Kh).catch(Kh)}invalidateQueries(t,n,r){const[i,o]=LC(t,n,r);return rc.batch(()=>{var a,s;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(a=(s=i.refetchType)!=null?s:i.type)!=null?a:"active"};return this.refetchQueries(l,o)})}refetchQueries(t,n,r){const[i,o]=LC(t,n,r),a=rc.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,{...o,cancelRefetch:(c=o?.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}})}));let s=Promise.all(a).then(Kh);return o!=null&&o.throwOnError||(s=s.catch(Kh)),s}fetchQuery(t,n,r){const i=J5(t,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Kh).catch(Kh)}fetchInfiniteQuery(t,n,r){const i=J5(t,n,r);return i.behavior=$0n(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Kh).catch(Kh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>sO(t)===sO(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>r9(t,r.queryKey));return n?.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>sO(t)===sO(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>r9(t,r.mutationKey));return n?.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t?.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=BMe(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t?.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Y0n extends TD{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),DPe(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cfe(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cfe(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),i9(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const o=this.hasListeners();o&&kPe(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return Q0n(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Kh)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),AW||this.currentResult.isStale||!afe(this.options.staleTime))return;const n=Nat(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(AW||this.options.enabled===!1||!afe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||o9.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,o=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=t!==r,c=l?t.state:this.currentQueryInitialState,u=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:p,error:h,errorUpdatedAt:g,fetchStatus:m,status:b}=d,y=!1,M=!1,C;if(n._optimisticResults){const z=this.hasListeners(),O=!z&&DPe(t,n),T=z&&kPe(t,r,n,i);(O||T)&&(m=cQ(t.options.networkMode)?"fetching":"paused",p||(b="loading")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&u!=null&&u.isSuccess&&b!=="error")C=u.data,p=u.dataUpdatedAt,b=u.status,y=!0;else if(n.select&&typeof d.data<"u")if(o&&d.data===a?.data&&n.select===this.selectFn)C=this.selectResult;else try{this.selectFn=n.select,C=n.select(d.data),C=lfe(o?.data,C,n),this.selectResult=C,this.selectError=null}catch(z){this.selectError=z}else C=d.data;if(typeof n.placeholderData<"u"&&typeof C>"u"&&b==="loading"){let z;if(o!=null&&o.isPlaceholderData&&n.placeholderData===s?.placeholderData)z=o.data;else if(z=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof z<"u")try{z=n.select(z),this.selectError=null}catch(O){this.selectError=O}typeof z<"u"&&(b="success",C=lfe(o?.data,z,n),M=!0)}this.selectError&&(h=this.selectError,C=this.selectResult,g=Date.now(),b="error");const x=m==="fetching",w=b==="loading",S=b==="error";return{status:b,fetchStatus:m,isLoading:w,isSuccess:b==="success",isError:S,isInitialLoading:w&&x,data:C,dataUpdatedAt:p,error:h,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:M,isPreviousData:y,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:HMe(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,i9(r,n))return;this.currentResult=r;const i={cache:!0},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const u=c;return this.currentResult[u]!==n[u]&&l.has(u)})};t?.listeners!==!1&&o()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!o7(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){rc.batch(()=>{if(t.onSuccess){var n,r,i,o;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(o=this.options).onSettled)==null||i.call(o,this.currentResult.data,null)}else if(t.onError){var a,s,l,c;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function K0n(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function DPe(e,t){return K0n(e,t)||e.state.dataUpdatedAt>0&&cfe(e,t,t.refetchOnMount)}function cfe(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&HMe(e,t)}return!1}function kPe(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&HMe(e,n)}function HMe(e,t){return e.isStaleByTime(t.staleTime)}function Q0n(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!i9(e.getCurrentResult(),t)}let Z0n=class extends TD{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),i9(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Vat(),n=t.status==="loading",r={...t,isLoading:n,isPending:n,isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(t){rc.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,o;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(o=this.mutateOptions).onSettled)==null||i.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,s,l,c;(a=(s=this.mutateOptions).onError)==null||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(c=this.mutateOptions).onSettled)==null||l.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)})})}};var xie={exports:{}},wie={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var LPe;function J0n(){if(LPe)return wie;LPe=1;var e=Wr();function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var h=p(),g=r({inst:{value:h,getSnapshot:p}}),m=g[0].inst,b=g[1];return o(function(){m.value=h,m.getSnapshot=p,l(m)&&b({inst:m})},[d,h,p]),i(function(){return l(m)&&b({inst:m}),d(function(){l(m)&&b({inst:m})})},[d]),a(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!n(d,h)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return wie.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,wie}var _Pe;function Gat(){return _Pe||(_Pe=1,xie.exports=J0n()),xie.exports}var VMe=Gat();const $at=VMe.useSyncExternalStore,NPe=v.createContext(void 0),Uat=v.createContext(!1);function Xat(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=NPe),window.ReactQueryClientContext):NPe)}const Gf=({context:e}={})=>{const t=v.useContext(Xat(e,v.useContext(Uat)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},e1n=({client:e,children:t,context:n,contextSharing:r=!1})=>{v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=Xat(n,r);return v.createElement(Uat.Provider,{value:!n&&r},v.createElement(i.Provider,{value:e},t))},Yat=v.createContext(!1),t1n=()=>v.useContext(Yat);Yat.Provider;function n1n(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const r1n=v.createContext(n1n()),i1n=()=>v.useContext(r1n);function Kat(e,t){return typeof e=="function"?e(...t):!!e}const o1n=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},a1n=e=>{v.useEffect(()=>{e.clearReset()},[e])},s1n=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Kat(n,[e.error,r]),l1n=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},c1n=(e,t)=>e.isLoading&&e.isFetching&&!t,u1n=(e,t,n)=>e?.suspense&&c1n(t,n),d1n=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function p1n(e,t){const n=Gf({context:e.context}),r=t1n(),i=i1n(),o=n.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",o.onError&&(o.onError=rc.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=rc.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=rc.batchCalls(o.onSettled)),l1n(o),o1n(o,i),a1n(i);const[a]=v.useState(()=>new t(n,o)),s=a.getOptimisticResult(o);if($at(v.useCallback(l=>{const c=r?()=>{}:a.subscribe(rc.batchCalls(l));return a.updateResult(),c},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),v.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),u1n(o,s,r))throw d1n(o,a,i);if(s1n({result:s,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return o.notifyOnChangeProps?s:a.trackResult(s)}function jl(e,t,n){const r=J5(e,t,n);return p1n(r,Y0n)}function ca(e,t,n){const r=L0n(e,t,n),i=Gf({context:r.context}),[o]=v.useState(()=>new Z0n(i,r));v.useEffect(()=>{o.setOptions(r)},[o,r]);const a=$at(v.useCallback(l=>o.subscribe(rc.batchCalls(l)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),s=v.useCallback((l,c)=>{o.mutate(l,c).catch(h1n)},[o]);if(a.error&&Kat(o.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function h1n(){}var u4={},Sie={exports:{}},FPe;function ri(){return FPe||(FPe=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Sie)),Sie.exports}var Aie={exports:{}},Oie={exports:{}},WPe;function f1n(){return WPe||(WPe=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Oie)),Oie.exports}var qPe;function ii(){return qPe||(qPe=1,(function(e){var t=f1n().default;function n(r,i){if(typeof WeakMap=="function")var o=new WeakMap,a=new WeakMap;return(e.exports=n=function(l,c){if(!c&&l&&l.__esModule)return l;var u,d,p={__proto__:null,default:l};if(l===null||t(l)!="object"&&typeof l!="function")return p;if(u=c?a:o){if(u.has(l))return u.get(l);u.set(l,p)}for(var h in l)h!=="default"&&{}.hasOwnProperty.call(l,h)&&((d=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(l,h))&&(d.get||d.set)?u(p,h,d):p[h]=l[h]);return p},e.exports.__esModule=!0,e.exports.default=e.exports)(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Aie)),Aie.exports}var zie={};const g1n=hK(nln);var BPe;function oi(){return BPe||(BPe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=g1n})(zie)),zie}var jPe;function m1n(){if(jPe)return u4;jPe=1;var e=ri(),t=ii();Object.defineProperty(u4,"__esModule",{value:!0}),u4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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"}),"Close");return u4.default=i,u4}var v1n=m1n();const uQ=qn(v1n),b1n=Ui(v.createElement("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"})),y1n=Ui(v.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),M1n=Ui(v.createElement("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"})),C1n=Ui(v.createElement("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"})),Qat=Ui(v.createElement("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"}));var x1n=function(t){var n=t.palette.type==="light"?CW:xW,r=t.palette.type==="light"?xW:CW;return{root:Y({},t.typography.body2,{borderRadius:t.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:n(t.palette.success.main,.6),backgroundColor:r(t.palette.success.main,.9),"& $icon":{color:t.palette.success.main}},standardInfo:{color:n(t.palette.info.main,.6),backgroundColor:r(t.palette.info.main,.9),"& $icon":{color:t.palette.info.main}},standardWarning:{color:n(t.palette.warning.main,.6),backgroundColor:r(t.palette.warning.main,.9),"& $icon":{color:t.palette.warning.main}},standardError:{color:n(t.palette.error.main,.6),backgroundColor:r(t.palette.error.main,.9),"& $icon":{color:t.palette.error.main}},outlinedSuccess:{color:n(t.palette.success.main,.6),border:"1px solid ".concat(t.palette.success.main),"& $icon":{color:t.palette.success.main}},outlinedInfo:{color:n(t.palette.info.main,.6),border:"1px solid ".concat(t.palette.info.main),"& $icon":{color:t.palette.info.main}},outlinedWarning:{color:n(t.palette.warning.main,.6),border:"1px solid ".concat(t.palette.warning.main),"& $icon":{color:t.palette.warning.main}},outlinedError:{color:n(t.palette.error.main,.6),border:"1px solid ".concat(t.palette.error.main),"& $icon":{color:t.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.success.main},filledInfo:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.info.main},filledWarning:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.warning.main},filledError:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},HPe={success:v.createElement(b1n,{fontSize:"inherit"}),warning:v.createElement(y1n,{fontSize:"inherit"}),error:v.createElement(M1n,{fontSize:"inherit"}),info:v.createElement(C1n,{fontSize:"inherit"})},w1n=v.createElement(Qat,{fontSize:"small"}),S1n=v.forwardRef(function(t,n){var r=t.action,i=t.children,o=t.classes,a=t.className,s=t.closeText,l=s===void 0?"Close":s,c=t.color,u=t.icon,d=t.iconMapping,p=d===void 0?HPe:d,h=t.onClose,g=t.role,m=g===void 0?"alert":g,b=t.severity,y=b===void 0?"success":b,M=t.variant,C=M===void 0?"standard":M,x=fn(t,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return v.createElement(Pt,Y({role:m,square:!0,elevation:0,className:$t(o.root,o["".concat(C).concat($r(c||y))],a),ref:n},x),u!==!1?v.createElement("div",{className:o.icon},u||p[y]||HPe[y]):null,v.createElement("div",{className:o.message},i),r!=null?v.createElement("div",{className:o.action},r):null,r==null&&h?v.createElement("div",{className:o.action},v.createElement(bn,{size:"small","aria-label":l,title:l,color:"inherit",onClick:h},w1n)):null)});const Pr=or(x1n,{name:"MuiAlert"})(S1n),dQ=Ui(v.createElement("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.9959.9959 0 00-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"})),pQ=Ui(v.createElement("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.9959.9959 0 00-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"})),hQ=Ui(v.createElement("path",{d:"M10 17l5-5-5-5v10z"})),A1n=Ui(v.createElement("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"})),pP=Ui(v.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})),O1n=Ui(v.createElement("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})),z1n=Ui(v.createElement("path",{d:"M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"})),Zat=Ui(v.createElement("path",{d:"M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"})),T1n=Ui(v.createElement("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-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"})),W6=Ui(v.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),fQ=Ui(v.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),E1n=Ui(v.createElement("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.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"})),GMe=Ui(v.createElement("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"})),Jat=Ui(v.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})),VPe=Ui(v.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),GPe=Ui(v.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),R1n=Ui(v.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"})),I1n=Ui(v.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 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.5z"})),est=Ui(v.createElement("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.1zM8 13h8v-2H8v2zm9-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-5z"})),tst=Ui(v.createElement("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"})),P1n=Ui(v.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})),nst=Ui(v.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})),D1n=Ui(v.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 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.5z"})),rst=Ui(v.createElement("path",{d:"M8 5v14l11-7z"})),k1n=Ui(v.createElement("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 19l-4.99-5zm-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 14z"})),L1n=Ui(v.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})),_1n=Ui(v.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})),gQ=Ui(v.createElement("path",{d:"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"})),N1n=Ui(v.createElement("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"})),F1n=Ui(v.createElement("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 2z"})),ist=Ui(v.createElement("path",{d:"M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"})),W1n=Ui(v.createElement("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.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})),Ro=typeof window<"u"?v.useLayoutEffect:v.useEffect;function ost(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ost(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ufe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ost(e))&&(r&&(r+=" "),r+=t);return r}function Dz(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],s=t[o];if(!s)r[o]=a||{};else if(!a)r[o]=s;else{r[o]={...s};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const c=l;r[o][c]=Dz(a[c],s[c],n)}}}else o==="className"&&n&&t.className?r.className=ufe(e?.className,t?.className):o==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}function $Me(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Dz(t.components[n].defaultProps,r)}var Tie={exports:{}},gs={};/**
 * @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 $Pe;function q1n(){if($Pe)return gs;$Pe=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case i:case r:case l:case c:case p:return m;default:switch(m=m&&m.$$typeof,m){case a:case s:case d:case u:return m;case o:return m;default:return b}}case t:return b}}}return gs.ContextConsumer=o,gs.ContextProvider=a,gs.Element=e,gs.ForwardRef=s,gs.Fragment=n,gs.Lazy=d,gs.Memo=u,gs.Portal=t,gs.Profiler=i,gs.StrictMode=r,gs.Suspense=l,gs.SuspenseList=c,gs.isContextConsumer=function(m){return g(m)===o},gs.isContextProvider=function(m){return g(m)===a},gs.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},gs.isForwardRef=function(m){return g(m)===s},gs.isFragment=function(m){return g(m)===n},gs.isLazy=function(m){return g(m)===d},gs.isMemo=function(m){return g(m)===u},gs.isPortal=function(m){return g(m)===t},gs.isProfiler=function(m){return g(m)===i},gs.isStrictMode=function(m){return g(m)===r},gs.isSuspense=function(m){return g(m)===l},gs.isSuspenseList=function(m){return g(m)===c},gs.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===r||m===l||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===u||m.$$typeof===a||m.$$typeof===o||m.$$typeof===s||m.$$typeof===h||m.getModuleId!==void 0)},gs.typeOf=g,gs}var UPe;function B1n(){return UPe||(UPe=1,Tie.exports=q1n()),Tie.exports}var ast=B1n();function jv(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 sst(e){if(v.isValidElement(e)||ast.isValidElementType(e)||!jv(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=sst(e[n])}),t}function v0(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return jv(e)&&jv(t)&&Object.keys(t).forEach(i=>{v.isValidElement(t[i])||ast.isValidElementType(t[i])?r[i]=t[i]:jv(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&jv(e[i])?r[i]=v0(e[i],t[i],n):n.clone?r[i]=jv(t[i])?sst(t[i]):t[i]:r[i]=t[i]}),r}const j1n=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function H1n(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=j1n(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-r/100}${n})`}function u(p){return a.indexOf(p)+1<a.length?c(p,a[a.indexOf(p)+1]):s(p)}function d(p){const h=a.indexOf(p);return h===0?s(a[1]):h===a.length-1?l(a[h]):c(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:o,up:s,down:l,between:c,only:u,not:d,unit:n,...i}}function Xy(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function XPe(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(i.match(o)?.[1]||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},{...t}):t}function V1n(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function G1n(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function $1n(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function n(o,a){o.up=(...s)=>t(e.breakpoints.up(...s),a),o.down=(...s)=>t(e.breakpoints.down(...s),a),o.between=(...s)=>t(e.breakpoints.between(...s),a),o.only=(...s)=>t(e.breakpoints.only(...s),a),o.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const U1n={borderRadius:4};function QN(e,t){return t?v0(e,t,{clone:!1}):e}const mQ={xs:0,sm:600,md:900,lg:1200,xl:1536},YPe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mQ[e]}px)`},X1n={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:mQ[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Yy(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||YPe;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||YPe;return Object.keys(t).reduce((a,s)=>{if(V1n(o.keys,s)){const l=G1n(r.containerQueries?r:X1n,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||mQ).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Y1n(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function KPe(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function jt(e){if(typeof e!="string")throw new Error(Xy(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vQ(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function s9(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=vQ(e,n)||r,t&&(i=t(i,r,e)),i}function kc(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=vQ(l,r)||{};return Yy(a,s,d=>{let p=s9(c,i,d);return d===p&&typeof d=="string"&&(p=s9(c,i,`${t}${d==="default"?"":jt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function K1n(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Q1n={m:"margin",p:"padding"},Z1n={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},QPe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},J1n=K1n(e=>{if(e.length>2)if(QPe[e])e=QPe[e];else return[e];const[t,n]=e.split(""),r=Q1n[t],i=Z1n[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),UMe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],XMe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...UMe,...XMe];function q6(e,t,n,r){const i=vQ(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?i.startsWith("var(")&&o===0?0:i.startsWith("var(")&&o===1?i:`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const a=Math.abs(o),s=i[a];return o>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof i=="function"?i:()=>{}}function YMe(e){return q6(e,"spacing",8)}function B6(e,t){return typeof t=="string"||t==null?t:e(t)}function epn(e,t){return n=>e.reduce((r,i)=>(r[i]=B6(t,n),r),{})}function tpn(e,t,n,r){if(!t.includes(n))return null;const i=J1n(n),o=epn(i,r),a=e[n];return Yy(e,a,o)}function lst(e,t){const n=YMe(e.theme);return Object.keys(e).map(r=>tpn(e,t,r,n)).reduce(QN,{})}function Kl(e){return lst(e,UMe)}Kl.propTypes={};Kl.filterProps=UMe;function Ql(e){return lst(e,XMe)}Ql.propTypes={};Ql.filterProps=XMe;function cst(e=8,t=YMe({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function bQ(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?QN(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function rf(e){return typeof e!="number"?e:`${e}px solid`}function $f(e,t){return kc({prop:e,themeKey:"borders",transform:t})}const npn=$f("border",rf),rpn=$f("borderTop",rf),ipn=$f("borderRight",rf),opn=$f("borderBottom",rf),apn=$f("borderLeft",rf),spn=$f("borderColor"),lpn=$f("borderTopColor"),cpn=$f("borderRightColor"),upn=$f("borderBottomColor"),dpn=$f("borderLeftColor"),ppn=$f("outline",rf),hpn=$f("outlineColor"),yQ=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=q6(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:B6(t,r)});return Yy(e,e.borderRadius,n)}return null};yQ.propTypes={};yQ.filterProps=["borderRadius"];bQ(npn,rpn,ipn,opn,apn,spn,lpn,cpn,upn,dpn,yQ,ppn,hpn);const MQ=e=>{if(e.gap!==void 0&&e.gap!==null){const t=q6(e.theme,"spacing",8),n=r=>({gap:B6(t,r)});return Yy(e,e.gap,n)}return null};MQ.propTypes={};MQ.filterProps=["gap"];const CQ=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=q6(e.theme,"spacing",8),n=r=>({columnGap:B6(t,r)});return Yy(e,e.columnGap,n)}return null};CQ.propTypes={};CQ.filterProps=["columnGap"];const xQ=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=q6(e.theme,"spacing",8),n=r=>({rowGap:B6(t,r)});return Yy(e,e.rowGap,n)}return null};xQ.propTypes={};xQ.filterProps=["rowGap"];const fpn=kc({prop:"gridColumn"}),gpn=kc({prop:"gridRow"}),mpn=kc({prop:"gridAutoFlow"}),vpn=kc({prop:"gridAutoColumns"}),bpn=kc({prop:"gridAutoRows"}),ypn=kc({prop:"gridTemplateColumns"}),Mpn=kc({prop:"gridTemplateRows"}),Cpn=kc({prop:"gridTemplateAreas"}),xpn=kc({prop:"gridArea"});bQ(MQ,CQ,xQ,fpn,gpn,mpn,vpn,bpn,ypn,Mpn,Cpn,xpn);function pI(e,t){return t==="grey"?t:e}const wpn=kc({prop:"color",themeKey:"palette",transform:pI}),Spn=kc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pI}),Apn=kc({prop:"backgroundColor",themeKey:"palette",transform:pI});bQ(wpn,Spn,Apn);function $p(e){return e<=1&&e!==0?`${e*100}%`:e}const Opn=kc({prop:"width",transform:$p}),KMe=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||mQ[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:$p(n)}};return Yy(e,e.maxWidth,t)}return null};KMe.filterProps=["maxWidth"];const zpn=kc({prop:"minWidth",transform:$p}),Tpn=kc({prop:"height",transform:$p}),Epn=kc({prop:"maxHeight",transform:$p}),Rpn=kc({prop:"minHeight",transform:$p});kc({prop:"size",cssProperty:"width",transform:$p});kc({prop:"size",cssProperty:"height",transform:$p});const Ipn=kc({prop:"boxSizing"});bQ(Opn,KMe,zpn,Tpn,Epn,Rpn,Ipn);const j6={border:{themeKey:"borders",transform:rf},borderTop:{themeKey:"borders",transform:rf},borderRight:{themeKey:"borders",transform:rf},borderBottom:{themeKey:"borders",transform:rf},borderLeft:{themeKey:"borders",transform:rf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yQ},color:{themeKey:"palette",transform:pI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pI},backgroundColor:{themeKey:"palette",transform:pI},p:{style:Ql},pt:{style:Ql},pr:{style:Ql},pb:{style:Ql},pl:{style:Ql},px:{style:Ql},py:{style:Ql},padding:{style:Ql},paddingTop:{style:Ql},paddingRight:{style:Ql},paddingBottom:{style:Ql},paddingLeft:{style:Ql},paddingX:{style:Ql},paddingY:{style:Ql},paddingInline:{style:Ql},paddingInlineStart:{style:Ql},paddingInlineEnd:{style:Ql},paddingBlock:{style:Ql},paddingBlockStart:{style:Ql},paddingBlockEnd:{style:Ql},m:{style:Kl},mt:{style:Kl},mr:{style:Kl},mb:{style:Kl},ml:{style:Kl},mx:{style:Kl},my:{style:Kl},margin:{style:Kl},marginTop:{style:Kl},marginRight:{style:Kl},marginBottom:{style:Kl},marginLeft:{style:Kl},marginX:{style:Kl},marginY:{style:Kl},marginInline:{style:Kl},marginInlineStart:{style:Kl},marginInlineEnd:{style:Kl},marginBlock:{style:Kl},marginBlockStart:{style:Kl},marginBlockEnd:{style:Kl},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:MQ},rowGap:{style:xQ},columnGap:{style:CQ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$p},maxWidth:{style:KMe},minWidth:{transform:$p},height:{transform:$p},maxHeight:{transform:$p},minHeight:{transform:$p},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 Ppn(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Dpn(e,t){return typeof e=="function"?e(t):e}function kpn(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=vQ(i,c)||{};return d?d(a):Yy(a,r,g=>{let m=s9(p,u,g);return g===m&&typeof g=="string"&&(m=s9(p,u,`${n}${g==="default"?"":jt(g)}`,g)),l===!1?m:{[l]:m}})}function t(n){const{sx:r,theme:i={},nested:o}=n||{};if(!r)return null;const a=i.unstable_sxConfig??j6;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Y1n(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const g=Dpn(c[h],i);if(g!=null)if(typeof g=="object")if(a[h])p=QN(p,e(h,g,i,a));else{const m=Yy({theme:i},g,b=>({[h]:b}));Ppn(m,g)?p[h]=t({sx:g,theme:i,nested:!0}):p=QN(p,m)}else p=QN(p,e(h,g,i,a))}),!o&&i.modularCssLayers?{"@layer sx":XPe(i,KPe(d,p))}:XPe(i,KPe(d,p))}return Array.isArray(r)?r.map(s):s(r)}return t}const hP=kpn();hP.filterProps=["sx"];function Lpn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function QMe(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e,s=H1n(n),l=cst(i);let c=v0({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...U1n,...o}},a);return c=$1n(c),c.applyStyles=Lpn,c=t.reduce((u,d)=>v0(u,d),c),c.unstable_sxConfig={...j6,...a?.unstable_sxConfig},c.unstable_sx=function(d){return hP({sx:d,theme:this})},c}function _pn(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 Npn(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 Fpn=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Npn(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=_pn(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Qd="-ms-",l9="-moz-",_a="-webkit-",ust="comm",ZMe="rule",JMe="decl",Wpn="@import",dst="@keyframes",qpn="@layer",Bpn=Math.abs,wQ=String.fromCharCode,jpn=Object.assign;function Hpn(e,t){return md(e,0)^45?(((t<<2^md(e,0))<<2^md(e,1))<<2^md(e,2))<<2^md(e,3):0}function pst(e){return e.trim()}function Vpn(e,t){return(e=t.exec(e))?e[0]:e}function Na(e,t,n){return e.replace(t,n)}function dfe(e,t){return e.indexOf(t)}function md(e,t){return e.charCodeAt(t)|0}function OW(e,t,n){return e.slice(t,n)}function _v(e){return e.length}function eCe(e){return e.length}function m8(e,t){return t.push(e),e}function Gpn(e,t){return e.map(t).join("")}var SQ=1,fP=1,hst=0,bp=0,Kc=0,ED="";function AQ(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:SQ,column:fP,length:a,return:""}}function d4(e,t){return jpn(AQ("",null,null,"",null,null,0),e,{length:-e.length},t)}function $pn(){return Kc}function Upn(){return Kc=bp>0?md(ED,--bp):0,fP--,Kc===10&&(fP=1,SQ--),Kc}function ih(){return Kc=bp<hst?md(ED,bp++):0,fP++,Kc===10&&(fP=1,SQ++),Kc}function ub(){return md(ED,bp)}function a7(){return bp}function H6(e,t){return OW(ED,e,t)}function zW(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 fst(e){return SQ=fP=1,hst=_v(ED=e),bp=0,[]}function gst(e){return ED="",e}function s7(e){return pst(H6(bp-1,pfe(e===91?e+2:e===40?e+1:e)))}function Xpn(e){for(;(Kc=ub())&&Kc<33;)ih();return zW(e)>2||zW(Kc)>3?"":" "}function Ypn(e,t){for(;--t&&ih()&&!(Kc<48||Kc>102||Kc>57&&Kc<65||Kc>70&&Kc<97););return H6(e,a7()+(t<6&&ub()==32&&ih()==32))}function pfe(e){for(;ih();)switch(Kc){case e:return bp;case 34:case 39:e!==34&&e!==39&&pfe(Kc);break;case 40:e===41&&pfe(e);break;case 92:ih();break}return bp}function Kpn(e,t){for(;ih()&&e+Kc!==57;)if(e+Kc===84&&ub()===47)break;return"/*"+H6(t,bp-1)+"*"+wQ(e===47?e:ih())}function Qpn(e){for(;!zW(ub());)ih();return H6(e,bp)}function Zpn(e){return gst(l7("",null,null,null,[""],e=fst(e),0,[0],e))}function l7(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,g=0,m=1,b=1,y=1,M=0,C="",x=i,w=o,S=r,A=C;b;)switch(g=M,M=ih()){case 40:if(g!=108&&md(A,d-1)==58){dfe(A+=Na(s7(M),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=s7(M);break;case 9:case 10:case 13:case 32:A+=Xpn(g);break;case 92:A+=Ypn(a7()-1,7);continue;case 47:switch(ub()){case 42:case 47:m8(Jpn(Kpn(ih(),a7()),t,n),l);break;default:A+="/"}break;case 123*m:s[c++]=_v(A)*y;case 125*m:case 59:case 0:switch(M){case 0:case 125:b=0;case 59+u:y==-1&&(A=Na(A,/\f/g,"")),h>0&&_v(A)-d&&m8(h>32?JPe(A+";",r,n,d-1):JPe(Na(A," ","")+";",r,n,d-2),l);break;case 59:A+=";";default:if(m8(S=ZPe(A,t,n,c,u,i,s,C,x=[],w=[],d),o),M===123)if(u===0)l7(A,t,S,S,x,o,d,s,w);else switch(p===99&&md(A,3)===110?100:p){case 100:case 108:case 109:case 115:l7(e,S,S,r&&m8(ZPe(e,S,S,0,0,i,s,C,i,x=[],d),w),i,w,d,s,r?x:w);break;default:l7(A,S,S,S,[""],w,0,s,w)}}c=u=h=0,m=y=1,C=A="",d=a;break;case 58:d=1+_v(A),h=g;default:if(m<1){if(M==123)--m;else if(M==125&&m++==0&&Upn()==125)continue}switch(A+=wQ(M),M*m){case 38:y=u>0?1:(A+="\f",-1);break;case 44:s[c++]=(_v(A)-1)*y,y=1;break;case 64:ub()===45&&(A+=s7(ih())),p=ub(),u=d=_v(C=A+=Qpn(a7())),M++;break;case 45:g===45&&_v(A)==2&&(m=0)}}return o}function ZPe(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=i===0?o:[""],h=eCe(p),g=0,m=0,b=0;g<r;++g)for(var y=0,M=OW(e,d+1,d=Bpn(m=a[g])),C=e;y<h;++y)(C=pst(m>0?p[y]+" "+M:Na(M,/&\f/g,p[y])))&&(l[b++]=C);return AQ(e,t,n,i===0?ZMe:s,l,c,u)}function Jpn(e,t,n){return AQ(e,t,n,ust,wQ($pn()),OW(e,2,-2),0)}function JPe(e,t,n,r){return AQ(e,t,n,JMe,OW(e,0,r),OW(e,r+1,-1),r)}function hI(e,t){for(var n="",r=eCe(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ehn(e,t,n,r){switch(e.type){case qpn:if(e.children.length)break;case Wpn:case JMe:return e.return=e.return||e.value;case ust:return"";case dst:return e.return=e.value+"{"+hI(e.children,r)+"}";case ZMe:e.value=e.props.join(",")}return _v(n=hI(e.children,r))?e.return=e.value+"{"+n+"}":""}function thn(e){var t=eCe(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function nhn(e){return function(t){t.root||(t=t.return)&&e(t)}}function mst(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rhn=function(t,n,r){for(var i=0,o=0;i=o,o=ub(),i===38&&o===12&&(n[r]=1),!zW(o);)ih();return H6(t,bp)},ihn=function(t,n){var r=-1,i=44;do switch(zW(i)){case 0:i===38&&ub()===12&&(n[r]=1),t[r]+=rhn(bp-1,n,r);break;case 2:t[r]+=s7(i);break;case 4:if(i===44){t[++r]=ub()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=wQ(i)}while(i=ih());return t},ohn=function(t,n){return gst(ihn(fst(t),n))},eDe=new WeakMap,ahn=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!eDe.get(r))&&!i){eDe.set(t,!0);for(var o=[],a=ohn(n,o),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},shn=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function vst(e,t){switch(Hpn(e,t)){case 5103:return _a+"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 _a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _a+e+l9+e+Qd+e+e;case 6828:case 4268:return _a+e+Qd+e+e;case 6165:return _a+e+Qd+"flex-"+e+e;case 5187:return _a+e+Na(e,/(\w+).+(:[^]+)/,_a+"box-$1$2"+Qd+"flex-$1$2")+e;case 5443:return _a+e+Qd+"flex-item-"+Na(e,/flex-|-self/,"")+e;case 4675:return _a+e+Qd+"flex-line-pack"+Na(e,/align-content|flex-|-self/,"")+e;case 5548:return _a+e+Qd+Na(e,"shrink","negative")+e;case 5292:return _a+e+Qd+Na(e,"basis","preferred-size")+e;case 6060:return _a+"box-"+Na(e,"-grow","")+_a+e+Qd+Na(e,"grow","positive")+e;case 4554:return _a+Na(e,/([^-])(transform)/g,"$1"+_a+"$2")+e;case 6187:return Na(Na(Na(e,/(zoom-|grab)/,_a+"$1"),/(image-set)/,_a+"$1"),e,"")+e;case 5495:case 3959:return Na(e,/(image-set\([^]*)/,_a+"$1$`$1");case 4968:return Na(Na(e,/(.+:)(flex-)?(.*)/,_a+"box-pack:$3"+Qd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_a+e+e;case 4095:case 3583:case 4068:case 2532:return Na(e,/(.+)-inline(.+)/,_a+"$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(_v(e)-1-t>6)switch(md(e,t+1)){case 109:if(md(e,t+4)!==45)break;case 102:return Na(e,/(.+:)(.+)-([^]+)/,"$1"+_a+"$2-$3$1"+l9+(md(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dfe(e,"stretch")?vst(Na(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(md(e,t+1)!==115)break;case 6444:switch(md(e,_v(e)-3-(~dfe(e,"!important")&&10))){case 107:return Na(e,":",":"+_a)+e;case 101:return Na(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_a+(md(e,14)===45?"inline-":"")+"box$3$1"+_a+"$2$3$1"+Qd+"$2box$3")+e}break;case 5936:switch(md(e,t+11)){case 114:return _a+e+Qd+Na(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _a+e+Qd+Na(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _a+e+Qd+Na(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _a+e+Qd+e+e}return e}var lhn=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case JMe:t.return=vst(t.value,t.length);break;case dst:return hI([d4(t,{value:Na(t.value,"@","@"+_a)})],i);case ZMe:if(t.length)return Gpn(t.props,function(o){switch(Vpn(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hI([d4(t,{props:[Na(o,/:(read-\w+)/,":"+l9+"$1")]})],i);case"::placeholder":return hI([d4(t,{props:[Na(o,/:(plac\w+)/,":"+_a+"input-$1")]}),d4(t,{props:[Na(o,/:(plac\w+)/,":"+l9+"$1")]}),d4(t,{props:[Na(o,/:(plac\w+)/,Qd+"input-$1")]})],i)}return""})}},chn=[lhn],uhn=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||chn,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)o[b[y]]=!0;s.push(m)});var l,c=[ahn,shn];{var u,d=[ehn,nhn(function(m){u.insert(m)})],p=thn(c.concat(i,d)),h=function(b){return hI(Zpn(b),p)};l=function(b,y,M,C){u=M,h(b?b+"{"+y.styles+"}":y.styles),C&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new Fpn({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g},dhn=!0;function bst(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var tCe=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||dhn===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},nCe=function(t,n,r){tCe(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function phn(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 hhn={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},fhn=/[A-Z]|^ms/g,ghn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yst=function(t){return t.charCodeAt(1)===45},tDe=function(t){return t!=null&&typeof t!="boolean"},Eie=mst(function(e){return yst(e)?e:e.replace(fhn,"-$&").toLowerCase()}),nDe=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ghn,function(r,i,o){return Nv={name:i,styles:o,next:Nv},i})}return hhn[t]!==1&&!yst(t)&&typeof n=="number"&&n!==0?n+"px":n};function TW(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Nv={name:i.name,styles:i.styles,next:Nv},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Nv={name:a.name,styles:a.styles,next:Nv},a=a.next;var s=o.styles+";";return s}return mhn(e,t,n)}case"function":{if(e!==void 0){var l=Nv,c=n(e);return Nv=l,TW(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function mhn(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=TW(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":tDe(s)&&(r+=Eie(o)+":"+nDe(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)tDe(a[l])&&(r+=Eie(o)+":"+nDe(o,a[l])+";");else{var c=TW(e,t,a);switch(o){case"animation":case"animationName":{r+=Eie(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var rDe=/label:\s*([^\s;{]+)\s*(;|$)/g,Nv;function V6(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Nv=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=TW(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=TW(n,t,e[s]),r){var l=o;i+=l[s]}rDe.lastIndex=0;for(var c="",u;(u=rDe.exec(i))!==null;)c+="-"+u[1];var d=phn(i)+c;return{name:d,styles:i,next:Nv}}var vhn=function(t){return t()},Mst=SW.useInsertionEffect?SW.useInsertionEffect:!1,Cst=Mst||vhn,iDe=Mst||v.useLayoutEffect,xst=v.createContext(typeof HTMLElement<"u"?uhn({key:"css"}):null);xst.Provider;var rCe=function(t){return v.forwardRef(function(n,r){var i=v.useContext(xst);return t(n,i,r)})},OQ=v.createContext({}),iCe={}.hasOwnProperty,hfe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bhn=function(t,n){var r={};for(var i in n)iCe.call(n,i)&&(r[i]=n[i]);return r[hfe]=t,r},yhn=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return tCe(n,r,i),Cst(function(){return nCe(n,r,i)}),null},Mhn=rCe(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[hfe],o=[r],a="";typeof e.className=="string"?a=bst(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=V6(o,void 0,v.useContext(OQ));a+=t.key+"-"+s.name;var l={};for(var c in e)iCe.call(e,c)&&c!=="css"&&c!==hfe&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(yhn,{cache:t,serialized:s,isStringTag:typeof i=="string"}),v.createElement(i,l))}),Chn=Mhn,oDe=function(t,n){var r=arguments;if(n==null||!iCe.call(n,"css"))return v.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Chn,o[1]=bhn(t,n);for(var a=2;a<i;a++)o[a]=r[a];return v.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(oDe||(oDe={}));var xhn=rCe(function(e,t){var n=e.styles,r=V6([n],void 0,v.useContext(OQ)),i=v.useRef();return iDe(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),iDe(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&nCe(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function zw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return V6(t)}function Uf(){var e=zw.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 whn=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Shn=mst(function(e){return whn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ahn=Shn,Ohn=function(t){return t!=="theme"},aDe=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ahn:Ohn},sDe=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},zhn=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return tCe(n,r,i),Cst(function(){return nCe(n,r,i)}),null},Thn=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=sDe(t,n,r),l=s||aDe(i),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var h=u.length,g=1;g<h;g++)d.push(u[g],p[g])}var m=rCe(function(b,y,M){var C=c&&b.as||i,x="",w=[],S=b;if(b.theme==null){S={};for(var A in b)S[A]=b[A];S.theme=v.useContext(OQ)}typeof b.className=="string"?x=bst(y.registered,w,b.className):b.className!=null&&(x=b.className+" ");var z=V6(d.concat(w),y.registered,S);x+=y.key+"-"+z.name,a!==void 0&&(x+=" "+a);var O=c&&s===void 0?aDe(C):l,T={};for(var R in b)c&&R==="as"||O(R)&&(T[R]=b[R]);return T.className=x,M&&(T.ref=M),v.createElement(v.Fragment,null,v.createElement(zhn,{cache:y,serialized:z,isStringTag:typeof C=="string"}),v.createElement(C,T))});return m.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(b,y){var M=e(b,Y({},n,y,{shouldForwardProp:sDe(m,y,!0)}));return M.apply(void 0,d)},m}},Ehn=["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"],ffe=Thn.bind(null);Ehn.forEach(function(e){ffe[e]=ffe(e)});function Rhn(e){return e==null||Object.keys(e).length===0}function Ihn(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(Rhn(i)?n:i):t;return f.jsx(xhn,{styles:r})}function Phn(e,t){return ffe(e,t)}function Dhn(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const lDe=[];function Rx(e){return lDe[0]=e,V6(lDe)}function khn(e){return Object.keys(e).length===0}function wst(e=null){const t=v.useContext(OQ);return!t||khn(t)?e:t}const Lhn=QMe();function oCe(e=Lhn){return wst(e)}function _hn({props:e,name:t,defaultTheme:n,themeId:r}){let i=oCe(n);return i=i[r]||i,$Me({theme:i,name:t,props:e})}function Nhn(e,t,n,r,i){const[o,a]=v.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ro(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),o}const Fhn={...SW},Sst=Fhn.useSyncExternalStore;function Whn(e,t,n,r,i){const o=v.useCallback(()=>t,[t]),a=v.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return o},[o,e,r,i,n]),[s,l]=v.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[o,n,e]);return Sst(l,s,a)}function Ast(e={}){const{themeId:t}=e;return function(r,i={}){let o=wst();o&&t&&(o=o[t]||o);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=$Me({name:"MuiUseMediaQuery",props:i,theme:o});let d=typeof r=="function"?r(o):r;return d=d.replace(/^@media( ?)/m,""),d.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(`
`)),(Sst!==void 0?Whn:Nhn)(d,s,l,c,u)}}Ast();const G6="$$material",aCe=Ast({themeId:G6});function Rie(e){const t=Rx(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function qhn({styles:e,themeId:t,defaultTheme:n={}}){const r=oCe(n),i=t&&r[t]||r;let o=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(o)?o=o.map(a=>Rie(typeof a=="function"?a(i):a)):o=Rie(o)),f.jsx(Ihn,{styles:o})}const Bhn=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??j6;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function jhn(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=Bhn(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return jv(s)?{...r,...s}:r}:o={...r,...t},{...i,sx:o}}const cDe=e=>e,Hhn=()=>{let e=cDe;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cDe}}},Vhn=Hhn(),Ghn={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 Bn(e,t,n="Mui"){const r=Ghn[t];return r?`${n}-${r}`:`${Vhn.generate(e)}-${t}`}function Ln(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Bn(e,i,n)}),r}function Ost(e){const{variants:t,...n}=e,r={variants:t,style:Rx(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Rx(i.style))}),r}const $hn=QMe();function c7(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function lO(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Uhn(e){return e?(t,n)=>n[e]:null}function Xhn(e,t,n){e.theme=Khn(e.theme)?n:e.theme[t]||e.theme}function u7(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>u7(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?lO(r.style,n):r.style;else{const{variants:o,...a}=r;i=n?lO(Rx(a),n):a}return zst(e,r.variants,[i],n)}return r?.isProcessed?n?lO(Rx(r.style),n):r.style:n?lO(Rx(r),n):r}function zst(e,t,n=[],r=void 0){let i;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?lO(Rx(a.style(i)),r):a.style(i))):n.push(r?lO(Rx(a.style),r):a.style)}return n}function Tst(e={}){const{themeId:t,defaultTheme:n=$hn,rootShouldForwardProp:r=c7,slotShouldForwardProp:i=c7}=e;function o(s){Xhn(s,t,n)}return(s,l={})=>{Dhn(s,S=>S.filter(A=>A!==hP));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:h=Uhn(Zhn(u)),...g}=l,m=c&&c.startsWith("Mui")||u?"components":"custom",b=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=p||!1;let M=c7;u==="Root"||u==="root"?M=r:u?M=i:Qhn(s)&&(M=void 0);const C=Phn(s,{shouldForwardProp:M,label:Yhn(),...g}),x=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(z){return u7(z,S,z.theme.modularCssLayers?m:void 0)};if(jv(S)){const A=Ost(S);return function(O){return A.variants?u7(O,A,O.theme.modularCssLayers?m:void 0):O.theme.modularCssLayers?lO(A.style,m):A.style}}return S},w=(...S)=>{const A=[],z=S.map(x),O=[];if(A.push(o),c&&h&&O.push(function(F){const L=F.theme.components?.[c]?.styleOverrides;if(!L)return null;const W={};for(const j in L)W[j]=u7(F,L[j],F.theme.modularCssLayers?"theme":void 0);return h(F,W)}),c&&!b&&O.push(function(F){const L=F.theme?.components?.[c]?.variants;return L?zst(F,L,[],F.theme.modularCssLayers?"theme":void 0):null}),y||O.push(hP),Array.isArray(z[0])){const P=z.shift(),F=new Array(A.length).fill(""),N=new Array(O.length).fill("");let L;L=[...F,...P,...N],L.raw=[...F,...P.raw,...N],A.unshift(L)}const T=[...A,...z,...O],R=C(...T);return s.muiName&&(R.muiName=s.muiName),R};return C.withConfig&&(w.withConfig=C.withConfig),w}}function Yhn(e,t){return void 0}function Khn(e){for(const t in e)return!1;return!0}function Qhn(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zhn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Go=Tst();function Jhn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function sCe(e,t=0,n=1){return Jhn(e,t,n)}function efn(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Jx(e){if(e.type)return e;if(e.charAt(0)==="#")return Jx(efn(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Xy(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(Xy(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const tfn=e=>{const t=Jx(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},eN=(e,t)=>{try{return tfn(e)}catch{return e}};function zQ(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Est(e){e=Jx(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),zQ({type:s,values:l})}function gfe(e){e=Jx(e);let t=e.type==="hsl"||e.type==="hsla"?Jx(Est(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nfn(e,t){const n=gfe(e),r=gfe(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Sd(e,t){return e=Jx(e),t=sCe(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,zQ(e)}function qS(e,t,n){try{return Sd(e,t)}catch{return e}}function $6(e,t){if(e=Jx(e),t=sCe(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return zQ(e)}function rs(e,t,n){try{return $6(e,t)}catch{return e}}function U6(e,t){if(e=Jx(e),t=sCe(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return zQ(e)}function is(e,t,n){try{return U6(e,t)}catch{return e}}function rfn(e,t=.15){return gfe(e)>.5?$6(e,t):U6(e,t)}function v8(e,t,n){try{return rfn(e,t)}catch{return e}}const ifn=v.createContext(),ts=()=>v.useContext(ifn)??!1,ofn=v.createContext(void 0);function afn(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Dz(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Dz(i,r,t.components.mergeClassNameAndStyle):r}function sfn({props:e,name:t}){const n=v.useContext(ofn);return afn({props:e,name:t,theme:{components:n}})}let uDe=0;function lfn(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(uDe+=1,n(`mui-${uDe}`))},[t]),r}const cfn={...SW},dDe=cfn.useId;function Vi(e){if(dDe!==void 0){const t=dDe();return e??t}return lfn(e)}const pDe={theme:void 0};function ufn(e){let t,n;return function(i){let o=t;return(o===void 0||i.theme!==n)&&(pDe.theme=i.theme,o=Ost(e(pDe)),t=o,n=i.theme),o}}function dfn(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.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}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const hDe=(e,t,n,r=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},pfn=(e,t,n)=>{function r(i,o=[],a=[]){Object.entries(i).forEach(([s,l])=>{(!n||n&&!n([...o,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...o,s],Array.isArray(l)?[...a,s]:a):t([...o,s],l,a))})}r(e)},hfn=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Iie(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return pfn(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=hfn(s,l);Object.assign(i,{[u]:d}),hDe(o,s,`var(${u})`,c),hDe(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function ffn(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=Iie(c,t);let h=p;const g={},{[l]:m,...b}=a;if(Object.entries(b||{}).forEach(([x,w])=>{const{vars:S,css:A,varsWithDefaults:z}=Iie(w,t);h=v0(h,z),g[x]={css:A,vars:S}}),m){const{css:x,vars:w,varsWithDefaults:S}=Iie(m,t);h=v0(h,S),g[l]={css:x,vars:w}}function y(x,w){let S=i;if(i==="class"&&(S=".%s"),i==="data"&&(S="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(S=`[${i}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${a[x]?.palette?.mode||x})`]:{":root":w}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:h,generateThemeVars:()=>{let x={...u};return Object.entries(g).forEach(([,{vars:w}])=>{x=v0(x,w)}),x},generateStyleSheets:()=>{const x=[],w=e.defaultColorScheme||"light";function S(O,T){Object.keys(T).length&&x.push(typeof O=="string"?{[O]:{...T}}:O)}S(n(void 0,{...d}),d);const{[w]:A,...z}=g;if(A){const{css:O}=A,T=a[w]?.palette?.mode,R=!r&&T?{colorScheme:T,...O}:{...O};S(n(w,{...R}),R)}return Object.entries(z).forEach(([O,{css:T}])=>{const R=a[O]?.palette?.mode,P=!r&&R?{colorScheme:R,...T}:{...T};S(n(O,{...P}),P)}),o&&x.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)"}}),x}}}function gfn(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Yt(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(a+=" "+n[c]))}r[i]=a}return r}function d7(e,t){return v.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const EW={black:"#000",white:"#fff"},mfn={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"},xE={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},wE={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},p4={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},SE={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},AE={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},OE={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Rst(){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:EW.white,default:EW.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 Ist=Rst();function Pst(){return{text:{primary:EW.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:EW.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 mfe=Pst();function fDe(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=U6(e.main,i):t==="dark"&&(e.dark=$6(e.main,o)))}function gDe(e,t,n,r,i){const o=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function vfn(e="light"){return e==="dark"?{main:SE[200],light:SE[50],dark:SE[400]}:{main:SE[700],light:SE[400],dark:SE[800]}}function bfn(e="light"){return e==="dark"?{main:xE[200],light:xE[50],dark:xE[400]}:{main:xE[500],light:xE[300],dark:xE[700]}}function yfn(e="light"){return e==="dark"?{main:wE[500],light:wE[300],dark:wE[700]}:{main:wE[700],light:wE[400],dark:wE[800]}}function Mfn(e="light"){return e==="dark"?{main:AE[400],light:AE[300],dark:AE[700]}:{main:AE[700],light:AE[500],dark:AE[900]}}function Cfn(e="light"){return e==="dark"?{main:OE[400],light:OE[300],dark:OE[700]}:{main:OE[800],light:OE[500],dark:OE[900]}}function xfn(e="light"){return e==="dark"?{main:p4[400],light:p4[300],dark:p4[700]}:{main:"#ed6c02",light:p4[500],dark:p4[900]}}function wfn(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function lCe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...o}=e,a=e.primary||vfn(t),s=e.secondary||bfn(t),l=e.error||yfn(t),c=e.info||Mfn(t),u=e.success||Cfn(t),d=e.warning||xfn(t);function p(b){return i?wfn(b):nfn(b,mfe.text.primary)>=n?mfe.text.primary:Ist.text.primary}const h=({color:b,name:y,mainShade:M=500,lightShade:C=300,darkShade:x=700})=>{if(b={...b},!b.main&&b[M]&&(b.main=b[M]),!b.hasOwnProperty("main"))throw new Error(Xy(11,y?` (${y})`:"",M));if(typeof b.main!="string")throw new Error(Xy(12,y?` (${y})`:"",JSON.stringify(b.main)));return i?(gDe(i,b,"light",C,r),gDe(i,b,"dark",x,r)):(fDe(b,"light",C,r),fDe(b,"dark",x,r)),b.contrastText||(b.contrastText=p(b.main)),b};let g;return t==="light"?g=Rst():t==="dark"&&(g=Pst()),v0({common:{...EW},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:mfn,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:r,...g},o)}function Sfn(e){const t={};return Object.entries(e).forEach(r=>{const[i,o]=r;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Afn(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ofn(e){return Math.round(e*1e5)/1e5}const mDe={textTransform:"uppercase"},vDe='"Roboto", "Helvetica", "Arial", sans-serif';function zfn(e,t){const{fontFamily:n=vDe,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,p=r/14,h=u||(b=>`${b/l*p}rem`),g=(b,y,M,C,x)=>({fontFamily:n,fontWeight:b,fontSize:h(y),lineHeight:M,...n===vDe?{letterSpacing:`${Ofn(C/y)}em`}:{},...x,...c}),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(a,14,1.75,.4,mDe),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,mDe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return v0({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}const Tfn=.2,Efn=.14,Rfn=.12;function fl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Tfn})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Efn})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Rfn})`].join(",")}const Ifn=["none",fl(0,2,1,-1,0,1,1,0,0,1,3,0),fl(0,3,1,-2,0,2,2,0,0,1,5,0),fl(0,3,3,-2,0,3,4,0,0,1,8,0),fl(0,2,4,-1,0,4,5,0,0,1,10,0),fl(0,3,5,-1,0,5,8,0,0,1,14,0),fl(0,3,5,-1,0,6,10,0,0,1,18,0),fl(0,4,5,-2,0,7,10,1,0,2,16,1),fl(0,5,5,-3,0,8,10,1,0,3,14,2),fl(0,5,6,-3,0,9,12,1,0,3,16,2),fl(0,6,6,-3,0,10,14,1,0,4,18,3),fl(0,6,7,-4,0,11,15,1,0,4,20,3),fl(0,7,8,-4,0,12,17,2,0,5,22,4),fl(0,7,8,-4,0,13,19,2,0,5,24,4),fl(0,7,9,-4,0,14,21,2,0,5,26,4),fl(0,8,9,-5,0,15,22,2,0,6,28,5),fl(0,8,10,-5,0,16,24,2,0,6,30,5),fl(0,8,11,-5,0,17,26,2,0,6,32,5),fl(0,9,11,-5,0,18,28,2,0,7,34,6),fl(0,9,12,-6,0,19,29,2,0,7,36,6),fl(0,10,13,-6,0,20,31,3,0,8,38,7),fl(0,10,13,-6,0,21,33,3,0,8,40,7),fl(0,10,14,-6,0,22,35,3,0,8,42,7),fl(0,11,14,-7,0,23,36,3,0,9,44,8),fl(0,11,15,-7,0,24,38,3,0,9,46,8)],Pfn={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)"},Dfn={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bDe(e){return`${Math.round(e)}ms`}function kfn(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Lfn(e){const t={...Pfn,...e.easing},n={...Dfn,...e.duration};return{getAutoHeightDuration:kfn,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:bDe(a)} ${s} ${typeof l=="string"?l:bDe(l)}`).join(",")},...e,easing:t,duration:n}}const _fn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Nfn(e){return jv(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Dst(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let o=0;o<i.length;o++){const[a,s]=i[o];!Nfn(s)||a.startsWith("unstable_")?delete r[a]:jv(s)&&(r[a]={...s},n(r[a]))}}return n(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 yDe(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ffn=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Wfn(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Sd(t,Ffn(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${yDe(n)})`:U6(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${yDe(n)})`:$6(t,n)}})}function vfe(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Xy(20));const d=lCe({...o,colorSpace:c}),p=QMe(e);let h=v0(p,{mixins:Afn(p.breakpoints,r),palette:d,shadows:Ifn.slice(),typography:zfn(d,s),transitions:Lfn(a),zIndex:{..._fn}});return h=v0(h,u),h=t.reduce((g,m)=>v0(g,m),h),h.unstable_sxConfig={...j6,...u?.unstable_sxConfig},h.unstable_sx=function(m){return hP({sx:m,theme:this})},h.toRuntimeSource=Dst,Wfn(h),h}function bfe(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 qfn=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=bfe(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function kst(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Lst(e){return e==="dark"?qfn:[]}function Bfn(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...o}=e,a=lCe({...t,colorSpace:i});return{palette:a,opacity:{...kst(a.mode),...n},overlays:r||Lst(a.mode),...o}}function jfn(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 Hfn=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Vfn=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Hfn(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:o?{[o.replace("%s",t)]:a,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function Gfn(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Jt(e,t,n){!e[t]&&n&&(e[t]=n)}function tN(e){return typeof e!="string"||!e.startsWith("hsl")?e:Est(e)}function W2(e,t){`${t}Channel`in e||(e[`${t}Channel`]=eN(tN(e[t])))}function $fn(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const hv=e=>{try{return e()}catch{}},Ufn=(e="mui")=>dfn(e);function Pie(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const o=i==="dark"?"dark":"light";if(!r){t[i]=Bfn({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:a,...s}=vfe({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...kst(o),...n?.opacity},overlays:n?.overlays||Lst(o)},s}function Xfn(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=jfn,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&d!=="light"?"light":d),h=Ufn(o),{[p]:g,light:m,dark:b,...y}=n,M={...y};let C=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(Xy(21,p));let x;a&&(x="oklch");const w=Pie(x,M,C,u,p);m&&!M.light&&Pie(x,M,m,void 0,"light"),b&&!M.dark&&Pie(x,M,b,void 0,"dark");let S={defaultColorScheme:p,...w,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:M,font:{...Sfn(w.typography),...w.font},spacing:$fn(u.spacing)};Object.keys(S.colorSchemes).forEach(R=>{const P=S.colorSchemes[R].palette,F=L=>{const W=L.split("-"),j=W[1],V=W[2];return h(L,P[j][V])};P.mode==="light"&&(Jt(P.common,"background","#fff"),Jt(P.common,"onBackground","#000")),P.mode==="dark"&&(Jt(P.common,"background","#000"),Jt(P.common,"onBackground","#fff"));function N(L,W,j){if(x){let V;return L===qS&&(V=`transparent ${((1-j)*100).toFixed(0)}%`),L===rs&&(V=`#000 ${(j*100).toFixed(0)}%`),L===is&&(V=`#fff ${(j*100).toFixed(0)}%`),`color-mix(in ${x}, ${W}, ${V})`}return L(W,j)}if(Gfn(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){Jt(P.Alert,"errorColor",N(rs,P.error.light,.6)),Jt(P.Alert,"infoColor",N(rs,P.info.light,.6)),Jt(P.Alert,"successColor",N(rs,P.success.light,.6)),Jt(P.Alert,"warningColor",N(rs,P.warning.light,.6)),Jt(P.Alert,"errorFilledBg",F("palette-error-main")),Jt(P.Alert,"infoFilledBg",F("palette-info-main")),Jt(P.Alert,"successFilledBg",F("palette-success-main")),Jt(P.Alert,"warningFilledBg",F("palette-warning-main")),Jt(P.Alert,"errorFilledColor",hv(()=>P.getContrastText(P.error.main))),Jt(P.Alert,"infoFilledColor",hv(()=>P.getContrastText(P.info.main))),Jt(P.Alert,"successFilledColor",hv(()=>P.getContrastText(P.success.main))),Jt(P.Alert,"warningFilledColor",hv(()=>P.getContrastText(P.warning.main))),Jt(P.Alert,"errorStandardBg",N(is,P.error.light,.9)),Jt(P.Alert,"infoStandardBg",N(is,P.info.light,.9)),Jt(P.Alert,"successStandardBg",N(is,P.success.light,.9)),Jt(P.Alert,"warningStandardBg",N(is,P.warning.light,.9)),Jt(P.Alert,"errorIconColor",F("palette-error-main")),Jt(P.Alert,"infoIconColor",F("palette-info-main")),Jt(P.Alert,"successIconColor",F("palette-success-main")),Jt(P.Alert,"warningIconColor",F("palette-warning-main")),Jt(P.AppBar,"defaultBg",F("palette-grey-100")),Jt(P.Avatar,"defaultBg",F("palette-grey-400")),Jt(P.Button,"inheritContainedBg",F("palette-grey-300")),Jt(P.Button,"inheritContainedHoverBg",F("palette-grey-A100")),Jt(P.Chip,"defaultBorder",F("palette-grey-400")),Jt(P.Chip,"defaultAvatarColor",F("palette-grey-700")),Jt(P.Chip,"defaultIconColor",F("palette-grey-700")),Jt(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Jt(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Jt(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Jt(P.LinearProgress,"primaryBg",N(is,P.primary.main,.62)),Jt(P.LinearProgress,"secondaryBg",N(is,P.secondary.main,.62)),Jt(P.LinearProgress,"errorBg",N(is,P.error.main,.62)),Jt(P.LinearProgress,"infoBg",N(is,P.info.main,.62)),Jt(P.LinearProgress,"successBg",N(is,P.success.main,.62)),Jt(P.LinearProgress,"warningBg",N(is,P.warning.main,.62)),Jt(P.Skeleton,"bg",x?N(qS,P.text.primary,.11):`rgba(${F("palette-text-primaryChannel")} / 0.11)`),Jt(P.Slider,"primaryTrack",N(is,P.primary.main,.62)),Jt(P.Slider,"secondaryTrack",N(is,P.secondary.main,.62)),Jt(P.Slider,"errorTrack",N(is,P.error.main,.62)),Jt(P.Slider,"infoTrack",N(is,P.info.main,.62)),Jt(P.Slider,"successTrack",N(is,P.success.main,.62)),Jt(P.Slider,"warningTrack",N(is,P.warning.main,.62));const L=x?N(rs,P.background.default,.6825):v8(P.background.default,.8);Jt(P.SnackbarContent,"bg",L),Jt(P.SnackbarContent,"color",hv(()=>x?mfe.text.primary:P.getContrastText(L))),Jt(P.SpeedDialAction,"fabHoverBg",v8(P.background.paper,.15)),Jt(P.StepConnector,"border",F("palette-grey-400")),Jt(P.StepContent,"border",F("palette-grey-400")),Jt(P.Switch,"defaultColor",F("palette-common-white")),Jt(P.Switch,"defaultDisabledColor",F("palette-grey-100")),Jt(P.Switch,"primaryDisabledColor",N(is,P.primary.main,.62)),Jt(P.Switch,"secondaryDisabledColor",N(is,P.secondary.main,.62)),Jt(P.Switch,"errorDisabledColor",N(is,P.error.main,.62)),Jt(P.Switch,"infoDisabledColor",N(is,P.info.main,.62)),Jt(P.Switch,"successDisabledColor",N(is,P.success.main,.62)),Jt(P.Switch,"warningDisabledColor",N(is,P.warning.main,.62)),Jt(P.TableCell,"border",N(is,N(qS,P.divider,1),.88)),Jt(P.Tooltip,"bg",N(qS,P.grey[700],.92))}if(P.mode==="dark"){Jt(P.Alert,"errorColor",N(is,P.error.light,.6)),Jt(P.Alert,"infoColor",N(is,P.info.light,.6)),Jt(P.Alert,"successColor",N(is,P.success.light,.6)),Jt(P.Alert,"warningColor",N(is,P.warning.light,.6)),Jt(P.Alert,"errorFilledBg",F("palette-error-dark")),Jt(P.Alert,"infoFilledBg",F("palette-info-dark")),Jt(P.Alert,"successFilledBg",F("palette-success-dark")),Jt(P.Alert,"warningFilledBg",F("palette-warning-dark")),Jt(P.Alert,"errorFilledColor",hv(()=>P.getContrastText(P.error.dark))),Jt(P.Alert,"infoFilledColor",hv(()=>P.getContrastText(P.info.dark))),Jt(P.Alert,"successFilledColor",hv(()=>P.getContrastText(P.success.dark))),Jt(P.Alert,"warningFilledColor",hv(()=>P.getContrastText(P.warning.dark))),Jt(P.Alert,"errorStandardBg",N(rs,P.error.light,.9)),Jt(P.Alert,"infoStandardBg",N(rs,P.info.light,.9)),Jt(P.Alert,"successStandardBg",N(rs,P.success.light,.9)),Jt(P.Alert,"warningStandardBg",N(rs,P.warning.light,.9)),Jt(P.Alert,"errorIconColor",F("palette-error-main")),Jt(P.Alert,"infoIconColor",F("palette-info-main")),Jt(P.Alert,"successIconColor",F("palette-success-main")),Jt(P.Alert,"warningIconColor",F("palette-warning-main")),Jt(P.AppBar,"defaultBg",F("palette-grey-900")),Jt(P.AppBar,"darkBg",F("palette-background-paper")),Jt(P.AppBar,"darkColor",F("palette-text-primary")),Jt(P.Avatar,"defaultBg",F("palette-grey-600")),Jt(P.Button,"inheritContainedBg",F("palette-grey-800")),Jt(P.Button,"inheritContainedHoverBg",F("palette-grey-700")),Jt(P.Chip,"defaultBorder",F("palette-grey-700")),Jt(P.Chip,"defaultAvatarColor",F("palette-grey-300")),Jt(P.Chip,"defaultIconColor",F("palette-grey-300")),Jt(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Jt(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Jt(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Jt(P.LinearProgress,"primaryBg",N(rs,P.primary.main,.5)),Jt(P.LinearProgress,"secondaryBg",N(rs,P.secondary.main,.5)),Jt(P.LinearProgress,"errorBg",N(rs,P.error.main,.5)),Jt(P.LinearProgress,"infoBg",N(rs,P.info.main,.5)),Jt(P.LinearProgress,"successBg",N(rs,P.success.main,.5)),Jt(P.LinearProgress,"warningBg",N(rs,P.warning.main,.5)),Jt(P.Skeleton,"bg",x?N(qS,P.text.primary,.13):`rgba(${F("palette-text-primaryChannel")} / 0.13)`),Jt(P.Slider,"primaryTrack",N(rs,P.primary.main,.5)),Jt(P.Slider,"secondaryTrack",N(rs,P.secondary.main,.5)),Jt(P.Slider,"errorTrack",N(rs,P.error.main,.5)),Jt(P.Slider,"infoTrack",N(rs,P.info.main,.5)),Jt(P.Slider,"successTrack",N(rs,P.success.main,.5)),Jt(P.Slider,"warningTrack",N(rs,P.warning.main,.5));const L=x?N(is,P.background.default,.985):v8(P.background.default,.98);Jt(P.SnackbarContent,"bg",L),Jt(P.SnackbarContent,"color",hv(()=>x?Ist.text.primary:P.getContrastText(L))),Jt(P.SpeedDialAction,"fabHoverBg",v8(P.background.paper,.15)),Jt(P.StepConnector,"border",F("palette-grey-600")),Jt(P.StepContent,"border",F("palette-grey-600")),Jt(P.Switch,"defaultColor",F("palette-grey-300")),Jt(P.Switch,"defaultDisabledColor",F("palette-grey-600")),Jt(P.Switch,"primaryDisabledColor",N(rs,P.primary.main,.55)),Jt(P.Switch,"secondaryDisabledColor",N(rs,P.secondary.main,.55)),Jt(P.Switch,"errorDisabledColor",N(rs,P.error.main,.55)),Jt(P.Switch,"infoDisabledColor",N(rs,P.info.main,.55)),Jt(P.Switch,"successDisabledColor",N(rs,P.success.main,.55)),Jt(P.Switch,"warningDisabledColor",N(rs,P.warning.main,.55)),Jt(P.TableCell,"border",N(rs,N(qS,P.divider,1),.68)),Jt(P.Tooltip,"bg",N(qS,P.grey[700],.92))}W2(P.background,"default"),W2(P.background,"paper"),W2(P.common,"background"),W2(P.common,"onBackground"),W2(P,"divider"),Object.keys(P).forEach(L=>{const W=P[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&Jt(P[L],"mainChannel",eN(tN(W.main))),W.light&&Jt(P[L],"lightChannel",eN(tN(W.light))),W.dark&&Jt(P[L],"darkChannel",eN(tN(W.dark))),W.contrastText&&Jt(P[L],"contrastTextChannel",eN(tN(W.contrastText))),L==="text"&&(W2(P[L],"primary"),W2(P[L],"secondary")),L==="action"&&(W.active&&W2(P[L],"active"),W.selected&&W2(P[L],"selected")))})}),S=t.reduce((R,P)=>v0(R,P),S);const A={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Vfn(S),enableContrastVars:a},{vars:z,generateThemeVars:O,generateStyleSheets:T}=ffn(S,A);return S.vars=z,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([R,P])=>{S[R]=P}),S.generateThemeVars=O,S.generateStyleSheets=T,S.generateSpacing=function(){return cst(u.spacing,YMe(this))},S.getColorSchemeSelector=gfn(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...j6,...u?.unstable_sxConfig},S.unstable_sx=function(P){return hP({sx:P,theme:this})},S.toRuntimeSource=Dst,S}function MDe(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:lCe({...n===!0?{}:n.palette,mode:t})})}function Yfn(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return vfe(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=vfe({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},MDe(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},MDe(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),Xfn({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}function Kfn(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Qfn(e){return parseFloat(e)}const TQ=Yfn();function Ub(){const e=oCe(TQ);return e[G6]||e}function Po({props:e,name:t}){return _hn({props:e,name:t,defaultTheme:TQ,themeId:G6})}function _st(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cp=e=>_st(e)&&e!=="classes",rt=Tst({themeId:G6,defaultTheme:TQ,rootShouldForwardProp:Cp}),EQ=Z.oneOfType([Z.func,Z.object]);function CDe(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Tw(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Ds(e){return e&&e.ownerDocument||document}function Mm(e){return Ds(e).defaultView||window}function yfe(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function up(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:o}=v.useRef(t!==void 0),[a,s]=v.useState(n),l=o?t:a,c=v.useCallback(u=>{o||s(u)},[]);return[l,c]}function en(e){const t=v.useRef(e);return Ro(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){const t=v.useRef(void 0),n=v.useCallback(r=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return o.current=r,()=>{o.current=null}});return()=>{i.forEach(o=>o?.())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const xDe={};function xp(e,t){const n=v.useRef(xDe);return n.current===xDe&&(n.current=e(t)),n}const Zfn=[];function X6(e){v.useEffect(e,Zfn)}class RQ{static create(){return new RQ}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Qp(){const e=xp(RQ.create).current;return X6(e.disposeEffect),e}function c9(e){try{return e.matches(":focus-visible")}catch{}return!1}function Nst(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function cCe(e){const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current}const Jfn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function gP(e){return typeof e=="string"}function Fst(e,t,n){return e===void 0||gP(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Wst(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function wDe(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function qst(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=ufe(n?.className,o,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},m={...n,...i,...r};return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const a=Wst({...i,...r}),s=wDe(r),l=wDe(i),c=t(a),u=ufe(c?.className,n?.className,o,i?.className,r?.className),d={...c?.style,...n?.style,...i?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function kz(e,t,n){return typeof e=="function"?e(t,n):e}function Vo(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:kz(n,r),{props:s,internalRef:l}=qst({...o,externalSlotProps:a}),c=Pi(l,a?.ref,e.additionalProps?.ref);return Fst(t,{...s,ref:c},r)}function z3(e){return parseInt(v.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Hv=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Bst=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(e!=null)o=e;else if(i.includes(t))o=t;else if(i.length>0)o=i[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:i,openTo:o}},u9=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},ZN=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=u9(a,a.date(void 0,s),e);n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,i)&&(c=i,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,i)&&(u=null),c){if(!o(c))return c;c=a.addDays(c,1)}if(u){if(!o(u))return u;u=a.addDays(u,-1)}}return null},egn=(e,t)=>t==null||!e.isValid(t)?null:t,w0=(e,t,n)=>t==null||!e.isValid(t)?n:t,tgn=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),uCe=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},dCe=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),by=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},ngn=["year","month","day"],mP=e=>ngn.includes(e),RW=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return Hv(n,["year"])?i.year:Hv(n,["month"])?i.month:Hv(n,["day"])?i.dayOfMonth:Hv(n,["month","year"])?`${i.month} ${i.year}`:Hv(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},rgn=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},jst=["hours","minutes","seconds"],vP=e=>jst.includes(e),nN=e=>jst.includes(e)||e==="meridiem",ign=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,IW=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,ogn=(e,t,n,r)=>{const i=IW(r.getHours(e),t,n);return r.setHours(e,i)},SDe=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Y6=(e,t)=>(n,r)=>e?t.isAfter(n,r):SDe(n,t)>SDe(r,t),ADe=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return Hv(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:Hv(n,["minutes"])?i.minutes:Hv(n,["seconds"])?i.seconds:Hv(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:Hv(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},Gg={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},agn=e=>Math.max(...e.map(t=>Gg[t.type]??1)),h4=(e,t,n)=>{if(t===Gg.year)return e.startOfYear(n);if(t===Gg.month)return e.startOfMonth(n);if(t===Gg.day)return e.startOfDay(n);let r=n;return t<Gg.minutes&&(r=e.setMinutes(r,0)),t<Gg.seconds&&(r=e.setSeconds(r,0)),t<Gg.milliseconds&&(r=e.setMilliseconds(r,0)),r},sgn=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:i})=>{let o=i?i():h4(t,n,dCe(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,o)&&(o=h4(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,o)&&(o=h4(t,n,e.maxDate));const a=Y6(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,o)&&(o=h4(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:u9(t,o,e.minTime))),e.maxTime!=null&&a(o,e.maxTime)&&(o=h4(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:u9(t,o,e.maxTime))),o},Hst=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},lgn=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},IQ=(e,t)=>{const n=[],r=e.date(void 0,"default"),i=e.startOfWeek(r),o=e.endOfWeek(r);let a=i;for(;e.isBefore(a,o);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},Vst=(e,t,n,r)=>{switch(n){case"month":return uCe(e,e.date(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return IQ(e,r);case"meridiem":{const i=e.date(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(o=>e.formatByString(o,r))}default:return[]}},ODe="s",cgn=["0","1","2","3","4","5","6","7","8","9"],ugn=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),ODe)==="0"?cgn:Array.from({length:10}).map((r,i)=>e.formatByString(e.setSeconds(t,i),ODe))},Lz=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let i=0;i<e.length;i+=1){r+=e[i];const o=t.indexOf(r);o>-1&&(n.push(o.toString()),r="")}return n.join("")},pCe=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),zDe=(e,t)=>{const n=Lz(e,t);return n!==" "&&!Number.isNaN(Number(n))},Gst=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},$st=(e,t,n,r,i)=>{if(i.type==="day"&&i.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,i.format)}let o=t.toString();return i.hasLeadingZerosInInput&&(o=Gst(o,i.maxLength)),pCe(o,r)},dgn=(e,t,n,r,i,o,a,s)=>{const l=lgn(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,p=()=>{const g=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=M=>$st(e,M,g,o,n),b=n.type==="minutes"&&s?.minutesStep?s.minutesStep:1;let y;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?y=g.minimum:y=g.maximum}else y=parseInt(Lz(n.value,o),10)+l*b;return y%b!==0&&((l<0||c)&&(y+=b-(b+y)%b),(l>0||u)&&(y-=y%b)),y>g.maximum?m(g.minimum+(y-g.maximum-1)%(g.maximum-g.minimum+1)):y<g.minimum?m(g.maximum-(g.minimum-y-1)%(g.maximum-g.minimum+1)):m(y)},h=()=>{const g=Vst(e,t,n.type,n.format);if(g.length===0)return n.value;if(d)return l>0||c?g[0]:g[g.length-1];const y=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[y]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()},hCe=(e,t,n)=>{let r=e.value||e.placeholder;const i=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Lz(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!i&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},TDe=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),pgn=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Ust=(e,t,n,r)=>{if(t!=="digit")return!1;const i=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(i,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(i),r).length>1;case"day":return e.formatByString(e.startOfMonth(i),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),r).length>1;case"hours":return e.formatByString(e.setHours(i,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),r).length>1;default:throw new Error("Invalid section type")}},hgn=(e,t,n)=>{const r=t.some(l=>l.type==="day"),i=[],o=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(i.push(c.format),o.push(hCe(c,"non-input",n)))}const a=i.join(" "),s=o.join(" ");return e.parse(s,a)},fgn=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),ggn=(e,t,n)=>{const i=e.map(o=>{const a=hCe(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return n?`⁦${i}⁩`:i},mgn=(e,t,n)=>{const r=e.date(void 0,n),i=e.endOfYear(r),o=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=uCe(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:pgn(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=IQ(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(o);return Lz(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Lz(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},vgn=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const i=IQ(e,t.format),o=e.formatByString(n,t.format),a=i.indexOf(o),l=i.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const i=e.getHours(n)<12,o=e.getHours(r);return i&&o>=12?e.addHours(r,-12):!i&&o<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},EDe={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},RDe=(e,t,n,r,i)=>[...n].sort((o,a)=>EDe[o.type]-EDe[a.type]).reduce((o,a)=>!i||a.modified?vgn(e,a,t,o):o,r),bgn=()=>navigator.userAgent.toLowerCase().includes("android"),ygn=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>c>=o&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let l=a;l>=o;l-=1)i[l]=s,r[s]=l,s-=1;o=a+1}return e.forEach((l,c)=>{const u=i[c],d=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Mfe=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},Mgn=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},Cgn=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},xgn=["value","referenceDate"],Tu={emptyValue:null,getTodayValue:dCe,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Lt(e,xgn);return t!=null&&r.utils.isValid(t)?t:n??sgn(r)},cleanValue:egn,areValuesEqual:tgn,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Xst={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:fgn,getV6InputValueFromSections:ggn,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},wgn=["localeText"],Cfe=v.createContext(null),Yst=function(t){const{localeText:n}=t,r=Lt(t,wgn),{utils:i,localeText:o}=v.useContext(Cfe)??{utils:void 0,localeText:void 0},a=Po({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:p}=a,h=v.useMemo(()=>Y({},p,o,n),[p,o,n]),g=v.useMemo(()=>{if(!l)return i||null;const y=new l({locale:d,formats:c,instance:u});if(!y.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
`));return y},[l,d,c,u,i]),m=v.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),b=v.useMemo(()=>({utils:g,defaultDates:m,localeText:h}),[m,g,h]);return f.jsx(Cfe.Provider,{value:b,children:s})},Sgn=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Y({},e)}}}}),PQ=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:i}=e;return o=>{const a=o!==null&&t.isValid(o)?t.format(o,n):null;return(i??r)(o,t,a)}},Kst={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Agn=Kst;Sgn(Kst);const T3=()=>{const e=v.useContext(Cfe);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
`));const t=v.useMemo(()=>Y({},Agn,e.localeText),[e.localeText]);return v.useMemo(()=>Y({},e,{localeText:t}),[e,t])},ua=()=>T3().utils,E3=()=>T3().defaultDates,R3=e=>{const t=ua(),n=v.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Qst(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Qst(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function za(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Qst(e))&&(r&&(r+=" "),r+=t);return r}function Zst(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Zst(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Zst(e))&&(r&&(r+=" "),r+=t);return r}function Ogn(e){return f.jsx(qhn,{...e,defaultTheme:TQ,themeId:G6})}function zgn(e){return function(n){return f.jsx(Ogn,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Tgn(){return jhn}const kr=ufn;function mi(e){return sfn(e)}function Egn(e){return typeof e.main=="string"}function Rgn(e,t=[]){if(!Egn(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function _l(e=[]){return([,t])=>t&&Rgn(t,e)}function Ign(e){return Bn("MuiTypography",e)}const IDe=Ln("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Pgn={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Dgn=Tgn(),kgn=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${jt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Yt(s,Ign,a)},Lgn=rt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${jt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(kr(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(_l()).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${jt(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}}]}))),PDe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},i1=v.forwardRef(function(t,n){const{color:r,...i}=mi({props:t,name:"MuiTypography"}),o=!Pgn[r],a=Dgn({...i,...o&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:h="body1",variantMapping:g=PDe,...m}=a,b={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:p,variant:h,variantMapping:g},y=c||(p?"p":g[h]||PDe[h])||"span",M=kgn(b);return f.jsx(Lgn,{as:y,ref:n,className:nr(M.root,l),...m,ownerState:b,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...m.style}})});function Jst(e){return Bn("MuiPickersToolbar",e)}const _gn=Ln("MuiPickersToolbar",["root","content"]),Ngn=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Fgn=e=>{const{classes:t}=e;return Yt({root:["root"],content:["content"]},Jst,t)},Wgn=rt("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),qgn=rt("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),elt=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:s,titleId:l}=r,c=Lt(r,Ngn),u=r,d=Fgn(u);return s?null:f.jsxs(Wgn,Y({ref:n,className:za(d.root,o),ownerState:u},c,{children:[f.jsx(i1,{color:"text.secondary",variant:"overline",id:l,children:a}),f.jsx(qgn,{className:d.content,ownerState:u,children:i})]}))}),Rd=()=>T3().localeText;function Bgn(e){return Bn("MuiDatePickerToolbar",e)}Ln("MuiDatePickerToolbar",["root","title"]);const jgn=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Hgn=e=>{const{classes:t}=e;return Yt({root:["root"],title:["title"]},Bgn,t)},Vgn=rt(elt,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ggn=rt(i1,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),$gn=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Lt(r,jgn),d=ua(),p=Rd(),h=Hgn(r),g=v.useMemo(()=>{if(!i)return s;const b=RW(d,{format:a,views:l},!0);return d.formatByString(i,b)},[i,a,s,d,l]),m=r;return f.jsx(Vgn,Y({ref:n,toolbarTitle:p.datePickerToolbarTitle,isLandscape:o,className:za(h.root,c)},u,{children:f.jsx(Ggn,{variant:"h4",align:o?"left":"center",ownerState:m,className:h.title,children:g})}))});function tlt(e,t){const n=ua(),r=E3(),i=Po({props:e,name:t}),o=v.useMemo(()=>i.localeText?.toolbarTitle==null?i.localeText:Y({},i.localeText,{datePickerToolbarTitle:i.localeText.toolbarTitle}),[i.localeText]);return Y({},i,{localeText:o},Bst({views:i.views,openTo:i.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:w0(n,i.minDate,r.minDate),maxDate:w0(n,i.maxDate,r.maxDate),slots:Y({toolbar:$gn},i.slots)})}const RD=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:i,shouldDisableMonth:o,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,c=r.utils.date(void 0,n),u=w0(r.utils,e.minDate,r.defaultDates.minDate),d=w0(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(i&&i(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};RD.valueManager=Tu;const nlt=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:i,maxTime:o,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=r,d=e.utils.date(void 0,n),p=Y6(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&p(i,t)):return"minTime";case!!(o&&p(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,d)):return"disableFuture";case!!(c&&e.utils.isBefore(t,d)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};nlt.valueManager=Tu;const DQ=({adapter:e,value:t,timezone:n,props:r})=>{const i=RD({adapter:e,value:t,timezone:n,props:r});return i!==null?i:nlt({adapter:e,value:t,timezone:n,props:r})};DQ.valueManager=Tu;const xfe=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],wfe=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],rlt=["minDateTime","maxDateTime"],Ugn=[...xfe,...wfe,...rlt],kQ=e=>Ugn.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function ilt(e){const{props:t,validator:n,value:r,timezone:i,onError:o}=e,a=T3(),s=v.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:i,props:t}),c=n.valueManager.hasError(l);v.useEffect(()=>{o&&!n.valueManager.isSameError(l,s.current)&&o(l,r),s.current=l},[n,o,l,r]);const u=en(d=>n({adapter:a,value:d,timezone:i,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const LQ=v.createContext(void 0);function mh(){return v.useContext(LQ)}function Xgn(e){return Bn("MuiInputAdornment",e)}const Sfe=Ln("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var DDe;const Ygn=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${jt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Kgn=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${jt(i)}`,a,r&&"hiddenLabel",o&&`size${jt(o)}`]};return Yt(s,Xgn,t)},Qgn=rt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Ygn})(kr(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Sfe.positionStart}&:not(.${Sfe.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),fCe=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,p=mh()||{};let h=u;u&&p.variant,p&&!h&&(h=p.variant);const g={...r,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:h},m=Kgn(g);return f.jsx(LQ.Provider,{value:null,children:f.jsx(Qgn,{as:a,ownerState:g,className:nr(m.root,o),ref:n,...d,children:typeof i=="string"&&!l?f.jsx(i1,{color:"textSecondary",children:i}):f.jsxs(v.Fragment,{children:[c==="start"?DDe||(DDe=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})});function Zgn(e){return Bn("MuiSvgIcon",e)}Ln("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jgn=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${jt(t)}`,`fontSize${jt(n)}`]};return Yt(i,Zgn,r)},emn=rt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${jt(n.color)}`],t[`fontSize${jt(n.fontSize)}`]]}})(kr(({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}}]}))),Afe=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...h}=r,g=v.isValidElement(i)&&i.type==="svg",m={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g},b={};u||(b.viewBox=p);const y=Jgn(m);return f.jsxs(emn,{as:s,className:nr(y.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...b,...h,...g&&i.props,ownerState:m,children:[g?i.props.children:i,d?f.jsx("title",{children:d}):null]})});Afe.muiName="SvgIcon";function Pu(e,t){function n(r,i){return f.jsx(Afe,{"data-testid":void 0,ref:i,...r,children:e})}return n.muiName=Afe.muiName,v.memo(v.forwardRef(n))}function tmn(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function olt(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{tmn(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=nr(a?.className,s?.className,l?.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,i=n(e,r),o=nr(r?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}class d9{static create(){return new d9}static use(){const t=xp(d9.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=rmn(),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 nmn(){return d9.use()}function rmn(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function imn(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=v.useState(!1),p=nr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=nr(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),v.useEffect(()=>{if(!s&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,s,c]),f.jsx("span",{className:p,style:h,children:f.jsx("span",{className:g})})}const ef=Ln("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ofe=550,omn=80,amn=Uf`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

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

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

  50% {
    transform: scale(0.92);
  }

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

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

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

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

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

  & .${ef.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${lmn};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,dmn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a,...s}=r,[l,c]=v.useState([]),u=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=v.useRef(!1),h=Qp(),g=v.useRef(null),m=v.useRef(null),b=v.useCallback(x=>{const{pulsate:w,rippleX:S,rippleY:A,rippleSize:z,cb:O}=x;c(T=>[...T,f.jsx(umn,{classes:{ripple:nr(o.ripple,ef.ripple),rippleVisible:nr(o.rippleVisible,ef.rippleVisible),ripplePulsate:nr(o.ripplePulsate,ef.ripplePulsate),child:nr(o.child,ef.child),childLeaving:nr(o.childLeaving,ef.childLeaving),childPulsate:nr(o.childPulsate,ef.childPulsate)},timeout:Ofe,pulsate:w,rippleX:S,rippleY:A,rippleSize:z},u.current)]),u.current+=1,d.current=O},[o]),y=v.useCallback((x={},w={},S=()=>{})=>{const{pulsate:A=!1,center:z=i||w.pulsate,fakeElement:O=!1}=w;if(x?.type==="mousedown"&&p.current){p.current=!1;return}x?.type==="touchstart"&&(p.current=!0);const T=O?null:m.current,R=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,F,N;if(z||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)P=Math.round(R.width/2),F=Math.round(R.height/2);else{const{clientX:L,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;P=Math.round(L-R.left),F=Math.round(W-R.top)}if(z)N=Math.sqrt((2*R.width**2+R.height**2)/3),N%2===0&&(N+=1);else{const L=Math.max(Math.abs((T?T.clientWidth:0)-P),P)*2+2,W=Math.max(Math.abs((T?T.clientHeight:0)-F),F)*2+2;N=Math.sqrt(L**2+W**2)}x?.touches?g.current===null&&(g.current=()=>{b({pulsate:A,rippleX:P,rippleY:F,rippleSize:N,cb:S})},h.start(omn,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:A,rippleX:P,rippleY:F,rippleSize:N,cb:S})},[i,b,h]),M=v.useCallback(()=>{y({},{pulsate:!0})},[y]),C=v.useCallback((x,w)=>{if(h.clear(),x?.type==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{C(x,w)});return}g.current=null,c(S=>S.length>0?S.slice(1):S),d.current=w},[h]);return v.useImperativeHandle(n,()=>({pulsate:M,start:y,stop:C}),[M,y,C]),f.jsx(cmn,{className:nr(ef.root,o.root,a),ref:m,...s,children:f.jsx(w3,{component:null,exit:!0,children:l})})});function pmn(e){return Bn("MuiButtonBase",e)}const hmn=Ln("MuiButtonBase",["root","disabled","focusVisible"]),fmn=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Yt({root:["root",t&&"disabled",n&&"focusVisible"]},pmn,i);return n&&r&&(a.root+=` ${r}`),a},gmn=rt("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"},[`&.${hmn.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pb=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:m,onClick:b,onContextMenu:y,onDragLeave:M,onFocus:C,onFocusVisible:x,onKeyDown:w,onKeyUp:S,onMouseDown:A,onMouseLeave:z,onMouseUp:O,onTouchEnd:T,onTouchMove:R,onTouchStart:P,tabIndex:F=0,TouchRippleProps:N,touchRippleRef:L,type:W,...j}=r,V=v.useRef(null),G=nmn(),q=Pi(G.ref,L),[$,U]=v.useState(!1);c&&$&&U(!1),v.useImperativeHandle(i,()=>({focusVisible:()=>{U(!0),V.current.focus()}}),[]);const X=G.shouldMount&&!u&&!c;v.useEffect(()=>{$&&p&&!u&&G.pulsate()},[u,p,$,G]);const Q=q2(G,"start",A,d),re=q2(G,"stop",y,d),ee=q2(G,"stop",M,d),se=q2(G,"stop",O,d),pe=q2(G,"stop",ue=>{$&&ue.preventDefault(),z&&z(ue)},d),te=q2(G,"start",P,d),ce=q2(G,"stop",T,d),oe=q2(G,"stop",R,d),ae=q2(G,"stop",ue=>{c9(ue.target)||U(!1),m&&m(ue)},!1),ne=en(ue=>{V.current||(V.current=ue.currentTarget),c9(ue.target)&&(U(!0),x&&x(ue)),C&&C(ue)}),le=()=>{const ue=V.current;return l&&l!=="button"&&!(ue.tagName==="A"&&ue.href)},he=en(ue=>{p&&!ue.repeat&&$&&ue.key===" "&&G.stop(ue,()=>{G.start(ue)}),ue.target===ue.currentTarget&&le()&&ue.key===" "&&ue.preventDefault(),w&&w(ue),ue.target===ue.currentTarget&&le()&&ue.key==="Enter"&&!c&&(ue.preventDefault(),b&&b(ue))}),be=en(ue=>{p&&ue.key===" "&&$&&!ue.defaultPrevented&&G.stop(ue,()=>{G.pulsate(ue)}),S&&S(ue),b&&ue.target===ue.currentTarget&&le()&&ue.key===" "&&!ue.defaultPrevented&&b(ue)});let me=l;me==="button"&&(j.href||j.to)&&(me=g);const Me={};me==="button"?(Me.type=W===void 0?"button":W,Me.disabled=c):(!j.href&&!j.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const Oe=Pi(n,V),de={...r,centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:F,focusVisible:$},ie=fmn(de);return f.jsxs(gmn,{as:me,className:nr(ie.root,s),ownerState:de,onBlur:ae,onClick:b,onContextMenu:re,onFocus:ne,onKeyDown:he,onKeyUp:be,onMouseDown:Q,onMouseLeave:pe,onMouseUp:se,onDragLeave:ee,onTouchEnd:ce,onTouchMove:oe,onTouchStart:te,ref:Oe,tabIndex:c?-1:F,type:W,...Me,...j,children:[a,X?f.jsx(dmn,{ref:q,center:o,...N}):null]})});function q2(e,t,n,r=!1){return en(i=>(n&&n(i),r||e[t](i),!0))}function mmn(e){return Bn("MuiCircularProgress",e)}Ln("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const iC=44,zfe=Uf`
  0% {
    transform: rotate(0deg);
  }

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

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

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,vmn=typeof zfe!="string"?zw`
        animation: ${zfe} 1.4s linear infinite;
      `:null,bmn=typeof Tfe!="string"?zw`
        animation: ${Tfe} 1.4s ease-in-out infinite;
      `:null,ymn=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${jt(r)}`],svg:["svg"],circle:["circle",`circle${jt(n)}`,i&&"circleDisableShrink"]};return Yt(o,mmn,t)},Mmn=rt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${jt(n.color)}`]]}})(kr(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:vmn||{animation:`${zfe} 1.4s linear infinite`}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Cmn=rt("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),xmn=rt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${jt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(kr(({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:bmn||{animation:`${Tfe} 1.4s ease-in-out infinite`}}]}))),K6=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...p}=r,h={...r,color:o,disableShrink:a,size:s,thickness:c,value:u,variant:d},g=ymn(h),m={},b={},y={};if(d==="determinate"){const M=2*Math.PI*((iC-c)/2);m.strokeDasharray=M.toFixed(3),y["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*M).toFixed(3)}px`,b.transform="rotate(-90deg)"}return f.jsx(Mmn,{className:nr(g.root,i),style:{width:s,height:s,...b,...l},ownerState:h,ref:n,role:"progressbar",...y,...p,children:f.jsx(Cmn,{className:g.svg,ownerState:h,viewBox:`${iC/2} ${iC/2} ${iC} ${iC}`,children:f.jsx(xmn,{className:g.circle,style:m,ownerState:h,cx:iC,cy:iC,r:(iC-c)/2,fill:"none",strokeWidth:c})})})});function wmn(e){return Bn("MuiIconButton",e)}const Efe=Ln("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Smn=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o,loading:a}=e,s={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${jt(r)}`,i&&`edge${jt(i)}`,`size${jt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Yt(s,wmn,t)},Amn=rt(Pb,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${jt(n.color)}`],n.edge&&t[`edge${jt(n.edge)}`],t[`size${jt(n.size)}`]]}})(kr(({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}}]})),kr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(_l()).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)}}],[`&.${Efe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Efe.loading}`]:{color:"transparent"}}))),Omn=rt("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"}}]})),Zp=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:p=null,loadingIndicator:h,...g}=r,m=Vi(d),b=h??f.jsx(K6,{"aria-labelledby":m,color:"inherit",size:16}),y={...r,edge:i,color:s,disabled:l,disableFocusRipple:c,loading:p,loadingIndicator:b,size:u},M=Smn(y);return f.jsxs(Amn,{id:p?m:d,className:nr(M.root,a),centerRipple:!0,focusRipple:!c,disabled:l||p,ref:n,...g,ownerState:y,children:[typeof p=="boolean"&&f.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:f.jsx(Omn,{className:M.loadingIndicator,ownerState:y,children:p&&b})}),o]})}),alt=e=>e.scrollTop;function p9(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function Rfe(e){return`scale(${e}, ${e**2})`}const zmn={entering:{opacity:1,transform:Rfe(1)},entered:{opacity:1,transform:"none"}},Die=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bP=v.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:g,timeout:m="auto",TransitionComponent:b=b1,...y}=t,M=Qp(),C=v.useRef(),x=Ub(),w=v.useRef(null),S=Pi(w,z3(o),n),A=L=>W=>{if(L){const j=w.current;W===void 0?L(j):L(j,W)}},z=A(u),O=A((L,W)=>{alt(L);const{duration:j,delay:V,easing:G}=p9({style:g,timeout:m,easing:a},{mode:"enter"});let q;m==="auto"?(q=x.transitions.getAutoHeightDuration(L.clientHeight),C.current=q):q=j,L.style.transition=[x.transitions.create("opacity",{duration:q,delay:V}),x.transitions.create("transform",{duration:Die?q:q*.666,delay:V,easing:G})].join(","),l&&l(L,W)}),T=A(c),R=A(h),P=A(L=>{const{duration:W,delay:j,easing:V}=p9({style:g,timeout:m,easing:a},{mode:"exit"});let G;m==="auto"?(G=x.transitions.getAutoHeightDuration(L.clientHeight),C.current=G):G=W,L.style.transition=[x.transitions.create("opacity",{duration:G,delay:j}),x.transitions.create("transform",{duration:Die?G:G*.666,delay:Die?j:j||G*.333,easing:V})].join(","),L.style.opacity=0,L.style.transform=Rfe(.75),d&&d(L)}),F=A(p),N=L=>{m==="auto"&&M.start(C.current||0,L),r&&r(w.current,L)};return f.jsx(b,{appear:i,in:s,nodeRef:w,onEnter:O,onEntered:T,onEntering:z,onExit:P,onExited:F,onExiting:R,addEndListener:N,timeout:m==="auto"?null:m,...y,children:(L,{ownerState:W,...j})=>v.cloneElement(o,{style:{opacity:0,transform:Rfe(.75),visibility:L==="exited"&&!s?"hidden":void 0,...zmn[L],...g,...o.props.style},ref:S,...j})})});bP&&(bP.muiSupportAuto=!0);const Tmn={entering:{opacity:1},entered:{opacity:1}},_z=v.forwardRef(function(t,n){const r=Ub(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:m,style:b,timeout:y=i,TransitionComponent:M=b1,...C}=t,x=v.useRef(null),w=Pi(x,z3(s),n),S=N=>L=>{if(N){const W=x.current;L===void 0?N(W):N(W,L)}},A=S(p),z=S((N,L)=>{alt(N);const W=p9({style:b,timeout:y,easing:l},{mode:"enter"});N.style.webkitTransition=r.transitions.create("opacity",W),N.style.transition=r.transitions.create("opacity",W),u&&u(N,L)}),O=S(d),T=S(m),R=S(N=>{const L=p9({style:b,timeout:y,easing:l},{mode:"exit"});N.style.webkitTransition=r.transitions.create("opacity",L),N.style.transition=r.transitions.create("opacity",L),h&&h(N)}),P=S(g),F=N=>{o&&o(x.current,N)};return f.jsx(M,{appear:a,in:c,nodeRef:x,onEnter:z,onEntered:O,onEntering:A,onExit:R,onExited:P,onExiting:T,addEndListener:F,timeout:y,...C,children:(N,{ownerState:L,...W})=>v.cloneElement(s,{style:{opacity:0,visibility:N==="exited"&&!c?"hidden":void 0,...Tmn[N],...b,...s.props.style},ref:w,...W})})});function Emn(e){return Bn("MuiPaper",e)}Ln("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 Rmn=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Yt(o,Emn,i)},Imn=rt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(kr(({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)"}}]}))),I3=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiPaper"}),i=Ub(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},p=Rmn(d);return f.jsx(Imn,{as:a,ownerState:d,className:nr(p.root,o),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Sd("#fff",bfe(s))}, ${Sd("#fff",bfe(s))})`}},...u.style}})});var dp="top",kf="bottom",Lf="right",pp="left",gCe="auto",Q6=[dp,kf,Lf,pp],yP="start",PW="end",Pmn="clippingParents",slt="viewport",f4="popper",Dmn="reference",kDe=Q6.reduce(function(e,t){return e.concat([t+"-"+yP,t+"-"+PW])},[]),llt=[].concat(Q6,[gCe]).reduce(function(e,t){return e.concat([t,t+"-"+yP,t+"-"+PW])},[]),kmn="beforeRead",Lmn="read",_mn="afterRead",Nmn="beforeMain",Fmn="main",Wmn="afterMain",qmn="beforeWrite",Bmn="write",jmn="afterWrite",Hmn=[kmn,Lmn,_mn,Nmn,Fmn,Wmn,qmn,Bmn,jmn];function Db(e){return e?(e.nodeName||"").toLowerCase():null}function ch(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nz(e){var t=ch(e).Element;return e instanceof t||e instanceof Element}function zf(e){var t=ch(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mCe(e){if(typeof ShadowRoot>"u")return!1;var t=ch(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vmn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!zf(o)||!Db(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Gmn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!zf(i)||!Db(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const $mn={name:"applyStyles",enabled:!0,phase:"write",fn:Vmn,effect:Gmn,requires:["computeStyles"]};function db(e){return e.split("-")[0]}var jO=Math.max,h9=Math.min,MP=Math.round;function Ife(){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 clt(){return!/^((?!chrome|android).)*safari/i.test(Ife())}function CP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&zf(e)&&(i=e.offsetWidth>0&&MP(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&MP(r.height)/e.offsetHeight||1);var a=Nz(e)?ch(e):window,s=a.visualViewport,l=!clt()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function vCe(e){var t=CP(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ult(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mCe(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ky(e){return ch(e).getComputedStyle(e)}function Umn(e){return["table","td","th"].indexOf(Db(e))>=0}function Ew(e){return((Nz(e)?e.ownerDocument:e.document)||window.document).documentElement}function _Q(e){return Db(e)==="html"?e:e.assignedSlot||e.parentNode||(mCe(e)?e.host:null)||Ew(e)}function LDe(e){return!zf(e)||Ky(e).position==="fixed"?null:e.offsetParent}function Xmn(e){var t=/firefox/i.test(Ife()),n=/Trident/i.test(Ife());if(n&&zf(e)){var r=Ky(e);if(r.position==="fixed")return null}var i=_Q(e);for(mCe(i)&&(i=i.host);zf(i)&&["html","body"].indexOf(Db(i))<0;){var o=Ky(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Z6(e){for(var t=ch(e),n=LDe(e);n&&Umn(n)&&Ky(n).position==="static";)n=LDe(n);return n&&(Db(n)==="html"||Db(n)==="body"&&Ky(n).position==="static")?t:n||Xmn(e)||t}function bCe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function JN(e,t,n){return jO(e,h9(t,n))}function Ymn(e,t,n){var r=JN(e,t,n);return r>n?n:r}function dlt(){return{top:0,right:0,bottom:0,left:0}}function plt(e){return Object.assign({},dlt(),e)}function hlt(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Kmn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,plt(typeof t!="number"?t:hlt(t,Q6))};function Qmn(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=db(n.placement),l=bCe(s),c=[pp,Lf].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=Kmn(i.padding,n),p=vCe(o),h=l==="y"?dp:pp,g=l==="y"?kf:Lf,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],b=a[l]-n.rects.reference[l],y=Z6(o),M=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,C=m/2-b/2,x=d[h],w=M-p[u]-d[g],S=M/2-p[u]/2+C,A=JN(x,S,w),z=l;n.modifiersData[r]=(t={},t[z]=A,t.centerOffset=A-S,t)}}function Zmn(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||ult(t.elements.popper,i)&&(t.elements.arrow=i))}const Jmn={name:"arrow",enabled:!0,phase:"main",fn:Qmn,effect:Zmn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xP(e){return e.split("-")[1]}var evn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tvn(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:MP(n*i)/i||0,y:MP(r*i)/i||0}}function _De(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,g=a.y,m=g===void 0?0:g,b=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var y=a.hasOwnProperty("x"),M=a.hasOwnProperty("y"),C=pp,x=dp,w=window;if(c){var S=Z6(n),A="clientHeight",z="clientWidth";if(S===ch(n)&&(S=Ew(n),Ky(S).position!=="static"&&s==="absolute"&&(A="scrollHeight",z="scrollWidth")),S=S,i===dp||(i===pp||i===Lf)&&o===PW){x=kf;var O=d&&S===w&&w.visualViewport?w.visualViewport.height:S[A];m-=O-r.height,m*=l?1:-1}if(i===pp||(i===dp||i===kf)&&o===PW){C=Lf;var T=d&&S===w&&w.visualViewport?w.visualViewport.width:S[z];h-=T-r.width,h*=l?1:-1}}var R=Object.assign({position:s},c&&evn),P=u===!0?tvn({x:h,y:m},ch(n)):{x:h,y:m};if(h=P.x,m=P.y,l){var F;return Object.assign({},R,(F={},F[x]=M?"0":"",F[C]=y?"0":"",F.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",F))}return Object.assign({},R,(t={},t[x]=M?m+"px":"",t[C]=y?h+"px":"",t.transform="",t))}function nvn(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:db(t.placement),variation:xP(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_De(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_De(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rvn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nvn,data:{}};var b8={passive:!0};function ivn(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ch(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,b8)}),s&&l.addEventListener("resize",n.update,b8),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,b8)}),s&&l.removeEventListener("resize",n.update,b8)}}const ovn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ivn,data:{}};var avn={left:"right",right:"left",bottom:"top",top:"bottom"};function p7(e){return e.replace(/left|right|bottom|top/g,function(t){return avn[t]})}var svn={start:"end",end:"start"};function NDe(e){return e.replace(/start|end/g,function(t){return svn[t]})}function yCe(e){var t=ch(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function MCe(e){return CP(Ew(e)).left+yCe(e).scrollLeft}function lvn(e,t){var n=ch(e),r=Ew(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=clt();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+MCe(e),y:l}}function cvn(e){var t,n=Ew(e),r=yCe(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=jO(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=jO(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+MCe(e),l=-r.scrollTop;return Ky(i||n).direction==="rtl"&&(s+=jO(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function CCe(e){var t=Ky(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function flt(e){return["html","body","#document"].indexOf(Db(e))>=0?e.ownerDocument.body:zf(e)&&CCe(e)?e:flt(_Q(e))}function eF(e,t){var n;t===void 0&&(t=[]);var r=flt(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ch(r),a=i?[o].concat(o.visualViewport||[],CCe(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(eF(_Q(a)))}function Pfe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uvn(e,t){var n=CP(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function FDe(e,t,n){return t===slt?Pfe(lvn(e,n)):Nz(t)?uvn(t,n):Pfe(cvn(Ew(e)))}function dvn(e){var t=eF(_Q(e)),n=["absolute","fixed"].indexOf(Ky(e).position)>=0,r=n&&zf(e)?Z6(e):e;return Nz(r)?t.filter(function(i){return Nz(i)&&ult(i,r)&&Db(i)!=="body"}):[]}function pvn(e,t,n,r){var i=t==="clippingParents"?dvn(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=FDe(e,c,r);return l.top=jO(u.top,l.top),l.right=h9(u.right,l.right),l.bottom=h9(u.bottom,l.bottom),l.left=jO(u.left,l.left),l},FDe(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function glt(e){var t=e.reference,n=e.element,r=e.placement,i=r?db(r):null,o=r?xP(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case dp:l={x:a,y:t.y-n.height};break;case kf:l={x:a,y:t.y+t.height};break;case Lf:l={x:t.x+t.width,y:s};break;case pp:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?bCe(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case yP:l[c]=l[c]-(t[u]/2-n[u]/2);break;case PW:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function DW(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Pmn:s,c=n.rootBoundary,u=c===void 0?slt:c,d=n.elementContext,p=d===void 0?f4:d,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,y=plt(typeof b!="number"?b:hlt(b,Q6)),M=p===f4?Dmn:f4,C=e.rects.popper,x=e.elements[g?M:p],w=pvn(Nz(x)?x:x.contextElement||Ew(e.elements.popper),l,u,a),S=CP(e.elements.reference),A=glt({reference:S,element:C,placement:i}),z=Pfe(Object.assign({},C,A)),O=p===f4?z:S,T={top:w.top-O.top+y.top,bottom:O.bottom-w.bottom+y.bottom,left:w.left-O.left+y.left,right:O.right-w.right+y.right},R=e.modifiersData.offset;if(p===f4&&R){var P=R[i];Object.keys(T).forEach(function(F){var N=[Lf,kf].indexOf(F)>=0?1:-1,L=[dp,kf].indexOf(F)>=0?"y":"x";T[F]+=P[L]*N})}return T}function hvn(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?llt:l,u=xP(r),d=u?s?kDe:kDe.filter(function(g){return xP(g)===u}):Q6,p=d.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=d);var h=p.reduce(function(g,m){return g[m]=DW(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[db(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function fvn(e){if(db(e)===gCe)return[];var t=p7(e);return[NDe(e),t,NDe(t)]}function gvn(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,m=n.allowedAutoPlacements,b=t.options.placement,y=db(b),M=y===b,C=l||(M||!g?[p7(b)]:fvn(b)),x=[b].concat(C).reduce(function(Q,re){return Q.concat(db(re)===gCe?hvn(t,{placement:re,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):re)},[]),w=t.rects.reference,S=t.rects.popper,A=new Map,z=!0,O=x[0],T=0;T<x.length;T++){var R=x[T],P=db(R),F=xP(R)===yP,N=[dp,kf].indexOf(P)>=0,L=N?"width":"height",W=DW(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),j=N?F?Lf:pp:F?kf:dp;w[L]>S[L]&&(j=p7(j));var V=p7(j),G=[];if(o&&G.push(W[P]<=0),s&&G.push(W[j]<=0,W[V]<=0),G.every(function(Q){return Q})){O=R,z=!1;break}A.set(R,G)}if(z)for(var q=g?3:1,$=function(re){var ee=x.find(function(se){var pe=A.get(se);if(pe)return pe.slice(0,re).every(function(te){return te})});if(ee)return O=ee,"break"},U=q;U>0;U--){var X=$(U);if(X==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const mvn={name:"flip",enabled:!0,phase:"main",fn:gvn,requiresIfExists:["offset"],data:{_skip:!1}};function WDe(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qDe(e){return[dp,Lf,kf,pp].some(function(t){return e[t]>=0})}function vvn(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=DW(t,{elementContext:"reference"}),s=DW(t,{altBoundary:!0}),l=WDe(a,r),c=WDe(s,i,o),u=qDe(l),d=qDe(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const bvn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vvn};function yvn(e,t,n){var r=db(e),i=[pp,dp].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[pp,Lf].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Mvn(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=llt.reduce(function(u,d){return u[d]=yvn(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Cvn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mvn};function xvn(e){var t=e.state,n=e.name;t.modifiersData[n]=glt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const wvn={name:"popperOffsets",enabled:!0,phase:"read",fn:xvn,data:{}};function Svn(e){return e==="x"?"y":"x"}function Avn(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,m=g===void 0?0:g,b=DW(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=db(t.placement),M=xP(t.placement),C=!M,x=bCe(y),w=Svn(x),S=t.modifiersData.popperOffsets,A=t.rects.reference,z=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,T=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(o){var F,N=x==="y"?dp:pp,L=x==="y"?kf:Lf,W=x==="y"?"height":"width",j=S[x],V=j+b[N],G=j-b[L],q=h?-z[W]/2:0,$=M===yP?A[W]:z[W],U=M===yP?-z[W]:-A[W],X=t.elements.arrow,Q=h&&X?vCe(X):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:dlt(),ee=re[N],se=re[L],pe=JN(0,A[W],Q[W]),te=C?A[W]/2-q-pe-ee-T.mainAxis:$-pe-ee-T.mainAxis,ce=C?-A[W]/2+q+pe+se+T.mainAxis:U+pe+se+T.mainAxis,oe=t.elements.arrow&&Z6(t.elements.arrow),ae=oe?x==="y"?oe.clientTop||0:oe.clientLeft||0:0,ne=(F=R?.[x])!=null?F:0,le=j+te-ne-ae,he=j+ce-ne,be=JN(h?h9(V,le):V,j,h?jO(G,he):G);S[x]=be,P[x]=be-j}if(s){var me,Me=x==="x"?dp:pp,Oe=x==="x"?kf:Lf,de=S[w],ie=w==="y"?"height":"width",ue=de+b[Me],Ae=de-b[Oe],Ce=[dp,pp].indexOf(y)!==-1,Ee=(me=R?.[w])!=null?me:0,Ge=Ce?ue:de-A[ie]-z[ie]-Ee+T.altAxis,_e=Ce?de+A[ie]+z[ie]-Ee-T.altAxis:Ae,Ie=h&&Ce?Ymn(Ge,de,_e):JN(h?Ge:ue,de,h?_e:Ae);S[w]=Ie,P[w]=Ie-de}t.modifiersData[r]=P}}const Ovn={name:"preventOverflow",enabled:!0,phase:"main",fn:Avn,requiresIfExists:["offset"]};function zvn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tvn(e){return e===ch(e)||!zf(e)?yCe(e):zvn(e)}function Evn(e){var t=e.getBoundingClientRect(),n=MP(t.width)/e.offsetWidth||1,r=MP(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Rvn(e,t,n){n===void 0&&(n=!1);var r=zf(t),i=zf(t)&&Evn(t),o=Ew(t),a=CP(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Db(t)!=="body"||CCe(o))&&(s=Tvn(t)),zf(t)?(l=CP(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=MCe(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ivn(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Pvn(e){var t=Ivn(e);return Hmn.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Dvn(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kvn(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var BDe={placement:"bottom",modifiers:[],strategy:"absolute"};function jDe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Lvn(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?BDe:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},BDe,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:u,setOptions:function(y){var M=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},o,u.options,M),u.scrollParents={reference:Nz(s)?eF(s):s.contextElement?eF(s.contextElement):[],popper:eF(l)};var C=Pvn(kvn([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(x){return x.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var y=u.elements,M=y.reference,C=y.popper;if(jDe(M,C)){u.rects={reference:Rvn(M,Z6(C),u.options.strategy==="fixed"),popper:vCe(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var w=u.orderedModifiers[x],S=w.fn,A=w.options,z=A===void 0?{}:A,O=w.name;typeof S=="function"&&(u=S({state:u,options:z,name:O,instance:h})||u)}}}},update:Dvn(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){m(),p=!0}};if(!jDe(s,l))return h;h.setOptions(c).then(function(b){!p&&c.onFirstUpdate&&c.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var y=b.name,M=b.options,C=M===void 0?{}:M,x=b.effect;if(typeof x=="function"){var w=x({state:u,name:y,instance:h,options:C}),S=function(){};d.push(w||S)}})}function m(){d.forEach(function(b){return b()}),d=[]}return h}}var _vn=[ovn,wvn,rvn,$mn,Cvn,mvn,Ovn,Jmn,bvn],mlt=Lvn({defaultModifiers:_vn});function Nvn(e){return typeof e=="function"?e():e}const vlt=v.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=v.useState(null),l=Pi(v.isValidElement(r)?z3(r):null,n);if(Ro(()=>{o||s(Nvn(i)||document.body)},[i,o]),Ro(()=>{if(a&&!o)return yfe(n,a),()=>{yfe(n,null)}},[n,a,o]),o){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return a&&Bl.createPortal(r,a)});function Fvn(e){return Bn("MuiPopper",e)}Ln("MuiPopper",["root"]);function Wvn(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 Dfe(e){return typeof e=="function"?e():e}function qvn(e){return e.nodeType!==void 0}const Bvn=e=>{const{classes:t}=e;return Yt({root:["root"]},Fvn,t)},jvn={},Hvn=v.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:h={},TransitionProps:g,ownerState:m,...b}=t,y=v.useRef(null),M=Pi(y,n),C=v.useRef(null),x=Pi(C,d),w=v.useRef(x);Ro(()=>{w.current=x},[x]),v.useImperativeHandle(d,()=>C.current,[]);const S=Wvn(c,o),[A,z]=v.useState(S),[O,T]=v.useState(Dfe(r));v.useEffect(()=>{C.current&&C.current.forceUpdate()}),v.useEffect(()=>{r&&T(Dfe(r))},[r]),Ro(()=>{if(!O||!l)return;const L=V=>{z(V.placement)};let W=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{L(V)}}];s!=null&&(W=W.concat(s)),u&&u.modifiers!=null&&(W=W.concat(u.modifiers));const j=mlt(O,y.current,{placement:S,...u,modifiers:W});return w.current(j),()=>{j.destroy(),w.current(null)}},[O,a,s,l,u,S]);const R={placement:A};g!==null&&(R.TransitionProps=g);const P=Bvn(t),F=h.root??"div",N=Vo({elementType:F,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:M},ownerState:t,className:P.root});return f.jsx(F,{...N,children:typeof i=="function"?i(R):i})}),Vvn=v.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=jvn,popperRef:h,style:g,transition:m=!1,slotProps:b={},slots:y={},...M}=t,[C,x]=v.useState(!0),w=()=>{x(!1)},S=()=>{x(!0)};if(!l&&!u&&(!m||C))return null;let A;if(o)A=o;else if(r){const T=Dfe(r);A=T&&qvn(T)?Ds(T).body:Ds(null).body}const z=!u&&l&&(!m||C)?"none":void 0,O=m?{in:u,onEnter:w,onExited:S}:void 0;return f.jsx(vlt,{disablePortal:s,container:A,children:f.jsx(Hvn,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:m?!C:u,placement:d,popperOptions:p,popperRef:h,slotProps:b,slots:y,...M,style:{position:"fixed",top:0,left:0,display:z,...g},TransitionProps:O,children:i})})}),Gvn=rt(Vvn,{name:"MuiPopper",slot:"Root"})({}),ID=v.forwardRef(function(t,n){const r=ts(),i=mi({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:b,transition:y,slots:M,slotProps:C,...x}=i,w=M?.root??s?.Root,S={anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:b,transition:y,...x};return f.jsx(Gvn,{as:a,direction:r?"rtl":"ltr",slots:{root:w},slotProps:C??l,...S,ref:n})}),$vn=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Uvn(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 Xvn(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Yvn(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Xvn(e))}function Kvn(e){const t=[],n=[];return Array.from(e.querySelectorAll($vn)).forEach((r,i)=>{const o=Uvn(r);o===-1||!Yvn(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function Qvn(){return!0}function xCe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Kvn,isEnabled:a=Qvn,open:s}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),p=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),m=Pi(z3(t),g),b=v.useRef(null);v.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!g.current)return;const C=Ds(g.current);return g.current.contains(C.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),v.useEffect(()=>{if(!s||!g.current)return;const C=Ds(g.current),x=A=>{b.current=A,!(r||!a()||A.key!=="Tab")&&C.activeElement===g.current&&A.shiftKey&&(l.current=!0,u.current&&u.current.focus())},w=()=>{const A=g.current;if(A===null)return;if(!C.hasFocus()||!a()||l.current){l.current=!1;return}if(A.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let z=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(z=o(g.current)),z.length>0){const O=!!(b.current?.shiftKey&&b.current?.key==="Tab"),T=z[0],R=z[z.length-1];typeof T!="string"&&typeof R!="string"&&(O?R.focus():T.focus())}else A.focus()};C.addEventListener("focusin",w),C.addEventListener("keydown",x,!0);const S=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(S),C.removeEventListener("focusin",w),C.removeEventListener("keydown",x,!0)}},[n,r,i,a,s,o]);const y=C=>{d.current===null&&(d.current=C.relatedTarget),h.current=!0,p.current=C.target;const x=t.props.onFocus;x&&x(C)},M=C=>{d.current===null&&(d.current=C.relatedTarget),h.current=!0};return f.jsxs(v.Fragment,{children:[f.jsx("div",{tabIndex:s?0:-1,onFocus:M,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:y}),f.jsx("div",{tabIndex:s?0:-1,onFocus:M,ref:u,"data-testid":"sentinelEnd"})]})}function Zvn(e){return Bn("MuiPickersPopper",e)}Ln("MuiPickersPopper",["root","paper"]);function Jvn(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ebn=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Z0=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Z0(t.shadowRoot):t:null},f9=e=>Array.from(e.children).indexOf(Z0(document)),blt="@media (pointer: fine)",tbn="@media (prefers-reduced-motion: reduce)",fI=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),HDe=fI&&fI[1]?parseInt(fI[1],10):null,VDe=fI&&fI[2]?parseInt(fI[2],10):null,nbn=HDe&&HDe<10||VDe&&VDe<13||!1,ylt=()=>aCe(tbn,{defaultMatches:!1})||nbn,rbn=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ibn=e=>{const{classes:t}=e;return Yt({root:["root"],paper:["paper"]},Zvn,t)},obn=rt(ID,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),abn=rt(I3,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function sbn(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function lbn(e,t){const n=v.useRef(!1),r=v.useRef(!1),i=v.useRef(null),o=v.useRef(!1);v.useEffect(()=>{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=en(l=>{if(!o.current)return;const c=r.current;r.current=!1;const u=Ds(i.current);if(!i.current||"clientX"in l&&sbn(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!u.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=Ds(i.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),v.useEffect(()=>{if(e){const l=Ds(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const cbn=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Lt(e,rbn),d=Y({},i,{placement:r}),p=Vo({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return f.jsx(n,Y({},u,p,{onClick:h=>{l(h),p.onClick?.(h)},onTouchStart:h=>{c(h),p.onTouchStart?.(h)},ownerState:d,children:o}))});function ubn(e){const t=Po({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:i=null,shouldRestoreFocus:o,onBlur:a,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:p,reduceAnimations:h}=t;v.useEffect(()=>{function L(W){l&&W.key==="Escape"&&s()}return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[s,l]);const g=v.useRef(null);v.useEffect(()=>{c==="tooltip"||o&&!o()||(l?g.current=Z0(document):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[l,c,o]);const[m,b,y]=lbn(l,a??s),M=v.useRef(null),C=Pi(M,i),x=Pi(C,m),w=t,S=ibn(w),A=ylt(),z=h??A,O=L=>{L.key==="Escape"&&(L.stopPropagation(),s())},T=d?.desktopTransition??z?_z:bP,R=d?.desktopTrapFocus??xCe,P=d?.desktopPaper??abn,F=d?.popper??obn,N=Vo({elementType:F,externalSlotProps:p?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:O},className:S.root,ownerState:t});return f.jsx(F,Y({},N,{children:({TransitionProps:L,placement:W})=>f.jsx(R,Y({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},p?.desktopTrapFocus,{children:f.jsx(T,Y({},L,p?.desktopTransition,{children:f.jsx(cbn,{PaperComponent:P,ownerState:w,popperPlacement:W,ref:x,onPaperClick:b,onPaperTouchStart:y,paperClasses:S.paper,paperSlotProps:p?.desktopPaper,children:r})}))}))}))}const dbn=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[i,o]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const a=v.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},wCe=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:i,valueManager:o})=>{const a=ua(),s=v.useRef(n),l=t??s.current??o.emptyValue,c=v.useMemo(()=>o.getTimezone(a,l),[a,o,l]),u=en(g=>c==null?g:o.setTimezone(a,c,g));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const p=v.useMemo(()=>o.setTimezone(a,d,l),[o,a,d,l]),h=en((g,...m)=>{const b=u(g);i?.(b,...m)});return{value:p,handleValueChange:h,timezone:d}},PD=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:i,onChange:o,valueManager:a})=>{const[s,l]=up({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=en((u,...d)=>{l(u),o?.(u,...d)});return wCe({timezone:t,value:s,defaultValue:void 0,referenceDate:i,onChange:c,valueManager:a})},pbn=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},hbn=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},fbn=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},gbn=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:p}=v.useRef(l),{current:h}=v.useRef(s!==void 0),[g,m]=v.useState(u),b=ua(),y=T3(),{isOpen:M,setIsOpen:C}=dbn(e),{timezone:x,value:w,handleValueChange:S}=wCe({timezone:u,value:s,defaultValue:p,referenceDate:d,onChange:a,valueManager:t}),[A,z]=v.useState(()=>{let te;return w!==void 0?te=w:p!==void 0?te=p:te=t.emptyValue,{draft:te,lastPublishedValue:te,lastCommittedValue:te,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),O=t.getTimezone(b,A.draft);g!==u&&(m(u),u&&O&&u!==O&&z(te=>Y({},te,{draft:t.setTimezone(b,u,te.draft)})));const{getValidationErrorForNewValue:T}=ilt({props:e,validator:i,timezone:x,value:A.draft,onError:e.onError}),R=en(te=>{const ce={action:te,dateState:A,hasChanged:be=>!t.areValuesEqual(b,te.value,be),isControlled:h,closeOnSelect:c},oe=pbn(ce),ae=hbn(ce),ne=fbn(ce);z(be=>Y({},be,{draft:te.value,lastPublishedValue:oe?te.value:be.lastPublishedValue,lastCommittedValue:ae?te.value:be.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let le=null;const he=()=>(le||(le={validationError:te.name==="setValueFromField"?te.context.validationError:T(te.value)},te.name==="setValueFromShortcut"&&(le.shortcut=te.shortcut)),le);oe&&S(te.value,he()),ae&&o&&o(te.value,he()),ne&&C(!1)});if(A.lastControlledValue!==s){const te=t.areValuesEqual(b,A.draft,w);z(ce=>Y({},ce,{lastControlledValue:s},te?{}:{lastCommittedValue:w,lastPublishedValue:w,draft:w,hasBeenModifiedSinceMount:!0}))}const P=en(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=en(()=>{R({value:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),N=en(()=>{R({value:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),L=en(()=>{R({value:A.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),W=en(()=>{R({value:t.getTodayValue(b,x,n),name:"setValueFromAction",pickerAction:"today"})}),j=en(te=>{te.preventDefault(),C(!0)}),V=en(te=>{te?.preventDefault(),C(!1)}),G=en((te,ce="partial")=>R({name:"setValueFromView",value:te,selectionState:ce})),q=en((te,ce,oe)=>R({name:"setValueFromShortcut",value:te,changeImportance:ce,shortcut:oe})),$=en((te,ce)=>R({name:"setValueFromField",value:te,context:ce})),U={onClear:P,onAccept:F,onDismiss:N,onCancel:L,onSetToday:W,onOpen:j,onClose:V},X={value:A.draft,onChange:$},Q=v.useMemo(()=>t.cleanValue(b,A.draft),[b,t,A.draft]),re={value:Q,onChange:G,onClose:V,open:M},se=Y({},U,{value:Q,onChange:G,onSelectShortcut:q,isValid:te=>{const ce=i({adapter:y,value:te,timezone:x,props:e});return!t.hasError(ce)}}),pe=v.useMemo(()=>({onOpen:j,onClose:V,open:M}),[M,V,j]);return{open:M,fieldProps:X,viewProps:re,layoutProps:se,actions:U,contextValue:pe}};function J6({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){const l=v.useRef(n),c=v.useRef(i),u=v.useRef(i.includes(n)?n:i[0]),[d,p]=up({name:"useViews",state:"view",controlled:r,default:u.current}),h=v.useRef(o?d:null),[g,m]=up({name:"useViews",state:"focusedView",controlled:a,default:h.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(A=>!i.includes(A)))&&(p(i.includes(n)?n:i[0]),c.current=i,l.current=n)},[n,p,d,i]);const b=i.indexOf(d),y=i[b-1]??null,M=i[b+1]??null,C=en((A,z)=>{m(z?A:O=>A===O?null:O),s?.(A,z)}),x=en(A=>{C(A,!0),A!==d&&(p(A),t&&t(A))}),w=en(()=>{M&&x(M)}),S=en((A,z,O)=>{const T=z==="finish",R=O?i.indexOf(O)<i.length-1:!!M;if(e(A,T&&R?"partial":z,O),O&&O!==d){const F=i[i.indexOf(O)+1];F&&x(F)}else T&&w()});return{view:d,setView:x,focusedView:g,setFocusedView:C,nextView:M,previousView:y,defaultView:i.includes(n)?n:i[0],goToNextView:w,setValueAndGoToNextView:S}}const mbn=["className","sx"],vbn=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:i,fieldRef:o})=>{const{onChange:a,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:p,viewRenderers:h,timezone:g}=e,m=Lt(e,mbn),{view:b,setView:y,defaultView:M,focusedView:C,setFocusedView:x,setValueAndGoToNextView:w}=J6({view:c,views:u,openTo:d,onChange:a,onViewChange:p,autoFocus:r}),{hasUIView:S,viewModeLookup:A}=v.useMemo(()=>u.reduce((N,L)=>{let W;return h[L]!=null?W="UI":W="field",N.viewModeLookup[L]=W,W==="UI"&&(N.hasUIView=!0),N},{hasUIView:!1,viewModeLookup:{}}),[h,u]),z=v.useMemo(()=>u.reduce((N,L)=>h[L]!=null&&vP(L)?N+1:N,0),[h,u]),O=A[b],T=en(()=>O==="UI"),[R,P]=v.useState(O==="UI"?b:null);return R!==b&&A[b]==="UI"&&P(b),Ro(()=>{O==="field"&&s&&(l(),setTimeout(()=>{o?.current?.setSelectedSections(b),o?.current?.focusField(b)}))},[b]),Ro(()=>{if(!s)return;let N=b;O==="field"&&R!=null&&(N=R),N!==M&&A[N]==="UI"&&A[M]==="UI"&&(N=M),N!==b&&y(N),x(N,!0)},[s]),{hasUIView:S,shouldRestoreFocus:T,layoutProps:{views:u,view:R,onViewChange:y},renderCurrentView:()=>{if(R==null)return null;const N=h[R];if(N==null)return null;const L=Y({},m,n,t,{views:u,timezone:g,onChange:w,view:R,onViewChange:y,focusedView:C,onFocusedViewChange:x,showViewSwitcher:z>1,timeViewsCount:z});return i?i(h,R,L):N(L)}}};function GDe(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const bbn=(e,t)=>{const[n,r]=v.useState(GDe);return Ro(()=>{const o=()=>{r(GDe())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Jvn(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},ybn=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=bbn(n.views,i),a=ts();return{layoutProps:Y({},n,t,{isLandscape:o,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Mbn(e){const{props:t,pickerValueResponse:n}=e;return v.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Mlt=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:i,validator:o,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=gbn({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o}),u=vbn({props:e,additionalViewProps:i,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=ybn({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),p=Mbn({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:p}};function Clt(e){return Bn("MuiPickersLayout",e)}const Bg=Ln("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Cbn(e){return Bn("MuiButton",e)}const BS=Ln("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"]),xbn=v.createContext({}),wbn=v.createContext(void 0),Sbn=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",o,`${o}${jt(t)}`,`size${jt(i)}`,`${o}Size${jt(i)}`,`color${jt(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${jt(s)}`],startIcon:["icon","startIcon",`iconSize${jt(i)}`],endIcon:["icon","endIcon",`iconSize${jt(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Yt(c,Cbn,l);return{...l,...u}},xlt=[{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}}}],Abn=rt(Pb,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${jt(n.color)}`],t[`size${jt(n.size)}`],t[`${n.variant}Size${jt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(kr(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=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"},[`&.${BS.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]},[`&.${BS.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${BS.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)",[`&.${BS.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(_l()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].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:n,"--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"},[`&.${BS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${BS.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}),[`&.${BS.loading}`]:{color:"transparent"}}}]}})),Obn=rt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${jt(n.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}},...xlt]})),zbn=rt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${jt(n.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}},...xlt]})),Tbn=rt("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}}]})),$De=rt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),LR=v.forwardRef(function(t,n){const r=v.useContext(xbn),i=v.useContext(wbn),o=Dz(r,t),a=mi({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:m,fullWidth:b=!1,id:y,loading:M=null,loadingIndicator:C,loadingPosition:x="center",size:w="medium",startIcon:S,type:A,variant:z="text",...O}=a,T=Vi(y),R=C??f.jsx(K6,{"aria-labelledby":T,color:"inherit",size:16}),P={...a,color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:b,loading:M,loadingIndicator:R,loadingPosition:x,size:w,type:A,variant:z},F=Sbn(P),N=(S||M&&x==="start")&&f.jsx(Obn,{className:F.startIcon,ownerState:P,children:S||f.jsx($De,{className:F.loadingIconPlaceholder,ownerState:P})}),L=(g||M&&x==="end")&&f.jsx(zbn,{className:F.endIcon,ownerState:P,children:g||f.jsx($De,{className:F.loadingIconPlaceholder,ownerState:P})}),W=i||"",j=typeof M=="boolean"?f.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:M&&f.jsx(Tbn,{className:F.loadingIndicator,ownerState:P,children:R})}):null;return f.jsxs(Abn,{ownerState:P,className:nr(r.className,F.root,u,W),component:c,disabled:d||M,focusRipple:!h,focusVisibleClassName:nr(F.focusVisible,m),ref:n,type:A,id:M?T:y,...O,classes:F,children:[N,x!=="end"&&j,s,x==="end"&&j,L]})});function Ebn(e){return Bn("MuiDialogActions",e)}Ln("MuiDialogActions",["root","spacing"]);const Rbn=e=>{const{classes:t,disableSpacing:n}=e;return Yt({root:["root",!n&&"spacing"]},Ebn,t)},Ibn=rt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.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}}}]}),Pbn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...a}=r,s={...r,disableSpacing:o},l=Rbn(s);return f.jsx(Ibn,{className:nr(l.root,i),ownerState:s,ref:n,...a})}),Dbn=["onAccept","onClear","onCancel","onSetToday","actions"];function kbn(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Lt(e,Dbn),s=Rd();if(o==null||o.length===0)return null;const l=o?.map(c=>{switch(c){case"clear":return f.jsx(LR,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return f.jsx(LR,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return f.jsx(LR,{onClick:t,children:s.okButtonLabel},c);case"today":return f.jsx(LR,{onClick:i,children:s.todayButtonLabel},c);default:return null}});return f.jsx(Pbn,Y({},a,{children:l}))}const Iy=v.createContext({});function Lbn(e){return Bn("MuiList",e)}Ln("MuiList",["root","padding","dense","subheader"]);const _bn=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Yt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Lbn,t)},Nbn=rt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.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}}]}),wlt=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=v.useMemo(()=>({dense:s}),[s]),p={...r,component:a,dense:s,disablePadding:l},h=_bn(p);return f.jsx(Iy.Provider,{value:d,children:f.jsxs(Nbn,{as:a,className:nr(h.root,o),ref:n,ownerState:p,...u,children:[c,i]})})});function Fbn(e){return Bn("MuiListItem",e)}Ln("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Wbn=Ln("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function qbn(e){return Bn("MuiListItemSecondaryAction",e)}Ln("MuiListItemSecondaryAction",["root","disableGutters"]);const Bbn=e=>{const{disableGutters:t,classes:n}=e;return Yt({root:["root",t&&"disableGutters"]},qbn,n)},jbn=rt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Slt=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,a=v.useContext(Iy),s={...r,disableGutters:a.disableGutters},l=Bbn(s);return f.jsx(jbn,{className:nr(l.root,i),ownerState:s,ref:n,...o})});Slt.muiName="ListItemSecondaryAction";const Hbn=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Vbn=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:a,hasSecondaryAction:s}=e;return Yt({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},Fbn,n)},Gbn=rt("div",{name:"MuiListItem",slot:"Root",overridesResolver:Hbn})(kr(({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:{[`& > .${Wbn.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}}]}))),$bn=rt("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ubn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:h=!1,disableGutters:g=!1,disablePadding:m=!1,divider:b=!1,secondaryAction:y,slotProps:M={},slots:C={},...x}=r,w=v.useContext(Iy),S=v.useMemo(()=>({dense:h||w.dense||!1,alignItems:i,disableGutters:g}),[i,w.dense,h,g]),A=v.useRef(null),z=v.Children.toArray(o),O=z.length&&d7(z[z.length-1],["ListItemSecondaryAction"]),T={...r,alignItems:i,dense:S.dense,disableGutters:g,disablePadding:m,divider:b,hasSecondaryAction:O},R=Vbn(T),P=Pi(A,n),F=C.root||l.Root||Gbn,N=M.root||c.root||{},L={className:nr(R.root,N.className,a),...x};let W=s||"li";return O?(W=!L.component&&!s?"div":W,u==="li"&&(W==="li"?W="div":L.component==="li"&&(L.component="div")),f.jsx(Iy.Provider,{value:S,children:f.jsxs($bn,{as:u,className:nr(R.container,d),ref:P,ownerState:T,...p,children:[f.jsx(F,{...N,...!gP(F)&&{as:W,ownerState:{...T,...N.ownerState}},...L,children:z}),z.pop()]})})):f.jsx(Iy.Provider,{value:S,children:f.jsxs(F,{...N,as:W,ref:P,...!gP(F)&&{ownerState:{...T,...N.ownerState}},...L,children:[z,y&&f.jsx(Slt,{children:y})]})})}),Xbn=Pu(f.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 Ybn(e){return Bn("MuiChip",e)}const Bo=Ln("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"]);function ni(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=o,h=u[e]||r,g=kz(d[e],i),{props:{component:m,...b},internalRef:y}=qst({className:n,...l,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g}),M=Pi(y,g?.ref,t.ref),C=e==="root"?m||c:m,x=Fst(h,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...b,...C&&!s&&{as:C},...C&&s&&{component:C},ref:M},i);return[h,x]}const Kbn=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${jt(r)}`,`color${jt(i)}`,s&&"clickable",s&&`clickableColor${jt(i)}`,a&&"deletable",a&&`deletableColor${jt(i)}`,`${l}${jt(i)}`],label:["label",`label${jt(r)}`],avatar:["avatar",`avatar${jt(r)}`,`avatarColor${jt(i)}`],icon:["icon",`icon${jt(r)}`,`iconColor${jt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${jt(r)}`,`deleteIconColor${jt(i)}`,`deleteIcon${jt(l)}Color${jt(i)}`]};return Yt(c,Ybn,t)},Qbn=rt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${Bo.avatar}`]:t.avatar},{[`& .${Bo.avatar}`]:t[`avatar${jt(s)}`]},{[`& .${Bo.avatar}`]:t[`avatarColor${jt(r)}`]},{[`& .${Bo.icon}`]:t.icon},{[`& .${Bo.icon}`]:t[`icon${jt(s)}`]},{[`& .${Bo.icon}`]:t[`iconColor${jt(i)}`]},{[`& .${Bo.deleteIcon}`]:t.deleteIcon},{[`& .${Bo.deleteIcon}`]:t[`deleteIcon${jt(s)}`]},{[`& .${Bo.deleteIcon}`]:t[`deleteIconColor${jt(r)}`]},{[`& .${Bo.deleteIcon}`]:t[`deleteIcon${jt(l)}Color${jt(r)}`]},t.root,t[`size${jt(s)}`],t[`color${jt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${jt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${jt(r)}`],t[l],t[`${l}${jt(r)}`]]}})(kr(({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",[`&.${Bo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Bo.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Bo.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Bo.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Bo.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Bo.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Bo.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,[`& .${Bo.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Bo.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(_l(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Bo.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Bo.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Bo.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Bo.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(_l(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Bo.focusVisible}`]:{background:(e.vars||e).palette[n].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}`)},[`&.${Bo.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(_l(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Bo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].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]}`,[`&.${Bo.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Bo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Bo.avatar}`]:{marginLeft:4},[`& .${Bo.avatarSmall}`]:{marginLeft:2},[`& .${Bo.icon}`]:{marginLeft:4},[`& .${Bo.iconSmall}`]:{marginLeft:2},[`& .${Bo.deleteIcon}`]:{marginRight:5},[`& .${Bo.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(_l()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Bo.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Bo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Bo.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Zbn=rt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${jt(r)}`]]}})({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 UDe(e){return e.key==="Backspace"||e.key==="Delete"}const NQ=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:g,onKeyDown:m,onKeyUp:b,size:y="medium",variant:M="filled",tabIndex:C,skipFocusWhenDisabled:x=!1,slots:w={},slotProps:S={},...A}=r,z=v.useRef(null),O=Pi(z,n),T=ee=>{ee.stopPropagation(),g&&g(ee)},R=ee=>{ee.currentTarget===ee.target&&UDe(ee)&&ee.preventDefault(),m&&m(ee)},P=ee=>{ee.currentTarget===ee.target&&g&&UDe(ee)&&g(ee),b&&b(ee)},F=a!==!1&&h?!0:a,N=F||g?Pb:l||"div",L={...r,component:N,disabled:u,size:y,color:s,iconColor:v.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:F,variant:M},W=Kbn(L),j=N===Pb?{component:l||"div",focusVisibleClassName:W.focusVisible,...g&&{disableRipple:!0}}:{};let V=null;g&&(V=c&&v.isValidElement(c)?v.cloneElement(c,{className:nr(c.props.className,W.deleteIcon),onClick:T}):f.jsx(Xbn,{className:W.deleteIcon,onClick:T}));let G=null;i&&v.isValidElement(i)&&(G=v.cloneElement(i,{className:nr(W.avatar,i.props.className)}));let q=null;d&&v.isValidElement(d)&&(q=v.cloneElement(d,{className:nr(W.icon,d.props.className)}));const $={slots:w,slotProps:S},[U,X]=ni("root",{elementType:Qbn,externalForwardedProps:{...$,...A},ownerState:L,shouldForwardComponentProp:!0,ref:O,className:nr(W.root,o),additionalProps:{disabled:F&&u?!0:void 0,tabIndex:x&&u?-1:C,...j},getSlotProps:ee=>({...ee,onClick:se=>{ee.onClick?.(se),h?.(se)},onKeyDown:se=>{ee.onKeyDown?.(se),R(se)},onKeyUp:se=>{ee.onKeyUp?.(se),P(se)}})}),[Q,re]=ni("label",{elementType:Zbn,externalForwardedProps:$,ownerState:L,className:W.label});return f.jsxs(U,{as:N,...X,children:[G||q,f.jsx(Q,{...re,children:p}),V]})}),kW=36,FQ=2,WQ=320,Jbn=280,qQ=336,Alt=232,rN=48,e2n=["items","changeImportance","isLandscape","onChange","isValid"],t2n=["getValue"];function n2n(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:i}=e,o=Lt(e,e2n);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Lt(s,t2n);const u=l({isValid:i});return Y({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!i(u)})});return f.jsx(wlt,Y({dense:!0,sx:[{maxHeight:qQ,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>f.jsx(Ubn,{children:f.jsx(NQ,Y({},s))},s.id??s.label))}))}function r2n(e){return e.view!==null}const i2n=e=>{const{classes:t,isLandscape:n}=e;return Yt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Clt,t)},Olt=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:i,onSetToday:o,view:a,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:p,isLandscape:h,disabled:g,readOnly:m,children:b,slots:y,slotProps:M}=e,C=i2n(e),x=y?.actionBar??kbn,w=Vo({elementType:x,externalSlotProps:M?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:i,onSetToday:o,actions:t==="desktop"?[]:["cancel","accept"]},className:C.actionBar,ownerState:Y({},e,{wrapperVariant:t})}),S=f.jsx(x,Y({},w)),A=y?.toolbar,z=Vo({elementType:A,externalSlotProps:M?.toolbar,additionalProps:{isLandscape:h,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:g,readOnly:m},className:C.toolbar,ownerState:Y({},e,{wrapperVariant:t})}),O=r2n(z)&&A?f.jsx(A,Y({},z)):null,T=b,R=y?.tabs,P=a&&R?f.jsx(R,Y({view:a,onViewChange:l,className:C.tabs},M?.tabs)):null,F=y?.shortcuts??n2n,N=Vo({elementType:F,externalSlotProps:M?.shortcuts,additionalProps:{isValid:p,isLandscape:h,onChange:d},className:C.shortcuts,ownerState:{isValid:p,isLandscape:h,onChange:d,wrapperVariant:t}}),L=a&&F?f.jsx(F,Y({},N)):null;return{toolbar:O,content:T,tabs:P,actionBar:S,shortcuts:L}},o2n=e=>{const{isLandscape:t,classes:n}=e;return Yt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Clt,n)},zlt=rt("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Bg.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Bg.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Bg.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Bg.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Bg.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Bg.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Bg.shortcuts}`]:{gridColumn:3}}}]}),Tlt=rt("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Elt=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersLayout"}),{toolbar:i,content:o,tabs:a,actionBar:s,shortcuts:l}=Olt(r),{sx:c,className:u,isLandscape:d,wrapperVariant:p}=r,h=o2n(r);return f.jsxs(zlt,{ref:n,sx:c,className:za(h.root,u),ownerState:r,children:[d?l:i,d?i:l,f.jsx(Tlt,{className:h.contentWrapper,children:p==="desktop"?f.jsxs(v.Fragment,{children:[o,a]}):f.jsxs(v.Fragment,{children:[a,o]})}),s]})}),a2n=v.createContext(null);function Rlt(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(a2n.Provider,{value:t,children:f.jsx(Yst,{localeText:n,children:r})})}const s2n=["props","getOpenDialogAriaText"],l2n=["ownerState"],c2n=["ownerState"],Ilt=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Lt(e,s2n);const{slots:i,slotProps:o,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:p,timezone:h,name:g,label:m,inputRef:b,readOnly:y,disabled:M,autoFocus:C,localeText:x,reduceAnimations:w}=t,S=v.useRef(null),A=v.useRef(null),z=Vi(),O=o?.toolbar?.hidden??!1,{open:T,actions:R,hasUIView:P,layoutProps:F,renderCurrentView:N,shouldRestoreFocus:L,fieldProps:W,contextValue:j,ownerState:V}=Mlt(Y({},r,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),G=i.inputAdornment??fCe,q=Vo({elementType:G,externalSlotProps:o?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),$=Lt(q,l2n),U=i.openPickerButton??Zp,X=Vo({elementType:U,externalSlotProps:o?.openPickerButton,additionalProps:{disabled:M||y,onClick:T?R.onClose:R.onOpen,"aria-label":n(W.value),edge:$.position},ownerState:t}),Q=Lt(X,c2n),re=i.openPickerIcon,ee=Vo({elementType:re,externalSlotProps:o?.openPickerIcon,ownerState:V}),se=i.field,pe=Vo({elementType:se,externalSlotProps:o?.field,additionalProps:Y({},W,O&&{id:z},{readOnly:y,disabled:M,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:p,timezone:h,label:m,name:g,autoFocus:C&&!t.open,focused:T?!0:void 0},b?{inputRef:b}:{}),ownerState:t});P&&(pe.InputProps=Y({},pe.InputProps,{ref:S},!t.disableOpenPicker&&{[`${$.position}Adornment`]:f.jsx(G,Y({},$,{children:f.jsx(U,Y({},Q,{children:f.jsx(re,Y({},ee))}))}))}));const te=Y({textField:i.textField,clearIcon:i.clearIcon,clearButton:i.clearButton},pe.slots),ce=i.layout??Elt;let oe=z;O&&(m?oe=`${z}-label`:oe=void 0);const ae=Y({},o,{toolbar:Y({},o?.toolbar,{titleId:z}),popper:Y({"aria-labelledby":oe},o?.popper)}),ne=Pi(A,pe.unstableFieldRef);return{renderPicker:()=>f.jsxs(Rlt,{contextValue:j,localeText:x,children:[f.jsx(se,Y({},pe,{slots:te,slotProps:ae,unstableFieldRef:ne})),f.jsx(ubn,Y({role:"dialog",placement:"bottom-start",anchorEl:S.current},R,{open:T,slots:i,slotProps:ae,shouldRestoreFocus:L,reduceAnimations:w,children:f.jsx(ce,Y({},F,ae?.layout,{slots:i,slotProps:ae,children:N()}))}))]})}},u2n=Pu(f.jsx("path",{d:"M7 10l5 5 5-5z"})),d2n=Pu(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),p2n=Pu(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),g9=Pu(f.jsx("path",{d:"M17 12h-5v5h5v-5zM16 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-1V1h-2zm3 18H5V8h14v11z"}));Pu(f.jsxs(v.Fragment,{children:[f.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const h2n=Pu(f.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})),f2n=Pu(f.jsxs(v.Fragment,{children:[f.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),SCe=Pu(f.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"}));function y8(e){return parseInt(e,10)||0}const g2n={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function m2n(e){for(const t in e)return!1;return!0}function XDe(e){return m2n(e)||e.outerHeightStyle===0&&!e.overflowing}const v2n=v.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s,...l}=t,{current:c}=v.useRef(s!=null),u=v.useRef(null),d=Pi(n,u),p=v.useRef(null),h=v.useRef(null),g=v.useCallback(()=>{const C=u.current,x=h.current;if(!C||!x)return;const S=Mm(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=S.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===`
`&&(x.value+=" ");const A=S.boxSizing,z=y8(S.paddingBottom)+y8(S.paddingTop),O=y8(S.borderBottomWidth)+y8(S.borderTopWidth),T=x.scrollHeight;x.value="x";const R=x.scrollHeight;let P=T;o&&(P=Math.max(Number(o)*R,P)),i&&(P=Math.min(Number(i)*R,P)),P=Math.max(P,R);const F=P+(A==="border-box"?z+O:0),N=Math.abs(P-T)<=1;return{outerHeightStyle:F,overflowing:N}},[i,o,t.placeholder]),m=en(()=>{const C=u.current,x=g();if(!C||!x||XDe(x))return!1;const w=x.outerHeightStyle;return p.current!=null&&p.current!==w}),b=v.useCallback(()=>{const C=u.current,x=g();if(!C||!x||XDe(x))return;const w=x.outerHeightStyle;p.current!==w&&(p.current=w,C.style.height=`${w}px`),C.style.overflow=x.overflowing?"hidden":""},[g]),y=v.useRef(-1);Ro(()=>{const C=Tw(b),x=u?.current;if(!x)return;const w=Mm(x);w.addEventListener("resize",C);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{m()&&(S.unobserve(x),cancelAnimationFrame(y.current),b(),y.current=requestAnimationFrame(()=>{S.observe(x)}))}),S.observe(x)),()=>{C.clear(),cancelAnimationFrame(y.current),w.removeEventListener("resize",C),S&&S.disconnect()}},[g,b,m]),Ro(()=>{b()});const M=C=>{c||b();const x=C.target,w=x.value.length,S=x.value.endsWith(`
`),A=x.selectionStart===w;S&&A&&x.setSelectionRange(w,w),r&&r(C)};return f.jsxs(v.Fragment,{children:[f.jsx("textarea",{value:s,onChange:M,ref:d,rows:o,style:a,...l}),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...g2n.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function P3({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}function YDe(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function m9(e,t=!1){return e&&(YDe(e.value)&&e.value!==""||t&&YDe(e.defaultValue)&&e.defaultValue!=="")}function b2n(e){return e.startAdornment}function y2n(e){return Bn("MuiInputBase",e)}const vd=Ln("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var KDe;const BQ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${jt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},jQ=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},M2n=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:g}=e,m={root:["root",`color${jt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${jt(p)}`,u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Yt(m,y2n,t)},HQ=rt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:BQ})(kr(({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",[`&.${vd.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:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),VQ=rt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jQ})(kr(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vd.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${vd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.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:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),QDe=zgn({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),eB=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:g,error:m,fullWidth:b=!1,id:y,inputComponent:M="input",inputProps:C={},inputRef:x,margin:w,maxRows:S,minRows:A,multiline:z=!1,name:O,onBlur:T,onChange:R,onClick:P,onFocus:F,onKeyDown:N,onKeyUp:L,placeholder:W,readOnly:j,renderSuffix:V,rows:G,size:q,slotProps:$={},slots:U={},startAdornment:X,type:Q="text",value:re,...ee}=r,se=C.value!=null?C.value:re,{current:pe}=v.useRef(se!=null),te=v.useRef(),ce=v.useCallback(ve=>{},[]),oe=Pi(te,x,C.ref,ce),[ae,ne]=v.useState(!1),le=mh(),he=P3({props:r,muiFormControl:le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=le?le.focused:ae,v.useEffect(()=>{!le&&p&&ae&&(ne(!1),T&&T())},[le,p,ae,T]);const be=le&&le.onFilled,me=le&&le.onEmpty,Me=v.useCallback(ve=>{m9(ve)?be&&be():me&&me()},[be,me]);Ro(()=>{pe&&Me({value:se})},[se,Me,pe]);const Oe=ve=>{F&&F(ve),C.onFocus&&C.onFocus(ve),le&&le.onFocus?le.onFocus(ve):ne(!0)},de=ve=>{T&&T(ve),C.onBlur&&C.onBlur(ve),le&&le.onBlur?le.onBlur(ve):ne(!1)},ie=(ve,...De)=>{if(!pe){const ze=ve.target||te.current;if(ze==null)throw new Error(Xy(1));Me({value:ze.value})}C.onChange&&C.onChange(ve,...De),R&&R(ve,...De)};v.useEffect(()=>{Me(te.current)},[]);const ue=ve=>{te.current&&ve.currentTarget===ve.target&&te.current.focus(),P&&P(ve)};let Ae=M,Ce=C;z&&Ae==="input"&&(G?Ce={type:void 0,minRows:G,maxRows:G,...Ce}:Ce={type:void 0,maxRows:S,minRows:A,...Ce},Ae=v2n);const Ee=ve=>{Me(ve.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};v.useEffect(()=>{le&&le.setAdornedStart(!!X)},[le,X]);const Ge={...r,color:he.color||"primary",disabled:he.disabled,endAdornment:g,error:he.error,focused:he.focused,formControl:le,fullWidth:b,hiddenLabel:he.hiddenLabel,multiline:z,size:he.size,startAdornment:X,type:Q},_e=M2n(Ge),Ie=U.root||c.Root||HQ,Le=$.root||u.root||{},we=U.input||c.Input||VQ;return Ce={...Ce,...$.input??u.input},f.jsxs(v.Fragment,{children:[!h&&typeof QDe=="function"&&(KDe||(KDe=f.jsx(QDe,{}))),f.jsxs(Ie,{...Le,ref:n,onClick:ue,...ee,...!gP(Ie)&&{ownerState:{...Ge,...Le.ownerState}},className:nr(_e.root,Le.className,s,j&&"MuiInputBase-readOnly"),children:[X,f.jsx(LQ.Provider,{value:null,children:f.jsx(we,{"aria-invalid":he.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:d,disabled:he.disabled,id:y,onAnimationStart:Ee,name:O,placeholder:W,readOnly:j,required:he.required,rows:G,value:se,onKeyDown:N,onKeyUp:L,type:Q,...Ce,...!gP(we)&&{as:Ae,ownerState:{...Ge,...Ce.ownerState}},ref:oe,className:nr(_e.input,Ce.className,j&&"MuiInputBase-readOnly"),onBlur:de,onChange:ie,onFocus:Oe})}),g,V?V({...he,startAdornment:X}):null]})]})});function C2n(e){return Bn("MuiInput",e)}const UC={...vd,...Ln("MuiInput",["root","underline","input"])},x2n=e=>{const{classes:t,disableUnderline:n}=e,i=Yt({root:["root",!n&&"underline"],input:["input"]},C2n,t);return{...t,...i}},w2n=rt(HQ,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...BQ(e,t),!n.disableUnderline&&t.underline]}})(kr(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.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"},[`&.${UC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${UC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${UC.disabled}, .${UC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${UC.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_l()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),S2n=rt(VQ,{name:"MuiInput",slot:"Input",overridesResolver:jQ})({}),ACe=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:p="text",...h}=r,g=x2n(r),b={root:{ownerState:{disableUnderline:i}}},y=u??a?v0(u??a,b):b,M=d.root??o.Root??w2n,C=d.input??o.Input??S2n;return f.jsx(eB,{slots:{root:M,input:C},slotProps:y,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:p,...h,classes:g})});ACe.muiName="Input";function A2n(e){return Bn("MuiFilledInput",e)}const Hp={...vd,...Ln("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},O2n=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${jt(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Yt(l,A2n,t);return{...t,...c}},z2n=rt(HQ,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...BQ(e,t),!n.disableUnderline&&t.underline]}})(kr(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Hp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Hp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:a})=>!a.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"},[`&.${Hp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hp.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):n}`,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(.${Hp.disabled}, .${Hp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Hp.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_l()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),T2n=rt(VQ,{name:"MuiFilledInput",slot:"Input",overridesResolver:jQ})(kr(({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}}]}))),OCe=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...g}=r,m={...r,disableUnderline:i,fullWidth:s,inputComponent:c,multiline:u,type:h},b=O2n(r),y={root:{ownerState:m},input:{ownerState:m}},M=d??a?v0(y,d??a):y,C=p.root??o.Root??z2n,x=p.input??o.Input??T2n;return f.jsx(eB,{slots:{root:C,input:x},slotProps:M,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:h,...g,classes:b})});OCe.muiName="Input";var ZDe;const E2n=rt("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cp})({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%"}),R2n=rt("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cp})(kr(({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 I2n(e){const{children:t,classes:n,className:r,label:i,notched:o,...a}=e,s=i!=null&&i!=="",l={...e,notched:o,withLabel:s};return f.jsx(E2n,{"aria-hidden":!0,className:r,ownerState:l,...a,children:f.jsx(R2n,{ownerState:l,children:s?f.jsx("span",{children:i}):ZDe||(ZDe=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function P2n(e){return Bn("MuiOutlinedInput",e)}const Gh={...vd,...Ln("MuiOutlinedInput",["root","notchedOutline","input"])},D2n=e=>{const{classes:t}=e,r=Yt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},P2n,t);return{...t,...r}},k2n=rt(HQ,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:BQ})(kr(({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 .${Gh.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Gh.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Gh.focused} .${Gh.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_l()).map(([n])=>({props:{color:n},style:{[`&.${Gh.focused} .${Gh.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Gh.error} .${Gh.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Gh.disabled} .${Gh.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),L2n=rt(I2n,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(kr(({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}})),_2n=rt(VQ,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jQ})(kr(({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}}]}))),zCe=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...h}=r,g=D2n(r),m=mh(),b=P3({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:m,fullWidth:o,hiddenLabel:b.hiddenLabel,multiline:l,size:b.size,type:p},M=u.root??i.Root??k2n,C=u.input??i.Input??_2n,[x,w]=ni("notchedOutline",{elementType:L2n,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:s!=null&&s!==""&&b.required?f.jsxs(v.Fragment,{children:[s," ","*"]}):s}});return f.jsx(eB,{slots:{root:M,input:C},slotProps:d,renderSuffix:S=>f.jsx(x,{...w,notched:typeof c<"u"?c:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:n,type:p,...h,classes:{...g,notchedOutline:null}})});zCe.muiName="Input";function N2n(e){return Bn("MuiFormLabel",e)}const tF=Ln("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),F2n=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${jt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Yt(l,N2n,t)},W2n=rt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(kr(({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(_l()).map(([t])=>({props:{color:t},style:{[`&.${tF.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${tF.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tF.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),q2n=rt("span",{name:"MuiFormLabel",slot:"Asterisk"})(kr(({theme:e})=>({[`&.${tF.error}`]:{color:(e.vars||e).palette.error.main}}))),B2n=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFormLabel"}),{children:i,className:o,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:p,...h}=r,g=mh(),m=P3({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:m.color||"primary",component:s,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=F2n(b);return f.jsxs(W2n,{as:s,ownerState:b,className:nr(y.root,o),ref:n,...h,children:[i,m.required&&f.jsxs(q2n,{ownerState:b,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function j2n(e){return Bn("MuiInputLabel",e)}Ln("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const H2n=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="medium"&&`size${jt(r)}`,a],asterisk:[s&&"asterisk"]},c=Yt(l,j2n,t);return{...t,...c}},V2n=rt(B2n,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${tF.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(kr(({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:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="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:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Rw=v.forwardRef(function(t,n){const r=mi({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:o,shrink:a,variant:s,className:l,...c}=r,u=mh();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const p=P3({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:i,formControl:u,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused},g=H2n(h);return f.jsx(V2n,{"data-shrink":d,ref:n,className:nr(g.root,l),...c,ownerState:h,classes:g})});function G2n(e){return Bn("MuiFormControl",e)}Ln("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const $2n=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${jt(n)}`,r&&"fullWidth"]};return Yt(i,G2n,t)},U2n=rt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${jt(n.margin)}`],n.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%"}}]}),Iw=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:g=!1,size:m="medium",variant:b="outlined",...y}=r,M={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:g,size:m,variant:b},C=$2n(M),[x,w]=v.useState(()=>{let L=!1;return i&&v.Children.forEach(i,W=>{if(!d7(W,["Input","Select"]))return;const j=d7(W,["Select"])?W.props.input:W;j&&b2n(j.props)&&(L=!0)}),L}),[S,A]=v.useState(()=>{let L=!1;return i&&v.Children.forEach(i,W=>{d7(W,["Input","Select"])&&(m9(W.props,!0)||m9(W.props.inputProps,!0))&&(L=!0)}),L}),[z,O]=v.useState(!1);l&&z&&O(!1);const T=u!==void 0&&!l?u:z;let R;v.useRef(!1);const P=v.useCallback(()=>{A(!0)},[]),F=v.useCallback(()=>{A(!1)},[]),N=v.useMemo(()=>({adornedStart:x,setAdornedStart:w,color:a,disabled:l,error:c,filled:S,focused:T,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{O(!1)},onFocus:()=>{O(!0)},onEmpty:F,onFilled:P,registerEffect:R,required:g,variant:b}),[x,a,l,c,S,T,d,p,R,F,P,g,m,b]);return f.jsx(LQ.Provider,{value:N,children:f.jsx(U2n,{as:s,ownerState:M,className:nr(C.root,o),ref:n,...y,children:i})})});function X2n(e){return Bn("MuiFormHelperText",e)}const JDe=Ln("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var eke;const Y2n=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${jt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Yt(c,X2n,t)},K2n=rt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${jt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(kr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${JDe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${JDe.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}}]}))),Plt=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:p,variant:h,...g}=r,m=mh(),b=P3({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...r,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete y.ownerState;const M=Y2n(y);return f.jsx(K2n,{as:a,className:nr(M.root,o),ref:n,...g,ownerState:y,children:i===" "?eke||(eke=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});function kie(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function tke(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Dlt(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function g4(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Dlt(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const GQ=v.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=t,h=v.useRef(null),g=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ro(()=>{i&&h.current.focus()},[i]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,{direction:x})=>{const w=!h.current.style.width;if(C.clientHeight<h.current.clientHeight&&w){const S=`${Nst(Mm(C))}px`;h.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=S,h.current.style.width=`calc(100% + ${S})`}return h.current}}),[]);const m=C=>{const x=h.current,w=C.key;if(C.ctrlKey||C.metaKey||C.altKey){u&&u(C);return}const A=Ds(x).activeElement;if(w==="ArrowDown")C.preventDefault(),g4(x,A,c,l,kie);else if(w==="ArrowUp")C.preventDefault(),g4(x,A,c,l,tke);else if(w==="Home")C.preventDefault(),g4(x,null,c,l,kie);else if(w==="End")C.preventDefault(),g4(x,null,c,l,tke);else if(w.length===1){const z=g.current,O=w.toLowerCase(),T=performance.now();z.keys.length>0&&(T-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&O!==z.keys[0]&&(z.repeating=!1)),z.lastTime=T,z.keys.push(O);const R=A&&!z.repeating&&Dlt(A,z);z.previousKeyMatched&&(R||g4(x,A,!1,l,kie,z))?C.preventDefault():z.previousKeyMatched=!1}u&&u(C)},b=Pi(h,n);let y=-1;v.Children.forEach(a,(C,x)=>{if(!v.isValidElement(C)){y===x&&(y+=1,y>=a.length&&(y=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||y===-1)&&(y=x),y===x&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const M=v.Children.map(a,(C,x)=>{if(x===y){const w={};return o&&(w.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(w.tabIndex=0),v.cloneElement(C,w)}return C});return f.jsx(wlt,{role:"menu",ref:b,className:s,onKeyDown:m,tabIndex:i?0:-1,...p,children:M})});function Q2n(e){const t=Ds(e);return t.body===e?Mm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function nF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nke(e){return parseInt(Mm(e).getComputedStyle(e).paddingRight,10)||0}function Z2n(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function rke(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=!o.includes(a),l=!Z2n(a);s&&l&&nF(a,i)})}function Lie(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function J2n(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Q2n(r)){const a=Nst(Mm(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nke(r)+a}px`;const s=Ds(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${nke(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ds(r).body;else{const a=r.parentElement,s=Mm(r);o=a?.nodeName==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function eyn(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class tyn{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&nF(t.modalRef,!1);const i=eyn(n);rke(n,t.mount,t.modalRef,i,!0);const o=Lie(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Lie(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=J2n(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Lie(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&nF(t.modalRef,n),rke(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&nF(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function nyn(e){return Bn("MuiBackdrop",e)}Ln("MuiBackdrop",["root","invisible"]);const ryn=e=>{const{classes:t,invisible:n}=e;return Yt({root:["root",n&&"invisible"]},nyn,t)},iyn=rt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.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"}}]}),klt=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:p={},TransitionComponent:h,transitionDuration:g,...m}=r,b={...r,component:a,invisible:s},y=ryn(b),M={transition:h,root:c.Root,...p},C={...u,...d},x={component:a,slots:M,slotProps:C},[w,S]=ni("root",{elementType:iyn,externalForwardedProps:x,className:nr(y.root,o),ownerState:b}),[A,z]=ni("transition",{elementType:_z,externalForwardedProps:x,ownerState:b});return f.jsx(A,{in:l,timeout:g,...m,...z,children:f.jsx(w,{"aria-hidden":!0,...S,classes:y,ref:n,children:i})})});function oyn(e){return typeof e=="function"?e():e}function ayn(e){return e?e.props.hasOwnProperty("in"):!1}const ike=()=>{},M8=new tyn;function syn(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=v.useRef({}),p=v.useRef(null),h=v.useRef(null),g=Pi(h,u),[m,b]=v.useState(!c),y=ayn(s);let M=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(M=!1);const C=()=>Ds(p.current),x=()=>(d.current.modalRef=h.current,d.current.mount=p.current,d.current),w=()=>{M8.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},S=en(()=>{const L=oyn(t)||C().body;M8.add(x(),L),h.current&&w()}),A=()=>M8.isTopModal(x()),z=en(L=>{p.current=L,L&&(c&&A()?w():h.current&&nF(h.current,M))}),O=v.useCallback(()=>{M8.remove(x(),M)},[M]);v.useEffect(()=>()=>{O()},[O]),v.useEffect(()=>{c?S():(!y||!i)&&O()},[c,O,y,i,S]);const T=L=>W=>{L.onKeyDown?.(W),!(W.key!=="Escape"||W.which===229||!A())&&(n||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},R=L=>W=>{L.onClick?.(W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(L={})=>{const W=Wst(e);delete W.onTransitionEnter,delete W.onTransitionExited;const j={...W,...L};return{role:"presentation",...j,onKeyDown:T(j),ref:g}},getBackdropProps:(L={})=>{const W=L;return{"aria-hidden":!0,...W,onClick:R(W),open:c}},getTransitionProps:()=>{const L=()=>{b(!1),o&&o()},W=()=>{b(!0),a&&a(),i&&O()};return{onEnter:CDe(L,s?.props.onEnter??ike),onExited:CDe(W,s?.props.onExited??ike)}},rootRef:g,portalRef:z,isTopModal:A,exited:m,hasTransition:y}}function lyn(e){return Bn("MuiModal",e)}Ln("MuiModal",["root","hidden","backdrop"]);const cyn=e=>{const{open:t,exited:n,classes:r}=e;return Yt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},lyn,r)},uyn=rt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(kr(({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"}}]}))),dyn=rt(klt,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Llt=v.forwardRef(function(t,n){const r=mi({name:"MuiModal",props:t}),{BackdropComponent:i=dyn,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:h={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:b=!1,disablePortal:y=!1,disableRestoreFocus:M=!1,disableScrollLock:C=!1,hideBackdrop:x=!1,keepMounted:w=!1,onClose:S,onTransitionEnter:A,onTransitionExited:z,open:O,slotProps:T={},slots:R={},theme:P,...F}=r,N={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:b,disablePortal:y,disableRestoreFocus:M,disableScrollLock:C,hideBackdrop:x,keepMounted:w},{getRootProps:L,getBackdropProps:W,getTransitionProps:j,portalRef:V,isTopModal:G,exited:q,hasTransition:$}=syn({...N,rootRef:n}),U={...N,exited:q},X=cyn(U),Q={};if(c.props.tabIndex===void 0&&(Q.tabIndex="-1"),$){const{onEnter:ce,onExited:oe}=j();Q.onEnter=ce,Q.onExited=oe}const re={slots:{root:p.Root,backdrop:p.Backdrop,...R},slotProps:{...h,...T}},[ee,se]=ni("root",{ref:n,elementType:uyn,externalForwardedProps:{...re,...F,component:d},getSlotProps:L,ownerState:U,className:nr(s,X?.root,!U.open&&U.exited&&X?.hidden)}),[pe,te]=ni("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ce=>W({...ce,onClick:oe=>{ce?.onClick&&ce.onClick(oe)}}),className:nr(o?.className,X?.backdrop),ownerState:U});return!w&&!O&&(!$||q)?null:f.jsx(vlt,{ref:V,container:u,disablePortal:y,children:f.jsxs(ee,{...se,children:[!x&&i?f.jsx(pe,{...te}):null,f.jsx(xCe,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:M,isEnabled:G,open:O,children:v.cloneElement(c,Q)})]})})});function pyn(e){return Bn("MuiPopover",e)}Ln("MuiPopover",["root","paper"]);function oke(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ake(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ske(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function C8(e){return typeof e=="function"?e():e}const hyn=e=>{const{classes:t}=e;return Yt({root:["root"],paper:["paper"]},pyn,t)},fyn=rt(Llt,{name:"MuiPopover",slot:"Root"})({}),_lt=rt(I3,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),gyn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:h=16,open:g,PaperProps:m={},slots:b={},slotProps:y={},transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:x="auto",TransitionProps:w={},disableScrollLock:S=!1,...A}=r,z=v.useRef(),O={...r,anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:h,transformOrigin:M,TransitionComponent:C,transitionDuration:x,TransitionProps:w},T=hyn(O),R=v.useCallback(()=>{if(l==="anchorPosition")return s;const ce=C8(o),ae=(ce&&ce.nodeType===1?ce:Ds(z.current).body).getBoundingClientRect();return{top:ae.top+oke(ae,a.vertical),left:ae.left+ake(ae,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),P=v.useCallback(ce=>({vertical:oke(ce,M.vertical),horizontal:ake(ce,M.horizontal)}),[M.horizontal,M.vertical]),F=v.useCallback(ce=>{const oe={width:ce.offsetWidth,height:ce.offsetHeight},ae=P(oe);if(l==="none")return{top:null,left:null,transformOrigin:ske(ae)};const ne=R();let le=ne.top-ae.vertical,he=ne.left-ae.horizontal;const be=le+oe.height,me=he+oe.width,Me=Mm(C8(o)),Oe=Me.innerHeight-h,de=Me.innerWidth-h;if(h!==null&&le<h){const ie=le-h;le-=ie,ae.vertical+=ie}else if(h!==null&&be>Oe){const ie=be-Oe;le-=ie,ae.vertical+=ie}if(h!==null&&he<h){const ie=he-h;he-=ie,ae.horizontal+=ie}else if(me>de){const ie=me-de;he-=ie,ae.horizontal+=ie}return{top:`${Math.round(le)}px`,left:`${Math.round(he)}px`,transformOrigin:ske(ae)}},[o,l,R,P,h]),[N,L]=v.useState(g),W=v.useCallback(()=>{const ce=z.current;if(!ce)return;const oe=F(ce);oe.top!==null&&ce.style.setProperty("top",oe.top),oe.left!==null&&(ce.style.left=oe.left),ce.style.transformOrigin=oe.transformOrigin,L(!0)},[F]);v.useEffect(()=>(S&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[o,S,W]);const j=()=>{W()},V=()=>{L(!1)};v.useEffect(()=>{g&&W()}),v.useImperativeHandle(i,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),v.useEffect(()=>{if(!g)return;const ce=Tw(()=>{W()}),oe=Mm(C8(o));return oe.addEventListener("resize",ce),()=>{ce.clear(),oe.removeEventListener("resize",ce)}},[o,g,W]);let G=x;const q={slots:{transition:C,...b},slotProps:{transition:w,paper:m,...y}},[$,U]=ni("transition",{elementType:bP,externalForwardedProps:q,ownerState:O,getSlotProps:ce=>({...ce,onEntering:(oe,ae)=>{ce.onEntering?.(oe,ae),j()},onExited:oe=>{ce.onExited?.(oe),V()}}),additionalProps:{appear:!0,in:g}});x==="auto"&&!$.muiSupportAuto&&(G=void 0);const X=d||(o?Ds(C8(o)).body:void 0),[Q,{slots:re,slotProps:ee,...se}]=ni("root",{ref:n,elementType:fyn,externalForwardedProps:{...q,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:olt(typeof y.backdrop=="function"?y.backdrop(O):y.backdrop,{invisible:!0})},container:X,open:g},ownerState:O,className:nr(T.root,u)}),[pe,te]=ni("paper",{ref:z,className:T.paper,elementType:_lt,externalForwardedProps:q,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:N?void 0:{opacity:0}},ownerState:O});return f.jsx(Q,{...se,...!gP(Q)&&{slots:re,slotProps:ee,disableScrollLock:S},children:f.jsx($,{...U,timeout:G,children:f.jsx(pe,{...te,children:c})})})});function myn(e){return Bn("MuiMenu",e)}Ln("MuiMenu",["root","paper","list"]);const vyn={vertical:"top",horizontal:"right"},byn={vertical:"top",horizontal:"left"},yyn=e=>{const{classes:t}=e;return Yt({root:["root"],paper:["paper"],list:["list"]},myn,t)},Myn=rt(gyn,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Cyn=rt(_lt,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xyn=rt(GQ,{name:"MuiMenu",slot:"List"})({outline:0}),wyn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:g,...m}={},variant:b="selectedMenu",slots:y={},slotProps:M={},...C}=r,x=ts(),w={...r,autoFocus:i,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:b},S=yyn(w),A=i&&!s&&u,z=v.useRef(null),O=(G,q)=>{z.current&&z.current.adjustStyleForScrollbar(G,{direction:x?"rtl":"ltr"}),g&&g(G,q)},T=G=>{G.key==="Tab"&&(G.preventDefault(),c&&c(G,"tabKeyDown"))};let R=-1;v.Children.map(o,(G,q)=>{v.isValidElement(G)&&(G.props.disabled||(b==="selectedMenu"&&G.props.selected||R===-1)&&(R=q))});const P={slots:y,slotProps:{list:l,transition:m,paper:d,...M}},F=Vo({elementType:y.root,externalSlotProps:M.root,ownerState:w,className:[S.root,a]}),[N,L]=ni("paper",{className:S.paper,elementType:Cyn,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:w}),[W,j]=ni("list",{className:nr(S.list,l.className),elementType:xyn,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:G=>({...G,onKeyDown:q=>{T(q),G.onKeyDown?.(q)}}),ownerState:w}),V=typeof P.slotProps.transition=="function"?P.slotProps.transition(w):P.slotProps.transition;return f.jsx(Myn,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?vyn:byn,slots:{root:y.root,paper:N,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:F,paper:L,backdrop:typeof M.backdrop=="function"?M.backdrop(w):M.backdrop,transition:{...V,onEntering:(...G)=>{O(...G),V?.onEntering?.(...G)}}},open:u,ref:n,transitionDuration:h,ownerState:w,...C,classes:p,children:f.jsx(W,{actions:z,autoFocus:i&&(R===-1||s),autoFocusItem:A,variant:b,...j,children:o})})});function Syn(e){return Bn("MuiNativeSelect",e)}const TCe=Ln("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ayn=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${jt(n)}`,o&&"iconOpen",r&&"disabled"]};return Yt(s,Syn,t)},Nlt=rt("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${TCe.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}}}]})),Oyn=rt(Nlt,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cp,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${TCe.multiple}`]:t.multiple}]}})({}),Flt=rt("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${TCe.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}}]})),zyn=rt(Flt,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${jt(n.variant)}`],n.open&&t.iconOpen]}})({}),Tyn=v.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:i,variant:l,error:o},d=Ayn(u);return f.jsxs(v.Fragment,{children:[f.jsx(Oyn,{ownerState:u,className:nr(d.select,r),disabled:i,ref:s||n,...c}),t.multiple?null:f.jsx(zyn,{as:a,ownerState:u,className:d.icon})]})});function Wlt(e){return Bn("MuiSelect",e)}const m4=Ln("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lke;const Eyn=rt(Nlt,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${m4.select}`]:t.select},{[`&.${m4.select}`]:t[n.variant]},{[`&.${m4.error}`]:t.error},{[`&.${m4.multiple}`]:t.multiple}]}})({[`&.${m4.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ryn=rt(Flt,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${jt(n.variant)}`],n.open&&t.iconOpen]}})({}),Iyn=rt("input",{shouldForwardProp:e=>_st(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function cke(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Pyn(e){return e==null||typeof e=="string"&&!e.trim()}const Dyn=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${jt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Yt(s,Wlt,t)},kyn=v.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:h=!1,IconComponent:g,inputRef:m,labelId:b,MenuProps:y={},multiple:M,name:C,onBlur:x,onChange:w,onClose:S,onFocus:A,onOpen:z,open:O,readOnly:T,renderValue:R,required:P,SelectDisplayProps:F={},tabIndex:N,type:L,value:W,variant:j="standard",...V}=t,[G,q]=up({controlled:W,default:u,name:"Select"}),[$,U]=up({controlled:O,default:c,name:"Select"}),X=v.useRef(null),Q=v.useRef(null),[re,ee]=v.useState(null),{current:se}=v.useRef(O!=null),[pe,te]=v.useState(),ce=Pi(n,m),oe=v.useCallback(Ke=>{Q.current=Ke,Ke&&ee(Ke)},[]),ae=re?.parentNode;v.useImperativeHandle(ce,()=>({focus:()=>{Q.current.focus()},node:X.current,value:G}),[G]),v.useEffect(()=>{c&&$&&re&&!se&&(te(a?null:ae.clientWidth),Q.current.focus())},[re,a]),v.useEffect(()=>{o&&Q.current.focus()},[o]),v.useEffect(()=>{if(!b)return;const Ke=Ds(Q.current).getElementById(b);if(Ke){const et=()=>{getSelection().isCollapsed&&Q.current.focus()};return Ke.addEventListener("click",et),()=>{Ke.removeEventListener("click",et)}}},[b]);const ne=(Ke,et)=>{Ke?z&&z(et):S&&S(et),se||(te(a?null:ae.clientWidth),U(Ke))},le=Ke=>{Ke.button===0&&(Ke.preventDefault(),Q.current.focus(),ne(!0,Ke))},he=Ke=>{ne(!1,Ke)},be=v.Children.toArray(s),me=Ke=>{const et=be.find(it=>it.props.value===Ke.target.value);et!==void 0&&(q(et.props.value),w&&w(Ke,et))},Me=Ke=>et=>{let it;if(et.currentTarget.hasAttribute("tabindex")){if(M){it=Array.isArray(G)?G.slice():[];const Ft=G.indexOf(Ke.props.value);Ft===-1?it.push(Ke.props.value):it.splice(Ft,1)}else it=Ke.props.value;if(Ke.props.onClick&&Ke.props.onClick(et),G!==it&&(q(it),w)){const Ft=et.nativeEvent||et,Dt=new Ft.constructor(Ft.type,Ft);Object.defineProperty(Dt,"target",{writable:!0,value:{value:it,name:C}}),w(Dt,Ke)}M||ne(!1,et)}},Oe=Ke=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(Ke.key)&&(Ke.preventDefault(),ne(!0,Ke))},de=re!==null&&$,ie=Ke=>{!de&&x&&(Object.defineProperty(Ke,"target",{writable:!0,value:{value:G,name:C}}),x(Ke))};delete V["aria-invalid"];let ue,Ae;const Ce=[];let Ee=!1;(m9({value:G})||p)&&(R?ue=R(G):Ee=!0);const Ge=be.map(Ke=>{if(!v.isValidElement(Ke))return null;let et;if(M){if(!Array.isArray(G))throw new Error(Xy(2));et=G.some(it=>cke(it,Ke.props.value)),et&&Ee&&Ce.push(Ke.props.children)}else et=cke(G,Ke.props.value),et&&Ee&&(Ae=Ke.props.children);return v.cloneElement(Ke,{"aria-selected":et?"true":"false",onClick:Me(Ke),onKeyUp:it=>{it.key===" "&&it.preventDefault(),Ke.props.onKeyUp&&Ke.props.onKeyUp(it)},role:"option",selected:et,value:void 0,"data-value":Ke.props.value})});Ee&&(M?Ce.length===0?ue=null:ue=Ce.reduce((Ke,et,it)=>(Ke.push(et),it<Ce.length-1&&Ke.push(", "),Ke),[]):ue=Ae);let _e=pe;!a&&se&&re&&(_e=ae.clientWidth);let Ie;typeof N<"u"?Ie=N:Ie=d?null:0;const Le=F.id||(C?`mui-component-select-${C}`:void 0),we={...t,variant:j,value:G,open:de,error:h},ve=Dyn(we),De={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(we):y.slotProps?.paper},ze={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(we):y.slotProps?.list},Ve=Vi();return f.jsxs(v.Fragment,{children:[f.jsx(Eyn,{as:"div",ref:oe,tabIndex:Ie,role:"combobox","aria-controls":de?Ve:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,Le].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:Oe,onMouseDown:d||T?null:le,onBlur:ie,onFocus:A,...F,ownerState:we,className:nr(F.className,ve.select,l),id:Le,children:Pyn(ue)?lke||(lke=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ue}),f.jsx(Iyn,{"aria-invalid":h,value:Array.isArray(G)?G.join(","):G,name:C,ref:X,"aria-hidden":!0,onChange:me,tabIndex:-1,disabled:d,className:ve.nativeInput,autoFocus:o,required:P,...V,ownerState:we}),f.jsx(Ryn,{as:g,className:ve.icon,ownerState:we}),f.jsx(wyn,{id:`menu-${C||""}`,anchorEl:ae,open:de,onClose:he,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":M?"true":void 0,disableListWrap:!0,id:Ve,...ze},paper:{...De,style:{minWidth:_e,...De!=null?De.style:null}}},children:Ge})]})}),qlt=Pu(f.jsx("path",{d:"M7 10l5 5 5-5z"})),Lyn=e=>{const{classes:t}=e,r=Yt({root:["root"]},Wlt,t);return{...t,...r}},ECe={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Cp(e)&&e!=="variant"},_yn=rt(ACe,ECe)(""),Nyn=rt(zCe,ECe)(""),Fyn=rt(OCe,ECe)(""),vM=v.forwardRef(function(t,n){const r=mi({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=qlt,id:d,input:p,inputProps:h,label:g,labelId:m,MenuProps:b,multiple:y=!1,native:M=!1,onClose:C,onOpen:x,open:w,renderValue:S,SelectDisplayProps:A,variant:z="outlined",...O}=r,T=M?Tyn:kyn,R=mh(),P=P3({props:r,muiFormControl:R,states:["variant","error"]}),F=P.variant||z,N={...r,variant:F,classes:a},L=Lyn(N),{root:W,...j}=L,V=p||{standard:f.jsx(_yn,{ownerState:N}),outlined:f.jsx(Nyn,{label:g,ownerState:N}),filled:f.jsx(Fyn,{ownerState:N})}[F],G=Pi(n,z3(V));return f.jsx(v.Fragment,{children:v.cloneElement(V,{inputComponent:T,inputProps:{children:o,error:P.error,IconComponent:u,variant:F,type:void 0,multiple:y,...M?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:b,onClose:C,onOpen:x,open:w,renderValue:S,SelectDisplayProps:{id:d,...A}},...h,classes:h?v0(j,h.classes):j,...p?p.props.inputProps:{}},...(y&&M||c)&&F==="outlined"?{notched:!0}:{},ref:G,className:nr(V.props.className,s,L.root),...!p&&{variant:F},...O})})});vM.muiName="Select";function Wyn(e){return Bn("MuiTextField",e)}Ln("MuiTextField",["root"]);const qyn={standard:ACe,filled:OCe,outlined:zCe},Byn=e=>{const{classes:t}=e;return Yt({root:["root"]},Wyn,t)},jyn=rt(Iw,{name:"MuiTextField",slot:"Root"})({}),D3=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:b,inputProps:y,InputProps:M,inputRef:C,label:x,maxRows:w,minRows:S,multiline:A=!1,name:z,onBlur:O,onChange:T,onFocus:R,placeholder:P,required:F=!1,rows:N,select:L=!1,SelectProps:W,slots:j={},slotProps:V={},type:G,value:q,variant:$="outlined",...U}=r,X={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:A,required:F,select:L,variant:$},Q=Byn(X),re=Vi(m),ee=g&&re?`${re}-helper-text`:void 0,se=x&&re?`${re}-label`:void 0,pe=qyn[$],te={slots:j,slotProps:{input:M,inputLabel:b,htmlInput:y,formHelperText:p,select:W,...V}},ce={},oe=te.slotProps.inputLabel;$==="outlined"&&(oe&&typeof oe.shrink<"u"&&(ce.notched=oe.shrink),ce.label=x),L&&((!W||!W.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const[ae,ne]=ni("root",{elementType:jyn,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...U},ownerState:X,className:nr(Q.root,s),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:F,color:l,variant:$}}),[le,he]=ni("input",{elementType:pe,externalForwardedProps:te,additionalProps:ce,ownerState:X}),[be,me]=ni("inputLabel",{elementType:Rw,externalForwardedProps:te,ownerState:X}),[Me,Oe]=ni("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:X}),[de,ie]=ni("formHelperText",{elementType:Plt,externalForwardedProps:te,ownerState:X}),[ue,Ae]=ni("select",{elementType:vM,externalForwardedProps:te,ownerState:X}),Ce=f.jsx(le,{"aria-describedby":ee,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:A,name:z,rows:N,maxRows:w,minRows:S,type:G,value:q,id:re,inputRef:C,onBlur:O,onChange:T,onFocus:R,placeholder:P,inputProps:Oe,slots:{input:j.htmlInput?Me:void 0},...he});return f.jsxs(ae,{...ne,children:[x!=null&&x!==""&&f.jsx(be,{htmlFor:re,id:se,...me,children:x}),L?f.jsx(ue,{"aria-describedby":ee,id:re,labelId:se,value:q,input:Ce,...Ae,children:a}):Ce,g&&f.jsx(de,{id:ee,...ie,children:g})]})}),Hyn=({utils:e,format:t})=>{let n=10,r=t,i=e.expandFormat(t);for(;i!==r;)if(r=i,i=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return i},Vyn=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n},Gyn=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},$yn=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:i,now:o,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=Hst(e,a),c=Ust(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let p=d?e.formatByString(t,a):"",h=null;if(u)if(c)h=p===""?e.formatByString(o,a).length:p.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);h=l.maxLength,d&&(p=pCe(Gst(Lz(p,i),h),i))}return Y({},l,{format:a,maxLength:h,value:p,placeholder:Gyn(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},Uyn=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,i=t.date(void 0),o=[];let a="";const s=Object.keys(t.formatTokenMap).sort((h,g)=>g.length-h.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=h=>r.find(g=>g.start<=h&&g.end>=h);let p=0;for(;p<n.length;){const h=d(p),g=h!=null,m=l.exec(n.slice(p))?.[1];if(!g&&m!=null&&c.test(m)){let b=m;for(;b.length>0;){const y=u.exec(b)[1];b=b.slice(y.length),o.push($yn(Y({},e,{now:i,token:y,startSeparator:a}))),a=""}p+=m.length}else{const b=n[p];g&&h?.start===p||h?.end===p||(o.length===0?a+=b:o[o.length-1].endSeparator+=b),p+=1}}return o.length===0&&a.length>0&&o.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),o},Xyn=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const i=o=>{let a=o;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=i(r.startSeparator),r.endSeparator=i(r.endSeparator),r}),uke=e=>{let t=Hyn(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Vyn(Y({},e,{expandedFormat:t})),r=Uyn(Y({},e,{expandedFormat:t,escapedParts:n}));return Xyn(Y({},e,{sections:r}))},Yyn=e=>{const t=ua(),n=Rd(),r=T3(),i=ts(),{valueManager:o,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:p,onChange:h,format:g,formatDensity:m="dense",selectedSections:b,onSelectedSectionsChange:y,shouldRespectLeadingZeros:M=!1,timezone:C,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:w,value:S,handleValueChange:A}=wCe({timezone:C,value:u,defaultValue:d,referenceDate:p,onChange:h,valueManager:o}),z=v.useMemo(()=>ugn(t),[t]),O=v.useMemo(()=>mgn(t,z,w),[t,z,w]),T=v.useCallback((re,ee=null)=>a.getSectionsFromValue(t,re,ee,se=>uke({utils:t,localeText:n,localizedDigits:z,format:g,date:se,formatDensity:m,shouldRespectLeadingZeros:M,enableAccessibleFieldDOMStructure:x,isRtl:i})),[a,g,n,z,i,M,t,m,x]),[R,P]=v.useState(()=>{const re=T(S),ee={sections:re,value:S,referenceValue:o.emptyValue,tempValueStrAndroid:null},se=agn(re),pe=o.getInitialReferenceValue({referenceDate:p,value:S,utils:t,props:c,granularity:se,timezone:w});return Y({},ee,{referenceValue:pe})}),[F,N]=up({controlled:b,default:null,name:"useField",state:"selectedSections"}),L=re=>{N(re),y?.(re)},W=v.useMemo(()=>Mfe(F,R.sections),[F,R.sections]),j=W==="all"?0:W,V=({value:re,referenceValue:ee,sections:se})=>{if(P(te=>Y({},te,{sections:se,value:re,referenceValue:ee,tempValueStrAndroid:null})),o.areValuesEqual(t,R.value,re))return;const pe={validationError:l({adapter:r,value:re,timezone:w,props:c})};A(re,pe)},G=(re,ee)=>{const se=[...R.sections];return se[re]=Y({},se[re],{value:ee,modified:!0}),se},q=()=>{V({value:o.emptyValue,referenceValue:R.referenceValue,sections:T(o.emptyValue)})},$=()=>{if(j==null)return;const re=R.sections[j],ee=a.getActiveDateManager(t,R,re),pe=ee.getSections(R.sections).filter(ae=>ae.value!=="").length===(re.value===""?0:1),te=G(j,""),ce=pe?null:t.getInvalidDate(),oe=ee.getNewValuesFromNewActiveDate(ce);V(Y({},oe,{sections:te}))},U=re=>{const ee=(te,ce)=>{const oe=t.parse(te,g);if(oe==null||!t.isValid(oe))return null;const ae=uke({utils:t,localeText:n,localizedDigits:z,format:g,date:oe,formatDensity:m,shouldRespectLeadingZeros:M,enableAccessibleFieldDOMStructure:x,isRtl:i});return RDe(t,oe,ae,ce,!1)},se=a.parseValueStr(re,R.referenceValue,ee),pe=a.updateReferenceValue(t,se,R.referenceValue);V({value:se,referenceValue:pe,sections:T(se,R.sections)})},X=({activeSection:re,newSectionValue:ee,shouldGoToNextSection:se})=>{se&&j<R.sections.length-1&&L(j+1);const pe=a.getActiveDateManager(t,R,re),te=G(j,ee),ce=pe.getSections(te),oe=hgn(t,ce,z);let ae,ne;if(oe!=null&&t.isValid(oe)){const le=RDe(t,oe,ce,pe.referenceDate,!0);ae=pe.getNewValuesFromNewActiveDate(le),ne=!0}else ae=pe.getNewValuesFromNewActiveDate(oe),ne=(oe!=null&&!t.isValid(oe))!=(pe.date!=null&&!t.isValid(pe.date));return ne?V(Y({},ae,{sections:te})):P(le=>Y({},le,ae,{sections:te,tempValueStrAndroid:null}))},Q=re=>P(ee=>Y({},ee,{tempValueStrAndroid:re}));return v.useEffect(()=>{const re=T(R.value);P(ee=>Y({},ee,{sections:re}))},[g,t.locale,i]),v.useEffect(()=>{let re;o.areValuesEqual(t,R.value,S)?re=o.getTimezone(t,R.value)!==o.getTimezone(t,S):re=!0,re&&P(ee=>Y({},ee,{value:S,referenceValue:a.updateReferenceValue(t,S,ee.referenceValue),sections:T(S)}))},[S]),{state:R,activeSectionIndex:j,parsedSelectedSections:W,setSelectedSections:L,clearValue:q,clearActiveSection:$,updateSectionValue:X,updateValueFromValueStr:U,setTempAndroidValueStr:Q,getSectionsFromValue:T,sectionsValueBoundaries:O,localizedDigits:z,timezone:w}},Kyn=5e3,zE=e=>e.saveQuery!=null,Qyn=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:i,timezone:o})=>{const a=ua(),[s,l]=v.useState(null),c=en(()=>l(null));v.useEffect(()=>{s!=null&&e[s.sectionIndex]?.type!==s.sectionType&&c()},[e,s,c]),v.useEffect(()=>{if(s!=null){const g=setTimeout(()=>c(),Kyn);return()=>{clearTimeout(g)}}return()=>{}},[s,c]);const u=({keyPressed:g,sectionIndex:m},b,y)=>{const M=g.toLowerCase(),C=e[m];if(s!=null&&(!y||y(s.value))&&s.sectionIndex===m){const w=`${s.value}${M}`,S=b(w,C);if(!zE(S))return l({sectionIndex:m,value:w,sectionType:C.type}),S}const x=b(M,C);return zE(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:m,value:M,sectionType:C.type}),zE(x)?null:x)},d=g=>{const m=(M,C,x)=>{const w=C.filter(S=>S.toLowerCase().startsWith(x));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},b=(M,C,x,w)=>{const S=A=>Vst(a,o,C.type,A);if(C.contentType==="letter")return m(C.format,S(C.format),M);if(x&&w!=null&&Hst(a,x).contentType==="letter"){const A=S(x),z=m(x,A,M);return zE(z)?{saveQuery:!1}:Y({},z,{sectionValue:w(z.sectionValue,A)})}return{saveQuery:!1}};return u(g,(M,C)=>{switch(C.type){case"month":{const x=w=>TDe(a,w,a.formats.month,C.format);return b(M,C,a.formats.month,x)}case"weekDay":{const x=(w,S)=>S.indexOf(w).toString();return b(M,C,a.formats.weekday,x)}case"meridiem":return b(M,C);default:return{saveQuery:!1}}})},p=g=>{const m=(y,M)=>{const C=Lz(y,r),x=Number(C),w=n[M.type]({currentDate:null,format:M.format,contentType:M.contentType});if(x>w.maximum)return{saveQuery:!1};if(x<w.minimum)return{saveQuery:!0};const S=x*10>w.maximum||C.length===w.maximum.toString().length;return{sectionValue:$st(a,x,w,r,M),shouldGoToNextSection:S}};return u(g,(y,M)=>{if(M.contentType==="digit"||M.contentType==="digit-with-letter")return m(y,M);if(M.type==="month"){Ust(a,"digit","month","MM");const C=m(y,{type:M.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(zE(C))return C;const x=TDe(a,C.sectionValue,"MM",M.format);return Y({},C,{sectionValue:x})}if(M.type==="weekDay"){const C=m(y,M);if(zE(C))return C;const x=IQ(a,M.format)[Number(C.sectionValue)-1];return Y({},C,{sectionValue:x})}return{saveQuery:!1}},y=>zDe(y,r))};return{applyCharacterEditing:en(g=>{const m=e[g.sectionIndex],y=zDe(g.keyPressed,r)?p(Y({},g,{keyPressed:pCe(g.keyPressed,r)})):d(g);if(y==null){i(null);return}t({activeSection:m,newSectionValue:y.sectionValue,shouldGoToNextSection:y.shouldGoToNextSection})}),resetCharacterQuery:c}},Zyn=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:i,onClick:o,onFocus:a,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:p,resetCharacterQuery:h,setSelectedSections:g,parsedSelectedSections:m,state:b,clearActiveSection:y,clearValue:M,updateSectionValue:C,updateValueFromValueStr:x,sectionOrder:w,areAllSectionsEmpty:S,sectionsValueBoundaries:A}=e,z=v.useRef(null),O=Pi(r,z),T=Rd(),R=ua(),P=Vi(),[F,N]=v.useState(!1),L=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!z.current)return;const ne=document.getSelection();if(!ne)return;if(m==null){ne.rangeCount>0&&z.current.getRoot().contains(ne.getRangeAt(0).startContainer)&&ne.removeAllRanges(),F&&z.current.getRoot().blur();return}if(!z.current.getRoot().contains(Z0(document)))return;const le=new window.Range;let he;m==="all"?he=z.current.getRoot():b.sections[m].type==="empty"?he=z.current.getSectionContainer(m):he=z.current.getSectionContent(m),le.selectNodeContents(he),he.focus(),ne.removeAllRanges(),ne.addRange(le)},getActiveSectionIndexFromDOM:()=>{const ne=Z0(document);return!ne||!z.current||!z.current.getRoot().contains(ne)?null:z.current.getSectionIndexFromDOMElement(ne)},focusField:(ne=0)=>{if(!z.current||L.getActiveSectionIndexFromDOM()!=null)return;const le=Mfe(ne,b.sections);N(!0),z.current.getSectionContent(le).focus()},setSelectedSections:ne=>{if(!z.current)return;const le=Mfe(ne,b.sections);N((le==="all"?0:le)!==null),g(ne)},isFieldFocused:()=>{const ne=Z0(document);return!!z.current&&z.current.getRoot().contains(ne)}}),[m,g,b.sections,F]),W=en(ne=>{if(!z.current)return;const le=b.sections[ne];z.current.getSectionContent(ne).innerHTML=le.value||le.placeholder,L.syncSelectionToDOM()}),j=en((ne,...le)=>{ne.isDefaultPrevented()||!z.current||(N(!0),o?.(ne,...le),m==="all"?setTimeout(()=>{const he=document.getSelection().getRangeAt(0).startOffset;if(he===0){g(w.startIndex);return}let be=0,me=0;for(;me<he&&be<b.sections.length;){const Me=b.sections[be];be+=1,me+=`${Me.startSeparator}${Me.value||Me.placeholder}${Me.endSeparator}`.length}g(be-1)}):F?z.current.getRoot().contains(ne.target)||g(w.startIndex):(N(!0),g(w.startIndex)))}),V=en(ne=>{if(s?.(ne),!z.current||m!=="all")return;const he=ne.target.textContent??"";z.current.getRoot().innerHTML=b.sections.map(be=>`${be.startSeparator}${be.value||be.placeholder}${be.endSeparator}`).join(""),L.syncSelectionToDOM(),he.length===0||he.charCodeAt(0)===10?(h(),M(),g("all")):he.length>1?x(he):(m==="all"&&g(0),p({keyPressed:he,sectionIndex:0}))}),G=en(ne=>{if(l?.(ne),n||m!=="all"){ne.preventDefault();return}const le=ne.clipboardData.getData("text");ne.preventDefault(),h(),x(le)}),q=en((...ne)=>{if(a?.(...ne),F||!z.current)return;N(!0),z.current.getSectionIndexFromDOMElement(Z0(document))!=null||g(w.startIndex)}),$=en((...ne)=>{i?.(...ne),setTimeout(()=>{if(!z.current)return;const le=Z0(document);!z.current.getRoot().contains(le)&&(N(!1),g(null))})}),U=en(ne=>le=>{le.isDefaultPrevented()||g(ne)}),X=en(ne=>{ne.preventDefault()}),Q=en(ne=>()=>{g(ne)}),re=en(ne=>{if(ne.preventDefault(),n||t||typeof m!="number")return;const le=b.sections[m],he=ne.clipboardData.getData("text"),be=/^[a-zA-Z]+$/.test(he),me=/^[0-9]+$/.test(he),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(he);le.contentType==="letter"&&be||le.contentType==="digit"&&me||le.contentType==="digit-with-letter"&&Me?(h(),C({activeSection:le,newSectionValue:he,shouldGoToNextSection:!0})):!be&&!me&&(h(),x(he))}),ee=en(ne=>{ne.preventDefault(),ne.dataTransfer.dropEffect="none"}),se=en(ne=>{if(!z.current)return;const le=ne.target,he=le.textContent??"",be=z.current.getSectionIndexFromDOMElement(le),me=b.sections[be];if(n||!z.current){W(be);return}if(he.length===0){if(me.value===""){W(be);return}const Me=ne.nativeEvent.inputType;if(Me==="insertParagraph"||Me==="insertLineBreak"){W(be);return}h(),y();return}p({keyPressed:he,sectionIndex:be}),W(be)});Ro(()=>{if(!(!F||!z.current)){if(m==="all")z.current.getRoot().focus();else if(typeof m=="number"){const ne=z.current.getSectionContent(m);ne&&ne.focus()}}},[m,F]);const pe=v.useMemo(()=>b.sections.reduce((ne,le)=>(ne[le.type]=A[le.type]({currentDate:null,contentType:le.contentType,format:le.format}),ne),{}),[A,b.sections]),te=m==="all",ce=v.useMemo(()=>b.sections.map((ne,le)=>{const he=!te&&!t&&!n;return{container:{"data-sectionindex":le,onClick:U(le)},content:{tabIndex:te||le>0?-1:0,contentEditable:!te&&!t&&!n,role:"spinbutton",id:`${P}-${ne.type}`,"aria-labelledby":`${P}-${ne.type}`,"aria-readonly":n,"aria-valuenow":Cgn(ne,R),"aria-valuemin":pe[ne.type].minimum,"aria-valuemax":pe[ne.type].maximum,"aria-valuetext":ne.value?Mgn(ne,R):T.empty,"aria-label":T[ne.type],"aria-disabled":t,spellCheck:he?!1:void 0,autoCapitalize:he?"off":void 0,autoCorrect:he?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:he?"next":void 0,children:ne.value||ne.placeholder,onInput:se,onPaste:re,onFocus:Q(le),onDragOver:ee,onMouseUp:X,inputMode:ne.contentType==="letter"?"text":"numeric"},before:{children:ne.startSeparator},after:{children:ne.endSeparator}}}),[b.sections,Q,re,ee,se,U,X,t,n,te,T,R,pe,P]),oe=en(ne=>{x(ne.target.value)}),ae=v.useMemo(()=>S?"":d.getV7HiddenInputValueFromSections(b.sections),[S,b.sections,d]);return v.useEffect(()=>{if(z.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
`));u&&z.current&&z.current.getSectionContent(w.startIndex).focus()},[]),{interactions:L,returnedValue:{autoFocus:u,readOnly:n,focused:c??F,sectionListRef:O,onBlur:$,onClick:j,onFocus:q,onInput:V,onPaste:G,enableAccessibleFieldDOMStructure:!0,elements:ce,tabIndex:m===0?-1:0,contentEditable:te,value:ae,onChange:oe,areAllSectionsEmpty:S}}},_R=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Jyn=(e,t,n)=>{let r=0,i=n?1:0;const o=[];for(let a=0;a<e.length;a+=1){const s=e[a],l=hCe(s,n?"input-rtl":"input-ltr",t),c=`${s.startSeparator}${l}${s.endSeparator}`,u=_R(c).length,d=c.length,p=_R(l),h=i+(p===""?0:l.indexOf(p[0]))+s.startSeparator.length,g=h+p.length;o.push(Y({},s,{start:r,end:r+u,startInInput:h,endInInput:g})),r+=u,i+=d}return o},eMn=e=>{const t=ts(),n=v.useRef(void 0),r=v.useRef(void 0),{forwardedProps:{onFocus:i,onClick:o,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:p,activeSectionIndex:h,state:g,fieldValueManager:m,valueManager:b,applyCharacterEditing:y,resetCharacterQuery:M,updateSectionValue:C,updateValueFromValueStr:x,clearActiveSection:w,clearValue:S,setTempAndroidValueStr:A,setSelectedSections:z,getSectionsFromValue:O,areAllSectionsEmpty:T,localizedDigits:R}=e,P=v.useRef(null),F=Pi(l,P),N=v.useMemo(()=>Jyn(g.sections,R,t),[g.sections,R,t]),L=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;if(p==null){P.current.scrollLeft&&(P.current.scrollLeft=0);return}if(P.current!==Z0(document))return;const se=P.current.scrollTop;if(p==="all")P.current.select();else{const pe=N[p],te=pe.type==="empty"?pe.startInInput-pe.startSeparator.length:pe.startInInput,ce=pe.type==="empty"?pe.endInInput+pe.endSeparator.length:pe.endInInput;(te!==P.current.selectionStart||ce!==P.current.selectionEnd)&&P.current===Z0(document)&&P.current.setSelectionRange(te,ce),clearTimeout(r.current),r.current=setTimeout(()=>{P.current&&P.current===Z0(document)&&P.current.selectionStart===P.current.selectionEnd&&(P.current.selectionStart!==te||P.current.selectionEnd!==ce)&&L.syncSelectionToDOM()})}P.current.scrollTop=se},getActiveSectionIndexFromDOM:()=>{const se=P.current.selectionStart??0,pe=P.current.selectionEnd??0;if(se===0&&pe===0)return null;const te=se<=N[0].startInInput?1:N.findIndex(ce=>ce.startInInput-ce.startSeparator.length>se);return te===-1?N.length-1:te-1},focusField:(se=0)=>{Z0(document)!==P.current&&(P.current?.focus(),z(se))},setSelectedSections:se=>z(se),isFieldFocused:()=>P.current===Z0(document)}),[P,p,N,z]),W=()=>{const se=P.current.selectionStart??0;let pe;se<=N[0].startInInput||se>=N[N.length-1].endInInput?pe=1:pe=N.findIndex(ce=>ce.startInInput-ce.startSeparator.length>se);const te=pe===-1?N.length-1:pe-1;z(te)},j=en((...se)=>{i?.(...se);const pe=P.current;clearTimeout(n.current),n.current=setTimeout(()=>{!pe||pe!==P.current||h==null&&(pe.value.length&&Number(pe.selectionEnd)-Number(pe.selectionStart)===pe.value.length?z("all"):W())})}),V=en((se,...pe)=>{se.isDefaultPrevented()||(o?.(se,...pe),W())}),G=en(se=>{if(a?.(se),se.preventDefault(),u||d)return;const pe=se.clipboardData.getData("text");if(typeof p=="number"){const te=g.sections[p],ce=/^[a-zA-Z]+$/.test(pe),oe=/^[0-9]+$/.test(pe),ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pe);if(te.contentType==="letter"&&ce||te.contentType==="digit"&&oe||te.contentType==="digit-with-letter"&&ae){M(),C({activeSection:te,newSectionValue:pe,shouldGoToNextSection:!0});return}if(ce||oe)return}M(),x(pe)}),q=en((...se)=>{s?.(...se),z(null)}),$=en(se=>{if(u)return;const pe=se.target.value;if(pe===""){M(),S();return}const te=se.nativeEvent.data,ce=te&&te.length>1,oe=ce?te:pe,ae=_R(oe);if(p==="all"&&z(h),h==null||ce){x(ce?te:ae);return}let ne;if(p==="all"&&ae.length===1)ne=ae;else{const le=_R(m.getV6InputValueFromSections(N,R,t));let he=-1,be=-1;for(let de=0;de<le.length;de+=1)he===-1&&le[de]!==ae[de]&&(he=de),be===-1&&le[le.length-de-1]!==ae[ae.length-de-1]&&(be=de);const me=N[h];if(he<me.start||le.length-be-1>me.end)return;const Oe=ae.length-le.length+me.end-_R(me.endSeparator||"").length;ne=ae.slice(me.start+_R(me.startSeparator||"").length,Oe)}if(ne.length===0){bgn()&&A(oe),M(),w();return}y({keyPressed:ne,sectionIndex:h})}),U=v.useMemo(()=>c!==void 0?c:m.getV6InputValueFromSections(O(b.emptyValue),R,t),[c,m,O,b.emptyValue,R,t]),X=v.useMemo(()=>g.tempValueStrAndroid??m.getV6InputValueFromSections(g.sections,R,t),[g.sections,m,g.tempValueStrAndroid,R,t]);v.useEffect(()=>(P.current&&P.current===Z0(document)&&z("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const Q=v.useMemo(()=>h==null||g.sections[h].contentType==="letter"?"text":"numeric",[h,g.sections]),ee=!(P.current&&P.current===Z0(document))&&T;return{interactions:L,returnedValue:{readOnly:u,onBlur:q,onClick:V,onFocus:j,onPaste:G,inputRef:F,enableAccessibleFieldDOMStructure:!1,placeholder:U,inputMode:Q,autoComplete:"off",value:ee?"":X,onChange:$}}},Blt=e=>{const t=ua(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:i,enableAccessibleFieldDOMStructure:o=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:p,valueManager:h,validator:g}=e,m=ts(),b=Yyn(e),{state:y,activeSectionIndex:M,parsedSelectedSections:C,setSelectedSections:x,clearValue:w,clearActiveSection:S,updateSectionValue:A,setTempAndroidValueStr:z,sectionsValueBoundaries:O,localizedDigits:T,timezone:R}=b,P=Qyn({sections:y.sections,updateSectionValue:A,sectionsValueBoundaries:O,localizedDigits:T,setTempAndroidValueStr:z,timezone:R}),{resetCharacterQuery:F}=P,N=h.areValuesEqual(t,y.value,h.emptyValue),L=o?Zyn:eMn,W=v.useMemo(()=>ygn(y.sections,m&&!o),[y.sections,m,o]),{returnedValue:j,interactions:V}=L(Y({},e,b,P,{areAllSectionsEmpty:N,sectionOrder:W})),G=en(re=>{if(l?.(re),!a)switch(!0){case((re.ctrlKey||re.metaKey)&&String.fromCharCode(re.keyCode)==="A"&&!re.shiftKey&&!re.altKey):{re.preventDefault(),x("all");break}case re.key==="ArrowRight":{if(re.preventDefault(),C==null)x(W.startIndex);else if(C==="all")x(W.endIndex);else{const ee=W.neighbors[C].rightIndex;ee!==null&&x(ee)}break}case re.key==="ArrowLeft":{if(re.preventDefault(),C==null)x(W.endIndex);else if(C==="all")x(W.startIndex);else{const ee=W.neighbors[C].leftIndex;ee!==null&&x(ee)}break}case re.key==="Delete":{if(re.preventDefault(),s)break;C==null||C==="all"?w():S(),F();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(re.key):{if(re.preventDefault(),s||M==null)break;C==="all"&&x(M);const ee=y.sections[M],se=p.getActiveDateManager(t,y,ee),pe=dgn(t,R,ee,re.key,O,T,se.date,{minutesStep:i});A({activeSection:ee,newSectionValue:pe,shouldGoToNextSection:!1});break}}});Ro(()=>{V.syncSelectionToDOM()});const{hasValidationError:q}=ilt({props:n,validator:g,timezone:R,value:y.value,onError:n.onError}),$=v.useMemo(()=>c!==void 0?c:q,[q,c]);v.useEffect(()=>{!$&&M==null&&F()},[y.referenceValue,M,$]),v.useEffect(()=>{y.tempValueStrAndroid!=null&&M!=null&&(F(),S())},[y.sections]),v.useImperativeHandle(r,()=>({getSections:()=>y.sections,getActiveSectionIndex:V.getActiveSectionIndexFromDOM,setSelectedSections:V.setSelectedSections,focusField:V.focusField,isFieldFocused:V.isFieldFocused}));const U=en((re,...ee)=>{re.preventDefault(),d?.(re,...ee),w(),V.isFieldFocused()?x(W.startIndex):V.focusField(0)}),X={onKeyDown:G,onClear:U,error:$,clearable:!!(u&&!N&&!s&&!a)},Q={disabled:a,readOnly:s};return Y({},e.forwardedProps,X,Q,j)},tMn=["clearable","onClear","InputProps","sx","slots","slotProps"],nMn=["ownerState"],jlt=e=>{const t=Rd(),{clearable:n,onClear:r,InputProps:i,sx:o,slots:a,slotProps:s}=e,l=Lt(e,tMn),c=a?.clearButton??Zp,u=Vo({elementType:c,externalSlotProps:s?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Lt(u,nMn),p=a?.clearIcon??SCe,h=Vo({elementType:p,externalSlotProps:s?.clearIcon,ownerState:{}});return Y({},l,{InputProps:Y({},i,{endAdornment:f.jsxs(v.Fragment,{children:[n&&f.jsx(fCe,{position:"end",sx:{marginRight:i?.endAdornment?-1:-1.5},children:f.jsx(c,Y({},d,{onClick:r,children:f.jsx(p,Y({fontSize:"small"},h))}))}),i?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o)?o:[o]]})},rMn=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Hlt=(e,t)=>v.useMemo(()=>{const n=Y({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return rMn.forEach(i),t==="date"?xfe.forEach(i):t==="time"?wfe.forEach(i):t==="date-time"&&(xfe.forEach(i),wfe.forEach(i),rlt.forEach(i)),{forwardedProps:n,internalProps:r}},[e,t]),iMn=e=>{const t=ua(),n=E3();return Y({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:w0(t,e.minDate,n.minDate),maxDate:w0(t,e.maxDate,n.maxDate)})},oMn=e=>{const t=ua(),n=E3(),i=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return Y({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??i,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:w0(t,e.minDateTime??e.minDate,n.minDate),maxDate:w0(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})},aMn=e=>{const t=iMn(e),{forwardedProps:n,internalProps:r}=Hlt(t,"date");return Blt({forwardedProps:n,internalProps:r,valueManager:Tu,fieldValueManager:Xst,validator:RD,valueType:"date"})};function sMn(e){return Bn("MuiPickersTextField",e)}Ln("MuiPickersTextField",["root","focused","disabled","error","required"]);function lMn(e){return Bn("MuiPickersInputBase",e)}const gI=Ln("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function cMn(e){return Bn("MuiPickersSectionList",e)}const v4=Ln("MuiPickersSectionList",["root","section","sectionContent"]),uMn=["slots","slotProps","elements","sectionListRef"],Vlt=rt("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Glt=rt("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),$lt=rt("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Ult=rt("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),dMn=e=>{const{classes:t}=e;return Yt({root:["root"],section:["section"],sectionContent:["sectionContent"]},cMn,t)};function pMn(e){const{slots:t,slotProps:n,element:r,classes:i}=e,o=t?.section??Glt,a=Vo({elementType:o,externalSlotProps:n?.section,externalForwardedProps:r.container,className:i.section,ownerState:{}}),s=t?.sectionContent??Ult,l=Vo({elementType:s,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:{}}),c=t?.sectionSeparator??$lt,u=Vo({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Vo({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return f.jsxs(o,Y({},a,{children:[f.jsx(c,Y({},u)),f.jsx(s,Y({},l)),f.jsx(c,Y({},d))]}))}const hMn=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersSectionList"}),{slots:i,slotProps:o,elements:a,sectionListRef:s}=r,l=Lt(r,uMn),c=dMn(r),u=v.useRef(null),d=Pi(n,u),p=m=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return u.current};v.useImperativeHandle(s,()=>({getRoot(){return p("getRoot")},getSectionContainer(m){return p("getSectionContainer").querySelector(`.${v4.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return p("getSectionContent").querySelector(`.${v4.section}[data-sectionindex="${m}"] .${v4.sectionContent}`)},getSectionIndexFromDOMElement(m){const b=p("getSectionIndexFromDOMElement");if(m==null||!b.contains(m))return null;let y=null;return m.classList.contains(v4.section)?y=m:m.classList.contains(v4.sectionContent)&&(y=m.parentElement),y==null?null:Number(y.dataset.sectionindex)}}));const h=i?.root??Vlt,g=Vo({elementType:h,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(h,Y({},g,{children:g.contentEditable?a.map(({content:m,before:b,after:y})=>`${b.children}${m.children}${y.children}`).join(""):f.jsx(v.Fragment,{children:a.map((m,b)=>f.jsx(pMn,{slots:i,slotProps:o,element:m,classes:c},b))})}))}),fMn=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],gMn=e=>Math.round(e*1e5)/1e5,$Q=rt("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Y({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${gMn(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),RCe=rt(Vlt,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:i})=>!t&&!n&&!r&&i==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),mMn=rt(Glt,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),vMn=rt(Ult,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),bMn=rt($lt,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),yMn=rt("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Y({},Jfn)),MMn=e=>{const{focused:t,disabled:n,error:r,classes:i,fullWidth:o,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",o&&"fullWidth",`color${jt(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Yt(d,lMn,i)},ICe=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersInputBase"}),{elements:i,areAllSectionsEmpty:o,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:p,slotProps:h,contentEditable:g,tabIndex:m,onInput:b,onPaste:y,onKeyDown:M,name:C,readOnly:x,inputProps:w,inputRef:S,sectionListRef:A}=r,z=Lt(r,fMn),O=v.useRef(null),T=Pi(n,O),R=Pi(w?.ref,S),P=ts(),F=mh();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const N=q=>{if(F.disabled){q.stopPropagation();return}F.onFocus?.(q)};v.useEffect(()=>{F&&F.setAdornedStart(!!u)},[F,u]),v.useEffect(()=>{F&&(o?F.onEmpty():F.onFilled())},[F,o]);const L=Y({},r,F,{isRtl:P}),W=MMn(L),j=p?.root||$Q,V=Vo({elementType:j,externalSlotProps:h?.root,externalForwardedProps:z,additionalProps:{"aria-invalid":F.error,ref:T},className:W.root,ownerState:L}),G=p?.input||RCe;return f.jsxs(j,Y({},V,{children:[u,f.jsx(hMn,{sectionListRef:A,elements:i,contentEditable:g,tabIndex:m,className:W.sectionsContainer,onFocus:N,onBlur:F.onBlur,onInput:b,onPaste:y,onKeyDown:M,slots:{root:G,section:mMn,sectionContent:vMn,sectionSeparator:bMn},slotProps:{root:{ownerState:L},sectionContent:{className:gI.sectionContent},sectionSeparator:({position:q})=>({className:q==="before"?gI.sectionBefore:gI.sectionAfter})}}),c,d?d(Y({},F)):null,f.jsx(yMn,Y({name:C,className:W.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:F.required,disabled:F.disabled},w,{ref:R}))]}))});function CMn(e){return Bn("MuiPickersOutlinedInput",e)}const zg=Y({},gI,Ln("MuiPickersOutlinedInput",["root","notchedOutline","input"])),xMn=["children","className","label","notched","shrink"],wMn=rt("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),dke=rt("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),SMn=rt("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},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:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function AMn(e){const{className:t,label:n}=e,r=Lt(e,xMn),i=n!=null&&n!=="",o=Y({},e,{withLabel:i});return f.jsx(wMn,Y({"aria-hidden":!0,className:t},r,{ownerState:o,children:f.jsx(SMn,{ownerState:o,children:i?f.jsx(dke,{children:n}):f.jsx(dke,{className:"notranslate",children:"​"})})}))}const OMn=["label","autoFocus","ownerState","notched"],zMn=rt($Q,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zg.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${zg.focused} .${zg.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${zg.disabled}`]:{[`& .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${zg.error} .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${zg.focused}:not(.${zg.error}) .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),TMn=rt(RCe,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),EMn=e=>{const{classes:t}=e,r=Yt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},CMn,t);return Y({},t,r)},Xlt=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersOutlinedInput"}),{label:i,ownerState:o,notched:a}=r,s=Lt(r,OMn),l=mh(),c=Y({},r,o,l,{color:l?.color||"primary"}),u=EMn(c);return f.jsx(ICe,Y({slots:{root:zMn,input:TMn},renderSuffix:d=>f.jsx(AMn,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:i!=null&&i!==""&&l?.required?f.jsxs(v.Fragment,{children:[i," ","*"]}):i,ownerState:c})},s,{label:i,classes:u,ref:n}))});Xlt.muiName="Input";function RMn(e){return Bn("MuiPickersFilledInput",e)}const jS=Y({},gI,Ln("MuiPickersFilledInput",["root","underline","input"])),IMn=["label","autoFocus","disableUnderline","ownerState"],PMn=rt($Q,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>c7(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${jS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${jS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},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"},[`&.${jS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jS.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,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(.${jS.disabled}, .${jS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jS.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),DMn=rt(RCe,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),kMn=e=>{const{classes:t,disableUnderline:n}=e,i=Yt({root:["root",!n&&"underline"],input:["input"]},RMn,t);return Y({},t,i)},Ylt=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersFilledInput"}),{label:i,disableUnderline:o=!1,ownerState:a}=r,s=Lt(r,IMn),l=mh(),c=Y({},r,a,l,{color:l?.color||"primary"}),u=kMn(c);return f.jsx(ICe,Y({slots:{root:PMn,input:DMn},slotProps:{root:{disableUnderline:o}}},s,{label:i,classes:u,ref:n}))});Ylt.muiName="Input";function LMn(e){return Bn("MuiPickersFilledInput",e)}const b4=Y({},gI,Ln("MuiPickersInput",["root","input"])),_Mn=["label","autoFocus","disableUnderline","ownerState"],NMn=rt($Q,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${b4.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${b4.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${b4.disabled}, .${b4.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${b4.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),FMn=e=>{const{classes:t,disableUnderline:n}=e,i=Yt({root:["root",!n&&"underline"],input:["input"]},LMn,t);return Y({},t,i)},Klt=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersInput"}),{label:i,disableUnderline:o=!1,ownerState:a}=r,s=Lt(r,_Mn),l=mh(),c=Y({},r,a,l,{disableUnderline:o,color:l?.color||"primary"}),u=FMn(c);return f.jsx(ICe,Y({slots:{root:NMn}},s,{label:i,classes:u,ref:n}))});Klt.muiName="Input";const WMn=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],qMn={standard:Klt,filled:Ylt,outlined:Xlt},BMn=rt(Iw,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),jMn=e=>{const{focused:t,disabled:n,classes:r,required:i}=e;return Yt({root:["root",t&&!n&&"focused",n&&"disabled",i&&"required"]},sMn,r)},Qlt=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersTextField"}),{onFocus:i,onBlur:o,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:p,inputProps:h,inputRef:g,sectionListRef:m,elements:b,areAllSectionsEmpty:y,onClick:M,onKeyDown:C,onKeyUp:x,onPaste:w,onInput:S,endAdornment:A,startAdornment:z,tabIndex:O,contentEditable:T,focused:R,value:P,onChange:F,fullWidth:N,id:L,name:W,helperText:j,FormHelperTextProps:V,label:G,InputLabelProps:q}=r,$=Lt(r,WMn),U=v.useRef(null),X=Pi(n,U),Q=Vi(L),re=j&&Q?`${Q}-helper-text`:void 0,ee=G&&Q?`${Q}-label`:void 0,se=Y({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),pe=jMn(se),te=qMn[u];return f.jsxs(BMn,Y({className:za(pe.root,a),ref:X,focused:R,onFocus:i,onBlur:o,disabled:l,variant:u,error:c,color:s,fullWidth:N,required:d,ownerState:se},$,{children:[f.jsx(Rw,Y({htmlFor:Q,id:ee},q,{children:G})),f.jsx(te,Y({elements:b,areAllSectionsEmpty:y,onClick:M,onKeyDown:C,onKeyUp:x,onInput:S,onPaste:w,endAdornment:A,startAdornment:z,tabIndex:O,contentEditable:T,value:P,onChange:F,id:Q,fullWidth:N,inputProps:h,inputRef:g,sectionListRef:m,label:G,name:W,role:"group","aria-labelledby":ee,"aria-describedby":re,"aria-live":re?"polite":void 0},p)),j&&f.jsx(Plt,Y({id:re},V,{children:j}))]}))}),HMn=["enableAccessibleFieldDOMStructure"],VMn=["InputProps","readOnly"],GMn=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Zlt=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Lt(e,HMn);if(t){const{InputProps:d,readOnly:p}=n,h=Lt(n,VMn);return Y({},h,{InputProps:Y({},d??{},{readOnly:p})})}const{onPaste:r,onKeyDown:i,inputMode:o,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Lt(n,GMn);return Y({},u,{InputProps:Y({},s??{},{readOnly:a}),inputProps:Y({},l??{},{inputMode:o,onPaste:r,onKeyDown:i,ref:c})})},$Mn=["slots","slotProps","InputProps","inputProps"],Jlt=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiDateField"}),{slots:i,slotProps:o,InputProps:a,inputProps:s}=r,l=Lt(r,$Mn),c=r,u=i?.textField??(t.enableAccessibleFieldDOMStructure?Qlt:D3),d=Vo({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=Y({},s,d.inputProps),d.InputProps=Y({},a,d.InputProps);const p=aMn(d),h=Zlt(p),g=jlt(Y({},h,{slots:i,slotProps:o}));return f.jsx(u,Y({},g))}),ect=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=T3();return v.useCallback(c=>RD({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a}})!==null,[l,e,t,n,r,i,o,a,s])},UMn=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return Y({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const o=i.newTimezone;if(n.getTimezone(r.currentMonth)===o)return r;let a=n.setTimezone(r.currentMonth,o);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),Y({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Y({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return Y({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},XMn=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:o=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,p=ua(),h=v.useRef(UMn(!!c,o,p)).current,g=v.useMemo(()=>Tu.getInitialReferenceValue({value:t,utils:p,timezone:d,props:e,referenceDate:n,granularity:Gg.day}),[n,d]),[m,b]=v.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:p.startOfMonth(g),slideDirection:"left"});v.useEffect(()=>{b({type:"changeMonthTimezone",newTimezone:p.getTimezone(g)})},[g,p]);const y=v.useCallback(S=>{b(Y({type:"changeMonth"},S)),l&&l(S.newMonth)},[l]),M=v.useCallback(S=>{const A=S;p.isSameMonth(A,m.currentMonth)||y({newMonth:p.startOfMonth(A),direction:p.isAfterDay(A,m.currentMonth)?"left":"right"})},[m.currentMonth,y,p]),C=ect({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:i,timezone:d}),x=v.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]),w=en((S,A)=>{C(S)||b({type:"changeFocusedDay",focusedDay:S,withoutMonthSwitchingAnimation:A})});return{referenceDate:g,calendarState:m,changeMonth:M,changeFocusedDay:w,isDateDisabled:C,onMonthSwitchingAnimationEnd:x,handleChangeMonth:y}},YMn=e=>Bn("MuiPickersFadeTransitionGroup",e);Ln("MuiPickersFadeTransitionGroup",["root"]);const KMn=e=>{const{classes:t}=e;return Yt({root:["root"]},YMn,t)},QMn=rt(w3,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function tct(e){const t=Po({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=KMn(t),s=Ub();return i?n:f.jsx(QMn,{className:za(a.root,r),children:f.jsx(_z,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function ZMn(e){return Bn("MuiPickersDay",e)}const HS=Ln("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),JMn=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],eCn=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return Yt({root:["root",t&&!c&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},ZMn,l)},nct=({theme:e})=>Y({},e.typography.caption,{width:kW,height:kW,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sd(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Sd(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${HS.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${HS.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${HS.disabled}:not(.${HS.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${HS.disabled}&.${HS.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${FQ}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${HS.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),rct=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},tCn=rt(Pb,{name:"MuiPickersDay",slot:"Root",overridesResolver:rct})(nct),nCn=rt("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:rct})(({theme:e})=>Y({},nct({theme:e}),{opacity:0,pointerEvents:"none"})),y4=()=>{},rCn=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:p,onFocus:h=y4,onBlur:g=y4,onKeyDown:m=y4,onMouseDown:b=y4,onMouseEnter:y=y4,outsideCurrentMonth:M,selected:C=!1,showDaysOutsideCurrentMonth:x=!1,children:w,today:S=!1}=r,A=Lt(r,JMn),z=Y({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:c,selected:C,showDaysOutsideCurrentMonth:x,today:S}),O=eCn(z),T=ua(),R=v.useRef(null),P=Pi(R,n);Ro(()=>{i&&!s&&!u&&!M&&R.current.focus()},[i,s,u,M]);const F=L=>{b(L),M&&L.preventDefault()},N=L=>{s||p(a),M&&L.currentTarget.focus(),d&&d(L)};return M&&!x?f.jsx(nCn,{className:za(O.root,O.hiddenDaySpacingFiller,o),ownerState:z,role:A.role}):f.jsx(tCn,Y({className:za(O.root,o),ref:P,centerRipple:!0,disabled:s,tabIndex:C?0:-1,onKeyDown:L=>m(L,a),onFocus:L=>h(L,a),onBlur:L=>g(L,a),onMouseEnter:L=>y(L,a),onClick:N,onMouseDown:F},A,{ownerState:z,children:w||T.format(a,"dayOfMonth")}))}),iCn=v.memo(rCn),oCn=e=>Bn("MuiPickersSlideTransition",e),kh=Ln("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),aCn=["children","className","reduceAnimations","slideDirection","transKey","classes"],sCn=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Yt(r,oCn,t)},lCn=rt(w3,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${kh["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${kh["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${kh.slideEnterActive}`]:t.slideEnterActive},{[`.${kh.slideExit}`]:t.slideExit},{[`.${kh["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${kh["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${kh["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${kh["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${kh.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${kh.slideExit}`]:{transform:"translate(0%)"},[`& .${kh["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${kh["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function cCn(e){const t=Po({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Lt(t,aCn),s=sCn(t),l=Ub();if(i)return f.jsx("div",{className:za(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return f.jsx(lCn,{className:za(s.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(rQ,Y({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),o)})}const uCn=e=>Bn("MuiDayCalendar",e);Ln("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const dCn=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],pCn=["ownerState"],hCn=e=>{const{classes:t}=e;return Yt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},uCn,t)},ict=(kW+FQ*2)*6,fCn=rt("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gCn=rt("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),mCn=rt(i1,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),vCn=rt(i1,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),bCn=rt(i1,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Y({},e.typography.caption,{width:kW,height:kW,padding:0,margin:`0 ${FQ}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),yCn=rt("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:ict}),MCn=rt(cCn,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:ict}),CCn=rt("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),xCn=rt("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${FQ}px 0`,display:"flex",justifyContent:"center"});function wCn(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:i,isDateDisabled:o,currentMonthNumber:a,isViewFocused:s}=e,l=Lt(e,dCn);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:p,slots:h,slotProps:g,timezone:m}=t,b=ua(),y=R3(m),M=r!==null&&b.isSameDay(n,r),C=i.some(P=>b.isSameDay(P,n)),x=b.isSameDay(n,y),w=h?.day??iCn,S=Vo({elementType:w,externalSlotProps:g?.day,additionalProps:Y({disableHighlightToday:u,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:d,"data-timestamp":b.toJsDate(n).valueOf()},l),ownerState:Y({},t,{day:n,selected:C})}),A=Lt(S,pCn),z=v.useMemo(()=>c||o(n),[c,o,n]),O=v.useMemo(()=>b.getMonth(n)!==a,[b,n,a]),T=v.useMemo(()=>{const P=b.startOfMonth(b.setMonth(n,a));return p?b.isSameDay(n,b.startOfWeek(P)):b.isSameDay(n,P)},[a,n,p,b]),R=v.useMemo(()=>{const P=b.endOfMonth(b.setMonth(n,a));return p?b.isSameDay(n,b.endOfWeek(P)):b.isSameDay(n,P)},[a,n,p,b]);return f.jsx(w,Y({},A,{day:n,disabled:z,autoFocus:s&&M,today:x,outsideCurrentMonth:O,isFirstVisibleCell:T,isLastVisibleCell:R,selected:C,tabIndex:M?0:-1,"aria-selected":C,"aria-current":x?"date":void 0}))}function SCn(e){const t=Po({props:e,name:"MuiDayCalendar"}),n=ua(),{onFocusedDayChange:r,className:i,currentMonth:o,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:p,renderLoading:h=()=>f.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:m,disablePast:b,disableFuture:y,minDate:M,maxDate:C,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,dayOfWeekFormatter:A=be=>n.format(be,"weekdayShort").charAt(0).toUpperCase(),hasFocus:z,onFocusedViewChange:O,gridLabelId:T,displayWeekNumber:R,fixedWeekNumber:P,autoFocus:F,timezone:N}=t,L=R3(N),W=hCn(t),j=ts(),V=ect({shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,minDate:M,maxDate:C,disablePast:b,disableFuture:y,timezone:N}),G=Rd(),[q,$]=up({name:"DayCalendar",state:"hasFocus",controlled:z,default:F??!1}),[U,X]=v.useState(()=>s||L),Q=en(be=>{d||c(be)}),re=be=>{V(be)||(r(be),X(be),O?.(!0),$(!0))},ee=en((be,me)=>{switch(be.key){case"ArrowUp":re(n.addDays(me,-7)),be.preventDefault();break;case"ArrowDown":re(n.addDays(me,7)),be.preventDefault();break;case"ArrowLeft":{const Me=n.addDays(me,j?1:-1),Oe=n.addMonths(me,j?1:-1),de=ZN({utils:n,date:Me,minDate:j?Me:n.startOfMonth(Oe),maxDate:j?n.endOfMonth(Oe):Me,isDateDisabled:V,timezone:N});re(de||Me),be.preventDefault();break}case"ArrowRight":{const Me=n.addDays(me,j?-1:1),Oe=n.addMonths(me,j?-1:1),de=ZN({utils:n,date:Me,minDate:j?n.startOfMonth(Oe):Me,maxDate:j?Me:n.endOfMonth(Oe),isDateDisabled:V,timezone:N});re(de||Me),be.preventDefault();break}case"Home":re(n.startOfWeek(me)),be.preventDefault();break;case"End":re(n.endOfWeek(me)),be.preventDefault();break;case"PageUp":re(n.addMonths(me,1)),be.preventDefault();break;case"PageDown":re(n.addMonths(me,-1)),be.preventDefault();break}}),se=en((be,me)=>re(me)),pe=en((be,me)=>{q&&n.isSameDay(U,me)&&O?.(!1)}),te=n.getMonth(o),ce=n.getYear(o),oe=v.useMemo(()=>a.filter(be=>!!be).map(be=>n.startOfDay(be)),[n,a]),ae=`${ce}-${te}`,ne=v.useMemo(()=>v.createRef(),[ae]),le=v.useMemo(()=>{const be=n.startOfMonth(o),me=n.endOfMonth(o);return V(U)||n.isAfterDay(U,me)||n.isBeforeDay(U,be)?ZN({utils:n,date:U,minDate:be,maxDate:me,disablePast:b,disableFuture:y,isDateDisabled:V,timezone:N}):U},[o,y,b,U,V,n,N]),he=v.useMemo(()=>{const be=n.getWeekArray(o);let me=n.addMonths(o,1);for(;P&&be.length<P;){const Me=n.getWeekArray(me),Oe=n.isSameDay(be[be.length-1][0],Me[0][0]);Me.slice(Oe?1:0).forEach(de=>{be.length<P&&be.push(de)}),me=n.addMonths(me,1)}return be},[o,P,n]);return f.jsxs(fCn,{role:"grid","aria-labelledby":T,className:W.root,children:[f.jsxs(gCn,{role:"row",className:W.header,children:[R&&f.jsx(vCn,{variant:"caption",role:"columnheader","aria-label":G.calendarWeekNumberHeaderLabel,className:W.weekNumberLabel,children:G.calendarWeekNumberHeaderText}),rgn(n,L).map((be,me)=>f.jsx(mCn,{variant:"caption",role:"columnheader","aria-label":n.format(be,"weekday"),className:W.weekDayLabel,children:A(be)},me.toString()))]}),l?f.jsx(yCn,{className:W.loadingContainer,children:h()}):f.jsx(MCn,Y({transKey:ae,onExited:u,reduceAnimations:p,slideDirection:g,className:za(i,W.slideTransition)},m,{nodeRef:ne,children:f.jsx(CCn,{ref:ne,role:"rowgroup",className:W.monthContainer,children:he.map((be,me)=>f.jsxs(xCn,{role:"row",className:W.weekContainer,"aria-rowindex":me+1,children:[R&&f.jsx(bCn,{className:W.weekNumber,role:"rowheader","aria-label":G.calendarWeekNumberAriaLabelText(n.getWeekNumber(be[0])),children:G.calendarWeekNumberText(n.getWeekNumber(be[0]))}),be.map((Me,Oe)=>f.jsx(wCn,{parentProps:t,day:Me,selectedDays:oe,focusableDay:le,onKeyDown:ee,onFocus:se,onBlur:pe,onDaySelect:Q,isDateDisabled:V,currentMonthNumber:te,isViewFocused:q,"aria-colindex":Oe+1},Me.toString()))]},`week-${be[0]}`))})}))]})}function ACn(e){return Bn("MuiPickersMonth",e)}const x8=Ln("MuiPickersMonth",["root","monthButton","disabled","selected"]),OCn=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],zCn=e=>{const{disabled:t,selected:n,classes:r}=e;return Yt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},ACn,r)},TCn=rt("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),ECn=rt("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${x8.disabled}`]:t.disabled},{[`&.${x8.selected}`]:t.selected}]})(({theme:e})=>Y({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sd(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sd(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${x8.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${x8.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),RCn=v.memo(function(t){const n=Po({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":g,"aria-label":m,slots:b,slotProps:y}=n,M=Lt(n,OCn),C=v.useRef(null),x=zCn(n);Ro(()=>{r&&C.current?.focus()},[r]);const w=b?.monthButton??ECn,S=Vo({elementType:w,externalSlotProps:y?.monthButton,additionalProps:{children:o,disabled:a,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":g,"aria-checked":s,"aria-label":m,onClick:A=>u(A,l),onKeyDown:A=>d(A,l),onFocus:A=>p(A,l),onBlur:A=>h(A,l)},ownerState:n,className:x.monthButton});return f.jsx(TCn,Y({className:za(x.root,i),ownerState:n},M,{children:f.jsx(w,Y({},S))}))});function ICn(e){return Bn("MuiMonthCalendar",e)}Ln("MuiMonthCalendar",["root"]);const PCn=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],DCn=e=>{const{classes:t}=e;return Yt({root:["root"]},ICn,t)};function kCn(e,t){const n=ua(),r=E3(),i=Po({props:e,name:t});return Y({disableFuture:!1,disablePast:!1},i,{minDate:w0(n,i.minDate,r.minDate),maxDate:w0(n,i.maxDate,r.maxDate)})}const LCn=rt("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:WQ,boxSizing:"border-box"}),_Cn=v.forwardRef(function(t,n){const r=kCn(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:p,onChange:h,shouldDisableMonth:g,readOnly:m,autoFocus:b=!1,onMonthFocus:y,hasFocus:M,onFocusedViewChange:C,monthsPerRow:x=3,timezone:w,gridLabelId:S,slots:A,slotProps:z}=r,O=Lt(r,PCn),{value:T,handleValueChange:R,timezone:P}=PD({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,referenceDate:s,onChange:h,valueManager:Tu}),F=R3(P),N=ts(),L=ua(),W=v.useMemo(()=>Tu.getInitialReferenceValue({value:T,utils:L,props:r,timezone:P,referenceDate:s,granularity:Gg.month}),[]),j=r,V=DCn(j),G=v.useMemo(()=>L.getMonth(F),[L,F]),q=v.useMemo(()=>T!=null?L.getMonth(T):null,[T,L]),[$,U]=v.useState(()=>q||L.getMonth(W)),[X,Q]=up({name:"MonthCalendar",state:"hasFocus",controlled:M,default:b??!1}),re=en(ae=>{Q(ae),C&&C(ae)}),ee=v.useCallback(ae=>{const ne=L.startOfMonth(u&&L.isAfter(F,p)?F:p),le=L.startOfMonth(c&&L.isBefore(F,d)?F:d),he=L.startOfMonth(ae);return L.isBefore(he,ne)||L.isAfter(he,le)?!0:g?g(he):!1},[c,u,d,p,F,g,L]),se=en((ae,ne)=>{if(m)return;const le=L.setMonth(T??W,ne);R(le)}),pe=en(ae=>{ee(L.setMonth(T??W,ae))||(U(ae),re(!0),y&&y(ae))});v.useEffect(()=>{U(ae=>q!==null&&ae!==q?q:ae)},[q]);const te=en((ae,ne)=>{switch(ae.key){case"ArrowUp":pe((12+ne-3)%12),ae.preventDefault();break;case"ArrowDown":pe((12+ne+3)%12),ae.preventDefault();break;case"ArrowLeft":pe((12+ne+(N?1:-1))%12),ae.preventDefault();break;case"ArrowRight":pe((12+ne+(N?-1:1))%12),ae.preventDefault();break}}),ce=en((ae,ne)=>{pe(ne)}),oe=en((ae,ne)=>{$===ne&&re(!1)});return f.jsx(LCn,Y({ref:n,className:za(V.root,i),ownerState:j,role:"radiogroup","aria-labelledby":S},O,{children:uCe(L,T??W).map(ae=>{const ne=L.getMonth(ae),le=L.format(ae,"monthShort"),he=L.format(ae,"month"),be=ne===q,me=l||ee(ae);return f.jsx(RCn,{selected:be,value:ne,onClick:se,onKeyDown:te,autoFocus:X&&ne===$,disabled:me,tabIndex:ne===$&&!me?0:-1,onFocus:ce,onBlur:oe,"aria-current":G===ne?"date":void 0,"aria-label":he,monthsPerRow:x,slots:A,slotProps:z,children:le},le)})}))});function NCn(e){return Bn("MuiPickersYear",e)}const w8=Ln("MuiPickersYear",["root","yearButton","selected","disabled"]),FCn=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],WCn=e=>{const{disabled:t,selected:n,classes:r}=e;return Yt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},NCn,r)},qCn=rt("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),BCn=rt("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${w8.disabled}`]:t.disabled},{[`&.${w8.selected}`]:t.selected}]})(({theme:e})=>Y({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Sd(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sd(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${w8.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${w8.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),jCn=v.memo(function(t){const n=Po({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":g,slots:m,slotProps:b}=n,y=Lt(n,FCn),M=v.useRef(null),C=WCn(n);Ro(()=>{r&&M.current?.focus()},[r]);const x=m?.yearButton??BCn,w=Vo({elementType:x,externalSlotProps:b?.yearButton,additionalProps:{children:o,disabled:a,tabIndex:c,ref:M,type:"button",role:"radio","aria-current":g,"aria-checked":s,onClick:S=>u(S,l),onKeyDown:S=>d(S,l),onFocus:S=>p(S,l),onBlur:S=>h(S,l)},ownerState:n,className:C.yearButton});return f.jsx(qCn,Y({className:za(C.root,i),ownerState:n},y,{children:f.jsx(x,Y({},w))}))});function HCn(e){return Bn("MuiYearCalendar",e)}Ln("MuiYearCalendar",["root"]);const VCn=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],GCn=e=>{const{classes:t}=e;return Yt({root:["root"]},HCn,t)};function $Cn(e,t){const n=ua(),r=E3(),i=Po({props:e,name:t});return Y({disablePast:!1,disableFuture:!1},i,{yearsPerRow:i.yearsPerRow??3,minDate:w0(n,i.minDate,r.minDate),maxDate:w0(n,i.maxDate,r.maxDate)})}const UCn=rt("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:WQ,maxHeight:Jbn,boxSizing:"border-box",position:"relative"}),XCn=v.forwardRef(function(t,n){const r=$Cn(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:h,onChange:g,readOnly:m,shouldDisableYear:b,onYearFocus:y,hasFocus:M,onFocusedViewChange:C,yearsOrder:x="asc",yearsPerRow:w,timezone:S,gridLabelId:A,slots:z,slotProps:O}=r,T=Lt(r,VCn),{value:R,handleValueChange:P,timezone:F}=PD({name:"YearCalendar",timezone:S,value:a,defaultValue:s,referenceDate:l,onChange:g,valueManager:Tu}),N=R3(F),L=ts(),W=ua(),j=v.useMemo(()=>Tu.getInitialReferenceValue({value:R,utils:W,props:r,timezone:F,referenceDate:l,granularity:Gg.year}),[]),V=r,G=GCn(V),q=v.useMemo(()=>W.getYear(N),[W,N]),$=v.useMemo(()=>R!=null?W.getYear(R):null,[R,W]),[U,X]=v.useState(()=>$||W.getYear(j)),[Q,re]=up({name:"YearCalendar",state:"hasFocus",controlled:M,default:i??!1}),ee=en(Me=>{re(Me),C&&C(Me)}),se=v.useCallback(Me=>{if(d&&W.isBeforeYear(Me,N)||u&&W.isAfterYear(Me,N)||h&&W.isBeforeYear(Me,h)||p&&W.isAfterYear(Me,p))return!0;if(!b)return!1;const Oe=W.startOfYear(Me);return b(Oe)},[u,d,p,h,N,b,W]),pe=en((Me,Oe)=>{if(m)return;const de=W.setYear(R??j,Oe);P(de)}),te=en(Me=>{se(W.setYear(R??j,Me))||(X(Me),ee(!0),y?.(Me))});v.useEffect(()=>{X(Me=>$!==null&&Me!==$?$:Me)},[$]);const ce=x!=="desc"?w*1:w*-1,oe=L&&x==="asc"||!L&&x==="desc"?-1:1,ae=en((Me,Oe)=>{switch(Me.key){case"ArrowUp":te(Oe-ce),Me.preventDefault();break;case"ArrowDown":te(Oe+ce),Me.preventDefault();break;case"ArrowLeft":te(Oe-oe),Me.preventDefault();break;case"ArrowRight":te(Oe+oe),Me.preventDefault();break}}),ne=en((Me,Oe)=>{te(Oe)}),le=en((Me,Oe)=>{U===Oe&&ee(!1)}),he=v.useRef(null),be=Pi(n,he);v.useEffect(()=>{if(i||he.current===null)return;const Me=he.current.querySelector('[tabindex="0"]');if(!Me)return;const Oe=Me.offsetHeight,de=Me.offsetTop,ie=he.current.clientHeight,ue=he.current.scrollTop,Ae=de+Oe;Oe>ie||de<ue||(he.current.scrollTop=Ae-ie/2-Oe/2)},[i]);const me=W.getYearRange([h,p]);return x==="desc"&&me.reverse(),f.jsx(UCn,Y({ref:be,className:za(G.root,o),ownerState:V,role:"radiogroup","aria-labelledby":A},T,{children:me.map(Me=>{const Oe=W.getYear(Me),de=Oe===$,ie=c||se(Me);return f.jsx(jCn,{selected:de,value:Oe,onClick:pe,onKeyDown:ae,autoFocus:Q&&Oe===U,disabled:ie,tabIndex:Oe===U&&!ie?0:-1,onFocus:ne,onBlur:le,"aria-current":q===Oe?"date":void 0,yearsPerRow:w,slots:z,slotProps:O,children:W.format(Me,"year")},W.format(Me,"year"))})}))}),YCn=e=>Bn("MuiPickersCalendarHeader",e),KCn=Ln("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function QCn(e){return Bn("MuiPickersArrowSwitcher",e)}Ln("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const ZCn=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],JCn=["ownerState"],exn=["ownerState"],txn=rt("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),nxn=rt("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),pke=rt(Zp,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),rxn=e=>{const{classes:t}=e;return Yt({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},QCn,t)},oct=v.forwardRef(function(t,n){const r=ts(),i=Po({props:t,name:"MuiPickersArrowSwitcher"}),{children:o,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:g,onGoToPrevious:m,previousLabel:b,labelId:y}=i,M=Lt(i,ZCn),C=i,x=rxn(C),w={isDisabled:c,isHidden:u,goTo:d,label:p},S={isDisabled:h,isHidden:g,goTo:m,label:b},A=s?.previousIconButton??pke,z=Vo({elementType:A,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"end",onClick:S.goTo},ownerState:Y({},C,{hidden:S.isHidden}),className:za(x.button,x.previousIconButton)}),O=s?.nextIconButton??pke,T=Vo({elementType:O,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:w.label,"aria-label":w.label,disabled:w.isDisabled,edge:"start",onClick:w.goTo},ownerState:Y({},C,{hidden:w.isHidden}),className:za(x.button,x.nextIconButton)}),R=s?.leftArrowIcon??d2n,P=Vo({elementType:R,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:x.leftArrowIcon}),F=Lt(P,JCn),N=s?.rightArrowIcon??p2n,L=Vo({elementType:N,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:x.rightArrowIcon}),W=Lt(L,exn);return f.jsxs(txn,Y({ref:n,className:za(x.root,a),ownerState:C},M,{children:[f.jsx(A,Y({},z,{children:r?f.jsx(N,Y({},W)):f.jsx(R,Y({},F))})),o?f.jsx(i1,{variant:"subtitle1",component:"span",id:y,children:o}):f.jsx(nxn,{className:x.spacer,ownerState:C}),f.jsx(O,Y({},T,{children:r?f.jsx(R,Y({},F)):f.jsx(N,Y({},W))}))]}))});function ixn(e,{disableFuture:t,maxDate:n,timezone:r}){const i=ua();return v.useMemo(()=>{const o=i.date(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)},[t,n,e,i,r])}function oxn(e,{disablePast:t,minDate:n,timezone:r}){const i=ua();return v.useMemo(()=>{const o=i.date(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)},[t,n,e,i,r])}function PCe(e,t,n,r){const i=ua(),o=ign(e,i),a=v.useCallback(s=>{const l=e==null?null:ogn(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const axn=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],sxn=["ownerState"],lxn=e=>{const{classes:t}=e;return Yt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},YCn,t)},cxn=rt("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),uxn=rt("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Y({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),dxn=rt("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),pxn=rt(Zp,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${KCn.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),hxn=rt(u2n,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),fxn=v.forwardRef(function(t,n){const r=Rd(),i=ua(),o=Po({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:h,onMonthChange:g,onViewChange:m,view:b,reduceAnimations:y,views:M,labelId:C,className:x,timezone:w,format:S=`${i.formats.month} ${i.formats.year}`}=o,A=Lt(o,axn),z=o,O=lxn(o),T=a?.switchViewButton??pxn,R=Vo({elementType:T,externalSlotProps:s?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(b)},ownerState:z,className:O.switchViewButton}),P=a?.switchViewIcon??hxn,F=Vo({elementType:P,externalSlotProps:s?.switchViewIcon,ownerState:z,className:O.switchViewIcon}),N=Lt(F,sxn),L=()=>g(i.addMonths(l,1),"left"),W=()=>g(i.addMonths(l,-1),"right"),j=ixn(l,{disableFuture:u,maxDate:p,timezone:w}),V=oxn(l,{disablePast:d,minDate:h,timezone:w}),G=()=>{if(!(M.length===1||!m||c))if(M.length===2)m(M.find($=>$!==b)||M[0]);else{const $=M.indexOf(b)!==0?0:1;m(M[$])}};if(M.length===1&&M[0]==="year")return null;const q=i.formatByString(l,S);return f.jsxs(cxn,Y({},A,{ownerState:z,className:za(O.root,x),ref:n,children:[f.jsxs(uxn,{role:"presentation",onClick:G,ownerState:z,"aria-live":"polite",className:O.labelContainer,children:[f.jsx(tct,{reduceAnimations:y,transKey:q,children:f.jsx(dxn,{id:C,ownerState:z,className:O.label,children:q})}),M.length>1&&!c&&f.jsx(T,Y({},R,{children:f.jsx(P,Y({},N))}))]}),f.jsx(_z,{in:b==="day",appear:!y,enter:!y,children:f.jsx(oct,{slots:a,slotProps:s,onGoToPrevious:W,isPreviousDisabled:V,previousLabel:r.previousMonth,onGoToNext:L,isNextDisabled:j,nextLabel:r.nextMonth})})]}))}),UQ=rt("div")({overflow:"hidden",width:WQ,maxHeight:qQ,display:"flex",flexDirection:"column",margin:"0 auto"}),gxn=e=>Bn("MuiDateCalendar",e);Ln("MuiDateCalendar",["root","viewTransitionContainer"]);const mxn=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],vxn=e=>{const{classes:t}=e;return Yt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},gxn,t)};function bxn(e,t){const n=ua(),r=E3(),i=ylt(),o=Po({props:e,name:t});return Y({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??"day",views:o.views??["year","day"],reduceAnimations:o.reduceAnimations??i,renderLoading:o.renderLoading??(()=>f.jsx("span",{children:"..."})),minDate:w0(n,o.minDate,r.minDate),maxDate:w0(n,o.maxDate,r.maxDate)})}const yxn=rt(UQ,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:qQ}),Mxn=rt(tct,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Cxn=v.forwardRef(function(t,n){const r=ua(),i=Vi(),o=bxn(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:p,onChange:h,onYearChange:g,onMonthChange:m,reduceAnimations:b,shouldDisableDate:y,shouldDisableMonth:M,shouldDisableYear:C,view:x,views:w,openTo:S,className:A,disabled:z,readOnly:O,minDate:T,maxDate:R,disableHighlightToday:P,focusedView:F,onFocusedViewChange:N,showDaysOutsideCurrentMonth:L,fixedWeekNumber:W,dayOfWeekFormatter:j,slots:V,slotProps:G,loading:q,renderLoading:$,displayWeekNumber:U,yearsOrder:X,yearsPerRow:Q,monthsPerRow:re,timezone:ee}=o,se=Lt(o,mxn),{value:pe,handleValueChange:te,timezone:ce}=PD({name:"DateCalendar",timezone:ee,value:l,defaultValue:c,referenceDate:u,onChange:h,valueManager:Tu}),{view:oe,setView:ae,focusedView:ne,setFocusedView:le,goToNextView:he,setValueAndGoToNextView:be}=J6({view:x,views:w,openTo:S,onChange:te,onViewChange:s,autoFocus:a,focusedView:F,onFocusedViewChange:N}),{referenceDate:me,calendarState:Me,changeFocusedDay:Oe,changeMonth:de,handleChangeMonth:ie,isDateDisabled:ue,onMonthSwitchingAnimationEnd:Ae}=XMn({value:pe,referenceDate:u,reduceAnimations:b,onMonthChange:m,minDate:T,maxDate:R,shouldDisableDate:y,disablePast:p,disableFuture:d,timezone:ce}),Ce=z&&pe||T,Ee=z&&pe||R,Ge=`${i}-grid-label`,_e=ne!==null,Ie=V?.calendarHeader??fxn,Le=Vo({elementType:Ie,externalSlotProps:G?.calendarHeader,additionalProps:{views:w,view:oe,currentMonth:Me.currentMonth,onViewChange:ae,onMonthChange:(Dt,Qn)=>ie({newMonth:Dt,direction:Qn}),minDate:Ce,maxDate:Ee,disabled:z,disablePast:p,disableFuture:d,reduceAnimations:b,timezone:ce,labelId:Ge},ownerState:o}),we=en(Dt=>{const Qn=r.startOfMonth(Dt),ir=r.endOfMonth(Dt),Hn=ue(Dt)?ZN({utils:r,date:Dt,minDate:r.isBefore(T,Qn)?Qn:T,maxDate:r.isAfter(R,ir)?ir:R,disablePast:p,disableFuture:d,isDateDisabled:ue,timezone:ce}):Dt;Hn?(be(Hn,"finish"),m?.(Qn)):(he(),de(Qn)),Oe(Hn,!0)}),ve=en(Dt=>{const Qn=r.startOfYear(Dt),ir=r.endOfYear(Dt),Hn=ue(Dt)?ZN({utils:r,date:Dt,minDate:r.isBefore(T,Qn)?Qn:T,maxDate:r.isAfter(R,ir)?ir:R,disablePast:p,disableFuture:d,isDateDisabled:ue,timezone:ce}):Dt;Hn?(be(Hn,"finish"),g?.(Hn)):(he(),de(Qn)),Oe(Hn,!0)}),De=en(Dt=>te(Dt&&u9(r,Dt,pe??me),"finish",oe));v.useEffect(()=>{pe!=null&&r.isValid(pe)&&de(pe)},[pe]);const ze=o,Ve=vxn(ze),Ke={disablePast:p,disableFuture:d,maxDate:R,minDate:T},et={disableHighlightToday:P,readOnly:O,disabled:z,timezone:ce,gridLabelId:Ge,slots:V,slotProps:G},it=v.useRef(oe);v.useEffect(()=>{it.current!==oe&&(ne===it.current&&le(oe,!0),it.current=oe)},[ne,le,oe]);const Ft=v.useMemo(()=>[pe],[pe]);return f.jsxs(yxn,Y({ref:n,className:za(Ve.root,A),ownerState:ze},se,{children:[f.jsx(Ie,Y({},Le,{slots:V,slotProps:G})),f.jsx(Mxn,{reduceAnimations:b,className:Ve.viewTransitionContainer,transKey:oe,ownerState:ze,children:f.jsxs("div",{children:[oe==="year"&&f.jsx(XCn,Y({},Ke,et,{value:pe,onChange:ve,shouldDisableYear:C,hasFocus:_e,onFocusedViewChange:Dt=>le("year",Dt),yearsOrder:X,yearsPerRow:Q,referenceDate:me})),oe==="month"&&f.jsx(_Cn,Y({},Ke,et,{hasFocus:_e,className:A,value:pe,onChange:we,shouldDisableMonth:M,onFocusedViewChange:Dt=>le("month",Dt),monthsPerRow:re,referenceDate:me})),oe==="day"&&f.jsx(SCn,Y({},Me,Ke,et,{onMonthSwitchingAnimationEnd:Ae,onFocusedDayChange:Oe,reduceAnimations:b,selectedDays:Ft,onSelectedDaysChange:De,shouldDisableDate:y,shouldDisableMonth:M,shouldDisableYear:C,hasFocus:_e,onFocusedViewChange:Dt=>le("day",Dt),showDaysOutsideCurrentMonth:L,fixedWeekNumber:W,dayOfWeekFormatter:j,displayWeekNumber:U,loading:q,renderLoading:$}))]})})]}))}),Tf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:b,shouldDisableYear:y,reduceAnimations:M,onMonthChange:C,monthsPerRow:x,onYearChange:w,yearsOrder:S,yearsPerRow:A,slots:z,slotProps:O,loading:T,renderLoading:R,disableHighlightToday:P,readOnly:F,disabled:N,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:W,sx:j,autoFocus:V,fixedWeekNumber:G,displayWeekNumber:q,timezone:$})=>f.jsx(Cxn,{view:e,onViewChange:t,views:n.filter(mP),focusedView:r&&mP(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:b,shouldDisableYear:y,reduceAnimations:M,onMonthChange:C,monthsPerRow:x,onYearChange:w,yearsOrder:S,yearsPerRow:A,slots:z,slotProps:O,loading:T,renderLoading:R,disableHighlightToday:P,readOnly:F,disabled:N,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:W,sx:j,autoFocus:V,fixedWeekNumber:G,displayWeekNumber:q,timezone:$}),act=v.forwardRef(function(t,n){const r=Rd(),i=ua(),o=tlt(t,"MuiDesktopDatePicker"),a=Y({day:Tf,month:Tf,year:Tf},o.viewRenderers),s=Y({},o,{viewRenderers:a,format:RW(i,o,!1),yearsPerRow:o.yearsPerRow??4,slots:Y({openPickerIcon:g9,field:Jlt},o.slots),slotProps:Y({},o.slotProps,{field:c=>Y({},kz(o.slotProps?.field,c),kQ(o),{ref:n}),toolbar:Y({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=Ilt({props:s,valueManager:Tu,valueType:"date",getOpenDialogAriaText:PQ({utils:i,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:RD});return l()});act.propTypes={autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:EQ,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,minDate:Z.object,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","month","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","month","year"]),viewRenderers:Z.shape({day:Z.func,month:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","month","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};function xxn(e){return Bn("MuiDialogContent",e)}Ln("MuiDialogContent",["root","dividers"]);const wxn=Ln("MuiDialogTitle",["root"]),Sxn=e=>{const{classes:t,dividers:n}=e;return Yt({root:["root",n&&"dividers"]},xxn,t)},Axn=rt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(kr(({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:{[`.${wxn.root} + &`]:{paddingTop:0}}}]}))),Oxn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...a}=r,s={...r,dividers:o},l=Sxn(s);return f.jsx(Axn,{className:nr(l.root,i),ownerState:s,ref:n,...a})});function zxn(e){return Bn("MuiDialog",e)}const rF=Ln("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Txn=v.createContext({}),Exn=rt(klt,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Rxn=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${jt(n)}`],paper:["paper",`paperScroll${jt(n)}`,`paperWidth${jt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Yt(a,zxn,t)},Ixn=rt(Llt,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Pxn=rt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${jt(n.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"}}}]}),Dxn=rt(I3,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${jt(n.scroll)}`],t[`paperWidth${jt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(kr(({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)`,[`&.${rF.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}`,[`&.${rF.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,[`&.${rF.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),kxn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiDialog"}),i=Ub(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:m=!1,maxWidth:b="sm",onClick:y,onClose:M,open:C,PaperComponent:x=I3,PaperProps:w={},scroll:S="paper",slots:A={},slotProps:z={},TransitionComponent:O=_z,transitionDuration:T=o,TransitionProps:R,...P}=r,F={...r,disableEscapeKeyDown:h,fullScreen:g,fullWidth:m,maxWidth:b,scroll:S},N=Rxn(F),L=v.useRef(),W=ne=>{L.current=ne.target===ne.currentTarget},j=ne=>{y&&y(ne),L.current&&(L.current=null,M&&M(ne,"backdropClick"))},V=Vi(s),G=v.useMemo(()=>({titleId:V}),[V]),q={transition:O,...A},$={transition:R,paper:w,backdrop:u,...z},U={slots:q,slotProps:$},[X,Q]=ni("root",{elementType:Ixn,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:F,className:nr(N.root,p),ref:n}),[re,ee]=ni("backdrop",{elementType:Exn,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:F}),[se,pe]=ni("paper",{elementType:Dxn,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:F,className:nr(N.paper,w.className)}),[te,ce]=ni("container",{elementType:Pxn,externalForwardedProps:U,ownerState:F,className:N.container}),[oe,ae]=ni("transition",{elementType:_z,externalForwardedProps:U,ownerState:F,additionalProps:{appear:!0,in:C,timeout:T,role:"presentation"}});return f.jsx(X,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:T,as:c,...ee}},disableEscapeKeyDown:h,onClose:M,open:C,onClick:j,...Q,...P,children:f.jsx(oe,{...ae,children:f.jsx(te,{onMouseDown:W,...ce,children:f.jsx(se,{as:x,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":V,"aria-modal":l,...pe,children:f.jsx(Txn.Provider,{value:G,children:d})})})})})}),Lxn=rt(kxn)({[`& .${rF.container}`]:{outline:0},[`& .${rF.paper}`]:{outline:0,minWidth:WQ}}),_xn=rt(Oxn)({"&:first-of-type":{padding:0}});function Nxn(e){const{children:t,onDismiss:n,open:r,slots:i,slotProps:o}=e,a=i?.dialog??Lxn,s=i?.mobileTransition??_z;return f.jsx(a,Y({open:r,onClose:n},o?.dialog,{TransitionComponent:s,TransitionProps:o?.mobileTransition,PaperComponent:i?.mobilePaper,PaperProps:o?.mobilePaper,children:f.jsx(_xn,{children:t})}))}const Fxn=["props","getOpenDialogAriaText"],sct=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Lt(e,Fxn);const{slots:i,slotProps:o,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:p,timezone:h,name:g,label:m,inputRef:b,readOnly:y,disabled:M,localeText:C}=t,x=v.useRef(null),w=Vi(),S=o?.toolbar?.hidden??!1,{open:A,actions:z,layoutProps:O,renderCurrentView:T,fieldProps:R,contextValue:P}=Mlt(Y({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),F=i.field,N=Vo({elementType:F,externalSlotProps:o?.field,additionalProps:Y({},R,S&&{id:w},!(M||y)&&{onClick:z.onOpen,onKeyDown:ebn(z.onOpen)},{readOnly:y??!0,disabled:M,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:p,timezone:h,label:m,name:g},b?{inputRef:b}:{}),ownerState:t});N.inputProps=Y({},N.inputProps,{"aria-label":n(R.value)});const L=Y({textField:i.textField},N.slots),W=i.layout??Elt;let j=w;S&&(m?j=`${w}-label`:j=void 0);const V=Y({},o,{toolbar:Y({},o?.toolbar,{titleId:w}),mobilePaper:Y({"aria-labelledby":j},o?.mobilePaper)}),G=Pi(x,N.unstableFieldRef);return{renderPicker:()=>f.jsxs(Rlt,{contextValue:P,localeText:C,children:[f.jsx(F,Y({},N,{slots:L,slotProps:V,unstableFieldRef:G})),f.jsx(Nxn,Y({},z,{open:A,slots:i,slotProps:V,children:f.jsx(W,Y({},O,V?.layout,{slots:i,slotProps:V,children:T()}))}))]})}},lct=v.forwardRef(function(t,n){const r=Rd(),i=ua(),o=tlt(t,"MuiMobileDatePicker"),a=Y({day:Tf,month:Tf,year:Tf},o.viewRenderers),s=Y({},o,{viewRenderers:a,format:RW(i,o,!1),slots:Y({field:Jlt},o.slots),slotProps:Y({},o.slotProps,{field:c=>Y({},kz(o.slotProps?.field,c),kQ(o),{ref:n}),toolbar:Y({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=sct({props:s,valueManager:Tu,valueType:"date",getOpenDialogAriaText:PQ({utils:i,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:RD});return l()});lct.propTypes={autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:EQ,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,minDate:Z.object,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","month","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","month","year"]),viewRenderers:Z.shape({day:Z.func,month:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","month","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};const Wxn=["desktopModeMediaQuery"],_f=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=blt}=r,o=Lt(r,Wxn);return aCe(i,{defaultMatches:!0})?f.jsx(act,Y({ref:n},o)):f.jsx(lct,Y({ref:n},o))});var _ie={exports:{}},h7={exports:{}};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var cct;function mt(){return cct.apply(null,arguments)}function qxn(e){cct=e}function Cm(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function HO(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ta(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function DCe(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ta(e,t))return!1;return!0}function j1(e){return e===void 0}function Qy(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function tB(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function uct(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function ax(e,t){for(var n in t)Ta(t,n)&&(e[n]=t[n]);return Ta(t,"toString")&&(e.toString=t.toString),Ta(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Xb(e,t,n,r){return Dct(e,t,n,r,!0).utc()}function Bxn(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function bo(e){return e._pf==null&&(e._pf=Bxn()),e._pf}var kfe;Array.prototype.some?kfe=Array.prototype.some:kfe=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function kCe(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=bo(e),n=kfe.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function XQ(e){var t=Xb(NaN);return e!=null?ax(bo(t),e):bo(t).userInvalidated=!0,t}var hke=mt.momentProperties=[],Nie=!1;function LCe(e,t){var n,r,i,o=hke.length;if(j1(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),j1(t._i)||(e._i=t._i),j1(t._f)||(e._f=t._f),j1(t._l)||(e._l=t._l),j1(t._strict)||(e._strict=t._strict),j1(t._tzm)||(e._tzm=t._tzm),j1(t._isUTC)||(e._isUTC=t._isUTC),j1(t._offset)||(e._offset=t._offset),j1(t._pf)||(e._pf=bo(t)),j1(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=hke[n],i=t[r],j1(i)||(e[r]=i);return e}function nB(e){LCe(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Nie===!1&&(Nie=!0,mt.updateOffset(this),Nie=!1)}function xm(e){return e instanceof nB||e!=null&&e._isAMomentObject!=null}function dct(e){mt.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Xf(e,t){var n=!0;return ax(function(){if(mt.deprecationHandler!=null&&mt.deprecationHandler(null,e),n){var r=[],i,o,a,s=arguments.length;for(o=0;o<s;o++){if(i="",typeof arguments[o]=="object"){i+=`
[`+o+"] ";for(a in arguments[0])Ta(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}dct(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var fke={};function pct(e,t){mt.deprecationHandler!=null&&mt.deprecationHandler(e,t),fke[e]||(dct(t),fke[e]=!0)}mt.suppressDeprecationWarnings=!1;mt.deprecationHandler=null;function Yb(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function jxn(e){var t,n;for(n in e)Ta(e,n)&&(t=e[n],Yb(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Lfe(e,t){var n=ax({},e),r;for(r in t)Ta(t,r)&&(HO(e[r])&&HO(t[r])?(n[r]={},ax(n[r],e[r]),ax(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ta(e,r)&&!Ta(t,r)&&HO(e[r])&&(n[r]=ax({},n[r]));return n}function _Ce(e){e!=null&&this.set(e)}var _fe;Object.keys?_fe=Object.keys:_fe=function(e){var t,n=[];for(t in e)Ta(e,t)&&n.push(t);return n};var Hxn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Vxn(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Yb(r)?r.call(t,n):r}function kb(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var NCe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,S8=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fie={},mI={};function ai(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(mI[e]=i),t&&(mI[t[0]]=function(){return kb(i.apply(this,arguments),t[1],t[2])}),n&&(mI[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Gxn(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $xn(e){var t=e.match(NCe),n,r;for(n=0,r=t.length;n<r;n++)mI[t[n]]?t[n]=mI[t[n]]:t[n]=Gxn(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=Yb(t[a])?t[a].call(i,e):t[a];return o}}function f7(e,t){return e.isValid()?(t=hct(t,e.localeData()),Fie[t]=Fie[t]||$xn(t),Fie[t](e)):e.localeData().invalidDate()}function hct(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(S8.lastIndex=0;n>=0&&S8.test(e);)e=e.replace(S8,r),S8.lastIndex=0,n-=1;return e}var Uxn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Xxn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(NCe).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Yxn="Invalid date";function Kxn(){return this._invalidDate}var Qxn="%d",Zxn=/\d{1,2}/;function Jxn(e){return this._ordinal.replace("%d",e)}var ewn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function twn(e,t,n,r){var i=this._relativeTime[n];return Yb(i)?i(e,t,n,r):i.replace(/%d/i,e)}function nwn(e,t){var n=this._relativeTime[e>0?"future":"past"];return Yb(n)?n(t):n.replace(/%s/i,t)}var gke={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Yf(e){return typeof e=="string"?gke[e]||gke[e.toLowerCase()]:void 0}function FCe(e){var t={},n,r;for(r in e)Ta(e,r)&&(n=Yf(r),n&&(t[n]=e[r]));return t}var rwn={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function iwn(e){var t=[],n;for(n in e)Ta(e,n)&&t.push({unit:n,priority:rwn[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var fct=/\d/,vh=/\d\d/,gct=/\d{3}/,WCe=/\d{4}/,YQ=/[+-]?\d{6}/,ll=/\d\d?/,mct=/\d\d\d\d?/,vct=/\d\d\d\d\d\d?/,KQ=/\d{1,3}/,qCe=/\d{1,4}/,QQ=/[+-]?\d{1,6}/,DD=/\d+/,ZQ=/[+-]?\d+/,own=/Z|[+-]\d\d:?\d\d/gi,JQ=/Z|[+-]\d\d(?::?\d\d)?/gi,awn=/[+-]?\d+(\.\d{1,3})?/,rB=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,kD=/^[1-9]\d?/,BCe=/^([1-9]\d|\d)/,v9;v9={};function Tr(e,t,n){v9[e]=Yb(t)?t:function(r,i){return r&&n?n:t}}function swn(e,t){return Ta(v9,e)?v9[e](t._strict,t._locale):new RegExp(lwn(e))}function lwn(e){return Py(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Py(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function of(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Zo(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=of(t)),n}var Nfe={};function Cs(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Qy(t)&&(r=function(o,a){a[t]=Zo(o)}),i=e.length,n=0;n<i;n++)Nfe[e[n]]=r}function iB(e,t){Cs(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function cwn(e,t,n){t!=null&&Ta(Nfe,e)&&Nfe[e](t,n._a,n,e)}function eZ(e){return e%4===0&&e%100!==0||e%400===0}var b0=0,yy=1,Vv=2,Cu=3,Jg=4,My=5,cO=6,uwn=7,dwn=8;ai("Y",0,0,function(){var e=this.year();return e<=9999?kb(e,4):"+"+e});ai(0,["YY",2],0,function(){return this.year()%100});ai(0,["YYYY",4],0,"year");ai(0,["YYYYY",5],0,"year");ai(0,["YYYYYY",6,!0],0,"year");Tr("Y",ZQ);Tr("YY",ll,vh);Tr("YYYY",qCe,WCe);Tr("YYYYY",QQ,YQ);Tr("YYYYYY",QQ,YQ);Cs(["YYYYY","YYYYYY"],b0);Cs("YYYY",function(e,t){t[b0]=e.length===2?mt.parseTwoDigitYear(e):Zo(e)});Cs("YY",function(e,t){t[b0]=mt.parseTwoDigitYear(e)});Cs("Y",function(e,t){t[b0]=parseInt(e,10)});function iF(e){return eZ(e)?366:365}mt.parseTwoDigitYear=function(e){return Zo(e)+(Zo(e)>68?1900:2e3)};var bct=LD("FullYear",!0);function pwn(){return eZ(this.year())}function LD(e,t){return function(n){return n!=null?(yct(this,e,n),mt.updateOffset(this,t),this):LW(this,e)}}function LW(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function yct(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!eZ(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function hwn(e){return e=Yf(e),Yb(this[e])?this[e]():this}function fwn(e,t){if(typeof e=="object"){e=FCe(e);var n=iwn(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Yf(e),Yb(this[e]))return this[e](t);return this}function gwn(e,t){return(e%t+t)%t}var yc;Array.prototype.indexOf?yc=Array.prototype.indexOf:yc=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function jCe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=gwn(t,12);return e+=(t-n)/12,n===1?eZ(e)?29:28:31-n%7%2}ai("M",["MM",2],"Mo",function(){return this.month()+1});ai("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});ai("MMMM",0,0,function(e){return this.localeData().months(this,e)});Tr("M",ll,kD);Tr("MM",ll,vh);Tr("MMM",function(e,t){return t.monthsShortRegex(e)});Tr("MMMM",function(e,t){return t.monthsRegex(e)});Cs(["M","MM"],function(e,t){t[yy]=Zo(e)-1});Cs(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[yy]=i:bo(n).invalidMonth=e});var mwn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mct="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Cct=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vwn=rB,bwn=rB;function ywn(e,t){return e?Cm(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Cct).test(t)?"format":"standalone"][e.month()]:Cm(this._months)?this._months:this._months.standalone}function Mwn(e,t){return e?Cm(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Cct.test(t)?"format":"standalone"][e.month()]:Cm(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Cwn(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Xb([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=yc.call(this._shortMonthsParse,a),i!==-1?i:null):(i=yc.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=yc.call(this._shortMonthsParse,a),i!==-1?i:(i=yc.call(this._longMonthsParse,a),i!==-1?i:null)):(i=yc.call(this._longMonthsParse,a),i!==-1?i:(i=yc.call(this._shortMonthsParse,a),i!==-1?i:null))}function xwn(e,t,n){var r,i,o;if(this._monthsParseExact)return Cwn.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Xb([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function xct(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Zo(t);else if(t=e.localeData().monthsParse(t),!Qy(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,jCe(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function wct(e){return e!=null?(xct(this,e),mt.updateOffset(this,!0),this):LW(this,"Month")}function wwn(){return jCe(this.year(),this.month())}function Swn(e){return this._monthsParseExact?(Ta(this,"_monthsRegex")||Sct.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ta(this,"_monthsShortRegex")||(this._monthsShortRegex=vwn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Awn(e){return this._monthsParseExact?(Ta(this,"_monthsRegex")||Sct.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ta(this,"_monthsRegex")||(this._monthsRegex=bwn),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Sct(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],i,o,a,s;for(i=0;i<12;i++)o=Xb([2e3,i]),a=Py(this.monthsShort(o,"")),s=Py(this.months(o,"")),t.push(a),n.push(s),r.push(s),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Own(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function _W(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function b9(e,t,n){var r=7+t-n,i=(7+_W(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Act(e,t,n,r,i){var o=(7+n-r)%7,a=b9(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=iF(l)+s):s>iF(e)?(l=e+1,c=s-iF(e)):(l=e,c=s),{year:l,dayOfYear:c}}function NW(e,t,n){var r=b9(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+Dy(a,t,n)):i>Dy(e.year(),t,n)?(o=i-Dy(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function Dy(e,t,n){var r=b9(e,t,n),i=b9(e+1,t,n);return(iF(e)-r+i)/7}ai("w",["ww",2],"wo","week");ai("W",["WW",2],"Wo","isoWeek");Tr("w",ll,kD);Tr("ww",ll,vh);Tr("W",ll,kD);Tr("WW",ll,vh);iB(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Zo(e)});function zwn(e){return NW(e,this._week.dow,this._week.doy).week}var Twn={dow:0,doy:6};function Ewn(){return this._week.dow}function Rwn(){return this._week.doy}function Iwn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Pwn(e){var t=NW(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ai("d",0,"do","day");ai("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ai("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ai("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ai("e",0,0,"weekday");ai("E",0,0,"isoWeekday");Tr("d",ll);Tr("e",ll);Tr("E",ll);Tr("dd",function(e,t){return t.weekdaysMinRegex(e)});Tr("ddd",function(e,t){return t.weekdaysShortRegex(e)});Tr("dddd",function(e,t){return t.weekdaysRegex(e)});iB(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:bo(n).invalidWeekday=e});iB(["d","e","E"],function(e,t,n,r){t[r]=Zo(e)});function Dwn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function kwn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function HCe(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Lwn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Oct="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_wn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nwn=rB,Fwn=rB,Wwn=rB;function qwn(e,t){var n=Cm(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?HCe(n,this._week.dow):e?n[e.day()]:n}function Bwn(e){return e===!0?HCe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jwn(e){return e===!0?HCe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Hwn(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Xb([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=yc.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=yc.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=yc.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=yc.call(this._weekdaysParse,a),i!==-1||(i=yc.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=yc.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=yc.call(this._shortWeekdaysParse,a),i!==-1||(i=yc.call(this._weekdaysParse,a),i!==-1)?i:(i=yc.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=yc.call(this._minWeekdaysParse,a),i!==-1||(i=yc.call(this._weekdaysParse,a),i!==-1)?i:(i=yc.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Vwn(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Hwn.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Xb([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Gwn(e){if(!this.isValid())return e!=null?this:NaN;var t=LW(this,"Day");return e!=null?(e=Dwn(e,this.localeData()),this.add(e-t,"d")):t}function $wn(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Uwn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=kwn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Xwn(e){return this._weekdaysParseExact?(Ta(this,"_weekdaysRegex")||VCe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ta(this,"_weekdaysRegex")||(this._weekdaysRegex=Nwn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ywn(e){return this._weekdaysParseExact?(Ta(this,"_weekdaysRegex")||VCe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ta(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fwn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kwn(e){return this._weekdaysParseExact?(Ta(this,"_weekdaysRegex")||VCe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ta(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wwn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function VCe(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],i=[],o,a,s,l,c;for(o=0;o<7;o++)a=Xb([2e3,1]).day(o),s=Py(this.weekdaysMin(a,"")),l=Py(this.weekdaysShort(a,"")),c=Py(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function GCe(){return this.hours()%12||12}function Qwn(){return this.hours()||24}ai("H",["HH",2],0,"hour");ai("h",["hh",2],0,GCe);ai("k",["kk",2],0,Qwn);ai("hmm",0,0,function(){return""+GCe.apply(this)+kb(this.minutes(),2)});ai("hmmss",0,0,function(){return""+GCe.apply(this)+kb(this.minutes(),2)+kb(this.seconds(),2)});ai("Hmm",0,0,function(){return""+this.hours()+kb(this.minutes(),2)});ai("Hmmss",0,0,function(){return""+this.hours()+kb(this.minutes(),2)+kb(this.seconds(),2)});function zct(e,t){ai(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zct("a",!0);zct("A",!1);function Tct(e,t){return t._meridiemParse}Tr("a",Tct);Tr("A",Tct);Tr("H",ll,BCe);Tr("h",ll,kD);Tr("k",ll,kD);Tr("HH",ll,vh);Tr("hh",ll,vh);Tr("kk",ll,vh);Tr("hmm",mct);Tr("hmmss",vct);Tr("Hmm",mct);Tr("Hmmss",vct);Cs(["H","HH"],Cu);Cs(["k","kk"],function(e,t,n){var r=Zo(e);t[Cu]=r===24?0:r});Cs(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Cs(["h","hh"],function(e,t,n){t[Cu]=Zo(e),bo(n).bigHour=!0});Cs("hmm",function(e,t,n){var r=e.length-2;t[Cu]=Zo(e.substr(0,r)),t[Jg]=Zo(e.substr(r)),bo(n).bigHour=!0});Cs("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Cu]=Zo(e.substr(0,r)),t[Jg]=Zo(e.substr(r,2)),t[My]=Zo(e.substr(i)),bo(n).bigHour=!0});Cs("Hmm",function(e,t,n){var r=e.length-2;t[Cu]=Zo(e.substr(0,r)),t[Jg]=Zo(e.substr(r))});Cs("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Cu]=Zo(e.substr(0,r)),t[Jg]=Zo(e.substr(r,2)),t[My]=Zo(e.substr(i))});function Zwn(e){return(e+"").toLowerCase().charAt(0)==="p"}var Jwn=/[ap]\.?m?\.?/i,eSn=LD("Hours",!0);function tSn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Ect={calendar:Hxn,longDateFormat:Uxn,invalidDate:Yxn,ordinal:Qxn,dayOfMonthOrdinalParse:Zxn,relativeTime:ewn,months:mwn,monthsShort:Mct,week:Twn,weekdays:Lwn,weekdaysMin:_wn,weekdaysShort:Oct,meridiemParse:Jwn},vl={},M4={},FW;function nSn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function mke(e){return e&&e.toLowerCase().replace("_","-")}function rSn(e){for(var t=0,n,r,i,o;t<e.length;){for(o=mke(e[t]).split("-"),n=o.length,r=mke(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=tZ(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&nSn(o,r)>=n-1)break;n--}t++}return FW}function iSn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function tZ(e){var t=null,n;if(vl[e]===void 0&&typeof module<"u"&&module&&module.exports&&iSn(e))try{t=FW._abbr,n=require,n("./locale/"+e),Ix(t)}catch{vl[e]=null}return vl[e]}function Ix(e,t){var n;return e&&(j1(t)?n=bM(e):n=$Ce(e,t),n?FW=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),FW._abbr}function $Ce(e,t){if(t!==null){var n,r=Ect;if(t.abbr=e,vl[e]!=null)pct("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=vl[e]._config;else if(t.parentLocale!=null)if(vl[t.parentLocale]!=null)r=vl[t.parentLocale]._config;else if(n=tZ(t.parentLocale),n!=null)r=n._config;else return M4[t.parentLocale]||(M4[t.parentLocale]=[]),M4[t.parentLocale].push({name:e,config:t}),null;return vl[e]=new _Ce(Lfe(r,t)),M4[e]&&M4[e].forEach(function(i){$Ce(i.name,i.config)}),Ix(e),vl[e]}else return delete vl[e],null}function oSn(e,t){if(t!=null){var n,r,i=Ect;vl[e]!=null&&vl[e].parentLocale!=null?vl[e].set(Lfe(vl[e]._config,t)):(r=tZ(e),r!=null&&(i=r._config),t=Lfe(i,t),r==null&&(t.abbr=e),n=new _Ce(t),n.parentLocale=vl[e],vl[e]=n),Ix(e)}else vl[e]!=null&&(vl[e].parentLocale!=null?(vl[e]=vl[e].parentLocale,e===Ix()&&Ix(e)):vl[e]!=null&&delete vl[e]);return vl[e]}function bM(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return FW;if(!Cm(e)){if(t=tZ(e),t)return t;e=[e]}return rSn(e)}function aSn(){return _fe(vl)}function UCe(e){var t,n=e._a;return n&&bo(e).overflow===-2&&(t=n[yy]<0||n[yy]>11?yy:n[Vv]<1||n[Vv]>jCe(n[b0],n[yy])?Vv:n[Cu]<0||n[Cu]>24||n[Cu]===24&&(n[Jg]!==0||n[My]!==0||n[cO]!==0)?Cu:n[Jg]<0||n[Jg]>59?Jg:n[My]<0||n[My]>59?My:n[cO]<0||n[cO]>999?cO:-1,bo(e)._overflowDayOfYear&&(t<b0||t>Vv)&&(t=Vv),bo(e)._overflowWeeks&&t===-1&&(t=uwn),bo(e)._overflowWeekday&&t===-1&&(t=dwn),bo(e).overflow=t),e}var sSn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lSn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cSn=/Z|[+-]\d\d(?::?\d\d)?/,A8=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Wie=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],uSn=/^\/?Date\((-?\d+)/i,dSn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,pSn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Rct(e){var t,n,r=e._i,i=sSn.exec(r)||lSn.exec(r),o,a,s,l,c=A8.length,u=Wie.length;if(i){for(bo(e).iso=!0,t=0,n=c;t<n;t++)if(A8[t][1].exec(i[1])){a=A8[t][0],o=A8[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(Wie[t][1].exec(i[3])){s=(i[2]||" ")+Wie[t][0];break}if(s==null){e._isValid=!1;return}}if(!o&&s!=null){e._isValid=!1;return}if(i[4])if(cSn.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),YCe(e)}else e._isValid=!1}function hSn(e,t,n,r,i,o){var a=[fSn(e),Mct.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function fSn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function gSn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mSn(e,t,n){if(e){var r=Oct.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return bo(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function vSn(e,t,n){if(e)return pSn[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function Ict(e){var t=dSn.exec(gSn(e._i)),n;if(t){if(n=hSn(t[4],t[3],t[2],t[5],t[6],t[7]),!mSn(t[1],n,e))return;e._a=n,e._tzm=vSn(t[8],t[9],t[10]),e._d=_W.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),bo(e).rfc2822=!0}else e._isValid=!1}function bSn(e){var t=uSn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Rct(e),e._isValid===!1)delete e._isValid;else return;if(Ict(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:mt.createFromInputFallback(e)}mt.createFromInputFallback=Xf("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function CR(e,t,n){return e??t??n}function ySn(e){var t=new Date(mt.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function XCe(e){var t,n,r=[],i,o,a;if(!e._d){for(i=ySn(e),e._w&&e._a[Vv]==null&&e._a[yy]==null&&MSn(e),e._dayOfYear!=null&&(a=CR(e._a[b0],i[b0]),(e._dayOfYear>iF(a)||e._dayOfYear===0)&&(bo(e)._overflowDayOfYear=!0),n=_W(a,0,e._dayOfYear),e._a[yy]=n.getUTCMonth(),e._a[Vv]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Cu]===24&&e._a[Jg]===0&&e._a[My]===0&&e._a[cO]===0&&(e._nextDay=!0,e._a[Cu]=0),e._d=(e._useUTC?_W:Own).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Cu]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(bo(e).weekdayMismatch=!0)}}function MSn(e){var t,n,r,i,o,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=CR(t.GG,e._a[b0],NW(al(),1,4).year),r=CR(t.W,1),i=CR(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=NW(al(),o,a),n=CR(t.gg,e._a[b0],c.year),r=CR(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Dy(n,o,a)?bo(e)._overflowWeeks=!0:l!=null?bo(e)._overflowWeekday=!0:(s=Act(n,r,i,o,a),e._a[b0]=s.year,e._dayOfYear=s.dayOfYear)}mt.ISO_8601=function(){};mt.RFC_2822=function(){};function YCe(e){if(e._f===mt.ISO_8601){Rct(e);return}if(e._f===mt.RFC_2822){Ict(e);return}e._a=[],bo(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=hct(e._f,e._locale).match(NCe)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(t.match(swn(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&bo(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),mI[o]?(r?bo(e).empty=!1:bo(e).unusedTokens.push(o),cwn(o,r,e)):e._strict&&!r&&bo(e).unusedTokens.push(o);bo(e).charsLeftOver=s-l,t.length>0&&bo(e).unusedInput.push(t),e._a[Cu]<=12&&bo(e).bigHour===!0&&e._a[Cu]>0&&(bo(e).bigHour=void 0),bo(e).parsedDateParts=e._a.slice(0),bo(e).meridiem=e._meridiem,e._a[Cu]=CSn(e._locale,e._a[Cu],e._meridiem),c=bo(e).era,c!==null&&(e._a[b0]=e._locale.erasConvertYear(c,e._a[b0])),XCe(e),UCe(e)}function CSn(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function xSn(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){bo(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,a=!1,t=LCe({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],YCe(t),kCe(t)&&(a=!0),o+=bo(t).charsLeftOver,o+=bo(t).unusedTokens.length*10,bo(t).score=o,s?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(s=!0));ax(e,n||t)}function wSn(e){if(!e._d){var t=FCe(e._i),n=t.day===void 0?t.date:t.day;e._a=uct([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),XCe(e)}}function SSn(e){var t=new nB(UCe(Pct(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Pct(e){var t=e._i,n=e._f;return e._locale=e._locale||bM(e._l),t===null||n===void 0&&t===""?XQ({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),xm(t)?new nB(UCe(t)):(tB(t)?e._d=t:Cm(n)?xSn(e):n?YCe(e):ASn(e),kCe(e)||(e._d=null),e))}function ASn(e){var t=e._i;j1(t)?e._d=new Date(mt.now()):tB(t)?e._d=new Date(t.valueOf()):typeof t=="string"?bSn(e):Cm(t)?(e._a=uct(t.slice(0),function(n){return parseInt(n,10)}),XCe(e)):HO(t)?wSn(e):Qy(t)?e._d=new Date(t):mt.createFromInputFallback(e)}function Dct(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(HO(e)&&DCe(e)||Cm(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,SSn(o)}function al(e,t,n,r){return Dct(e,t,n,r,!1)}var OSn=Xf("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=al.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:XQ()}),zSn=Xf("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=al.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:XQ()});function kct(e,t){var n,r;if(t.length===1&&Cm(t[0])&&(t=t[0]),!t.length)return al();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function TSn(){var e=[].slice.call(arguments,0);return kct("isBefore",e)}function ESn(){var e=[].slice.call(arguments,0);return kct("isAfter",e)}var RSn=function(){return Date.now?Date.now():+new Date},C4=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ISn(e){var t,n=!1,r,i=C4.length;for(t in e)if(Ta(e,t)&&!(yc.call(C4,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[C4[r]]){if(n)return!1;parseFloat(e[C4[r]])!==Zo(e[C4[r]])&&(n=!0)}return!0}function PSn(){return this._isValid}function DSn(){return Dm(NaN)}function nZ(e){var t=FCe(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ISn(t),this._milliseconds=+u+c*1e3+l*6e4+s*1e3*60*60,this._days=+a+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=bM(),this._bubble()}function g7(e){return e instanceof nZ}function Ffe(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function kSn(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)Zo(e[a])!==Zo(t[a])&&o++;return o+i}function Lct(e,t){ai(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+kb(~~(n/60),2)+t+kb(~~n%60,2)})}Lct("Z",":");Lct("ZZ","");Tr("Z",JQ);Tr("ZZ",JQ);Cs(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=KCe(JQ,e)});var LSn=/([\+\-]|\d\d)/gi;function KCe(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(LSn)||["-",0,0],o=+(i[1]*60)+Zo(i[2]),o===0?0:i[0]==="+"?o:-o)}function QCe(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(xm(e)||tB(e)?e.valueOf():al(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),mt.updateOffset(n,!1),n):al(e).local()}function Wfe(e){return-Math.round(e._d.getTimezoneOffset())}mt.updateOffset=function(){};function _Sn(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=KCe(JQ,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Wfe(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Fct(this,Dm(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,mt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Wfe(this)}function NSn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function FSn(e){return this.utcOffset(0,e)}function WSn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wfe(this),"m")),this}function qSn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=KCe(own,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function BSn(e){return this.isValid()?(e=e?al(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function jSn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function HSn(){if(!j1(this._isDSTShifted))return this._isDSTShifted;var e={},t;return LCe(e,this),e=Pct(e),e._a?(t=e._isUTC?Xb(e._a):al(e._a),this._isDSTShifted=this.isValid()&&kSn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function VSn(){return this.isValid()?!this._isUTC:!1}function GSn(){return this.isValid()?this._isUTC:!1}function _ct(){return this.isValid()?this._isUTC&&this._offset===0:!1}var $Sn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,USn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dm(e,t){var n=e,r=null,i,o,a;return g7(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Qy(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=$Sn.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Zo(r[Vv])*i,h:Zo(r[Cu])*i,m:Zo(r[Jg])*i,s:Zo(r[My])*i,ms:Zo(Ffe(r[cO]*1e3))*i}):(r=USn.exec(e))?(i=r[1]==="-"?-1:1,n={y:VS(r[2],i),M:VS(r[3],i),w:VS(r[4],i),d:VS(r[5],i),h:VS(r[6],i),m:VS(r[7],i),s:VS(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=XSn(al(n.from),al(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new nZ(n),g7(e)&&Ta(e,"_locale")&&(o._locale=e._locale),g7(e)&&Ta(e,"_isValid")&&(o._isValid=e._isValid),o}Dm.fn=nZ.prototype;Dm.invalid=DSn;function VS(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function vke(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function XSn(e,t){var n;return e.isValid()&&t.isValid()?(t=QCe(t,e),e.isBefore(t)?n=vke(e,t):(n=vke(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Nct(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(pct(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Dm(n,r),Fct(this,i,e),this}}function Fct(e,t,n,r){var i=t._milliseconds,o=Ffe(t._days),a=Ffe(t._months);e.isValid()&&(r=r??!0,a&&xct(e,LW(e,"Month")+a*n),o&&yct(e,"Date",LW(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&mt.updateOffset(e,o||a))}var YSn=Nct(1,"add"),KSn=Nct(-1,"subtract");function Wct(e){return typeof e=="string"||e instanceof String}function QSn(e){return xm(e)||tB(e)||Wct(e)||Qy(e)||JSn(e)||ZSn(e)||e===null||e===void 0}function ZSn(e){var t=HO(e)&&!DCe(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;i<a;i+=1)o=r[i],n=n||Ta(e,o);return t&&n}function JSn(e){var t=Cm(e),n=!1;return t&&(n=e.filter(function(r){return!Qy(r)&&Wct(e)}).length===0),t&&n}function eAn(e){var t=HO(e)&&!DCe(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||Ta(e,o);return t&&n}function tAn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function nAn(e,t){arguments.length===1&&(arguments[0]?QSn(arguments[0])?(e=arguments[0],t=void 0):eAn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||al(),r=QCe(n,this).startOf("day"),i=mt.calendarFormat(this,r)||"sameElse",o=t&&(Yb(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,al(n)))}function rAn(){return new nB(this)}function iAn(e,t){var n=xm(e)?e:al(e);return this.isValid()&&n.isValid()?(t=Yf(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function oAn(e,t){var n=xm(e)?e:al(e);return this.isValid()&&n.isValid()?(t=Yf(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function aAn(e,t,n,r){var i=xm(e)?e:al(e),o=xm(t)?t:al(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function sAn(e,t){var n=xm(e)?e:al(e),r;return this.isValid()&&n.isValid()?(t=Yf(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function lAn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function cAn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function uAn(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=QCe(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Yf(t),t){case"year":o=m7(this,r)/12;break;case"month":o=m7(this,r);break;case"quarter":o=m7(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:of(o)}function m7(e,t){if(e.date()<t.date())return-m7(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}mt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";mt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function dAn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function pAn(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?f7(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Yb(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",f7(n,"Z")):f7(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hAn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function fAn(e){e||(e=this.isUtc()?mt.defaultFormatUtc:mt.defaultFormat);var t=f7(this,e);return this.localeData().postformat(t)}function gAn(e,t){return this.isValid()&&(xm(e)&&e.isValid()||al(e).isValid())?Dm({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mAn(e){return this.from(al(),e)}function vAn(e,t){return this.isValid()&&(xm(e)&&e.isValid()||al(e).isValid())?Dm({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bAn(e){return this.to(al(),e)}function qct(e){var t;return e===void 0?this._locale._abbr:(t=bM(e),t!=null&&(this._locale=t),this)}var Bct=Xf("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function jct(){return this._locale}var y9=1e3,vI=60*y9,M9=60*vI,Hct=(365*400+97)*24*M9;function bI(e,t){return(e%t+t)%t}function Vct(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Hct:new Date(e,t,n).valueOf()}function Gct(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Hct:Date.UTC(e,t,n)}function yAn(e){var t,n;if(e=Yf(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Gct:Vct,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=bI(t+(this._isUTC?0:this.utcOffset()*vI),M9);break;case"minute":t=this._d.valueOf(),t-=bI(t,vI);break;case"second":t=this._d.valueOf(),t-=bI(t,y9);break}return this._d.setTime(t),mt.updateOffset(this,!0),this}function MAn(e){var t,n;if(e=Yf(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Gct:Vct,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=M9-bI(t+(this._isUTC?0:this.utcOffset()*vI),M9)-1;break;case"minute":t=this._d.valueOf(),t+=vI-bI(t,vI)-1;break;case"second":t=this._d.valueOf(),t+=y9-bI(t,y9)-1;break}return this._d.setTime(t),mt.updateOffset(this,!0),this}function CAn(){return this._d.valueOf()-(this._offset||0)*6e4}function xAn(){return Math.floor(this.valueOf()/1e3)}function wAn(){return new Date(this.valueOf())}function SAn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function AAn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function OAn(){return this.isValid()?this.toISOString():null}function zAn(){return kCe(this)}function TAn(){return ax({},bo(this))}function EAn(){return bo(this).overflow}function RAn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ai("N",0,0,"eraAbbr");ai("NN",0,0,"eraAbbr");ai("NNN",0,0,"eraAbbr");ai("NNNN",0,0,"eraName");ai("NNNNN",0,0,"eraNarrow");ai("y",["y",1],"yo","eraYear");ai("y",["yy",2],0,"eraYear");ai("y",["yyy",3],0,"eraYear");ai("y",["yyyy",4],0,"eraYear");Tr("N",ZCe);Tr("NN",ZCe);Tr("NNN",ZCe);Tr("NNNN",BAn);Tr("NNNNN",jAn);Cs(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?bo(n).era=i:bo(n).invalidEra=e});Tr("y",DD);Tr("yy",DD);Tr("yyy",DD);Tr("yyyy",DD);Tr("yo",HAn);Cs(["y","yy","yyy","yyyy"],b0);Cs(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[b0]=n._locale.eraYearOrdinalParse(e,i):t[b0]=parseInt(e,10)});function IAn(e,t){var n,r,i,o=this._eras||bM("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=mt(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=mt(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function PAn(e,t,n){var r,i,o=this.eras(),a,s,l;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(a=o[r].name.toUpperCase(),s=o[r].abbr.toUpperCase(),l=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return o[r];break;case"NNNN":if(a===e)return o[r];break;case"NNNNN":if(l===e)return o[r];break}else if([a,s,l].indexOf(e)>=0)return o[r]}function DAn(e,t){var n=e.since<=e.until?1:-1;return t===void 0?mt(e.since).year():mt(e.since).year()+(t-e.offset)*n}function kAn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function LAn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function _An(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function NAn(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-mt(i[e].since).year())*n+i[e].offset;return this.year()}function FAn(e){return Ta(this,"_erasNameRegex")||JCe.call(this),e?this._erasNameRegex:this._erasRegex}function WAn(e){return Ta(this,"_erasAbbrRegex")||JCe.call(this),e?this._erasAbbrRegex:this._erasRegex}function qAn(e){return Ta(this,"_erasNarrowRegex")||JCe.call(this),e?this._erasNarrowRegex:this._erasRegex}function ZCe(e,t){return t.erasAbbrRegex(e)}function BAn(e,t){return t.erasNameRegex(e)}function jAn(e,t){return t.erasNarrowRegex(e)}function HAn(e,t){return t._eraYearOrdinalRegex||DD}function JCe(){var e=[],t=[],n=[],r=[],i,o,a,s,l,c=this.eras();for(i=0,o=c.length;i<o;++i)a=Py(c[i].name),s=Py(c[i].abbr),l=Py(c[i].narrow),t.push(a),e.push(s),n.push(l),r.push(a),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ai(0,["gg",2],0,function(){return this.weekYear()%100});ai(0,["GG",2],0,function(){return this.isoWeekYear()%100});function rZ(e,t){ai(0,[e,e.length],0,t)}rZ("gggg","weekYear");rZ("ggggg","weekYear");rZ("GGGG","isoWeekYear");rZ("GGGGG","isoWeekYear");Tr("G",ZQ);Tr("g",ZQ);Tr("GG",ll,vh);Tr("gg",ll,vh);Tr("GGGG",qCe,WCe);Tr("gggg",qCe,WCe);Tr("GGGGG",QQ,YQ);Tr("ggggg",QQ,YQ);iB(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Zo(e)});iB(["gg","GG"],function(e,t,n,r){t[r]=mt.parseTwoDigitYear(e)});function VAn(e){return $ct.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function GAn(e){return $ct.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $An(){return Dy(this.year(),1,4)}function UAn(){return Dy(this.isoWeekYear(),1,4)}function XAn(){var e=this.localeData()._week;return Dy(this.year(),e.dow,e.doy)}function YAn(){var e=this.localeData()._week;return Dy(this.weekYear(),e.dow,e.doy)}function $ct(e,t,n,r,i){var o;return e==null?NW(this,r,i).year:(o=Dy(e,r,i),t>o&&(t=o),KAn.call(this,e,t,n,r,i))}function KAn(e,t,n,r,i){var o=Act(e,t,n,r,i),a=_W(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}ai("Q",0,"Qo","quarter");Tr("Q",fct);Cs("Q",function(e,t){t[yy]=(Zo(e)-1)*3});function QAn(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ai("D",["DD",2],"Do","date");Tr("D",ll,kD);Tr("DD",ll,vh);Tr("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Cs(["D","DD"],Vv);Cs("Do",function(e,t){t[Vv]=Zo(e.match(ll)[0])});var Uct=LD("Date",!0);ai("DDD",["DDDD",3],"DDDo","dayOfYear");Tr("DDD",KQ);Tr("DDDD",gct);Cs(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Zo(e)});function ZAn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ai("m",["mm",2],0,"minute");Tr("m",ll,BCe);Tr("mm",ll,vh);Cs(["m","mm"],Jg);var JAn=LD("Minutes",!1);ai("s",["ss",2],0,"second");Tr("s",ll,BCe);Tr("ss",ll,vh);Cs(["s","ss"],My);var eOn=LD("Seconds",!1);ai("S",0,0,function(){return~~(this.millisecond()/100)});ai(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ai(0,["SSS",3],0,"millisecond");ai(0,["SSSS",4],0,function(){return this.millisecond()*10});ai(0,["SSSSS",5],0,function(){return this.millisecond()*100});ai(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ai(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ai(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ai(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Tr("S",KQ,fct);Tr("SS",KQ,vh);Tr("SSS",KQ,gct);var sx,Xct;for(sx="SSSS";sx.length<=9;sx+="S")Tr(sx,DD);function tOn(e,t){t[cO]=Zo(("0."+e)*1e3)}for(sx="S";sx.length<=9;sx+="S")Cs(sx,tOn);Xct=LD("Milliseconds",!1);ai("z",0,0,"zoneAbbr");ai("zz",0,0,"zoneName");function nOn(){return this._isUTC?"UTC":""}function rOn(){return this._isUTC?"Coordinated Universal Time":""}var In=nB.prototype;In.add=YSn;In.calendar=nAn;In.clone=rAn;In.diff=uAn;In.endOf=MAn;In.format=fAn;In.from=gAn;In.fromNow=mAn;In.to=vAn;In.toNow=bAn;In.get=hwn;In.invalidAt=EAn;In.isAfter=iAn;In.isBefore=oAn;In.isBetween=aAn;In.isSame=sAn;In.isSameOrAfter=lAn;In.isSameOrBefore=cAn;In.isValid=zAn;In.lang=Bct;In.locale=qct;In.localeData=jct;In.max=zSn;In.min=OSn;In.parsingFlags=TAn;In.set=fwn;In.startOf=yAn;In.subtract=KSn;In.toArray=SAn;In.toObject=AAn;In.toDate=wAn;In.toISOString=pAn;In.inspect=hAn;typeof Symbol<"u"&&Symbol.for!=null&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});In.toJSON=OAn;In.toString=dAn;In.unix=xAn;In.valueOf=CAn;In.creationData=RAn;In.eraName=kAn;In.eraNarrow=LAn;In.eraAbbr=_An;In.eraYear=NAn;In.year=bct;In.isLeapYear=pwn;In.weekYear=VAn;In.isoWeekYear=GAn;In.quarter=In.quarters=QAn;In.month=wct;In.daysInMonth=wwn;In.week=In.weeks=Iwn;In.isoWeek=In.isoWeeks=Pwn;In.weeksInYear=XAn;In.weeksInWeekYear=YAn;In.isoWeeksInYear=$An;In.isoWeeksInISOWeekYear=UAn;In.date=Uct;In.day=In.days=Gwn;In.weekday=$wn;In.isoWeekday=Uwn;In.dayOfYear=ZAn;In.hour=In.hours=eSn;In.minute=In.minutes=JAn;In.second=In.seconds=eOn;In.millisecond=In.milliseconds=Xct;In.utcOffset=_Sn;In.utc=FSn;In.local=WSn;In.parseZone=qSn;In.hasAlignedHourOffset=BSn;In.isDST=jSn;In.isLocal=VSn;In.isUtcOffset=GSn;In.isUtc=_ct;In.isUTC=_ct;In.zoneAbbr=nOn;In.zoneName=rOn;In.dates=Xf("dates accessor is deprecated. Use date instead.",Uct);In.months=Xf("months accessor is deprecated. Use month instead",wct);In.years=Xf("years accessor is deprecated. Use year instead",bct);In.zone=Xf("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",NSn);In.isDSTShifted=Xf("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",HSn);function iOn(e){return al(e*1e3)}function oOn(){return al.apply(null,arguments).parseZone()}function Yct(e){return e}var Da=_Ce.prototype;Da.calendar=Vxn;Da.longDateFormat=Xxn;Da.invalidDate=Kxn;Da.ordinal=Jxn;Da.preparse=Yct;Da.postformat=Yct;Da.relativeTime=twn;Da.pastFuture=nwn;Da.set=jxn;Da.eras=IAn;Da.erasParse=PAn;Da.erasConvertYear=DAn;Da.erasAbbrRegex=WAn;Da.erasNameRegex=FAn;Da.erasNarrowRegex=qAn;Da.months=ywn;Da.monthsShort=Mwn;Da.monthsParse=xwn;Da.monthsRegex=Awn;Da.monthsShortRegex=Swn;Da.week=zwn;Da.firstDayOfYear=Rwn;Da.firstDayOfWeek=Ewn;Da.weekdays=qwn;Da.weekdaysMin=jwn;Da.weekdaysShort=Bwn;Da.weekdaysParse=Vwn;Da.weekdaysRegex=Xwn;Da.weekdaysShortRegex=Ywn;Da.weekdaysMinRegex=Kwn;Da.isPM=Zwn;Da.meridiem=tSn;function C9(e,t,n,r){var i=bM(),o=Xb().set(r,t);return i[n](o,e)}function Kct(e,t,n){if(Qy(e)&&(t=e,e=void 0),e=e||"",t!=null)return C9(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=C9(e,r,n,"month");return i}function exe(e,t,n,r){typeof e=="boolean"?(Qy(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Qy(t)&&(n=t,t=void 0),t=t||"");var i=bM(),o=e?i._week.dow:0,a,s=[];if(n!=null)return C9(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=C9(t,(a+o)%7,r,"day");return s}function aOn(e,t){return Kct(e,t,"months")}function sOn(e,t){return Kct(e,t,"monthsShort")}function lOn(e,t,n){return exe(e,t,n,"weekdays")}function cOn(e,t,n){return exe(e,t,n,"weekdaysShort")}function uOn(e,t,n){return exe(e,t,n,"weekdaysMin")}Ix("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Zo(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});mt.lang=Xf("moment.lang is deprecated. Use moment.locale instead.",Ix);mt.langData=Xf("moment.langData is deprecated. Use moment.localeData instead.",bM);var B2=Math.abs;function dOn(){var e=this._data;return this._milliseconds=B2(this._milliseconds),this._days=B2(this._days),this._months=B2(this._months),e.milliseconds=B2(e.milliseconds),e.seconds=B2(e.seconds),e.minutes=B2(e.minutes),e.hours=B2(e.hours),e.months=B2(e.months),e.years=B2(e.years),this}function Qct(e,t,n,r){var i=Dm(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function pOn(e,t){return Qct(this,e,t,1)}function hOn(e,t){return Qct(this,e,t,-1)}function bke(e){return e<0?Math.floor(e):Math.ceil(e)}function fOn(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=bke(qfe(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=of(e/1e3),r.seconds=i%60,o=of(i/60),r.minutes=o%60,a=of(o/60),r.hours=a%24,t+=of(a/24),l=of(Zct(t)),n+=l,t-=bke(qfe(l)),s=of(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Zct(e){return e*4800/146097}function qfe(e){return e*146097/4800}function gOn(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Yf(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Zct(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(qfe(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function yM(e){return function(){return this.as(e)}}var Jct=yM("ms"),mOn=yM("s"),vOn=yM("m"),bOn=yM("h"),yOn=yM("d"),MOn=yM("w"),COn=yM("M"),xOn=yM("Q"),wOn=yM("y"),SOn=Jct;function AOn(){return Dm(this)}function OOn(e){return e=Yf(e),this.isValid()?this[e+"s"]():NaN}function k3(e){return function(){return this.isValid()?this._data[e]:NaN}}var zOn=k3("milliseconds"),TOn=k3("seconds"),EOn=k3("minutes"),ROn=k3("hours"),IOn=k3("days"),POn=k3("months"),DOn=k3("years");function kOn(){return of(this.days()/7)}var ny=Math.round,NR={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function LOn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function _On(e,t,n,r){var i=Dm(e).abs(),o=ny(i.as("s")),a=ny(i.as("m")),s=ny(i.as("h")),l=ny(i.as("d")),c=ny(i.as("M")),u=ny(i.as("w")),d=ny(i.as("y")),p=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,LOn.apply(null,p)}function NOn(e){return e===void 0?ny:typeof e=="function"?(ny=e,!0):!1}function FOn(e,t){return NR[e]===void 0?!1:t===void 0?NR[e]:(NR[e]=t,e==="s"&&(NR.ss=t-1),!0)}function WOn(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=NR,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},NR,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=_On(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var qie=Math.abs;function TE(e){return(e>0)-(e<0)||+e}function iZ(){if(!this.isValid())return this.localeData().invalidDate();var e=qie(this._milliseconds)/1e3,t=qie(this._days),n=qie(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=of(e/60),i=of(r/60),e%=60,r%=60,o=of(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=TE(this._months)!==TE(s)?"-":"",u=TE(this._days)!==TE(s)?"-":"",d=TE(this._milliseconds)!==TE(s)?"-":"",l+"P"+(o?c+o+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var fa=nZ.prototype;fa.isValid=PSn;fa.abs=dOn;fa.add=pOn;fa.subtract=hOn;fa.as=gOn;fa.asMilliseconds=Jct;fa.asSeconds=mOn;fa.asMinutes=vOn;fa.asHours=bOn;fa.asDays=yOn;fa.asWeeks=MOn;fa.asMonths=COn;fa.asQuarters=xOn;fa.asYears=wOn;fa.valueOf=SOn;fa._bubble=fOn;fa.clone=AOn;fa.get=OOn;fa.milliseconds=zOn;fa.seconds=TOn;fa.minutes=EOn;fa.hours=ROn;fa.days=IOn;fa.weeks=kOn;fa.months=POn;fa.years=DOn;fa.humanize=WOn;fa.toISOString=iZ;fa.toString=iZ;fa.toJSON=iZ;fa.locale=qct;fa.localeData=jct;fa.toIsoString=Xf("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iZ);fa.lang=Bct;ai("X",0,0,"unix");ai("x",0,0,"valueOf");Tr("x",ZQ);Tr("X",awn);Cs("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Cs("x",function(e,t,n){n._d=new Date(Zo(e))});//! moment.js
mt.version="2.30.1";qxn(al);mt.fn=In;mt.min=TSn;mt.max=ESn;mt.now=RSn;mt.utc=Xb;mt.unix=iOn;mt.months=aOn;mt.isDate=tB;mt.locale=Ix;mt.invalid=XQ;mt.duration=Dm;mt.isMoment=xm;mt.weekdays=lOn;mt.parseZone=oOn;mt.localeData=bM;mt.isDuration=g7;mt.monthsShort=sOn;mt.weekdaysMin=uOn;mt.defineLocale=$Ce;mt.updateLocale=oSn;mt.locales=aSn;mt.weekdaysShort=cOn;mt.normalizeUnits=Yf;mt.relativeTimeRounding=NOn;mt.relativeTimeThreshold=FOn;mt.calendarFormat=tAn;mt.prototype=In;mt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const qOn=Object.freeze(Object.defineProperty({__proto__:null,default:mt},Symbol.toStringTag,{value:"Module"})),BOn=hK(qOn);var jOn=h7.exports,yke;function HOn(){return yke||(yke=1,(function(e){//! moment-timezone.js
//! version : 0.5.48
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(t,n){e.exports?e.exports=n(BOn):n(t.moment)})(jOn,function(t){t.version===void 0&&t.default&&(t=t.default);var n="0.5.48",r={},i={},o={},a={},s={},l;(!t||typeof t.version!="string")&&ee("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=t.version.split("."),u=+c[0],d=+c[1];(u<2||u===2&&d<6)&&ee("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com");function p(ne){return ne>96?ne-87:ne>64?ne-29:ne-48}function h(ne){var le=0,he=ne.split("."),be=he[0],me=he[1]||"",Me=1,Oe,de=0,ie=1;for(ne.charCodeAt(0)===45&&(le=1,ie=-1),le;le<be.length;le++)Oe=p(be.charCodeAt(le)),de=60*de+Oe;for(le=0;le<me.length;le++)Me=Me/60,Oe=p(me.charCodeAt(le)),de+=Oe*Me;return de*ie}function g(ne){for(var le=0;le<ne.length;le++)ne[le]=h(ne[le])}function m(ne,le){for(var he=0;he<le;he++)ne[he]=Math.round((ne[he-1]||0)+ne[he]*6e4);ne[le-1]=1/0}function b(ne,le){var he=[],be;for(be=0;be<le.length;be++)he[be]=ne[le[be]];return he}function y(ne){var le=ne.split("|"),he=le[2].split(" "),be=le[3].split(""),me=le[4].split(" ");return g(he),g(be),g(me),m(me,be.length),{name:le[0],abbrs:b(le[1].split(" "),be),offsets:b(he,be),untils:me,population:le[5]|0}}function M(ne){ne&&this._set(y(ne))}function C(ne,le){var he=le.length;if(ne<le[0])return 0;if(he>1&&le[he-1]===1/0&&ne>=le[he-2])return he-1;if(ne>=le[he-1])return-1;for(var be,me=0,Me=he-1;Me-me>1;)be=Math.floor((me+Me)/2),le[be]<=ne?me=be:Me=be;return Me}M.prototype={_set:function(ne){this.name=ne.name,this.abbrs=ne.abbrs,this.untils=ne.untils,this.offsets=ne.offsets,this.population=ne.population},_index:function(ne){var le=+ne,he=this.untils,be;if(be=C(le,he),be>=0)return be},countries:function(){var ne=this.name;return Object.keys(o).filter(function(le){return o[le].zones.indexOf(ne)!==-1})},parse:function(ne){var le=+ne,he=this.offsets,be=this.untils,me=be.length-1,Me,Oe,de,ie;for(ie=0;ie<me;ie++)if(Me=he[ie],Oe=he[ie+1],de=he[ie&&ie-1],Me<Oe&&se.moveAmbiguousForward?Me=Oe:Me>de&&se.moveInvalidForward&&(Me=de),le<be[ie]-Me*6e4)return he[ie];return he[me]},abbr:function(ne){return this.abbrs[this._index(ne)]},offset:function(ne){return ee("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(ne)]},utcOffset:function(ne){return this.offsets[this._index(ne)]}};function x(ne,le){this.name=ne,this.zones=le}function w(ne){var le=ne.toTimeString(),he=le.match(/\([a-z ]+\)/i);he&&he[0]?(he=he[0].match(/[A-Z]/g),he=he?he.join(""):void 0):(he=le.match(/[A-Z]{3,5}/g),he=he?he[0]:void 0),he==="GMT"&&(he=void 0),this.at=+ne,this.abbr=he,this.offset=ne.getTimezoneOffset()}function S(ne){this.zone=ne,this.offsetScore=0,this.abbrScore=0}S.prototype.scoreOffsetAt=function(ne){this.offsetScore+=Math.abs(this.zone.utcOffset(ne.at)-ne.offset),this.zone.abbr(ne.at).replace(/[^A-Z]/g,"")!==ne.abbr&&this.abbrScore++};function A(ne,le){for(var he,be;be=((le.at-ne.at)/12e4|0)*6e4;)he=new w(new Date(ne.at+be)),he.offset===ne.offset?ne=he:le=he;return ne}function z(){var ne=new Date().getFullYear()-2,le=new w(new Date(ne,0,1)),he=le.offset,be=[le],me,Me,Oe,de;for(de=1;de<48;de++)Oe=new Date(ne,de,1).getTimezoneOffset(),Oe!==he&&(Me=new w(new Date(ne,de,1)),me=A(le,Me),be.push(me),be.push(new w(new Date(me.at+6e4))),le=Me,he=Oe);for(de=0;de<4;de++)be.push(new w(new Date(ne+de,0,1))),be.push(new w(new Date(ne+de,6,1)));return be}function O(ne,le){return ne.offsetScore!==le.offsetScore?ne.offsetScore-le.offsetScore:ne.abbrScore!==le.abbrScore?ne.abbrScore-le.abbrScore:ne.zone.population!==le.zone.population?le.zone.population-ne.zone.population:le.zone.name.localeCompare(ne.zone.name)}function T(ne,le){var he,be;for(g(le),he=0;he<le.length;he++)be=le[he],s[be]=s[be]||{},s[be][ne]=!0}function R(ne){var le=ne.length,he={},be=[],me={},Me,Oe,de,ie;for(Me=0;Me<le;Me++)if(de=ne[Me].offset,!me.hasOwnProperty(de)){ie=s[de]||{};for(Oe in ie)ie.hasOwnProperty(Oe)&&(he[Oe]=!0);me[de]=!0}for(Me in he)he.hasOwnProperty(Me)&&be.push(a[Me]);return be}function P(){try{var ne=Intl.DateTimeFormat().resolvedOptions().timeZone;if(ne&&ne.length>3){var le=a[N(ne)];if(le)return le;ee("Moment Timezone found "+ne+" from the Intl api, but did not have that data loaded.")}}catch{}var he=z(),be=he.length,me=R(he),Me=[],Oe,de,ie;for(de=0;de<me.length;de++){for(Oe=new S(W(me[de])),ie=0;ie<be;ie++)Oe.scoreOffsetAt(he[ie]);Me.push(Oe)}return Me.sort(O),Me.length>0?Me[0].zone.name:void 0}function F(ne){return(!l||ne)&&(l=P()),l}function N(ne){return(ne||"").toLowerCase().replace(/\//g,"_")}function L(ne){var le,he,be,me;for(typeof ne=="string"&&(ne=[ne]),le=0;le<ne.length;le++)be=ne[le].split("|"),he=be[0],me=N(he),r[me]=ne[le],a[me]=he,T(me,be[2].split(" "))}function W(ne,le){ne=N(ne);var he=r[ne],be;return he instanceof M?he:typeof he=="string"?(he=new M(he),r[ne]=he,he):i[ne]&&le!==W&&(be=W(i[ne],W))?(he=r[ne]=new M,he._set(be),he.name=a[ne],he):null}function j(){var ne,le=[];for(ne in a)a.hasOwnProperty(ne)&&(r[ne]||r[i[ne]])&&a[ne]&&le.push(a[ne]);return le.sort()}function V(){return Object.keys(o)}function G(ne){var le,he,be,me;for(typeof ne=="string"&&(ne=[ne]),le=0;le<ne.length;le++)he=ne[le].split("|"),be=N(he[0]),me=N(he[1]),i[be]=me,a[be]=he[0],i[me]=be,a[me]=he[1]}function q(ne){var le,he,be,me;if(!(!ne||!ne.length))for(le=0;le<ne.length;le++)me=ne[le].split("|"),he=me[0].toUpperCase(),be=me[1].split(" "),o[he]=new x(he,be)}function $(ne){return ne=ne.toUpperCase(),o[ne]||null}function U(ne,le){if(ne=$(ne),!ne)return null;var he=ne.zones.sort();return le?he.map(function(be){var me=W(be);return{name:be,offset:me.utcOffset(new Date)}}):he}function X(ne){L(ne.zones),G(ne.links),q(ne.countries),se.dataVersion=ne.version}function Q(ne){return Q.didShowError||(Q.didShowError=!0,ee("moment.tz.zoneExists('"+ne+"') has been deprecated in favor of !moment.tz.zone('"+ne+"')")),!!W(ne)}function re(ne){var le=ne._f==="X"||ne._f==="x";return!!(ne._a&&ne._tzm===void 0&&!le)}function ee(ne){typeof console<"u"&&typeof console.error=="function"&&console.error(ne)}function se(ne){var le=Array.prototype.slice.call(arguments,0,-1),he=arguments[arguments.length-1],be=t.utc.apply(null,le),me;return!t.isMoment(ne)&&re(be)&&(me=W(he))&&be.add(me.parse(be),"minutes"),be.tz(he),be}se.version=n,se.dataVersion="",se._zones=r,se._links=i,se._names=a,se._countries=o,se.add=L,se.link=G,se.load=X,se.zone=W,se.zoneExists=Q,se.guess=F,se.names=j,se.Zone=M,se.unpack=y,se.unpackBase60=h,se.needsOffset=re,se.moveInvalidForward=!0,se.moveAmbiguousForward=!1,se.countries=V,se.zonesForCountry=U;var pe=t.fn;t.tz=se,t.defaultZone=null,t.updateOffset=function(ne,le){var he=t.defaultZone,be;if(ne._z===void 0&&(he&&re(ne)&&!ne._isUTC&&ne.isValid()&&(ne._d=t.utc(ne._a)._d,ne.utc().add(he.parse(ne),"minutes")),ne._z=he),ne._z)if(be=ne._z.utcOffset(ne),Math.abs(be)<16&&(be=be/60),ne.utcOffset!==void 0){var me=ne._z;ne.utcOffset(-be,le),ne._z=me}else ne.zone(be,le)},pe.tz=function(ne,le){if(ne){if(typeof ne!="string")throw new Error("Time zone name must be a string, got "+ne+" ["+typeof ne+"]");return this._z=W(ne),this._z?t.updateOffset(this,le):ee("Moment Timezone has no data for "+ne+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name};function te(ne){return function(){return this._z?this._z.abbr(this):ne.call(this)}}function ce(ne){return function(){return this._z=null,ne.apply(this,arguments)}}function oe(ne){return function(){return arguments.length>0&&(this._z=null),ne.apply(this,arguments)}}pe.zoneName=te(pe.zoneName),pe.zoneAbbr=te(pe.zoneAbbr),pe.utc=ce(pe.utc),pe.local=ce(pe.local),pe.utcOffset=oe(pe.utcOffset),t.tz.setDefault=function(ne){return(u<2||u===2&&d<9)&&ee("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=ne?W(ne):null,t};var ae=t.momentProperties;return Object.prototype.toString.call(ae)==="[object Array]"?(ae.push("_z"),ae.push("_a")):ae&&(ae._z=null),t})})(h7)),h7.exports}const VOn="2025b",GOn=JSON.parse('["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|LMT PMT WET WEST CET CEST|-c.c -9.l 0 -10 -10 -20|01232323232323232454542423234542324|-3bQ0c.c MDA2.P cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.i -20|01|-2sw2a.i|26e5","Africa/Cairo|LMT EET EEST|-25.9 -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBC5.9 1AQM5.9 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0 kSp0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|32e5","Africa/Ceuta|LMT WET WEST CET CEST|l.g 0 -10 -10 -20|0121212121212121212121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2M0M0 GdX0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|20e4","Africa/Johannesburg|LMT SAST SAST SAST|-1Q -1u -20 -30|0123232|-39EpQ qTcm 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|LMT MMT MMT GMT|H.8 H.8 I.u 0|0123|-3ygng.Q 1usM0 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT LMT GMT WAT|-q.U A.J 0 -10|01232|-3tooq.U 18aoq.U 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|LMT PMT CET CEST|-E.I -9.l -10 -20|01232323232323232323232323232323232|-3zO0E.I 1cBAv.n 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|LMT +0130 SAST SAST CAT WAT|-18.o -1u -20 -30 -20 -10|012324545454545454545454545454545454545454545454545454|-39Ep8.o qTbC.o 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|LMT LMT NST NWT NPT BST BDT AHST HST HDT|-cd.m bK.C b0 a0 a0 b0 a0 a0 a0 90|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVzf.p 1EX1d.m 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|LMT LMT AST AWT APT AHST AHDT YST AKST AKDT|-e0.o 9X.A a0 90 90 a0 90 90 90 80|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVxs.n 1EX20.o 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|LMT AST AWT APT|4o.p 40 30 30|01231|-2Qi7z.z 1IUbz.z 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|LMT CMT -04 -03 -02|3R.M 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343434343|-331U6.c 125cn pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|LMT CMT -04 -03 -02|4n.8 4g.M 40 30 20|012323232323232323232323232323232323232323234343434243432343|-331TA.Q 125bR.E pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|LMT CMT -04 -03 -02|4g.M 4g.M 40 30 20|012323232323232323232323232323232323232323234343434243434343|-331TH.c 125c0 pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|LMT CMT -04 -03 -02|4l.c 4g.M 40 30 20|0123232323232323232323232323232323232323232343434232434343|-331TC.M 125bT.A pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|LMT CMT -04 -03 -02|4r.o 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342343432343|-331Tw.A 125bN.o pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|LMT CMT -04 -03 -02|4z.g 4g.M 40 30 20|012323232323232323232323232323232323232323234343423232432343|-331To.I 125bF.w pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|LMT CMT -04 -03 -02|4A.Q 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343432343|-331Tn.8 125bD.U pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|LMT CMT -04 -03 -02|4l.E 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342434343|-331TC.k 125bT.8 pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|LMT CMT -04 -03 -02|4y.4 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342343432343|-331Tp.U 125bG.I pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|LMT CMT -04 -03 -02|4p.o 4g.M 40 30 20|0123232323232323232323232323232323232323232343434232323432323|-331Ty.A 125bP.o pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|LMT CMT -04 -03 -02|4k.Q 4g.M 40 30 20|01232323232323232323232323232323232323232323434343424343234343|-331TD.8 125bT.U pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|LMT CMT -04 -03 -02|4x.c 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343432343|-331Tq.M 125bH.A pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|LMT AMT -04 -03|3O.E 3O.E 40 30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-3eLw9.k 1FGo0 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0|28e5","America/Panama|LMT CMT EST|5i.8 5j.A 50|012|-3eLuF.Q Iy01.s|15e5","America/Bahia_Banderas|LMT MST CST MDT CDT|71 70 60 60 50|01213121313131313131313131313131313142424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|LMT BMT -05 -04|4U.g 4U.g 50 40|01232|-3sTv3.I 1eIo0 38yo3.I 1PX0|90e5","America/Boise|LMT PST PDT MST MWT MPT MDT|7I.N 80 70 70 60 60 60|01212134536363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-3tFE0 1nEe0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDT CST CDT EST|0 70 60 60 60 60 50 50|012314141414141414141414141414141414141414141414141414141414567541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-21Jc0 RO90 8x20 ix0 14HB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST CDT EDT|5L.4 60 50 50 40|01213132431313131313131313131313131313131312|-1UQG0 2q3C0 2tx0 wgP0 1lb0 14p0 1lb0 14o0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|LMT CMT -0430 -04|4r.I 4r.E 4u 40|012323|-3eLvw.g ROnX.U 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|LMT CST CDT EST CWT CPT|5O.A 60 50 50 50 50|012121212121212121212121212121212121213121212121214512121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST MDT CDT|74.k 70 60 60 50|0121312424231313131313131313131313131313131313131313131313132|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|81e4","America/Ciudad_Juarez|LMT MST CST MDT CDT|75.U 70 60 60 50|01213124242313131313131313131313131313131313131313131313131321313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 cm0 EP0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Costa_Rica|LMT SJMT CST CDT|5A.d 5A.d 60 50|01232323232|-3eLun.L 1fyo0 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Coyhaique|LMT SMT -05 -04 -03|4M.g 4G.J 50 40 30|012131323232323232323434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvb.I MJbS.t fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0|","America/Phoenix|LMT MST MDT MWT|7s.i 70 60 60|012121313121|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|LMT PST PDT PWT PPT MST|80.U 80 70 70 70 70|01213412121212121212121212121212121212121212121212121212125|-3tofX.4 1nspX.4 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|LMT YST YDT YWT YPT YDDT PST PDT MST|9h.E 90 80 80 80 70 80 70 70|0121213415167676767676767676767676767676767676767676767676767676767676767676767676767676767678|-2MSeG.k GWpG.k 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|LMT MST MDT MWT MPT|6X.U 70 60 60 60|012121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFF0 1nEe0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 4Q00 8mp0 8lz0 SN0 1cL0 pHB0 83r0 AU0 5MN0 1Rz0 38N0 Wn0 1qP0 11z0 1o10 11z0 3NA0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|LMT PST PDT PWT PPT MST|8a.L 80 70 70 70 70|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121215|-3tofN.d 1nspN.d 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|LMT CST CDT CWT CPT EST EDT|5I.C 60 50 50 50 50 40|0121212134121212121212121212151565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02 -01|3q.U 30 20 10|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 2so0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|LMT NST NDT NST NDT NWT NPT AST ADT ADDT|41.E 3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|0121343434343434356343434343434343434343434343434343434343437878787878787878787878787878787878787878787879787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-3tojW.k 1nspt.c 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|LMT KMT EST EDT AST|4I.w 57.a 50 40 40|01232323232323232323232323232323232323232323232323232323232323232323232323243232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLvf.s RK0m.C 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|LMT QMT -05 -04|5j.k 5e 50 40|01232|-3eLuE.E 1DNzS.E 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|LMT HMT CST CDT|5t.s 5t.A 50 40|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLuu.w 1qx00.8 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST MDT|7n.Q 70 60 60|01213121313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|LMT CST CDT CWT CPT EST|5K.u 60 50 50 50 50|01212134121212121212121212121212121212151212121212121212121212121212121212121212121212121252121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|LMT CST CDT CWT CPT EST EDT|5J.n 60 50 50 50 50 40|01212134121212121212121215656565656525656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|LMT CST CDT CWT CPT EST EDT|5N.7 60 50 50 50 50 40|012121341212121212121212121215121212121212121212121252125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|LMT CST CDT CWT CPT EST EDT|5L.3 60 50 50 50 50 40|012121341212121212121212121512165652121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|LMT CST CDT CWT CPT EST EDT|5E.g 60 50 50 50 50 40|0121213415656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|LMT CST CDT CWT CPT EST EDT|5O.7 60 50 50 50 50 40|012121341212121212121212121212121565652125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|LMT CST CDT CWT CPT EST EDT|5K.p 60 50 50 50 50 40|012121341212121212121212121212121212121565652165656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDT MDT MST|0 80 70 60 70|01212121212121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-FnA0 L3K0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDT CST CDT|0 40 40 50 40 60 50|0123434343434343434343434343434343434343434343434343434343456343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-16K00 7nX0 iv0 14HB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|LMT KMT EST EDT|57.a 57.a 50 40|01232323232323232323232|-3eLuQ.O RK00 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|LMT LMT PST PWT PPT PDT YDT YST AKST AKDT|-f2.j 8V.F 80 70 70 70 80 90 90 80|0123425252525252525252525252625252578989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVwq.s 1EX12.j 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|LMT CST CDT CWT CPT EST EDT|5H.2 60 50 50 50 50 40|01212121213412121212121212121212121212565656565656525656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|LMT CST CDT CWT CPT EST EDT|5D.o 60 50 50 50 50 40|01212134121212121212121212121212121212121212121212121212121212121212121212565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|LMT CMT BST -04|4w.A 4w.A 3w.A 40|0123|-3eLvr.o 1FIo0 13b0|19e5","America/Lima|LMT LMT -05 -04|58.c 58.A 50 40|01232323232323232|-3eLuP.M JcM0.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|LMT PST PDT PWT PPT|7Q.W 80 70 70 70|0121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFE0 1nEe0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|LMT MMT CST EST CDT|5J.8 5J.c 60 50 50|01232424232324242|-3eLue.Q 1Mhc0.4 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|LMT FFMT AST ADT|44.k 44.k 40 30|01232|-3eLvT.E PTA0 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6u 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST MDT|75.E 70 60 60|01213121313131313131313131313131313131313131313131313131313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|44e4","America/Menominee|LMT CST CDT CWT CPT EST|5O.r 60 50 50 50 50|012121341212152121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3pdG9.x 1jce9.x 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131|-1UQG0 2q3C0 24n0 wG10 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|11e5","America/Metlakatla|LMT LMT PST PWT PPT PDT AKST AKDT|-fd.G 8K.i 80 70 70 70 90 80|0123425252525252525252525252525252526767672676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-48Pzs.L 1jVwf.5 1EX1d.G 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST MDT CDT CWT|6A.A 70 60 60 50 50|012131242425242424242424242424242424242424242424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mxUf.k 2LHcf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|LMT EST AST ADT AWT APT|4j.8 50 40 30 30 30|0123232323232323232323245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3txvE.Q J4ME.Q CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT MST CST MDT CDT|6F.g 70 60 60 50|012131242424242424242424242424242424242424242424242424242424242|-1UQG0 dep0 8lz0 16p0 11z0 1dd0 2gmp0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|LMT EST EDT EWT EPT|5h.w 50 40 40 40|012121212121212121212121212121212121212121212123412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-32B6G.s UFdG.s 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1qL0 11B0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|LMT EST EDT EWT EPT|4U.2 50 40 40 40|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFH0 1nEe0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nome|LMT LMT NST NWT NPT BST BDT YST AKST AKDT|-cW.m b1.C b0 a0 a0 b0 a0 90 90 80|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVyu.p 1EX1W.m 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|LMT MST MDT MWT MPT CST CDT|6L.7 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|LMT MST MDT MWT MPT CST CDT|6J.c 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|LMT MST MDT MWT MPT CST CDT|6J.D 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212121212121212121212121212565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST MDT CDT|6V.E 70 60 60 50|0121312424231313131313131313131313131313131313131313131313132424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 Rc0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|LMT PPMT EST EDT|4N.k 4N 50 40|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLva.E 15RLX.E 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|LMT SMT -05 -04 -03|4H.E 4G.J 50 40 30|01213132323232323232343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvg.k MJbX.5 fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Winnipeg|LMT CST CDT CWT CPT|6s.A 60 50 50 50|0121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3kLtv.o 1a3bv.o WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Rankin_Inlet|-00 CST CDT EST|0 60 50 50|01212121212121212121212121212121212121212121212121212121212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-vDc0 Bjk0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDT EST|0 60 50 50|01212121212121212121212121212121212121212121212121212121212321212121212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-SnA0 103I0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|LMT SMT -05 -04 -03|4G.J 4G.J 50 40 30|0121313232323232323432343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvh.f MJc0 fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 hX0 1q10 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|LMT SDMT EST EDT -0430 AST|4D.A 4E 50 40 4u 40|012324242424242525|-3eLvk.o 1Jic0.o 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|012132323232323232323232323232323232323232323232323232323232323232323232323232323232323232121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 2pA0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|452","America/Sitka|LMT LMT PST PWT PPT PDT YST AKST AKDT|-eW.L 91.d 80 70 70 70 90 90 80|0123425252525252525252525252525252567878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-48Pzs.L 1jVwu 1EX0W.L 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|LMT NST NDT NST NDT NWT NPT NDDT|3u.Q 3u.Q 2u.Q 3u 2u 2u 2u 1u|012121212121212121212121212121212121213434343434343435634343434343434343434343434343434343434343434343434343434343434343434343434343434343437343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3tokt.8 1l020 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Vancouver|LMT PST PDT PWT PPT|8c.s 80 70 70 70|01213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tofL.w 1nspL.w 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|LMT YST YDT YWT YPT YDDT PST PDT MST|90.c 90 80 80 80 70 80 70 70|0121213415167676767676767676767676767676767676767676767676767676767676767676767676767676767678|-2MSeX.M GWpX.M 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 LA0 ytd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Yakutat|LMT LMT YST YWT YPT YDT AKST AKDT|-eF.5 9i.T 90 80 80 80 90 80|0123425252525252525252525252525252526767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-48Pzs.L 1jVwL.G 1EX1F.5 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","Antarctica/Casey|-00 +08 +11|0 -80 -b0|012121212121212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01 14kX 1lf1 14kX 1lf1 13bX|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|LMT PMMT +10|-9M.E -9M.w -a0|012|-3D8VM.E AvA0.8|25e4","Antarctica/Macquarie|-00 AEST AEDT|0 -a0 -b0|0121012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2OPc0 Fb40 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|LMT NZMT NZST NZST NZDT|-bD.4 -bu -cu -c0 -d0|012131313131313131313131313134343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-46jLD.4 2nEO9.4 Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +07 +05|0 -70 -50|01012|-tjA0 1rWh0 1Nj0 1aTv0|25","Europe/Berlin|LMT CET CEST CEMT|-R.s -10 -20 -30|012121212121212321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-36RcR.s UbWR.s 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|41e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|0123232323232323232323212323232323232323232323232321|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 L4m0|15e5","Asia/Amman|LMT EET EEST +03|-2n.I -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|LMT BMT +03 +04|-2V.E -2V.A -30 -40|0123232323232323232323232323232323232323232323232323232|-3eLCV.E 18ao0.4 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|LMT BMT +07|-6G.4 -6G.4 -70|012|-3D8SG.4 1C000|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|LMT EET EEST|-2m -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3D8Om 1BWom 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|42e4","Asia/Kolkata|LMT HMT MMT IST +0630|-5R.s -5R.k -5l.a -5u -6u|01234343|-4Fg5R.s BKo0.8 1rDcw.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Shanghai|LMT CST CDT|-85.H -80 -90|012121212121212121212121212121|-2M0U5.H Iuo5.H 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|LMT MMT +0530 +06 +0630|-5j.o -5j.w -5u -60 -6u|012342432|-3D8Rj.o 13inX.Q 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|LMT HMT +0630 +0530 +06 +07|-61.E -5R.k -6u -5u -60 -70|01232454|-3eLG1.E 26008.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST +03|-2p.c -20 -30 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le80 1dnX0 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|","Asia/Gaza|LMT EET EEST IST IDT|-2h.Q -20 -30 -20 -30|0121212121212121212121212121212121234343434343434343434343434343431212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBCh.Q 1Azeh.Q MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1lb0 14p0 1in0 17d0 1cL0 1cN0 19X0 1fB0 14n0 jB0 2L0 11B0 WL0 gN0 8n0 11B0 TX0 gN0 bb0 11B0 On0 jB0 dX0 11B0 Lz0 gN0 mn0 WN0 IL0 gN0 pb0 WN0 Db0 jB0 rX0 11B0 xz0 gN0 xz0 11B0 rX0 jB0 An0 11B0 pb0 gN0 IL0 WN0 mn0 gN0 Lz0 WN0 gL0 jB0 On0 11B0 bb0 gN0 TX0 11B0 5z0 jB0 WL0 11B0 2L0 jB0 11z0 1ip0 19X0 1cN0 1cL0 17d0 1in0 14p0 1lb0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1nX0 14p0 1in0 17d0 1fz0 1a10 19X0 1fB0 17b0 gN0 2L0 WN0 14n0 gN0 5z0 WN0 WL0 jB0 8n0 11B0 Rb0 gN0 dX0 11B0 Lz0 jB0 gL0 11B0 IL0 jB0 mn0 WN0 FX0 gN0 rX0 WN0 An0 jB0 uL0 11B0 uL0 gN0 An0 11B0 rX0 gN0 Db0 11B0 mn0 jB0 FX0 11B0 jz0 gN0 On0 WN0 dX0 jB0 Rb0 WN0 bb0 jB0 TX0 11B0 5z0 gN0 11z0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|18e5","Asia/Hebron|LMT EET EEST IST IDT|-2k.n -20 -30 -20 -30|012121212121212121212121212121212123434343434343434343434343434343121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBCk.n 1Azek.n MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1lb0 14p0 1in0 17d0 1cL0 1cN0 19X0 1fB0 14n0 jB0 2L0 11B0 WL0 gN0 8n0 11B0 TX0 gN0 bb0 11B0 On0 jB0 dX0 11B0 Lz0 gN0 mn0 WN0 IL0 gN0 pb0 WN0 Db0 jB0 rX0 11B0 xz0 gN0 xz0 11B0 rX0 jB0 An0 11B0 pb0 gN0 IL0 WN0 mn0 gN0 Lz0 WN0 gL0 jB0 On0 11B0 bb0 gN0 TX0 11B0 5z0 jB0 WL0 11B0 2L0 jB0 11z0 1ip0 19X0 1cN0 1cL0 17d0 1in0 14p0 1lb0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1nX0 14p0 1in0 17d0 1fz0 1a10 19X0 1fB0 17b0 gN0 2L0 WN0 14n0 gN0 5z0 WN0 WL0 jB0 8n0 11B0 Rb0 gN0 dX0 11B0 Lz0 jB0 gL0 11B0 IL0 jB0 mn0 WN0 FX0 gN0 rX0 WN0 An0 jB0 uL0 11B0 uL0 gN0 An0 11B0 rX0 gN0 Db0 11B0 mn0 jB0 FX0 11B0 jz0 gN0 On0 WN0 dX0 jB0 Rb0 WN0 bb0 jB0 TX0 11B0 5z0 gN0 11z0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.u -76.u -70 -80 -90|0123423232|-2yC76.u bK00 1h7b6.u 5lz0 18o0 3Oq0 k5c0 aVX0 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|LMT IMT +07 +08 +09|-6V.5 -6V.5 -70 -80 -90|012343434343434343434343234343434343434343434343434343434343434343|-3D8SV.5 1Bxc0 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|LMT IMT EET EEST +03 +04|-1T.Q -1U.U -20 -30 -30 -40|01232323232323232323232323232323232323232323232345423232323232323232323232323232323232323232323232323232323232323234|-3D8NT.Q 1ePXW.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|LMT BMT +0720 +0730 +09 +08 WIB|-77.c -77.c -7k -7u -90 -80 -70|012343536|-49jH7.c 2hiLL.c luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|LMT JMT IST IDT IDDT|-2k.S -2k.E -20 -30 -40|012323232323232432323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3D8Ok.S 1wvA0.e SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|LMT +04 +0430|-4A.M -40 -4u|012|-3eLEA.M 2dTcA.M|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|LMT SMT +07 +0720 +0730 +09 +08|-6T.p -6T.p -70 -7k -7u -90 -80|01234546|-2M0ST.p aIM0 17anT.p l5XE 17bO 8Fyu 1so10|71e5","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|LMT LMT PST PDT JST|fU.8 -83.Q -80 -90 -90|012323432323232|-54m83.Q 2d8A3.Q 1urM0 un0 bW10 nb0 7qo0 1MM0 klB0 lz0 TwN0 1bb0 uNB0 rz0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 Mv90|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|LMT RMT +0630 +09|-6o.L -6o.L -6u -90|01232|-3D8So.L 1BnA0 SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|LMT CST JST CDT|-86 -80 -90 -90|012131313131313131313131313131313131313131|-30bk6 1FDc6 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|LMT TBMT +03 +04 +05|-2X.b -2X.b -30 -40 -50|01234343434343434343434323232343434343434343434323|-3D8OX.b 1LUM0 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +0430 +04 +05|-3p.I -3p.I -3u -4u -40 -50|012345423232323232323232323232323232323232323232323232323232323232323232|-2btDp.I Llc0 1FHaT.I 1pc0 120u Rc0 Dc0 1iMu JX0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|LMT JST JDT|-9i.X -90 -a0|0121212121|-3jE90 2qSo0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|LMT HMT -02 -01 +00 WET WEST|1G.E 1S.w 20 10 0 0 -10|012323232323232323232323232323232323232323232343234323432343232323232323232323232323232323232323232323434343434343434343434356434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3tomh.k 18aoh.k aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 CT90 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 Ap0 An0 wo0 Eo0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|LMT BMT BST AST ADT|4j.i 4j.i 3j.i 40 30|0121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3eLvE.G 16mo0 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|LMT FMT -01 +00 +01 WET WEST|17.A 17.A 10 0 -10 0 -10|01232323232323232323232323232323232323232323234323432343234323232323232323232323232323232323232323232356565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tomQ.o 18anQ.o aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 BJ90 1a00 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e4","Atlantic/South_Georgia|LMT -02|2q.8 20|01|-3eLxx.Q|30","Atlantic/Stanley|LMT SMT -04 -03 -02|3P.o 3P.o 40 30 20|0123232323232323434323232323232323232323232323232323232323232323232323|-3eLw8.A S200 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|LMT AEST AEDT|-a4.Q -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-32oW4.Q RlC4.Q xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|LMT ACST ACST ACDT|-9e.k -90 -9u -au|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-32oVe.k ak0e.k H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|LMT AEST AEDT|-ac.8 -a0 -b0|012121212121212121|-32Bmc.8 Ry2c.8 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|LMT AEST ACST ACST ACDT|-9p.M -a0 -90 -9u -au|0123434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-32oVp.M 3Lzp.M 6wp0 H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|LMT AEST AEDT|-9N.g -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-3109N.g Pk1N.g 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|LMT ACST ACST ACDT|-8H.k -90 -9u -au|01232323232|-32oUH.k ajXH.k H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|LMT +0845 +0945|-8z.s -8J -9J|01212121212121212121|-30nIz.s PkpO.s xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|LMT AEST +1030 +1130 +11|-aA.k -a0 -au -bu -b0|01232323232424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424|-32oWA.k 3tzAA.k 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|LMT AEST AEDT|-9T.U -a0 -b0|0121212121212121212121|-32BlT.U Ry1T.U xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|LMT AEST AEDT|-9D.Q -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-32oVD.Q RlBD.Q xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|LMT AWST AWDT|-7H.o -80 -90|01212121212121212121|-30nHH.o PkpH.o xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","Europe/Brussels|LMT BMT WET CET CEST WEST|-h.u -h.u 0 -10 -20 -10|012343434325252525252525252525252525252525252525252525434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3D8Mh.u u1Ah.u SO00 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|21e5","Pacific/Easter|LMT EMT -07 -06 -05|7h.s 7h.s 70 60 50|0123232323232323232323232323234343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLsG.w 1HRc0 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0|30e2","Europe/Athens|LMT AMT EET EEST CEST CET|-1y.Q -1y.Q -20 -30 -20 -10|0123234545232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-30SNy.Q OMM1 CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|35e5","Europe/Dublin|LMT DMT IST GMT BST IST|p.l p.l -y.D 0 -10 -10|012343434343435353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353|-3BHby.D 1ra20 Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-10|+10|-a0|0||","Etc/GMT-11|+11|-b0|0||","Etc/GMT-12|+12|-c0|0||","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Etc/GMT-7|+07|-70|0||","Etc/GMT-8|+08|-80|0||","Etc/GMT-9|+09|-90|0||","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+2|-02|20|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Andorra|LMT WET CET CEST|-6.4 0 -10 -20|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2M0M6.4 1Pnc6.4 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/London|LMT GMT BST BDST|1.f 0 -10 -20|01212121212121212121212121212121212121212121212121232323232321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-4VgnW.J 2KHdW.J Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|LMT CET CEST|-1m -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3topm 2juLm 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Prague|LMT PMT CET CEST GMT|-V.I -V.I -10 -20 0|0123232323232323232423232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4QbAV.I 1FDc0 XPaV.I 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|13e5","Europe/Bucharest|LMT BMT EET EEST|-1I.o -1I.o -20 -30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3awpI.o 1AU00 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|LMT CET CEST|-1g.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3cK1g.k 124Lg.k 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|LMT BMT CET CEST|-y.8 -t.K -10 -20|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4HyMy.8 1Dw04.m 1SfAt.K 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|LMT CMT BMT EET EEST CEST CET MSK MSD|-1T.k -1T -1I.o -20 -30 -20 -10 -30 -40|0123434343434343434345656578787878787878787878434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3D8NT.k 1wNA0.k wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|67e4","Europe/Gibraltar|LMT GMT BST BDST CET CEST|l.o 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123232323232121232121212121212121212145454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-3BHbC.A 1ra1C.A Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|LMT HMT EET EEST|-1D.N -1D.N -20 -30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3H0ND.N 1Iu00 OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|LMT CET CEST EET EEST MSK MSD +03|-1m -10 -20 -20 -30 -30 -40 -30|012121212121212343565656565656565654343434343434343434343434343434343434343434373|-36Rdm UbXm 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|LMT KMT EET MSK CEST CET MSD EEST|-22.4 -22.4 -20 -30 -20 -10 -40 -30|01234545363636363636363636367272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-3D8O2.4 1LUM0 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o10 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05 MSD MSK MSK|-3i.M -30 -40 -50 -40 -30 -40|0123232323232323232454524545454545454545454545454545454545454565|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 2pz0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212124121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 oiK0 1cM0 1cM0 1fB0 1cM0 1cM0 1cM0 1fA0 1a00 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Europe/Madrid|LMT WET WEST WEMT CET CEST|e.I 0 -10 -20 -10 -20|0121212121212121212321454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2M0M0 G5z0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|62e5","Europe/Malta|LMT CET CEST|-W.4 -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-35rcW.4 SXzW.4 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|LMT MMT EET MSK CEST CET MSD EEST +03|-1O.g -1O -20 -30 -20 -10 -40 -30 -30|012345454363636363636363636372727272727272727272727272727272727272728|-3D8NO.g 1LUM0.g eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Paris|LMT PMT WET WEST CEST CET WEMT|-9.l -9.l 0 -10 -20 -10 -20|01232323232323232323232323232323232323232323232323234545463654545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-3bQ09.l MDA0 cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|11e6","Europe/Moscow|LMT MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|01232434565756865656565656565656565698656565656565656565656565656565656565656a6|-3D8Ou.h 1sQM0 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Riga|LMT RMT LST EET MSK CEST CET MSD EEST|-1A.y -1A.y -2A.y -20 -30 -20 -10 -40 -30|0121213456565647474747474747474838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383|-3D8NA.y 1xde0 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|64e4","Europe/Rome|LMT RMT CET CEST|-N.U -N.U -10 -20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4aU0N.U 15snN.U T000 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|LMT SMT EET MSK CEST CET MSD EEST MSK|-2g.o -2g -20 -30 -20 -10 -40 -30 -40|0123454543636363636363636363272727636363727272727272727272727272727272727283|-3D8Og.o 1LUM0.o eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eN0 1cM0 1cM0 1cM0 1cM0 dV0 WO0 1cM0 1cM0 1fy0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|LMT IMT EET CET CEST EEST|-1x.g -1U.U -20 -10 -20 -30|0123434325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-3D8Nx.g AiLA.k 1UFeU.U WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Tallinn|LMT TMT CET CEST EET MSK MSD EEST|-1D -1D -10 -20 -20 -30 -40 -30|0123214532323565656565656565657474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474|-3D8ND 1wI00 teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Vienna|LMT CET CEST|-15.l -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-36Rd5.l UbX5.l 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|LMT WMT KMT CET EET MSK CEST MSD EEST|-1F.g -1o -1z.A -10 -20 -30 -20 -40 -30|0123435636365757575757575757584848484848484848463648484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484|-3D8NF.g 1u5Ah.g 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05 MSD MSK MSK|-2V.E -30 -40 -50 -40 -30 -40|012323232323232324545452454545454545454545454545454545454545456525|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1fA0 1cM0 2pz0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|LMT WMT CET CEST EET EEST|-1o -1o -10 -20 -20 -30|0123232345423232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3D8No 1qDA0 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e5","Pacific/Honolulu|LMT HST HDT HWT HPT HST|av.q au 9u 9u 9u a0|01213415|-3061s.y 1uMdW.y 8x0 lef0 8wWu iAu 46p0|37e4","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Maldives|LMT MMT +05|-4S -4S -50|012|-3D8QS 3eLA0|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Pacific/Kwajalein|LMT +11 +10 +09 -12 +12|-b9.k -b0 -a0 -90 c0 -c0|0123145|-2M0X9.k 1rDA9.k akp0 6Up0 12ry0 Wan0|14e3","Pacific/Chatham|LMT +1215 +1245 +1345|-cd.M -cf -cJ -dJ|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-46jMd.M 37RbW.M 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT LMT -1130 -11 -10 +14 +13|-cx.4 bq.U bu b0 a0 -e0 -d0|012343456565656565656565656|-38Fox.4 J1A0 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|LMT PMMT +10 +09 +11|-am.g -9M.w -a0 -90 -b0|012324|-3D8Wm.g AvAx.I 1TCLM.w 7CN0 2MQp0|18e4","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|LMT -11 +13|bo.U b0 -d0|012|-2M0Az.4 4ufXz.4|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|012121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0|88e4","Pacific/Tarawa|LMT +12|-bw.4 -c0|01|-2M0Xw.4|29e3","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|LMT LMT GST +09 GDT ChST|el -9D -a0 -90 -b0 -a0|0123242424242424242425|-54m9D 2glc0 1DFbD 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Kiritimati|LMT -1040 -10 +14|at.k aE a0 -e0|0123|-2M0Bu.E 3bIMa.E B7Xk|51e2","Pacific/Kosrae|LMT LMT +11 +09 +10 +12|d8.4 -aP.U -b0 -90 -a0 -c0|0123243252|-54maP.U 2glc0 xsnP.U axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT LMT SST|-cB.c bm.M b0|012|-38FoB.c J1A0|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|LMT +1112 +1130 +1230 +11 +12|-bb.Q -bc -bu -cu -b0 -c0|0123245454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2M0Xb.Q 21ILX.Q W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Palau|LMT LMT +09|f2.4 -8V.U -90|012|-54m8V.U 2glc0|21e3","Pacific/Pitcairn|LMT -0830 -08|8E.k 8u 80|012|-2M0Dj.E 3UVXN.E|56","Pacific/Rarotonga|LMT LMT -1030 -0930 -10|-dk.U aD.4 au 9u a0|01234343434343434343434343434|-2Otpk.U 28zc0 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3"]'),$On=["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/Reykjavik","Africa/Abidjan|Atlantic/St_Helena","Africa/Abidjan|Iceland","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|CST6CDT","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|MST7MDT","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|America/Yellowknife","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Iqaluit|America/Pangnirtung","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|PST8PDT","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|EST5EDT","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Panama|EST","America/Phoenix|America/Creston","America/Phoenix|MST","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|America/Nipigon","America/Toronto|America/Thunder_Bay","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|America/Rainy_River","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Bangkok|Indian/Christmas","Asia/Brunei|Asia/Kuching","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Dubai|Indian/Mahe","Asia/Dubai|Indian/Reunion","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Rangoon|Indian/Cocos","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Choibalsan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Athens|EET","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Berlin|Arctic/Longyearbyen","Europe/Berlin|Atlantic/Jan_Mayen","Europe/Berlin|Europe/Copenhagen","Europe/Berlin|Europe/Oslo","Europe/Berlin|Europe/Stockholm","Europe/Brussels|CET","Europe/Brussels|Europe/Amsterdam","Europe/Brussels|Europe/Luxembourg","Europe/Brussels|MET","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Kiev|Europe/Kyiv","Europe/Kiev|Europe/Uzhgorod","Europe/Kiev|Europe/Zaporozhye","Europe/Lisbon|Portugal","Europe/Lisbon|WET","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Paris|Europe/Monaco","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Maldives|Indian/Kerguelen","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guadalcanal|Pacific/Pohnpei","Pacific/Guadalcanal|Pacific/Ponape","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|HST","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Pacific/Chuuk","Pacific/Port_Moresby|Pacific/Truk","Pacific/Port_Moresby|Pacific/Yap","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Majuro","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],UOn=["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Puerto_Rico America/Antigua","AI|America/Puerto_Rico America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Troll Antarctica/Vostok Pacific/Auckland Pacific/Port_Moresby Asia/Riyadh Asia/Singapore Antarctica/McMurdo Antarctica/DumontDUrville Antarctica/Syowa","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla Asia/Tokyo","AW|America/Puerto_Rico America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Puerto_Rico America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Kuching Asia/Brunei","BO|America/La_Paz","BQ|America/Puerto_Rico America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Toronto America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Toronto America/Iqaluit America/Winnipeg America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Inuvik America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver America/Panama America/Puerto_Rico America/Phoenix America/Blanc-Sablon America/Atikokan America/Creston","CC|Asia/Yangon Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Coyhaique America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Puerto_Rico America/Curacao","CX|Asia/Bangkok Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Berlin Europe/Copenhagen","DM|America/Puerto_Rico America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Kosrae Pacific/Port_Moresby Pacific/Guadalcanal Pacific/Chuuk Pacific/Pohnpei","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Puerto_Rico America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Abidjan Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Puerto_Rico America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Africa/Abidjan Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Kanton Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Puerto_Rico America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Puerto_Rico America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Brussels Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Paris Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Puerto_Rico America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Tarawa Pacific/Kwajalein Pacific/Majuro","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Puerto_Rico America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Chihuahua America/Ciudad_Juarez America/Ojinaga America/Mazatlan America/Bahia_Banderas America/Hermosillo America/Tijuana","MY|Asia/Kuching Asia/Singapore Asia/Kuala_Lumpur","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Brussels Europe/Amsterdam","NO|Europe/Berlin Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Asia/Dubai Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Asia/Dubai Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Berlin Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Berlin Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Puerto_Rico America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Asia/Dubai Indian/Maldives Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Puerto_Rico America/Port_of_Spain","TV|Pacific/Tarawa Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kyiv","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Tarawa Pacific/Midway Pacific/Wake","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Puerto_Rico America/St_Vincent","VE|America/Caracas","VG|America/Puerto_Rico America/Tortola","VI|America/Puerto_Rico America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Tarawa Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"],XOn={version:VOn,zones:GOn,links:$On,countries:UOn};var Mke;function YOn(){if(Mke)return _ie.exports;Mke=1;var e=_ie.exports=HOn();return e.tz.load(XOn),_ie.exports}var KOn=YOn();const oa=qn(KOn);/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function WW(){return WW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WW.apply(this,arguments)}var lx;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(lx||(lx={}));const Cke="popstate";function QOn(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return Bfe("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:x9(i)}return JOn(t,n,null,e)}function Ec(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function eut(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZOn(){return Math.random().toString(36).substr(2,8)}function xke(e,t){return{usr:e.state,key:e.key,idx:t}}function Bfe(e,t,n,r){return n===void 0&&(n=null),WW({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_D(t):t,{state:n,key:t&&t.key||r||ZOn()})}function x9(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _D(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function JOn(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=lx.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(WW({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=lx.Pop;let b=u(),y=b==null?null:b-c;c=b,l&&l({action:s,location:m.location,delta:y})}function p(b,y){s=lx.Push;let M=Bfe(m.location,b,y);c=u()+1;let C=xke(M,c),x=m.createHref(M);try{a.pushState(C,"",x)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(x)}o&&l&&l({action:s,location:m.location,delta:1})}function h(b,y){s=lx.Replace;let M=Bfe(m.location,b,y);c=u();let C=xke(M,c),x=m.createHref(M);a.replaceState(C,"",x),o&&l&&l({action:s,location:m.location,delta:0})}function g(b){let y=i.location.origin!=="null"?i.location.origin:i.location.href,M=typeof b=="string"?b:x9(b);return M=M.replace(/ $/,"%20"),Ec(y,"No window.location.(origin|href) available to create URL for href: "+M),new URL(M,y)}let m={get action(){return s},get location(){return e(i,a)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Cke,d),l=b,()=>{i.removeEventListener(Cke,d),l=null}},createHref(b){return t(i,b)},createURL:g,encodeLocation(b){let y=g(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(b){return a.go(b)}};return m}var wke;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(wke||(wke={}));function ezn(e,t,n){return n===void 0&&(n="/"),tzn(e,t,n)}function tzn(e,t,n,r){let i=typeof t=="string"?_D(t):t,o=txe(i.pathname||"/",n);if(o==null)return null;let a=tut(e);nzn(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=fzn(o);s=dzn(a[l],c)}return s}function tut(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Ec(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Px([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(Ec(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),tut(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:czn(c,o.index),routesMeta:u})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of nut(o.path))i(o,a,l)}),t}function nut(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=nut(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function nzn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uzn(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rzn=/^:[\w-]+$/,izn=3,ozn=2,azn=1,szn=10,lzn=-2,Ske=e=>e==="*";function czn(e,t){let n=e.split("/"),r=n.length;return n.some(Ske)&&(r+=lzn),t&&(r+=ozn),n.filter(i=>!Ske(i)).reduce((i,o)=>i+(rzn.test(o)?izn:o===""?azn:szn),r)}function uzn(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function dzn(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=pzn({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),p=l.route;if(!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:Px([o,d.pathname]),pathnameBase:bzn(Px([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=Px([o,d.pathnameBase]))}return a}function pzn(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hzn(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:p,isOptional:h}=u;if(p==="*"){let m=s[d]||"";a=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const g=s[d];return h&&!g?c[p]=void 0:c[p]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function hzn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),eut(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function fzn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return eut(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function txe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function gzn(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?_D(e):e;return{pathname:n?n.startsWith("/")?n:mzn(n,t):t,search:yzn(r),hash:Mzn(i)}}function mzn(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Bie(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function vzn(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nxe(e,t){let n=vzn(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function rxe(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=_D(e):(i=WW({},e),Ec(!i.pathname||!i.pathname.includes("?"),Bie("?","pathname","search",i)),Ec(!i.pathname||!i.pathname.includes("#"),Bie("#","pathname","hash",i)),Ec(!i.search||!i.search.includes("#"),Bie("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=gzn(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Px=e=>e.join("/").replace(/\/\/+/g,"/"),bzn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yzn=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Mzn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Czn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rut=["post","put","patch","delete"];new Set(rut);const xzn=["get",...rut];new Set(xzn);/**
 * React Router v6.30.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
 */function qW(){return qW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qW.apply(this,arguments)}const ixe=v.createContext(null),wzn=v.createContext(null),Pw=v.createContext(null),oZ=v.createContext(null),Kb=v.createContext({outlet:null,matches:[],isDataRoute:!1}),iut=v.createContext(null);function Szn(e,t){let{relative:n}=t===void 0?{}:t;ND()||Ec(!1);let{basename:r,navigator:i}=v.useContext(Pw),{hash:o,pathname:a,search:s}=aut(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Px([r,a])),i.createHref({pathname:l,search:s,hash:o})}function ND(){return v.useContext(oZ)!=null}function Dw(){return ND()||Ec(!1),v.useContext(oZ).location}function out(e){v.useContext(Pw).static||v.useLayoutEffect(e)}function Oo(){let{isDataRoute:e}=v.useContext(Kb);return e?Wzn():Azn()}function Azn(){ND()||Ec(!1);let e=v.useContext(ixe),{basename:t,future:n,navigator:r}=v.useContext(Pw),{matches:i}=v.useContext(Kb),{pathname:o}=Dw(),a=JSON.stringify(nxe(i,n.v7_relativeSplatPath)),s=v.useRef(!1);return out(()=>{s.current=!0}),v.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=rxe(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Px([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,o,e])}const Ozn=v.createContext(null);function zzn(e){let t=v.useContext(Kb).outlet;return t&&v.createElement(Ozn.Provider,{value:e},t)}function ds(){let{matches:e}=v.useContext(Kb),t=e[e.length-1];return t?t.params:{}}function aut(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Pw),{matches:i}=v.useContext(Kb),{pathname:o}=Dw(),a=JSON.stringify(nxe(i,r.v7_relativeSplatPath));return v.useMemo(()=>rxe(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function Tzn(e,t){return Ezn(e,t)}function Ezn(e,t,n,r){ND()||Ec(!1);let{navigator:i}=v.useContext(Pw),{matches:o}=v.useContext(Kb),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Dw(),u;if(t){var d;let b=typeof t=="string"?_D(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||Ec(!1),u=b}else u=c;let p=u.pathname||"/",h=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let g=ezn(e,{pathname:h}),m=kzn(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:Px([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Px([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n,r);return t&&m?v.createElement(oZ.Provider,{value:{location:qW({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:lx.Pop}},m):m}function Rzn(){let e=Fzn(),t=Czn(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:i},n):null,null)}const Izn=v.createElement(Rzn,null);class Pzn extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Kb.Provider,{value:this.props.routeContext},v.createElement(iut.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Dzn(e){let{routeContext:t,match:n,children:r}=e,i=v.useContext(ixe);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Kb.Provider,{value:t},r)}function kzn(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&s?.[d.route.id]!==void 0);u>=0||Ec(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=n,g=d.route.loader&&p[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,p)=>{let h,g=!1,m=null,b=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,m=d.route.errorElement||Izn,l&&(c<0&&p===0?(qzn("route-fallback"),g=!0,b=null):c===p&&(g=!0,b=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),M=()=>{let C;return h?C=m:g?C=b:d.route.Component?C=v.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=u,v.createElement(Dzn,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:C})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?v.createElement(Pzn,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:M(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):M()},null)}var sut=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(sut||{}),lut=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(lut||{});function Lzn(e){let t=v.useContext(ixe);return t||Ec(!1),t}function _zn(e){let t=v.useContext(wzn);return t||Ec(!1),t}function Nzn(e){let t=v.useContext(Kb);return t||Ec(!1),t}function cut(e){let t=Nzn(),n=t.matches[t.matches.length-1];return n.route.id||Ec(!1),n.route.id}function Fzn(){var e;let t=v.useContext(iut),n=_zn(),r=cut();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Wzn(){let{router:e}=Lzn(sut.UseNavigateStable),t=cut(lut.UseNavigateStable),n=v.useRef(!1);return out(()=>{n.current=!0}),v.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,qW({fromRouteId:t},o)))},[e,t])}const Ake={};function qzn(e,t,n){Ake[e]||(Ake[e]=!0)}function Bzn(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function VO(e){let{to:t,replace:n,state:r,relative:i}=e;ND()||Ec(!1);let{future:o,static:a}=v.useContext(Pw),{matches:s}=v.useContext(Kb),{pathname:l}=Dw(),c=Oo(),u=rxe(t,nxe(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return v.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function jzn(e){return zzn(e.context)}function ar(e){Ec(!1)}function Hzn(e){let{basename:t="/",children:n=null,location:r,navigationType:i=lx.Pop,navigator:o,static:a=!1,future:s}=e;ND()&&Ec(!1);let l=t.replace(/^\/*/,"/"),c=v.useMemo(()=>({basename:l,navigator:o,static:a,future:qW({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=_D(r));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:g="default"}=r,m=v.useMemo(()=>{let b=txe(u,l);return b==null?null:{location:{pathname:b,search:d,hash:p,state:h,key:g},navigationType:i}},[l,u,d,p,h,g,i]);return m==null?null:v.createElement(Pw.Provider,{value:c},v.createElement(oZ.Provider,{children:n,value:m}))}function aZ(e){let{children:t,location:n}=e;return Tzn(jfe(t),n)}new Promise(()=>{});function jfe(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,i)=>{if(!v.isValidElement(r))return;let o=[...t,i];if(r.type===v.Fragment){n.push.apply(n,jfe(r.props.children,o));return}r.type!==ar&&Ec(!1),!r.props.index||!r.props.children||Ec(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=jfe(r.props.children,o)),n.push(a)}),n}/**
 * React Router DOM v6.30.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
 */function Hfe(){return Hfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hfe.apply(this,arguments)}function Vzn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Gzn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $zn(e,t){return e.button===0&&(!t||t==="_self")&&!Gzn(e)}function Vfe(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Uzn(e,t){let n=Vfe(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const Xzn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Yzn="6";try{window.__reactRouterVersion=Yzn}catch{}const Kzn="startTransition",Oke=SW[Kzn];function Qzn(e){let{basename:t,children:n,future:r,window:i}=e,o=v.useRef();o.current==null&&(o.current=QOn({window:i,v5Compat:!0}));let a=o.current,[s,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=v.useCallback(d=>{c&&Oke?Oke(()=>l(d)):l(d)},[l,c]);return v.useLayoutEffect(()=>a.listen(u),[a,u]),v.useEffect(()=>Bzn(r),[r]),v.createElement(Hzn,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const Zzn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Jzn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yo=v.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,p=Vzn(t,Xzn),{basename:h}=v.useContext(Pw),g,m=!1;if(typeof c=="string"&&Jzn.test(c)&&(g=c,Zzn))try{let C=new URL(window.location.href),x=c.startsWith("//")?new URL(C.protocol+c):new URL(c),w=txe(x.pathname,h);x.origin===C.origin&&w!=null?c=w+x.search+x.hash:m=!0}catch{}let b=Szn(c,{relative:i}),y=e3n(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});function M(C){r&&r(C),C.defaultPrevented||y(C)}return v.createElement("a",Hfe({},p,{href:g||b,onClick:m||o?r:M,ref:n,target:l}))});var zke;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zke||(zke={}));var Tke;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tke||(Tke={}));function e3n(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=Oo(),c=Dw(),u=aut(e,{relative:a});return v.useCallback(d=>{if($zn(d,n)){d.preventDefault();let p=r!==void 0?r:x9(c)===x9(u);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,u,r,i,n,e,o,a,s])}function Zu(e){let t=v.useRef(Vfe(e)),n=v.useRef(!1),r=Dw(),i=v.useMemo(()=>Uzn(r.search,n.current?null:t.current),[r.search]),o=Oo(),a=v.useCallback((s,l)=>{const c=Vfe(typeof s=="function"?s(i):s);n.current=!0,o("?"+c,l)},[o,i]);return[i,a]}var uut=typeof global=="object"&&global&&global.Object===Object&&global,t3n=typeof self=="object"&&self&&self.Object===Object&&self,Qb=uut||t3n||Function("return this")(),wP=Qb.Symbol,dut=Object.prototype,n3n=dut.hasOwnProperty,r3n=dut.toString,x4=wP?wP.toStringTag:void 0;function i3n(e){var t=n3n.call(e,x4),n=e[x4];try{e[x4]=void 0;var r=!0}catch{}var i=r3n.call(e);return r&&(t?e[x4]=n:delete e[x4]),i}var o3n=Object.prototype,a3n=o3n.toString;function s3n(e){return a3n.call(e)}var l3n="[object Null]",c3n="[object Undefined]",Eke=wP?wP.toStringTag:void 0;function kw(e){return e==null?e===void 0?c3n:l3n:Eke&&Eke in Object(e)?i3n(e):s3n(e)}function FD(e){return e!=null&&typeof e=="object"}var u3n="[object Symbol]";function sZ(e){return typeof e=="symbol"||FD(e)&&kw(e)==u3n}function put(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var oB=Array.isArray,Rke=wP?wP.prototype:void 0,Ike=Rke?Rke.toString:void 0;function hut(e){if(typeof e=="string")return e;if(oB(e))return put(e,hut)+"";if(sZ(e))return Ike?Ike.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var d3n=/\s/;function p3n(e){for(var t=e.length;t--&&d3n.test(e.charAt(t)););return t}var h3n=/^\s+/;function f3n(e){return e&&e.slice(0,p3n(e)+1).replace(h3n,"")}function BW(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pke=NaN,g3n=/^[-+]0x[0-9a-f]+$/i,m3n=/^0b[01]+$/i,v3n=/^0o[0-7]+$/i,b3n=parseInt;function w9(e){if(typeof e=="number")return e;if(sZ(e))return Pke;if(BW(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=BW(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=f3n(e);var n=m3n.test(e);return n||v3n.test(e)?b3n(e.slice(2),n?2:8):g3n.test(e)?Pke:+e}var Dke=1/0,y3n=17976931348623157e292;function M3n(e){if(!e)return e===0?e:0;if(e=w9(e),e===Dke||e===-Dke){var t=e<0?-1:1;return t*y3n}return e===e?e:0}function C3n(e){var t=M3n(e),n=t%1;return t===t?n?t-n:t:0}var x3n="[object AsyncFunction]",w3n="[object Function]",S3n="[object GeneratorFunction]",A3n="[object Proxy]";function fut(e){if(!BW(e))return!1;var t=kw(e);return t==w3n||t==S3n||t==x3n||t==A3n}var jie=Qb["__core-js_shared__"],kke=(function(){var e=/[^.]+$/.exec(jie&&jie.keys&&jie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function O3n(e){return!!kke&&kke in e}var z3n=Function.prototype,T3n=z3n.toString;function L3(e){if(e!=null){try{return T3n.call(e)}catch{}try{return e+""}catch{}}return""}var E3n=/[\\^$.*+?()[\]{}|]/g,R3n=/^\[object .+?Constructor\]$/,I3n=Function.prototype,P3n=Object.prototype,D3n=I3n.toString,k3n=P3n.hasOwnProperty,L3n=RegExp("^"+D3n.call(k3n).replace(E3n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _3n(e){if(!BW(e)||O3n(e))return!1;var t=fut(e)?L3n:R3n;return t.test(L3(e))}function N3n(e,t){return e?.[t]}function WD(e,t){var n=N3n(e,t);return _3n(n)?n:void 0}var Gfe=WD(Qb,"WeakMap"),F3n=9007199254740991,W3n=/^(?:0|[1-9]\d*)$/;function q3n(e,t){var n=typeof e;return t=t??F3n,!!t&&(n=="number"||n!="symbol"&&W3n.test(e))&&e>-1&&e%1==0&&e<t}function B3n(e,t){return e===t||e!==e&&t!==t}var j3n=9007199254740991;function gut(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j3n}function mut(e){return e!=null&&gut(e.length)&&!fut(e)}var H3n=Object.prototype;function vut(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||H3n;return e===n}function V3n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var G3n="[object Arguments]";function Lke(e){return FD(e)&&kw(e)==G3n}var but=Object.prototype,$3n=but.hasOwnProperty,U3n=but.propertyIsEnumerable,yut=Lke((function(){return arguments})())?Lke:function(e){return FD(e)&&$3n.call(e,"callee")&&!U3n.call(e,"callee")};function X3n(){return!1}var Mut=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_ke=Mut&&typeof module=="object"&&module&&!module.nodeType&&module,Y3n=_ke&&_ke.exports===Mut,Nke=Y3n?Qb.Buffer:void 0,K3n=Nke?Nke.isBuffer:void 0,Cut=K3n||X3n,Q3n="[object Arguments]",Z3n="[object Array]",J3n="[object Boolean]",eTn="[object Date]",tTn="[object Error]",nTn="[object Function]",rTn="[object Map]",iTn="[object Number]",oTn="[object Object]",aTn="[object RegExp]",sTn="[object Set]",lTn="[object String]",cTn="[object WeakMap]",uTn="[object ArrayBuffer]",dTn="[object DataView]",pTn="[object Float32Array]",hTn="[object Float64Array]",fTn="[object Int8Array]",gTn="[object Int16Array]",mTn="[object Int32Array]",vTn="[object Uint8Array]",bTn="[object Uint8ClampedArray]",yTn="[object Uint16Array]",MTn="[object Uint32Array]",el={};el[pTn]=el[hTn]=el[fTn]=el[gTn]=el[mTn]=el[vTn]=el[bTn]=el[yTn]=el[MTn]=!0;el[Q3n]=el[Z3n]=el[uTn]=el[J3n]=el[dTn]=el[eTn]=el[tTn]=el[nTn]=el[rTn]=el[iTn]=el[oTn]=el[aTn]=el[sTn]=el[lTn]=el[cTn]=!1;function CTn(e){return FD(e)&&gut(e.length)&&!!el[kw(e)]}function xTn(e){return function(t){return e(t)}}var xut=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oF=xut&&typeof module=="object"&&module&&!module.nodeType&&module,wTn=oF&&oF.exports===xut,Hie=wTn&&uut.process,Fke=(function(){try{var e=oF&&oF.require&&oF.require("util").types;return e||Hie&&Hie.binding&&Hie.binding("util")}catch{}})(),Wke=Fke&&Fke.isTypedArray,wut=Wke?xTn(Wke):CTn,STn=Object.prototype,ATn=STn.hasOwnProperty;function OTn(e,t){var n=oB(e),r=!n&&yut(e),i=!n&&!r&&Cut(e),o=!n&&!r&&!i&&wut(e),a=n||r||i||o,s=a?V3n(e.length,String):[],l=s.length;for(var c in e)ATn.call(e,c)&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||q3n(c,l)))&&s.push(c);return s}function zTn(e,t){return function(n){return e(t(n))}}var TTn=zTn(Object.keys,Object),ETn=Object.prototype,RTn=ETn.hasOwnProperty;function Sut(e){if(!vut(e))return TTn(e);var t=[];for(var n in Object(e))RTn.call(e,n)&&n!="constructor"&&t.push(n);return t}function ITn(e){return mut(e)?OTn(e):Sut(e)}var PTn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DTn=/^\w*$/;function kTn(e,t){if(oB(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||sZ(e)?!0:DTn.test(e)||!PTn.test(e)||t!=null&&e in Object(t)}var jW=WD(Object,"create");function LTn(){this.__data__=jW?jW(null):{},this.size=0}function _Tn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var NTn="__lodash_hash_undefined__",FTn=Object.prototype,WTn=FTn.hasOwnProperty;function qTn(e){var t=this.__data__;if(jW){var n=t[e];return n===NTn?void 0:n}return WTn.call(t,e)?t[e]:void 0}var BTn=Object.prototype,jTn=BTn.hasOwnProperty;function HTn(e){var t=this.__data__;return jW?t[e]!==void 0:jTn.call(t,e)}var VTn="__lodash_hash_undefined__";function GTn(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jW&&t===void 0?VTn:t,this}function Fz(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fz.prototype.clear=LTn;Fz.prototype.delete=_Tn;Fz.prototype.get=qTn;Fz.prototype.has=HTn;Fz.prototype.set=GTn;function $Tn(){this.__data__=[],this.size=0}function lZ(e,t){for(var n=e.length;n--;)if(B3n(e[n][0],t))return n;return-1}var UTn=Array.prototype,XTn=UTn.splice;function YTn(e){var t=this.__data__,n=lZ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():XTn.call(t,n,1),--this.size,!0}function KTn(e){var t=this.__data__,n=lZ(t,e);return n<0?void 0:t[n][1]}function QTn(e){return lZ(this.__data__,e)>-1}function ZTn(e,t){var n=this.__data__,r=lZ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qD(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qD.prototype.clear=$Tn;qD.prototype.delete=YTn;qD.prototype.get=KTn;qD.prototype.has=QTn;qD.prototype.set=ZTn;var S9=WD(Qb,"Map");function JTn(){this.size=0,this.__data__={hash:new Fz,map:new(S9||qD),string:new Fz}}function eEn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cZ(e,t){var n=e.__data__;return eEn(t)?n[typeof t=="string"?"string":"hash"]:n.map}function tEn(e){var t=cZ(this,e).delete(e);return this.size-=t?1:0,t}function nEn(e){return cZ(this,e).get(e)}function rEn(e){return cZ(this,e).has(e)}function iEn(e,t){var n=cZ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function _3(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_3.prototype.clear=JTn;_3.prototype.delete=tEn;_3.prototype.get=nEn;_3.prototype.has=rEn;_3.prototype.set=iEn;var oEn="Expected a function";function oxe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(oEn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(oxe.Cache||_3),n}oxe.Cache=_3;var aEn=500;function sEn(e){var t=oxe(e,function(r){return n.size===aEn&&n.clear(),r}),n=t.cache;return t}var lEn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cEn=/\\(\\)?/g,uEn=sEn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lEn,function(n,r,i,o){t.push(i?o.replace(cEn,"$1"):r||n)}),t});function $fe(e){return e==null?"":hut(e)}function dEn(e,t){return oB(e)?e:kTn(e,t)?[e]:uEn($fe(e))}function pEn(e){if(typeof e=="string"||sZ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function hEn(e,t){t=dEn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[pEn(t[n++])];return n&&n==r?e:void 0}function At(e,t,n){var r=e==null?void 0:hEn(e,t);return r===void 0?n:r}var fEn=Qb.isFinite,gEn=Math.min;function mEn(e){var t=Math[e];return function(n,r){if(n=w9(n),r=r==null?0:gEn(C3n(r),292),r&&fEn(n)){var i=($fe(n)+"e").split("e"),o=t(i[0]+"e"+(+i[1]+r));return i=($fe(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(n)}}var Ufe=WD(Qb,"DataView"),Xfe=WD(Qb,"Promise"),Yfe=WD(Qb,"Set"),qke="[object Map]",vEn="[object Object]",Bke="[object Promise]",jke="[object Set]",Hke="[object WeakMap]",Vke="[object DataView]",bEn=L3(Ufe),yEn=L3(S9),MEn=L3(Xfe),CEn=L3(Yfe),xEn=L3(Gfe),PA=kw;(Ufe&&PA(new Ufe(new ArrayBuffer(1)))!=Vke||S9&&PA(new S9)!=qke||Xfe&&PA(Xfe.resolve())!=Bke||Yfe&&PA(new Yfe)!=jke||Gfe&&PA(new Gfe)!=Hke)&&(PA=function(e){var t=kw(e),n=t==vEn?e.constructor:void 0,r=n?L3(n):"";if(r)switch(r){case bEn:return Vke;case yEn:return qke;case MEn:return Bke;case CEn:return jke;case xEn:return Hke}return t});var Vie=function(){return Qb.Date.now()},wEn="Expected a function",SEn=Math.max,AEn=Math.min;function aB(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(wEn);t=w9(t)||0,BW(n)&&(u=!!n.leading,d="maxWait"in n,o=d?SEn(w9(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function h(S){var A=r,z=i;return r=i=void 0,c=S,a=e.apply(z,A),a}function g(S){return c=S,s=setTimeout(y,t),u?h(S):a}function m(S){var A=S-l,z=S-c,O=t-A;return d?AEn(O,o-z):O}function b(S){var A=S-l,z=S-c;return l===void 0||A>=t||A<0||d&&z>=o}function y(){var S=Vie();if(b(S))return M(S);s=setTimeout(y,m(S))}function M(S){return s=void 0,p&&r?h(S):(r=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function x(){return s===void 0?a:M(Vie())}function w(){var S=Vie(),A=b(S);if(r=arguments,i=this,l=S,A){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return w.cancel=C,w.flush=x,w}function OEn(e,t){return put(t,function(n){return e[n]})}function zEn(e){return e==null?[]:OEn(e,ITn(e))}var TEn="[object Boolean]";function EEn(e){return e===!0||e===!1||FD(e)&&kw(e)==TEn}var REn="[object Map]",IEn="[object Set]",PEn=Object.prototype,DEn=PEn.hasOwnProperty;function kEn(e){if(e==null)return!0;if(mut(e)&&(oB(e)||typeof e=="string"||typeof e.splice=="function"||Cut(e)||wut(e)||yut(e)))return!e.length;var t=PA(e);if(t==REn||t==IEn)return!e.size;if(vut(e))return!Sut(e).length;for(var n in e)if(DEn.call(e,n))return!1;return!0}var LEn="[object Number]";function ew(e){return typeof e=="number"||FD(e)&&kw(e)==LEn}function Kfe(e){return ew(e)&&e!=+e}function gi(e){return e==null}var w4=mEn("round"),_En=function(t){return{root:{fontWeight:t.typography.fontWeightMedium,marginTop:-2}}},NEn=v.forwardRef(function(t,n){var r=t.classes,i=t.className,o=fn(t,["classes","className"]);return v.createElement(vt,Y({gutterBottom:!0,component:"div",ref:n,className:$t(r.root,i)},o))});const FEn=or(_En,{name:"MuiAlertTitle"})(NEn),WEn=Ui(v.createElement("path",{d:"M7 10l5 5 5-5z"}));function Gke(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Aut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.ignoreAccents,n=t===void 0?!0:t,r=e.ignoreCase,i=r===void 0?!0:r,o=e.limit,a=e.matchFrom,s=a===void 0?"any":a,l=e.stringify,c=e.trim,u=c===void 0?!1:c;return function(d,p){var h=p.inputValue,g=p.getOptionLabel,m=u?h.trim():h;i&&(m=m.toLowerCase()),n&&(m=Gke(m));var b=d.filter(function(y){var M=(l||g)(y);return i&&(M=M.toLowerCase()),n&&(M=Gke(M)),s==="start"?M.indexOf(m)===0:M.indexOf(m)>-1});return typeof o=="number"?b.slice(0,o):b}}function Gie(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var qEn=Aut(),$ke=5;function BEn(e){var t=e.autoComplete,n=t===void 0?!1:t,r=e.autoHighlight,i=r===void 0?!1:r,o=e.autoSelect,a=o===void 0?!1:o,s=e.blurOnSelect,l=s===void 0?!1:s,c=e.clearOnBlur,u=c===void 0?!e.freeSolo:c,d=e.clearOnEscape,p=d===void 0?!1:d,h=e.componentName,g=h===void 0?"useAutocomplete":h,m=e.debug,b=m===void 0?!1:m,y=e.defaultValue,M=y===void 0?e.multiple?[]:null:y,C=e.disableClearable,x=C===void 0?!1:C,w=e.disableCloseOnSelect,S=w===void 0?!1:w,A=e.disabledItemsFocusable,z=A===void 0?!1:A,O=e.disableListWrap,T=O===void 0?!1:O,R=e.filterOptions,P=R===void 0?qEn:R,F=e.filterSelectedOptions,N=F===void 0?!1:F,L=e.freeSolo,W=L===void 0?!1:L,j=e.getOptionDisabled,V=e.getOptionLabel,G=V===void 0?function(Xn){return Xn}:V,q=e.getOptionSelected,$=q===void 0?function(Xn,wn){return Xn===wn}:q,U=e.groupBy,X=e.handleHomeEndKeys,Q=X===void 0?!e.freeSolo:X,re=e.id,ee=e.includeInputInList,se=ee===void 0?!1:ee,pe=e.inputValue,te=e.multiple,ce=te===void 0?!1:te,oe=e.onChange,ae=e.onClose,ne=e.onHighlightChange,le=e.onInputChange,he=e.onOpen,be=e.open,me=e.openOnFocus,Me=me===void 0?!1:me,Oe=e.options,de=e.selectOnFocus,ie=de===void 0?!e.freeSolo:de,ue=e.value,Ae=zMe(re),Ce=G,Ee=v.useRef(!1),Ge=v.useRef(!0),_e=v.useRef(null),Ie=v.useRef(null),Le=v.useState(null),we=Le[0],ve=Le[1],De=v.useState(-1),ze=De[0],Ve=De[1],Ke=i?0:-1,et=v.useRef(Ke),it=cb({controlled:ue,default:M,name:g}),Ft=Xu(it,2),Dt=Ft[0],Qn=Ft[1],ir=cb({controlled:pe,default:"",name:g,state:"inputValue"}),Hn=Xu(ir,2),Zn=Hn[0],Br=Hn[1],vr=v.useState(!1),Fe=vr[0],He=vr[1],Xe=bs(function(Xn,wn){var nn;if(ce)nn="";else if(wn==null)nn="";else{var Lr=Ce(wn);nn=typeof Lr=="string"?Lr:""}Zn!==nn&&(Br(nn),le&&le(Xn,nn,"reset"))});v.useEffect(function(){Xe(null,Dt)},[Dt,Xe]);var ct=cb({controlled:be,default:!1,name:g,state:"open"}),lt=Xu(ct,2),Je=lt[0],ft=lt[1],Tt=!ce&&Dt!=null&&Zn===Ce(Dt),St=Je,un=St?P(Oe.filter(function(Xn){return!(N&&(ce?Dt:[Dt]).some(function(wn){return wn!==null&&$(Xn,wn)}))}),{inputValue:Tt?"":Zn,getOptionLabel:Ce}):[],Un=bs(function(Xn){Xn===-1?_e.current.focus():we.querySelector('[data-tag-index="'.concat(Xn,'"]')).focus()});v.useEffect(function(){ce&&ze>Dt.length-1&&(Ve(-1),Un(-1))},[Dt,ce,ze,Un]);function Yr(Xn,wn){if(!Ie.current||Xn===-1)return-1;for(var nn=Xn;;){if(wn==="next"&&nn===un.length||wn==="previous"&&nn===-1)return-1;var Lr=Ie.current.querySelector('[data-option-index="'.concat(nn,'"]')),Os=z?!1:Lr&&(Lr.disabled||Lr.getAttribute("aria-disabled")==="true");if(Lr&&!Lr.hasAttribute("tabindex")||Os)nn+=wn==="next"?1:-1;else return nn}}var yr=bs(function(Xn){var wn=Xn.event,nn=Xn.index,Lr=Xn.reason,Os=Lr===void 0?"auto":Lr;if(et.current=nn,nn===-1?_e.current.removeAttribute("aria-activedescendant"):_e.current.setAttribute("aria-activedescendant","".concat(Ae,"-option-").concat(nn)),ne&&ne(wn,nn===-1?null:un[nn],Os),!!Ie.current){var Va=Ie.current.querySelector("[data-focus]");Va&&Va.removeAttribute("data-focus");var wa=Ie.current.parentElement.querySelector('[role="listbox"]');if(wa){if(nn===-1){wa.scrollTop=0;return}var _c=Ie.current.querySelector('[data-option-index="'.concat(nn,'"]'));if(_c&&(_c.setAttribute("data-focus","true"),wa.scrollHeight>wa.clientHeight&&Os!=="mouse")){var cc=_c,C1=wa.clientHeight+wa.scrollTop,zp=cc.offsetTop+cc.offsetHeight;zp>C1?wa.scrollTop=zp-wa.clientHeight:cc.offsetTop-cc.offsetHeight*(U?1.3:0)<wa.scrollTop&&(wa.scrollTop=cc.offsetTop-cc.offsetHeight*(U?1.3:0))}}}}),dr=bs(function(Xn){var wn=Xn.event,nn=Xn.diff,Lr=Xn.direction,Os=Lr===void 0?"next":Lr,Va=Xn.reason,wa=Va===void 0?"auto":Va;if(St){var _c=function(){var Re=un.length-1;if(nn==="reset")return Ke;if(nn==="start")return 0;if(nn==="end")return Re;var qe=et.current+nn;return qe<0?qe===-1&&se?-1:T&&et.current!==-1||Math.abs(nn)>1?0:Re:qe>Re?qe===Re+1&&se?-1:T||Math.abs(nn)>1?Re:0:qe},cc=Yr(_c(),Os);if(yr({index:cc,reason:wa,event:wn}),n&&nn!=="reset")if(cc===-1)_e.current.value=Zn;else{var C1=Ce(un[cc]);_e.current.value=C1;var zp=C1.toLowerCase().indexOf(Zn.toLowerCase());zp===0&&Zn.length>0&&_e.current.setSelectionRange(Zn.length,C1.length)}}}),si=v.useCallback(function(){if(St){var Xn=ce?Dt[0]:Dt;if(un.length===0||Xn==null){dr({diff:"reset"});return}if(Ie.current){if(!N&&Xn!=null){var wn=un[et.current];if(ce&&wn&&Gie(Dt,function(Lr){return $(wn,Lr)})!==-1)return;var nn=Gie(un,function(Lr){return $(Lr,Xn)});nn===-1?dr({diff:"reset"}):yr({index:nn});return}if(et.current>=un.length-1){yr({index:un.length-1});return}yr({index:et.current})}}},[un.length===0,ce?!1:Dt,N,dr,yr,St,Zn,ce]),$o=bs(function(Xn){Uy(Ie,Xn),Xn&&si()});v.useEffect(function(){si()},[si]);var Uo=function(wn){Je||(ft(!0),he&&he(wn))},Qi=function(wn,nn){Je&&(ft(!1),ae&&ae(wn,nn))},di=function(wn,nn,Lr,Os){Dt!==nn&&(oe&&oe(wn,nn,Lr,Os),Qn(nn))},kt=v.useRef(!1),It=function(wn,nn){var Lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"select-option",Os=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"options",Va=Lr,wa=nn;if(ce){wa=Array.isArray(Dt)?Dt.slice():[];var _c=Gie(wa,function(cc){return $(nn,cc)});_c===-1?wa.push(nn):Os!=="freeSolo"&&(wa.splice(_c,1),Va="remove-option")}Xe(wn,wa),di(wn,wa,Va,{option:nn}),S||Qi(wn,Va),(l===!0||l==="touch"&&kt.current||l==="mouse"&&!kt.current)&&_e.current.blur()};function Vn(Xn,wn){if(Xn===-1)return-1;for(var nn=Xn;;){if(wn==="next"&&nn===Dt.length||wn==="previous"&&nn===-1)return-1;var Lr=we.querySelector('[data-tag-index="'.concat(nn,'"]'));if(Lr&&(!Lr.hasAttribute("tabindex")||Lr.disabled||Lr.getAttribute("aria-disabled")==="true"))nn+=wn==="next"?1:-1;else return nn}}var jr=function(wn,nn){if(ce){Qi(wn,"toggleInput");var Lr=ze;ze===-1?Zn===""&&nn==="previous"&&(Lr=Dt.length-1):(Lr+=nn==="next"?1:-1,Lr<0&&(Lr=0),Lr===Dt.length&&(Lr=-1)),Lr=Vn(Lr,nn),Ve(Lr),Un(Lr)}},Jr=function(wn){Ee.current=!0,Br(""),le&&le(wn,"","clear"),di(wn,ce?[]:null,"clear")},xa=function(wn){return function(nn){switch(ze!==-1&&["ArrowLeft","ArrowRight"].indexOf(nn.key)===-1&&(Ve(-1),Un(-1)),nn.key){case"Home":St&&Q&&(nn.preventDefault(),dr({diff:"start",direction:"next",reason:"keyboard",event:nn}));break;case"End":St&&Q&&(nn.preventDefault(),dr({diff:"end",direction:"previous",reason:"keyboard",event:nn}));break;case"PageUp":nn.preventDefault(),dr({diff:-$ke,direction:"previous",reason:"keyboard",event:nn}),Uo(nn);break;case"PageDown":nn.preventDefault(),dr({diff:$ke,direction:"next",reason:"keyboard",event:nn}),Uo(nn);break;case"ArrowDown":nn.preventDefault(),dr({diff:1,direction:"next",reason:"keyboard",event:nn}),Uo(nn);break;case"ArrowUp":nn.preventDefault(),dr({diff:-1,direction:"previous",reason:"keyboard",event:nn}),Uo(nn);break;case"ArrowLeft":jr(nn,"previous");break;case"ArrowRight":jr(nn,"next");break;case"Enter":if(nn.which===229)break;if(et.current!==-1&&St){var Lr=un[et.current],Os=j?j(Lr):!1;if(nn.preventDefault(),Os)return;It(nn,Lr,"select-option"),n&&_e.current.setSelectionRange(_e.current.value.length,_e.current.value.length)}else W&&Zn!==""&&Tt===!1&&(ce&&nn.preventDefault(),It(nn,Zn,"create-option","freeSolo"));break;case"Escape":St?(nn.preventDefault(),nn.stopPropagation(),Qi(nn,"escape")):p&&(Zn!==""||ce&&Dt.length>0)&&(nn.preventDefault(),nn.stopPropagation(),Jr(nn));break;case"Backspace":if(ce&&Zn===""&&Dt.length>0){var Va=ze===-1?Dt.length-1:ze,wa=Dt.slice();wa.splice(Va,1),di(nn,wa,"remove-option",{option:Dt[Va]})}break}wn.onKeyDown&&wn.onKeyDown(nn)}},Xo=function(wn){He(!0),Me&&!Ee.current&&Uo(wn)},La=function(wn){if(Ie.current!==null&&document.activeElement===Ie.current.parentElement){_e.current.focus();return}He(!1),Ge.current=!0,Ee.current=!1,!(b&&Zn!=="")&&(a&&et.current!==-1&&St?It(wn,un[et.current],"blur"):a&&W&&Zn!==""?It(wn,Zn,"blur","freeSolo"):u&&Xe(wn,Dt),Qi(wn,"blur"))},ad=function(wn){var nn=wn.target.value;Zn!==nn&&(Br(nn),le&&le(wn,nn,"input")),nn===""?!x&&!ce&&di(wn,null,"clear"):Uo(wn)},Lu=function(wn){yr({event:wn,index:Number(wn.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Lc=function(){kt.current=!0},Dd=function(wn){var nn=Number(wn.currentTarget.getAttribute("data-option-index"));It(wn,un[nn],"select-option"),kt.current=!1},fi=function(wn){return function(nn){var Lr=Dt.slice();Lr.splice(wn,1),di(nn,Lr,"remove-option",{option:Dt[wn]})}},Ns=function(wn){Je?Qi(wn,"toggleInput"):Uo(wn)},_u=function(wn){wn.target.getAttribute("id")!==Ae&&wn.preventDefault()},kd=function(){_e.current.focus(),ie&&Ge.current&&_e.current.selectionEnd-_e.current.selectionStart===0&&_e.current.select(),Ge.current=!1},ou=function(wn){(Zn===""||!Je)&&Ns(wn)},As=W&&Zn.length>0;As=As||(ce?Dt.length>0:Dt!==null);var au=un;return U&&(au=un.reduce(function(Xn,wn,nn){var Lr=U(wn);return Xn.length>0&&Xn[Xn.length-1].group===Lr?Xn[Xn.length-1].options.push(wn):Xn.push({key:nn,index:nn,group:Lr,options:[wn]}),Xn},[])),{getRootProps:function(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Y({"aria-owns":St?"".concat(Ae,"-popup"):null,role:"combobox","aria-expanded":St},wn,{onKeyDown:xa(wn),onMouseDown:_u,onClick:kd})},getInputLabelProps:function(){return{id:"".concat(Ae,"-label"),htmlFor:Ae}},getInputProps:function(){return{id:Ae,value:Zn,onBlur:La,onFocus:Xo,onChange:ad,onMouseDown:ou,"aria-activedescendant":St?"":null,"aria-autocomplete":n?"both":"list","aria-controls":St?"".concat(Ae,"-popup"):null,autoComplete:"off",ref:_e,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Jr}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:Ns}},getTagProps:function(wn){var nn=wn.index;return{key:nn,"data-tag-index":nn,tabIndex:-1,onDelete:fi(nn)}},getListboxProps:function(){return{role:"listbox",id:"".concat(Ae,"-popup"),"aria-labelledby":"".concat(Ae,"-label"),ref:$o,onMouseDown:function(nn){nn.preventDefault()}}},getOptionProps:function(wn){var nn=wn.index,Lr=wn.option,Os=(ce?Dt:[Dt]).some(function(wa){return wa!=null&&$(Lr,wa)}),Va=j?j(Lr):!1;return{key:nn,tabIndex:-1,role:"option",id:"".concat(Ae,"-option-").concat(nn),onMouseOver:Lu,onClick:Dd,onTouchStart:Lc,"data-option-index":nn,"aria-disabled":Va,"aria-selected":Os}},id:Ae,inputValue:Zn,value:Dt,dirty:As,popupOpen:St,focused:Fe||ze!==-1,anchorEl:we,setAnchorEl:ve,focusedTag:ze,groupedOptions:au}}var jEn=function(t){var n;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:t.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:Y({},t.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:t.palette.text.secondary,padding:"14px 16px"},noOptions:{color:t.palette.text.secondary,padding:"14px 16px"},option:(n={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},tn(n,t.breakpoints.up("sm"),{minHeight:"auto"}),tn(n,'&[aria-selected="true"]',{backgroundColor:t.palette.action.selected}),tn(n,'&[data-focus="true"]',{backgroundColor:t.palette.action.hover}),tn(n,"&:active",{backgroundColor:t.palette.action.selected}),tn(n,'&[aria-disabled="true"]',{opacity:t.palette.action.disabledOpacity,pointerEvents:"none"}),n),groupLabel:{backgroundColor:t.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}};function HEn(e){e.anchorEl,e.open;var t=fn(e,["anchorEl","open"]);return v.createElement("div",t)}var VEn=v.createElement(Qat,{fontSize:"small"}),GEn=v.createElement(WEn,null),$En=v.forwardRef(function(t,n){t.autoComplete,t.autoHighlight,t.autoSelect,t.blurOnSelect;var r=t.ChipProps,i=t.classes,o=t.className,a=t.clearOnBlur;a===void 0&&t.freeSolo,t.clearOnEscape;var s=t.clearText,l=s===void 0?"Clear":s,c=t.closeIcon,u=c===void 0?VEn:c,d=t.closeText,p=d===void 0?"Close":d;t.debug;var h=t.defaultValue;h===void 0&&t.multiple;var g=t.disableClearable,m=g===void 0?!1:g;t.disableCloseOnSelect;var b=t.disabled,y=b===void 0?!1:b;t.disabledItemsFocusable,t.disableListWrap;var M=t.disablePortal,C=M===void 0?!1:M;t.filterOptions,t.filterSelectedOptions;var x=t.forcePopupIcon,w=x===void 0?"auto":x,S=t.freeSolo,A=S===void 0?!1:S,z=t.fullWidth,O=z===void 0?!1:z,T=t.getLimitTagsText,R=T===void 0?function(St){return"+".concat(St)}:T;t.getOptionDisabled;var P=t.getOptionLabel,F=P===void 0?function(St){return St}:P;t.getOptionSelected;var N=t.groupBy,L=t.handleHomeEndKeys;L===void 0&&t.freeSolo,t.id,t.includeInputInList,t.inputValue;var W=t.limitTags,j=W===void 0?-1:W,V=t.ListboxComponent,G=V===void 0?"ul":V,q=t.ListboxProps,$=t.loading,U=$===void 0?!1:$,X=t.loadingText,Q=X===void 0?"Loading…":X,re=t.multiple,ee=re===void 0?!1:re,se=t.noOptionsText,pe=se===void 0?"No options":se;t.onChange,t.onClose,t.onHighlightChange,t.onInputChange,t.onOpen,t.open,t.openOnFocus;var te=t.openText,ce=te===void 0?"Open":te;t.options;var oe=t.PaperComponent,ae=oe===void 0?Pt:oe,ne=t.PopperComponent,le=ne===void 0?Dat:ne,he=t.popupIcon,be=he===void 0?GEn:he,me=t.renderGroup,Me=t.renderInput,Oe=t.renderOption,de=t.renderTags,ie=t.selectOnFocus;ie===void 0&&t.freeSolo;var ue=t.size,Ae=ue===void 0?"medium":ue;t.value;var Ce=fn(t,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"]),Ee=C?HEn:le,Ge=BEn(Y({},t,{componentName:"Autocomplete"})),_e=Ge.getRootProps,Ie=Ge.getInputProps,Le=Ge.getInputLabelProps,we=Ge.getPopupIndicatorProps,ve=Ge.getClearProps,De=Ge.getTagProps,ze=Ge.getListboxProps,Ve=Ge.getOptionProps,Ke=Ge.value,et=Ge.dirty,it=Ge.id,Ft=Ge.popupOpen,Dt=Ge.focused,Qn=Ge.focusedTag,ir=Ge.anchorEl,Hn=Ge.setAnchorEl,Zn=Ge.inputValue,Br=Ge.groupedOptions,vr;if(ee&&Ke.length>0){var Fe=function(un){return Y({className:$t(i.tag,Ae==="small"&&i.tagSizeSmall),disabled:y},De(un))};de?vr=de(Ke,Fe):vr=Ke.map(function(St,un){return v.createElement(gM,Y({label:F(St),size:Ae},Fe({index:un}),r))})}if(j>-1&&Array.isArray(vr)){var He=vr.length-j;!Dt&&He>0&&(vr=vr.splice(0,j),vr.push(v.createElement("span",{className:i.tag,key:vr.length},R(He))))}var Xe=function(un){return v.createElement("li",{key:un.key},v.createElement(Bv,{className:i.groupLabel,component:"div"},un.group),v.createElement("ul",{className:i.groupUl},un.children))},ct=me||Xe,lt=Oe||F,Je=function(un,Un){var Yr=Ve({option:un,index:Un});return v.createElement("li",Y({},Yr,{className:i.option}),lt(un,{selected:Yr["aria-selected"],inputValue:Zn}))},ft=!m&&!y,Tt=(!A||w===!0)&&w!==!1;return v.createElement(v.Fragment,null,v.createElement("div",Y({ref:n,className:$t(i.root,o,Dt&&i.focused,O&&i.fullWidth,ft&&i.hasClearIcon,Tt&&i.hasPopupIcon)},_e(Ce)),Me({id:it,disabled:y,fullWidth:!0,size:Ae==="small"?"small":void 0,InputLabelProps:Le(),InputProps:{ref:Hn,className:i.inputRoot,startAdornment:vr,endAdornment:v.createElement("div",{className:i.endAdornment},ft?v.createElement(bn,Y({},ve(),{"aria-label":l,title:l,className:$t(i.clearIndicator,et&&i.clearIndicatorDirty)}),u):null,Tt?v.createElement(bn,Y({},we(),{disabled:y,"aria-label":Ft?p:ce,title:Ft?p:ce,className:$t(i.popupIndicator,Ft&&i.popupIndicatorOpen)}),be):null)},inputProps:Y({className:$t(i.input,Qn===-1&&i.inputFocused),disabled:y},Ie())})),Ft&&ir?v.createElement(Ee,{className:$t(i.popper,C&&i.popperDisablePortal),style:{width:ir?ir.clientWidth:null},role:"presentation",anchorEl:ir,open:!0},v.createElement(ae,{className:i.paper},U&&Br.length===0?v.createElement("div",{className:i.loading},Q):null,Br.length===0&&!A&&!U?v.createElement("div",{className:i.noOptions},pe):null,Br.length>0?v.createElement(G,Y({className:i.listbox},ze(),q),Br.map(function(St,un){return N?ct({key:St.key,group:St.group,children:St.options.map(function(Un,Yr){return Je(Un,St.index+Yr)})}):Je(St,un)})):null)):null)});const Ki=or(jEn,{name:"MuiAutocomplete"})($En);var Out=v.createContext({}),UEn=function(t){return{root:{listStyle:"none",margin:0,padding:0,outline:0,WebkitTapHighlightColor:"transparent","&:focus > $content $label":{backgroundColor:t.palette.action.hover},"&$selected > $content $label":{backgroundColor:Ho(t.palette.primary.main,t.palette.action.selectedOpacity)},"&$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:Ho(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},expanded:{},selected:{},group:{margin:0,padding:0,marginLeft:17},content:{width:"100%",display:"flex",alignItems:"center",cursor:"pointer"},iconContainer:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},label:{width:"100%",paddingLeft:4,position:"relative","&:hover":{backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}},XEn=function(t){return t&&t.length===1&&t.match(/\S/)},YEn=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.collapseIcon,s=t.endIcon,l=t.expandIcon,c=t.icon,u=t.label,d=t.nodeId,p=t.onClick,h=t.onLabelClick,g=t.onIconClick,m=t.onFocus,b=t.onKeyDown,y=t.onMouseDown,M=t.TransitionComponent,C=M===void 0?RMe:M,x=t.TransitionProps,w=fn(t,["children","classes","className","collapseIcon","endIcon","expandIcon","icon","label","nodeId","onClick","onLabelClick","onIconClick","onFocus","onKeyDown","onMouseDown","TransitionComponent","TransitionProps"]),S=v.useContext(Out),A=S.icons,z=S.focus,O=S.focusFirstNode,T=S.focusLastNode,R=S.focusNextNode,P=S.focusPreviousNode,F=S.focusByFirstCharacter,N=S.selectNode,L=S.selectRange,W=S.selectNextNode,j=S.selectPreviousNode,V=S.rangeSelectToFirst,G=S.rangeSelectToLast,q=S.selectAllNodes,$=S.expandAllSiblings,U=S.toggleExpansion,X=S.isExpanded,Q=S.isFocused,re=S.isSelected,ee=S.isTabbable,se=S.multiSelect,pe=S.getParent,te=S.mapFirstChar,ce=S.addNodeToNodeMap,oe=S.removeNodeFromNodeMap,ae=v.useRef(null),ne=v.useRef(null),le=Ba(ae,n),he=c,be=!!(Array.isArray(r)?r.length:r),me=X?X(d):!1,Me=Q?Q(d):!1,Oe=ee?ee(d):!1,de=re?re(d):!1,ie=A||{},ue=ql();he||(be?(me?he=a||ie.defaultCollapseIcon:he=l||ie.defaultExpandIcon,he||(he=ie.defaultParentIcon)):he=s||ie.defaultEndIcon);var Ae=function(ve){Me||z(d);var De=se&&(ve.shiftKey||ve.ctrlKey||ve.metaKey);be&&!ve.defaultPrevented&&!(De&&X(d))&&U(ve,d),De?ve.shiftKey?L(ve,{end:d}):N(ve,d,!0):N(ve,d),p&&p(ve)},Ce=function(ve){(ve.shiftKey||ve.ctrlKey||ve.metaKey)&&ve.preventDefault(),y&&y(ve)},Ee=function(ve){return be&&(me?R(d):U(ve)),!0},Ge=function(ve){if(me)return U(ve,d),!0;var De=pe(d);return De?(z(De),!0):!1},_e=function(ve){var De=!1,ze=ve.key;if(!(ve.altKey||ve.currentTarget!==ve.target)){var Ve=ve.ctrlKey||ve.metaKey;switch(ze){case" ":ae.current===ve.currentTarget&&(se&&ve.shiftKey?De=L(ve,{end:d}):se?De=N(ve,d,!0):De=N(ve,d)),ve.stopPropagation();break;case"Enter":ae.current===ve.currentTarget&&be&&(U(ve),De=!0),ve.stopPropagation();break;case"ArrowDown":se&&ve.shiftKey&&W(ve,d),R(d),De=!0;break;case"ArrowUp":se&&ve.shiftKey&&j(ve,d),P(d),De=!0;break;case"ArrowRight":ue.direction==="rtl"?De=Ge(ve):De=Ee(ve);break;case"ArrowLeft":ue.direction==="rtl"?De=Ee(ve):De=Ge(ve);break;case"Home":se&&Ve&&ve.shiftKey&&V(ve,d),O(),De=!0;break;case"End":se&&Ve&&ve.shiftKey&&G(ve,d),T(),De=!0;break;default:ze==="*"?($(ve,d),De=!0):se&&Ve&&ze.toLowerCase()==="a"?De=q(ve):!Ve&&!ve.shiftKey&&XEn(ze)&&(F(d,ze),De=!0)}De&&(ve.preventDefault(),ve.stopPropagation()),b&&b(ve)}},Ie=function(ve){!Me&&ve.currentTarget===ve.target&&z(d),m&&m(ve)};v.useEffect(function(){if(ce){var we=[];v.Children.forEach(r,function(ve){v.isValidElement(ve)&&ve.props.nodeId&&we.push(ve.props.nodeId)}),ce(d,we)}},[r,d,ce]),v.useEffect(function(){if(oe)return function(){oe(d)}},[d,oe]),v.useEffect(function(){te&&u&&te(d,ne.current.textContent.substring(0,1).toLowerCase())},[te,d,u]),v.useEffect(function(){Me&&ae.current.focus()},[Me]);var Le;return se?Le=de:de&&(Le=!0),v.createElement("li",Y({className:$t(i.root,o,me&&i.expanded,de&&i.selected),role:"treeitem",onKeyDown:_e,onFocus:Ie,"aria-expanded":be?me:null,"aria-selected":Le,ref:le,tabIndex:Oe?0:-1},w),v.createElement("div",{className:i.content,onClick:Ae,onMouseDown:Ce,ref:ne},v.createElement("div",{onClick:g,className:i.iconContainer},he),v.createElement(vt,{onClick:h,component:"div",className:i.label},u)),r&&v.createElement(C,Y({unmountOnExit:!0,className:i.group,in:me,component:"ul",role:"group"},x),r))});const KEn=or(UEn,{name:"MuiTreeItem"})(YEn);var QEn={root:{padding:0,margin:0,listStyle:"none"}};function ZEn(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!0;return!1}var Uke=function(t,n,r){for(var i=n;i<t.length;i+=1)if(r===t[i])return i;return-1},JEn=[],eRn=[],tRn=v.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.defaultCollapseIcon,s=t.defaultEndIcon,l=t.defaultExpanded,c=l===void 0?JEn:l,u=t.defaultExpandIcon,d=t.defaultParentIcon,p=t.defaultSelected,h=p===void 0?eRn:p,g=t.disableSelection,m=g===void 0?!1:g,b=t.multiSelect,y=b===void 0?!1:b,M=t.expanded,C=t.onNodeSelect,x=t.onNodeToggle,w=t.selected,S=fn(t,["children","classes","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disableSelection","multiSelect","expanded","onNodeSelect","onNodeToggle","selected"]),A=v.useState(null),z=A[0],O=A[1],T=v.useState(null),R=T[0],P=T[1],F=v.useRef({}),N=v.useRef({}),L=v.useRef([]),W=cb({controlled:M,default:c,name:"TreeView",state:"expanded"}),j=Xu(W,2),V=j[0],G=j[1],q=cb({controlled:w,default:h,name:"TreeView",state:"selected"}),$=Xu(q,2),U=$[0],X=$[1],Q=v.useCallback(function(Fe){return Array.isArray(V)?V.indexOf(Fe)!==-1:!1},[V]),re=v.useCallback(function(Fe){return Array.isArray(U)?U.indexOf(Fe)!==-1:U===Fe},[U]),ee=function(He){return z===He},se=function(He){return R===He},pe=function(He){var Xe=L.current.indexOf(He);return Xe!==-1&&Xe+1<L.current.length?L.current[Xe+1]:null},te=function(He){var Xe=L.current.indexOf(He);return Xe!==-1&&Xe-1>=0?L.current[Xe-1]:null},ce=function(){return L.current[L.current.length-1]},oe=function(){return L.current[0]},ae=function(He){return F.current[He].parent},ne=function(He,Xe){var ct=L.current.indexOf(He),lt=L.current.indexOf(Xe),Je=Math.min(ct,lt),ft=Math.max(ct,lt);return L.current.slice(Je,ft+1)},le=function(He){He&&(O(He),P(He))},he=function(He){return le(pe(He))},be=function(He){return le(te(He))},me=function(){return le(oe())},Me=function(){return le(ce())},Oe=function(He,Xe){var ct,lt,Je=Xe.toLowerCase(),ft=[],Tt=[];Object.keys(N.current).forEach(function(St){var un=N.current[St],Un=F.current[St],Yr=Un.parent?Q(Un.parent):!0;Yr&&(ft.push(St),Tt.push(un))}),ct=ft.indexOf(He)+1,ct===F.current.length&&(ct=0),lt=Uke(Tt,ct,Je),lt===-1&&(lt=Uke(Tt,0,Je)),lt>-1&&le(ft[lt])},de=function(He){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,ct;V.indexOf(Xe)!==-1?(ct=V.filter(function(lt){return lt!==Xe}),O(function(lt){var Je=F.current[lt];return lt&&(Je&&Je.parent?Je.parent.id:null)===Xe?Xe:lt})):ct=[Xe].concat(V),x&&x(He,ct),G(ct)},ie=function(He,Xe){var ct=F.current[Xe],lt=F.current[ct.parent],Je;if(lt)Je=lt.children.filter(function(St){return!Q(St)});else{var ft=F.current[-1].children;Je=ft.filter(function(St){return!Q(St)})}var Tt=V.concat(Je);Je.length>0&&(G(Tt),x&&x(He,Tt))},ue=v.useRef(null),Ae=v.useRef(!1),Ce=v.useRef([]),Ee=function(He,Xe){var ct=U,lt=Xe.start,Je=Xe.next,ft=Xe.current;!Je||!ft||(Ce.current.indexOf(ft)===-1&&(Ce.current=[]),Ae.current?Ce.current.indexOf(Je)!==-1?(ct=ct.filter(function(Tt){return Tt===lt||Tt!==ft}),Ce.current=Ce.current.filter(function(Tt){return Tt===lt||Tt!==ft})):(ct.push(Je),Ce.current.push(Je)):(ct.push(Je),Ce.current.push(ft,Je)),C&&C(He,ct),X(ct))},Ge=function(He,Xe){var ct=U,lt=Xe.start,Je=Xe.end;Ae.current&&(ct=U.filter(function(St){return Ce.current.indexOf(St)===-1}));var ft=ne(lt,Je);Ce.current=ft;var Tt=ct.concat(ft);Tt=Tt.filter(function(St,un){return Tt.indexOf(St)===un}),C&&C(He,Tt),X(Tt)},_e=function(He,Xe){var ct=[];U.indexOf(Xe)!==-1?ct=U.filter(function(lt){return lt!==Xe}):ct=[Xe].concat(U),C&&C(He,ct),X(ct)},Ie=function(He,Xe){var ct=y?[Xe]:Xe;C&&C(He,ct),X(ct)},Le=function(He,Xe){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Xe?(ct?_e(He,Xe):Ie(He,Xe),ue.current=Xe,Ae.current=!1,Ce.current=[],!0):!1},we=function(He,Xe){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,lt=Xe.start,Je=lt===void 0?ue.current:lt,ft=Xe.end,Tt=Xe.current;return ct?Ee(He,{start:Je,next:ft,current:Tt}):Ge(He,{start:Je,end:ft}),Ae.current=!0,!0},ve=function(He,Xe){ue.current||(ue.current=Xe);var ct=Ae.current?ue.current:Xe;return we(He,{start:ct,end:oe()})},De=function(He,Xe){ue.current||(ue.current=Xe);var ct=Ae.current?ue.current:Xe;return we(He,{start:ct,end:ce()})},ze=function(He,Xe){return we(He,{end:pe(Xe),current:Xe},!0)},Ve=function(He,Xe){return we(He,{end:te(Xe),current:Xe},!0)},Ke=function(He){return we(He,{start:oe(),end:ce()})},et=function(He,Xe){var ct=F.current[He];F.current[He]=Y({},ct,{children:Xe,id:He}),Xe.forEach(function(lt){var Je=F.current[lt];F.current[lt]=Y({},Je,{parent:He,id:lt})})},it=v.useCallback(function(Fe){var He=F.current[Fe],Xe=[];return He&&(Xe.push(Fe),He.children&&(Xe.concat(He.children),He.children.forEach(function(ct){Xe.concat(it(ct))}))),Xe},[]),Ft=v.useCallback(function(Fe){var He=Y({},N.current);Fe.forEach(function(Xe){He[Xe]&&delete He[Xe]}),N.current=He},[]),Dt=v.useCallback(function(Fe){var He=it(Fe);Ft(He);var Xe=Y({},F.current);He.forEach(function(ct){var lt=Xe[ct];if(lt){if(lt.parent){var Je=Xe[lt.parent];if(Je&&Je.children){var ft=Je.children.filter(function(Tt){return Tt!==ct});Xe[lt.parent]=Y({},Je,{children:ft})}}delete Xe[ct]}}),F.current=Xe,P(function(ct){return ct===Fe?null:ct})},[it,Ft]),Qn=function(He,Xe){N.current[He]=Xe},ir=v.useRef([]),Hn=v.useState(!1),Zn=Hn[0],Br=Hn[1];v.useEffect(function(){var Fe=[];v.Children.forEach(r,function(He){v.isValidElement(He)&&He.props.nodeId&&Fe.push(He.props.nodeId)}),ZEn(ir.current,Fe)&&(F.current[-1]={parent:null,children:Fe},Fe.forEach(function(He,Xe){Xe===0&&O(He)}),L.current=F.current[-1].children,ir.current=Fe,Br(!0))},[r]),v.useEffect(function(){var Fe=function He(Xe){for(var ct=[],lt=0;lt<Xe.length;lt+=1){var Je=Xe[lt];ct.push(Je);var ft=F.current[Je].children;Q(Je)&&ft&&(ct=ct.concat(He(ft)))}return ct};Zn&&(L.current=Fe(F.current[-1].children))},[V,Zn,Q,r]);var vr=function(){return!1};return v.createElement(Out.Provider,{value:{icons:{defaultCollapseIcon:a,defaultExpandIcon:u,defaultParentIcon:d,defaultEndIcon:s},focus:le,focusFirstNode:me,focusLastNode:Me,focusNextNode:he,focusPreviousNode:be,focusByFirstCharacter:Oe,expandAllSiblings:ie,toggleExpansion:de,isExpanded:Q,isFocused:se,isSelected:re,selectNode:m?vr:Le,selectRange:m?vr:we,selectNextNode:m?vr:ze,selectPreviousNode:m?vr:Ve,rangeSelectToFirst:m?vr:ve,rangeSelectToLast:m?vr:De,selectAllNodes:m?vr:Ke,isTabbable:ee,multiSelect:y,getParent:ae,mapFirstChar:Qn,addNodeToNodeMap:et,removeNodeFromNodeMap:Dt}},v.createElement("ul",Y({role:"tree","aria-multiselectable":y,className:$t(i.root,o),ref:n},S),r))});const nRn=or(QEn,{name:"MuiTreeView"})(tRn);var S4={},Xke;function rRn(){if(Xke)return S4;Xke=1;var e=ri(),t=ii();Object.defineProperty(S4,"__esModule",{value:!0}),S4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle");return S4.default=i,S4}var iRn=rRn();const oRn=qn(iRn);var $ie,Yke;function aRn(){if(Yke)return $ie;Yke=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var s,l,c;if(Array.isArray(o)){if(s=o.length,s!=a.length)return!1;for(l=s;l--!==0;)if(!i(o[l],a[l]))return!1;return!0}var u;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(u=o.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=o.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(u=o.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(s=o.length,s!=a.length)return!1;for(l=s;l--!==0;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(c=Object.keys(o),s=c.length,s!==Object.keys(a).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(e&&o instanceof Element)return!1;for(l=s;l--!==0;)if(!((c[l]==="_owner"||c[l]==="__v"||c[l]==="__o")&&o.$$typeof)&&!i(o[c[l]],a[c[l]]))return!1;return!0}return o!==o&&a!==a}return $ie=function(a,s){try{return i(a,s)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},$ie}var sRn=aRn();const zut=qn(sRn);var Uie,Kke;function lRn(){if(Kke)return Uie;Kke=1;var e=function(t,n,r,i,o,a,s,l){if(!t){var c;if(n===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,l],d=0;c=new Error(n.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};return Uie=e,Uie}var cRn=lRn();const Qke=qn(cRn);var Xie,Zke;function uRn(){return Zke||(Zke=1,Xie=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<a.length;c++){var u=a[c];if(!l(u))return!1;var d=t[u],p=n[u];if(o=r?r.call(i,d,p,u):void 0,o===!1||o===void 0&&d!==p)return!1}return!0}),Xie}var dRn=uRn();const pRn=qn(dRn);var Tut=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Tut||{}),Yie={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Jke=Object.values(Tut),axe={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},hRn=Object.entries(axe).reduce((e,[t,n])=>(e[n]=t,e),{}),em="data-rh",yI={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},MI=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},fRn=e=>{let t=MI(e,"title");const n=MI(e,yI.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=MI(e,yI.DEFAULT_TITLE);return t||r||void 0},gRn=e=>MI(e,yI.ON_CHANGE_CLIENT_STATE)||(()=>{}),Kie=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),mRn=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const s=i[o].toLowerCase();if(e.indexOf(s)!==-1&&r[s])return n.concat(r)}}return n},[]),vRn=e=>console&&typeof console.warn=="function"&&console.warn(e),A4=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&vRn(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const a={};o.filter(l=>{let c;const u=Object.keys(l);for(let p=0;p<u.length;p+=1){const h=u[p],g=h.toLowerCase();t.indexOf(g)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(g==="rel"&&l[g].toLowerCase()==="stylesheet")&&(c=g),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(c=h)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),a[c]||(a[c]={}),r[c][d]?!1:(a[c][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const s=Object.keys(a);for(let l=0;l<s.length;l+=1){const c=s[l],u={...r[c],...a[c]};r[c]=u}return i},[]).reverse()},bRn=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},yRn=e=>({baseTag:mRn(["href"],e),bodyAttributes:Kie("bodyAttributes",e),defer:MI(e,yI.DEFER),encode:MI(e,yI.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Kie("htmlAttributes",e),linkTags:A4("link",["rel","href"],e),metaTags:A4("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:A4("noscript",["innerHTML"],e),onChangeClientState:gRn(e),scriptTags:A4("script",["src","innerHTML"],e),styleTags:A4("style",["cssText"],e),title:fRn(e),titleAttributes:Kie("titleAttributes",e),prioritizeSeoTags:bRn(e,yI.PRIORITIZE_SEO_TAGS)}),Eut=e=>Array.isArray(e)?e.join(""):e,MRn=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Qie=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(MRn(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},eLe=(e,t)=>({...e,[t]:void 0}),CRn=["noscript","script","style"],Qfe=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Rut=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),xRn=(e,t,n,r)=>{const i=Rut(n),o=Eut(t);return i?`<${e} ${em}="true" ${i}>${Qfe(o,r)}</${e}>`:`<${e} ${em}="true">${Qfe(o,r)}</${e}>`},wRn=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,a=Object.keys(o).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof o[u]>"u"?u:`${u}="${Qfe(o[u],n)}"`;return c?`${c} ${d}`:d},""),s=o.innerHTML||o.cssText||"",l=CRn.indexOf(e)===-1;return`${r}<${e} ${em}="true" ${a}${l?"/>":`>${s}</${e}>`}`},""),Iut=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=axe[r];return n[i||r]=e[r],n},t),SRn=(e,t,n)=>{const r={key:t,[em]:!0},i=Iut(n,r);return[E.createElement("title",i,t)]},v7=(e,t)=>t.map((n,r)=>{const i={key:r,[em]:!0};return Object.keys(n).forEach(o=>{const s=axe[o]||o;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[o]}),E.createElement(e,i)}),Uh=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>SRn(e,t.title,t.titleAttributes),toString:()=>xRn(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Iut(t),toString:()=>Rut(t)};default:return{toComponent:()=>v7(e,t),toString:()=>wRn(e,t,n)}}},ARn=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=Qie(e,Yie.meta),o=Qie(t,Yie.link),a=Qie(n,Yie.script);return{priorityMethods:{toComponent:()=>[...v7("meta",i.priority),...v7("link",o.priority),...v7("script",a.priority)],toString:()=>`${Uh("meta",i.priority,r)} ${Uh("link",o.priority,r)} ${Uh("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}},ORn=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:d,scriptTags:p}=ARn(e)),{priority:h,base:Uh("base",t,r),bodyAttributes:Uh("bodyAttributes",n,r),htmlAttributes:Uh("htmlAttributes",i,r),link:Uh("link",u,r),meta:Uh("meta",d,r),noscript:Uh("noscript",o,r),script:Uh("script",p,r),style:Uh("style",a,r),title:Uh("title",{title:s,titleAttributes:l},r)}},Zfe=ORn,O8=[],Put=!!(typeof window<"u"&&window.document&&window.document.createElement),Jfe=class{instances=[];canUseDOM=Put;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?O8:this.instances,add:e=>{(this.canUseDOM?O8:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?O8:this.instances).indexOf(e);(this.canUseDOM?O8:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Zfe({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},zRn={},Dut=E.createContext(zRn),kut=class Lut extends v.Component{static canUseDOM=Put;helmetData;constructor(t){super(t),this.helmetData=new Jfe(this.props.context||{},Lut.canUseDOM)}render(){return E.createElement(Dut.Provider,{value:this.helmetData.value},this.props.children)}},EE=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${em}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,d=typeof s[u]>"u"?"":s[u];l.setAttribute(c,d)}l.setAttribute(em,"true"),i.some((c,u)=>(a=u,l.isEqualNode(c)))?i.splice(a,1):o.push(l)}),i.forEach(s=>s.parentNode?.removeChild(s)),o.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:o}},ege=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(em),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=o.indexOf(s);c!==-1&&o.splice(c,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(em):n.getAttribute(em)!==a.join(",")&&n.setAttribute(em,a.join(","))},TRn=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Eut(e)),ege("title",t)},tLe=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:p}=e;ege("body",r),ege("html",i),TRn(d,p);const h={baseTag:EE("base",n),linkTags:EE("link",o),metaTags:EE("meta",a),noscriptTags:EE("noscript",s),scriptTags:EE("script",c),styleTags:EE("style",u)},g={},m={};Object.keys(h).forEach(b=>{const{newTags:y,oldTags:M}=h[b];y.length&&(g[b]=y),M.length&&(m[b]=h[b].oldTags)}),t&&t(),l(e,g,m)},O4=null,ERn=e=>{O4&&cancelAnimationFrame(O4),e.defer?O4=requestAnimationFrame(()=>{tLe(e,()=>{O4=null})}):(tLe(e),O4=null)},RRn=ERn,nLe=class extends v.Component{rendered=!1;shouldComponentUpdate(e){return!pRn(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=yRn(e.get().map(i=>{const o={...i.props};return delete o.context,o}));kut.canUseDOM?RRn(r):Zfe&&(n=Zfe(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},IRn=class extends v.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!zut(eLe(this.props,"helmetData"),eLe(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Qke(Jke.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Jke.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Qke(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return E.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,a=Object.keys(o).reduce((l,c)=>(l[hRn[c]||c]=o[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:t=this.mapObjectTypeChildren(r,t,a,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Jfe)){const i=r;r=new Jfe(i.context,!0),delete n.helmetData}return r?E.createElement(nLe,{...n,context:r.value}):E.createElement(Dut.Consumer,null,i=>E.createElement(nLe,{...n,context:i}))}},z4={},rLe;function PRn(){if(rLe)return z4;rLe=1;var e=ri(),t=ii();Object.defineProperty(z4,"__esModule",{value:!0}),z4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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 19l-4.99-5zm-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 14z"}),"Search");return z4.default=i,z4}var DRn=PRn();const N3=qn(DRn);var E0=E.createContext({}),sB=(e,t,n,r)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const o=e.newAgStackInstance();let a,s,l=!1;return o.then(c=>{if(l){t.destroyBean(c);return}a=c,s=a.getGui(),n.appendChild(s),iLe(r,a)}),()=>{l=!0,a&&(s?.parentElement?.removeChild(s),t.destroyBean(a),r&&iLe(r,void 0))}},iLe=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const n=e;n.current=t}},tf=(...e)=>e.filter(n=>n!=null&&n!=="").join(" "),bf=class _ut{constructor(...t){this.classesMap={},t.forEach(n=>{this.classesMap[n]=!0})}setClass(t,n){if(!!this.classesMap[t]==n)return this;const i=new _ut;return i.classesMap={...this.classesMap},i.classesMap[t]=n,i}toString(){return Object.keys(this.classesMap).filter(n=>this.classesMap[n]).join(" ")}},BD=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,n=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===n()},tge=E.version?.split(".")[0],kRn=tge==="16"||tge==="17";function LRn(){return tge==="19"}var b7=!1;function _Rn(e){return b7||setTimeout(()=>b7=!1,0),b7=!0,e()}var HW=(e,t)=>{!kRn&&e&&!b7?kR.flushSync(t):t()};function A9(e,t,n){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(n||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const r=[],i=[],o=new Map,a=new Map;for(let s=0;s<t.length;s++){const l=t[s];a.set(l.instanceId,l)}for(let s=0;s<e.length;s++){const l=e[s];o.set(l.instanceId,l),a.has(l.instanceId)&&r.push(l)}for(let s=0;s<t.length;s++){const l=t[s],c=l.instanceId;o.has(c)||i.push(l)}return r.length===e.length&&i.length===0?e:r.length===0&&i.length===t.length?t:r.length===0?i:i.length===0?r:[...r,...i]}var Nut=v.forwardRef((e,t)=>{const{registry:n,context:r}=v.useContext(E0),i=v.useRef(null),o=v.useRef(null),a=v.useRef(null),s=v.useRef(null),l=v.useRef(null),c=v.useRef(),[u,d]=v.useState(),[p,h]=v.useState(),[g,m]=v.useState(),[b,y]=v.useState(()=>new bf),[M,C]=v.useState(()=>new bf("ag-hidden")),[x,w]=v.useState(()=>new bf("ag-hidden")),[S,A]=v.useState(()=>new bf("ag-invisible"));v.useImperativeHandle(t,()=>({refresh(){return!1}})),v.useLayoutEffect(()=>sB(u,r,o.current),[u]);const z=v.useCallback(j=>{if(i.current=j,!j){c.current=r.destroyBean(c.current);return}const V={setInnerRenderer:(q,$)=>{d(q),m($)},setChildCount:q=>h(q),toggleCss:(q,$)=>y(U=>U.setClass(q,$)),setContractedDisplayed:q=>w($=>$.setClass("ag-hidden",!q)),setExpandedDisplayed:q=>C($=>$.setClass("ag-hidden",!q)),setCheckboxVisible:q=>A($=>$.setClass("ag-invisible",!q)),setCheckboxSpacing:q=>A($=>$.setClass("ag-group-checkbox-spacing",q))},G=n.createDynamicBean("groupCellRendererCtrl",!0);G&&(c.current=r.createBean(G),c.current.init(V,j,a.current,s.current,l.current,Nut,e))},[]),O=v.useMemo(()=>`ag-cell-wrapper ${b.toString()}`,[b]),T=v.useMemo(()=>`ag-group-expanded ${M.toString()}`,[M]),R=v.useMemo(()=>`ag-group-contracted ${x.toString()}`,[x]),P=v.useMemo(()=>`ag-group-checkbox ${S.toString()}`,[S]),F=u&&u.componentFromFramework,N=F?u.componentClass:void 0,L=u==null&&g!=null,W=Df(g);return E.createElement("span",{className:O,ref:z,...e.colDef?{}:{role:c.current?.getCellAriaRole()}},E.createElement("span",{className:T,ref:s}),E.createElement("span",{className:R,ref:l}),E.createElement("span",{className:P,ref:a}),E.createElement("span",{className:"ag-group-value",ref:o},L&&E.createElement(E.Fragment,null,W),F&&E.createElement(N,{...u.params})),E.createElement("span",{className:"ag-group-child-count"},p))}),oLe=Nut,sxe=v.createContext({setMethods:()=>{}}),NRn=e=>{const{initialProps:t,addUpdateCallback:n,CustomComponentClass:r,setMethods:i}=e,[{key:o,...a},s]=v.useState(t);return v.useEffect(()=>{n(l=>s(l))},[]),E.createElement(sxe.Provider,{value:{setMethods:i}},E.createElement(r,{key:o,...a}))},FRn=v.memo(NRn),WRn=0;function aLe(){return`agPortalKey_${++WRn}`}var Fut=class{constructor(e,t,n,r){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=n,this.suppressFallbackMethods=!!r,this.statelessComponent=this.isStateless(this.reactComponent),this.key=aLe(),this.portalKey=aLe(),this.instanceCreated=this.isStatelessComponent()?Dr.resolve(!1):new Dr(i=>{this.resolveInstanceCreated=i})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const n=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!n){setTimeout(()=>this.callMethod(e,t));return}const r=n[e];if(r)return r.apply(n,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new Dr(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=Bl.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return v.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const n=this[`${e}Component`];if(!this.suppressFallbackMethods&&n)return n.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function lxe(e,t,n){e.forEach(r=>{const i=t[r];i&&(n[r]=i)})}var km=class extends Fut{constructor(){super(...arguments),this.awaitUpdateCallback=new Dr(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=FRn}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:n=>this.setMethods(n),addUpdateCallback:n=>{this.updateCallback=()=>(n(this.getProps()),new Dr(r=>{setTimeout(()=>{r()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,lxe(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Dr(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},qRn=class extends km{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},BRn=class extends km{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},jRn=class extends km{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:n,shake:r}=this;return e.label=t,e.icon=n,e.shake=r,e}},HRn=class extends km{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new Dr(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback()}updateModel(e){this.setModel(e).then(()=>this.sourceParams.filterChangedCallback())}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,delete e.filterModifiedCallback,e}};function Wut(e,t){e.parentFilterInstance(n=>{(n.setModel(t)||Dr.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var VRn=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=n=>this.updateModel(n)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){lxe(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),Wut(this.floatingFilterParams,e)}},GRn=class extends km{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),Wut(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},$Rn=class extends km{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},URn=class extends km{refresh(e){this.sourceParams=e,this.refreshProps()}},XRn=class extends km{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},YRn=class extends km{refresh(e){this.sourceParams=e,this.refreshProps()}},KRn=class extends km{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},QRn=class extends km{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function cxe(){ut(231)}var ZRn=1e3,JRn=class{constructor(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=n||ZRn}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,n){this.portals=[...this.portals,e],this.waitForInstance(t,n),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,n=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){HW(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,n)})}}},eIn=({ctrl:e})=>{const t=e.isAlive(),{context:n}=v.useContext(E0),r=t?e.column.getColId():void 0,[i,o]=v.useState(),[a,s]=v.useState(),l=v.useRef(),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),p=v.useRef(),h=v.useRef();t&&!h.current&&(h.current=new gD(()=>c.current));const g=v.useCallback(M=>{if(c.current=M,l.current=M?n.createBean(new fD):n.destroyBean(l.current),!M||!e.isAlive())return;const C={setWidth:w=>{c.current&&(c.current.style.width=w)},toggleCss:(w,S)=>h.current.toggleCss(w,S),setUserStyles:w=>s(w),setAriaSort:w=>{c.current&&(w?eet(c.current,w):tet(c.current))},setUserCompDetails:w=>o(w),getUserCompInstance:()=>p.current||void 0};e.setComp(C,M,u.current,d.current,l.current);const x=e.getSelectAllGui();x&&(u.current?.insertAdjacentElement("afterend",x),l.current.addDestroyFunc(()=>x.remove()))},[]);v.useLayoutEffect(()=>sB(i,n,d.current,p),[i]),v.useEffect(()=>{e.setDragSource(c.current)},[i]);const m=v.useMemo(()=>!!(i?.componentFromFramework&&BD(i.componentClass)),[i]),b=i&&i.componentFromFramework,y=i&&i.componentClass;return E.createElement("div",{ref:g,style:a,className:"ag-header-cell","col-id":r,role:"columnheader"},E.createElement("div",{ref:u,className:"ag-header-cell-resize",role:"presentation"}),E.createElement("div",{ref:d,className:"ag-header-cell-comp-wrapper",role:"presentation"},b&&m&&E.createElement(y,{...i.params}),b&&!m&&E.createElement(y,{...i.params,ref:p})))},tIn=v.memo(eIn),nIn=({ctrl:e})=>{const{context:t,gos:n}=v.useContext(E0),[r,i]=v.useState(),[o,a]=v.useState(()=>new bf("ag-header-cell","ag-floating-filter")),[s,l]=v.useState(()=>new bf),[c,u]=v.useState(()=>new bf("ag-floating-filter-button","ag-hidden")),[d,p]=v.useState("false"),[h,g]=v.useState(),[,m]=v.useState(1),b=v.useRef(),y=v.useRef(null),M=v.useRef(null),C=v.useRef(null),x=v.useRef(null),w=v.useRef(),S=v.useRef(),A=V=>{V!=null&&w.current&&w.current(V)},z=v.useCallback(V=>{if(y.current=V,b.current=V?t.createBean(new fD):t.destroyBean(b.current),!V)return;S.current=new Dr(q=>{w.current=q});const G={toggleCss:(q,$)=>a(U=>U.setClass(q,$)),setUserStyles:q=>i(q),addOrRemoveBodyCssClass:(q,$)=>l(U=>U.setClass(q,$)),setButtonWrapperDisplayed:q=>{u($=>$.setClass("ag-hidden",!q)),p(q?"false":"true")},setWidth:q=>{y.current&&(y.current.style.width=q)},setCompDetails:q=>g(q),getFloatingFilterComp:()=>S.current?S.current:null,setMenuIcon:q=>x.current?.appendChild(q)};e.setComp(G,V,x.current,M.current,b.current)},[]);v.useLayoutEffect(()=>sB(h,t,M.current,A),[h]);const O=v.useMemo(()=>o.toString(),[o]),T=v.useMemo(()=>s.toString(),[s]),R=v.useMemo(()=>c.toString(),[c]),P=v.useMemo(()=>!!(h&&h.componentFromFramework&&BD(h.componentClass)),[h]),F=v.useMemo(()=>n.get("reactiveCustomComponents"),[]),N=v.useMemo(()=>{if(h)if(F){const V=new VRn(h.params,()=>m(G=>G+1));return A(V),V}else h.componentFromFramework&&cxe()},[h]),L=N?.getProps(),W=h&&h.componentFromFramework,j=h&&h.componentClass;return E.createElement("div",{ref:z,style:r,className:O,role:"gridcell"},E.createElement("div",{ref:M,className:T,role:"presentation"},W&&!F&&E.createElement(j,{...h.params,ref:P?()=>{}:A}),W&&F&&E.createElement(sxe.Provider,{value:{setMethods:V=>N.setMethods(V)}},E.createElement(j,{...L}))),E.createElement("div",{ref:C,"aria-hidden":d,className:R,role:"presentation"},E.createElement("button",{ref:x,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},rIn=v.memo(nIn),iIn=({ctrl:e})=>{const{context:t}=v.useContext(E0),[n,r]=v.useState(),[i,o]=v.useState(()=>new bf),[a,s]=v.useState(()=>new bf),[l,c]=v.useState("false"),[u,d]=v.useState(),[p,h]=v.useState(),g=v.useMemo(()=>e.column.getUniqueId(),[]),m=v.useRef(),b=v.useRef(null),y=v.useRef(null),M=v.useRef(null),C=v.useRef(),x=v.useCallback(T=>{if(b.current=T,m.current=T?t.createBean(new fD):t.destroyBean(m.current),!T)return;const R={setWidth:P=>{b.current&&(b.current.style.width=P)},toggleCss:(P,F)=>o(N=>N.setClass(P,F)),setUserStyles:P=>r(P),setHeaderWrapperHidden:P=>{const F=M.current;F&&(P?F.style.setProperty("display","none"):F.style.removeProperty("display"))},setHeaderWrapperMaxHeight:P=>{const F=M.current;F&&(P!=null?F.style.setProperty("max-height",`${P}px`):F.style.removeProperty("max-height"),F.classList.toggle("ag-header-cell-comp-wrapper-limited-height",P!=null))},setUserCompDetails:P=>h(P),setResizableDisplayed:P=>{s(F=>F.setClass("ag-hidden",!P)),c(P?"false":"true")},setAriaExpanded:P=>d(P),getUserCompInstance:()=>C.current||void 0};e.setComp(R,T,y.current,M.current,m.current)},[]);v.useLayoutEffect(()=>sB(p,t,M.current),[p]),v.useEffect(()=>{b.current&&e.setDragSource(b.current)},[p]);const w=v.useMemo(()=>!!(p?.componentFromFramework&&BD(p.componentClass)),[p]),S=v.useMemo(()=>"ag-header-group-cell "+i.toString(),[i]),A=v.useMemo(()=>"ag-header-cell-resize "+a.toString(),[a]),z=p&&p.componentFromFramework,O=p&&p.componentClass;return E.createElement("div",{ref:x,style:n,className:S,"col-id":g,role:"columnheader","aria-expanded":u},E.createElement("div",{ref:M,className:"ag-header-cell-comp-wrapper",role:"presentation"},z&&w&&E.createElement(O,{...p.params}),z&&!w&&E.createElement(O,{...p.params,ref:C})),E.createElement("div",{ref:y,"aria-hidden":l,className:A}))},oIn=v.memo(iIn),aIn=({ctrl:e})=>{const{context:t}=v.useContext(E0),{topOffset:n,rowHeight:r}=v.useMemo(()=>e.getTopAndHeight(),[]),i=e.getAriaRowIndex(),o=e.headerRowClass,[a,s]=v.useState(()=>r+"px"),[l,c]=v.useState(()=>n+"px"),u=v.useRef(null),d=v.useRef(null),[p,h]=v.useState(()=>e.getUpdatedHeaderCtrls()),g=v.useRef(),m=v.useRef(null),b=v.useCallback(C=>{if(m.current=C,g.current=C?t.createBean(new fD):t.destroyBean(g.current),!C)return;const x={setHeight:w=>s(w),setTop:w=>c(w),setHeaderCtrls:(w,S,A)=>{d.current=u.current,u.current=w;const z=A9(d.current,w,S);z!==d.current&&HW(A,()=>h(z))},setWidth:w=>{m.current&&(m.current.style.width=w)}};e.setComp(x,g.current,!1)},[]),y=v.useMemo(()=>({height:a,top:l}),[a,l]),M=v.useCallback(C=>{switch(e.type){case"group":return E.createElement(oIn,{ctrl:C,key:C.instanceId});case"filter":return E.createElement(rIn,{ctrl:C,key:C.instanceId});default:return E.createElement(tIn,{ctrl:C,key:C.instanceId})}},[]);return E.createElement("div",{ref:b,className:o,role:"row",style:y,"aria-rowindex":i},p.map(M))},sIn=v.memo(aIn),lIn=({pinned:e})=>{const[t,n]=v.useState(!0),[r,i]=v.useState([]),{context:o}=v.useContext(E0),a=v.useRef(null),s=v.useRef(null),l=v.useRef(),c=e==="left",u=e==="right",d=!c&&!u,p=v.useCallback(m=>{if(a.current=m,l.current=m?o.createBean(new Htt(e)):o.destroyBean(l.current),!m)return;const b={setDisplayed:n,setCtrls:y=>i(y),setCenterWidth:y=>{s.current&&(s.current.style.width=y)},setViewportScrollLeft:y=>{a.current&&(a.current.scrollLeft=y)},setPinnedContainerWidth:y=>{a.current&&(a.current.style.width=y,a.current.style.minWidth=y,a.current.style.maxWidth=y)}};l.current.setComp(b,a.current)},[]),h=t?"":"ag-hidden",g=()=>r.map(m=>E.createElement(sIn,{ctrl:m,key:m.instanceId}));return E.createElement(E.Fragment,null,c&&E.createElement("div",{ref:p,className:"ag-pinned-left-header "+h,"aria-hidden":!t,role:"rowgroup"},g()),u&&E.createElement("div",{ref:p,className:"ag-pinned-right-header "+h,"aria-hidden":!t,role:"rowgroup"},g()),d&&E.createElement("div",{ref:p,className:"ag-header-viewport "+h,role:"presentation",tabIndex:-1},E.createElement("div",{ref:s,className:"ag-header-container",role:"rowgroup"},g())))},Zie=v.memo(lIn),cIn=()=>{const[e,t]=v.useState(()=>new bf),[n,r]=v.useState(),{context:i}=v.useContext(E0),o=v.useRef(null),a=v.useRef(),s=v.useCallback(u=>{if(o.current=u,a.current=u?i.createBean(new Btt):i.destroyBean(a.current),!u)return;const d={toggleCss:(p,h)=>t(g=>g.setClass(p,h)),setHeightAndMinHeight:p=>r(p)};a.current.setComp(d,u,u)},[]),l=v.useMemo(()=>"ag-header "+e.toString(),[e]),c=v.useMemo(()=>({height:n,minHeight:n}),[n]);return E.createElement("div",{ref:s,className:l,style:c,role:"presentation"},E.createElement(Zie,{pinned:"left"}),E.createElement(Zie,{pinned:null}),E.createElement(Zie,{pinned:"right"}))},uIn=v.memo(cIn),dIn=(e,t)=>{v.useEffect(()=>{const n=t.current;if(n){const r=n.parentElement;if(r){const i=document.createComment(e);return r.insertBefore(i,n),()=>{r.removeChild(i)}}}},[e])},KA=dIn,pIn=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Dr(n=>{this.resolveInstanceCreated=n}),this.onValueChange=n=>this.updateValue(n),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){lxe(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]}updateValue(e){this.value=e,this.refreshProps()}},hIn=e=>{const t=v.useRef(e),n=v.useRef(),r=v.useRef(!1),i=v.useRef(!1),[,o]=v.useState(0);r.current&&(i.current=!0),v.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),o(a=>a+1),()=>{i.current&&n.current?.()}),[])},fIn=e=>{const[t,n]=v.useState(),r=v.useContext(E0),{context:i,popupSvc:o,localeSvc:a,gos:s,editSvc:l}=r,{editDetails:c,cellCtrl:u,eParentCell:d}=e;return hIn(()=>{const{compDetails:p}=c,h=s.get("stopEditingWhenCellsLoseFocus"),g=i.createBean(l.createPopupEditorWrapper(p.params)),m=g.getGui();if(e.jsChildComp){const A=e.jsChildComp.getGui();A&&m.appendChild(A)}const{column:b,rowNode:y}=u,M={column:b,rowNode:y,type:"popupCellEditor",eventSource:d,ePopup:m,position:c.popupPosition,keepWithinBounds:!0},C=o?.positionPopupByComponent.bind(o,M),x=$2e(a),w=o?.addPopup({modal:h,eChild:m,closeOnEsc:!0,closedCallback:()=>{u.onPopupEditorClosed()},anchorToElement:d,positionCallback:C,ariaLabel:x("ariaLabelCellEditor","Cell Editor")}),S=w?w.hideFunc:void 0;return n(g),e.jsChildComp?.afterGuiAttached?.(),()=>{S?.(),i.destroyBean(g)}}),v.useLayoutEffect(()=>()=>{u.isCellFocused()&&t?.getGui().contains($i(r))&&d.focus({preventScroll:!0})},[t]),E.createElement(E.Fragment,null,t&&e.wrappedContent&&Bl.createPortal(e.wrappedContent,t.getGui()))},sLe=v.memo(fIn),gIn=(e,t,n,r,i,o)=>{const{context:a}=v.useContext(E0),s=v.useCallback(()=>{const l=i.current;if(!l)return;const c=l.getGui();c&&c.parentElement&&c.parentElement.removeChild(c),a.destroyBean(l),i.current=void 0},[]);v.useEffect(()=>{const l=e!=null,c=e?.compDetails&&!e.compDetails.componentFromFramework,u=t&&n==null;if(!(l&&c&&!u)){s();return}const p=e.compDetails;if(i.current){const g=i.current,b=g.refresh!=null&&e.force==!1?g.refresh(p.params):!1;if(b===!0||b===void 0)return;s()}p.newAgStackInstance().then(g=>{if(!g)return;const m=g.getGui();if(!m)return;(t?n:o.current).appendChild(m),i.current=g})},[e,t,r]),v.useEffect(()=>s,[])},mIn=gIn,vIn=(e,t,n)=>{const{compProxy:r}=e;n(r);const i=r.getProps(),o=BD(t);return E.createElement(sxe.Provider,{value:{setMethods:a=>r.setMethods(a)}},o?E.createElement(t,{...i}):E.createElement(t,{...i,ref:a=>r.setRef(a)}))},lLe=(e,t,n)=>{const r=e.compProxy;return E.createElement(E.Fragment,null,r?vIn(e,t,n):E.createElement(t,{...e.compDetails.params,ref:n}))},bIn=(e,t,n,r,i)=>{const o=e.compDetails,a=o.componentClass,s=o.componentFromFramework&&!e.popup,l=o.componentFromFramework&&e.popup,c=!o.componentFromFramework&&e.popup;return E.createElement(E.Fragment,null,s&&lLe(e,a,t),l&&E.createElement(sLe,{editDetails:e,cellCtrl:r,eParentCell:n,wrappedContent:lLe(e,a,t)}),c&&i&&E.createElement(sLe,{editDetails:e,cellCtrl:r,eParentCell:n,jsChildComp:i}))},yIn=(e,t,n,r,i,o,a)=>{const{compDetails:s,value:l}=e,c=!s,u=s&&s.componentFromFramework,d=s&&s.componentClass,p=l?.toString?l.toString():l,h=()=>E.createElement(E.Fragment,null,c&&E.createElement(E.Fragment,null,p),u&&!o&&E.createElement(d,{...s.params,key:t,ref:r}),u&&o&&E.createElement(d,{...s.params,key:t}));return E.createElement(E.Fragment,null,i?E.createElement("span",{role:"presentation",id:`cell-${n}`,className:"ag-cell-value",ref:a},h()):h())},MIn=({cellCtrl:e,printLayout:t,editingRow:n})=>{const r=v.useContext(E0),{context:i}=r,{column:{colIdSanitised:o},instanceId:a}=e,s=v.useRef(),[l,c]=v.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[u,d]=v.useState(),[p,h]=v.useState(1),[g,m]=v.useState(),[b,y]=v.useState(!1),[M,C]=v.useState(!1),[x,w]=v.useState(!1),[S,A]=v.useState(),z=v.useMemo(()=>e.isForceWrapper(),[e]),O=v.useMemo(()=>e.getCellAriaRole(),[e]),T=v.useRef(null),R=v.useRef(null),P=v.useRef(null),F=v.useRef(),N=v.useRef(),L=v.useRef(),W=v.useRef([]),j=v.useRef(),[V,G]=v.useState(0),q=v.useCallback(ne=>{j.current=ne,G(le=>le+1)},[]),$=l!=null&&(b||x||M),U=z||$,X=v.useCallback(ne=>{if(N.current=ne,ne){const le=ne.isCancelBeforeStart&&ne.isCancelBeforeStart();setTimeout(()=>{le?(e.stopEditing(!0),e.focusCell(!0)):e.cellEditorAttached()})}},[e]),Q=v.useRef();Q.current||(Q.current=new gD(()=>T.current)),mIn(l,U,j.current,V,F,T);const re=v.useRef();v.useLayoutEffect(()=>{const ne=re.current,le=l;if(re.current=l,ne==null||ne.compDetails==null||le==null||le.compDetails==null)return;const he=ne.compDetails,be=le.compDetails;if(he.componentClass!=be.componentClass||P.current?.refresh==null)return;P.current.refresh(be.params)!=!0&&h(Me=>Me+1)},[l]),v.useLayoutEffect(()=>{if(!(u&&!u.compDetails.componentFromFramework))return;const le=u.compDetails,he=u.popup===!0,be=le.newAgStackInstance();return be.then(me=>{if(!me)return;const Me=me.getGui();X(me),he||((z?L:T).current?.appendChild(Me),me.afterGuiAttached&&me.afterGuiAttached()),A(me)}),()=>{be.then(me=>{const Me=me.getGui();i.destroyBean(me),X(void 0),A(void 0),Me?.parentElement?.removeChild(Me)})}},[u]);const ee=v.useCallback(ne=>{if(L.current=ne,!ne){W.current.forEach(he=>he()),W.current=[];return}const le=he=>{if(he){const be=he.getGui();ne.insertAdjacentElement("afterbegin",be),W.current.push(()=>{i.destroyBean(he),Ps(be)})}return he};if(b){const he=e.createSelectionCheckbox();le(he)}x&&le(e.createDndSource()),M&&le(e.createRowDragComp())},[e,i,x,M,b]),se=v.useCallback(()=>{const ne=!e.isCellSpanning()||R.current,le=T.current;if(s.current=le?i.createBean(new fD):i.destroyBean(s.current),!le||!ne||!e)return;const he={toggleCss:(me,Me)=>Q.current.toggleCss(me,Me),setUserStyles:me=>m(me),getFocusableElement:()=>T.current,setIncludeSelection:me=>y(me),setIncludeRowDrag:me=>C(me),setIncludeDndSource:me=>w(me),getCellEditor:()=>N.current||null,getCellRenderer:()=>P.current??F.current,getParentOfValue:()=>j.current??L.current??T.current,setRenderDetails:(me,Me,Oe)=>{c(de=>de?.compDetails!==me||de?.value!==Me||de?.force!==Oe?{value:Me,compDetails:me,force:Oe}:de)},setEditDetails:(me,Me,Oe,de)=>{if(me){let ie;de?ie=new pIn(me.params,()=>h(ue=>ue+1)):me.componentFromFramework&&cxe(),d({compDetails:me,popup:Me,popupPosition:Oe,compProxy:ie}),Me||c(void 0)}else e.hasBrowserFocus()&&he.getFocusableElement().focus({preventScroll:!0}),d(ue=>{ue?.compProxy&&(N.current=void 0)})}},be=L.current||void 0;e.setComp(he,le,R.current??void 0,be,t,n,s.current)},[]),pe=v.useCallback(ne=>{T.current=ne,se()},[]),te=v.useCallback(ne=>{R.current=ne,se()},[]),ce=v.useMemo(()=>!!(l?.compDetails?.componentFromFramework&&BD(l.compDetails.componentClass)),[l]);v.useLayoutEffect(()=>{T.current&&(Q.current.toggleCss("ag-cell-value",!U),Q.current.toggleCss("ag-cell-inline-editing",!!u&&!u.popup),Q.current.toggleCss("ag-cell-popup-editing",!!u&&!!u.popup),Q.current.toggleCss("ag-cell-not-inline-editing",!u||!!u.popup),e.setInlineEditingCss())});const oe=()=>E.createElement(E.Fragment,null,l!=null&&yIn(l,p,a,P,U,ce,q),u!=null&&bIn(u,X,T.current,e,S)),ae=()=>E.createElement("div",{ref:pe,style:g,role:O,"col-id":o},U?E.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ee},oe()):oe());return e.isCellSpanning()?E.createElement("div",{ref:te,className:"ag-spanned-cell-wrapper",role:"presentation"},ae()):ae()},CIn=v.memo(MIn),xIn=({rowCtrl:e,containerType:t})=>{const{context:n,gos:r}=v.useContext(E0),i=v.useRef(),o=v.useRef(e.getDomOrder()),a=e.isFullWidth(),s=e.rowNode.displayed,[l,c]=v.useState(()=>s?e.rowNode.getRowIndexString():null),[u,d]=v.useState(()=>e.rowId),[p,h]=v.useState(()=>e.businessKey),[g,m]=v.useState(()=>e.rowStyles),b=v.useRef(null),y=v.useRef(null),[M,C]=v.useState(()=>null),[x,w]=v.useState(),[S,A]=v.useState(()=>s?e.getInitialRowTop(t):void 0),[z,O]=v.useState(()=>s?e.getInitialTransform(t):void 0),T=v.useRef(null),R=v.useRef(),P=v.useRef(!1),[F,N]=v.useState(0);v.useEffect(()=>{if(P.current||!x||F>10)return;const Q=T.current?.firstChild;Q?(e.setupDetailRowAutoHeight(Q),P.current=!0):N(re=>re+1)},[x,F]);const L=v.useRef();L.current||(L.current=new gD(()=>T.current));const W=v.useCallback(Q=>{if(T.current=Q,i.current=Q?n.createBean(new fD):n.destroyBean(i.current),!Q){e.unsetComp(t);return}if(!e.isAlive())return;const re={setTop:A,setTransform:O,toggleCss:(ee,se)=>L.current.toggleCss(ee,se),setDomOrder:ee=>o.current=ee,setRowIndex:c,setRowId:d,setRowBusinessKey:h,setUserStyles:m,setCellCtrls:(ee,se)=>{y.current=b.current,b.current=ee;const pe=A9(y.current,ee,o.current);pe!==y.current&&HW(se,()=>C(pe))},showFullWidth:ee=>w(ee),getFullWidthCellRenderer:()=>R.current,refreshFullWidth:ee=>$.current?(w(se=>({...se,params:ee()})),!0):!R.current||!R.current.refresh?!1:R.current.refresh(ee())};e.setComp(re,Q,t,i.current)},[]);v.useLayoutEffect(()=>sB(x,n,T.current,R),[x]);const j=v.useMemo(()=>{const Q={top:S,transform:z};return Object.assign(Q,g),Q},[S,z,g]),V=a&&x?.componentFromFramework,G=!a&&M!=null,q=v.useMemo(()=>!!(x?.componentFromFramework&&BD(x.componentClass)),[x]),$=v.useRef(!1);v.useEffect(()=>{$.current=q&&!!x&&!!r.get("reactiveCustomComponents")},[q,x]);const U=()=>M?.map(Q=>E.createElement(CIn,{cellCtrl:Q,editingRow:e.editing,printLayout:e.printLayout,key:Q.instanceId})),X=()=>{const Q=x.componentClass;return E.createElement(E.Fragment,null,q?E.createElement(Q,{...x.params}):E.createElement(Q,{...x.params,ref:R}))};return E.createElement("div",{ref:W,role:"row",style:j,"row-index":l,"row-id":u,"row-business-key":p},G&&U(),V&&X())},cLe=v.memo(xIn),wIn=({name:e})=>{const{context:t,gos:n}=v.useContext(E0),r=v.useMemo(()=>mD(e),[e]),i=v.useRef(null),o=v.useRef(null),a=v.useRef(null),s=v.useRef([]),l=v.useRef([]),[c,u]=v.useState(()=>[]),d=!!n.get("enableCellSpan")&&!!r.getSpannedRowCtrls,p=v.useRef([]),h=v.useRef([]),[g,m]=v.useState(()=>[]),b=v.useRef(!1),y=v.useRef(),M=v.useMemo(()=>tf("ag-viewport",Tye(e)),[e]),C=v.useMemo(()=>tf(_N(e)),[e]),x=v.useMemo(()=>tf("ag-spanning-container",Rtt(e)),[e]),w=r.type==="center"||d,S=w?i:o;KA(" AG Row Container "+e+" ",S);const A=v.useCallback(()=>{const L=!w||i.current!=null,W=o.current!=null,j=!d||a.current!=null;return L&&W&&j},[]),z=v.useCallback(()=>i.current==null&&o.current==null&&a.current==null,[]),O=v.useCallback(()=>{if(z()&&(y.current=t.destroyBean(y.current)),A()){const L=V=>{const G=A9(l.current,s.current,b.current);G!==l.current&&(l.current=G,HW(V,()=>u(G)))},W=V=>{const G=A9(h.current,p.current,b.current);G!==h.current&&(h.current=G,HW(V,()=>m(G)))},j={setHorizontalScroll:V=>{i.current&&(i.current.scrollLeft=V)},setViewportHeight:V=>{i.current&&(i.current.style.height=V)},setRowCtrls:({rowCtrls:V,useFlushSync:G})=>{const q=!!G&&s.current.length>0&&V.length>0;s.current=V,L(q)},setSpannedRowCtrls:(V,G)=>{const q=!!G&&p.current.length>0&&V.length>0;p.current=V,W(q)},setDomOrder:V=>{b.current!=V&&(b.current=V,L(!1))},setContainerWidth:V=>{o.current&&(o.current.style.width=V)},setOffsetTop:V=>{o.current&&(o.current.style.transform=`translateY(${V})`)}};y.current=t.createBean(new Dtt(e)),y.current.setComp(j,o.current,a.current??void 0,i.current)}},[A,z]),T=v.useCallback(L=>{o.current=L,O()},[O]),R=v.useCallback(L=>{a.current=L,O()},[O]),P=v.useCallback(L=>{i.current=L,O()},[O]),F=()=>E.createElement("div",{className:C,ref:T,role:"rowgroup"},c.map(L=>E.createElement(cLe,{rowCtrl:L,containerType:r.type,key:L.instanceId})));if(!w)return F();const N=()=>d&&E.createElement("div",{className:x,ref:R,role:"rowgroup"},g.map(L=>E.createElement(cLe,{rowCtrl:L,containerType:r.type,key:L.instanceId})));return E.createElement("div",{className:M,ref:P,role:"presentation"},F(),N())},SIn=v.memo(wIn),AIn=()=>{const e=v.useContext(E0),{context:t,overlays:n}=e,[r,i]=v.useState(""),[o,a]=v.useState(0),[s,l]=v.useState(0),[c,u]=v.useState("0px"),[d,p]=v.useState("0px"),[h,g]=v.useState("100%"),[m,b]=v.useState("0px"),[y,M]=v.useState("0px"),[C,x]=v.useState("100%"),[w,S]=v.useState(!0),[A,z]=v.useState(!0),[O,T]=v.useState(null),[R,P]=v.useState(""),[F,N]=v.useState(null),[L,W]=v.useState("ag-layout-normal"),j=v.useRef();j.current||(j.current=new gD(()=>V.current));const V=v.useRef(null),G=v.useRef(null),q=v.useRef(null),$=v.useRef(null),U=v.useRef(null),X=v.useRef(null),Q=v.useRef(null),re=v.useRef([]),ee=v.useRef([]);KA(" AG Grid Body ",V),KA(" AG Pinned Top ",G),KA(" AG Sticky Top ",q),KA(" AG Middle ",X),KA(" AG Pinned Bottom ",Q);const se=v.useCallback(ie=>{if(V.current=ie,!ie){re.current=t.destroyBeans(re.current),ee.current.forEach(Ie=>Ie()),ee.current=[];return}if(!t)return;const ue=(Ie,Le)=>{Ie.appendChild(Le),ee.current.push(()=>Ie.removeChild(Le))},Ae=Ie=>{const Le=t.createBean(new Ie);return re.current.push(Le),Le},Ce=(Ie,Le,we)=>{ue(Ie,document.createComment(we)),ue(Ie,Ae(Le).getGui())};Ce(ie,Ntt," AG Fake Horizontal Scroll ");const Ee=n?.getOverlayWrapperCompClass();Ee&&Ce(ie,Ee," AG Overlay Wrapper "),U.current&&Ce(U.current,Ftt," AG Fake Vertical Scroll ");const Ge={setRowAnimationCssOnBodyViewport:i,setColumnCount:Ie=>{V.current&&ZJe(V.current,Ie)},setRowCount:Ie=>{V.current&&QJe(V.current,Ie)},setTopHeight:a,setBottomHeight:l,setStickyTopHeight:u,setStickyTopTop:p,setStickyTopWidth:g,setTopInvisible:S,setBottomInvisible:z,setColumnMovingCss:(Ie,Le)=>j.current.toggleCss(Ie,Le),updateLayoutClasses:W,setAlwaysVerticalScrollClass:T,setPinnedTopBottomOverflowY:P,setCellSelectableCss:(Ie,Le)=>N(Le?Ie:null),setBodyViewportWidth:Ie=>{X.current&&(X.current.style.width=Ie)},registerBodyViewportResizeListener:Ie=>{if(X.current){const Le=Hf(e,X.current,Ie);ee.current.push(()=>Le())}},setStickyBottomHeight:b,setStickyBottomBottom:M,setStickyBottomWidth:x,setGridRootRole:Ie=>ie.setAttribute("role",Ie)},_e=t.createBean(new Ltt);re.current.push(_e),_e.setComp(Ge,ie,X.current,G.current,Q.current,q.current,$.current)},[]),pe=v.useMemo(()=>tf("ag-root","ag-unselectable",L),[L]),te=v.useMemo(()=>tf("ag-body-viewport",r,L,O,F),[r,L,O,F]),ce=v.useMemo(()=>tf("ag-body",L),[L]),oe=v.useMemo(()=>tf("ag-floating-top",w?"ag-invisible":null,F),[F,w]),ae=v.useMemo(()=>tf("ag-sticky-top",F),[F]),ne=v.useMemo(()=>tf("ag-sticky-bottom",m==="0px"?"ag-invisible":null,F),[F,m]),le=v.useMemo(()=>tf("ag-floating-bottom",A?"ag-invisible":null,F),[F,A]),he=v.useMemo(()=>({height:o,minHeight:o,overflowY:R}),[o,R]),be=v.useMemo(()=>({height:c,top:d,width:h}),[c,d,h]),me=v.useMemo(()=>({height:m,bottom:y,width:C}),[m,y,C]),Me=v.useMemo(()=>({height:s,minHeight:s,overflowY:R}),[s,R]),Oe=ie=>E.createElement(SIn,{name:ie,key:`${ie}-container`}),de=({section:ie,children:ue,className:Ae,style:Ce})=>E.createElement("div",{ref:ie,className:Ae,role:"presentation",style:Ce},ue.map(Oe));return E.createElement("div",{ref:se,className:pe},E.createElement(uIn,null),de({section:G,className:oe,style:he,children:["topLeft","topCenter","topRight","topFullWidth"]}),E.createElement("div",{className:ce,ref:U,role:"presentation"},de({section:X,className:te,children:["left","center","right","fullWidth"]})),de({section:q,className:ae,style:be,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),de({section:$,className:ne,style:me,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),de({section:Q,className:le,style:Me,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},OIn=v.memo(AIn),zIn=(e,t)=>{const{children:n,eFocusableElement:r,onTabKeyDown:i,gridCtrl:o,forceFocusOutWhenTabGuardsAreEmpty:a,isEmpty:s}=e,{context:l}=v.useContext(E0),c=v.useRef(null),u=v.useRef(null),d=v.useRef(),p=y=>{const M=y==null?void 0:parseInt(y,10).toString();[c,u].forEach(C=>{M===void 0?C.current?.removeAttribute("tabindex"):C.current?.setAttribute("tabindex",M)})};v.useImperativeHandle(t,()=>({forceFocusOutOfContainer(y){d.current?.forceFocusOutOfContainer(y)}}));const h=v.useCallback(()=>{const y=c.current,M=u.current;if(!y&&!M){d.current=l.destroyBean(d.current);return}if(y&&M){const C={setTabIndex:p};d.current=l.createBean(new Qtt({comp:C,eTopGuard:y,eBottomGuard:M,eFocusableElement:r,onTabKeyDown:i,forceFocusOutWhenTabGuardsAreEmpty:a,focusInnerElement:x=>o.focusInnerElement(x),isEmpty:s}))}},[]),g=v.useCallback(y=>{c.current=y,h()},[h]),m=v.useCallback(y=>{u.current=y,h()},[h]),b=y=>{const M=y==="top"?WO.TAB_GUARD_TOP:WO.TAB_GUARD_BOTTOM;return E.createElement("div",{className:`${WO.TAB_GUARD} ${M}`,role:"presentation",ref:y==="top"?g:m})};return E.createElement(E.Fragment,null,b("top"),n,b("bottom"))},TIn=v.forwardRef(zIn),EIn=v.memo(TIn),RIn=({context:e})=>{const[t,n]=v.useState(""),[r,i]=v.useState(""),[o,a]=v.useState(null),[s,l]=v.useState(null),[c,u]=v.useState(!1),[d,p]=v.useState(),h=v.useRef(),g=v.useRef(null),m=v.useRef(),[b,y]=v.useState(null),M=v.useRef(()=>{}),C=v.useRef(),x=v.useRef([]),w=v.useCallback(()=>{},[]),S=v.useMemo(()=>e.isDestroyed()?null:e.getBeans(),[e]);KA(" AG Grid ",g);const A=v.useCallback(F=>{if(g.current=F,h.current=F?e.createBean(new ent):e.destroyBean(h.current),!F||e.isDestroyed())return;const N=h.current;M.current=N.focusInnerElement.bind(N);const L={destroyGridUi:()=>{},setRtlClass:n,forceFocusOutOfContainer:W=>{if(!W&&C.current?.isDisplayed()){C.current.forceFocusOutOfContainer(W);return}m.current?.forceFocusOutOfContainer(W)},updateLayoutClasses:i,getFocusableContainers:()=>{const W=[],j=g.current?.querySelector(".ag-root");return j&&W.push({getGui:()=>j}),x.current.forEach(V=>{V.isDisplayed()&&W.push(V)}),W},setCursor:a,setUserSelect:l};N.setComp(L,F,F),u(!0)},[]);v.useEffect(()=>{const F=h.current,N=g.current;if(!d||!S||!F||!b||!N)return;const L=[],{watermarkSelector:W,paginationSelector:j,sideBarSelector:V,statusBarSelector:G,gridHeaderDropZonesSelector:q}=F.getOptionalSelectors(),$=[];if(q){const X=e.createBean(new q.component),Q=X.getGui();N.insertAdjacentElement("afterbegin",Q),$.push(Q),L.push(X)}if(V){const X=e.createBean(new V.component),Q=X.getGui(),re=b.querySelector(".ag-tab-guard-bottom");re&&(re.insertAdjacentElement("beforebegin",Q),$.push(Q)),L.push(X),x.current.push(X)}const U=X=>{const Q=e.createBean(new X),re=Q.getGui();return N.insertAdjacentElement("beforeend",re),$.push(re),L.push(Q),Q};if(G&&U(G.component),j){const X=U(j.component);C.current=X,x.current.push(X)}return W&&U(W.component),()=>{e.destroyBeans(L),$.forEach(X=>{X.parentElement?.removeChild(X)})}},[d,b,S]);const z=v.useMemo(()=>tf("ag-root-wrapper",t,r),[t,r]),O=v.useMemo(()=>tf("ag-root-wrapper-body","ag-focus-managed",r),[r]),T=v.useMemo(()=>({userSelect:s??"",WebkitUserSelect:s??"",cursor:o??""}),[s,o]),R=v.useCallback(F=>{m.current=F,p(F!==null)},[]),P=v.useCallback(()=>!h.current?.isFocusable(),[]);return E.createElement("div",{ref:A,className:z,style:T,role:"presentation"},E.createElement("div",{className:O,ref:y,role:"presentation"},c&&b&&S&&E.createElement(E0.Provider,{value:S},E.createElement(EIn,{ref:R,eFocusableElement:b,onTabKeyDown:w,gridCtrl:h.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:P},E.createElement(OIn,null)))))},IIn=v.memo(RIn),PIn=class extends dt{wireBeans(e){this.ctrlsSvc=e.ctrlsSvc}areHeaderCellsRendered(){return this.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}},qut={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},DIn={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...qut},But=new Set(Object.keys(DIn)),kIn=new Set(Object.keys(qut)),jut=e=>{const t=v.useRef(),n=v.useRef(null),r=v.useRef(null),i=v.useRef([]),o=v.useRef([]),a=v.useRef(e),s=v.useRef(),l=v.useRef(),c=v.useRef(!1),[u,d]=v.useState(void 0),[,p]=v.useState(0),h=v.useCallback(b=>{if(n.current=b,!b){i.current.forEach(T=>T()),i.current.length=0;return}const y=e.modules||[];r.current||(r.current=new JRn(()=>p(T=>T+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),i.current.push(()=>{r.current?.destroy(),r.current=null}));const M=Wkt(e.gridOptions,e,Object.keys(e).filter(T=>!But.has(T))),C=()=>{if(c.current){const T=()=>s.current?.shouldQueueUpdates()?void 0:o.current.shift();let R=T();for(;R;)R(),R=T()}},x=new FIn(C);s.current=x;const w=new PIn,S={providedBeanInstances:{frameworkCompWrapper:new _In(r.current,M.reactiveCustomComponents??x6t("reactiveCustomComponents")??!0),renderStatus:w},modules:y,frameworkOverrides:x,setThemeOnGridDiv:!0},A=T=>{d(T),T.createBean(w),i.current.push(()=>{T.destroy()}),T.getBean("ctrlsSvc").whenReady({addDestroyFunc:R=>{i.current.push(R)}},()=>{if(T.isDestroyed())return;const R=t.current;R&&e.passGridApi?.(R)})},z=T=>{T.getBean("ctrlsSvc").whenReady({addDestroyFunc:R=>{i.current.push(R)}},()=>{o.current.forEach(R=>R()),o.current.length=0,c.current=!0})},O=new Wnt;M.gridId??(M.gridId=l.current),t.current=O.create(b,M,A,z,S),i.current.push(()=>{t.current=void 0}),t.current&&(l.current=t.current.getGridId())},[]),g=v.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),m=v.useCallback(b=>{c.current&&!s.current?.shouldQueueUpdates()?b():o.current.push(b)},[]);return v.useEffect(()=>{const b=LIn(a.current,e);a.current=e,m(()=>{t.current&&qkt(b,t.current)})},[e]),E.createElement("div",{style:g,className:e.className,ref:h},u&&!u.isDestroyed()?E.createElement(IIn,{context:u}):null,r.current?.getPortals()??null)};function LIn(e,t){const n={};return Object.keys(t).forEach(r=>{if(But.has(r)){kIn.has(r)&&ut(274,{prop:r});return}const i=t[r];e[r]!==i&&(n[r]=i)}),n}var _In=class extends T6t{constructor(e,t){super(),this.parent=e,this.reactiveCustomComponents=t}createWrapper(e,t){if(this.reactiveCustomComponents){const i=(o=>{switch(o){case"filter":return HRn;case"floatingFilterComponent":return GRn;case"dateComponent":return BRn;case"dragAndDropImageComponent":return jRn;case"loadingOverlayComponent":return URn;case"noRowsOverlayComponent":return YRn;case"statusPanel":return KRn;case"toolPanel":return QRn;case"menuItem":return XRn;case"cellRenderer":return qRn;case"innerHeaderComponent":return $Rn}})(t.name);if(i)return new i(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":cxe();break}const n=!t.cellRenderer&&t.name!=="toolPanel";return new Fut(e,this.parent,t,n)}},NIn=v.forwardRef((e,t)=>{const n=v.useContext(E0),{registry:r,context:i,gos:o,rowModel:a}=n,[s,l]=v.useState(()=>new bf),[c,u]=v.useState(()=>new bf),[d,p]=v.useState(),[h,g]=v.useState(),m=v.useRef(),b=v.useRef(null),y=v.useRef(),M=v.useMemo(()=>ctt(e.api.getGridId(),d?.rowModelType??"clientSide"),[e]),C=v.useMemo(()=>s.toString()+" ag-details-row",[s]),x=v.useMemo(()=>c.toString()+" ag-details-grid",[c]);t&&v.useImperativeHandle(t,()=>({refresh(){return m.current?.refresh()??!1}})),e.template&&ut(230);const w=v.useCallback(A=>{if(b.current=A,!A){m.current=i.destroyBean(m.current),y.current?.();return}const z={toggleCss:(T,R)=>l(P=>P.setClass(T,R)),toggleDetailGridCss:(T,R)=>u(P=>P.setClass(T,R)),setDetailGrid:T=>p(T),setRowData:T=>g(T),getGui:()=>b.current},O=r.createDynamicBean("detailCellRendererCtrl",!0);if(O&&(i.createBean(O),O.init(z,e),m.current=O,o.get("detailRowAutoHeight"))){const T=()=>{if(b.current==null)return;const R=b.current.clientHeight;R!=null&&R>0&&setTimeout(()=>{e.node.setRowHeight(R),(sa(o)||Au(o))&&a.onRowHeightChanged()},0)};y.current=Hf(n,A,T),T()}},[]),S=v.useCallback(A=>{m.current?.registerDetailWithMaster(A)},[]);return E.createElement("div",{className:C,ref:w},d&&E.createElement(jut,{className:x,...d,modules:M,rowData:h,passGridApi:S}))}),FIn=class extends Jtt{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:oLe,agGroupRowRenderer:oLe,agDetailCellRenderer:NIn},this.wrapIncoming=(t,n)=>n==="ensureVisible"?_Rn(t):t()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return LRn()}},$n=class extends v.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e,this.apiListeners.forEach(t=>t(e))}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return E.createElement(jut,{...this.props,passGridApi:this.setGridApi})}},lB=e=>e.type==="checkbox",uO=e=>e instanceof Date,X0=e=>e==null;const Hut=e=>typeof e=="object";var Rc=e=>!X0(e)&&!Array.isArray(e)&&Hut(e)&&!uO(e),Vut=e=>Rc(e)&&e.target?lB(e.target)?e.target.checked:e.target.value:e,WIn=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Gut=(e,t)=>e.has(WIn(t)),qIn=e=>{const t=e.constructor&&e.constructor.prototype;return Rc(t)&&t.hasOwnProperty("isPrototypeOf")},uxe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hu(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(uxe&&(e instanceof Blob||r))&&(n||Rc(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!qIn(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=hu(e[i]));else return e;return t}var uZ=e=>/^\w*$/.test(e),xc=e=>e===void 0,dxe=e=>Array.isArray(e)?e.filter(Boolean):[],pxe=e=>dxe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),sr=(e,t,n)=>{if(!t||!Rc(e))return n;const r=(uZ(t)?[t]:pxe(t)).reduce((i,o)=>X0(i)?i:i[o],e);return xc(r)||r===e?xc(e[t])?n:e[t]:r},Vp=e=>typeof e=="boolean",qs=(e,t,n)=>{let r=-1;const i=uZ(t)?[t]:pxe(t),o=i.length,a=o-1;for(;++r<o;){const s=i[r];let l=n;if(r!==a){const c=e[s];l=Rc(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const O9={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Kg={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},j2={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},$ut=E.createContext(null);$ut.displayName="HookFormContext";const hxe=()=>E.useContext($ut);var Uut=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Kg.all&&(t._proxyFormState[a]=!r||Kg.all),n&&(n[a]=!0),e[a]}});return i};const fxe=typeof window<"u"?E.useLayoutEffect:E.useEffect;function BIn(e){const t=hxe(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=E.useState(n._formState),l=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return fxe(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:c=>{!r&&s({...n._formState,...c})}}),[i,r,o]),E.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),E.useMemo(()=>Uut(a,n,l.current,!1),[a,n])}var eb=e=>typeof e=="string",Xut=(e,t,n,r,i)=>eb(e)?(r&&t.watch.add(e),sr(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),sr(n,o))):(r&&(t.watchAll=!0),n),nge=e=>X0(e)||!Hut(e);function hy(e,t,n=new WeakSet){if(nge(e)||nge(t))return e===t;if(uO(e)&&uO(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of r){const a=e[o];if(!i.includes(o))return!1;if(o!=="ref"){const s=t[o];if(uO(a)&&uO(s)||Rc(a)&&Rc(s)||Array.isArray(a)&&Array.isArray(s)?!hy(a,s,n):a!==s)return!1}}return!0}function rge(e){const t=hxe(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a,compute:s}=e||{},l=E.useRef(i),c=E.useRef(s),u=E.useRef(void 0);c.current=s;const d=E.useMemo(()=>n._getWatch(r,l.current),[n,r]),[p,h]=E.useState(c.current?c.current(d):d);return fxe(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:g=>{if(!o){const m=Xut(r,n._names,g.values||n._formValues,!1,l.current);if(c.current){const b=c.current(m);hy(b,u.current)||(h(b),u.current=b)}else h(m)}}}),[n,o,r,a]),E.useEffect(()=>n._removeUnmounted()),p}function jIn(e){const t=hxe(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o,defaultValue:a}=e,s=Gut(i._names.array,n),l=E.useMemo(()=>sr(i._formValues,n,sr(i._defaultValues,n,a)),[i,n,a]),c=rge({control:i,name:n,defaultValue:l,exact:!0}),u=BIn({control:i,name:n,exact:!0}),d=E.useRef(e),p=E.useRef(i.register(n,{...e.rules,value:c,...Vp(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const h=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!sr(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!sr(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!sr(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!sr(u.validatingFields,n)},error:{enumerable:!0,get:()=>sr(u.errors,n)}}),[u,n]),g=E.useCallback(M=>p.current.onChange({target:{value:Vut(M),name:n},type:O9.CHANGE}),[n]),m=E.useCallback(()=>p.current.onBlur({target:{value:sr(i._formValues,n),name:n},type:O9.BLUR}),[n,i._formValues]),b=E.useCallback(M=>{const C=sr(i._fields,n);C&&M&&(C._f.ref={focus:()=>M.focus&&M.focus(),select:()=>M.select&&M.select(),setCustomValidity:x=>M.setCustomValidity(x),reportValidity:()=>M.reportValidity()})},[i._fields,n]),y=E.useMemo(()=>({name:n,value:c,...Vp(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:g,onBlur:m,ref:b}),[n,r,u.disabled,g,m,b,c]);return E.useEffect(()=>{const M=i._options.shouldUnregister||o;i.register(n,{...d.current.rules,...Vp(d.current.disabled)?{disabled:d.current.disabled}:{}});const C=(x,w)=>{const S=sr(i._fields,x);S&&S._f&&(S._f.mount=w)};if(C(n,!0),M){const x=hu(sr(i._options.defaultValues,n));qs(i._defaultValues,n,x),xc(sr(i._formValues,n))&&qs(i._formValues,n,x)}return!s&&i.register(n),()=>{(s?M&&!i._state.action:M)?i.unregister(n):C(n,!1)}},[n,i,s,o]),E.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),E.useMemo(()=>({field:y,formState:u,fieldState:h}),[y,u,h])}const Ue=e=>e.render(jIn(e));var HIn=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},aF=e=>Array.isArray(e)?e:[e],uLe=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},V1=e=>Rc(e)&&!Object.keys(e).length,gxe=e=>e.type==="file",Qg=e=>typeof e=="function",z9=e=>{if(!uxe)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Yut=e=>e.type==="select-multiple",mxe=e=>e.type==="radio",VIn=e=>mxe(e)||lB(e),Jie=e=>z9(e)&&e.isConnected;function GIn(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=xc(e)?r++:e[t[r++]];return e}function $In(e){for(const t in e)if(e.hasOwnProperty(t)&&!xc(e[t]))return!1;return!0}function Hc(e,t){const n=Array.isArray(t)?t:uZ(t)?[t]:pxe(t),r=n.length===1?e:GIn(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(Rc(r)&&V1(r)||Array.isArray(r)&&$In(r))&&Hc(e,n.slice(0,-1)),e}var Kut=e=>{for(const t in e)if(Qg(e[t]))return!0;return!1};function T9(e,t={}){const n=Array.isArray(e);if(Rc(e)||n)for(const r in e)Array.isArray(e[r])||Rc(e[r])&&!Kut(e[r])?(t[r]=Array.isArray(e[r])?[]:{},T9(e[r],t[r])):X0(e[r])||(t[r]=!0);return t}function Qut(e,t,n){const r=Array.isArray(e);if(Rc(e)||r)for(const i in e)Array.isArray(e[i])||Rc(e[i])&&!Kut(e[i])?xc(t)||nge(n[i])?n[i]=Array.isArray(e[i])?T9(e[i],[]):{...T9(e[i])}:Qut(e[i],X0(t)?{}:t[i],n[i]):n[i]=!hy(e[i],t[i]);return n}var T4=(e,t)=>Qut(e,t,T9(t));const dLe={value:!1,isValid:!1},pLe={value:!0,isValid:!0};var Zut=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!xc(e[0].attributes.value)?xc(e[0].value)||e[0].value===""?pLe:{value:e[0].value,isValid:!0}:pLe:dLe}return dLe},Jut=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>xc(e)?e:t?e===""?NaN:e&&+e:n&&eb(e)?new Date(e):r?r(e):e;const hLe={isValid:!1,value:null};var edt=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,hLe):hLe;function fLe(e){const t=e.ref;return gxe(t)?t.files:mxe(t)?edt(e.refs).value:Yut(t)?[...t.selectedOptions].map(({value:n})=>n):lB(t)?Zut(e.refs).value:Jut(xc(t.value)?e.ref.value:t.value,e)}var UIn=(e,t,n,r)=>{const i={};for(const o of e){const a=sr(t,o);a&&qs(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},E9=e=>e instanceof RegExp,E4=e=>xc(e)?e:E9(e)?e.source:Rc(e)?E9(e.value)?e.value.source:e.value:e,gLe=e=>({isOnSubmit:!e||e===Kg.onSubmit,isOnBlur:e===Kg.onBlur,isOnChange:e===Kg.onChange,isOnAll:e===Kg.all,isOnTouch:e===Kg.onTouched});const mLe="AsyncFunction";var XIn=e=>!!e&&!!e.validate&&!!(Qg(e.validate)&&e.validate.constructor.name===mLe||Rc(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===mLe)),YIn=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),vLe=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const sF=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=sr(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(sF(s,t))break}else if(Rc(s)&&sF(s,t))break}}};function bLe(e,t,n){const r=sr(e,n);if(r||uZ(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=sr(t,o),s=sr(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};if(s&&s.root&&s.root.type)return{name:`${o}.root`,error:s.root};i.pop()}return{name:n}}var KIn=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return V1(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Kg.all))},QIn=(e,t,n)=>!e||!t||e===t||aF(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),ZIn=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,JIn=(e,t)=>!dxe(sr(e,t)).length&&Hc(e,t),ePn=(e,t,n)=>{const r=aF(sr(e,n));return qs(r,"root",t[n]),qs(e,n,r),e},y7=e=>eb(e);function yLe(e,t,n="validate"){if(y7(e)||Array.isArray(e)&&e.every(y7)||Vp(e)&&!e)return{type:n,message:y7(e)?e:"",ref:t}}var RE=e=>Rc(e)&&!E9(e)?e:{value:e,message:""},MLe=async(e,t,n,r,i,o)=>{const{ref:a,refs:s,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:h,validate:g,name:m,valueAsNumber:b,mount:y}=e._f,M=sr(n,m);if(!y||t.has(m))return{};const C=s?s[0]:a,x=P=>{i&&C.reportValidity&&(C.setCustomValidity(Vp(P)?"":P||""),C.reportValidity())},w={},S=mxe(a),A=lB(a),z=S||A,O=(b||gxe(a))&&xc(a.value)&&xc(M)||z9(a)&&a.value===""||M===""||Array.isArray(M)&&!M.length,T=HIn.bind(null,m,r,w),R=(P,F,N,L=j2.maxLength,W=j2.minLength)=>{const j=P?F:N;w[m]={type:P?L:W,message:j,ref:a,...T(P?L:W,j)}};if(o?!Array.isArray(M)||!M.length:l&&(!z&&(O||X0(M))||Vp(M)&&!M||A&&!Zut(s).isValid||S&&!edt(s).isValid)){const{value:P,message:F}=y7(l)?{value:!!l,message:l}:RE(l);if(P&&(w[m]={type:j2.required,message:F,ref:C,...T(j2.required,F)},!r))return x(F),w}if(!O&&(!X0(d)||!X0(p))){let P,F;const N=RE(p),L=RE(d);if(!X0(M)&&!isNaN(M)){const W=a.valueAsNumber||M&&+M;X0(N.value)||(P=W>N.value),X0(L.value)||(F=W<L.value)}else{const W=a.valueAsDate||new Date(M),j=q=>new Date(new Date().toDateString()+" "+q),V=a.type=="time",G=a.type=="week";eb(N.value)&&M&&(P=V?j(M)>j(N.value):G?M>N.value:W>new Date(N.value)),eb(L.value)&&M&&(F=V?j(M)<j(L.value):G?M<L.value:W<new Date(L.value))}if((P||F)&&(R(!!P,N.message,L.message,j2.max,j2.min),!r))return x(w[m].message),w}if((c||u)&&!O&&(eb(M)||o&&Array.isArray(M))){const P=RE(c),F=RE(u),N=!X0(P.value)&&M.length>+P.value,L=!X0(F.value)&&M.length<+F.value;if((N||L)&&(R(N,P.message,F.message),!r))return x(w[m].message),w}if(h&&!O&&eb(M)){const{value:P,message:F}=RE(h);if(E9(P)&&!M.match(P)&&(w[m]={type:j2.pattern,message:F,ref:a,...T(j2.pattern,F)},!r))return x(F),w}if(g){if(Qg(g)){const P=await g(M,n),F=yLe(P,C);if(F&&(w[m]={...F,...T(j2.validate,F.message)},!r))return x(F.message),w}else if(Rc(g)){let P={};for(const F in g){if(!V1(P)&&!r)break;const N=yLe(await g[F](M,n),C,F);N&&(P={...N,...T(F,N.message)},x(N.message),r&&(w[m]=P))}if(!V1(P)&&(w[m]={ref:C,...P},!r))return w}}return x(!0),w};const tPn={mode:Kg.onSubmit,reValidateMode:Kg.onChange,shouldFocusError:!0};function nPn(e={}){let t={...tPn,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Qg(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Rc(t.defaultValues)||Rc(t.values)?hu(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:hu(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const p={array:uLe(),state:uLe()},h=t.criteriaMode===Kg.all,g=de=>ie=>{clearTimeout(c),c=setTimeout(de,ie)},m=async de=>{if(!t.disabled&&(u.isValid||d.isValid||de)){const ie=t.resolver?V1((await A()).errors):await O(r,!0);ie!==n.isValid&&p.state.next({isValid:ie})}},b=(de,ie)=>{!t.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((de||Array.from(s.mount)).forEach(ue=>{ue&&(ie?qs(n.validatingFields,ue,ie):Hc(n.validatingFields,ue))}),p.state.next({validatingFields:n.validatingFields,isValidating:!V1(n.validatingFields)}))},y=(de,ie=[],ue,Ae,Ce=!0,Ee=!0)=>{if(Ae&&ue&&!t.disabled){if(a.action=!0,Ee&&Array.isArray(sr(r,de))){const Ge=ue(sr(r,de),Ae.argA,Ae.argB);Ce&&qs(r,de,Ge)}if(Ee&&Array.isArray(sr(n.errors,de))){const Ge=ue(sr(n.errors,de),Ae.argA,Ae.argB);Ce&&qs(n.errors,de,Ge),JIn(n.errors,de)}if((u.touchedFields||d.touchedFields)&&Ee&&Array.isArray(sr(n.touchedFields,de))){const Ge=ue(sr(n.touchedFields,de),Ae.argA,Ae.argB);Ce&&qs(n.touchedFields,de,Ge)}(u.dirtyFields||d.dirtyFields)&&(n.dirtyFields=T4(i,o)),p.state.next({name:de,isDirty:R(de,ie),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else qs(o,de,ie)},M=(de,ie)=>{qs(n.errors,de,ie),p.state.next({errors:n.errors})},C=de=>{n.errors=de,p.state.next({errors:n.errors,isValid:!1})},x=(de,ie,ue,Ae)=>{const Ce=sr(r,de);if(Ce){const Ee=sr(o,de,xc(ue)?sr(i,de):ue);xc(Ee)||Ae&&Ae.defaultChecked||ie?qs(o,de,ie?Ee:fLe(Ce._f)):N(de,Ee),a.mount&&m()}},w=(de,ie,ue,Ae,Ce)=>{let Ee=!1,Ge=!1;const _e={name:de};if(!t.disabled){if(!ue||Ae){(u.isDirty||d.isDirty)&&(Ge=n.isDirty,n.isDirty=_e.isDirty=R(),Ee=Ge!==_e.isDirty);const Ie=hy(sr(i,de),ie);Ge=!!sr(n.dirtyFields,de),Ie?Hc(n.dirtyFields,de):qs(n.dirtyFields,de,!0),_e.dirtyFields=n.dirtyFields,Ee=Ee||(u.dirtyFields||d.dirtyFields)&&Ge!==!Ie}if(ue){const Ie=sr(n.touchedFields,de);Ie||(qs(n.touchedFields,de,ue),_e.touchedFields=n.touchedFields,Ee=Ee||(u.touchedFields||d.touchedFields)&&Ie!==ue)}Ee&&Ce&&p.state.next(_e)}return Ee?_e:{}},S=(de,ie,ue,Ae)=>{const Ce=sr(n.errors,de),Ee=(u.isValid||d.isValid)&&Vp(ie)&&n.isValid!==ie;if(t.delayError&&ue?(l=g(()=>M(de,ue)),l(t.delayError)):(clearTimeout(c),l=null,ue?qs(n.errors,de,ue):Hc(n.errors,de)),(ue?!hy(Ce,ue):Ce)||!V1(Ae)||Ee){const Ge={...Ae,...Ee&&Vp(ie)?{isValid:ie}:{},errors:n.errors,name:de};n={...n,...Ge},p.state.next(Ge)}},A=async de=>{b(de,!0);const ie=await t.resolver(o,t.context,UIn(de||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return b(de),ie},z=async de=>{const{errors:ie}=await A(de);if(de)for(const ue of de){const Ae=sr(ie,ue);Ae?qs(n.errors,ue,Ae):Hc(n.errors,ue)}else n.errors=ie;return ie},O=async(de,ie,ue={valid:!0})=>{for(const Ae in de){const Ce=de[Ae];if(Ce){const{_f:Ee,...Ge}=Ce;if(Ee){const _e=s.array.has(Ee.name),Ie=Ce._f&&XIn(Ce._f);Ie&&u.validatingFields&&b([Ae],!0);const Le=await MLe(Ce,s.disabled,o,h,t.shouldUseNativeValidation&&!ie,_e);if(Ie&&u.validatingFields&&b([Ae]),Le[Ee.name]&&(ue.valid=!1,ie))break;!ie&&(sr(Le,Ee.name)?_e?ePn(n.errors,Le,Ee.name):qs(n.errors,Ee.name,Le[Ee.name]):Hc(n.errors,Ee.name))}!V1(Ge)&&await O(Ge,ie,ue)}}return ue.valid},T=()=>{for(const de of s.unMount){const ie=sr(r,de);ie&&(ie._f.refs?ie._f.refs.every(ue=>!Jie(ue)):!Jie(ie._f.ref))&&se(de)}s.unMount=new Set},R=(de,ie)=>!t.disabled&&(de&&ie&&qs(o,de,ie),!hy(q(),i)),P=(de,ie,ue)=>Xut(de,s,{...a.mount?o:xc(ie)?i:eb(de)?{[de]:ie}:ie},ue,ie),F=de=>dxe(sr(a.mount?o:i,de,t.shouldUnregister?sr(i,de,[]):[])),N=(de,ie,ue={})=>{const Ae=sr(r,de);let Ce=ie;if(Ae){const Ee=Ae._f;Ee&&(!Ee.disabled&&qs(o,de,Jut(ie,Ee)),Ce=z9(Ee.ref)&&X0(ie)?"":ie,Yut(Ee.ref)?[...Ee.ref.options].forEach(Ge=>Ge.selected=Ce.includes(Ge.value)):Ee.refs?lB(Ee.ref)?Ee.refs.forEach(Ge=>{(!Ge.defaultChecked||!Ge.disabled)&&(Array.isArray(Ce)?Ge.checked=!!Ce.find(_e=>_e===Ge.value):Ge.checked=Ce===Ge.value||!!Ce)}):Ee.refs.forEach(Ge=>Ge.checked=Ge.value===Ce):gxe(Ee.ref)?Ee.ref.value="":(Ee.ref.value=Ce,Ee.ref.type||p.state.next({name:de,values:hu(o)})))}(ue.shouldDirty||ue.shouldTouch)&&w(de,Ce,ue.shouldTouch,ue.shouldDirty,!0),ue.shouldValidate&&G(de)},L=(de,ie,ue)=>{for(const Ae in ie){if(!ie.hasOwnProperty(Ae))return;const Ce=ie[Ae],Ee=de+"."+Ae,Ge=sr(r,Ee);(s.array.has(de)||Rc(Ce)||Ge&&!Ge._f)&&!uO(Ce)?L(Ee,Ce,ue):N(Ee,Ce,ue)}},W=(de,ie,ue={})=>{const Ae=sr(r,de),Ce=s.array.has(de),Ee=hu(ie);qs(o,de,Ee),Ce?(p.array.next({name:de,values:hu(o)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&ue.shouldDirty&&p.state.next({name:de,dirtyFields:T4(i,o),isDirty:R(de,Ee)})):Ae&&!Ae._f&&!X0(Ee)?L(de,Ee,ue):N(de,Ee,ue),vLe(de,s)&&p.state.next({...n,name:de}),p.state.next({name:a.mount?de:void 0,values:hu(o)})},j=async de=>{a.mount=!0;const ie=de.target;let ue=ie.name,Ae=!0;const Ce=sr(r,ue),Ee=Ie=>{Ae=Number.isNaN(Ie)||uO(Ie)&&isNaN(Ie.getTime())||hy(Ie,sr(o,ue,Ie))},Ge=gLe(t.mode),_e=gLe(t.reValidateMode);if(Ce){let Ie,Le;const we=ie.type?fLe(Ce._f):Vut(de),ve=de.type===O9.BLUR||de.type===O9.FOCUS_OUT,De=!YIn(Ce._f)&&!t.resolver&&!sr(n.errors,ue)&&!Ce._f.deps||ZIn(ve,sr(n.touchedFields,ue),n.isSubmitted,_e,Ge),ze=vLe(ue,s,ve);qs(o,ue,we),ve?(!ie||!ie.readOnly)&&(Ce._f.onBlur&&Ce._f.onBlur(de),l&&l(0)):Ce._f.onChange&&Ce._f.onChange(de);const Ve=w(ue,we,ve),Ke=!V1(Ve)||ze;if(!ve&&p.state.next({name:ue,type:de.type,values:hu(o)}),De)return(u.isValid||d.isValid)&&(t.mode==="onBlur"?ve&&m():ve||m()),Ke&&p.state.next({name:ue,...ze?{}:Ve});if(!ve&&ze&&p.state.next({...n}),t.resolver){const{errors:et}=await A([ue]);if(Ee(we),Ae){const it=bLe(n.errors,r,ue),Ft=bLe(et,r,it.name||ue);Ie=Ft.error,ue=Ft.name,Le=V1(et)}}else b([ue],!0),Ie=(await MLe(Ce,s.disabled,o,h,t.shouldUseNativeValidation))[ue],b([ue]),Ee(we),Ae&&(Ie?Le=!1:(u.isValid||d.isValid)&&(Le=await O(r,!0)));Ae&&(Ce._f.deps&&G(Ce._f.deps),S(ue,Le,Ie,Ve))}},V=(de,ie)=>{if(sr(n.errors,ie)&&de.focus)return de.focus(),1},G=async(de,ie={})=>{let ue,Ae;const Ce=aF(de);if(t.resolver){const Ee=await z(xc(de)?de:Ce);ue=V1(Ee),Ae=de?!Ce.some(Ge=>sr(Ee,Ge)):ue}else de?(Ae=(await Promise.all(Ce.map(async Ee=>{const Ge=sr(r,Ee);return await O(Ge&&Ge._f?{[Ee]:Ge}:Ge)}))).every(Boolean),!(!Ae&&!n.isValid)&&m()):Ae=ue=await O(r);return p.state.next({...!eb(de)||(u.isValid||d.isValid)&&ue!==n.isValid?{}:{name:de},...t.resolver||!de?{isValid:ue}:{},errors:n.errors}),ie.shouldFocus&&!Ae&&sF(r,V,de?Ce:s.mount),Ae},q=de=>{const ie={...a.mount?o:i};return xc(de)?ie:eb(de)?sr(ie,de):de.map(ue=>sr(ie,ue))},$=(de,ie)=>({invalid:!!sr((ie||n).errors,de),isDirty:!!sr((ie||n).dirtyFields,de),error:sr((ie||n).errors,de),isValidating:!!sr(n.validatingFields,de),isTouched:!!sr((ie||n).touchedFields,de)}),U=de=>{de&&aF(de).forEach(ie=>Hc(n.errors,ie)),p.state.next({errors:de?n.errors:{}})},X=(de,ie,ue)=>{const Ae=(sr(r,de,{_f:{}})._f||{}).ref,Ce=sr(n.errors,de)||{},{ref:Ee,message:Ge,type:_e,...Ie}=Ce;qs(n.errors,de,{...Ie,...ie,ref:Ae}),p.state.next({name:de,errors:n.errors,isValid:!1}),ue&&ue.shouldFocus&&Ae&&Ae.focus&&Ae.focus()},Q=(de,ie)=>Qg(de)?p.state.subscribe({next:ue=>"values"in ue&&de(P(void 0,ie),ue)}):P(de,ie,!0),re=de=>p.state.subscribe({next:ie=>{QIn(de.name,ie.name,de.exact)&&KIn(ie,de.formState||u,me,de.reRenderRoot)&&de.callback({values:{...o},...n,...ie,defaultValues:i})}}).unsubscribe,ee=de=>(a.mount=!0,d={...d,...de.formState},re({...de,formState:d})),se=(de,ie={})=>{for(const ue of de?aF(de):s.mount)s.mount.delete(ue),s.array.delete(ue),ie.keepValue||(Hc(r,ue),Hc(o,ue)),!ie.keepError&&Hc(n.errors,ue),!ie.keepDirty&&Hc(n.dirtyFields,ue),!ie.keepTouched&&Hc(n.touchedFields,ue),!ie.keepIsValidating&&Hc(n.validatingFields,ue),!t.shouldUnregister&&!ie.keepDefaultValue&&Hc(i,ue);p.state.next({values:hu(o)}),p.state.next({...n,...ie.keepDirty?{isDirty:R()}:{}}),!ie.keepIsValid&&m()},pe=({disabled:de,name:ie})=>{(Vp(de)&&a.mount||de||s.disabled.has(ie))&&(de?s.disabled.add(ie):s.disabled.delete(ie))},te=(de,ie={})=>{let ue=sr(r,de);const Ae=Vp(ie.disabled)||Vp(t.disabled);return qs(r,de,{...ue||{},_f:{...ue&&ue._f?ue._f:{ref:{name:de}},name:de,mount:!0,...ie}}),s.mount.add(de),ue?pe({disabled:Vp(ie.disabled)?ie.disabled:t.disabled,name:de}):x(de,!0,ie.value),{...Ae?{disabled:ie.disabled||t.disabled}:{},...t.progressive?{required:!!ie.required,min:E4(ie.min),max:E4(ie.max),minLength:E4(ie.minLength),maxLength:E4(ie.maxLength),pattern:E4(ie.pattern)}:{},name:de,onChange:j,onBlur:j,ref:Ce=>{if(Ce){te(de,ie),ue=sr(r,de);const Ee=xc(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,Ge=VIn(Ee),_e=ue._f.refs||[];if(Ge?_e.find(Ie=>Ie===Ee):Ee===ue._f.ref)return;qs(r,de,{_f:{...ue._f,...Ge?{refs:[..._e.filter(Jie),Ee,...Array.isArray(sr(i,de))?[{}]:[]],ref:{type:Ee.type,name:de}}:{ref:Ee}}}),x(de,!1,void 0,Ee)}else ue=sr(r,de,{}),ue._f&&(ue._f.mount=!1),(t.shouldUnregister||ie.shouldUnregister)&&!(Gut(s.array,de)&&a.action)&&s.unMount.add(de)}}},ce=()=>t.shouldFocusError&&sF(r,V,s.mount),oe=de=>{Vp(de)&&(p.state.next({disabled:de}),sF(r,(ie,ue)=>{const Ae=sr(r,ue);Ae&&(ie.disabled=Ae._f.disabled||de,Array.isArray(Ae._f.refs)&&Ae._f.refs.forEach(Ce=>{Ce.disabled=Ae._f.disabled||de}))},0,!1))},ae=(de,ie)=>async ue=>{let Ae;ue&&(ue.preventDefault&&ue.preventDefault(),ue.persist&&ue.persist());let Ce=hu(o);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:Ee,values:Ge}=await A();n.errors=Ee,Ce=hu(Ge)}else await O(r);if(s.disabled.size)for(const Ee of s.disabled)Hc(Ce,Ee);if(Hc(n.errors,"root"),V1(n.errors)){p.state.next({errors:{}});try{await de(Ce,ue)}catch(Ee){Ae=Ee}}else ie&&await ie({...n.errors},ue),ce(),setTimeout(ce);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V1(n.errors)&&!Ae,submitCount:n.submitCount+1,errors:n.errors}),Ae)throw Ae},ne=(de,ie={})=>{sr(r,de)&&(xc(ie.defaultValue)?W(de,hu(sr(i,de))):(W(de,ie.defaultValue),qs(i,de,hu(ie.defaultValue))),ie.keepTouched||Hc(n.touchedFields,de),ie.keepDirty||(Hc(n.dirtyFields,de),n.isDirty=ie.defaultValue?R(de,hu(sr(i,de))):R()),ie.keepError||(Hc(n.errors,de),u.isValid&&m()),p.state.next({...n}))},le=(de,ie={})=>{const ue=de?hu(de):i,Ae=hu(ue),Ce=V1(de),Ee=Ce?i:Ae;if(ie.keepDefaultValues||(i=ue),!ie.keepValues){if(ie.keepDirtyValues){const Ge=new Set([...s.mount,...Object.keys(T4(i,o))]);for(const _e of Array.from(Ge))sr(n.dirtyFields,_e)?qs(Ee,_e,sr(o,_e)):W(_e,sr(Ee,_e))}else{if(uxe&&xc(de))for(const Ge of s.mount){const _e=sr(r,Ge);if(_e&&_e._f){const Ie=Array.isArray(_e._f.refs)?_e._f.refs[0]:_e._f.ref;if(z9(Ie)){const Le=Ie.closest("form");if(Le){Le.reset();break}}}}if(ie.keepFieldsRef)for(const Ge of s.mount)W(Ge,sr(Ee,Ge));else r={}}o=t.shouldUnregister?ie.keepDefaultValues?hu(i):{}:hu(Ee),p.array.next({values:{...Ee}}),p.state.next({values:{...Ee}})}s={mount:ie.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!ie.keepIsValid||!!ie.keepDirtyValues,a.watch=!!t.shouldUnregister,p.state.next({submitCount:ie.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:ie.keepDirty?n.isDirty:!!(ie.keepDefaultValues&&!hy(de,i)),isSubmitted:ie.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:ie.keepDirtyValues?ie.keepDefaultValues&&o?T4(i,o):n.dirtyFields:ie.keepDefaultValues&&de?T4(i,de):ie.keepDirty?n.dirtyFields:{},touchedFields:ie.keepTouched?n.touchedFields:{},errors:ie.keepErrors?n.errors:{},isSubmitSuccessful:ie.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},he=(de,ie)=>le(Qg(de)?de(o):de,ie),be=(de,ie={})=>{const ue=sr(r,de),Ae=ue&&ue._f;if(Ae){const Ce=Ae.refs?Ae.refs[0]:Ae.ref;Ce.focus&&(Ce.focus(),ie.shouldSelect&&Qg(Ce.select)&&Ce.select())}},me=de=>{n={...n,...de}},Oe={control:{register:te,unregister:se,getFieldState:$,handleSubmit:ae,setError:X,_subscribe:re,_runSchema:A,_focusError:ce,_getWatch:P,_getDirty:R,_setValid:m,_setFieldArray:y,_setDisabledField:pe,_setErrors:C,_getFieldArray:F,_reset:le,_resetDefaultValues:()=>Qg(t.defaultValues)&&t.defaultValues().then(de=>{he(de,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:T,_disableForm:oe,_subjects:p,_proxyFormState:u,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(de){a=de},get _defaultValues(){return i},get _names(){return s},set _names(de){s=de},get _formState(){return n},get _options(){return t},set _options(de){t={...t,...de}}},subscribe:ee,trigger:G,register:te,handleSubmit:ae,watch:Q,setValue:W,getValues:q,reset:he,resetField:ne,clearErrors:U,unregister:se,setError:X,setFocus:be,getFieldState:$};return{...Oe,formControl:Oe}}function jn(e={}){const t=E.useRef(void 0),n=E.useRef(void 0),[r,i]=E.useState({isDirty:!1,isValidating:!1,isLoading:Qg(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Qg(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Qg(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=nPn(e);t.current={...s,formState:r}}const o=t.current.control;return o._options=e,fxe(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState}),reRenderRoot:!0});return i(s=>({...s,isReady:!0})),o._formState.isReady=!0,a},[o]),E.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),E.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),E.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),E.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),E.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),E.useEffect(()=>{e.values&&!hy(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[o,e.values]),E.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Uut(r,o),t.current}var iN={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var rPn=iN.exports,CLe;function iPn(){return CLe||(CLe=1,(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,p=2,h=4,g=1,m=2,b=1,y=2,M=4,C=8,x=16,w=32,S=64,A=128,z=256,O=512,T=30,R="...",P=800,F=16,N=1,L=2,W=3,j=1/0,V=9007199254740991,G=17976931348623157e292,q=NaN,$=4294967295,U=$-1,X=$>>>1,Q=[["ary",A],["bind",b],["bindKey",y],["curry",C],["curryRight",x],["flip",O],["partial",w],["partialRight",S],["rearg",z]],re="[object Arguments]",ee="[object Array]",se="[object AsyncFunction]",pe="[object Boolean]",te="[object Date]",ce="[object DOMException]",oe="[object Error]",ae="[object Function]",ne="[object GeneratorFunction]",le="[object Map]",he="[object Number]",be="[object Null]",me="[object Object]",Me="[object Promise]",Oe="[object Proxy]",de="[object RegExp]",ie="[object Set]",ue="[object String]",Ae="[object Symbol]",Ce="[object Undefined]",Ee="[object WeakMap]",Ge="[object WeakSet]",_e="[object ArrayBuffer]",Ie="[object DataView]",Le="[object Float32Array]",we="[object Float64Array]",ve="[object Int8Array]",De="[object Int16Array]",ze="[object Int32Array]",Ve="[object Uint8Array]",Ke="[object Uint8ClampedArray]",et="[object Uint16Array]",it="[object Uint32Array]",Ft=/\b__p \+= '';/g,Dt=/\b(__p \+=) '' \+/g,Qn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,Hn=/[&<>"']/g,Zn=RegExp(ir.source),Br=RegExp(Hn.source),vr=/<%-([\s\S]+?)%>/g,Fe=/<%([\s\S]+?)%>/g,He=/<%=([\s\S]+?)%>/g,Xe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ct=/^\w*$/,lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Je=/[\\^$.*+?()[\]{}|]/g,ft=RegExp(Je.source),Tt=/^\s+/,St=/\s/,un=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Un=/\{\n\/\* \[wrapped with (.+)\] \*/,Yr=/,? & /,yr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dr=/[()=,{}\[\]\/\s]/,si=/\\(\\)?/g,$o=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Uo=/\w*$/,Qi=/^[-+]0x[0-9a-f]+$/i,di=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,It=/^0o[0-7]+$/i,Vn=/^(?:0|[1-9]\d*)$/,jr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jr=/($^)/,xa=/['\n\r\u2028\u2029\\]/g,Xo="\\ud800-\\udfff",La="\\u0300-\\u036f",ad="\\ufe20-\\ufe2f",Lu="\\u20d0-\\u20ff",Lc=La+ad+Lu,Dd="\\u2700-\\u27bf",fi="a-z\\xdf-\\xf6\\xf8-\\xff",Ns="\\xac\\xb1\\xd7\\xf7",_u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kd="\\u2000-\\u206f",ou=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",As="A-Z\\xc0-\\xd6\\xd8-\\xde",au="\\ufe0e\\ufe0f",Xn=Ns+_u+kd+ou,wn="['’]",nn="["+Xo+"]",Lr="["+Xn+"]",Os="["+Lc+"]",Va="\\d+",wa="["+Dd+"]",_c="["+fi+"]",cc="[^"+Xo+Xn+Va+Dd+fi+As+"]",C1="\\ud83c[\\udffb-\\udfff]",zp="(?:"+Os+"|"+C1+")",IM="[^"+Xo+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",st="["+As+"]",_t="\\u200d",hn="(?:"+_c+"|"+cc+")",hr="(?:"+st+"|"+cc+")",eo="(?:"+wn+"(?:d|ll|m|re|s|t|ve))?",Fs="(?:"+wn+"(?:D|LL|M|RE|S|T|VE))?",Al=zp+"?",uc="["+au+"]?",P0="(?:"+_t+"(?:"+[IM,Re,qe].join("|")+")"+uc+Al+")*",Rj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ij="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bT=uc+Al+P0,Bte="(?:"+[wa,Re,qe].join("|")+")"+bT,Fk="(?:"+[IM+Os+"?",Os,Re,qe,nn].join("|")+")",jte=RegExp(wn,"g"),ps=RegExp(Os,"g"),Vm=RegExp(C1+"(?="+C1+")|"+Fk+bT,"g"),Hte=RegExp([st+"?"+_c+"+"+eo+"(?="+[Lr,st,"$"].join("|")+")",hr+"+"+Fs+"(?="+[Lr,st+hn,"$"].join("|")+")",st+"?"+hn+"+"+eo,st+"+"+Fs,Ij,Rj,Va,Bte].join("|"),"g"),Vte=RegExp("["+_t+Xo+Lc+au+"]"),Gw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yT=-1,Sa={};Sa[Le]=Sa[we]=Sa[ve]=Sa[De]=Sa[ze]=Sa[Ve]=Sa[Ke]=Sa[et]=Sa[it]=!0,Sa[re]=Sa[ee]=Sa[_e]=Sa[pe]=Sa[Ie]=Sa[te]=Sa[oe]=Sa[ae]=Sa[le]=Sa[he]=Sa[me]=Sa[de]=Sa[ie]=Sa[ue]=Sa[Ee]=!1;var Ga={};Ga[re]=Ga[ee]=Ga[_e]=Ga[Ie]=Ga[pe]=Ga[te]=Ga[Le]=Ga[we]=Ga[ve]=Ga[De]=Ga[ze]=Ga[le]=Ga[he]=Ga[me]=Ga[de]=Ga[ie]=Ga[ue]=Ga[Ae]=Ga[Ve]=Ga[Ke]=Ga[et]=Ga[it]=!0,Ga[oe]=Ga[ae]=Ga[Ee]=!1;var MT={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},Gm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gte={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},$te={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ute=parseFloat,Xte=parseInt,Dj=typeof nx=="object"&&nx&&nx.Object===Object&&nx,CT=typeof self=="object"&&self&&self.Object===Object&&self,su=Dj||CT||Function("return this")(),Wk=t&&!t.nodeType&&t,lg=Wk&&!0&&e&&!e.nodeType&&e,xT=lg&&lg.exports===Wk,bh=xT&&Dj.process,Ld=(function(){try{var wt=lg&&lg.require&&lg.require("util").types;return wt||bh&&bh.binding&&bh.binding("util")}catch{}})(),$w=Ld&&Ld.isArrayBuffer,qk=Ld&&Ld.isDate,Uw=Ld&&Ld.isMap,Xw=Ld&&Ld.isRegExp,Bk=Ld&&Ld.isSet,_d=Ld&&Ld.isTypedArray;function Nc(wt,Zt,Wt){switch(Wt.length){case 0:return wt.call(Zt);case 1:return wt.call(Zt,Wt[0]);case 2:return wt.call(Zt,Wt[0],Wt[1]);case 3:return wt.call(Zt,Wt[0],Wt[1],Wt[2])}return wt.apply(Zt,Wt)}function jk(wt,Zt,Wt,Mr){for(var Wi=-1,ga=wt==null?0:wt.length;++Wi<ga;){var Aa=wt[Wi];Zt(Mr,Aa,Wt(Aa),wt)}return Mr}function Nu(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length;++Wt<Mr&&Zt(wt[Wt],Wt,wt)!==!1;);return wt}function Yte(wt,Zt){for(var Wt=wt==null?0:wt.length;Wt--&&Zt(wt[Wt],Wt,wt)!==!1;);return wt}function wT(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length;++Wt<Mr;)if(!Zt(wt[Wt],Wt,wt))return!1;return!0}function yh(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length,Wi=0,ga=[];++Wt<Mr;){var Aa=wt[Wt];Zt(Aa,Wt,wt)&&(ga[Wi++]=Aa)}return ga}function $m(wt,Zt){var Wt=wt==null?0:wt.length;return!!Wt&&h2(wt,Zt,0)>-1}function PM(wt,Zt,Wt){for(var Mr=-1,Wi=wt==null?0:wt.length;++Mr<Wi;)if(Wt(Zt,wt[Mr]))return!0;return!1}function zs(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length,Wi=Array(Mr);++Wt<Mr;)Wi[Wt]=Zt(wt[Wt],Wt,wt);return Wi}function Um(wt,Zt){for(var Wt=-1,Mr=Zt.length,Wi=wt.length;++Wt<Mr;)wt[Wi+Wt]=Zt[Wt];return wt}function Hk(wt,Zt,Wt,Mr){var Wi=-1,ga=wt==null?0:wt.length;for(Mr&&ga&&(Wt=wt[++Wi]);++Wi<ga;)Wt=Zt(Wt,wt[Wi],Wi,wt);return Wt}function Kte(wt,Zt,Wt,Mr){var Wi=wt==null?0:wt.length;for(Mr&&Wi&&(Wt=wt[--Wi]);Wi--;)Wt=Zt(Wt,wt[Wi],Wi,wt);return Wt}function Yw(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length;++Wt<Mr;)if(Zt(wt[Wt],Wt,wt))return!0;return!1}var Qte=Vk("length");function Zte(wt){return wt.split("")}function Jte(wt){return wt.match(yr)||[]}function kj(wt,Zt,Wt){var Mr;return Wt(wt,function(Wi,ga,Aa){if(Zt(Wi,ga,Aa))return Mr=ga,!1}),Mr}function ST(wt,Zt,Wt,Mr){for(var Wi=wt.length,ga=Wt+(Mr?1:-1);Mr?ga--:++ga<Wi;)if(Zt(wt[ga],ga,wt))return ga;return-1}function h2(wt,Zt,Wt){return Zt===Zt?Uj(wt,Zt,Wt):ST(wt,Lj,Wt)}function ene(wt,Zt,Wt,Mr){for(var Wi=Wt-1,ga=wt.length;++Wi<ga;)if(Mr(wt[Wi],Zt))return Wi;return-1}function Lj(wt){return wt!==wt}function _j(wt,Zt){var Wt=wt==null?0:wt.length;return Wt?Gk(wt,Zt)/Wt:q}function Vk(wt){return function(Zt){return Zt==null?n:Zt[wt]}}function Kw(wt){return function(Zt){return wt==null?n:wt[Zt]}}function Nj(wt,Zt,Wt,Mr,Wi){return Wi(wt,function(ga,Aa,ns){Wt=Mr?(Mr=!1,ga):Zt(Wt,ga,Aa,ns)}),Wt}function tne(wt,Zt){var Wt=wt.length;for(wt.sort(Zt);Wt--;)wt[Wt]=wt[Wt].value;return wt}function Gk(wt,Zt){for(var Wt,Mr=-1,Wi=wt.length;++Mr<Wi;){var ga=Zt(wt[Mr]);ga!==n&&(Wt=Wt===n?ga:Wt+ga)}return Wt}function AT(wt,Zt){for(var Wt=-1,Mr=Array(wt);++Wt<wt;)Mr[Wt]=Zt(Wt);return Mr}function nne(wt,Zt){return zs(Zt,function(Wt){return[Wt,wt[Wt]]})}function Fj(wt){return wt&&wt.slice(0,eS(wt)+1).replace(Tt,"")}function D0(wt){return function(Zt){return wt(Zt)}}function $k(wt,Zt){return zs(Zt,function(Wt){return wt[Wt]})}function Qw(wt,Zt){return wt.has(Zt)}function Wj(wt,Zt){for(var Wt=-1,Mr=wt.length;++Wt<Mr&&h2(Zt,wt[Wt],0)>-1;);return Wt}function qj(wt,Zt){for(var Wt=wt.length;Wt--&&h2(Zt,wt[Wt],0)>-1;);return Wt}function Uk(wt,Zt){for(var Wt=wt.length,Mr=0;Wt--;)wt[Wt]===Zt&&++Mr;return Mr}var Zw=Kw(MT),rne=Kw(Gm);function Bj(wt){return"\\"+$te[wt]}function jj(wt,Zt){return wt==null?n:wt[Zt]}function f2(wt){return Vte.test(wt)}function Hj(wt){return Gw.test(wt)}function Vj(wt){for(var Zt,Wt=[];!(Zt=wt.next()).done;)Wt.push(Zt.value);return Wt}function Xm(wt){var Zt=-1,Wt=Array(wt.size);return wt.forEach(function(Mr,Wi){Wt[++Zt]=[Wi,Mr]}),Wt}function Gj(wt,Zt){return function(Wt){return wt(Zt(Wt))}}function Ym(wt,Zt){for(var Wt=-1,Mr=wt.length,Wi=0,ga=[];++Wt<Mr;){var Aa=wt[Wt];(Aa===Zt||Aa===u)&&(wt[Wt]=u,ga[Wi++]=Wt)}return ga}function OT(wt){var Zt=-1,Wt=Array(wt.size);return wt.forEach(function(Mr){Wt[++Zt]=Mr}),Wt}function $j(wt){var Zt=-1,Wt=Array(wt.size);return wt.forEach(function(Mr){Wt[++Zt]=[Mr,Mr]}),Wt}function Uj(wt,Zt,Wt){for(var Mr=Wt-1,Wi=wt.length;++Mr<Wi;)if(wt[Mr]===Zt)return Mr;return-1}function Jw(wt,Zt,Wt){for(var Mr=Wt+1;Mr--;)if(wt[Mr]===Zt)return Mr;return Mr}function Mh(wt){return f2(wt)?Xj(wt):Qte(wt)}function Tp(wt){return f2(wt)?Xk(wt):Zte(wt)}function eS(wt){for(var Zt=wt.length;Zt--&&St.test(wt.charAt(Zt)););return Zt}var ine=Kw(Gte);function Xj(wt){for(var Zt=Vm.lastIndex=0;Vm.test(wt);)++Zt;return Zt}function Xk(wt){return wt.match(Vm)||[]}function Yk(wt){return wt.match(Hte)||[]}var Yj=(function wt(Zt){Zt=Zt==null?su:g2.defaults(su.Object(),Zt,g2.pick(su,Pj));var Wt=Zt.Array,Mr=Zt.Date,Wi=Zt.Error,ga=Zt.Function,Aa=Zt.Math,ns=Zt.Object,m2=Zt.RegExp,Kj=Zt.String,k0=Zt.TypeError,tS=Wt.prototype,Qj=ga.prototype,Km=ns.prototype,zT=Zt["__core-js_shared__"],cg=Qj.toString,ma=Km.hasOwnProperty,nS=0,TT=(function(){var k=/[^.]+$/.exec(zT&&zT.keys&&zT.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""})(),rS=Km.toString,Zj=cg.call(ns),Kk=su._,iS=m2("^"+cg.call(ma).replace(Je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ET=xT?Zt.Buffer:n,ug=Zt.Symbol,oS=Zt.Uint8Array,hs=ET?ET.allocUnsafe:n,aS=Gj(ns.getPrototypeOf,ns),Qk=ns.create,Zk=Km.propertyIsEnumerable,sS=tS.splice,Jk=ug?ug.isConcatSpreadable:n,dg=ug?ug.iterator:n,Ch=ug?ug.toStringTag:n,pg=(function(){try{var k=Th(ns,"defineProperty");return k({},"",{}),k}catch{}})(),Jj=Zt.clearTimeout!==su.clearTimeout&&Zt.clearTimeout,RT=Mr&&Mr.now!==su.Date.now&&Mr.now,eL=Zt.setTimeout!==su.setTimeout&&Zt.setTimeout,DM=Aa.ceil,lS=Aa.floor,cS=ns.getOwnPropertySymbols,eH=ET?ET.isBuffer:n,tH=Zt.isFinite,tL=tS.join,kM=Gj(ns.keys,ns),Ul=Aa.max,Fc=Aa.min,one=Mr.now,IT=Zt.parseInt,hg=Aa.random,PT=tS.reverse,Qm=Th(Zt,"DataView"),LM=Th(Zt,"Map"),fg=Th(Zt,"Promise"),xh=Th(Zt,"Set"),wh=Th(Zt,"WeakMap"),Zm=Th(ns,"create"),uS=wh&&new wh,Jm={},_M=T1(Qm),ev=T1(LM),Ts=T1(fg),cl=T1(xh),tv=T1(wh),dc=ug?ug.prototype:n,Wc=dc?dc.valueOf:n,nv=dc?dc.toString:n;function ke(k){if(Yl(k)&&!to(k)&&!(k instanceof To)){if(k instanceof L0)return k;if(ma.call(k,"__wrapped__"))return BL(k)}return new L0(k)}var pc=(function(){function k(){}return function(B){if(!zl(B))return{};if(Qk)return Qk(B);k.prototype=B;var K=new k;return k.prototype=n,K}})();function v2(){}function L0(k,B){this.__wrapped__=k,this.__actions__=[],this.__chain__=!!B,this.__index__=0,this.__values__=n}ke.templateSettings={escape:vr,evaluate:Fe,interpolate:He,variable:"",imports:{_:ke}},ke.prototype=v2.prototype,ke.prototype.constructor=ke,L0.prototype=pc(v2.prototype),L0.prototype.constructor=L0;function To(k){this.__wrapped__=k,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function DT(){var k=new To(this.__wrapped__);return k.__actions__=cd(this.__actions__),k.__dir__=this.__dir__,k.__filtered__=this.__filtered__,k.__iteratees__=cd(this.__iteratees__),k.__takeCount__=this.__takeCount__,k.__views__=cd(this.__views__),k}function nH(){if(this.__filtered__){var k=new To(this);k.__dir__=-1,k.__filtered__=!0}else k=this.clone(),k.__dir__*=-1;return k}function nL(){var k=this.__wrapped__.value(),B=this.__dir__,K=to(k),ge=B<0,Se=K?k.length:0,Be=LL(0,Se,this.__views__),ot=Be.start,ht=Be.end,Ot=ht-ot,sn=ge?ht:ot-1,ln=this.__iteratees__,mn=ln.length,cr=0,Ur=Fc(Ot,this.__takeCount__);if(!K||!ge&&Se==Ot&&Ur==Ot)return CS(k,this.__actions__);var Mi=[];e:for(;Ot--&&cr<Ur;){sn+=B;for(var xo=-1,Ci=k[sn];++xo<mn;){var qo=ln[xo],ra=qo.iteratee,kp=qo.type,W0=ra(Ci);if(kp==L)Ci=W0;else if(!W0){if(kp==N)continue e;break e}}Mi[cr++]=Ci}return Mi}To.prototype=pc(v2.prototype),To.prototype.constructor=To;function _0(k){var B=-1,K=k==null?0:k.length;for(this.clear();++B<K;){var ge=k[B];this.set(ge[0],ge[1])}}function ane(){this.__data__=Zm?Zm(null):{},this.size=0}function rL(k){var B=this.has(k)&&delete this.__data__[k];return this.size-=B?1:0,B}function iL(k){var B=this.__data__;if(Zm){var K=B[k];return K===l?n:K}return ma.call(B,k)?B[k]:n}function sne(k){var B=this.__data__;return Zm?B[k]!==n:ma.call(B,k)}function rH(k,B){var K=this.__data__;return this.size+=this.has(k)?0:1,K[k]=Zm&&B===n?l:B,this}_0.prototype.clear=ane,_0.prototype.delete=rL,_0.prototype.get=iL,_0.prototype.has=sne,_0.prototype.set=rH;function Ep(k){var B=-1,K=k==null?0:k.length;for(this.clear();++B<K;){var ge=k[B];this.set(ge[0],ge[1])}}function lne(){this.__data__=[],this.size=0}function kT(k){var B=this.__data__,K=qM(B,k);if(K<0)return!1;var ge=B.length-1;return K==ge?B.pop():sS.call(B,K,1),--this.size,!0}function iH(k){var B=this.__data__,K=qM(B,k);return K<0?n:B[K][1]}function oH(k){return qM(this.__data__,k)>-1}function aH(k,B){var K=this.__data__,ge=qM(K,k);return ge<0?(++this.size,K.push([k,B])):K[ge][1]=B,this}Ep.prototype.clear=lne,Ep.prototype.delete=kT,Ep.prototype.get=iH,Ep.prototype.has=oH,Ep.prototype.set=aH;function Sh(k){var B=-1,K=k==null?0:k.length;for(this.clear();++B<K;){var ge=k[B];this.set(ge[0],ge[1])}}function oL(){this.size=0,this.__data__={hash:new _0,map:new(LM||Ep),string:new _0}}function cne(k){var B=YM(this,k).delete(k);return this.size-=B?1:0,B}function gg(k){return YM(this,k).get(k)}function LT(k){return YM(this,k).has(k)}function aL(k,B){var K=YM(this,k),ge=K.size;return K.set(k,B),this.size+=K.size==ge?0:1,this}Sh.prototype.clear=oL,Sh.prototype.delete=cne,Sh.prototype.get=gg,Sh.prototype.has=LT,Sh.prototype.set=aL;function rv(k){var B=-1,K=k==null?0:k.length;for(this.__data__=new Sh;++B<K;)this.add(k[B])}function Fu(k){return this.__data__.set(k,l),this}function NM(k){return this.__data__.has(k)}rv.prototype.add=rv.prototype.push=Fu,rv.prototype.has=NM;function x1(k){var B=this.__data__=new Ep(k);this.size=B.size}function b2(){this.__data__=new Ep,this.size=0}function dS(k){var B=this.__data__,K=B.delete(k);return this.size=B.size,K}function Ah(k){return this.__data__.get(k)}function sH(k){return this.__data__.has(k)}function une(k,B){var K=this.__data__;if(K instanceof Ep){var ge=K.__data__;if(!LM||ge.length<i-1)return ge.push([k,B]),this.size=++K.size,this;K=this.__data__=new Sh(ge)}return K.set(k,B),this.size=K.size,this}x1.prototype.clear=b2,x1.prototype.delete=dS,x1.prototype.get=Ah,x1.prototype.has=sH,x1.prototype.set=une;function w1(k,B){var K=to(k),ge=!K&&WS(k),Se=!K&&!ge&&JM(k),Be=!K&&!ge&&!Se&&pE(k),ot=K||ge||Se||Be,ht=ot?AT(k.length,Kj):[],Ot=ht.length;for(var sn in k)(B||ma.call(k,sn))&&!(ot&&(sn=="length"||Se&&(sn=="offset"||sn=="parent")||Be&&(sn=="buffer"||sn=="byteLength"||sn=="byteOffset")||qu(sn,Ot)))&&ht.push(sn);return ht}function pS(k){var B=k.length;return B?k[z2(0,B-1)]:n}function _T(k,B){return kS(cd(k),iv(B,0,k.length))}function FM(k){return kS(cd(k))}function WM(k,B,K){(K!==n&&!Ag(k[B],K)||K===n&&!(B in k))&&Wu(k,B,K)}function y2(k,B,K){var ge=k[B];(!(ma.call(k,B)&&Ag(ge,K))||K===n&&!(B in k))&&Wu(k,B,K)}function qM(k,B){for(var K=k.length;K--;)if(Ag(k[K][0],B))return K;return-1}function lH(k,B,K,ge){return mg(k,function(Se,Be,ot){B(ge,Se,K(Se),ot)}),ge}function M2(k,B){return k&&Ip(B,Bu(B),k)}function S1(k,B){return k&&Ip(B,I1(B),k)}function Wu(k,B,K){B=="__proto__"&&pg?pg(k,B,{configurable:!0,enumerable:!0,value:K,writable:!0}):k[B]=K}function hS(k,B){for(var K=-1,ge=B.length,Se=Wt(ge),Be=k==null;++K<ge;)Se[K]=Be?n:Pne(k,B[K]);return Se}function iv(k,B,K){return k===k&&(K!==n&&(k=k<=K?k:K),B!==n&&(k=k>=B?k:B)),k}function hc(k,B,K,ge,Se,Be){var ot,ht=B&d,Ot=B&p,sn=B&h;if(K&&(ot=Se?K(k,ge,Se,Be):K(k)),ot!==n)return ot;if(!zl(k))return k;var ln=to(k);if(ln){if(ot=QM(k),!ht)return cd(k,ot)}else{var mn=Bc(k),cr=mn==ae||mn==ne;if(JM(k))return ML(k,ht);if(mn==me||mn==re||cr&&!Se){if(ot=Ot||cr?{}:wr(k),!ht)return Ot?AL(k,S1(ot,k)):yH(k,M2(ot,k))}else{if(!Ga[mn])return Se?k:{};ot=iE(k,mn,ht)}}Be||(Be=new x1);var Ur=Be.get(k);if(Ur)return Ur;Be.set(k,ot),GTe(k)?k.forEach(function(Ci){ot.add(hc(Ci,B,K,Ci,k,Be))}):HTe(k)&&k.forEach(function(Ci,qo){ot.set(qo,hc(Ci,B,K,qo,k,Be))});var Mi=sn?Ot?yi:TS:Ot?I1:Bu,xo=ln?n:Mi(k);return Nu(xo||k,function(Ci,qo){xo&&(qo=Ci,Ci=k[qo]),y2(ot,qo,hc(Ci,B,K,qo,k,Be))}),ot}function ov(k){var B=Bu(k);return function(K){return sL(K,k,B)}}function sL(k,B,K){var ge=K.length;if(k==null)return!ge;for(k=ns(k);ge--;){var Se=K[ge],Be=B[Se],ot=k[Se];if(ot===n&&!(Se in k)||!Be(ot))return!1}return!0}function BM(k,B,K){if(typeof k!="function")throw new k0(a);return Ih(function(){k.apply(n,K)},B)}function jM(k,B,K,ge){var Se=-1,Be=$m,ot=!0,ht=k.length,Ot=[],sn=B.length;if(!ht)return Ot;K&&(B=zs(B,D0(K))),ge?(Be=PM,ot=!1):B.length>=i&&(Be=Qw,ot=!1,B=new rv(B));e:for(;++Se<ht;){var ln=k[Se],mn=K==null?ln:K(ln);if(ln=ge||ln!==0?ln:0,ot&&mn===mn){for(var cr=sn;cr--;)if(B[cr]===mn)continue e;Ot.push(ln)}else Be(B,mn,ge)||Ot.push(ln)}return Ot}var mg=OL(N0),fS=OL(FT,!0);function NT(k,B){var K=!0;return mg(k,function(ge,Se,Be){return K=!!B(ge,Se,Be),K}),K}function gS(k,B,K){for(var ge=-1,Se=k.length;++ge<Se;){var Be=k[ge],ot=B(Be);if(ot!=null&&(ht===n?ot===ot&&!Dp(ot):K(ot,ht)))var ht=ot,Ot=Be}return Ot}function cH(k,B,K,ge){var Se=k.length;for(K=vo(K),K<0&&(K=-K>Se?0:Se+K),ge=ge===n||ge>Se?Se:vo(ge),ge<0&&(ge+=Se),ge=K>ge?0:UTe(ge);K<ge;)k[K++]=B;return k}function lL(k,B){var K=[];return mg(k,function(ge,Se,Be){B(ge,Se,Be)&&K.push(ge)}),K}function fc(k,B,K,ge,Se){var Be=-1,ot=k.length;for(K||(K=Eh),Se||(Se=[]);++Be<ot;){var ht=k[Be];B>0&&K(ht)?B>1?fc(ht,B-1,K,ge,Se):Um(Se,ht):ge||(Se[Se.length]=ht)}return Se}var HM=QT(),VM=QT(!0);function N0(k,B){return k&&HM(k,B,Bu)}function FT(k,B){return k&&VM(k,B,Bu)}function C2(k,B){return yh(B,function(K){return k2(k[K])})}function av(k,B){B=qc(B,k);for(var K=0,ge=B.length;k!=null&&K<ge;)k=k[z1(B[K++])];return K&&K==ge?k:n}function GM(k,B,K){var ge=B(k);return to(k)?ge:Um(ge,K(k))}function Ws(k){return k==null?k===n?Ce:be:Ch&&Ch in ns(k)?KM(k):F0(k)}function x2(k,B){return k>B}function mS(k,B){return k!=null&&ma.call(k,B)}function w2(k,B){return k!=null&&B in ns(k)}function cL(k,B,K){return k>=Fc(B,K)&&k<Ul(B,K)}function sv(k,B,K){for(var ge=K?PM:$m,Se=k[0].length,Be=k.length,ot=Be,ht=Wt(Be),Ot=1/0,sn=[];ot--;){var ln=k[ot];ot&&B&&(ln=zs(ln,D0(B))),Ot=Fc(ln.length,Ot),ht[ot]=!K&&(B||Se>=120&&ln.length>=120)?new rv(ot&&ln):n}ln=k[0];var mn=-1,cr=ht[0];e:for(;++mn<Se&&sn.length<Ot;){var Ur=ln[mn],Mi=B?B(Ur):Ur;if(Ur=K||Ur!==0?Ur:0,!(cr?Qw(cr,Mi):ge(sn,Mi,K))){for(ot=Be;--ot;){var xo=ht[ot];if(!(xo?Qw(xo,Mi):ge(k[ot],Mi,K)))continue e}cr&&cr.push(Mi),sn.push(Ur)}}return sn}function uH(k,B,K,ge){return N0(k,function(Se,Be,ot){B(ge,K(Se),Be,ot)}),ge}function S2(k,B,K){B=qc(B,k),k=wg(k,B);var ge=k==null?k:k[z1(jd(B))];return ge==null?n:Nc(ge,k,K)}function Zs(k){return Yl(k)&&Ws(k)==re}function WT(k){return Yl(k)&&Ws(k)==_e}function vg(k){return Yl(k)&&Ws(k)==te}function A1(k,B,K,ge,Se){return k===B?!0:k==null||B==null||!Yl(k)&&!Yl(B)?k!==k&&B!==B:Oh(k,B,K,ge,A1,Se)}function Oh(k,B,K,ge,Se,Be){var ot=to(k),ht=to(B),Ot=ot?ee:Bc(k),sn=ht?ee:Bc(B);Ot=Ot==re?me:Ot,sn=sn==re?me:sn;var ln=Ot==me,mn=sn==me,cr=Ot==sn;if(cr&&JM(k)){if(!JM(B))return!1;ot=!0,ln=!1}if(cr&&!ln)return Be||(Be=new x1),ot||pE(k)?kL(k,B,K,ge,Se,Be):hne(k,B,Ot,K,ge,Se,Be);if(!(K&g)){var Ur=ln&&ma.call(k,"__wrapped__"),Mi=mn&&ma.call(B,"__wrapped__");if(Ur||Mi){var xo=Ur?k.value():k,Ci=Mi?B.value():B;return Be||(Be=new x1),Se(xo,Ci,K,ge,Be)}}return cr?(Be||(Be=new x1),fne(k,B,K,ge,Se,Be)):!1}function dH(k){return Yl(k)&&Bc(k)==le}function qT(k,B,K,ge){var Se=K.length,Be=Se,ot=!ge;if(k==null)return!Be;for(k=ns(k);Se--;){var ht=K[Se];if(ot&&ht[2]?ht[1]!==k[ht[0]]:!(ht[0]in k))return!1}for(;++Se<Be;){ht=K[Se];var Ot=ht[0],sn=k[Ot],ln=ht[1];if(ot&&ht[2]){if(sn===n&&!(Ot in k))return!1}else{var mn=new x1;if(ge)var cr=ge(sn,ln,Ot,k,B,mn);if(!(cr===n?A1(ln,sn,g|m,ge,mn):cr))return!1}}return!0}function BT(k){if(!zl(k)||Cg(k))return!1;var B=k2(k)?iS:kt;return B.test(T1(k))}function pH(k){return Yl(k)&&Ws(k)==de}function jT(k){return Yl(k)&&Bc(k)==ie}function uL(k){return Yl(k)&&FH(k.length)&&!!Sa[Ws(k)]}function A2(k){return typeof k=="function"?k:k==null?P1:typeof k=="object"?to(k)?lu(k[0],k[1]):ul(k):iEe(k)}function vS(k){if(!P2(k))return kM(k);var B=[];for(var K in ns(k))ma.call(k,K)&&K!="constructor"&&B.push(K);return B}function bS(k){if(!zl(k))return aE(k);var B=P2(k),K=[];for(var ge in k)ge=="constructor"&&(B||!ma.call(k,ge))||K.push(ge);return K}function Nd(k,B){return k<B}function $M(k,B){var K=-1,ge=R1(k)?Wt(k.length):[];return mg(k,function(Se,Be,ot){ge[++K]=B(Se,Be,ot)}),ge}function ul(k){var B=gc(k);return B.length==1&&B[0][2]?Rh(B[0][0],B[0][1]):function(K){return K===k||qT(K,k,B)}}function lu(k,B){return I2(k)&&IS(B)?Rh(z1(k),B):function(K){var ge=Pne(K,k);return ge===n&&ge===B?Dne(K,k):A1(B,ge,g|m)}}function Xl(k,B,K,ge,Se){k!==B&&HM(B,function(Be,ot){if(Se||(Se=new x1),zl(Be))HT(k,B,ot,K,Xl,ge,Se);else{var ht=ge?ge(Bd(k,ot),Be,ot+"",k,B,Se):n;ht===n&&(ht=Be),WM(k,ot,ht)}},I1)}function HT(k,B,K,ge,Se,Be,ot){var ht=Bd(k,K),Ot=Bd(B,K),sn=ot.get(Ot);if(sn){WM(k,K,sn);return}var ln=Be?Be(ht,Ot,K+"",k,B,ot):n,mn=ln===n;if(mn){var cr=to(Ot),Ur=!cr&&JM(Ot),Mi=!cr&&!Ur&&pE(Ot);ln=Ot,cr||Ur||Mi?to(ht)?ln=ht:vc(ht)?ln=cd(ht):Ur?(mn=!1,ln=ML(Ot,!0)):Mi?(mn=!1,ln=YT(Ot,!0)):ln=[]:KL(Ot)||WS(Ot)?(ln=ht,WS(ht)?ln=XTe(ht):(!zl(ht)||k2(ht))&&(ln=wr(Ot))):mn=!1}mn&&(ot.set(Ot,ln),Se(ln,Ot,ge,Be,ot),ot.delete(Ot)),WM(k,K,ln)}function UM(k,B){var K=k.length;if(K)return B+=B<0?K:0,qu(B,K)?k[B]:n}function sd(k,B,K){B.length?B=zs(B,function(Be){return to(Be)?function(ot){return av(ot,Be.length===1?Be[0]:Be)}:Be}):B=[P1];var ge=-1;B=zs(B,D0(Kr()));var Se=$M(k,function(Be,ot,ht){var Ot=zs(B,function(sn){return sn(Be)});return{criteria:Ot,index:++ge,value:Be}});return tne(Se,function(Be,ot){return KT(Be,ot,K)})}function dL(k,B){return VT(k,B,function(K,ge){return Dne(k,ge)})}function VT(k,B,K){for(var ge=-1,Se=B.length,Be={};++ge<Se;){var ot=B[ge],ht=av(k,ot);K(ht,ot)&&lv(Be,qc(ot,k),ht)}return Be}function O2(k){return function(B){return av(B,k)}}function bg(k,B,K,ge){var Se=ge?ene:h2,Be=-1,ot=B.length,ht=k;for(k===B&&(B=cd(B)),K&&(ht=zs(k,D0(K)));++Be<ot;)for(var Ot=0,sn=B[Be],ln=K?K(sn):sn;(Ot=Se(ht,ln,Ot,ge))>-1;)ht!==k&&sS.call(ht,Ot,1),sS.call(k,Ot,1);return k}function Rp(k,B){for(var K=k?B.length:0,ge=K-1;K--;){var Se=B[K];if(K==ge||Se!==Be){var Be=Se;qu(Se)?sS.call(k,Se,1):XT(k,Se)}}return k}function z2(k,B){return k+lS(hg()*(B-k+1))}function yS(k,B,K,ge){for(var Se=-1,Be=Ul(DM((B-k)/(K||1)),0),ot=Wt(Be);Be--;)ot[ge?Be:++Se]=k,k+=K;return ot}function GT(k,B){var K="";if(!k||B<1||B>V)return K;do B%2&&(K+=k),B=lS(B/2),B&&(k+=k);while(B);return K}function co(k,B){return DS(xg(k,B,P1),k+"")}function hH(k){return pS(hE(k))}function MS(k,B){var K=hE(k);return kS(K,iv(B,0,K.length))}function lv(k,B,K,ge){if(!zl(k))return k;B=qc(B,k);for(var Se=-1,Be=B.length,ot=Be-1,ht=k;ht!=null&&++Se<Be;){var Ot=z1(B[Se]),sn=K;if(Ot==="__proto__"||Ot==="constructor"||Ot==="prototype")return k;if(Se!=ot){var ln=ht[Ot];sn=ge?ge(ln,Ot,ht):n,sn===n&&(sn=zl(ln)?ln:qu(B[Se+1])?[]:{})}y2(ht,Ot,sn),ht=ht[Ot]}return k}var pL=uS?function(k,B){return uS.set(k,B),k}:P1,$T=pg?function(k,B){return pg(k,"toString",{configurable:!0,enumerable:!1,value:Lne(B),writable:!0})}:P1;function hL(k){return kS(hE(k))}function Fd(k,B,K){var ge=-1,Se=k.length;B<0&&(B=-B>Se?0:Se+B),K=K>Se?Se:K,K<0&&(K+=Se),Se=B>K?0:K-B>>>0,B>>>=0;for(var Be=Wt(Se);++ge<Se;)Be[ge]=k[ge+B];return Be}function fH(k,B){var K;return mg(k,function(ge,Se,Be){return K=B(ge,Se,Be),!K}),!!K}function T2(k,B,K){var ge=0,Se=k==null?ge:k.length;if(typeof B=="number"&&B===B&&Se<=X){for(;ge<Se;){var Be=ge+Se>>>1,ot=k[Be];ot!==null&&!Dp(ot)&&(K?ot<=B:ot<B)?ge=Be+1:Se=Be}return Se}return UT(k,B,P1,K)}function UT(k,B,K,ge){var Se=0,Be=k==null?0:k.length;if(Be===0)return 0;B=K(B);for(var ot=B!==B,ht=B===null,Ot=Dp(B),sn=B===n;Se<Be;){var ln=lS((Se+Be)/2),mn=K(k[ln]),cr=mn!==n,Ur=mn===null,Mi=mn===mn,xo=Dp(mn);if(ot)var Ci=ge||Mi;else sn?Ci=Mi&&(ge||cr):ht?Ci=Mi&&cr&&(ge||!Ur):Ot?Ci=Mi&&cr&&!Ur&&(ge||!xo):Ur||xo?Ci=!1:Ci=ge?mn<=B:mn<B;Ci?Se=ln+1:Be=ln}return Fc(Be,U)}function fL(k,B){for(var K=-1,ge=k.length,Se=0,Be=[];++K<ge;){var ot=k[K],ht=B?B(ot):ot;if(!K||!Ag(ht,Ot)){var Ot=ht;Be[Se++]=ot===0?0:ot}}return Be}function gL(k){return typeof k=="number"?k:Dp(k)?q:+k}function ld(k){if(typeof k=="string")return k;if(to(k))return zs(k,ld)+"";if(Dp(k))return nv?nv.call(k):"";var B=k+"";return B=="0"&&1/k==-j?"-0":B}function yg(k,B,K){var ge=-1,Se=$m,Be=k.length,ot=!0,ht=[],Ot=ht;if(K)ot=!1,Se=PM;else if(Be>=i){var sn=B?null:xH(k);if(sn)return OT(sn);ot=!1,Se=Qw,Ot=new rv}else Ot=B?[]:ht;e:for(;++ge<Be;){var ln=k[ge],mn=B?B(ln):ln;if(ln=K||ln!==0?ln:0,ot&&mn===mn){for(var cr=Ot.length;cr--;)if(Ot[cr]===mn)continue e;B&&Ot.push(mn),ht.push(ln)}else Se(Ot,mn,K)||(Ot!==ht&&Ot.push(mn),ht.push(ln))}return ht}function XT(k,B){return B=qc(B,k),k=wg(k,B),k==null||delete k[z1(jd(B))]}function gH(k,B,K,ge){return lv(k,B,K(av(k,B)),ge)}function XM(k,B,K,ge){for(var Se=k.length,Be=ge?Se:-1;(ge?Be--:++Be<Se)&&B(k[Be],Be,k););return K?Fd(k,ge?0:Be,ge?Be+1:Se):Fd(k,ge?Be+1:0,ge?Se:Be)}function CS(k,B){var K=k;return K instanceof To&&(K=K.value()),Hk(B,function(ge,Se){return Se.func.apply(Se.thisArg,Um([ge],Se.args))},K)}function mL(k,B,K){var ge=k.length;if(ge<2)return ge?yg(k[0]):[];for(var Se=-1,Be=Wt(ge);++Se<ge;)for(var ot=k[Se],ht=-1;++ht<ge;)ht!=Se&&(Be[Se]=jM(Be[Se]||ot,k[ht],B,K));return yg(fc(Be,1),B,K)}function mH(k,B,K){for(var ge=-1,Se=k.length,Be=B.length,ot={};++ge<Se;){var ht=ge<Be?B[ge]:n;K(ot,k[ge],ht)}return ot}function vL(k){return vc(k)?k:[]}function bL(k){return typeof k=="function"?k:P1}function qc(k,B){return to(k)?k:I2(k,B)?[k]:LS($a(k))}var Wd=co;function Mg(k,B,K){var ge=k.length;return K=K===n?ge:K,!B&&K>=ge?k:Fd(k,B,K)}var yL=Jj||function(k){return su.clearTimeout(k)};function ML(k,B){if(B)return k.slice();var K=k.length,ge=hs?hs(K):new k.constructor(K);return k.copy(ge),ge}function xS(k){var B=new k.constructor(k.byteLength);return new oS(B).set(new oS(k)),B}function vH(k,B){var K=B?xS(k.buffer):k.buffer;return new k.constructor(K,k.byteOffset,k.byteLength)}function CL(k){var B=new k.constructor(k.source,Uo.exec(k));return B.lastIndex=k.lastIndex,B}function bH(k){return Wc?ns(Wc.call(k)):{}}function YT(k,B){var K=B?xS(k.buffer):k.buffer;return new k.constructor(K,k.byteOffset,k.length)}function xL(k,B){if(k!==B){var K=k!==n,ge=k===null,Se=k===k,Be=Dp(k),ot=B!==n,ht=B===null,Ot=B===B,sn=Dp(B);if(!ht&&!sn&&!Be&&k>B||Be&&ot&&Ot&&!ht&&!sn||ge&&ot&&Ot||!K&&Ot||!Se)return 1;if(!ge&&!Be&&!sn&&k<B||sn&&K&&Se&&!ge&&!Be||ht&&K&&Se||!ot&&Se||!Ot)return-1}return 0}function KT(k,B,K){for(var ge=-1,Se=k.criteria,Be=B.criteria,ot=Se.length,ht=K.length;++ge<ot;){var Ot=xL(Se[ge],Be[ge]);if(Ot){if(ge>=ht)return Ot;var sn=K[ge];return Ot*(sn=="desc"?-1:1)}}return k.index-B.index}function wL(k,B,K,ge){for(var Se=-1,Be=k.length,ot=K.length,ht=-1,Ot=B.length,sn=Ul(Be-ot,0),ln=Wt(Ot+sn),mn=!ge;++ht<Ot;)ln[ht]=B[ht];for(;++Se<ot;)(mn||Se<Be)&&(ln[K[Se]]=k[Se]);for(;sn--;)ln[ht++]=k[Se++];return ln}function SL(k,B,K,ge){for(var Se=-1,Be=k.length,ot=-1,ht=K.length,Ot=-1,sn=B.length,ln=Ul(Be-ht,0),mn=Wt(ln+sn),cr=!ge;++Se<ln;)mn[Se]=k[Se];for(var Ur=Se;++Ot<sn;)mn[Ur+Ot]=B[Ot];for(;++ot<ht;)(cr||Se<Be)&&(mn[Ur+K[ot]]=k[Se++]);return mn}function cd(k,B){var K=-1,ge=k.length;for(B||(B=Wt(ge));++K<ge;)B[K]=k[K];return B}function Ip(k,B,K,ge){var Se=!K;K||(K={});for(var Be=-1,ot=B.length;++Be<ot;){var ht=B[Be],Ot=ge?ge(K[ht],k[ht],ht,K,k):n;Ot===n&&(Ot=k[ht]),Se?Wu(K,ht,Ot):y2(K,ht,Ot)}return K}function yH(k,B){return Ip(k,E2(k),B)}function AL(k,B){return Ip(k,R2(k),B)}function wS(k,B){return function(K,ge){var Se=to(K)?jk:lH,Be=B?B():{};return Se(K,k,Kr(ge,2),Be)}}function qd(k){return co(function(B,K){var ge=-1,Se=K.length,Be=Se>1?K[Se-1]:n,ot=Se>2?K[2]:n;for(Be=k.length>3&&typeof Be=="function"?(Se--,Be):n,ot&&mc(K[0],K[1],ot)&&(Be=Se<3?n:Be,Se=1),B=ns(B);++ge<Se;){var ht=K[ge];ht&&k(B,ht,ge,Be)}return B})}function OL(k,B){return function(K,ge){if(K==null)return K;if(!R1(K))return k(K,ge);for(var Se=K.length,Be=B?Se:-1,ot=ns(K);(B?Be--:++Be<Se)&&ge(ot[Be],Be,ot)!==!1;);return K}}function QT(k){return function(B,K,ge){for(var Se=-1,Be=ns(B),ot=ge(B),ht=ot.length;ht--;){var Ot=ot[k?ht:++Se];if(K(Be[Ot],Ot,Be)===!1)break}return B}}function MH(k,B,K){var ge=B&b,Se=SS(k);function Be(){var ot=this&&this!==su&&this instanceof Be?Se:k;return ot.apply(ge?K:this,arguments)}return Be}function zL(k){return function(B){B=$a(B);var K=f2(B)?Tp(B):n,ge=K?K[0]:B.charAt(0),Se=K?Mg(K,1).join(""):B.slice(1);return ge[k]()+Se}}function zh(k){return function(B){return Hk(nEe(tEe(B).replace(jte,"")),k,"")}}function SS(k){return function(){var B=arguments;switch(B.length){case 0:return new k;case 1:return new k(B[0]);case 2:return new k(B[0],B[1]);case 3:return new k(B[0],B[1],B[2]);case 4:return new k(B[0],B[1],B[2],B[3]);case 5:return new k(B[0],B[1],B[2],B[3],B[4]);case 6:return new k(B[0],B[1],B[2],B[3],B[4],B[5]);case 7:return new k(B[0],B[1],B[2],B[3],B[4],B[5],B[6])}var K=pc(k.prototype),ge=k.apply(K,B);return zl(ge)?ge:K}}function dne(k,B,K){var ge=SS(k);function Se(){for(var Be=arguments.length,ot=Wt(Be),ht=Be,Ot=Ol(Se);ht--;)ot[ht]=arguments[ht];var sn=Be<3&&ot[0]!==Ot&&ot[Be-1]!==Ot?[]:Ym(ot,Ot);if(Be-=sn.length,Be<K)return RL(k,B,eE,Se.placeholder,n,ot,sn,n,n,K-Be);var ln=this&&this!==su&&this instanceof Se?ge:k;return Nc(ln,this,ot)}return Se}function ZT(k){return function(B,K,ge){var Se=ns(B);if(!R1(B)){var Be=Kr(K,3);B=Bu(B),K=function(ht){return Be(Se[ht],ht,Se)}}var ot=k(B,K,ge);return ot>-1?Se[Be?B[ot]:ot]:n}}function JT(k){return O1(function(B){var K=B.length,ge=K,Se=L0.prototype.thru;for(k&&B.reverse();ge--;){var Be=B[ge];if(typeof Be!="function")throw new k0(a);if(Se&&!ot&&dl(Be)=="wrapper")var ot=new L0([],!0)}for(ge=ot?ge:K;++ge<K;){Be=B[ge];var ht=dl(Be),Ot=ht=="wrapper"?cu(Be):n;Ot&&ES(Ot[0])&&Ot[1]==(A|C|w|z)&&!Ot[4].length&&Ot[9]==1?ot=ot[dl(Ot[0])].apply(ot,Ot[3]):ot=Be.length==1&&ES(Be)?ot[ht]():ot.thru(Be)}return function(){var sn=arguments,ln=sn[0];if(ot&&sn.length==1&&to(ln))return ot.plant(ln).value();for(var mn=0,cr=K?B[mn].apply(this,sn):ln;++mn<K;)cr=B[mn].call(this,cr);return cr}})}function eE(k,B,K,ge,Se,Be,ot,ht,Ot,sn){var ln=B&A,mn=B&b,cr=B&y,Ur=B&(C|x),Mi=B&O,xo=cr?n:SS(k);function Ci(){for(var qo=arguments.length,ra=Wt(qo),kp=qo;kp--;)ra[kp]=arguments[kp];if(Ur)var W0=Ol(Ci),Lp=Uk(ra,W0);if(ge&&(ra=wL(ra,ge,Se,Ur)),Be&&(ra=SL(ra,Be,ot,Ur)),qo-=Lp,Ur&&qo<sn){var bc=Ym(ra,W0);return RL(k,B,eE,Ci.placeholder,K,ra,bc,ht,Ot,sn-qo)}var Og=mn?K:this,_2=cr?Og[k]:k;return qo=ra.length,ht?ra=sE(ra,ht):Mi&&qo>1&&ra.reverse(),ln&&Ot<qo&&(ra.length=Ot),this&&this!==su&&this instanceof Ci&&(_2=xo||SS(_2)),_2.apply(Og,ra)}return Ci}function TL(k,B){return function(K,ge){return uH(K,k,B(ge),{})}}function AS(k,B){return function(K,ge){var Se;if(K===n&&ge===n)return B;if(K!==n&&(Se=K),ge!==n){if(Se===n)return ge;typeof K=="string"||typeof ge=="string"?(K=ld(K),ge=ld(ge)):(K=gL(K),ge=gL(ge)),Se=k(K,ge)}return Se}}function EL(k){return O1(function(B){return B=zs(B,D0(Kr())),co(function(K){var ge=this;return k(B,function(Se){return Nc(Se,ge,K)})})})}function OS(k,B){B=B===n?" ":ld(B);var K=B.length;if(K<2)return K?GT(B,k):B;var ge=GT(B,DM(k/Mh(B)));return f2(B)?Mg(Tp(ge),0,k).join(""):ge.slice(0,k)}function pne(k,B,K,ge){var Se=B&b,Be=SS(k);function ot(){for(var ht=-1,Ot=arguments.length,sn=-1,ln=ge.length,mn=Wt(ln+Ot),cr=this&&this!==su&&this instanceof ot?Be:k;++sn<ln;)mn[sn]=ge[sn];for(;Ot--;)mn[sn++]=arguments[++ht];return Nc(cr,Se?K:this,mn)}return ot}function CH(k){return function(B,K,ge){return ge&&typeof ge!="number"&&mc(B,K,ge)&&(K=ge=n),B=L2(B),K===n?(K=B,B=0):K=L2(K),ge=ge===n?B<K?1:-1:L2(ge),yS(B,K,ge,k)}}function zS(k){return function(B,K){return typeof B=="string"&&typeof K=="string"||(B=Ph(B),K=Ph(K)),k(B,K)}}function RL(k,B,K,ge,Se,Be,ot,ht,Ot,sn){var ln=B&C,mn=ln?ot:n,cr=ln?n:ot,Ur=ln?Be:n,Mi=ln?n:Be;B|=ln?w:S,B&=~(ln?S:w),B&M||(B&=-4);var xo=[k,B,Se,Ur,mn,Mi,cr,ht,Ot,sn],Ci=K.apply(n,xo);return ES(k)&&WL(Ci,xo),Ci.placeholder=ge,wH(Ci,k,B)}function tE(k){var B=Aa[k];return function(K,ge){if(K=Ph(K),ge=ge==null?0:Fc(vo(ge),292),ge&&tH(K)){var Se=($a(K)+"e").split("e"),Be=B(Se[0]+"e"+(+Se[1]+ge));return Se=($a(Be)+"e").split("e"),+(Se[0]+"e"+(+Se[1]-ge))}return B(K)}}var xH=xh&&1/OT(new xh([,-0]))[1]==j?function(k){return new xh(k)}:Fne;function IL(k){return function(B){var K=Bc(B);return K==le?Xm(B):K==ie?$j(B):nne(B,k(B))}}function Pp(k,B,K,ge,Se,Be,ot,ht){var Ot=B&y;if(!Ot&&typeof k!="function")throw new k0(a);var sn=ge?ge.length:0;if(sn||(B&=-97,ge=Se=n),ot=ot===n?ot:Ul(vo(ot),0),ht=ht===n?ht:vo(ht),sn-=Se?Se.length:0,B&S){var ln=ge,mn=Se;ge=Se=n}var cr=Ot?n:cu(k),Ur=[k,B,K,ge,Se,ln,mn,Be,ot,ht];if(cr&&PS(Ur,cr),k=Ur[0],B=Ur[1],K=Ur[2],ge=Ur[3],Se=Ur[4],ht=Ur[9]=Ur[9]===n?Ot?0:k.length:Ul(Ur[9]-sn,0),!ht&&B&(C|x)&&(B&=-25),!B||B==b)var Mi=MH(k,B,K);else B==C||B==x?Mi=dne(k,B,ht):(B==w||B==(b|w))&&!Se.length?Mi=pne(k,B,K,ge):Mi=eE.apply(n,Ur);var xo=cr?pL:WL;return wH(xo(Mi,Ur),k,B)}function nE(k,B,K,ge){return k===n||Ag(k,Km[K])&&!ma.call(ge,K)?B:k}function PL(k,B,K,ge,Se,Be){return zl(k)&&zl(B)&&(Be.set(B,k),Xl(k,B,n,PL,Be),Be.delete(B)),k}function DL(k){return KL(k)?n:k}function kL(k,B,K,ge,Se,Be){var ot=K&g,ht=k.length,Ot=B.length;if(ht!=Ot&&!(ot&&Ot>ht))return!1;var sn=Be.get(k),ln=Be.get(B);if(sn&&ln)return sn==B&&ln==k;var mn=-1,cr=!0,Ur=K&m?new rv:n;for(Be.set(k,B),Be.set(B,k);++mn<ht;){var Mi=k[mn],xo=B[mn];if(ge)var Ci=ot?ge(xo,Mi,mn,B,k,Be):ge(Mi,xo,mn,k,B,Be);if(Ci!==n){if(Ci)continue;cr=!1;break}if(Ur){if(!Yw(B,function(qo,ra){if(!Qw(Ur,ra)&&(Mi===qo||Se(Mi,qo,K,ge,Be)))return Ur.push(ra)})){cr=!1;break}}else if(!(Mi===xo||Se(Mi,xo,K,ge,Be))){cr=!1;break}}return Be.delete(k),Be.delete(B),cr}function hne(k,B,K,ge,Se,Be,ot){switch(K){case Ie:if(k.byteLength!=B.byteLength||k.byteOffset!=B.byteOffset)return!1;k=k.buffer,B=B.buffer;case _e:return!(k.byteLength!=B.byteLength||!Be(new oS(k),new oS(B)));case pe:case te:case he:return Ag(+k,+B);case oe:return k.name==B.name&&k.message==B.message;case de:case ue:return k==B+"";case le:var ht=Xm;case ie:var Ot=ge&g;if(ht||(ht=OT),k.size!=B.size&&!Ot)return!1;var sn=ot.get(k);if(sn)return sn==B;ge|=m,ot.set(k,B);var ln=kL(ht(k),ht(B),ge,Se,Be,ot);return ot.delete(k),ln;case Ae:if(Wc)return Wc.call(k)==Wc.call(B)}return!1}function fne(k,B,K,ge,Se,Be){var ot=K&g,ht=TS(k),Ot=ht.length,sn=TS(B),ln=sn.length;if(Ot!=ln&&!ot)return!1;for(var mn=Ot;mn--;){var cr=ht[mn];if(!(ot?cr in B:ma.call(B,cr)))return!1}var Ur=Be.get(k),Mi=Be.get(B);if(Ur&&Mi)return Ur==B&&Mi==k;var xo=!0;Be.set(k,B),Be.set(B,k);for(var Ci=ot;++mn<Ot;){cr=ht[mn];var qo=k[cr],ra=B[cr];if(ge)var kp=ot?ge(ra,qo,cr,B,k,Be):ge(qo,ra,cr,k,B,Be);if(!(kp===n?qo===ra||Se(qo,ra,K,ge,Be):kp)){xo=!1;break}Ci||(Ci=cr=="constructor")}if(xo&&!Ci){var W0=k.constructor,Lp=B.constructor;W0!=Lp&&"constructor"in k&&"constructor"in B&&!(typeof W0=="function"&&W0 instanceof W0&&typeof Lp=="function"&&Lp instanceof Lp)&&(xo=!1)}return Be.delete(k),Be.delete(B),xo}function O1(k){return DS(xg(k,n,Sg),k+"")}function TS(k){return GM(k,Bu,E2)}function yi(k){return GM(k,I1,R2)}var cu=uS?function(k){return uS.get(k)}:Fne;function dl(k){for(var B=k.name+"",K=Jm[B],ge=ma.call(Jm,B)?K.length:0;ge--;){var Se=K[ge],Be=Se.func;if(Be==null||Be==k)return Se.name}return B}function Ol(k){var B=ma.call(ke,"placeholder")?ke:k;return B.placeholder}function Kr(){var k=ke.iteratee||_ne;return k=k===_ne?A2:k,arguments.length?k(arguments[0],arguments[1]):k}function YM(k,B){var K=k.__data__;return FL(B)?K[typeof B=="string"?"string":"hash"]:K.map}function gc(k){for(var B=Bu(k),K=B.length;K--;){var ge=B[K],Se=k[ge];B[K]=[ge,Se,IS(Se)]}return B}function Th(k,B){var K=jj(k,B);return BT(K)?K:n}function KM(k){var B=ma.call(k,Ch),K=k[Ch];try{k[Ch]=n;var ge=!0}catch{}var Se=rS.call(k);return ge&&(B?k[Ch]=K:delete k[Ch]),Se}var E2=cS?function(k){return k==null?[]:(k=ns(k),yh(cS(k),function(B){return Zk.call(k,B)}))}:Wne,R2=cS?function(k){for(var B=[];k;)Um(B,E2(k)),k=aS(k);return B}:Wne,Bc=Ws;(Qm&&Bc(new Qm(new ArrayBuffer(1)))!=Ie||LM&&Bc(new LM)!=le||fg&&Bc(fg.resolve())!=Me||xh&&Bc(new xh)!=ie||wh&&Bc(new wh)!=Ee)&&(Bc=function(k){var B=Ws(k),K=B==me?k.constructor:n,ge=K?T1(K):"";if(ge)switch(ge){case _M:return Ie;case ev:return le;case Ts:return Me;case cl:return ie;case tv:return Ee}return B});function LL(k,B,K){for(var ge=-1,Se=K.length;++ge<Se;){var Be=K[ge],ot=Be.size;switch(Be.type){case"drop":k+=ot;break;case"dropRight":B-=ot;break;case"take":B=Fc(B,k+ot);break;case"takeRight":k=Ul(k,B-ot);break}}return{start:k,end:B}}function _L(k){var B=k.match(Un);return B?B[1].split(Yr):[]}function rE(k,B,K){B=qc(B,k);for(var ge=-1,Se=B.length,Be=!1;++ge<Se;){var ot=z1(B[ge]);if(!(Be=k!=null&&K(k,ot)))break;k=k[ot]}return Be||++ge!=Se?Be:(Se=k==null?0:k.length,!!Se&&FH(Se)&&qu(ot,Se)&&(to(k)||WS(k)))}function QM(k){var B=k.length,K=new k.constructor(B);return B&&typeof k[0]=="string"&&ma.call(k,"index")&&(K.index=k.index,K.input=k.input),K}function wr(k){return typeof k.constructor=="function"&&!P2(k)?pc(aS(k)):{}}function iE(k,B,K){var ge=k.constructor;switch(B){case _e:return xS(k);case pe:case te:return new ge(+k);case Ie:return vH(k,K);case Le:case we:case ve:case De:case ze:case Ve:case Ke:case et:case it:return YT(k,K);case le:return new ge;case he:case ue:return new ge(k);case de:return CL(k);case ie:return new ge;case Ae:return bH(k)}}function NL(k,B){var K=B.length;if(!K)return k;var ge=K-1;return B[ge]=(K>1?"& ":"")+B[ge],B=B.join(K>2?", ":" "),k.replace(un,`{
/* [wrapped with `+B+`] */
`)}function Eh(k){return to(k)||WS(k)||!!(Jk&&k&&k[Jk])}function qu(k,B){var K=typeof k;return B=B??V,!!B&&(K=="number"||K!="symbol"&&Vn.test(k))&&k>-1&&k%1==0&&k<B}function mc(k,B,K){if(!zl(K))return!1;var ge=typeof B;return(ge=="number"?R1(K)&&qu(B,K.length):ge=="string"&&B in K)?Ag(K[B],k):!1}function I2(k,B){if(to(k))return!1;var K=typeof k;return K=="number"||K=="symbol"||K=="boolean"||k==null||Dp(k)?!0:ct.test(k)||!Xe.test(k)||B!=null&&k in ns(B)}function FL(k){var B=typeof k;return B=="string"||B=="number"||B=="symbol"||B=="boolean"?k!=="__proto__":k===null}function ES(k){var B=dl(k),K=ke[B];if(typeof K!="function"||!(B in To.prototype))return!1;if(k===K)return!0;var ge=cu(K);return!!ge&&k===ge[0]}function Cg(k){return!!TT&&TT in k}var RS=zT?k2:qne;function P2(k){var B=k&&k.constructor,K=typeof B=="function"&&B.prototype||Km;return k===K}function IS(k){return k===k&&!zl(k)}function Rh(k,B){return function(K){return K==null?!1:K[k]===B&&(B!==n||k in ns(K))}}function oE(k){var B=_H(k,function(ge){return K.size===c&&K.clear(),ge}),K=B.cache;return B}function PS(k,B){var K=k[1],ge=B[1],Se=K|ge,Be=Se<(b|y|A),ot=ge==A&&K==C||ge==A&&K==z&&k[7].length<=B[8]||ge==(A|z)&&B[7].length<=B[8]&&K==C;if(!(Be||ot))return k;ge&b&&(k[2]=B[2],Se|=K&b?0:M);var ht=B[3];if(ht){var Ot=k[3];k[3]=Ot?wL(Ot,ht,B[4]):ht,k[4]=Ot?Ym(k[3],u):B[4]}return ht=B[5],ht&&(Ot=k[5],k[5]=Ot?SL(Ot,ht,B[6]):ht,k[6]=Ot?Ym(k[5],u):B[6]),ht=B[7],ht&&(k[7]=ht),ge&A&&(k[8]=k[8]==null?B[8]:Fc(k[8],B[8])),k[9]==null&&(k[9]=B[9]),k[0]=B[0],k[1]=Se,k}function aE(k){var B=[];if(k!=null)for(var K in ns(k))B.push(K);return B}function F0(k){return rS.call(k)}function xg(k,B,K){return B=Ul(B===n?k.length-1:B,0),function(){for(var ge=arguments,Se=-1,Be=Ul(ge.length-B,0),ot=Wt(Be);++Se<Be;)ot[Se]=ge[B+Se];Se=-1;for(var ht=Wt(B+1);++Se<B;)ht[Se]=ge[Se];return ht[B]=K(ot),Nc(k,this,ht)}}function wg(k,B){return B.length<2?k:av(k,Fd(B,0,-1))}function sE(k,B){for(var K=k.length,ge=Fc(B.length,K),Se=cd(k);ge--;){var Be=B[ge];k[ge]=qu(Be,K)?Se[Be]:n}return k}function Bd(k,B){if(!(B==="constructor"&&typeof k[B]=="function")&&B!="__proto__")return k[B]}var WL=qL(pL),Ih=eL||function(k,B){return su.setTimeout(k,B)},DS=qL($T);function wH(k,B,K){var ge=B+"";return DS(k,NL(ge,SH(_L(ge),K)))}function qL(k){var B=0,K=0;return function(){var ge=one(),Se=F-(ge-K);if(K=ge,Se>0){if(++B>=P)return arguments[0]}else B=0;return k.apply(n,arguments)}}function kS(k,B){var K=-1,ge=k.length,Se=ge-1;for(B=B===n?ge:B;++K<B;){var Be=z2(K,Se),ot=k[Be];k[Be]=k[K],k[K]=ot}return k.length=B,k}var LS=oE(function(k){var B=[];return k.charCodeAt(0)===46&&B.push(""),k.replace(lt,function(K,ge,Se,Be){B.push(Se?Be.replace(si,"$1"):ge||K)}),B});function z1(k){if(typeof k=="string"||Dp(k))return k;var B=k+"";return B=="0"&&1/k==-j?"-0":B}function T1(k){if(k!=null){try{return cg.call(k)}catch{}try{return k+""}catch{}}return""}function SH(k,B){return Nu(Q,function(K){var ge="_."+K[0];B&K[1]&&!$m(k,ge)&&k.push(ge)}),k.sort()}function BL(k){if(k instanceof To)return k.clone();var B=new L0(k.__wrapped__,k.__chain__);return B.__actions__=cd(k.__actions__),B.__index__=k.__index__,B.__values__=k.__values__,B}function _S(k,B,K){(K?mc(k,B,K):B===n)?B=1:B=Ul(vo(B),0);var ge=k==null?0:k.length;if(!ge||B<1)return[];for(var Se=0,Be=0,ot=Wt(DM(ge/B));Se<ge;)ot[Be++]=Fd(k,Se,Se+=B);return ot}function gne(k){for(var B=-1,K=k==null?0:k.length,ge=0,Se=[];++B<K;){var Be=k[B];Be&&(Se[ge++]=Be)}return Se}function mne(){var k=arguments.length;if(!k)return[];for(var B=Wt(k-1),K=arguments[0],ge=k;ge--;)B[ge-1]=arguments[ge];return Um(to(K)?cd(K):[K],fc(B,1))}var AH=co(function(k,B){return vc(k)?jM(k,fc(B,1,vc,!0)):[]}),OH=co(function(k,B){var K=jd(B);return vc(K)&&(K=n),vc(k)?jM(k,fc(B,1,vc,!0),Kr(K,2)):[]}),D2=co(function(k,B){var K=jd(B);return vc(K)&&(K=n),vc(k)?jM(k,fc(B,1,vc,!0),n,K):[]});function vne(k,B,K){var ge=k==null?0:k.length;return ge?(B=K||B===n?1:vo(B),Fd(k,B<0?0:B,ge)):[]}function bne(k,B,K){var ge=k==null?0:k.length;return ge?(B=K||B===n?1:vo(B),B=ge-B,Fd(k,0,B<0?0:B)):[]}function cv(k,B){return k&&k.length?XM(k,Kr(B,3),!0,!0):[]}function yne(k,B){return k&&k.length?XM(k,Kr(B,3),!0):[]}function zH(k,B,K,ge){var Se=k==null?0:k.length;return Se?(K&&typeof K!="number"&&mc(k,B,K)&&(K=0,ge=Se),cH(k,B,K,ge)):[]}function TH(k,B,K){var ge=k==null?0:k.length;if(!ge)return-1;var Se=K==null?0:vo(K);return Se<0&&(Se=Ul(ge+Se,0)),ST(k,Kr(B,3),Se)}function jL(k,B,K){var ge=k==null?0:k.length;if(!ge)return-1;var Se=ge-1;return K!==n&&(Se=vo(K),Se=K<0?Ul(ge+Se,0):Fc(Se,ge-1)),ST(k,Kr(B,3),Se,!0)}function Sg(k){var B=k==null?0:k.length;return B?fc(k,1):[]}function Mne(k){var B=k==null?0:k.length;return B?fc(k,j):[]}function Cne(k,B){var K=k==null?0:k.length;return K?(B=B===n?1:vo(B),fc(k,B)):[]}function EH(k){for(var B=-1,K=k==null?0:k.length,ge={};++B<K;){var Se=k[B];ge[Se[0]]=Se[1]}return ge}function RH(k){return k&&k.length?k[0]:n}function E1(k,B,K){var ge=k==null?0:k.length;if(!ge)return-1;var Se=K==null?0:vo(K);return Se<0&&(Se=Ul(ge+Se,0)),h2(k,B,Se)}function HL(k){var B=k==null?0:k.length;return B?Fd(k,0,-1):[]}var xne=co(function(k){var B=zs(k,vL);return B.length&&B[0]===k[0]?sv(B):[]}),uv=co(function(k){var B=jd(k),K=zs(k,vL);return B===jd(K)?B=n:K.pop(),K.length&&K[0]===k[0]?sv(K,Kr(B,2)):[]}),lE=co(function(k){var B=jd(k),K=zs(k,vL);return B=typeof B=="function"?B:n,B&&K.pop(),K.length&&K[0]===k[0]?sv(K,n,B):[]});function ZM(k,B){return k==null?"":tL.call(k,B)}function jd(k){var B=k==null?0:k.length;return B?k[B-1]:n}function VL(k,B,K){var ge=k==null?0:k.length;if(!ge)return-1;var Se=ge;return K!==n&&(Se=vo(K),Se=Se<0?Ul(ge+Se,0):Fc(Se,ge-1)),B===B?Jw(k,B,Se):ST(k,Lj,Se,!0)}function GL(k,B){return k&&k.length?UM(k,vo(B)):n}var wne=co(IH);function IH(k,B){return k&&k.length&&B&&B.length?bg(k,B):k}function cE(k,B,K){return k&&k.length&&B&&B.length?bg(k,B,Kr(K,2)):k}function $L(k,B,K){return k&&k.length&&B&&B.length?bg(k,B,n,K):k}var PH=O1(function(k,B){var K=k==null?0:k.length,ge=hS(k,B);return Rp(k,zs(B,function(Se){return qu(Se,K)?+Se:Se}).sort(xL)),ge});function UL(k,B){var K=[];if(!(k&&k.length))return K;var ge=-1,Se=[],Be=k.length;for(B=Kr(B,3);++ge<Be;){var ot=k[ge];B(ot,ge,k)&&(K.push(ot),Se.push(ge))}return Rp(k,Se),K}function XL(k){return k==null?k:PT.call(k)}function YL(k,B,K){var ge=k==null?0:k.length;return ge?(K&&typeof K!="number"&&mc(k,B,K)?(B=0,K=ge):(B=B==null?0:vo(B),K=K===n?ge:vo(K)),Fd(k,B,K)):[]}function NS(k,B){return T2(k,B)}function Sne(k,B,K){return UT(k,B,Kr(K,2))}function uE(k,B){var K=k==null?0:k.length;if(K){var ge=T2(k,B);if(ge<K&&Ag(k[ge],B))return ge}return-1}function DH(k,B){return T2(k,B,!0)}function Ane(k,B,K){return UT(k,B,Kr(K,2),!0)}function FS(k,B){var K=k==null?0:k.length;if(K){var ge=T2(k,B,!0)-1;if(Ag(k[ge],B))return ge}return-1}function One(k){return k&&k.length?fL(k):[]}function dE(k,B){return k&&k.length?fL(k,Kr(B,2)):[]}function I(k){var B=k==null?0:k.length;return B?Fd(k,1,B):[]}function _(k,B,K){return k&&k.length?(B=K||B===n?1:vo(B),Fd(k,0,B<0?0:B)):[]}function H(k,B,K){var ge=k==null?0:k.length;return ge?(B=K||B===n?1:vo(B),B=ge-B,Fd(k,B<0?0:B,ge)):[]}function J(k,B){return k&&k.length?XM(k,Kr(B,3),!1,!0):[]}function fe(k,B){return k&&k.length?XM(k,Kr(B,3)):[]}var xe=co(function(k){return yg(fc(k,1,vc,!0))}),Pe=co(function(k){var B=jd(k);return vc(B)&&(B=n),yg(fc(k,1,vc,!0),Kr(B,2))}),$e=co(function(k){var B=jd(k);return B=typeof B=="function"?B:n,yg(fc(k,1,vc,!0),n,B)});function pt(k){return k&&k.length?yg(k):[]}function Bt(k,B){return k&&k.length?yg(k,Kr(B,2)):[]}function gr(k,B){return B=typeof B=="function"?B:n,k&&k.length?yg(k,n,B):[]}function Ai(k){if(!(k&&k.length))return[];var B=0;return k=yh(k,function(K){if(vc(K))return B=Ul(K.length,B),!0}),AT(B,function(K){return zs(k,Vk(K))})}function gn(k,B){if(!(k&&k.length))return[];var K=Ai(k);return B==null?K:zs(K,function(ge){return Nc(B,n,ge)})}var Hr=co(function(k,B){return vc(k)?jM(k,B):[]}),Ti=co(function(k){return mL(yh(k,vc))}),vi=co(function(k){var B=jd(k);return vc(B)&&(B=n),mL(yh(k,vc),Kr(B,2))}),Rt=co(function(k){var B=jd(k);return B=typeof B=="function"?B:n,mL(yh(k,vc),n,B)}),bt=co(Ai);function zt(k,B){return mH(k||[],B||[],y2)}function an(k,B){return mH(k||[],B||[],lv)}var cn=co(function(k){var B=k.length,K=B>1?k[B-1]:n;return K=typeof K=="function"?(k.pop(),K):n,gn(k,K)});function Li(k){var B=ke(k);return B.__chain__=!0,B}function Rr(k,B){return B(k),k}function Oi(k,B){return B(k)}var Co=O1(function(k){var B=k.length,K=B?k[0]:0,ge=this.__wrapped__,Se=function(Be){return hS(Be,k)};return B>1||this.__actions__.length||!(ge instanceof To)||!qu(K)?this.thru(Se):(ge=ge.slice(K,+K+(B?1:0)),ge.__actions__.push({func:Oi,args:[Se],thisArg:n}),new L0(ge,this.__chain__).thru(function(Be){return B&&!Be.length&&Be.push(n),Be}))});function Zi(){return Li(this)}function dv(){return new L0(this.value(),this.__chain__)}function zne(){this.__values__===n&&(this.__values__=$Te(this.value()));var k=this.__index__>=this.__values__.length,B=k?n:this.__values__[this.__index__++];return{done:k,value:B}}function gRt(){return this}function mRt(k){for(var B,K=this;K instanceof v2;){var ge=BL(K);ge.__index__=0,ge.__values__=n,B?Se.__wrapped__=ge:B=ge;var Se=ge;K=K.__wrapped__}return Se.__wrapped__=k,B}function vRt(){var k=this.__wrapped__;if(k instanceof To){var B=k;return this.__actions__.length&&(B=new To(this)),B=B.reverse(),B.__actions__.push({func:Oi,args:[XL],thisArg:n}),new L0(B,this.__chain__)}return this.thru(XL)}function bRt(){return CS(this.__wrapped__,this.__actions__)}var yRt=wS(function(k,B,K){ma.call(k,K)?++k[K]:Wu(k,K,1)});function MRt(k,B,K){var ge=to(k)?wT:NT;return K&&mc(k,B,K)&&(B=n),ge(k,Kr(B,3))}function CRt(k,B){var K=to(k)?yh:lL;return K(k,Kr(B,3))}var xRt=ZT(TH),wRt=ZT(jL);function SRt(k,B){return fc(kH(k,B),1)}function ARt(k,B){return fc(kH(k,B),j)}function ORt(k,B,K){return K=K===n?1:vo(K),fc(kH(k,B),K)}function DTe(k,B){var K=to(k)?Nu:mg;return K(k,Kr(B,3))}function kTe(k,B){var K=to(k)?Yte:fS;return K(k,Kr(B,3))}var zRt=wS(function(k,B,K){ma.call(k,K)?k[K].push(B):Wu(k,K,[B])});function TRt(k,B,K,ge){k=R1(k)?k:hE(k),K=K&&!ge?vo(K):0;var Se=k.length;return K<0&&(K=Ul(Se+K,0)),WH(k)?K<=Se&&k.indexOf(B,K)>-1:!!Se&&h2(k,B,K)>-1}var ERt=co(function(k,B,K){var ge=-1,Se=typeof B=="function",Be=R1(k)?Wt(k.length):[];return mg(k,function(ot){Be[++ge]=Se?Nc(B,ot,K):S2(ot,B,K)}),Be}),RRt=wS(function(k,B,K){Wu(k,K,B)});function kH(k,B){var K=to(k)?zs:$M;return K(k,Kr(B,3))}function IRt(k,B,K,ge){return k==null?[]:(to(B)||(B=B==null?[]:[B]),K=ge?n:K,to(K)||(K=K==null?[]:[K]),sd(k,B,K))}var PRt=wS(function(k,B,K){k[K?0:1].push(B)},function(){return[[],[]]});function DRt(k,B,K){var ge=to(k)?Hk:Nj,Se=arguments.length<3;return ge(k,Kr(B,4),K,Se,mg)}function kRt(k,B,K){var ge=to(k)?Kte:Nj,Se=arguments.length<3;return ge(k,Kr(B,4),K,Se,fS)}function LRt(k,B){var K=to(k)?yh:lL;return K(k,NH(Kr(B,3)))}function _Rt(k){var B=to(k)?pS:hH;return B(k)}function NRt(k,B,K){(K?mc(k,B,K):B===n)?B=1:B=vo(B);var ge=to(k)?_T:MS;return ge(k,B)}function FRt(k){var B=to(k)?FM:hL;return B(k)}function WRt(k){if(k==null)return 0;if(R1(k))return WH(k)?Mh(k):k.length;var B=Bc(k);return B==le||B==ie?k.size:vS(k).length}function qRt(k,B,K){var ge=to(k)?Yw:fH;return K&&mc(k,B,K)&&(B=n),ge(k,Kr(B,3))}var BRt=co(function(k,B){if(k==null)return[];var K=B.length;return K>1&&mc(k,B[0],B[1])?B=[]:K>2&&mc(B[0],B[1],B[2])&&(B=[B[0]]),sd(k,fc(B,1),[])}),LH=RT||function(){return su.Date.now()};function jRt(k,B){if(typeof B!="function")throw new k0(a);return k=vo(k),function(){if(--k<1)return B.apply(this,arguments)}}function LTe(k,B,K){return B=K?n:B,B=k&&B==null?k.length:B,Pp(k,A,n,n,n,n,B)}function _Te(k,B){var K;if(typeof B!="function")throw new k0(a);return k=vo(k),function(){return--k>0&&(K=B.apply(this,arguments)),k<=1&&(B=n),K}}var Tne=co(function(k,B,K){var ge=b;if(K.length){var Se=Ym(K,Ol(Tne));ge|=w}return Pp(k,ge,B,K,Se)}),NTe=co(function(k,B,K){var ge=b|y;if(K.length){var Se=Ym(K,Ol(NTe));ge|=w}return Pp(B,ge,k,K,Se)});function FTe(k,B,K){B=K?n:B;var ge=Pp(k,C,n,n,n,n,n,B);return ge.placeholder=FTe.placeholder,ge}function WTe(k,B,K){B=K?n:B;var ge=Pp(k,x,n,n,n,n,n,B);return ge.placeholder=WTe.placeholder,ge}function qTe(k,B,K){var ge,Se,Be,ot,ht,Ot,sn=0,ln=!1,mn=!1,cr=!0;if(typeof k!="function")throw new k0(a);B=Ph(B)||0,zl(K)&&(ln=!!K.leading,mn="maxWait"in K,Be=mn?Ul(Ph(K.maxWait)||0,B):Be,cr="trailing"in K?!!K.trailing:cr);function Ur(bc){var Og=ge,_2=Se;return ge=Se=n,sn=bc,ot=k.apply(_2,Og),ot}function Mi(bc){return sn=bc,ht=Ih(qo,B),ln?Ur(bc):ot}function xo(bc){var Og=bc-Ot,_2=bc-sn,oEe=B-Og;return mn?Fc(oEe,Be-_2):oEe}function Ci(bc){var Og=bc-Ot,_2=bc-sn;return Ot===n||Og>=B||Og<0||mn&&_2>=Be}function qo(){var bc=LH();if(Ci(bc))return ra(bc);ht=Ih(qo,xo(bc))}function ra(bc){return ht=n,cr&&ge?Ur(bc):(ge=Se=n,ot)}function kp(){ht!==n&&yL(ht),sn=0,ge=Ot=Se=ht=n}function W0(){return ht===n?ot:ra(LH())}function Lp(){var bc=LH(),Og=Ci(bc);if(ge=arguments,Se=this,Ot=bc,Og){if(ht===n)return Mi(Ot);if(mn)return yL(ht),ht=Ih(qo,B),Ur(Ot)}return ht===n&&(ht=Ih(qo,B)),ot}return Lp.cancel=kp,Lp.flush=W0,Lp}var HRt=co(function(k,B){return BM(k,1,B)}),VRt=co(function(k,B,K){return BM(k,Ph(B)||0,K)});function GRt(k){return Pp(k,O)}function _H(k,B){if(typeof k!="function"||B!=null&&typeof B!="function")throw new k0(a);var K=function(){var ge=arguments,Se=B?B.apply(this,ge):ge[0],Be=K.cache;if(Be.has(Se))return Be.get(Se);var ot=k.apply(this,ge);return K.cache=Be.set(Se,ot)||Be,ot};return K.cache=new(_H.Cache||Sh),K}_H.Cache=Sh;function NH(k){if(typeof k!="function")throw new k0(a);return function(){var B=arguments;switch(B.length){case 0:return!k.call(this);case 1:return!k.call(this,B[0]);case 2:return!k.call(this,B[0],B[1]);case 3:return!k.call(this,B[0],B[1],B[2])}return!k.apply(this,B)}}function $Rt(k){return _Te(2,k)}var URt=Wd(function(k,B){B=B.length==1&&to(B[0])?zs(B[0],D0(Kr())):zs(fc(B,1),D0(Kr()));var K=B.length;return co(function(ge){for(var Se=-1,Be=Fc(ge.length,K);++Se<Be;)ge[Se]=B[Se].call(this,ge[Se]);return Nc(k,this,ge)})}),Ene=co(function(k,B){var K=Ym(B,Ol(Ene));return Pp(k,w,n,B,K)}),BTe=co(function(k,B){var K=Ym(B,Ol(BTe));return Pp(k,S,n,B,K)}),XRt=O1(function(k,B){return Pp(k,z,n,n,n,B)});function YRt(k,B){if(typeof k!="function")throw new k0(a);return B=B===n?B:vo(B),co(k,B)}function KRt(k,B){if(typeof k!="function")throw new k0(a);return B=B==null?0:Ul(vo(B),0),co(function(K){var ge=K[B],Se=Mg(K,0,B);return ge&&Um(Se,ge),Nc(k,this,Se)})}function QRt(k,B,K){var ge=!0,Se=!0;if(typeof k!="function")throw new k0(a);return zl(K)&&(ge="leading"in K?!!K.leading:ge,Se="trailing"in K?!!K.trailing:Se),qTe(k,B,{leading:ge,maxWait:B,trailing:Se})}function ZRt(k){return LTe(k,1)}function JRt(k,B){return Ene(bL(B),k)}function eIt(){if(!arguments.length)return[];var k=arguments[0];return to(k)?k:[k]}function tIt(k){return hc(k,h)}function nIt(k,B){return B=typeof B=="function"?B:n,hc(k,h,B)}function rIt(k){return hc(k,d|h)}function iIt(k,B){return B=typeof B=="function"?B:n,hc(k,d|h,B)}function oIt(k,B){return B==null||sL(k,B,Bu(B))}function Ag(k,B){return k===B||k!==k&&B!==B}var aIt=zS(x2),sIt=zS(function(k,B){return k>=B}),WS=Zs((function(){return arguments})())?Zs:function(k){return Yl(k)&&ma.call(k,"callee")&&!Zk.call(k,"callee")},to=Wt.isArray,lIt=$w?D0($w):WT;function R1(k){return k!=null&&FH(k.length)&&!k2(k)}function vc(k){return Yl(k)&&R1(k)}function cIt(k){return k===!0||k===!1||Yl(k)&&Ws(k)==pe}var JM=eH||qne,uIt=qk?D0(qk):vg;function dIt(k){return Yl(k)&&k.nodeType===1&&!KL(k)}function pIt(k){if(k==null)return!0;if(R1(k)&&(to(k)||typeof k=="string"||typeof k.splice=="function"||JM(k)||pE(k)||WS(k)))return!k.length;var B=Bc(k);if(B==le||B==ie)return!k.size;if(P2(k))return!vS(k).length;for(var K in k)if(ma.call(k,K))return!1;return!0}function hIt(k,B){return A1(k,B)}function fIt(k,B,K){K=typeof K=="function"?K:n;var ge=K?K(k,B):n;return ge===n?A1(k,B,n,K):!!ge}function Rne(k){if(!Yl(k))return!1;var B=Ws(k);return B==oe||B==ce||typeof k.message=="string"&&typeof k.name=="string"&&!KL(k)}function gIt(k){return typeof k=="number"&&tH(k)}function k2(k){if(!zl(k))return!1;var B=Ws(k);return B==ae||B==ne||B==se||B==Oe}function jTe(k){return typeof k=="number"&&k==vo(k)}function FH(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=V}function zl(k){var B=typeof k;return k!=null&&(B=="object"||B=="function")}function Yl(k){return k!=null&&typeof k=="object"}var HTe=Uw?D0(Uw):dH;function mIt(k,B){return k===B||qT(k,B,gc(B))}function vIt(k,B,K){return K=typeof K=="function"?K:n,qT(k,B,gc(B),K)}function bIt(k){return VTe(k)&&k!=+k}function yIt(k){if(RS(k))throw new Wi(o);return BT(k)}function MIt(k){return k===null}function CIt(k){return k==null}function VTe(k){return typeof k=="number"||Yl(k)&&Ws(k)==he}function KL(k){if(!Yl(k)||Ws(k)!=me)return!1;var B=aS(k);if(B===null)return!0;var K=ma.call(B,"constructor")&&B.constructor;return typeof K=="function"&&K instanceof K&&cg.call(K)==Zj}var Ine=Xw?D0(Xw):pH;function xIt(k){return jTe(k)&&k>=-V&&k<=V}var GTe=Bk?D0(Bk):jT;function WH(k){return typeof k=="string"||!to(k)&&Yl(k)&&Ws(k)==ue}function Dp(k){return typeof k=="symbol"||Yl(k)&&Ws(k)==Ae}var pE=_d?D0(_d):uL;function wIt(k){return k===n}function SIt(k){return Yl(k)&&Bc(k)==Ee}function AIt(k){return Yl(k)&&Ws(k)==Ge}var OIt=zS(Nd),zIt=zS(function(k,B){return k<=B});function $Te(k){if(!k)return[];if(R1(k))return WH(k)?Tp(k):cd(k);if(dg&&k[dg])return Vj(k[dg]());var B=Bc(k),K=B==le?Xm:B==ie?OT:hE;return K(k)}function L2(k){if(!k)return k===0?k:0;if(k=Ph(k),k===j||k===-j){var B=k<0?-1:1;return B*G}return k===k?k:0}function vo(k){var B=L2(k),K=B%1;return B===B?K?B-K:B:0}function UTe(k){return k?iv(vo(k),0,$):0}function Ph(k){if(typeof k=="number")return k;if(Dp(k))return q;if(zl(k)){var B=typeof k.valueOf=="function"?k.valueOf():k;k=zl(B)?B+"":B}if(typeof k!="string")return k===0?k:+k;k=Fj(k);var K=di.test(k);return K||It.test(k)?Xte(k.slice(2),K?2:8):Qi.test(k)?q:+k}function XTe(k){return Ip(k,I1(k))}function TIt(k){return k?iv(vo(k),-V,V):k===0?k:0}function $a(k){return k==null?"":ld(k)}var EIt=qd(function(k,B){if(P2(B)||R1(B)){Ip(B,Bu(B),k);return}for(var K in B)ma.call(B,K)&&y2(k,K,B[K])}),YTe=qd(function(k,B){Ip(B,I1(B),k)}),qH=qd(function(k,B,K,ge){Ip(B,I1(B),k,ge)}),RIt=qd(function(k,B,K,ge){Ip(B,Bu(B),k,ge)}),IIt=O1(hS);function PIt(k,B){var K=pc(k);return B==null?K:M2(K,B)}var DIt=co(function(k,B){k=ns(k);var K=-1,ge=B.length,Se=ge>2?B[2]:n;for(Se&&mc(B[0],B[1],Se)&&(ge=1);++K<ge;)for(var Be=B[K],ot=I1(Be),ht=-1,Ot=ot.length;++ht<Ot;){var sn=ot[ht],ln=k[sn];(ln===n||Ag(ln,Km[sn])&&!ma.call(k,sn))&&(k[sn]=Be[sn])}return k}),kIt=co(function(k){return k.push(n,PL),Nc(KTe,n,k)});function LIt(k,B){return kj(k,Kr(B,3),N0)}function _It(k,B){return kj(k,Kr(B,3),FT)}function NIt(k,B){return k==null?k:HM(k,Kr(B,3),I1)}function FIt(k,B){return k==null?k:VM(k,Kr(B,3),I1)}function WIt(k,B){return k&&N0(k,Kr(B,3))}function qIt(k,B){return k&&FT(k,Kr(B,3))}function BIt(k){return k==null?[]:C2(k,Bu(k))}function jIt(k){return k==null?[]:C2(k,I1(k))}function Pne(k,B,K){var ge=k==null?n:av(k,B);return ge===n?K:ge}function HIt(k,B){return k!=null&&rE(k,B,mS)}function Dne(k,B){return k!=null&&rE(k,B,w2)}var VIt=TL(function(k,B,K){B!=null&&typeof B.toString!="function"&&(B=rS.call(B)),k[B]=K},Lne(P1)),GIt=TL(function(k,B,K){B!=null&&typeof B.toString!="function"&&(B=rS.call(B)),ma.call(k,B)?k[B].push(K):k[B]=[K]},Kr),$It=co(S2);function Bu(k){return R1(k)?w1(k):vS(k)}function I1(k){return R1(k)?w1(k,!0):bS(k)}function UIt(k,B){var K={};return B=Kr(B,3),N0(k,function(ge,Se,Be){Wu(K,B(ge,Se,Be),ge)}),K}function XIt(k,B){var K={};return B=Kr(B,3),N0(k,function(ge,Se,Be){Wu(K,Se,B(ge,Se,Be))}),K}var YIt=qd(function(k,B,K){Xl(k,B,K)}),KTe=qd(function(k,B,K,ge){Xl(k,B,K,ge)}),KIt=O1(function(k,B){var K={};if(k==null)return K;var ge=!1;B=zs(B,function(Be){return Be=qc(Be,k),ge||(ge=Be.length>1),Be}),Ip(k,yi(k),K),ge&&(K=hc(K,d|p|h,DL));for(var Se=B.length;Se--;)XT(K,B[Se]);return K});function QIt(k,B){return QTe(k,NH(Kr(B)))}var ZIt=O1(function(k,B){return k==null?{}:dL(k,B)});function QTe(k,B){if(k==null)return{};var K=zs(yi(k),function(ge){return[ge]});return B=Kr(B),VT(k,K,function(ge,Se){return B(ge,Se[0])})}function JIt(k,B,K){B=qc(B,k);var ge=-1,Se=B.length;for(Se||(Se=1,k=n);++ge<Se;){var Be=k==null?n:k[z1(B[ge])];Be===n&&(ge=Se,Be=K),k=k2(Be)?Be.call(k):Be}return k}function ePt(k,B,K){return k==null?k:lv(k,B,K)}function tPt(k,B,K,ge){return ge=typeof ge=="function"?ge:n,k==null?k:lv(k,B,K,ge)}var ZTe=IL(Bu),JTe=IL(I1);function nPt(k,B,K){var ge=to(k),Se=ge||JM(k)||pE(k);if(B=Kr(B,4),K==null){var Be=k&&k.constructor;Se?K=ge?new Be:[]:zl(k)?K=k2(Be)?pc(aS(k)):{}:K={}}return(Se?Nu:N0)(k,function(ot,ht,Ot){return B(K,ot,ht,Ot)}),K}function rPt(k,B){return k==null?!0:XT(k,B)}function iPt(k,B,K){return k==null?k:gH(k,B,bL(K))}function oPt(k,B,K,ge){return ge=typeof ge=="function"?ge:n,k==null?k:gH(k,B,bL(K),ge)}function hE(k){return k==null?[]:$k(k,Bu(k))}function aPt(k){return k==null?[]:$k(k,I1(k))}function sPt(k,B,K){return K===n&&(K=B,B=n),K!==n&&(K=Ph(K),K=K===K?K:0),B!==n&&(B=Ph(B),B=B===B?B:0),iv(Ph(k),B,K)}function lPt(k,B,K){return B=L2(B),K===n?(K=B,B=0):K=L2(K),k=Ph(k),cL(k,B,K)}function cPt(k,B,K){if(K&&typeof K!="boolean"&&mc(k,B,K)&&(B=K=n),K===n&&(typeof B=="boolean"?(K=B,B=n):typeof k=="boolean"&&(K=k,k=n)),k===n&&B===n?(k=0,B=1):(k=L2(k),B===n?(B=k,k=0):B=L2(B)),k>B){var ge=k;k=B,B=ge}if(K||k%1||B%1){var Se=hg();return Fc(k+Se*(B-k+Ute("1e-"+((Se+"").length-1))),B)}return z2(k,B)}var uPt=zh(function(k,B,K){return B=B.toLowerCase(),k+(K?eEe(B):B)});function eEe(k){return kne($a(k).toLowerCase())}function tEe(k){return k=$a(k),k&&k.replace(jr,Zw).replace(ps,"")}function dPt(k,B,K){k=$a(k),B=ld(B);var ge=k.length;K=K===n?ge:iv(vo(K),0,ge);var Se=K;return K-=B.length,K>=0&&k.slice(K,Se)==B}function pPt(k){return k=$a(k),k&&Br.test(k)?k.replace(Hn,rne):k}function hPt(k){return k=$a(k),k&&ft.test(k)?k.replace(Je,"\\$&"):k}var fPt=zh(function(k,B,K){return k+(K?"-":"")+B.toLowerCase()}),gPt=zh(function(k,B,K){return k+(K?" ":"")+B.toLowerCase()}),mPt=zL("toLowerCase");function vPt(k,B,K){k=$a(k),B=vo(B);var ge=B?Mh(k):0;if(!B||ge>=B)return k;var Se=(B-ge)/2;return OS(lS(Se),K)+k+OS(DM(Se),K)}function bPt(k,B,K){k=$a(k),B=vo(B);var ge=B?Mh(k):0;return B&&ge<B?k+OS(B-ge,K):k}function yPt(k,B,K){k=$a(k),B=vo(B);var ge=B?Mh(k):0;return B&&ge<B?OS(B-ge,K)+k:k}function MPt(k,B,K){return K||B==null?B=0:B&&(B=+B),IT($a(k).replace(Tt,""),B||0)}function CPt(k,B,K){return(K?mc(k,B,K):B===n)?B=1:B=vo(B),GT($a(k),B)}function xPt(){var k=arguments,B=$a(k[0]);return k.length<3?B:B.replace(k[1],k[2])}var wPt=zh(function(k,B,K){return k+(K?"_":"")+B.toLowerCase()});function SPt(k,B,K){return K&&typeof K!="number"&&mc(k,B,K)&&(B=K=n),K=K===n?$:K>>>0,K?(k=$a(k),k&&(typeof B=="string"||B!=null&&!Ine(B))&&(B=ld(B),!B&&f2(k))?Mg(Tp(k),0,K):k.split(B,K)):[]}var APt=zh(function(k,B,K){return k+(K?" ":"")+kne(B)});function OPt(k,B,K){return k=$a(k),K=K==null?0:iv(vo(K),0,k.length),B=ld(B),k.slice(K,K+B.length)==B}function zPt(k,B,K){var ge=ke.templateSettings;K&&mc(k,B,K)&&(B=n),k=$a(k),B=qH({},B,ge,nE);var Se=qH({},B.imports,ge.imports,nE),Be=Bu(Se),ot=$k(Se,Be),ht,Ot,sn=0,ln=B.interpolate||Jr,mn="__p += '",cr=m2((B.escape||Jr).source+"|"+ln.source+"|"+(ln===He?$o:Jr).source+"|"+(B.evaluate||Jr).source+"|$","g"),Ur="//# sourceURL="+(ma.call(B,"sourceURL")?(B.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yT+"]")+`
`;k.replace(cr,function(Ci,qo,ra,kp,W0,Lp){return ra||(ra=kp),mn+=k.slice(sn,Lp).replace(xa,Bj),qo&&(ht=!0,mn+=`' +
__e(`+qo+`) +
'`),W0&&(Ot=!0,mn+=`';
`+W0+`;
__p += '`),ra&&(mn+=`' +
((__t = (`+ra+`)) == null ? '' : __t) +
'`),sn=Lp+Ci.length,Ci}),mn+=`';
`;var Mi=ma.call(B,"variable")&&B.variable;if(!Mi)mn=`with (obj) {
`+mn+`
}
`;else if(dr.test(Mi))throw new Wi(s);mn=(Ot?mn.replace(Ft,""):mn).replace(Dt,"$1").replace(Qn,"$1;"),mn="function("+(Mi||"obj")+`) {
`+(Mi?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ht?", __e = _.escape":"")+(Ot?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+mn+`return __p
}`;var xo=rEe(function(){return ga(Be,Ur+"return "+mn).apply(n,ot)});if(xo.source=mn,Rne(xo))throw xo;return xo}function TPt(k){return $a(k).toLowerCase()}function EPt(k){return $a(k).toUpperCase()}function RPt(k,B,K){if(k=$a(k),k&&(K||B===n))return Fj(k);if(!k||!(B=ld(B)))return k;var ge=Tp(k),Se=Tp(B),Be=Wj(ge,Se),ot=qj(ge,Se)+1;return Mg(ge,Be,ot).join("")}function IPt(k,B,K){if(k=$a(k),k&&(K||B===n))return k.slice(0,eS(k)+1);if(!k||!(B=ld(B)))return k;var ge=Tp(k),Se=qj(ge,Tp(B))+1;return Mg(ge,0,Se).join("")}function PPt(k,B,K){if(k=$a(k),k&&(K||B===n))return k.replace(Tt,"");if(!k||!(B=ld(B)))return k;var ge=Tp(k),Se=Wj(ge,Tp(B));return Mg(ge,Se).join("")}function DPt(k,B){var K=T,ge=R;if(zl(B)){var Se="separator"in B?B.separator:Se;K="length"in B?vo(B.length):K,ge="omission"in B?ld(B.omission):ge}k=$a(k);var Be=k.length;if(f2(k)){var ot=Tp(k);Be=ot.length}if(K>=Be)return k;var ht=K-Mh(ge);if(ht<1)return ge;var Ot=ot?Mg(ot,0,ht).join(""):k.slice(0,ht);if(Se===n)return Ot+ge;if(ot&&(ht+=Ot.length-ht),Ine(Se)){if(k.slice(ht).search(Se)){var sn,ln=Ot;for(Se.global||(Se=m2(Se.source,$a(Uo.exec(Se))+"g")),Se.lastIndex=0;sn=Se.exec(ln);)var mn=sn.index;Ot=Ot.slice(0,mn===n?ht:mn)}}else if(k.indexOf(ld(Se),ht)!=ht){var cr=Ot.lastIndexOf(Se);cr>-1&&(Ot=Ot.slice(0,cr))}return Ot+ge}function kPt(k){return k=$a(k),k&&Zn.test(k)?k.replace(ir,ine):k}var LPt=zh(function(k,B,K){return k+(K?" ":"")+B.toUpperCase()}),kne=zL("toUpperCase");function nEe(k,B,K){return k=$a(k),B=K?n:B,B===n?Hj(k)?Yk(k):Jte(k):k.match(B)||[]}var rEe=co(function(k,B){try{return Nc(k,n,B)}catch(K){return Rne(K)?K:new Wi(K)}}),_Pt=O1(function(k,B){return Nu(B,function(K){K=z1(K),Wu(k,K,Tne(k[K],k))}),k});function NPt(k){var B=k==null?0:k.length,K=Kr();return k=B?zs(k,function(ge){if(typeof ge[1]!="function")throw new k0(a);return[K(ge[0]),ge[1]]}):[],co(function(ge){for(var Se=-1;++Se<B;){var Be=k[Se];if(Nc(Be[0],this,ge))return Nc(Be[1],this,ge)}})}function FPt(k){return ov(hc(k,d))}function Lne(k){return function(){return k}}function WPt(k,B){return k==null||k!==k?B:k}var qPt=JT(),BPt=JT(!0);function P1(k){return k}function _ne(k){return A2(typeof k=="function"?k:hc(k,d))}function jPt(k){return ul(hc(k,d))}function HPt(k,B){return lu(k,hc(B,d))}var VPt=co(function(k,B){return function(K){return S2(K,k,B)}}),GPt=co(function(k,B){return function(K){return S2(k,K,B)}});function Nne(k,B,K){var ge=Bu(B),Se=C2(B,ge);K==null&&!(zl(B)&&(Se.length||!ge.length))&&(K=B,B=k,k=this,Se=C2(B,Bu(B)));var Be=!(zl(K)&&"chain"in K)||!!K.chain,ot=k2(k);return Nu(Se,function(ht){var Ot=B[ht];k[ht]=Ot,ot&&(k.prototype[ht]=function(){var sn=this.__chain__;if(Be||sn){var ln=k(this.__wrapped__),mn=ln.__actions__=cd(this.__actions__);return mn.push({func:Ot,args:arguments,thisArg:k}),ln.__chain__=sn,ln}return Ot.apply(k,Um([this.value()],arguments))})}),k}function $Pt(){return su._===this&&(su._=Kk),this}function Fne(){}function UPt(k){return k=vo(k),co(function(B){return UM(B,k)})}var XPt=EL(zs),YPt=EL(wT),KPt=EL(Yw);function iEe(k){return I2(k)?Vk(z1(k)):O2(k)}function QPt(k){return function(B){return k==null?n:av(k,B)}}var ZPt=CH(),JPt=CH(!0);function Wne(){return[]}function qne(){return!1}function eDt(){return{}}function tDt(){return""}function nDt(){return!0}function rDt(k,B){if(k=vo(k),k<1||k>V)return[];var K=$,ge=Fc(k,$);B=Kr(B),k-=$;for(var Se=AT(ge,B);++K<k;)B(K);return Se}function iDt(k){return to(k)?zs(k,z1):Dp(k)?[k]:cd(LS($a(k)))}function oDt(k){var B=++nS;return $a(k)+B}var aDt=AS(function(k,B){return k+B},0),sDt=tE("ceil"),lDt=AS(function(k,B){return k/B},1),cDt=tE("floor");function uDt(k){return k&&k.length?gS(k,P1,x2):n}function dDt(k,B){return k&&k.length?gS(k,Kr(B,2),x2):n}function pDt(k){return _j(k,P1)}function hDt(k,B){return _j(k,Kr(B,2))}function fDt(k){return k&&k.length?gS(k,P1,Nd):n}function gDt(k,B){return k&&k.length?gS(k,Kr(B,2),Nd):n}var mDt=AS(function(k,B){return k*B},1),vDt=tE("round"),bDt=AS(function(k,B){return k-B},0);function yDt(k){return k&&k.length?Gk(k,P1):0}function MDt(k,B){return k&&k.length?Gk(k,Kr(B,2)):0}return ke.after=jRt,ke.ary=LTe,ke.assign=EIt,ke.assignIn=YTe,ke.assignInWith=qH,ke.assignWith=RIt,ke.at=IIt,ke.before=_Te,ke.bind=Tne,ke.bindAll=_Pt,ke.bindKey=NTe,ke.castArray=eIt,ke.chain=Li,ke.chunk=_S,ke.compact=gne,ke.concat=mne,ke.cond=NPt,ke.conforms=FPt,ke.constant=Lne,ke.countBy=yRt,ke.create=PIt,ke.curry=FTe,ke.curryRight=WTe,ke.debounce=qTe,ke.defaults=DIt,ke.defaultsDeep=kIt,ke.defer=HRt,ke.delay=VRt,ke.difference=AH,ke.differenceBy=OH,ke.differenceWith=D2,ke.drop=vne,ke.dropRight=bne,ke.dropRightWhile=cv,ke.dropWhile=yne,ke.fill=zH,ke.filter=CRt,ke.flatMap=SRt,ke.flatMapDeep=ARt,ke.flatMapDepth=ORt,ke.flatten=Sg,ke.flattenDeep=Mne,ke.flattenDepth=Cne,ke.flip=GRt,ke.flow=qPt,ke.flowRight=BPt,ke.fromPairs=EH,ke.functions=BIt,ke.functionsIn=jIt,ke.groupBy=zRt,ke.initial=HL,ke.intersection=xne,ke.intersectionBy=uv,ke.intersectionWith=lE,ke.invert=VIt,ke.invertBy=GIt,ke.invokeMap=ERt,ke.iteratee=_ne,ke.keyBy=RRt,ke.keys=Bu,ke.keysIn=I1,ke.map=kH,ke.mapKeys=UIt,ke.mapValues=XIt,ke.matches=jPt,ke.matchesProperty=HPt,ke.memoize=_H,ke.merge=YIt,ke.mergeWith=KTe,ke.method=VPt,ke.methodOf=GPt,ke.mixin=Nne,ke.negate=NH,ke.nthArg=UPt,ke.omit=KIt,ke.omitBy=QIt,ke.once=$Rt,ke.orderBy=IRt,ke.over=XPt,ke.overArgs=URt,ke.overEvery=YPt,ke.overSome=KPt,ke.partial=Ene,ke.partialRight=BTe,ke.partition=PRt,ke.pick=ZIt,ke.pickBy=QTe,ke.property=iEe,ke.propertyOf=QPt,ke.pull=wne,ke.pullAll=IH,ke.pullAllBy=cE,ke.pullAllWith=$L,ke.pullAt=PH,ke.range=ZPt,ke.rangeRight=JPt,ke.rearg=XRt,ke.reject=LRt,ke.remove=UL,ke.rest=YRt,ke.reverse=XL,ke.sampleSize=NRt,ke.set=ePt,ke.setWith=tPt,ke.shuffle=FRt,ke.slice=YL,ke.sortBy=BRt,ke.sortedUniq=One,ke.sortedUniqBy=dE,ke.split=SPt,ke.spread=KRt,ke.tail=I,ke.take=_,ke.takeRight=H,ke.takeRightWhile=J,ke.takeWhile=fe,ke.tap=Rr,ke.throttle=QRt,ke.thru=Oi,ke.toArray=$Te,ke.toPairs=ZTe,ke.toPairsIn=JTe,ke.toPath=iDt,ke.toPlainObject=XTe,ke.transform=nPt,ke.unary=ZRt,ke.union=xe,ke.unionBy=Pe,ke.unionWith=$e,ke.uniq=pt,ke.uniqBy=Bt,ke.uniqWith=gr,ke.unset=rPt,ke.unzip=Ai,ke.unzipWith=gn,ke.update=iPt,ke.updateWith=oPt,ke.values=hE,ke.valuesIn=aPt,ke.without=Hr,ke.words=nEe,ke.wrap=JRt,ke.xor=Ti,ke.xorBy=vi,ke.xorWith=Rt,ke.zip=bt,ke.zipObject=zt,ke.zipObjectDeep=an,ke.zipWith=cn,ke.entries=ZTe,ke.entriesIn=JTe,ke.extend=YTe,ke.extendWith=qH,Nne(ke,ke),ke.add=aDt,ke.attempt=rEe,ke.camelCase=uPt,ke.capitalize=eEe,ke.ceil=sDt,ke.clamp=sPt,ke.clone=tIt,ke.cloneDeep=rIt,ke.cloneDeepWith=iIt,ke.cloneWith=nIt,ke.conformsTo=oIt,ke.deburr=tEe,ke.defaultTo=WPt,ke.divide=lDt,ke.endsWith=dPt,ke.eq=Ag,ke.escape=pPt,ke.escapeRegExp=hPt,ke.every=MRt,ke.find=xRt,ke.findIndex=TH,ke.findKey=LIt,ke.findLast=wRt,ke.findLastIndex=jL,ke.findLastKey=_It,ke.floor=cDt,ke.forEach=DTe,ke.forEachRight=kTe,ke.forIn=NIt,ke.forInRight=FIt,ke.forOwn=WIt,ke.forOwnRight=qIt,ke.get=Pne,ke.gt=aIt,ke.gte=sIt,ke.has=HIt,ke.hasIn=Dne,ke.head=RH,ke.identity=P1,ke.includes=TRt,ke.indexOf=E1,ke.inRange=lPt,ke.invoke=$It,ke.isArguments=WS,ke.isArray=to,ke.isArrayBuffer=lIt,ke.isArrayLike=R1,ke.isArrayLikeObject=vc,ke.isBoolean=cIt,ke.isBuffer=JM,ke.isDate=uIt,ke.isElement=dIt,ke.isEmpty=pIt,ke.isEqual=hIt,ke.isEqualWith=fIt,ke.isError=Rne,ke.isFinite=gIt,ke.isFunction=k2,ke.isInteger=jTe,ke.isLength=FH,ke.isMap=HTe,ke.isMatch=mIt,ke.isMatchWith=vIt,ke.isNaN=bIt,ke.isNative=yIt,ke.isNil=CIt,ke.isNull=MIt,ke.isNumber=VTe,ke.isObject=zl,ke.isObjectLike=Yl,ke.isPlainObject=KL,ke.isRegExp=Ine,ke.isSafeInteger=xIt,ke.isSet=GTe,ke.isString=WH,ke.isSymbol=Dp,ke.isTypedArray=pE,ke.isUndefined=wIt,ke.isWeakMap=SIt,ke.isWeakSet=AIt,ke.join=ZM,ke.kebabCase=fPt,ke.last=jd,ke.lastIndexOf=VL,ke.lowerCase=gPt,ke.lowerFirst=mPt,ke.lt=OIt,ke.lte=zIt,ke.max=uDt,ke.maxBy=dDt,ke.mean=pDt,ke.meanBy=hDt,ke.min=fDt,ke.minBy=gDt,ke.stubArray=Wne,ke.stubFalse=qne,ke.stubObject=eDt,ke.stubString=tDt,ke.stubTrue=nDt,ke.multiply=mDt,ke.nth=GL,ke.noConflict=$Pt,ke.noop=Fne,ke.now=LH,ke.pad=vPt,ke.padEnd=bPt,ke.padStart=yPt,ke.parseInt=MPt,ke.random=cPt,ke.reduce=DRt,ke.reduceRight=kRt,ke.repeat=CPt,ke.replace=xPt,ke.result=JIt,ke.round=vDt,ke.runInContext=wt,ke.sample=_Rt,ke.size=WRt,ke.snakeCase=wPt,ke.some=qRt,ke.sortedIndex=NS,ke.sortedIndexBy=Sne,ke.sortedIndexOf=uE,ke.sortedLastIndex=DH,ke.sortedLastIndexBy=Ane,ke.sortedLastIndexOf=FS,ke.startCase=APt,ke.startsWith=OPt,ke.subtract=bDt,ke.sum=yDt,ke.sumBy=MDt,ke.template=zPt,ke.times=rDt,ke.toFinite=L2,ke.toInteger=vo,ke.toLength=UTe,ke.toLower=TPt,ke.toNumber=Ph,ke.toSafeInteger=TIt,ke.toString=$a,ke.toUpper=EPt,ke.trim=RPt,ke.trimEnd=IPt,ke.trimStart=PPt,ke.truncate=DPt,ke.unescape=kPt,ke.uniqueId=oDt,ke.upperCase=LPt,ke.upperFirst=kne,ke.each=DTe,ke.eachRight=kTe,ke.first=RH,Nne(ke,(function(){var k={};return N0(ke,function(B,K){ma.call(ke.prototype,K)||(k[K]=B)}),k})(),{chain:!1}),ke.VERSION=r,Nu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(k){ke[k].placeholder=ke}),Nu(["drop","take"],function(k,B){To.prototype[k]=function(K){K=K===n?1:Ul(vo(K),0);var ge=this.__filtered__&&!B?new To(this):this.clone();return ge.__filtered__?ge.__takeCount__=Fc(K,ge.__takeCount__):ge.__views__.push({size:Fc(K,$),type:k+(ge.__dir__<0?"Right":"")}),ge},To.prototype[k+"Right"]=function(K){return this.reverse()[k](K).reverse()}}),Nu(["filter","map","takeWhile"],function(k,B){var K=B+1,ge=K==N||K==W;To.prototype[k]=function(Se){var Be=this.clone();return Be.__iteratees__.push({iteratee:Kr(Se,3),type:K}),Be.__filtered__=Be.__filtered__||ge,Be}}),Nu(["head","last"],function(k,B){var K="take"+(B?"Right":"");To.prototype[k]=function(){return this[K](1).value()[0]}}),Nu(["initial","tail"],function(k,B){var K="drop"+(B?"":"Right");To.prototype[k]=function(){return this.__filtered__?new To(this):this[K](1)}}),To.prototype.compact=function(){return this.filter(P1)},To.prototype.find=function(k){return this.filter(k).head()},To.prototype.findLast=function(k){return this.reverse().find(k)},To.prototype.invokeMap=co(function(k,B){return typeof k=="function"?new To(this):this.map(function(K){return S2(K,k,B)})}),To.prototype.reject=function(k){return this.filter(NH(Kr(k)))},To.prototype.slice=function(k,B){k=vo(k);var K=this;return K.__filtered__&&(k>0||B<0)?new To(K):(k<0?K=K.takeRight(-k):k&&(K=K.drop(k)),B!==n&&(B=vo(B),K=B<0?K.dropRight(-B):K.take(B-k)),K)},To.prototype.takeRightWhile=function(k){return this.reverse().takeWhile(k).reverse()},To.prototype.toArray=function(){return this.take($)},N0(To.prototype,function(k,B){var K=/^(?:filter|find|map|reject)|While$/.test(B),ge=/^(?:head|last)$/.test(B),Se=ke[ge?"take"+(B=="last"?"Right":""):B],Be=ge||/^find/.test(B);Se&&(ke.prototype[B]=function(){var ot=this.__wrapped__,ht=ge?[1]:arguments,Ot=ot instanceof To,sn=ht[0],ln=Ot||to(ot),mn=function(qo){var ra=Se.apply(ke,Um([qo],ht));return ge&&cr?ra[0]:ra};ln&&K&&typeof sn=="function"&&sn.length!=1&&(Ot=ln=!1);var cr=this.__chain__,Ur=!!this.__actions__.length,Mi=Be&&!cr,xo=Ot&&!Ur;if(!Be&&ln){ot=xo?ot:new To(this);var Ci=k.apply(ot,ht);return Ci.__actions__.push({func:Oi,args:[mn],thisArg:n}),new L0(Ci,cr)}return Mi&&xo?k.apply(this,ht):(Ci=this.thru(mn),Mi?ge?Ci.value()[0]:Ci.value():Ci)})}),Nu(["pop","push","shift","sort","splice","unshift"],function(k){var B=tS[k],K=/^(?:push|sort|unshift)$/.test(k)?"tap":"thru",ge=/^(?:pop|shift)$/.test(k);ke.prototype[k]=function(){var Se=arguments;if(ge&&!this.__chain__){var Be=this.value();return B.apply(to(Be)?Be:[],Se)}return this[K](function(ot){return B.apply(to(ot)?ot:[],Se)})}}),N0(To.prototype,function(k,B){var K=ke[B];if(K){var ge=K.name+"";ma.call(Jm,ge)||(Jm[ge]=[]),Jm[ge].push({name:B,func:K})}}),Jm[eE(n,y).name]=[{name:"wrapper",func:n}],To.prototype.clone=DT,To.prototype.reverse=nH,To.prototype.value=nL,ke.prototype.at=Co,ke.prototype.chain=Zi,ke.prototype.commit=dv,ke.prototype.next=zne,ke.prototype.plant=mRt,ke.prototype.reverse=vRt,ke.prototype.toJSON=ke.prototype.valueOf=ke.prototype.value=bRt,ke.prototype.first=ke.prototype.head,dg&&(ke.prototype[dg]=gRt),ke}),g2=Yj();lg?((lg.exports=g2)._=g2,Wk._=g2):su._=g2}).call(rPn)})(iN,iN.exports)),iN.exports}var R9=iPn(),R4={},xLe;function oPn(){if(xLe)return R4;xLe=1;var e=ri(),t=ii();Object.defineProperty(R4,"__esModule",{value:!0}),R4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");return R4.default=i,R4}var aPn=oPn();const Mo=qn(aPn);var I4={},wLe;function sPn(){if(wLe)return I4;wLe=1;var e=ri(),t=ii();Object.defineProperty(I4,"__esModule",{value:!0}),I4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");return I4.default=i,I4}var lPn=sPn();const Fo=qn(lPn);var P4={},SLe;function cPn(){if(SLe)return P4;SLe=1;var e=ri(),t=ii();Object.defineProperty(P4,"__esModule",{value:!0}),P4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");return P4.default=i,P4}var uPn=cPn();const tdt=qn(uPn);var D4={},ALe;function dPn(){if(ALe)return D4;ALe=1;var e=ri(),t=ii();Object.defineProperty(D4,"__esModule",{value:!0}),D4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"}),"PlaylistAdd");return D4.default=i,D4}var pPn=dPn();const Jo=qn(pPn);var dZ=(function(){function e(t){var n=t===void 0?{}:t,r=n.locale,i=n.instance,o=n.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=i||o||mt,this.locale=r}return e.prototype.parse=function(t,n){return t===""?null:this.moment(t,n,!0)},e.prototype.date=function(t){if(t===null)return null;var n=this.moment(t);return n.locale(this.locale),n},e.prototype.isValid=function(t){return this.moment(t).isValid()},e.prototype.isNull=function(t){return t===null},e.prototype.getDiff=function(t,n){return t.diff(n)},e.prototype.isAfter=function(t,n){return t.isAfter(n)},e.prototype.isBefore=function(t,n){return t.isBefore(n)},e.prototype.isAfterDay=function(t,n){return t.isAfter(n,"day")},e.prototype.isBeforeDay=function(t,n){return t.isBefore(n,"day")},e.prototype.isBeforeYear=function(t,n){return t.isBefore(n,"year")},e.prototype.isAfterYear=function(t,n){return t.isAfter(n,"year")},e.prototype.startOfDay=function(t){return t.clone().startOf("day")},e.prototype.endOfDay=function(t){return t.clone().endOf("day")},e.prototype.format=function(t,n){return t.locale(this.locale),t.format(n)},e.prototype.formatNumber=function(t){return t},e.prototype.getHours=function(t){return t.get("hours")},e.prototype.addDays=function(t,n){return n<0?t.clone().subtract(Math.abs(n),"days"):t.clone().add(n,"days")},e.prototype.setHours=function(t,n){return t.clone().hours(n)},e.prototype.getMinutes=function(t){return t.get("minutes")},e.prototype.setMinutes=function(t,n){return t.clone().minutes(n)},e.prototype.getSeconds=function(t){return t.get("seconds")},e.prototype.setSeconds=function(t,n){return t.clone().seconds(n)},e.prototype.getMonth=function(t){return t.get("month")},e.prototype.isSameDay=function(t,n){return t.isSame(n,"day")},e.prototype.isSameMonth=function(t,n){return t.isSame(n,"month")},e.prototype.isSameYear=function(t,n){return t.isSame(n,"year")},e.prototype.isSameHour=function(t,n){return t.isSame(n,"hour")},e.prototype.setMonth=function(t,n){return t.clone().month(n)},e.prototype.getMeridiemText=function(t){return t==="am"?"AM":"PM"},e.prototype.startOfMonth=function(t){return t.clone().startOf("month")},e.prototype.endOfMonth=function(t){return t.clone().endOf("month")},e.prototype.getNextMonth=function(t){return t.clone().add(1,"month")},e.prototype.getPreviousMonth=function(t){return t.clone().subtract(1,"month")},e.prototype.getMonthArray=function(t){for(var n=t.clone().startOf("year"),r=[n];r.length<12;){var i=r[r.length-1];r.push(this.getNextMonth(i))}return r},e.prototype.getYear=function(t){return t.get("year")},e.prototype.setYear=function(t,n){return t.clone().set("year",n)},e.prototype.mergeDateAndTime=function(t,n){return this.setMinutes(this.setHours(t,this.getHours(n)),this.getMinutes(n))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(t,n){return t===null&&n===null?!0:this.moment(t).isSame(n)},e.prototype.getWeekArray=function(t){for(var n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week"),i=0,o=n,a=[];o.isBefore(r);){var s=Math.floor(i/7);a[s]=a[s]||[],a[s].push(o),o=o.clone().add(1,"day"),i+=1}return a},e.prototype.getYearRange=function(t,n){for(var r=this.moment(t).startOf("year"),i=this.moment(n).endOf("year"),o=[],a=r;a.isBefore(i);)o.push(a),a=a.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(t){return this.format(t,this.yearMonthFormat)},e.prototype.getYearText=function(t){return this.format(t,"YYYY")},e.prototype.getDatePickerHeaderText=function(t){return this.format(t,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(t){return this.format(t,"MMM D")},e.prototype.getMonthText=function(t){return this.format(t,"MMMM")},e.prototype.getDayText=function(t){return this.format(t,"D")},e.prototype.getHourText=function(t,n){return this.format(t,n?"hh":"HH")},e.prototype.getMinuteText=function(t){return this.format(t,"mm")},e.prototype.getSecondText=function(t){return this.format(t,"ss")},e})(),ndt=v.createContext(null),pZ=function(t){var n=t.utils,r=t.children,i=t.locale,o=t.libInstance,a=v.useMemo(function(){return new n({locale:i,instance:o})},[n,o,i]);return v.createElement(ndt.Provider,{value:a,children:r})},hPn=function(t){if(!t)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports.  Recommendation: use named imports from the module index.")};function wp(){var e=v.useContext(ndt);return hPn(e),e}function ly(e,t){return Array.isArray(t)?t.every(function(n){return e.indexOf(n)!==-1}):e.indexOf(t)!==-1}var vxe=310,rdt=325,fPn=305,gPn=Et(function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:vxe,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}},{name:"MuiPickersStaticWrapper"}),mPn=function(t){var n=t.children,r=gPn();return v.createElement("div",{className:r.staticWrapperRoot,children:n})},idt=function(t){var n=t.children,r=t.classes,i=t.onAccept,o=t.onDismiss,a=t.onClear,s=t.onSetToday,l=t.okLabel,c=t.cancelLabel,u=t.clearLabel,d=t.todayLabel,p=t.clearable,h=t.showTodayButton;t.showTabs;var g=t.wider,m=fn(t,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return v.createElement(Qu,Y({role:"dialog",onClose:o,classes:{paper:$t(r.dialogRoot,g&&r.dialogRootWider)}},m),v.createElement(ru,{children:n,className:r.dialog}),v.createElement(Ed,{classes:{root:$t((p||h)&&r.withAdditionalAction)}},p&&v.createElement(Ne,{color:"primary",onClick:a},u),h&&v.createElement(Ne,{color:"primary",onClick:s},d),c&&v.createElement(Ne,{color:"primary",onClick:o},c),l&&v.createElement(Ne,{color:"primary",onClick:i},l)))};idt.displayName="ModalDialog";var vPn=Mp({dialogRoot:{minWidth:vxe},dialogRootWider:{minWidth:rdt},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}}),bPn=or(vPn,{name:"MuiPickersModal"})(idt),odt=typeof window>"u"?v.useEffect:v.useLayoutEffect;function adt(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function sdt(e,t){var n=v.useRef(t);n.current=t,odt(function(){if(e){var r=function(o){adt(o,n.current)};return window.addEventListener("keydown",r),function(){window.removeEventListener("keydown",r)}}},[e])}var ldt=function(t){var n=t.open,r=t.children,i=t.okLabel,o=t.cancelLabel,a=t.clearLabel,s=t.todayLabel,l=t.showTodayButton,c=t.clearable,u=t.DialogProps,d=t.showTabs,p=t.wider,h=t.InputComponent,g=t.DateInputProps,m=t.onClear,b=t.onAccept,y=t.onDismiss,M=t.onSetToday,C=fn(t,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return sdt(n,{Enter:b}),v.createElement(v.Fragment,null,v.createElement(h,Y({},C,g)),v.createElement(bPn,Y({wider:p,showTabs:d,open:n,onClear:m,onAccept:b,onDismiss:y,onSetToday:M,clearLabel:a,todayLabel:s,okLabel:i,cancelLabel:o,clearable:c,showTodayButton:l,children:r},u)))};ldt.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var yPn=function(t){var n=t.open;t.wider;var r=t.children,i=t.PopoverProps;t.onClear;var o=t.onDismiss;t.onSetToday;var a=t.onAccept;t.showTabs;var s=t.DateInputProps,l=t.InputComponent,c=fn(t,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),u=v.useRef();return sdt(n,{Enter:a}),v.createElement(v.Fragment,null,v.createElement(l,Y({},c,s,{inputRef:u})),v.createElement(A3,Y({open:n,onClose:o,anchorEl:u.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:r},i)))};function MPn(e){switch(e){case"inline":return yPn;case"static":return mPn;default:return ldt}}var bxe=v.createContext(null),CPn=function(t){var n=t.variant,r=fn(t,["variant"]),i=MPn(n);return v.createElement(bxe.Provider,{value:n||"dialog"},v.createElement(i,r))},xPn=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i._state=null,i._del=!1,i._handleChange=function(o){var a=i.state.value,s=o.target.value,l=o.target,c=s.length>a.length,u=i._del,d=a===i.props.format(s);i.setState({value:s,local:!0},function(){var p=l.selectionStart,h=i.props.refuse||/[^\d]+/g,g=s.substr(0,p).replace(h,"");if(i._state={input:l,before:g,op:c,di:u&&d,del:u},i.props.replace&&i.props.replace(a)&&c&&!d){for(var m=-1,b=0;b!==g.length;++b)m=Math.max(m,s.toLowerCase().indexOf(g[b].toLowerCase(),m+1));var y=s.substr(m+1).replace(h,"")[0];m=s.indexOf(y,m+1),s=""+s.substr(0,m)+s.substr(m+1)}var M=i.props.format(s);a===M?i.setState({value:s}):i.props.onChange(M)})},i._hKD=function(o){o.code==="Delete"&&(i._del=!0)},i._hKU=function(o){o.code==="Delete"&&(i._del=!1)},i.state={value:r.value,local:!0},i}t.getDerivedStateFromProps=function(i,o){return{value:o.local?o.value:i.value,local:!1}};var n=t.prototype;return n.render=function(){var i=this._handleChange,o=this.state.value,a=this.props.children;return a({value:o,onChange:i})},n.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},n.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},n.componentDidUpdate=function(){var i=this._state;if(i){for(var o=this.state.value,a=-1,s=0;s!==i.before.length;++s)a=Math.max(a,o.toLowerCase().indexOf(i.before[s].toLowerCase(),a+1));if(this.props.replace&&(i.op||i.del&&!i.di))for(;o[a+1]&&(this.props.refuse||/[^\d]+/).test(o[a+1]);)a+=1;i.input.selectionStart=i.input.selectionEnd=a+1+(i.di?1:0)}this._state=null},t})(v.Component),wPn=Et(function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}},{name:"MuiPickersDay"}),yxe=function(t){var n=t.children,r=t.disabled,i=t.hidden,o=t.current,a=t.selected,s=fn(t,["children","disabled","hidden","current","selected"]),l=wPn(),c=$t(l.day,i&&l.hidden,o&&l.current,a&&l.daySelected,r&&l.dayDisabled);return v.createElement(bn,Y({className:c,tabIndex:i||r?-1:0},s),v.createElement(vt,{variant:"body2",color:"inherit"},n))};yxe.displayName="Day";yxe.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};var SPn=function(t){var n=t.date,r=t.utils,i=t.minDate,o=t.maxDate,a=t.disableFuture,s=t.disablePast,l=t.shouldDisableDate,c=r.startOfDay(r.date());s&&r.isBefore(i,c)&&(i=c),a&&r.isAfter(o,c)&&(o=c);var u=n,d=n;for(r.isBefore(n,i)&&(u=r.date(i),d=null),r.isAfter(n,o)&&(d&&(d=r.date(o)),u=null);u||d;){if(u&&r.isAfter(u,o)&&(u=null),d&&r.isBefore(d,i)&&(d=null),u){if(!l(u))return u;u=r.addDays(u,1)}if(d){if(!l(d))return d;d=r.addDays(d,-1)}}return r.date()},cdt=function(t){return t.length===1&&t[0]==="year"},udt=function(t){return t.length===2&&ly(t,"month")&&ly(t,"year")},APn=function(t,n){return cdt(t)?n.yearFormat:udt(t)?n.yearMonthFormat:n.dateFormat},OPn=function(t){var n=t.children,r=t.value,i=t.disabled,o=t.onSelect,a=t.dayInCurrentMonth,s=fn(t,["children","value","disabled","onSelect","dayInCurrentMonth"]),l=v.useCallback(function(){return o(r)},[o,r]);return v.createElement("div",Y({role:"presentation",onClick:a&&!i?l:void 0,onKeyPress:a&&!i?l:void 0},s),n)},ddt=350,zPn=Et(function(e){var t=e.transitions.create("transform",{duration:ddt,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{transitionContainer:{display:"block",position:"relative","& > *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}},{name:"MuiPickersSlideTransition"}),pdt=function(t){var n=t.children,r=t.transKey,i=t.slideDirection,o=t.className,a=o===void 0?null:o,s=zPn(),l={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+i],exitActive:s["slideExitActiveLeft-"+i]};return v.createElement(w3,{className:$t(s.transitionContainer,a),childFactory:function(u){return v.cloneElement(u,{classNames:l})}},v.createElement(rQ,{mountOnEnter:!0,unmountOnExit:!0,key:r+i,timeout:ddt,classNames:l,children:n}))},TPn=function(t){return E.createElement(Ez,t,E.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),E.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))},EPn=function(t){return E.createElement(Ez,t,E.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),E.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))},RPn=Et(function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}},{name:"MuiPickersCalendarHeader"}),Mxe=function(t){var n=t.currentMonth,r=t.onMonthChange,i=t.leftArrowIcon,o=t.rightArrowIcon,a=t.leftArrowButtonProps,s=t.rightArrowButtonProps,l=t.disablePrevMonth,c=t.disableNextMonth,u=t.slideDirection,d=wp(),p=RPn(),h=ql(),g=h.direction==="rtl",m=function(){return r(d.getNextMonth(n),"left")},b=function(){return r(d.getPreviousMonth(n),"right")};return v.createElement("div",null,v.createElement("div",{className:p.switchHeader},v.createElement(bn,Y({},a,{disabled:l,onClick:b,className:p.iconButton}),g?o:i),v.createElement(pdt,{slideDirection:u,transKey:n.toString(),className:p.transitionContainer},v.createElement(vt,{align:"center",variant:"body1"},d.getCalendarHeaderText(n))),v.createElement(bn,Y({},s,{disabled:c,onClick:m,className:p.iconButton}),g?i:o)),v.createElement("div",{className:p.daysHeader},d.getWeekdays().map(function(y,M){return v.createElement(vt,{key:M,variant:"caption",className:p.dayLabel},y)})))};Mxe.displayName="CalendarHeader";Mxe.defaultProps={leftArrowIcon:v.createElement(TPn,null),rightArrowIcon:v.createElement(EPn,null),disablePrevMonth:!1,disableNextMonth:!1};var IPn=function(){return function(t){var n=function(i){var o=wp();return v.createElement(t,Y({utils:o},i))};return n.displayName="WithUtils(".concat(t.displayName||t.name,")"),n}},PPn=function(t){var n=t.onKeyDown;return v.useEffect(function(){return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}},[n]),null},Cxe=(function(e){ea(t,e);function t(){var n,r;Io(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=lQ(this,(n=Pz(t)).call.apply(n,[this].concat(o))),r.state={slideDirection:"left",currentMonth:r.props.utils.startOfMonth(r.props.date),loadingQueue:0},r.pushToLoadingQueue=function(){var s=r.state.loadingQueue+1;r.setState({loadingQueue:s})},r.popFromLoadingQueue=function(){var s=r.state.loadingQueue;s=s<=0?0:s-1,r.setState({loadingQueue:s})},r.handleChangeMonth=function(s,l){if(r.setState({currentMonth:s,slideDirection:l}),r.props.onMonthChange){var c=r.props.onMonthChange(s);c&&(r.pushToLoadingQueue(),c.then(function(){r.popFromLoadingQueue()}))}},r.validateMinMaxDate=function(s){var l=r.props,c=l.minDate,u=l.maxDate,d=l.utils,p=l.disableFuture,h=l.disablePast,g=d.date();return!!(p&&d.isAfterDay(s,g)||h&&d.isBeforeDay(s,g)||c&&d.isBeforeDay(s,d.date(c))||u&&d.isAfterDay(s,d.date(u)))},r.shouldDisablePrevMonth=function(){var s=r.props,l=s.utils,c=s.disablePast,u=s.minDate,d=l.date(),p=l.startOfMonth(c&&l.isAfter(d,l.date(u))?d:l.date(u));return!l.isBefore(p,r.state.currentMonth)},r.shouldDisableNextMonth=function(){var s=r.props,l=s.utils,c=s.disableFuture,u=s.maxDate,d=l.date(),p=l.startOfMonth(c&&l.isBefore(d,l.date(u))?d:l.date(u));return!l.isAfter(p,r.state.currentMonth)},r.shouldDisableDate=function(s){var l=r.props.shouldDisableDate;return r.validateMinMaxDate(s)||!!(l&&l(s))},r.handleDaySelect=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=r.props,u=c.date,d=c.utils;r.props.onChange(d.mergeDateAndTime(s,u),l)},r.moveToDay=function(s){var l=r.props.utils;s&&!r.shouldDisableDate(s)&&(l.getMonth(s)!==l.getMonth(r.state.currentMonth)&&r.handleChangeMonth(l.startOfMonth(s),"left"),r.handleDaySelect(s,!1))},r.handleKeyDown=function(s){var l=r.props,c=l.theme,u=l.date,d=l.utils;adt(s,{ArrowUp:function(){return r.moveToDay(d.addDays(u,-7))},ArrowDown:function(){return r.moveToDay(d.addDays(u,7))},ArrowLeft:function(){return r.moveToDay(d.addDays(u,c.direction==="ltr"?-1:1))},ArrowRight:function(){return r.moveToDay(d.addDays(u,c.direction==="ltr"?1:-1))}})},r.renderWeeks=function(){var s=r.props,l=s.utils,c=s.classes,u=l.getWeekArray(r.state.currentMonth);return u.map(function(d){return v.createElement("div",{key:"week-".concat(d[0].toString()),className:c.week},r.renderDays(d))})},r.renderDays=function(s){var l=r.props,c=l.date,u=l.renderDay,d=l.utils,p=d.date(),h=d.startOfDay(c),g=d.getMonth(r.state.currentMonth);return s.map(function(m){var b=r.shouldDisableDate(m),y=d.getMonth(m)===g,M=v.createElement(yxe,{disabled:b,current:d.isSameDay(m,p),hidden:!y,selected:d.isSameDay(h,m)},d.getDayText(m));return u&&(M=u(m,h,y,M)),v.createElement(OPn,{value:m,key:m.toString(),disabled:b,dayInCurrentMonth:y,onSelect:r.handleDaySelect},M)})},r}return so(t,[{key:"componentDidMount",value:function(){var r=this.props,i=r.date,o=r.minDate,a=r.maxDate,s=r.utils,l=r.disablePast,c=r.disableFuture;if(this.shouldDisableDate(i)){var u=SPn({date:i,utils:s,minDate:s.date(o),maxDate:s.date(a),disablePast:!!l,disableFuture:!!c,shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(u,!1)}}},{key:"render",value:function(){var r=this.state,i=r.currentMonth,o=r.slideDirection,a=this.props,s=a.classes,l=a.allowKeyboardControl,c=a.leftArrowButtonProps,u=a.leftArrowIcon,d=a.rightArrowButtonProps,p=a.rightArrowIcon,h=a.loadingIndicator,g=h||v.createElement(Kt,null);return v.createElement(v.Fragment,null,l&&this.context!=="static"&&v.createElement(PPn,{onKeyDown:this.handleKeyDown}),v.createElement(Mxe,{currentMonth:i,slideDirection:o,onMonthChange:this.handleChangeMonth,leftArrowIcon:u,leftArrowButtonProps:c,rightArrowIcon:p,rightArrowButtonProps:d,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),v.createElement(pdt,{slideDirection:o,transKey:i.toString(),className:s.transitionContainer},v.createElement(v.Fragment,null,this.state.loadingQueue>0&&v.createElement("div",{className:s.progressContainer},g)||v.createElement("div",null,this.renderWeeks()))))}}],[{key:"getDerivedStateFromProps",value:function(r,i){var o=r.utils,a=r.date;if(!o.isEqual(a,i.lastDate)){var s=o.getMonth(a),l=i.lastDate||a,c=o.getMonth(l);return{lastDate:a,currentMonth:r.utils.startOfMonth(a),slideDirection:s===c?i.slideDirection:o.isAfterDay(a,l)?"left":"right"}}return null}}]),t})(v.Component);Cxe.contextType=bxe;Cxe.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0};var DPn=function(t){return{transitionContainer:{minHeight:216,marginTop:t.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}},hdt=or(DPn,{name:"MuiPickersCalendar",withTheme:!0})(IPn()(Cxe)),ige;(function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"})(ige||(ige={}));var J0=ige,fdt=(function(e){ea(t,e);function t(){var n,r;Io(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=lQ(this,(n=Pz(t)).call.apply(n,[this].concat(o))),r.state={toAnimateTransform:!1,previousType:void 0},r.getAngleStyle=function(){var s=r.props,l=s.value,c=s.isInner,u=s.type,d=u===J0.HOURS?12:60,p=360/d*l;return u===J0.HOURS&&l>12&&(p-=360),{height:c?"26%":"40%",transform:"rotateZ(".concat(p,"deg)")}},r}return so(t,[{key:"render",value:function(){var r=this.props,i=r.classes,o=r.hasSelected;return v.createElement("div",{style:this.getAngleStyle(),className:$t(i.pointer,this.state.toAnimateTransform&&i.animateTransform)},v.createElement("div",{className:$t(i.thumb,o&&i.noPoint)}))}}]),t})(v.Component);fdt.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}};var kPn=function(t){return Mp({pointer:{width:2,backgroundColor:t.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:t.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:t.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid ".concat(t.palette.primary.main),boxSizing:"content-box"},noPoint:{backgroundColor:t.palette.primary.main}})},LPn=or(kPn,{name:"MuiPickersClockPointer"})(fdt),VW={x:260/2,y:260/2},gdt={x:VW.x,y:0},_Pn=gdt.x-VW.x,NPn=gdt.y-VW.y,FPn=function(t){return t*57.29577951308232},mdt=function(t,n,r){var i=n-VW.x,o=r-VW.y,a=Math.atan2(_Pn,NPn)-Math.atan2(i,o),s=FPn(a);s=Math.round(s/t)*t,s%=360;var l=Math.floor(s/t)||0,c=Math.pow(i,2)+Math.pow(o,2),u=Math.sqrt(c);return{value:l,distance:u}},WPn=function(t,n,r){var i=mdt(30,t,n),o=i.value,a=i.distance;return o=o||12,r?o%=12:a<90&&(o+=12,o%=24),o},qPn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=r*6,o=mdt(i,t,n),a=o.value;return a=a*r%60,a},vdt=function(t,n){return n.getHours(t)>=12?"pm":"am"},bdt=function(t,n,r,i){if(r){var o=i.getHours(t)>=12?"pm":"am";if(o!==n){var a=n==="am"?i.getHours(t)-12:i.getHours(t)+12;return i.setHours(t,a)}}return t},ydt=(function(e){ea(t,e);function t(){var n,r;Io(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=lQ(this,(n=Pz(t)).call.apply(n,[this].concat(o))),r.isMoving=!1,r.handleTouchMove=function(s){r.isMoving=!0,r.setTime(s)},r.handleTouchEnd=function(s){r.isMoving&&(r.setTime(s,!0),r.isMoving=!1)},r.handleMove=function(s){s.preventDefault(),s.stopPropagation();var l=typeof s.buttons>"u"?s.nativeEvent.which===1:s.buttons===1;l&&r.setTime(s.nativeEvent,!1)},r.handleMouseUp=function(s){r.isMoving&&(r.isMoving=!1),r.setTime(s.nativeEvent,!0)},r.hasSelected=function(){var s=r.props,l=s.type,c=s.value;return l===J0.HOURS?!0:c%5===0},r}return so(t,[{key:"setTime",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=r.offsetX,a=r.offsetY;if(typeof o>"u"){var s=r.target.getBoundingClientRect();o=r.changedTouches[0].clientX-s.left,a=r.changedTouches[0].clientY-s.top}var l=this.props.type===J0.SECONDS||this.props.type===J0.MINUTES?qPn(o,a,this.props.minutesStep):WPn(o,a,!!this.props.ampm);this.props.onChange(l,i)}},{key:"render",value:function(){var r=this.props,i=r.classes,o=r.value,a=r.children,s=r.type,l=r.ampm,c=!l&&s===J0.HOURS&&(o<1||o>12);return v.createElement("div",{className:i.container},v.createElement("div",{className:i.clock},v.createElement("div",{role:"menu",tabIndex:-1,className:i.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),v.createElement("div",{className:i.pin}),v.createElement(LPn,{type:s,value:o,isInner:c,hasSelected:this.hasSelected()}),a))}}]),t})(v.Component);ydt.defaultProps={ampm:!1,minutesStep:1};var BPn=function(t){return Mp({container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:"".concat(t.spacing(2),"px 0 ").concat(t.spacing(1),"px")},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none"},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:t.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})},jPn=or(BPn,{name:"MuiPickersClock"})(ydt),HPn={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},VPn=Et(function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc((100% - ".concat(typeof t=="number"?"".concat(t,"px"):t,") / 2)"),display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.type==="light"?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}},{name:"MuiPickersClockNumber"}),qp=function(t){var n=t.selected,r=t.label,i=t.index,o=t.isInner,a=VPn(),s=$t(a.clockNumber,n&&a.clockNumberSelected),l=v.useMemo(function(){var c=HPn[i];return{transform:"translate(".concat(c[0],"px, ").concat(c[1],"px")}},[i]);return v.createElement(vt,{component:"span",className:s,variant:o?"body2":"body1",style:l,children:r})},GPn=function(t){for(var n=t.ampm,r=t.utils,i=t.date,o=r.getHours(i),a=[],s=n?1:0,l=n?12:23,c=function(g){return n?g===12?o===12||o===0:o===g||o-12===g:o===g},u=s;u<=l;u+=1){var d=u.toString();u===0&&(d="00");var p={index:u,label:r.formatNumber(d),selected:c(u),isInner:!n&&(u===0||u>12)};a.push(v.createElement(qp,Y({key:u},p)))}return a},OLe=function(t){var n=t.value,r=t.utils,i=r.formatNumber;return[v.createElement(qp,{label:i("00"),selected:n===0,index:12,key:12}),v.createElement(qp,{label:i("05"),selected:n===5,index:1,key:1}),v.createElement(qp,{label:i("10"),selected:n===10,index:2,key:2}),v.createElement(qp,{label:i("15"),selected:n===15,index:3,key:3}),v.createElement(qp,{label:i("20"),selected:n===20,index:4,key:4}),v.createElement(qp,{label:i("25"),selected:n===25,index:5,key:5}),v.createElement(qp,{label:i("30"),selected:n===30,index:6,key:6}),v.createElement(qp,{label:i("35"),selected:n===35,index:7,key:7}),v.createElement(qp,{label:i("40"),selected:n===40,index:8,key:8}),v.createElement(qp,{label:i("45"),selected:n===45,index:9,key:9}),v.createElement(qp,{label:i("50"),selected:n===50,index:10,key:10}),v.createElement(qp,{label:i("55"),selected:n===55,index:11,key:11})]},GO=function(t){var n=t.type,r=t.onHourChange,i=t.onMinutesChange,o=t.onSecondsChange,a=t.ampm,s=t.date,l=t.minutesStep,c=wp(),u=v.useMemo(function(){switch(n){case J0.HOURS:return{value:c.getHours(s),children:GPn({date:s,utils:c,ampm:!!a}),onChange:function(g,m){var b=vdt(s,c),y=bdt(c.setHours(s,g),b,!!a,c);r(y,m)}};case J0.MINUTES:var d=c.getMinutes(s);return{value:d,children:OLe({value:d,utils:c}),onChange:function(g,m){var b=c.setMinutes(s,g);i(b,m)}};case J0.SECONDS:var p=c.getSeconds(s);return{value:p,children:OLe({value:p,utils:c}),onChange:function(g,m){var b=c.setSeconds(s,g);o(b,m)}};default:throw new Error("You must provide the type for TimePickerView")}},[a,s,r,i,o,n,c]);return v.createElement(jPn,Y({type:n,ampm:a,minutesStep:l},u))};GO.displayName="TimePickerView";GO.defaultProps={ampm:!0,minutesStep:1};v.memo(GO);function zLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}XA.oneOfType([XA.object,XA.string,XA.number,XA.instanceOf(Date)]);XA.oneOf(["year","month","day"]);var Mdt={ampm:!0,invalidDateMessage:"Invalid Time Format"},xxe={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0};$Pn({},Mdt,{},xxe,{showTabs:!0});function UPn(e,t,n){var r=v.useState(t&&ly(e,t)?t:e[0]),i=Xu(r,2),o=i[0],a=i[1],s=v.useCallback(function(l,c){var u=e[e.indexOf(o)+1];if(c&&u){n(l,!1),a(u);return}n(l,!!c)},[n,o,e]);return{handleChangeAndOpenNext:s,openView:o,setOpenView:a}}var XPn=Et(function(e){return{root:{height:40,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none","&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},yearSelected:{margin:"10px 0",fontWeight:e.typography.fontWeightMedium},yearDisabled:{pointerEvents:"none",color:e.palette.text.hint}}},{name:"MuiPickersYear"}),Cdt=function(t){var n=t.onSelect,r=t.forwardedRef,i=t.value,o=t.selected,a=t.disabled,s=t.children,l=fn(t,["onSelect","forwardedRef","value","selected","disabled","children"]),c=XPn(),u=v.useCallback(function(){return n(i)},[n,i]);return v.createElement(vt,Y({role:"button",component:"div",tabIndex:a?-1:0,onClick:u,onKeyPress:u,color:o?"primary":void 0,variant:o?"h5":"subtitle1",children:s,ref:r,className:$t(c.root,o&&c.yearSelected,a&&c.yearDisabled)},l))};Cdt.displayName="Year";var YPn=v.forwardRef(function(e,t){return v.createElement(Cdt,Y({},e,{forwardedRef:t}))}),KPn=Et({container:{height:300,overflowY:"auto"}},{name:"MuiPickersYearSelection"}),xdt=function(t){var n=t.date,r=t.onChange,i=t.onYearChange,o=t.minDate,a=t.maxDate,s=t.disablePast,l=t.disableFuture,c=t.animateYearScrolling,u=wp(),d=KPn(),p=v.useContext(bxe),h=v.useRef(null);v.useEffect(function(){if(h.current&&h.current.scrollIntoView)try{h.current.scrollIntoView({block:p==="static"?"nearest":"center",behavior:c?"smooth":"auto"})}catch{h.current.scrollIntoView()}},[]);var g=u.getYear(n),m=v.useCallback(function(b){var y=u.setYear(n,b);i&&i(y),r(y,!0)},[n,r,i,u]);return v.createElement("div",{className:d.container},u.getYearRange(o,a).map(function(b){var y=u.getYear(b),M=y===g;return v.createElement(YPn,{key:u.getYearText(b),selected:M,value:y,onSelect:m,ref:M?h:void 0,disabled:!!(s&&u.isBeforeYear(b,u.date())||l&&u.isAfterYear(b,u.date()))},u.getYearText(b))}))},QPn=Et(function(e){return{root:{flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none",height:75,transition:e.transitions.create("font-size",{duration:"100ms"}),"&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},monthSelected:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium},monthDisabled:{pointerEvents:"none",color:e.palette.text.hint}}},{name:"MuiPickersMonth"}),wdt=function(t){var n=t.selected,r=t.onSelect,i=t.disabled,o=t.value,a=t.children,s=fn(t,["selected","onSelect","disabled","value","children"]),l=QPn(),c=v.useCallback(function(){r(o)},[r,o]);return v.createElement(vt,Y({role:"button",component:"div",className:$t(l.root,n&&l.monthSelected,i&&l.monthDisabled),tabIndex:i?-1:0,onClick:c,onKeyPress:c,color:n?"primary":void 0,variant:n?"h5":"subtitle1",children:a},s))};wdt.displayName="Month";var ZPn=Et({container:{width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch"}},{name:"MuiPickersMonthSelection"}),Sdt=function(t){var n=t.disablePast,r=t.disableFuture,i=t.minDate,o=t.maxDate,a=t.date,s=t.onMonthChange,l=t.onChange,c=wp(),u=ZPn(),d=c.getMonth(a),p=function(m){var b=c.date(),y=c.date(i),M=c.date(o),C=c.startOfMonth(n&&c.isAfter(b,y)?b:y),x=c.startOfMonth(r&&c.isBefore(b,M)?b:M),w=c.isBefore(m,C),S=c.isAfter(m,x);return w||S},h=v.useCallback(function(g){var m=c.setMonth(a,g);l(m,!0),s&&s(m)},[a,l,s,c]);return v.createElement("div",{className:u.container},c.getMonthArray(a).map(function(g){var m=c.getMonth(g),b=c.format(g,"MMM");return v.createElement(wdt,{key:b,value:m,selected:m===d,onSelect:h,disabled:p(g)},b)}))},TLe=function(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"};function JPn(e){var t=v.useState(TLe()),n=Xu(t,2),r=n[0],i=n[1],o=v.useCallback(function(){return i(TLe())},[]);odt(function(){return window.addEventListener("orientationchange",o),function(){return window.removeEventListener("orientationchange",o)}},[o]);var a=e||r;return a==="landscape"}function ELe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ELe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ELe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tDn={year:xdt,month:Sdt,date:hdt,hours:GO,minutes:GO,seconds:GO},nDn=Et({container:{display:"flex",flexDirection:"column"},containerLandscape:{flexDirection:"row"},pickerView:{overflowX:"hidden",minHeight:fPn,minWidth:vxe,maxWidth:rdt,display:"flex",flexDirection:"column",justifyContent:"center"},pickerViewLandscape:{padding:"0 8px"}},{name:"MuiPickersBasePicker"}),Adt=function(t){var n=t.date,r=t.views,i=t.disableToolbar,o=t.onChange,a=t.openTo,s=t.minDate,l=t.maxDate,c=t.ToolbarComponent,u=t.orientation,d=fn(t,["date","views","disableToolbar","onChange","openTo","minDate","maxDate","ToolbarComponent","orientation"]),p=wp(),h=nDn(),g=JPn(u),m=UPn(r,a,o),b=m.openView,y=m.setOpenView,M=m.handleChangeAndOpenNext,C=v.useMemo(function(){return p.date(s)},[s,p]),x=v.useMemo(function(){return p.date(l)},[l,p]);return v.createElement("div",{className:$t(h.container,g&&h.containerLandscape)},!i&&v.createElement(c,Y({},d,{views:r,isLandscape:g,date:n,onChange:o,setOpenView:y,openView:b})),v.createElement("div",{className:$t(h.pickerView,g&&h.pickerViewLandscape)},b==="year"&&v.createElement(xdt,Y({},d,{date:n,onChange:M,minDate:C,maxDate:x})),b==="month"&&v.createElement(Sdt,Y({},d,{date:n,onChange:M,minDate:C,maxDate:x})),b==="date"&&v.createElement(hdt,Y({},d,{date:n,onChange:M,minDate:C,maxDate:x})),(b==="hours"||b==="minutes"||b==="seconds")&&v.createElement(GO,Y({},d,{date:n,type:b,onHourChange:M,onMinutesChange:M,onSecondsChange:M}))))};Adt.defaultProps=eDn({},xxe,{views:Object.keys(tDn)});var rDn=Et(function(e){var t=e.palette.type==="light"?e.palette.primary.contrastText:e.palette.getContrastText(e.palette.background.default);return{toolbarTxt:{color:Xrn(t,.54)},toolbarBtnSelected:{color:t}}},{name:"MuiPickersToolbarText"}),oge=function(t){var n=t.selected,r=t.label,i=t.className,o=i===void 0?null:i,a=fn(t,["selected","label","className"]),s=rDn();return v.createElement(vt,Y({children:r,className:$t(s.toolbarTxt,o,n&&s.toolbarBtnSelected)},a))},Odt=function(t){var n=t.classes,r=t.className,i=r===void 0?null:r,o=t.label,a=t.selected,s=t.variant,l=t.align,c=t.typographyClassName,u=fn(t,["classes","className","label","selected","variant","align","typographyClassName"]);return v.createElement(Ne,Y({variant:"text",className:$t(n.toolbarBtn,i)},u),v.createElement(oge,{align:l,className:c,variant:s,label:o,selected:a}))};Odt.defaultProps={className:""};var iDn=Mp({toolbarBtn:{padding:0,minWidth:"16px",textTransform:"none"}}),XC=or(iDn,{name:"MuiPickersToolbarButton"})(Odt),oDn=Et(function(e){return{toolbar:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:100,backgroundColor:e.palette.type==="light"?e.palette.primary.main:e.palette.background.default},toolbarLandscape:{height:"auto",maxWidth:150,padding:8,justifyContent:"flex-start"}}},{name:"MuiPickersToolbar"}),zdt=function(t){var n=t.children,r=t.isLandscape,i=t.className,o=i===void 0?null:i,a=fn(t,["children","isLandscape","className"]),s=oDn();return v.createElement(N6,Y({className:$t(s.toolbar,o,r&&s.toolbarLandscape)},a),n)};function RLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function aDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wxe=function(t){var n=t.inputValue,r=t.inputVariant,i=t.validationError,o=t.InputProps,a=t.openPicker,s=t.TextFieldComponent,l=s===void 0?je:s,c=fn(t,["inputValue","inputVariant","validationError","InputProps","openPicker","TextFieldComponent"]),u=v.useMemo(function(){return aDn({},o,{readOnly:!0})},[o]);return v.createElement(l,Y({error:!!i,helperText:i},c,{onClick:a,value:n,variant:r,InputProps:u,onKeyDown:function(p){p.keyCode===32&&(p.stopPropagation(),a())}}))};wxe.displayName="PureDateInput";var sDn=function(t){return E.createElement(Ez,t,E.createElement("path",{d:"M17 12h-5v5h5v-5zM16 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-1V1h-2zm3 18H5V8h14v11z"}),E.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))},Tdt=function(t,n,r,i,o){var a=o.invalidLabel,s=o.emptyLabel,l=o.labelFunc,c=r.date(t);return l?l(i?null:c,a):i?s||"":r.isValid(c)?r.format(c,n):a},ILe=function(t,n,r){return n?r:t.endOfDay(r)},PLe=function(t,n,r){return n?r:t.startOfDay(r)},lDn=function(t,n,r){var i=r.maxDate,o=r.minDate,a=r.disablePast,s=r.disableFuture,l=r.maxDateMessage,c=r.minDateMessage,u=r.invalidDateMessage,d=r.strictCompareDates,p=n.date(t);return t===null?"":n.isValid(t)?i&&n.isAfter(p,ILe(n,!!d,n.date(i)))||s&&n.isAfter(p,ILe(n,!!d,n.date()))?l:o&&n.isBefore(p,PLe(n,!!d,n.date(o)))||a&&n.isBefore(p,PLe(n,!!d,n.date()))?c:"":u};function cDn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2?arguments[2]:void 0;return e||(t?n["12h"]:n["24h"])}function uDn(e,t){return e.replace(/[a-z]/gi,t)}var dDn=function(t,n,r){return function(i){var o="",a=i.replace(r,"");if(a==="")return a;for(var s=0,l=0;s<t.length;){var c=t[s];if(c===n&&l<a.length){var u=a[l];o+=u,l+=1}else o+=c;s+=1}return o}};function DLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Sxe=function(t){var n=t.inputValue,r=t.inputVariant,i=t.validationError,o=t.KeyboardButtonProps,a=t.InputAdornmentProps,s=t.openPicker,l=t.onChange,c=t.InputProps,u=t.mask,d=t.maskChar,p=d===void 0?"_":d,h=t.refuse,g=h===void 0?/[^\d]+/gi:h,m=t.format,b=t.keyboardIcon,y=t.disabled,M=t.rifmFormatter,C=t.TextFieldComponent,x=C===void 0?je:C,w=fn(t,["inputValue","inputVariant","validationError","KeyboardButtonProps","InputAdornmentProps","openPicker","onChange","InputProps","mask","maskChar","refuse","format","keyboardIcon","disabled","rifmFormatter","TextFieldComponent"]),S=u||uDn(m,p),A=v.useMemo(function(){return dDn(S,p,g)},[S,p,g]),z=a&&a.position?a.position:"end",O=function(R){var P=R===""||R===S?null:R;l(P)};return v.createElement(xPn,{key:S,value:n,onChange:O,refuse:g,format:M||A},function(T){var R=T.onChange,P=T.value;return v.createElement(x,Y({disabled:y,error:!!i,helperText:i},w,{value:P,onChange:R,variant:r,InputProps:pDn({},c,tn({},"".concat(z,"Adornment"),v.createElement(ac,Y({position:z},a),v.createElement(bn,Y({disabled:y},o,{onClick:s}),b))))}))})};Sxe.defaultProps={keyboardIcon:v.createElement(sDn,null)};function hDn(e){var t=e.open,n=e.onOpen,r=e.onClose,i=null;if(t==null){var o=v.useState(!1),a=Xu(o,2);t=a[0],i=a[1]}var s=v.useCallback(function(l){return i&&i(l),l?n&&n():r&&r()},[n,r,i]);return{isOpen:t,setIsOpen:s}}var fDn=function(t,n){var r=n.value,i=n.initialFocusedDate,o=v.useRef(t.date()),a=t.date(r||i||o.current);return a&&t.isValid(a)?a:o.current};function gDn(e,t){var n=wp(),r=fDn(n,e),i=e.format||t.getDefaultFormat();return{date:r,format:i}}function Axe(e,t){var n=e.autoOk,r=e.disabled,i=e.readOnly,o=e.onAccept,a=e.onChange,s=e.onError,l=e.value,c=e.variant,u=wp(),d=hDn(e),p=d.isOpen,h=d.setIsOpen,g=gDn(e,t),m=g.date,b=g.format,y=v.useState(m),M=Xu(y,2),C=M[0],x=M[1];v.useEffect(function(){!p&&!u.isEqual(C,m)&&x(m)},[m,p,C,u]);var w=v.useCallback(function(P){a(P),o&&o(P),h(!1)},[o,a,h]),S=v.useMemo(function(){return{format:b,open:p,onClear:function(){return w(null)},onAccept:function(){return w(C)},onSetToday:function(){return x(u.date())},onDismiss:function(){h(!1)}}},[w,b,p,C,h,u]),A=v.useMemo(function(){return{date:C,onChange:function(F){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(x(F),N&&n){w(F);return}(c==="inline"||c==="static")&&(a(F),o&&o(F))}}},[w,n,o,a,C,c]),z=lDn(l,u,e);v.useEffect(function(){s&&s(z,l)},[s,z,l]);var O=Tdt(m,b,u,l===null,e),T=v.useMemo(function(){return{inputValue:O,validationError:z,openPicker:function(){return!i&&!r&&h(!0)}}},[r,O,i,h,z]),R={pickerProps:A,inputProps:T,wrapperProps:S};return v.useDebugValue(R),R}function kLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LLe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mDn(e,t,n){try{return t.parse(e,n)}catch{return null}}function Edt(e,t){var n=e.format,r=n===void 0?t.getDefaultFormat():n,i=e.inputValue,o=e.onChange,a=e.value,s=wp(),l=Tdt(a,r,s,a===null,e),c=v.useState(l),u=Xu(c,2),d=u[0],p=u[1],h=i?mDn(i,s,r):a;v.useEffect(function(){(a===null||s.isValid(a))&&p(l)},[l,p,s,a]);var g=v.useCallback(function(x){o(x,x===null?null:s.format(x,r))},[r,o,s]),m=Axe(LLe({},e,{value:h,onChange:g}),t),b=m.inputProps,y=m.wrapperProps,M=m.pickerProps,C=v.useMemo(function(){return LLe({},b,{format:y.format,inputValue:i||d,onChange:function(w){p(w||"");var S=w===null?null:s.parse(w,y.format);o(S,w)}})},[b,d,i,o,s,y.format]);return{inputProps:C,wrapperProps:y,pickerProps:M}}function hZ(e){var t=e.Input,n=e.useState,r=e.useOptions,i=e.getCustomProps,o=e.DefaultToolbarComponent;function a(s){var l=s.allowKeyboardControl,c=s.ampm,u=s.animateYearScrolling;s.autoOk;var d=s.dateRangeIcon,p=s.disableFuture,h=s.disablePast,g=s.disableToolbar;s.emptyLabel,s.format,s.forwardedRef;var m=s.hideTabs;s.initialFocusedDate,s.invalidDateMessage,s.invalidLabel,s.labelFunc;var b=s.leftArrowButtonProps,y=s.leftArrowIcon,M=s.loadingIndicator,C=s.maxDate;s.maxDateMessage;var x=s.minDate;s.minDateMessage;var w=s.minutesStep;s.onAccept,s.onChange,s.onClose;var S=s.onMonthChange;s.onOpen;var A=s.onYearChange,z=s.openTo,O=s.orientation,T=s.renderDay,R=s.rightArrowButtonProps,P=s.rightArrowIcon,F=s.shouldDisableDate,N=s.strictCompareDates,L=s.timeIcon,W=s.ToolbarComponent,j=W===void 0?o:W;s.value;var V=s.variant,G=s.views,q=fn(s,["allowKeyboardControl","ampm","animateYearScrolling","autoOk","dateRangeIcon","disableFuture","disablePast","disableToolbar","emptyLabel","format","forwardedRef","hideTabs","initialFocusedDate","invalidDateMessage","invalidLabel","labelFunc","leftArrowButtonProps","leftArrowIcon","loadingIndicator","maxDate","maxDateMessage","minDate","minDateMessage","minutesStep","onAccept","onChange","onClose","onMonthChange","onOpen","onYearChange","openTo","orientation","renderDay","rightArrowButtonProps","rightArrowIcon","shouldDisableDate","strictCompareDates","timeIcon","ToolbarComponent","value","variant","views"]),$=i?i(s):{},U=r(s),X=n(s,U),Q=X.pickerProps,re=X.inputProps,ee=X.wrapperProps;return v.createElement(CPn,Y({variant:V,InputComponent:t,DateInputProps:re},$,ee,q),v.createElement(Adt,Y({},Q,{allowKeyboardControl:l,ampm:c,animateYearScrolling:u,dateRangeIcon:d,disableFuture:p,disablePast:h,disableToolbar:g,hideTabs:m,leftArrowButtonProps:b,leftArrowIcon:y,loadingIndicator:M,maxDate:C,minDate:x,minutesStep:w,onMonthChange:S,onYearChange:A,openTo:z,orientation:O,renderDay:T,rightArrowButtonProps:R,rightArrowIcon:P,shouldDisableDate:F,strictCompareDates:N,timeIcon:L,ToolbarComponent:j,views:G})))}return a}var vDn=Et({toolbar:{flexDirection:"column",alignItems:"flex-start"},toolbarLandscape:{padding:16},dateLandscape:{marginRight:16}},{name:"MuiPickersDatePickerRoot"}),Rdt=function(t){var n=t.date,r=t.views,i=t.setOpenView,o=t.isLandscape,a=t.openView,s=wp(),l=vDn(),c=v.useMemo(function(){return cdt(r)},[r]),u=v.useMemo(function(){return udt(r)},[r]);return v.createElement(zdt,{isLandscape:o,className:$t(!c&&l.toolbar,o&&l.toolbarLandscape)},v.createElement(XC,{variant:c?"h3":"subtitle1",onClick:function(){return i("year")},selected:a==="year",label:s.getYearText(n)}),!c&&!u&&v.createElement(XC,{variant:"h4",selected:a==="date",onClick:function(){return i("date")},align:o?"left":"center",label:s.getDatePickerHeaderText(n),className:$t(o&&l.dateLandscape)}),u&&v.createElement(XC,{variant:"h4",onClick:function(){return i("month")},selected:a==="month",label:s.getMonthText(n)}))};function _Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_Le(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_Le(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Idt=bDn({},xxe,{openTo:"date",views:["year","date"]});function Pdt(e){var t=wp();return{getDefaultFormat:function(){return APn(e.views,t)}}}var yDn=hZ({useOptions:Pdt,Input:wxe,useState:Axe,DefaultToolbarComponent:Rdt}),cB=hZ({useOptions:Pdt,Input:Sxe,useState:Edt,DefaultToolbarComponent:Rdt});yDn.defaultProps=Idt;cB.defaultProps=Idt;var MDn=Et({toolbarLandscape:{flexWrap:"wrap"},toolbarAmpmLeftPadding:{paddingLeft:50},separator:{margin:"0 4px 0 2px",cursor:"default"},hourMinuteLabel:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},hourMinuteLabelAmpmLandscape:{marginTop:"auto"},hourMinuteLabelReverse:{flexDirection:"row-reverse"},ampmSelection:{marginLeft:20,marginRight:-20,display:"flex",flexDirection:"column"},ampmLandscape:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},ampmSelectionWithSeconds:{marginLeft:15,marginRight:10},ampmLabel:{fontSize:18}},{name:"MuiPickersTimePickerToolbar"});function CDn(e,t,n){var r=wp(),i=vdt(e,r),o=v.useCallback(function(a){var s=bdt(e,a,!!t,r);n(s,!1)},[t,e,n,r]);return{meridiemMode:i,handleMeridiemChange:o}}var Ddt=function(t){var n=t.date,r=t.views,i=t.ampm,o=t.openView,a=t.onChange,s=t.isLandscape,l=t.setOpenView,c=wp(),u=ql(),d=MDn(),p=CDn(n,i,a),h=p.meridiemMode,g=p.handleMeridiemChange,m=s?"h3":"h2";return v.createElement(zdt,{isLandscape:s,className:$t(s?d.toolbarLandscape:i&&d.toolbarAmpmLeftPadding)},v.createElement("div",{className:$t(d.hourMinuteLabel,i&&s&&d.hourMinuteLabelAmpmLandscape,{rtl:d.hourMinuteLabelReverse}[u.direction])},ly(r,"hours")&&v.createElement(XC,{variant:m,onClick:function(){return l(J0.HOURS)},selected:o===J0.HOURS,label:c.getHourText(n,!!i)}),ly(r,["hours","minutes"])&&v.createElement(oge,{label:":",variant:m,selected:!1,className:d.separator}),ly(r,"minutes")&&v.createElement(XC,{variant:m,onClick:function(){return l(J0.MINUTES)},selected:o===J0.MINUTES,label:c.getMinuteText(n)}),ly(r,["minutes","seconds"])&&v.createElement(oge,{variant:"h2",label:":",selected:!1,className:d.separator}),ly(r,"seconds")&&v.createElement(XC,{variant:"h2",onClick:function(){return l(J0.SECONDS)},selected:o===J0.SECONDS,label:c.getSecondText(n)})),i&&v.createElement("div",{className:$t(d.ampmSelection,s&&d.ampmLandscape,ly(r,"seconds")&&d.ampmSelectionWithSeconds)},v.createElement(XC,{disableRipple:!0,variant:"subtitle1",selected:h==="am",typographyClassName:d.ampmLabel,label:c.getMeridiemText("am"),onClick:function(){return g("am")}}),v.createElement(XC,{disableRipple:!0,variant:"subtitle1",selected:h==="pm",typographyClassName:d.ampmLabel,label:c.getMeridiemText("pm"),onClick:function(){return g("pm")}})))};function NLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var kdt=xDn({},Mdt,{openTo:"hours",views:["hours","minutes"]});function Ldt(e){var t=wp();return{getDefaultFormat:function(){return cDn(e.format,e.ampm,{"12h":t.time12hFormat,"24h":t.time24hFormat})}}}var wDn=hZ({useOptions:Ldt,Input:wxe,useState:Axe,DefaultToolbarComponent:Ddt}),fZ=hZ({useOptions:Ldt,Input:Sxe,useState:Edt,DefaultToolbarComponent:Ddt,getCustomProps:function(t){return{refuse:t.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});wDn.defaultProps=kdt;fZ.defaultProps=kdt;const _dt=v.createContext({dragDropManager:void 0});function FLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WLe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FLe(Object(n),!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FLe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hd(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qLe=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),eoe=function(){return Math.random().toString(36).substring(7).split("").join(".")},GW={INIT:"@@redux/INIT"+eoe(),REPLACE:"@@redux/REPLACE"+eoe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+eoe()}};function SDn(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function uB(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(hd(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(hd(1));return n(uB)(e,t)}if(typeof e!="function")throw new Error(hd(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(hd(3));return o}function d(m){if(typeof m!="function")throw new Error(hd(4));if(l)throw new Error(hd(5));var b=!0;return c(),s.push(m),function(){if(b){if(l)throw new Error(hd(6));b=!1,c();var M=s.indexOf(m);s.splice(M,1),a=null}}}function p(m){if(!SDn(m))throw new Error(hd(7));if(typeof m.type>"u")throw new Error(hd(8));if(l)throw new Error(hd(9));try{l=!0,o=i(o,m)}finally{l=!1}for(var b=a=s,y=0;y<b.length;y++){var M=b[y];M()}return m}function h(m){if(typeof m!="function")throw new Error(hd(10));i=m,p({type:GW.REPLACE})}function g(){var m,b=d;return m={subscribe:function(M){if(typeof M!="object"||M===null)throw new Error(hd(11));function C(){M.next&&M.next(u())}C();var x=b(C);return{unsubscribe:x}}},m[qLe]=function(){return this},m}return p({type:GW.INIT}),r={dispatch:p,subscribe:d,getState:u,replaceReducer:h},r[qLe]=g,r}var ADn=uB;function ODn(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:GW.INIT});if(typeof r>"u")throw new Error(hd(12));if(typeof n(void 0,{type:GW.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(hd(13))})}function Ndt(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]=="function"&&(n[i]=e[i])}var o=Object.keys(n),a;try{ODn(n)}catch(s){a=s}return function(l,c){if(l===void 0&&(l={}),a)throw a;for(var u=!1,d={},p=0;p<o.length;p++){var h=o[p],g=n[h],m=l[h],b=g(m,c);if(typeof b>"u")throw c&&c.type,new Error(hd(14));d[h]=b,u=u||b!==m}return u=u||o.length!==Object.keys(l).length,u?d:l}}function BLe(e,t){return function(){return t(e.apply(this,arguments))}}function zDn(e,t){if(typeof e=="function")return BLe(e,t);if(typeof e!="object"||e===null)throw new Error(hd(16));var n={};for(var r in e){var i=e[r];typeof i=="function"&&(n[r]=BLe(i,t))}return n}function $W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function Fdt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(hd(15))},a={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return o=$W.apply(void 0,s)(i.dispatch),WLe(WLe({},i),{},{dispatch:o})}}}function ho(e,t,...n){if(TDn()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function TDn(){return typeof process<"u"&&!0}function EDn(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function RDn(e,t){return e.filter(n=>n!==t)}function Wdt(e){return typeof e=="object"}function IDn(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function PDn(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Oxe="dnd-core/INIT_COORDS",gZ="dnd-core/BEGIN_DRAG",zxe="dnd-core/PUBLISH_DRAG_SOURCE",mZ="dnd-core/HOVER",vZ="dnd-core/DROP",bZ="dnd-core/END_DRAG";function jLe(e,t){return{type:Oxe,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const DDn={type:Oxe,payload:{clientOffset:null,sourceClientOffset:null}};function kDn(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(jLe(o)),LDn(n,s,l);const c=FDn(n,s);if(c==null){e.dispatch(DDn);return}let u=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");_Dn(a),u=a(c)}e.dispatch(jLe(o,u));const p=l.getSource(c).beginDrag(s,c);if(p==null)return;NDn(p),l.pinSource(c);const h=l.getSourceType(c);return{type:gZ,payload:{itemType:h,item:p,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!i}}}}function LDn(e,t,n){ho(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){ho(n.getSource(r),"Expected sourceIds to be registered.")})}function _Dn(e){ho(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function NDn(e){ho(Wdt(e),"Item must be an object.")}function FDn(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function WDn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){WDn(e,i,n[i])})}return e}function BDn(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();jDn(r),GDn(r).forEach((a,s)=>{const l=HDn(a,s,i,r),c={type:vZ,payload:{dropResult:qDn({},n,l)}};e.dispatch(c)})}}function jDn(e){ho(e.isDragging(),"Cannot call drop while not dragging."),ho(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function HDn(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return VDn(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function VDn(e){ho(typeof e>"u"||Wdt(e),"Drop result must either be an object or undefined.")}function GDn(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function $Dn(e){return function(){const n=e.getMonitor(),r=e.getRegistry();UDn(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:bZ}}}function UDn(e){ho(e.isDragging(),"Cannot call endDrag while not dragging.")}function age(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function XDn(e){return function(n,{clientOffset:r}={}){YDn(n);const i=n.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return QDn(i,a,s),KDn(i,o,a),ZDn(i,o,a),{type:mZ,payload:{targetIds:i,clientOffset:r||null}}}}function YDn(e){ho(Array.isArray(e),"Expected targetIds to be an array.")}function KDn(e,t,n){ho(t.isDragging(),"Cannot call hover while not dragging."),ho(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];ho(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);ho(o,"Expected targetIds to be registered.")}}function QDn(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);age(o,n)||e.splice(r,1)}}function ZDn(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function JDn(e){return function(){if(e.getMonitor().isDragging())return{type:zxe}}}function ekn(e){return{beginDrag:kDn(e),publishDragSource:JDn(e),hover:XDn(e),drop:BDn(e),endDrag:$Dn(e)}}class tkn{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&n(s)}}const i=ekn(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=r(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function nkn(e,t){return{x:e.x+t.x,y:e.y+t.y}}function qdt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rkn(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:qdt(nkn(t,r),n)}function ikn(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:qdt(t,n)}const lF=[],Txe=[];lF.__IS_NONE__=!0;Txe.__IS_ALL__=!0;function okn(e,t){return e===lF?!1:e===Txe||typeof t>"u"?!0:PDn(t,e).length>0}class akn{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;ho(typeof t=="function","listener must be a function."),ho(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!okn(a.dirtyHandlerIds,r)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){ho(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return ho(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(ho(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return age(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(ho(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!age(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return r?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return rkn(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ikn(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const HLe=typeof global<"u"?global:self,Bdt=HLe.MutationObserver||HLe.WebKitMutationObserver;function jdt(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function skn(e){let t=1;const n=new Bdt(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const lkn=typeof Bdt=="function"?skn:jdt;class ckn{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=lkn(this.flush),this.requestErrorThrow=jdt(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class ukn{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class dkn{create(t){const n=this.freeTasks,r=n.length?n.pop():new ukn(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Hdt=new ckn,pkn=new dkn(Hdt.registerPendingError);function hkn(e){Hdt.enqueueTask(pkn.create(e))}const Exe="dnd-core/ADD_SOURCE",Rxe="dnd-core/ADD_TARGET",Ixe="dnd-core/REMOVE_SOURCE",yZ="dnd-core/REMOVE_TARGET";function fkn(e){return{type:Exe,payload:{sourceId:e}}}function gkn(e){return{type:Rxe,payload:{targetId:e}}}function mkn(e){return{type:Ixe,payload:{sourceId:e}}}function vkn(e){return{type:yZ,payload:{targetId:e}}}function bkn(e){ho(typeof e.canDrag=="function","Expected canDrag to be a function."),ho(typeof e.beginDrag=="function","Expected beginDrag to be a function."),ho(typeof e.endDrag=="function","Expected endDrag to be a function.")}function ykn(e){ho(typeof e.canDrop=="function","Expected canDrop to be a function."),ho(typeof e.hover=="function","Expected hover to be a function."),ho(typeof e.drop=="function","Expected beginDrag to be a function.")}function sge(e,t){if(t&&Array.isArray(e)){e.forEach(n=>sge(n,!1));return}ho(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var af;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(af||(af={}));let Mkn=0;function Ckn(){return Mkn++}function xkn(e){const t=Ckn().toString();switch(e){case af.SOURCE:return`S${t}`;case af.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function VLe(e){switch(e[0]){case"S":return af.SOURCE;case"T":return af.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function GLe(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===t)return!0;r=!!i}while(!r);return!1}class wkn{addSource(t,n){sge(t),bkn(n);const r=this.addHandler(af.SOURCE,t,n);return this.store.dispatch(fkn(r)),r}addTarget(t,n){sge(t,!0),ykn(n);const r=this.addHandler(af.TARGET,t,n);return this.store.dispatch(gkn(r)),r}containsHandler(t){return GLe(this.dragSources,t)||GLe(this.dropTargets,t)}getSource(t,n=!1){return ho(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return ho(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return ho(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return ho(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return VLe(t)===af.SOURCE}isTargetId(t){return VLe(t)===af.TARGET}removeSource(t){ho(this.getSource(t),"Expected an existing source."),this.store.dispatch(mkn(t)),hkn(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){ho(this.getTarget(t),"Expected an existing target."),this.store.dispatch(vkn(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);ho(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){ho(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=xkn(t);return this.types.set(i,n),t===af.SOURCE?this.dragSources.set(i,r):t===af.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Skn=(e,t)=>e===t;function Akn(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Okn(e,t,n=Skn){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function zkn(e=lF,t){switch(t.type){case mZ:break;case Exe:case Rxe:case yZ:case Ixe:return lF;case gZ:case zxe:case bZ:case vZ:default:return Txe}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=IDn(n,r);if(!(i.length>0||!Okn(n,r)))return lF;const a=r[r.length-1],s=n[n.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function Tkn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ekn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Tkn(e,i,n[i])})}return e}const $Le={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Rkn(e=$Le,t){const{payload:n}=t;switch(t.type){case Oxe:case gZ:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case mZ:return Akn(e.clientOffset,n.clientOffset)?e:Ekn({},e,{clientOffset:n.clientOffset});case bZ:case vZ:return $Le;default:return e}}function Ikn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Ikn(e,i,n[i])})}return e}const Pkn={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Dkn(e=Pkn,t){const{payload:n}=t;switch(t.type){case gZ:return IE({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case zxe:return IE({},e,{isSourcePublic:!0});case mZ:return IE({},e,{targetIds:n.targetIds});case yZ:return e.targetIds.indexOf(n.targetId)===-1?e:IE({},e,{targetIds:RDn(e.targetIds,n.targetId)});case vZ:return IE({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case bZ:return IE({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function kkn(e=0,t){switch(t.type){case Exe:case Rxe:return e+1;case Ixe:case yZ:return e-1;default:return e}}function Lkn(e=0){return e+1}function _kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nkn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){_kn(e,i,n[i])})}return e}function Fkn(e={},t){return{dirtyHandlerIds:zkn(e.dirtyHandlerIds,{type:t.type,payload:Nkn({},t.payload,{prevTargetIds:EDn(e,"dragOperation.targetIds",[])})}),dragOffset:Rkn(e.dragOffset,t),refCount:kkn(e.refCount,t),dragOperation:Dkn(e.dragOperation,t),stateId:Lkn(e.stateId)}}function Wkn(e,t=void 0,n={},r=!1){const i=qkn(r),o=new akn(i,new wkn(i)),a=new tkn(i,o),s=e(a,t,n);return a.receiveBackend(s),a}function qkn(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return uB(Fkn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Bkn(e,t){if(e==null)return{};var n=jkn(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jkn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let ULe=0;const M7=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var MZ=v.memo(function(t){var{children:n}=t,r=Bkn(t,["children"]);const[i,o]=Hkn(r);return v.useEffect(()=>{if(o){const a=Vdt();return++ULe,()=>{--ULe===0&&(a[M7]=null)}}},[]),f.jsx(_dt.Provider,{value:i,children:n})});function Hkn(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=Vkn(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function Vkn(e,t=Vdt(),n,r){const i=t;return i[M7]||(i[M7]={dragDropManager:Wkn(e,t,n,r)}),i[M7]}function Vdt(){return typeof global<"u"?global:window}var toe,XLe;function Gkn(){return XLe||(XLe=1,toe=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}),toe}var $kn=Gkn();const DA=qn($kn),Wz=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Gdt(e,t,n){const[r,i]=v.useState(()=>t(e)),o=v.useCallback(()=>{const a=t(e);DA(r,a)||(i(a),n&&n())},[r,e,n]);return Wz(o),[r,o]}function Ukn(e,t,n){const[r,i]=Gdt(e,t,n);return Wz(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),r}function $dt(e,t,n){return Ukn(t,e||(()=>({})),()=>n.reconnect())}function Udt(e,t){const n=[];return typeof e!="function"&&n.push(e),v.useMemo(()=>typeof e=="function"?e():e,n)}function Xkn(e){return v.useMemo(()=>e.hooks.dragSource(),[e])}function Ykn(e){return v.useMemo(()=>e.hooks.dragPreview(),[e])}let noe=!1,roe=!1;class Kkn{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){ho(!noe,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return noe=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{noe=!1}}isDragging(){if(!this.sourceId)return!1;ho(!roe,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return roe=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{roe=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let ioe=!1;class Qkn{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;ho(!ioe,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return ioe=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ioe=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function Zkn(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function Jkn(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function lge(e,t,n,r){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<o.length;l++){const c=o[l];if(!s(c))return!1;const u=e[c],d=t[c];if(i=void 0,i===!1||i===void 0&&u!==d)return!1}return!0}function cge(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eLn(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function tLn(e){return(t=null,n=null)=>{if(!v.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return eLn(r),nLn(r,n?o=>e(o,n):e)}}function Xdt(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=tLn(r);t[n]=()=>i}}),t}function YLe(e,t){typeof e=="function"?e(t):e.current=t}function nLn(e,t){const n=e.ref;return ho(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?v.cloneElement(e,{ref:r=>{YLe(n,r),YLe(t,r)}}):v.cloneElement(e,{ref:t})}class rLn{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!lge(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!lge(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Xdt({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,cge(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,cge(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class iLn{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!lge(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Xdt({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,cge(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function MM(){const{dragDropManager:e}=v.useContext(_dt);return ho(e!=null,"Expected drag drop context"),e}function oLn(e,t){const n=MM(),r=v.useMemo(()=>new rLn(n.getBackend()),[n]);return Wz(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Wz(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function aLn(){const e=MM();return v.useMemo(()=>new Kkn(e),[e])}class sLn{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function lLn(e,t,n){const r=v.useMemo(()=>new sLn(e,t,n),[t,n]);return v.useEffect(()=>{r.spec=e},[e]),r}function cLn(e){return v.useMemo(()=>{const t=e.type;return ho(t!=null,"spec.type must be defined"),t},[e])}function uLn(e,t,n){const r=MM(),i=lLn(e,t,n),o=cLn(e);Wz(function(){if(o!=null){const[s,l]=Jkn(o,i,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,i,o])}function dLn(e,t){const n=Udt(e);ho(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=aLn(),i=oLn(n.options,n.previewOptions);return uLn(n,r,i),[$dt(n.collect,r,i),Xkn(i),Ykn(i)]}function pLn(e){const n=MM().getMonitor(),[r,i]=Gdt(n,e);return v.useEffect(()=>n.subscribeToOffsetChange(i)),v.useEffect(()=>n.subscribeToStateChange(i)),r}function hLn(e){return v.useMemo(()=>e.hooks.dropTarget(),[e])}function fLn(e){const t=MM(),n=v.useMemo(()=>new iLn(t.getBackend()),[t]);return Wz(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function gLn(){const e=MM();return v.useMemo(()=>new Qkn(e),[e])}function mLn(e){const{accept:t}=e;return v.useMemo(()=>(ho(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class vLn{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function bLn(e,t){const n=v.useMemo(()=>new vLn(e,t),[t]);return v.useEffect(()=>{n.spec=e},[e]),n}function yLn(e,t,n){const r=MM(),i=bLn(e,t),o=mLn(e);Wz(function(){const[s,l]=Zkn(o,i,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,i,n,o.map(a=>a.toString()).join("|")])}function Ydt(e,t){const n=Udt(e),r=gLn(),i=fLn(n.options);return yLn(n,r,i),[$dt(n.collect,r,i),hLn(i)]}function Kdt(e){let t=null;return()=>(t==null&&(t=e()),t)}function MLn(e,t){return e.filter(n=>n!==t)}function CLn(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class xLn{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=CLn(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=MLn(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class wLn{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Qdt="__NATIVE_FILE__",Zdt="__NATIVE_URL__",Jdt="__NATIVE_TEXT__",e0t="__NATIVE_HTML__",KLe=Object.freeze(Object.defineProperty({__proto__:null,FILE:Qdt,HTML:e0t,TEXT:Jdt,URL:Zdt},Symbol.toStringTag,{value:"Module"}));function ooe(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const uge={[Qdt]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[e0t]:{exposeProperties:{html:(e,t)=>ooe(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Zdt]:{exposeProperties:{urls:(e,t)=>ooe(e,t,"").split(`
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Jdt]:{exposeProperties:{text:(e,t)=>ooe(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function SLn(e,t){const n=uge[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new wLn(n);return r.loadDataTransfer(t),r}function aoe(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(uge).filter(n=>{const r=uge[n];return r?.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const ALn=Kdt(()=>/firefox/i.test(navigator.userAgent)),t0t=Kdt(()=>!!window.safari);class QLe{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,c=a.length-1,u;for(;l<=c;){u=Math.floor(.5*(l+c));const h=n[u];if(h<t)l=u+1;else if(h>t)c=u-1;else return r[u]}s=Math.max(0,c);const d=t-n[s],p=d*d;return r[s]+i[s]*d+o[s]*p+a[s]*d*p}constructor(t,n){const{length:r}=t,i=[];for(let h=0;h<r;h++)i.push(h);i.sort((h,g)=>t[h]<t[g]?-1:1);const o=[],a=[];let s,l;for(let h=0;h<r-1;h++)s=t[h+1]-t[h],l=n[h+1]-n[h],o.push(s),a.push(l/s);const c=[a[0]];for(let h=0;h<o.length-1;h++){const g=a[h],m=a[h+1];if(g*m<=0)c.push(0);else{s=o[h];const b=o[h+1],y=s+b;c.push(3*y/((y+b)/g+(y+s)/m))}}c.push(a[a.length-1]);const u=[],d=[];let p;for(let h=0;h<c.length-1;h++){p=a[h];const g=c[h],m=1/o[h],b=g+c[h+1]-p-p;u.push((p-g-b)*m),d.push(b*m*m)}this.xs=t,this.ys=n,this.c1s=c,this.c2s=u,this.c3s=d}}const OLn=1;function n0t(e){const t=e.nodeType===OLn?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function z8(e){return{x:e.clientX,y:e.clientY}}function zLn(e){var t;return e.nodeName==="IMG"&&(ALn()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function TLn(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return t0t()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function ELn(e,t,n,r,i){const o=zLn(t),s=n0t(o?e:t),l={x:n.x-s.x,y:n.y-s.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:d,anchorY:p}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=TLn(o,t,c,u),m=()=>{let S=new QLe([0,.5,1],[l.y,l.y/u*g,l.y+g-u]).interpolate(p);return t0t()&&o&&(S+=(window.devicePixelRatio-1)*g),S},b=()=>new QLe([0,.5,1],[l.x,l.x/c*h,l.x+h-c]).interpolate(d),{offsetX:y,offsetY:M}=i,C=y===0||y,x=M===0||M;return{x:C?y:b(),y:x?M:m()}}class RLn{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}}function ILn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZLe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ILn(e,i,n[i])})}return e}class PLn{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=a=>this.handleDragStart(a,t),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=a=>this.handleDragEnter(a,t),i=a=>this.handleDragOver(a,t),o=a=>this.handleDrop(a,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return ZLe({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return ZLe({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(KLe).some(n=>KLe[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=SLn(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&n0t(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=z8(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=i,l=aoe(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const u=this.monitor.getSourceId(),d=this.sourceNodes.get(u),p=this.sourcePreviewNodes.get(u)||d;if(p){const{anchorX:h,anchorY:g,offsetX:m,offsetY:b}=this.getCurrentSourcePreviewNodeOptions(),C=ELn(d,p,a,{anchorX:h,anchorY:g},{offsetX:m,offsetY:b});s.setDragImage(p,C.x,C.y)}}try{s?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:c}=this.getCurrentSourcePreviewNodeOptions();c?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:s}=i,l=aoe(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:z8(i)}),o.some(s=>this.monitor.canDropOnTarget(s))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=z8(i),this.scheduleHover(o),(o||[]).some(s=>this.monitor.canDropOnTarget(s))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else aoe(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:z8(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new RLn(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new xLn(this.isNodeInDocument)}}let T8;function DLn(){return T8||(T8=new Image,T8.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),T8}const CZ=function(t,n,r){return new PLn(t,n,r)};var GS={};function ff(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(i){return"'"+i+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Nf(e){return!!e&&!!e[tl]}function Zy(e){var t;return!!e&&((function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===jLn})(e)||Array.isArray(e)||!!e[o4e]||!!(!((t=e.constructor)===null||t===void 0)&&t[o4e])||Pxe(e)||Dxe(e))}function kLn(e){return Nf(e)||ff(23,e),e[tl].t}function qz(e,t,n){n===void 0&&(n=!1),jD(e)===0?(n?Object.keys:xI)(e).forEach((function(r){n&&typeof r=="symbol"||t(r,e[r],e)})):e.forEach((function(r,i){return t(i,r,e)}))}function jD(e){var t=e[tl];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Pxe(e)?2:Dxe(e)?3:0}function CI(e,t){return jD(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function LLn(e,t){return jD(e)===2?e.get(t):e[t]}function r0t(e,t,n){var r=jD(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function i0t(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Pxe(e){return qLn&&e instanceof Map}function Dxe(e){return BLn&&e instanceof Set}function kA(e){return e.o||e.t}function kxe(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=a0t(e);delete t[tl];for(var n=xI(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function xZ(e,t){return t===void 0&&(t=!1),Lxe(e)||Nf(e)||!Zy(e)||(jD(e)>1&&(e.set=e.add=e.clear=e.delete=_Ln),Object.freeze(e),t&&qz(e,(function(n,r){return xZ(r,!0)}),!0)),e}function _Ln(){ff(2)}function Lxe(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function pb(e){var t=fge[e];return t||ff(18,e),t}function NLn(e,t){fge[e]||(fge[e]=t)}function dge(){return UW}function soe(e,t){t&&(pb("Patches"),e.u=[],e.s=[],e.v=t)}function I9(e){pge(e),e.p.forEach(FLn),e.p=null}function pge(e){e===UW&&(UW=e.l)}function JLe(e){return UW={p:[],l:UW,h:e,m:!0,_:0}}function FLn(e){var t=e[tl];t.i===0||t.i===1?t.j():t.g=!0}function loe(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||pb("ES5").S(t,e,r),r?(n[tl].P&&(I9(t),ff(4)),Zy(e)&&(e=P9(t,e),t.l||D9(t,e)),t.u&&pb("Patches").M(n[tl].t,e,t.u,t.s)):e=P9(t,n,[]),I9(t),t.u&&t.v(t.u,t.s),e!==o0t?e:void 0}function P9(e,t,n){if(Lxe(t))return t;var r=t[tl];if(!r)return qz(t,(function(s,l){return e4e(e,r,t,s,l,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return D9(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=kxe(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),qz(o,(function(s,l){return e4e(e,r,i,s,l,n,a)})),D9(e,i,!1),n&&e.u&&pb("Patches").N(r,n,e.u,e.s)}return r.o}function e4e(e,t,n,r,i,o,a){if(Nf(i)){var s=P9(e,i,o&&t&&t.i!==3&&!CI(t.R,r)?o.concat(r):void 0);if(r0t(n,r,s),!Nf(s))return;e.m=!1}else a&&n.add(i);if(Zy(i)&&!Lxe(i)){if(!e.h.D&&e._<1)return;P9(e,i),t&&t.A.l||D9(e,i)}}function D9(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&xZ(t,n)}function coe(e,t){var n=e[tl];return(n?kA(n):e)[t]}function t4e(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function YC(e){e.P||(e.P=!0,e.l&&YC(e.l))}function uoe(e){e.o||(e.o=kxe(e.t))}function hge(e,t,n){var r=Pxe(t)?pb("MapSet").F(t,n):Dxe(t)?pb("MapSet").T(t,n):e.O?(function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:dge(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,c=XW;a&&(l=[s],c=oN);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return s.k=p,s.j=d,p})(t,n):pb("ES5").J(t,n);return(n?n.A:dge()).p.push(r),r}function _xe(e){return Nf(e)||ff(22,e),(function t(n){if(!Zy(n))return n;var r,i=n[tl],o=jD(n);if(i){if(!i.P&&(i.i<4||!pb("ES5").K(i)))return i.t;i.I=!0,r=n4e(n,o),i.I=!1}else r=n4e(n,o);return qz(r,(function(a,s){i&&LLn(i.t,a)===s||r0t(r,a,t(s))})),o===3?new Set(r):r})(e)}function n4e(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return kxe(e)}function WLn(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[tl];return XW.get(l,o)},set:function(l){var c=this[tl];XW.set(c,o,l)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][tl];if(!s.P)switch(s.i){case 5:r(s)&&YC(s);break;case 4:n(s)&&YC(s)}}}function n(o){for(var a=o.t,s=o.k,l=xI(s),c=l.length-1;c>=0;c--){var u=l[c];if(u!==tl){var d=a[u];if(d===void 0&&!CI(a,u))return!0;var p=s[u],h=p&&p[tl];if(h?h.t!==d:!i0t(p,d))return!0}}var g=!!a[tl];return l.length!==xI(a).length+(g?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l<a.length;l++)if(!a.hasOwnProperty(l))return!0;return!1}var i={};NLn("ES5",{J:function(o,a){var s=Array.isArray(o),l=(function(u,d){if(u){for(var p=Array(d.length),h=0;h<d.length;h++)Object.defineProperty(p,""+h,e(h,!0));return p}var g=a0t(d);delete g[tl];for(var m=xI(g),b=0;b<m.length;b++){var y=m[b];g[y]=e(y,u||!!g[y].enumerable)}return Object.create(Object.getPrototypeOf(d),g)})(s,o),c={i:s?5:4,A:a?a.A:dge(),P:!1,I:!1,R:{},l:a,t:o,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,tl,{value:c,writable:!0}),l},S:function(o,a,s){s?Nf(a)&&a[tl].A===o&&t(o.p):(o.u&&(function l(c){if(c&&typeof c=="object"){var u=c[tl];if(u){var d=u.t,p=u.k,h=u.R,g=u.i;if(g===4)qz(p,(function(C){C!==tl&&(d[C]!==void 0||CI(d,C)?h[C]||l(p[C]):(h[C]=!0,YC(u)))})),qz(d,(function(C){p[C]!==void 0||CI(p,C)||(h[C]=!1,YC(u))}));else if(g===5){if(r(u)&&(YC(u),h.length=!0),p.length<d.length)for(var m=p.length;m<d.length;m++)h[m]=!1;else for(var b=d.length;b<p.length;b++)h[b]=!0;for(var y=Math.min(p.length,d.length),M=0;M<y;M++)p.hasOwnProperty(M)||(h[M]=!0),h[M]===void 0&&l(p[M])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var r4e,UW,Nxe=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",qLn=typeof Map<"u",BLn=typeof Set<"u",i4e=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",o0t=Nxe?Symbol.for("immer-nothing"):((r4e={})["immer-nothing"]=!0,r4e),o4e=Nxe?Symbol.for("immer-draftable"):"__$immer_draftable",tl=Nxe?Symbol.for("immer-state"):"__$immer_state",jLn=""+Object.prototype.constructor,xI=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,a0t=Object.getOwnPropertyDescriptors||function(e){var t={};return xI(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},fge={},XW={get:function(e,t){if(t===tl)return e;var n=kA(e);if(!CI(n,t))return(function(i,o,a){var s,l=t4e(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0})(e,n,t);var r=n[t];return e.I||!Zy(r)?r:r===coe(e.t,t)?(uoe(e),e.o[t]=hge(e.A.h,r,e)):r},has:function(e,t){return t in kA(e)},ownKeys:function(e){return Reflect.ownKeys(kA(e))},set:function(e,t,n){var r=t4e(kA(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=coe(kA(e),t),o=i?.[tl];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(i0t(n,i)&&(n!==void 0||CI(e.t,t)))return!0;uoe(e),YC(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return coe(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,uoe(e),YC(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=kA(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ff(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ff(12)}},oN={};qz(XW,(function(e,t){oN[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),oN.deleteProperty=function(e,t){return oN.set.call(this,e,t,void 0)},oN.set=function(e,t,n){return XW.set.call(this,e[0],t,n,e[0])};var HLn=(function(){function e(n){var r=this;this.O=i4e,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(m){var b=this;m===void 0&&(m=s);for(var y=arguments.length,M=Array(y>1?y-1:0),C=1;C<y;C++)M[C-1]=arguments[C];return l.produce(m,(function(x){var w;return(w=o).call.apply(w,[b,x].concat(M))}))}}var c;if(typeof o!="function"&&ff(6),a!==void 0&&typeof a!="function"&&ff(7),Zy(i)){var u=JLe(r),d=hge(r,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?I9(u):pge(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(m){return soe(u,a),loe(m,u)}),(function(m){throw I9(u),m})):(soe(u,a),loe(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===o0t&&(c=void 0),r.D&&xZ(c,!0),a){var h=[],g=[];pb("Patches").M(i,c,h,g),a(h,g)}return c}ff(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return r.produceWithPatches(c,(function(h){return i.apply(void 0,[h].concat(d))}))};var a,s,l=r.produce(i,o,(function(c,u){a=c,s=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,a,s]})):[l,a,s]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Zy(n)||ff(8),Nf(n)&&(n=_xe(n));var r=JLe(this),i=hge(this,n,void 0);return i[tl].C=!0,pge(r),i},t.finishDraft=function(n,r){var i=n&&n[tl],o=i.A;return soe(o,r),loe(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!i4e&&ff(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=pb("Patches").$;return Nf(n)?a(n,r):this.produce(n,(function(s){return a(s,r)}))},e})(),uh=new HLn,wZ=uh.produce;uh.produceWithPatches.bind(uh);uh.setAutoFreeze.bind(uh);uh.setUseProxies.bind(uh);uh.applyPatches.bind(uh);uh.createDraft.bind(uh);uh.finishDraft.bind(uh);var k9="NOT_FOUND";function VLn(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:k9},put:function(r,i){t={key:r,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function GLn(e,t){var n=[];function r(s){var l=n.findIndex(function(u){return t(s,u.key)});if(l>-1){var c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return k9}function i(s,l){r(s)===k9&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function o(){return n}function a(){n=[]}return{get:r,put:i,getEntries:o,clear:a}}var $Ln=function(t,n){return t===n};function ULn(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var i=n.length,o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function XLn(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?$Ln:r,o=n.maxSize,a=o===void 0?1:o,s=n.resultEqualityCheck,l=ULn(i),c=a===1?VLn(l):GLn(a,l);function u(){var d=c.get(arguments);if(d===k9){if(d=e.apply(null,arguments),s){var p=c.getEntries(),h=p.find(function(g){return s(g.value,d)});h&&(d=h.value)}c.put(arguments,d)}return d}return u.clearCache=function(){return c.clear()},u}function YLn(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function KLn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=0,u,d={memoizeOptions:void 0},p=s.pop();if(typeof p=="object"&&(d=p,p=s.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var h=d,g=h.memoizeOptions,m=g===void 0?n:g,b=Array.isArray(m)?m:[m],y=YLn(s),M=e.apply(void 0,[function(){return c++,p.apply(null,arguments)}].concat(b)),C=e(function(){for(var w=[],S=y.length,A=0;A<S;A++)w.push(y[A].apply(null,arguments));return u=M.apply(null,w),u});return Object.assign(C,{resultFunc:p,memoizedResultFunc:M,dependencies:y,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),C};return i}var s0t=KLn(XLn);function l0t(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(a){return function(s){return typeof s=="function"?s(i,o,e):a(s)}}};return t}var gge=l0t();gge.withExtraArgument=l0t;var c0t=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),dB=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},tw=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},QLn=Object.defineProperty,ZLn=Object.defineProperties,JLn=Object.getOwnPropertyDescriptors,a4e=Object.getOwnPropertySymbols,e4n=Object.prototype.hasOwnProperty,t4n=Object.prototype.propertyIsEnumerable,s4e=function(e,t,n){return t in e?QLn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},op=function(e,t){for(var n in t||(t={}))e4n.call(t,n)&&s4e(e,n,t[n]);if(a4e)for(var r=0,i=a4e(t);r<i.length;r++){var n=i[r];t4n.call(t,n)&&s4e(e,n,t[n])}return e},doe=function(e,t){return ZLn(e,JLn(t))},pB=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{s(n.next(l))}catch(c){i(c)}},a=function(l){try{s(n.throw(l))}catch(c){i(c)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,a)};s((n=n.apply(e,t)).next())})},Z2=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s0t.apply(void 0,e),r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return n.apply(void 0,tw([Nf(i)?_xe(i):i],o))};return r},n4n=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$W:$W.apply(null,arguments)};function SZ(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var u0t=function(e){return e&&typeof e.match=="function"};function hb(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var o=t.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return op(op({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function Fxe(e){return SZ(e)&&"type"in e}function r4n(e){return typeof e=="function"&&"type"in e&&u0t(e)}function d0t(e){return Fxe(e)&&typeof e.type=="string"&&Object.keys(e).every(i4n)}function i4n(e){return["type","payload","error","meta"].indexOf(e)>-1}function o4n(e){return""+e}function a4n(e){return function(){return function(t){return function(n){return t(n)}}}}var p0t=(function(e){c0t(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,tw([void 0],n[0].concat(this)))):new(t.bind.apply(t,tw([void 0],n.concat(this))))},t})(Array),h0t=(function(e){c0t(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,tw([void 0],n[0].concat(this)))):new(t.bind.apply(t,tw([void 0],n.concat(this))))},t})(Array);function mge(e){return Zy(e)?wZ(e,function(){}):e}function s4n(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function l4n(e){return function(){return function(t){return function(n){return t(n)}}}}function f0t(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||SZ(e)}function g0t(e,t,n,r,i,o){t===void 0&&(t=""),n===void 0&&(n=f0t),i===void 0&&(i=[]);var a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||o?.has(e))return!1;for(var s=r!=null?r(e):Object.entries(e),l=i.length>0,c=function(b,y){var M=t?t+"."+b:b;if(l){var C=i.some(function(x){return x instanceof RegExp?x.test(M):M===x});if(C)return"continue"}if(!n(y))return{value:{keyPath:M,value:y}};if(typeof y=="object"&&(a=g0t(y,M,n,r,i,o),a))return{value:a}},u=0,d=s;u<d.length;u++){var p=d[u],h=p[0],g=p[1],m=c(h,g);if(typeof m=="object")return m.value}return o&&m0t(e)&&o.add(e),!1}function m0t(e){if(!Object.isFrozen(e))return!1;for(var t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(!(typeof r!="object"||r===null)&&!m0t(r))return!1}return!0}function c4n(e){return function(){return function(t){return function(n){return t(n)}}}}function u4n(e){return typeof e=="boolean"}function d4n(){return function(t){return v0t(t)}}function v0t(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var r=new p0t;return n&&(u4n(n)?r.push(gge):r.push(gge.withExtraArgument(n.extraArgument))),r}function p4n(e){var t=d4n(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,a=o===void 0?t():o,s=n.devTools,l=s===void 0?!0:s,c=n.preloadedState,u=c===void 0?void 0:c,d=n.enhancers,p=d===void 0?void 0:d,h;if(typeof i=="function")h=i;else if(SZ(i))h=Ndt(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=a;typeof g=="function"&&(g=g(t));var m=Fdt.apply(void 0,g),b=$W;l&&(b=n4n(op({trace:!1},typeof l=="object"&&l)));var y=new h0t(m),M=y;Array.isArray(p)?M=tw([m],p):typeof p=="function"&&(M=p(y));var C=b.apply(void 0,M);return uB(h,u,C)}function b0t(e){var t={},n=[],r,i={addCase:function(o,a){var s=typeof o=="string"?o:o.type;if(!s)throw new Error("`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[s]=a,i},addMatcher:function(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase:function(o){return r=o,i}};return e(i),[t,n,r]}function h4n(e){return typeof e=="function"}function y0t(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?b0t(t):[t,n,r],o=i[0],a=i[1],s=i[2],l;if(h4n(e))l=function(){return mge(e())};else{var c=mge(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=tw([o[p.type]],a.filter(function(g){var m=g.matcher;return m(p)}).map(function(g){var m=g.reducer;return m}));return h.filter(function(g){return!!g}).length===0&&(h=[s]),h.reduce(function(g,m){if(m)if(Nf(g)){var b=g,y=m(b,p);return y===void 0?g:y}else{if(Zy(g))return wZ(g,function(M){return m(M,p)});var y=m(g,p);if(y===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}return g},d)}return u.getInitialState=l,u}function f4n(e,t){return e+"/"+t}function ki(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n=typeof e.initialState=="function"?e.initialState:mge(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},a={},s={};i.forEach(function(u){var d=r[u],p=f4n(t,u),h,g;"reducer"in d?(h=d.reducer,g=d.prepare):h=d,o[u]=h,a[p]=h,s[u]=g?hb(p,g):hb(p)});function l(){var u=typeof e.extraReducers=="function"?b0t(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],g=h===void 0?[]:h,m=u[2],b=m===void 0?void 0:m,y=op(op({},p),a);return y0t(n,function(M){for(var C in y)M.addCase(C,y[C]);for(var x=0,w=g;x<w.length;x++){var S=w[x];M.addMatcher(S.matcher,S.reducer)}b&&M.addDefaultCase(b)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:s,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}function g4n(){return{ids:[],entities:{}}}function m4n(){function e(t){return t===void 0&&(t={}),Object.assign(g4n(),t)}return{getInitialState:e}}function v4n(){function e(t){var n=function(c){return c.ids},r=function(c){return c.entities},i=Z2(n,r,function(c,u){return c.map(function(d){return u[d]})}),o=function(c,u){return u},a=function(c,u){return c[u]},s=Z2(n,function(c){return c.length});if(!t)return{selectIds:n,selectEntities:r,selectAll:i,selectTotal:s,selectById:Z2(r,o,a)};var l=Z2(t,r);return{selectIds:Z2(t,n),selectEntities:l,selectAll:Z2(t,i),selectTotal:Z2(t,s),selectById:Z2(l,o,a)}}return{getSelectors:e}}function b4n(e){var t=Mc(function(n,r){return e(r)});return function(r){return t(r,void 0)}}function Mc(e){return function(n,r){function i(a){return d0t(a)}var o=function(a){i(r)?e(r.payload,a):e(r,a)};return Nf(n)?(o(n),n):wZ(n,o)}}function cF(e,t){var n=t(e);return n}function $O(e){return Array.isArray(e)||(e=Object.values(e)),e}function M0t(e,t,n){e=$O(e);for(var r=[],i=[],o=0,a=e;o<a.length;o++){var s=a[o],l=cF(s,t);l in n.entities?i.push({id:l,changes:s}):r.push(s)}return[r,i]}function C0t(e){function t(g,m){var b=cF(g,e);b in m.entities||(m.ids.push(b),m.entities[b]=g)}function n(g,m){g=$O(g);for(var b=0,y=g;b<y.length;b++){var M=y[b];t(M,m)}}function r(g,m){var b=cF(g,e);b in m.entities||m.ids.push(b),m.entities[b]=g}function i(g,m){g=$O(g);for(var b=0,y=g;b<y.length;b++){var M=y[b];r(M,m)}}function o(g,m){g=$O(g),m.ids=[],m.entities={},n(g,m)}function a(g,m){return s([g],m)}function s(g,m){var b=!1;g.forEach(function(y){y in m.entities&&(delete m.entities[y],b=!0)}),b&&(m.ids=m.ids.filter(function(y){return y in m.entities}))}function l(g){Object.assign(g,{ids:[],entities:{}})}function c(g,m,b){var y=b.entities[m.id],M=Object.assign({},y,m.changes),C=cF(M,e),x=C!==m.id;return x&&(g[m.id]=C,delete b.entities[m.id]),b.entities[C]=M,x}function u(g,m){return d([g],m)}function d(g,m){var b={},y={};g.forEach(function(x){x.id in m.entities&&(y[x.id]={id:x.id,changes:op(op({},y[x.id]?y[x.id].changes:null),x.changes)})}),g=Object.values(y);var M=g.length>0;if(M){var C=g.filter(function(x){return c(b,x,m)}).length>0;C&&(m.ids=Object.keys(m.entities))}}function p(g,m){return h([g],m)}function h(g,m){var b=M0t(g,e,m),y=b[0],M=b[1];d(M,m),n(y,m)}return{removeAll:b4n(l),addOne:Mc(t),addMany:Mc(n),setOne:Mc(r),setMany:Mc(i),setAll:Mc(o),updateOne:Mc(u),updateMany:Mc(d),upsertOne:Mc(p),upsertMany:Mc(h),removeOne:Mc(a),removeMany:Mc(s)}}function y4n(e,t){var n=C0t(e),r=n.removeOne,i=n.removeMany,o=n.removeAll;function a(M,C){return s([M],C)}function s(M,C){M=$O(M);var x=M.filter(function(w){return!(cF(w,e)in C.entities)});x.length!==0&&b(x,C)}function l(M,C){return c([M],C)}function c(M,C){M=$O(M),M.length!==0&&b(M,C)}function u(M,C){M=$O(M),C.entities={},C.ids=[],s(M,C)}function d(M,C){return p([M],C)}function p(M,C){for(var x=!1,w=0,S=M;w<S.length;w++){var A=S[w],z=C.entities[A.id];if(z){x=!0,Object.assign(z,A.changes);var O=e(z);A.id!==O&&(delete C.entities[A.id],C.entities[O]=z)}}x&&y(C)}function h(M,C){return g([M],C)}function g(M,C){var x=M0t(M,e,C),w=x[0],S=x[1];p(S,C),s(w,C)}function m(M,C){if(M.length!==C.length)return!1;for(var x=0;x<M.length&&x<C.length;x++)if(M[x]!==C[x])return!1;return!0}function b(M,C){M.forEach(function(x){C.entities[e(x)]=x}),y(C)}function y(M){var C=Object.values(M.entities);C.sort(t);var x=C.map(e),w=M.ids;m(w,x)||(M.ids=x)}return{removeOne:r,removeMany:i,removeAll:o,addOne:Mc(a),updateOne:Mc(d),upsertOne:Mc(h),setOne:Mc(l),setMany:Mc(c),setAll:Mc(u),addMany:Mc(s),updateMany:Mc(p),upsertMany:Mc(g)}}function M4n(e){e===void 0&&(e={});var t=op({sortComparer:!1,selectId:function(s){return s.id}},e),n=t.selectId,r=t.sortComparer,i=m4n(),o=v4n(),a=r?y4n(n,r):C0t(n);return op(op(op({selectId:n,sortComparer:r},i),o),a)}var C4n="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wxe=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=C4n[Math.random()*64|0];return t},x4n=["name","message","stack","code"],poe=(function(){function e(t,n){this.payload=t,this.meta=n}return e})(),l4e=(function(){function e(t,n){this.payload=t,this.meta=n}return e})(),x0t=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=x4n;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},w4n=(function(){function e(t,n,r){var i=hb(t+"/fulfilled",function(c,u,d,p){return{payload:c,meta:doe(op({},p||{}),{arg:d,requestId:u,requestStatus:"fulfilled"})}}),o=hb(t+"/pending",function(c,u,d){return{payload:void 0,meta:doe(op({},d||{}),{arg:u,requestId:c,requestStatus:"pending"})}}),a=hb(t+"/rejected",function(c,u,d,p,h){return{payload:p,error:(r&&r.serializeError||x0t)(c||"Rejected"),meta:doe(op({},h||{}),{arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"})}}),s=typeof AbortController<"u"?AbortController:(function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c})();function l(c){return function(u,d,p){var h=r?.idGenerator?r.idGenerator(c):Wxe(),g=new s,m;function b(M){m=M,g.abort()}var y=(function(){return pB(this,null,function(){var M,C,x,w,S,A,z;return dB(this,function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),w=(M=r?.condition)==null?void 0:M.call(r,c,{getState:d,extra:p}),S4n(w)?[4,w]:[3,2];case 1:w=O.sent(),O.label=2;case 2:if(w===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=new Promise(function(T,R){return g.signal.addEventListener("abort",function(){return R({name:"AbortError",message:m||"Aborted"})})}),u(o(h,c,(C=r?.getPendingMeta)==null?void 0:C.call(r,{requestId:h,arg:c},{getState:d,extra:p}))),[4,Promise.race([S,Promise.resolve(n(c,{dispatch:u,getState:d,extra:p,requestId:h,signal:g.signal,abort:b,rejectWithValue:function(T,R){return new poe(T,R)},fulfillWithValue:function(T,R){return new l4e(T,R)}})).then(function(T){if(T instanceof poe)throw T;return T instanceof l4e?i(T.payload,h,c,T.meta):i(T,h,c)})])];case 3:return x=O.sent(),[3,5];case 4:return A=O.sent(),x=A instanceof poe?a(null,h,c,A.payload,A.meta):a(A,h,c),[3,5];case 5:return z=r&&!r.dispatchConditionRejection&&a.match(x)&&x.meta.condition,z||u(x),[2,x]}})})})();return Object.assign(y,{abort:b,requestId:h,arg:c,unwrap:function(){return y.then(w0t)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function w0t(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function S4n(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var S0t=function(e,t){return u0t(e)?e.match(t):e(t)};function hB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.some(function(r){return S0t(r,n)})}}function vge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.every(function(r){return S0t(r,n)})}}function AZ(e,t){if(!e||!e.meta)return!1;var n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function fB(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function A0t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return AZ(n,["pending"])}:fB(e)?function(n){var r=e.map(function(o){return o.pending}),i=hB.apply(void 0,r);return i(n)}:A0t()(e[0])}function L9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return AZ(n,["rejected"])}:fB(e)?function(n){var r=e.map(function(o){return o.rejected}),i=hB.apply(void 0,r);return i(n)}:L9()(e[0])}function O0t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(r){return r&&r.meta&&r.meta.rejectedWithValue};return e.length===0?function(r){var i=vge(L9.apply(void 0,e),n);return i(r)}:fB(e)?function(r){var i=vge(L9.apply(void 0,e),n);return i(r)}:O0t()(e[0])}function z0t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return AZ(n,["fulfilled"])}:fB(e)?function(n){var r=e.map(function(o){return o.fulfilled}),i=hB.apply(void 0,r);return i(n)}:z0t()(e[0])}function T0t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return AZ(n,["pending","fulfilled","rejected"])}:fB(e)?function(n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i];r.push(a.pending,a.rejected,a.fulfilled)}var s=hB.apply(void 0,r);return s(n)}:T0t()(e[0])}var qxe=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},bge=function(){},E0t=function(e,t){return t===void 0&&(t=bge),e.catch(t),e},R0t=function(e,t){return e.addEventListener("abort",t,{once:!0}),function(){return e.removeEventListener("abort",t)}},wI=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},A4n="task",I0t="listener",P0t="completed",Bxe="cancelled",O4n="task-"+Bxe,z4n="task-"+P0t,D0t=I0t+"-"+Bxe,T4n=I0t+"-"+P0t,gB=(function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=A4n+" "+Bxe+" (reason: "+t+")"}return e})(),SI=function(e){if(e.aborted)throw new gB(e.reason)};function k0t(e,t){var n=bge;return new Promise(function(r,i){var o=function(){return i(new gB(e.reason))};if(e.aborted){o();return}n=R0t(e,o),t.finally(function(){return n()}).then(r,i)}).finally(function(){n=bge})}var E4n=function(e,t){return pB(void 0,null,function(){var n,r;return dB(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return n=i.sent(),[2,{status:"ok",value:n}];case 3:return r=i.sent(),[2,{status:r instanceof gB?"cancelled":"rejected",error:r}];case 4:return t?.(),[7];case 5:return[2]}})})},_9=function(e){return function(t){return E0t(k0t(e,t).then(function(n){return SI(e),n}))}},L0t=function(e){var t=_9(e);return function(n){return t(new Promise(function(r){return setTimeout(r,n)}))}},R4n=Object.assign,c4e={},mB="listenerMiddleware",I4n=function(e,t){var n=function(r){return R0t(e,function(){return wI(r,e.reason)})};return function(r,i){qxe(r,"taskExecutor");var o=new AbortController;n(o);var a=E4n(function(){return pB(void 0,null,function(){var s;return dB(this,function(l){switch(l.label){case 0:return SI(e),SI(o.signal),[4,r({pause:_9(o.signal),delay:L0t(o.signal),signal:o.signal})];case 1:return s=l.sent(),SI(o.signal),[2,s]}})})},function(){return wI(o,z4n)});return i?.autoJoin&&t.push(a),{result:_9(e)(a),cancel:function(){wI(o,O4n)}}}},P4n=function(e,t){var n=function(r,i){return pB(void 0,null,function(){var o,a,s,l;return dB(this,function(c){switch(c.label){case 0:SI(t),o=function(){},a=new Promise(function(u,d){var p=e({predicate:r,effect:function(h,g){g.unsubscribe(),u([h,g.getState(),g.getOriginalState()])}});o=function(){p(),d()}}),s=[a],i!=null&&s.push(new Promise(function(u){return setTimeout(u,i,null)})),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,k0t(t,Promise.race(s))];case 2:return l=c.sent(),SI(t),[2,l];case 3:return o(),[7];case 4:return[2]}})})};return function(r,i){return E0t(n(r,i))}},_0t=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,i=e.predicate,o=e.effect;if(t)i=hb(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return qxe(o,"options.listener"),{predicate:i,type:t,effect:o}},D4n=function(e){var t=_0t(e),n=t.type,r=t.predicate,i=t.effect,o=Wxe(),a={id:o,effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return a},yge=function(e){e.pending.forEach(function(t){wI(t,D0t)})},k4n=function(e){return function(){e.forEach(yge),e.clear()}},u4e=function(e,t,n){try{e(t,n)}catch(r){setTimeout(function(){throw r},0)}},N0t=hb(mB+"/add"),F0t=hb(mB+"/removeAll"),W0t=hb(mB+"/remove"),L4n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,tw([mB+"/error"],e))};function _4n(e){var t=this;e===void 0&&(e={});var n=new Map,r=e.extra,i=e.onError,o=i===void 0?L4n:i;qxe(o,"onError");var a=function(h){return h.unsubscribe=function(){return n.delete(h.id)},n.set(h.id,h),function(g){h.unsubscribe(),g?.cancelActive&&yge(h)}},s=function(h){for(var g=0,m=Array.from(n.values());g<m.length;g++){var b=m[g];if(h(b))return b}},l=function(h){var g=s(function(m){return m.effect===h.effect});return g||(g=D4n(h)),a(g)},c=function(h){var g=_0t(h),m=g.type,b=g.effect,y=g.predicate,M=s(function(C){var x=typeof m=="string"?C.type===m:C.predicate===y;return x&&C.effect===b});return M&&(M.unsubscribe(),h.cancelActive&&yge(M)),!!M},u=function(h,g,m,b){return pB(t,null,function(){var y,M,C,x;return dB(this,function(w){switch(w.label){case 0:y=new AbortController,M=P4n(l,y.signal),C=[],w.label=1;case 1:return w.trys.push([1,3,4,6]),h.pending.add(y),[4,Promise.resolve(h.effect(g,R4n({},m,{getOriginalState:b,condition:function(S,A){return M(S,A).then(Boolean)},take:M,delay:L0t(y.signal),pause:_9(y.signal),extra:r,signal:y.signal,fork:I4n(y.signal,C),unsubscribe:h.unsubscribe,subscribe:function(){n.set(h.id,h)},cancelActiveListeners:function(){h.pending.forEach(function(S,A,z){S!==y&&(wI(S,D0t),z.delete(S))})}})))];case 2:return w.sent(),[3,6];case 3:return x=w.sent(),x instanceof gB||u4e(o,x,{raisedBy:"effect"}),[3,6];case 4:return[4,Promise.allSettled(C)];case 5:return w.sent(),wI(y,T4n),h.pending.delete(y),[7];case 6:return[2]}})})},d=k4n(n),p=function(h){return function(g){return function(m){if(!Fxe(m))return g(m);if(N0t.match(m))return l(m.payload);if(F0t.match(m)){d();return}if(W0t.match(m))return c(m.payload);var b=h.getState(),y=function(){if(b===c4e)throw new Error(mB+": getOriginalState can only be called synchronously");return b},M;try{if(M=g(m),n.size>0)for(var C=h.getState(),x=Array.from(n.values()),w=0,S=x;w<S.length;w++){var A=S[w],z=!1;try{z=A.predicate(m,C,b)}catch(O){z=!1,u4e(o,O,{raisedBy:"predicate"})}z&&u(A,m,h,y)}}finally{b=c4e}return M}}};return{middleware:p,startListening:l,stopListening:c,clearListeners:d}}var jxe="RTK_autoBatch",N4n=function(){return function(e){var t;return{payload:e,meta:(t={},t[jxe]=!0,t)}}},d4e,F4n=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(d4e||(d4e=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},q0t=function(e){return function(t){setTimeout(t,e)}},W4n=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:q0t(10),q4n=function(e){return e===void 0&&(e={type:"raf"}),function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(void 0,n),o=!0,a=!1,s=!1,l=new Set,c=e.type==="tick"?F4n:e.type==="raf"?W4n:e.type==="callback"?e.queueNotification:q0t(e.timeout),u=function(){s=!1,a&&(a=!1,l.forEach(function(d){return d()}))};return Object.assign({},i,{subscribe:function(d){var p=function(){return o&&d()},h=i.subscribe(p);return l.add(d),function(){h(),l.delete(d)}},dispatch:function(d){var p;try{return o=!((p=d?.meta)!=null&&p[jxe]),a=!o,a&&(s||(s=!0,c(u))),i.dispatch(d)}finally{o=!0}}})}}};WLn();const B4n=Object.freeze(Object.defineProperty({__proto__:null,EnhancerArray:h0t,MiddlewareArray:p0t,SHOULD_AUTOBATCH:jxe,TaskAbortError:gB,__DO_NOT_USE__ActionTypes:GW,addListener:N0t,applyMiddleware:Fdt,autoBatchEnhancer:q4n,bindActionCreators:zDn,clearAllListeners:F0t,combineReducers:Ndt,compose:$W,configureStore:p4n,createAction:hb,createActionCreatorInvariantMiddleware:a4n,createAsyncThunk:w4n,createDraftSafeSelector:Z2,createEntityAdapter:M4n,createImmutableStateInvariantMiddleware:l4n,createListenerMiddleware:_4n,createNextState:wZ,createReducer:y0t,createSelector:s0t,createSerializableStateInvariantMiddleware:c4n,createSlice:ki,createStore:uB,current:_xe,findNonSerializableValue:g0t,freeze:xZ,getDefaultMiddleware:v0t,getType:o4n,isAction:Fxe,isActionCreator:r4n,isAllOf:vge,isAnyOf:hB,isAsyncThunkAction:T0t,isDraft:Nf,isFluxStandardAction:d0t,isFulfilled:z0t,isImmutableDefault:s4n,isPending:A0t,isPlain:f0t,isPlainObject:SZ,isRejected:L9,isRejectedWithValue:O0t,legacy_createStore:ADn,miniSerializeError:x0t,nanoid:Wxe,original:kLn,prepareAutoBatched:N4n,removeListener:W0t,unwrapResult:w0t},Symbol.toStringTag,{value:"Module"})),j4n=hK(B4n);var p4e;function H4n(){if(p4e)return GS;p4e=1,Object.defineProperty(GS,"__esModule",{value:!0}),GS.prepareSliceOptions=GS.useComplexState=void 0;const e=Wr(),t=j4n,n=i=>{const o=t.createSlice({name:"__name",...i}),[a,s]=e.useReducer(o.reducer,i.initialState);return Object.entries(o.actions).forEach(([l,c])=>{o.actions[l]=(...u)=>{s(c(...u))}}),[a,o.actions,s]};GS.useComplexState=n;const r=i=>({name:"__name",...i});return GS.prepareSliceOptions=r,GS}var Fi=H4n(),k4={},h4e;function V4n(){if(h4e)return k4;h4e=1;var e=ri(),t=ii();Object.defineProperty(k4,"__esModule",{value:!0}),k4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}),"FormatListBulletedSharp");return k4.default=i,k4}var G4n=V4n();const Kf=qn(G4n);function $4n(e){return Bn("MuiTimeClock",e)}Ln("MuiTimeClock",["root","arrowSwitcher"]);const SP=220,ky=36,YW={x:SP/2,y:SP/2},B0t={x:YW.x,y:0},U4n=B0t.x-YW.x,X4n=B0t.y-YW.y,Y4n=e=>e*(180/Math.PI),j0t=(e,t,n)=>{const r=t-YW.x,i=n-YW.y,o=Math.atan2(U4n,X4n)-Math.atan2(r,i);let a=Y4n(o);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+i**2,c=Math.sqrt(l);return{value:s,distance:c}},K4n=(e,t,n=1)=>{const r=n*6;let{value:i}=j0t(r,e,t);return i=i*n%60,i},Q4n=(e,t,n)=>{const{value:r,distance:i}=j0t(30,e,t);let o=r||12;return n?o%=12:i<SP/2-ky&&(o+=12,o%=24),o};function Z4n(e){return Bn("MuiClockPointer",e)}Ln("MuiClockPointer",["root","thumb"]);const J4n=["className","hasSelected","isInner","type","viewValue"],e_n=e=>{const{classes:t}=e;return Yt({root:["root"],thumb:["thumb"]},Z4n,t)},t_n=rt("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),n_n=rt("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${ky/2}px)`,border:`${(ky-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function r_n(e){const t=Po({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Lt(t,J4n),s=v.useRef(i);v.useEffect(()=>{s.current=i},[i]);const l=Y({},t,{shouldAnimate:s.current!==i}),c=e_n(l),u=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*SP),transform:`rotateZ(${p}deg)`}};return f.jsx(t_n,Y({style:u(),className:za(c.root,n),ownerState:l},a,{children:f.jsx(n_n,{ownerState:l,className:c.thumb})}))}function i_n(e){return Bn("MuiClock",e)}Ln("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const o_n=e=>{const{classes:t,meridiemMode:n}=e;return Yt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",n==="am"&&"selected"],pmButton:["pmButton",n==="pm"&&"selected"],meridiemText:["meridiemText"]},i_n,t)},a_n=rt("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),s_n=rt("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),l_n=rt("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),c_n=rt("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),u_n=rt("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),H0t=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:ky,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),d_n=rt(Zp,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>Y({},H0t(e,"am"),{position:"absolute",left:8})),p_n=rt(Zp,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>Y({},H0t(e,"pm"),{position:"absolute",right:8})),f4e=rt(i1,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function h_n(e){const t=Po({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:p,type:h,viewValue:g,viewRange:[m,b],disabled:y=!1,readOnly:M,className:C}=t,x=t,w=ua(),S=Rd(),A=v.useRef(!1),z=o_n(x),O=l(g,h),T=!n&&h==="hours"&&(g<1||g>12),R=(X,Q)=>{y||M||l(X,h)||d(X,Q)},P=(X,Q)=>{let{offsetX:re,offsetY:ee}=X;if(re===void 0){const pe=X.target.getBoundingClientRect();re=X.changedTouches[0].clientX-pe.left,ee=X.changedTouches[0].clientY-pe.top}const se=h==="seconds"||h==="minutes"?K4n(re,ee,u):Q4n(re,ee,!!n);R(se,Q)},F=X=>{A.current=!0,P(X,"shallow")},N=X=>{A.current&&(P(X,"finish"),A.current=!1),X.preventDefault()},L=X=>{X.buttons>0&&P(X.nativeEvent,"shallow")},W=X=>{A.current&&(A.current=!1),P(X.nativeEvent,"finish")},j=v.useMemo(()=>h==="hours"?!0:g%5===0,[h,g]),V=h==="minutes"?u:1,G=v.useRef(null);Ro(()=>{i&&G.current.focus()},[i]);const q=X=>Math.max(m,Math.min(b,X)),$=X=>(X+(b+1))%(b+1),U=X=>{if(!A.current)switch(X.key){case"Home":R(m,"partial"),X.preventDefault();break;case"End":R(b,"partial"),X.preventDefault();break;case"ArrowUp":R($(g+V),"partial"),X.preventDefault();break;case"ArrowDown":R($(g-V),"partial"),X.preventDefault();break;case"PageUp":R(q(g+5),"partial"),X.preventDefault();break;case"PageDown":R(q(g-5),"partial"),X.preventDefault();break;case"Enter":case" ":R(g,"finish"),X.preventDefault();break}};return f.jsxs(a_n,{className:za(z.root,C),children:[f.jsxs(s_n,{className:z.clock,children:[f.jsx(c_n,{onTouchMove:F,onTouchStart:F,onTouchEnd:N,onMouseUp:W,onMouseMove:L,ownerState:{disabled:y},className:z.squareMask}),!O&&f.jsxs(v.Fragment,{children:[f.jsx(u_n,{className:z.pin}),a!=null&&f.jsx(r_n,{type:h,viewValue:g,isInner:T,hasSelected:j})]}),f.jsx(l_n,{"aria-activedescendant":p,"aria-label":S.clockLabelText(h,a,w,a==null?null:w.format(a,"fullTime")),ref:G,role:"listbox",onKeyDown:U,tabIndex:0,className:z.wrapper,children:o})]}),n&&r&&f.jsxs(v.Fragment,{children:[f.jsx(d_n,{onClick:M?void 0:()=>s("am"),disabled:y||c===null,ownerState:x,className:z.amButton,title:by(w,"am"),children:f.jsx(f4e,{variant:"caption",className:z.meridiemText,children:by(w,"am")})}),f.jsx(p_n,{disabled:y||c===null,onClick:M?void 0:()=>s("pm"),ownerState:x,className:z.pmButton,title:by(w,"pm"),children:f.jsx(f4e,{variant:"caption",className:z.meridiemText,children:by(w,"pm")})})]})]})}function f_n(e){return Bn("MuiClockNumber",e)}const E8=Ln("MuiClockNumber",["root","selected","disabled"]),g_n=["className","disabled","index","inner","label","selected"],m_n=e=>{const{classes:t,selected:n,disabled:r}=e;return Yt({root:["root",n&&"selected",r&&"disabled"]},f_n,t)},v_n=rt("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${E8.disabled}`]:t.disabled},{[`&.${E8.selected}`]:t.selected}]})(({theme:e})=>({height:ky,width:ky,position:"absolute",left:`calc((100% - ${ky}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${E8.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${E8.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:Y({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function V0t(e){const t=Po({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Lt(t,g_n),c=t,u=m_n(c),d=i%12/12*Math.PI*2-Math.PI/2,p=(SP-ky-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),g=Math.round(Math.sin(d)*p);return f.jsx(v_n,Y({className:za(u.root,n),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${g+(SP-ky)/2}px`},ownerState:c},l,{children:a}))}const b_n=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=c;d+=1){let p=d.toString();d===0&&(p="00");const h=!e&&(d===0||d>12);p=o.formatNumber(p);const g=u(d);s.push(f.jsx(V0t,{id:g?i:void 0,index:d,inner:h,selected:g,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},g4e=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,s],l)=>{const c=a===t;return f.jsx(V0t,{label:s,id:c?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":r(s)},a)})},Hxe=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=v.useMemo(()=>Tu.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Gg.day,timezone:i,getTodayDate:()=>dCe(n,i,"date")}),[]);return e??o},y_n=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],M_n=e=>{const{classes:t}=e;return Yt({root:["root"],arrowSwitcher:["arrowSwitcher"]},$4n,t)},C_n=rt(UQ,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),x_n=rt(oct,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),w_n=["hours","minutes"],S_n=v.forwardRef(function(t,n){const r=ua(),i=Po({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:l,slotProps:c,value:u,defaultValue:d,referenceDate:p,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:g,minTime:m,disableFuture:b,disablePast:y,minutesStep:M=1,shouldDisableTime:C,showViewSwitcher:x,onChange:w,view:S,views:A=w_n,openTo:z,onViewChange:O,focusedView:T,onFocusedViewChange:R,className:P,disabled:F,readOnly:N,timezone:L}=i,W=Lt(i,y_n),{value:j,handleValueChange:V,timezone:G}=PD({name:"TimeClock",timezone:L,value:u,defaultValue:d,referenceDate:p,onChange:w,valueManager:Tu}),q=Hxe({value:j,referenceDate:p,utils:r,props:i,timezone:G}),$=Rd(),U=R3(G),{view:X,setView:Q,previousView:re,nextView:ee,setValueAndGoToNextView:se}=J6({view:S,views:A,openTo:z,onViewChange:O,onChange:V,focusedView:T,onFocusedViewChange:R}),{meridiemMode:pe,handleMeridiemChange:te}=PCe(q,o,se),ce=v.useCallback((he,be)=>{const me=Y6(h,r),Me=be==="hours"||be==="minutes"&&A.includes("seconds"),Oe=({start:ie,end:ue})=>!(m&&me(m,ue)||g&&me(ie,g)||b&&me(ie,U)||y&&me(U,Me?ue:ie)),de=(ie,ue=1)=>{if(ie%ue!==0)return!1;if(C)switch(be){case"hours":return!C(r.setHours(q,ie),"hours");case"minutes":return!C(r.setMinutes(q,ie),"minutes");case"seconds":return!C(r.setSeconds(q,ie),"seconds");default:return!1}return!0};switch(be){case"hours":{const ie=IW(he,pe,o),ue=r.setHours(q,ie);if(r.getHours(ue)!==ie)return!0;const Ae=r.setSeconds(r.setMinutes(ue,0),0),Ce=r.setSeconds(r.setMinutes(ue,59),59);return!Oe({start:Ae,end:Ce})||!de(ie)}case"minutes":{const ie=r.setMinutes(q,he),ue=r.setSeconds(ie,0),Ae=r.setSeconds(ie,59);return!Oe({start:ue,end:Ae})||!de(he,M)}case"seconds":{const ie=r.setSeconds(q,he);return!Oe({start:ie,end:ie})||!de(he)}default:throw new Error("not supported")}},[o,q,h,g,pe,m,M,C,r,b,y,U,A]),oe=Vi(),ae=v.useMemo(()=>{switch(X){case"hours":{const he=(Me,Oe)=>{const de=IW(Me,pe,o);se(r.setHours(q,de),Oe,"hours")},be=r.getHours(q);let me;return o?be>12?me=[12,23]:me=[0,11]:me=[0,23],{onChange:he,viewValue:be,children:b_n({value:j,utils:r,ampm:o,getClockNumberText:$.hoursClockNumberText,isDisabled:Me=>F||ce(Me,"hours"),selectedId:oe}),viewRange:me}}case"minutes":{const he=r.getMinutes(q);return{viewValue:he,onChange:(me,Me)=>{se(r.setMinutes(q,me),Me,"minutes")},children:g4e({utils:r,value:he,getClockNumberText:$.minutesClockNumberText,isDisabled:me=>F||ce(me,"minutes"),selectedId:oe}),viewRange:[0,59]}}case"seconds":{const he=r.getSeconds(q);return{viewValue:he,onChange:(me,Me)=>{se(r.setSeconds(q,me),Me,"seconds")},children:g4e({utils:r,value:he,getClockNumberText:$.secondsClockNumberText,isDisabled:me=>F||ce(me,"seconds"),selectedId:oe}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[X,r,j,o,$.hoursClockNumberText,$.minutesClockNumberText,$.secondsClockNumberText,pe,se,q,ce,oe,F]),ne=i,le=M_n(ne);return f.jsxs(C_n,Y({ref:n,className:za(le.root,P),ownerState:ne},W,{children:[f.jsx(h_n,Y({autoFocus:s??!!T,ampmInClock:a&&A.includes("hours"),value:j,type:X,ampm:o,minutesStep:M,isTimeDisabled:ce,meridiemMode:pe,handleMeridiemChange:te,selectedId:oe,disabled:F,readOnly:N},ae)),x&&f.jsx(x_n,{className:le.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>Q(re),isPreviousDisabled:!re,previousLabel:$.openPreviousView,onGoToNext:()=>Q(ee),isNextDisabled:!ee,nextLabel:$.openNextView,ownerState:ne})]}))});function A_n(e){return Bn("MuiDivider",e)}const m4e=Ln("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),O_n=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Yt({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},A_n,r)},z_n=rt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(kr(({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%"}}}]}))),T_n=rt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(kr(({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)`}}]}))),KW=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,orientation:s="horizontal",component:l=o||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth",...g}=r,m={...r,absolute:i,component:l,flexItem:c,light:u,orientation:s,role:d,textAlign:p,variant:h},b=O_n(m);return f.jsx(z_n,{as:l,className:nr(b.root,a),role:d,ref:n,ownerState:m,"aria-orientation":d==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...g,children:o?f.jsx(T_n,{className:b.wrapper,ownerState:m,children:o}):null})});KW&&(KW.muiSkipListHighlight=!0);function E_n(e){return Bn("MuiListItemIcon",e)}const v4e=Ln("MuiListItemIcon",["root","alignItemsFlexStart"]),R_n=e=>{const{alignItems:t,classes:n}=e;return Yt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},E_n,n)},I_n=rt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(kr(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),b4e=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,a=v.useContext(Iy),s={...r,alignItems:a.alignItems},l=R_n(s);return f.jsx(I_n,{className:nr(l.root,i),ownerState:s,ref:n,...o})});function P_n(e){return Bn("MuiListItemText",e)}const dO=Ln("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),D_n=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Yt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},P_n,t)},k_n=rt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dO.primary}`]:t.primary},{[`& .${dO.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${IDe.root}:where(& .${dO.primary})`]:{display:"block"},[`.${IDe.root}:where(& .${dO.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),L_n=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:p={},slotProps:h={},...g}=r,{dense:m}=v.useContext(Iy);let b=l??i,y=u;const M={...r,disableTypography:a,inset:s,primary:!!b,secondary:!!y,dense:m},C=D_n(M),x={slots:p,slotProps:{primary:c,secondary:d,...h}},[w,S]=ni("root",{className:nr(C.root,o),elementType:k_n,externalForwardedProps:{...x,...g},ownerState:M,ref:n}),[A,z]=ni("primary",{className:C.primary,elementType:i1,externalForwardedProps:x,ownerState:M}),[O,T]=ni("secondary",{className:C.secondary,elementType:i1,externalForwardedProps:x,ownerState:M});return b!=null&&b.type!==i1&&!a&&(b=f.jsx(A,{variant:m?"body2":"body1",component:z?.variant?void 0:"span",...z,children:b})),y!=null&&y.type!==i1&&!a&&(y=f.jsx(O,{variant:"body2",color:"textSecondary",...T,children:y})),f.jsxs(w,{...S,children:[b,y]})});function __n(e){return Bn("MuiMenuItem",e)}const L4=Ln("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),N_n=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},F_n=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=Yt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},__n,a);return{...a,...l}},W_n=rt(Pb,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:N_n})(kr(({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"}},[`&.${L4.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${L4.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${L4.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)}},[`&.${L4.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${L4.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${m4e.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${m4e.inset}`]:{marginLeft:52},[`& .${dO.root}`]:{marginTop:0,marginBottom:0},[`& .${dO.inset}`]:{paddingLeft:36},[`& .${v4e.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,[`& .${v4e.root} svg`]:{fontSize:"1.25rem"}}}]}))),Zb=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...h}=r,g=v.useContext(Iy),m=v.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),b=v.useRef(null);Ro(()=>{i&&b.current&&b.current.focus()},[i]);const y={...r,dense:m.dense,divider:s,disableGutters:l},M=F_n(r),C=Pi(b,n);let x;return r.disabled||(x=d!==void 0?d:-1),f.jsx(Iy.Provider,{value:m,children:f.jsx(W_n,{ref:C,role:u,tabIndex:x,component:o,focusVisibleClassName:nr(M.focusVisible,c),className:nr(M.root,p),...h,ownerState:y,classes:M})})});function q_n(e){return Bn("MuiDigitalClock",e)}const B_n=Ln("MuiDigitalClock",["root","list","item"]),j_n=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],H_n=e=>{const{classes:t}=e;return Yt({root:["root"],list:["list"],item:["item"]},q_n,t)},V_n=rt(UQ,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:Alt,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),G_n=rt(GQ,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),$_n=rt(Zb,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sd(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Sd(e.palette.primary.main,e.palette.action.focusOpacity)}})),U_n=v.forwardRef(function(t,n){const r=ua(),i=v.useRef(null),o=Pi(n,i),a=v.useRef(null),s=Po({props:t,name:"MuiDigitalClock"}),{ampm:l=r.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:d,slotProps:p,value:h,defaultValue:g,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:y,minTime:M,disableFuture:C,disablePast:x,minutesStep:w=1,shouldDisableTime:S,onChange:A,view:z,openTo:O,onViewChange:T,focusedView:R,onFocusedViewChange:P,className:F,disabled:N,readOnly:L,views:W=["hours"],skipDisabled:j=!1,timezone:V}=s,G=Lt(s,j_n),{value:q,handleValueChange:$,timezone:U}=PD({name:"DigitalClock",timezone:V,value:h,defaultValue:g,referenceDate:m,onChange:A,valueManager:Tu}),X=Rd(),Q=R3(U),re=v.useMemo(()=>Y({},s,{alreadyRendered:!!i.current}),[s]),ee=H_n(re),se=d?.digitalClockItem??$_n,pe=Vo({elementType:se,externalSlotProps:p?.digitalClockItem,ownerState:{},className:ee.item}),te=Hxe({value:q,referenceDate:m,utils:r,props:s,timezone:U}),ce=en(me=>$(me,"finish","hours")),{setValueAndGoToNextView:oe}=J6({view:z,views:W,openTo:O,onViewChange:T,onChange:ce,focusedView:R,onFocusedViewChange:P}),ae=en(me=>{oe(me,"finish")});v.useEffect(()=>{if(i.current===null)return;const me=i.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!me)return;const Me=me.offsetTop;(u||R)&&me.focus(),i.current.scrollTop=Me-4});const ne=v.useCallback(me=>{const Me=Y6(b,r),Oe=()=>!(M&&Me(M,me)||y&&Me(me,y)||C&&Me(me,Q)||x&&Me(Q,me)),de=()=>r.getMinutes(me)%w!==0?!1:S?!S(me,"hours"):!0;return!Oe()||!de()},[b,r,M,y,C,Q,x,w,S]),le=v.useMemo(()=>{const me=[];let Oe=r.startOfDay(te);for(;r.isSameDay(te,Oe);)me.push(Oe),Oe=r.addMinutes(Oe,c);return me},[te,c,r]),he=le.findIndex(me=>r.isEqual(me,te)),be=me=>{switch(me.key){case"PageUp":{const Me=f9(a.current)-5,Oe=a.current.children,de=Math.max(0,Me),ie=Oe[de];ie&&ie.focus(),me.preventDefault();break}case"PageDown":{const Me=f9(a.current)+5,Oe=a.current.children,de=Math.min(Oe.length-1,Me),ie=Oe[de];ie&&ie.focus(),me.preventDefault();break}}};return f.jsx(V_n,Y({ref:o,className:za(ee.root,F),ownerState:re},G,{children:f.jsx(G_n,{ref:a,role:"listbox","aria-label":X.timePickerToolbarTitle,className:ee.list,onKeyDown:be,children:le.map((me,Me)=>{if(j&&ne(me))return null;const Oe=r.isEqual(me,q),de=r.format(me,l?"fullTime12h":"fullTime24h"),ie=he===Me||he===-1&&Me===0?0:-1;return f.jsx(se,Y({onClick:()=>!L&&ae(me),selected:Oe,disabled:N||ne(me),disableRipple:L,role:"option","aria-disabled":L,"aria-selected":Oe,tabIndex:ie},pe,{children:de}),`${me.valueOf()}-${de}`)})})}))});function X_n(e){return Bn("MuiMultiSectionDigitalClock",e)}const y4e=Ln("MuiMultiSectionDigitalClock",["root"]);function Y_n(e){return Bn("MuiMultiSectionDigitalClockSection",e)}const K_n=Ln("MuiMultiSectionDigitalClockSection",["root","item"]),Q_n=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Z_n=e=>{const{classes:t}=e;return Yt({root:["root"],item:["item"]},Y_n,t)},J_n=rt(GQ,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:Alt,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),e5n=rt(Zb,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:rN,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sd(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Sd(e.palette.primary.main,e.palette.action.focusOpacity)}})),t5n=v.forwardRef(function(t,n){const r=v.useRef(null),i=Pi(n,r),o=v.useRef(null),a=Po({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,disabled:u,readOnly:d,items:p,active:h,slots:g,slotProps:m,skipDisabled:b}=a,y=Lt(a,Q_n),M=v.useMemo(()=>Y({},a,{alreadyRendered:!!r.current}),[a]),C=Z_n(M),x=g?.digitalClockSectionItem??e5n;v.useEffect(()=>{if(r.current===null)return;const A=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(h&&s&&A&&A.focus(),!A||o.current===A)return;o.current=A;const z=A.offsetTop;r.current.scrollTop=z-4});const w=p.findIndex(A=>A.isFocused(A.value)),S=A=>{switch(A.key){case"PageUp":{const z=f9(r.current)-5,O=r.current.children,T=Math.max(0,z),R=O[T];R&&R.focus(),A.preventDefault();break}case"PageDown":{const z=f9(r.current)+5,O=r.current.children,T=Math.min(O.length-1,z),R=O[T];R&&R.focus(),A.preventDefault();break}}};return f.jsx(J_n,Y({ref:i,className:za(C.root,c),ownerState:M,autoFocusItem:s&&h,role:"listbox",onKeyDown:S},y,{children:p.map((A,z)=>{const O=A.isDisabled?.(A.value),T=u||O;if(b&&T)return null;const R=A.isSelected(A.value),P=w===z||w===-1&&z===0?0:-1;return f.jsx(x,Y({onClick:()=>!d&&l(A.value),selected:R,disabled:T,disableRipple:d,role:"option","aria-disabled":d||T||void 0,"aria-label":A.ariaLabel,"aria-selected":R,tabIndex:P,className:C.item},m?.digitalClockSectionItem,{children:A.label}),A.label)})}))}),n5n=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,c=[],u=(h,g)=>{const m=g??l;return m===null?!1:r?h===12?m===12||m===0:m===h||m-12===h:m===h},d=h=>u(h,n.getHours(s)),p=r?11:23;for(let h=0;h<=p;h+=a){let g=n.format(n.setHours(e,h),r?"hours12h":"hours24h");const m=o(parseInt(g,10).toString());g=n.formatNumber(g),c.push({value:h,label:g,isSelected:u,isDisabled:i,isFocused:d,ariaLabel:m})}return c},M4e=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=c=>e===null?!1:a&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/r)},(c,u)=>{const d=r*u;return{value:d,label:t.formatNumber(i(d)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:o(d.toString())}})]},r5n=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],i5n=e=>{const{classes:t}=e;return Yt({root:["root"]},X_n,t)},o5n=rt(UQ,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),a5n=v.forwardRef(function(t,n){const r=ua(),i=ts(),o=Po({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:p,referenceDate:h,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:m,minTime:b,disableFuture:y,disablePast:M,minutesStep:C=1,shouldDisableTime:x,onChange:w,view:S,views:A=["hours","minutes"],openTo:z,onViewChange:O,focusedView:T,onFocusedViewChange:R,className:P,disabled:F,readOnly:N,skipDisabled:L=!1,timezone:W}=o,j=Lt(o,r5n),{value:V,handleValueChange:G,timezone:q}=PD({name:"MultiSectionDigitalClock",timezone:W,value:d,defaultValue:p,referenceDate:h,onChange:w,valueManager:Tu}),$=Rd(),U=R3(q),X=v.useMemo(()=>Y({hours:1,minutes:5,seconds:5},s),[s]),Q=Hxe({value:V,referenceDate:h,utils:r,props:o,timezone:q}),re=en((Oe,de,ie)=>G(Oe,de,ie)),ee=v.useMemo(()=>!a||!A.includes("hours")||A.includes("meridiem")?A:[...A,"meridiem"],[a,A]),{view:se,setValueAndGoToNextView:pe,focusedView:te}=J6({view:S,views:ee,openTo:z,onViewChange:O,onChange:re,focusedView:T,onFocusedViewChange:R}),ce=en(Oe=>{pe(Oe,"finish","meridiem")}),{meridiemMode:oe,handleMeridiemChange:ae}=PCe(Q,a,ce,"finish"),ne=v.useCallback((Oe,de)=>{const ie=Y6(g,r),ue=de==="hours"||de==="minutes"&&ee.includes("seconds"),Ae=({start:Ee,end:Ge})=>!(b&&ie(b,Ge)||m&&ie(Ee,m)||y&&ie(Ee,U)||M&&ie(U,ue?Ge:Ee)),Ce=(Ee,Ge=1)=>{if(Ee%Ge!==0)return!1;if(x)switch(de){case"hours":return!x(r.setHours(Q,Ee),"hours");case"minutes":return!x(r.setMinutes(Q,Ee),"minutes");case"seconds":return!x(r.setSeconds(Q,Ee),"seconds");default:return!1}return!0};switch(de){case"hours":{const Ee=IW(Oe,oe,a),Ge=r.setHours(Q,Ee);if(r.getHours(Ge)!==Ee)return!0;const _e=r.setSeconds(r.setMinutes(Ge,0),0),Ie=r.setSeconds(r.setMinutes(Ge,59),59);return!Ae({start:_e,end:Ie})||!Ce(Ee)}case"minutes":{const Ee=r.setMinutes(Q,Oe),Ge=r.setSeconds(Ee,0),_e=r.setSeconds(Ee,59);return!Ae({start:Ge,end:_e})||!Ce(Oe,C)}case"seconds":{const Ee=r.setSeconds(Q,Oe);return!Ae({start:Ee,end:Ee})||!Ce(Oe)}default:throw new Error("not supported")}},[a,Q,g,m,oe,b,C,x,r,y,M,U,ee]),le=v.useCallback(Oe=>{switch(Oe){case"hours":return{onChange:de=>{const ie=IW(de,oe,a);pe(r.setHours(Q,ie),"finish","hours")},items:n5n({now:U,value:V,ampm:a,utils:r,isDisabled:de=>ne(de,"hours"),timeStep:X.hours,resolveAriaLabel:$.hoursClockNumberText,valueOrReferenceDate:Q})};case"minutes":return{onChange:de=>{pe(r.setMinutes(Q,de),"finish","minutes")},items:M4e({value:r.getMinutes(Q),utils:r,isDisabled:de=>ne(de,"minutes"),resolveLabel:de=>r.format(r.setMinutes(U,de),"minutes"),timeStep:X.minutes,hasValue:!!V,resolveAriaLabel:$.minutesClockNumberText})};case"seconds":return{onChange:de=>{pe(r.setSeconds(Q,de),"finish","seconds")},items:M4e({value:r.getSeconds(Q),utils:r,isDisabled:de=>ne(de,"seconds"),resolveLabel:de=>r.format(r.setSeconds(U,de),"seconds"),timeStep:X.seconds,hasValue:!!V,resolveAriaLabel:$.secondsClockNumberText})};case"meridiem":{const de=by(r,"am"),ie=by(r,"pm");return{onChange:ae,items:[{value:"am",label:de,isSelected:()=>!!V&&oe==="am",isFocused:()=>!!Q&&oe==="am",ariaLabel:de},{value:"pm",label:ie,isSelected:()=>!!V&&oe==="pm",isFocused:()=>!!Q&&oe==="pm",ariaLabel:ie}]}}default:throw new Error(`Unknown view: ${Oe} found.`)}},[U,V,a,r,X.hours,X.minutes,X.seconds,$.hoursClockNumberText,$.minutesClockNumberText,$.secondsClockNumberText,oe,pe,Q,ne,ae]),he=v.useMemo(()=>{if(!i)return ee;const Oe=ee.filter(de=>de!=="meridiem");return Oe.reverse(),ee.includes("meridiem")&&Oe.push("meridiem"),Oe},[i,ee]),be=v.useMemo(()=>ee.reduce((Oe,de)=>Y({},Oe,{[de]:le(de)}),{}),[ee,le]),me=o,Me=i5n(me);return f.jsx(o5n,Y({ref:n,className:za(Me.root,P),ownerState:me,role:"group"},j,{children:he.map(Oe=>f.jsx(t5n,{items:be[Oe].items,onChange:be[Oe].onChange,active:se===Oe,autoFocus:l||te===Oe,disabled:F,readOnly:N,slots:c,slotProps:u,skipDisabled:L,"aria-label":$.selectViewText(Oe)},Oe))}))}),s5n=e=>{const t=oMn(e),{forwardedProps:n,internalProps:r}=Hlt(t,"date-time");return Blt({forwardedProps:n,internalProps:r,valueManager:Tu,fieldValueManager:Xst,validator:DQ,valueType:"date-time"})},l5n=["slots","slotProps","InputProps","inputProps"],G0t=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiDateTimeField"}),{slots:i,slotProps:o,InputProps:a,inputProps:s}=r,l=Lt(r,l5n),c=r,u=i?.textField??(t.enableAccessibleFieldDOMStructure?Qlt:D3),d=Vo({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:n}});d.inputProps=Y({},s,d.inputProps),d.InputProps=Y({},a,d.InputProps);const p=s5n(d),h=Zlt(p),g=jlt(Y({},h,{slots:i,slotProps:o}));return f.jsx(u,Y({},g))});function c5n(e){return Bn("MuiSkeleton",e)}Ln("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const u5n=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e;return Yt({root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]},c5n,t)},Mge=Uf`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`,Cge=Uf`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`,d5n=typeof Mge!="string"?zw`
        animation: ${Mge} 2s ease-in-out 0.5s infinite;
      `:null,p5n=typeof Cge!="string"?zw`
        &::after {
          animation: ${Cge} 2s linear 0.5s infinite;
        }
      `:null,h5n=rt("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(kr(({theme:e})=>{const t=Kfn(e.shape.borderRadius)||"px",n=Qfn(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:d5n||{animation:`${Mge} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
                90deg,
                transparent,
                ${(e.vars||e).palette.action.hover},
                transparent
              )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:p5n||{"&::after":{animation:`${Cge} 2s linear 0.5s infinite`}}}]}})),f5n=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:a="span",height:s,style:l,variant:c="text",width:u,...d}=r,p={...r,animation:i,component:a,variant:c,hasChildren:!!d.children},h=u5n(p);return f.jsx(h5n,{as:a,ref:n,className:nr(h.root,o),ownerState:p,...d,style:{width:u,height:s,...l}})});function g5n(e){return Bn("MuiPickersToolbarText",e)}const xge=Ln("MuiPickersToolbarText",["root","selected"]),m5n=["className","selected","value"],v5n=e=>{const{classes:t,selected:n}=e;return Yt({root:["root",n&&"selected"]},g5n,t)},b5n=rt(i1,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${xge.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${xge.selected}`]:{color:(e.vars||e).palette.text.primary}})),$0t=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Lt(r,m5n),s=v5n(r);return f.jsx(b5n,Y({ref:n,className:za(s.root,i),component:"span"},a,{children:o}))}),y5n=["align","className","selected","typographyClassName","value","variant","width"],M5n=e=>{const{classes:t}=e;return Yt({root:["root"]},Jst,t)},C5n=rt(LR,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),oC=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:c,width:u}=r,d=Lt(r,y5n),p=M5n(r);return f.jsx(C5n,Y({variant:"text",ref:n,className:za(p.root,o)},u?{sx:{width:u}}:{},d,{children:f.jsx($0t,{align:i,className:s,variant:c,value:l,selected:a})}))}),hoe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:b,ampm:y,ampmInClock:M,slots:C,slotProps:x,readOnly:w,disabled:S,sx:A,autoFocus:z,showViewSwitcher:O,disableIgnoringDatePartForTimeValidation:T,timezone:R})=>f.jsx(S_n,{view:e,onViewChange:t,focusedView:n&&vP(n)?n:null,onFocusedViewChange:r,views:i.filter(vP),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:b,ampm:y,ampmInClock:M,slots:C,slotProps:x,readOnly:w,disabled:S,sx:A,autoFocus:z,showViewSwitcher:O,disableIgnoringDatePartForTimeValidation:T,timezone:R}),x5n=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:b,ampm:y,slots:M,slotProps:C,readOnly:x,disabled:w,sx:S,autoFocus:A,disableIgnoringDatePartForTimeValidation:z,timeSteps:O,skipDisabled:T,timezone:R})=>f.jsx(U_n,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(vP),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:b,ampm:y,slots:M,slotProps:C,readOnly:x,disabled:w,sx:S,autoFocus:A,disableIgnoringDatePartForTimeValidation:z,timeStep:O?.minutes,skipDisabled:T,timezone:R}),C4e=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:b,ampm:y,slots:M,slotProps:C,readOnly:x,disabled:w,sx:S,autoFocus:A,disableIgnoringDatePartForTimeValidation:z,timeSteps:O,skipDisabled:T,timezone:R})=>f.jsx(a5n,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(vP),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:b,ampm:y,slots:M,slotProps:C,readOnly:x,disabled:w,sx:S,autoFocus:A,disableIgnoringDatePartForTimeValidation:z,timeSteps:O,skipDisabled:T,timezone:R}),w5n=["views","format"],U0t=(e,t,n)=>{let{views:r,format:i}=t,o=Lt(t,w5n);if(i)return i;const a=[],s=[];if(r.forEach(u=>{vP(u)?s.push(u):mP(u)&&a.push(u)}),s.length===0)return RW(e,Y({views:a},o),!1);if(a.length===0)return ADe(e,Y({views:s},o));const l=ADe(e,Y({views:s},o));return`${RW(e,Y({views:a},o),!1)} ${l}`},S5n=(e,t,n)=>n?t.filter(r=>!nN(r)||r==="hours"):e?[...t,"meridiem"]:t,A5n=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function O5n({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=Y({hours:1,minutes:5,seconds:5},n),a=A5n(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:S5n(t,r,a)}}function z5n(e){return Bn("MuiTab",e)}const Lh=Ln("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),T5n=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${jt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Yt(c,z5n,t)},E5n=rt(Pb,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${jt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Lh.iconWrapper}`]:t.iconWrapper},{[`& .${Lh.icon}`]:t.icon}]}})(kr(({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:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Lh.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Lh.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Lh.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Lh.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Lh.selected}`]:{opacity:1},[`&.${Lh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Lh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Lh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Lh.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)}}]}))),wge=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:h,onFocus:g,selected:m,selectionFollowsFocus:b,textColor:y="inherit",value:M,wrapped:C=!1,...x}=r,w={...r,disabled:o,disableFocusRipple:a,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:y,wrapped:C},S=T5n(w),A=l&&d&&v.isValidElement(l)?v.cloneElement(l,{className:nr(S.icon,l.props.className)}):l,z=T=>{!m&&p&&p(T,M),h&&h(T)},O=T=>{b&&!m&&p&&p(T,M),g&&g(T)};return f.jsxs(E5n,{focusRipple:!a,className:nr(S.root,i),ref:n,role:"tab","aria-selected":m,disabled:o,onClick:z,onFocus:O,ownerState:w,tabIndex:m?0:-1,...x,children:[c==="top"||c==="start"?f.jsxs(v.Fragment,{children:[A,d]}):f.jsxs(v.Fragment,{children:[d,A]}),u]})});function R5n(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function I5n(e,t,n,r={},i=()=>{}){const{ease:o=R5n,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=p=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/a);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const P5n={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function D5n(e){const{onChange:t,...n}=e,r=v.useRef(),i=v.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Ro(()=>{const a=Tw(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Mm(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),v.useEffect(()=>{o(),t(r.current)},[t]),f.jsx("div",{style:P5n,...n,ref:i})}const X0t=Pu(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Y0t=Pu(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function k5n(e){return Bn("MuiTabScrollButton",e)}const L5n=Ln("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_5n=e=>{const{classes:t,orientation:n,disabled:r}=e;return Yt({root:["root",n,r&&"disabled"]},k5n,t)},N5n=rt(Pb,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${L5n.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),F5n=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:a={},direction:s,orientation:l,disabled:c,...u}=r,d=ts(),p={isRtl:d,...r},h=_5n(p),g=o.StartScrollButtonIcon??X0t,m=o.EndScrollButtonIcon??Y0t,b=Vo({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),y=Vo({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return f.jsx(N5n,{component:"div",className:nr(h.root,i),ref:n,role:null,ownerState:p,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:s==="left"?f.jsx(g,{...b}):f.jsx(m,{...y})})});function W5n(e){return Bn("MuiTabs",e)}const C7=Ln("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),x4e=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,w4e=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,R8=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},q5n=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Yt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},W5n,l)},B5n=rt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${C7.scrollButtons}`]:t.scrollButtons},{[`& .${C7.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(kr(({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:{[`& .${C7.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),j5n=rt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.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"}}]}),H5n=rt("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),V5n=rt("span",{name:"MuiTabs",slot:"Indicator"})(kr(({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}}]}))),G5n=rt(D5n)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),S4e={},K0t=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTabs"}),i=Ub(),o=ts(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:m,orientation:b="horizontal",ScrollButtonComponent:y,scrollButtons:M="auto",selectionFollowsFocus:C,slots:x={},slotProps:w={},TabIndicatorProps:S={},TabScrollButtonProps:A={},textColor:z="primary",value:O,variant:T="standard",visibleScrollbar:R=!1,...P}=r,F=T==="scrollable",N=b==="vertical",L=N?"scrollTop":"scrollLeft",W=N?"top":"left",j=N?"bottom":"right",V=N?"clientHeight":"clientWidth",G=N?"height":"width",q={...r,component:p,allowScrollButtonsMobile:h,indicatorColor:g,orientation:b,vertical:N,scrollButtons:M,textColor:z,variant:T,visibleScrollbar:R,fixed:!F,hideScrollbar:F&&!R,scrollableX:F&&!N,scrollableY:F&&N,centered:c&&!F,scrollButtonsHideMobile:!h},$=q5n(q),U=Vo({elementType:x.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:q}),X=Vo({elementType:x.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:q}),[Q,re]=v.useState(!1),[ee,se]=v.useState(S4e),[pe,te]=v.useState(!1),[ce,oe]=v.useState(!1),[ae,ne]=v.useState(!1),[le,he]=v.useState({overflow:"hidden",scrollbarWidth:0}),be=new Map,me=v.useRef(null),Me=v.useRef(null),Oe={slots:x,slotProps:{indicator:S,scrollButton:A,...w}},de=()=>{const ct=me.current;let lt;if(ct){const ft=ct.getBoundingClientRect();lt={clientWidth:ct.clientWidth,scrollLeft:ct.scrollLeft,scrollTop:ct.scrollTop,scrollWidth:ct.scrollWidth,top:ft.top,bottom:ft.bottom,left:ft.left,right:ft.right}}let Je;if(ct&&O!==!1){const ft=Me.current.children;if(ft.length>0){const Tt=ft[be.get(O)];Je=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:lt,tabMeta:Je}},ie=en(()=>{const{tabsMeta:ct,tabMeta:lt}=de();let Je=0,ft;N?(ft="top",lt&&ct&&(Je=lt.top-ct.top+ct.scrollTop)):(ft=o?"right":"left",lt&&ct&&(Je=(o?-1:1)*(lt[ft]-ct[ft]+ct.scrollLeft)));const Tt={[ft]:Je,[G]:lt?lt[G]:0};if(typeof ee[ft]!="number"||typeof ee[G]!="number")se(Tt);else{const St=Math.abs(ee[ft]-Tt[ft]),un=Math.abs(ee[G]-Tt[G]);(St>=1||un>=1)&&se(Tt)}}),ue=(ct,{animation:lt=!0}={})=>{lt?I5n(L,me.current,ct,{duration:i.transitions.duration.standard}):me.current[L]=ct},Ae=ct=>{let lt=me.current[L];N?lt+=ct:lt+=ct*(o?-1:1),ue(lt)},Ce=()=>{const ct=me.current[V];let lt=0;const Je=Array.from(Me.current.children);for(let ft=0;ft<Je.length;ft+=1){const Tt=Je[ft];if(lt+Tt[V]>ct){ft===0&&(lt=ct);break}lt+=Tt[V]}return lt},Ee=()=>{Ae(-1*Ce())},Ge=()=>{Ae(Ce())},[_e,{onChange:Ie,...Le}]=ni("scrollbar",{className:nr($.scrollableX,$.hideScrollbar),elementType:G5n,shouldForwardComponentProp:!0,externalForwardedProps:Oe,ownerState:q}),we=v.useCallback(ct=>{Ie?.(ct),he({overflow:null,scrollbarWidth:ct})},[Ie]),[ve,De]=ni("scrollButtons",{className:nr($.scrollButtons,A.className),elementType:F5n,externalForwardedProps:Oe,ownerState:q,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:U,endScrollButtonIcon:X}}}),ze=()=>{const ct={};ct.scrollbarSizeListener=F?f.jsx(_e,{...Le,onChange:we}):null;const Je=F&&(M==="auto"&&(pe||ce)||M===!0);return ct.scrollButtonStart=Je?f.jsx(ve,{direction:o?"right":"left",onClick:Ee,disabled:!pe,...De}):null,ct.scrollButtonEnd=Je?f.jsx(ve,{direction:o?"left":"right",onClick:Ge,disabled:!ce,...De}):null,ct},Ve=en(ct=>{const{tabsMeta:lt,tabMeta:Je}=de();if(!(!Je||!lt)){if(Je[W]<lt[W]){const ft=lt[L]+(Je[W]-lt[W]);ue(ft,{animation:ct})}else if(Je[j]>lt[j]){const ft=lt[L]+(Je[j]-lt[j]);ue(ft,{animation:ct})}}}),Ke=en(()=>{F&&M!==!1&&ne(!ae)});v.useEffect(()=>{const ct=Tw(()=>{me.current&&ie()});let lt;const Je=St=>{St.forEach(un=>{un.removedNodes.forEach(Un=>{lt?.unobserve(Un)}),un.addedNodes.forEach(Un=>{lt?.observe(Un)})}),ct(),Ke()},ft=Mm(me.current);ft.addEventListener("resize",ct);let Tt;return typeof ResizeObserver<"u"&&(lt=new ResizeObserver(ct),Array.from(Me.current.children).forEach(St=>{lt.observe(St)})),typeof MutationObserver<"u"&&(Tt=new MutationObserver(Je),Tt.observe(Me.current,{childList:!0})),()=>{ct.clear(),ft.removeEventListener("resize",ct),Tt?.disconnect(),lt?.disconnect()}},[ie,Ke]),v.useEffect(()=>{const ct=Array.from(Me.current.children),lt=ct.length;if(typeof IntersectionObserver<"u"&&lt>0&&F&&M!==!1){const Je=ct[0],ft=ct[lt-1],Tt={root:me.current,threshold:.99},St=yr=>{te(!yr[0].isIntersecting)},un=new IntersectionObserver(St,Tt);un.observe(Je);const Un=yr=>{oe(!yr[0].isIntersecting)},Yr=new IntersectionObserver(Un,Tt);return Yr.observe(ft),()=>{un.disconnect(),Yr.disconnect()}}},[F,M,ae,u?.length]),v.useEffect(()=>{re(!0)},[]),v.useEffect(()=>{ie()}),v.useEffect(()=>{Ve(S4e!==ee)},[Ve,ee]),v.useImperativeHandle(l,()=>({updateIndicator:ie,updateScrollButtons:Ke}),[ie,Ke]);const[et,it]=ni("indicator",{className:nr($.indicator,S.className),elementType:V5n,externalForwardedProps:Oe,ownerState:q,additionalProps:{style:ee}}),Ft=f.jsx(et,{...it});let Dt=0;const Qn=v.Children.map(u,ct=>{if(!v.isValidElement(ct))return null;const lt=ct.props.value===void 0?Dt:ct.props.value;be.set(lt,Dt);const Je=lt===O;return Dt+=1,v.cloneElement(ct,{fullWidth:T==="fullWidth",indicator:Je&&!Q&&Ft,selected:Je,selectionFollowsFocus:C,onChange:m,textColor:z,value:lt,...Dt===1&&O===!1&&!ct.props.tabIndex?{tabIndex:0}:{}})}),ir=ct=>{if(ct.altKey||ct.shiftKey||ct.ctrlKey||ct.metaKey)return;const lt=Me.current,Je=Ds(lt).activeElement;if(Je.getAttribute("role")!=="tab")return;let Tt=b==="horizontal"?"ArrowLeft":"ArrowUp",St=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&o&&(Tt="ArrowRight",St="ArrowLeft"),ct.key){case Tt:ct.preventDefault(),R8(lt,Je,w4e);break;case St:ct.preventDefault(),R8(lt,Je,x4e);break;case"Home":ct.preventDefault(),R8(lt,null,x4e);break;case"End":ct.preventDefault(),R8(lt,null,w4e);break}},Hn=ze(),[Zn,Br]=ni("root",{ref:n,className:nr($.root,d),elementType:B5n,externalForwardedProps:{...Oe,...P,component:p},ownerState:q}),[vr,Fe]=ni("scroller",{ref:me,className:$.scroller,elementType:j5n,externalForwardedProps:Oe,ownerState:q,additionalProps:{style:{overflow:le.overflow,[N?`margin${o?"Left":"Right"}`:"marginBottom"]:R?void 0:-le.scrollbarWidth}}}),[He,Xe]=ni("list",{ref:Me,className:nr($.list,$.flexContainer),elementType:H5n,externalForwardedProps:Oe,ownerState:q,getSlotProps:ct=>({...ct,onKeyDown:lt=>{ir(lt),ct.onKeyDown?.(lt)}})});return f.jsxs(Zn,{...Br,children:[Hn.scrollButtonStart,Hn.scrollbarSizeListener,f.jsxs(vr,{...Fe,children:[f.jsx(He,{"aria-label":a,"aria-labelledby":s,"aria-orientation":b==="vertical"?"vertical":null,role:"tablist",...Xe,children:Qn}),Q&&Ft]}),Hn.scrollButtonEnd]})});function $5n(e){return Bn("MuiDateTimePickerTabs",e)}Ln("MuiDateTimePickerTabs",["root"]);const U5n=e=>mP(e)?"date":"time",X5n=e=>e==="date"?"day":"hours",Y5n=e=>{const{classes:t}=e;return Yt({root:["root"]},$5n,t)},K5n=rt(K0t,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${C7.indicator}`]:{bottom:"auto",top:0}}})),Q5n=function(t){const n=Po({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=f.jsx(h2n,{}),onViewChange:i,timeIcon:o=f.jsx(f2n,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667,className:l,sx:c}=n,u=Rd(),d=Y5n(n),p=(h,g)=>{i(X5n(g))};return s?null:f.jsxs(K5n,{ownerState:n,variant:"fullWidth",value:U5n(a),onChange:p,className:za(l,d.root),sx:c,children:[f.jsx(wge,{value:"date","aria-label":u.dateTableLabel,icon:f.jsx(v.Fragment,{children:r})}),f.jsx(wge,{value:"time","aria-label":u.timeTableLabel,icon:f.jsx(v.Fragment,{children:o})})]})};function Z5n(e){return Bn("MuiDateTimePickerToolbar",e)}const foe=Ln("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),J5n=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],eNn=e=>{const{classes:t,isLandscape:n,isRtl:r}=e;return Yt({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Z5n,t)},tNn=rt(elt,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${_gn.content} .${xge.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),nNn=rt("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),rNn=rt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&t!=="desktop"&&n,style:{flexDirection:"column-reverse"}}]}),iNn=rt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),A4e=rt($0t,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),oNn=rt("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${foe.ampmLabel}`]:t.ampmLabel},{[`&.${foe.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${foe.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function aNn(e){const t=Po({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,disabled:p,readOnly:h,toolbarVariant:g="mobile",toolbarTitle:m,className:b}=t,y=Lt(t,J5n),M=ts(),C=Y({},t,{isRtl:M}),x=ua(),{meridiemMode:w,handleMeridiemChange:S}=PCe(i,n,o),A=!!(n&&!r),z=g==="desktop",O=Rd(),T=eNn(C),R=m??O.dateTimePickerToolbarTitle,P=N=>n?x.format(N,"hours12h"):x.format(N,"hours24h"),F=v.useMemo(()=>i?c?x.formatByString(i,c):x.format(i,"shortDate"):u,[i,c,u,x]);return f.jsxs(tNn,Y({isLandscape:s,className:za(T.root,b),toolbarTitle:R},y,{ownerState:C,children:[f.jsxs(nNn,{className:T.dateContainer,ownerState:C,children:[d.includes("year")&&f.jsx(oC,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?x.format(i,"year"):"–"}),d.includes("day")&&f.jsx(oC,{tabIndex:-1,variant:z?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:F})]}),f.jsxs(rNn,{className:T.timeContainer,ownerState:C,children:[f.jsxs(iNn,{className:T.timeDigitsContainer,ownerState:C,children:[d.includes("hours")&&f.jsxs(v.Fragment,{children:[f.jsx(oC,{variant:z?"h5":"h3",width:z&&!s?rN:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?P(i):"--"}),f.jsx(A4e,{variant:z?"h5":"h3",value:":",className:T.separator,ownerState:C}),f.jsx(oC,{variant:z?"h5":"h3",width:z&&!s?rN:void 0,onClick:()=>l("minutes"),selected:a==="minutes"||!d.includes("minutes")&&a==="hours",value:i?x.format(i,"minutes"):"--",disabled:!d.includes("minutes")})]}),d.includes("seconds")&&f.jsxs(v.Fragment,{children:[f.jsx(A4e,{variant:z?"h5":"h3",value:":",className:T.separator,ownerState:C}),f.jsx(oC,{variant:z?"h5":"h3",width:z&&!s?rN:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?x.format(i,"seconds"):"--"})]})]}),A&&!z&&f.jsxs(oNn,{className:T.ampmSelection,ownerState:C,children:[f.jsx(oC,{variant:"subtitle2",selected:w==="am",typographyClassName:T.ampmLabel,value:by(x,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),f.jsx(oC,{variant:"subtitle2",selected:w==="pm",typographyClassName:T.ampmLabel,value:by(x,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&z&&f.jsx(oC,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&w?by(x,w):"--",width:rN})]})]}))}function Q0t(e,t){const n=ua(),r=E3(),i=Po({props:e,name:t}),o=i.ampm??n.is12HourCycleInCurrentLocale(),a=v.useMemo(()=>i.localeText?.toolbarTitle==null?i.localeText:Y({},i.localeText,{dateTimePickerToolbarTitle:i.localeText.toolbarTitle}),[i.localeText]);return Y({},i,Bst({views:i.views,openTo:i.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:o,localeText:a,orientation:i.orientation??"portrait",disableIgnoringDatePartForTimeValidation:i.disableIgnoringDatePartForTimeValidation??!!(i.minDateTime||i.maxDateTime||i.disablePast||i.disableFuture),disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:w0(n,i.minDateTime??i.minDate,r.minDate),maxDate:w0(n,i.maxDateTime??i.maxDate,r.maxDate),minTime:i.minDateTime??i.minTime,maxTime:i.maxDateTime??i.maxTime,slots:Y({toolbar:aNn,tabs:Q5n},i.slots),slotProps:Y({},i.slotProps,{toolbar:Y({ampm:o},i.slotProps?.toolbar)})})}const sNn=v.forwardRef(function(t,n){const r=ts(),{toolbar:i,tabs:o,content:a,actionBar:s,shortcuts:l}=Olt(t),{sx:c,className:u,isLandscape:d,classes:p}=t,h=s&&(s.props.actions?.length??0)>0,g=Y({},t,{isRtl:r});return f.jsxs(zlt,{ref:n,className:za(Bg.root,p?.root,u),sx:[{[`& .${Bg.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Bg.actionBar}`]:{gridRow:5}},...Array.isArray(c)?c:[c]],ownerState:g,children:[d?l:i,d?i:l,f.jsxs(Tlt,{className:za(Bg.contentWrapper,p?.contentWrapper),sx:{display:"grid"},children:[a,o,h&&f.jsx(KW,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),s]})}),lNn=["openTo","focusedView","timeViewsCount"],cNn=function(t,n,r){const{openTo:i,focusedView:o,timeViewsCount:a}=r,s=Lt(r,lNn),l=Y({},s,{autoFocus:!1,focusedView:null,sx:[{[`&.${y4e.root}`]:{borderBottom:0},[`&.${y4e.root}, .${K_n.root}, &.${B_n.root}`]:{maxHeight:qQ}}]}),c=nN(n);return f.jsxs(v.Fragment,{children:[t[c?"day":n]?.(Y({},r,{view:c?"day":n,focusedView:o&&mP(o)?o:null,views:r.views.filter(mP),sx:[{gridColumn:1},...l.sx]})),a>0&&f.jsxs(v.Fragment,{children:[f.jsx(KW,{orientation:"vertical",sx:{gridColumn:2}}),t[c?n:"hours"]?.(Y({},l,{view:c?n:"hours",focusedView:o&&nN(o)?o:null,openTo:nN(i)?i:"hours",views:r.views.filter(nN),sx:[{gridColumn:3},...l.sx]}))]})]})},Z0t=v.forwardRef(function(t,n){const r=Rd(),i=ua(),o=Q0t(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:a,thresholdToRenderTimeInASingleColumn:s,views:l,timeSteps:c}=O5n(o),u=a?x5n:C4e,d=Y({day:Tf,month:Tf,year:Tf,hours:u,minutes:u,seconds:u,meridiem:u},o.viewRenderers),p=o.ampmInClock??!0,g=d.hours?.name===C4e.name?l:l.filter(M=>M!=="meridiem"),m=a?[]:["accept"],b=Y({},o,{viewRenderers:d,format:U0t(i,o),views:g,yearsPerRow:o.yearsPerRow??4,ampmInClock:p,timeSteps:c,thresholdToRenderTimeInASingleColumn:s,shouldRenderTimeInASingleColumn:a,slots:Y({field:G0t,layout:sNn,openPickerIcon:g9},o.slots),slotProps:Y({},o.slotProps,{field:M=>Y({},kz(o.slotProps?.field,M),kQ(o),{ref:n}),toolbar:Y({hidden:!0,ampmInClock:p,toolbarVariant:"desktop"},o.slotProps?.toolbar),tabs:Y({hidden:!0},o.slotProps?.tabs),actionBar:M=>Y({actions:m},kz(o.slotProps?.actionBar,M))})}),{renderPicker:y}=Ilt({props:b,valueManager:Tu,valueType:"date-time",getOpenDialogAriaText:PQ({utils:i,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:b.localeText?.openDatePickerDialogue}),validator:DQ,rendererInterceptor:cNn});return y()});Z0t.propTypes={ampm:Z.bool,ampmInClock:Z.bool,autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableIgnoringDatePartForTimeValidation:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:EQ,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,maxDateTime:Z.object,maxTime:Z.object,minDate:Z.object,minDateTime:Z.object,minTime:Z.object,minutesStep:Z.number,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableTime:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,skipDisabled:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),thresholdToRenderTimeInASingleColumn:Z.number,timeSteps:Z.shape({hours:Z.number,minutes:Z.number,seconds:Z.number}),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Z.shape({day:Z.func,hours:Z.func,meridiem:Z.func,minutes:Z.func,month:Z.func,seconds:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};const J0t=v.forwardRef(function(t,n){const r=Rd(),i=ua(),o=Q0t(t,"MuiMobileDateTimePicker"),a=Y({day:Tf,month:Tf,year:Tf,hours:hoe,minutes:hoe,seconds:hoe},o.viewRenderers),s=o.ampmInClock??!1,l=Y({},o,{viewRenderers:a,format:U0t(i,o),ampmInClock:s,slots:Y({field:G0t},o.slots),slotProps:Y({},o.slotProps,{field:u=>Y({},kz(o.slotProps?.field,u),kQ(o),{ref:n}),toolbar:Y({hidden:!1,ampmInClock:s},o.slotProps?.toolbar),tabs:Y({hidden:!1},o.slotProps?.tabs)})}),{renderPicker:c}=sct({props:l,valueManager:Tu,valueType:"date-time",getOpenDialogAriaText:PQ({utils:i,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:DQ});return c()});J0t.propTypes={ampm:Z.bool,ampmInClock:Z.bool,autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableIgnoringDatePartForTimeValidation:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:EQ,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,maxDateTime:Z.object,maxTime:Z.object,minDate:Z.object,minDateTime:Z.object,minTime:Z.object,minutesStep:Z.number,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableTime:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Z.shape({day:Z.func,hours:Z.func,minutes:Z.func,month:Z.func,seconds:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};const uNn=["desktopModeMediaQuery"],xd=v.forwardRef(function(t,n){const r=Po({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=blt}=r,o=Lt(r,uNn);return aCe(i,{defaultMatches:!0})?f.jsx(Z0t,Y({ref:n},o)):f.jsx(J0t,Y({ref:n},o))}),dNn={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},pNn={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},O4e=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
`);class hNn{constructor({locale:t,formats:n,instance:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=dNn,this.setLocaleToValue=i=>{const o=this.getCurrentLocaleCode();return o===i.locale()?i:i.locale(o)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=i=>{const o=this.moment(i).local();return this.locale===void 0?o:o.locale(this.locale)},this.createUTCDate=i=>{const o=this.moment.utc(i);return this.locale===void 0?o:o.locale(this.locale)},this.createTZDate=(i,o)=>{if(!this.hasTimezonePlugin())throw new Error(O4e);const a=o==="default"?this.moment(i):this.moment.tz(i,o);return this.locale===void 0?a:a.locale(this.locale)},this.date=(i,o="default")=>i===null?null:o==="UTC"?this.createUTCDate(i):o==="system"||o==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(i):this.createTZDate(i,o),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=i=>{const o=i._z?.name,a=i.isUTC()?"UTC":"system";return o??this.moment.defaultZone?.name??a},this.setTimezone=(i,o)=>{if(this.getTimezone(i)===o)return i;if(o==="UTC")return i.clone().utc();if(o==="system")return i.clone().local();if(!this.hasTimezonePlugin()){if(o!=="default")throw new Error(O4e);return i}const a=o==="default"?this.moment.defaultZone?.name??"system":o;if(a==="system")return i.clone().local();const s=i.clone();return s.tz(a),s},this.toJsDate=i=>i.toDate(),this.parse=(i,o)=>i===""?null:this.locale?this.moment(i,o,this.locale,!0):this.moment(i,o,!0),this.getCurrentLocaleCode=()=>this.locale||mt.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(mt.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=i=>{const o=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return i.match(o).map(a=>{const s=a[0];return s==="L"||s===";"?mt.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=i=>i==null?!1:i.isValid(),this.format=(i,o)=>this.formatByString(i,this.formats[o]),this.formatByString=(i,o)=>{const a=i.clone();return a.locale(this.getCurrentLocaleCode()),a.format(o)},this.formatNumber=i=>i,this.isEqual=(i,o)=>i===null&&o===null?!0:i===null||o===null?!1:i.isSame(o),this.isSameYear=(i,o)=>i.isSame(o,"year"),this.isSameMonth=(i,o)=>i.isSame(o,"month"),this.isSameDay=(i,o)=>i.isSame(o,"day"),this.isSameHour=(i,o)=>i.isSame(o,"hour"),this.isAfter=(i,o)=>i.isAfter(o),this.isAfterYear=(i,o)=>i.isAfter(o,"year"),this.isAfterDay=(i,o)=>i.isAfter(o,"day"),this.isBefore=(i,o)=>i.isBefore(o),this.isBeforeYear=(i,o)=>i.isBefore(o,"year"),this.isBeforeDay=(i,o)=>i.isBefore(o,"day"),this.isWithinRange=(i,[o,a])=>i.isBetween(o,a,null,"[]"),this.startOfYear=i=>i.clone().startOf("year"),this.startOfMonth=i=>i.clone().startOf("month"),this.startOfWeek=i=>this.setLocaleToValue(i.clone()).startOf("week"),this.startOfDay=i=>i.clone().startOf("day"),this.endOfYear=i=>i.clone().endOf("year"),this.endOfMonth=i=>i.clone().endOf("month"),this.endOfWeek=i=>this.setLocaleToValue(i.clone()).endOf("week"),this.endOfDay=i=>i.clone().endOf("day"),this.addYears=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"years"):i.clone().add(o,"years"),this.addMonths=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"months"):i.clone().add(o,"months"),this.addWeeks=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"weeks"):i.clone().add(o,"weeks"),this.addDays=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"days"):i.clone().add(o,"days"),this.addHours=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"hours"):i.clone().add(o,"hours"),this.addMinutes=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"minutes"):i.clone().add(o,"minutes"),this.addSeconds=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"seconds"):i.clone().add(o,"seconds"),this.getYear=i=>i.get("year"),this.getMonth=i=>i.get("month"),this.getDate=i=>i.get("date"),this.getHours=i=>i.get("hours"),this.getMinutes=i=>i.get("minutes"),this.getSeconds=i=>i.get("seconds"),this.getMilliseconds=i=>i.get("milliseconds"),this.setYear=(i,o)=>i.clone().year(o),this.setMonth=(i,o)=>i.clone().month(o),this.setDate=(i,o)=>i.clone().date(o),this.setHours=(i,o)=>i.clone().hours(o),this.setMinutes=(i,o)=>i.clone().minutes(o),this.setSeconds=(i,o)=>i.clone().seconds(o),this.setMilliseconds=(i,o)=>i.clone().milliseconds(o),this.getDaysInMonth=i=>i.daysInMonth(),this.getWeekArray=i=>{const o=this.startOfWeek(this.startOfMonth(i)),a=this.endOfWeek(this.endOfMonth(i));let s=0,l=o,c=l.get("dayOfYear");const u=[];for(;l.isBefore(a);){const d=Math.floor(s/7);u[d]=u[d]||[],u[d].push(l);const p=c;l=this.addDays(l,1),c=l.get("dayOfYear"),p===c&&(l=l.add(12,"h").startOf("day")),s+=1}return u},this.getWeekNumber=i=>i.week(),this.getDayOfWeek=i=>i.day()+1,this.moment=r||mt,this.locale=t,this.formats=Y({},pNn,n)}getYearRange([t,n]){const r=this.startOfYear(t),i=this.endOfYear(n),o=[];let a=r;for(;this.isBefore(a,i);)o.push(a),a=this.addYears(a,1);return o}}var _4={},z4e;function fNn(){if(z4e)return _4;z4e=1;var e=ri(),t=ii();Object.defineProperty(_4,"__esModule",{value:!0}),_4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");return _4.default=i,_4}var gNn=fNn();const mNn=qn(gNn);var N4={},T4e;function vNn(){if(T4e)return N4;T4e=1;var e=ri(),t=ii();Object.defineProperty(N4,"__esModule",{value:!0}),N4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");return N4.default=i,N4}var bNn=vNn();const Vxe=qn(bNn);var F4={},E4e;function yNn(){if(E4e)return F4;E4e=1;var e=ri(),t=ii();Object.defineProperty(F4,"__esModule",{value:!0}),F4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart");return F4.default=i,F4}var MNn=yNn();const CNn=qn(MNn);var W4={},R4e;function xNn(){if(R4e)return W4;R4e=1;var e=ri(),t=ii();Object.defineProperty(W4,"__esModule",{value:!0}),W4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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 2z"}),"Timeline");return W4.default=i,W4}var wNn=xNn();const SNn=qn(wNn);function e1t(e,t){return function(){return e.apply(t,arguments)}}const{toString:ANn}=Object.prototype,{getPrototypeOf:Gxe}=Object,{iterator:OZ,toStringTag:t1t}=Symbol,zZ=(e=>t=>{const n=ANn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Lm=e=>(e=e.toLowerCase(),t=>zZ(t)===e),TZ=e=>t=>typeof t===e,{isArray:HD}=Array,AP=TZ("undefined");function vB(e){return e!==null&&!AP(e)&&e.constructor!==null&&!AP(e.constructor)&&hp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n1t=Lm("ArrayBuffer");function ONn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n1t(e.buffer),t}const zNn=TZ("string"),hp=TZ("function"),r1t=TZ("number"),bB=e=>e!==null&&typeof e=="object",TNn=e=>e===!0||e===!1,x7=e=>{if(zZ(e)!=="object")return!1;const t=Gxe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(t1t in e)&&!(OZ in e)},ENn=e=>{if(!bB(e)||vB(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},RNn=Lm("Date"),INn=Lm("File"),PNn=Lm("Blob"),DNn=Lm("FileList"),kNn=e=>bB(e)&&hp(e.pipe),LNn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||hp(e.append)&&((t=zZ(e))==="formdata"||t==="object"&&hp(e.toString)&&e.toString()==="[object FormData]"))},_Nn=Lm("URLSearchParams"),[NNn,FNn,WNn,qNn]=["ReadableStream","Request","Response","Headers"].map(Lm),BNn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yB(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),HD(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(vB(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function i1t(e,t){if(vB(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const pO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,o1t=e=>!AP(e)&&e!==pO;function Sge(){const{caseless:e,skipUndefined:t}=o1t(this)&&this||{},n={},r=(i,o)=>{const a=e&&i1t(n,o)||o;x7(n[a])&&x7(i)?n[a]=Sge(n[a],i):x7(i)?n[a]=Sge({},i):HD(i)?n[a]=i.slice():(!t||!AP(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&yB(arguments[i],r);return n}const jNn=(e,t,n,{allOwnKeys:r}={})=>(yB(t,(i,o)=>{n&&hp(i)?e[o]=e1t(i,n):e[o]=i},{allOwnKeys:r}),e),HNn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),VNn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},GNn=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Gxe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$Nn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},UNn=e=>{if(!e)return null;if(HD(e))return e;let t=e.length;if(!r1t(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},XNn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gxe(Uint8Array)),YNn=(e,t)=>{const r=(e&&e[OZ]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},KNn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},QNn=Lm("HTMLFormElement"),ZNn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),I4e=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),JNn=Lm("RegExp"),a1t=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yB(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},eFn=e=>{a1t(e,(t,n)=>{if(hp(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(hp(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tFn=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return HD(e)?r(e):r(String(e).split(t)),n},nFn=()=>{},rFn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function iFn(e){return!!(e&&hp(e.append)&&e[t1t]==="FormData"&&e[OZ])}const oFn=e=>{const t=new Array(10),n=(r,i)=>{if(bB(r)){if(t.indexOf(r)>=0)return;if(vB(r))return r;if(!("toJSON"in r)){t[i]=r;const o=HD(r)?[]:{};return yB(r,(a,s)=>{const l=n(a,i+1);!AP(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},aFn=Lm("AsyncFunction"),sFn=e=>e&&(bB(e)||hp(e))&&hp(e.then)&&hp(e.catch),s1t=((e,t)=>e?setImmediate:t?((n,r)=>(pO.addEventListener("message",({source:i,data:o})=>{i===pO&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),pO.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",hp(pO.postMessage)),lFn=typeof queueMicrotask<"u"?queueMicrotask.bind(pO):typeof process<"u"&&process.nextTick||s1t,cFn=e=>e!=null&&hp(e[OZ]),qt={isArray:HD,isArrayBuffer:n1t,isBuffer:vB,isFormData:LNn,isArrayBufferView:ONn,isString:zNn,isNumber:r1t,isBoolean:TNn,isObject:bB,isPlainObject:x7,isEmptyObject:ENn,isReadableStream:NNn,isRequest:FNn,isResponse:WNn,isHeaders:qNn,isUndefined:AP,isDate:RNn,isFile:INn,isBlob:PNn,isRegExp:JNn,isFunction:hp,isStream:kNn,isURLSearchParams:_Nn,isTypedArray:XNn,isFileList:DNn,forEach:yB,merge:Sge,extend:jNn,trim:BNn,stripBOM:HNn,inherits:VNn,toFlatObject:GNn,kindOf:zZ,kindOfTest:Lm,endsWith:$Nn,toArray:UNn,forEachEntry:YNn,matchAll:KNn,isHTMLForm:QNn,hasOwnProperty:I4e,hasOwnProp:I4e,reduceDescriptors:a1t,freezeMethods:eFn,toObjectSet:tFn,toCamelCase:ZNn,noop:nFn,toFiniteNumber:rFn,findKey:i1t,global:pO,isContextDefined:o1t,isSpecCompliantForm:iFn,toJSONObject:oFn,isAsyncFn:aFn,isThenable:sFn,setImmediate:s1t,asap:lFn,isIterable:cFn};function po(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}qt.inherits(po,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:qt.toJSONObject(this.config),code:this.code,status:this.status}}});const l1t=po.prototype,c1t={};["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=>{c1t[e]={value:e}});Object.defineProperties(po,c1t);Object.defineProperty(l1t,"isAxiosError",{value:!0});po.from=(e,t,n,r,i,o)=>{const a=Object.create(l1t);qt.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return po.call(a,s,l,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};const uFn=null;function Age(e){return qt.isPlainObject(e)||qt.isArray(e)}function u1t(e){return qt.endsWith(e,"[]")?e.slice(0,-2):e}function P4e(e,t,n){return e?e.concat(t).map(function(i,o){return i=u1t(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function dFn(e){return qt.isArray(e)&&!e.some(Age)}const pFn=qt.toFlatObject(qt,{},null,function(t){return/^is[A-Z]/.test(t)});function EZ(e,t,n){if(!qt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=qt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!qt.isUndefined(b[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&qt.isSpecCompliantForm(t);if(!qt.isFunction(i))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(qt.isDate(g))return g.toISOString();if(qt.isBoolean(g))return g.toString();if(!l&&qt.isBlob(g))throw new po("Blob is not supported. Use a Buffer instead.");return qt.isArrayBuffer(g)||qt.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,m,b){let y=g;if(g&&!b&&typeof g=="object"){if(qt.endsWith(m,"{}"))m=r?m:m.slice(0,-2),g=JSON.stringify(g);else if(qt.isArray(g)&&dFn(g)||(qt.isFileList(g)||qt.endsWith(m,"[]"))&&(y=qt.toArray(g)))return m=u1t(m),y.forEach(function(C,x){!(qt.isUndefined(C)||C===null)&&t.append(a===!0?P4e([m],x,o):a===null?m:m+"[]",c(C))}),!1}return Age(g)?!0:(t.append(P4e(b,m,o),c(g)),!1)}const d=[],p=Object.assign(pFn,{defaultVisitor:u,convertValue:c,isVisitable:Age});function h(g,m){if(!qt.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),qt.forEach(g,function(y,M){(!(qt.isUndefined(y)||y===null)&&i.call(t,y,qt.isString(M)?M.trim():M,m,p))===!0&&h(y,m?m.concat(M):[M])}),d.pop()}}if(!qt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function D4e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $xe(e,t){this._pairs=[],e&&EZ(e,this,t)}const d1t=$xe.prototype;d1t.append=function(t,n){this._pairs.push([t,n])};d1t.toString=function(t){const n=t?function(r){return t.call(this,r,D4e)}:D4e;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function hFn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function p1t(e,t,n){if(!t)return e;const r=n&&n.encode||hFn;qt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=qt.isURLSearchParams(t)?t.toString():new $xe(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class k4e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){qt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const h1t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fFn=typeof URLSearchParams<"u"?URLSearchParams:$xe,gFn=typeof FormData<"u"?FormData:null,mFn=typeof Blob<"u"?Blob:null,vFn={isBrowser:!0,classes:{URLSearchParams:fFn,FormData:gFn,Blob:mFn},protocols:["http","https","file","blob","url","data"]},Uxe=typeof window<"u"&&typeof document<"u",Oge=typeof navigator=="object"&&navigator||void 0,bFn=Uxe&&(!Oge||["ReactNative","NativeScript","NS"].indexOf(Oge.product)<0),yFn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MFn=Uxe&&window.location.href||"http://localhost",CFn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Uxe,hasStandardBrowserEnv:bFn,hasStandardBrowserWebWorkerEnv:yFn,navigator:Oge,origin:MFn},Symbol.toStringTag,{value:"Module"})),u0={...CFn,...vFn};function xFn(e,t){return EZ(e,new u0.classes.URLSearchParams,{visitor:function(n,r,i,o){return u0.isNode&&qt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function wFn(e){return qt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SFn(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function f1t(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&qt.isArray(i)?i.length:a,l?(qt.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!qt.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&qt.isArray(i[a])&&(i[a]=SFn(i[a])),!s)}if(qt.isFormData(e)&&qt.isFunction(e.entries)){const n={};return qt.forEachEntry(e,(r,i)=>{t(wFn(r),i,n,0)}),n}return null}function AFn(e,t,n){if(qt.isString(e))try{return(t||JSON.parse)(e),qt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const MB={transitional:h1t,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=qt.isObject(t);if(o&&qt.isHTMLForm(t)&&(t=new FormData(t)),qt.isFormData(t))return i?JSON.stringify(f1t(t)):t;if(qt.isArrayBuffer(t)||qt.isBuffer(t)||qt.isStream(t)||qt.isFile(t)||qt.isBlob(t)||qt.isReadableStream(t))return t;if(qt.isArrayBufferView(t))return t.buffer;if(qt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return xFn(t,this.formSerializer).toString();if((s=qt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return EZ(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),AFn(t)):t}],transformResponse:[function(t){const n=this.transitional||MB.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(qt.isResponse(t)||qt.isReadableStream(t))return t;if(t&&qt.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?po.from(s,po.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u0.classes.FormData,Blob:u0.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qt.forEach(["delete","get","head","post","put","patch"],e=>{MB.headers[e]={}});const OFn=qt.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"]),zFn=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&OFn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},L4e=Symbol("internals");function q4(e){return e&&String(e).trim().toLowerCase()}function w7(e){return e===!1||e==null?e:qt.isArray(e)?e.map(w7):String(e)}function TFn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const EFn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function goe(e,t,n,r,i){if(qt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!qt.isString(t)){if(qt.isString(r))return t.indexOf(r)!==-1;if(qt.isRegExp(r))return r.test(t)}}function RFn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function IFn(e,t){const n=qt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let fp=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=q4(l);if(!u)throw new Error("header name must be a non-empty string");const d=qt.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=w7(s))}const a=(s,l)=>qt.forEach(s,(c,u)=>o(c,u,l));if(qt.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(qt.isString(t)&&(t=t.trim())&&!EFn(t))a(zFn(t),n);else if(qt.isObject(t)&&qt.isIterable(t)){let s={},l,c;for(const u of t){if(!qt.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?qt.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=q4(t),t){const r=qt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return TFn(i);if(qt.isFunction(n))return n.call(this,i,r);if(qt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=q4(t),t){const r=qt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||goe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=q4(a),a){const s=qt.findKey(r,a);s&&(!n||goe(r,r[s],s,n))&&(delete r[s],i=!0)}}return qt.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||goe(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return qt.forEach(this,(i,o)=>{const a=qt.findKey(r,o);if(a){n[a]=w7(i),delete n[o];return}const s=t?RFn(o):String(o).trim();s!==o&&delete n[o],n[s]=w7(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return qt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&qt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).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,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[L4e]=this[L4e]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=q4(a);r[s]||(IFn(i,a),r[s]=!0)}return qt.isArray(t)?t.forEach(o):o(t),this}};fp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);qt.reduceDescriptors(fp.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});qt.freezeMethods(fp);function moe(e,t){const n=this||MB,r=t||n,i=fp.from(r.headers);let o=r.data;return qt.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function g1t(e){return!!(e&&e.__CANCEL__)}function VD(e,t,n){po.call(this,e??"canceled",po.ERR_CANCELED,t,n),this.name="CanceledError"}qt.inherits(VD,po,{__CANCEL__:!0});function m1t(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new po("Request failed with status code "+n.status,[po.ERR_BAD_REQUEST,po.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function PFn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function DFn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const h=u&&c-u;return h?Math.round(p*1e3/h):void 0}}function kFn(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const N9=(e,t,n=3)=>{let r=0;const i=DFn(50,250);return kFn(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},_4e=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},N4e=e=>(...t)=>qt.asap(()=>e(...t)),LFn=u0.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,u0.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(u0.origin),u0.navigator&&/(msie|trident)/i.test(u0.navigator.userAgent)):()=>!0,_Fn=u0.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];qt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),qt.isString(r)&&a.push("path="+r),qt.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 NFn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function FFn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function v1t(e,t,n){let r=!NFn(t);return e&&(r||n==!1)?FFn(e,t):t}const F4e=e=>e instanceof fp?{...e}:e;function Bz(e,t){t=t||{};const n={};function r(c,u,d,p){return qt.isPlainObject(c)&&qt.isPlainObject(u)?qt.merge.call({caseless:p},c,u):qt.isPlainObject(u)?qt.merge({},u):qt.isArray(u)?u.slice():u}function i(c,u,d,p){if(qt.isUndefined(u)){if(!qt.isUndefined(c))return r(void 0,c,d,p)}else return r(c,u,d,p)}function o(c,u){if(!qt.isUndefined(u))return r(void 0,u)}function a(c,u){if(qt.isUndefined(u)){if(!qt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(F4e(c),F4e(u),d,!0)};return qt.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,p=d(e[u],t[u],u);qt.isUndefined(p)&&d!==s||(n[u]=p)}),n}const b1t=e=>{const t=Bz({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=fp.from(a),t.url=p1t(v1t(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),qt.isFormData(n)){if(u0.hasStandardBrowserEnv||u0.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(qt.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&a.set(u,d)})}}if(u0.hasStandardBrowserEnv&&(r&&qt.isFunction(r)&&(r=r(t)),r||r!==!1&&LFn(t.url))){const l=i&&o&&_Fn.read(o);l&&a.set(i,l)}return t},WFn=typeof XMLHttpRequest<"u",qFn=WFn&&function(e){return new Promise(function(n,r){const i=b1t(e);let o=i.data;const a=fp.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,p,h,g;function m(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function y(){if(!b)return;const C=fp.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:e,request:b};m1t(function(A){n(A),m()},function(A){r(A),m()},w),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(r(new po("Request aborted",po.ECONNABORTED,e,b)),b=null)},b.onerror=function(x){const w=x&&x.message?x.message:"Network Error",S=new po(w,po.ERR_NETWORK,e,b);S.event=x||null,r(S),b=null},b.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||h1t;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new po(x,w.clarifyTimeoutError?po.ETIMEDOUT:po.ECONNABORTED,e,b)),b=null},o===void 0&&a.setContentType(null),"setRequestHeader"in b&&qt.forEach(a.toJSON(),function(x,w){b.setRequestHeader(w,x)}),qt.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),s&&s!=="json"&&(b.responseType=i.responseType),c&&([p,g]=N9(c,!0),b.addEventListener("progress",p)),l&&b.upload&&([d,h]=N9(l),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=C=>{b&&(r(!C||C.type?new VD(null,e,b):C),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const M=PFn(i.url);if(M&&u0.protocols.indexOf(M)===-1){r(new po("Unsupported protocol "+M+":",po.ERR_BAD_REQUEST,e));return}b.send(o||null)})},BFn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof po?u:new VD(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new po(`timeout ${t} of ms exceeded`,po.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>qt.asap(s),l}},jFn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},HFn=async function*(e,t){for await(const n of VFn(e))yield*jFn(n,t)},VFn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},W4e=(e,t,n,r)=>{const i=HFn(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let p=o+=d;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},q4e=64*1024,{isFunction:I8}=qt,GFn=(({Request:e,Response:t})=>({Request:e,Response:t}))(qt.global),{ReadableStream:B4e,TextEncoder:j4e}=qt.global,H4e=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$Fn=e=>{e=qt.merge.call({skipUndefined:!0},GFn,e);const{fetch:t,Request:n,Response:r}=e,i=t?I8(t):typeof fetch=="function",o=I8(n),a=I8(r);if(!i)return!1;const s=i&&I8(B4e),l=i&&(typeof j4e=="function"?(g=>m=>g.encode(m))(new j4e):async g=>new Uint8Array(await new n(g).arrayBuffer())),c=o&&s&&H4e(()=>{let g=!1;const m=new n(u0.origin,{body:new B4e,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!m}),u=a&&s&&H4e(()=>qt.isReadableStream(new r("").body)),d={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(m,b)=>{let y=m&&m[g];if(y)return y.call(m);throw new po(`Response type '${g}' is not supported`,po.ERR_NOT_SUPPORT,b)})});const p=async g=>{if(g==null)return 0;if(qt.isBlob(g))return g.size;if(qt.isSpecCompliantForm(g))return(await new n(u0.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(qt.isArrayBufferView(g)||qt.isArrayBuffer(g))return g.byteLength;if(qt.isURLSearchParams(g)&&(g=g+""),qt.isString(g))return(await l(g)).byteLength},h=async(g,m)=>{const b=qt.toFiniteNumber(g.getContentLength());return b??p(m)};return async g=>{let{url:m,method:b,data:y,signal:M,cancelToken:C,timeout:x,onDownloadProgress:w,onUploadProgress:S,responseType:A,headers:z,withCredentials:O="same-origin",fetchOptions:T}=b1t(g),R=t||fetch;A=A?(A+"").toLowerCase():"text";let P=BFn([M,C&&C.toAbortSignal()],x),F=null;const N=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let L;try{if(S&&c&&b!=="get"&&b!=="head"&&(L=await h(z,y))!==0){let $=new n(m,{method:"POST",body:y,duplex:"half"}),U;if(qt.isFormData(y)&&(U=$.headers.get("content-type"))&&z.setContentType(U),$.body){const[X,Q]=_4e(L,N9(N4e(S)));y=W4e($.body,q4e,X,Q)}}qt.isString(O)||(O=O?"include":"omit");const W=o&&"credentials"in n.prototype,j={...T,signal:P,method:b.toUpperCase(),headers:z.normalize().toJSON(),body:y,duplex:"half",credentials:W?O:void 0};F=o&&new n(m,j);let V=await(o?R(F,T):R(m,j));const G=u&&(A==="stream"||A==="response");if(u&&(w||G&&N)){const $={};["status","statusText","headers"].forEach(re=>{$[re]=V[re]});const U=qt.toFiniteNumber(V.headers.get("content-length")),[X,Q]=w&&_4e(U,N9(N4e(w),!0))||[];V=new r(W4e(V.body,q4e,X,()=>{Q&&Q(),N&&N()}),$)}A=A||"text";let q=await d[qt.findKey(d,A)||"text"](V,g);return!G&&N&&N(),await new Promise(($,U)=>{m1t($,U,{data:q,headers:fp.from(V.headers),status:V.status,statusText:V.statusText,config:g,request:F})})}catch(W){throw N&&N(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new po("Network Error",po.ERR_NETWORK,g,F),{cause:W.cause||W}):po.from(W,W&&W.code,g,F)}}},UFn=new Map,y1t=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,s=a,l,c,u=UFn;for(;s--;)l=o[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:$Fn(t)),u=c;return c};y1t();const zge={http:uFn,xhr:qFn,fetch:{get:y1t}};qt.forEach(zge,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const V4e=e=>`- ${e}`,XFn=e=>qt.isFunction(e)||e===null||e===!1,M1t={getAdapter:(e,t)=>{e=qt.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let s;if(i=r,!XFn(r)&&(i=zge[(s=String(r)).toLowerCase()],i===void 0))throw new po(`Unknown adapter '${s}'`);if(i&&(qt.isFunction(i)||(i=i.get(t))))break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
`+a.map(V4e).join(`
`):" "+V4e(a[0]):"as no adapter specified";throw new po("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:zge};function voe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new VD(null,e)}function G4e(e){return voe(e),e.headers=fp.from(e.headers),e.data=moe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),M1t.getAdapter(e.adapter||MB.adapter,e)(e).then(function(r){return voe(e),r.data=moe.call(e,e.transformResponse,r),r.headers=fp.from(r.headers),r},function(r){return g1t(r)||(voe(e),r&&r.response&&(r.response.data=moe.call(e,e.transformResponse,r.response),r.response.headers=fp.from(r.response.headers))),Promise.reject(r)})}const C1t="1.12.2",RZ={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{RZ[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $4e={};RZ.transitional=function(t,n,r){function i(o,a){return"[Axios v"+C1t+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new po(i(a," has been removed"+(n?" in "+n:"")),po.ERR_DEPRECATED);return n&&!$4e[a]&&($4e[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};RZ.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function YFn(e,t,n){if(typeof e!="object")throw new po("options must be an object",po.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new po("option "+o+" must be "+l,po.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new po("Unknown option "+o,po.ERR_BAD_OPTION)}}const S7={assertOptions:YFn,validators:RZ},fv=S7.validators;let UO=class{constructor(t){this.defaults=t||{},this.interceptors={request:new k4e,response:new k4e}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bz(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&S7.assertOptions(r,{silentJSONParsing:fv.transitional(fv.boolean),forcedJSONParsing:fv.transitional(fv.boolean),clarifyTimeoutError:fv.transitional(fv.boolean)},!1),i!=null&&(qt.isFunction(i)?n.paramsSerializer={serialize:i}:S7.assertOptions(i,{encode:fv.function,serialize:fv.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),S7.assertOptions(n,{baseUrl:fv.spelling("baseURL"),withXsrfToken:fv.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&qt.merge(o.common,o[n.method]);o&&qt.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=fp.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,p;if(!l){const g=[G4e.bind(this),void 0];for(g.unshift(...s),g.push(...c),p=g.length,u=Promise.resolve(n);d<p;)u=u.then(g[d++],g[d++]);return u}p=s.length;let h=n;for(;d<p;){const g=s[d++],m=s[d++];try{h=g(h)}catch(b){m.call(this,b);break}}try{u=G4e.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Bz(this.defaults,t);const n=v1t(t.baseURL,t.url,t.allowAbsoluteUrls);return p1t(n,t.params,t.paramsSerializer)}};qt.forEach(["delete","get","head","options"],function(t){UO.prototype[t]=function(n,r){return this.request(Bz(r||{},{method:t,url:n,data:(r||{}).data}))}});qt.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Bz(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}UO.prototype[t]=n(),UO.prototype[t+"Form"]=n(!0)});let KFn=class x1t{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new VD(o,a,s),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new x1t(function(i){t=i}),cancel:t}}};function QFn(e){return function(n){return e.apply(null,n)}}function ZFn(e){return qt.isObject(e)&&e.isAxiosError===!0}const Tge={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(Tge).forEach(([e,t])=>{Tge[t]=e});function w1t(e){const t=new UO(e),n=e1t(UO.prototype.request,t);return qt.extend(n,UO.prototype,t,{allOwnKeys:!0}),qt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return w1t(Bz(e,i))},n}const Ys=w1t(MB);Ys.Axios=UO;Ys.CanceledError=VD;Ys.CancelToken=KFn;Ys.isCancel=g1t;Ys.VERSION=C1t;Ys.toFormData=EZ;Ys.AxiosError=po;Ys.Cancel=Ys.CanceledError;Ys.all=function(t){return Promise.all(t)};Ys.spread=QFn;Ys.isAxiosError=ZFn;Ys.mergeConfig=Bz;Ys.AxiosHeaders=fp;Ys.formToJSON=e=>f1t(qt.isHTMLForm(e)?new FormData(e):e);Ys.getAdapter=M1t.getAdapter;Ys.HttpStatusCode=Tge;Ys.default=Ys;const{Axios:dGi,AxiosError:pGi,CanceledError:hGi,isCancel:fGi,CancelToken:gGi,VERSION:mGi,all:vGi,Cancel:bGi,isAxiosError:yGi,spread:MGi,toFormData:CGi,AxiosHeaders:xGi,HttpStatusCode:wGi,formToJSON:SGi,getAdapter:AGi,mergeConfig:OGi}=Ys;var B4={},U4e;function JFn(){if(U4e)return B4;U4e=1;var e=ri(),t=ii();Object.defineProperty(B4,"__esModule",{value:!0}),B4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Create");return B4.default=i,B4}var eWn=JFn();const Xxe=qn(eWn);var j4={},X4e;function tWn(){if(X4e)return j4;X4e=1;var e=ri(),t=ii();Object.defineProperty(j4,"__esModule",{value:!0}),j4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"}),"FastForward");return j4.default=i,j4}var nWn=tWn();const rWn=qn(nWn);var H4={},Y4e;function iWn(){if(Y4e)return H4;Y4e=1;var e=ri(),t=ii();Object.defineProperty(H4,"__esModule",{value:!0}),H4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"}),"FastRewind");return H4.default=i,H4}var oWn=iWn();const aWn=qn(oWn);var V4={},K4e;function sWn(){if(K4e)return V4;K4e=1;var e=ri(),t=ii();Object.defineProperty(V4,"__esModule",{value:!0}),V4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");return V4.default=i,V4}var lWn=sWn();const CB=qn(lWn);var G4={},Q4e;function cWn(){if(Q4e)return G4;Q4e=1;var e=ri(),t=ii();Object.defineProperty(G4,"__esModule",{value:!0}),G4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");return G4.default=i,G4}var uWn=cWn();const Yxe=qn(uWn);var $4={},Z4e;function dWn(){if(Z4e)return $4;Z4e=1;var e=ri(),t=ii();Object.defineProperty($4,"__esModule",{value:!0}),$4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"}),"SkipNext");return $4.default=i,$4}var pWn=dWn();const Kxe=qn(pWn);var U4={},J4e;function hWn(){if(J4e)return U4;J4e=1;var e=ri(),t=ii();Object.defineProperty(U4,"__esModule",{value:!0}),U4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement(n.Fragment,null,n.createElement("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 19l-4.99-5zm-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 14z"}),n.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"})),"ZoomIn");return U4.default=i,U4}var fWn=hWn();const gWn=qn(fWn);var X4={},e_e;function mWn(){if(e_e)return X4;e_e=1;var e=ri(),t=ii();Object.defineProperty(X4,"__esModule",{value:!0}),X4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");return X4.default=i,X4}var vWn=mWn();const bWn=qn(vWn);var Y4={},t_e;function yWn(){if(t_e)return Y4;t_e=1;var e=ri(),t=ii();Object.defineProperty(Y4,"__esModule",{value:!0}),Y4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");return Y4.default=i,Y4}var MWn=yWn();const S1t=qn(MWn);function A1t(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=A1t(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _o(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=A1t(e))&&(r&&(r+=" "),r+=t);return r}function n_e({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,i)=>n(r)===n(t[i]))}function r_e(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function CWn(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=r_e(u));const d=u?s.filter(p=>{let h=(o||c)(p);return n&&(h=h.toLowerCase()),t&&(h=r_e(h)),i==="start"?h.startsWith(u):h.includes(u)}):s;return typeof r=="number"?d.slice(0,r):d}}const xWn=CWn(),i_e=5,wWn=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),SWn=[];function o_e(e,t,n,r){if(t||e==null||r)return"";const i=n(e);return typeof i=="string"?i:""}function AWn(e){const{unstable_isActiveElementInListbox:t=wWn,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?SWn:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:m=!1,filterOptions:b=xWn,filterSelectedOptions:y=!1,freeSolo:M=!1,getOptionDisabled:C,getOptionKey:x,getOptionLabel:w=kt=>kt.label??kt,groupBy:S,handleHomeEndKeys:A=!e.freeSolo,id:z,includeInputInList:O=!1,inputValue:T,isOptionEqualToValue:R=(kt,It)=>kt===It,multiple:P=!1,onChange:F,onClose:N,onHighlightChange:L,onInputChange:W,onOpen:j,open:V,openOnFocus:G=!1,options:q,readOnly:$=!1,renderValue:U,selectOnFocus:X=!e.freeSolo,value:Q}=e,re=Vi(z);let ee=w;ee=kt=>{const It=w(kt);return typeof It!="string"?String(It):It};const se=v.useRef(!1),pe=v.useRef(!0),te=v.useRef(null),ce=v.useRef(null),[oe,ae]=v.useState(null),[ne,le]=v.useState(-1),he=i?0:-1,be=v.useRef(he),me=v.useRef(o_e(u??Q,P,ee)).current,[Me,Oe]=up({controlled:Q,default:u,name:c}),[de,ie]=up({controlled:T,default:me,name:c,state:"inputValue"}),[ue,Ae]=v.useState(!1),Ce=v.useCallback((kt,It,Vn)=>{if(!(P?Me.length<It.length:It!==null)&&!s)return;const Jr=o_e(It,P,ee,U);de!==Jr&&(ie(Jr),W&&W(kt,Jr,Vn))},[ee,de,P,W,ie,s,Me,U]),[Ee,Ge]=up({controlled:V,default:!1,name:c,state:"open"}),[_e,Ie]=v.useState(!0),Le=!P&&Me!=null&&de===ee(Me),we=Ee&&!$,ve=we?b(q.filter(kt=>!(y&&(P?Me:[Me]).some(It=>It!==null&&R(kt,It)))),{inputValue:Le&&_e?"":de,getOptionLabel:ee}):[],De=cCe({filteredOptions:ve,value:Me,inputValue:de});v.useEffect(()=>{const kt=Me!==De.value;ue&&!kt||M&&!kt||Ce(null,Me,"reset")},[Me,Ce,ue,De.value,M]);const ze=Ee&&ve.length>0&&!$,Ve=en(kt=>{if(kt===-1)te.current.focus();else{const It=U?"data-item-index":"data-tag-index";oe.querySelector(`[${It}="${kt}"]`).focus()}});v.useEffect(()=>{P&&ne>Me.length-1&&(le(-1),Ve(-1))},[Me,P,ne,Ve]);function Ke(kt,It){if(!ce.current||kt<0||kt>=ve.length)return-1;let Vn=kt;for(;;){const jr=ce.current.querySelector(`[data-option-index="${Vn}"]`),Jr=g?!1:!jr||jr.disabled||jr.getAttribute("aria-disabled")==="true";if(jr&&jr.hasAttribute("tabindex")&&!Jr)return Vn;if(It==="next"?Vn=(Vn+1)%ve.length:Vn=(Vn-1+ve.length)%ve.length,Vn===kt)return-1}}const et=en(({event:kt,index:It,reason:Vn})=>{if(be.current=It,It===-1?te.current.removeAttribute("aria-activedescendant"):te.current.setAttribute("aria-activedescendant",`${re}-option-${It}`),L&&["mouse","keyboard","touch"].includes(Vn)&&L(kt,It===-1?null:ve[It],Vn),!ce.current)return;const jr=ce.current.querySelector(`[role="option"].${n}-focused`);jr&&(jr.classList.remove(`${n}-focused`),jr.classList.remove(`${n}-focusVisible`));let Jr=ce.current;if(ce.current.getAttribute("role")!=="listbox"&&(Jr=ce.current.parentElement.querySelector('[role="listbox"]')),!Jr)return;if(It===-1){Jr.scrollTop=0;return}const xa=ce.current.querySelector(`[data-option-index="${It}"]`);if(xa&&(xa.classList.add(`${n}-focused`),Vn==="keyboard"&&xa.classList.add(`${n}-focusVisible`),Jr.scrollHeight>Jr.clientHeight&&Vn!=="mouse"&&Vn!=="touch")){const Xo=xa,La=Jr.clientHeight+Jr.scrollTop,ad=Xo.offsetTop+Xo.offsetHeight;ad>La?Jr.scrollTop=ad-Jr.clientHeight:Xo.offsetTop-Xo.offsetHeight*(S?1.3:0)<Jr.scrollTop&&(Jr.scrollTop=Xo.offsetTop-Xo.offsetHeight*(S?1.3:0))}}),it=en(({event:kt,diff:It,direction:Vn="next",reason:jr})=>{if(!we)return;const xa=Ke((()=>{const Xo=ve.length-1;if(It==="reset")return he;if(It==="start")return 0;if(It==="end")return Xo;const La=be.current+It;return La<0?La===-1&&O?-1:m&&be.current!==-1||Math.abs(It)>1?0:Xo:La>Xo?La===Xo+1&&O?-1:m||Math.abs(It)>1?Xo:0:La})(),Vn);if(et({index:xa,reason:jr,event:kt}),r&&It!=="reset")if(xa===-1)te.current.value=de;else{const Xo=ee(ve[xa]);te.current.value=Xo,Xo.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&te.current.setSelectionRange(de.length,Xo.length)}}),Ft=!n_e({array1:De.filteredOptions,array2:ve,parser:ee}),Dt=()=>{const kt=(It,Vn)=>{const jr=It?ee(It):"",Jr=Vn?ee(Vn):"";return jr===Jr};if(be.current!==-1&&!n_e({array1:De.filteredOptions,array2:ve,parser:ee})&&De.inputValue===de&&(P?Me.length===De.value.length&&De.value.every((It,Vn)=>ee(Me[Vn])===ee(It)):kt(De.value,Me))){const It=De.filteredOptions[be.current];if(It)return ve.findIndex(Vn=>ee(Vn)===ee(It))}return-1},Qn=v.useCallback(()=>{if(!we)return;const kt=Dt();if(kt!==-1){be.current=kt;return}const It=P?Me[0]:Me;if(ve.length===0||It==null){it({diff:"reset"});return}if(ce.current){if(It!=null){const Vn=ve[be.current];if(P&&Vn&&Me.findIndex(Jr=>R(Vn,Jr))!==-1)return;const jr=ve.findIndex(Jr=>R(Jr,It));jr===-1?it({diff:"reset"}):et({index:jr});return}if(be.current>=ve.length-1){et({index:ve.length-1});return}et({index:be.current})}},[ve.length,P?!1:Me,y,it,et,we,de,P]),ir=en(kt=>{yfe(ce,kt),kt&&Qn()});v.useEffect(()=>{Ft&&Qn()},[Qn,Ft]);const Hn=kt=>{Ee||(Ge(!0),Ie(!0),j&&j(kt))},Zn=(kt,It)=>{Ee&&(Ge(!1),N&&N(kt,It))},Br=(kt,It,Vn,jr)=>{if(P){if(Me.length===It.length&&Me.every((Jr,xa)=>Jr===It[xa]))return}else if(Me===It)return;F&&F(kt,It,Vn,jr),Oe(It)},vr=v.useRef(!1),Fe=(kt,It,Vn="selectOption",jr="options")=>{let Jr=Vn,xa=It;if(P){xa=Array.isArray(Me)?Me.slice():[];const Xo=xa.findIndex(La=>R(It,La));Xo===-1?xa.push(It):jr!=="freeSolo"&&(xa.splice(Xo,1),Jr="removeOption")}Ce(kt,xa,Jr),Br(kt,xa,Jr,{option:It}),!p&&(!kt||!kt.ctrlKey&&!kt.metaKey)&&Zn(kt,Jr),(a===!0||a==="touch"&&vr.current||a==="mouse"&&!vr.current)&&te.current.blur()};function He(kt,It){if(kt===-1)return-1;let Vn=kt;for(;;){if(It==="next"&&Vn===Me.length||It==="previous"&&Vn===-1)return-1;const jr=U?"data-item-index":"data-tag-index",Jr=oe.querySelector(`[${jr}="${Vn}"]`);if(!Jr||!Jr.hasAttribute("tabindex")||Jr.disabled||Jr.getAttribute("aria-disabled")==="true")Vn+=It==="next"?1:-1;else return Vn}}const Xe=(kt,It)=>{if(!P)return;de===""&&Zn(kt,"toggleInput");let Vn=ne;ne===-1?de===""&&It==="previous"&&(Vn=Me.length-1):(Vn+=It==="next"?1:-1,Vn<0&&(Vn=0),Vn===Me.length&&(Vn=-1)),Vn=He(Vn,It),le(Vn),Ve(Vn)},ct=kt=>{se.current=!0,ie(""),W&&W(kt,"","clear"),Br(kt,P?[]:null,"clear")},lt=kt=>It=>{if(kt.onKeyDown&&kt.onKeyDown(It),!It.defaultMuiPrevented&&(ne!==-1&&!["ArrowLeft","ArrowRight"].includes(It.key)&&(le(-1),Ve(-1)),It.which!==229))switch(It.key){case"Home":we&&A&&(It.preventDefault(),it({diff:"start",direction:"next",reason:"keyboard",event:It}));break;case"End":we&&A&&(It.preventDefault(),it({diff:"end",direction:"previous",reason:"keyboard",event:It}));break;case"PageUp":It.preventDefault(),it({diff:-i_e,direction:"previous",reason:"keyboard",event:It}),Hn(It);break;case"PageDown":It.preventDefault(),it({diff:i_e,direction:"next",reason:"keyboard",event:It}),Hn(It);break;case"ArrowDown":It.preventDefault(),it({diff:1,direction:"next",reason:"keyboard",event:It}),Hn(It);break;case"ArrowUp":It.preventDefault(),it({diff:-1,direction:"previous",reason:"keyboard",event:It}),Hn(It);break;case"ArrowLeft":!P&&U?Ve(0):Xe(It,"previous");break;case"ArrowRight":!P&&U?Ve(-1):Xe(It,"next");break;case"Enter":if(be.current!==-1&&we){const Vn=ve[be.current],jr=C?C(Vn):!1;if(It.preventDefault(),jr)return;Fe(It,Vn,"selectOption"),r&&te.current.setSelectionRange(te.current.value.length,te.current.value.length)}else M&&de!==""&&Le===!1&&(P&&It.preventDefault(),Fe(It,de,"createOption","freeSolo"));break;case"Escape":we?(It.preventDefault(),It.stopPropagation(),Zn(It,"escape")):l&&(de!==""||P&&Me.length>0||U)&&(It.preventDefault(),It.stopPropagation(),ct(It));break;case"Backspace":if(P&&!$&&de===""&&Me.length>0){const Vn=ne===-1?Me.length-1:ne,jr=Me.slice();jr.splice(Vn,1),Br(It,jr,"removeOption",{option:Me[Vn]})}!P&&U&&!$&&(Oe(null),Ve(-1));break;case"Delete":if(P&&!$&&de===""&&Me.length>0&&ne!==-1){const Vn=ne,jr=Me.slice();jr.splice(Vn,1),Br(It,jr,"removeOption",{option:Me[Vn]})}!P&&U&&!$&&(Oe(null),Ve(-1));break}},Je=kt=>{Ae(!0),G&&!se.current&&Hn(kt)},ft=kt=>{if(t(ce)){te.current.focus();return}Ae(!1),pe.current=!0,se.current=!1,o&&be.current!==-1&&we?Fe(kt,ve[be.current],"blur"):o&&M&&de!==""?Fe(kt,de,"blur","freeSolo"):s&&Ce(kt,Me,"blur"),Zn(kt,"blur")},Tt=kt=>{const It=kt.target.value;de!==It&&(ie(It),Ie(!1),W&&W(kt,It,"input")),It===""?!d&&!P&&Br(kt,null,"clear"):Hn(kt)},St=kt=>{const It=Number(kt.currentTarget.getAttribute("data-option-index"));be.current!==It&&et({event:kt,index:It,reason:"mouse"})},un=kt=>{et({event:kt,index:Number(kt.currentTarget.getAttribute("data-option-index")),reason:"touch"}),vr.current=!0},Un=kt=>{const It=Number(kt.currentTarget.getAttribute("data-option-index"));Fe(kt,ve[It],"selectOption"),vr.current=!1},Yr=kt=>It=>{const Vn=Me.slice();Vn.splice(kt,1),Br(It,Vn,"removeOption",{option:Me[kt]})},yr=kt=>{Br(kt,null,"removeOption",{option:Me})},dr=kt=>{Ee?Zn(kt,"toggleInput"):Hn(kt)},si=kt=>{kt.currentTarget.contains(kt.target)&&kt.target.getAttribute("id")!==re&&kt.preventDefault()},$o=kt=>{kt.currentTarget.contains(kt.target)&&(te.current.focus(),X&&pe.current&&te.current.selectionEnd-te.current.selectionStart===0&&te.current.select(),pe.current=!1)},Uo=kt=>{!h&&(de===""||!Ee)&&dr(kt)};let Qi=M&&de.length>0;Qi=Qi||(P?Me.length>0:Me!==null);let di=ve;return S&&(di=ve.reduce((kt,It,Vn)=>{const jr=S(It);return kt.length>0&&kt[kt.length-1].group===jr?kt[kt.length-1].options.push(It):kt.push({key:Vn,index:Vn,group:jr,options:[It]}),kt},[])),h&&ue&&ft(),{getRootProps:(kt={})=>({...kt,onKeyDown:lt(kt),onMouseDown:si,onClick:$o}),getInputLabelProps:()=>({id:`${re}-label`,htmlFor:re}),getInputProps:()=>({id:re,value:de,onBlur:ft,onFocus:Je,onChange:Tt,onMouseDown:Uo,"aria-activedescendant":we?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ze?`${re}-listbox`:void 0,"aria-expanded":ze,autoComplete:"off",ref:te,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ct}),getItemProps:({index:kt=0}={})=>({...P&&{key:kt},...U?{"data-item-index":kt}:{"data-tag-index":kt},tabIndex:-1,...!$&&{onDelete:P?Yr(kt):yr}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:dr}),getTagProps:({index:kt})=>({key:kt,"data-tag-index":kt,tabIndex:-1,...!$&&{onDelete:Yr(kt)}}),getListboxProps:()=>({role:"listbox",id:`${re}-listbox`,"aria-labelledby":`${re}-label`,ref:ir,onMouseDown:kt=>{kt.preventDefault()}}),getOptionProps:({index:kt,option:It})=>{const Vn=(P?Me:[Me]).some(Jr=>Jr!=null&&R(It,Jr)),jr=C?C(It):!1;return{key:x?.(It)??ee(It),tabIndex:-1,role:"option",id:`${re}-option-${kt}`,onMouseMove:St,onClick:Un,onTouchStart:un,"data-option-index":kt,"aria-disabled":jr,"aria-selected":Vn}},id:re,inputValue:de,value:Me,dirty:Qi,expanded:we&&oe,popupOpen:we,focused:ue||ne!==-1,anchorEl:oe,setAnchorEl:ae,focusedItem:ne,focusedTag:ne,groupedOptions:di}}function OWn(e){return Bn("MuiListSubheader",e)}Ln("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const zWn=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${jt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Yt(a,OWn,t)},TWn=rt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${jt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(kr(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Ege=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:o,component:a,disableGutters:s,disableSticky:l,inset:c},p=zWn(d);return f.jsx(TWn,{as:a,className:nr(p.root,i),ref:n,ownerState:d,...u})});Ege&&(Ege.muiSkipListHighlight=!0);const EWn=Pu(f.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"}));function RWn(e){return Bn("MuiAutocomplete",e)}const wo=Ln("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var a_e,s_e;const IWn=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${jt(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Yt(d,RWn,t)},PWn=rt("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${wo.tag}`]:t.tag},{[`& .${wo.tag}`]:t[`tagSize${jt(s)}`]},{[`& .${wo.inputRoot}`]:t.inputRoot},{[`& .${wo.input}`]:t.input},{[`& .${wo.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${wo.focused} .${wo.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${wo.clearIndicator}`]:{visibility:"visible"}},[`& .${wo.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${wo.inputRoot}`]:{[`.${wo.hasPopupIcon}&, .${wo.hasClearIcon}&`]:{paddingRight:30},[`.${wo.hasPopupIcon}.${wo.hasClearIcon}&`]:{paddingRight:56},[`& .${wo.input}`]:{width:0,minWidth:30}},[`& .${UC.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${UC.root}.${vd.sizeSmall}`]:{[`& .${UC.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Gh.root}`]:{padding:9,[`.${wo.hasPopupIcon}&, .${wo.hasClearIcon}&`]:{paddingRight:39},[`.${wo.hasPopupIcon}.${wo.hasClearIcon}&`]:{paddingRight:65},[`& .${wo.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${wo.endAdornment}`]:{right:9}},[`& .${Gh.root}.${vd.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${wo.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Hp.root}`]:{paddingTop:19,paddingLeft:8,[`.${wo.hasPopupIcon}&, .${wo.hasClearIcon}&`]:{paddingRight:39},[`.${wo.hasPopupIcon}.${wo.hasClearIcon}&`]:{paddingRight:65},[`& .${Hp.input}`]:{padding:"7px 4px"},[`& .${wo.endAdornment}`]:{right:9}},[`& .${Hp.root}.${vd.sizeSmall}`]:{paddingBottom:1,[`& .${Hp.input}`]:{padding:"2.5px 4px"}},[`& .${vd.hiddenLabel}`]:{paddingTop:8},[`& .${Hp.root}.${vd.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${wo.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Hp.root}.${vd.hiddenLabel}.${vd.sizeSmall}`]:{[`& .${wo.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${wo.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${wo.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${wo.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${wo.inputRoot}`]:{flexWrap:"wrap"}}}]}),DWn=rt("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),kWn=rt(Zp,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),LWn=rt(Zp,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),_Wn=rt(ID,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wo.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(kr(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),NWn=rt(I3,{name:"MuiAutocomplete",slot:"Paper"})(kr(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),FWn=rt("div",{name:"MuiAutocomplete",slot:"Loading"})(kr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),WWn=rt("div",{name:"MuiAutocomplete",slot:"NoOptions"})(kr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),qWn=rt("ul",{name:"MuiAutocomplete",slot:"Listbox"})(kr(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${wo.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${wo.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${wo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${wo.focused}`]:{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.vars||e).palette.action.selected}},[`&.${wo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),BWn=rt(Ege,{name:"MuiAutocomplete",slot:"GroupLabel"})(kr(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),jWn=rt("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${wo.option}`]:{paddingLeft:24}}),O1t=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=a_e||(a_e=f.jsx(EWn,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:p=!1,clearText:h="Clear",closeText:g="Close",componentsProps:m,defaultValue:b=r.multiple?[]:null,disableClearable:y=!1,disableCloseOnSelect:M=!1,disabled:C=!1,disabledItemsFocusable:x=!1,disableListWrap:w=!1,disablePortal:S=!1,filterOptions:A,filterSelectedOptions:z=!1,forcePopupIcon:O="auto",freeSolo:T=!1,fullWidth:R=!1,getLimitTagsText:P=fi=>`+${fi}`,getOptionDisabled:F,getOptionKey:N,getOptionLabel:L,isOptionEqualToValue:W,groupBy:j,handleHomeEndKeys:V=!r.freeSolo,id:G,includeInputInList:q=!1,inputValue:$,limitTags:U=-1,ListboxComponent:X,ListboxProps:Q,loading:re=!1,loadingText:ee="Loading…",multiple:se=!1,noOptionsText:pe="No options",onChange:te,onClose:ce,onHighlightChange:oe,onInputChange:ae,onOpen:ne,open:le,openOnFocus:he=!1,openText:be="Open",options:me,PaperComponent:Me,PopperComponent:Oe,popupIcon:de=s_e||(s_e=f.jsx(qlt,{})),readOnly:ie=!1,renderGroup:ue,renderInput:Ae,renderOption:Ce,renderTags:Ee,renderValue:Ge,selectOnFocus:_e=!r.freeSolo,size:Ie="medium",slots:Le={},slotProps:we={},value:ve,...De}=r,{getRootProps:ze,getInputProps:Ve,getInputLabelProps:Ke,getPopupIndicatorProps:et,getClearProps:it,getItemProps:Ft,getListboxProps:Dt,getOptionProps:Qn,value:ir,dirty:Hn,expanded:Zn,id:Br,popupOpen:vr,focused:Fe,focusedItem:He,anchorEl:Xe,setAnchorEl:ct,inputValue:lt,groupedOptions:Je}=AWn({...r,componentName:"Autocomplete"}),ft=!y&&!C&&Hn&&!ie,Tt=(!T||O===!0)&&O!==!1,{onMouseDown:St}=Ve(),{ref:un,...Un}=Dt(),yr=L||(fi=>fi.label??fi),dr={...r,disablePortal:S,expanded:Zn,focused:Fe,fullWidth:R,getOptionLabel:yr,hasClearIcon:ft,hasPopupIcon:Tt,inputFocused:He===-1,popupOpen:vr,size:Ie},si=IWn(dr),$o={slots:{paper:Me,popper:Oe,...Le},slotProps:{chip:l,listbox:Q,...m,...we}},[Uo,Qi]=ni("listbox",{elementType:qWn,externalForwardedProps:$o,ownerState:dr,className:si.listbox,additionalProps:Un,ref:un}),[di,kt]=ni("paper",{elementType:I3,externalForwardedProps:$o,ownerState:dr,className:si.paper}),[It,Vn]=ni("popper",{elementType:ID,externalForwardedProps:$o,ownerState:dr,className:si.popper,additionalProps:{disablePortal:S,style:{width:Xe?Xe.clientWidth:null},role:"presentation",anchorEl:Xe,open:vr}});let jr;const Jr=fi=>({className:si.tag,disabled:C,...Ft(fi)});if(se?ir.length>0&&(Ee?jr=Ee(ir,Jr,dr):Ge?jr=Ge(ir,Jr,dr):jr=ir.map((fi,Ns)=>{const{key:_u,...kd}=Jr({index:Ns});return f.jsx(NQ,{label:yr(fi),size:Ie,...kd,...$o.slotProps.chip},_u)})):Ge&&ir!=null&&(jr=Ge(ir,Jr,dr)),U>-1&&Array.isArray(jr)){const fi=jr.length-U;!Fe&&fi>0&&(jr=jr.splice(0,U),jr.push(f.jsx("span",{className:si.tag,children:P(fi)},jr.length)))}const Xo=ue||(fi=>f.jsxs("li",{children:[f.jsx(BWn,{className:si.groupLabel,ownerState:dr,component:"div",children:fi.group}),f.jsx(jWn,{className:si.groupUl,ownerState:dr,children:fi.children})]},fi.key)),ad=Ce||((fi,Ns)=>{const{key:_u,...kd}=fi;return f.jsx("li",{...kd,children:yr(Ns)},_u)}),Lu=(fi,Ns)=>{const _u=Qn({option:fi,index:Ns});return ad({..._u,className:si.option},fi,{selected:_u["aria-selected"],index:Ns,inputValue:lt},dr)},Lc=$o.slotProps.clearIndicator,Dd=$o.slotProps.popupIndicator;return f.jsxs(v.Fragment,{children:[f.jsx(PWn,{ref:n,className:nr(si.root,c),ownerState:dr,...ze(De),children:Ae({id:Br,disabled:C,fullWidth:!0,size:Ie==="small"?"small":void 0,InputLabelProps:Ke(),InputProps:{ref:ct,className:si.inputRoot,startAdornment:jr,onMouseDown:fi=>{fi.target===fi.currentTarget&&St(fi)},...(ft||Tt)&&{endAdornment:f.jsxs(DWn,{className:si.endAdornment,ownerState:dr,children:[ft?f.jsx(kWn,{...it(),"aria-label":h,title:h,ownerState:dr,...Lc,className:nr(si.clearIndicator,Lc?.className),children:u}):null,Tt?f.jsx(LWn,{...et(),disabled:C,"aria-label":vr?g:be,title:vr?g:be,ownerState:dr,...Dd,className:nr(si.popupIndicator,Dd?.className),children:de}):null]})}},inputProps:{className:si.input,disabled:C,readOnly:ie,...Ve()}})}),Xe?f.jsx(_Wn,{as:It,...Vn,children:f.jsxs(NWn,{as:di,...kt,children:[re&&Je.length===0?f.jsx(FWn,{className:si.loading,ownerState:dr,children:ee}):null,Je.length===0&&!T&&!re?f.jsx(WWn,{className:si.noOptions,ownerState:dr,role:"presentation",onMouseDown:fi=>{fi.preventDefault()},children:pe}):null,Je.length>0?f.jsx(Uo,{as:X,...Qi,children:Je.map((fi,Ns)=>j?Xo({key:fi.key,group:fi.group,children:fi.options.map((_u,kd)=>Lu(_u,fi.index+kd))}):Lu(fi,Ns))}):null]})}):null]})});function HWn(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=cCe({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!i&&(a=!0);const{badgeContent:s,max:l=r}=a?o:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function VWn(e){return Bn("MuiBadge",e)}const aC=Ln("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),boe=10,yoe=4,GWn=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:a={}}=e,s={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${jt(n.vertical)}${jt(n.horizontal)}`,`anchorOrigin${jt(n.vertical)}${jt(n.horizontal)}${jt(i)}`,`overlap${jt(i)}`,t!=="default"&&`color${jt(t)}`]};return Yt(s,VWn,a)},$Wn=rt("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),UWn=rt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${jt(n.anchorOrigin.vertical)}${jt(n.anchorOrigin.horizontal)}${jt(n.overlap)}`],n.color!=="default"&&t[`color${jt(n.color)}`],n.invisible&&t.invisible]}})(kr(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:boe*2,lineHeight:1,padding:"0 6px",height:boe*2,borderRadius:boe,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(_l(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:yoe,height:yoe*2,minWidth:yoe*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${aC.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${aC.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${aC.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${aC.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${aC.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${aC.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${aC.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${aC.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function l_e(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const XWn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiBadge"}),{anchorOrigin:i,className:o,classes:a,component:s,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:p="default",invisible:h=!1,max:g=99,badgeContent:m,slots:b,slotProps:y,showZero:M=!1,variant:C="standard",...x}=r,{badgeContent:w,invisible:S,max:A,displayValue:z}=HWn({max:g,invisible:h,badgeContent:m,showZero:M}),O=cCe({anchorOrigin:l_e(i),color:p,overlap:d,variant:C,badgeContent:m}),T=S||w==null&&C!=="dot",{color:R=p,overlap:P=d,anchorOrigin:F,variant:N=C}=T?O:r,L=l_e(F),W=N!=="dot"?z:void 0,j={...r,badgeContent:w,invisible:T,max:A,displayValue:W,showZero:M,anchorOrigin:L,color:R,overlap:P,variant:N},V=GWn(j),G={slots:{root:b?.root??l.Root,badge:b?.badge??l.Badge},slotProps:{root:y?.root??c.root,badge:y?.badge??c.badge}},[q,$]=ni("root",{elementType:$Wn,externalForwardedProps:{...G,...x},ownerState:j,className:nr(V.root,o),ref:n,additionalProps:{as:s}}),[U,X]=ni("badge",{elementType:UWn,externalForwardedProps:G,ownerState:j,className:V.badge});return f.jsxs(q,{...$,children:[u,f.jsx(U,{...X,children:W})]})});function YWn(e){return Bn("PrivateSwitchBase",e)}Ln("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const KWn=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${jt(i)}`],input:["input"]};return Yt(o,YWn,t)},QWn=rt(Pb,{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}}]}),ZWn=rt("input",{name:"MuiSwitchBase",shouldForwardProp:Cp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),z1t=v.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:g,onBlur:m,onChange:b,onFocus:y,readOnly:M,required:C=!1,tabIndex:x,type:w,value:S,slots:A={},slotProps:z={},...O}=t,[T,R]=up({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),P=mh(),F=re=>{y&&y(re),P&&P.onFocus&&P.onFocus(re)},N=re=>{m&&m(re),P&&P.onBlur&&P.onBlur(re)},L=re=>{if(re.nativeEvent.defaultPrevented)return;const ee=re.target.checked;R(ee),b&&b(re,ee)};let W=s;P&&typeof W>"u"&&(W=P.disabled);const j=w==="checkbox"||w==="radio",V={...t,checked:T,disabled:W,disableFocusRipple:l,edge:c},G=KWn(V),q={slots:A,slotProps:{input:p,...z}},[$,U]=ni("root",{ref:n,elementType:QWn,className:G.root,shouldForwardComponentProp:!0,externalForwardedProps:{...q,component:"span",...O},getSlotProps:re=>({...re,onFocus:ee=>{re.onFocus?.(ee),F(ee)},onBlur:ee=>{re.onBlur?.(ee),N(ee)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:W,role:void 0,tabIndex:null}}),[X,Q]=ni("input",{ref:h,elementType:ZWn,className:G.input,externalForwardedProps:q,getSlotProps:re=>({...re,onChange:ee=>{re.onChange?.(ee),L(ee)}}),ownerState:V,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:W,id:j?d:void 0,name:g,readOnly:M,required:C,tabIndex:x,type:w,...w==="checkbox"&&S===void 0?{}:{value:S}}});return f.jsxs($,{...U,children:[f.jsx(X,{...Q}),T?o:u]})}),JWn=Pu(f.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"})),eqn=Pu(f.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"})),tqn=Pu(f.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 nqn(e){return Bn("MuiCheckbox",e)}const Moe=Ln("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),rqn=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${jt(r)}`,`size${jt(i)}`]},a=Yt(o,nqn,t);return{...t,...a}},iqn=rt(z1t,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${jt(n.size)}`],n.color!=="default"&&t[`color${jt(n.color)}`]]}})(kr(({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(_l()).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(_l()).map(([t])=>({props:{color:t},style:{[`&.${Moe.checked}, &.${Moe.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Moe.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),oqn=f.jsx(eqn,{}),aqn=f.jsx(JWn,{}),sqn=f.jsx(tqn,{}),T1t=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiCheckbox"}),{checkedIcon:i=oqn,color:o="primary",icon:a=aqn,indeterminate:s=!1,indeterminateIcon:l=sqn,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:h={},slotProps:g={},...m}=r,b=s?l:a,y=s?l:i,M={...r,disableRipple:d,color:o,indeterminate:s,size:u},C=rqn(M),x=g.input??c,[w,S]=ni("root",{ref:n,elementType:iqn,className:nr(C.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...m},ownerState:M,additionalProps:{type:"checkbox",icon:v.cloneElement(b,{fontSize:b.props.fontSize??u}),checkedIcon:v.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:d,slots:h,slotProps:{input:olt(typeof x=="function"?x(M):x,{"data-indeterminate":s})}}});return f.jsx(w,{...S,classes:C})});function lqn(e){return Bn("MuiLinearProgress",e)}Ln("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Rge=4,Ige=Uf`
  0% {
    left: -35%;
    right: 100%;
  }

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

  100% {
    left: 100%;
    right: -90%;
  }
`,cqn=typeof Ige!="string"?zw`
        animation: ${Ige} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,Pge=Uf`
  0% {
    left: -200%;
    right: 100%;
  }

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

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

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

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,dqn=typeof Dge!="string"?zw`
        animation: ${Dge} 3s infinite linear;
      `:null,pqn=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${jt(r)}`,n],dashed:["dashed",`dashedColor${jt(r)}`],bar1:["bar","bar1",`barColor${jt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${jt(r)}`,n==="buffer"&&`color${jt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Yt(i,lqn,t)},Qxe=(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),hqn=rt("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${jt(n.color)}`],t[n.variant]]}})(kr(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{backgroundColor:Qxe(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)"}}]}))),fqn=rt("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${jt(n.color)}`]]}})(kr(({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(_l()).map(([t])=>{const n=Qxe(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),dqn||{animation:`${Dge} 3s infinite linear`}),gqn=rt("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(kr(({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(_l()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Rge}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Rge}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:cqn||{animation:`${Ige} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),mqn=rt("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(kr(({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(_l()).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(_l()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Qxe(e,t),transition:`transform .${Rge}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:uqn||{animation:`${Pge} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),vqn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:a,valueBuffer:s,variant:l="indeterminate",...c}=r,u={...r,color:o,variant:l},d=pqn(u),p=ts(),h={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){h["aria-valuenow"]=Math.round(a),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let m=a-100;p&&(m=-m),g.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&s!==void 0){let m=(s||0)-100;p&&(m=-m),g.bar2.transform=`translateX(${m}%)`}return f.jsxs(hqn,{className:nr(d.root,i),ownerState:u,role:"progressbar",...h,ref:n,...c,children:[l==="buffer"?f.jsx(fqn,{className:d.dashed,ownerState:u}):null,f.jsx(gqn,{className:d.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:f.jsx(mqn,{className:d.bar2,ownerState:u,style:g.bar2})]})});function bqn(e){return Bn("MuiFormControlLabel",e)}const FR=Ln("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),yqn=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${jt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Yt(a,bqn,t)},Mqn=rt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${FR.label}`]:t.label},t.root,t[`labelPlacement${jt(n.labelPlacement)}`]]}})(kr(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${FR.disabled}`]:{cursor:"default"},[`& .${FR.label}`]:{[`&.${FR.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}}]}))),Cqn=rt("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(kr(({theme:e})=>({[`&.${FR.error}`]:{color:(e.vars||e).palette.error.main}}))),E1t=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFormControlLabel"}),{checked:i,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:p="end",name:h,onChange:g,required:m,slots:b={},slotProps:y={},value:M,...C}=r,x=mh(),w=l??s.props.disabled??x?.disabled,S=m??s.props.required,A={disabled:w,required:S};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof s.props[L]>"u"&&typeof r[L]<"u"&&(A[L]=r[L])});const z=P3({props:r,muiFormControl:x,states:["error"]}),O={...r,disabled:w,labelPlacement:p,required:S,error:z.error},T=yqn(O),R={slots:b,slotProps:{...a,...y}},[P,F]=ni("typography",{elementType:i1,externalForwardedProps:R,ownerState:O});let N=d;return N!=null&&N.type!==i1&&!c&&(N=f.jsx(P,{component:"span",...F,className:nr(T.label,F?.className),children:N})),f.jsxs(Mqn,{className:nr(T.root,o),ownerState:O,ref:n,...C,children:[v.cloneElement(s,A),S?f.jsxs("div",{children:[N,f.jsxs(Cqn,{ownerState:O,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):N]})});function xqn(e){return Bn("MuiSwitch",e)}const j0=Ln("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),wqn=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${jt(n)}`,`size${jt(r)}`],switchBase:["switchBase",`color${jt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Yt(s,xqn,t);return{...t,...l}},Sqn=rt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${jt(n.edge)}`],t[`size${jt(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${j0.thumb}`]:{width:16,height:16},[`& .${j0.switchBase}`]:{padding:4,[`&.${j0.checked}`]:{transform:"translateX(16px)"}}}}]}),Aqn=rt(z1t,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${j0.input}`]:t.input},n.color!=="default"&&t[`color${jt(n.color)}`]]}})(kr(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${j0.checked}`]:{transform:"translateX(20px)"},[`&.${j0.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${j0.checked} + .${j0.track}`]:{opacity:.5},[`&.${j0.disabled} + .${j0.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${j0.input}`]:{left:"-100%",width:"300%"}})),kr(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(_l(["light"])).map(([t])=>({props:{color:t},style:{[`&.${j0.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${j0.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${j0.checked} + .${j0.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Oqn=rt("span",{name:"MuiSwitch",slot:"Track"})(kr(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),zqn=rt("span",{name:"MuiSwitch",slot:"Thumb"})(kr(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),c_e=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:u={},...d}=r,p={...r,color:o,edge:a,size:s},h=wqn(p),g={slots:c,slotProps:u},[m,b]=ni("root",{className:nr(h.root,i),elementType:Sqn,externalForwardedProps:g,ownerState:p,additionalProps:{sx:l}}),[y,M]=ni("thumb",{className:h.thumb,elementType:zqn,externalForwardedProps:g,ownerState:p}),C=f.jsx(y,{...M}),[x,w]=ni("track",{className:h.track,elementType:Oqn,externalForwardedProps:g,ownerState:p});return f.jsxs(m,{...b,children:[f.jsx(Aqn,{type:"checkbox",icon:C,checkedIcon:C,ref:n,ownerState:p,...d,classes:{...h,root:h.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(p):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(p):u.input}}}),f.jsx(x,{...w})]})});function Tqn(e){return Bn("MuiTooltip",e)}const Zl=Ln("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Eqn(e){return Math.round(e*1e5)/1e5}const Rqn=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${jt(o.split("-")[0])}`],arrow:["arrow"]};return Yt(a,Tqn,t)},Iqn=rt(ID,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(kr(({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"] .${Zl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Zl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Zl.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Zl.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Zl.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Zl.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Zl.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Zl.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Pqn=rt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${jt(n.placement.split("-")[0])}`]]}})(kr(({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,[`.${Zl.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Zl.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Zl.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Zl.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:`${Eqn(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Zl.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Zl.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Zl.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Zl.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Zl.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Zl.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Zl.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Zl.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Zl.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Zl.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Dqn=rt("span",{name:"MuiTooltip",slot:"Arrow"})(kr(({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 P8=!1;const u_e=new RQ;let K4={x:0,y:0};function D8(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const kqn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:b=700,followCursor:y=!1,id:M,leaveDelay:C=0,leaveTouchDelay:x=1500,onClose:w,onOpen:S,open:A,placement:z="bottom",PopperComponent:O,PopperProps:T={},slotProps:R={},slots:P={},title:F,TransitionComponent:N,TransitionProps:L,...W}=r,j=v.isValidElement(o)?o:f.jsx("span",{children:o}),V=Ub(),G=ts(),[q,$]=v.useState(),[U,X]=v.useState(null),Q=v.useRef(!1),re=p||y,ee=Qp(),se=Qp(),pe=Qp(),te=Qp(),[ce,oe]=up({controlled:A,default:!1,name:"Tooltip",state:"open"});let ae=ce;const ne=Vi(M),le=v.useRef(),he=en(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),te.clear()});v.useEffect(()=>he,[he]);const be=He=>{u_e.clear(),P8=!0,oe(!0),S&&!ae&&S(He)},me=en(He=>{u_e.start(800+C,()=>{P8=!1}),oe(!1),w&&ae&&w(He),ee.start(V.transitions.duration.shortest,()=>{Q.current=!1})}),Me=He=>{Q.current&&He.type!=="touchstart"||(q&&q.removeAttribute("title"),se.clear(),pe.clear(),g||P8&&m?se.start(P8?m:g,()=>{be(He)}):be(He))},Oe=He=>{se.clear(),pe.start(C,()=>{me(He)})},[,de]=v.useState(!1),ie=He=>{c9(He.target)||(de(!1),Oe(He))},ue=He=>{q||$(He.currentTarget),c9(He.target)&&(de(!0),Me(He))},Ae=He=>{Q.current=!0;const Xe=j.props;Xe.onTouchStart&&Xe.onTouchStart(He)},Ce=He=>{Ae(He),pe.clear(),ee.clear(),he(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",te.start(b,()=>{document.body.style.WebkitUserSelect=le.current,Me(He)})},Ee=He=>{j.props.onTouchEnd&&j.props.onTouchEnd(He),he(),pe.start(x,()=>{me(He)})};v.useEffect(()=>{if(!ae)return;function He(Xe){Xe.key==="Escape"&&me(Xe)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[me,ae]);const Ge=Pi(z3(j),$,n);!F&&F!==0&&(ae=!1);const _e=v.useRef(),Ie=He=>{const Xe=j.props;Xe.onMouseMove&&Xe.onMouseMove(He),K4={x:He.clientX,y:He.clientY},_e.current&&_e.current.update()},Le={},we=typeof F=="string";c?(Le.title=!ae&&we&&!d?F:null,Le["aria-describedby"]=ae?ne:null):(Le["aria-label"]=we?F:null,Le["aria-labelledby"]=ae&&!we?ne:null);const ve={...Le,...W,...j.props,className:nr(W.className,j.props.className),onTouchStart:Ae,ref:Ge,...y?{onMouseMove:Ie}:{}},De={};h||(ve.onTouchStart=Ce,ve.onTouchEnd=Ee),d||(ve.onMouseOver=D8(Me,ve.onMouseOver),ve.onMouseLeave=D8(Oe,ve.onMouseLeave),re||(De.onMouseOver=Me,De.onMouseLeave=Oe)),u||(ve.onFocus=D8(ue,ve.onFocus),ve.onBlur=D8(ie,ve.onBlur),re||(De.onFocus=ue,De.onBlur=ie));const ze={...r,isRtl:G,arrow:i,disableInteractive:re,placement:z,PopperComponentProp:O,touch:Q.current},Ve=typeof R.popper=="function"?R.popper(ze):R.popper,Ke=v.useMemo(()=>{let He=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return T.popperOptions?.modifiers&&(He=He.concat(T.popperOptions.modifiers)),Ve?.popperOptions?.modifiers&&(He=He.concat(Ve.popperOptions.modifiers)),{...T.popperOptions,...Ve?.popperOptions,modifiers:He}},[U,T.popperOptions,Ve?.popperOptions]),et=Rqn(ze),it=typeof R.transition=="function"?R.transition(ze):R.transition,Ft={slots:{popper:s.Popper,transition:s.Transition??N,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:R.arrow??l.arrow,popper:{...T,...Ve??l.popper},tooltip:R.tooltip??l.tooltip,transition:{...L,...it??l.transition}}},[Dt,Qn]=ni("popper",{elementType:Iqn,externalForwardedProps:Ft,ownerState:ze,className:nr(et.popper,T?.className)}),[ir,Hn]=ni("transition",{elementType:bP,externalForwardedProps:Ft,ownerState:ze}),[Zn,Br]=ni("tooltip",{elementType:Pqn,className:et.tooltip,externalForwardedProps:Ft,ownerState:ze}),[vr,Fe]=ni("arrow",{elementType:Dqn,className:et.arrow,externalForwardedProps:Ft,ownerState:ze,ref:X});return f.jsxs(v.Fragment,{children:[v.cloneElement(j,ve),f.jsx(Dt,{as:O??ID,placement:z,anchorEl:y?{getBoundingClientRect:()=>({top:K4.y,left:K4.x,right:K4.x,bottom:K4.y,width:0,height:0})}:q,popperRef:_e,open:q?ae:!1,id:ne,transition:!0,...De,...Qn,popperOptions:Ke,children:({TransitionProps:He})=>f.jsx(ir,{timeout:V.transitions.duration.shorter,...He,...Hn,children:f.jsxs(Zn,{...Br,children:[F,i?f.jsx(vr,{...Fe}):null]})})})]})}),Lqn=v.createContext(),_qn=v.createContext();function Nqn(e){return Bn("MuiTableCell",e)}const Fqn=Ln("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Wqn=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${jt(r)}`,i!=="normal"&&`padding${jt(i)}`,`size${jt(o)}`]};return Yt(s,Nqn,t)},qqn=rt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${jt(n.size)}`],n.padding!=="normal"&&t[`padding${jt(n.padding)}`],n.align!=="inherit"&&t[`align${jt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(kr(({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",[`&.${Fqn.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}}]}))),kge=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...p}=r,h=v.useContext(Lqn),g=v.useContext(_qn),m=g&&g.variant==="head";let b;a?b=a:b=m?"th":"td";let y=l;b==="td"?y=void 0:!y&&m&&(y="col");const M=d||g&&g.variant,C={...r,align:i,component:b,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:M==="head"&&h&&h.stickyHeader,variant:M},x=Wqn(C);let w=null;return u&&(w=u==="asc"?"ascending":"descending"),f.jsx(qqn,{as:b,ref:n,className:nr(x.root,o),"aria-sort":w,scope:y,ownerState:C,...p})});function Bqn(e){return Bn("MuiToolbar",e)}Ln("MuiToolbar",["root","gutters","regular","dense"]);const jqn=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Yt({root:["root",!n&&"gutters",r]},Bqn,t)},Hqn=rt("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(kr(({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}]}))),Vqn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:o,disableGutters:a,variant:s},u=jqn(c);return f.jsx(Hqn,{as:o,className:nr(u.root,i),ref:n,ownerState:c,...l})}),Gqn=Pu(f.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),$qn=Pu(f.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}));function Uqn(e){return Bn("MuiTablePaginationActions",e)}Ln("MuiTablePaginationActions",["root"]);const Xqn=e=>{const{classes:t}=e;return Yt({root:["root"]},Uqn,t)},Yqn=rt("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),Kqn=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:i,className:o,count:a,disabled:s=!1,getItemAriaLabel:l,nextIconButtonProps:c,onPageChange:u,page:d,rowsPerPage:p,showFirstButton:h,showLastButton:g,slots:m={},slotProps:b={},...y}=r,M=ts(),x=Xqn(r),w=re=>{u(re,0)},S=re=>{u(re,d-1)},A=re=>{u(re,d+1)},z=re=>{u(re,Math.max(0,Math.ceil(a/p)-1))},O=m.firstButton??Zp,T=m.lastButton??Zp,R=m.nextButton??Zp,P=m.previousButton??Zp,F=m.firstButtonIcon??$qn,N=m.lastButtonIcon??Gqn,L=m.nextButtonIcon??Y0t,W=m.previousButtonIcon??X0t,j=M?T:O,V=M?R:P,G=M?P:R,q=M?O:T,$=M?b.lastButton:b.firstButton,U=M?b.nextButton:b.previousButton,X=M?b.previousButton:b.nextButton,Q=M?b.firstButton:b.lastButton;return f.jsxs(Yqn,{ref:n,className:nr(x.root,o),...y,children:[h&&f.jsx(j,{onClick:w,disabled:s||d===0,"aria-label":l("first",d),title:l("first",d),...$,children:M?f.jsx(N,{...b.lastButtonIcon}):f.jsx(F,{...b.firstButtonIcon})}),f.jsx(V,{onClick:S,disabled:s||d===0,color:"inherit","aria-label":l("previous",d),title:l("previous",d),...U??i,children:M?f.jsx(L,{...b.nextButtonIcon}):f.jsx(W,{...b.previousButtonIcon})}),f.jsx(G,{onClick:A,disabled:s||(a!==-1?d>=Math.ceil(a/p)-1:!1),color:"inherit","aria-label":l("next",d),title:l("next",d),...X??c,children:M?f.jsx(W,{...b.previousButtonIcon}):f.jsx(L,{...b.nextButtonIcon})}),g&&f.jsx(q,{onClick:z,disabled:s||d>=Math.ceil(a/p)-1,"aria-label":l("last",d),title:l("last",d),...Q,children:M?f.jsx(F,{...b.firstButtonIcon}):f.jsx(N,{...b.lastButtonIcon})})]})});function Qqn(e){return Bn("MuiTablePagination",e)}const XO=Ln("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var d_e;const Zqn=rt(kge,{name:"MuiTablePagination",slot:"Root"})(kr(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),Jqn=rt(Vqn,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${XO.actions}`]:t.actions,...t.toolbar})})(kr(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${XO.actions}`]:{flexShrink:0,marginLeft:20}}))),e6n=rt("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),t6n=rt("p",{name:"MuiTablePagination",slot:"SelectLabel"})(kr(({theme:e})=>({...e.typography.body2,flexShrink:0}))),n6n=rt(vM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${XO.selectIcon}`]:t.selectIcon,[`& .${XO.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${XO.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),r6n=rt(Zb,{name:"MuiTablePagination",slot:"MenuItem"})({}),i6n=rt("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(kr(({theme:e})=>({...e.typography.body2,flexShrink:0})));function o6n({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function a6n(e){return`Go to ${e} page`}const s6n=e=>{const{classes:t}=e;return Yt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Qqn,t)},l6n=v.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=Kqn,backIconButtonProps:o,colSpan:a,component:s=kge,count:l,disabled:c=!1,getItemAriaLabel:u=a6n,labelDisplayedRows:d=o6n,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:g,onRowsPerPageChange:m,page:b,rowsPerPage:y,rowsPerPageOptions:M=[10,25,50,100],SelectProps:C={},showFirstButton:x=!1,showLastButton:w=!1,slotProps:S={},slots:A={},...z}=r,O=r,T=s6n(O),R=S?.select??C,P=R.native?"option":r6n;let F;(s===kge||s==="td")&&(F=a||1e3);const N=Vi(R.id),L=Vi(R.labelId),W=()=>l===-1?(b+1)*y:y===-1?l:Math.min(l,(b+1)*y),j={slots:A,slotProps:S},[V,G]=ni("root",{ref:n,className:T.root,elementType:Zqn,externalForwardedProps:{...j,component:s,...z},ownerState:O,additionalProps:{colSpan:F}}),[q,$]=ni("toolbar",{className:T.toolbar,elementType:Jqn,externalForwardedProps:j,ownerState:O}),[U,X]=ni("spacer",{className:T.spacer,elementType:e6n,externalForwardedProps:j,ownerState:O}),[Q,re]=ni("selectLabel",{className:T.selectLabel,elementType:t6n,externalForwardedProps:j,ownerState:O,additionalProps:{id:L}}),[ee,se]=ni("select",{className:T.select,elementType:n6n,externalForwardedProps:j,ownerState:O}),[pe,te]=ni("menuItem",{className:T.menuItem,elementType:P,externalForwardedProps:j,ownerState:O}),[ce,oe]=ni("displayedRows",{className:T.displayedRows,elementType:i6n,externalForwardedProps:j,ownerState:O});return f.jsx(V,{...G,children:f.jsxs(q,{...$,children:[f.jsx(U,{...X}),M.length>1&&f.jsx(Q,{...re,children:p}),M.length>1&&f.jsx(ee,{variant:"standard",...!R.variant&&{input:d_e||(d_e=f.jsx(eB,{}))},value:y,onChange:m,id:N,labelId:L,...R,classes:{...R.classes,root:nr(T.input,T.selectRoot,(R.classes||{}).root),select:nr(T.select,(R.classes||{}).select),icon:nr(T.selectIcon,(R.classes||{}).icon)},disabled:c,...se,children:M.map(ae=>v.createElement(pe,{...te,key:ae.label?ae.label:ae,value:ae.value?ae.value:ae},ae.label?ae.label:ae))}),f.jsx(ce,{...oe,children:d({from:l===0?0:b*y+1,to:W(),count:l===-1?-1:l,page:b})}),f.jsx(i,{className:T.actions,backIconButtonProps:o,count:l,nextIconButtonProps:h,onPageChange:g,page:b,rowsPerPage:y,showFirstButton:x,showLastButton:w,slotProps:S.actions,slots:A.actions,getItemAriaLabel:u,disabled:c})]})})});function p_e(e){return e.substring(2).toLowerCase()}function c6n(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function u6n(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=v.useRef(!1),s=v.useRef(null),l=v.useRef(!1),c=v.useRef(!1);v.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Pi(z3(t),s),d=en(g=>{const m=c.current;c.current=!1;const b=Ds(s.current);if(!l.current||!s.current||"clientX"in g&&c6n(g,b))return;if(a.current){a.current=!1;return}let y;g.composedPath?y=g.composedPath().includes(s.current):y=!b.documentElement.contains(g.target)||s.current.contains(g.target),!y&&(n||!m)&&i(g)}),p=g=>m=>{c.current=!0;const b=t.props[g];b&&b(m)},h={ref:u};return o!==!1&&(h[o]=p(o)),v.useEffect(()=>{if(o!==!1){const g=p_e(o),m=Ds(s.current),b=()=>{a.current=!0};return m.addEventListener(g,d),m.addEventListener("touchmove",b),()=>{m.removeEventListener(g,d),m.removeEventListener("touchmove",b)}}},[d,o]),r!==!1&&(h[r]=p(r)),v.useEffect(()=>{if(r!==!1){const g=p_e(r),m=Ds(s.current);return m.addEventListener(g,d),()=>{m.removeEventListener(g,d)}}},[d,r]),v.cloneElement(t,h)}function d6n(e){return Bn("MuiToggleButton",e)}const Coe=Ln("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),p6n=v.createContext({}),h6n=v.createContext(void 0);function f6n(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const g6n=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${jt(o)}`,a]};return Yt(s,d6n,t)},m6n=rt(Pb,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${jt(n.size)}`]]}})(kr(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${Coe.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Coe.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{[`&.${Coe.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),v6n=v.forwardRef(function(t,n){const{value:r,...i}=v.useContext(p6n),o=v.useContext(h6n),a=Dz({...i,selected:f6n(t.value,r)},t),s=mi({props:a,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:d=!1,disableFocusRipple:p=!1,fullWidth:h=!1,onChange:g,onClick:m,selected:b,size:y="medium",value:M,...C}=s,x={...s,color:u,disabled:d,disableFocusRipple:p,fullWidth:h,size:y},w=g6n(x),S=z=>{m&&(m(z,M),z.defaultPrevented)||g&&g(z,M)},A=o||"";return f.jsx(m6n,{className:nr(i.className,w.root,c,A),disabled:d,focusRipple:!p,ref:n,onClick:S,onChange:g,value:M,ownerState:x,"aria-pressed":b,...C,children:l})}),b6n=parseInt(v.version,10),qr=e=>{if(b6n>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return v.forwardRef(e)},xs=Pu,h_e=xs(f.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),f_e=xs(f.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),g_e=xs(f.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),m_e=xs(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),y6n=xs(f.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),v_e=xs(f.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"})),M6n=xs(f.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 19l-4.99-5zm-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 14z"}));xs(f.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}));xs(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}));const C6n=xs(f.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),x6n=xs(f.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"})),w6n=xs(f.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"})),S6n=xs(f.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"})),A6n=xs(f.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"})),O6n=xs(f.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),b_e=xs(f.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"})),y_e=xs(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),z6n=xs(f.jsx("path",{d:"M19 13H5v-2h14v2z"})),T6n=xs(f.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})),M_e=xs(f.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),C_e=xs(f.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),E6n=xs(f.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),R6n=xs(f.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"})),I6n=xs(f.jsx("g",{children:f.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})})),x_e=xs(f.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"}));xs(f.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}));const P6n=xs(f.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.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 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})),D6n=xs(f.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),R1t=v.createContext(void 0),kn=()=>{const e=v.useContext(R1t);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},k6n=["sortingOrder"],L6n=v.memo(function(t){const{sortingOrder:n}=t,r=Lt(t,k6n),i=kn(),[o]=n,a=o==="asc"?i.slots.columnSortedAscendingIcon:i.slots.columnSortedDescendingIcon;return a?f.jsx(a,Y({},r)):null}),I1t=v.createContext(void 0);function bi(){const e=v.useContext(I1t);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e}const _6n=new TextEncoder;let A7=2*1024,uF=new ArrayBuffer(A7),xoe=new Uint8Array(uF),$S=new Int32Array(uF);const N6n=F6n;function F6n(e){const t=e.length*2;t>A7&&(A7=t+(4-t%4),uF=new ArrayBuffer(A7),xoe=new Uint8Array(uF),$S=new Int32Array(uF));const n=_6n.encodeInto(e,xoe).written,r=0,i=n|0;let o=0,a=(r+i|0)+374761393|0;if(i<16)for(;(o+3|0)<i;o=o+4|0)a=Math.imul(Tg(a+Math.imul($S[o]|0,3266489917)|0,17)|0,668265263);else{let s=r+606290984|0,l=r+2246822519|0,c=r,u=r-2654435761|0;for(;(o+15|0)<i;o=o+16|0)s=Math.imul(Tg(s+Math.imul($S[o+0|0]|0,2246822519)|0,13)|0,2654435761),l=Math.imul(Tg(l+Math.imul($S[o+4|0]|0,2246822519)|0,13)|0,2654435761),c=Math.imul(Tg(c+Math.imul($S[o+8|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(Tg(u+Math.imul($S[o+12|0]|0,2246822519)|0,13)|0,2654435761);for(a=(((Tg(s,1)|0+Tg(l,7)|0)+Tg(c,12)|0)+Tg(u,18)|0)+i|0;(o+3|0)<i;o=o+4|0)a=Math.imul(Tg(a+Math.imul($S[o]|0,3266489917)|0,17)|0,668265263)}for(;o<i;o=o+1|0)a=Math.imul(Tg(a+Math.imul(xoe[o]|0,374761393)|0,11)|0,2654435761);return a=Math.imul(a^a>>>15,2246822519),a=Math.imul(a^a>>>13,3266489917),((a^a>>>16)>>>0).toString()}function Tg(e,t){return e<<t|e>>>32-t}const P1t={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=P1t.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},D1t={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},W6n=k1t(D1t),_n=Y({breakpoints:P1t,spacing:q6n,transition:B6n,keys:D1t},W6n);function q6n(e,t,n,r){return e===void 0?Eg(1):t===void 0?Eg(e):n===void 0?Eg(e)+" "+Eg(t):r===void 0?Eg(e)+" "+Eg(t)+" "+Eg(n):Eg(e)+" "+Eg(t)+" "+Eg(n)+" "+Eg(r)}function Eg(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function B6n(e,t){const{duration:n=_n.transitions.duration.base,easing:r=_n.transitions.easing.easeInOut,delay:i=0}=t??{};return e.map(o=>`${o} ${n} ${r} ${i}ms`).join(", ")}function k1t(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=k1t(e[n]));return t}function j6n(){const e=Ub();return v.useMemo(()=>{const t=N6n(U6n(e)),n=H6n(e);return{id:t,variables:n}},[e])}function H6n(e){const t=G6n(e),n=(e.vars||e).palette.DataGrid,r=n?.bg??(e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper),i=n?.headerBg??r,o=n?.pinnedBg??r,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Sd(e.palette.background.default,e.palette.action.disabledOpacity),s=e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 90%, #fff)`:(e.vars||e).palette.background.paper,l=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,c=V6n(e),u=e.vars?.font?.body2??woe(e.typography.body2),d=e.vars?.font?.caption??woe(e.typography.caption),p=e.vars?.font?.body1??woe(e.typography.body1),h=_n.keys;return{[h.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[h.colors.border.base]:t,[h.colors.background.base]:r,[h.colors.background.overlay]:s,[h.colors.background.backdrop]:a,[h.colors.foreground.base]:(e.vars||e).palette.text.primary,[h.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[h.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[h.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[h.colors.foreground.error]:(e.vars||e).palette.error.dark,[h.colors.interactive.hover]:(e.vars||e).palette.action.hover,[h.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[h.colors.interactive.focus]:w_e((e.vars||e).palette.primary.main),[h.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[h.colors.interactive.disabled]:w_e((e.vars||e).palette.action.disabled),[h.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[h.colors.interactive.selected]:l,[h.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[h.header.background.base]:i,[h.cell.background.pinned]:o,[h.radius.base]:c,[h.typography.fontFamily.base]:e.typography.fontFamily,[h.typography.fontWeight.light]:e.typography.fontWeightLight,[h.typography.fontWeight.regular]:e.typography.fontWeightRegular,[h.typography.fontWeight.medium]:e.typography.fontWeightMedium,[h.typography.fontWeight.bold]:e.typography.fontWeightBold,[h.typography.font.body]:u,[h.typography.font.small]:d,[h.typography.font.large]:p,[h.transitions.easing.easeIn]:e.transitions.easing.easeIn,[h.transitions.easing.easeOut]:e.transitions.easing.easeOut,[h.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[h.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[h.transitions.duration.base]:`${e.transitions.duration.short}ms`,[h.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[h.shadows.base]:(e.vars||e).shadows[2],[h.shadows.overlay]:(e.vars||e).shadows[8],[h.zIndex.panel]:(e.vars||e).zIndex.modal,[h.zIndex.menu]:(e.vars||e).zIndex.modal}}function V6n(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function G6n(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?U6(Sd(e.palette.divider,1),.88):$6(Sd(e.palette.divider,1),.68)}function $6n(e,t){return`rgba(from ${e} r g b / ${t})`}function w_e(e){return $6n(e,1)}function woe(e){if(!e)return;const t=typeof e.fontSize=="number"?`${e.fontSize}px`:e.fontSize;return`${e.fontWeight} ${t} / ${e.lineHeight} ${e.fontFamily}`}function U6n(e){const t=new WeakSet;return JSON.stringify(e,(n,r)=>{if(typeof window<"u"&&r===window||typeof document<"u"&&r===document)return r.toString();if(r!==null&&typeof r=="object"){if(v.isValidElement(r)||t.has(r))return null;t.add(r)}return r})}const X6n=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],Y6n=["onRowsPerPageChange","material","disabled"],K6n=["material"],Q6n=["autoFocus","label","fullWidth","slotProps","className","material"],Z6n=["material"],J6n=["material"],eBn=["material"],tBn=["material"],nBn=["material"],rBn=["material"],iBn=["material"],oBn=["material"],aBn=["material"],sBn=["material","label","className"],lBn=["material"],cBn=["inert","iconStart","iconEnd","children","material"],uBn=["slotProps","material"],dBn=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],pBn=["key"],hBn=["inputProps","InputProps","InputLabelProps"],fBn=["slotProps","material"],gBn=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],mBn=["native"],vBn=["children","value","active"],bBn=["items","value","material"],S_e=rt(fCe)(({theme:e})=>({[`&.${Sfe.positionEnd} .${Efe.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),L1t=rt(E1t,{shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${FR.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),A_e=rt(T1t,{shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),yBn=rt(L_n)({[`& .${dO.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),MBn=qr(function(t,n){const{id:r,label:i,labelId:o,material:a,disabled:s,slotProps:l,onChange:c,onKeyDown:u,onOpen:d,onClose:p,size:h,style:g,fullWidth:m}=t,b=Lt(t,X6n),y={PaperProps:{onKeyDown:u}};return p&&(y.onClose=p),f.jsxs(Iw,{size:h,fullWidth:m,style:g,disabled:s,ref:n,children:[f.jsx(Rw,{id:o,htmlFor:r,shrink:!0,variant:"outlined",children:i}),f.jsx(vM,Y({id:r,labelId:o,label:i,displayEmpty:!0,onChange:c,variant:"outlined"},b,{notched:!0,inputProps:l?.htmlInput,onOpen:d,MenuProps:y,size:h},a))]})}),CBn=rt(l6n)(({theme:e})=>({[`& .${XO.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${XO.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),xBn=qr(function(t,n){const{onRowsPerPageChange:r,material:i,disabled:o}=t,a=Lt(t,Y6n),s=v.useMemo(()=>{if(o)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[o]),l=bi(),c=kn(),{estimatedRowCount:u}=c;return f.jsx(CBn,Y({component:"div",onRowsPerPageChange:en(d=>{r?.(Number(d.target.value))}),labelRowsPerPage:l.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:d=>l.current.getLocaleText("paginationDisplayedRows")(Y({},d,{estimated:u})),getItemAriaLabel:l.current.getLocaleText("paginationItemAriaLabel")},s,a,i,{ref:n}))}),wBn=qr(function(t,n){const{material:r}=t,i=Lt(t,K6n);return f.jsx(XWn,Y({},i,r,{ref:n}))}),SBn=qr(function(t,n){const{autoFocus:r,label:i,fullWidth:o,slotProps:a,className:s,material:l}=t,c=Lt(t,Q6n),u=v.useRef(null),d=Pi(u,n),p=v.useRef(null);return v.useEffect(()=>{r?u.current?.querySelector("input")?.focus({preventScroll:!0}):r===!1&&p.current&&p.current.stop({})},[r]),i?f.jsx(L1t,{className:s,control:f.jsx(A_e,Y({},c,l,{inputProps:a?.htmlInput,ref:d,touchRippleRef:p})),label:i,fullWidth:o}):f.jsx(A_e,Y({},c,l,{className:_o(s,l?.className),inputProps:a?.htmlInput,ref:d,touchRippleRef:p}))}),ABn=qr(function(t,n){const{material:r}=t,i=Lt(t,Z6n);return f.jsx(K6,Y({},i,r,{ref:n}))}),OBn=qr(function(t,n){const{material:r}=t,i=Lt(t,J6n);return f.jsx(KW,Y({},i,r,{ref:n}))}),zBn=qr(function(t,n){const{material:r}=t,i=Lt(t,eBn);return f.jsx(vqn,Y({},i,r,{ref:n}))}),TBn=qr(function(t,n){const{material:r}=t,i=Lt(t,tBn);return f.jsx(LR,Y({},i,r,{ref:n}))}),EBn=rt(v6n)(({theme:e})=>({gap:e.spacing(1),border:0})),RBn=qr(function(t,n){const{material:r}=t,i=Lt(t,nBn);return f.jsx(EBn,Y({size:"small",color:"primary"},i,r,{ref:n}))}),IBn=qr(function(t,n){const{material:r}=t,i=Lt(t,rBn);return f.jsx(NQ,Y({},i,r,{ref:n}))}),PBn=qr(function(t,n){const{material:r}=t,i=Lt(t,iBn);return f.jsx(Zp,Y({},i,r,{ref:n}))}),DBn=qr(function(t,n){const{material:r}=t,i=Lt(t,oBn);return f.jsx(kqn,Y({},i,r,{ref:n}))}),kBn=qr(function(t,n){const{material:r}=t,i=Lt(t,aBn);return f.jsx(f5n,Y({},i,r,{ref:n}))}),LBn=qr(function(t,n){const{material:r,label:i,className:o}=t,a=Lt(t,sBn);return i?f.jsx(L1t,{className:o,control:f.jsx(c_e,Y({},a,r,{ref:n})),label:i}):f.jsx(c_e,Y({},a,r,{className:o,ref:n}))}),_Bn=qr(function(t,n){const{material:r}=t,i=Lt(t,lBn);return f.jsx(GQ,Y({},i,r,{ref:n}))});function NBn(e){const{inert:t,iconStart:n,iconEnd:r,children:i,material:o}=e,a=Lt(e,cBn);return t&&(a.disableRipple=!0),v.createElement(Zb,Y({},a,o),[n&&f.jsx(b4e,{children:n},"1"),f.jsx(yBn,{children:i},"2"),r&&f.jsx(b4e,{children:r},"3")])}function FBn(e){const{slotProps:t,material:n}=e,r=Lt(e,uBn);return f.jsx(D3,Y({variant:"outlined"},r,n,{inputProps:t?.htmlInput,InputProps:Zxe(t?.input),InputLabelProps:Y({shrink:!0},t?.inputLabel)}))}function WBn(e){const t=kn(),{id:n,multiple:r,freeSolo:i,options:o,getOptionLabel:a,isOptionEqualToValue:s,value:l,onChange:c,label:u,placeholder:d,slotProps:p,material:h}=e,g=Lt(e,dBn);return f.jsx(O1t,Y({id:n,multiple:r,freeSolo:i,options:o,getOptionLabel:a,isOptionEqualToValue:s,value:l,onChange:c,renderTags:(m,b)=>m.map((y,M)=>{const C=b({index:M}),{key:x}=C,w=Lt(C,pBn);return f.jsx(NQ,Y({variant:"outlined",size:"small",label:typeof y=="string"?y:a?.(y)},w),x)}),renderInput:m=>{const{inputProps:b,InputProps:y,InputLabelProps:M}=m,C=Lt(m,hBn);return f.jsx(D3,Y({},C,{label:u,placeholder:d,inputProps:b,InputProps:Zxe(y,!1),InputLabelProps:Y({shrink:!0},M)},p?.textField,t.slotProps?.baseTextField))}},g,h))}function qBn(e){return f.jsx(eB,Y({},Zxe(e)))}function Zxe(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,o=Lt(e,fBn);t&&(o.startAdornment&&(o.startAdornment=f.jsx(S_e,{position:"start",children:o.startAdornment})),o.endAdornment&&(o.endAdornment=f.jsx(S_e,{position:"end",children:o.endAdornment})));for(const a in r)Object.hasOwn(r,a)&&(o[a]=r[a]);return n?.htmlInput&&(o.inputProps?o.inputProps=Y({},o.inputProps,n?.htmlInput):o.inputProps=n?.htmlInput),o}const BBn={"bottom-start":"top left","bottom-end":"top right"};function jBn(e){const{open:t,children:n,className:r,flip:i,onExited:o,onDidShow:a,onDidHide:s,id:l,target:c,transition:u,placement:d,material:p}=e,h=Lt(e,gBn),g=v.useMemo(()=>{const b=[{name:"preventOverflow",options:{padding:8}}];return i&&b.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(a||s)&&b.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{a?.()},effect:()=>()=>{s?.()}}),b},[i,a,s]);let m;if(!u)m=O_e(e,n);else{const b=y=>M=>{y&&y(),o&&o(M)};m=y=>O_e(e,f.jsx(bP,Y({},y.TransitionProps,{style:{transformOrigin:BBn[y.placement]},onExited:b(y.TransitionProps?.onExited),children:f.jsx(I3,{children:n})})))}return f.jsx(ID,Y({id:l,className:r,open:t,anchorEl:c,transition:u,placement:d,modifiers:g},h,p,{children:m}))}function O_e(e,t){return VBn(e,HBn(e,t))}function HBn(e,t){return e.onClickAway===void 0?t:f.jsx(u6n,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function VBn(e,t){return e.focusTrap===void 0?t:f.jsx(xCe,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:f.jsx("div",{tabIndex:-1,children:t})})}function GBn(e){let{native:t}=e,n=Lt(e,mBn);return t?f.jsx("option",Y({},n)):f.jsx(Zb,Y({},n))}const $Bn=rt(K0t,{name:"MuiDataGrid",slot:"Tabs"})(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`})),UBn=rt(wge,{name:"MuiDataGrid",slot:"Tab"})({flex:1,minWidth:"fit-content"}),XBn=rt("div",{name:"MuiDataGrid",slot:"TabPanel"})({flex:1,display:"flex",flexDirection:"column",overflow:"hidden"});function YBn(e){const{children:t,active:n}=e,r=Lt(e,vBn);return f.jsx(XBn,Y({role:"tabpanel",style:{display:n?"flex":"none"}},r,{children:t}))}function KBn(e){let{items:t,value:n,material:r}=e,i=Lt(e,bBn);const o=Vi(),a=`${o}-tab-${n}`,s=`${o}-tabpanel-${n}`;return f.jsxs(v.Fragment,{children:[f.jsx($Bn,Y({},i,{value:n,variant:"scrollable",scrollButtons:"auto"},r,{children:t.map(l=>f.jsx(UBn,{value:l.value,label:l.label,id:a,"aria-controls":s},l.value))})),t.map(l=>f.jsx(YBn,{value:l.value,active:n===l.value,id:s,"aria-labelledby":a,children:l.children},l.value))]})}const QBn={booleanCellTrueIcon:C_e,booleanCellFalseIcon:b_e,columnMenuIcon:O6n,openFilterButtonIcon:y6n,filterPanelDeleteIcon:b_e,columnFilteredIcon:v_e,columnSelectorIcon:C6n,columnUnsortedIcon:L6n,columnSortedAscendingIcon:h_e,columnSortedDescendingIcon:f_e,columnResizeIcon:x6n,densityCompactIcon:w6n,densityStandardIcon:S6n,densityComfortableIcon:A6n,exportIcon:D6n,moreActionsIcon:E6n,treeDataCollapseIcon:m_e,treeDataExpandIcon:g_e,groupingCriteriaCollapseIcon:m_e,groupingCriteriaExpandIcon:g_e,detailPanelExpandIcon:y_e,detailPanelCollapseIcon:z6n,rowReorderIcon:M_e,quickFilterIcon:M6n,quickFilterClearIcon:x_e,columnMenuHideIcon:R6n,columnMenuSortAscendingIcon:h_e,columnMenuSortDescendingIcon:f_e,columnMenuUnsortIcon:null,columnMenuFilterIcon:v_e,columnMenuManageColumnsIcon:I6n,columnMenuClearIcon:x_e,loadIcon:T6n,filterPanelAddIcon:y_e,filterPanelRemoveAllIcon:P6n,columnReorderIcon:M_e,menuItemCheckIcon:C_e},ZBn={baseAutocomplete:WBn,baseBadge:wBn,baseCheckbox:SBn,baseChip:IBn,baseCircularProgress:ABn,baseDivider:OBn,baseInput:qBn,baseLinearProgress:zBn,baseMenuList:_Bn,baseMenuItem:NBn,baseTextField:FBn,baseButton:TBn,baseIconButton:PBn,baseToggleButton:RBn,baseTooltip:DBn,baseTabs:KBn,basePagination:xBn,basePopper:jBn,baseSelect:MBn,baseSelectOption:GBn,baseSkeleton:kBn,baseSwitch:LBn},JBn=Y({},ZBn,QBn);var F9=Symbol("NOT_FOUND");function ejn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function tjn(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function njn(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var z_e=e=>Array.isArray(e)?e:[e];function rjn(e){const t=Array.isArray(e[0])?e[0]:e;return njn(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ijn(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function ojn(e){let t;return{get(n){return t&&e(t.key,n)?t.value:F9},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function ajn(e,t){let n=[];function r(s){const l=n.findIndex(c=>t(s,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return F9}function i(s,l){r(s)===F9&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function o(){return n}function a(){n=[]}return{get:r,put:i,getEntries:o,clear:a}}var sjn=(e,t)=>e===t;function ljn(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function Jxe(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=sjn,maxSize:i=1,resultEqualityCheck:o}=n,a=ljn(r);let s=0;const l=i<=1?ojn(a):ajn(i,a);function c(){let u=l.get(arguments);if(u===F9){if(u=e.apply(null,arguments),s++,o){const p=l.getEntries().find(h=>o(h.value,u));p&&(u=p.value,s!==0&&s--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var cjn=class{constructor(t){this.value=t}deref(){return this.value}},ujn=typeof WeakRef<"u"?WeakRef:cjn,djn=0,T_e=1;function k8(){return{s:djn,v:void 0,o:null,p:null}}function _1t(e,t={}){let n=k8();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let s=n;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(h);m===void 0?(s=k8(),g.set(h,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(h);m===void 0?(s=k8(),g.set(h,s)):s=m}}const c=s;let u;if(s.s===T_e)u=s.v;else if(u=e.apply(null,arguments),o++,r){const d=i?.deref?.()??i;d!=null&&r(d,u)&&(u=d,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new ujn(u):u}return c.s=T_e,c.v=u,u}return a.clearCache=()=>{n=k8(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function N1t(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),ejn(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=_1t,argsMemoizeOptions:g=[]}=u,m=z_e(p),b=z_e(g),y=rjn(i),M=d(function(){return o++,c.apply(null,arguments)},...m),C=h(function(){a++;const w=ijn(y,arguments);return s=M.apply(null,w),s},...b);return Object.assign(C,{resultFunc:c,memoizedResultFunc:M,dependencies:y,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var pjn=N1t(_1t),hjn=Object.assign((e,t=pjn)=>{tjn(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>hjn});const fjn=N1t({memoize:Jxe,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),gjn=(e,t,n,r,i,o,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&i&&o)s=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d),g=n(l,c,u,d),m=r(l,c,u,d),b=i(l,c,u,d);return o(p,h,g,m,b,c,u,d)};else if(e&&t&&n&&r&&i)s=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d),g=n(l,c,u,d),m=r(l,c,u,d);return i(p,h,g,m,c,u,d)};else if(e&&t&&n&&r)s=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d),g=n(l,c,u,d);return r(p,h,g,c,u,d)};else if(e&&t&&n)s=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d);return n(p,h,c,u,d)};else if(e&&t)s=(l,c,u,d)=>{const p=e(l,c,u,d);return t(p,c,u,d)};else if(e)s=e;else throw new Error("Missing arguments");return s},mjn=(...e)=>{const t=new WeakMap;let n=1;const r=e[e.length-1],i=e.length-1||1,o=Math.max(r.length-i,0);if(o>3)throw new Error("Unsupported number of arguments");return(s,l,c,u)=>{let d=s.__cacheKey__;d||(d={id:n},s.__cacheKey__=d,n+=1);let p=t.get(d);if(!p){const h=e.length===1?[b=>b,r]:e;let g=e;const m=[void 0,void 0,void 0];switch(o){case 0:break;case 1:{g=[...h.slice(0,-1),()=>m[0],r];break}case 2:{g=[...h.slice(0,-1),()=>m[0],()=>m[1],r];break}case 3:{g=[...h.slice(0,-1),()=>m[0],()=>m[1],()=>m[2],r];break}default:throw new Error("Unsupported number of arguments")}p=fjn(...g),p.selectorArgs=m,t.set(d,p)}switch(o){case 3:p.selectorArgs[2]=u;case 2:p.selectorArgs[1]=c;case 1:p.selectorArgs[0]=l}switch(o){case 0:return p(s);case 1:return p(s,l);case 2:return p(s,l,c);case 3:return p(s,l,c,u);default:throw new Error("unreachable")}}};var Soe={exports:{}},Aoe={};/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var E_e;function vjn(){if(E_e)return Aoe;E_e=1;var e=Wr(),t=Gat();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Aoe.useSyncExternalStoreWithSelector=function(c,u,d,p,h){var g=o(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function y(S){if(!M){if(M=!0,C=S,S=p(S),h!==void 0&&m.hasValue){var A=m.value;if(h(A,S))return x=A}return x=S}if(A=x,r(C,S))return A;var z=p(S);return h!==void 0&&h(A,z)?(C=S,A):(C=S,x=z)}var M=!1,C,x,w=d===void 0?null:d;return[function(){return y(u())},w===null?void 0:function(){return y(w())}]},[u,d,p,h]);var b=i(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=b},[b]),l(b),b},Aoe}var R_e;function bjn(){return R_e||(R_e=1,Soe.exports=vjn()),Soe.exports}var F1t=bjn();function I_e(e,t,n,r,i){const o=a=>t(a,n,r,i);return F1t.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,o)}const yjn=()=>{};function Lge(e,t,n){const r=xp(Mjn,{store:e,selector:t}).current;r.effect=n,X6(r.onMount)}function Mjn(e){const{store:t,selector:n}=e;let r=n(t.state);const i={effect:yjn,dispose:null,subscribe:()=>{i.dispose??=t.subscribe(o=>{const a=n(o);i.effect(r,a),r=a})},onMount:()=>(i.subscribe(),()=>{i.dispose?.(),i.dispose=null})};return i.subscribe(),i}let Cjn=class W1t{static create(t){return new W1t(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,r=this.listeners.values();let i;for(;i=r.next(),!i.done;){if(n!==this.updateTick)return;const o=i.value;o(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(Y({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(Y({},this.state,{[t]:n}))}};const rr=(...e)=>{const t=gjn(...e);return(r,i,o,a)=>t(ewe(r),i,o,a)},ta=(...e)=>{const t=mjn(...e);return(r,i,o,a)=>t(ewe(r),i,o,a)},ks=e=>(t,n)=>e(ewe(t),n);function ewe(e){return"current"in e?e.current.state:e}const Ks=ks(e=>e.dimensions),twe=rr(Ks,e=>e.columnsTotalWidth),xjn=rr(Ks,e=>e.rowHeight);rr(Ks,e=>e.contentSize.height);const q1t=rr(Ks,e=>e.hasScrollX),B1t=rr(Ks,e=>e.hasScrollY),j1t=rr(Ks,e=>e.columnsTotalWidth<e.viewportOuterSize.width),wjn=rr(Ks,e=>e.headerHeight),Sjn=rr(Ks,e=>e.groupHeaderHeight);rr(Ks,e=>e.headerFilterHeight);const Ajn=rr(Ks,e=>e.hasScrollX?e.scrollbarSize:0),H1t=rr(Ks,e=>e.hasScrollY?e.scrollbarSize:0),Ojn=rr(Ks,Ajn,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)}),nwe=ks(e=>e.rowsMeta),_m=ks(e=>e.rows),GD=rr(_m,e=>e.totalRowCount),zjn=rr(_m,e=>e.loading),Tjn=rr(_m,e=>e.totalTopLevelRowCount),yf=rr(_m,e=>e.dataRowIdToModelLookup);rr(yf,(e,t)=>e[t]);const Qc=rr(_m,e=>e.tree),fb=rr(Qc,(e,t)=>e[t]),Ejn=rr(_m,e=>e.groupsToFetch),Rjn=rr(_m,e=>e.groupingName),P_e=rr(_m,e=>e.treeDepths),xB=ta(_m,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:(t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]??0)+1}),hO=rr(_m,e=>e.dataRowIds),Ijn=ta(hO,yf,(e,t)=>e.reduce((n,r)=>(t[r]&&n.push(t[r]),n),[])),Pjn=rr(_m,e=>e?.additionalRowGroups),$D=ta(Pjn,e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map(n=>({id:n.id,model:n.model??{}}))??[],top:t?.top?.map(n=>({id:n.id,model:n.model??{}}))??[]}}),V1t=rr($D,e=>(e?.top?.length||0)+(e?.bottom?.length||0)),Dl="auto-generated-group-node-root",jz=Symbol("mui.id_autogenerated"),Djn=()=>({type:"group",id:Dl,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function kjn(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
`))}const IZ=(e,t,n)=>{const r=t?t(e):e.id;return kjn(r,e,n),r},Ljn=(e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const i=e[t.field];return t.valueGetter(i,e,t,n)},O7=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const i={type:"full",rows:[]},o={};for(let a=0;a<e.length;a+=1){const s=e[a],l=IZ(s,t);o[l]=s,i.rows.push(l)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:i,dataRowIdToModelLookup:o}},G1t=({tree:e,rowCountProp:t=0})=>{const n=e[Dl];return Math.max(t,n.children.length+(n.footerId==null?0:1))},$1t=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:i,previousGroupsToFetch:o})=>{const a=e.current.caches.rows,{tree:s,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:i,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:o}),p=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:l,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},Y({},p,{totalRowCount:Math.max(t,p.dataRowIds.length),totalTopLevelRowCount:G1t({tree:p.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},U1t=e=>jz in e,OP=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,rwe=(e,t,n,r)=>{const i=e[t];if(i.type!=="group")return[];const o=[];for(let a=0;a<i.children.length;a+=1){const s=i.children[a];if((!n||!OP(e[s]))&&o.push(s),r)continue;const l=rwe(e,s,n,r);for(let c=0;c<l.length;c+=1)o.push(l[c])}return!n&&i.footerId!=null&&o.push(i.footerId),o},D_e=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const i=new Map;n.forEach(c=>{const u=IZ(c,t,"A row was provided without id when calling updateRows():");i.has(u)?i.set(u,Y({},i.get(u),c)):i.set(u,c)});const o={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:Y({},e.updates.idToActionLookup),groupKeys:r},a=Y({},e.dataRowIdToModelLookup),s={insert:{},modify:{},remove:{}};i.forEach((c,u)=>{const d=o.idToActionLookup[u];if(c._action==="delete"){if(d==="remove"||!a[u])return;d!=null&&(s[d][u]=!0),o.actions.remove.push(u),delete a[u];return}const p=a[u];if(p){d==="remove"?(s.remove[u]=!0,o.actions.modify.push(u)):d==null&&o.actions.modify.push(u),a[u]=Y({},p,c);return}d==="remove"?(s.remove[u]=!0,o.actions.insert.push(u)):d==null&&o.actions.insert.push(u),a[u]=c});const l=Object.keys(s);for(let c=0;c<l.length;c+=1){const u=l[c],d=s[u];Object.keys(d).length>0&&(o.actions[u]=o.actions[u].filter(p=>!d[p]))}return{dataRowIdToModelLookup:a,updates:o,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},X1t="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function k_e(e,t,n){const r=[];return t.forEach(i=>{const o=IZ(i,n,"A row was provided without id when calling updateRows():");if(fb(e,o)?.type==="pinnedRow"){const s=e.current.caches.pinnedRows,l=s.idLookup[o];l&&(s.idLookup[o]=Y({},l,i))}else r.push(i)}),r}const Y1t=(e,t,n)=>typeof e=="number"&&e>0?e:t,_jn=Object.is;function K1t(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const i in e)if(n+=1,!_jn(e[i],t[i])||!(i in t))return!1;for(const i in t)r+=1;return n===r}function CM(e){return v.memo(e,K1t)}const Njn={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarCharts:"Charts",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnMenuManageCharts:"Manage charts",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:r})=>{if(!r)return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`;const i=r&&r>t?`around ${r}`:`more than ${t}`;return`${e}–${t} of ${n!==-1?n:i}`},paginationItemAriaLabel:e=>e==="first"?"Go to first page":e==="last"?"Go to last page":e==="next"?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelNone:"none",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",chartsNoCharts:"There are no charts available",chartsChartNotSelected:"Select a chart type to configure its options",chartsTabChart:"Chart",chartsTabFields:"Fields",chartsTabCustomize:"Customize",chartsCloseButton:"Close charts configuration",chartsSyncButtonLabel:"Sync chart",chartsSearchPlaceholder:"Search fields",chartsSearchLabel:"Search fields",chartsSearchClear:"Clear search",chartsNoFields:"No fields",chartsFieldBlocked:"This field cannot be added to any section",chartsCategories:"Categories",chartsSeries:"Series",chartsMenuAddToDimensions:e=>`Add to ${e}`,chartsMenuAddToValues:e=>`Add to ${e}`,chartsMenuMoveUp:"Move up",chartsMenuMoveDown:"Move down",chartsMenuMoveToTop:"Move to top",chartsMenuMoveToBottom:"Move to bottom",chartsMenuOptions:"Field options",chartsMenuRemove:"Remove",chartsDragToDimensions:e=>`Drag here to use column as ${e}`,chartsDragToValues:e=>`Drag here to use column as ${e}`,aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>t==="is any of"?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>t==="is any of"?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`,promptChangeChartsLabel:(e,t)=>`Dimensions (${e}), Values (${t})`};function lo(e){return Bn("MuiDataGrid",e)}const Te=Ln("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dropAbove","row--dropBelow","row--beingDragged","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--pinnedRight","scrollShadow","scrollShadow--vertical","scrollShadow--horizontal","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]);let cm=(function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e})({});const L_e=1e3;class Fjn{timeouts=new Map;cleanupTimeout=L_e;constructor(t=L_e){this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Wjn{registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()});register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class iwe{static create(){return new iwe}}const L8={current:Bjn()};let __e=0;function Yn(e,t,n,r){const i=v.useState(iwe.create)[0],o=v.useRef(null),a=v.useRef(null);a.current=n;const s=v.useRef(null);if(!o.current&&a.current){const l=(c,u,d)=>{u.defaultMuiPrevented||a.current?.(c,u,d)};o.current=e.current.subscribeEvent(t,l,r),__e+=1,s.current={cleanupToken:__e},L8.current.register(i,()=>{o.current?.(),o.current=null,s.current=null},s.current)}else!a.current&&o.current&&(o.current(),o.current=null,s.current&&(L8.current.unregister(s.current),s.current=null));v.useEffect(()=>{if(!o.current&&a.current){const l=(c,u,d)=>{u.defaultMuiPrevented||a.current?.(c,u,d)};o.current=e.current.subscribeEvent(t,l,r)}return s.current&&L8.current&&(L8.current.unregister(s.current),s.current=null),()=>{o.current?.(),o.current=null}},[e,t,r])}const qjn={isFirst:!0};function Ka(e,t,n){Yn(e,t,n,qjn)}function Bjn(){return typeof FinalizationRegistry<"u"?new Wjn:new Fjn}const jjn=Object.is,Q1t=K1t,Hjn=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),Vjn=(e,t)=>{let n=Object.is;return t instanceof Array?n=Hjn:t instanceof Object&&(n=Q1t),n(e,t)},Gjn=()=>({state:null,equals:null,selector:null,args:void 0}),N_e=[],$jn=()=>null;function Qt(e,t,n=void 0,r=jjn){const i=xp(Gjn),o=i.current.selector!==null,[a,s]=v.useState(o?null:t(e,n));i.current.state=a,i.current.equals=r,i.current.selector=t;const l=i.current.args;if(i.current.args=n,o&&!Vjn(l,n)){const d=i.current.selector(e,i.current.args);i.current.equals(i.current.state,d)||(i.current.state=d,s(d))}const c=v.useCallback(()=>(i.current.subscription||(i.current.subscription=e.current.store.subscribe(()=>{const d=i.current.selector(e,i.current.args);i.current.equals(i.current.state,d)||(i.current.state=d,s(d))})),null),N_e),u=v.useCallback(()=>(i.current.subscription||c(),()=>{i.current.subscription&&(i.current.subscription(),i.current.subscription=void 0)}),N_e);return VMe.useSyncExternalStore(u,c,$jn),a}const Ujn=.7,Xjn=1.3,Yjn={compact:Ujn,comfortable:Xjn,standard:1},WR=ks(e=>e.density),wB=rr(WR,e=>Yjn[e]);function Jb(e){throw new Error("Failed assertion: should not be rendered")}const Kjn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],Qjn=e=>{const{classes:t}=e;return Yt({root:["editInputCell"]},lo,t)},Zjn=rt(Jb,{name:"MuiDataGrid",slot:"EditInputCell"})({font:_n.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),Jjn=qr((e,t)=>{const n=kn(),{id:r,value:i,field:o,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:c,onValueChange:u,slotProps:d}=e,p=Lt(e,Kjn),h=bi(),g=v.useRef(null),[m,b]=v.useState(i),y=Qjn(n),M=v.useCallback(async x=>{const w=x.target.value,S=h.current.getColumn(o);let A=w;S.valueParser&&(A=S.valueParser(w,h.current.getRow(r),S,h)),b(A),h.current.setEditCellValue({id:r,field:o,value:A,debounceMs:l,unstable_skipValueParser:!0},x),u&&await u(x,w)},[h,l,o,r,u]),C=h.current.unstable_getEditCellMeta(r,o);return v.useEffect(()=>{C?.changeReason!=="debouncedSetEditCellValue"&&b(i)},[C,i]),Ro(()=>{s&&g.current.focus()},[s]),f.jsx(Zjn,Y({as:n.slots.baseInput,inputRef:g,className:y.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:m??"",onChange:M,endAdornment:c?f.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p,d?.root,{ref:t}))}),eHn=e=>f.jsx(Jjn,Y({},e)),Z1t=(e,t)=>t&&e.length>1?[e[0]]:e,F_e=(e,t)=>n=>Y({},n,{sorting:Y({},n.sorting,{sortModel:Z1t(e,t)})}),tHn=e=>e==="desc",nHn=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=tHn(e.sort)?(...o)=>-1*n.sortComparator(...o):n.sortComparator,r?{getSortCellParams:o=>({id:o,field:n.field,rowNode:fb(t,o),value:t.current.getCellValue(o,n.field),api:t.current}),comparator:r}:null},rHn=(e,t,n)=>e.reduce((r,i,o)=>{if(r!==0)return r;const a=t.params[o],s=n.params[o];return r=i.comparator(a.value,s.value,a,s),r},0),iHn=(e,t)=>{const n=e.map(r=>nHn(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(i=>({node:i,params:n.map(o=>o.getSortCellParams(i.id))})).sort((i,o)=>rHn(n,i,o)).map(i=>i.node.id)},W_e=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},owe=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,oHn=new Intl.Collator,aHn=(e,t)=>{const n=owe(e,t);return n!==null?n:typeof e=="string"?oHn.compare(e.toString(),t.toString()):e-t},J1t=(e,t)=>{const n=owe(e,t);return n!==null?n:Number(e)-Number(t)},ept=(e,t)=>{const n=owe(e,t);return n!==null?n:e>t?1:e<t?-1:0},sHn=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function sf(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,tabIndex:a,disabled:s,slotProps:l,clearButton:c,headerFilterMenu:u}=e,d=Lt(e,sHn),p=l?.root,h=Qp(),[g,m]=v.useState(Ooe(t.value)),[b,y]=v.useState(!1),M=Vi(),C=kn(),x=v.useCallback(w=>{const S=Ooe(w.target.value);m(S),y(!0),h.start(C.filterDebounceMs,()=>{const A=Y({},t,{value:r==="number"&&!Number.isNaN(Number(S))?Number(S):S,fromInput:M});n(A),y(!1)})},[h,C.filterDebounceMs,t,r,M,n]);return v.useEffect(()=>{(t.fromInput!==M||t.value==null)&&m(Ooe(t.value))},[M,t]),f.jsxs(v.Fragment,{children:[f.jsx(C.slots.baseTextField,Y({id:M,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:g??"",onChange:x,type:r||"text",disabled:s,slotProps:Y({},p?.slotProps,{input:Y({endAdornment:b?f.jsx(C.slots.loadIcon,{fontSize:"small",color:"action"}):null},p?.slotProps?.input),htmlInput:Y({tabIndex:a},p?.slotProps?.htmlInput)}),inputRef:o},C.slotProps?.baseTextField,d,p)),u,c]})}function Ooe(e){if(!(e==null||e===""))return String(e)}function lHn(e){return typeof e=="number"&&!Number.isNaN(e)}function cHn(e){return typeof e=="function"}function awe(e){return typeof e=="object"&&e!==null}function uHn(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function W9(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const YO=(e,t,n)=>Math.max(t,Math.min(n,e));function dHn(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function pHn(e){const t=dHn(e);return(n,r)=>n+(r-n)*t()}function tpt(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const KC=(e,t)=>n=>{e&&t(n)};function npt(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,slotProps:a}=e,s=Vi(),[l,c]=v.useState([]),[u,d]=v.useState(t.value||[]),p=kn();v.useEffect(()=>{const b=t.value??[];d(b.map(String))},[t.value]);const h=v.useCallback((b,y)=>{d(y.map(String)),n(Y({},t,{value:[...y.map(M=>r==="number"?Number(M):M)]}))},[n,t,r]),g=v.useCallback((b,y)=>{c(y===""?[]:[y])},[c]),m=p.slots.baseAutocomplete;return f.jsx(m,Y({multiple:!0,freeSolo:!0,options:l,id:s,value:u,onChange:h,onInputChange:g,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:o}}},a?.root))}var Lb=(function(e){return e.Cell="cell",e.Row="row",e})(Lb||{}),va=(function(e){return e.Edit="edit",e.View="view",e})(va||{}),ms=(function(e){return e.Edit="edit",e.View="view",e})(ms||{}),e1=(function(e){return e.And="and",e.Or="or",e})(e1||{});class hHn{constructor(t){this.data=t.ids}has(t){return this.data.has(t)}select(t){this.data.add(t)}unselect(t){this.data.delete(t)}}class fHn{constructor(t){this.data=t.ids}has(t){return!this.data.has(t)}select(t){this.data.delete(t)}unselect(t){this.data.add(t)}}const QC=e=>e.type==="include"?new hHn(e):new fHn(e);var J2=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e})(J2||{}),Wg=(function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Wg||{}),wC=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e})(wC||{}),Sv=(function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Sv||{});function rpt(e){return e.field!==void 0}const ipt={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},QW=()=>({items:[],logicOperator:e1.And,quickFilterValues:[],quickFilterLogicOperator:e1.And});function opt(e){return{current:e.current.getPublicApi()}}let Fv=(function(e){return e.LEFT="left",e.RIGHT="right",e})({});const q9={left:[],right:[]},apt=ks(e=>e.isRtl),spt=ks(e=>e.props.listView??!1),lpt=ks(e=>e.listViewColumn),um=ks(e=>e.columns),gb=rr(um,e=>e.orderedFields),xM=rr(um,e=>e.lookup),Ef=ta(gb,xM,(e,t)=>e.map(n=>t[n])),Mf=rr(um,e=>e.columnVisibilityModel),gHn=rr(um,e=>e.initialColumnVisibilityModel),xl=ta(Ef,Mf,spt,lpt,(e,t,n,r)=>n&&r?[r]:e.filter(i=>t[i.field]!==!1)),SB=ta(xl,e=>e.map(t=>t.field)),swe=ks(e=>e.pinnedColumns);ta(swe,gb,apt,(e,t,n)=>cpt(e,t,n));const PZ=ta(um,swe,SB,apt,spt,(e,t,n,r,i)=>{if(i)return q9;const o=cpt(t,n,r);return{left:o.left.map(s=>e.lookup[s]),right:o.right.map(s=>e.lookup[s])}});function cpt(e,t,n){if(!Array.isArray(e.left)&&!Array.isArray(e.right)||e.left?.length===0&&e.right?.length===0)return q9;const r=(s,l)=>Array.isArray(s)?s.filter(c=>l.includes(c)):[],i=r(e.left,t),o=t.filter(s=>!i.includes(s)),a=r(e.right,o);return n?{left:a,right:i}:{left:i,right:a}}const F3=ta(xl,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),upt=ta(Ef,e=>e.filter(t=>t.filterable)),mHn=ta(Ef,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),vHn=ta(Ef,e=>e.some(t=>t.colSpan!==void 0));let Q4;function bHn(){if(Q4!==void 0)return Q4;try{Q4=new Function("return true")()}catch{Q4=!1}return Q4}const _ge=(e,t)=>{const n=Y({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=xM(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},lwe=(e,t,n)=>{const r=e.items.length>1;let i;r&&t?i=[e.items[0]]:i=e.items;const o=r&&i.some(s=>s.id==null);return i.some(s=>s.operator==null)||o?Y({},e,{items:i.map(s=>_ge(s,n))}):e.items!==i?Y({},e,{items:i}):e},q_e=(e,t,n)=>r=>Y({},r,{filterModel:lwe(e,t,n)}),ZW=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,dpt=(e,t,n)=>{if(!e.field||!e.operator)return null;const r=n.current.getColumn(e.field);if(!r)return null;let i;if(r.valueParser){const d=r.valueParser;i=Array.isArray(e.value)?e.value?.map(p=>d(p,void 0,r,n)):d(e.value,void 0,r,n)}else i=e.value;const{ignoreDiacritics:o}=n.current.rootProps;o&&(i=ZW(i));const a=Y({},e,{value:i}),s=r.filterOperators;if(!s?.length)throw new Error(`MUI X: No filter operators found for column '${r.field}'.`);const l=s.find(d=>d.value===a.operator);if(!l)throw new Error(`MUI X: No filter operator found for column '${r.field}' and operator value '${a.operator}'.`);const c=opt(n),u=l.getApplyFilterFn(a,r);return typeof u!="function"?null:{item:a,fn:d=>{let p=t(d,r);return o&&(p=ZW(p)),u(p,d,r,c)}}};let B_e=1;const yHn=(e,t,n,r)=>{const{items:i}=e,o=i.map(l=>dpt(l,t,n)).filter(l=>!!l);if(o.length===0)return null;if(r||!bHn())return(l,c)=>{const u={};for(let d=0;d<o.length;d+=1){const p=o[d];(!c||c(p.item.field))&&(u[p.item.id]=p.fn(l))}return u};const a=new Function("appliers","row","shouldApplyFilter",`"use strict";
${o.map((l,c)=>`const shouldApply${c} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
`)}

const result$$ = {
${o.map((l,c)=>`  ${JSON.stringify(String(l.item.id))}: !shouldApply${c} ? false : appliers[${c}].fn(row),`).join(`
`)}
};

return result$$;`.replaceAll("$$",String(B_e)));return B_e+=1,(l,c)=>a(o,l,c)},ppt=e=>e.quickFilterExcludeHiddenColumns??!0,MHn=(e,t,n)=>{const r=e.quickFilterValues?.filter(Boolean)??[];if(r.length===0)return null;const i=gb(n),o=Mf(n);let a;ppt(e)?a=i.filter(u=>o[u]!==!1):a=i;const s=[],{ignoreDiacritics:l}=n.current.rootProps,c=opt(n);return a.forEach(u=>{const d=n.current.getColumn(u),p=d?.getApplyQuickFilterFn;p&&s.push({column:d,appliers:r.map(h=>{const g=l?ZW(h):h;return{fn:p(g,d,c)}})})}),function(d,p){const h={};e:for(let g=0;g<r.length;g+=1){const m=r[g];for(let b=0;b<s.length;b+=1){const{column:y,appliers:M}=s[b],{field:C}=y;if(p&&!p(C))continue;const x=M[g];let w=t(d,y);if(x.fn===null)continue;if(l&&(w=ZW(w)),x.fn(w,d,y,c)){h[m]=!0;continue e}}h[m]=!1}return h}},CHn=(e,t,n,r)=>{const i=yHn(e,t,n,r),o=MHn(e,t,n);return function(s,l,c){c.passingFilterItems=i?.(s,l)??null,c.passingQuickFilterValues=o?.(s,l)??null}},j_e=e=>e!=null,xHn=(e,t,n,r)=>(e.cleanedFilterItems||(e.cleanedFilterItems=r.filter(i=>dpt(i,t,n)!==null)),e.cleanedFilterItems),wHn=(e,t,n,r,i,o)=>{const a=xHn(o,r,i,n.items),s=e.filter(j_e),l=t.filter(j_e);if(s.length>0){const c=d=>s.some(p=>p[d.id]);if((n.logicOperator??QW().logicOperator)===e1.And){if(!a.every(c))return!1}else if(!a.some(c))return!1}if(l.length>0&&n.quickFilterValues!=null){const c=d=>l.some(p=>p[d]);if((n.quickFilterLogicOperator??QW().quickFilterLogicOperator)===e1.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},SHn=e=>{if(!e)return null;const t=new RegExp(W9(e),"i");return(n,r,i,o)=>{let a=o.current.getRowFormattedValue(r,i);return o.current.ignoreDiacritics&&(a=ZW(a)),a!=null?t.test(a.toString()):!1}},H_e=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),i=new RegExp(W9(r),"i");return o=>{if(o==null)return t;const a=i.test(String(o));return t?!a:a}},V_e=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),i=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>{if(o==null)return t;const a=i.compare(r,o.toString())===0;return t?!a:a}},G_e=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},AHn=(e=!1)=>[{value:"contains",getApplyFilterFn:H_e(e,!1),InputComponent:sf},{value:"doesNotContain",getApplyFilterFn:H_e(e,!0),InputComponent:sf},{value:"equals",getApplyFilterFn:V_e(e,!1),InputComponent:sf},{value:"doesNotEqual",getApplyFilterFn:V_e(e,!0),InputComponent:sf},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${W9(n)}.*$`,"i");return i=>i!=null?r.test(i.toString()):!1},InputComponent:sf},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${W9(n)}$`,"i");return i=>i!=null?r.test(i.toString()):!1},InputComponent:sf},{value:"isEmpty",getApplyFilterFn:G_e(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:G_e(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(i=>i.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>i!=null?n.some(o=>r.compare(o,i.toString()||"")===0):!1},InputComponent:npt}],dm={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,chartable:!0,editable:!1,sortComparator:aHn,type:"string",align:"left",filterOperators:AHn(),renderEditCell:eHn,getApplyQuickFilterFn:SHn};function hpt(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const B9=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",OHn=e=>!!e.key,fpt=e=>e==="Tab"||e==="Escape";function gpt(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function zHn(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const mpt=v.createContext(void 0),DZ=()=>{const e=v.useContext(mpt);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e},THn="MuiDataGridVariables",cwe=v.createContext({className:"unset",tag:f.jsx("style",{href:"/unset"})});function vpt(){return v.useContext(cwe).className}function EHn(){return v.useContext(cwe)}function RHn(e){const t=DZ(),n=kn(),r=t.hooks.useCSSVariables(),i=v.useMemo(()=>{const o=`${THn}-${r.id}`,a=`.${o}{${IHn(r.variables)}}`,s=f.jsx("style",{href:`/${o}`,nonce:n.nonce,children:a});return{className:o,tag:s}},[n.nonce,r]);return f.jsx(cwe.Provider,{value:i,children:e.children})}function IHn(e){let t="";for(const n in e)Object.hasOwn(e,n)&&e[n]!==void 0&&(t+=`${n}:${e[n]};`);return t}const PHn=["open","target","onClose","children","position","className","onExited"],DHn=e=>{const{classes:t}=e;return Yt({root:["menu"]},lo,t)},kHn=rt(Jb,{name:"MuiDataGrid",slot:"Menu"})({zIndex:_n.zIndex.menu,[`& .${Te.menuList}`]:{outline:0}});function kZ(e){const{open:t,target:n,onClose:r,children:i,position:o,className:a,onExited:s}=e,l=Lt(e,PHn),c=bi(),u=kn(),d=DHn(u),p=vpt(),h=v.useRef(null);Ro(()=>{t?h.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(h.current?.focus?.(),h.current=null)},[t]),v.useEffect(()=>{const b=t?"menuOpen":"menuClose";c.current.publishEvent(b,{target:n})},[c,t,n]);const g=b=>{b.target&&(n===b.target||n?.contains(b.target))||r(b)},m=b=>{fpt(b.key)&&r(b)};return f.jsx(kHn,Y({as:u.slots.basePopper,className:_o(d.root,a,p),ownerState:u,open:t,target:n,transition:!0,placement:o,onClickAway:g,onExited:s,clickAwayMouseEvent:"onMouseDown",onKeyDown:m},l,u.slotProps?.basePopper,{children:i}))}const LHn=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],_Hn=e=>typeof e.getActions=="function";function NHn(e){const{colDef:t,id:n,hasFocus:r,tabIndex:i,position:o="bottom-end",focusElementRef:a}=e,s=Lt(e,LHn),[l,c]=v.useState(-1),[u,d]=v.useState(!1),p=bi(),h=v.useRef(null),g=v.useRef(null),m=v.useRef(!1),b=v.useRef({}),y=ts(),M=Vi(),C=Vi(),x=kn();if(!_Hn(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const w=t.getActions(p.current.getRowParams(n)),S=w.filter(W=>!W.props.showInMenu),A=w.filter(W=>W.props.showInMenu),z=S.length+(A.length?1:0);v.useLayoutEffect(()=>{r||Object.entries(b.current).forEach(([W,j])=>{j?.stop({},()=>{delete b.current[W]})})},[r]),v.useEffect(()=>{if(l<0||!h.current||l>=h.current.children.length)return;h.current.children[l].focus({preventScroll:!0})},[l]),v.useEffect(()=>{r||(c(-1),m.current=!1)},[r]),v.useImperativeHandle(a,()=>({focus(){if(!m.current){const W=w.findIndex(j=>!j.props.disabled);c(W)}}}),[w]),v.useEffect(()=>{l>=z&&c(z-1)},[l,z]);const O=()=>{d(!0),c(z-1),m.current=!0},T=()=>{d(!1)},R=W=>{W.stopPropagation(),W.preventDefault(),u?T():O()},P=W=>j=>{b.current[W]=j},F=(W,j)=>V=>{c(W),m.current=!0,j&&j(V)},N=W=>{if(z<=1)return;const j=(G,q)=>{if(G<0||G>w.length)return G;const U=(q==="left"?-1:1)*(y?-1:1);return w[G+U]?.props.disabled?j(G+U,q):G+U};let V=l;W.key==="ArrowRight"?V=j(l,"right"):W.key==="ArrowLeft"&&(V=j(l,"left")),!(V<0||V>=z)&&V!==l&&(W.preventDefault(),W.stopPropagation(),c(V))},L=z>0?{role:"menu",onKeyDown:N}:void 0;return f.jsxs("div",Y({ref:h,tabIndex:-1,className:Te.actionsCell},L,s,{children:[S.map((W,j)=>v.cloneElement(W,{key:j,touchRippleRef:P(j),onClick:F(j,W.props.onClick),tabIndex:l===j?i:-1})),A.length>0&&C&&f.jsx(x.slots.baseIconButton,Y({ref:g,id:C,"aria-label":p.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?M:void 0,role:"menuitem",size:"small",onClick:R,touchRippleRef:P(C),tabIndex:l===S.length?i:-1},x.slotProps?.baseIconButton,{children:f.jsx(x.slots.moreActionsIcon,{fontSize:"small"})})),A.length>0&&f.jsx(kZ,{open:u,target:g.current,position:o,onClose:T,children:f.jsx(x.slots.baseMenuList,{id:M,className:Te.menuList,"aria-labelledby":C,autoFocusItem:!0,children:A.map((W,j)=>v.cloneElement(W,{key:j,closeMenu:T}))})})]}))}const FHn=e=>f.jsx(NHn,Y({},e)),LZ="actions",WHn=Y({},dm,{sortable:!1,filterable:!1,aggregable:!1,chartable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:FHn,getApplyQuickFilterFn:()=>null}),qHn="__tree_data_group__",bpt="__row_group_by_columns_group__",uwe="__detail_panel_toggle__";let fo=(function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e})({});const BHn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],jHn=e=>{const{classes:t}=e;return Yt({root:["booleanCell"]},lo,t)};function HHn(e){const{value:t,rowNode:n}=e,r=Lt(e,BHn),i=bi(),o=kn(),a={classes:o.classes},s=jHn(a),c=Qt(i,xB)>0&&n.type==="group"&&o.treeData===!1,u=v.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:f.jsx(u,Y({fontSize:"small",className:s.root,titleAccess:i.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const VHn=v.memo(HHn),GHn=e=>e.field!==bpt&&OP(e.rowNode)?"":f.jsx(VHn,Y({},e)),$Hn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],UHn=e=>{const{classes:t}=e;return Yt({root:["editBooleanCell"]},lo,t)};function XHn(e){const{id:t,value:n,field:r,className:i,hasFocus:o,onValueChange:a}=e,s=Lt(e,$Hn),l=bi(),c=v.useRef(null),u=Vi(),[d,p]=v.useState(n),h=kn(),g={classes:h.classes},m=UHn(g),b=v.useCallback(async y=>{const M=y.target.checked;a&&await a(y,M),p(M),await l.current.setEditCellValue({id:t,field:r,value:M},y)},[l,r,t,a]);return v.useEffect(()=>{p(n)},[n]),Ro(()=>{o&&c.current.focus()},[o]),f.jsx("label",Y({htmlFor:u,className:_o(m.root,i)},s,{children:f.jsx(h.slots.baseCheckbox,Y({id:u,inputRef:c,checked:!!d,onChange:b,size:"small"},h.slotProps?.baseCheckbox))}))}const YHn=e=>f.jsx(XHn,Y({},e)),KHn=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function QHn(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:i,headerFilterMenu:o,clearButton:a,tabIndex:s,slotProps:l}=e,c=Lt(e,KHn),[u,d]=v.useState(z7(t.value)),p=kn(),h=Vi(),g=Vi(),m=p.slotProps?.baseSelect||{},b=m.native??!1,y=p.slotProps?.baseSelectOption||{},M=v.useCallback(w=>{const S=z7(w.target.value);d(S),n(Y({},t,{value:S}))},[n,t]);v.useEffect(()=>{d(z7(t.value))},[t.value]);const C=l?.root.label??r.current.getLocaleText("filterPanelInputLabel"),x=l?.root.slotProps;return f.jsxs(v.Fragment,{children:[f.jsxs(p.slots.baseSelect,Y({fullWidth:!0,labelId:h,id:g,label:C,value:u===void 0?"":String(u),onChange:M,native:b,slotProps:{htmlInput:Y({ref:i,tabIndex:s},x?.htmlInput)}},m,c,l?.root,{children:[f.jsx(p.slots.baseSelectOption,Y({},y,{native:b,value:"",children:r.current.getLocaleText("filterValueAny")})),f.jsx(p.slots.baseSelectOption,Y({},y,{native:b,value:"true",children:r.current.getLocaleText("filterValueTrue")})),f.jsx(p.slots.baseSelectOption,Y({},y,{native:b,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),o,a]})}function z7(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}const ZHn=()=>[{value:"is",getApplyFilterFn:e=>{const t=z7(e.value);return t===void 0?null:n=>!!n===t},InputComponent:QHn}],JHn=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),e8n=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},ypt=Y({},dm,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:GHn,renderEditCell:YHn,sortComparator:J1t,valueFormatter:JHn,filterOperators:ZHn(),getApplyQuickFilterFn:()=>null,aggregable:!1,chartable:!1,pastedValueParser:e=>e8n(e)});function _Z(e){for(const t in e)return!1;return!0}const Mpt=ks(e=>e.sorting),AB=rr(Mpt,e=>e.sortedRows),dwe=ta(AB,yf,Qc,(e,t,n)=>e.reduce((r,i)=>{const o=t[i];if(o)r.push({id:i,model:o});else{const a=n[i];a&&OP(a)&&r.push({id:i,model:{[jz]:i}})}return r},[])),Qh=rr(Mpt,e=>e.sortModel),t8n=ta(Qh,e=>e.reduce((n,r,i)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?i+1:void 0},n),{}));ta(AB,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const NZ=ks(e=>e.filter),mu=rr(NZ,e=>e.filterModel),Cpt=rr(mu,e=>e.quickFilterValues),n8n=ks(e=>e.visibleRowsLookup),UD=rr(NZ,e=>e.filteredRowsLookup);rr(NZ,e=>e.filteredChildrenCountLookup);rr(NZ,e=>e.filteredDescendantCountLookup);const W3=ta(n8n,dwe,(e,t)=>_Z(e)?t:t.filter(n=>e[n.id]!==!1)),KO=ta(W3,e=>e.map(t=>t.id)),pwe=ta(UD,dwe,(e,t)=>_Z(e)?t:t.filter(n=>e[n.id]!==!1)),xpt=ta(pwe,e=>e.map(t=>t.id));ta(KO,Qc,(e,t)=>{const n={};let r=0;return e.reduce((i,o)=>{const a=t[o];return n[a.depth]||(n[a.depth]=0),a.depth>r&&(n[a.depth]=0),r=a.depth,n[a.depth]+=1,i[o]=n[a.depth],i},{})});const r8n=ta(pwe,Qc,xB,(e,t,n)=>n<2?[e]:e.reduce((r,i)=>{const o=t[i.id]?.depth;return o===void 0||(r[o]||(r[o]=[]),r[o].push(i)),r},[[]])),wpt=rr(r8n,e=>e[0]??[]),hwe=rr(W3,e=>e.length),fwe=rr(wpt,e=>e.length),Spt=rr(pwe,e=>e.length);rr(Spt,fwe,(e,t)=>e-t);const gwe=ta(mu,xM,(e,t)=>e.items?.filter(n=>{if(!n.field)return!1;const r=t[n.field];if(!r?.filterOperators||r?.filterOperators?.length===0)return!1;const i=r.filterOperators.find(o=>o.value===n.operator);return i?!i.InputComponent||n.value!=null&&n.value?.toString()!=="":!1})),i8n=ta(gwe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{}));ta(KO,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const jg=ks(e=>e.rowSelection),OB=ta(jg,QC),FZ=rr(jg,Spt,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),Apt=ta(jg,yf,hO,(e,t,n)=>{const r=new Map;if(e.type==="include")for(const i of e.ids)r.set(i,t[i]);else for(let i=0;i<n.length;i+=1){const o=n[i];e.ids.has(o)||r.set(o,t[o])}return r});function Opt(e,t){const n=Qc(e),r=AB(e),i=UD(e),o=n[t];if(!o||o.type!=="group")return[];const a=[],s=r.findIndex(l=>l===t)+1;for(let l=s;l<r.length&&n[r[l]]?.depth>o.depth;l+=1){const c=r[l];i[c]!==!1&&e.current.isRowSelectable(c)&&a.push(c)}return a}const o8n=rr(Qc,UD,OB,(e,t,n,{groupId:r,autoSelectParents:i})=>{const o=e[r];if(!o||o.type!=="group"||n.has(r))return{isIndeterminate:!1,isChecked:n.has(r)};let a=!1,s=!1;const l=c=>{if(t[c]===!1||a&&s)return;const u=e[c];u?.type==="group"&&u.children.forEach(l),n.has(c)?a=!0:s=!0};return l(r),{isIndeterminate:a&&s,isChecked:i?a&&!s:!1}});function mwe(e){return e.signature===cm.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const a8n=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==Dl;){const i=e[r];if(!i)return n;n.push(r),r=i.parent}return n},s8n=(e,t,n)=>{const r=e[n];if(!r)return[];const i=r.parent;return i==null?[]:e[i].children.filter(a=>a!==n&&t[a]!==!1)},Z4=(e,t,n,r,i,o,a=OB(e))=>{const s=UD(e),l=new Set([]);if(!(!r&&!i||s[n]===!1)&&(r&&t[n]?.type==="group"&&Opt(e,n).forEach(d=>{o(d),l.add(d)}),i)){const c=p=>{if(!a.has(p)&&!l.has(p))return!1;const h=t[p];return h?h.type!=="group"?!0:h.children.every(c):!1},u=p=>{const h=s8n(t,s,p);if(h.length===0||h.every(c)){const m=t[p]?.parent;m!=null&&m!==Dl&&e.current.isRowSelectable(m)&&(o(m),l.add(m),u(m))}},d=t[n];if(!d||d.parent===Dl)return;u(n)}},$_e=(e,t,n,r,i,o)=>{const a=OB(e);!i&&!r||(i&&a8n(t,n).forEach(l=>{a.has(l)&&o(l)}),r&&t[n]?.type==="group"&&Opt(e,n).forEach(c=>{o(c)}))},l8n=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],c8n=e=>{const{classes:t}=e;return Yt({root:["checkboxInput"]},lo,t)},u8n=qr(function(t,n){const{field:r,id:i,rowNode:o,tabIndex:a}=t,s=Lt(t,l8n),l=bi(),c=kn(),u={classes:c.classes},d=c8n(u),p=M=>{const C={value:M.target.checked,id:i};l.current.publishEvent("rowSelectionCheckboxChange",C,M)};v.useLayoutEffect(()=>{if(a===0){const M=l.current.getCellElement(i,r);M&&(M.tabIndex=-1)}},[l,a,i,r]);const h=v.useCallback(M=>{M.key===" "&&M.stopPropagation()},[]),g=l.current.isRowSelectable(i),{isIndeterminate:m,isChecked:b}=Qt(l,o8n,{groupId:i,autoSelectParents:c.rowSelectionPropagation?.parents??!1});if(o.type==="footer"||o.type==="pinnedRow")return null;const y=l.current.getLocaleText(b&&!m?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return f.jsx(c.slots.baseCheckbox,Y({tabIndex:a,checked:b&&!m,onChange:p,className:d.root,slotProps:{htmlInput:{"aria-label":y,name:"select_row"}},onKeyDown:h,indeterminate:m,disabled:!g},c.slotProps?.baseCheckbox,s,{ref:n}))}),d8n=u8n,WZ=ks(e=>e.focus),G1=rr(WZ,e=>e.cell),p8n=rr(WZ,e=>e.columnHeader);rr(WZ,e=>e.columnHeaderFilter);const j9=rr(WZ,e=>e.columnGroupHeader),qZ=ks(e=>e.tabIndex),vwe=rr(qZ,e=>e.cell),zpt=rr(qZ,e=>e.columnHeader);rr(qZ,e=>e.columnHeaderFilter);const h8n=rr(qZ,e=>e.columnGroupHeader),f8n=100,g8n=e=>e?0:100,Tpt=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,Ept=e=>({page:0,pageSize:e?0:100}),m8n=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),Rpt=(e,t)=>{if(t===cm.DataGrid&&e>f8n)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`))},v8n=-1,XD=ks(e=>e.pagination),Ipt=rr(XD,e=>e.enabled&&e.paginationMode==="client"),Hu=rr(XD,e=>e.paginationModel),qR=rr(XD,e=>e.rowCount),aN=rr(XD,e=>e.meta),b8n=rr(Hu,e=>e.page),Ppt=rr(Hu,e=>e.pageSize),Dpt=rr(Hu,qR,(e,t)=>Tpt(t,e.pageSize,e.page)),bwe=ta(Ipt,Hu,Qc,xB,W3,wpt,(e,t,n,r,i,o)=>{if(!e)return null;const a=o.length,s=Math.min(t.pageSize*t.page,a-1),l=t.pageSize===v8n?a-1:Math.min(s+t.pageSize-1,a-1);if(s===-1||l===-1)return null;if(r<2)return{firstRowIndex:s,lastRowIndex:l};const c=o[s],u=l-s+1,d=i.findIndex(g=>g.id===c.id);let p=d,h=0;for(;p<i.length&&h<=u;){const g=i[p],m=n[g.id]?.depth;m===void 0?p+=1:((h<u||m>0)&&(p+=1),m===0&&(h+=1))}return{firstRowIndex:d,lastRowIndex:p-1}}),y8n=ta(W3,bwe,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),kpt=ta(KO,bwe,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),zB=ta(Ipt,bwe,y8n,W3,(e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((i,o,a)=>(i.set(o.id,a),i),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce((i,o,a)=>(i.set(o.id,a),i),new Map)}),M8n=["field","colDef"],C8n=e=>{const{classes:t}=e;return Yt({root:["checkboxInput"]},lo,t)},x8n=qr(function(t,n){const r=Lt(t,M8n),[,i]=v.useState(!1),o=bi(),a=kn(),s={classes:a.classes},l=C8n(s),c=Qt(o,zpt),u=Qt(o,jg),d=Qt(o,KO),p=Qt(o,kpt),h=v.useMemo(()=>{const A=a.isRowSelectable;if(typeof A!="function"||u.type==="exclude")return u;const z={type:"include",ids:new Set};for(const O of u.ids)a.keepNonExistentRowsSelected&&z.ids.add(O),o.current.getRow(O)&&A(o.current.getRowParams(O))&&z.ids.add(O);return z},[o,a.isRowSelectable,a.keepNonExistentRowsSelected,u]),g=v.useMemo(()=>{const A=!a.pagination||!a.checkboxSelectionVisibleOnly||a.paginationMode==="server"?d:p,z=new Set;for(let O=0;O<A.length;O+=1){const T=A[O];o.current.getRow(T)&&o.current.isRowSelectable(T)&&z.add(T)}return z},[o,a.pagination,a.paginationMode,a.checkboxSelectionVisibleOnly,p,d]),m=v.useMemo(()=>{const A=QC(h);let z=0;for(const O of g)A.has(O)&&(z+=1);return z},[h,g]),b=v.useMemo(()=>{if(m===0)return!1;const A=QC(h);for(const z of g)if(!A.has(z))return!0;return!1},[m,h,g]),y=m>0,M=A=>{const z={value:A.target.checked};o.current.publishEvent("headerSelectionCheckboxChange",z)},C=c!==null&&c.field===t.field?0:-1;v.useLayoutEffect(()=>{const A=o.current.getColumnHeaderElement(t.field);C===0&&A&&(A.tabIndex=-1)},[C,o,t.field]);const x=v.useCallback(A=>{A.key===" "&&o.current.publishEvent("headerSelectionCheckboxChange",{value:!y})},[o,y]),w=v.useCallback(()=>{i(A=>!A)},[]);v.useEffect(()=>o.current.subscribeEvent("rowSelectionChange",w),[o,w]);const S=o.current.getLocaleText(y&&!b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return f.jsx(a.slots.baseCheckbox,Y({indeterminate:b,checked:y&&!b,onChange:M,className:l.root,slotProps:{htmlInput:{"aria-label":S,name:"select_all_rows"}},tabIndex:C,onKeyDown:x,disabled:!mwe(a)},a.slotProps?.baseCheckbox,r,{ref:n}))}),zP=ks((e,t)=>jz in t?t[jz]:e.props.getRowId?e.props.getRowId(t):t.id),Lg="__check__",YD=Y({},ypt,{type:"custom",field:Lg,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,chartable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const i=zP(r,t);return r.current.isRowSelected(i)},rowSpanValueGetter:(e,t,n,r)=>zP(r,t),renderHeader:e=>f.jsx(x8n,Y({},e)),renderCell:e=>f.jsx(d8n,Y({},e))}),w8n=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function U_e(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function PE(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,slotProps:a,headerFilterMenu:s,clearButton:l,tabIndex:c,disabled:u}=e,d=Lt(e,w8n),p=a?.root.slotProps,h=Qp(),[g,m]=v.useState(()=>U_e(t.value,r)),[b,y]=v.useState(!1),M=Vi(),C=kn(),x=v.useCallback(w=>{h.clear();const S=w.target.value;m(S),y(!0),h.start(C.filterDebounceMs,()=>{const A=new Date(S);n(Y({},t,{value:Number.isNaN(A.getTime())?void 0:A})),y(!1)})},[n,t,C.filterDebounceMs,h]);return v.useEffect(()=>{const w=U_e(t.value,r);m(w)},[t.value,r]),f.jsxs(v.Fragment,{children:[f.jsx(C.slots.baseTextField,Y({fullWidth:!0,id:M,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:x,type:r||"text",disabled:u,inputRef:o,slotProps:Y({},p,{input:Y({endAdornment:b?f.jsx(C.slots.loadIcon,{fontSize:"small",color:"action"}):null},p?.input),htmlInput:Y({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},p?.htmlInput)})},C.slotProps?.baseTextField,d,a?.root)),s,l]})}function DE(e,t,n,r){if(!e.value)return null;const i=new Date(e.value);n?i.setSeconds(0,0):(i.setMinutes(i.getMinutes()+i.getTimezoneOffset()),i.setHours(0,0,0,0));const o=i.getTime();return a=>{if(!a)return!1;if(r)return t(a.getTime(),o);const s=new Date(a);return n?s.setSeconds(0,0):s.setHours(0,0,0,0),t(s.getTime(),o)}}const Lpt=e=>[{value:"is",getApplyFilterFn:t=>DE(t,(n,r)=>n===r,e),InputComponent:PE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>DE(t,(n,r)=>n!==r,e),InputComponent:PE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>DE(t,(n,r)=>n>r,e),InputComponent:PE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>DE(t,(n,r)=>n>=r,e),InputComponent:PE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>DE(t,(n,r)=>n<r,e,!e),InputComponent:PE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>DE(t,(n,r)=>n<=r,e),InputComponent:PE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],S8n=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],A8n=rt(Jb)({fontSize:"inherit"}),O8n=e=>{const{classes:t}=e;return Yt({root:["editInputCell"]},lo,t)};function z8n(e){const{id:t,value:n,field:r,colDef:i,hasFocus:o,onValueChange:a,slotProps:s}=e,l=Lt(e,S8n),c=i.type==="dateTime",u=bi(),d=v.useRef(null),p=v.useMemo(()=>{let x;n==null?x=null:n instanceof Date?x=n:x=new Date((n??"").toString());let w;return x==null||Number.isNaN(x.getTime())?w="":w=new Date(x.getTime()-x.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:x,formatted:w}},[n,c]),[h,g]=v.useState(p),m=kn(),b={classes:m.classes},y=O8n(b),M=v.useCallback(x=>{if(x==="")return null;const[w,S]=x.split("T"),[A,z,O]=w.split("-"),T=new Date;if(T.setFullYear(Number(A),Number(z)-1,Number(O)),T.setHours(0,0,0,0),S){const[R,P]=S.split(":");T.setHours(Number(R),Number(P),0,0)}return T},[]),C=v.useCallback(async x=>{const w=x.target.value,S=M(w);a&&await a(x,S),g({parsed:S,formatted:w}),u.current.setEditCellValue({id:t,field:r,value:S},x)},[u,r,t,a,M]);return v.useEffect(()=>{g(x=>p.parsed!==x.parsed&&p.parsed?.getTime()!==x.parsed?.getTime()?p:x)},[p]),Ro(()=>{o&&d.current.focus()},[o]),f.jsx(A8n,Y({as:m.slots.baseInput,inputRef:d,fullWidth:!0,className:y.root,type:c?"datetime-local":"date",value:h.formatted,onChange:C},l,s?.root,{slotProps:{htmlInput:Y({max:c?"9999-12-31T23:59":"9999-12-31"},s?.root?.slotProps?.htmlInput)}}))}const _pt=e=>f.jsx(z8n,Y({},e));function Npt({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
`))}const T8n=(e,t,n,r)=>{if(!e)return"";const i=zP(r,t);return U1t(t)&&!(e instanceof Date)?e:(Npt({value:e,columnType:"date",rowId:i,field:n.field}),e.toLocaleDateString())},E8n=(e,t,n,r)=>{if(!e)return"";const i=zP(r,t);return U1t(t)&&!(e instanceof Date)?e:(Npt({value:e,columnType:"dateTime",rowId:i,field:n.field}),e.toLocaleString())},R8n=Y({},dm,{type:"date",sortComparator:ept,valueFormatter:T8n,filterOperators:Lpt(),renderEditCell:_pt,pastedValueParser:e=>new Date(e)}),I8n=Y({},dm,{type:"dateTime",sortComparator:ept,valueFormatter:E8n,filterOperators:Lpt(!0),renderEditCell:_pt,pastedValueParser:e=>new Date(e)}),_C=e=>e==null?null:Number(e),P8n=e=>e==null||Number.isNaN(e)||e===""?null:t=>_C(t)===_C(e),D8n=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>_C(t)===e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>_C(t)!==e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:_C(t)>e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:_C(t)>=e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:_C(t)<e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:_C(t)<=e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:npt,InputComponentProps:{type:"number"}}],k8n=Y({},dm,{type:"number",align:"right",headerAlign:"right",sortComparator:J1t,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>lHn(e)?e.toLocaleString():e||"",filterOperators:D8n(),getApplyQuickFilterFn:P8n});function JW(e){return e?.type==="singleSelect"}function Hz(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(Y({field:e.field},t)):e.valueOptions}function H9(e,t,n){if(t===void 0)return;const r=t.find(i=>{const o=n(i);return String(o)===String(e)});return n(r)}const L8n=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function _8n(e){return"key"in e&&!!e.key}function N8n(e){const t=kn(),{id:n,value:r,field:i,row:o,colDef:a,hasFocus:s,error:l,onValueChange:c,initialOpen:u=t.editMode===Lb.Cell,slotProps:d}=e,p=Lt(e,L8n),h=bi(),g=v.useRef(null),m=v.useRef(null),[b,y]=v.useState(u),C=(t.slotProps?.baseSelect||{}).native??!1;if(Ro(()=>{s&&m.current?.focus()},[s]),!JW(a))return null;const x=Hz(a,{id:n,row:o});if(!x)return null;const w=a.getOptionValue,S=a.getOptionLabel,A=async T=>{if(!JW(a)||!x)return;y(!1);const R=T.target,P=H9(R.value,x,w);c&&await c(T,P),await h.current.setEditCellValue({id:n,field:i,value:P},T)},z=(T,R)=>{if(t.editMode===Lb.Row){y(!1);return}if(R==="backdropClick"||T.key==="Escape"){const P=h.current.getCellParams(n,i);h.current.publishEvent("cellEditStop",Y({},P,{reason:T.key==="Escape"?Wg.escapeKeyDown:Wg.cellFocusOut}))}},O=T=>{_8n(T)&&T.key==="Enter"||y(!0)};return!x||!a?null:f.jsx(t.slots.baseSelect,Y({ref:g,value:r,onChange:A,open:b,onOpen:O,onClose:z,error:l,native:C,fullWidth:!0,slotProps:{htmlInput:{ref:m}}},p,d?.root,t.slotProps?.baseSelect,{children:x.map(T=>{const R=w(T);return v.createElement(t.slots.baseSelectOption,Y({},t.slotProps?.baseSelectOption||{},{native:C,key:R,value:R}),S(T))})}))}const F8n=e=>f.jsx(N8n,Y({},e)),W8n=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],q8n=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:i,baseSelectOptionProps:o})=>["",...Hz(e)||[]].map(s=>{const l=r(s);let c=n(s);return c===""&&(c=" "),v.createElement(t,Y({},o,{native:i,key:l,value:l}),c)});function X_e(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,tabIndex:a,clearButton:s,headerFilterMenu:l,slotProps:c}=e,u=Lt(e,W8n),d=t.value??"",p=Vi(),h=Vi(),g=kn(),m=g.slotProps?.baseSelect?.native??!1,b=i.current.getColumn(t.field),y=b.getOptionValue,M=b.getOptionLabel,C=v.useMemo(()=>Hz(b),[b]),x=v.useCallback(S=>{let A=S.target.value;A=H9(A,C,y),n(Y({},t,{value:A}))},[C,y,n,t]);if(!b||!JW(b))return null;const w=c?.root.label??i.current.getLocaleText("filterPanelInputLabel");return f.jsxs(v.Fragment,{children:[f.jsx(g.slots.baseSelect,Y({fullWidth:!0,id:p,label:w,labelId:h,value:d,onChange:x,slotProps:{htmlInput:Y({tabIndex:a,ref:o,type:r||"text",placeholder:c?.root.placeholder??i.current.getLocaleText("filterPanelInputPlaceholder")},c?.root.slotProps?.htmlInput)},native:m},g.slotProps?.baseSelect,u,c?.root,{children:q8n({column:b,OptionComponent:g.slots.baseSelectOption,getOptionLabel:M,getOptionValue:y,isSelectNative:m,baseSelectOptionProps:g.slotProps?.baseSelectOption})})),l,s]})}const B8n=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function j8n(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,slotProps:a}=e,s=Lt(e,B8n),l=Vi(),c=kn(),u=i.current.getColumn(t.field),d=u.getOptionValue,p=u.getOptionLabel,h=v.useCallback((M,C)=>d(M)===d(C),[d]),g=v.useMemo(()=>Hz(u)||[],[u]),m=v.useMemo(()=>Array.isArray(t.value)?t.value.reduce((M,C)=>{const x=g.find(w=>d(w)===C);return x!=null&&M.push(x),M},[]):[],[d,t.value,g]),b=v.useCallback((M,C)=>{n(Y({},t,{value:C.map(d)}))},[n,t,d]);if(!u||!JW(u))return null;const y=c.slots.baseAutocomplete;return f.jsx(y,Y({multiple:!0,options:g,isOptionEqualToValue:h,id:l,value:m,onChange:b,getOptionLabel:p,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:o}}},s,a?.root))}const kE=e=>e==null||!awe(e)?e:e.value,H8n=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>kE(t)===kE(e.value),InputComponent:X_e},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>kE(t)!==kE(e.value),InputComponent:X_e},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(kE);return n=>t.includes(kE(n))},InputComponent:j8n}],V8n=e=>typeof e[0]=="object",G8n=e=>awe(e)?e.value:e,$8n=e=>awe(e)?e.label:String(e),U8n=Y({},dm,{type:"singleSelect",getOptionLabel:$8n,getOptionValue:G8n,valueFormatter(e,t,n,r){const i=zP(r,t);if(!JW(n))return"";const o=Hz(n,{id:i,row:t});if(e==null)return"";if(!o)return e;if(!V8n(o))return n.getOptionLabel(e);const a=o.find(s=>n.getOptionValue(s)===e);return a?n.getOptionLabel(a):""},renderEditCell:F8n,filterOperators:H8n(),pastedValueParser:(e,t,n)=>{const r=n,i=Hz(r)||[],o=r.getOptionValue;if(i.find(s=>o(s)===e))return e}}),X8n="string",Y8n=()=>({string:dm,number:k8n,date:R8n,dateTime:I8n,boolean:ypt,singleSelect:U8n,[LZ]:WHn,custom:dm}),ywe=ks(e=>e.headerFiltering),K8n=rr(ywe,e=>e?.enabled??!1),Q8n=rr(ywe,e=>e.editing),Z8n=rr(ywe,e=>e.menuOpen),BZ=ks(e=>e.columnGrouping),Fpt=ta(BZ,e=>e?.unwrappedGroupingModel??{}),Wpt=ta(BZ,e=>e?.lookup??{}),J8n=ta(BZ,e=>e?.headerStructure??[]),TB=rr(BZ,e=>e?.maxDepth??0),qpt=["maxWidth","minWidth","width","flex"],zoe=Y8n();function eVn({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),i={all:{},frozenFields:[],freeze:a=>{const s=i.all[a];s&&s.frozen!==!0&&(i.all[a].frozen=!0,i.frozenFields.push(a))}};function o(){if(i.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,c=0;i.frozenFields.forEach(u=>{s-=i.all[u].computedWidth,l-=i.all[u].flex});for(let u=0;u<n.length;u+=1){const d=n[u];if(i.all[d.field]&&i.all[d.field].frozen===!0)continue;let h=s/l*d.flex;h<d.minWidth?(c+=d.minWidth-h,h=d.minWidth,a.min[d.field]=!0):h>d.maxWidth&&(c+=d.maxWidth-h,h=d.maxWidth,a.max[d.field]=!0),i.all[d.field]={frozen:!1,computedWidth:h,flex:d.flex}}c<0?Object.keys(a.max).forEach(u=>{i.freeze(u)}):c>0?Object.keys(a.min).forEach(u=>{i.freeze(u)}):n.forEach(({field:u})=>{i.freeze(u)}),o()}return o(),i.all}const Nge=(e,t)=>{const n={};let r=0,i=0;const o=[];e.orderedFields.forEach(l=>{let c=e.lookup[l],u=0,d=!1;e.columnVisibilityModel[l]!==!1&&(c.flex&&c.flex>0?(r+=c.flex,d=!0):u=YO(c.width||dm.width,c.minWidth||dm.minWidth,c.maxWidth||dm.maxWidth),i+=u),c.computedWidth!==u&&(c=Y({},c,{computedWidth:u})),d&&o.push(c),n[l]=c});const a=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),s=Math.max(a-i,0);if(r>0&&a>0){const l=eVn({initialFreeSpace:s,totalFlexUnits:r,flexColumns:o});Object.keys(l).forEach(c=>{n[c]=Y({},n[c],{computedWidth:l[c].computedWidth})})}return Y({},e,{lookup:n})},tVn=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,i=Object.keys(r);if(i.length===0&&n.length===0)return e;const o={},a=[];for(let u=0;u<n.length;u+=1){const d=n[u];e.lookup[d]&&(o[d]=!0,a.push(d))}const s=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(u=>!o[u])],l=Y({},e.lookup);for(let u=0;u<i.length;u+=1){const d=i[u],p=Y({},l[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([h,g])=>{p[h]=g===-1?1/0:g}),l[d]=p}return Y({},e,{orderedFields:s,lookup:l})};function Toe(e){let t=zoe[X8n];return e&&zoe[e]&&(t=zoe[e]),t}const xR=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Mf(e),keepOnlyColumnsToUpsert:i=!1,updateInitialVisibilityModel:o=!1})=>{const a=!e.current.state.columns;let s;if(a)s={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const d=um(e);s={orderedFields:i?[]:[...d.orderedFields],lookup:Y({},d.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:o?r:d.initialColumnVisibilityModel}}const l={};if(i&&!a)for(const d in s.lookup)Object.prototype.hasOwnProperty.call(s.lookup,d)&&(l[d]=!1);t.forEach(d=>{const{field:p}=d;l[p]=!0;let h=s.lookup[p];h==null?(h=Y({},Toe(d.type),{field:p,hasBeenResized:!1}),s.orderedFields.push(p)):i&&s.orderedFields.push(p),h&&h.type!==d.type&&(h=Y({},Toe(d.type),{field:p}));let g=h.hasBeenResized;qpt.forEach(m=>{d[m]!==void 0&&(g=!0,d[m]===-1&&(d[m]=1/0))}),s.lookup[p]=Dz(h,Y({},Toe(d.type),d,{hasBeenResized:g}))}),i&&!a&&Object.keys(s.lookup).forEach(d=>{l[d]||delete s.lookup[d]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",s),u=tVn(c,n);return Nge(u,e.current.getRootDimensions?.()??void 0)};function EB(e,t){if(t.listView)return 0;const n=wB(e),r=TB(e),i=K8n(e),o=Math.floor(t.columnHeaderHeight*n),a=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),s=i?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return o+a*r+s}const V9=1,Bpt=1.5,nVn=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Yt(r,lo,n)},rVn=Go("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${Te["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${Te["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${Te["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${Te["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${Te["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${Te["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${Te["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${Te["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),iVn=rr(Ks,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function oVn(e){const t=bi(),[n,r]=v.useState("none");return Yn(t,"columnHeaderDragStart",()=>r("horizontal")),Yn(t,"columnHeaderDragEnd",()=>r("none")),Yn(t,"rowDragStart",()=>r("vertical")),Yn(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?f.jsx(aVn,Y({},e)):f.jsx(sVn,Y({},e))}function aVn(e){const{scrollDirection:t,scrollPosition:n}=e,r=v.useRef(null),i=bi(),o=Qp(),a=Qt(i,wB),s=Qt(i,twe),l=Qt(i,iVn,t),c=()=>{const m=Ks(i);if(t==="left")return n.current.left>0;if(t==="right"){const b=s-m.viewportInnerSize.width;return n.current.left<b}return!1},u=kn(),d=EB(i,u),p=Math.floor(u.columnHeaderHeight*a),h=Y({height:p,top:d-p},t==="left"?{left:l}:{},t==="right"?{right:l}:{}),g=en(m=>{let b;if(m.preventDefault(),t==="left")b=m.clientX-r.current.getBoundingClientRect().right;else if(t==="right")b=Math.max(1,m.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");b=(b-V9)*Bpt+V9,o.start(0,()=>{i.current.scroll({left:n.current.left+b,top:n.current.top})})});return f.jsx(jpt,Y({},e,{ref:r,getCanScrollMore:c,style:h,handleDragOver:g}))}function sVn(e){const{scrollDirection:t,scrollPosition:n}=e,r=v.useRef(null),i=bi(),o=Qp(),a=Qt(i,nwe),s=()=>{const p=Ks(i);if(t==="up")return n.current.top>0;if(t==="down"){const g=(a.currentPageTotalHeight||0)-p.viewportInnerSize.height-(p.hasScrollX?p.scrollbarSize:0);return n.current.top<g}return!1},l=kn(),c=EB(i,l),u={top:t==="up"?c:void 0,bottom:t==="down"?0:void 0},d=en(p=>{let h;if(p.preventDefault(),t==="up")h=p.clientY-r.current.getBoundingClientRect().bottom;else if(t==="down")h=Math.max(1,p.clientY-r.current.getBoundingClientRect().top);else throw new Error("MUI X: Wrong drag direction");h=(h-V9)*Bpt+V9,o.start(0,()=>{i.current.scroll({left:n.current.left,top:n.current.top+h})})});return f.jsx(jpt,Y({},e,{ref:r,getCanScrollMore:s,style:u,handleDragOver:d}))}const jpt=qr(function(t,n){const{scrollDirection:r,getCanScrollMore:i,style:o,handleDragOver:a}=t,s=bi(),[l,c]=v.useState(i),u=kn(),d=Y({},u,{scrollDirection:r}),p=nVn(d);return Yn(s,"scrollPositionChange",()=>{c(i)}),l?f.jsx(rVn,{ref:n,className:p.root,ownerState:d,onDragOver:a,style:o}):null}),_8=CM(oVn),Hpt=v.createContext(void 0);function Sp(){const e=v.useContext(Hpt);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e}function Gi(e,t,n){const r=v.useRef(!0);Ro(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Ju(e,t){const n=v.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Vpt=(e,t,n,r,i)=>{const o=Ju(e,"useNativeEventListener");Ka(e,"rootMount",()=>{const a=t();if(!(!a||!n))return o.debug(`Binding native ${n} event`),a.addEventListener(n,r,i),()=>{o.debug(`Clearing native ${n} event`),a.removeEventListener(n,r,i)}})};function KD(e){const t=v.useRef(!0);t.current&&(t.current=!1,e())}const Gpt=ks(e=>e.pivoting),Vz=rr(Gpt,e=>e?.active),lVn=new Map,Mwe=rr(Gpt,e=>e?.initialColumns||lVn),$pt=(e,t)=>{const n=Qt(e,GD),r=Qt(e,hwe),i=Qt(e,V1t),o=Qt(e,xl),a=n===0&&i===0,s=Qt(e,zjn),l=Qt(e,Vz),c=!s&&a,u=!s&&n>0&&r===0,d=!s&&o.length===0,p=c&&l;let h=null,g=null;return c&&(h="noRowsOverlay"),d&&(h="noColumnsOverlay"),p&&(h="emptyPivotOverlay"),u&&(h="noResultsOverlay"),s&&(h="loadingOverlay",g=t.slotProps?.loadingOverlay?.[a?"noRowsVariant":"variant"]??(a?"skeleton":"linear-progress")),{overlayType:h,loadingOverlayVariant:g}},T7=ks(e=>e.columnMenu);function cVn(){const e=Sp(),t=kn(),n=Qt(e,xl),r=Qt(e,i8n),i=Qt(e,t8n),o=Qt(e,zpt),a=Qt(e,()=>vwe(e)===null),s=Qt(e,h8n),l=Qt(e,p8n),c=Qt(e,j9),u=Qt(e,TB),d=Qt(e,T7),p=Qt(e,Mf),h=Qt(e,J8n),g=!(s===null&&o===null&&a),m=e.current.columnHeadersContainerRef;return f.jsx(t.slots.columnHeaders,Y({ref:m,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:i,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g},t.slotProps?.columnHeaders))}const uVn=CM(cVn),dVn=Go("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),pVn=Go("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:i}=e,o=r==="skeleton"||i==="noColumnsOverlay";return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],o&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),hVn=qr((e,t)=>{const{ownerState:n}=e,r=kn(),o=DZ().hooks.useGridAriaAttributes();return f.jsxs(pVn,Y({ownerState:n,className:e.className,tabIndex:-1},o,r.slotProps?.main,{ref:t,children:[f.jsx(dVn,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),fVn=()=>Yt({root:["topContainer"]},lo,{}),gVn=Go("div")({position:"sticky",zIndex:40,top:0});function mVn(e){const t=fVn();return f.jsx(gVn,Y({},e,{className:_o(t.root,Te["container--top"]),role:"presentation"}))}const vVn=(e,t)=>{const{classes:n}=e;return Yt({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},lo,n)},bVn=Go("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),yVn=qr(function(t,n){const r=kn(),i=!r.autoHeight&&t.style?.minHeight==="auto",o=vVn(r,i),a={classes:r.classes,overflowedContent:i};return f.jsx(bVn,Y({},t,{ownerState:a,className:_o(o.root,t.className),ref:n}))}),MVn=Go("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),Upt=Go("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:_n.cell.background.pinned}),CVn=Go(Upt)({left:0}),xVn=Go(Upt)({right:0}),wVn=Go("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function SVn({rowsLength:e}){const t=bi(),{viewportOuterSize:n,minimumSize:r,hasScrollX:i,hasScrollY:o,scrollbarSize:a,leftPinnedWidth:s,rightPinnedWidth:l}=Qt(t,Ks),c=i?a:0,u=n.height-r.height>0;return c===0&&!u?null:f.jsxs(MVn,{className:Te.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[s>0&&f.jsx(CVn,{className:Te["filler--pinnedLeft"],style:{width:s}}),f.jsx(wVn,{}),l>0&&f.jsx(xVn,{className:Te["filler--pinnedRight"],style:{width:l+(o?a:0)}})]})}const AVn=CM(SVn),OVn=["className"],zVn=e=>{const{classes:t}=e;return Yt({root:["virtualScrollerRenderZone"]},lo,t)},TVn=Go("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),EVn=qr(function(t,n){const{className:r}=t,i=Lt(t,OVn),o=Sp(),a=kn(),s=zVn(a),l=o.current.virtualizer.api.useVirtualization().getters.getOffsetTop();return f.jsx(TVn,Y({className:_o(s.root,r),ownerState:a,style:{transform:`translate3d(0, ${l}px, 0)`}},i,{ref:n}))}),RVn={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},bu=ks(e=>e.editRows),Xpt=rr(bu,(e,{rowId:t,editMode:n})=>n===Lb.Row&&!!e[t]),IVn=rr(bu,(e,{rowId:t,field:n})=>e[t]?.[n]??null),Gz=ks(e=>e.preferencePanel),PVn=rr(Gz,(e,t)=>!!(e.open&&e.labelId===t));var o1=(function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e})(o1||{}),G9=Symbol("NOT_FOUND");function DVn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function kVn(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function LVn(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Y_e=e=>Array.isArray(e)?e:[e];function _Vn(e){const t=Array.isArray(e[0])?e[0]:e;return LVn(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function NVn(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function FVn(e){let t;return{get(n){return t&&e(t.key,n)?t.value:G9},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function WVn(e,t){let n=[];function r(s){const l=n.findIndex(c=>t(s,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return G9}function i(s,l){r(s)===G9&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function o(){return n}function a(){n=[]}return{get:r,put:i,getEntries:o,clear:a}}var qVn=(e,t)=>e===t;function BVn(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function jVn(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=qVn,maxSize:i=1,resultEqualityCheck:o}=n,a=BVn(r);let s=0;const l=i<=1?FVn(a):WVn(i,a);function c(){let u=l.get(arguments);if(u===G9){if(u=e.apply(null,arguments),s++,o){const p=l.getEntries().find(h=>o(h.value,u));p&&(u=p.value,s!==0&&s--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var HVn=class{constructor(e){this.value=e}deref(){return this.value}},VVn=typeof WeakRef<"u"?WeakRef:HVn,GVn=0,K_e=1;function N8(){return{s:GVn,v:void 0,o:null,p:null}}function Ypt(e,t={}){let n=N8();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let s=n;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(h);m===void 0?(s=N8(),g.set(h,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(h);m===void 0?(s=N8(),g.set(h,s)):s=m}}const c=s;let u;if(s.s===K_e)u=s.v;else if(u=e.apply(null,arguments),o++,r){const d=i?.deref?.()??i;d!=null&&r(d,u)&&(u=d,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new VVn(u):u}return c.s=K_e,c.v=u,u}return a.clearCache=()=>{n=N8(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Kpt(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),DVn(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=Ypt,argsMemoizeOptions:g=[]}=u,m=Y_e(p),b=Y_e(g),y=_Vn(i),M=d(function(){return o++,c.apply(null,arguments)},...m),C=h(function(){a++;const w=NVn(y,arguments);return s=M.apply(null,w),s},...b);return Object.assign(C,{resultFunc:c,memoizedResultFunc:M,dependencies:y,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var $Vn=Kpt(Ypt),UVn=Object.assign((e,t=$Vn)=>{kVn(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>UVn});const XVn=Kpt({memoize:jVn,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Eoe=(e,t,n,r,i,o,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e)s=e;else throw new Error("Missing arguments");return s},YVn=(...e)=>{const t=new WeakMap;let n=1;const r=e[e.length-1],i=e.length-1||1,o=Math.max(r.length-i,0);if(o>3)throw new Error("Unsupported number of arguments");return(s,l,c,u)=>{let d=s.__cacheKey__;d||(d={id:n},s.__cacheKey__=d,n+=1);let p=t.get(d);if(!p){const h=e.length===1?[b=>b,r]:e;let g=e;const m=[void 0,void 0,void 0];switch(o){case 0:break;case 1:{g=[...h.slice(0,-1),()=>m[0],r];break}case 2:{g=[...h.slice(0,-1),()=>m[0],()=>m[1],r];break}case 3:{g=[...h.slice(0,-1),()=>m[0],()=>m[1],()=>m[2],r];break}default:throw new Error("Unsupported number of arguments")}p=XVn(...g),p.selectorArgs=m,t.set(d,p)}switch(o){case 3:p.selectorArgs[2]=u;case 2:p.selectorArgs[1]=c;case 1:p.selectorArgs[0]=l}switch(o){case 0:return p(s);case 1:return p(s,l);case 2:return p(s,l,c);case 3:return p(s,l,c,u);default:throw new Error("unreachable")}}};function SC(e,t,n,r,i){const o=a=>t(a,n,r,i);return F1t.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,o)}const KVn=()=>{};function QVn(e,t,n){const r=xp(ZVn,{store:e,selector:t}).current;r.effect=n,X6(r.onMount)}function ZVn(e){const{store:t,selector:n}=e;let r=n(t.state);const i={effect:KVn,dispose:null,subscribe:()=>{i.dispose??=t.subscribe(o=>{const a=n(o);i.effect(r,a),r=a})},onMount:()=>(i.subscribe(),()=>{i.dispose?.(),i.dispose=null})};return i.subscribe(),i}class Cwe{static create(t){return new Cwe(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,r=this.listeners.values();let i;for(;i=r.next(),!i.done;){if(n!==this.updateTick)return;const o=i.value;o(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(Y({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(Y({},this.state,{[t]:n}))}}const JVn={},eGn={initialize:tGn,use:nGn,selectors:JVn};function tGn(e){return{colspanMap:new Map}}function nGn(e,t,n){const r=t.colspan?.getColspan,i=()=>{e.state.colspanMap=new Map},o=(s,l)=>e.state.colspanMap.get(s)?.[l],a=en(r?(s,l,c,u)=>{for(let d=l;d<c;d+=1){const p=rGn(e.state.colspanMap,d,s,l,c,u,r);p.colSpan>1&&(d+=p.colSpan-1)}}:()=>{});return n.calculateColSpan=a,{resetColSpan:i,getCellColSpanInfo:o,calculateColSpan:a}}function rGn(e,t,n,r,i,o,a){const s=o.length,l=o[t],c=a(n,l,t);if(!c||c===1)return Roe(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:1,width:l.computedWidth}}),{colSpan:1};let u=l.computedWidth;for(let d=1;d<c;d+=1){const p=t+d;if(p>=r&&p<i){const h=o[p];u+=h.computedWidth,Roe(e,n,t+d,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(t+c,s-1),leftVisibleCellIndex:t})}Roe(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:c,width:u}})}return{colSpan:c}}function Roe(e,t,n,r){let i=e.get(t);i||(i={},e.set(t,i)),i[n]=r}function iGn(e,t=166){let n,r;const i=()=>{n=void 0,e(...r)};function o(...a){r=a,n===void 0&&(n=setTimeout(i,t))}return o.clear=()=>{clearTimeout(n),n=void 0},o}function E7(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o+=1)if(!E7(e[o],t[o]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const i=Array.from(e.entries());for(let o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;for(let o=0;o<i.length;o+=1){const a=i[o];if(!E7(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const i=Array.from(e.entries());for(let o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o+=1)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let i=0;i<r;i+=1)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=0;i<r;i+=1){const o=n[i];if(!E7(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function sN(e,t){return Math.round(e*10**t)/10**t}const fy={EMPTY:{width:0,height:0},equals:(e,t)=>e.width===t.width&&e.height===t.height},oGn={EMPTY:{top:[],bottom:[]}},aGn={EMPTY:{left:[],right:[]}};let Il=(function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e})({});(function(e){function t(n,r){return n===0&&r===0?Il.NONE:Math.abs(r)>=Math.abs(n)?r>0?Il.DOWN:Il.UP:n>0?Il.RIGHT:Il.LEFT}e.forDelta=t})(Il||(Il={}));const sGn={isReady:!1,root:fy.EMPTY,viewportOuterSize:fy.EMPTY,viewportInnerSize:fy.EMPTY,contentSize:fy.EMPTY,minimumSize:fy.EMPTY,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topContainerHeight:0,bottomContainerHeight:0},AI={rootSize:e=>e.rootSize,dimensions:e=>e.dimensions,rowHeight:e=>e.dimensions.rowHeight,contentHeight:e=>e.dimensions.contentSize.height,rowsMeta:e=>e.rowsMeta,columnPositions:YVn((e,t)=>{const n=[];let r=0;for(let i=0;i<t.length;i+=1)n.push(r),r+=t[i].computedWidth;return n}),needsHorizontalScrollbar:e=>e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width},$1={initialize:lGn,use:cGn,selectors:AI};function lGn(e){const t=Y({},sGn,e.dimensions),{rowCount:n}=e,{rowHeight:r}=t,i={currentPageTotalHeight:n*r,positions:Array.from({length:n},(a,s)=>s*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0},o=new Map;return{rootSize:fy.EMPTY,dimensions:t,rowsMeta:i,rowHeights:o}}function cGn(e,t,n){const r=v.useRef(!0),{refs:i,dimensions:{rowHeight:o,columnsTotalWidth:a,leftPinnedWidth:s,rightPinnedWidth:l,topPinnedHeight:c,bottomPinnedHeight:u},onResize:d}=t,p=i.container.current,h=v.useCallback(()=>{if(r.current)return;const C=AI.rootSize(e.state),x=AI.rowsMeta(e.state),w=pGn(p,t.dimensions.scrollbarSize),S=c+x.pinnedTopRowsTotalHeight,A=u+x.pinnedBottomRowsTotalHeight,z={width:a,height:sN(x.currentPageTotalHeight,1)};let O,T,R=!1,P=!1;if(t.autoHeight)P=!1,R=Math.round(a)>Math.round(C.width),O={width:C.width,height:S+A+z.height},T={width:Math.max(0,O.width-(P?w:0)),height:Math.max(0,O.height-(R?w:0))};else{O={width:C.width,height:C.height},T={width:Math.max(0,O.width),height:Math.max(0,O.height-S-A)};const j=z,V=T,G=j.width>V.width,q=j.height>V.height;(G||q)&&(P=q,R=j.width+(P?w:0)>V.width,R&&(P=j.height+w>V.height)),P&&(T.width-=w),R&&(T.height-=w)}t.disableHorizontalScroll&&(R=!1),t.disableVerticalScroll&&(P=!1);const F=Math.max(O.width,a+(P?w:0)),N={width:a,height:S+z.height+A},L={isReady:!0,root:C,viewportOuterSize:O,viewportInnerSize:T,contentSize:z,minimumSize:N,hasScrollX:R,hasScrollY:P,scrollbarSize:w,rowWidth:F,rowHeight:o,columnsTotalWidth:a,leftPinnedWidth:s,rightPinnedWidth:l,topContainerHeight:S,bottomContainerHeight:A},W=e.state.dimensions;E7(W,L)||(e.update({dimensions:L}),d?.(L.root))},[e,p,t.dimensions.scrollbarSize,t.autoHeight,t.disableHorizontalScroll,t.disableVerticalScroll,d,o,a,s,l,c,u]),{resizeThrottleMs:g}=t,m=en(h),b=v.useMemo(()=>g>0?iGn(m,g):void 0,[g,m]);v.useEffect(()=>b?.clear,[b]);const y=en(C=>{e.state.rootSize=C,r.current||!b?(r.current=!1,h()):b()});Ro(()=>dGn(p,e,y),[p,e,y]),Ro(h,[h]);const M=uGn(e,t,h);return{updateDimensions:h,debouncedUpdateDimensions:b,rowsMeta:M}}function uGn(e,t,n){const r=e.state.rowHeights,{rows:i,getRowHeight:o,getRowSpacing:a,getEstimatedRowHeight:s}=t,l=v.useRef(-1),c=v.useRef(!1),u=v.useRef(!1),d=t.pinnedRows,p=SC(e,AI.rowHeight),h=en(T=>{let R=r.get(T);return R===void 0&&(R={content:e.state.dimensions.rowHeight,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},r.set(T,R)),R}),{applyRowHeight:g}=t,m=v.useCallback(T=>{const R=AI.dimensions(e.state),P=R.rowHeight,F=h(T.id);if(!o)F.content=P,F.needsFirstMeasurement=!1;else{const N=o(T);if(N==="auto"){if(F.needsFirstMeasurement){const L=s?s(T):P;F.content=L??P}c.current=!0,F.autoHeight=!0}else F.content=N??R.rowHeight,F.needsFirstMeasurement=!1,F.autoHeight=!1}if(a){const N=a(T);F.spacingTop=N.top??0,F.spacingBottom=N.bottom??0}else F.spacingTop=0,F.spacingBottom=0;return g?.(F,T),F},[e,o,h,s,p,a,g]),b=v.useCallback(()=>{c.current=!1;const T=d?.top.reduce((W,j)=>{const V=m(j);return W+V.content+V.spacingTop+V.spacingBottom+V.detail},0)??0,R=d?.bottom.reduce((W,j)=>{const V=m(j);return W+V.content+V.spacingTop+V.spacingBottom+V.detail},0)??0,P=[],F=i.reduce((W,j)=>{P.push(W);const V=m(j),G=V.content+V.spacingTop+V.spacingBottom+V.detail;return W+G},0);c.current||(l.current=1/0);const N=T!==e.state.rowsMeta.pinnedTopRowsTotalHeight||R!==e.state.rowsMeta.pinnedBottomRowsTotalHeight||F!==e.state.rowsMeta.currentPageTotalHeight,L={currentPageTotalHeight:F,positions:P,pinnedTopRowsTotalHeight:T,pinnedBottomRowsTotalHeight:R};e.set("rowsMeta",L),N&&n(),u.current=!0},[e,d,i,m,n]),y=en(b),M=T=>r.get(T)?.content??AI.rowHeight(e.state),C=(T,R)=>{const P=h(T),F=P.content!==R;P.needsFirstMeasurement=!1,P.content=R,u.current&&=!F},x=T=>r.get(T)?.autoHeight??!1,w=()=>l.current,S=T=>{c.current&&T>l.current&&(l.current=T)},A=()=>{r.clear(),b()},z=xp(()=>typeof ResizeObserver>"u"?void 0:new ResizeObserver(T=>{for(let R=0;R<T.length;R+=1){const P=T[R],F=P.borderBoxSize&&P.borderBoxSize.length>0?P.borderBoxSize[0].blockSize:P.contentRect.height,N=P.target.__mui_id;if(t.focusedVirtualCell?.()?.id===N&&F===0)return;C(N,F)}u.current||requestAnimationFrame(()=>{y()})})).current,O=(T,R)=>(T.__mui_id=R,z?.observe(T),()=>z?.unobserve(T));return Ro(()=>{b()},[b]),{getRowHeight:M,setLastMeasuredRowIndex:S,storeRowHeightMeasurement:C,hydrateRowsMeta:b,observeRowHeight:O,rowHasAutoHeight:x,getRowHeightEntry:h,getLastMeasuredRowIndex:w,resetRowHeights:A}}function dGn(e,t,n){if(!e)return;const r=e.getBoundingClientRect(),i={width:sN(r.width,1),height:sN(r.height,1)};if((t.state.rootSize===fy.EMPTY||!fy.equals(i,t.state.rootSize))&&n(i),typeof ResizeObserver>"u")return;const o=new ResizeObserver(([a])=>{if(!a)return;const s={width:sN(a.contentRect.width,1),height:sN(a.contentRect.height,1)};fy.equals(s,t.state.rootSize)||n(s)});return o.observe(e),()=>{o.disconnect()}}const Q_e=new WeakMap;function pGn(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=Q_e.get(e);if(n!==void 0)return n;const i=Ds(e).createElement("div");i.style.width="99px",i.style.height="99px",i.style.position="absolute",i.style.overflow="scroll",i.className="scrollDiv",e.appendChild(i);const o=i.offsetWidth-i.clientWidth;return e.removeChild(i),Q_e.set(e,o),o}const hGn=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",fGn=hGn.includes("firefox"),Ioe=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),gGn=()=>{},mGn=(e,t)=>{const n=v.useRef(!1);Ro(()=>n.current||!e?gGn:(n.current=!0,t()),[n.current||e])};function vGn(e){const t=v.useRef(!0);t.current&&(t.current=!1,e())}const OI=(e,t,n)=>Math.max(t,Math.min(n,e)),Poe=50,Z_e={top:0,left:0},bGn=Object.freeze(new Map),$9={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},R7={renderContext:Eoe(e=>e.virtualization.renderContext),enabledForRows:Eoe(e=>e.virtualization.enabledForRows),enabledForColumns:Eoe(e=>e.virtualization.enabledForColumns)},Qpt={initialize:yGn,use:MGn,selectors:R7};function yGn(e){return{virtualization:Y({enabled:!Ioe,enabledForRows:!Ioe,enabledForColumns:!Ioe,renderContext:$9},e.initialState?.virtualization),getters:null}}function MGn(e,t,n){const{refs:r,dimensions:{rowHeight:i,columnsTotalWidth:o},virtualization:{isRtl:a=!1,rowBufferPx:s=150,columnBufferPx:l=150},colspan:c,initialState:u,rows:d,range:p,columns:h,pinnedRows:g=oGn.EMPTY,pinnedColumns:m=aGn.EMPTY,minimalContentHeight:b,autoHeight:y,onWheel:M,onTouchMove:C,onRenderContextChange:x,onScrollChange:w,scrollReset:S,renderRow:A,renderInfiniteLoadingTrigger:z}=t,O=SC(e,$1.selectors.needsHorizontalScrollbar),T=g.bottom.length>0,[R,P]=v.useState(bGn),[,F]=v.useState(0),N=v.useRef(!1),L=SC(e,R7.renderContext),W=SC(e,R7.enabledForRows),j=SC(e,R7.enabledForColumns),V=SC(e,$1.selectors.rowsMeta),G=SC(e,$1.selectors.contentHeight),q=v.useRef(u?.scroll??Z_e),$=v.useRef(!1),U=v.useRef(Z_e),X=v.useRef($9),Q=Qp(),re=v.useRef(void 0),ee=xp(()=>wGn(a,s,l,i*15,Poe*6)).current,se=v.useCallback(ue=>{n5e(ue,e.state.virtualization.renderContext)||e.set("virtualization",Y({},e.state.virtualization,{renderContext:ue}));const Ae=$1.selectors.dimensions(e.state).isReady,Ce=ue.firstRowIndex!==X.current.firstRowIndex||ue.lastRowIndex!==X.current.lastRowIndex;Ae&&Ce&&(X.current=ue,x?.(ue)),U.current=q.current},[e,x]),pe=en(()=>{const ue=r.scroller.current;if(!ue)return;const Ae=$1.selectors.dimensions(e.state),Ce=Math.ceil(Ae.contentSize.height-Ae.viewportInnerSize.height),Ee=Math.ceil(Ae.contentSize.width-Ae.viewportInnerSize.width),Ge={top:OI(ue.scrollTop,0,Ce),left:a?OI(ue.scrollLeft,-Ee,0):OI(ue.scrollLeft,0,Ee)},_e=Ge.left-q.current.left,Ie=Ge.top-q.current.top,Le=_e!==0||Ie!==0;q.current=Ge;const we=Le?Il.forDelta(_e,Ie):Il.NONE,ve=Math.abs(q.current.top-U.current.top),De=Math.abs(q.current.left-U.current.left),ze=ve>=i||De>=Poe,Ve=ee.direction!==we;if(!(ze||Ve))return L;if(Ve)switch(we){case Il.NONE:case Il.LEFT:case Il.RIGHT:re.current=void 0;break;default:re.current=L;break}ee.direction=we,ee.buffer=Jpt(a,we,s,l,i*15,Poe*6);const et=J_e(e,t,n,W,j),it=e5e(et,q.current,ee);return n5e(it,L)||(Bl.flushSync(()=>{se(it)}),Q.start(1e3,pe)),it}),te=en(()=>{if(!$1.selectors.dimensions(e.state).isReady&&(W||j))return;const ue=J_e(e,t,n,W,j),Ae=e5e(ue,q.current,ee);re.current=void 0,se(Ae)}),ce=en(()=>{if($.current){$.current=!1;return}const ue=pe();ue&&w?.(q.current,ue)}),oe=()=>V.positions[L.firstRowIndex]??0,ae=(ue={},Ae)=>{if(!ue.rows&&!p)return[];let Ce=L;ue.renderContext&&(Ce=ue.renderContext,Ce.firstColumnIndex=L.firstColumnIndex,Ce.lastColumnIndex=L.lastColumnIndex);const Ee=!T&&ue.position===void 0||T&&ue.position==="bottom",Ge=ue.position!==void 0;let _e;switch(ue.position){case"top":_e=0;break;case"bottom":_e=g.top.length+d.length;break;case void 0:default:_e=g.top.length;break}const Ie=ue.rows??d,Le=Ce.firstRowIndex,we=Math.min(Ce.lastRowIndex,Ie.length),ve=ue.rows?r5e(0,ue.rows.length):r5e(Le,we);let De=-1;const ze=t.focusedVirtualCell?.();!Ge&&ze&&(ze.rowIndex<Le&&(ve.unshift(ze.rowIndex),De=ze.rowIndex),ze.rowIndex>we&&(ve.push(ze.rowIndex),De=ze.rowIndex));const Ve=[],Ke=$1.selectors.columnPositions(e.state,h);return ve.forEach(et=>{const{id:it,model:Ft}=Ie[et];if(Ae&&!Ae[it])return;const Dt=(p?.firstRowIndex||0)+_e+et;if(c?.enabled){const ft=m.left.length,Tt=h.length-m.right.length;n.calculateColSpan(it,ft,Tt,h),m.left.length>0&&n.calculateColSpan(it,0,m.left.length,h),m.right.length>0&&n.calculateColSpan(it,h.length-m.right.length,h.length,h)}const Qn=n.rowsMeta.rowHasAutoHeight(it)?"auto":n.rowsMeta.getRowHeight(it);let ir=!1;ue.position===void 0&&(ir=et===0);let Hn=!1;const Zn=et===Ie.length-1;if(Ee)if(Ge)Hn=Zn;else{const ft=d.length-1;et===ft&&(Hn=!0)}let Br=Ce;re.current&&et>=re.current.firstRowIndex&&et<re.current.lastRowIndex&&(Br=re.current);const vr=et===De,Fe=ze?.rowIndex===Dt,He=Zpt(Ke,Br,m.left.length),Xe=Zn&&ue.position==="top",ct=Br.firstColumnIndex,lt=Br.lastColumnIndex;if(Ve.push(A({id:it,model:Ft,rowIndex:Dt,offsetLeft:He,columnsTotalWidth:o,baseRowHeight:Qn,firstColumnIndex:ct,lastColumnIndex:lt,focusedColumnIndex:Fe?ze.columnIndex:void 0,isFirstVisible:ir,isLastVisible:Hn,isVirtualFocusRow:vr,showBottomBorder:Xe})),vr)return;const Je=R.get(it);Je&&Ve.push(Je),ue.position===void 0&&Zn&&Ve.push(z(it))}),Ve},ne=v.useMemo(()=>({overflowX:O?void 0:"hidden",overflowY:y?"hidden":void 0}),[O,y]),le=v.useMemo(()=>{const ue={width:O?o:"auto",flexBasis:G,flexShrink:0};return ue.flexBasis===0&&(ue.flexBasis=b),ue},[o,G,O,b]),he=v.useRef(null),be=v.useCallback(ue=>{ue&&he.current?.(o,G)},[o,G]);Ro(()=>{N.current&&te()},[j,W,te]),Ro(()=>{r.scroller.current&&(r.scroller.current.scrollLeft=0)},[r.scroller,S]),mGn(L!==$9,()=>{if(w?.(q.current,L),N.current=!0,u?.scroll&&r.scroller.current){const ue=r.scroller.current,{top:Ae,left:Ce}=u.scroll,Ee={top:!(Ae>0),left:!(Ce>0)};!Ee.left&&o&&(ue.scrollLeft=Ce,Ee.left=!0,$.current=!0),!Ee.top&&G&&(ue.scrollTop=Ae,$.current=!0),(!Ee.top||!Ee.left)&&(he.current=(Ge,_e)=>{!Ee.left&&Ge&&(ue.scrollLeft=Ce,Ee.left=!0,$.current=!0),!Ee.top&&_e&&(ue.scrollTop=Ae,Ee.top=!0,$.current=!0),Ee.left&&Ee.top&&(he.current=null)})}}),QVn(e,$1.selectors.dimensions,te);const me=ue=>Ae=>{Ae&&r[ue].current!==Ae&&(r[ue].current=Ae,F(Ce=>Ce+1))},Me={setPanels:P,getOffsetTop:oe,getRows:ae,getContainerProps:()=>({ref:me("container")}),getScrollerProps:()=>({ref:me("scroller"),onScroll:ce,onWheel:M,onTouchMove:C,style:ne,role:"presentation",tabIndex:fGn?-1:void 0}),getContentProps:()=>({ref:be,style:le,role:"presentation"}),getScrollbarVerticalProps:()=>({ref:me("scrollbarVertical"),scrollPosition:q}),getScrollbarHorizontalProps:()=>({ref:me("scrollbarHorizontal"),scrollPosition:q}),getScrollAreaProps:()=>({scrollPosition:q})};return vGn(()=>{e.state=Y({},e.state,{getters:Me})}),v.useEffect(()=>{e.update({getters:Me})},Object.values(Me)),{getters:Me,useVirtualization:()=>SC(e,ue=>ue),setPanels:P,forceUpdateRenderContext:te,getCellColSpanInfo:()=>{throw new Error("Unimplemented: colspan feature is required")},calculateColSpan:()=>{throw new Error("Unimplemented: colspan feature is required")},getHiddenCellsOrigin:()=>{throw new Error("Unimplemented: rowspan feature is required")}}}function J_e(e,t,n,r,i){const o=$1.selectors.dimensions(e.state),a=t.rows,s=t.range,l=t.columns,c=n.getHiddenCellsOrigin(),u=t.rows.at(-1)?.id,d=l.at(-1);return{api:n,enabledForRows:r,enabledForColumns:i,autoHeight:t.autoHeight,rowBufferPx:t.virtualization.rowBufferPx,columnBufferPx:t.virtualization.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:u!==void 0?n.rowsMeta.getRowHeight(u):0,lastColumnWidth:d?.computedWidth??0,rowsMeta:$1.selectors.rowsMeta(e.state),columnPositions:$1.selectors.columnPositions(e.state,t.columns),rows:a,range:s,pinnedColumns:t.pinnedColumns,columns:l,hiddenCellsOriginMap:c,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function e5e(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.columns.length},{top:i,left:o}=t,a=Math.abs(o)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(t5e(e,i,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const c=e.hiddenCellsOriginMap[l];if(c){const d=Math.min(...Object.values(c));l=Math.min(l,d)}const u=e.autoHeight?l+e.rows.length:t5e(e,i+e.viewportInnerHeight);r.firstRowIndex=l,r.lastRowIndex=u}if(e.enabledForColumns){let l=0,c=e.columnPositions.length,u=!1;const[d,p]=Fge({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let h=d;h<p&&!u;h+=1){const g=e.rows[h];u=e.api.rowsMeta.rowHasAutoHeight(g.id)}(!u||e.virtualizeColumnsWithAutoRowHeight)&&(l=nw(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),c=nw(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=l,r.lastColumnIndex=c}return CGn(e,r,n)}function t5e(e,t,n){const r=e.api.rowsMeta.getLastMeasuredRowIndex();let i=r===1/0;e.range?.lastRowIndex&&!i&&(i=r>=e.range.lastRowIndex);const o=OI(r-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return i||e.rowsMeta.positions[o]>=t?nw(t,e.rowsMeta.positions,n):xGn(t,e.rowsMeta.positions,o,n)}function CGn(e,t,n){const[r,i]=Fge({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[o,a]=Fge({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns?.left.length??0,maxLastIndex:e.columns.length-(e.pinnedColumns?.right.length??0),bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),s=SGn({api:e.api,firstColumnToRender:o,firstRowToRender:r,lastRowToRender:i,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:i,firstColumnIndex:s,lastColumnIndex:a}}function nw(e,t,n=void 0,r=0,i=t.length){if(t.length<=0)return-1;if(r>=i)return r;const o=r+Math.floor((i-r)/2),a=t[o];let s;if(n?.atStart){const l=(o===t.length-1?n.lastPosition:t[o+1])-a;s=e-l<a}else s=e<=a;return s?nw(e,t,n,r,o):nw(e,t,n,o+1,i)}function xGn(e,t,n,r=void 0){let i=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=i,i*=2;return nw(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function Fge({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:i,maxLastIndex:o,positions:a,lastSize:s}){const l=a[e]-n,c=a[t]+r,u=nw(l,a,{atStart:!0,lastPosition:a[a.length-1]+s}),d=nw(c,a);return[OI(u,i,o),OI(d,i,o)]}function n5e(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function Zpt(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function Jpt(e,t,n,r,i,o){if(e)switch(t){case Il.LEFT:t=Il.RIGHT;break;case Il.RIGHT:t=Il.LEFT;break}switch(t){case Il.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case Il.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:o};case Il.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:o,columnBefore:0};case Il.UP:return{rowAfter:0,rowBefore:i,columnAfter:0,columnBefore:0};case Il.DOWN:return{rowAfter:i,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function wGn(e,t,n,r,i){return{direction:Il.NONE,buffer:Jpt(e,Il.NONE,t,n,r,i)}}function r5e(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function SGn({api:e,firstColumnToRender:t,firstRowToRender:n,lastRowToRender:r,visibleRows:i}){let o=t,a=!1;for(;!a&&o>=0;){a=!0;for(let s=n;s<r;s+=1)if(i[s]){const c=i[s].id,u=e.getCellColSpanInfo(c,o);if(u&&u.spannedByColSpan&&u.leftVisibleCellIndex<o){o=u.leftVisibleCellIndex,a=!1;break}}}return o}const AGn={},OGn={initialize:zGn,use:TGn,selectors:AGn};function zGn(e){return{}}function TGn(e,t,n){return{getViewportPageSize:()=>{const i=$1.selectors.dimensions(e.state);if(!i.isReady)return 0;if(t.getRowHeight){const a=Qpt.selectors.renderContext(e.state),s=a.lastRowIndex-a.firstRowIndex;return Math.min(s-1,t.rows.length)}const o=Math.floor(i.viewportInnerSize.height/i.rowHeight);return Math.min(o,t.rows.length)}}}const EGn={firstRowIndex:0,lastRowIndex:0},RGn={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},eht={state:e=>e.rowSpanning,hiddenCells:e=>e.rowSpanning.caches.hiddenCells,spannedCells:e=>e.rowSpanning.caches.spannedCells,hiddenCellsOriginMap:e=>e.rowSpanning.caches.hiddenCellOriginMap},TP={initialize:IGn,use:PGn,selectors:eht};function IGn(e){return{rowSpanning:e.initialState?.rowSpanning??{caches:RGn,processedRange:EGn}}}function PGn(e,t,n){return{getHiddenCellsOrigin:()=>eht.hiddenCellsOriginMap(e.state)}}const i5e=[$1,Qpt,eGn,TP,OGn],DGn=e=>{const t=xp(()=>new Cwe(i5e.map(r=>r.initialize(e)).reduce((r,i)=>Object.assign(r,i),{}))).current,n={};for(const r of i5e)Object.assign(n,r.use(t,e,n));return{store:t,api:n}},kGn=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),dF=!kGn,LGn=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return Y({},e,{virtualization:{enabled:!n&&dF,enabledForColumns:!n&&dF,enabledForRows:!n&&!r&&dF,renderContext:$9}})};function _Gn(e,t){const{virtualizer:n}=e.current,{autoHeight:r,disableVirtualization:i}=t,o=c=>{c&&=dF,n.store.set("virtualization",Y({},n.store.state.virtualization,{enabled:c,enabledForColumns:c,enabledForRows:c&&!r}))};Gi(e,{unstable_setVirtualization:o,unstable_setColumnVirtualization:c=>{c&&=dF,n.store.set("virtualization",Y({},n.store.state.virtualization,{enabledForColumns:c}))}},"public");const l=n.api.forceUpdateRenderContext;e.current.register("private",{updateRenderContext:l}),Ka(e,"sortedRowsSet",l),Ka(e,"paginationModelChange",l),Ka(e,"columnsChange",l),v.useEffect(()=>{o(!t.disableVirtualization)},[i,r])}const jZ=ks(e=>e.virtualization);rr(jZ,e=>e.enabled);const NGn=rr(jZ,e=>e.enabledForColumns);rr(jZ,e=>e.enabledForRows);const tht=rr(jZ,e=>e.renderContext),FGn=ks(e=>e.virtualization.renderContext.firstColumnIndex),WGn=ks(e=>e.virtualization.renderContext.lastColumnIndex),qGn=ta(FGn,WGn,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t}));function BGn(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class jGn{constructor({ttl:t=3e5,getKey:n=BGn}){this.cache={},this.ttl=t,this.getKey=n}set(t,n){const r=this.getKey(t),i=Date.now()+this.ttl;this.cache[r]={value:n,expiry:i}}get(t){const n=this.getKey(t),r=this.cache[n];if(r){if(Date.now()>r.expiry){delete this.cache[n];return}return r.value}}clear(){this.cache={}}}class HGn extends Error{constructor(t){super(t.message),this.name="GridGetRowsError",this.params=t.params,this.cause=t.cause}}class VGn extends Error{constructor(t){super(t.message),this.name="GridUpdateRowError",this.params=t.params,this.cause=t.cause}}const GGn=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return Yt(r,lo,n)},xwe=Go("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),$Gn=Go(xwe)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-headersTotalHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-headersTotalHeight)",right:0}),UGn=Go(xwe)({width:"calc(var(--DataGrid-hasScrollX) * (100% - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:0}),XGn=Go(xwe)({width:"var(--size)",height:"var(--size)",right:0,bottom:0,overflow:"scroll"}),o5e=qr(function(t,n){const r=Sp(),i=kn(),o=v.useRef(!1),a=v.useRef(0),s=v.useRef(null),l=GGn(i,t.position),c=Qt(r,Ks),u=t.position==="vertical"?"height":"width",d=t.position==="vertical"?"scrollTop":"scrollLeft",p=t.position==="vertical"?"top":"left",h=t.position==="horizontal"?c.minimumSize.width:c.minimumSize.height-c.headersTotalHeight,g=en(()=>{const M=s.current,C=t.scrollPosition.current;if(M&&C[p]!==a.current){if(a.current=C[p],o.current){o.current=!1;return}o.current=!0,M[d]=C[p]}}),m=en(()=>{const M=r.current.virtualScrollerRef.current,C=s.current;if(C){if(o.current){o.current=!1;return}o.current=!0,M[d]=C[d]}});X6(()=>{const M=r.current.virtualScrollerRef.current,C=s.current,x={passive:!0};return M.addEventListener("scroll",g,x),C.addEventListener("scroll",m,x),()=>{M.removeEventListener("scroll",g,x),C.removeEventListener("scroll",m,x)}});const b=t.position==="vertical"?$Gn:UGn,y=v.useMemo(()=>({[u]:`${h}px`}),[u,h]);return f.jsx(b,{ref:Pi(n,s),className:l.root,tabIndex:-1,"aria-hidden":"true",onFocus:M=>{M.target.blur()},children:f.jsx("div",{className:l.content,style:y})})}),YGn=e=>{const{classes:t,position:n}=e,r={root:["scrollShadow",`scrollShadow--${n}`]};return Yt(r,lo,t)},KGn=Go("div",{name:"MuiDataGrid",slot:"ScrollShadow",overridesResolver:(e,t)=>[t.root,t[e.position]]})(({theme:e})=>({position:"absolute",inset:0,pointerEvents:"none",transition:_n.transition(["box-shadow"],{duration:_n.transitions.duration.short}),"--length":e.palette.mode==="dark"?"8px":"6px","--length-inverse":"calc(var(--length) * -1)","--opacity":e.palette.mode==="dark"?"0.7":"0.18","--blur":"var(--length)","--spread":"calc(var(--length) * -1)","--color":"0, 0, 0","--color-start":"rgba(var(--color), calc(var(--hasScrollStart) * var(--opacity)))","--color-end":"rgba(var(--color), calc(var(--hasScrollEnd) * var(--opacity)))",variants:[{props:{position:"vertical"},style:{top:"var(--DataGrid-topContainerHeight)",bottom:"calc(var(--DataGrid-bottomContainerHeight) + var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))",boxShadow:"inset 0 var(--length) var(--blur) var(--spread) var(--color-start), inset 0 var(--length-inverse) var(--blur) var(--spread) var(--color-end)"}},{props:{position:"horizontal"},style:{left:"var(--DataGrid-leftPinnedWidth)",right:"calc(var(--DataGrid-rightPinnedWidth) + var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",boxShadow:"inset var(--length) 0 var(--blur) var(--spread) var(--color-start), inset var(--length-inverse) 0 var(--blur) var(--spread) var(--color-end)"}}]}));function a5e(e){const{position:t}=e,r={classes:kn().classes,position:t},i=YGn(r),o=v.useRef(null),a=Sp(),s=Qt(a,q1t),l=Qt(a,B1t),c=Qt(a,$D),u=Qt(a,swe),d=t==="vertical"?l&&c?.bottom?.length>0:s&&u?.right?.length!==void 0&&u?.right?.length>0,p=ts(),h=v.useCallback(b=>{if(!o.current)return;const y=Math.abs(Math.round(b)),M=Ks(a),C=Math.round(M.contentSize[t==="vertical"?"height":"width"]-M.viewportInnerSize[t==="vertical"?"height":"width"]),x=t==="vertical"?c?.top?.length>0:u?.left?.length!==void 0&&u?.left?.length>0,w=t==="vertical"?c?.bottom?.length>0:u?.right?.length!==void 0&&u?.right?.length>0,S=p?y<C:y>0,A=p?y>0:y<C;o.current.style.setProperty("--hasScrollStart",x&&S?"1":"0"),o.current.style.setProperty("--hasScrollEnd",w&&A?"1":"0")},[c,u,p,t,a]),g=b=>{h(b[t==="vertical"?"top":"left"])},m=()=>{t==="horizontal"&&h(a.current.virtualScrollerRef?.current?.scrollLeft||0)};return Yn(a,"scrollPositionChange",g),Yn(a,"columnResizeStop",m),v.useEffect(()=>{h((t==="horizontal"?a.current.virtualScrollerRef?.current?.scrollLeft:a.current.virtualScrollerRef?.current?.scrollTop)??0)},[h,a,t]),f.jsx(KGn,{className:i.root,ownerState:r,ref:o,style:{"--hasScrollStart":0,"--hasScrollEnd":d?"1":"0"}})}const QGn=Go("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"&&e!=="right"})(({overlayType:e,loadingOverlayVariant:t,right:n})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),ZGn=Go("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),JGn=e=>{const{classes:t}=e;return Yt({root:["overlayWrapper"],inner:["overlayWrapperInner"]},lo,t)};function e7n(e){const t=bi(),n=kn(),r=Qt(t,Ks);let i=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);i===0&&(i=X1t);const o=JGn(Y({},e,{classes:n.classes}));return f.jsx(QGn,Y({className:o.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:f.jsx(ZGn,Y({className:o.inner,style:{height:i,width:r.viewportOuterSize.width}},e))}))}const t7n=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:i,overlayType:o}=e;return Yt({root:["main",r&&"main--hasPinnedRight",(i==="skeleton"||o==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},lo,t)},n7n=Go("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),r7n=e=>e.current.state.dimensions.rightPinnedWidth>0;function i7n(e){const t=Sp(),n=kn(),r=Qt(t,B1t),i=Qt(t,q1t),o=Qt(t,r7n),a=Qt(t,Ojn),{overlayType:s,loadingOverlayVariant:l}=$pt(t,n),c=n.slots?.[s],u={classes:n.classes,hasScrollX:i,hasPinnedRight:o,overlayType:s,loadingOverlayVariant:l},d=t7n(u),p=t.current.virtualizer.api.useVirtualization().getters,{getContainerProps:h,getScrollerProps:g,getContentProps:m,getScrollbarVerticalProps:b,getScrollbarHorizontalProps:y,getRows:M,getScrollAreaProps:C}=p,x=M(void 0,Qc(t));return f.jsxs(hVn,Y({className:d.root},h(),{ownerState:u,children:[f.jsx(_8,Y({scrollDirection:"left"},C())),f.jsx(_8,Y({scrollDirection:"right"},C())),f.jsx(_8,Y({scrollDirection:"up"},C())),f.jsx(_8,Y({scrollDirection:"down"},C())),f.jsxs(n7n,Y({className:d.scroller},g(),{ownerState:u,children:[f.jsxs(mVn,{children:[!n.listView&&f.jsx(uVn,{}),f.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:p})]}),s&&f.jsx(e7n,{overlayType:s,loadingOverlayVariant:l,children:f.jsx(c,Y({},n.slotProps?.[s]))}),f.jsx(yVn,Y({},m(),{children:f.jsxs(EVn,{role:"rowgroup",children:[x,f.jsx(n.slots.detailPanels,{virtualScroller:p})]})})),a&&f.jsx(AVn,{rowsLength:x.length}),f.jsx(n.slots.bottomContainer,{children:f.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:p})})]})),i&&f.jsxs(v.Fragment,{children:[n.pinnedColumnsSectionSeparator?.endsWith("shadow")&&f.jsx(a5e,{position:"horizontal"}),f.jsx(o5e,Y({position:"horizontal"},y()))]}),r&&f.jsxs(v.Fragment,{children:[n.pinnedRowsSectionSeparator?.endsWith("shadow")&&f.jsx(a5e,{position:"vertical"}),f.jsx(o5e,Y({position:"vertical"},b()))]}),i&&r&&f.jsx(XGn,{"aria-hidden":"true"}),e.children]}))}function o7n(){const e=kn();return e.hideFooter?null:f.jsx(e.slots.footer,Y({},e.slotProps?.footer))}let Doe;function wwe(){return Doe===void 0&&document.createElement("div").focus({get preventScroll(){return Doe=!0,!1}}),Doe}function a7n({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=Y({},e);return Object.keys(n).forEach(i=>{const o=i;n[o]!==void 0&&(r[o]=n[o])}),r}const s7n=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},l7n=e=>e===bpt||s7n(e)!==null,nht=(e,t)=>{if(e)if(t){if(e===fo.LEFT)return"right";if(e===fo.RIGHT)return"left"}else{if(e===fo.LEFT)return"left";if(e===fo.RIGHT)return"right"}};function HZ(e,t,n,r){const i=nht(n,t);return!i||r===void 0||(e[i]=r),e}const c7n=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],u7n=["changeReason","unstable_updateValueOnRender"];fo.LEFT+"",Fv.LEFT,fo.RIGHT+"",Fv.RIGHT,fo.NONE+"",fo.VIRTUAL+"";const d7n=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:i,isEditable:o,isSelected:a,isSelectionMode:s,classes:l}=e,c={root:["cell",`cell--text${jt(t)}`,a&&"selected",o&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",i===fo.LEFT&&"cell--pinnedLeft",i===fo.RIGHT&&"cell--pinnedRight",s&&!o&&"cell--selectionMode"]};return Yt(c,lo,l)},p7n=qr(function(t,n){const{column:r,row:i,rowId:o,rowNode:a,align:s,colIndex:l,width:c,className:u,style:d,colSpan:p,disableDragEvents:h,isNotVisible:g,pinnedOffset:m,pinnedPosition:b,showRightBorder:y,showLeftBorder:M,onClick:C,onDoubleClick:x,onMouseDown:w,onMouseUp:S,onMouseOver:A,onKeyDown:z,onKeyUp:O,onDragEnter:T,onDragOver:R}=t,P=Lt(t,c7n),F=Sp(),N=kn(),L=ts(),W=r.field,j=Qt(F,IVn,{rowId:o,field:W}),G=DZ().hooks.useCellAggregationResult(o,W),q=j?va.Edit:va.View,{value:$,formattedValue:U}=G||{},X=F.current.getCellParamsForRow(o,W,i,{colDef:r,cellMode:q,rowNode:a,tabIndex:Qt(F,()=>{const Ve=vwe(F);return Ve&&Ve.field===W&&Ve.id===o?0:-1}),hasFocus:Qt(F,()=>{const Ve=G1(F);return Ve?.id===o&&Ve.field===W}),value:$,formattedValue:U});X.api=F.current,X.isEditable=Qt(F,()=>F.current.isCellEditable(X));const Q=Qt(F,()=>F.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:W})),re=F.current.virtualizer.store,ee=I_e(re,TP.selectors.hiddenCells),se=I_e(re,TP.selectors.spannedCells),{hasFocus:pe,isEditable:te=!1,value:ce}=X,oe=r.type==="actions"&&"getActions"in r&&typeof r.getActions=="function"&&r.getActions(F.current.getRowParams(o)).some(Ve=>!Ve.props.disabled),ae=(q==="view"||!te)&&!oe?X.tabIndex:-1,{classes:ne,getCellClassName:le}=N,be=[Qt(F,()=>F.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:W}).filter(Boolean).join(" "))];r.cellClassName&&be.push(typeof r.cellClassName=="function"?r.cellClassName(X):r.cellClassName),r.display==="flex"&&be.push(Te["cell--flex"]),le&&be.push(le(X));const me=X.formattedValue??ce,Me=v.useRef(null),Oe=Pi(n,Me),de=v.useRef(null),ie=N.cellSelection??!1,ue={align:s,showLeftBorder:M,showRightBorder:y,isEditable:te,classes:N.classes,pinnedPosition:b,isSelected:Q,isSelectionMode:ie},Ae=d7n(ue),Ce=v.useCallback(Ve=>Ke=>{const et=F.current.getCellParams(o,W||"");F.current.publishEvent(Ve,et,Ke),S&&S(Ke)},[F,W,S,o]),Ee=v.useCallback(Ve=>Ke=>{const et=F.current.getCellParams(o,W||"");F.current.publishEvent(Ve,et,Ke),w&&w(Ke)},[F,W,w,o]),Ge=v.useCallback((Ve,Ke)=>et=>{if(!F.current.getRow(o))return;const it=F.current.getCellParams(o,W||"");F.current.publishEvent(Ve,it,et),Ke&&Ke(et)},[F,W,o]),_e=ee[o]?.[l]??!1,Ie=se[o]?.[l]??1,Le=v.useMemo(()=>{if(g)return{padding:0,opacity:0,width:0,height:0,border:0};const Ve=HZ(Y({"--width":`${c}px`},d),L,b,m),Ke=b===fo.LEFT,et=b===fo.RIGHT;return Ie>1&&(Ve.height=`calc(var(--height) * ${Ie})`,Ve.zIndex=10,(Ke||et)&&(Ve.zIndex=40)),Ve},[c,g,d,m,b,L,Ie]);if(v.useEffect(()=>{if(!pe||q===va.Edit)return;const Ve=Ds(F.current.rootElementRef.current);if(Me.current&&!Me.current.contains(Ve.activeElement)){const Ke=Me.current.querySelector('[tabindex="0"]'),et=de.current||Ke||Me.current;if(wwe())et.focus({preventScroll:!0});else{const it=F.current.getScrollPosition();et.focus(),F.current.scroll(it)}}},[pe,q,F]),_e)return f.jsx("div",{"data-colindex":l,role:"presentation",style:Y({width:"var(--width)"},Le)});let we=P.onFocus,ve,De;if(j===null&&r.renderCell&&(ve=r.renderCell(X)),j!==null&&r.renderEditCell){const Ve=F.current.getRowWithUpdatedValues(o,r.field),Ke=Lt(j,u7n),et=r.valueFormatter?r.valueFormatter(j.value,Ve,r,F):X.formattedValue,it=Y({},X,{row:Ve,formattedValue:et},Ke);ve=r.renderEditCell(it),be.push(Te["cell--editing"]),be.push(ne?.["cell--editing"])}if(ve===void 0){const Ve=me?.toString();ve=Ve,De=Ve}v.isValidElement(ve)&&oe&&(ve=v.cloneElement(ve,{focusElementRef:de}));const ze=h?null:{onDragEnter:Ge("cellDragEnter",T),onDragOver:Ge("cellDragOver",R)};return f.jsx("div",Y({className:_o(Ae.root,be,u),role:"gridcell","data-field":W,"data-colindex":l,"aria-colindex":l+1,"aria-colspan":p,"aria-rowspan":Ie,style:Le,title:De,tabIndex:ae,onClick:Ge("cellClick",C),onDoubleClick:Ge("cellDoubleClick",x),onMouseOver:Ge("cellMouseOver",A),onMouseDown:Ee("cellMouseDown"),onMouseUp:Ce("cellMouseUp"),onKeyDown:Ge("cellKeyDown",z),onKeyUp:Ge("cellKeyUp",O)},ze,P,{onFocus:we,ref:Oe,children:ve}))}),h7n=CM(p7n),f7n=["field","type","align","width","height","empty","style","className"],s5e="1.3em",g7n="1.2em",l5e=[40,80],m7n={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},v7n=e=>{const{align:t,classes:n,empty:r}=e,i={root:["cell","cellSkeleton",`cell--text${t?jt(t):"Left"}`,r&&"cellEmpty"]};return Yt(i,lo,n)},b7n=pHn(12345);function y7n(e){const{field:t,type:n,align:r,width:i,height:o,empty:a=!1,style:s,className:l}=e,c=Lt(e,f7n),u=kn(),d={classes:u.classes,align:r,empty:a},p=v7n(d),h=v.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:s5e,height:s5e};const[m,b]=n?m7n[n]??l5e:l5e;return{variant:"text",width:`${Math.round(b7n(m,b))}%`,height:g7n}},[n]);return f.jsx("div",Y({"data-field":t,className:_o(p.root,l),style:Y({height:o,maxWidth:i,minWidth:i},s)},c,{children:!a&&f.jsx(u.slots.baseSkeleton,Y({},h))}))}const M7n=CM(y7n),C7n=10,F8=-5,LE=1,c5e={width:3,rx:1.5,x:10.5},x7n="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",w7n=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||e.current.state.dimensions.scrollbarSize===0),S7n=rt("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Te.autoHeight}`]:t.autoHeight},{[`&.${Te.autosizing}`]:t.autosizing},{[`&.${Te["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${Te["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${Te["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${Te["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${Te["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${Te.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${Te.actionsCell}`]:t.actionsCell},{[`& .${Te.booleanCell}`]:t.booleanCell},{[`& .${Te.cell}`]:t.cell},{[`& .${Te["cell--editable"]}`]:t["cell--editable"]},{[`& .${Te["cell--editing"]}`]:t["cell--editing"]},{[`& .${Te["cell--flex"]}`]:t["cell--flex"]},{[`& .${Te["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${Te["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${Te["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${Te["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${Te["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${Te["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${Te["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${Te["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Te["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Te["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Te["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${Te["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${Te.cellCheckbox}`]:t.cellCheckbox},{[`& .${Te.cellEmpty}`]:t.cellEmpty},{[`& .${Te.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${Te.cellSkeleton}`]:t.cellSkeleton},{[`& .${Te.checkboxInput}`]:t.checkboxInput},{[`& .${Te.columnHeader}`]:t.columnHeader},{[`& .${Te["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Te["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Te["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Te["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Te["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${Te["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${Te["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${Te["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${Te["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Te["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Te["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${Te["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${Te["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${Te["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Te["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Te["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${Te["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${Te.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Te.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Te.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Te.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${Te.columnSeparator}`]:t.columnSeparator},{[`& .${Te["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Te["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Te["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${Te["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${Te["container--bottom"]}`]:t["container--bottom"]},{[`& .${Te["container--top"]}`]:t["container--top"]},{[`& .${Te.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Te["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${Te.editBooleanCell}`]:t.editBooleanCell},{[`& .${Te.filterIcon}`]:t.filterIcon},{[`& .${Te["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${Te["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${Te["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${Te.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${Te.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${Te.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${Te.headerFilterRow}`]:t.headerFilterRow},{[`& .${Te.iconSeparator}`]:t.iconSeparator},{[`& .${Te.menuIcon}`]:t.menuIcon},{[`& .${Te.menuIconButton}`]:t.menuIconButton},{[`& .${Te.menuList}`]:t.menuList},{[`& .${Te.menuOpen}`]:t.menuOpen},{[`& .${Te.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${Te.pinnedRows}`]:t.pinnedRows},{[`& .${Te["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${Te["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${Te.row}`]:t.row},{[`& .${Te["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${Te["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${Te["row--dragging"]}`]:t["row--dragging"]},{[`& .${Te["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${Te["row--editable"]}`]:t["row--editable"]},{[`& .${Te["row--editing"]}`]:t["row--editing"]},{[`& .${Te["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${Te["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${Te.rowReorderCell}`]:t.rowReorderCell},{[`& .${Te["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Te.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${Te.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Te.rowSkeleton}`]:t.rowSkeleton},{[`& .${Te.scrollbar}`]:t.scrollbar},{[`& .${Te["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${Te["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${Te.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${Te["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${Te.sortIcon}`]:t.sortIcon},{[`& .${Te.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Te.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${Te.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Te.withBorderColor}`]:t.withBorderColor},{[`& .${Te["row--dropAbove"]}`]:t["row--dropAbove"]},{[`& .${Te["row--dropBelow"]}`]:t["row--dropBelow"]},{[`& .${Te["row--beingDragged"]}`]:t["row--beingDragged"]}]})(()=>{const e=Sp(),t=Qt(e,w7n),n=_n.colors.background.base,r=_n.header.background.base,i=_n.cell.background.pinned,o=A7n(_n.colors.interactive.hover),a=_n.colors.interactive.hoverOpacity,s=_n.colors.interactive.selected,l=_n.colors.interactive.selectedOpacity,c=s,u=`calc(${l} + ${a})`,d=sC(n,o,a),p=sC(n,s,l),h=sC(n,c,u),g=sC(i,o,a),m=sC(i,s,l),b=sC(i,c,u),y=A=>({[`& .${Te["cell--pinnedLeft"]}, & .${Te["cell--pinnedRight"]}`]:{backgroundColor:A,"&.Mui-selected":{backgroundColor:sC(A,p,l),"&:hover":{backgroundColor:sC(A,h,u)}}}}),M=y(g),C=y(m),x=y(b),w={backgroundColor:p,"&:hover":{backgroundColor:h,"@media (hover: none)":{backgroundColor:p}}};return{"--unstable_DataGrid-radius":_n.radius.base,"--unstable_DataGrid-headWeight":_n.typography.fontWeight.medium,"--DataGrid-rowBorderColor":_n.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:_n.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:_n.colors.background.base,color:_n.colors.foreground.base,font:_n.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${Te.main} > *:first-child${x7n}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${Te.autoHeight}`]:{height:"auto"},[`&.${Te.autosizing}`]:{[`& .${Te.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${Te.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${Te.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${Te.groupingCriteriaCell}`]:{width:"unset"},[`& .${Te.treeDataGroupingCell}`]:{width:"unset"}},[`&.${Te.withSidePanel}`]:{flexDirection:"row"},[`& .${Te.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${Te.columnHeader}, & .${Te.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${Te.columnHeader}:focus-within, & .${Te.cell}:focus-within`]:{outline:`solid ${rht(_n.colors.interactive.focus,.5)} ${LE}px`,outlineOffset:LE*-1},[`& .${Te.columnHeader}:focus, & .${Te.cell}:focus`]:{outline:`solid ${_n.colors.interactive.focus} ${LE}px`,outlineOffset:LE*-1},[`& .${Te.columnHeader}:focus,
      & .${Te["columnHeader--withLeftBorder"]},
      & .${Te["columnHeader--withRightBorder"]},
      & .${Te["columnHeader--siblingFocused"]}
      `]:{[`& .${Te.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${Te["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${Te["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${Te["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${Te["root--noToolbar"]} [aria-rowindex="1"] .${Te["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${Te.columnHeaderCheckbox}, & .${Te.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Te.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${Te["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${Te["virtualScroller--hasScrollX"]} .${Te["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${Te["pivotPanelField--sorted"]} .${Te.iconButtonContainer},
      & .${Te["columnHeader--sorted"]} .${Te.iconButtonContainer},
      & .${Te["columnHeader--filtered"]} .${Te.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Te.pivotPanelField}:not(.${Te["pivotPanelField--sorted"]}) .${Te.sortButton},
      & .${Te.columnHeader}:not(.${Te["columnHeader--sorted"]}) .${Te.sortButton}`]:{opacity:0,transition:_n.transition(["opacity"],{duration:_n.transitions.duration.short})},[`& .${Te.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:_n.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${Te.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Te["columnHeader--filledGroup"]} .${Te.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Te.sortIcon}, & .${Te.filterIcon}`]:{fontSize:"inherit"},[`& .${Te["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Te["columnHeader--alignCenter"]} .${Te.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Te["columnHeader--alignRight"]} .${Te.columnHeaderDraggableContainer}, & .${Te["columnHeader--alignRight"]} .${Te.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Te["columnHeader--alignCenter"]} .${Te.menuIcon}`]:{marginLeft:"auto"},[`& .${Te["columnHeader--alignRight"]} .${Te.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${Te["columnHeader--moving"]}`]:{backgroundColor:d},[`& .${Te["columnHeader--pinnedLeft"]}, & .${Te["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:_n.header.background.base},[`& .${Te.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:C7n,color:_n.colors.border.base},[`& .${Te.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${Te.columnHeader}:hover`]:{[`& .${Te.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${Te.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${Te.columnHeader}:not(.${Te["columnHeader--sorted"]}):hover .${Te.sortButton},
        & .${Te.pivotPanelField}:not(.${Te["pivotPanelField--sorted"]}):hover .${Te.sortButton},
        & .${Te.pivotPanelField}:not(.${Te["pivotPanelField--sorted"]}) .${Te.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${Te.columnHeader} .${Te.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${Te.columnHeader}:focus,
        & .${Te["columnHeader--siblingFocused"]}`]:{[`.${Te["columnSeparator--resizable"]}`]:{color:_n.colors.foreground.accent}},[`& .${Te.pivotPanelField}:not(.${Te["pivotPanelField--sorted"]}) .${Te.sortButton}`]:{opacity:.5}},[`& .${Te["columnHeader--withLeftBorder"]} .${Te["columnSeparator--sideLeft"]}:not(.${Te["columnSeparator--resizable"]}), & .${Te["columnHeader--withRightBorder"]} .${Te["columnSeparator--sideRight"]}:not(.${Te["columnSeparator--resizable"]})`]:{display:"none"},[`& .${Te["columnSeparator--sideLeft"]}`]:{left:F8},[`& .${Te["columnSeparator--sideRight"]}`]:{right:F8},[`& .${Te["columnHeader--withRightBorder"]} .${Te["columnSeparator--sideLeft"]}`]:{left:F8-.5},[`& .${Te["columnHeader--withRightBorder"]} .${Te["columnSeparator--sideRight"]}`]:{right:F8-.5},[`& .${Te["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${Te["columnSeparator--resizing"]}`]:{color:_n.colors.foreground.accent},"@media (hover: none)":{[`& .${Te.iconSeparator} rect`]:c5e},"@media (hover: hover)":{"&:hover":{color:_n.colors.foreground.accent,[`& .${Te.iconSeparator} rect`]:c5e}},"& svg":{pointerEvents:"none"}},[`& .${Te.iconSeparator}`]:{color:"inherit",transition:_n.transition(["color","width"],{duration:_n.transitions.duration.short})},[`& .${Te.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${Te.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Te.headerFilterRow}`]:{[`& .${Te.columnHeader}, & .${Te.scrollbarFiller}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${Te["row--borderBottom"]} .${Te.columnHeader},
      & .${Te["row--borderBottom"]} .${Te.filler},
      & .${Te["row--borderBottom"]} .${Te.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Te["row--borderBottom"]} .${Te.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${Te.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${Te["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:d,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Te.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":w},[`& .${Te.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":w},[`& .${Te["virtualScrollerContent--overflowed"]} .${Te["row--lastVisible"]} .${Te.cell}`]:{borderTopColor:"transparent"},[`& .${Te.pinnedRows} .${Te.row}, .${Te.aggregationRowOverlayWrapper} .${Te.row}`]:{backgroundColor:i,"&:hover":{backgroundColor:g}},[`& .${Te["pinnedRows--top"]} :first-of-type`]:{[`& .${Te.cell}, .${Te.scrollbarFiller}`]:{borderTop:"none"}},[`&.${Te["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${Te["row--dynamicHeight"]} > .${Te.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${Te.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${Te.cell}.${Te["cell--selectionMode"]}`]:{cursor:"default"},[`& .${Te.cell}.${Te["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:_n.shadows.base,backgroundColor:_n.colors.background.overlay,"&:focus-within":{outline:`${LE}px solid ${_n.colors.interactive.focus}`,outlineOffset:LE*-1}},[`& .${Te["cell--editing"]}`]:{"& .MuiInputBase-root":{height:"100%"}},[`& .${Te["row--editing"]}`]:{boxShadow:_n.shadows.base},[`& .${Te["row--editing"]} .${Te.cell}`]:{boxShadow:"none",backgroundColor:_n.colors.background.overlay},[`& .${Te.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Te.booleanCell}[data-value="true"]`]:{color:_n.colors.foreground.muted},[`& .${Te.booleanCell}[data-value="false"]`]:{color:_n.colors.foreground.disabled},[`& .${Te.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:_n.spacing(1)},[`& .${Te.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:_n.colors.interactive.disabledOpacity},[`& .${Te["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${Te.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${Te.withBorderColor}`]:{borderColor:_n.colors.border.base},[`& .${Te["cell--withLeftBorder"]}, & .${Te["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${Te["cell--withRightBorder"]}, & .${Te["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Te["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${Te["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${Te["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${Te["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${Te["cell--pinnedLeft"]}, & .${Te["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:_n.cell.background.pinned,"&.Mui-selected":{backgroundColor:m}},[`& .${Te.row}`]:{"&:hover":M,"&.Mui-selected":C,"&.Mui-selected:hover":x},[`& .${Te.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${Te.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${Te.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Te.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Te["columnHeader--dragging"]}`]:{background:_n.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:_n.colors.interactive.disabledOpacity},[`& .${Te["row--dragging"]}`]:{background:_n.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",border:"1px solid var(--DataGrid-rowBorderColor)",color:_n.colors.foreground.base,transform:"translateZ(0)",[`& .${Te.rowReorderCellPlaceholder}`]:{padding:"0 6px",display:"flex"}},[`& .${Te.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Te.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:_n.spacing(2)},[`& .${Te.treeDataGroupingCellLoadingContainer}, .${Te.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${Te.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Te.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:_n.spacing(2)},[`& .${Te.columnHeaders} .${Te.scrollbarFiller}`]:{backgroundColor:r},[`.${Te.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",backgroundColor:r,[`&.${Te["scrollbarFiller--pinnedRight"]}`]:{position:"sticky",zIndex:40,right:0}},[`& .${Te.filler}`]:{flex:"1 0 auto"},[`& .${Te["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Te.columnHeaders} .${Te.filler}`]:{backgroundColor:r},[`& .${Te["main--hiddenContent"]}`]:{[`& .${Te.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${Te.pinnedRows}`]:{display:"none"}},[`& .${Te["row--dropAbove"]}`]:{position:"relative","&::before":{pointerEvents:"none",content:'""',position:"absolute",top:0,left:0,width:"100%",height:"2px",backgroundColor:_n.colors.interactive.selected}},[`& .${Te["row--dropBelow"]}`]:{position:"relative","&::after":{zIndex:100,pointerEvents:"none",content:'""',position:"absolute",bottom:"-2px",left:0,width:"100%",height:"2px",backgroundColor:_n.colors.interactive.selected},[`&.${Te["row--lastVisible"]}`]:{"&::after":{bottom:"calc(var(--DataGrid-hasScrollY) * 0px + (1 - var(--DataGrid-hasScrollY)) * -2px)"}}},[`& .${Te["row--beingDragged"]}`]:{color:_n.colors.foreground.disabled,"&:hover":{backgroundColor:"transparent"}}}});function rht(e,t){return`rgba(from ${e} r g b / ${t})`}function A7n(e){return rht(e,1)}function sC(e,t,n){return`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`}const O7n=()=>()=>{},z7n=()=>!1,T7n=()=>!0,E7n=()=>VMe.useSyncExternalStore(O7n,z7n,T7n),iht=v.createContext(void 0);function Swe(){const e=v.useContext(iht);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function R7n({children:e}){const t=v.useRef(null),n=v.useRef(null),r=v.useRef(null),i=v.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:r}),[]);return f.jsx(iht.Provider,{value:i,children:e})}function I7n(){const e=bi(),t=Qt(e,Ef),n=kn(),r=Qt(e,Gz),{columnsPanelTriggerRef:i,filterPanelTriggerRef:o,aiAssistantPanelTriggerRef:a}=Swe(),s=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??o1.filters);let l=null;switch(r.openedPanelValue){case o1.filters:l=o.current;break;case o1.columns:l=i.current;break;case o1.aiAssistant:l=a.current;break}return f.jsx(n.slots.panel,Y({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:l,onClose:()=>e.current.hidePreferences()},n.slotProps?.panel,{children:s}))}function P7n(){const e=kn();return f.jsxs(v.Fragment,{children:[f.jsx(I7n,{}),e.showToolbar&&f.jsx(e.slots.toolbar,Y({},e.slotProps?.toolbar))]})}const D7n=["className","children","sidePanel"],k7n=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:i}=e,o={root:["root",n&&"autoHeight",`root--density${jt(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",i&&"withVerticalBorder"]};return Yt(o,lo,r)},L7n=qr(function(t,n){const r=kn(),{className:i,children:o,sidePanel:a}=t,s=Lt(t,D7n),l=Sp(),c=Qt(l,WR),u=l.current.rootElementRef,d=v.useCallback(y=>{y!==null&&l.current.publishEvent("rootMount",y)},[l]),p=Pi(u,n,d),h=r,g=k7n(h,c),m=EHn();return E7n()?null:f.jsxs(S7n,Y({className:_o(g.root,i,m.className,a&&Te.withSidePanel),ownerState:h},s,{ref:p,children:[f.jsxs("div",{className:Te.mainContent,role:"presentation",children:[f.jsx(P7n,{}),f.jsx(i7n,{children:o}),f.jsx(o7n,{})]}),a,m.tag]}))}),_7n=CM(L7n),N7n=["className"],F7n=e=>{const{classes:t}=e;return Yt({root:["footerContainer","withBorderColor"]},lo,t)},W7n=Go("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),q7n=qr(function(t,n){const{className:r}=t,i=Lt(t,N7n),o=kn(),a=F7n(o);return f.jsx(W7n,Y({className:_o(a.root,r),ownerState:o},i,{ref:n}))}),B7n=["className"],j7n=e=>{const{classes:t}=e;return Yt({root:["overlay"]},lo,t)},H7n=Go("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:_n.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:_n.colors.background.backdrop}),VZ=qr(function(t,n){const{className:r}=t,i=Lt(t,B7n),o=kn(),a=j7n(o);return f.jsx(H7n,Y({className:_o(a.root,r),ownerState:o},i,{ref:n}))});function e2(e,t,n,r={}){return typeof t=="function"?t(n,r):t?(t.props.className&&(n.className=V7n(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=Y({},n.style,t.props.style)),v.cloneElement(t,n)):v.createElement(e,n)}function V7n(e,t){return!e||!t?e||t:`${e} ${t}`}const oht=v.createContext(void 0);function G7n(){const e=v.useContext(oht);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}function $7n(e,t){if(!e.ref.current||!t.ref.current)return 0;const n=e.ref.current.compareDocumentPosition(t.ref.current);return n?n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}const U7n=["render","className"],X7n=e=>{const{classes:t}=e;return Yt({root:["toolbar"]},lo,t)},Y7n=Go("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:_n.spacing(.25),padding:_n.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${_n.colors.border.base}`}),K7n=qr(function(t,n){const{render:r,className:i}=t,o=Lt(t,U7n),a=kn(),s=X7n(a),[l,c]=v.useState(null),[u,d]=v.useState([]),p=v.useCallback(()=>u.sort($7n),[u]),h=v.useCallback((w,S,A=!0)=>{let z=w;const O=p(),T=O.length;for(let R=0;R<T;R+=1){if(z+=S,z>=T){if(!A)return-1;z=0}else if(z<0){if(!A)return-1;z=T-1}if(!O[z].ref.current?.disabled&&O[z].ref.current?.ariaDisabled!=="true")return z}return-1},[p]),g=v.useCallback((w,S)=>{d(A=>[...A,{id:w,ref:S}])},[]),m=v.useCallback(w=>{d(S=>S.filter(A=>A.id!==w))},[]),b=v.useCallback(w=>{if(!l)return;const S=p(),A=S.findIndex(O=>O.id===l);let z=-1;if(w.key==="ArrowRight"?(w.preventDefault(),z=h(A,1)):w.key==="ArrowLeft"?(w.preventDefault(),z=h(A,-1)):w.key==="Home"?(w.preventDefault(),z=h(-1,1,!1)):w.key==="End"&&(w.preventDefault(),z=h(S.length,-1,!1)),z>=0&&z<S.length){const O=S[z];c(O.id),O.ref.current?.focus()}},[p,l,h]),y=v.useCallback(w=>{l!==w&&c(w)},[l,c]),M=v.useCallback(w=>{const S=p(),A=S.findIndex(O=>O.id===w),z=h(A,1);if(z>=0&&z<S.length){const O=S[z];c(O.id),O.ref.current?.focus()}},[p,h]);v.useEffect(()=>{const w=p();if(w.length>0){if(!l){c(w[0].id);return}const S=w.findIndex(A=>A.id===l);if(w[S]){if(S===-1){const A=w[S];A&&(c(A.id),A.ref.current?.focus())}}else{const A=w[w.length-1];A&&(c(A.id),A.ref.current?.focus())}}},[p,h]);const C=v.useMemo(()=>({focusableItemId:l,registerItem:g,unregisterItem:m,onItemKeyDown:b,onItemFocus:y,onItemDisabled:M}),[l,g,m,b,y,M]),x=e2(Y7n,r,Y({role:"toolbar","aria-orientation":"horizontal","aria-label":a.label||void 0,className:_o(s.root,i)},o,{ref:n}));return f.jsx(oht.Provider,{value:C,children:x})}),Q7n=["render","onKeyDown","onFocus","disabled","aria-disabled"],I7=qr(function(t,n){const{render:r,onKeyDown:i,onFocus:o,disabled:a,"aria-disabled":s}=t,l=Lt(t,Q7n),c=Vi(),u=kn(),d=v.useRef(null),p=Pi(d,n),{focusableItemId:h,registerItem:g,unregisterItem:m,onItemKeyDown:b,onItemFocus:y,onItemDisabled:M}=G7n(),C=z=>{b(z),i?.(z)},x=z=>{y(c),o?.(z)};v.useEffect(()=>(g(c,d),()=>m(c)),[]);const w=v.useRef(a);v.useEffect(()=>{w.current!==a&&a===!0&&M(c,a),w.current=a},[a,c,M]);const S=v.useRef(s);v.useEffect(()=>{S.current!==s&&s===!0&&M(c,!0),S.current=s},[s,c,M]);const A=e2(u.slots.baseIconButton,r,Y({},u.slotProps?.baseIconButton,{tabIndex:h===c?0:-1},l,{disabled:a,"aria-disabled":s,onKeyDown:C,onFocus:x,ref:p}));return f.jsx(v.Fragment,{children:A})}),Z7n=e=>{const{classes:t,open:n}=e;return Yt({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},lo,t)},J7n=v.memo(e=>{const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:i,iconButtonRef:o}=e,a=bi(),s=kn(),l=Y({},e,{classes:s.classes}),c=Z7n(l),u=v.useCallback(p=>{p.preventDefault(),p.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]),d=t.headerName??t.field;return f.jsx("div",{className:c.root,children:f.jsx(s.slots.baseTooltip,Y({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},s.slotProps?.baseTooltip,{children:f.jsx(s.slots.baseIconButton,Y({ref:o,tabIndex:-1,className:c.button,"aria-label":a.current.getLocaleText("columnMenuAriaLabel")(d),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:i},s.slotProps?.baseIconButton,{children:f.jsx(s.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function e$n({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:i,open:o,target:a,onExited:s}){const l=bi(),c=l.current.getColumn(i),u=en(d=>{d&&(d.stopPropagation(),a?.contains(d.target))||l.current.hideColumnMenu()});return!a||!c?null:f.jsx(kZ,{position:`bottom-${c.align==="right"?"start":"end"}`,open:o,target:a,onClose:u,onExited:s,children:f.jsx(n,Y({colDef:c,hideMenu:u,open:o,id:e,labelledby:t},r))})}function t$n(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function U9(e,t){return e.closest(`.${t}`)}function wM(e){return e.replace(/["\\]/g,"\\$&")}function n$n(e,t){return e.querySelector(`[role="columnheader"][data-field="${wM(t)}"]`)}function aht(e){return`.${Te.row}[data-id="${wM(String(e))}"]`}function r$n(e,t){return e.querySelector(aht(t))}function i$n(e,{id:t,field:n}){const r=aht(t),i=`.${Te.cell}[data-field="${wM(n)}"]`,o=`${r} ${i}`;return e.querySelector(o)}function RB(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function o$n(e){return e.getAttribute("data-field")}function a$n(e,t){return e.querySelector(`[data-field="${wM(t)}"]`)}function s$n(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function l$n(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${wM(t)}-|"]`)??[])}function c$n(e,t){if(!U9(e,Te.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const i=Number(r)-1,o=[];return t.virtualScrollerRef?.current?(cht(t).forEach(a=>{const s=a.getAttribute("data-id");if(!s)return;let l=i;const c=t.unstable_getCellColSpanInfo(s,i);c&&c.spannedByColSpan&&(l=c.leftVisibleCellIndex);const u=a.querySelector(`[data-colindex="${l}"]`);u&&o.push(u)}),o):[]}function u5e(e,t){return e.rootElementRef.current.querySelector(`.${Te[t]}`)}const sht=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const i=[];return cht(e).forEach(o=>{o.getAttribute("data-id")&&o.querySelectorAll(`.${Te[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(s=>{const l=QD(s);l!==null&&r(l)&&i.push(s)})}),i};function u$n(e,t,n){const r=QD(t);return sht({api:e,colIndex:r,position:n?"right":"left",filterFn:i=>n?i<r:i>r})}function d$n(e,t,n){const r=QD(t);return sht({api:e,colIndex:r,position:n?"left":"right",filterFn:i=>n?i>r:i<r})}const lht=({api:e,colIndex:t,position:n,filterFn:r})=>{if(!e.columnHeadersContainerRef?.current)return[];if(t===null)return[];const i=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${Te[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(o=>{const a=QD(o);a!==null&&r(a,o)&&i.push(o)}),i};function p$n(e,t,n){const r=QD(t);return lht({api:e,position:n?"right":"left",colIndex:r,filterFn:i=>n?i<r:i>r})}function h$n(e,t,n){const r=QD(t);return lht({api:e,position:n?"left":"right",colIndex:r,filterFn:(i,o)=>o.classList.contains(Te["columnHeader--last"])?!1:n?i>r:i<r})}function f$n(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${wM(t)}"][role="columnheader"]`)}function g$n(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${wM(t)}"][role="gridcell"]`))}function cht(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${Te.row}`)}function QD(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const m$n=["className","aria-label"],v$n=e=>{const{classes:t}=e;return Yt({root:["columnHeaderTitle"]},lo,t)},b$n=Go("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),y$n=qr(function(t,n){const{className:r}=t,i=Lt(t,m$n),o=kn(),a=v$n(o);return f.jsx(b$n,Y({className:_o(a.root,r),ownerState:o},i,{ref:n}))});function M$n(e){const{label:t,description:n}=e,r=kn(),i=v.useRef(null),[o,a]=v.useState(""),s=v.useCallback(()=>{if(!n&&i?.current){const l=t$n(i.current);a(l?t:"")}},[n,t]);return f.jsx(r.slots.baseTooltip,Y({title:n||o},r.slotProps?.baseTooltip,{children:f.jsx(y$n,{onMouseOver:s,ref:i,children:t})}))}const C$n=["resizable","resizing","height","side"];var Awe=(function(e){return e.Left="left",e.Right="right",e})(Awe||{});const x$n=e=>{const{resizable:t,resizing:n,classes:r,side:i}=e,o={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",i&&`columnSeparator--side${jt(i)}`],icon:["iconSeparator"]};return Yt(o,lo,r)};function w$n(e){const{height:t,side:n=Awe.Right}=e,r=Lt(e,C$n),i=kn(),o=Y({},e,{side:n,classes:i.classes}),a=x$n(o),s=v.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return f.jsx("div",Y({className:a.root,style:{minHeight:t}},r,{onClick:s,children:f.jsx(i.slots.columnResizeIcon,{className:a.icon})}))}const S$n=v.memo(w$n),A$n=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],uht=qr(function(t,n){const{classes:r,colIndex:i,height:o,isResizing:a,sortDirection:s,tabIndex:l,separatorSide:c,isDraggable:u,headerComponent:d,description:p,width:h,columnMenuIconButton:g=null,columnMenu:m=null,columnTitleIconButtons:b=null,headerClassName:y,label:M,resizable:C,draggableContainerProps:x,columnHeaderSeparatorProps:w,style:S}=t,A=Lt(t,A$n),z=kn(),O=v.useRef(null),T=Pi(O,n);let R="none";return s!=null&&(R=s==="asc"?"ascending":"descending"),f.jsxs("div",Y({className:_o(r.root,y),style:Y({},S,{width:h}),role:"columnheader",tabIndex:l,"aria-colindex":i+1,"aria-sort":R},A,{ref:T,children:[f.jsxs("div",Y({className:r.draggableContainer,draggable:u,role:"presentation"},x,{children:[f.jsxs("div",{className:r.titleContainer,role:"presentation",children:[f.jsx("div",{className:r.titleContainerContent,children:d!==void 0?d:f.jsx(M$n,{label:M,description:p,columnWidth:h})}),b]}),g]})),f.jsx(S$n,Y({resizable:!z.disableColumnResize&&!!C,resizing:a,height:o,side:c},w)),m]}))}),O$n=e=>{const{disableColumnSorting:t}=kn(),{colDef:n,classes:r,isDragging:i,sortDirection:o,showRightBorder:a,showLeftBorder:s,filterItemsCounter:l,pinnedPosition:c,isSiblingFocused:u}=e,d=n.sortable&&!t,p=o!=null,h=l!=null&&l>0,g=n.type==="number",m={root:["columnHeader",n.headerAlign==="left"&&"columnHeader--alignLeft",n.headerAlign==="center"&&"columnHeader--alignCenter",n.headerAlign==="right"&&"columnHeader--alignRight",d&&"columnHeader--sortable",i&&"columnHeader--moving",p&&"columnHeader--sorted",h&&"columnHeader--filtered",g&&"columnHeader--numeric","withBorderColor",a&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",c===fo.LEFT&&"columnHeader--pinnedLeft",c===fo.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Yt(m,lo,r)};function z$n(e){const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:i,isResizing:o,isLast:a,sortDirection:s,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:d,disableReorder:p,separatorSide:h,showLeftBorder:g,showRightBorder:m,pinnedPosition:b,pinnedOffset:y}=e,M=Sp(),C=kn(),x=ts(),w=v.useRef(null),S=Vi(),A=Vi(),z=v.useRef(null),[O,T]=v.useState(n),R=v.useMemo(()=>!C.disableColumnReorder&&!p&&!t.disableReorder,[C.disableColumnReorder,p,t.disableReorder]);let P;t.renderHeader&&(P=t.renderHeader(M.current.getColumnHeaderParams(t.field)));const F=Y({},e,{classes:C.classes,showRightBorder:m,showLeftBorder:g}),N=O$n(F),L=v.useCallback(pe=>te=>{RB(te)||M.current.publishEvent(pe,M.current.getColumnHeaderParams(t.field),te)},[M,t.field]),W=v.useMemo(()=>({onClick:L("columnHeaderClick"),onContextMenu:L("columnHeaderContextMenu"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),j=v.useMemo(()=>R?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEndCapture:L("columnHeaderDragEnd")}:{},[R,L]),V=v.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);v.useEffect(()=>{O||T(n)},[O,n]);const G=v.useCallback(()=>{T(!1)},[]),q=!C.disableColumnMenu&&!t.disableColumnMenu&&f.jsx(J7n,{colDef:t,columnMenuId:S,columnMenuButtonId:A,open:O,iconButtonRef:z}),$=f.jsx(e$n,{columnMenuId:S,columnMenuButtonId:A,field:t.field,open:n,target:z.current,ContentComponent:C.slots.columnMenu,contentComponentProps:C.slotProps?.columnMenu,onExited:G}),U=t.sortingOrder??C.sortingOrder,X=(t.sortable||s!=null)&&!t.hideSortIcons&&!C.disableColumnSorting,Q=f.jsxs(v.Fragment,{children:[!C.disableColumnFilter&&f.jsx(C.slots.columnHeaderFilterIconButton,Y({field:t.field,counter:c},C.slotProps?.columnHeaderFilterIconButton)),X&&f.jsx(C.slots.columnHeaderSortIcon,Y({field:t.field,direction:s,index:l,sortingOrder:U,disabled:!t.sortable},C.slotProps?.columnHeaderSortIcon))]});v.useLayoutEffect(()=>{const pe=M.current.state.columnMenu;if(u&&!pe.open){const ce=w.current.querySelector('[tabindex="0"]')||w.current;if(!ce)return;if(wwe())ce.focus({preventScroll:!0});else{const oe=M.current.getScrollPosition();ce.focus(),M.current.scroll(oe)}}},[M,u]);const re=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,ee=t.headerName??t.field,se=v.useMemo(()=>HZ(Y({},e.style),x,b,y),[b,y,e.style,x]);return f.jsx(uht,Y({ref:w,classes:N,columnMenuOpen:n,colIndex:r,height:i,isResizing:o,sortDirection:s,hasFocus:u,tabIndex:d,separatorSide:h,isDraggable:R,headerComponent:P,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:q,columnTitleIconButtons:Q,headerClassName:_o(re,a&&Te["columnHeader--last"]),label:ee,resizable:!C.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:$,draggableContainerProps:j,columnHeaderSeparatorProps:V,style:se},W))}const T$n=CM(z$n),E$n=["className"],R$n=e=>{const{classes:t}=e;return Yt({root:["iconButtonContainer"]},lo,t)},I$n=Go("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),dht=qr(function(t,n){const{className:r}=t,i=Lt(t,E$n),o=kn(),a=R$n(o);return f.jsx(I$n,Y({className:_o(a.root,r),ownerState:o},i,{ref:n}))}),P$n=["direction","index","sortingOrder","disabled","className"],D$n=e=>{const{classes:t}=e;return Yt({root:["sortButton"],icon:["sortIcon"]},lo,t)},k$n=Go(Jb,{name:"MuiDataGrid",slot:"SortButton"})({transition:_n.transition(["opacity"],{duration:_n.transitions.duration.short,easing:_n.transitions.easing.easeInOut})});function L$n(e,t,n,r){let i;const o={};return t==="asc"?i=e.columnSortedAscendingIcon:t==="desc"?i=e.columnSortedDescendingIcon:(i=e.columnUnsortedIcon,o.sortingOrder=r),i?f.jsx(i,Y({fontSize:"small",className:n},o)):null}function _$n(e){const{direction:t,index:n,sortingOrder:r,disabled:i,className:o}=e,a=Lt(e,P$n),s=bi(),l=kn(),c=Y({},e,{classes:l.classes}),u=D$n(c),d=L$n(l.slots,t,u.icon,r);if(!d)return null;const p=f.jsx(k$n,Y({as:l.slots.baseIconButton,ownerState:c,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:i,className:_o(u.root,o)},l.slotProps?.baseIconButton,a,{children:d}));return f.jsxs(v.Fragment,{children:[n!=null&&f.jsx(l.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:p}),n==null&&p]})}function N$n(e){return f.jsx(dht,{children:f.jsx(_$n,Y({},e,{tabIndex:-1}))})}const F$n=v.memo(N$n),W$n=e=>{const{classes:t}=e;return Yt({icon:["filterIcon"]},lo,t)};function q$n(e){return e.counter?f.jsx(B$n,Y({},e)):null}function B$n(e){const{counter:t,field:n,onClick:r}=e,i=bi(),o=kn(),a=Y({},e,{classes:o.classes}),s=W$n(a),l=Vi(),c=Qt(i,PVn,l),u=Vi(),d=v.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:g,openedPanelValue:m}=Gz(i);g&&m===o1.filters?i.current.hideFilterPanel():i.current.showFilterPanel(void 0,u,l),r&&r(i.current.getColumnHeaderParams(n),h)},[i,n,r,u,l]);if(!t)return null;const p=f.jsx(o.slots.baseIconButton,Y({id:l,onClick:d,"aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":c,"aria-controls":c?u:void 0},o.slotProps?.baseIconButton,{children:f.jsx(o.slots.columnFilteredIcon,{className:s.icon,fontSize:"small"})}));return f.jsx(o.slots.baseTooltip,Y({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},o.slotProps?.baseTooltip,{children:f.jsxs(dht,{children:[t>1&&f.jsx(o.slots.baseBadge,{badgeContent:t,color:"default",children:p}),t===1&&p]})}))}const j$n=["hideMenu","colDef","id","labelledby","className","children","open"],H$n=rt(Jb)(()=>({minWidth:248}));function d5e(e){e.currentTarget.contains(e.target)&&e.stopPropagation()}const V$n=qr(function(t,n){const{hideMenu:r,id:i,labelledby:o,className:a,children:s,open:l}=t,c=Lt(t,j$n),u=kn(),d=v.useCallback(p=>{p.key==="Tab"&&p.preventDefault(),fpt(p.key)&&r(p)},[r]);return f.jsx(H$n,Y({as:u.slots.baseMenuList,id:i,className:_o(Te.menuList,a),"aria-labelledby":o,onKeyDown:d,onWheel:d5e,onTouchMove:d5e,autoFocus:l},c,{ref:n,children:s}))}),G$n=["displayOrder"],$$n=e=>{const t=Sp(),n=kn(),{defaultSlots:r,defaultSlotProps:i,slots:o={},slotProps:a={},hideMenu:s,colDef:l,addDividers:c=!0}=e,u=v.useMemo(()=>Y({},r,o),[r,o]),d=v.useMemo(()=>{if(!a||Object.keys(a).length===0)return i;const g=Y({},a);return Object.entries(i).forEach(([m,b])=>{g[m]=Y({},b,a[m]||{})}),g},[i,a]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=v.useMemo(()=>{const g=Object.keys(r);return Object.keys(o).filter(m=>!g.includes(m))},[o,r]);return v.useMemo(()=>{const b=Array.from(new Set([...p,...h])).filter(y=>u[y]!=null).sort((y,M)=>{const C=d[y],x=d[M],w=Number.isFinite(C?.displayOrder)?C.displayOrder:100,S=Number.isFinite(x?.displayOrder)?x.displayOrder:100;return w-S});return b.reduce((y,M,C)=>{let x={colDef:l,onClick:s};const w=d[M];if(w){const S=Lt(w,G$n);x=Y({},x,S)}return c&&C!==b.length-1?[...y,[u[M],x],[n.slots.baseDivider,{}]]:[...y,[u[M],x]]},[])},[c,l,p,s,u,d,h,n.slots.baseDivider])};function U$n(e){const{colDef:t,onClick:n}=e,r=bi(),i=kn(),s=xl(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=v.useCallback(c=>{s||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,s]);return i.disableColumnSelector||t.hideable===!1?null:f.jsx(i.slots.baseMenuItem,{onClick:l,disabled:s,iconStart:f.jsx(i.slots.columnMenuHideIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuHideColumn")})}function X$n(e){const{onClick:t}=e,n=bi(),r=kn(),i=v.useCallback(o=>{t(o),n.current.showPreferences(o1.columns)},[n,t]);return r.disableColumnSelector?null:f.jsx(r.slots.baseMenuItem,{onClick:i,iconStart:f.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}function Y$n(e){return f.jsxs(v.Fragment,{children:[f.jsx(U$n,Y({},e)),f.jsx(X$n,Y({},e))]})}function K$n(e){const{colDef:t,onClick:n}=e,r=bi(),i=kn(),o=v.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return i.disableColumnFilter||!t.filterable?null:f.jsx(i.slots.baseMenuItem,{onClick:o,iconStart:f.jsx(i.slots.columnMenuFilterIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuFilter")})}function Q$n(e){const{colDef:t,onClick:n}=e,r=bi(),i=Qt(r,Qh),o=kn(),a=v.useMemo(()=>t?i.find(d=>d.field===t.field)?.sort:null,[t,i]),s=t.sortingOrder??o.sortingOrder,l=v.useCallback(u=>{n(u);const d=u.currentTarget.getAttribute("data-value")||null,p=o.multipleColumnsSortingMode==="always";r.current.sortColumn(t.field,d===a?null:d,p)},[r,t,n,a,o.multipleColumnsSortingMode]);if(o.disableColumnSorting||!t||!t.sortable||!s.some(u=>!!u))return null;const c=u=>{const d=r.current.getLocaleText(u);return typeof d=="function"?d(t):d};return f.jsxs(v.Fragment,{children:[s.includes("asc")&&a!=="asc"?f.jsx(o.slots.baseMenuItem,{onClick:l,"data-value":"asc",iconStart:f.jsx(o.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:c("columnMenuSortAsc")}):null,s.includes("desc")&&a!=="desc"?f.jsx(o.slots.baseMenuItem,{onClick:l,"data-value":"desc",iconStart:f.jsx(o.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:c("columnMenuSortDesc")}):null,s.includes(null)&&a!=null?f.jsx(o.slots.baseMenuItem,{onClick:l,iconStart:o.slots.columnMenuUnsortIcon?f.jsx(o.slots.columnMenuUnsortIcon,{fontSize:"small"}):f.jsx("span",{}),children:r.current.getLocaleText("columnMenuUnsort")}):null]})}const Z$n=["defaultSlots","defaultSlotProps","slots","slotProps"],J$n={columnMenuSortItem:Q$n,columnMenuFilterItem:K$n,columnMenuColumnsItem:Y$n},e9n={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},t9n=qr(function(t,n){const{defaultSlots:r,defaultSlotProps:i,slots:o,slotProps:a}=t,s=Lt(t,Z$n),l=$$n(Y({},s,{defaultSlots:r,defaultSlotProps:i,slots:o,slotProps:a}));return f.jsx(V$n,Y({},s,{ref:n,children:l.map(([c,u],d)=>f.jsx(c,Y({},u),d))}))}),n9n=qr(function(t,n){return f.jsx(t9n,Y({},t,{ref:n,defaultSlots:J$n,defaultSlotProps:e9n}))}),r9n=["className"],i9n=e=>{const{classes:t}=e;return Yt({root:["panelWrapper"]},lo,t)},o9n=rt("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),pht=qr(function(t,n){const{className:r}=t,i=Lt(t,r9n),o=kn(),a=i9n(o);return f.jsx(o9n,Y({tabIndex:-1,className:_o(a.root,r),ownerState:o},i,{ref:n}))});function a9n(e){const t=kn();return f.jsx(pht,Y({},e,{children:f.jsx(t.slots.columnsManagement,Y({},t.slotProps?.columnsManagement))}))}const s9n=["children","className","classes","onClose"],l9n=Ln("MuiDataGrid",["panel","paper"]),c9n=rt(Jb,{name:"MuiDataGrid",slot:"panel"})({zIndex:_n.zIndex.panel}),u9n=rt("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:_n.colors.background.overlay,borderRadius:_n.radius.base,boxShadow:_n.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${_n.spacing(2)})`,overflow:"auto"}),d9n=qr((e,t)=>{const{children:n,className:r,onClose:i}=e,o=Lt(e,s9n),a=bi(),s=kn(),l=l9n,[c,u]=v.useState(!1),d=vpt(),p=en(()=>u(!0)),h=en(()=>u(!1)),g=en(()=>{i?.()}),m=en(M=>{M.key==="Escape"&&i?.()}),[b,y]=v.useState(null);return v.useEffect(()=>{const M=a.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');M&&y(M)},[a]),b?f.jsx(c9n,Y({as:s.slots.basePopper,ownerState:s,placement:"bottom-end",className:_o(l.panel,r,d),flip:!0,onDidShow:p,onDidHide:h,onClickAway:g,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},o,s.slotProps?.basePopper,{target:e.target??b,ref:t,children:f.jsx(u9n,{className:l.paper,ownerState:s,onKeyDown:m,children:c&&n})})):null}),p9n=["className"],h9n=e=>{const{classes:t}=e;return Yt({root:["panelContent"]},lo,t)},f9n=Go("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:_n.spacing(2.5,1.5,2,1),gap:_n.spacing(2.5)});function g9n(e){const{className:t}=e,n=Lt(e,p9n),r=kn(),i=h9n(r);return f.jsx(f9n,Y({className:_o(i.root,t),ownerState:r},n))}const m9n=["className"],v9n=e=>{const{classes:t}=e;return Yt({root:["panelFooter"]},lo,t)},b9n=rt("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:_n.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${_n.colors.border.base}`});function y9n(e){const{className:t}=e,n=Lt(e,m9n),r=kn(),i=v9n(r);return f.jsx(b9n,Y({className:_o(i.root,t),ownerState:r},n))}const M9n=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],C9n=["InputComponentProps"],x9n=e=>{const{classes:t}=e;return Yt({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},lo,t)},w9n=rt("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:_n.spacing(1.5)}),S9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),A9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),O9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),z9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),T9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),E9n=e=>{switch(e){case e1.And:return"filterPanelOperatorAnd";case e1.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},J4=e=>e.headerName||e.field,p5e=new Intl.Collator,h5e=qr(function(t,n){const{item:r,hasMultipleFilters:i,deleteFilter:o,applyFilterChanges:a,showMultiFilterOperators:s,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:d=[e1.And,e1.Or],columnsSort:p,filterColumns:h,deleteIconProps:g={},logicOperatorInputProps:m={},operatorInputProps:b={},columnInputProps:y={},valueInputProps:M={},readOnly:C}=t,x=Lt(t,M9n),w=bi(),S=Qt(w,xM),A=Qt(w,upt),z=Qt(w,mu),O=Vi(),T=Vi(),R=Vi(),P=Vi(),F=kn(),N=x9n(F),L=v.useRef(null),W=v.useRef(null),j=z.logicOperator??e1.And,V=i&&d.length>0,q=(F.slotProps?.baseSelect||{}).native??!1,$=F.slotProps?.baseSelectOption||{},{InputComponentProps:U}=M,X=Lt(M,C9n),Q=Qt(w,Vz),re=Qt(w,Mwe),{filteredColumns:ee,selectedField:se}=v.useMemo(()=>{let he=r.field;const be=S[r.field].filterable===!1?S[r.field]:null;if(be)return{filteredColumns:[be],selectedField:he};if(Q)return{filteredColumns:A.filter(Me=>re.get(Me.field)!==void 0),selectedField:he};if(h===void 0||typeof h!="function")return{filteredColumns:A,selectedField:he};const me=h({field:r.field,columns:A,currentFilters:z?.items||[]});return{filteredColumns:A.filter(Me=>{const Oe=me.includes(Me.field);return Me.field===r.field&&!Oe&&(he=void 0),Oe}),selectedField:he}},[r.field,S,Q,h,A,z?.items,re]),pe=v.useMemo(()=>{switch(p){case"asc":return ee.sort((he,be)=>p5e.compare(J4(he),J4(be)));case"desc":return ee.sort((he,be)=>-p5e.compare(J4(he),J4(be)));default:return ee}},[ee,p]),te=r.field?w.current.getColumn(r.field):null,ce=v.useMemo(()=>!r.operator||!te?null:te.filterOperators?.find(he=>he.value===r.operator),[r,te]),oe=v.useCallback(he=>{const be=he.target.value,me=w.current.getColumn(be);if(me.field===te.field)return;const Me=me.filterOperators.find(ie=>ie.value===r.operator)||me.filterOperators[0];let de=!Me.InputComponent||Me.InputComponent!==ce?.InputComponent||me.type!==te.type?void 0:r.value;if(me.type==="singleSelect"&&de!==void 0){const ie=me,ue=Hz(ie);Array.isArray(de)?de=de.filter(Ae=>H9(Ae,ue,ie?.getOptionValue)!==void 0):H9(r.value,ue,ie?.getOptionValue)===void 0&&(de=void 0)}a(Y({},r,{field:be,operator:Me.value,value:de}))},[w,a,r,te,ce]),ae=v.useCallback(he=>{const be=he.target.value,me=te?.filterOperators.find(Oe=>Oe.value===be),Me=!me?.InputComponent||me?.InputComponent!==ce?.InputComponent;a(Y({},r,{operator:be,value:Me?void 0:r.value}))},[a,r,te,ce]),ne=v.useCallback(he=>{const be=he.target.value===e1.And.toString()?e1.And:e1.Or;c(be)},[c]),le=()=>{o(r)};return v.useImperativeHandle(u,()=>({focus:()=>{ce?.InputComponent?L?.current?.focus():W.current.focus()}}),[ce]),f.jsxs(w9n,Y({className:N.root,"data-id":r.id,ownerState:F},x,{ref:n,children:[f.jsx(S9n,Y({},g,{className:_o(N.deleteIcon,g.className),ownerState:F,children:f.jsx(F.slots.baseIconButton,Y({"aria-label":w.current.getLocaleText("filterPanelDeleteIconLabel"),title:w.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:le,size:"small",disabled:C},F.slotProps?.baseIconButton,{children:f.jsx(F.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),f.jsx(A9n,Y({as:F.slots.baseSelect,sx:[V?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},m.sx],className:_o(N.logicOperatorInput,m.className),ownerState:F},m,{size:"small",slotProps:{htmlInput:{"aria-label":w.current.getLocaleText("filterPanelLogicOperator")}},value:j??"",onChange:ne,disabled:!!l||d.length===1,native:q},F.slotProps?.baseSelect,{children:d.map(he=>v.createElement(F.slots.baseSelectOption,Y({},$,{native:q,key:he.toString(),value:he.toString()}),w.current.getLocaleText(E9n(he))))})),f.jsx(O9n,Y({as:F.slots.baseSelect},y,{className:_o(N.columnInput,y.className),ownerState:F,size:"small",labelId:T,id:O,label:w.current.getLocaleText("filterPanelColumns"),value:se??"",onChange:oe,native:q,disabled:C},F.slotProps?.baseSelect,{children:pe.map(he=>v.createElement(F.slots.baseSelectOption,Y({},$,{native:q,key:he.field,value:he.field}),J4(he)))})),f.jsx(z9n,Y({as:F.slots.baseSelect,size:"small"},b,{className:_o(N.operatorInput,b.className),ownerState:F,labelId:P,label:w.current.getLocaleText("filterPanelOperator"),id:R,value:r.operator,onChange:ae,native:q,inputRef:W,disabled:C},F.slotProps?.baseSelect,{children:te?.filterOperators?.map(he=>v.createElement(F.slots.baseSelectOption,Y({},$,{native:q,key:he.value,value:he.value}),he.label||w.current.getLocaleText(`filterOperator${jt(he.value)}`)))})),f.jsx(T9n,Y({},X,{className:_o(N.valueInput,X.className),ownerState:F,children:ce?.InputComponent?f.jsx(ce.InputComponent,Y({apiRef:w,item:r,applyValue:a,focusElementRef:L,disabled:C,slotProps:{root:{size:"small"}}},ce.InputComponentProps,U),r.field):null}))]}))}),R9n=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],f5e=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),I9n=qr(function(t,n){const r=bi(),i=kn(),o=Qt(r,mu),a=Qt(r,upt),s=Qt(r,mHn),l=v.useRef(null),c=v.useRef(null),{logicOperators:u=[e1.And,e1.Or],columnsSort:d,filterFormProps:p,getColumnForNewFilter:h,disableAddFilterButton:g=!1,disableRemoveAllButton:m=!1}=t,b=Lt(t,R9n),y=r.current.upsertFilterItem,M=v.useCallback(P=>{r.current.setFilterLogicOperator(P)},[r]),C=v.useCallback(()=>{let P;if(h&&typeof h=="function"){const F=h({currentFilters:o?.items||[],columns:a});if(F===null)return null;P=a.find(({field:N})=>N===F)}else P=a.find(F=>F.filterOperators?.length);return P?f5e(P):null},[o?.items,a,h]),x=v.useCallback(()=>{if(h===void 0||typeof h!="function")return C();const P=o.items.length?o.items:[C()].filter(Boolean),F=h({currentFilters:P,columns:a});if(F===null)return null;const N=a.find(({field:L})=>L===F);return N?f5e(N):null},[o.items,a,h,C]),w=v.useMemo(()=>o.items.length?o.items:(c.current||(c.current=C()),c.current?[c.current]:[]),[o.items,C]),S=w.length>1,{readOnlyFilters:A,validFilters:z}=v.useMemo(()=>w.reduce((P,F)=>(s[F.field]?P.validFilters.push(F):P.readOnlyFilters.push(F),P),{readOnlyFilters:[],validFilters:[]}),[w,s]),O=v.useCallback(()=>{const P=x();P&&r.current.upsertFilterItems([...w,P])},[r,x,w]),T=v.useCallback(P=>{const F=z.length===1;r.current.deleteFilterItem(P),F&&r.current.hideFilterPanel()},[r,z.length]),R=v.useCallback(()=>z.length===1&&z[0].value===void 0?(r.current.deleteFilterItem(z[0]),r.current.hideFilterPanel()):r.current.setFilterModel(Y({},o,{items:A}),"removeAllFilterItems"),[r,A,o,z]);return v.useEffect(()=>{u.length>0&&o.logicOperator&&!u.includes(o.logicOperator)&&M(u[0])},[u,M,o.logicOperator]),v.useEffect(()=>{z.length>0&&l.current.focus()},[z.length]),f.jsxs(pht,Y({},b,{ref:n,children:[f.jsxs(g9n,{children:[A.map((P,F)=>f.jsx(h5e,Y({item:P,applyFilterChanges:y,deleteFilter:T,hasMultipleFilters:S,showMultiFilterOperators:F>0,disableMultiFilterOperator:F!==1,applyMultiFilterOperatorChanges:M,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:d},p),P.id==null?F:P.id)),z.map((P,F)=>f.jsx(h5e,Y({item:P,applyFilterChanges:y,deleteFilter:T,hasMultipleFilters:S,showMultiFilterOperators:A.length+F>0,disableMultiFilterOperator:A.length+F!==1,applyMultiFilterOperatorChanges:M,focusElementRef:F===z.length-1?l:null,logicOperators:u,columnsSort:d},p),P.id==null?F+A.length:P.id))]}),!i.disableMultipleColumnsFiltering&&!(g&&m)?f.jsxs(y9n,{children:[g?f.jsx("span",{}):f.jsx(i.slots.baseButton,Y({onClick:O,startIcon:f.jsx(i.slots.filterPanelAddIcon,{})},i.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!m&&z.length>0?f.jsx(i.slots.baseButton,Y({onClick:R,startIcon:f.jsx(i.slots.filterPanelRemoveAllIcon,{})},i.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),P9n=(e,t)=>{const n=new Set(Object.keys(e).filter(o=>e[o]===!1)),r=new Set(Object.keys(t).filter(o=>t[o]===!1));if(n.size!==r.size)return!1;let i=!0;return n.forEach(o=>{r.has(o)||(i=!1)}),i},D9n=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,k9n=["children"],L9n=Uf({from:{opacity:0},to:{opacity:1}}),_9n=Uf({"from, to":{"--scrollable":'" "'}}),N9n=Go("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: ${_9n};
  animation-timeline: --scroll-timeline;
  animation-fill-mode: none;
  box-sizing: border-box;
  overflow: auto;
  scrollbar-width: thin;
  scroll-timeline: --scroll-timeline block;

  &::before,
  &::after {
    content: '';
    flex-shrink: 0;
    display: block;
    position: sticky;
    left: 0;
    width: 100%;
    height: 4px;
    animation: ${L9n} linear both;
    animation-timeline: --scroll-timeline;

    // Custom property toggle trick:
    // - Detects if the element is scrollable
    // - https://css-tricks.com/the-css-custom-property-toggle-trick/
    --visibility-scrollable: var(--scrollable) visible;
    --visibility-not-scrollable: hidden;
    visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
  }

  &::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
    animation-range: 0 4px;
  }

  &::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
    animation-direction: reverse;
    animation-range: calc(100% - 4px) 100%;
  }
`,F9n=qr(function(t,n){const{children:r}=t,i=Lt(t,k9n);return f.jsx(N9n,Y({},i,{ref:n,children:r}))}),W9n=e=>{const{classes:t}=e;return Yt({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},lo,t)},g5e=new Intl.Collator;function q9n(e){const t=bi(),n=v.useRef(null),r=Qt(t,gHn),i=Qt(t,Mf),o=kn(),[a,s]=v.useState(""),l=W9n(o),c=Qt(t,Ef),u=Qt(t,Vz),d=Qt(t,Mwe),p=v.useMemo(()=>u?Array.from(d.values()):c,[u,d,c]),{sort:h,searchPredicate:g=D9n,autoFocusSearchField:m=!0,disableShowHideToggle:b=!1,disableResetButton:y=!1,toggleAllMode:M="all",getTogglableColumns:C,searchInputProps:x,searchDebounceMs:w=o.columnFilterDebounceMs}=e,S=v.useMemo(()=>Tw(q=>{s(q)},w??150),[w]),A=v.useMemo(()=>P9n(i,r),[i,r]),z=v.useMemo(()=>{switch(h){case"asc":return[...p].sort((q,$)=>g5e.compare(q.headerName||q.field,$.headerName||$.field));case"desc":return[...p].sort((q,$)=>-g5e.compare(q.headerName||q.field,$.headerName||$.field));default:return p}},[p,h]),O=q=>{const{name:$}=q.target;t.current.setColumnVisibility($,i[$]===!1)},T=v.useMemo(()=>{const q=C?C(z):null,$=q?z.filter(({field:U})=>q.includes(U)):z;return a?$.filter(U=>g(U,a.toLowerCase())):$},[z,a,g,C]),R=v.useCallback(q=>{const $=Mf(t),U=Y({},$),X=C?C(p):null;return(M==="filteredOnly"?T:p).forEach(Q=>{Q.hideable&&(X==null||X.includes(Q.field))&&(q?delete U[Q.field]:U[Q.field]=!1)}),t.current.setColumnVisibilityModel(U)},[t,p,C,M,T]),P=v.useCallback(q=>{S(q.target.value)},[S]),F=v.useMemo(()=>T.filter(q=>q.hideable),[T]),N=v.useMemo(()=>F.every(q=>i[q.field]==null||i[q.field]!==!1),[i,F]),L=v.useMemo(()=>F.every(q=>i[q.field]===!1),[i,F]),W=v.useRef(null);v.useEffect(()=>{m?n.current?.focus():W.current&&typeof W.current.focus=="function"&&W.current.focus()},[m]);let j=!1;const V=q=>j===!1&&q.hideable!==!1?(j=!0,!0):!1,G=v.useCallback(()=>{s(""),n.current&&(n.current.value="",n.current.focus())},[]);return f.jsxs(v.Fragment,{children:[f.jsx(H9n,{className:l.header,ownerState:o,children:f.jsx(V9n,Y({as:o.slots.baseTextField,ownerState:o,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:l.searchInput,onChange:P,size:"small",type:"search",slotProps:{input:{startAdornment:f.jsx(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:f.jsx(o.slots.baseIconButton,Y({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:a?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:G,edge:"end"},o.slotProps?.baseIconButton,{children:f.jsx(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},o.slotProps?.baseTextField,x))}),f.jsx(j9n,{ownerState:o,children:f.jsxs(B9n,{className:l.root,ownerState:o,children:[T.map(q=>f.jsx(U9n,Y({as:o.slots.baseCheckbox,className:l.row,disabled:q.hideable===!1||u,checked:i[q.field]!==!1,onChange:O,name:q.field,inputRef:V(q)?W:void 0,label:q.headerName||q.field,density:"compact",fullWidth:!0},o.slotProps?.baseCheckbox),q.field)),T.length===0&&f.jsx($9n,{ownerState:o,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!b||!y?f.jsxs(G9n,{ownerState:o,className:l.footer,children:[b?f.jsx("span",{}):f.jsx(o.slots.baseCheckbox,Y({disabled:F.length===0||u,checked:N,indeterminate:!N&&!L,onChange:()=>R(!N),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},o.slotProps?.baseCheckbox)),y?null:f.jsx(o.slots.baseButton,Y({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:A||u},o.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const B9n=rt("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:_n.spacing(.5,1.5)}),j9n=rt(F9n,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),H9n=rt("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:_n.spacing(1.5,2),borderBottom:`1px solid ${_n.colors.border.base}`}),V9n=rt(Jb,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${vd.input}::-webkit-search-decoration,
      & .${vd.input}::-webkit-search-cancel-button,
      & .${vd.input}::-webkit-search-results-button,
      & .${vd.input}::-webkit-search-results-decoration`]:{display:"none"}}),G9n=rt("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:_n.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${_n.colors.border.base}`}),$9n=rt("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:_n.spacing(1,0),alignSelf:"center",font:_n.typography.font.body}),U9n=rt(Jb,{name:"MuiDataGrid",slot:"ColumnsManagementRow"})({}),X9n=qr(function(t,n){const{children:r,slotProps:i={}}=t,o=i.button||{},a=i.tooltip||{},s=bi(),l=kn(),c=Vi(),u=Vi(),[d,p]=v.useState(!1),h=v.useRef(null),g=Pi(n,h),m=y=>{p(M=>!M),o.onClick?.(y)},b=()=>p(!1);return r==null?null:f.jsxs(v.Fragment,{children:[f.jsx(l.slots.baseTooltip,Y({title:s.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},l.slotProps?.baseTooltip,a,{children:f.jsx(l.slots.baseButton,Y({size:"small",startIcon:f.jsx(l.slots.exportIcon,{}),"aria-expanded":d,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?u:void 0,id:c},l.slotProps?.baseButton,o,{onClick:m,ref:g,children:s.current.getLocaleText("toolbarExport")}))})),f.jsx(kZ,{open:d,target:h.current,onClose:b,position:"bottom-end",children:f.jsx(l.slots.baseMenuList,{id:u,className:Te.menuList,"aria-labelledby":c,autoFocusItem:d,children:v.Children.map(r,y=>v.isValidElement(y)?v.cloneElement(y,{hideMenu:b}):y)})})]})}),Y9n=["hideMenu","options"],K9n=["hideMenu","options"],Q9n=["csvOptions","printOptions","excelOptions"];function Z9n(e){const t=bi(),n=kn(),{hideMenu:r,options:i}=e,o=Lt(e,Y9n);return f.jsx(n.slots.baseMenuItem,Y({onClick:()=>{t.current.exportDataAsCsv(i),r?.()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function J9n(e){const t=bi(),n=kn(),{hideMenu:r,options:i}=e,o=Lt(e,K9n);return f.jsx(n.slots.baseMenuItem,Y({onClick:()=>{t.current.exportDataAsPrint(i),r?.()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}qr(function(t,n){const r=t,{csvOptions:i={},printOptions:o={},excelOptions:a}=r,s=Lt(r,Q9n),c=bi().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:i,printOptions:o}).sort((u,d)=>u.componentName>d.componentName?1:-1);return c.length===0?null:f.jsx(X9n,Y({},s,{ref:n,children:c.map((u,d)=>v.cloneElement(u.component,{key:d}))}))});function pm(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o+=1)if(!pm(e[o],t[o]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const i=Array.from(e.entries());for(let o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;for(let o=0;o<i.length;o+=1){const a=i[o];if(!pm(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const i=Array.from(e.entries());for(let o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o+=1)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let i=0;i<r;i+=1)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=0;i<r;i+=1){const o=n[i];if(!pm(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}const hht=v.createContext(void 0);function Owe(){const e=v.useContext(hht);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const eUn=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],tUn=e=>e.split(" ").filter(t=>t!==""),nUn=e=>e.join(" ");function rUn(e){const t=kn(),{render:n,className:r,parser:i=tUn,formatter:o=nUn,debounceMs:a=t.filterDebounceMs,defaultExpanded:s,expanded:l,onExpandedChange:c}=e,u=Lt(e,eUn),d=bi(),p=v.useRef(null),h=v.useRef(null),g=Qt(d,Cpt),[m,b]=v.useState(o(g??[])),[y,M]=v.useState(s??m.length>0),C=l??y,x=v.useMemo(()=>({value:m,expanded:C}),[m,C]),w=typeof r=="function"?r(x):r,S=v.useRef(null),A=Vi(),z=v.useCallback(j=>{c&&c(j),l===void 0&&M(j)},[c,l]),O=v.useRef(g);v.useEffect(()=>{pm(O.current,g)||(O.current=g,b(j=>pm(i(j),g)?j:o(g??[])))},[g,o,i]);const T=v.useRef(!0),R=v.useRef(C);v.useEffect(()=>{if(T.current){T.current=!1;return}R.current!==C&&(C?requestAnimationFrame(()=>{p.current?.focus({preventScroll:!0})}):h.current?.focus({preventScroll:!0}),R.current=C)},[C]);const P=v.useMemo(()=>Tw(j=>{const V=i(j);O.current=V,d.current.setQuickFilterValues(V)},a),[d,a,i]);v.useEffect(()=>P.clear,[P]);const F=v.useCallback(j=>{const V=j.target.value;b(V),P(V)},[P]),N=v.useCallback(()=>{b(""),d.current.setQuickFilterValues([]),p.current?.focus()},[d,p]),L=v.useMemo(()=>({controlRef:p,triggerRef:h,state:x,controlId:A,clearValue:N,onValueChange:F,onExpandedChange:z}),[A,x,F,N,z]);Ro(()=>{S.current&&h.current&&S.current.style.setProperty("--trigger-width",`${h.current?.offsetWidth}px`)},[]);const W=e2("div",n,Y({className:w},u,{ref:S}),x);return f.jsx(hht.Provider,{value:L,children:W})}const iUn=["render","className","slotProps","onKeyDown","onChange"],oUn=qr(function(t,n){const{render:r,className:i,slotProps:o,onKeyDown:a,onChange:s}=t,l=Lt(t,iUn),c=kn(),{state:u,controlId:d,controlRef:p,onValueChange:h,onExpandedChange:g,clearValue:m}=Owe(),b=typeof i=="function"?i(u):i,y=Pi(p,n),M=S=>{S.key==="Escape"&&(u.value===""?g(!1):m()),a?.(S)},C=S=>{u.value===""&&g(!1),o?.htmlInput?.onBlur?.(S)},x=S=>{u.expanded||g(!0),h(S),s?.(S)},w=e2(c.slots.baseTextField,r,Y({},c.slotProps?.baseTextField,{slotProps:Y({htmlInput:Y({role:"searchbox",id:d,tabIndex:u.expanded?void 0:-1},o?.htmlInput,{onBlur:C})},o),value:u.value,className:b},l,{onChange:x,onKeyDown:M,ref:y}),u);return f.jsx(v.Fragment,{children:w})}),aUn=["render","className","onClick"],sUn=qr(function(t,n){const{render:r,className:i,onClick:o}=t,a=Lt(t,aUn),s=kn(),{state:l,clearValue:c}=Owe(),u=typeof i=="function"?i(l):i,d=h=>{c(),o?.(h)},p=e2(s.slots.baseIconButton,r,Y({},s.slotProps?.baseIconButton,{className:u,tabIndex:-1},a,{onClick:d,ref:n}),l);return f.jsx(v.Fragment,{children:p})}),lUn=["render","className","onClick"],cUn=qr(function(t,n){const{render:r,className:i,onClick:o}=t,a=Lt(t,lUn),s=kn(),{state:l,controlId:c,onExpandedChange:u,triggerRef:d}=Owe(),p=typeof i=="function"?i(l):i,h=Pi(d,n),g=b=>{u(!l.expanded),o?.(b)},m=e2(s.slots.baseButton,r,Y({},s.slotProps?.baseButton,{className:p,"aria-controls":c,"aria-expanded":l.expanded},a,{onClick:g,ref:h}),l);return f.jsx(v.Fragment,{children:m})}),uUn=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],dUn=["ref","slotProps"],pUn=e=>{const{classes:t}=e;return Yt({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},lo,t)},hUn=Go("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),fUn=Go(I7,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:_n.transition(["opacity"])})),gUn=Go(e=>{throw new Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:_n.transition(["width","opacity"])}));function mUn(e){const t=bi(),n=kn(),r={classes:n.classes,expanded:!1},i=pUn(r),{quickFilterParser:o,quickFilterFormatter:a,debounceMs:s,className:l,slotProps:c}=e,u=Lt(e,uUn);return f.jsx(rUn,{parser:o,formatter:a,debounceMs:s,render:(d,p)=>{const h=Y({},r,{expanded:p.expanded});return f.jsxs(hUn,Y({},d,{className:_o(i.root,l),children:[f.jsx(cUn,{render:g=>f.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:f.jsx(fUn,Y({className:i.trigger},g,{ownerState:h,color:"default","aria-disabled":p.expanded,children:f.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),f.jsx(oUn,{render:g=>{let{ref:m,slotProps:b}=g,y=Lt(g,dUn);return f.jsx(gUn,Y({as:n.slots.baseTextField,className:i.control,ownerState:h,inputRef:m,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:Y({input:Y({startAdornment:f.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:y.value?f.jsx(sUn,{render:f.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:f.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},b?.input)},b)},n.slotProps?.baseTextField,y,c?.root,u))}})]}))}})}const vUn=["render","className","onClick","onPointerUp"],bUn=qr(function(t,n){const{render:r,className:i,onClick:o,onPointerUp:a}=t,s=Lt(t,vUn),l=kn(),c=Vi(),u=Vi(),d=bi(),p=Qt(d,Gz),h=p.open&&p.openedPanelValue===o1.filters,m=Qt(d,gwe).length,b={open:h,filterCount:m},y=typeof i=="function"?i(b):i,{filterPanelTriggerRef:M}=Swe(),C=Pi(n,M),x=A=>{h?d.current.hidePreferences():d.current.showPreferences(o1.filters,u,c),o?.(A)},w=A=>{h&&A.stopPropagation(),a?.(A)},S=e2(l.slots.baseButton,r,Y({},l.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?u:void 0,onClick:x,onPointerUp:w,className:y},s,{ref:C}),b);return f.jsx(v.Fragment,{children:S})}),yUn=["render","className","onClick","onPointerUp"],MUn=qr(function(t,n){const{render:r,className:i,onClick:o,onPointerUp:a}=t,s=Lt(t,yUn),l=kn(),c=Vi(),u=Vi(),d=bi(),p=Qt(d,Gz),h=p.open&&p.openedPanelValue===o1.columns,g={open:h},m=typeof i=="function"?i(g):i,{columnsPanelTriggerRef:b}=Swe(),y=Pi(n,b),M=w=>{h?d.current.hidePreferences():d.current.showPreferences(o1.columns,u,c),o?.(w)},C=w=>{h&&w.stopPropagation(),a?.(w)},x=e2(l.slots.baseButton,r,Y({},l.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?u:void 0,className:m},s,{onPointerUp:C,onClick:M,ref:y}),g);return f.jsx(v.Fragment,{children:x})}),CUn=["render","options","onClick"],xUn=qr(function(t,n){const{render:r,options:i,onClick:o}=t,a=Lt(t,CUn),s=kn(),l=bi(),c=d=>{l.current.exportDataAsCsv(i),o?.(d)},u=e2(s.slots.baseButton,r,Y({},s.slotProps?.baseButton,{onClick:c},a,{ref:n}));return f.jsx(v.Fragment,{children:u})}),wUn=["render","options","onClick"],SUn=qr(function(t,n){const{render:r,options:i,onClick:o}=t,a=Lt(t,wUn),s=kn(),l=bi(),c=d=>{l.current.exportDataAsPrint(i),o?.(d)},u=e2(s.slots.baseButton,r,Y({},s.slotProps?.baseButton,{onClick:c},a,{ref:n}));return f.jsx(v.Fragment,{children:u})}),AUn=["className"],OUn=["className"],zUn=["showQuickFilter","quickFilterProps","csvOptions","printOptions","additionalItems","additionalExportMenuItems"],fht=e=>{const{classes:t}=e;return Yt({divider:["toolbarDivider"],label:["toolbarLabel"]},lo,t)},TUn=Go(Jb,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:_n.spacing(0,.5)}),EUn=Go("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:_n.typography.font.large,fontWeight:_n.typography.fontWeight.medium,margin:_n.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function m5e(e){const t=Lt(e,AUn),n=kn(),r=fht(n);return f.jsx(TUn,Y({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function RUn(e){const t=Lt(e,OUn),n=kn(),r=fht(n);return f.jsx(EUn,Y({className:r.label},t))}function IUn(e){const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:i,additionalItems:o,additionalExportMenuItems:a}=e,s=Lt(e,zUn),l=bi(),c=kn(),[u,d]=v.useState(!1),p=v.useRef(null),h=Vi(),g=Vi(),m=!r?.disableToolbarButton||!i?.disableToolbarButton||a,b=()=>d(!1);return f.jsxs(K7n,Y({},s,{children:[c.label&&f.jsx(RUn,{children:c.label}),!c.disableColumnSelector&&f.jsx(c.slots.baseTooltip,{title:l.current.getLocaleText("toolbarColumns"),children:f.jsx(MUn,{render:f.jsx(I7,{}),children:f.jsx(c.slots.columnSelectorIcon,{fontSize:"small"})})}),!c.disableColumnFilter&&f.jsx(c.slots.baseTooltip,{title:l.current.getLocaleText("toolbarFilters"),children:f.jsx(bUn,{render:(y,M)=>f.jsx(I7,Y({},y,{color:M.filterCount>0?"primary":"default",children:f.jsx(c.slots.baseBadge,{badgeContent:M.filterCount,color:"primary",variant:"dot",children:f.jsx(c.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),o,m&&(!c.disableColumnFilter||!c.disableColumnSelector)&&f.jsx(m5e,{}),m&&f.jsxs(v.Fragment,{children:[f.jsx(c.slots.baseTooltip,{title:l.current.getLocaleText("toolbarExport"),disableInteractive:u,children:f.jsx(I7,{ref:p,id:g,"aria-controls":h,"aria-haspopup":"true","aria-expanded":u?"true":void 0,onClick:()=>d(!u),children:f.jsx(c.slots.exportIcon,{fontSize:"small"})})}),f.jsx(kZ,{target:p.current,open:u,onClose:b,position:"bottom-end",children:f.jsxs(c.slots.baseMenuList,Y({id:h,"aria-labelledby":g,autoFocusItem:!0},c.slotProps?.baseMenuList,{children:[!i?.disableToolbarButton&&f.jsx(SUn,{render:f.jsx(c.slots.baseMenuItem,Y({},c.slotProps?.baseMenuItem)),options:i,onClick:b,children:l.current.getLocaleText("toolbarExportPrint")}),!r?.disableToolbarButton&&f.jsx(xUn,{render:f.jsx(c.slots.baseMenuItem,Y({},c.slotProps?.baseMenuItem)),options:r,onClick:b,children:l.current.getLocaleText("toolbarExportCSV")}),a?.(b)]}))})]}),t&&f.jsxs(v.Fragment,{children:[f.jsx(m5e,{}),f.jsx(mUn,Y({},n))]})]}))}const PUn=["className","selectedRowCount"],DUn=e=>{const{classes:t}=e;return Yt({root:["selectedRowCount"]},lo,t)},kUn=Go("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:_n.spacing(0,2),visibility:"hidden",width:0,height:0,[_n.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),LUn=qr(function(t,n){const{className:r,selectedRowCount:i}=t,o=Lt(t,PUn),a=bi(),s=kn(),l=DUn(s),c=a.current.getLocaleText("footerRowSelected")(i);return f.jsx(kUn,Y({className:_o(l.root,r),ownerState:s},o,{ref:n,children:c}))}),_Un=qr(function(t,n){const r=bi(),i=kn(),o=Qt(r,Tjn),a=Qt(r,FZ),s=Qt(r,fwe),l=!i.hideFooterSelectedRowCount&&a>0?f.jsx(LUn,{selectedRowCount:a}):f.jsx("div",{}),c=!i.hideFooterRowCount&&!i.pagination?f.jsx(i.slots.footerRowCount,Y({},i.slotProps?.footerRowCount,{rowCount:o,visibleRowCount:s})):null,u=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&f.jsx(i.slots.pagination,Y({},i.slotProps?.pagination));return f.jsxs(q7n,Y({},t,{ref:n,children:[l,c,u]}))}),pF=(e,t,n,r,i,o)=>{let a;switch(e){case fo.LEFT:a=r[n];break;case fo.RIGHT:a=i-r[n]-t+o;break;default:a=void 0;break}return Number.isNaN(a)&&(a=void 0),a},X9=(e,t,n,r,i,o)=>{const a=t===n-1;return o?.startsWith("border")&&e===fo.LEFT&&a?!0:r?e===fo.LEFT?!0:e===fo.RIGHT?!a:!a||i:!1},Y9=(e,t,n,r)=>r?.startsWith("border")?e===fo.RIGHT&&t===0:n&&e===fo.RIGHT&&t===0,NUn=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],FUn=Go("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),WUn=e=>{const{classes:t}=e;return Yt({root:["skeletonLoadingOverlay"]},lo,t)},v5e=e=>parseInt(e.getAttribute("data-colindex"),10),qUn=qr(function(t,n){const r=kn(),{slots:i}=r,o=ts(),a=WUn({classes:r.classes}),s=v.useRef(null),l=Pi(s,n),c=bi(),u=Qt(c,Ks),d=Qt(c,twe),p=Qt(c,F3),h=v.useMemo(()=>p.filter(z=>z<=d).length,[d,p]),{skeletonRowsCount:g,visibleColumns:m,showFirstRowBorder:b}=t,y=Lt(t,NUn),M=Qt(c,xl),C=v.useMemo(()=>M.slice(0,h),[M,h]),x=Qt(c,PZ),w=v.useCallback(z=>{if(x.left.findIndex(O=>O.field===z)!==-1)return fo.LEFT;if(x.right.findIndex(O=>O.field===z)!==-1)return fo.RIGHT},[x.left,x.right]),S=v.useMemo(()=>{const z=[];for(let O=0;O<g;O+=1){const T=[];for(let R=0;R<C.length;R+=1){const P=C[R],F=w(P.field),N=F===fo.LEFT,L=F===fo.RIGHT,W=nht(F,o),j=W?x[W].length:C.length-x.left.length-x.right.length,V=W?x[W].findIndex(oe=>oe.field===P.field):R-x.left.length,G=u.hasScrollY?u.scrollbarSize:0,q=HZ({},o,F,pF(F,P.computedWidth,R,p,u.columnsTotalWidth,G)),$=u.columnsTotalWidth<u.viewportOuterSize.width,U=X9(F,V,j,r.showCellVerticalBorder,$,r.pinnedColumnsSectionSeparator),X=Y9(F,V,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator),Q=R===C.length-1,re=L&&V===0,ee=re&&$,se=Q&&!re&&$,pe=u.viewportOuterSize.width-u.columnsTotalWidth,te=Math.max(0,pe),ce=f.jsx(i.skeletonCell,{width:te,empty:!0},`skeleton-filler-column-${O}`);ee&&T.push(ce),T.push(f.jsx(i.skeletonCell,{field:P.field,type:P.type,align:P.align,width:"var(--width)",height:u.rowHeight,"data-colindex":R,empty:m&&!m.has(P.field),className:_o(N&&Te["cell--pinnedLeft"],L&&Te["cell--pinnedRight"],U&&Te["cell--withRightBorder"],X&&Te["cell--withLeftBorder"]),style:Y({"--width":`${P.computedWidth}px`},q)},`skeleton-column-${O}-${P.field}`)),se&&T.push(ce)}z.push(f.jsx("div",{className:_o(Te.row,Te.rowSkeleton,O===0&&!b&&Te["row--firstVisible"]),children:T},`skeleton-row-${O}`))}return z},[g,C,w,o,x,u.hasScrollY,u.scrollbarSize,u.columnsTotalWidth,u.viewportOuterSize.width,u.rowHeight,p,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator,i,m,b]);return Yn(c,"columnResize",z=>{const{colDef:O,width:T}=z,R=s.current?.querySelectorAll(`[data-field="${wM(O.field)}"]`);if(!R)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const P=C.findIndex(V=>V.field===O.field),F=w(O.field),N=F===fo.LEFT,L=F===fo.RIGHT,W=getComputedStyle(R[0]).getPropertyValue("--width"),j=parseInt(W,10)-T;R&&R.forEach(V=>{V.style.setProperty("--width",`${T}px`)}),N&&s.current?.querySelectorAll(`.${Te["cell--pinnedLeft"]}`)?.forEach(G=>{v5e(G)>P&&(G.style.left=`${parseInt(getComputedStyle(G).left,10)-j}px`)}),L&&s.current?.querySelectorAll(`.${Te["cell--pinnedRight"]}`)?.forEach(G=>{v5e(G)<P&&(G.style.right=`${parseInt(getComputedStyle(G).right,10)+j}px`)})}),f.jsx(FUn,Y({className:a.root},y,{ref:l,children:S}))}),BUn=qr(function(t,n){const r=bi(),i=Qt(r,Ks),o=i?.viewportInnerSize.height??0,a=Math.ceil(o/i.rowHeight);return f.jsx(qUn,Y({},t,{skeletonRowsCount:a,ref:n}))}),jUn=["variant","noRowsVariant","style"],HUn={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>BUn,style:{display:"block"}}},VUn=qr(function(t,n){const{variant:r="linear-progress",noRowsVariant:i="skeleton",style:o}=t,a=Lt(t,jUn),s=bi(),l=kn(),c=Qt(s,GD),u=HUn[c===0?i:r],d=u.component(l);return f.jsx(VZ,Y({style:Y({},u.style,o)},a,{ref:n,children:f.jsx(d,{})}))}),GUn=qr(function(t,n){const i=bi().current.getLocaleText("noRowsLabel");return f.jsx(VZ,Y({},t,{ref:n,children:i}))}),$Un=qr(function(t,n){const r=kn(),i=bi(),o=Qt(i,gb),a=()=>{i.current.showPreferences(o1.columns)},s=!r.disableColumnSelector&&o.length>0;return f.jsxs(VZ,Y({},t,{ref:n,children:[i.current.getLocaleText("noColumnsOverlayLabel"),s&&f.jsx(r.slots.baseButton,Y({size:"small"},r.slotProps?.baseButton,{onClick:a,children:i.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),UUn=rt(Jb)({maxHeight:"calc(100% + 1px)",flexGrow:1});function XUn(){const e=bi(),t=kn(),n=Qt(e,Hu),r=Qt(e,qR),i=Qt(e,Dpt),{paginationMode:o,loading:a}=t,s=r===-1&&o==="server"&&a,l=v.useMemo(()=>Math.max(0,i-1),[i]),c=v.useMemo(()=>r===-1||n.page<=l?n.page:l,[l,n.page,r]),u=v.useCallback(g=>{e.current.setPageSize(g)},[e]),d=v.useCallback((g,m)=>{e.current.setPage(m)},[e]),h=(g=>{for(let m=0;m<t.pageSizeOptions.length;m+=1){const b=t.pageSizeOptions[m];if(typeof b=="number"){if(b===g)return!0}else if(b.value===g)return!0}return!1})(n.pageSize)?t.pageSizeOptions:[];return f.jsx(UUn,Y({as:t.slots.basePagination,count:r,page:c,rowsPerPageOptions:h,rowsPerPage:n.pageSize,onPageChange:d,onRowsPerPageChange:u,disabled:s},t.slotProps?.basePagination))}const YUn=["className","rowCount","visibleRowCount"],KUn=e=>{const{classes:t}=e;return Yt({root:["rowCount"]},lo,t)},QUn=Go("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:_n.spacing(0,2)}),ZUn=qr(function(t,n){const{className:r,rowCount:i,visibleRowCount:o}=t,a=Lt(t,YUn),s=bi(),l=kn(),c=KUn(l);if(i===0)return null;const u=o<i?s.current.getLocaleText("footerTotalVisibleRows")(o,i):i.toLocaleString();return f.jsxs(QUn,Y({className:_o(c.root,r),ownerState:l},a,{ref:n,children:[s.current.getLocaleText("footerTotalRows")," ",u]}))});function JUn(e,t){return Yt(t,lo,e)}const zI=(e,t)=>zB(e),ght=(e,t)=>Qt(e,zB),eXn=ks(e=>e.rowReorder),tXn=rr(eXn,e=>e?.isActive??!1),nXn=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],rXn=rr(bu,(e,{rowReordering:t,treeData:n})=>!t||n?!1:!!_Z(e)),iXn=qr(function(t,n){const{selected:r,rowId:i,row:o,index:a,style:s,rowHeight:l,className:c,visibleColumns:u,pinnedColumns:d,offsetLeft:p,columnsTotalWidth:h,firstColumnIndex:g,lastColumnIndex:m,focusedColumnIndex:b,isFirstVisible:y,isLastVisible:M,isNotVisible:C,showBottomBorder:x,scrollbarWidth:w,gridHasFiller:S,onClick:A,onDoubleClick:z,onMouseEnter:O,onMouseLeave:T,onMouseOut:R,onMouseOver:P}=t,F=Lt(t,nXn),N=Sp(),L=DZ(),W=v.useRef(null),j=kn(),V=ght(N),G=Qt(N,Qh),q=Qt(N,F3),$=j.rowReordering,U=j.treeData,X=Qt(N,rXn,{rowReordering:$,treeData:U}),Q=Qt(N,tXn),re=Pi(W,n),ee=fb(N,i),se=Qt(N,Xpt,{rowId:i,editMode:j.editMode}),pe=j.editMode===Lb.Row,te=b!==void 0,ce=te&&b>=d.left.length&&b<g,oe=te&&b<u.length-d.right.length&&b>=m,ae=JUn(j.classes,{root:["row",r&&"selected",pe&&"row--editable",se&&"row--editing",y&&"row--firstVisible",M&&"row--lastVisible",x&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),ne=L.hooks.useGridRowAriaAttributes();v.useLayoutEffect(()=>{if(V.range){const Le=N.current.getRowIndexRelativeToVisibleRows(i);Le!==void 0&&N.current.unstable_setLastMeasuredRowIndex(Le)}if(W.current&&l==="auto")return N.current.observeRowHeight(W.current,i)},[N,V.range,l,i]);const le=v.useCallback((Le,we)=>ve=>{RB(ve)||N.current.getRow(i)&&(N.current.publishEvent(Le,N.current.getRowParams(i),ve),we&&we(ve))},[N,i]),he=v.useCallback(Le=>{const ve=U9(Le.target,Te.cell)?.getAttribute("data-field");ve&&(ve===YD.field||ve===uwe||ve==="__reorder__"||N.current.getCellMode(i,ve)===va.Edit||N.current.getColumn(ve)?.type===LZ)||le("rowClick",A)(Le)},[N,A,le,i]),{slots:be,slotProps:me,disableColumnReorder:Me}=j,Oe=Qt(N,()=>Y({},N.current.getRowHeightEntry(i)),void 0,Q1t),de=v.useMemo(()=>{if(C)return{opacity:0,width:0,height:0};const Le=Y({},s,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(Oe.spacingTop){const we=j.rowSpacingType==="border"?"borderTopWidth":"marginTop";Le[we]=Oe.spacingTop}if(Oe.spacingBottom){const we=j.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ve=Le[we];typeof ve!="number"&&(ve=parseInt(ve||"0",10)),ve+=Oe.spacingBottom,Le[we]=ve}return Le},[C,l,s,Oe,j.rowSpacingType]);if(!ee)return null;const ie=N.current.unstable_applyPipeProcessors("rowClassName",[],i),ue=ne(ee,a);if(typeof j.getRowClassName=="function"){const Le=a-(V.range?.firstRowIndex||0),we=Y({},N.current.getRowParams(i),{isFirstVisible:Le===0,isLastVisible:Le===V.rows.length-1,indexRelativeToCurrentPage:Le});ie.push(j.getRowClassName(we))}const Ae=(Le,we,ve,De,ze=fo.NONE)=>{const Ve=N.current.unstable_getCellColSpanInfo(i,ve);if(Ve?.spannedByColSpan)return null;const Ke=Ve?.cellProps.width??Le.computedWidth,et=Ve?.cellProps.colSpan??1,it=pF(ze,Le.computedWidth,ve,q,h,w);if(ee.type==="skeletonRow")return f.jsx(be.skeletonCell,{type:Le.type,width:Ke,height:l,field:Le.field,align:Le.align},Le.field);const Ft=Le.field==="__reorder__",Dt=!(Me||Le.disableReorder),Qn=X&&!G.length,ir=!(Dt||Ft&&Qn||Q),Hn=ze===fo.VIRTUAL,Zn=Y9(ze,we,j.showCellVerticalBorder,j.pinnedColumnsSectionSeparator),Br=X9(ze,we,De,j.showCellVerticalBorder,S,j.pinnedColumnsSectionSeparator);return f.jsx(be.cell,Y({column:Le,width:Ke,rowId:i,align:Le.align||"left",colIndex:ve,colSpan:et,disableDragEvents:ir,isNotVisible:Hn,pinnedOffset:it,pinnedPosition:ze,showLeftBorder:Zn,showRightBorder:Br,row:o,rowNode:ee},me?.cell),Le.field)},Ce=d.left.map((Le,we)=>Ae(Le,we,we,d.left.length,fo.LEFT)),Ee=d.right.map((Le,we)=>{const ve=u.length-d.right.length+we;return Ae(Le,we,ve,d.right.length,fo.RIGHT)}),Ge=u.length-d.left.length-d.right.length,_e=[];ce&&_e.push(Ae(u[b],b-d.left.length,b,Ge,fo.VIRTUAL));for(let Le=g;Le<m;Le+=1){const we=u[Le],ve=Le-d.left.length;we&&_e.push(Ae(we,ve,Le,Ge))}oe&&_e.push(Ae(u[b],b-d.left.length,b,Ge,fo.VIRTUAL));const Ie=o?{onClick:he,onDoubleClick:le("rowDoubleClick",z),onMouseEnter:le("rowMouseEnter",O),onMouseLeave:le("rowMouseLeave",T),onMouseOut:le("rowMouseOut",R),onMouseOver:le("rowMouseOver",P)}:null;return f.jsxs("div",Y({"data-id":i,"data-rowindex":a,role:"row",className:_o(...ie,ae.root,c),style:de},ue,Ie,F,{ref:re,children:[Ce,f.jsx("div",{role:"presentation",className:Te.cellOffsetLeft,style:{width:p}}),_e,f.jsx("div",{role:"presentation",className:_o(Te.cell,Te.cellEmpty)}),Ee]}))}),oXn=CM(iXn),aXn=()=>{const e=Sp(),t=kn(),n=Qt(e,xl),r=Qt(e,hwe),i=Qt(e,TB),o=Qt(e,V1t),a=t["aria-label"],s=t["aria-labelledby"];return{role:"grid","aria-label":!a&&!s&&t.label?t.label:a,"aria-labelledby":s,"aria-colcount":n.length,"aria-rowcount":i+1+o+r,"aria-multiselectable":mwe(t)}},sXn=()=>{const e=Sp(),t=Qt(e,TB);return v.useCallback((n,r)=>{const i={},o=r+t+2;return i["aria-rowindex"]=o,n&&e.current.isRowSelectable(n.id)&&(i["aria-selected"]=e.current.isRowSelected(n.id)),i},[e,t])},lXn=e=>({setRowIndex:v.useCallback((n,r)=>{const i=fb(e,n);if(!i)throw new Error(`MUI X: No row with id #${n} found.`);if(i.parent!==Dl)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(i.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(o=>{const a=Qc(e)[Dl],s=a.children,l=s.findIndex(u=>u===n);if(l===-1||l===r)return o;const c=[...s];return c.splice(r,0,c.splice(l,1)[0]),Y({},o,{rows:Y({},o.rows,{tree:Y({},o.rows.tree,{[Dl]:Y({},a,{children:c})})})})}),e.current.publishEvent("rowsSet")},[e])}),cXn=e=>{const t=v.useCallback((i,o)=>{const a=e.current.getColumn(o),s=e.current.getRow(i);if(!s)throw new Error(`No row with id #${i} found`);return!a||!a.valueGetter?s[o]:a.valueGetter(s[a.field],s,a,e)},[e]),n=v.useCallback((i,o)=>Ljn(i,o,e),[e]),r=v.useCallback((i,o)=>{const a=n(i,o);return!o||!o.valueFormatter?a:o.valueFormatter(a,i,o,e)},[e,n]);return{getCellValue:t,getRowValue:n,getRowFormattedValue:r}},uXn=()=>v.useCallback(e=>!OP(e.rowNode),[]);function dXn({privateApiRef:e,configuration:t,props:n,children:r}){const i=v.useRef(e.current.getPublicApi());return f.jsx(mpt.Provider,{value:t,children:f.jsx(R1t.Provider,{value:n,children:f.jsx(Hpt.Provider,{value:e,children:f.jsx(I1t.Provider,{value:i,children:f.jsx(R7n,{children:f.jsx(RHn,{children:r})})})})})})}const pXn=e=>{const t=v.useRef(null),n=v.useRef(null),r=v.useRef(null),i=v.useRef(null),o=v.useRef(null),a=v.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:i,virtualScrollbarHorizontalRef:o,columnHeadersContainerRef:a})},hXn=e=>{const t=ts();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=v.useRef(!0);v.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>Y({},r,{isRtl:t}))},[e,t])},fXn=uHn()&&window.localStorage.getItem("DEBUG")!=null,lN=()=>{},gXn={debug:lN,info:lN,warn:lN,error:lN},b5e=["debug","info","warn","error"];function y5e(e,t,n=console){const r=b5e.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return b5e.reduce((o,a,s)=>(s>=r?o[a]=(...l)=>{const[c,...u]=l;n[a](`MUI X: ${e} - ${c}`,...u)}:o[a]=lN,o),{})}const mXn=(e,t)=>{const n=v.useCallback(r=>fXn?y5e(r,"debug",t.logger):t.logLevel?y5e(r,t.logLevel.toString(),t.logger):gXn,[t.logLevel,t.logger]);Gi(e,{getLogger:n},"private")},vXn=(e,t)=>{const n=v.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},bXn=e=>{const t=v.useRef({}),n=v.useRef(!1),r=v.useCallback(d=>{n.current||!d||(n.current=!0,Object.values(d.appliers).forEach(p=>{p()}),n.current=!1)},[]),i=v.useCallback((d,p,h)=>{t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1});const g=t.current[d];return g.processors.get(p)!==h&&(g.processors.set(p,h),g.processorsAsArray=Array.from(t.current[d].processors.values()).filter(b=>b!==null),g.processorsUpdated=!0),()=>{t.current[d].processors.set(p,null),t.current[d].processorsAsArray=Array.from(t.current[d].processors.values()).filter(b=>b!==null)}},[]),o=v.useCallback((d,p,h)=>(t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1}),t.current[d].appliers[p]=h,()=>{const g=t.current[d].appliers,m=Lt(g,[p].map(zz));t.current[d].appliers=m}),[]),a=v.useCallback(d=>{r(t.current[d])},[r]),s=v.useCallback(()=>{for(const d in t.current){if(!Object.prototype.hasOwnProperty.call(t.current,d))continue;const p=t.current[d];p.processorsUpdated&&(p.processorsUpdated=!1,r(p))}},[r]),l=v.useCallback((...d)=>{const[p,h,g]=d;if(!t.current[p])return h;const m=t.current[p].processorsAsArray;let b=h;for(let y=0;y<m.length;y+=1)b=m[y](b,g);return b},[]),c={registerPipeProcessor:i,registerPipeApplier:o,requestPipeProcessorsApplication:a,runAppliersForPendingProcessors:s},u={unstable_applyPipeProcessors:l};Gi(e,c,"private"),Gi(e,u,"public")},rl=(e,t,n,r=!0)=>{const i=v.useRef(null),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),a=v.useCallback(()=>{i.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);KD(()=>{r&&a()});const s=v.useRef(!0);v.useEffect(()=>(s.current?s.current=!1:r&&a(),()=>{i.current&&(i.current(),i.current=null)}),[a,r])},zwe=(e,t,n)=>{const r=v.useRef(null),i=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),o=v.useCallback(()=>{r.current=e.current.registerPipeApplier(t,i.current,n)},[e,n,t]);KD(()=>{o()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:o(),()=>{r.current&&(r.current(),r.current=null)}),[o])};let gy=(function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e})({});const eq=(e,t,n,r)=>{const i=v.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);KD(()=>{i()});const o=v.useRef(!0);v.useEffect(()=>{o.current?o.current=!1:i()},[i])},$z="none",M5e={dataSourceRowsUpdate:gy.DataSource,rowTreeCreation:gy.RowTree,filtering:gy.RowTree,sorting:gy.RowTree,visibleRowsLookupCreation:gy.RowTree},yXn=e=>{const t=v.useRef(new Map),n=v.useRef({}),r=v.useCallback((l,c,u)=>{const d=()=>{const g=n.current[c],m=Lt(g,[l].map(zz));n.current[c]=m};n.current[c]||(n.current[c]={});const p=n.current[c],h=p[l];return p[l]=u,!h||h===u||l===e.current.getActiveStrategy(M5e[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),i=v.useCallback((l,c)=>{const u=e.current.getActiveStrategy(M5e[l]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[l];if(!d||!d[u])throw new Error(`No processor found for processor "${l}" on strategy "${u}"`);const p=d[u];return p(c)},[e]),o=v.useCallback(l=>Array.from(t.current.entries()).find(([,d])=>d.group!==l?!1:d.isAvailable())?.[0]??$z,[]),a=v.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Gi(e,{registerStrategyProcessor:r,applyStrategyProcessor:i,getActiveStrategy:o,setStrategyAvailability:a},"private")},MXn=e=>{const t=v.useRef({}),n=v.useCallback(s=>{t.current[s.stateId]=s},[]),r=v.useCallback((s,l)=>{let c;if(cHn(s)?c=s(e.current.state):c=s,e.current.state===c)return!1;const u={current:{state:c}};let d=!1;const p=[];if(Object.keys(t.current).forEach(h=>{const g=t.current[h],m=g.stateSelector(e),b=g.stateSelector(u);b!==m&&(p.push({stateId:g.stateId,hasPropChanged:b!==g.propModel}),g.propModel!==void 0&&b!==g.propModel&&(d=!0))}),p.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${p[0].stateId}, therefore, you're not allowed to update ${p.map(h=>h.stateId).join(", ")} in the same transaction.`);if(d||(e.current.state=c,e.current.publishEvent("stateChange",c),e.current.store.update(c)),p.length===1){const{stateId:h,hasPropChanged:g}=p[0],m=t.current[h],b=m.stateSelector(u);m.propOnChange&&g&&m.propOnChange(b,{reason:l,api:e.current}),d||e.current.publishEvent(m.changeEvent,b,{reason:l})}return!d},[e]),i=v.useCallback((s,l,c)=>e.current.setState(u=>Y({},u,{[s]:l(u[s])}),c),[e]),o={setState:r},a={updateControlState:i,registerControlState:n};Gi(e,o,"public"),Gi(e,a,"private")},CXn=(e,t)=>Y({},e,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable}}),xXn=(e,t)=>{v.useEffect(()=>{e.current.setState(n=>Y({},n,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable}}))},[e,t.listView,t.getRowId,t.isCellEditable])},wXn=(e,t)=>{pXn(e),xXn(e,t),hXn(e),mXn(e,t),MXn(e),bXn(e),yXn(e),vXn(e,t),e.current.register("private",{rootProps:t})};function mht(e,t){return Math.round(e*10**t)/10**t}const SXn=rr(G1,tht,zB,xl,(e,t,n,r)=>{if(!e)return!1;const i=n.rowIdToIndexMap.get(e.id),o=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(s=>s.field===e.field);return!(i!==void 0&&o!==-1&&i>=t.firstRowIndex&&i<=t.lastRowIndex)}),AXn=ta(SXn,xl,zB,G1,(e,t,n,r)=>{if(!e)return null;const i=n.rowIdToIndexMap.get(r.id);if(i===void 0)return null;const o=t.findIndex(a=>a.field===r.field);return o===-1?null:Y({},r,{rowIndex:i,columnIndex:o})}),K9={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:"	",columnBufferPx:150,columnFilterDebounceMs:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableRowSelectionExcludeModel:!1,disableVirtualization:!1,editMode:Lb.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1};function OXn(e){return e}const zXn=rr(xl,F3,(e,t)=>{const n=e.length;return n===0?0:mht(t[n-1]+e[n-1].computedWidth,1)}),TXn=()=>Jxe((e,t,n,r,i)=>Y({},e,{headerHeight:t,groupHeaderHeight:n,headerFilterHeight:r,headersTotalHeight:i}),{maxSize:1});function EXn(e,t){const n=ts(),{listView:r}=t,i=Qt(e,xl),o=Qt(e,$D),a=PZ(e),s=Qt(e,OB),l=v.useCallback(U=>s.has(U)&&e.current.isRowSelectable(U),[s,e]),c=ght(e),u=Qt(e,vHn),d=Qt(e,H1t),p=Qt(e,j1t),{autoHeight:h}=t,g=r,m=Qt(e,wB),b=Y1t(t.rowHeight,K9.rowHeight),y=Math.floor(b*m),M=Math.floor(t.columnHeaderHeight*m),C=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*m),x=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*m),w=Qt(e,zXn),S=EB(e,t),A=a.left.reduce((U,X)=>U+X.computedWidth,0),z=a.right.reduce((U,X)=>U+X.computedWidth,0),O=$pt(e,t),T={rowHeight:y,headerHeight:M,columnsTotalWidth:w,leftPinnedWidth:A,rightPinnedWidth:z,topPinnedHeight:S,bottomPinnedHeight:0,scrollbarSize:t.scrollbarSize},R=xp(TXn).current,P=Qt(e,GD),F=Qt(e,XD),N=Math.min(F.enabled?F.paginationModel.pageSize:P,P),{getRowHeight:L,getEstimatedRowHeight:W,getRowSpacing:j}=t,V=Qt(e,AXn),G=t.slots.row,q=t.slotProps?.row,$=DGn({refs:{container:e.current.mainElementRef,scroller:e.current.virtualScrollerRef,scrollbarVertical:e.current.virtualScrollbarVerticalRef,scrollbarHorizontal:e.current.virtualScrollbarHorizontalRef},dimensions:T,virtualization:{isRtl:n,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx},colspan:{enabled:u,getColspan:v.useCallback((U,X)=>{if(typeof X.colSpan=="function"){const Q=e.current.getRow(U),re=e.current.getRowValue(Q,X);return X.colSpan(re,Q,X,e)??0}return X.colSpan??1},[e])},initialState:{scroll:t.initialState?.scroll,rowSpanning:e.current.state.rowSpanning,virtualization:e.current.state.virtualization},rows:c.rows,range:c.range,rowCount:N,columns:i,pinnedRows:o,pinnedColumns:a,autoHeight:h,disableHorizontalScroll:r,disableVerticalScroll:O.overlayType==="noColumnsOverlay"||O.loadingOverlayVariant==="skeleton",minimalContentHeight:X1t,getRowHeight:v.useMemo(()=>{if(L)return U=>L(Y({},U,{densityFactor:m}))},[L,m]),getEstimatedRowHeight:v.useMemo(()=>W?U=>W(Y({},U,{densityFactor:m})):void 0,[W,m]),getRowSpacing:v.useMemo(()=>j?U=>{const X=c.rowIdToIndexMap.get(U.id)??-1,Q={isFirstVisible:X===0,isLastVisible:X===c.rows.length-1,indexRelativeToCurrentPage:X};return j(Y({},U,Q,{indexRelativeToCurrentPage:e.current.getRowIndexRelativeToVisibleRows(U.id)}))}:void 0,[e,j,c.rows,c.rowIdToIndexMap]),applyRowHeight:en((U,X)=>e.current.unstable_applyPipeProcessors("rowHeight",U,X)),virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight,focusedVirtualCell:en(()=>V),resizeThrottleMs:t.resizeThrottleMs,onResize:en(U=>e.current.publishEvent("resize",U)),onWheel:en(U=>{e.current.publishEvent("virtualScrollerWheel",{},U)}),onTouchMove:en(U=>{e.current.publishEvent("virtualScrollerTouchMove",{},U)}),onRenderContextChange:en(U=>{e.current.publishEvent("renderedRowsIntervalChange",U)}),onScrollChange:v.useCallback((U,X)=>{e.current.publishEvent("scrollPositionChange",{top:U.top,left:U.left,renderContext:X})},[e]),scrollReset:g,renderRow:v.useCallback(U=>f.jsx(G,Y({row:U.model,rowId:U.id,index:U.rowIndex,selected:l(U.id),offsetLeft:U.offsetLeft,columnsTotalWidth:w,rowHeight:U.baseRowHeight,pinnedColumns:a,visibleColumns:i,firstColumnIndex:U.firstColumnIndex,lastColumnIndex:U.lastColumnIndex,focusedColumnIndex:U.focusedColumnIndex,isFirstVisible:U.isFirstVisible,isLastVisible:U.isLastVisible,isNotVisible:U.isVirtualFocusRow,showBottomBorder:U.showBottomBorder,scrollbarWidth:d,gridHasFiller:p},q),U.id),[w,p,l,a,G,q,d,i]),renderInfiniteLoadingTrigger:v.useCallback(U=>e.current.getInfiniteLoadingTriggerElement?.({lastRowId:U}),[e])});KD(()=>{e.current.store.state.dimensions=R($.store.state.dimensions,M,C,x,S),e.current.store.state.rowsMeta=$.store.state.rowsMeta,e.current.store.state.virtualization=$.store.state.virtualization}),Lge($.store,$1.selectors.dimensions,(U,X)=>{e.current.setState(Q=>Y({},Q,{dimensions:R(X,M,C,x,S)}))}),Lge($.store,OXn,(U,X)=>{X.rowsMeta!==e.current.state.rowsMeta&&e.current.setState(Q=>Y({},Q,{rowsMeta:X.rowsMeta})),X.virtualization!==e.current.state.virtualization&&e.current.setState(Q=>Y({},Q,{virtualization:X.virtualization}))}),e.current.register("private",{virtualizer:$})}const du=(e,t,n,r)=>{const i=v.useRef(r),o=v.useRef(!1);r!==i.current&&(o.current=!1,i.current=r),o.current||(t.current.state=e(t.current.state,n,t),o.current=!0)};function Wge(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@","	","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
`,"\r",'"'].some(i=>n.includes(i))?`"${r}"`:r}return n}const vht=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let i;if(r){const o=e.colDef.type;o==="number"?i=String(e.value):o==="date"||o==="dateTime"?i=e.value?.toISOString():typeof e.value?.toString=="function"?i=e.value.toString():i=e.value}else i=e.formattedValue;return Wge(i,n)};class qge{rowString="";isEmpty=!0;constructor(t){this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const RXn=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:i})=>{const o=new qge({csvOptions:r});return t.forEach(a=>{const s=n(e,a.field);o.addValue(vht(s,{ignoreValueFormatter:i,csvOptions:r}))}),o.getRowString()};function IXn(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:i,apiRef:o}=e,a=n.reduce((d,p)=>`${d}${RXn({id:p,columns:t,getCellParams:o.current.getCellParams,ignoreValueFormatter:i,csvOptions:r})}\r
`,"").trim();if(!r.includeHeaders)return a;const s=t.filter(d=>d.field!==YD.field),l=[];if(r.includeColumnGroupsHeaders){const d=o.current.getAllGroupDetails();let p=0;const h=s.reduce((g,m)=>{const b=o.current.getColumnGroupPath(m.field);return g[m.field]=b,p=Math.max(p,b.length),g},{});for(let g=0;g<p;g+=1){const m=new qge({csvOptions:r,sanitizeCellValue:Wge});l.push(m),s.forEach(b=>{const y=(h[b.field]||[])[g],M=d[y];m.addValue(M?M.headerName||M.groupId:"")})}}const c=new qge({csvOptions:r,sanitizeCellValue:Wge});return s.forEach(d=>{c.addValue(d.headerName||d.field)}),l.push(c),`${`${l.map(d=>d.getRowString()).join(`\r
`)}\r
`}${a}`.trim()}function C5e(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function PXn(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{C5e(e)}):C5e(e)}function DXn(e){return!!(window.getSelection()?.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const kXn=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n?.clipboardExport:n)||!1,i=t.clipboardCopyCellDelimiter,o=v.useCallback(a=>{if(!zHn(a)||DXn(a.target))return;let s="";if(FZ(e)>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:i,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=G1(e);if(c){const u=e.current.getCellParams(c.id,c.field);s=vht(u,{csvOptions:{delimiter:i,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(PXn(s),e.current.publishEvent("clipboardCopy",s))},[e,r,i]);Vpt(e,()=>e.current.rootElementRef.current,"keydown",o),Ka(e,"clipboardCopy",t.onClipboardCopy)},LXn=e=>Y({},e,{columnMenu:{open:!1}}),_Xn=e=>{const t=Ju(e,"useGridColumnMenu"),n=v.useCallback(a=>{const s=T7(e),l={open:!0,field:a};(l.open!==s.open||l.field!==s.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===a?u:(t.debug("Opening Column Menu"),Y({},u,{columnMenu:{open:!0,field:a}}))),e.current.hidePreferences())},[e,t]),r=v.useCallback(()=>{const a=T7(e);if(a.field){const c=xM(e),u=Mf(e),d=gb(e);let p=a.field;if(c[p]||(p=d[0]),u[p]===!1){const h=d.filter(m=>m===p?!0:u[m]!==!1),g=h.indexOf(p);p=h[g+1]||h[g-1]}e.current.setColumnHeaderFocus(p)}const s={open:!1,field:void 0};(s.open!==a.open||s.field!==a.field)&&e.current.setState(c=>(t.debug("Hiding Column Menu"),Y({},c,{columnMenu:s})))},[e,t]),i=v.useCallback(a=>{t.debug("Toggle Column Menu");const s=T7(e);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Gi(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:i},"public"),Yn(e,"columnResizeStart",r),Yn(e,"virtualScrollerWheel",e.current.hideColumnMenu),Yn(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},NXn=(e,t,n)=>{n.current.caches.columns={lastColumnsProp:t.columns};const r=xR({apiRef:n,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return Y({},e,{columns:r,pinnedColumns:e.pinnedColumns??q9})};function FXn(e,t){const n=Ju(e,"useGridColumns");e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Mf,changeEvent:"columnVisibilityModelChange"});const r=v.useCallback(z=>{n.debug("Updating columns state."),e.current.setState(WXn(z)),e.current.publishEvent("columnsChange",z.orderedFields)},[n,e]),i=v.useCallback(z=>xM(e)[z],[e]),o=v.useCallback(()=>Ef(e),[e]),a=v.useCallback(()=>xl(e),[e]),s=v.useCallback((z,O=!0)=>(O?xl(e):Ef(e)).findIndex(R=>R.field===z),[e]),l=v.useCallback(z=>{const O=s(z);return F3(e)[O]},[e,s]),c=v.useCallback(z=>{Mf(e)!==z&&(e.current.setState(T=>Y({},T,{columns:xR({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:z,keepOnlyColumnsToUpsert:!1})})),e.current.updateRenderContext?.())},[e]),u=v.useCallback(z=>{let O=z;if(Vz(e)){const R=[],P=[],F=Mwe(e);if(z.forEach(N=>{F.has(N.field)?R.push(N):P.push(N)}),R.length>0&&e.current.updateNonPivotColumns(R),P.length===0)return;O=P}const T=xR({apiRef:e,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});r(T)},[e,r]),d=v.useCallback((z,O)=>{const T=Mf(e),R=T[z]??!0;if(O!==R){const P=Y({},T,{[z]:O});e.current.setColumnVisibilityModel(P)}},[e]),p=v.useCallback(z=>gb(e).findIndex(T=>T===z),[e]),h=v.useCallback((z,O)=>{const T=gb(e),R=p(z);if(R===O)return;n.debug(`Moving column ${z} to index ${O}`);const P=[...T],F=P.splice(R,1)[0];P.splice(O,0,F),r(Y({},um(e),{orderedFields:P}));const N={column:e.current.getColumn(z),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(z),oldIndex:R};e.current.publishEvent("columnIndexChange",N)},[e,n,r,p]),g=v.useCallback((z,O)=>{n.debug(`Updating column ${z} width to ${O}`);const T=um(e),R=T.lookup[z],P=Y({},R,{width:O,hasBeenResized:!0});r(Nge(Y({},T,{lookup:Y({},T.lookup,{[z]:P})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(z),colDef:P,width:O})},[e,n,r]),m={getColumn:i,getAllColumns:o,getColumnIndex:s,getColumnPosition:l,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:p,updateColumns:u,setColumnVisibilityModel:c,setColumnVisibility:d,setColumnWidth:g},b={setColumnIndex:h};Gi(e,m,"public"),Gi(e,b,t.signature===cm.DataGrid?"private":"public");const y=v.useCallback((z,O)=>{const T={},R=Mf(e);(!O.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(R).length>0)&&(T.columnVisibilityModel=R),T.orderedFields=gb(e);const F=Ef(e),N={};return F.forEach(L=>{if(L.hasBeenResized){const W={};qpt.forEach(j=>{let V=L[j];V===1/0&&(V=-1),W[j]=V}),N[L.field]=W}}),Object.keys(N).length>0&&(T.dimensions=N),Y({},z,{columns:T})},[e,t.columnVisibilityModel,t.initialState?.columns]),M=v.useCallback((z,O)=>{const T=O.stateToRestore.columns,R=T?.columnVisibilityModel;if(T==null)return z;const P=xR({apiRef:e,columnsToUpsert:[],initialState:T,columnVisibilityModel:R,keepOnlyColumnsToUpsert:!1});return T!=null&&e.current.setState(F=>Y({},F,{columns:Y({},F.columns,{lookup:P.lookup,orderedFields:P.orderedFields,initialColumnVisibilityModel:P.initialColumnVisibilityModel})})),R!=null&&e.current.setState(F=>Y({},F,{columns:Y({},F.columns,{columnVisibilityModel:R})})),T!=null&&e.current.publishEvent("columnsChange",P.orderedFields),z},[e]),C=v.useCallback((z,O)=>{if(O===o1.columns){const T=t.slots.columnsPanel;return f.jsx(T,Y({},t.slotProps?.columnsPanel))}return z},[t.slots.columnsPanel,t.slotProps?.columnsPanel]),x=v.useCallback(z=>{const O=Vz(e);return t.disableColumnSelector||O?z:[...z,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);rl(e,"columnMenu",x),rl(e,"exportState",y),rl(e,"restoreState",M),rl(e,"preferencePanel",C);const w=v.useRef(null);Yn(e,"viewportInnerSizeChange",z=>{if(w.current!==z.width){if(w.current=z.width,!xl(e).some(T=>T.flex&&T.flex>0))return;r(Nge(um(e),e.current.getRootDimensions()))}});const A=v.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const z=xR({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});r(z)},[e,n,r]);zwe(e,"hydrateColumns",A),v.useEffect(()=>{if(e.current.caches.columns.lastColumnsProp===t.columns)return;e.current.caches.columns.lastColumnsProp=t.columns,n.info(`GridColumns have changed, new length ${t.columns.length}`);const z=xR({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0,columnVisibilityModel:t.columnVisibilityModel});r(z)},[n,e,r,t.columns,t.columnVisibilityModel]),v.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function WXn(e){return t=>Y({},t,{columns:e})}const qXn=(e,t)=>Y({},e,{density:t.initialState?.density??t.density??"standard"}),BXn=(e,t)=>{const n=Ju(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:WR,changeEvent:"densityChange"});const i={setDensity:en(s=>{WR(e)!==s&&(n.debug(`Set grid density to ${s}`),e.current.setState(c=>Y({},c,{density:s})))})};Gi(e,i,"public");const o=v.useCallback((s,l)=>{const c=WR(e);return!l.exportOnlyDirtyModels||t.density!=null||t.initialState?.density!=null?Y({},s,{density:c}):s},[e,t.density,t.initialState?.density]),a=v.useCallback((s,l)=>{const c=l.stateToRestore?.density?l.stateToRestore.density:WR(e);return e.current.setState(u=>Y({},u,{density:c})),s},[e]);rl(e,"exportState",o),rl(e,"restoreState",a),v.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function jXn(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const i=URL.createObjectURL(e),o=document.createElement("a");o.href=i,o.download=r,o.click(),setTimeout(()=>{URL.revokeObjectURL(i)});return}throw new Error("MUI X: exportAs not supported.")}const bht=({apiRef:e,options:t})=>{const n=Ef(e);return t.fields?t.fields.reduce((i,o)=>{const a=n.find(s=>s.field===o);return a&&i.push(a),i},[]):(t.allColumns?n:xl(e)).filter(i=>i.disableExport!==!0)},yht=({apiRef:e})=>{const t=xpt(e),n=Qc(e),r=FZ(e),i=t.filter(l=>n[l].type!=="footer"),o=$D(e),a=o?.top?.map(l=>l.id)||[],s=o?.bottom?.map(l=>l.id)||[];if(i.unshift(...a),i.push(...s),r>0){const l=Apt(e);return i.filter(c=>l.has(c))}return i},HXn=(e,t)=>{const n=Ju(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,i=(typeof r=="object"?r?.csvExport:r)||!1,o=v.useCallback((c={})=>{n.debug("Get data as CSV");const u=bht({apiRef:e,options:c}),p=(c.getRowsToExport??yht)({apiRef:e});return IXn({columns:u,rowIds:p,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:c.shouldAppendQuotes??!0,includeHeaders:c.includeHeaders??!0,includeColumnGroupsHeaders:c.includeColumnGroupsHeaders??!0,escapeFormulas:c.escapeFormulas??!0},ignoreValueFormatter:i,apiRef:e})},[n,e,i]),a=v.useCallback(c=>{n.debug("Export data as CSV");const u=o(c),d=new Blob([c?.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});jXn(d,"csv",c?.fileName)},[n,o]);Gi(e,{getDataAsCsv:o,exportDataAsCsv:a},"public");const l=v.useCallback((c,u)=>u.csvOptions?.disableToolbarButton?c:[...c,{component:f.jsx(Z9n,{options:u.csvOptions}),componentName:"csvExport"}],[]);rl(e,"exportMenu",l)};function VXn(e,t){const n=[],r=t.querySelectorAll("style, link[rel='stylesheet']");for(let i=0;i<r.length;i+=1){const o=r[i];if(o.tagName==="STYLE"){const a=e.createElement(o.tagName),s=o.sheet;if(s){let l="";for(let c=0;c<s.cssRules.length;c+=1)typeof s.cssRules[c].cssText=="string"&&(l+=`${s.cssRules[c].cssText}\r
`);a.appendChild(e.createTextNode(l)),e.head.appendChild(a)}}else if(o.getAttribute("href")){const a=e.createElement(o.tagName);for(let s=0;s<o.attributes.length;s+=1){const l=o.attributes[s];l&&a.setAttribute(l.nodeName,l.nodeValue||"")}n.push(new Promise(s=>{a.addEventListener("load",()=>s())})),e.head.appendChild(a)}}return n}const P7=(e,t,n)=>{let r=e.paginationModel;const i=e.rowCount,o=n?.pageSize??r.pageSize,a=n?.page??r.page,s=Tpt(i,o,a);n&&(n?.page!==r.page||n?.pageSize!==r.pageSize)&&(r=n);const l=o===-1?0:m8n(r.page,s);return l!==r.page&&(r=Y({},r,{page:l})),Rpt(r.pageSize,t),r},GXn=(e,t)=>{const n=Ju(e,"useGridPaginationModel"),r=Qt(e,wB),i=v.useRef(mu(e)),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Hu,changeEvent:"paginationModelChange"});const a=v.useCallback(M=>{const C=Hu(e);M!==C.page&&(n.debug(`Setting page to ${M}`),e.current.setPaginationModel({page:M,pageSize:C.pageSize}))},[e,n]),s=v.useCallback(M=>{const C=Hu(e);M!==C.pageSize&&(n.debug(`Setting page size to ${M}`),e.current.setPaginationModel({pageSize:M,page:C.page}))},[e,n]),l=v.useCallback(M=>{const C=Hu(e);M!==C&&(n.debug("Setting 'paginationModel' to",M),e.current.setState(x=>Y({},x,{pagination:Y({},x.pagination,{paginationModel:P7(x.pagination,t.signature,M)})}),"setPaginationModel"))},[e,n,t.signature]);Gi(e,{setPage:a,setPageSize:s,setPaginationModel:l},"public");const u=v.useCallback((M,C)=>{const x=Hu(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||t.initialState?.pagination?.paginationModel!=null||x.page!==0&&x.pageSize!==g8n(t.autoPageSize)?Y({},M,{pagination:Y({},M.pagination,{paginationModel:x})}):M},[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),d=v.useCallback((M,C)=>{const x=C.stateToRestore.pagination?.paginationModel?Y({},Ept(t.autoPageSize),C.stateToRestore.pagination?.paginationModel):Hu(e);return e.current.setState(w=>Y({},w,{pagination:Y({},w.pagination,{paginationModel:P7(w.pagination,t.signature,x)})}),"stateRestorePreProcessing"),M},[e,t.autoPageSize,t.signature]);rl(e,"exportState",u),rl(e,"restoreState",d);const p=()=>{const M=Hu(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:M.page*M.pageSize})},h=v.useCallback(()=>{if(!t.autoPageSize)return;const M=e.current.getRootDimensions(),C=Math.max(1,Math.floor(M.viewportInnerSize.height/o));e.current.setPageSize(C)},[e,t.autoPageSize,o]),g=v.useCallback(M=>{if(M==null)return;const C=Hu(e);if(C.page===0)return;const x=Dpt(e);C.page>x-1&&e.current.setPage(Math.max(0,x-1))},[e]),m=v.useCallback(()=>{Hu(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),b=v.useCallback(M=>{const C=Y({},M,{items:gwe(e)});pm(C,i.current)||(i.current=C,m())},[e,m]);Yn(e,"viewportInnerSizeChange",h),Yn(e,"paginationModelChange",p),Yn(e,"rowCountChange",g),Yn(e,"sortModelChange",m),Yn(e,"filterModelChange",b);const y=v.useRef(!0);v.useEffect(()=>{if(y.current){y.current=!1;return}t.pagination&&e.current.setState(M=>Y({},M,{pagination:Y({},M.pagination,{paginationModel:P7(M.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),v.useEffect(()=>{e.current.setState(M=>{const C=t.pagination===!0;return M.pagination.paginationMode===t.paginationMode&&M.pagination.enabled===C?M:Y({},M,{pagination:Y({},M.pagination,{paginationMode:t.paginationMode,enabled:C})})})},[e,t.paginationMode,t.pagination]),v.useEffect(h,[h])};function $Xn(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function UXn(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const XXn=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Ju(e,"useGridPrintExport"),i=v.useRef(null),o=v.useRef(null),a=v.useRef({}),s=v.useRef([]),l=v.useRef(null);v.useEffect(()=>{i.current=Ds(e.current.rootElementRef.current)},[e,n]);const c=v.useCallback((b,y,M)=>new Promise(C=>{const x=bht({apiRef:e,options:{fields:b,allColumns:y}}).map(A=>A.field),w=Ef(e),S={};w.forEach(A=>{S[A.field]=x.includes(A.field)}),M&&(S[YD.field]=!0),e.current.setColumnVisibilityModel(S),C()}),[e]),u=v.useCallback(b=>{const M=b({apiRef:e}).reduce((C,x)=>{const w=e.current.getRow(x);return w[jz]||C.push(w),C},[]);e.current.setRows(M)},[e]),d=v.useCallback((b,y)=>{const M=Y({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},y),C=b.contentDocument;if(!C)return;const x=nwe(e),w=e.current.rootElementRef.current,S=w.cloneNode(!0),A=S.querySelector(`.${Te.main}`);A.style.overflow="visible",S.style.contain="size";let z=w.querySelector(`.${Te.toolbar}`)?.offsetHeight||0,O=w.querySelector(`.${Te.footerContainer}`)?.offsetHeight||0;const T=S.querySelector(`.${Te.footerContainer}`);M.hideToolbar&&(S.querySelector(`.${Te.toolbar}`)?.remove(),z=0),M.hideFooter&&T&&(T.remove(),O=0);const R=x.currentPageTotalHeight+EB(e,t)+z+O;S.style.height=`${R}px`,S.style.boxSizing="content-box",!M.hideFooter&&T&&(T.style.position="absolute",T.style.width="100%",T.style.top=`${R-O}px`);const P=document.createElement("div");P.appendChild(S),C.body.style.marginTop="0px",C.body.innerHTML=P.innerHTML;const F=typeof M.pageStyle=="function"?M.pageStyle():M.pageStyle;if(typeof F=="string"){const L=C.createElement("style");L.appendChild(C.createTextNode(F)),C.head.appendChild(L)}M.bodyClassName&&C.body.classList.add(...M.bodyClassName.split(" "));let N=[];if(M.copyStyles){const L=w.getRootNode(),W=L.constructor.name==="ShadowRoot"?L:i.current;N=VXn(C,W)}Promise.all(N).then(()=>{b.contentWindow.print()})},[e,i,t]),p=v.useCallback(b=>{i.current.body.removeChild(b),e.current.restoreState(o.current||{}),o.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(y=>Y({},y,{virtualization:l.current})),e.current.setRows(s.current),o.current=null,a.current={},s.current=[]},[e]),g={exportDataAsPrint:v.useCallback(async b=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(o.current=e.current.exportState(),a.current=Mf(e),s.current=e.current.getSortedRows().filter(M=>!M[jz]),t.pagination){const C={page:0,pageSize:hwe(e)};e.current.setState(x=>Y({},x,{pagination:Y({},x.pagination,{paginationModel:P7(x.pagination,"DataGridPro",C)})}))}l.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await c(b?.fields,b?.allColumns,b?.includeCheckboxes),u(b?.getRowsToExport??yht),await $Xn();const y=UXn(b?.fileName);y.onload=()=>{d(y,b),y.contentWindow.matchMedia("print").addEventListener("change",C=>{C.matches===!1&&p(y)})},i.current.body.appendChild(y)},[t,r,e,d,p,c,u])};Gi(e,g,"public");const m=v.useCallback((b,y)=>y.printOptions?.disableToolbarButton?b:[...b,{component:f.jsx(J9n,{options:y.printOptions}),componentName:"printExport"}],[]);rl(e,"exportMenu",m)},YXn=(e,t,n)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??QW();return Y({},e,{filter:Y({filterModel:lwe(r,t.disableMultipleColumnsFiltering,n)},ipt),visibleRowsLookup:{}})},KXn=e=>e.filteredRowsLookup;function x5e(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function QXn(){return Jxe(Object.values)}const ZXn=(e,t,n)=>{const r=Ju(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:mu,changeEvent:"filterModelChange"});const i=v.useCallback(()=>{e.current.setState(O=>{const T=mu(e),R=e.current.getFilterState(T),P=Y({},O,{filter:Y({},O.filter,R)}),F=x5e(e,P);return Y({},P,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e]),o=v.useCallback((O,T)=>T==null||T.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),a=v.useCallback(O=>{const T=mu(e),R=[...T.items],P=R.findIndex(F=>F.id===O.id);P===-1?R.push(O):R[P]=O,e.current.setFilterModel(Y({},T,{items:R}),"upsertFilterItem")},[e]),s=v.useCallback(O=>{const T=mu(e),R=[...T.items];O.forEach(P=>{const F=R.findIndex(N=>N.id===P.id);F===-1?R.push(P):R[F]=P}),e.current.setFilterModel(Y({},T,{items:R}),"upsertFilterItems")},[e]),l=v.useCallback(O=>{const T=mu(e),R=T.items.filter(P=>P.id!==O.id);R.length!==T.items.length&&e.current.setFilterModel(Y({},T,{items:R}),"deleteFilterItem")},[e]),c=v.useCallback((O,T,R)=>{if(r.debug("Displaying filter panel"),O){const P=mu(e),F=P.items.filter(j=>{if(j.value!==void 0)return!(Array.isArray(j.value)&&j.value.length===0);const G=e.current.getColumn(j.field).filterOperators?.find($=>$.value===j.operator);return!(typeof G?.requiresFilterValue>"u"?!0:G?.requiresFilterValue)});let N;const L=F.find(j=>j.field===O),W=e.current.getColumn(O);L?N=F:t.disableMultipleColumnsFiltering?N=[_ge({field:O,operator:W.filterOperators[0].value},e)]:N=[...F,_ge({field:O,operator:W.filterOperators[0].value},e)],e.current.setFilterModel(Y({},P,{items:N}))}e.current.showPreferences(o1.filters,T,R)},[e,r,t.disableMultipleColumnsFiltering]),u=v.useCallback(()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()},[e,r]),d=v.useCallback(O=>{const T=mu(e);T.logicOperator!==O&&e.current.setFilterModel(Y({},T,{logicOperator:O}),"changeLogicOperator")},[e]),p=v.useCallback(O=>{const T=mu(e);pm(T.quickFilterValues,O)||e.current.setFilterModel(Y({},T,{quickFilterValues:[...O]}))},[e]),h=v.useCallback((O,T)=>{mu(e)!==O&&(r.debug("Setting filter model"),e.current.updateControlState("filter",q_e(O,t.disableMultipleColumnsFiltering,e),T),e.current.unstable_applyFilters())},[e,r,t.disableMultipleColumnsFiltering]),g=v.useCallback(O=>{const T=lwe(O,t.disableMultipleColumnsFiltering,e),R=n.hooks.useFilterValueGetter(e,t),P=t.filterMode==="client"?CHn(T,R,e,t.disableEval):null,F=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:P,filterModel:T??QW(),filterValueGetter:R});return Y({},F,{filterModel:T})},[e,n.hooks,t]),m={setFilterLogicOperator:d,unstable_applyFilters:i,deleteFilterItem:l,upsertFilterItem:a,upsertFilterItems:s,setFilterModel:h,showFilterPanel:c,hideFilterPanel:u,setQuickFilterValues:p,ignoreDiacritics:t.ignoreDiacritics,getFilterState:g};Gi(e,m,"public");const b=v.useCallback((O,T)=>{const R=mu(e);return R.items.forEach(F=>{delete F.fromInput}),!T.exportOnlyDirtyModels||t.filterModel!=null||t.initialState?.filter?.filterModel!=null||!pm(R,QW())?Y({},O,{filter:{filterModel:R}}):O},[e,t.filterModel,t.initialState?.filter?.filterModel]),y=v.useCallback((O,T)=>{const R=T.stateToRestore.filter?.filterModel;return R==null?O:(e.current.updateControlState("filter",q_e(R,t.disableMultipleColumnsFiltering,e),"restoreState"),Y({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),M=v.useCallback((O,T)=>{if(T===o1.filters){const R=t.slots.filterPanel;return f.jsx(R,Y({},t.slotProps?.filterPanel))}return O},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:C}=t,x=xp(QXn),w=v.useCallback(O=>{if(t.filterMode!=="client"||!O.isRowMatchingFilters||!O.filterModel.items.length&&!O.filterModel.quickFilterValues?.length)return ipt;const T=yf(e),R={},{isRowMatchingFilters:P}=O,F={},N={passingFilterItems:null,passingQuickFilterValues:null},L=x.current(e.current.state.rows.dataRowIdToModelLookup);for(let V=0;V<L.length;V+=1){const G=L[V],q=C?C(G):G.id;P(G,void 0,N);const $=wHn([N.passingFilterItems],[N.passingQuickFilterValues],O.filterModel,O.filterValueGetter,e,F);$||(R[q]=$)}const W="auto-generated-group-footer-root";return T[W]&&(R[W]=!0),{filteredRowsLookup:R,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,C,x]);rl(e,"columnMenu",o),rl(e,"exportState",b),rl(e,"restoreState",y),rl(e,"preferencePanel",M),eq(e,$z,"filtering",w),eq(e,$z,"visibleRowsLookupCreation",KXn);const S=v.useCallback(()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const O=mu(e),T=xM(e),R=O.items.filter(P=>P.field&&T[P.field]);R.length<O.items.length&&e.current.setFilterModel(Y({},O,{items:R}))},[e,r]),A=v.useCallback(O=>{O==="filtering"&&e.current.unstable_applyFilters()},[e]),z=v.useCallback(()=>{e.current.setState(O=>Y({},O,{visibleRowsLookup:x5e(e,O)}))},[e]);Yn(e,"rowsSet",i),Yn(e,"columnsChange",S),Yn(e,"activeStrategyProcessorChange",A),Yn(e,"rowExpansionChange",z),Yn(e,"columnVisibilityModelChange",()=>{const O=mu(e);O.quickFilterValues?.length&&ppt(O)&&i()}),KD(()=>{i()}),Ro(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,r,t.filterModel])},JXn=e=>Y({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),eYn=(e,t)=>{const n=Ju(e,"useGridFocus"),r=v.useRef(null),i=e.current.rootElementRef.current!==null,o=v.useCallback((O,T)=>{O&&e.current.getRow(O.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(O.id,O.field),T)},[e]),a=v.useCallback((O,T)=>{const R=G1(e);R?.id===O&&R?.field===T||(e.current.setState(P=>(n.debug(`Focusing on cell with id=${O} and field=${T}`),Y({},P,{tabIndex:{cell:{id:O,field:T},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:O,field:T},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(O)&&(R&&o(R,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(O,T))))},[e,n,o]),s=v.useCallback((O,T={})=>{const R=G1(e);o(R,T),e.current.setState(P=>(n.debug(`Focusing on column header with colIndex=${O}`),Y({},P,{tabIndex:{columnHeader:{field:O},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:O},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,o]),l=v.useCallback((O,T={})=>{const R=G1(e);o(R,T),e.current.setState(P=>(n.debug(`Focusing on column header filter with colIndex=${O}`),Y({},P,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:O},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:O},cell:null,columnGroupHeader:null}})))},[e,n,o]),c=v.useCallback((O,T,R={})=>{const P=G1(e);P&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(P.id,P.field),R),e.current.setState(F=>Y({},F,{tabIndex:{columnGroupHeader:{field:O,depth:T},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:O,depth:T},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),u=v.useCallback(()=>j9(e),[e]),d=v.useCallback((O,T,R)=>{let P=e.current.getColumnIndex(T);const F=xl(e),N=zI(e,{pagination:t.pagination,paginationMode:t.paginationMode}),L=$D(e),W=[].concat(L.top||[],N.rows,L.bottom||[]);let j=W.findIndex($=>$.id===O);R==="right"?P+=1:R==="left"?P-=1:j+=1,P>=F.length?(j+=1,j<W.length&&(P=0)):P<0&&(j-=1,j>=0&&(P=F.length-1)),j=YO(j,0,W.length-1);const V=W[j];if(!V)return;const G=e.current.unstable_getCellColSpanInfo(V.id,P);G&&G.spannedByColSpan&&(R==="left"||R==="below"?P=G.leftVisibleCellIndex:R==="right"&&(P=G.rightVisibleCellIndex)),P=YO(P,0,F.length-1);const q=F[P];e.current.setCellFocus(V.id,q.field)},[e,t.pagination,t.paginationMode]),p=v.useCallback(({id:O,field:T})=>{e.current.setCellFocus(O,T)},[e]),h=v.useCallback((O,T)=>{T.key==="Enter"||T.key==="Tab"||T.key==="Shift"||B9(T.key)||e.current.setCellFocus(O.id,O.field)},[e]),g=v.useCallback(({field:O},T)=>{T.target===T.currentTarget&&e.current.setColumnHeaderFocus(O,T)},[e]),m=v.useCallback(({fields:O,depth:T},R)=>{if(R.target!==R.currentTarget)return;const P=j9(e);P!==null&&P.depth===T&&O.includes(P.field)||e.current.setColumnGroupHeaderFocus(O[0],T,R)},[e]),b=v.useCallback((O,T)=>{T.relatedTarget?.getAttribute("class")?.includes(Te.columnHeader)||(n.debug("Clearing focus"),e.current.setState(R=>Y({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),y=v.useCallback(O=>{r.current=O},[]),M=v.useCallback(O=>{const T=r.current;r.current=null;const R=G1(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:O,cell:T}))return;if(!R){T&&e.current.setCellFocus(T.id,T.field);return}T?.id===R.id&&T?.field===R.field||e.current.getCellElement(R.id,R.field)?.contains(O.target)||(T?e.current.setCellFocus(T.id,T.field):(e.current.setState(N=>Y({},N,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),o(R,O)))},[e,o]),C=v.useCallback(O=>{if(O.cellMode==="view")return;const T=G1(e);(T?.id!==O.id||T?.field!==O.field)&&e.current.setCellFocus(O.id,O.field)},[e]),x=v.useCallback(()=>{const O=G1(e);if(O&&!e.current.getRow(O.id)){const T=O.id;let R=null;if(typeof T<"u"){const P=e.current.getRowElement(T),F=P?.dataset.rowindex?Number(P?.dataset.rowindex):0,N=zI(e,{pagination:t.pagination,paginationMode:t.paginationMode});R=N.rows[YO(F,0,N.rows.length-1)]?.id??null}e.current.setState(P=>Y({},P,{focus:{cell:R===null?null:{id:R,field:O.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),w=v.useMemo(()=>Tw(x,0),[x]),S=en(()=>{const O=G1(e);if(!O)return;const T=zI(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(T.rows.find(F=>F.id===O.id)||T.rows.length===0)return;const P=xl(e);e.current.setState(F=>Y({},F,{tabIndex:{cell:{id:T.rows[0].id,field:P[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),A={setCellFocus:a,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:l},z={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};Gi(e,A,"public"),Gi(e,z,"private"),v.useEffect(()=>{const O=Ds(e.current.rootElementRef.current);return O.addEventListener("mouseup",M),()=>{O.removeEventListener("mouseup",M)}},[e,i,M]),Yn(e,"columnHeaderBlur",b),Yn(e,"cellDoubleClick",p),Yn(e,"cellMouseDown",y),Yn(e,"cellKeyDown",h),Yn(e,"cellModeChange",C),Yn(e,"columnHeaderFocus",g),Yn(e,"columnGroupHeaderFocus",m),Yn(e,"rowsSet",w),Yn(e,"paginationModelChange",S)},koe=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},Loe=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function tYn(e,t,n,r){const i=TP.selectors.hiddenCells(e.current.virtualizer.store.state);if(!i[t]?.[n])return t;const o=xpt(e);let a=o.indexOf(t)+(r==="down"?1:-1);for(;a>=0&&a<o.length;){const s=o[a];if(!i[s]?.[n])return s;a+=r==="down"?1:-1}return t}const nYn=ta(zB,$D,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),rYn=(e,t)=>{const n=Ju(e,"useGridKeyboardNavigation"),r=ts(),i=v.useCallback(()=>nYn(e),[e]),o=t.signature!=="DataGrid"&&t.headerFilters,a=v.useCallback((b,y,M="left",C="up")=>{const x=W3(e),w=e.current.unstable_getCellColSpanInfo(y,b);w&&w.spannedByColSpan&&(M==="left"?b=w.leftVisibleCellIndex:M==="right"&&(b=w.rightVisibleCellIndex));const S=SB(e)[b],A=tYn(e,y,b,C),z=x.findIndex(O=>O.id===A);n.debug(`Navigating to cell row ${z}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:z}),e.current.setCellFocus(A,S)},[e,n]),s=v.useCallback((b,y)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const M=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(M,y)},[e,n]),l=v.useCallback((b,y)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const M=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(M,y)},[e,n]),c=v.useCallback((b,y,M)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:C}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(C,y,M)},[e,n]),u=v.useCallback(b=>i()[b]?.id,[i]),d=v.useCallback((b,y)=>{const M=y.currentTarget.querySelector(`.${Te.columnHeaderTitleContainerContent}`);if(!!M&&M.contains(y.target)&&b.field!==YD.field)return;const x=i(),w=e.current.getViewportPageSize(),S=b.field?e.current.getColumnIndex(b.field):0,A=x.length>0?0:null,z=x.length-1,O=0,T=xl(e).length-1,R=TB(e);let P=!0;switch(y.key){case"ArrowDown":{o?l(S,y):A!==null&&a(S,u(A));break}case"ArrowRight":{const F=Loe({currentColIndex:S,firstColIndex:O,lastColIndex:T,isRtl:r});F!==null&&s(F,y);break}case"ArrowLeft":{const F=koe({currentColIndex:S,firstColIndex:O,lastColIndex:T,isRtl:r});F!==null&&s(F,y);break}case"ArrowUp":{R>0&&c(S,R-1,y);break}case"PageDown":{A!==null&&z!==null&&a(S,u(Math.min(A+w,z)));break}case"Home":{s(O,y);break}case"End":{s(T,y);break}case"Enter":{(y.ctrlKey||y.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:P=!1}P&&y.preventDefault()},[e,i,o,l,a,u,r,s,c]),p=v.useCallback((b,y)=>{const M=Q8n(e)===b.field,C=Z8n(e)===b.field;if(M||C||!B9(y.key))return;const x=i(),w=e.current.getViewportPageSize(),S=b.field?e.current.getColumnIndex(b.field):0,A=0,z=x.length-1,O=0,T=xl(e).length-1;let R=!0;switch(y.key){case"ArrowDown":{const P=u(A);P!=null&&a(S,P);break}case"ArrowRight":{const P=Loe({currentColIndex:S,firstColIndex:O,lastColIndex:T,isRtl:r});P!==null&&l(P,y);break}case"ArrowLeft":{const P=koe({currentColIndex:S,firstColIndex:O,lastColIndex:T,isRtl:r});P!==null?l(P,y):e.current.setColumnHeaderFilterFocus(b.field,y);break}case"ArrowUp":{s(S,y);break}case"PageDown":{z!==null&&a(S,u(Math.min(A+w,z)));break}case"Home":{l(O,y);break}case"End":{l(T,y);break}case" ":break;default:R=!1}R&&y.preventDefault()},[e,i,l,r,s,a,u]),h=v.useCallback((b,y)=>{const M=j9(e);if(M===null)return;const{field:C,depth:x}=M,{fields:w,depth:S,maxDepth:A}=b,z=i(),O=e.current.getViewportPageSize(),T=e.current.getColumnIndex(C),R=C?e.current.getColumnIndex(C):0,P=0,F=z.length-1,N=0,L=xl(e).length-1;let W=!0;switch(y.key){case"ArrowDown":{S===A-1?s(T,y):c(T,x+1,y);break}case"ArrowUp":{S>0&&c(T,x-1,y);break}case"ArrowRight":{const j=w.length-w.indexOf(C)-1;T+j+1<=L&&c(T+j+1,x,y);break}case"ArrowLeft":{const j=w.indexOf(C);T-j-1>=N&&c(T-j-1,x,y);break}case"PageDown":{F!==null&&a(R,u(Math.min(P+O,F)));break}case"Home":{c(N,x,y);break}case"End":{c(L,x,y);break}case" ":break;default:W=!1}W&&y.preventDefault()},[e,i,s,c,a,u]),g=v.useCallback((b,y)=>{if(RB(y))return;const M=e.current.getCellParams(b.id,b.field);if(M.cellMode===va.Edit||!B9(y.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:y,cell:M}))return;const x=i();if(x.length===0)return;const w=e.current.getViewportPageSize(),S=b.field?e.current.getColumnIndex(b.field):0,A=x.findIndex(F=>F.id===b.id),z=0,O=x.length-1,T=0,R=xl(e).length-1;let P=!0;switch(y.key){case"ArrowDown":{A<O&&a(S,u(A+1),r?"right":"left","down");break}case"ArrowUp":{A>z?a(S,u(A-1)):o?l(S,y):s(S,y);break}case"ArrowRight":{const F=Loe({currentColIndex:S,firstColIndex:T,lastColIndex:R,isRtl:r});F!==null&&a(F,u(A),r?"left":"right");break}case"ArrowLeft":{const F=koe({currentColIndex:S,firstColIndex:T,lastColIndex:R,isRtl:r});F!==null&&a(F,u(A),r?"right":"left");break}case"Tab":{y.shiftKey&&S>T?a(S-1,u(A),"left"):!y.shiftKey&&S<R&&a(S+1,u(A),"right");break}case" ":{if(b.field===uwe)break;const N=b.colDef;if(N&&(N.field===qHn||l7n(N.field)))break;!y.shiftKey&&A<O&&a(S,u(Math.min(A+w,O)));break}case"PageDown":{A<O&&a(S,u(Math.min(A+w,O)));break}case"PageUp":{const F=Math.max(A-w,z);F!==A&&F>=z?a(S,u(F)):s(S,y);break}case"Home":{y.ctrlKey||y.metaKey||y.shiftKey?a(T,u(z)):a(T,u(A));break}case"End":{y.ctrlKey||y.metaKey||y.shiftKey?a(R,u(O)):a(R,u(A));break}default:P=!1}P&&y.preventDefault()},[e,i,r,a,u,o,l,s]),m=v.useCallback((b,{event:y})=>y.key===" "?!1:b,[]);rl(e,"canStartEditing",m),Yn(e,"columnHeaderKeyDown",d),Yn(e,"headerFilterKeyDown",p),Yn(e,"columnGroupHeaderKeyDown",h),Yn(e,"cellKeyDown",g)},iYn=(e,t)=>{const n=Ju(e,"useGridRowCount"),r=Qt(e,fwe),i=Qt(e,qR),o=Qt(e,aN),a=Qt(e,Hu),s=xp(()=>Hu(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:qR,changeEvent:"rowCountChange"});const c={setRowCount:v.useCallback(g=>{i!==g&&(n.debug("Setting 'rowCount' to",g),e.current.setState(m=>Y({},m,{pagination:Y({},m.pagination,{rowCount:g})})))},[e,n,i])};Gi(e,c,"public");const u=v.useCallback((g,m)=>{const b=qR(e);return!m.exportOnlyDirtyModels||t.rowCount!=null||t.initialState?.pagination?.rowCount!=null?Y({},g,{pagination:Y({},g.pagination,{rowCount:b})}):g},[e,t.rowCount,t.initialState?.pagination?.rowCount]),d=v.useCallback((g,m)=>{const b=m.stateToRestore.pagination?.rowCount?m.stateToRestore.pagination.rowCount:qR(e);return e.current.setState(y=>Y({},y,{pagination:Y({},y.pagination,{rowCount:b})})),g},[e]);rl(e,"exportState",u),rl(e,"restoreState",d);const p=v.useCallback(g=>{t.paginationMode==="client"||!s.current||g.pageSize!==s.current&&(s.current=g.pageSize,i===-1&&e.current.setPage(0))},[t.paginationMode,s,i,e]);Yn(e,"paginationModelChange",p),v.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const h=o.hasNextPage===!1;v.useEffect(()=>{h&&i===-1&&e.current.setRowCount(a.pageSize*a.page+r)},[e,r,h,i,a])},oYn=(e,t)=>{const n=Ju(e,"useGridPaginationMeta"),r=Qt(e,aN);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:aN,changeEvent:"paginationMetaChange"});const o={setPaginationMeta:v.useCallback(l=>{r!==l&&(n.debug("Setting 'paginationMeta' to",l),e.current.setState(c=>Y({},c,{pagination:Y({},c.pagination,{meta:l})})))},[e,n,r])};Gi(e,o,"public");const a=v.useCallback((l,c)=>{const u=aN(e);return!c.exportOnlyDirtyModels||t.paginationMeta!=null||t.initialState?.pagination?.meta!=null?Y({},l,{pagination:Y({},l.pagination,{meta:u})}):l},[e,t.paginationMeta,t.initialState?.pagination?.meta]),s=v.useCallback((l,c)=>{const u=c.stateToRestore.pagination?.meta?c.stateToRestore.pagination.meta:aN(e);return e.current.setState(d=>Y({},d,{pagination:Y({},d.pagination,{meta:u})})),l},[e]);rl(e,"exportState",a),rl(e,"restoreState",s),v.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},aYn=(e,t)=>{const n=Y({},Ept(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);Rpt(n.pageSize,t.signature);const r=t.rowCount??t.initialState?.pagination?.rowCount??(t.paginationMode==="client"?e.rows?.totalRowCount:void 0),i=t.paginationMeta??t.initialState?.pagination?.meta??{};return Y({},e,{pagination:Y({},e.pagination,{paginationModel:n,rowCount:r,meta:i,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},sYn=(e,t)=>{oYn(e,t),GXn(e,t),iYn(e,t)},lYn=(e,t)=>Y({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),cYn=(e,t)=>{const n=Ju(e,"useGridPreferencesPanel"),r=v.useCallback(()=>{e.current.setState(s=>{if(!s.preferencePanel.open)return s;n.debug("Hiding Preferences Panel");const l=Gz(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:l.openedPanelValue}),Y({},s,{preferencePanel:{open:!1}})})},[e,n]),i=v.useCallback((s,l,c)=>{n.debug("Opening Preferences Panel"),e.current.setState(u=>Y({},u,{preferencePanel:Y({},u.preferencePanel,{open:!0,openedPanelValue:s,panelId:l,labelId:c})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:s})},[n,e]);Gi(e,{showPreferences:i,hidePreferences:r},"public");const o=v.useCallback((s,l)=>{const c=Gz(e);return!l.exportOnlyDirtyModels||t.initialState?.preferencePanel!=null||c.open?Y({},s,{preferencePanel:c}):s},[e,t.initialState?.preferencePanel]),a=v.useCallback((s,l)=>{const c=l.stateToRestore.preferencePanel;return c!=null&&e.current.setState(u=>Y({},u,{preferencePanel:c})),s},[e]);rl(e,"exportState",o),rl(e,"restoreState",a)},Bge=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},uYn=["id","field"],dYn=["id","field"],pYn=(e,t)=>{const[n,r]=v.useState({}),i=v.useRef(n),o=v.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:c}=t,u=L=>(...W)=>{t.editMode===Lb.Cell&&L(...W)},d=v.useCallback((L,W)=>{const j=e.current.getCellParams(L,W);if(!e.current.isCellEditable(j))throw new Error(`MUI X: The cell with id=${L} and field=${W} is not editable.`)},[e]),p=v.useCallback((L,W,j)=>{if(e.current.getCellMode(L,W)!==j)throw new Error(`MUI X: The cell with id=${L} and field=${W} is not in ${j} mode.`)},[e]),h=v.useCallback((L,W)=>{if(!L.isEditable||L.cellMode===va.Edit)return;const j=Y({},L,{reason:J2.cellDoubleClick});e.current.publishEvent("cellEditStart",j,W)},[e]),g=v.useCallback((L,W)=>{if(L.cellMode===va.View||e.current.getCellMode(L.id,L.field)===va.View)return;const j=Y({},L,{reason:Wg.cellFocusOut});e.current.publishEvent("cellEditStop",j,W)},[e]),m=v.useCallback((L,W)=>{if(L.cellMode===va.Edit){if(W.which===229)return;let j;if(W.key==="Escape"?j=Wg.escapeKeyDown:W.key==="Enter"?j=Wg.enterKeyDown:W.key==="Tab"&&(j=W.shiftKey?Wg.shiftTabKeyDown:Wg.tabKeyDown,W.preventDefault()),j){const V=Y({},L,{reason:j});e.current.publishEvent("cellEditStop",V,W)}}else if(L.isEditable){let j;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:W,cellParams:L,editMode:"cell"}))return;if(hpt(W)?j=J2.printableKeyDown:gpt(W)?j=J2.pasteKeyDown:W.key==="Enter"?j=J2.enterKeyDown:(W.key==="Backspace"||W.key==="Delete")&&(j=J2.deleteKeyDown),j){const G=Y({},L,{reason:j,key:W.key});e.current.publishEvent("cellEditStart",G,W)}}},[e]),b=v.useCallback(L=>{const{id:W,field:j,reason:V}=L,G={id:W,field:j};(V===J2.printableKeyDown||V===J2.deleteKeyDown||V===J2.pasteKeyDown)&&(G.deleteValue=!0),e.current.startCellEditMode(G)},[e]),y=v.useCallback(L=>{const{id:W,field:j,reason:V}=L;e.current.runPendingEditCellValueMutation(W,j);let G;V===Wg.enterKeyDown?G="below":V===Wg.tabKeyDown?G="right":V===Wg.shiftTabKeyDown&&(G="left");const q=V==="escapeKeyDown";e.current.stopCellEditMode({id:W,field:j,ignoreModifications:q,cellToFocusAfter:G})},[e]),M=L=>async(...W)=>{if(L){const{id:j,field:V}=W[0];e.current.state.editRows[j][V]?.error||L(...W)}};Yn(e,"cellDoubleClick",u(h)),Yn(e,"cellFocusOut",u(g)),Yn(e,"cellKeyDown",u(m)),Yn(e,"cellEditStart",u(b)),Yn(e,"cellEditStop",u(y)),Ka(e,"cellEditStart",t.onCellEditStart),Ka(e,"cellEditStop",M(t.onCellEditStop));const C=v.useCallback((L,W)=>{const j=bu(e);return j[L]&&j[L][W]?va.Edit:va.View},[e]),x=en(L=>{const W=L!==t.cellModesModel;c&&W&&c(L,{api:e.current}),!(t.cellModesModel&&W)&&(r(L),i.current=L,e.current.publishEvent("cellModesModelChange",L))}),w=v.useCallback((L,W,j)=>{const V=Y({},i.current);if(j!==null)V[L]=Y({},V[L],{[W]:Y({},j)});else{const G=V[L],q=Lt(G,[W].map(zz));V[L]=q,Object.keys(V[L]).length===0&&delete V[L]}x(V)},[x]),S=v.useCallback((L,W,j)=>{e.current.setState(V=>{const G=Y({},V.editRows);return j!==null?G[L]=Y({},G[L],{[W]:Y({},j)}):(delete G[L][W],Object.keys(G[L]).length===0&&delete G[L]),Y({},V,{editRows:G})})},[e]),A=v.useCallback(L=>{const{id:W,field:j}=L,V=Lt(L,uYn);d(W,j),p(W,j,va.View),w(W,j,Y({mode:va.Edit},V))},[d,p,w]),z=en(async L=>{const{id:W,field:j,deleteValue:V,initialValue:G}=L,q=e.current.getCellValue(W,j);let $=q;V?$=Bge(e.current.getColumn(j)):G&&($=G);const U=e.current.getColumn(j),X=!!U.preProcessEditCellProps&&V;let Q={value:$,error:!1,isProcessingProps:X};if(S(W,j,Q),e.current.setCellFocus(W,j),X&&(Q=await Promise.resolve(U.preProcessEditCellProps({id:W,row:e.current.getRow(W),props:Q,hasChanged:$!==q})),e.current.getCellMode(W,j)===va.Edit)){const re=bu(e);S(W,j,Y({},Q,{value:re[W][j].value,isProcessingProps:!1}))}}),O=v.useCallback(L=>{const{id:W,field:j}=L,V=Lt(L,dYn);p(W,j,va.Edit),w(W,j,Y({mode:va.View},V))},[p,w]),T=en(async L=>{const{id:W,field:j,ignoreModifications:V,cellToFocusAfter:G="none"}=L;p(W,j,va.Edit),e.current.runPendingEditCellValueMutation(W,j);const q=()=>{S(W,j,null),w(W,j,null),G!=="none"&&e.current.moveFocusToRelativeCell(W,j,G)};if(V){q();return}const $=bu(e),{error:U,isProcessingProps:X}=$[W][j],Q=e.current.getRow(W);if(U||X){o.current[W][j].mode=va.Edit,w(W,j,{mode:va.Edit});return}const re=e.current.getRowWithUpdatedValuesFromCellEditing(W,j);if(t.dataSource?.updateRow){if(pm(Q,re)){q();return}const ee=()=>{o.current[W][j].mode=va.Edit,w(W,j,{mode:va.Edit})},se={rowId:W,updatedRow:re,previousRow:Q};try{await e.current.dataSource.editRow(se),q()}catch{ee()}}else if(a){const ee=se=>{o.current[W][j].mode=va.Edit,w(W,j,{mode:va.Edit}),s&&s(se)};try{Promise.resolve(a(re,Q,{rowId:W})).then(se=>{e.current.updateRows([se]),q()}).catch(ee)}catch(se){ee(se)}}else e.current.updateRows([re]),q()}),R=v.useCallback(async L=>{const{id:W,field:j,value:V,debounceMs:G,unstable_skipValueParser:q}=L;d(W,j),p(W,j,va.Edit);const $=e.current.getColumn(j),U=e.current.getRow(W);let X=V;$.valueParser&&!q&&(X=$.valueParser(V,U,$,e));let Q=bu(e),re=Y({},Q[W][j],{value:X,changeReason:G?"debouncedSetEditCellValue":"setEditCellValue"});if($.preProcessEditCellProps){const ee=V!==Q[W][j].value;re=Y({},re,{isProcessingProps:!0}),S(W,j,re),re=await Promise.resolve($.preProcessEditCellProps({id:W,row:U,props:re,hasChanged:ee}))}return e.current.getCellMode(W,j)===va.View?!1:(Q=bu(e),re=Y({},re,{isProcessingProps:!1}),re.value=$.preProcessEditCellProps?Q[W][j].value:X,S(W,j,re),Q=bu(e),!Q[W]?.[j]?.error)},[e,d,p,S]),P=v.useCallback((L,W)=>{const j=e.current.getColumn(W),V=bu(e),G=e.current.getRow(L);if(!V[L]||!V[L][W])return e.current.getRow(L);const{value:q}=V[L][W];return j.valueSetter?j.valueSetter(q,G,j,e):Y({},G,{[W]:q})},[e]),F={getCellMode:C,startCellEditMode:A,stopCellEditMode:O},N={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:P};Gi(e,F,"public"),Gi(e,N,"private"),v.useEffect(()=>{l&&x(l)},[l,x]),Ro(()=>{const L=yf(e),W=o.current;o.current=tpt(n),Object.entries(n).forEach(([j,V])=>{Object.entries(V).forEach(([G,q])=>{const $=W[j]?.[G]?.mode||va.View,U=L[j]?e.current.getRowId(L[j]):j;q.mode===va.Edit&&$===va.View?z(Y({id:U,field:G},q)):q.mode===va.View&&$===va.Edit&&T(Y({id:U,field:G},q))})})},[e,n,z,T])},hYn=["id"],fYn=["id"],gYn=(e,t)=>{const[n,r]=v.useState({}),i=v.useRef(n),o=v.useRef({}),a=v.useRef({}),s=v.useRef(void 0),l=v.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:u,rowModesModel:d,onRowModesModelChange:p}=t,h=q=>(...$)=>{t.editMode===Lb.Row&&q(...$)},g=v.useCallback((q,$)=>{const U=e.current.getCellParams(q,$);if(!e.current.isCellEditable(U))throw new Error(`MUI X: The cell with id=${q} and field=${$} is not editable.`)},[e]),m=v.useCallback((q,$)=>{if(e.current.getRowMode(q)!==$)throw new Error(`MUI X: The row with id=${q} is not in ${$} mode.`)},[e]),b=v.useCallback(q=>{const $=bu(e);return Object.values($[q]).some(U=>U.error)},[e]),y=v.useCallback((q,$)=>{if(!q.isEditable||e.current.getRowMode(q.id)===ms.Edit)return;const U=e.current.getRowParams(q.id),X=Y({},U,{field:q.field,reason:wC.cellDoubleClick});e.current.publishEvent("rowEditStart",X,$)},[e]),M=v.useCallback(q=>{l.current=q},[]),C=v.useCallback((q,$)=>{q.isEditable&&e.current.getRowMode(q.id)!==ms.View&&(l.current=null,s.current=setTimeout(()=>{if(l.current?.id!==q.id){if(!e.current.getRow(q.id)||e.current.getRowMode(q.id)===ms.View||b(q.id))return;const U=e.current.getRowParams(q.id),X=Y({},U,{field:q.field,reason:Sv.rowFocusOut});e.current.publishEvent("rowEditStop",X,$)}}))},[e,b]);v.useEffect(()=>()=>{clearTimeout(s.current)},[]);const x=v.useCallback((q,$)=>{if(q.cellMode===ms.Edit){if($.which===229)return;let U;if($.key==="Escape")U=Sv.escapeKeyDown;else if($.key==="Enter")U=Sv.enterKeyDown;else if($.key==="Tab"){const X=SB(e).filter(Q=>e.current.getColumn(Q).type===LZ?!0:e.current.isCellEditable(e.current.getCellParams(q.id,Q)));if($.shiftKey?q.field===X[0]&&(U=Sv.shiftTabKeyDown):q.field===X[X.length-1]&&(U=Sv.tabKeyDown),$.preventDefault(),!U){const Q=X.findIndex(ee=>ee===q.field),re=X[$.shiftKey?Q-1:Q+1];e.current.setCellFocus(q.id,re)}}if(U){if(U!==Sv.escapeKeyDown&&b(q.id))return;const X=Y({},e.current.getRowParams(q.id),{reason:U,field:q.field});e.current.publishEvent("rowEditStop",X,$)}}else if(q.isEditable){let U;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:q,editMode:"row"}))return;if(hpt($)||gpt($)?U=wC.printableKeyDown:$.key==="Enter"?U=wC.enterKeyDown:($.key==="Backspace"||$.key==="Delete")&&(U=wC.deleteKeyDown),U){const Q=e.current.getRowParams(q.id),re=Y({},Q,{field:q.field,reason:U});e.current.publishEvent("rowEditStart",re,$)}}},[e,b]),w=v.useCallback(q=>{const{id:$,field:U,reason:X}=q,Q={id:$,fieldToFocus:U};(X===wC.printableKeyDown||X===wC.deleteKeyDown)&&(Q.deleteValue=!!U),e.current.startRowEditMode(Q)},[e]),S=v.useCallback(q=>{const{id:$,reason:U,field:X}=q;e.current.runPendingEditCellValueMutation($);let Q;U===Sv.enterKeyDown?Q="below":U===Sv.tabKeyDown?Q="right":U===Sv.shiftTabKeyDown&&(Q="left");const re=U==="escapeKeyDown";e.current.stopRowEditMode({id:$,ignoreModifications:re,field:X,cellToFocusAfter:Q})},[e]);Yn(e,"cellDoubleClick",h(y)),Yn(e,"cellFocusIn",h(M)),Yn(e,"cellFocusOut",h(C)),Yn(e,"cellKeyDown",h(x)),Yn(e,"rowEditStart",h(w)),Yn(e,"rowEditStop",h(S)),Ka(e,"rowEditStart",t.onRowEditStart),Ka(e,"rowEditStop",t.onRowEditStop);const A=v.useCallback(q=>Xpt(e,{rowId:q,editMode:t.editMode})?ms.Edit:ms.View,[e,t.editMode]),z=en(q=>{const $=q!==t.rowModesModel;p&&$&&p(q,{api:e.current}),!(t.rowModesModel&&$)&&(r(q),i.current=q,e.current.publishEvent("rowModesModelChange",q))}),O=v.useCallback((q,$)=>{const U=Y({},i.current);$!==null?U[q]=Y({},$):delete U[q],z(U)},[z]),T=v.useCallback((q,$)=>{e.current.setState(U=>{const X=Y({},U.editRows);return $!==null?X[q]=$:delete X[q],Y({},U,{editRows:X})})},[e]),R=v.useCallback((q,$,U)=>{e.current.setState(X=>{const Q=Y({},X.editRows);return U!==null?Q[q]=Y({},Q[q],{[$]:Y({},U)}):(delete Q[q][$],Object.keys(Q[q]).length===0&&delete Q[q]),Y({},X,{editRows:Q})})},[e]),P=v.useCallback(q=>{const{id:$}=q,U=Lt(q,hYn);m($,ms.View),O($,Y({mode:ms.Edit},U))},[m,O]),F=en(q=>{const{id:$,fieldToFocus:U,deleteValue:X,initialValue:Q}=q,re=e.current.getRow($),ee=Ef(e),se=ee.reduce((pe,te)=>{const ce=te.field;if(!e.current.getCellParams($,ce).isEditable)return pe;const ae=e.current.getColumn(ce);let ne=e.current.getCellValue($,ce);return U===ce&&(X||Q)&&(X?ne=Bge(ae):Q&&(ne=Q)),pe[ce]={value:ne,error:!1,isProcessingProps:ae.editable&&!!ae.preProcessEditCellProps&&X},pe},{});a.current[$]=re,T($,se),U&&e.current.setCellFocus($,U),ee.filter(pe=>e.current.getCellParams($,pe.field).isEditable&&pe.editable&&!!pe.preProcessEditCellProps&&X).forEach(pe=>{const te=pe.field,ce=e.current.getCellValue($,te),oe=X?Bge(pe):Q??ce;Promise.resolve(pe.preProcessEditCellProps({id:$,row:re,props:se[te],hasChanged:oe!==ce})).then(ae=>{if(e.current.getRowMode($)===ms.Edit){const ne=bu(e);R($,te,Y({},ae,{value:ne[$][te].value,isProcessingProps:!1}))}})})}),N=v.useCallback(q=>{const{id:$}=q,U=Lt(q,fYn);m($,ms.Edit),O($,Y({mode:ms.View},U))},[m,O]),L=en(async q=>{const{id:$,ignoreModifications:U,field:X,cellToFocusAfter:Q="none"}=q;e.current.runPendingEditCellValueMutation($);const re=()=>{Q!=="none"&&X&&e.current.moveFocusToRelativeCell($,X,Q),T($,null),O($,null),delete a.current[$]};if(U){re();return}const ee=bu(e),se=a.current[$];if(Object.values(ee[$]).some(ce=>ce.isProcessingProps)){o.current[$].mode=ms.Edit;return}if(b($)){o.current[$].mode=ms.Edit,O($,{mode:ms.Edit});return}const te=e.current.getRowWithUpdatedValuesFromRowEditing($);if(t.dataSource?.updateRow){if(pm(se,te)){re();return}const ce=()=>{o.current[$].mode=ms.Edit,O($,{mode:ms.Edit})},oe={rowId:$,updatedRow:te,previousRow:se};try{await e.current.dataSource.editRow(oe),re()}catch{ce()}}else if(c){const ce=oe=>{o.current[$]&&(o.current[$].mode=ms.Edit,O($,{mode:ms.Edit})),u&&u(oe)};try{Promise.resolve(c(te,se,{rowId:$})).then(oe=>{e.current.updateRows([oe]),re()}).catch(ce)}catch(oe){ce(oe)}}else e.current.updateRows([te]),re()}),W=v.useCallback(q=>{const{id:$,field:U,value:X,debounceMs:Q,unstable_skipValueParser:re}=q;g($,U);const ee=e.current.getColumn(U),se=e.current.getRow($);let pe=X;ee.valueParser&&!re&&(pe=ee.valueParser(X,se,ee,e));let te=bu(e),ce=Y({},te[$][U],{value:pe,changeReason:Q?"debouncedSetEditCellValue":"setEditCellValue"});return ee.preProcessEditCellProps||R($,U,ce),new Promise(oe=>{const ae=[];if(ee.preProcessEditCellProps){const ne=ce.value!==te[$][U].value;ce=Y({},ce,{isProcessingProps:!0}),R($,U,ce);const le=te[$],he=Lt(le,[U].map(zz)),be=Promise.resolve(ee.preProcessEditCellProps({id:$,row:se,props:ce,hasChanged:ne,otherFieldsProps:he})).then(me=>{if(e.current.getRowMode($)===ms.View){oe(!1);return}te=bu(e),me=Y({},me,{isProcessingProps:!1}),me.value=ee.preProcessEditCellProps?te[$][U].value:pe,R($,U,me)});ae.push(be)}Object.entries(te[$]).forEach(([ne,le])=>{if(ne===U)return;const he=e.current.getColumn(ne);if(!he.preProcessEditCellProps)return;le=Y({},le,{isProcessingProps:!0}),R($,ne,le),te=bu(e);const be=te[$],me=Lt(be,[ne].map(zz)),Me=Promise.resolve(he.preProcessEditCellProps({id:$,row:se,props:le,hasChanged:!1,otherFieldsProps:me})).then(Oe=>{if(e.current.getRowMode($)===ms.View){oe(!1);return}Oe=Y({},Oe,{isProcessingProps:!1}),R($,ne,Oe)});ae.push(Me)}),Promise.all(ae).then(()=>{e.current.getRowMode($)===ms.Edit?(te=bu(e),oe(!te[$][U].error)):oe(!1)})})},[e,g,R]),j=v.useCallback(q=>{const $=bu(e),U=e.current.getRow(q);if(!$[q])return e.current.getRow(q);let X=Y({},a.current[q],U);return Object.entries($[q]).forEach(([Q,re])=>{const ee=e.current.getColumn(Q);ee?.valueSetter?X=ee.valueSetter(re.value,X,ee,e):X[Q]=re.value}),X},[e]),V={getRowMode:A,startRowEditMode:P,stopRowEditMode:N},G={setRowEditingEditCellValue:W,getRowWithUpdatedValuesFromRowEditing:j};Gi(e,V,"public"),Gi(e,G,"private"),v.useEffect(()=>{d&&z(d)},[d,z]),Ro(()=>{const q=yf(e),$=o.current;o.current=tpt(n);const U=new Set([...Object.keys(n),...Object.keys($)]);Array.from(U).forEach(X=>{const Q=n[X]??{mode:ms.View},re=$[X]?.mode||ms.View,ee=q[X]?e.current.getRowId(q[X]):X;Q.mode===ms.Edit&&re===ms.View?F(Y({id:ee},Q)):Q.mode===ms.View&&re===ms.Edit&&L(Y({id:ee},Q))})},[e,n,F,L])},mYn=e=>Y({},e,{editRows:{}}),vYn=(e,t,n)=>{pYn(e,t),gYn(e,t);const r=v.useRef({}),{isCellEditable:i}=t,o=n.hooks.useIsCellEditable(e,t),a=v.useCallback(g=>!o(g)||!g.colDef.editable||!g.colDef.renderEditCell?!1:i?i(g):!0,[i,o]),s=(g,m,b,y)=>{if(!b){y();return}if(r.current[g]||(r.current[g]={}),r.current[g][m]){const[x]=r.current[g][m];clearTimeout(x)}const M=()=>{const[x]=r.current[g][m];clearTimeout(x),y(),delete r.current[g][m]},C=setTimeout(()=>{y(),delete r.current[g][m]},b);r.current[g][m]=[C,M]};v.useEffect(()=>{const g=r.current;return()=>{Object.entries(g).forEach(([m,b])=>{Object.keys(b).forEach(y=>{const[M]=g[m][y];clearTimeout(M),delete g[m][y]})})}},[]);const l=v.useCallback((g,m)=>{if(r.current[g]){if(!m)Object.keys(r.current[g]).forEach(b=>{const[,y]=r.current[g][b];y()});else if(r.current[g][m]){const[,b]=r.current[g][m];b()}}},[]),c=v.useCallback(g=>{const{id:m,field:b,debounceMs:y}=g;return new Promise(M=>{s(m,b,y,async()=>{const C=t.editMode===Lb.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(m,b)===va.Edit){const x=await C(g);M(x)}})})},[e,t.editMode]),u=v.useCallback((g,m)=>t.editMode===Lb.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(g,m):e.current.getRowWithUpdatedValuesFromRowEditing(g),[e,t.editMode]),d=v.useCallback((g,m)=>bu(e)[g]?.[m]??null,[e]),p={isCellEditable:a,setEditCellValue:c,getRowWithUpdatedValues:u,unstable_getEditCellMeta:d},h={runPendingEditCellValueMutation:l};Gi(e,p,"public"),Gi(e,h,"private")},bYn=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=O7({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),Y({},e,{rows:$1t({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},yYn=(e,t,n)=>{const r=Ju(e,"useGridRows"),i=v.useRef(Date.now()),o=v.useRef(t.rowCount),a=Qp(),{setRowIndex:s}=n.hooks.useGridRowsOverridableMethods(e,t),l=v.useCallback(V=>{const G=yf(e)[V];if(G)return G;const q=fb(e,V);return q&&OP(q)?{[jz]:V}:null},[e]),c=v.useCallback(V=>zP(e,V),[e]),u=v.useCallback(({cache:V,throttle:G})=>{const q=()=>{i.current=Date.now(),e.current.setState(U=>Y({},U,{rows:$1t({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Qc(e),previousTreeDepths:P_e(e),previousGroupsToFetch:Ejn(e)})})),e.current.publishEvent("rowsSet")};if(a.clear(),e.current.caches.rows=V,!G){q();return}const $=t.throttleRowsMs-(Date.now()-i.current);if($>0){a.start($,q);return}q()},[t.throttleRowsMs,t.rowCount,t.loading,e,a]),d=v.useCallback(V=>{if(r.debug(`Updating all rows, new length ${V.length}`),!t.dataSource&&Vz(e)){e.current.updateNonPivotRows(V,!1);return}const G=O7({rows:V,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),q=e.current.caches.rows;G.rowsBeforePartialUpdates=q.rowsBeforePartialUpdates,u({cache:G,throttle:!0})},[r,t.getRowId,t.dataSource,t.loading,t.rowCount,u,e]),p=v.useCallback(V=>{if(t.signature===cm.DataGrid&&V.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(!t.dataSource&&Vz(e)){e.current.updateNonPivotRows(V);return}const G=k_e(e,V,t.getRowId),q=D_e({updates:G,getRowId:t.getRowId,previousCache:e.current.caches.rows});u({cache:q,throttle:!0})},[t.signature,t.dataSource,t.getRowId,u,e]),h=v.useCallback((V,G)=>{const q=k_e(e,V,t.getRowId),$=D_e({updates:q,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:G??[]});u({cache:$,throttle:!1})},[t.getRowId,u,e]),g=v.useCallback(V=>{r.debug(`Setting loading to ${V}`),e.current.setState(G=>Y({},G,{rows:Y({},G.rows,{loading:V})})),e.current.caches.rows.loadingPropBeforePartialUpdates=V},[e,r]),m=v.useCallback(()=>{const V=hO(e),G=yf(e);return new Map(V.map(q=>[q,G[q]??{}]))},[e]),b=v.useCallback(()=>GD(e),[e]),y=v.useCallback(()=>hO(e),[e]),M=v.useCallback(V=>{const{rowIdToIndexMap:G}=zI(e);return G.get(V)},[e]),C=v.useCallback((V,G)=>{const q=fb(e,V);if(!q)throw new Error(`MUI X: No row with id #${V} found.`);if(q.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const $=Y({},q,{childrenExpanded:G});e.current.setState(U=>Y({},U,{rows:Y({},U.rows,{tree:Y({},U.rows.tree,{[V]:$})})})),e.current.publishEvent("rowExpansionChange",$)},[e]),x=v.useCallback(()=>{const V=Y({},Qc(e)),G=q=>{const $=V[q];$?.type==="group"&&(V[q]=Y({},$,{childrenExpanded:!0}),$.children.forEach(G))};G(Dl),e.current.setState(q=>Y({},q,{rows:Y({},q.rows,{tree:V})})),e.current.publishEvent("rowExpansionChange",V[Dl])},[e]),w=v.useCallback(()=>{const V=Y({},Qc(e)),G=q=>{const $=V[q];$?.type==="group"&&(V[q]=Y({},$,{childrenExpanded:!1}),$.children.forEach(G))};G(Dl),e.current.setState(q=>Y({},q,{rows:Y({},q.rows,{tree:V})})),e.current.publishEvent("rowExpansionChange",V[Dl])},[e]),S=v.useCallback(V=>fb(e,V)??null,[e]),A=v.useCallback(({skipAutoGeneratedRows:V=!0,groupId:G,applySorting:q,applyFiltering:$,directChildrenOnly:U=!1})=>{const X=Qc(e);let Q;if(q){const re=X[G];if(!re)return[];const ee=AB(e);Q=[];const se=ee.findIndex(pe=>pe===G)+1;for(let pe=se;pe<ee.length&&(U?X[ee[pe]].depth===re.depth+1:X[ee[pe]].depth>re.depth);pe+=1){const te=ee[pe];(!V||!OP(X[te]))&&Q.push(te)}}else Q=rwe(X,G,V,U);if($){const re=UD(e);Q=_Z(re)?Q:Q.filter(ee=>re[ee]!==!1)}return Q},[e]),z=v.useCallback((V,G)=>{if(t.signature===cm.DataGrid&&G.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(G.length===0)return;if(xB(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const $=Y({},Qc(e)),U=Y({},yf(e)),X=$[Dl],Q=[...X.children],re=new Set;for(let se=0;se<G.length;se+=1){const pe=G[se],te=IZ(pe,t.getRowId,"A row was provided without id when calling replaceRows()."),[ce]=Q.splice(V+se,1,te);re.has(ce)||(delete U[ce],delete $[ce]);const oe={id:te,depth:0,parent:Dl,type:"leaf",groupingKey:null};U[te]=pe,$[te]=oe,re.add(te)}$[Dl]=Y({},X,{children:Q});const ee=Q.filter(se=>$[se]?.type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=U,e.current.setState(se=>Y({},se,{rows:Y({},se.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,Q.length),dataRowIdToModelLookup:U,dataRowIds:ee,tree:$})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),O={getRow:l,setLoading:g,getRowId:c,getRowModels:m,getRowsCount:b,getAllRowIds:y,setRows:d,updateRows:p,getRowNode:S,getRowIndexRelativeToVisibleRows:M,unstable_replaceRows:z},T={setRowIndex:s,setRowChildrenExpansion:C,getRowGroupChildren:A,expandAllRows:x,collapseAllRows:w},R={updateNestedRows:h},P=v.useCallback(()=>{r.info("Row grouping pre-processing have changed, regenerating the row tree");let V;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?V=Y({},e.current.caches.rows,{updates:{type:"full",rows:hO(e)}}):V=O7({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u({cache:V,throttle:!1})},[r,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),F=xp(()=>t.dataSource),N=v.useCallback(V=>{if(t.dataSource&&t.dataSource!==F.current){F.current=t.dataSource;return}V==="rowTreeCreation"&&P()},[P,F,t.dataSource]),L=v.useCallback(()=>{e.current.getActiveStrategy(gy.RowTree)!==Rjn(e)&&P()},[e,P]);Yn(e,"activeStrategyProcessorChange",N),Yn(e,"strategyAvailabilityChange",L);const W=v.useCallback(()=>{e.current.setState(V=>{const G=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Qc(e),treeDepths:P_e(e),dataRowIds:hO(e),dataRowIdToModelLookup:yf(e)});return Y({},V,{rows:Y({},V.rows,G,{totalTopLevelRowCount:G1t({tree:G.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);zwe(e,"hydrateRows",W),Gi(e,O,"public"),Gi(e,T,t.signature===cm.DataGrid?"private":"public"),Gi(e,R,"private");const j=v.useRef(!0);v.useEffect(()=>{if(j.current){j.current=!1;return}let V=!1;t.rowCount!==o.current&&(V=!0,o.current=t.rowCount);const G=t.dataSource?Ijn(e):t.rows,q=e.current.caches.rows.rowsBeforePartialUpdates===G,$=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,U=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;q&&($||(e.current.setState(X=>Y({},X,{rows:Y({},X.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),U||(e.current.setState(X=>Y({},X,{rows:Y({},X.rows,{totalRowCount:Math.max(t.rowCount||0,X.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,X.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!V)||(r.debug(`Updating all rows, new length ${G?.length}`),u({cache:O7({rows:G,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,r,u,e])},MYn=e=>{const t={[Dl]:Y({},Djn(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Dl,type:"leaf",groupingKey:null}}return{groupingName:$z,tree:t,treeDepths:{0:e.length},dataRowIds:e}},CYn=({previousTree:e,actions:t})=>{const n=Y({},e),r={};for(let a=0;a<t.remove.length;a+=1){const s=t.remove[a];r[s]=!0,delete n[s]}for(let a=0;a<t.insert.length;a+=1){const s=t.insert[a];n[s]={id:s,depth:0,parent:Dl,type:"leaf",groupingKey:null}}const i=n[Dl];let o=[...i.children,...t.insert];return Object.values(r).length&&(o=o.filter(a=>!r[a])),n[Dl]=Y({},i,{children:o}),{groupingName:$z,tree:n,treeDepths:{0:o.length},dataRowIds:o}},xYn=e=>e.updates.type==="full"?MYn(e.updates.rows):CYn({previousTree:e.previousTree,actions:e.updates.actions}),wYn=e=>{eq(e,$z,"rowTreeCreation",xYn)};class w5e extends Error{}function SYn(e,t,n){const r=v.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),i=v.useCallback(h=>{const g=e.current.getRow(h);if(!g)throw new w5e(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:g}},[e]),o=v.useCallback((h,g,m,{cellMode:b,colDef:y,hasFocus:M,rowNode:C,tabIndex:x,value:w,formattedValue:S})=>{let A=m[g];w!==void 0?A=w:y?.valueGetter&&(A=y.valueGetter(A,m,y,e));let z=A;S!==void 0?z=S:y?.valueFormatter&&(z=y.valueFormatter(A,m,y,e));const O={id:h,field:g,row:m,rowNode:C,colDef:y,cellMode:b,hasFocus:M,tabIndex:x,value:A,formattedValue:z,isEditable:!1,api:e.current};return O.isEditable=y&&e.current.isCellEditable(O),O},[e]),a=v.useCallback((h,g)=>{const m=e.current.getRow(h),b=fb(e,h);if(!m||!b)throw new w5e(`No row with id #${h} found`);const y=G1(e),M=vwe(e),C=e.current.getCellMode(h,g);return e.current.getCellParamsForRow(h,g,m,{colDef:t.listView&&t.listViewColumn?.field===g?lpt(e):e.current.getColumn(g),rowNode:b,hasFocus:y!==null&&y.field===g&&y.id===h,tabIndex:M&&M.field===g&&M.id===h?0:-1,cellMode:C})},[e,t.listView,t.listViewColumn?.field]),s=v.useCallback(h=>e.current.rootElementRef.current?n$n(e.current.rootElementRef.current,h):null,[e]),l=v.useCallback(h=>e.current.rootElementRef.current?r$n(e.current.rootElementRef.current,h):null,[e]),c=v.useCallback((h,g)=>e.current.rootElementRef.current?i$n(e.current.rootElementRef.current,{id:h,field:g}):null,[e]),u=n.hooks.useGridParamsOverridableMethods(e),d={getCellValue:u.getCellValue,getCellParams:a,getCellElement:c,getRowValue:u.getRowValue,getRowFormattedValue:u.getRowFormattedValue,getRowParams:i,getRowElement:l,getColumnHeaderParams:r,getColumnHeaderElement:s},p={getCellParamsForRow:o};Gi(e,d,"public"),Gi(e,p,"private")}const hF={type:"include",ids:new Set},AYn=(e,t)=>Y({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??hF:hF}),OYn=(e,t)=>{const n=Ju(e,"useGridSelection"),r=v.useCallback(q=>(...$)=>{t.rowSelection&&q(...$)},[t.rowSelection]),i=Qt(e,xB)>1,o=t.signature!==cm.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants)&&i,a=v.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),s=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:a,propOnChange:t.onRowSelectionModelChange,stateSelector:jg,changeEvent:"rowSelectionChange"});const{checkboxSelection:l,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=mwe(t),p=Qt(e,Qc),h=v.useCallback(q=>{let $=q;const U=s.current??q,X=e.current.isRowSelected(q);if(X){const Q=KO(e),re=Q.findIndex(se=>se===U),ee=Q.findIndex(se=>se===$);if(re===ee)return;re>ee?$=Q[ee+1]:$=Q[ee-1]}s.current=q,e.current.selectRowRange({startId:U,endId:$},!X)},[e]),g=en(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?kpt(e):KO(e)),m=v.useCallback((q,$)=>{if(t.signature===cm.DataGrid&&!d&&(q.type!=="include"||q.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
`));jg(e)!==q&&(n.debug("Setting selection model"),e.current.setState(X=>Y({},X,{rowSelection:t.rowSelection?q:hF}),$))},[e,n,t.rowSelection,t.signature,d]),b=v.useCallback(q=>OB(e).has(q),[e]),y=v.useCallback(q=>{if(t.rowSelection===!1||u&&!u(e.current.getRowParams(q)))return!1;const $=fb(e,q);return!($?.type==="footer"||$?.type==="pinnedRow")},[e,t.rowSelection,u]),M=v.useCallback(()=>Apt(e),[e]),C=v.useCallback((q,$=!0,U=!1)=>{if(e.current.isRowSelectable(q))if(s.current=q,U){n.debug(`Setting selection for row ${q}`);const X={type:"include",ids:new Set},Q=re=>{X.ids.add(re)};$&&(Q(q),o&&Z4(e,p,q,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Q)),e.current.setRowSelectionModel(X,"singleRowSelection")}else{n.debug(`Toggling selection for row ${q}`);const X=jg(e),Q={type:X.type,ids:new Set(X.ids)},re=QC(Q);re.unselect(q);const ee=te=>{re.select(te)},se=te=>{re.unselect(te)};$?(ee(q),o&&Z4(e,p,q,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,ee)):o&&$_e(e,p,q,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,se),(Q.type==="include"&&Q.ids.size<2||d)&&e.current.setRowSelectionModel(Q,"singleRowSelection")}},[e,n,o,p,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,d]),x=v.useCallback((q,$=!0,U=!1)=>{if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const X=new Set;for(let se=0;se<q.length;se+=1){const pe=q[se];e.current.isRowSelectable(pe)&&X.add(pe)}const Q=jg(e);let re;if(U){if(re={type:"include",ids:X},$){const se=QC(re);if(o){const pe=te=>{se.select(te)};for(const te of X)Z4(e,p,te,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,pe)}}else re.ids=new Set;if(Q.type===re.type&&re.ids.size===Q.ids.size&&Array.from(re.ids).every(se=>Q.ids.has(se)))return}else{re={type:Q.type,ids:new Set(Q.ids)};const se=QC(re),pe=ce=>{se.select(ce)},te=ce=>{se.unselect(ce)};for(const ce of X)$?(se.select(ce),o&&Z4(e,p,ce,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,pe)):(te(ce),o&&$_e(e,p,ce,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,te))}(re.type==="include"&&re.ids.size<2||d)&&e.current.setRowSelectionModel(re,"multipleRowsSelection")},[n,o,d,e,p,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),w=v.useCallback(q=>{if(!i||!o||q.type==="exclude"||q.ids.size===0&&q.type==="include")return q;const $={type:q.type,ids:new Set(q.ids)},U=QC($),X=Q=>{U.select(Q)};for(const Q of q.ids)Z4(e,p,Q,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,X,U);return $},[e,p,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,i,o]),S=v.useCallback(({startId:q,endId:$},U=!0,X=!1)=>{if(!e.current.getRow(q)||!e.current.getRow($))return;n.debug(`Expanding selection from row ${q} to row ${$}`);const Q=KO(e),re=Q.indexOf(q),ee=Q.indexOf($),[se,pe]=re>ee?[ee,re]:[re,ee],te=Q.slice(se,pe+1);e.current.selectRows(te,U,X)},[e,n]),A={selectRow:C,setRowSelectionModel:m,getSelectedRows:M,isRowSelected:b,isRowSelectable:y},z={selectRows:x,selectRowRange:S,getPropagatedRowSelectionModel:w};Gi(e,A,"public"),Gi(e,z,t.signature===cm.DataGrid?"private":"public");const O=v.useRef(!0),T=v.useCallback((q=!1)=>{if(O.current)return;const $=jg(e),U=yf(e),X=Qc(e),Q=UD(e),re=ce=>t.filterMode==="server"?!U[ce]:!X[ce]||Q[ce]===!1,ee={type:$.type,ids:new Set($.ids)},se=QC(ee);let pe=!1;for(const ce of $.ids){if(re(ce)){if(t.keepNonExistentRowsSelected)continue;se.unselect(ce),pe=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;const oe=p[ce];if(oe?.type==="group"){if(oe.isAutoGenerated){se.unselect(ce),pe=!0;continue}oe.children.every(ne=>Q[ne]===!1)||(se.unselect(ce),pe=!0)}}const te=i&&t.rowSelectionPropagation?.parents&&(ee.ids.size>0||ee.type==="exclude");if(pe||te&&!q)if(te)if(ee.type==="exclude"){const ce=g(),oe=[];for(let ae=0;ae<ce.length;ae+=1){const ne=ce[ae];(t.keepNonExistentRowsSelected||!re(ne))&&se.has(ne)&&oe.push(ne)}e.current.selectRows(oe,!0,!0)}else e.current.selectRows(Array.from(ee.ids),!0,!0);else e.current.setRowSelectionModel(ee,"multipleRowsSelection")},[e,i,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,p,g]),R=v.useCallback((q,$)=>{const U=$.metaKey||$.ctrlKey,X=!l&&!U&&!OHn($),Q=!d||X,re=e.current.isRowSelected(q),pe=FZ(e)>1&&Q||!re;e.current.selectRow(q,pe,Q)},[e,d,l]),P=v.useCallback((q,$)=>{if(c)return;const U=$.target.closest(`.${Te.cell}`)?.getAttribute("data-field");U===YD.field||U===uwe||U&&e.current.getColumn(U)?.type===LZ||fb(e,q.id).type==="pinnedRow"||($.shiftKey&&d?h(q.id):R(q.id,$))},[c,d,e,h,R]),F=v.useCallback((q,$)=>{d&&$.shiftKey&&window.getSelection()?.removeAllRanges()},[d]),N=v.useCallback((q,$)=>{d&&$.nativeEvent.shiftKey?h(q.id):e.current.selectRow(q.id,q.value,!d)},[e,h,d]),L=v.useCallback(q=>{const $=mu(e),U=Cpt(e),X=$.items.length>0||U?.some(Q=>Q.length);!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&(!i||t.rowSelectionPropagation?.descendants)&&!X&&!t.disableRowSelectionExcludeModel?e.current.setRowSelectionModel({type:q?"exclude":"include",ids:new Set},"multipleRowsSelection"):e.current.selectRows(g(),q)},[e,g,t.checkboxSelectionVisibleOnly,t.isRowSelectable,t.rowSelectionPropagation?.descendants,t.disableRowSelectionExcludeModel,i]),W=v.useCallback(q=>{L(q.value)},[L]),j=v.useCallback((q,$)=>{if(e.current.getCellMode(q.id,q.field)!==va.Edit&&!RB($)){if(B9($.key)&&$.shiftKey){const U=G1(e);if(U&&U.id!==q.id){$.preventDefault();const X=e.current.isRowSelected(U.id);if(!d){e.current.selectRow(U.id,!X,!0);return}const Q=e.current.getRowIndexRelativeToVisibleRows(U.id),re=e.current.getRowIndexRelativeToVisibleRows(q.id);let ee,se;Q>re?X?(ee=re,se=Q-1):(ee=re,se=Q):X?(ee=Q+1,se=re):(ee=Q,se=re);const pe=zI(e),te=[];for(let ce=ee;ce<=se;ce+=1)te.push(pe.rows[ce].id);e.current.selectRows(te,!X);return}}if($.key===" "&&$.shiftKey){$.preventDefault(),R(q.id,$);return}String.fromCharCode($.keyCode)==="A"&&($.ctrlKey||$.metaKey)&&($.preventDefault(),d&&L(!0))}},[e,d,R,L]),V=en(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(hF);return}if(a===void 0)return;if(!o||!i||a.type==="include"&&a.ids.size===0){e.current.setRowSelectionModel(a);return}const q=e.current.getPropagatedRowSelectionModel(a);if(q.type!==a.type||q.ids.size!==a.ids.size||!Array.from(a.ids).every($=>q.ids.has($))){e.current.setRowSelectionModel(q);return}e.current.setRowSelectionModel(a)});Yn(e,"sortedRowsSet",r(()=>T(!0))),Yn(e,"filteredRowsSet",r(()=>T())),Yn(e,"rowClick",r(P)),Yn(e,"rowSelectionCheckboxChange",r(N)),Yn(e,"headerSelectionCheckboxChange",W),Yn(e,"cellMouseDown",r(F)),Yn(e,"cellKeyDown",r(j)),v.useEffect(()=>{V()},[e,a,t.rowSelection,V]);const G=a!=null;v.useEffect(()=>{if(G||!t.rowSelection||typeof y!="function")return;const q=jg(e);if(q.type!=="include")return;const $=new Set;for(const U of q.ids)y(U)&&$.add(U);$.size<q.ids.size&&e.current.setRowSelectionModel({type:q.type,ids:$})},[e,y,G,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||G)return;const q=jg(e);!d&&(q.type==="include"&&q.ids.size>1||q.type==="exclude")&&e.current.setRowSelectionModel(hF)},[e,d,l,G,t.rowSelection]),v.useEffect(()=>{r(T)},[T,r]),v.useEffect(()=>{O.current&&(O.current=!1)},[])},zYn=e=>{const{classes:t}=e;return v.useMemo(()=>Yt({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},lo,t),[t])},TYn=(e,t)=>{const n={classes:t.classes},r=zYn(n),i=v.useCallback(o=>{const a=Y({},YD,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=o.lookup[Lg]!=null;return s&&!l?(o.lookup[Lg]=a,o.orderedFields=[Lg,...o.orderedFields]):!s&&l?(delete o.lookup[Lg],o.orderedFields=o.orderedFields.filter(c=>c!==Lg)):s&&l&&(o.lookup[Lg]=Y({},a,o.lookup[Lg]),t.columns.some(c=>c.field===Lg)||(o.orderedFields=[Lg,...o.orderedFields.filter(c=>c!==Lg)])),o},[e,r,t.columns,t.checkboxSelection]);rl(e,"hydrateColumns",i)},EYn=(e,t)=>{const n=t.sortModel??t.initialState?.sorting?.sortModel??[];return Y({},e,{sorting:{sortModel:Z1t(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},RYn=(e,t)=>{const n=Ju(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Qh,changeEvent:"sortModelChange"});const r=v.useCallback((w,S)=>{const A=Qh(e),z=A.findIndex(T=>T.field===w);let O=[...A];return z>-1?S?.sort==null?O.splice(z,1):O.splice(z,1,S):O=[...A,S],O},[e]),i=v.useCallback((w,S)=>{const z=Qh(e).find(O=>O.field===w.field);if(z){const O=S===void 0?W_e(w.sortingOrder??t.sortingOrder,z.sort):S;return O===void 0?void 0:Y({},z,{sort:O})}return{field:w.field,sort:S===void 0?W_e(w.sortingOrder??t.sortingOrder):S}},[e,t.sortingOrder]),o=v.useCallback((w,S)=>S==null||S.sortable===!1||t.disableColumnSorting?w:(S.sortingOrder||t.sortingOrder).some(z=>!!z)?[...w,"columnMenuSortItem"]:w,[t.sortingOrder,t.disableColumnSorting]),a=v.useCallback(()=>{e.current.setState(w=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),Y({},w,{sorting:Y({},w.sorting,{sortedRows:rwe(Qc(e),Dl,!1)})});const S=Qh(e),A=iHn(S,e),z=e.current.applyStrategyProcessor("sorting",{sortRowList:A});return Y({},w,{sorting:Y({},w.sorting,{sortedRows:z})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),s=v.useCallback(w=>{Qh(e)!==w&&(n.debug("Setting sort model"),e.current.setState(F_e(w,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=v.useCallback((w,S,A)=>{const z=e.current.getColumn(w),O=i(z,S);let T;!A||t.disableMultipleColumnsSorting?T=O?.sort==null?[]:[O]:T=r(z.field,O),e.current.setSortModel(T)},[e,r,i,t.disableMultipleColumnsSorting]),c=v.useCallback(()=>Qh(e),[e]),u=v.useCallback(()=>dwe(e).map(S=>S.model),[e]),d=v.useCallback(()=>AB(e),[e]),p=v.useCallback(w=>e.current.getSortedRowIds()[w],[e]);Gi(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:d,getRowIdFromRowIndex:p,setSortModel:s,sortColumn:l,applySorting:a},"public");const g=v.useCallback((w,S)=>{const A=Qh(e);return!S.exportOnlyDirtyModels||t.sortModel!=null||t.initialState?.sorting?.sortModel!=null||A.length>0?Y({},w,{sorting:{sortModel:A}}):w},[e,t.sortModel,t.initialState?.sorting?.sortModel]),m=v.useCallback((w,S)=>{const A=S.stateToRestore.sorting?.sortModel;return A==null?w:(e.current.setState(F_e(A,t.disableMultipleColumnsSorting)),Y({},w,{callbacks:[...w.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=v.useCallback(w=>{const S=Qc(e),A=S[Dl],z=w.sortRowList?w.sortRowList(A.children.map(O=>S[O])):[...A.children];return A.footerId!=null&&z.push(A.footerId),z},[e]);rl(e,"exportState",g),rl(e,"restoreState",m),eq(e,$z,"sorting",b);const y=v.useCallback(({field:w,colDef:S},A)=>{if(!S.sortable||t.disableColumnSorting)return;const z=t.multipleColumnsSortingMode==="always"||A.shiftKey||A.metaKey||A.ctrlKey;l(w,void 0,z)},[l,t.disableColumnSorting,t.multipleColumnsSortingMode]),M=v.useCallback(({field:w,colDef:S},A)=>{!S.sortable||t.disableColumnSorting||A.key==="Enter"&&!A.ctrlKey&&!A.metaKey&&l(w,void 0,t.multipleColumnsSortingMode==="always"||A.shiftKey)},[l,t.disableColumnSorting,t.multipleColumnsSortingMode]),C=v.useCallback(()=>{const w=Qh(e),S=xM(e);if(w.length>0){const A=w.filter(z=>S[z.field]);A.length<w.length&&e.current.setSortModel(A)}},[e]),x=v.useCallback(w=>{w==="sorting"&&e.current.applySorting()},[e]);rl(e,"columnMenu",o),Yn(e,"columnHeaderClick",y),Yn(e,"columnHeaderKeyDown",M),Yn(e,"rowsSet",e.current.applySorting),Yn(e,"columnsChange",C),Yn(e,"activeStrategyProcessorChange",x),KD(()=>{e.current.applySorting()}),Ro(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function S5e(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:i}=e,o=i+r;if(r>t)return i;if(o-t>n)return o-t;if(i<n)return i}const IYn=(e,t)=>{const n=ts(),r=Ju(e,"useGridScroll"),i=e.current.columnHeadersContainerRef,o=e.current.virtualScrollerRef,a=Qt(e,W3),s=v.useCallback(d=>{const p=Ks(e),h=GD(e),g=xl(e);if(!(d.rowIndex==null)&&h===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let b={};if(d.colIndex!==void 0){const y=F3(e);let M;if(typeof d.rowIndex<"u"){const C=a[d.rowIndex]?.id,x=e.current.unstable_getCellColSpanInfo(C,d.colIndex);x&&!x.spannedByColSpan&&(M=x.cellProps.width)}typeof M>"u"&&(M=g[d.colIndex].computedWidth),b.left=S5e({containerSize:p.viewportOuterSize.width,scrollPosition:Math.abs(o.current.scrollLeft),elementSize:M,elementOffset:y[d.colIndex]})}if(d.rowIndex!==void 0){const y=nwe(e),M=b8n(e),C=Ppt(e),x=t.pagination?d.rowIndex-M*C:d.rowIndex,w=y.positions[x+1]?y.positions[x+1]-y.positions[x]:y.currentPageTotalHeight-y.positions[x];b.top=S5e({containerSize:p.viewportInnerSize.height,scrollPosition:o.current.scrollTop,elementSize:w,elementOffset:y.positions[x]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,d),typeof b.left<"u"||typeof b.top<"u"?(e.current.scroll(b),!0):!1},[r,e,o,t.pagination,a]),l=v.useCallback(d=>{if(o.current&&d.left!==void 0&&i.current){const p=n?-1:1;i.current.scrollLeft=d.left,o.current.scrollLeft=p*d.left,r.debug(`Scrolling left: ${d.left}`)}o.current&&d.top!==void 0&&(o.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[o,n,i,r]),c=v.useCallback(()=>o?.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0},[o]);Gi(e,{scroll:l,scrollToIndexes:s,getScrollPosition:c},"public")};function PYn(e,t){Ka(e,"columnHeaderClick",t.onColumnHeaderClick),Ka(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Ka(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ka(e,"columnHeaderOver",t.onColumnHeaderOver),Ka(e,"columnHeaderOut",t.onColumnHeaderOut),Ka(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ka(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ka(e,"cellClick",t.onCellClick),Ka(e,"cellDoubleClick",t.onCellDoubleClick),Ka(e,"cellKeyDown",t.onCellKeyDown),Ka(e,"preferencePanelClose",t.onPreferencePanelClose),Ka(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ka(e,"menuOpen",t.onMenuOpen),Ka(e,"menuClose",t.onMenuClose),Ka(e,"rowDoubleClick",t.onRowDoubleClick),Ka(e,"rowClick",t.onRowClick),Ka(e,"stateChange",t.onStateChange)}const e_={width:0,height:0},DYn={isReady:!1,root:e_,viewportOuterSize:e_,viewportInnerSize:e_,contentSize:e_,minimumSize:e_,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},kYn=(e,t,n)=>{const r=DYn,i=wB(n);return Y({},e,{dimensions:Y({},r,NYn(t,n,i,PZ(n)))})},LYn=rr(xl,F3,(e,t)=>{const n=e.length;return n===0?0:mht(t[n-1]+e[n-1].computedWidth,1)});function _Yn(e,t){const n=e.current.virtualizer,r=n.api.updateDimensions,i=n.api.getViewportPageSize,a={getRootDimensions:v.useCallback(()=>Ks(e),[e])},s={updateDimensions:r,getViewportPageSize:i};Gi(e,a,"public"),Gi(e,s,"private"),Ka(e,"rootMount",c=>{A5e(c,Ks(e))}),Ka(e,"debouncedResize",t.onResize),Lge(e.current.store,c=>c.dimensions,(c,u)=>{e.current.rootElementRef.current&&A5e(e.current.rootElementRef.current,u),FYn(u.viewportInnerSize,c.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",u.viewportInnerSize),e.current.publishEvent("debouncedResize",u.root)})}function A5e(e,t){const n=(r,i)=>e.style.setProperty(r,i);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function NYn(e,t,n,r){const i=Y1t(e.rowHeight,K9.rowHeight);return{rowHeight:Math.floor(i*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:LYn(t),headersTotalHeight:EB(t,e),leftPinnedWidth:r.left.reduce((o,a)=>o+a.computedWidth,0),rightPinnedWidth:r.right.reduce((o,a)=>o+a.computedWidth,0)}}function FYn(e,t){return e.width===t.width&&e.height===t.height}const WYn=(e,t,n)=>{const r=xjn(n),i=GD(n),o=XD(n),a=Math.min(o.enabled?o.paginationModel.pageSize:i,i);return Y({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},(s,l)=>l*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},qYn=(e,t)=>{const n=e.current.virtualizer,{getRowHeight:r,setLastMeasuredRowIndex:i,storeRowHeightMeasurement:o,resetRowHeights:a,hydrateRowsMeta:s,observeRowHeight:l,rowHasAutoHeight:c,getRowHeightEntry:u,getLastMeasuredRowIndex:d}=n.api.rowsMeta;zwe(e,"rowHeight",s);const p={unstable_getRowHeight:r,unstable_setLastMeasuredRowIndex:i,unstable_storeRowHeightMeasurement:o,resetRowHeights:a},h={hydrateRowsMeta:s,observeRowHeight:l,rowHasAutoHeight:c,getRowHeightEntry:u,getLastMeasuredRowIndex:d};Gi(e,p,"public"),Gi(e,h,"private")},BYn=e=>{const t=v.useCallback((i={})=>e.current.unstable_applyPipeProcessors("exportState",{},i),[e]),n=v.useCallback(i=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:i}).callbacks.forEach(a=>{a()})},[e]);Gi(e,{exportState:t,restoreState:n},"public")},jYn=e=>{const t=e.current.virtualizer,n=t.api.resetColSpan,r=t.api.getCellColSpanInfo,i=t.api.calculateColSpan,o={unstable_getCellColSpanInfo:r},a={resetColSpan:n,calculateColSpan:i};Gi(e,o,"public"),Gi(e,a,"private"),Yn(e,"columnOrderChange",n)},HYn=["groupId","children"],Twe=e=>{const t={};for(let n=0;n<e.length;n+=1){const r=e[n];if(rpt(r))continue;const{groupId:i,children:o}=r,a=Lt(r,HYn);if(!i)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const s=Y({},a,{groupId:i}),l=Twe(o);if(l[i]!==void 0||t[i]!==void 0)throw new Error(`MUI X: The groupId ${i} is used multiple times in the columnGroupingModel.`);Object.assign(t,l),t[i]=s}return t},Mht=(e,t,n)=>{if(rpt(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
`));n[e.field]=t;return}const{groupId:r,children:i}=e;i.forEach(o=>{Mht(o,[...t,r],n)})},jge=e=>{if(!e)return{};const t={};return e.forEach(n=>{Mht(n,[],t)}),t},Hge=(e,t,n)=>{const r=l=>t[l]??[],i=[],o=Math.max(0,...e.map(l=>r(l).length)),a=(l,c,u)=>{const d=r(l),p=r(c);for(let h=0;h<=u;h+=1)if(d[h]!==p[h])return!1;return!0},s=(l,c)=>{const u=n?.left,d=n?.right,p=!!u?.includes(l),h=!!u?.includes(c),g=!!d?.includes(l),m=!!d?.includes(c);return p!==h||g!==m};for(let l=0;l<o;l+=1){const c=[];for(let u=0;u<e.length;u+=1){const d=e[u],p=r(d)[l]??null;if(c.length===0){c.push({columnFields:[d],groupId:p});continue}const h=c[c.length-1],g=h.columnFields[h.columnFields.length-1];h.groupId!==p||!a(g,d,l)||s(g,d)?c.push({columnFields:[d],groupId:p}):h.columnFields.push(d)}i.push(c)}return i},VYn=(e,t,n)=>{if(n.current.caches.columnGrouping={lastColumnGroupingModel:t.columnGroupingModel},!t.columnGroupingModel)return e;const r=gb(n),i=SB(n),o=Twe(t.columnGroupingModel??[]),a=jge(t.columnGroupingModel??[]),s=Hge(r,a,n.current.state.pinnedColumns??{}),l=i.length===0?0:Math.max(...i.map(c=>a[c]?.length??0));return Y({},e,{columnGrouping:{lookup:o,unwrappedGroupingModel:a,headerStructure:s,maxDepth:l}})},GYn=(e,t)=>{const n=v.useCallback(s=>Fpt(e)[s]??[],[e]),r=v.useCallback(()=>Wpt(e),[e]);Gi(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const o=v.useCallback(()=>{const s=jge(t.columnGroupingModel??[]);e.current.setState(l=>{const c=l.columns?.orderedFields??[],u=l.pinnedColumns??{},d=Hge(c,s,u);return Y({},l,{columnGrouping:Y({},l.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),a=v.useCallback(s=>{e.current.caches.columnGrouping.lastColumnGroupingModel=s;const l=e.current.getPinnedColumns?.()??{},c=gb(e),u=SB(e),d=Twe(s??[]),p=jge(s??[]),h=Hge(c,p,l),g=u.length===0?0:Math.max(...u.map(m=>p[m]?.length??0));e.current.setState(m=>Y({},m,{columnGrouping:{lookup:d,unwrappedGroupingModel:p,headerStructure:h,maxDepth:g}}))},[e]);Yn(e,"columnIndexChange",o),Yn(e,"columnsChange",()=>{a(t.columnGroupingModel)}),Yn(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),v.useEffect(()=>{t.columnGroupingModel!==e.current.caches.columnGrouping.lastColumnGroupingModel&&a(t.columnGroupingModel)},[e,a,t.columnGroupingModel])};function $Yn(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function O5e(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function z5e(e,t,n,r){let i=e;return r==="Right"?i+=t-n.left:i+=n.right-t,Math.round(i)}function UYn(e,t,n){return n==="Left"?e-t.left:t.right-e}function XYn(e){return e==="Right"?"Left":"Right"}function YYn(e,t){const n=e.classList.contains(Te["columnSeparator--sideRight"])?"Right":"Left";return t?XYn(n):n}function T5e(e,t){return t===Fv.LEFT?e?"--DataGrid-rightPinnedWidth":"--DataGrid-leftPinnedWidth":e?"--DataGrid-leftPinnedWidth":"--DataGrid-rightPinnedWidth"}function E5e(e,t,n){return n===Fv.LEFT?t?e.rightPinnedWidth:e.leftPinnedWidth:t?e.leftPinnedWidth:e.rightPinnedWidth}function R5e(e){e.preventDefault(),e.stopImmediatePropagation()}function KYn(e){const t=v.useRef(void 0),n=()=>NGn(e),r=Qt(e,n);return v.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=$Yn()}return t.current}}function QYn(e,t){if(e.length<4)return e;const n=e.slice();n.sort((s,l)=>s-l);const r=n[Math.floor(n.length*.25)],i=n[Math.floor(n.length*.75)-1],o=i-r,a=o<5?5:o*t;return n.filter(s=>s>r-a&&s<i+a)}function ZYn(e,t,n){const r={},i=e.current.rootElementRef.current;return i.classList.add(Te.autosizing),n.forEach(o=>{const s=g$n(e.current,o.field).map(g=>g.getBoundingClientRect().width??0),l=t.includeOutliers?s:QYn(s,t.outliersFactor);if(t.includeHeaders){const g=f$n(e.current,o.field);if(g){const m=g.querySelector(`.${Te.columnHeaderTitle}`),b=g.querySelector(`.${Te.columnHeaderTitleContainerContent}`),y=g.querySelector(`.${Te.iconButtonContainer}`),M=g.querySelector(`.${Te.menuIcon}`),C=m??b,x=window.getComputedStyle(g,null),w=parseInt(x.paddingLeft,10)+parseInt(x.paddingRight,10),A=C.scrollWidth+1+w+(y?.clientWidth??0)+(M?.clientWidth??0);l.push(A)}}const c=o.minWidth!==-1/0&&o.minWidth!==void 0,u=o.maxWidth!==1/0&&o.maxWidth!==void 0,d=c?o.minWidth:0,p=u?o.maxWidth:1/0,h=l.length===0?0:Math.max(...l);r[o.field]=YO(h,d,p)}),i.classList.remove(Te.autosizing),r}const JYn=e=>Y({},e,{columnResize:{resizingColumnField:""}});function eKn(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const tKn=(e,t)=>{const n=ts(),r=Ju(e,"useGridColumnResize"),i=xp(eKn).current,o=v.useRef(null),a=v.useRef(null),s=Qp(),l=v.useRef(void 0),c=O=>{r.debug(`Updating width to ${O} for col ${i.colDef.field}`);const T=i.columnHeaderElement.offsetWidth,R=O-T,P=O-i.initialColWidth;if(P>0){const W=i.initialTotalWidth+P;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${W}px`)}i.colDef.computedWidth=O,i.colDef.width=O,i.colDef.flex=0,i.columnHeaderElement.style.width=`${O}px`;const F=i.headerFilterElement;F&&(F.style.width=`${O}px`),i.groupHeaderElements.forEach(W=>{const j=W;let V;j.getAttribute("aria-colspan")==="1"?V=`${O}px`:V=`${j.offsetWidth+R}px`,j.style.width=V}),i.cellElements.forEach(W=>{const j=W;let V;j.getAttribute("aria-colspan")==="1"?V=`${O}px`:V=`${j.offsetWidth+R}px`,j.style.setProperty("--width",V)});const N=Ks(e),L=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);L===Fv.LEFT&&(_E(i.fillerLeft,"width",R),i.leftPinnedCellsAfter.forEach(W=>{_E(W,"left",R)}),i.leftPinnedHeadersAfter.forEach(W=>{_E(W,"left",R)}),e.current.rootElementRef?.current?.style.setProperty(T5e(n,L),`${E5e(N,n,L)+P}px`)),L===Fv.RIGHT&&(_E(i.fillerRight,"width",R),i.rightPinnedCellsBefore.forEach(W=>{_E(W,"right",R)}),i.rightPinnedHeadersBefore.forEach(W=>{_E(W,"right",R)}),e.current.rootElementRef?.current?.style.setProperty(T5e(n,L),`${E5e(N,n,L)+P}px`))},u=O=>{if(y(),i.previousMouseClickEvent){const T=i.previousMouseClickEvent,R=T.timeStamp,P=T.clientX,F=T.clientY;if(O.timeStamp-R<300&&O.clientX===P&&O.clientY===F){i.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,O);return}}if(i.colDef){e.current.setColumnWidth(i.colDef.field,i.colDef.width),r.debug(`Updating col ${i.colDef.field} with new width: ${i.colDef.width}`);const T=um(e);i.groupHeaderElements.forEach(R=>{const P=s$n(R),F=R,L=`${P.reduce((W,j)=>T.columnVisibilityModel[j]!==!1?W+T.lookup[j].computedWidth:W,0)}px`;F.style.width=L})}s.start(0,()=>{e.current.publishEvent("columnResizeStop",null,O)})},d=(O,T,R)=>{const P=e.current.rootElementRef.current;i.initialColWidth=O.computedWidth,i.initialTotalWidth=e.current.getRootDimensions().rowWidth,i.colDef=O,i.columnHeaderElement=a$n(e.current.columnHeadersContainerRef.current,O.field);const F=P.querySelector(`.${Te.headerFilterRow} [data-field="${wM(O.field)}"]`);F&&(i.headerFilterElement=F),i.groupHeaderElements=l$n(e.current.columnHeadersContainerRef?.current,O.field),i.cellElements=c$n(i.columnHeaderElement,e.current),i.fillerLeft=u5e(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),i.fillerRight=u5e(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const N=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);i.leftPinnedCellsAfter=N!==Fv.LEFT?[]:u$n(e.current,i.columnHeaderElement,n),i.rightPinnedCellsBefore=N!==Fv.RIGHT?[]:d$n(e.current,i.columnHeaderElement,n),i.leftPinnedHeadersAfter=N!==Fv.LEFT?[]:p$n(e.current,i.columnHeaderElement,n),i.rightPinnedHeadersBefore=N!==Fv.RIGHT?[]:h$n(e.current,i.columnHeaderElement,n),a.current=YYn(T,n),o.current=UYn(R,i.columnHeaderElement.getBoundingClientRect(),a.current)},p=en(u),h=en(O=>{if(O.buttons===0){p(O);return}let T=z5e(o.current,O.clientX,i.columnHeaderElement.getBoundingClientRect(),a.current);T=YO(T,i.colDef.minWidth,i.colDef.maxWidth),c(T);const R={element:i.columnHeaderElement,colDef:i.colDef,width:T};e.current.publishEvent("columnResize",R,O)}),g=en(O=>{O5e(O,l.current)&&u(O)}),m=en(O=>{const T=O5e(O,l.current);if(!T)return;if(O.type==="mousemove"&&O.buttons===0){g(O);return}let R=z5e(o.current,T.x,i.columnHeaderElement.getBoundingClientRect(),a.current);R=YO(R,i.colDef.minWidth,i.colDef.maxWidth),c(R);const P={element:i.columnHeaderElement,colDef:i.colDef,width:R};e.current.publishEvent("columnResize",P,O)}),b=en(O=>{const T=U9(O.target,Te["columnSeparator--resizable"]);if(!T)return;const R=O.changedTouches[0];R!=null&&(l.current=R.identifier);const P=U9(O.target,Te.columnHeader),F=o$n(P),N=e.current.getColumn(F);r.debug(`Start Resize on col ${N.field}`),e.current.publishEvent("columnResizeStart",{field:F},O),d(N,T,R.clientX);const L=Ds(O.currentTarget);L.addEventListener("touchmove",m),L.addEventListener("touchend",g)}),y=v.useCallback(()=>{const O=Ds(e.current.rootElementRef.current);O.body.style.removeProperty("cursor"),O.removeEventListener("mousemove",h),O.removeEventListener("mouseup",p),O.removeEventListener("touchmove",m),O.removeEventListener("touchend",g),setTimeout(()=>{O.removeEventListener("click",R5e,!0)},100),i.columnHeaderElement&&(i.columnHeaderElement.style.pointerEvents="unset")},[e,i,h,p,m,g]),M=v.useCallback(({field:O})=>{e.current.setState(T=>Y({},T,{columnResize:Y({},T.columnResize,{resizingColumnField:O})}))},[e]),C=v.useCallback(()=>{e.current.setState(O=>Y({},O,{columnResize:Y({},O.columnResize,{resizingColumnField:""})}))},[e]),x=en(({colDef:O},T)=>{if(T.button!==0||!T.currentTarget.classList.contains(Te["columnSeparator--resizable"]))return;T.preventDefault(),r.debug(`Start Resize on col ${O.field}`),e.current.publishEvent("columnResizeStart",{field:O.field},T),d(O,T.currentTarget,T.clientX);const R=Ds(e.current.rootElementRef.current);R.body.style.cursor="col-resize",i.previousMouseClickEvent=T.nativeEvent,R.addEventListener("mousemove",h),R.addEventListener("mouseup",p),R.addEventListener("click",R5e,!0)}),w=en((O,T)=>{if(t.disableAutosize||T.button!==0)return;const R=e.current.state.columns.lookup[O.field];R.resizable!==!1&&e.current.autosizeColumns(Y({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[R.field]}))}),S=KYn(e),A=v.useRef(!1),z=v.useCallback(async O=>{if(!e.current.rootElementRef?.current||A.current)return;A.current=!0;const R=um(e),P=Y({},RVn,O,{columns:O?.columns??R.orderedFields});P.columns=P.columns.filter(N=>R.columnVisibilityModel[N]!==!1);const F=P.columns.map(N=>e.current.state.columns.lookup[N]);try{!t.disableVirtualization&&P.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await S());const N=ZYn(e,P,F),L=F.map(W=>Y({},W,{width:N[W.field],computedWidth:N[W.field],flex:0}));if(P.expand){const j=R.orderedFields.map($=>R.lookup[$]).filter($=>R.columnVisibilityModel[$.field]!==!1).reduce(($,U)=>$+(N[U.field]??U.computedWidth??U.width),0),q=e.current.getRootDimensions().viewportInnerSize.width-j;if(q>0){const $=q/(L.length||1);L.forEach(U=>{U.width+=$,U.computedWidth+=$})}}e.current.updateColumns(L),L.forEach((W,j)=>{if(W.width!==F[j].width){const V=W.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(W.field),colDef:W,width:V})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),A.current=!1}},[e,S,t.disableVirtualization]);v.useEffect(()=>y,[y]),X6(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Vpt(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",b,{passive:!0}),Gi(e,{autosizeColumns:z},"public"),Yn(e,"columnResizeStop",C),Yn(e,"columnResizeStart",M),Yn(e,"columnSeparatorMouseDown",x),Yn(e,"columnSeparatorDoubleClick",w),Ka(e,"columnResize",t.onColumnResize),Ka(e,"columnWidthChange",t.onColumnWidthChange)};function _E(e,t,n){e&&(e.style[t]=`${Math.round(parseFloat(e.style[t]))+n}px`)}function nKn(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function I5e(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const _oe=(e,t,n)=>{if(!e)return null;let r=e[t.field];const i=t.rowSpanValueGetter??t.valueGetter;return i&&(r=i(r,e,t,n)),r},Cht={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},rKn={firstRowIndex:0,lastRowIndex:0},ZC={caches:Cht,processedRange:rKn},P5e=20,xht=(e,t,n,r,i,o)=>{const a=e.current.virtualizer,s=o?ZC:TP.selectors.state(a.store.state),l=Y({},s.caches.spannedCells),c=Y({},s.caches.hiddenCells),u=Y({},s.caches.hiddenCellOriginMap),d={firstRowIndex:Math.min(s.processedRange.firstRowIndex,i.firstRowIndex),lastRowIndex:Math.max(s.processedRange.lastRowIndex,i.lastRowIndex)};return t.forEach((p,h)=>{for(let g=i.firstRowIndex;g<i.lastRowIndex;g+=1){const m=n[g];if(c[m.id]?.[h])continue;const b=_oe(m.model,p,e);if(b==null)continue;let y=m.id,M=g,C=0;const x=[];if(g===i.firstRowIndex){let S=g-1,A=n[S];for(;S>=r.firstRowIndex&&A&&_oe(A.model,p,e)===b;){const z=n[S+1];c[z.id]?c[z.id][h]=!0:c[z.id]={[h]:!0},x.push(g),C+=1,y=A.id,M=S,S-=1,A=n[S]}}x.forEach(S=>{u[S]?u[S][h]=M:u[S]={[h]:M}});let w=g+1;for(;w<=r.lastRowIndex&&n[w]&&_oe(n[w].model,p,e)===b;){const S=n[w];c[S.id]?c[S.id][h]=!0:c[S.id]={[h]:!0},u[w]?u[w][h]=M:u[w]={[h]:M},w+=1,C+=1}C>0&&(l[y]?l[y][h]=C+1:l[y]={[h]:C+1})}}),{caches:{spannedCells:l,hiddenCells:c,hiddenCellOriginMap:u},processedRange:d}},iKn=(e,t)=>{const n=hO(t).length;if(e.pagination){const r=Ppt(t);let i=P5e;return r>0&&(i=r-1),{firstRowIndex:0,lastRowIndex:Math.min(i,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(P5e,n)}},oKn=(e,t,n)=>{if(!t.rowSpanning)return Y({},e,{rowSpanning:ZC});const r=e.rows.dataRowIds||[],i=e.columns.orderedFields||[],o=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,s=!!e.filter.filterModel.items.length||!!e.filter.filterModel.quickFilterValues?.length;if(!r.length||!i.length||!o||!a||s)return Y({},e,{rowSpanning:ZC});const l=iKn(t,n),c=r.map(p=>({id:p,model:o[p]})),u=i.map(p=>a[p]),d=xht(n,u,c,l,l,!0);return Y({},e,{rowSpanning:d})},aKn=(e,t)=>{const n=e.current.virtualizer.store,r=v.useCallback((o,a=!1)=>{const{range:s,rows:l}=zI(e);if(a&&n.getSnapshot().rowSpanning!==ZC&&n.set("rowSpanning",ZC),s===null||!I5e(o))return;const c=a?ZC:TP.selectors.state(n.state),u=nKn({firstRowIndex:o.firstRowIndex,lastRowIndex:Math.min(o.lastRowIndex,s.lastRowIndex-s.firstRowIndex+1)},c.processedRange);if(u===null)return;const d=xl(e),p=xht(e,d,l,s,u,a),h=Object.keys(p.caches.spannedCells).length,g=Object.keys(p.caches.hiddenCells).length,m=Object.keys(c.caches.spannedCells).length,b=Object.keys(c.caches.hiddenCells).length;!(a||h!==m||g!==b)||h===0&&m===0||n.set("rowSpanning",p)},[e,n]),i=v.useCallback(()=>{const o=tht(e);I5e(o)&&r(o,!0)},[e,r]);Yn(e,"renderedRowsIntervalChange",KC(t.rowSpanning,r)),Yn(e,"sortedRowsSet",KC(t.rowSpanning,i)),Yn(e,"paginationModelChange",KC(t.rowSpanning,i)),Yn(e,"filteredRowsSet",KC(t.rowSpanning,i)),Yn(e,"columnsChange",KC(t.rowSpanning,i)),v.useEffect(()=>{t.rowSpanning?n.state.rowSpanning.caches===Cht&&i():n.state.rowSpanning!==ZC&&n.set("rowSpanning",ZC)},[e,n,i,t.rowSpanning])},sKn=(e,t,n)=>Y({},e,{listViewColumn:t.listViewColumn?Y({},t.listViewColumn,{computedWidth:Vge(n)}):void 0});function lKn(e,t){const n=()=>{e.current.setState(o=>o.listViewColumn?Y({},o,{listViewColumn:Y({},o.listViewColumn,{computedWidth:Vge(e)})}):o)},r=v.useRef(null);Yn(e,"viewportInnerSizeChange",o=>{r.current!==o.width&&(r.current=o.width,n())}),Yn(e,"columnVisibilityModelChange",n),Ro(()=>{const o=t.listViewColumn;o&&e.current.setState(a=>Y({},a,{listViewColumn:Y({},o,{computedWidth:Vge(e)})}))},[e,t.listViewColumn]),v.useEffect(()=>{t.listView&&t.listViewColumn},[t.listView,t.listViewColumn])}function Vge(e){return Ks(e).viewportInnerSize.width}const cKn=rr(mu,Qh,Hu,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let US=(function(e){return e.Default="set-flat-rows",e.LazyLoading="replace-row-range",e.GroupedData="set-grouped-rows",e})({});class Noe{constructor(t){this.chunkSize=t}getCacheKeys=t=>{if(this.chunkSize<1||typeof t.start!="number")return[t];const n=[];for(let r=t.start;r<=t.end;r+=this.chunkSize){const i=Math.min(r+this.chunkSize-1,t.end);n.push(Y({},t,{start:r,end:i}))}return n};splitResponse=(t,n)=>{const r=this.getCacheKeys(t);if(r.length===1)return new Map([[t,n]]);const i=new Map;return r.forEach(o=>{const a=o.end===t.end,s=Y({},n,{pageInfo:Y({},n.pageInfo,{hasNextPage:n.pageInfo?.hasNextPage!==void 0&&!a?!0:n.pageInfo?.hasNextPage,nextCursor:n.pageInfo?.nextCursor!==void 0&&!a?n.rows[o.end+1].id:n.pageInfo?.nextCursor}),rows:typeof o.start!="number"||typeof t.start!="number"?n.rows:n.rows.slice(o.start-t.start,o.end-t.start+1)});i.set(o,s)}),i};static mergeResponses=t=>t.length===1?t[0]:t.reduce((n,r)=>Y({},r,{rows:[...n.rows,...r.rows]}),{rows:[],rowCount:0,pageInfo:{}})}const uKn=["skipCache","keepChildrenExpanded"],dKn={clear:()=>{},get:()=>{},set:()=>{}};function D5e(e,t={}){return e===null?dKn:e??new jGn(t)}const pKn=(e,t,n={})=>{const r=v.useCallback(()=>{e.current.setStrategyAvailability(gy.DataSource,US.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[i,o]=v.useState(e.current.getActiveStrategy(gy.DataSource)),a=v.useMemo(()=>i===US.Default||i===US.GroupedData,[i]),s=Qt(e,Hu),l=v.useRef(0),c=t.onDataSourceError,u=xp(()=>{if(!t.pagination)return new Noe(s.pageSize);const S=t.pageSizeOptions.map(z=>typeof z=="number"?z:z.value).sort((z,O)=>z-O),A=Math.min(s.pageSize,S[0]);return new Noe(A)}).current,[d,p]=v.useState(()=>D5e(t.dataSourceCache,n.cacheOptions)),h=v.useCallback(async(S,A)=>{const z=t.dataSource?.getRows;if(!z)return;if(S&&S!==Dl&&t.signature!=="DataGrid"){n.fetchRowChildren?.([S]);return}n.clearDataSourceState?.();const O=A||{},{skipCache:T,keepChildrenExpanded:R}=O,P=Lt(O,uKn),F=Y({},cKn(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),P),L=u.getCacheKeys(F).map(j=>d.get(j));if(!T&&L.every(j=>j!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:Noe.mergeResponses(L),fetchParams:F,options:{skipCache:T,keepChildrenExpanded:R}});return}(a||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const W=l.current+1;l.current=W;try{const j=await z(F);u.splitResponse(F,j).forEach((G,q)=>d.set(q,G)),l.current===W&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:j,fetchParams:F,options:{skipCache:T,keepChildrenExpanded:R}})}catch(j){l.current===W&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:j,fetchParams:F,options:{skipCache:T,keepChildrenExpanded:R}}),typeof c=="function"&&c(new HGn({message:j?.message,params:F,cause:j})))}finally{a&&l.current===W&&e.current.setLoading(!1)}},[u,d,e,a,t.dataSource?.getRows,c,n,t.signature]),g=v.useCallback(()=>{o(e.current.getActiveStrategy(gy.DataSource))},[e]),m=v.useCallback(S=>{if("error"in S){e.current.setRows([]);return}const{response:A}=S;A.rowCount!==void 0&&e.current.setRowCount(A.rowCount),e.current.setRows(A.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:S.fetchParams,response:A},!0)},[e]),b=t.dataSource?.updateRow,y=n.handleEditRow,M=v.useCallback(async S=>{if(b)try{const A=await b(S);return typeof y=="function"?(y(S,A),A):(A&&!pm(A,S.previousRow)&&e.current.dataSource.cache.clear(),e.current.updateNestedRows([A],[]),A)}catch(A){throw typeof c=="function"&&c(new VGn({message:A?.message,params:S,cause:A})),A}},[e,b,c,y]),C={dataSource:{fetchRows:h,cache:d,editRow:M}},x=v.useMemo(()=>Tw(h,0),[h]),w=v.useRef(!0);return v.useEffect(()=>{if(w.current){w.current=!1;return}if(t.dataSourceCache===void 0)return;const S=D5e(t.dataSourceCache,n.cacheOptions);p(A=>A!==S?S:A)},[t.dataSourceCache,n.cacheOptions]),v.useEffect(()=>{if(!(i!==US.Default&&i!==US.LazyLoading&&i!==US.GroupedData))return t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows()),()=>{l.current+=1}},[e,t.dataSource,i]),{api:{public:C},debouncedFetchRows:x,strategyProcessor:{strategyName:US.Default,group:"dataSourceRowsUpdate",processor:m},setStrategyAvailability:r,cacheChunkManager:u,cache:d,events:{strategyAvailabilityChange:g,sortModelChange:KC(a,()=>x()),filterModelChange:KC(a,()=>x()),paginationModelChange:KC(a,()=>x())}}},hKn=(e,t)=>{const{api:n,strategyProcessor:r,events:i,setStrategyAvailability:o}=pKn(e,t);Gi(e,n.public,"public"),eq(e,r.strategyName,r.group,r.processor),Object.entries(i).forEach(([a,s])=>{Yn(e,a,s)}),v.useEffect(()=>{o()},[o])},fKn=(e,t,n)=>{wXn(e,t),TYn(e,t),wYn(e),du(CXn,e,t),du(AYn,e,t),du(NXn,e,t),du(bYn,e,t),du(aYn,e,t),du(mYn,e,t),du(JXn,e,t),du(EYn,e,t),du(lYn,e,t),du(YXn,e,t),du(oKn,e,t),du(qXn,e,t),du(JYn,e,t),du(LXn,e,t),du(VYn,e,t),du(LGn,e,t),du(kYn,e,t),du(WYn,e,t),du(sKn,e,t),EXn(e,t),rYn(e,t),OYn(e,t),FXn(e,t),yYn(e,t,n),aKn(e,t),SYn(e,t,n),jYn(e),GYn(e,t),vYn(e,t,n),eYn(e,t),cYn(e,t),ZXn(e,t,n),RYn(e,t),BXn(e,t),tKn(e,t),sYn(e,t),qYn(e),IYn(e,t),_Xn(e),HXn(e,t),XXn(e,t),kXn(e,t),_Yn(e,t),PYn(e,t),BYn(e),_Gn(e,t),lKn(e,t),hKn(e,t),v.useEffect(()=>{e.current.runAppliersForPendingProcessors()})},gKn=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:i,showLeftBorder:o,showRightBorder:a,groupId:s,pinnedPosition:l}=e,c={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",o&&"columnHeader--withLeftBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l===fo.LEFT&&"columnHeader--pinnedLeft",l===fo.RIGHT&&"columnHeader--pinnedRight",i&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Yt(c,lo,t)};function mKn(e){const{groupId:t,width:n,depth:r,maxDepth:i,fields:o,height:a,colIndex:s,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:d,pinnedOffset:p}=e,h=kn(),g=ts(),m=v.useRef(null),b=bi(),y=Qt(b,Wpt),M=t?y[t]:{},{headerName:C=t??"",description:x="",headerAlign:w=void 0}=M;let S;const A=t&&y[t]?.renderHeaderGroup,z=v.useMemo(()=>({groupId:t,headerName:C,description:x,depth:r,maxDepth:i,fields:o,colIndex:s,isLastColumn:u}),[t,C,x,r,i,o,s,u]);t&&A&&(S=A(z));const O=Y({},e,{classes:h.classes,headerAlign:w,depth:r,isDragging:!1}),T=C??t,R=Vi(),P=t===null?`empty-group-cell-${R}`:t,F=gKn(O);v.useLayoutEffect(()=>{if(l){const G=m.current.querySelector('[tabindex="0"]')||m.current;if(!G)return;if(wwe())G.focus({preventScroll:!0});else{const q=b.current.getScrollPosition();G.focus(),b.current.scroll(q)}}},[b,l]);const N=v.useCallback(V=>G=>{RB(G)||b.current.publishEvent(V,z,G)},[b,z]),L=v.useMemo(()=>({onKeyDown:N("columnGroupHeaderKeyDown"),onFocus:N("columnGroupHeaderFocus"),onBlur:N("columnGroupHeaderBlur")}),[N]),W=typeof M.headerClassName=="function"?M.headerClassName(z):M.headerClassName,j=v.useMemo(()=>HZ(Y({},e.style),g,d,p),[d,p,e.style,g]);return f.jsx(uht,Y({ref:m,classes:F,columnMenuOpen:!1,colIndex:s,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:S,headerClassName:W,description:x,elementId:P,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:T,"aria-colspan":o.length,"data-fields":`|-${o.join("-|-")}-|`,style:j},L))}const k5e={root:Te.scrollbarFiller,pinnedRight:Te["scrollbarFiller--pinnedRight"]};function vKn({pinnedRight:e}){return f.jsx("div",{role:"presentation",className:_o(k5e.root,e&&k5e.pinnedRight)})}const L5e=rt("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),bKn=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:o,columnHeaderFocus:a,columnGroupHeaderFocus:s,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:p}=e,[h,g]=v.useState(""),[m,b]=v.useState(""),y=Sp(),M=kn(),C=Qt(y,Fpt),x=Qt(y,F3),w=Qt(y,qGn),S=Qt(y,PZ),A=Qt(y,xM),z=Zpt(x,w,S.left.length),O=Qt(y,twe),T=Qt(y,j1t),R=Qt(y,wjn),P=Qt(y,Sjn),F=Qt(y,H1t),N=v.useCallback(ee=>b(ee.field),[]),L=v.useCallback(()=>b(""),[]),W=v.useCallback(ee=>g(ee.field),[]),j=v.useCallback(()=>g(""),[]),V=v.useMemo(()=>S.left.length?{firstColumnIndex:0,lastColumnIndex:S.left.length}:null,[S.left.length]),G=v.useMemo(()=>S.right.length?{firstColumnIndex:t.length-S.right.length,lastColumnIndex:t.length}:null,[S.right.length,t.length]);Yn(y,"columnResizeStart",N),Yn(y,"columnResizeStop",L),Yn(y,"columnHeaderDragStart",W),Yn(y,"columnHeaderDragEndNative",j);const q=ee=>{const{renderContext:se=w}=ee||{},pe=se.firstColumnIndex,te=Math.min(se.lastColumnIndex,t.length);return{renderedColumns:t.slice(pe,te),firstColumnToRender:pe,lastColumnToRender:te}},$=(ee,se,pe,te=!1)=>{const ce=ee?.position===fo.RIGHT,oe=ee?.position===void 0,ae=S.right.length>0&&ce||S.right.length===0&&oe,ne=z-pe;return f.jsxs(v.Fragment,{children:[oe&&f.jsx("div",{role:"presentation",style:{width:ne}}),se,oe&&f.jsx("div",{role:"presentation",className:_o(Te.filler,te&&Te["filler--borderBottom"])}),ae&&f.jsx(vKn,{pinnedRight:ce})]})},U=(ee,se={})=>{const{renderedColumns:pe,firstColumnToRender:te}=q(ee),ce=[];for(let oe=0;oe<pe.length;oe+=1){const ae=pe[oe],ne=te+oe,le=ne===0,he=i!==null&&i.field===ae.field||le&&!p?0:-1,be=a!==null&&a.field===ae.field,me=c.open&&c.field===ae.field,Me=ee?.position,Oe=pF(Me,ae.computedWidth,ne,x,O,F),de=Me===fo.RIGHT?pe[oe-1]:pe[oe+1],ie=de?a!==null&&a.field===de.field:!1,ue=oe,Ae=pe.length,Ce=Y9(Me,ue,M.showColumnVerticalBorder,M.pinnedColumnsSectionSeparator),Ee=X9(Me,ue,Ae,M.showColumnVerticalBorder,T,M.pinnedColumnsSectionSeparator);ce.push(f.jsx(T$n,Y({},n[ae.field],{columnMenuOpen:me,filterItemsCounter:r[ae.field]&&r[ae.field].length,headerHeight:R,isDragging:ae.field===h,colDef:ae,colIndex:ne,isResizing:m===ae.field,isLast:ne===x.length-1,hasFocus:be,tabIndex:he,pinnedPosition:Me,pinnedOffset:Oe,isSiblingFocused:ie,showLeftBorder:Ce,showRightBorder:Ee},se),ae.field))}return $(ee,ce,0)},X=()=>f.jsxs(L5e,{role:"row","aria-rowindex":l+1,ownerState:M,className:Te["row--borderBottom"],style:{height:R},children:[V&&U({position:fo.LEFT,renderContext:V},{disableReorder:!0}),U({renderContext:w}),G&&U({position:fo.RIGHT,renderContext:G},{disableReorder:!0,separatorSide:Awe.Left})]}),Q=({depth:ee,params:se})=>{const pe=q(se);if(pe.renderedColumns.length===0)return null;const{firstColumnToRender:te,lastColumnToRender:ce}=pe,oe=d[ee],ae=t[te].field,ne=C[ae]?.[ee]??null,le=oe.findIndex(({groupId:Ce,columnFields:Ee})=>Ce===ne&&Ee.includes(ae)),he=t[ce-1].field,be=C[he]?.[ee]??null,me=oe.findIndex(({groupId:Ce,columnFields:Ee})=>Ce===be&&Ee.includes(he)),Me=oe.slice(le,me+1).map(Ce=>Y({},Ce,{columnFields:Ce.columnFields.filter(Ee=>u[Ee]!==!1)})).filter(Ce=>Ce.columnFields.length>0),Oe=Me[0].columnFields.indexOf(ae),ie=Me[0].columnFields.slice(0,Oe).reduce((Ce,Ee)=>{const Ge=A[Ee];return Ce+(Ge.computedWidth??0)},0);let ue=te;const Ae=Me.map(({groupId:Ce,columnFields:Ee},Ge)=>{const _e=s!==null&&s.depth===ee&&Ee.includes(s.field),Ie=o!==null&&o.depth===ee&&Ee.includes(o.field)?0:-1,Le={width:Ee.reduce((ze,Ve)=>ze+A[Ve].computedWidth,0),fields:Ee,colIndex:ue},we=se.position,ve=pF(we,Le.width,ue,x,O,F);ue+=Ee.length;let De=Ge;return we===fo.LEFT&&(De=ue-1),f.jsx(mKn,{groupId:Ce,width:Le.width,fields:Le.fields,colIndex:Le.colIndex,depth:ee,isLastColumn:Ge===Me.length-1,maxDepth:l,height:P,hasFocus:_e,tabIndex:Ie,pinnedPosition:we,pinnedOffset:ve,showLeftBorder:Y9(we,De,M.showColumnVerticalBorder,M.pinnedColumnsSectionSeparator),showRightBorder:X9(we,De,Me.length,M.showColumnVerticalBorder,T,M.pinnedColumnsSectionSeparator)},Ge)});return $(se,Ae,ie)};return{renderContext:w,leftRenderContext:V,rightRenderContext:G,pinnedColumns:S,visibleColumns:t,columnPositions:x,getFillers:$,getColumnHeadersRow:X,getColumnsToRender:q,getColumnGroupHeadersRows:()=>{if(l===0)return null;const ee=[];for(let se=0;se<l;se+=1)ee.push(f.jsxs(L5e,{role:"row","aria-rowindex":se+1,ownerState:M,style:{height:P},children:[V&&Q({depth:se,params:{position:fo.LEFT,renderContext:V,maxLastColumn:V.lastColumnIndex}}),Q({depth:se,params:{renderContext:w}}),G&&Q({depth:se,params:{position:fo.RIGHT,renderContext:G,maxLastColumn:G.lastColumnIndex}})]},se));return ee},getPinnedCellOffset:pF,isDragging:!!h,getInnerProps:()=>({role:"rowgroup"})}},yKn=["className"],MKn=e=>{const{classes:t}=e;return Yt({root:["columnHeaders"]},lo,t)},CKn=Go("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),xKn=qr(function(t,n){const{className:r}=t,i=Lt(t,yKn),o=kn(),a=MKn(o);return f.jsx(CKn,Y({className:_o(a.root,r),ownerState:o},i,{role:"presentation",ref:n}))}),wKn=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],SKn=qr(function(t,n){const{visibleColumns:r,sortColumnLookup:i,filterColumnLookup:o,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g}=t,m=Lt(t,wKn),{getInnerProps:b,getColumnHeadersRow:y,getColumnGroupHeadersRows:M}=bKn({visibleColumns:r,sortColumnLookup:i,filterColumnLookup:o,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g});return f.jsxs(xKn,Y({},m,b(),{ref:n,children:[M(),y()]}))}),AKn=CM(SKn);function OKn(e){return null}function zKn(e){return null}const TKn=qr(function(t,n){const i=bi().current.getLocaleText("noResultsOverlayLabel");return f.jsx(VZ,Y({},t,{ref:n,children:i}))}),EKn=()=>Yt({root:["bottomContainer"]},lo,{}),RKn=Go("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function IKn(e){const t=EKn();return f.jsx(RKn,Y({},e,{className:_o(t.root,Te["container--bottom"]),role:"presentation"}))}const PKn=Y({},JBn,{cell:h7n,skeletonCell:M7n,columnHeaderFilterIconButton:q$n,columnHeaderSortIcon:F$n,columnMenu:n9n,columnHeaders:AKn,detailPanels:OKn,bottomContainer:IKn,footer:_Un,footerRowCount:ZUn,toolbar:IUn,pinnedRows:zKn,loadingOverlay:VUn,noResultsOverlay:TKn,noRowsOverlay:GUn,noColumnsOverlay:$Un,pagination:XUn,filterPanel:I9n,columnsPanel:a9n,columnsManagement:q9n,panel:d9n,row:oXn}),DKn={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},kKn=e=>Y({},DKn,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),LKn=PKn,_Kn=e=>{const t=Ub(),n=v.useMemo(()=>$Me({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=v.useMemo(()=>Y({},Njn,n.localeText),[n.localeText]),i=v.useMemo(()=>a7n({defaultSlots:LKn,slots:n.slots}),[n.slots]),o=v.useMemo(()=>Object.keys(K9).reduce((a,s)=>(a[s]=n[s]??K9[s],a),{}),[n]);return v.useMemo(()=>Y({},n,o,{localeText:r,slots:i},kKn(n)),[n,r,i,o])};class NKn{maxListeners=20;warnOnce=!1;events={};on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let a=i.length-1;a>=0;a-=1){const s=i[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;a<o.length;a+=1){const s=o[a];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function i(...o){r.removeListener(t,i),n.apply(r,o)})}}const wht=Symbol("mui.api_private"),FKn=e=>e.isPropagationStopped!==void 0;let _5e=0;function WKn(e){const t=e.current?.[wht];if(t)return t;const n={},r={state:n,store:Cjn.create(n),instanceId:{id:_5e}};return _5e+=1,r.getPublicApi=()=>e.current,r.register=(i,o)=>{Object.keys(o).forEach(a=>{const s=o[a],l=r[a];if(l?.spying===!0?l.target=s:r[a]=s,i==="public"){const c=e.current,u=c[a];u?.spying===!0?u.target=s:c[a]=s}})},r.register("private",{caches:{},eventManager:new NKn}),r}function qKn(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[wht]:e.current}}function BKn(e,t){const n=v.useRef(null),r=v.useRef(null);r.current||(r.current=WKn(n)),n.current||(n.current=qKn(r));const i=v.useCallback((...a)=>{const[s,l,c={}]=a;if(c.defaultMuiPrevented=!1,FKn(c)&&c.isPropagationStopped())return;const u=t.signature===cm.DataGridPro||t.signature===cm.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(s,l,c,u)},[r,t.signature]),o=v.useCallback((a,s,l)=>{r.current.eventManager.on(a,s,l);const c=r.current;return()=>{c.eventManager.removeListener(a,s)}},[r]);return Gi(r,{subscribeEvent:o,publishEvent:i},"public"),e&&!e.current?.state&&(e.current=n.current),v.useImperativeHandle(e,()=>n.current,[n]),v.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const N5e={hooks:{useCSSVariables:j6n,useGridAriaAttributes:aXn,useGridRowAriaAttributes:sXn,useGridRowsOverridableMethods:lXn,useGridParamsOverridableMethods:cXn,useIsCellEditable:uXn,useCellAggregationResult:()=>null,useFilterValueGetter:e=>e.current.getRowValue}},Sht=function(t,n){const r=_Kn(t),i=BKn(r.apiRef,r);return fKn(i,r,N5e),f.jsx(dXn,{privateApiRef:i,configuration:N5e,props:r,children:f.jsx(_7n,Y({className:r.className,style:r.style,sx:r.sx},r.slotProps?.root,{ref:n}))})},jKn=v.memo(qr(Sht));Sht.propTypes={apiRef:Z.shape({current:Z.object}),"aria-label":Z.string,"aria-labelledby":Z.string,autoHeight:Z.bool,autoPageSize:Z.bool,autosizeOnMount:Z.bool,autosizeOptions:Z.shape({columns:Z.arrayOf(Z.string),disableColumnVirtualization:Z.bool,expand:Z.bool,includeHeaders:Z.bool,includeOutliers:Z.bool,outliersFactor:Z.number}),cellModesModel:Z.object,checkboxSelection:Z.bool,classes:Z.object,className:Z.string,clipboardCopyCellDelimiter:Z.string,columnBufferPx:Z.number,columnFilterDebounceMs:Z.number,columnGroupHeaderHeight:Z.number,columnGroupingModel:Z.arrayOf(Z.object),columnHeaderHeight:Z.number,columns:Z.arrayOf(Z.object).isRequired,columnVisibilityModel:Z.object,dataSource:Z.shape({getRows:Z.func.isRequired,updateRow:Z.func}),dataSourceCache:Z.shape({clear:Z.func.isRequired,get:Z.func.isRequired,set:Z.func.isRequired}),density:Z.oneOf(["comfortable","compact","standard"]),disableAutosize:Z.bool,disableColumnFilter:Z.bool,disableColumnMenu:Z.bool,disableColumnResize:Z.bool,disableColumnSelector:Z.bool,disableColumnSorting:Z.bool,disableDensitySelector:Z.bool,disableEval:Z.bool,disableMultipleRowSelection:Z.bool,disableRowSelectionExcludeModel:Z.bool,disableRowSelectionOnClick:Z.bool,disableVirtualization:Z.bool,editMode:Z.oneOf(["cell","row"]),estimatedRowCount:Z.number,experimentalFeatures:Z.shape({warnIfFocusStateIsNotSynced:Z.bool}),filterDebounceMs:Z.number,filterMode:Z.oneOf(["client","server"]),filterModel:Z.shape({items:Z.arrayOf(Z.shape({field:Z.string.isRequired,id:Z.oneOfType([Z.number,Z.string]),operator:Z.string.isRequired,value:Z.any})).isRequired,logicOperator:Z.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:Z.bool,quickFilterLogicOperator:Z.oneOf(["and","or"]),quickFilterValues:Z.array}),getCellClassName:Z.func,getDetailPanelContent:Z.func,getEstimatedRowHeight:Z.func,getRowClassName:Z.func,getRowHeight:Z.func,getRowId:Z.func,getRowSpacing:Z.func,hideFooter:Z.bool,hideFooterPagination:Z.bool,hideFooterSelectedRowCount:Z.bool,ignoreDiacritics:Z.bool,ignoreValueFormatterDuringExport:Z.oneOfType([Z.shape({clipboardExport:Z.bool,csvExport:Z.bool}),Z.bool]),initialState:Z.object,isCellEditable:Z.func,isRowSelectable:Z.func,keepNonExistentRowsSelected:Z.bool,label:Z.string,loading:Z.bool,localeText:Z.object,logger:Z.shape({debug:Z.func.isRequired,error:Z.func.isRequired,info:Z.func.isRequired,warn:Z.func.isRequired}),logLevel:Z.oneOf(["debug","error","info","warn",!1]),nonce:Z.string,onCellClick:Z.func,onCellDoubleClick:Z.func,onCellEditStart:Z.func,onCellEditStop:Z.func,onCellKeyDown:Z.func,onCellModesModelChange:Z.func,onClipboardCopy:Z.func,onColumnHeaderClick:Z.func,onColumnHeaderContextMenu:Z.func,onColumnHeaderDoubleClick:Z.func,onColumnHeaderEnter:Z.func,onColumnHeaderLeave:Z.func,onColumnHeaderOut:Z.func,onColumnHeaderOver:Z.func,onColumnOrderChange:Z.func,onColumnResize:Z.func,onColumnVisibilityModelChange:Z.func,onColumnWidthChange:Z.func,onDataSourceError:Z.func,onDensityChange:Z.func,onFilterModelChange:Z.func,onMenuClose:Z.func,onMenuOpen:Z.func,onPaginationMetaChange:Z.func,onPaginationModelChange:Z.func,onPreferencePanelClose:Z.func,onPreferencePanelOpen:Z.func,onProcessRowUpdateError:Z.func,onResize:Z.func,onRowClick:Z.func,onRowCountChange:Z.func,onRowDoubleClick:Z.func,onRowEditStart:Z.func,onRowEditStop:Z.func,onRowModesModelChange:Z.func,onRowSelectionModelChange:Z.func,onSortModelChange:Z.func,onStateChange:Z.func,pageSizeOptions:Z.arrayOf(Z.oneOfType([Z.number,Z.shape({label:Z.string.isRequired,value:Z.number.isRequired})]).isRequired),pagination:Z.oneOf([!0]),paginationMeta:Z.shape({hasNextPage:Z.bool}),paginationMode:Z.oneOf(["client","server"]),paginationModel:Z.shape({page:Z.number.isRequired,pageSize:Z.number.isRequired}),processRowUpdate:Z.func,resizeThrottleMs:Z.number,rowBufferPx:Z.number,rowCount:Z.number,rowHeight:Z.number,rowModesModel:Z.object,rows:Z.arrayOf(Z.object),rowSelection:Z.bool,rowSelectionModel:Z.shape({ids:Z.instanceOf(Set).isRequired,type:Z.oneOf(["exclude","include"]).isRequired}),rowSpacingType:Z.oneOf(["border","margin"]),rowSpanning:Z.bool,scrollbarSize:Z.number,showCellVerticalBorder:Z.bool,showColumnVerticalBorder:Z.bool,showToolbar:Z.bool,slotProps:Z.object,slots:Z.object,sortingMode:Z.oneOf(["client","server"]),sortingOrder:Z.arrayOf(Z.oneOf(["asc","desc"])),sortModel:Z.arrayOf(Z.shape({field:Z.string.isRequired,sort:Z.oneOf(["asc","desc"])})),style:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),virtualizeColumnsWithAutoRowHeight:Z.bool};var QO=[],HKn=function(){return QO.some(function(e){return e.activeTargets.length>0})},VKn=function(){return QO.some(function(e){return e.skippedTargets.length>0})},F5e="ResizeObserver loop completed with undelivered notifications.",GKn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:F5e}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=F5e),window.dispatchEvent(e)},tq;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(tq||(tq={}));var ZO=function(e){return Object.freeze(e)},$Kn=(function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ZO(this)}return e})(),Aht=(function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ZO(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,top:i,right:o,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),Ewe=function(e){return e instanceof SVGElement&&"getBBox"in e},Oht=function(e){if(Ewe(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},W5e=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},UKn=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},fF=typeof window<"u"?window:{},W8=new WeakMap,q5e=/auto|scroll/,XKn=/^tb|vertical/,YKn=/msie|trident/i.test(fF.navigator&&fF.navigator.userAgent),gv=function(e){return parseFloat(e||"0")},TI=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new $Kn((n?t:e)||0,(n?e:t)||0)},B5e=ZO({devicePixelContentBoxSize:TI(),borderBoxSize:TI(),contentBoxSize:TI(),contentRect:new Aht(0,0,0,0)}),zht=function(e,t){if(t===void 0&&(t=!1),W8.has(e)&&!t)return W8.get(e);if(Oht(e))return W8.set(e,B5e),B5e;var n=getComputedStyle(e),r=Ewe(e)&&e.ownerSVGElement&&e.getBBox(),i=!YKn&&n.boxSizing==="border-box",o=XKn.test(n.writingMode||""),a=!r&&q5e.test(n.overflowY||""),s=!r&&q5e.test(n.overflowX||""),l=r?0:gv(n.paddingTop),c=r?0:gv(n.paddingRight),u=r?0:gv(n.paddingBottom),d=r?0:gv(n.paddingLeft),p=r?0:gv(n.borderTopWidth),h=r?0:gv(n.borderRightWidth),g=r?0:gv(n.borderBottomWidth),m=r?0:gv(n.borderLeftWidth),b=d+c,y=l+u,M=m+h,C=p+g,x=s?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-M-e.clientWidth:0,S=i?b+M:0,A=i?y+C:0,z=r?r.width:gv(n.width)-S-w,O=r?r.height:gv(n.height)-A-x,T=z+b+w+M,R=O+y+x+C,P=ZO({devicePixelContentBoxSize:TI(Math.round(z*devicePixelRatio),Math.round(O*devicePixelRatio),o),borderBoxSize:TI(T,R,o),contentBoxSize:TI(z,O,o),contentRect:new Aht(d,l,z,O)});return W8.set(e,P),P},Tht=function(e,t,n){var r=zht(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case tq.DEVICE_PIXEL_CONTENT_BOX:return a;case tq.BORDER_BOX:return i;default:return o}},KKn=(function(){function e(t){var n=zht(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ZO([n.borderBoxSize]),this.contentBoxSize=ZO([n.contentBoxSize]),this.devicePixelContentBoxSize=ZO([n.devicePixelContentBoxSize])}return e})(),Eht=function(e){if(Oht(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},QKn=function(){var e=1/0,t=[];QO.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var u=new KKn(c.target),d=Eht(c.target);s.push(u),c.lastReportedSize=Tht(c.target,c.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},j5e=function(e){QO.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Eht(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},ZKn=function(){var e=0;for(j5e(e);HKn();)e=QKn(),j5e(e);return VKn()&&GKn(),e>0},Foe,Rht=[],JKn=function(){return Rht.splice(0).forEach(function(e){return e()})},eQn=function(e){if(!Foe){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return JKn()}).observe(n,r),Foe=function(){n.textContent="".concat(t?t--:t++)}}Rht.push(e),Foe()},tQn=function(e){eQn(function(){requestAnimationFrame(e)})},D7=0,nQn=function(){return!!D7},rQn=250,iQn={attributes:!0,characterData:!0,childList:!0,subtree:!0},H5e=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],V5e=function(e){return e===void 0&&(e=0),Date.now()+e},Woe=!1,oQn=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=rQn),!Woe){Woe=!0;var r=V5e(t);tQn(function(){var i=!1;try{i=ZKn()}finally{if(Woe=!1,t=r-V5e(),!nQn())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,iQn)};document.body?n():fF.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),H5e.forEach(function(n){return fF.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),H5e.forEach(function(n){return fF.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e})(),Gge=new oQn,G5e=function(e){!D7&&e>0&&Gge.start(),D7+=e,!D7&&Gge.stop()},aQn=function(e){return!Ewe(e)&&!UKn(e)&&getComputedStyle(e).display==="inline"},sQn=(function(){function e(t,n){this.target=t,this.observedBox=n||tq.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Tht(this.target,this.observedBox,!0);return aQn(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),lQn=(function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e})(),q8=new WeakMap,$5e=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},B8=(function(){function e(){}return e.connect=function(t,n){var r=new lQn(t,n);q8.set(t,r)},e.observe=function(t,n,r){var i=q8.get(t),o=i.observationTargets.length===0;$5e(i.observationTargets,n)<0&&(o&&QO.push(i),i.observationTargets.push(new sQn(n,r&&r.box)),G5e(1),Gge.schedule())},e.unobserve=function(t,n){var r=q8.get(t),i=$5e(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&QO.splice(QO.indexOf(r),1),r.observationTargets.splice(i,1),G5e(-1))},e.disconnect=function(t){var n=this,r=q8.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),cQn=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");B8.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!W5e(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");B8.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!W5e(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");B8.unobserve(this,t)},e.prototype.disconnect=function(){B8.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var $ge=function(e,t){return $ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},$ge(e,t)};function gt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$ge(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Dn=function(){return Dn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Dn.apply(this,arguments)};function Qf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function U5e(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}function X5e(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Eu(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function mb(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}var H2=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},nq={measureLayout:H2(["layout","layoutId","drag"]),animation:H2(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:H2(["exit"]),drag:H2(["drag","dragControls"]),focus:H2(["whileFocus"]),hover:H2(["whileHover","onHoverStart","onHoverEnd"]),tap:H2(["whileTap","onTap","onTapStart","onTapCancel"]),pan:H2(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:H2(["whileInView","onViewportEnter","onViewportLeave"])};function uQn(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?nq.projectionNodeConstructor=e[t]:nq[t].Component=e[t])}var Q9=function(){},Iht=v.createContext({strict:!1}),Pht=Object.keys(nq),dQn=Pht.length;function pQn(e,t,n){var r=[];if(v.useContext(Iht),!t)return null;for(var i=0;i<dQn;i++){var o=Pht[i],a=nq[o],s=a.isEnabled,l=a.Component;s(e)&&l&&r.push(v.createElement(l,Dn({key:o},e,{visualElement:t})))}return r}var Rwe=v.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),GZ=v.createContext({});function hQn(){return v.useContext(GZ).visualElement}var $Z=v.createContext(null),ZD=typeof document<"u",Y5e=ZD?v.useLayoutEffect:v.useEffect,Uge={current:null},Dht=!1;function fQn(){if(Dht=!0,!!ZD)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Uge.current=e.matches};e.addListener(t),t()}else Uge.current=!1}function gQn(){!Dht&&fQn();var e=Eu(v.useState(Uge.current),1),t=e[0];return t}function mQn(){var e=gQn(),t=v.useContext(Rwe).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function vQn(e,t,n,r){var i=v.useContext(Iht),o=hQn(),a=v.useContext($Z),s=mQn(),l=v.useRef(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:a?.id,blockInitialAnimation:a?.initial===!1,shouldReduceMotion:s}));var c=l.current;return Y5e(function(){c?.syncRender()}),v.useEffect(function(){var u;(u=c?.animationState)===null||u===void 0||u.animateChanges()}),Y5e(function(){return function(){return c?.notifyUnmount()}},[]),c}function BR(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bQn(e,t,n){return v.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):BR(n)&&(n.current=r))},[t])}function kht(e){return Array.isArray(e)}function Hg(e){return typeof e=="string"||kht(e)}function yQn(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function MQn(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function Lht(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function UZ(e,t,n){var r=e.getProps();return Lht(r,t,n??r.custom,yQn(e),MQn(e))}function XZ(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||Hg(e.initial)||Hg(e.animate)||Hg(e.whileHover)||Hg(e.whileDrag)||Hg(e.whileTap)||Hg(e.whileFocus)||Hg(e.exit)}function _ht(e){return!!(XZ(e)||e.variants)}function CQn(e,t){if(XZ(e)){var n=e.initial,r=e.animate;return{initial:n===!1||Hg(n)?n:void 0,animate:Hg(r)?r:void 0}}return e.inherit!==!1?t:{}}function xQn(e){var t=CQn(e,v.useContext(GZ)),n=t.initial,r=t.animate;return v.useMemo(function(){return{initial:n,animate:r}},[K5e(n),K5e(r)])}function K5e(e){return Array.isArray(e)?e.join(" "):e}function YZ(e){var t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}var gF={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wQn=1;function SQn(){return YZ(function(){if(gF.hasEverUpdated)return wQn++})}var Nht=v.createContext({}),Fht=v.createContext({});function AQn(e,t,n,r){var i,o=t.layoutId,a=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=v.useContext(Fht);!r||!n||n?.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||l&&BR(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof a=="string"?a:"both",initialPromotionConfig:u,layoutScroll:c}))}var OQn=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t})(E.Component);function zQn(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;t&&uQn(t);function s(l,c){var u=TQn(l);l=Dn(Dn({},l),{layoutId:u});var d=v.useContext(Rwe),p=null,h=xQn(l),g=d.isStatic?void 0:SQn(),m=o(l,d.isStatic);return!d.isStatic&&ZD&&(h.visualElement=vQn(a,m,Dn(Dn({},d),l),n),AQn(g,l,h.visualElement,r||nq.projectionNodeConstructor),p=pQn(l,h.visualElement)),v.createElement(OQn,{visualElement:h.visualElement,props:Dn(Dn({},d),l)},p,v.createElement(GZ.Provider,{value:h},i(a,l,g,bQn(m,h.visualElement,c),m,d.isStatic,h.visualElement)))}return v.forwardRef(s)}function TQn(e){var t,n=e.layoutId,r=(t=v.useContext(Nht))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function EQn(e){function t(r,i){return i===void 0&&(i={}),zQn(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var RQn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Iwe(e){return typeof e!="string"||e.includes("-")?!1:!!(RQn.indexOf(e)>-1||/[A-Z]/.test(e))}var Z9={};function IQn(e){Object.assign(Z9,e)}var Xge=["","X","Y","Z"],PQn=["translate","scale","rotate","skew"],rq=["transformPerspective","x","y","z"];PQn.forEach(function(e){return Xge.forEach(function(t){return rq.push(e+t)})});function DQn(e,t){return rq.indexOf(e)-rq.indexOf(t)}var kQn=new Set(rq);function IB(e){return kQn.has(e)}var LQn=new Set(["originX","originY","originZ"]);function Wht(e){return LQn.has(e)}function qht(e,t){var n=t.layout,r=t.layoutId;return IB(e)||Wht(e)||(n||r!==void 0)&&(!!Z9[e]||e==="opacity")}var Jy=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},_Qn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function NQn(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,l=t.allowTransformNone,c=l===void 0?!0:l,u="";o.sort(DQn);for(var d=!1,p=o.length,h=0;h<p;h++){var g=o[h];u+="".concat(_Qn[g]||g,"(").concat(i[g],") "),g==="z"&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(i,n?"":u):c&&n&&(u="none"),u}function FQn(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,a=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(a)}function Bht(e){return e.startsWith("--")}var WQn=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const jht=(e,t)=>n=>Math.max(Math.min(n,t),e),mF=e=>e%1?Number(e.toFixed(5)):e,iq=/(-)?([\d]*\.?[\d])+/g,Yge=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,qQn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function PB(e){return typeof e=="string"}const q3={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vF=Object.assign(Object.assign({},q3),{transform:jht(0,1)}),j8=Object.assign(Object.assign({},q3),{default:1}),DB=e=>({test:t=>PB(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),AC=DB("deg"),vb=DB("%"),zi=DB("px"),BQn=DB("vh"),jQn=DB("vw"),Q5e=Object.assign(Object.assign({},vb),{parse:e=>vb.parse(e)/100,transform:e=>vb.transform(e*100)}),Pwe=(e,t)=>n=>!!(PB(n)&&qQn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Hht=(e,t,n)=>r=>{if(!PB(r))return r;const[i,o,a,s]=r.match(iq);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},fO={test:Pwe("hsl","hue"),parse:Hht("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vb.transform(mF(t))+", "+vb.transform(mF(n))+", "+mF(vF.transform(r))+")"},HQn=jht(0,255),qoe=Object.assign(Object.assign({},q3),{transform:e=>Math.round(HQn(e))}),cx={test:Pwe("rgb","red"),parse:Hht("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qoe.transform(e)+", "+qoe.transform(t)+", "+qoe.transform(n)+", "+mF(vF.transform(r))+")"};function VQn(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Kge={test:Pwe("#"),parse:VQn,transform:cx.transform},G0={test:e=>cx.test(e)||Kge.test(e)||fO.test(e),parse:e=>cx.test(e)?cx.parse(e):fO.test(e)?fO.parse(e):Kge.parse(e),transform:e=>PB(e)?e:e.hasOwnProperty("red")?cx.transform(e):fO.transform(e)},Vht="${c}",Ght="${n}";function GQn(e){var t,n,r,i;return isNaN(e)&&PB(e)&&((n=(t=e.match(iq))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Yge))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function $ht(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Yge);r&&(n=r.length,e=e.replace(Yge,Vht),t.push(...r.map(G0.parse)));const i=e.match(iq);return i&&(e=e.replace(iq,Ght),t.push(...i.map(q3.parse))),{values:t,numColors:n,tokenised:e}}function Uht(e){return $ht(e).values}function Xht(e){const{values:t,numColors:n,tokenised:r}=$ht(e),i=t.length;return o=>{let a=r;for(let s=0;s<i;s++)a=a.replace(s<n?Vht:Ght,s<n?G0.transform(o[s]):mF(o[s]));return a}}const $Qn=e=>typeof e=="number"?0:e;function UQn(e){const t=Uht(e);return Xht(e)(t.map($Qn))}const eM={test:GQn,parse:Uht,createTransformer:Xht,getAnimatableNone:UQn},XQn=new Set(["brightness","contrast","saturate","opacity"]);function YQn(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(iq)||[];if(!r)return e;const i=n.replace(r,"");let o=XQn.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const KQn=/([a-z-]*)\(.*?\)/g,Qge=Object.assign(Object.assign({},eM),{getAnimatableNone:e=>{const t=e.match(KQn);return t?t.map(YQn).join(" "):e}});var Z5e=Dn(Dn({},q3),{transform:Math.round}),Yht={borderWidth:zi,borderTopWidth:zi,borderRightWidth:zi,borderBottomWidth:zi,borderLeftWidth:zi,borderRadius:zi,radius:zi,borderTopLeftRadius:zi,borderTopRightRadius:zi,borderBottomRightRadius:zi,borderBottomLeftRadius:zi,width:zi,maxWidth:zi,height:zi,maxHeight:zi,size:zi,top:zi,right:zi,bottom:zi,left:zi,padding:zi,paddingTop:zi,paddingRight:zi,paddingBottom:zi,paddingLeft:zi,margin:zi,marginTop:zi,marginRight:zi,marginBottom:zi,marginLeft:zi,rotate:AC,rotateX:AC,rotateY:AC,rotateZ:AC,scale:j8,scaleX:j8,scaleY:j8,scaleZ:j8,skew:AC,skewX:AC,skewY:AC,distance:zi,translateX:zi,translateY:zi,translateZ:zi,x:zi,y:zi,z:zi,perspective:zi,transformPerspective:zi,opacity:vF,originX:Q5e,originY:Q5e,originZ:zi,zIndex:Z5e,fillOpacity:vF,strokeOpacity:vF,numOctaves:Z5e};function Dwe(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var h in t){var g=t[h];if(Bht(h)){a[h]=g;continue}var m=Yht[h],b=WQn(g,m);if(IB(h)){if(u=!0,s[h]=b,l.push(h),!p)continue;g!==((i=m.default)!==null&&i!==void 0?i:0)&&(p=!1)}else Wht(h)?(c[h]=b,d=!0):o[h]=b}u?o.transform=NQn(e,n,p,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=FQn(c))}var kwe=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Kht(e,t,n){for(var r in t)!Jy(t[r])&&!qht(r,n)&&(e[r]=t[r])}function QQn(e,t,n){var r=e.transformTemplate;return v.useMemo(function(){var i=kwe();Dwe(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,a=i.style;return Dn(Dn({},o),a)},[t])}function ZQn(e,t,n){var r=e.style||{},i={};return Kht(i,r,e),Object.assign(i,QQn(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function JQn(e,t,n){var r={},i=ZQn(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var eZn=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function J9(e){return eZn.has(e)}var Qht=function(e){return!J9(e)};function tZn(e){e&&(Qht=function(t){return t.startsWith("on")?!J9(t):e(t)})}try{tZn(require("@emotion/is-prop-valid").default)}catch{}function nZn(e,t,n){var r={};for(var i in e)(Qht(i)||n===!0&&J9(i)||!t&&!J9(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function J5e(e,t,n){return typeof e=="string"?e:zi.transform(t+n*e)}function rZn(e,t,n){var r=J5e(t,e.x,e.width),i=J5e(n,e.y,e.height);return"".concat(r," ").concat(i)}var iZn={offset:"strokeDashoffset",array:"strokeDasharray"};function oZn(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=iZn;e[o.offset]=zi.transform(-r);var a=zi.transform(t),s=zi.transform(n);e[o.array]="".concat(a," ").concat(s)}function Lwe(e,t,n,r){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=c===void 0?1:c,d=t.pathOffset,p=d===void 0?0:d,h=Qf(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Dwe(e,h,n,r),e.attrs=e.style,e.style={};var g=e.attrs,m=e.style,b=e.dimensions;g.transform&&(b&&(m.transform=g.transform),delete g.transform),b&&(a!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=rZn(b,a!==void 0?a:.5,s!==void 0?s:.5)),i!==void 0&&(g.x=i),o!==void 0&&(g.y=o),l!==void 0&&oZn(g,l,u,p)}var Zht=function(){return Dn(Dn({},kwe()),{attrs:{}})};function aZn(e,t){var n=v.useMemo(function(){var i=Zht();return Lwe(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),Dn(Dn({},i.attrs),{style:Dn({},i.style)})},[t]);if(e.style){var r={};Kht(r,e.style,e),n.style=Dn(Dn({},r),n.style)}return n}function sZn(e){e===void 0&&(e=!1);var t=function(n,r,i,o,a,s){var l=a.latestValues,c=Iwe(n)?aZn:JQn,u=c(r,l,s),d=nZn(r,typeof n=="string",e),p=Dn(Dn(Dn({},d),u),{ref:o});return i&&(p["data-projection-id"]=i),v.createElement(n,p)};return t}var lZn=/([a-z])([A-Z])/g,cZn="$1-$2",Jht=function(e){return e.replace(lZn,cZn).toLowerCase()};function eft(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var a in o)e.style.setProperty(a,o[a])}var tft=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function nft(e,t,n,r){eft(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(tft.has(i)?i:Jht(i),t.attrs[i])}function _we(e){var t=e.style,n={};for(var r in t)(Jy(t[r])||qht(r,e))&&(n[r]=t[r]);return n}function rft(e){var t=_we(e);for(var n in e)if(Jy(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function Nwe(e){return typeof e=="object"&&typeof e.start=="function"}var oq=function(e){return Array.isArray(e)},uZn=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},ift=function(e){return oq(e)?e[e.length-1]||0:e};function k7(e){var t=Jy(e)?e.get():e;return uZn(t)?t.toValue():t}function eNe(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:dZn(t,n,r,i),renderState:o()};return a&&(s.mount=function(l){return a(t,l,s)}),s}var oft=function(e){return function(t,n){var r=v.useContext(GZ),i=v.useContext($Z);return n?eNe(e,t,r,i):YZ(function(){return eNe(e,t,r,i)})}};function dZn(e,t,n,r){var i={},o=n?.initial===!1,a=r(e);for(var s in a)i[s]=k7(a[s]);var l=e.initial,c=e.animate,u=XZ(e),d=_ht(e);t&&d&&!u&&e.inherit!==!1&&(l??(l=t.initial),c??(c=t.animate));var p=o||l===!1,h=p?c:l;if(h&&typeof h!="boolean"&&!Nwe(h)){var g=Array.isArray(h)?h:[h];g.forEach(function(m){var b=Lht(e,m);if(b){var y=b.transitionEnd;b.transition;var M=Qf(b,["transitionEnd","transition"]);for(var C in M){var x=M[C];if(Array.isArray(x)){var w=p?x.length-1:0;x=x[w]}x!==null&&(i[C]=x)}for(var C in y)i[C]=y[C]}})}return i}var pZn={useVisualState:oft({scrapeMotionValuesFromProps:rft,createRenderState:Zht,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Lwe(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),nft(t,r)}})},hZn={useVisualState:oft({scrapeMotionValuesFromProps:_we,createRenderState:kwe})};function fZn(e,t,n,r,i){var o=t.forwardMotionProps,a=o===void 0?!1:o,s=Iwe(e)?pZn:hZn;return Dn(Dn({},s),{preloadedFeatures:n,useRender:sZn(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var Hs;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Hs||(Hs={}));function KZ(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Zge(e,t,n,r){v.useEffect(function(){var i=e.current;if(n&&i)return KZ(i,t,n,r)},[e,t,n,r])}function gZn(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Hs.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Hs.Focus,!1)};Zge(n,"focus",t?r:void 0),Zge(n,"blur",t?i:void 0)}function aft(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function sft(e){var t=!!e.touches;return t}function mZn(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var vZn={pageX:0,pageY:0};function bZn(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||vZn;return{x:r[t+"X"],y:r[t+"Y"]}}function yZn(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Fwe(e,t){return t===void 0&&(t="page"),{point:sft(e)?bZn(e,t):yZn(e,t)}}var lft=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,Fwe(r))};return t?mZn(n):n},MZn=function(){return ZD&&window.onpointerdown===null},CZn=function(){return ZD&&window.ontouchstart===null},xZn=function(){return ZD&&window.onmousedown===null},wZn={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},SZn={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function cft(e){return MZn()?e:CZn()?SZn[e]:xZn()?wZn[e]:e}function EI(e,t,n,r){return KZ(e,cft(t),lft(n,t==="pointerdown"),r)}function eU(e,t,n,r){return Zge(e,cft(t),n&&lft(n,t==="pointerdown"),r)}function uft(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var tNe=uft("dragHorizontal"),nNe=uft("dragVertical");function dft(e){var t=!1;if(e==="y")t=nNe();else if(e==="x")t=tNe();else{var n=tNe(),r=nNe();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function pft(){var e=dft(!0);return e?(e(),!1):!0}function rNe(e,t,n){return function(r,i){var o;!aft(r)||pft()||((o=e.animationState)===null||o===void 0||o.setActive(Hs.Hover,t),n?.(r,i))}}function AZn(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;eU(i,"pointerenter",t||r?rNe(i,!0,t):void 0,{passive:!t}),eU(i,"pointerleave",n||r?rNe(i,!1,n):void 0,{passive:!n})}var hft=function(e,t){return t?e===t?!0:hft(e,t.parentElement):!1};function fft(e){return v.useEffect(function(){return function(){return e()}},[])}const tU=(e,t,n)=>Math.min(Math.max(n,e),t),Boe=.001,OZn=.01,zZn=10,TZn=.05,EZn=1;function RZn({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=tU(TZn,EZn,a),e=tU(OZn,zZn,e/1e3),a<1?(i=c=>{const u=c*a,d=u*e,p=u-n,h=Jge(c,a),g=Math.exp(-d);return Boe-p/h*g},o=c=>{const d=c*a*e,p=d*n+n,h=Math.pow(a,2)*Math.pow(c,2)*e,g=Math.exp(-d),m=Jge(Math.pow(c,2),a);return(-i(c)+Boe>0?-1:1)*((p-h)*g)/m}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Boe+u*d},o=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const s=5/e,l=PZn(i,o,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const IZn=12;function PZn(e,t,n){let r=n;for(let i=1;i<IZn;i++)r=r-e(r)/t(r);return r}function Jge(e,t){return e*Math.sqrt(1-t*t)}const DZn=["duration","bounce"],kZn=["stiffness","damping","mass"];function iNe(e,t){return t.some(n=>e[n]!==void 0)}function LZn(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!iNe(e,kZn)&&iNe(e,DZn)){const n=RZn(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Wwe(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Qf(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=LZn(o),h=oNe,g=oNe;function m(){const b=u?-(u/1e3):0,y=n-t,M=l/(2*Math.sqrt(s*c)),C=Math.sqrt(s/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),M<1){const x=Jge(C,M);h=w=>{const S=Math.exp(-M*C*w);return n-S*((b+M*C*y)/x*Math.sin(x*w)+y*Math.cos(x*w))},g=w=>{const S=Math.exp(-M*C*w);return M*C*S*(Math.sin(x*w)*(b+M*C*y)/x+y*Math.cos(x*w))-S*(Math.cos(x*w)*(b+M*C*y)-x*y*Math.sin(x*w))}}else if(M===1)h=x=>n-Math.exp(-C*x)*(y+(b+C*y)*x);else{const x=C*Math.sqrt(M*M-1);h=w=>{const S=Math.exp(-M*C*w),A=Math.min(x*w,300);return n-S*((b+M*C*y)*Math.sinh(A)+x*y*Math.cosh(A))/x}}}return m(),{next:b=>{const y=h(b);if(p)a.done=b>=d;else{const M=g(b)*1e3,C=Math.abs(M)<=r,x=Math.abs(n-y)<=i;a.done=C&&x}return a.value=a.done?n:y,a},flipTarget:()=>{u=-u,[t,n]=[n,t],m()}}}Wwe.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const oNe=e=>0,aq=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ic=(e,t,n)=>-n*e+n*t+e;function joe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aNe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=joe(l,s,e+1/3),o=joe(l,s,e),a=joe(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const _Zn=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},NZn=[Kge,cx,fO],sNe=e=>NZn.find(t=>t.test(e)),gft=(e,t)=>{let n=sNe(e),r=sNe(t),i=n.parse(e),o=r.parse(t);n===fO&&(i=aNe(i),n=cx),r===fO&&(o=aNe(o),r=cx);const a=Object.assign({},i);return s=>{for(const l in a)l!=="alpha"&&(a[l]=_Zn(i[l],o[l],s));return a.alpha=ic(i.alpha,o.alpha,s),n.transform(a)}},eme=e=>typeof e=="number",FZn=(e,t)=>n=>t(e(n)),QZ=(...e)=>e.reduce(FZn);function mft(e,t){return eme(e)?n=>ic(e,t,n):G0.test(e)?gft(e,t):bft(e,t)}const vft=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,a)=>mft(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},WZn=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mft(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function lNe(e){const t=eM.parse(e),n=t.length;let r=0,i=0,o=0;for(let a=0;a<n;a++)r||typeof t[a]=="number"?r++:t[a].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const bft=(e,t)=>{const n=eM.createTransformer(t),r=lNe(e),i=lNe(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?QZ(vft(r.parsed,i.parsed),n):a=>`${a>0?t:e}`},qZn=(e,t)=>n=>ic(e,t,n);function BZn(e){if(typeof e=="number")return qZn;if(typeof e=="string")return G0.test(e)?gft:bft;if(Array.isArray(e))return vft;if(typeof e=="object")return WZn}function jZn(e,t,n){const r=[],i=n||BZn(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]:t;s=QZ(l,s)}r.push(s)}return r}function HZn([e,t],[n]){return r=>n(aq(e,t,r))}function VZn(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let l=1;for(;l<n&&!(e[l]>i||l===r);l++);o=l-1}const s=aq(e[o],e[o+1],i);return t[o](s)}}function yft(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Q9(o===t.length),Q9(!r||!Array.isArray(r)||r.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=jZn(t,r,i),s=o===2?HZn(e,a):VZn(e,a);return n?l=>s(tU(e[0],e[o-1],l)):s}const ZZ=e=>t=>1-e(1-t),qwe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,GZn=e=>t=>Math.pow(t,e),Mft=e=>t=>t*t*((e+1)*t-e),$Zn=e=>{const t=Mft(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},Cft=1.525,UZn=4/11,XZn=8/11,YZn=9/10,Bwe=e=>e,jwe=GZn(2),KZn=ZZ(jwe),xft=qwe(jwe),wft=e=>1-Math.sin(Math.acos(e)),Hwe=ZZ(wft),QZn=qwe(Hwe),Vwe=Mft(Cft),ZZn=ZZ(Vwe),JZn=qwe(Vwe),eJn=$Zn(Cft),tJn=4356/361,nJn=35442/1805,rJn=16061/1805,nU=e=>{if(e===1||e===0)return e;const t=e*e;return e<UZn?7.5625*t:e<XZn?9.075*t-9.9*e+3.4:e<YZn?tJn*t-nJn*e+rJn:10.8*e*e-20.52*e+10.72},iJn=ZZ(nU),oJn=e=>e<.5?.5*(1-nU(1-e*2)):.5*nU(e*2-1)+.5;function aJn(e,t){return e.map(()=>t||xft).splice(0,e.length-1)}function sJn(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function lJn(e,t){return e.map(n=>n*t)}function L7({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=lJn(r&&r.length===a.length?r:sJn(a),i);function l(){return yft(s,a,{ease:Array.isArray(n)?n:aJn(a,n)})}let c=l();return{next:u=>(o.value=c(u),o.done=u>=i,o),flipTarget:()=>{a.reverse(),c=l()}}}function cJn({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const l=t+s,c=o===void 0?l:o(l);return c!==l&&(s=c-t),{next:u=>{const d=-s*Math.exp(-u/r);return a.done=!(d>i||d<-i),a.value=a.done?c:c+d,a},flipTarget:()=>{}}}const cNe={keyframes:L7,spring:Wwe,decay:cJn};function uJn(e){if(Array.isArray(e.to))return L7;if(cNe[e.type])return cNe[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?L7:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Wwe:L7}const Sft=1/60*1e3,dJn=typeof performance<"u"?()=>performance.now():()=>Date.now(),Aft=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(dJn()),Sft);function pJn(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const d=u&&i,p=d?t:n;return c&&a.add(l),p.indexOf(l)===-1&&(p.push(l),d&&i&&(r=t.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),a.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let c=0;c<r;c++){const u=t[c];u(l),a.has(u)&&(s.schedule(u),e())}i=!1,o&&(o=!1,s.process(l))}};return s}const hJn=40;let tme=!0,sq=!1,nme=!1;const RI={delta:0,timestamp:0},kB=["read","update","preRender","render","postRender"],JZ=kB.reduce((e,t)=>(e[t]=pJn(()=>sq=!0),e),{}),bb=kB.reduce((e,t)=>{const n=JZ[t];return e[t]=(r,i=!1,o=!1)=>(sq||gJn(),n.schedule(r,i,o)),e},{}),EP=kB.reduce((e,t)=>(e[t]=JZ[t].cancel,e),{}),Hoe=kB.reduce((e,t)=>(e[t]=()=>JZ[t].process(RI),e),{}),fJn=e=>JZ[e].process(RI),Oft=e=>{sq=!1,RI.delta=tme?Sft:Math.max(Math.min(e-RI.timestamp,hJn),1),RI.timestamp=e,nme=!0,kB.forEach(fJn),nme=!1,sq&&(tme=!1,Aft(Oft))},gJn=()=>{sq=!0,tme=!0,nme||Aft(Oft)},rU=()=>RI;function zft(e,t,n=0){return e-t-n}function mJn(e,t,n=0,r=!0){return r?zft(t+-e,t,n):t-(e-t)+n}function vJn(e,t,n,r){return r?e>=t+n:e<=-n}const bJn=e=>{const t=({delta:n})=>e(n);return{start:()=>bb.update(t,!0),stop:()=>EP.update(t)}};function Tft(e){var t,n,{from:r,autoplay:i=!0,driver:o=bJn,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:h,onUpdate:g}=e,m=Qf(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=m,y,M=0,C=m.duration,x,w=!1,S=!0,A;const z=uJn(m);!((n=(t=z).needsInterpolation)===null||n===void 0)&&n.call(t,r,b)&&(A=yft([0,100],[r,b],{clamp:!1}),r=0,b=100);const O=z(Object.assign(Object.assign({},m),{from:r,to:b}));function T(){M++,l==="reverse"?(S=M%2===0,a=mJn(a,C,c,S)):(a=zft(a,C,c),l==="mirror"&&O.flipTarget()),w=!1,h&&h()}function R(){y.stop(),p&&p()}function P(N){if(S||(N=-N),a+=N,!w){const L=O.next(Math.max(0,a));x=L.value,A&&(x=A(x)),w=S?L.done:a<=0}g?.(x),w&&(M===0&&(C??(C=a)),M<s?vJn(a,C,c,S)&&T():R())}function F(){u?.(),y=o(P),y.start()}return i&&F(),{stop:()=>{d?.(),y.stop()}}}function Eft(e,t){return t?e*(1e3/t):0}function yJn({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:h}){let g;function m(C){return n!==void 0&&C<n||r!==void 0&&C>r}function b(C){return n===void 0?r:r===void 0||Math.abs(n-C)<Math.abs(r-C)?n:r}function y(C){g?.stop(),g=Tft(Object.assign(Object.assign({},C),{driver:u,onUpdate:x=>{var w;d?.(x),(w=C.onUpdate)===null||w===void 0||w.call(C,x)},onComplete:p,onStop:h}))}function M(C){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},C))}if(m(e))M({from:e,velocity:t,to:b(e)});else{let C=i*t+e;typeof c<"u"&&(C=c(C));const x=b(C),w=x===n?-1:1;let S,A;const z=O=>{S=A,A=O,t=Eft(O-S,rU().delta),(w===1&&O>x||w===-1&&O<x)&&M({from:O,to:x,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:m(C)?z:void 0})}return{stop:()=>g?.stop()}}const rme=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),uNe=e=>rme(e)&&e.hasOwnProperty("z"),H8=(e,t)=>Math.abs(e-t);function Rft(e,t){if(eme(e)&&eme(t))return H8(e,t);if(rme(e)&&rme(t)){const n=H8(e.x,t.x),r=H8(e.y,t.y),i=uNe(e)&&uNe(t)?H8(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const Ift=(e,t)=>1-3*t+3*e,Pft=(e,t)=>3*t-6*e,Dft=e=>3*e,iU=(e,t,n)=>((Ift(t,n)*e+Pft(t,n))*e+Dft(t))*e,kft=(e,t,n)=>3*Ift(t,n)*e*e+2*Pft(t,n)*e+Dft(t),MJn=1e-7,CJn=10;function xJn(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=iU(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>MJn&&++s<CJn);return a}const wJn=8,SJn=.001;function AJn(e,t,n,r){for(let i=0;i<wJn;++i){const o=kft(t,n,r);if(o===0)return t;const a=iU(t,n,r)-e;t-=a/o}return t}const _7=11,V8=1/(_7-1);function OJn(e,t,n,r){if(e===t&&n===r)return Bwe;const i=new Float32Array(_7);for(let a=0;a<_7;++a)i[a]=iU(a*V8,e,n);function o(a){let s=0,l=1;const c=_7-1;for(;l!==c&&i[l]<=a;++l)s+=V8;--l;const u=(a-i[l])/(i[l+1]-i[l]),d=s+u*V8,p=kft(d,e,n);return p>=SJn?AJn(a,d,e,n):p===0?d:xJn(a,s,s+V8,e,n)}return a=>a===0||a===1?a:iU(o(a),t,r)}function zJn(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||n||r||i,s=v.useRef(!1),l=v.useRef(null),c={passive:!(n||t||r||g)};function u(){var m;(m=l.current)===null||m===void 0||m.call(l),l.current=null}function d(){var m;return u(),s.current=!1,(m=o.animationState)===null||m===void 0||m.setActive(Hs.Tap,!1),!pft()}function p(m,b){d()&&(hft(o.getInstance(),m.target)?t?.(m,b):r?.(m,b))}function h(m,b){d()&&r?.(m,b)}function g(m,b){var y;u(),!s.current&&(s.current=!0,l.current=QZ(EI(window,"pointerup",p,c),EI(window,"pointercancel",h,c)),(y=o.animationState)===null||y===void 0||y.setActive(Hs.Tap,!0),n?.(m,b))}eU(o,"pointerdown",a?g:void 0,c),fft(u)}var ime=new WeakMap,Voe=new WeakMap,TJn=function(e){var t;(t=ime.get(e.target))===null||t===void 0||t(e)},EJn=function(e){e.forEach(TJn)};function RJn(e){var t=e.root,n=Qf(e,["root"]),r=t||document;Voe.has(r)||Voe.set(r,{});var i=Voe.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(EJn,Dn({root:t},n))),i[o]}function IJn(e,t,n){var r=RJn(t);return ime.set(e,n),r.observe(e),function(){ime.delete(e),r.unobserve(e)}}function PJn(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=o===void 0?{}:o,s=v.useRef({hasEnteredView:!1,isInView:!1}),l=!!(n||r||i);a.once&&s.current.hasEnteredView&&(l=!1);var c=typeof IntersectionObserver>"u"?LJn:kJn;c(l,s.current,t,a)}var DJn={some:0,all:1};function kJn(e,t,n,r){var i=r.root,o=r.margin,a=r.amount,s=a===void 0?"some":a,l=r.once;v.useEffect(function(){if(e){var c={root:i?.current,rootMargin:o,threshold:typeof s=="number"?s:DJn[s]},u=function(d){var p,h=d.isIntersecting;if(t.isInView!==h&&(t.isInView=h,!(l&&!h&&t.hasEnteredView))){h&&(t.hasEnteredView=!0),(p=n.animationState)===null||p===void 0||p.setActive(Hs.InView,h);var g=n.getProps(),m=h?g.onViewportEnter:g.onViewportLeave;m?.(d)}};return IJn(n.getInstance(),c,u)}},[e,i,o,s])}function LJn(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;v.useEffect(function(){!e||!o||requestAnimationFrame(function(){var a;t.hasEnteredView=!0;var s=n.getProps().onViewportEnter;s?.(null),(a=n.animationState)===null||a===void 0||a.setActive(Hs.InView,!0)})},[e])}var ux=function(e){return function(t){return e(t),null}},_Jn={inView:ux(PJn),tap:ux(zJn),focus:ux(gZn),hover:ux(AZn)},NJn=0,FJn=function(){return NJn++},WJn=function(){return YZ(FJn)};function Lft(){var e=v.useContext($Z);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=WJn();v.useEffect(function(){return r(i)},[]);var o=function(){return n?.(i)};return!t&&n?[!1,o]:[!0]}function _ft(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var oU=function(e){return e*1e3},qJn={linear:Bwe,easeIn:jwe,easeInOut:xft,easeOut:KZn,circIn:wft,circInOut:QZn,circOut:Hwe,backIn:Vwe,backInOut:JZn,backOut:ZZn,anticipate:eJn,bounceIn:iJn,bounceInOut:oJn,bounceOut:nU},dNe=function(e){if(Array.isArray(e)){Q9(e.length===4);var t=Eu(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return OJn(n,r,i,o)}else if(typeof e=="string")return qJn[e];return e},BJn=function(e){return Array.isArray(e)&&typeof e[0]!="number"},pNe=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&eM.test(t)&&!t.startsWith("url("))},XS=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},G8=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Goe=function(){return{type:"keyframes",ease:"linear",duration:.3}},jJn=function(e){return{type:"keyframes",duration:.8,values:e}},hNe={x:XS,y:XS,z:XS,rotate:XS,rotateX:XS,rotateY:XS,rotateZ:XS,scaleX:G8,scaleY:G8,scale:G8,opacity:Goe,backgroundColor:Goe,color:Goe,default:G8},HJn=function(e,t){var n;return oq(t)?n=jJn:n=hNe[e]||hNe.default,Dn({to:t},n(t))},VJn=Dn(Dn({},Yht),{color:G0,backgroundColor:G0,outlineColor:G0,fill:G0,stroke:G0,borderColor:G0,borderTopColor:G0,borderRightColor:G0,borderBottomColor:G0,borderLeftColor:G0,filter:Qge,WebkitFilter:Qge}),Gwe=function(e){return VJn[e]};function $we(e,t){var n,r=Gwe(e);return r!==Qge&&(r=eM),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function GJn(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Qf(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function $Jn(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=Qf(e,["ease","times","yoyo","flip","loop"]),s=Dn({},a);return n&&(s.offset=n),a.duration&&(s.duration=oU(a.duration)),a.repeatDelay&&(s.repeatDelay=oU(a.repeatDelay)),t&&(s.ease=BJn(t)?t.map(dNe):dNe(t)),a.type==="tween"&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),a.type!=="spring"&&(s.type="keyframes"),s}function UJn(e,t){var n,r,i=Uwe(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function XJn(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=mb([],Eu(e.to),!1),e.to[0]=e.from),e}function YJn(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),XJn(t),GJn(e)||(e=Dn(Dn({},e),HJn(n,t.to))),Dn(Dn({},t),$Jn(e))}function KJn(e,t,n,r,i){var o,a=Uwe(r,e),s=(o=a.from)!==null&&o!==void 0?o:t.get(),l=pNe(e,n);s==="none"&&l&&typeof n=="string"?s=$we(e,n):fNe(s)&&typeof n=="string"?s=gNe(n):!Array.isArray(n)&&fNe(n)&&typeof s=="string"&&(n=gNe(s));var c=pNe(e,s);function u(){var p={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(h){return t.set(h)}};return a.type==="inertia"||a.type==="decay"?yJn(Dn(Dn({},p),a)):Tft(Dn(Dn({},YJn(a,p,e)),{onUpdate:function(h){var g;p.onUpdate(h),(g=a.onUpdate)===null||g===void 0||g.call(a,h)},onComplete:function(){var h;p.onComplete(),(h=a.onComplete)===null||h===void 0||h.call(a)}}))}function d(){var p,h,g=ift(n);return t.set(g),i(),(p=a?.onUpdate)===null||p===void 0||p.call(a,g),(h=a?.onComplete)===null||h===void 0||h.call(a),{stop:function(){}}}return!c||!l||a.type===!1?d:u}function fNe(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function gNe(e){return typeof e=="number"?0:$we("",e)}function Uwe(e,t){return e[t]||e.default||e}function Xwe(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,a,s=KJn(e,t,n,r,i),l=UJn(r,e),c=function(){return a=s()};return l?o=window.setTimeout(c,oU(l)):c(),function(){clearTimeout(o),a?.stop()}})}var QJn=function(e){return/^\-?\d*\.?\d+$/.test(e)},ZJn=function(e){return/^0[^.\s]+$/.test(e)};function Ywe(e,t){e.indexOf(t)===-1&&e.push(t)}function Kwe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var bF=(function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return Ywe(this.subscriptions,t),function(){return Kwe(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var a=this.subscriptions[o];a&&a(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e})(),JJn=function(e){return!isNaN(parseFloat(e))},eer=(function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new bF,this.velocityUpdateSubscribers=new bF,this.renderSubscribers=new bF,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=rU(),a=o.delta,s=o.timestamp;n.lastUpdated!==s&&(n.timeDelta=a,n.lastUpdated=s,bb.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return bb.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=JJn(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Eft(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e})();function RP(e){return new eer(e)}var Nft=function(e){return function(t){return t.test(e)}},ter={test:function(e){return e==="auto"},parse:function(e){return e}},Fft=[q3,zi,vb,AC,jQn,BQn,ter],t_=function(e){return Fft.find(Nft(e))},ner=mb(mb([],Eu(Fft),!1),[G0,eM],!1),rer=function(e){return ner.find(Nft(e))};function ier(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,RP(n))}function oer(e,t){var n=UZ(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var a=Qf(r,["transitionEnd","transition"]);a=Dn(Dn({},a),o);for(var s in a){var l=ift(a[s]);ier(e,s,l)}}function aer(e,t,n){var r,i,o,a,s=Object.keys(t).filter(function(h){return!e.hasValue(h)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),p===null&&(p=(i=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&i!==void 0?i:t[u]),p!=null&&(typeof p=="string"&&(QJn(p)||ZJn(p))?p=parseFloat(p):!rer(p)&&eM.test(d)&&(p=$we(u,d)),e.addValue(u,RP(p)),(o=(a=n)[u])!==null&&o!==void 0||(a[u]=p),e.setBaseTarget(u,p))}}function ser(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function ler(e,t,n){var r,i,o={};for(var a in e)o[a]=(r=ser(a,t))!==null&&r!==void 0?r:(i=n.getValue(a))===null||i===void 0?void 0:i.get();return o}function cer(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(a){return ome(e,a,n)});r=Promise.all(i)}else if(typeof t=="string")r=ome(e,t,n);else{var o=typeof t=="function"?UZ(e,t,n.custom):t;r=Wft(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function ome(e,t,n){var r;n===void 0&&(n={});var i=UZ(e,t,n.custom),o=(i||{}).transition,a=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return Wft(e,i,n)}:function(){return Promise.resolve()},l=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(h){h===void 0&&(h=0);var g=a.delayChildren,m=g===void 0?0:g,b=a.staggerChildren,y=a.staggerDirection;return uer(e,t,m+h,b,y,n)}:function(){return Promise.resolve()},c=a.when;if(c){var u=Eu(c==="beforeChildren"?[s,l]:[l,s],2),d=u[0],p=u[1];return d().then(p)}else return Promise.all([s(),l(n.delay)])}function Wft(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,a=o===void 0?0:o,s=i.transitionOverride,l=i.type,c=e.makeTargetAnimatable(t),u=c.transition,d=u===void 0?e.getDefaultTransition():u,p=c.transitionEnd,h=Qf(c,["transition","transitionEnd"]);s&&(d=s);var g=[],m=l&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[l]);for(var b in h){var y=e.getValue(b),M=h[b];if(!(!y||M===void 0||m&&per(m,b))){var C=Dn({delay:a},d);e.shouldReduceMotion&&IB(b)&&(C=Dn(Dn({},C),{type:!1,delay:0}));var x=Xwe(b,y,M,C);g.push(x)}}return Promise.all(g).then(function(){p&&oer(e,p)})}function uer(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var a=[],s=(e.variantChildren.size-1)*r,l=i===1?function(c){return c===void 0&&(c=0),c*r}:function(c){return c===void 0&&(c=0),s-c*r};return Array.from(e.variantChildren).sort(der).forEach(function(c,u){a.push(ome(c,t,Dn(Dn({},o),{delay:n+l(u)})).then(function(){return c.notifyAnimationComplete(t)}))}),Promise.all(a)}function der(e,t){return e.sortNodePosition(t)}function per(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var Qwe=[Hs.Animate,Hs.InView,Hs.Focus,Hs.Hover,Hs.Tap,Hs.Drag,Hs.Exit],her=mb([],Eu(Qwe),!1).reverse(),fer=Qwe.length;function ger(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return cer(e,r,i)}))}}function mer(e){var t=ger(e),n=ber(),r={},i=!0,o=function(u,d){var p=UZ(e,d);if(p){p.transition;var h=p.transitionEnd,g=Qf(p,["transition","transitionEnd"]);u=Dn(Dn(Dn({},u),g),h)}return u};function a(u){return r[u]!==void 0}function s(u){t=u(e)}function l(u,d){for(var p,h=e.getProps(),g=e.getVariantContext(!0)||{},m=[],b=new Set,y={},M=1/0,C=function(A){var z=her[A],O=n[z],T=(p=h[z])!==null&&p!==void 0?p:g[z],R=Hg(T),P=z===d?O.isActive:null;P===!1&&(M=A);var F=T===g[z]&&T!==h[z]&&R;if(F&&i&&e.manuallyAnimateOnMount&&(F=!1),O.protectedKeys=Dn({},y),!O.isActive&&P===null||!T&&!O.prevProp||Nwe(T)||typeof T=="boolean")return"continue";var N=ver(O.prevProp,T),L=N||z===d&&O.isActive&&!F&&R||A>M&&R,W=Array.isArray(T)?T:[T],j=W.reduce(o,{});P===!1&&(j={});var V=O.prevResolvedValues,G=V===void 0?{}:V,q=Dn(Dn({},G),j),$=function(re){L=!0,b.delete(re),O.needsAnimating[re]=!0};for(var U in q){var X=j[U],Q=G[U];y.hasOwnProperty(U)||(X!==Q?oq(X)&&oq(Q)?!_ft(X,Q)||N?$(U):O.protectedKeys[U]=!0:X!==void 0?$(U):b.add(U):X!==void 0&&b.has(U)?$(U):O.protectedKeys[U]=!0)}O.prevProp=T,O.prevResolvedValues=j,O.isActive&&(y=Dn(Dn({},y),j)),i&&e.blockInitialAnimation&&(L=!1),L&&!F&&m.push.apply(m,mb([],Eu(W.map(function(re){return{animation:re,options:Dn({type:z},u)}})),!1))},x=0;x<fer;x++)C(x);if(r=Dn({},y),b.size){var w={};b.forEach(function(A){var z=e.getBaseTarget(A);z!==void 0&&(w[A]=z)}),m.push({animation:w})}var S=!!m.length;return i&&h.initial===!1&&!e.manuallyAnimateOnMount&&(S=!1),i=!1,S?t(m):Promise.resolve()}function c(u,d,p){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(function(b){var y;return(y=b.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;var g=l(p,u);for(var m in n)n[m].protectedKeys={};return g}return{isAnimated:a,animateChanges:l,setActive:c,setAnimateFunction:s,getState:function(){return n}}}function ver(e,t){return typeof t=="string"?t!==e:kht(t)?!_ft(t,e):!1}function YS(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ber(){var e;return e={},e[Hs.Animate]=YS(!0),e[Hs.InView]=YS(),e[Hs.Hover]=YS(),e[Hs.Tap]=YS(),e[Hs.Drag]=YS(),e[Hs.Focus]=YS(),e[Hs.Exit]=YS(),e}var yer={animation:ux(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=mer(t)),Nwe(n)&&v.useEffect(function(){return n.subscribe(t)},[n])}),exit:ux(function(e){var t=e.custom,n=e.visualElement,r=Eu(Lft(),2),i=r[0],o=r[1],a=v.useContext($Z);v.useEffect(function(){var s,l;n.isPresent=i;var c=(s=n.animationState)===null||s===void 0?void 0:s.setActive(Hs.Exit,!i,{custom:(l=a?.custom)!==null&&l!==void 0?l:t});!i&&c?.then(o)},[i])})},qft=(function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,a=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var p=Uoe(i.lastMoveEventInfo,i.history),h=i.startEvent!==null,g=Rft(p.offset,{x:0,y:0})>=3;if(!(!h&&!g)){var m=p.point,b=rU().timestamp;i.history.push(Dn(Dn({},m),{timestamp:b}));var y=i.handlers,M=y.onStart,C=y.onMove;h||(M&&M(i.lastMoveEvent,p),i.startEvent=i.lastMoveEvent),C&&C(i.lastMoveEvent,p)}}},this.handlePointerMove=function(p,h){if(i.lastMoveEvent=p,i.lastMoveEventInfo=$oe(h,i.transformPagePoint),aft(p)&&p.buttons===0){i.handlePointerUp(p,h);return}bb.update(i.updatePoint,!0)},this.handlePointerUp=function(p,h){i.end();var g=i.handlers,m=g.onEnd,b=g.onSessionEnd,y=Uoe($oe(h,i.transformPagePoint),i.history);i.startEvent&&m&&m(p,y),b&&b(p,y)},!(sft(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=a;var s=Fwe(t),l=$oe(s,this.transformPagePoint),c=l.point,u=rU().timestamp;this.history=[Dn(Dn({},c),{timestamp:u})];var d=n.onSessionStart;d&&d(t,Uoe(l,this.history)),this.removeListeners=QZ(EI(window,"pointermove",this.handlePointerMove),EI(window,"pointerup",this.handlePointerUp),EI(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),EP.update(this.updatePoint)},e})();function $oe(e,t){return t?{point:t(e.point)}:e}function mNe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uoe(e,t){var n=e.point;return{point:n,delta:mNe(n,Bft(t)),offset:mNe(n,Mer(t)),velocity:Cer(t,.1)}}function Mer(e){return e[0]}function Bft(e){return e[e.length-1]}function Cer(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Bft(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oU(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function tM(e){return e.max-e.min}function vNe(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),Rft(e,t)<n}function bNe(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=ic(t.min,t.max,e.origin),e.scale=tM(n)/tM(t),(vNe(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ic(n.min,n.max,e.origin)-e.originPoint,(vNe(e.translate)||isNaN(e.translate))&&(e.translate=0)}function yF(e,t,n,r){bNe(e.x,t.x,n.x,r?.originX),bNe(e.y,t.y,n.y,r?.originY)}function yNe(e,t,n){e.min=n.min+t.min,e.max=e.min+tM(t)}function xer(e,t,n){yNe(e.x,t.x,n.x),yNe(e.y,t.y,n.y)}function MNe(e,t,n){e.min=t.min-n.min,e.max=e.min+tM(t)}function MF(e,t,n){MNe(e.x,t.x,n.x),MNe(e.y,t.y,n.y)}function wer(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?ic(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?ic(i,e,n.max):Math.min(e,i)),e}function CNe(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ser(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:CNe(e.x,r,o),y:CNe(e.y,n,i)}}function xNe(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Eu([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function Aer(e,t){return{x:xNe(e.x,t.x),y:xNe(e.y,t.y)}}function Oer(e,t){var n=.5,r=tM(e),i=tM(t);return i>r?n=aq(t.min,t.max-r,e.min):r>i&&(n=aq(e.min,e.max-i,t.min)),tU(0,1,n)}function zer(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var ame=.35;function Ter(e){return e===void 0&&(e=ame),e===!1?e=0:e===!0&&(e=ame),{x:wNe(e,"left","right"),y:wNe(e,"top","bottom")}}function wNe(e,t,n){return{min:SNe(e,t),max:SNe(e,n)}}function SNe(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var ANe=function(){return{translate:0,scale:1,origin:0,originPoint:0}},CF=function(){return{x:ANe(),y:ANe()}},ONe=function(){return{min:0,max:0}},e0=function(){return{x:ONe(),y:ONe()}};function Ev(e){return[e("x"),e("y")]}function jft(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function Eer(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function Rer(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Xoe(e){return e===void 0||e===1}function Hft(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Xoe(t)||!Xoe(n)||!Xoe(r)}function OC(e){return Hft(e)||zNe(e.x)||zNe(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function zNe(e){return e&&e!=="0%"}function aU(e,t,n){var r=e-n,i=t*r;return n+i}function TNe(e,t,n,r,i){return i!==void 0&&(e=aU(e,i,r)),aU(e,n,r)+t}function sme(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=TNe(e.min,t,n,r,i),e.max=TNe(e.max,t,n,r,i)}function Vft(e,t){var n=t.x,r=t.y;sme(e.x,n.translate,n.scale,n.originPoint),sme(e.y,r.translate,r.scale,r.originPoint)}function Ier(e,t,n,r){var i,o;r===void 0&&(r=!1);var a=n.length;if(a){t.x=t.y=1;for(var s,l,c=0;c<a;c++)s=n[c],l=s.projectionDelta,((o=(i=s.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&jR(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Vft(e,l)),r&&OC(s.latestValues)&&jR(e,s.latestValues))}}function NC(e,t){e.min=e.min+t,e.max=e.max+t}function ENe(e,t,n){var r=Eu(n,3),i=r[0],o=r[1],a=r[2],s=t[a]!==void 0?t[a]:.5,l=ic(e.min,e.max,s);sme(e,t[i],t[o],l,t.scale)}var Per=["x","scaleX","originX"],Der=["y","scaleY","originY"];function jR(e,t){ENe(e.x,t,Per),ENe(e.y,t,Der)}function Gft(e,t){return jft(Rer(e.getBoundingClientRect(),t))}function ker(e,t,n){var r=Gft(e,n),i=t.scroll;return i&&(NC(r.x,i.x),NC(r.y,i.y)),r}var Ler=new WeakMap,_er=(function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=e0(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,a=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var s=function(d){r.stopAnimation(),a&&r.snapToCursor(Fwe(d,"page").point)},l=function(d,p){var h,g=r.getProps(),m=g.drag,b=g.dragPropagation,y=g.onDragStart;m&&!b&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=dft(m),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Ev(function(M){var C,x,w=r.getAxisMotionValue(M).get()||0;if(vb.test(w)){var S=(x=(C=r.visualElement.projection)===null||C===void 0?void 0:C.layout)===null||x===void 0?void 0:x.actual[M];if(S){var A=tM(S);w=A*(parseFloat(w)/100)}}r.originPoint[M]=w}),y?.(d,p),(h=r.visualElement.animationState)===null||h===void 0||h.setActive(Hs.Drag,!0))},c=function(d,p){var h=r.getProps(),g=h.dragPropagation,m=h.dragDirectionLock,b=h.onDirectionLock,y=h.onDrag;if(!(!g&&!r.openGlobalLock)){var M=p.offset;if(m&&r.currentDirection===null){r.currentDirection=Ner(M),r.currentDirection!==null&&b?.(r.currentDirection);return}r.updateAxis("x",p.point,M),r.updateAxis("y",p.point,M),r.visualElement.syncRender(),y?.(d,p)}},u=function(d,p){return r.stop(d,p)};this.panSession=new qft(t,{onSessionStart:s,onStart:l,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o?.(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Hs.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!$8(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=wer(a,this.constraints[t],this.elastic[t])),o.set(a)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;r&&BR(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Ser(o.actual,r):this.constraints=!1,this.elastic=Ter(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ev(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=zer(o.actual[s],t.constraints[s]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!BR(n))return!1;var i=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=ker(i,o.root,this.visualElement.getTransformPagePoint()),s=Aer(o.layout.actual,a);if(r){var l=r(Eer(s));this.hasMutatedConstraints=!!l,l&&(s=jft(l))}return s},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,a=r.dragElastic,s=r.dragTransition,l=r.dragSnapToOrigin,c=r.onDragTransitionEnd,u=this.constraints||{},d=Ev(function(p){var h;if($8(p,i,n.currentDirection)){var g=(h=u?.[p])!==null&&h!==void 0?h:{};l&&(g={min:0,max:0});var m=a?200:1e6,b=a?40:1e7,y=Dn(Dn({type:"inertia",velocity:o?t[p]:0,bounceStiffness:m,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10},s),g);return n.startAxisValueAnimation(p,y)}});return Promise.all(d).then(c)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return Xwe(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Ev(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Ev(function(r){var i=n.getProps().drag;if($8(r,i,n.currentDirection)){var o=n.visualElement.projection,a=n.getAxisMotionValue(r);if(o&&o.layout){var s=o.layout.actual[r],l=s.min,c=s.max;a.set(t[r]-ic(l,c,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,a=this.visualElement.projection;if(!(!BR(o)||!a||!this.constraints)){this.stopAnimation();var s={x:0,y:0};Ev(function(c){var u=t.getAxisMotionValue(c);if(u){var d=u.get();s[c]=Oer({min:d,max:d},t.constraints[c])}});var l=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=l?l({},""):"none",(n=a.root)===null||n===void 0||n.updateScroll(),a.updateLayout(),this.resolveConstraints(),Ev(function(c){if($8(c,i,null)){var u=t.getAxisMotionValue(c),d=t.constraints[c],p=d.min,h=d.max;u.set(ic(p,h,s[c]))}})}},e.prototype.addListeners=function(){var t=this,n;Ler.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=EI(r,"pointerdown",function(c){var u=t.getProps(),d=u.drag,p=u.dragListener,h=p===void 0?!0:p;d&&h&&t.start(c)}),o=function(){var c=t.getProps().dragConstraints;BR(c)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,s=a.addEventListener("measure",o);a&&!a.layout&&((n=a.root)===null||n===void 0||n.updateScroll(),a.updateLayout()),o();var l=KZ(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",(function(c){var u=c.delta,d=c.hasLayoutChanged;t.isDragging&&d&&(Ev(function(p){var h=t.getAxisMotionValue(p);h&&(t.originPoint[p]+=u[p].translate,h.set(h.get()+u[p].translate))}),t.visualElement.syncRender())})),function(){l(),i(),s()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,a=t.dragPropagation,s=a===void 0?!1:a,l=t.dragConstraints,c=l===void 0?!1:l,u=t.dragElastic,d=u===void 0?ame:u,p=t.dragMomentum,h=p===void 0?!0:p;return Dn(Dn({},t),{drag:r,dragDirectionLock:o,dragPropagation:s,dragConstraints:c,dragElastic:d,dragMomentum:h})},e})();function $8(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ner(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function Fer(e){var t=e.dragControls,n=e.visualElement,r=YZ(function(){return new _er(n)});v.useEffect(function(){return t&&t.subscribe(r)},[r,t]),v.useEffect(function(){return r.addListeners()},[r])}function Wer(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||n||r||i,s=v.useRef(null),l=v.useContext(Rwe).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:t,onEnd:function(d,p){s.current=null,r&&r(d,p)}};v.useEffect(function(){s.current!==null&&s.current.updateHandlers(c)});function u(d){s.current=new qft(d,c,{transformPagePoint:l})}eU(o,"pointerdown",a&&u),fft(function(){return s.current&&s.current.end()})}var qer={pan:ux(Wer),drag:ux(Fer)},U8=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Ber(){var e=U8.map(function(){return new bF}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){U8.forEach(function(i){var o,a="on"+i,s=r[a];(o=t[i])===null||o===void 0||o.call(t),s&&(t[i]=n[a](s))})}};return e.forEach(function(r,i){n["on"+U8[i]]=function(o){return r.add(o)},n["notify"+U8[i]]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return r.notify.apply(r,mb([],Eu(o),!1))}}),n}function jer(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(Jy(o))e.addValue(i,o);else if(Jy(a))e.addValue(i,RP(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,RP((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var $ft=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(p,h){var g=p.parent,m=p.props,b=p.presenceId,y=p.blockInitialAnimation,M=p.visualState,C=p.shouldReduceMotion;h===void 0&&(h={});var x=!1,w=M.latestValues,S=M.renderState,A,z=Ber(),O=new Map,T=new Map,R={},P=Dn({},w),F;function N(){!A||!x||(L(),s(A,S,m.style,X.projection))}function L(){r(X,S,w,h,m)}function W(){z.notifyUpdate(w)}function j(Q,re){var ee=re.onChange(function(pe){w[Q]=pe,m.onUpdate&&bb.update(W,!1,!0)}),se=re.onRenderRequest(X.scheduleRender);T.set(Q,function(){ee(),se()})}var V=d(m);for(var G in V){var q=V[G];w[G]!==void 0&&Jy(q)&&q.set(w[G],!1)}var $=XZ(m),U=_ht(m),X=Dn(Dn({treeType:n,current:null,depth:g?g.depth+1:0,parent:g,children:new Set,presenceId:b,shouldReduceMotion:C,variantChildren:U?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!g?.isMounted(),blockInitialAnimation:y,isMounted:function(){return!!A},mount:function(Q){x=!0,A=X.current=Q,X.projection&&X.projection.mount(Q),U&&g&&!$&&(F=g?.addVariantChild(X)),O.forEach(function(re,ee){return j(ee,re)}),g?.children.add(X),X.setProps(m)},unmount:function(){var Q;(Q=X.projection)===null||Q===void 0||Q.unmount(),EP.update(W),EP.render(N),T.forEach(function(re){return re()}),F?.(),g?.children.delete(X),z.clearAllListeners(),A=void 0,x=!1},addVariantChild:function(Q){var re,ee=X.getClosestVariantNode();if(ee)return(re=ee.variantChildren)===null||re===void 0||re.add(Q),function(){return ee.variantChildren.delete(Q)}},sortNodePosition:function(Q){return!u||n!==Q.treeType?0:u(X.getInstance(),Q.getInstance())},getClosestVariantNode:function(){return U?X:g?.getClosestVariantNode()},getLayoutId:function(){return m.layoutId},getInstance:function(){return A},getStaticValue:function(Q){return w[Q]},setStaticValue:function(Q,re){return w[Q]=re},getLatestValues:function(){return w},setVisibility:function(Q){X.isVisible!==Q&&(X.isVisible=Q,X.scheduleRender())},makeTargetAnimatable:function(Q,re){return re===void 0&&(re=!0),o(X,Q,m,re)},measureViewportBox:function(){return a(A,m)},addValue:function(Q,re){X.hasValue(Q)&&X.removeValue(Q),O.set(Q,re),w[Q]=re.get(),j(Q,re)},removeValue:function(Q){var re;O.delete(Q),(re=T.get(Q))===null||re===void 0||re(),T.delete(Q),delete w[Q],c(Q,S)},hasValue:function(Q){return O.has(Q)},getValue:function(Q,re){var ee=O.get(Q);return ee===void 0&&re!==void 0&&(ee=RP(re),X.addValue(Q,ee)),ee},forEachValue:function(Q){return O.forEach(Q)},readValue:function(Q){var re;return(re=w[Q])!==null&&re!==void 0?re:l(A,Q,h)},setBaseTarget:function(Q,re){P[Q]=re},getBaseTarget:function(Q){if(i){var re=i(m,Q);if(re!==void 0&&!Jy(re))return re}return P[Q]}},z),{build:function(){return L(),S},scheduleRender:function(){bb.render(N,!1,!0)},syncRender:N,setProps:function(Q){(Q.transformTemplate||m.transformTemplate)&&X.scheduleRender(),m=Q,z.updatePropListeners(Q),R=jer(X,d(m),R)},getProps:function(){return m},getVariant:function(Q){var re;return(re=m.variants)===null||re===void 0?void 0:re[Q]},getDefaultTransition:function(){return m.transition},getTransformPagePoint:function(){return m.transformPagePoint},getVariantContext:function(Q){if(Q===void 0&&(Q=!1),Q)return g?.getVariantContext();if(!$){var re=g?.getVariantContext()||{};return m.initial!==void 0&&(re.initial=m.initial),re}for(var ee={},se=0;se<Her;se++){var pe=Uft[se],te=m[pe];(Hg(te)||te===!1)&&(ee[pe]=te)}return ee}});return X}},Uft=mb(["initial"],Eu(Qwe),!1),Her=Uft.length;function lme(e){return typeof e=="string"&&e.startsWith("var(--")}var Xft=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ver(e){var t=Xft.exec(e);if(!t)return[,];var n=Eu(t,3),r=n[1],i=n[2];return[r,i]}function cme(e,t,n){var r=Eu(Ver(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():lme(o)?cme(o,t):o}}function Ger(e,t,n){var r,i=Qf(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=Dn({},n)),e.forEachValue(function(c){var u=c.get();if(lme(u)){var d=cme(u,o);d&&c.set(d)}});for(var a in i){var s=i[a];if(lme(s)){var l=cme(s,o);l&&(i[a]=l,n&&((r=n[a])!==null&&r!==void 0||(n[a]=s)))}}return{target:i,transitionEnd:n}}var $er=new Set(["width","height","top","left","right","bottom","x","y"]),Yft=function(e){return $er.has(e)},Uer=function(e){return Object.keys(e).some(Yft)},Kft=function(e,t){e.set(t,!1),e.set(t)},RNe=function(e){return e===q3||e===zi},INe;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(INe||(INe={}));var PNe=function(e,t){return parseFloat(e.split(", ")[t])},DNe=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return PNe(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?PNe(a[1],e):0}},Xer=new Set(["x","y","z"]),Yer=rq.filter(function(e){return!Xer.has(e)});function Ker(e){var t=[];return Yer.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var kNe={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,a=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,a=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:DNe(4,13),y:DNe(5,14)},Qer=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(c){s[c]=kNe[c](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(c){var u=t.getValue(c);Kft(u,s[c]),e[c]=kNe[c](l,o)}),e},Zer=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=Dn({},t),r=Dn({},r);var i=Object.keys(t).filter(Yft),o=[],a=!1,s=[];if(i.forEach(function(u){var d=e.getValue(u);if(e.hasValue(u)){var p=n[u],h=t_(p),g=t[u],m;if(oq(g)){var b=g.length,y=g[0]===null?1:0;p=g[y],h=t_(p);for(var M=y;M<b;M++)m?Q9(t_(g[M])===m):m=t_(g[M])}else m=t_(g);if(h!==m)if(RNe(h)&&RNe(m)){var C=d.get();typeof C=="string"&&d.set(parseFloat(C)),typeof g=="string"?t[u]=parseFloat(g):Array.isArray(g)&&m===zi&&(t[u]=g.map(parseFloat))}else h?.transform&&m?.transform&&(p===0||g===0)?p===0?d.set(m.transform(p)):t[u]=h.transform(g):(a||(o=Ker(e),a=!0),s.push(u),r[u]=r[u]!==void 0?r[u]:t[u],Kft(d,g))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=Qer(t,e,s);return o.length&&o.forEach(function(u){var d=Eu(u,2),p=d[0],h=d[1];e.getValue(p).set(h)}),e.syncRender(),l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Jer(e,t,n,r){return Uer(t)?Zer(e,t,n,r):{target:t,transitionEnd:r}}var etr=function(e,t,n,r){var i=Ger(e,t,r);return t=i.target,r=i.transitionEnd,Jer(e,t,n,r)};function ttr(e){return window.getComputedStyle(e)}var Qft={treeType:"dom",readValueFromInstance:function(e,t){if(IB(t)){var n=Gwe(t);return n&&n.default||0}else{var r=ttr(e);return(Bht(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return Gft(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,a=t.transitionEnd,s=Qf(t,["transition","transitionEnd"]),l=ler(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){aer(e,s,l);var c=etr(e,s,l,a);a=c.transitionEnd,s=c.target}return Dn({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:_we,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Dwe(t,n,r,i.transformTemplate)},render:eft},ntr=$ft(Qft),rtr=$ft(Dn(Dn({},Qft),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return IB(t)?((n=Gwe(t))===null||n===void 0?void 0:n.default)||0:(t=tft.has(t)?t:Jht(t),e.getAttribute(t))},scrapeMotionValuesFromProps:rft,build:function(e,t,n,r,i){Lwe(t,n,r,i.transformTemplate)},render:nft})),itr=function(e,t){return Iwe(e)?rtr(t,{enableHardwareAcceleration:!1}):ntr(t,{enableHardwareAcceleration:!0})};function LNe(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var n_={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(zi.test(e))e=parseFloat(e);else return e;var n=LNe(e,t.target.x),r=LNe(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},_Ne="_$css",otr={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(Xft,function(m){return a.push(m),_Ne}));var s=eM.parse(e);if(s.length>5)return i;var l=eM.createTransformer(e),c=typeof s[0]!="number"?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var p=ic(u,d,.5);typeof s[2+c]=="number"&&(s[2+c]/=p),typeof s[3+c]=="number"&&(s[3+c]/=p);var h=l(s);if(o){var g=0;h=h.replace(_Ne,function(){var m=a[g];return g++,m})}return h}},atr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,a=r.switchLayoutGroup,s=r.layoutId,l=i.projection;IQn(ltr),l&&(o?.group&&o.group.add(l),a?.register&&s&&a.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",function(){n.safeToRemove()}),l.setOptions(Dn(Dn({},l.options),{onExitComplete:function(){return n.safeToRemove()}}))),gF.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,a=i.visualElement,s=i.drag,l=i.isPresent,c=a.projection;return c&&(c.isPresent=l,s||n.layoutDependency!==o||o===void 0?c.willUpdate():this.safeToRemove(),n.isPresent!==l&&(l?c.promote():c.relegate()||bb.postRender(function(){var u;!((u=c.getStack())===null||u===void 0)&&u.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=r.projection;a&&(a.scheduleCheckAfterUnmount(),i?.group&&i.group.remove(a),o?.deregister&&o.deregister(a))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n?.()},t.prototype.render=function(){return null},t})(E.Component);function str(e){var t=Eu(Lft(),2),n=t[0],r=t[1],i=v.useContext(Nht);return E.createElement(atr,Dn({},e,{layoutGroup:i,switchLayoutGroup:v.useContext(Fht),isPresent:n,safeToRemove:r}))}var ltr={borderRadius:Dn(Dn({},n_),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:n_,borderTopRightRadius:n_,borderBottomLeftRadius:n_,borderBottomRightRadius:n_,boxShadow:otr},ctr={measureLayout:str};function utr(e,t,n){n===void 0&&(n={});var r=Jy(e)?e:RP(e);return Xwe("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var Zft=["TopLeft","TopRight","BottomLeft","BottomRight"],dtr=Zft.length,NNe=function(e){return typeof e=="string"?parseFloat(e):e},FNe=function(e){return typeof e=="number"||zi.test(e)};function ptr(e,t,n,r,i,o){var a,s,l,c;i?(e.opacity=ic(0,(a=n.opacity)!==null&&a!==void 0?a:1,htr(r)),e.opacityExit=ic((s=t.opacity)!==null&&s!==void 0?s:1,0,ftr(r))):o&&(e.opacity=ic((l=t.opacity)!==null&&l!==void 0?l:1,(c=n.opacity)!==null&&c!==void 0?c:1,r));for(var u=0;u<dtr;u++){var d="border".concat(Zft[u],"Radius"),p=WNe(t,d),h=WNe(n,d);if(!(p===void 0&&h===void 0)){p||(p=0),h||(h=0);var g=p===0||h===0||FNe(p)===FNe(h);g?(e[d]=Math.max(ic(NNe(p),NNe(h),r),0),(vb.test(h)||vb.test(p))&&(e[d]+="%")):e[d]=h}}(t.rotate||n.rotate)&&(e.rotate=ic(t.rotate||0,n.rotate||0,r))}function WNe(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var htr=Jft(0,.5,Hwe),ftr=Jft(.5,.95,Bwe);function Jft(e,t,n){return function(r){return r<e?0:r>t?1:n(aq(e,t,r))}}function qNe(e,t){e.min=t.min,e.max=t.max}function Rg(e,t){qNe(e.x,t.x),qNe(e.y,t.y)}function BNe(e,t,n,r,i){return e-=t,e=aU(e,1/n,r),i!==void 0&&(e=aU(e,1/i,r)),e}function gtr(e,t,n,r,i,o,a){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),a===void 0&&(a=e),vb.test(t)){t=parseFloat(t);var s=ic(a.min,a.max,t/100);t=s-a.min}if(typeof t=="number"){var l=ic(o.min,o.max,r);e===o&&(l-=t),e.min=BNe(e.min,t,n,l,i),e.max=BNe(e.max,t,n,l,i)}}function jNe(e,t,n,r,i){var o=Eu(n,3),a=o[0],s=o[1],l=o[2];gtr(e,t[a],t[s],t[l],t.scale,r,i)}var mtr=["x","scaleX","originX"],vtr=["y","scaleY","originY"];function HNe(e,t,n,r){jNe(e.x,t,mtr,n?.x,r?.x),jNe(e.y,t,vtr,n?.y,r?.y)}function VNe(e){return e.translate===0&&e.scale===1}function egt(e){return VNe(e.x)&&VNe(e.y)}function tgt(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var btr=(function(){function e(){this.members=[]}return e.prototype.add=function(t){Ywe(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(Kwe(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(a){return t===a});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,a;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e})(),ytr="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function GNe(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return o+="scale(".concat(c,", ").concat(u,")"),o===ytr?"none":o}var Mtr=function(e,t){return e.depth-t.depth},Ctr=(function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){Ywe(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){Kwe(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(Mtr),this.isDirty=!1,this.children.forEach(t)},e})(),$Ne=1e3;function ngt(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return(function(){function a(s,l,c){var u=this;l===void 0&&(l={}),c===void 0&&(c=n?.()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){u.isUpdating&&(u.isUpdating=!1,u.clearAllSnapshots())},this.updateProjection=function(){u.nodes.forEach(ztr),u.nodes.forEach(Ttr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?mb(mb([],Eu(c.path),!1),[c],!1):[],this.parent=c,this.depth=c?c.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(var d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ctr)}return a.prototype.addEventListener=function(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new bF),this.eventHandlers.get(s).add(l)},a.prototype.notifyListeners=function(s){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];var u=this.eventHandlers.get(s);u?.notify.apply(u,mb([],Eu(l),!1))},a.prototype.hasListeners=function(s){return this.eventHandlers.has(s)},a.prototype.registerPotentialNode=function(s,l){this.potentialNodes.set(s,l)},a.prototype.mount=function(s,l){var c=this,u;if(l===void 0&&(l=!1),!this.instance){this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;var d=this.options,p=d.layoutId,h=d.layout,g=d.visualElement;if(g&&!g.getInstance()&&g.mount(s),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),l&&(h||p)&&(this.isLayoutDirty=!0),t){var m,b=function(){return c.root.updateBlockedByResize=!1};t(s,function(){c.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(b,250),gF.hasAnimatedSinceResize&&(gF.hasAnimatedSinceResize=!1,c.nodes.forEach(Otr))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||h)&&this.addEventListener("didUpdate",function(y){var M,C,x,w,S,A=y.delta,z=y.hasLayoutChanged,O=y.hasRelativeTargetChanged,T=y.layout;if(c.isTreeAnimationBlocked()){c.target=void 0,c.relativeTarget=void 0;return}var R=(C=(M=c.options.transition)!==null&&M!==void 0?M:g.getDefaultTransition())!==null&&C!==void 0?C:Dtr,P=g.getProps(),F=P.onLayoutAnimationStart,N=P.onLayoutAnimationComplete,L=!c.targetLayout||!tgt(c.targetLayout,T)||O,W=!z&&O;if(!((x=c.resumeFrom)===null||x===void 0)&&x.instance||W||z&&(L||!c.currentAnimation)){c.resumeFrom&&(c.resumingFrom=c.resumeFrom,c.resumingFrom.resumingFrom=void 0),c.setAnimationOrigin(A,W);var j=Dn(Dn({},Uwe(R,"layout")),{onPlay:F,onComplete:N});g.shouldReduceMotion&&(j.delay=0,j.type=!1),c.startAnimation(j)}else!z&&c.animationProgress===0&&c.finishAnimation(),c.isLead()&&((S=(w=c.options).onExitComplete)===null||S===void 0||S.call(w));c.targetLayout=T})}},a.prototype.unmount=function(){var s,l;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(l=this.parent)===null||l===void 0||l.children.delete(this),this.instance=void 0,EP.preRender(this.updateProjection)},a.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},a.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},a.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},a.prototype.isTreeAnimationBlocked=function(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1},a.prototype.startUpdate=function(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(Etr))},a.prototype.willUpdate=function(s){var l,c,u;if(s===void 0&&(s=!0),this.root.isUpdateBlocked()){(c=(l=this.options).onExitComplete)===null||c===void 0||c.call(l);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var d=0;d<this.path.length;d++){var p=this.path[d];p.shouldResetTransform=!0,p.updateScroll()}var h=this.options,g=h.layoutId,m=h.layout;if(!(g===void 0&&!m)){var b=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;this.prevTransformTemplateValue=b?.(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}}},a.prototype.didUpdate=function(){var s=this.isUpdateBlocked();if(s){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(UNe);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ktr),this.potentialNodes.clear()),this.nodes.forEach(Atr),this.nodes.forEach(xtr),this.nodes.forEach(wtr),this.clearAllSnapshots(),Hoe.update(),Hoe.preRender(),Hoe.render())},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(Str),this.sharedNodes.forEach(Rtr)},a.prototype.scheduleUpdateProjection=function(){bb.preRender(this.updateProjection,!1,!0)},a.prototype.scheduleCheckAfterUnmount=function(){var s=this;bb.postRender(function(){s.isLayoutDirty?s.root.didUpdate():s.root.checkUpdateFailed()})},a.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var s=this.measure(),l=this.removeTransform(this.removeElementScroll(s));QNe(l),this.snapshot={measured:s,layout:l,latestValues:{}}}},a.prototype.updateLayout=function(){var s;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var l=0;l<this.path.length;l++){var c=this.path[l];c.updateScroll()}var u=this.measure();QNe(u);var d=this.layout;this.layout={measured:u,actual:this.removeElementScroll(u)},this.layoutCorrected=e0(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,d?.actual)}},a.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},a.prototype.resetTransform=function(){var s;if(o){var l=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!egt(this.projectionDelta),u=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,d=u?.(this.latestValues,""),p=d!==this.prevTransformTemplateValue;l&&(c||OC(this.latestValues)||p)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}},a.prototype.measure=function(){var s=this.options.visualElement;if(!s)return e0();var l=s.measureViewportBox(),c=this.root.scroll;return c&&(NC(l.x,c.x),NC(l.y,c.y)),l},a.prototype.removeElementScroll=function(s){var l=e0();Rg(l,s);for(var c=0;c<this.path.length;c++){var u=this.path[c],d=u.scroll,p=u.options,h=u.isScrollRoot;if(u!==this.root&&d&&p.layoutScroll){if(h){Rg(l,s);var g=this.root.scroll;g&&(NC(l.x,-g.x),NC(l.y,-g.y))}NC(l.x,d.x),NC(l.y,d.y)}}return l},a.prototype.applyTransform=function(s,l){l===void 0&&(l=!1);var c=e0();Rg(c,s);for(var u=0;u<this.path.length;u++){var d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&jR(c,{x:-d.scroll.x,y:-d.scroll.y}),OC(d.latestValues)&&jR(c,d.latestValues)}return OC(this.latestValues)&&jR(c,this.latestValues),c},a.prototype.removeTransform=function(s){var l,c=e0();Rg(c,s);for(var u=0;u<this.path.length;u++){var d=this.path[u];if(d.instance&&OC(d.latestValues)){Hft(d.latestValues)&&d.updateSnapshot();var p=e0(),h=d.measure();Rg(p,h),HNe(c,d.latestValues,(l=d.snapshot)===null||l===void 0?void 0:l.layout,p)}}return OC(this.latestValues)&&HNe(c,this.latestValues),c},a.prototype.setTargetDelta=function(s){this.targetDelta=s,this.root.scheduleUpdateProjection()},a.prototype.setOptions=function(s){var l;this.options=Dn(Dn(Dn({},this.options),s),{crossfade:(l=s.crossfade)!==null&&l!==void 0?l:!0})},a.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},a.prototype.resolveTargetDelta=function(){var s,l=this.options,c=l.layout,u=l.layoutId;!this.layout||!(c||u)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=e0(),this.relativeTargetOrigin=e0(),MF(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Rg(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=e0(),this.targetWithTransforms=e0()),this.relativeTarget&&this.relativeTargetOrigin&&(!((s=this.relativeParent)===null||s===void 0)&&s.target)?xer(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):Rg(this.target,this.layout.actual),Vft(this.target,this.targetDelta)):Rg(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=e0(),this.relativeTargetOrigin=e0(),MF(this.relativeTargetOrigin,this.target,this.relativeParent.target),Rg(this.relativeTarget,this.relativeTargetOrigin)))))},a.prototype.getClosestProjectingParent=function(){if(!(!this.parent||OC(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},a.prototype.calcProjection=function(){var s,l=this.options,c=l.layout,u=l.layoutId;if(this.isTreeAnimating=!!(!((s=this.parent)===null||s===void 0)&&s.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(c||u))){var d=this.getLead();Rg(this.layoutCorrected,this.layout.actual),Ier(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==d);var p=d.target;if(p){this.projectionDelta||(this.projectionDelta=CF(),this.projectionDeltaWithTransform=CF());var h=this.treeScale.x,g=this.treeScale.y,m=this.projectionTransform;yF(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=GNe(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==h||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}}},a.prototype.hide=function(){this.isVisible=!1},a.prototype.show=function(){this.isVisible=!0},a.prototype.scheduleRender=function(s){var l,c,u;s===void 0&&(s=!0),(c=(l=this.options).scheduleRender)===null||c===void 0||c.call(l),s&&((u=this.getStack())===null||u===void 0||u.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},a.prototype.setAnimationOrigin=function(s,l){var c=this,u;l===void 0&&(l=!1);var d=this.snapshot,p=d?.latestValues||{},h=Dn({},this.latestValues),g=CF();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!l;var m=e0(),b=d?.isShared,y=(((u=this.getStack())===null||u===void 0?void 0:u.members.length)||0)<=1,M=!!(b&&!y&&this.options.crossfade===!0&&!this.path.some(Ptr));this.animationProgress=0,this.mixTargetDelta=function(C){var x,w=C/1e3;XNe(g.x,s.x,w),XNe(g.y,s.y,w),c.setTargetDelta(g),c.relativeTarget&&c.relativeTargetOrigin&&c.layout&&(!((x=c.relativeParent)===null||x===void 0)&&x.layout)&&(MF(m,c.layout.actual,c.relativeParent.layout.actual),Itr(c.relativeTarget,c.relativeTargetOrigin,m,w)),b&&(c.animationValues=h,ptr(h,p,c.latestValues,w,M,y)),c.root.scheduleUpdateProjection(),c.scheduleRender(),c.animationProgress=w},this.mixTargetDelta(0)},a.prototype.startAnimation=function(s){var l=this,c,u;this.notifyListeners("animationStart"),(c=this.currentAnimation)===null||c===void 0||c.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(EP.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bb.update(function(){gF.hasAnimatedSinceResize=!0,l.currentAnimation=utr(0,$Ne,Dn(Dn({},s),{onUpdate:function(d){var p;l.mixTargetDelta(d),(p=s.onUpdate)===null||p===void 0||p.call(s,d)},onComplete:function(){var d;(d=s.onComplete)===null||d===void 0||d.call(s),l.completeAnimation()}})),l.resumingFrom&&(l.resumingFrom.currentAnimation=l.currentAnimation),l.pendingAnimation=void 0})},a.prototype.completeAnimation=function(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},a.prototype.finishAnimation=function(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,$Ne),this.currentAnimation.stop()),this.completeAnimation()},a.prototype.applyTransformsToTarget=function(){var s=this.getLead(),l=s.targetWithTransforms,c=s.target,u=s.layout,d=s.latestValues;!l||!c||!u||(Rg(l,c),jR(l,d),yF(this.projectionDeltaWithTransform,this.layoutCorrected,l,d))},a.prototype.registerSharedNode=function(s,l){var c,u,d;this.sharedNodes.has(s)||this.sharedNodes.set(s,new btr);var p=this.sharedNodes.get(s);p.add(l),l.promote({transition:(c=l.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(d=(u=l.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||d===void 0?void 0:d.call(u,l)})},a.prototype.isLead=function(){var s=this.getStack();return s?s.lead===this:!0},a.prototype.getLead=function(){var s,l=this.options.layoutId;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this},a.prototype.getPrevLead=function(){var s,l=this.options.layoutId;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0},a.prototype.getStack=function(){var s=this.options.layoutId;if(s)return this.root.sharedNodes.get(s)},a.prototype.promote=function(s){var l=s===void 0?{}:s,c=l.needsReset,u=l.transition,d=l.preserveFollowOpacity,p=this.getStack();p&&p.promote(this,d),c&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})},a.prototype.relegate=function(){var s=this.getStack();return s?s.relegate(this):!1},a.prototype.resetRotation=function(){var s=this.options.visualElement;if(s){for(var l=!1,c={},u=0;u<Xge.length;u++){var d=Xge[u],p="rotate"+d;s.getStaticValue(p)&&(l=!0,c[p]=s.getStaticValue(p),s.setStaticValue(p,0))}if(l){s?.syncRender();for(var p in c)s.setStaticValue(p,c[p]);s.scheduleRender()}}},a.prototype.getProjectionStyles=function(s){var l,c,u,d,p,h;s===void 0&&(s={});var g={};if(!this.instance||this.isSVG)return g;if(this.isVisible)g.visibility="";else return{visibility:"hidden"};var m=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=k7(s.pointerEvents)||"",g.transform=m?m(this.latestValues,""):"none",g;var b=this.getLead();if(!this.projectionDelta||!this.layout||!b.target){var y={};return this.options.layoutId&&(y.opacity=(c=this.latestValues.opacity)!==null&&c!==void 0?c:1,y.pointerEvents=k7(s.pointerEvents)||""),this.hasProjected&&!OC(this.latestValues)&&(y.transform=m?m({},""):"none",this.hasProjected=!1),y}var M=b.animationValues||b.latestValues;this.applyTransformsToTarget(),g.transform=GNe(this.projectionDeltaWithTransform,this.treeScale,M),m&&(g.transform=m(M,g.transform));var C=this.projectionDelta,x=C.x,w=C.y;g.transformOrigin="".concat(x.origin*100,"% ").concat(w.origin*100,"% 0"),b.animationValues?g.opacity=b===this?(d=(u=M.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:M.opacityExit:g.opacity=b===this?(p=M.opacity)!==null&&p!==void 0?p:"":(h=M.opacityExit)!==null&&h!==void 0?h:0;for(var S in Z9)if(M[S]!==void 0){var A=Z9[S],z=A.correct,O=A.applyTo,T=z(M[S],b);if(O)for(var R=O.length,P=0;P<R;P++)g[O[P]]=T;else g[S]=T}return this.options.layoutId&&(g.pointerEvents=b===this?k7(s.pointerEvents)||"":"none"),g},a.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},a.prototype.resetTree=function(){this.root.nodes.forEach(function(s){var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(UNe),this.root.sharedNodes.clear()},a})()}function xtr(e){e.updateLayout()}function wtr(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;e.options.animationType==="size"?Ev(function(M){var C=o.isShared?o.measured[M]:o.layout[M],x=tM(C);C.min=s[M].min,C.max=C.min+x}):e.options.animationType==="position"&&Ev(function(M){var C=o.isShared?o.measured[M]:o.layout[M],x=tM(s[M]);C.max=C.min+x});var c=CF();yF(c,s,o.layout);var u=CF();o.isShared?yF(u,e.applyTransform(l,!0),o.measured):yF(u,s,o.layout);var d=!egt(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var h=e.relativeParent,g=h.snapshot,m=h.layout;if(g&&m){var b=e0();MF(b,o.layout,g.layout);var y=e0();MF(y,s,m.actual),tgt(b,y)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function Str(e){e.clearSnapshot()}function UNe(e){e.clearMeasurements()}function Atr(e){var t=e.options.visualElement;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Otr(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ztr(e){e.resolveTargetDelta()}function Ttr(e){e.calcProjection()}function Etr(e){e.resetRotation()}function Rtr(e){e.removeLeadSnapshot()}function XNe(e,t,n){e.translate=ic(t.translate,0,n),e.scale=ic(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function YNe(e,t,n,r){e.min=ic(t.min,n.min,r),e.max=ic(t.max,n.max,r)}function Itr(e,t,n,r){YNe(e.x,t.x,n.x,r),YNe(e.y,t.y,n.y,r)}function Ptr(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Dtr={duration:.45,ease:[.4,0,.1,1]};function ktr(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function KNe(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function QNe(e){KNe(e.x),KNe(e.y)}var Ltr=ngt({attachResizeListener:function(e,t){return KZ(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Yoe={current:void 0},_tr=ngt({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Yoe.current){var e=new Ltr(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Yoe.current=e}return Yoe.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),Ntr=Dn(Dn(Dn(Dn({},yer),_Jn),qer),ctr),Ftr=EQn(function(e,t){return fZn(e,t,Ntr,itr,_tr)});function ZNe(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Wtr({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){const i=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,a]=v.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),s=v.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o,orientationHandler:null}),l=e?typeof e=="number"?e:e.scroll:null,c=e?typeof e=="number"?e:e.resize:null,u=v.useRef(!1);v.useEffect(()=>(u.current=!0,()=>void(u.current=!1)));const[d,p,h]=v.useMemo(()=>{const y=()=>{if(!s.current.element)return;const{left:M,top:C,width:x,height:w,bottom:S,right:A,x:z,y:O}=s.current.element.getBoundingClientRect(),T={left:M,top:C,width:x,height:w,bottom:S,right:A,x:z,y:O};s.current.element instanceof HTMLElement&&r&&(T.height=s.current.element.offsetHeight,T.width=s.current.element.offsetWidth),Object.freeze(T),u.current&&!Htr(s.current.lastBounds,T)&&a(s.current.lastBounds=T)};return[y,c?ZNe(y,c):y,l?ZNe(y,l):y]},[a,r,l,c]);function g(){s.current.scrollContainers&&(s.current.scrollContainers.forEach(y=>y.removeEventListener("scroll",h,!0)),s.current.scrollContainers=null),s.current.resizeObserver&&(s.current.resizeObserver.disconnect(),s.current.resizeObserver=null),s.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",s.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",s.current.orientationHandler))}function m(){s.current.element&&(s.current.resizeObserver=new i(h),s.current.resizeObserver.observe(s.current.element),t&&s.current.scrollContainers&&s.current.scrollContainers.forEach(y=>y.addEventListener("scroll",h,{capture:!0,passive:!0})),s.current.orientationHandler=()=>{h()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",s.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",s.current.orientationHandler))}const b=y=>{!y||y===s.current.element||(g(),s.current.element=y,s.current.scrollContainers=rgt(y),m())};return Btr(h,!!t),qtr(p),v.useEffect(()=>{g(),m()},[t,h,p]),v.useEffect(()=>g,[]),[b,o,d]}function qtr(e){v.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function Btr(e,t){v.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function rgt(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...rgt(e.parentElement)]}const jtr=["x","y","top","bottom","left","right","width","height"],Htr=(e,t)=>jtr.every(n=>e[n]===t[n]);var Ff=function(){return Ff=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ff.apply(this,arguments)};function t1(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Vtr(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,s=e.children,l=Wtr({polyfill:cQn}),c=l[0],u=l[1].height,d=v.useState(t),p=d[0],h=d[1],g=v.useState(t),m=g[0],b=g[1],y=v.useState(!1),M=y[0],C=y[1],x=function(){C(!1),t||h(!1)};return v.useEffect(function(){C(!0),t?h(!0):b(!1)},[t]),v.useEffect(function(){p&&b(!0)},[u]),E.createElement(Ftr.div,{style:M?{overflow:"hidden"}:void 0,onAnimationComplete:x,initial:m?"open":"close",animate:m?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:Gtr(u,i)}},E.createElement("div",{ref:c},p&&s))}function Gtr(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var $tr=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},r_=function(e,t){return e.find(function(n){return n.id===t})},IP=function(e,t,n){if(n===0)return!1;var r=e.find(function(i){return i.id===n});return r===void 0?!1:r.parent===t?!0:IP(e,t,r.parent)},Zwe=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},rw=function(e,t,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(e===null){if(t===i)return!0;var a=r.find(function(u){return u.id===t});return!!(a&&a.droppable)}else{var s=Zwe(e)?e.id:null;if(o){var l=o(s,t);if(l!==void 0)return l}if(s===t)return!1;var c=r.find(function(d){return d.id===s}),a=r.find(function(d){return d.id===t});return c===void 0||s===null?t===i||!!a?.droppable:a===void 0?c.parent!==0:c.parent===t||!a.droppable?!1:!IP(r,s,t)}},Utr=function(e,t,n){return e.map(function(r){return r.id===t?Ff(Ff({},r),{parent:n}):r})},igt=function(e,t,n){if(n===0)return 0;var r=e.filter(function(i){return i.parent===t});return r[n]?e.findIndex(function(i){return i.id===r[n].id}):e.findIndex(function(i){return i.id===r[n-1].id})+1},Xtr=function(e,t){return e.findIndex(function(n){return n.id===t})},ogt=function(e,t,n,r){var i=Xtr(e,t),o=igt(e,n,r);return o=o>i?o-1:o,[i,o]},Ytr=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var i=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(i,0,o)}},Ktr=function(e,t,n,r){var i=ogt(e,t,n,r),o=i[0],a=i[1],s=t1([],e,!0);return Ytr(s,o,a),s.map(function(l){return l.id===t?Ff(Ff({},l),{parent:n}):l})},Qtr=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},ume=function(e,t){var n="",r=0;return e.forEach(function(i,o){var a,s=Qtr(i,((a=t.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=s:n!==s&&(n=s,r=o),o===e.length-1&&s==="down"&&(r=o+1)}),r},JNe=function(e,t,n){var r=t.closest('[role="list"]'),i=r?.querySelectorAll(':scope > [role="listitem"]');return i?ume(i,n):null},Ztr=function(e,t,n){var r=e.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return t>a?"lower":t<o?"upper":"middle"},dme=function(e,t,n,r){var i;if(!t)return null;if(e===null){var o=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:ume(o,n)}}var a=n.getItem(),s=t.querySelector('[role="list"]'),l=Ztr(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(s){if(l==="upper")if(rw(a,e.parent,r)){var c=JNe(e,t,n);return c===null?null:{id:e.parent,index:c}}else return{id:e.id,index:0};var o=s.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:ume(o,n)}}else{if(l==="middle")return{id:e.id,index:0};if(rw(a,e.parent,r)){var c=JNe(e,t,n);return c===null?null:{id:e.parent,index:c}}return null}},N7=function(e,t){return e.some(function(n){return n.parent===t})},agt=v.createContext({}),Jtr=function(e){var t=lnr(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,s=r.handleOpen,l=r.handleClose;v.useImperativeHandle(e.treeRef,function(){return{open:function(h){return s(h,e.onChangeOpen)},close:function(h){return l(h,e.onChangeOpen)},openAll:function(){return a(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var c=MM().getMonitor(),u=e.canDrop,d=e.canDrag,p=Ff(Ff({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(h,g,m){if(h){var b={dragSourceId:h.id,dropTargetId:g,dragSource:h,dropTarget:r_(e.tree,g),monitor:c},y=e.tree;if(r_(y,h.id)||(y=t1(t1([],y,!0),[h],!1)),e.sort===!1){var M=ogt(y,h.id,g,m),C=M[1];b.destinationIndex=C,b.relativeIndex=m,e.onDrop(Ktr(y,h.id,g,m),b);return}e.onDrop(Utr(y,h.id,g),b)}else{var b={dropTargetId:g,dropTarget:r_(e.tree,g),monitor:c};e.sort===!1&&(b.destinationIndex=igt(e.tree,g,m),b.relativeIndex=m),e.onDrop(e.tree,b)}},canDrop:u?function(h,g){return u(e.tree,{dragSourceId:h??void 0,dropTargetId:g,dragSource:c.getItem(),dropTarget:r_(e.tree,g),monitor:c})}:void 0,canDrag:d?function(h){return d(r_(e.tree,h))}:void 0,onToggle:function(h){return i(h,e.onChangeOpen)}});return E.createElement(agt.Provider,{value:p},e.children)},sgt=v.createContext({}),enr={isLock:!1},tnr=function(e){var t=v.useState(enr.isLock),n=t[0],r=t[1];return E.createElement(sgt.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},LB=v.createContext({}),X8={dropTargetId:void 0,index:void 0},nnr=function(e){var t=v.useState(X8.dropTargetId),n=t[0],r=t[1],i=v.useState(X8.index),o=i[0],a=i[1],s=function(c,u){r(c),a(u)},l=function(){r(X8.dropTargetId),a(X8.index)};return E.createElement(LB.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:s,hidePlaceholder:l}},e.children)},rnr=function(e){return E.createElement(Jtr,Ff({},e),E.createElement(tnr,null,E.createElement(nnr,null,e.children)))},inr=function(e){var t=v.useContext(sgt);v.useEffect(function(){if(e.current){var n=e.current,r=function(u){var d=u.target;(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement)&&t.lock()},i=function(u){var d=u.target;(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement)&&t.unlock()},o=function(u){return r(u)},a=function(u){return i(u)},s=function(u){return r(u)},l=function(u){return i(u)},c=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return c.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",s),n.addEventListener("focusout",l),function(){c.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",s),n.removeEventListener("focusout",l)}}},[e,t]),v.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},eJ={TREE_ITEM:Symbol()},lgt=null,cgt=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(lgt=n)}},eFe=function(e){return cgt(e)},tFe=function(e){return cgt(e)},onr=function(e,t){var n=Lw();v.useEffect(function(){var s=t.current;return s?.addEventListener("dragstart",eFe),s?.addEventListener("touchstart",tFe,{passive:!0}),function(){s?.removeEventListener("dragstart",eFe),s?.removeEventListener("touchstart",tFe)}},[t]);var r=dLn({type:eJ.TREE_ITEM,item:function(s){var l=Ff({ref:t},e);return n.onDragStart&&n.onDragStart(l,s),l},end:function(s,l){var c=s;n.onDragEnd&&n.onDragEnd(c,l)},canDrag:function(){var s=n.canDrag;return lgt!==t.current?!1:s?s(e.id):!0},collect:function(s){return{isDragging:s.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},anr=function(e){var t=Lw(),n=v.useContext(LB),r=Ydt({accept:t1([eJ.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(l,c){var u=t.rootId,d=t.onDrop,p=n.dropTargetId,h=n.index;c.isOver({shallow:!0})&&p!==void 0&&h!==void 0&&d(Zwe(l)?l:null,u,h),n.hidePlaceholder()},canDrop:function(l,c){var u=t.rootId;return c.isOver({shallow:!0})?l===void 0?!1:rw(l,u,t):!1},hover:function(l,c){if(c.isOver({shallow:!0})){var u=t.rootId,d=n.dropTargetId,p=n.index,h=n.showPlaceholder,g=n.hidePlaceholder,m=dme(null,e.current,c,t);if(m===null||!rw(l,u,t)){g();return}(m.id!==d||m.index!==p)&&h(m.id,m.index)}},collect:function(l){var c=l.getItem();return{isOver:l.isOver({shallow:!0})&&l.canDrop(),dragSource:c}}}),i=r[0],o=i.isOver,a=i.dragSource,s=r[1];return[o,a,s]},snr=function(e,t){var n=Lw(),r=v.useContext(LB),i=Ydt({accept:t1([eJ.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(c,u){var d=r.dropTargetId,p=r.index;u.isOver({shallow:!0})&&d!==void 0&&p!==void 0&&n.onDrop(Zwe(c)?c:null,d,p),r.hidePlaceholder()},canDrop:function(c,u){if(u.isOver({shallow:!0})){var d=dme(e,t.current,u,n);return d===null?!1:rw(c,d.id,n)}return!1},hover:function(c,u){if(u.isOver({shallow:!0})){var d=r.dropTargetId,p=r.index,h=r.showPlaceholder,g=r.hidePlaceholder,m=dme(e,t.current,u,n);if(m===null||!rw(c,m.id,n)){g();return}(m.id!==d||m.index!==p)&&h(m.id,m.index)}},collect:function(c){var u=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:u}}}),o=i[0],a=o.isOver,s=o.dragSource,l=i[1];return[a,s,l]},lnr=function(e,t){var n=v.useMemo(function(){return t===!0?e.filter(function(d){return N7(e,d.id)}).map(function(d){return d.id}):Array.isArray(t)?t:[]},[t]),r=v.useState(n),i=r[0],o=r[1];v.useEffect(function(){return o(n)},[t]);var a=function(d,p){var h=i.includes(d)?i.filter(function(g){return g!==d}):t1(t1([],i,!0),[d],!1);o(h),p&&p(h)},s=function(d){o([]),d&&d([])},l=function(d){var p=e.filter(function(h){return N7(e,h.id)}).map(function(h){return h.id});o(p),d&&d(p)},c=function(d,p){var h=[];if(Array.isArray(d)){var g=e.filter(function(m){return d.includes(m.id)&&N7(e,m.id)});h=t1(t1([],i,!0),g.map(function(m){return m.id}),!0).filter(function(m,b,y){return y.indexOf(m)===b})}else h=i.includes(d)?i:t1(t1([],i,!0),[d],!1);o(h),p&&p(h)},u=function(d,p){var h=i.filter(function(g){return Array.isArray(d)?!d.includes(g):g!==d});o(h),p&&p(h)};return[i,{handleToggle:a,handleCloseAll:s,handleOpenAll:l,handleOpen:c,handleClose:u}]},cnr=function(){return pLn(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===eJ.TREE_ITEM}})},Lw=function(){var e=v.useContext(agt);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},unr=function(e,t){var n=Lw(),r=n.rootId,i=n.rootProps,o=n.classes,a=o?.container||"";return t&&o?.dropTarget&&(a="".concat(a," ").concat(o.dropTarget)),e===r&&o?.root&&(a="".concat(a," ").concat(o.root)),e===r&&i?.className&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},dnr=function(e,t,n){t.current?n(t):n(e),v.useEffect(function(){t.current?n(t):n(e)},[t.current])},pnr=function(e){var t=Lw(),n=v.useContext(LB),r=v.useRef(null),i=v.useRef(null),o=t.tree.find(function(z){return z.id===e.id}),a=t.openIds,s=t.classes,l=t.enableAnimateExpand,c=a.includes(e.id),u=onr(o,r),d=u[0],p=u[1],h=u[2],g=snr(o,r),m=g[0],b=g[1],y=g[2];dnr(r,i,p),rw(b,e.id,t)&&y(r),v.useEffect(function(){t.dragPreviewRender?h(DLn(),{captureDraggingState:!0}):i.current&&h(r)},[h,t.dragPreviewRender]),inr(r);var M=function(){return t.onToggle(o.id)},C=t.listItemComponent,x=s?.listItem||"";m&&s?.dropTarget&&(x="".concat(x," ").concat(s.dropTarget)),d&&s?.draggingSource&&(x="".concat(x," ").concat(s.draggingSource));var w=t.canDrag?t.canDrag(e.id):!0,S=n.dropTargetId===e.id,A={depth:e.depth,isOpen:c,isDragging:d,isDropTarget:S,draggable:w,hasChild:N7(t.tree,e.id),containerRef:r,handleRef:i,onToggle:M};return E.createElement(C,{ref:r,className:x,role:"listitem"},t.render(o,A),l&&A.hasChild&&E.createElement(Vtr,{isVisible:c},E.createElement(pme,{parentId:e.id,depth:e.depth+1})),!l&&A.hasChild&&c&&E.createElement(pme,{parentId:e.id,depth:e.depth+1}))},nFe=function(e){var t=Lw(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=v.useContext(LB),a=MM(),s=a.getMonitor(),l=s.getItem();if(!n||!l)return null;var c=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return c?E.createElement(r,{className:i?.placeholder||""},n(l,{depth:e.depth})):null},pme=function(e){var t=Lw(),n=v.useRef(null),r=t.tree.filter(function(m){return m.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:$tr;if(t.insertDroppableFirst){var a=r.filter(function(m){return m.droppable}),s=r.filter(function(m){return!m.droppable});t.sort===!1?i=t1(t1([],a,!0),s,!0):(a=a.sort(o),s=s.sort(o),i=t1(t1([],a,!0),s,!0))}else t.sort!==!1&&(i=r.sort(o));var l=anr(n),c=l[0],u=l[1],d=l[2];e.parentId===t.rootId&&rw(u,t.rootId,t)&&d(n);var p=unr(e.parentId,c),h=t.rootProps||{},g=t.listComponent;return E.createElement(g,Ff({ref:n,role:"list"},h,{className:p}),i.map(function(m,b){return E.createElement(E.Fragment,{key:m.id},E.createElement(nFe,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:b}),E.createElement(pnr,{id:m.id,depth:e.depth}))}),E.createElement(nFe,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},hnr={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},fnr=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},gnr=function(){var e=Lw(),t=cnr(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:E.createElement("div",{style:hnr},E.createElement("div",{style:fnr(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function mnr(e,t){return E.createElement(rnr,Ff({},e,{treeRef:t}),e.dragPreviewRender&&E.createElement(gnr,null),E.createElement(pme,{parentId:e.rootId,depth:0}))}var tJ=v.forwardRef(mnr),i_={},rFe;function vnr(){if(rFe)return i_;rFe=1;var e=ri(),t=ii();Object.defineProperty(i_,"__esModule",{value:!0}),i_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"Folder");return i_.default=i,i_}var bnr=vnr();const B3=qn(bnr);var o_={},iFe;function ynr(){if(iFe)return o_;iFe=1;var e=ri(),t=ii();Object.defineProperty(o_,"__esModule",{value:!0}),o_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"}),"InsertChart");return o_.default=i,o_}var Mnr=ynr();const nJ=qn(Mnr);var a_={},oFe;function Cnr(){if(oFe)return a_;oFe=1;var e=ri(),t=ii();Object.defineProperty(a_,"__esModule",{value:!0}),a_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");return a_.default=i,a_}var xnr=Cnr();const ugt=qn(xnr);var wnr=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Snr=(function(){function e(){this.browser=new wnr,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),Ii=new Snr;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ii.wxa=!0,Ii.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ii.worker=!0:!Ii.hasGlobalWindow||"Deno"in window?(Ii.node=!0,Ii.svgSupported=!0):Anr(navigator.userAgent,Ii);function Anr(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var Jwe=12,dgt="sans-serif",iw=Jwe+"px "+dgt,Onr=20,znr=100,Tnr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Enr(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-Onr)/znr;t[r]=i}return t}var Rnr=Enr(Tnr),wm={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(n,r){if(!e){var i=wm.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||iw),e.measureText(n);n=n||"",r=r||iw;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||Jwe,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var c=Rnr[n[l]];s+=c==null?a:c*a}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function pgt(e){for(var t in wm)e[t]&&(wm[t]=e[t])}var hgt=Wf(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),fgt=Wf(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),JD=Object.prototype.toString,rJ=Array.prototype,Inr=rJ.forEach,Pnr=rJ.filter,eSe=rJ.slice,Dnr=rJ.map,aFe=(function(){}).constructor,Y8=aFe?aFe.prototype:null,tSe="__proto__",knr=2311;function nSe(){return knr++}function iJ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Or(e){if(e==null||typeof e!="object")return e;var t=e,n=JD.call(e);if(n==="[object Array]"){if(!II(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=Or(e[r])}}else if(fgt[n]){if(!II(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!hgt[n]&&!II(e)&&!Uz(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==tSe&&(t[a]=Or(e[a]))}return t}function ei(e,t,n){if(!xr(t)||!xr(e))return n?Or(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==tSe){var i=e[r],o=t[r];xr(o)&&xr(i)&&!Ht(o)&&!Ht(i)&&!Uz(o)&&!Uz(i)&&!hme(o)&&!hme(i)&&!II(o)&&!II(i)?ei(i,o,n):(n||!(r in e))&&(e[r]=Or(t[r]))}return e}function oJ(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=ei(n,e[r],t);return n}function Nt(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==tSe&&(e[n]=t[n]);return e}function br(e,t,n){for(var r=Hi(t),i=0,o=r.length;i<o;i++){var a=r[i];(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}var Lnr=wm.createCanvas;function hi(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function rSe(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Hl(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}else br(e,t,n)}function Ad(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function ye(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Inr)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function Vt(e,t,n){if(!e)return[];if(!t)return aJ(e);if(e.map&&e.map===Dnr)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function Wf(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function Lo(e,t,n){if(!e)return[];if(!t)return aJ(e);if(e.filter&&e.filter===Pnr)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ggt(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function Hi(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function _nr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(eSe.call(arguments)))}}var Rn=Y8&&fr(Y8.bind)?Y8.call.bind(Y8.bind):_nr;function Zr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(eSe.call(arguments)))}}function Ht(e){return Array.isArray?Array.isArray(e):JD.call(e)==="[object Array]"}function fr(e){return typeof e=="function"}function An(e){return typeof e=="string"}function sU(e){return JD.call(e)==="[object String]"}function yo(e){return typeof e=="number"}function xr(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function hme(e){return!!hgt[JD.call(e)]}function h1(e){return!!fgt[JD.call(e)]}function Uz(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function _B(e){return e.colorStops!=null}function mgt(e){return e.image!=null}function vgt(e){return JD.call(e)==="[object RegExp]"}function PP(e){return e!==e}function xu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function Xr(e,t){return e??t}function hm(e,t,n){return e??t??n}function aJ(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return eSe.apply(e,t)}function sJ(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function S0(e,t){if(!e)throw new Error(t)}function Cf(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var bgt="__ec_primitive__";function lq(e){e[bgt]=!0}function II(e){return e[bgt]}var Nnr=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return Hi(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e})(),ygt=typeof Map=="function";function Fnr(){return ygt?new Map:new Nnr}var Mgt=(function(){function e(t){var n=Ht(t);this.data=Fnr();var r=this;t instanceof e?t.each(i):t&&ye(t,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,i){t.call(n,r,i)})},e.prototype.keys=function(){var t=this.data.keys();return ygt?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function Kn(e){return new Mgt(e)}function DP(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function NB(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Nt(n,t),n}function iSe(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Fn(e,t){return e.hasOwnProperty(t)}function Nl(){}var xF=180/Math.PI;const Wnr=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Mgt,RADIAN_TO_DEGREE:xF,assert:S0,bind:Rn,clone:Or,concatArray:DP,createCanvas:Lnr,createHashMap:Kn,createObject:NB,curry:Zr,defaults:br,disableUserSelect:iSe,each:ye,eqNaN:PP,extend:Nt,filter:Lo,find:ggt,guid:nSe,hasOwn:Fn,indexOf:hi,inherits:rSe,isArray:Ht,isArrayLike:Ad,isBuiltInObject:hme,isDom:Uz,isFunction:fr,isGradientObject:_B,isImagePatternObject:mgt,isNumber:yo,isObject:xr,isPrimitive:II,isRegExp:vgt,isString:An,isStringSafe:sU,isTypedArray:h1,keys:Hi,logError:iJ,map:Vt,merge:ei,mergeAll:oJ,mixin:Hl,noop:Nl,normalizeCssArray:sJ,reduce:Wf,retrieve:xu,retrieve2:Xr,retrieve3:hm,setAsPrimitive:lq,slice:aJ,trim:Cf},Symbol.toStringTag,{value:"Module"}));function _w(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function i0(e,t){return e[0]=t[0],e[1]=t[1],e}function yb(e){return[e[0],e[1]]}function Cgt(e,t,n){return e[0]=t,e[1]=n,e}function fme(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function lU(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function dx(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function cq(e){return Math.sqrt(oSe(e))}var qnr=cq;function oSe(e){return e[0]*e[0]+e[1]*e[1]}var Bnr=oSe;function jnr(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Hnr(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Vnr(e,t){return e[0]*t[0]+e[1]*t[1]}function wF(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function j3(e,t){var n=cq(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function cU(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Cy=cU;function xgt(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Dx=xgt;function Gnr(e,t){return e[0]=-t[0],e[1]=-t[1],e}function SF(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Yu(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function xy(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function wy(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const $nr=Object.freeze(Object.defineProperty({__proto__:null,add:fme,applyTransform:Yu,clone:yb,copy:i0,create:_w,dist:Cy,distSquare:Dx,distance:cU,distanceSquare:xgt,div:Hnr,dot:Vnr,len:cq,lenSquare:oSe,length:qnr,lengthSquare:Bnr,lerp:SF,max:wy,min:xy,mul:jnr,negate:Gnr,normalize:j3,scale:wF,scaleAndAdd:lU,set:Cgt,sub:dx},Symbol.toStringTag,{value:"Module"}));var NE=(function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e})(),Unr=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new NE(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,i=t.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,t),this.handler.dispatchToElement(new NE(n,t),"drag",t.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new NE(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new NE(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new NE(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new NE(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Zf=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},c=o[t].length-1,u=o[t][c];return u&&u.callAtLast?o[t].splice(c,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var i=[],o=0,a=r[t].length;o<a;o++)r[t][o].h!==n&&i.push(r[t][o]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=i.length,l=0;l<s;l++){var c=i[l];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=n[a-1],l=i.length,c=0;c<l;c++){var u=i[c];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(s);break;case 1:u.h.call(s,n[0]);break;case 2:u.h.call(s,n[0],n[1]);break;default:u.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e})(),Xnr=Math.log(2);function gme(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/Xnr);return e[n][l]}for(var c=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,p=0,h=0;p<s;p++){var g=1<<p;g&i||(d+=(h%2?-1:1)*e[n][p]*gme(e,t-1,u,c,i|g,o),h++)}return o[a]=d,d}function sFe(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=gme(n,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*gme(n,7,a===0?1:0,1<<a,1<<s,r)/i*t[a];return function(l,c,u){var d=c*o[6]+u*o[7]+1;l[0]=(c*o[0]+u*o[1]+o[2])/d,l[1]=(c*o[3]+u*o[4]+o[5])/d}}}var lFe="___zrEVENTSAVED",Koe=[];function Ynr(e,t,n,r,i){return mme(Koe,t,r,i,!0)&&mme(e,n,Koe[0],Koe[1])}function mme(e,t,n,r,i){if(t.getBoundingClientRect&&Ii.domSupported&&!wgt(t)){var o=t[lFe]||(t[lFe]={}),a=Knr(t,o),s=Qnr(a,o,i);if(s)return s(e,n,r),!0}return!1}function Knr(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function Qnr(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,p=u.left,h=u.top;a.push(p,h),l=l&&o&&p===o[d]&&h===o[d+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?sFe(s,a):sFe(a,s))}function wgt(e){return e.nodeName.toUpperCase()==="CANVAS"}var Znr=/([&<>"'])/g,Jnr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function l0(e){return e==null?"":(e+"").replace(Znr,function(t,n){return Jnr[n]})}var err=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qoe=[],trr=Ii.browser.firefox&&+Ii.browser.version.split(".")[0]<39;function vme(e,t,n,r){return n=n||{},r?cFe(e,t,n):trr&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):cFe(e,t,n),n}function cFe(e,t,n){if(Ii.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(wgt(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(mme(Qoe,e,r,i)){n.zrX=Qoe[0],n.zrY=Qoe[1];return}}n.zrX=n.zrY=0}function aSe(e){return e||window.event}function Xh(e,t,n){if(t=aSe(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&vme(e,a,t,n)}else{vme(e,t,t,n);var o=nrr(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&err.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function nrr(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function bme(e,t,n,r){e.addEventListener(t,n,r)}function rrr(e,t,n,r){e.removeEventListener(t,n,r)}var nM=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function uFe(e){return e.which===2||e.which===3}var irr=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a<s;a++){var l=i[a],c=vme(r,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in Zoe)if(Zoe.hasOwnProperty(n)){var r=Zoe[n](this._track,t);if(r)return r}},e})();function dFe(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function orr(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Zoe={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=dFe(r)/dFe(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=orr(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function gp(){return[1,0,0,1,0,0]}function FB(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function lJ(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Mb(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Sm(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Nw(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=o*d+l*u,e[3]=-o*u+d*l,e[4]=d*(a-r[0])+u*(c-r[1])+r[0],e[5]=d*(c-r[1])-u*(a-r[0])+r[1],e}function cJ(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function H3(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}function Sgt(e){var t=gp();return lJ(t,e),t}const arr=Object.freeze(Object.defineProperty({__proto__:null,clone:Sgt,copy:lJ,create:gp,identity:FB,invert:H3,mul:Mb,rotate:Nw,scale:cJ,translate:Sm},Symbol.toStringTag,{value:"Module"}));var ci=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var o=1-i;t.x=o*n.x+i*r.x,t.y=o*n.y+i*r.y},e})(),K8=Math.min,Q8=Math.max,KS=new ci,QS=new ci,ZS=new ci,JS=new ci,s_=new ci,l_=new ci,ui=(function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=K8(t.x,this.x),r=K8(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Q8(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Q8(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,o=gp();return Sm(o,o,[-n.x,-n.y]),cJ(o,o,[r,i]),Sm(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,c=t.x+t.width,u=t.y,d=t.y+t.height,p=!(o<l||c<i||s<u||d<a);if(n){var h=1/0,g=0,m=Math.abs(o-l),b=Math.abs(c-i),y=Math.abs(s-u),M=Math.abs(d-a),C=Math.min(m,b),x=Math.min(y,M);o<l||c<i?C>g&&(g=C,m<b?ci.set(l_,-m,0):ci.set(l_,b,0)):C<h&&(h=C,m<b?ci.set(s_,m,0):ci.set(s_,-b,0)),s<u||d<a?x>g&&(g=x,y<M?ci.set(l_,0,-y):ci.set(l_,0,M)):C<h&&(h=C,y<M?ci.set(s_,0,y):ci.set(s_,0,-M))}return n&&ci.copy(n,p?s_:l_),p},e.prototype.contain=function(t,n){var r=this;return t>=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}KS.x=ZS.x=n.x,KS.y=JS.y=n.y,QS.x=JS.x=n.x+n.width,QS.y=ZS.y=n.y+n.height,KS.transform(r),JS.transform(r),QS.transform(r),ZS.transform(r),t.x=K8(KS.x,QS.x,ZS.x,JS.x),t.y=K8(KS.y,QS.y,ZS.y,JS.y);var l=Q8(KS.x,QS.x,ZS.x,JS.x),c=Q8(KS.y,QS.y,ZS.y,JS.y);t.width=l-t.x,t.height=c-t.y},e})(),Agt="silent";function srr(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:lrr}}function lrr(){nM(this.event)}var crr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Zf),c_=(function(){function e(t,n){this.x=t,this.y=n}return e})(),urr=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Joe=new ui(0,0,0,0),Ogt=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new c_(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new crr,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Unr(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(ye(urr,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=zgt(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new c_(r,i):this.findHover(r,i),c=l.target,u=this.proxy;u.setCursor&&u.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),c&&c!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new c_(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=srr(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new c_(n,r);if(pFe(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,u=new ui(n-c,r-c,l,l),d=o.length-1;d>=0;d--){var p=o[d];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Joe.copy(p.getBoundingRect()),p.transform&&Joe.applyTransform(p.transform),Joe.intersect(u)&&s.push(p))}if(s.length)for(var h=4,g=Math.PI/12,m=Math.PI*2,b=0;b<c;b+=h)for(var y=0;y<m;y+=g){var M=n+b*Math.cos(y),C=r+b*Math.sin(y);if(pFe(s,a,M,C,i),a.target)return a}}return a},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new irr);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;n.gestureEvent=a;var s=new c_;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(Zf);ye(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Ogt.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=zgt(this,n,r),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Cy(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function drr(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?Agt:!0}return!1}function pFe(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=drr(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==Agt)){t.target=a;break}}}function zgt(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Tgt=32,u_=7;function prr(e){for(var t=0;e>=Tgt;)t|=e&1,e>>=1;return e+t}function hFe(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;hrr(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function hrr(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function fFe(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o=e[r],a=t,s=r,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var c=r-a;switch(c){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;c>0;)e[a+c]=e[a+c-1],c--}e[a]=o}}function eae(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=i-l,l=i-c}for(a++;a<l;){var u=a+(l-a>>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function tae(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=i-l,l=i-c}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var u=a+(l-a>>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function frr(e,t){var n=u_,r,i,o=0,a=[];r=[],i=[];function s(h,g){r[o]=h,i[o]=g,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;u(h)}}function c(){for(;o>1;){var h=o-2;h>0&&i[h-1]<i[h+1]&&h--,u(h)}}function u(h){var g=r[h],m=i[h],b=r[h+1],y=i[h+1];i[h]=m+y,h===o-3&&(r[h+1]=r[h+2],i[h+1]=i[h+2]),o--;var M=tae(e[b],e,g,m,0,t);g+=M,m-=M,m!==0&&(y=eae(e[g+m-1],e,b,y,y-1,t),y!==0&&(m<=y?d(g,m,b,y):p(g,m,b,y)))}function d(h,g,m,b){var y=0;for(y=0;y<g;y++)a[y]=e[h+y];var M=0,C=m,x=h;if(e[x++]=e[C++],--b===0){for(y=0;y<g;y++)e[x+y]=a[M+y];return}if(g===1){for(y=0;y<b;y++)e[x+y]=e[C+y];e[x+b]=a[M];return}for(var w=n,S,A,z;;){S=0,A=0,z=!1;do if(t(e[C],a[M])<0){if(e[x++]=e[C++],A++,S=0,--b===0){z=!0;break}}else if(e[x++]=a[M++],S++,A=0,--g===1){z=!0;break}while((S|A)<w);if(z)break;do{if(S=tae(e[C],a,M,g,0,t),S!==0){for(y=0;y<S;y++)e[x+y]=a[M+y];if(x+=S,M+=S,g-=S,g<=1){z=!0;break}}if(e[x++]=e[C++],--b===0){z=!0;break}if(A=eae(a[M],e,C,b,0,t),A!==0){for(y=0;y<A;y++)e[x+y]=e[C+y];if(x+=A,C+=A,b-=A,b===0){z=!0;break}}if(e[x++]=a[M++],--g===1){z=!0;break}w--}while(S>=u_||A>=u_);if(z)break;w<0&&(w=0),w+=2}if(n=w,n<1&&(n=1),g===1){for(y=0;y<b;y++)e[x+y]=e[C+y];e[x+b]=a[M]}else{if(g===0)throw new Error;for(y=0;y<g;y++)e[x+y]=a[M+y]}}function p(h,g,m,b){var y=0;for(y=0;y<b;y++)a[y]=e[m+y];var M=h+g-1,C=b-1,x=m+b-1,w=0,S=0;if(e[x--]=e[M--],--g===0){for(w=x-(b-1),y=0;y<b;y++)e[w+y]=a[y];return}if(b===1){for(x-=g,M-=g,S=x+1,w=M+1,y=g-1;y>=0;y--)e[S+y]=e[w+y];e[x]=a[C];return}for(var A=n;;){var z=0,O=0,T=!1;do if(t(a[C],e[M])<0){if(e[x--]=e[M--],z++,O=0,--g===0){T=!0;break}}else if(e[x--]=a[C--],O++,z=0,--b===1){T=!0;break}while((z|O)<A);if(T)break;do{if(z=g-tae(a[C],e,h,g,g-1,t),z!==0){for(x-=z,M-=z,g-=z,S=x+1,w=M+1,y=z-1;y>=0;y--)e[S+y]=e[w+y];if(g===0){T=!0;break}}if(e[x--]=a[C--],--b===1){T=!0;break}if(O=b-eae(e[M],a,0,b,b-1,t),O!==0){for(x-=O,C-=O,b-=O,S=x+1,w=C+1,y=0;y<O;y++)e[S+y]=a[w+y];if(b<=1){T=!0;break}}if(e[x--]=e[M--],--g===0){T=!0;break}A--}while(z>=u_||O>=u_);if(T)break;A<0&&(A=0),A+=2}if(n=A,n<1&&(n=1),b===1){for(x-=g,M-=g,S=x+1,w=M+1,y=g-1;y>=0;y--)e[S+y]=e[w+y];e[x]=a[C]}else{if(b===0)throw new Error;for(w=x-(b-1),y=0;y<b;y++)e[w+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function F7(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<Tgt){o=hFe(e,n,r,t),fFe(e,n,r,n+o,t);return}var a=frr(e,t),s=prr(i);do{if(o=hFe(e,n,r,t),o<s){var l=i;l>s&&(l=s),fFe(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var Up=1,cN=2,wR=4,gFe=!1;function nae(){gFe||(gFe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mFe(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var grr=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mFe}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,t);r.length=this._displayListLen,F7(r,mFe)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var o=i,a=t;o;)o.parent=a,o.updateTransform(),n.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var c=s[l];t.__dirty&&(c.__dirty|=Up),this._updateAndAddDisplayable(c,n,r)}t.__dirty=0}else{var u=t;n&&n.length?u.__clipPaths=n:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(nae(),u.z=0),isNaN(u.z2)&&(nae(),u.z2=0),isNaN(u.zlevel)&&(nae(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,n,r);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var i=hi(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),uU;uU=Ii.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var AF={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-AF.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?AF.bounceIn(e*2)*.5:AF.bounceOut(e*2-1)*.5+.5}},Z8=Math.pow,kx=Math.sqrt,dU=1e-8,Egt=1e-4,vFe=kx(3),J8=1/3,Gv=_w(),lf=_w(),PI=_w();function px(e){return e>-dU&&e<dU}function Rgt(e){return e>dU||e<-dU}function yu(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function bFe(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function pU(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),c=e-i,u=s*s-3*a*l,d=s*l-9*a*c,p=l*l-3*s*c,h=0;if(px(u)&&px(d))if(px(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[h++]=g)}else{var m=d*d-4*u*p;if(px(m)){var b=d/u,g=-s/a+b,y=-b/2;g>=0&&g<=1&&(o[h++]=g),y>=0&&y<=1&&(o[h++]=y)}else if(m>0){var M=kx(m),C=u*s+1.5*a*(-d+M),x=u*s+1.5*a*(-d-M);C<0?C=-Z8(-C,J8):C=Z8(C,J8),x<0?x=-Z8(-x,J8):x=Z8(x,J8);var g=(-s-(C+x))/(3*a);g>=0&&g<=1&&(o[h++]=g)}else{var w=(2*u*s-3*a*d)/(2*kx(u*u*u)),S=Math.acos(w)/3,A=kx(u),z=Math.cos(S),g=(-s-2*A*z)/(3*a),y=(-s+A*(z+vFe*Math.sin(S)))/(3*a),O=(-s+A*(z-vFe*Math.sin(S)))/(3*a);g>=0&&g<=1&&(o[h++]=g),y>=0&&y<=1&&(o[h++]=y),O>=0&&O<=1&&(o[h++]=O)}}return h}function Igt(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(px(a)){if(Rgt(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var u=o*o-4*a*s;if(px(u))i[0]=-o/(2*a);else if(u>0){var d=kx(u),c=(-o+d)/(2*a),p=(-o-d)/(2*a);c>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function ow(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-a)*i+a,u=(l-s)*i+s,d=(u-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=r}function Pgt(e,t,n,r,i,o,a,s,l,c,u){var d,p=.005,h=1/0,g,m,b,y;Gv[0]=l,Gv[1]=c;for(var M=0;M<1;M+=.05)lf[0]=yu(e,n,i,a,M),lf[1]=yu(t,r,o,s,M),b=Dx(Gv,lf),b<h&&(d=M,h=b);h=1/0;for(var C=0;C<32&&!(p<Egt);C++)g=d-p,m=d+p,lf[0]=yu(e,n,i,a,g),lf[1]=yu(t,r,o,s,g),b=Dx(lf,Gv),g>=0&&b<h?(d=g,h=b):(PI[0]=yu(e,n,i,a,m),PI[1]=yu(t,r,o,s,m),y=Dx(PI,Gv),m<=1&&y<h?(d=m,h=y):p*=.5);return u&&(u[0]=yu(e,n,i,a,d),u[1]=yu(t,r,o,s,d)),kx(h)}function mrr(e,t,n,r,i,o,a,s,l){for(var c=e,u=t,d=0,p=1/l,h=1;h<=l;h++){var g=h*p,m=yu(e,n,i,a,g),b=yu(t,r,o,s,g),y=m-c,M=b-u;d+=Math.sqrt(y*y+M*M),c=m,u=b}return d}function Vu(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function yme(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function vrr(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(px(o)){if(Rgt(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var u=a*a-4*o*s;if(px(u)){var c=-a/(2*o);c>=0&&c<=1&&(i[l++]=c)}else if(u>0){var d=kx(u),c=(-a+d)/(2*o),p=(-a-d)/(2*o);c>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function Dgt(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function uq(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function kgt(e,t,n,r,i,o,a,s,l){var c,u=.005,d=1/0;Gv[0]=a,Gv[1]=s;for(var p=0;p<1;p+=.05){lf[0]=Vu(e,n,i,p),lf[1]=Vu(t,r,o,p);var h=Dx(Gv,lf);h<d&&(c=p,d=h)}d=1/0;for(var g=0;g<32&&!(u<Egt);g++){var m=c-u,b=c+u;lf[0]=Vu(e,n,i,m),lf[1]=Vu(t,r,o,m);var h=Dx(lf,Gv);if(m>=0&&h<d)c=m,d=h;else{PI[0]=Vu(e,n,i,b),PI[1]=Vu(t,r,o,b);var y=Dx(PI,Gv);b<=1&&y<d?(c=b,d=y):u*=.5}}return l&&(l[0]=Vu(e,n,i,c),l[1]=Vu(t,r,o,c)),kx(d)}function brr(e,t,n,r,i,o,a){for(var s=e,l=t,c=0,u=1/a,d=1;d<=a;d++){var p=d*u,h=Vu(e,n,i,p),g=Vu(t,r,o,p),m=h-s,b=g-l;c+=Math.sqrt(m*m+b*b),s=h,l=g}return c}var yrr=/cubic-bezier\(([0-9,\.e ]+)\)/;function sSe(e){var t=e&&yrr.exec(e);if(t){var n=t[1].split(","),r=+Cf(n[0]),i=+Cf(n[1]),o=+Cf(n[2]),a=+Cf(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:pU(0,r,o,1,l,s)&&yu(0,i,a,1,s[0])}}}var Mrr=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Nl,this.ondestroy=t.ondestroy||Nl,this.onrestart=t.onrestart||Nl,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=fr(t)?t:AF[t]||sSe(t)},e})(),Lgt=(function(){function e(t){this.value=t}return e})(),Crr=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new Lgt(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),WB=(function(){function e(t){this._list=new Crr,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,o=null;if(i[t]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new Lgt(n),s.key=t,r.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),yFe={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function fm(e){return e=Math.round(e),e<0?0:e>255?255:e}function xrr(e){return e=Math.round(e),e<0?0:e>360?360:e}function dq(e){return e<0?0:e>1?1:e}function rae(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?fm(parseFloat(t)/100*255):fm(parseInt(t,10))}function JO(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?dq(parseFloat(t)/100):dq(parseFloat(t))}function iae(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function hx(e,t,n){return e+(t-e)*n}function Hh(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Mme(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var _gt=new WB(20),eV=null;function FE(e,t){eV&&Mme(eV,t),eV=_gt.put(e,eV||t.slice())}function c1(e,t){if(e){t=t||[];var n=_gt.get(e);if(n)return Mme(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in yFe)return Mme(t,yFe[r]),FE(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){Hh(t,0,0,0,1);return}return Hh(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),FE(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Hh(t,0,0,0,1);return}return Hh(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),FE(e,t),t}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),c=r.substr(a+1,s-(a+1)).split(","),u=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?Hh(t,+c[0],+c[1],+c[2],1):Hh(t,0,0,0,1);u=JO(c.pop());case"rgb":if(c.length>=3)return Hh(t,rae(c[0]),rae(c[1]),rae(c[2]),c.length===3?u:JO(c[3])),FE(e,t),t;Hh(t,0,0,0,1);return;case"hsla":if(c.length!==4){Hh(t,0,0,0,1);return}return c[3]=JO(c[3]),Cme(c,t),FE(e,t),t;case"hsl":if(c.length!==3){Hh(t,0,0,0,1);return}return Cme(c,t),FE(e,t),t;default:return}}Hh(t,0,0,0,1)}}function Cme(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=JO(e[1]),i=JO(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Hh(t,fm(iae(a,o,n+1/3)*255),fm(iae(a,o,n)*255),fm(iae(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function wrr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i,s=(o+i)/2,l,c;if(a===0)l=0,c=0;else{s<.5?c=a/(o+i):c=a/(2-o-i);var u=((o-t)/6+a/2)/a,d=((o-n)/6+a/2)/a,p=((o-r)/6+a/2)/a;t===o?l=p-d:n===o?l=1/3+u-p:r===o&&(l=2/3+d-u),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,c,s];return e[3]!=null&&h.push(e[3]),h}}function hU(e,t){var n=c1(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return gm(n,n.length===4?"rgba":"rgb")}}function Srr(e){var t=c1(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function OF(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=t[i],s=t[o],l=r-i;return n[0]=fm(hx(a[0],s[0],l)),n[1]=fm(hx(a[1],s[1],l)),n[2]=fm(hx(a[2],s[2],l)),n[3]=dq(hx(a[3],s[3],l)),n}}var Arr=OF;function lSe(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=c1(t[i]),s=c1(t[o]),l=r-i,c=gm([fm(hx(a[0],s[0],l)),fm(hx(a[1],s[1],l)),fm(hx(a[2],s[2],l)),dq(hx(a[3],s[3],l))],"rgba");return n?{color:c,leftIndex:i,rightIndex:o,value:r}:c}}var Orr=lSe;function DI(e,t,n,r){var i=c1(e);if(e)return i=wrr(i),t!=null&&(i[0]=xrr(t)),n!=null&&(i[1]=JO(n)),r!=null&&(i[2]=JO(r)),gm(Cme(i),"rgba")}function pq(e,t){var n=c1(e);if(n&&t!=null)return n[3]=dq(t),gm(n,"rgba")}function gm(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function hq(e,t){var n=c1(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function zrr(){return gm([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var MFe=new WB(100);function fU(e){if(An(e)){var t=MFe.get(e);return t||(t=hU(e,-.1),MFe.put(e,t)),t}else if(_B(e)){var n=Nt({},e);return n.colorStops=Vt(e.colorStops,function(r){return{offset:r.offset,color:hU(r.color,-.1)}}),n}return e}const Trr=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:OF,fastMapToColor:Arr,lerp:lSe,lift:hU,liftColor:fU,lum:hq,mapToColor:Orr,modifyAlpha:pq,modifyHSL:DI,parse:c1,random:zrr,stringify:gm,toHex:Srr},Symbol.toStringTag,{value:"Module"}));var gU=Math.round;function fq(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=c1(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var CFe=1e-4;function fx(e){return e<CFe&&e>-CFe}function tV(e){return gU(e*1e3)/1e3}function xme(e){return gU(e*1e4)/1e4}function Err(e){return"matrix("+tV(e[0])+","+tV(e[1])+","+tV(e[2])+","+tV(e[3])+","+xme(e[4])+","+xme(e[5])+")"}var Rrr={left:"start",right:"end",center:"middle",middle:"middle"};function Irr(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function Prr(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Drr(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function Ngt(e){return e&&!!e.image}function krr(e){return e&&!!e.svgElement}function cSe(e){return Ngt(e)||krr(e)}function Fgt(e){return e.type==="linear"}function Wgt(e){return e.type==="radial"}function qgt(e){return e&&(e.type==="linear"||e.type==="radial")}function uJ(e){return"url(#"+e+")"}function Bgt(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function jgt(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*xF,i=Xr(e.scaleX,1),o=Xr(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(i!==1||o!==1)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+gU(a*xF)+"deg, "+gU(s*xF)+"deg)"),l.join(" ")}var Lrr=(function(){return Ii.hasGlobalWindow&&fr(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})(),wme=Array.prototype.slice;function ry(e,t,n){return(t-e)*n+e}function oae(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=ry(t[o],n[o],r);return e}function _rr(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=ry(t[a][s],n[a][s],r)}return e}function nV(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function xFe(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Nrr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Frr(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(n===1?i[l]:wme.call(i[l]))}for(var c=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var u=0;u<c;u++)isNaN(r[l][u])&&(r[l][u]=i[l][u])}}function zF(e){if(Ad(e)){var t=e.length;if(Ad(e[0])){for(var n=[],r=0;r<t;r++)n.push(wme.call(e[r]));return n}return wme.call(e)}return e}function W7(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Wrr(e){return Ad(e&&e[0])?2:1}var rV=0,q7=1,Hgt=2,uN=3,Sme=4,Ame=5,wFe=6;function SFe(e){return e===Sme||e===Ame}function iV(e){return e===q7||e===Hgt}var d_=[0,0,0,0],qrr=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=wFe,l=n;if(Ad(n)){var c=Wrr(n);s=c,(c===1&&!yo(n[0])||c===2&&!yo(n[0][0]))&&(a=!0)}else if(yo(n)&&!PP(n))s=rV;else if(An(n))if(!isNaN(+n))s=rV;else{var u=c1(n);u&&(l=u,s=uN)}else if(_B(n)){var d=Nt({},l);d.colorStops=Vt(n.colorStops,function(h){return{offset:h.offset,color:c1(h.color)}}),Fgt(n)?s=Sme:Wgt(n)&&(s=Ame),l=d}o===0?this.valType=s:(s!==this.valType||s===wFe)&&(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:n,percent:0};return r&&(p.easing=r,p.easingFunc=fr(r)?r:AF[r]||sSe(r)),i.push(p),p},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,b){return m.time-b.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=iV(i),c=SFe(i),u=0;u<o;u++){var d=r[u],p=d.value,h=a.value;d.percent=d.time/t,s||(l&&u!==o-1?Frr(p,h,i):c&&Nrr(p.colorStops,h.colorStops))}if(!s&&i!==Ame&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var g=r[0].value,u=0;u<o;u++)i===rV?r[u].additiveValue=r[u].value-g:i===uN?r[u].additiveValue=nV([],r[u].value,g,-1):iV(i)&&(r[u].additiveValue=i===q7?nV([],r[u].value,g,-1):xFe([],r[u].value,g,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,c=o===uN,u,d=this._lastFr,p=Math.min,h,g;if(s===1)h=g=a[0];else{if(n<0)u=0;else if(n<this._lastFrP){var m=p(d+1,s-1);for(u=m;u>=0&&!(a[u].percent<=n);u--);u=p(u,s-2)}else{for(u=d;u<s&&!(a[u].percent>n);u++);u=p(u-1,s-2)}g=a[u+1],h=a[u]}if(h&&g){this._lastFr=u,this._lastFrP=n;var b=g.percent-h.percent,y=b===0?1:p((n-h.percent)/b,1);g.easingFunc&&(y=g.easingFunc(y));var M=r?this._additiveValue:c?d_:t[l];if((iV(o)||c)&&!M&&(M=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:g.rawValue;else if(iV(o))o===q7?oae(M,h[i],g[i],y):_rr(M,h[i],g[i],y);else if(SFe(o)){var C=h[i],x=g[i],w=o===Sme;t[l]={type:w?"linear":"radial",x:ry(C.x,x.x,y),y:ry(C.y,x.y,y),colorStops:Vt(C.colorStops,function(A,z){var O=x.colorStops[z];return{offset:ry(A.offset,O.offset,y),color:W7(oae([],A.color,O.color,y))}}),global:x.global},w?(t[l].x2=ry(C.x2,x.x2,y),t[l].y2=ry(C.y2,x.y2,y)):t[l].r=ry(C.r,x.r,y)}else if(c)oae(M,h[i],g[i],y),r||(t[l]=W7(M));else{var S=ry(h[i],g[i],y);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===rV?t[r]=t[r]+i:n===uN?(c1(t[r],d_),nV(d_,d_,i,1),t[r]=W7(d_)):n===q7?nV(t[r],t[r],i,1):n===Hgt&&xFe(t[r],t[r],i,1)},e})(),uSe=(function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){iJ("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,Hi(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new qrr(s);var c=void 0,u=this._getAdditiveTrack(s);if(u){var d=u.keyframes,p=d[d.length-1];c=p&&p.value,u.valType===uN&&c&&(c=W7(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,zF(c),i),this._trackKeys.push(s)}l.addKeyframe(t,zF(n[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),c=s.keyframes,u=c.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=c[u-1];d&&(n._target[s.propName]=d.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var p=new Mrr({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var g=n._additiveAnimators;if(g){for(var m=!1,b=0;b<g.length;b++)if(g[b]._clip){m=!0;break}m||(n._additiveAnimators=null)}for(var b=0;b<r.length;b++)r[b].step(n._target,h);var y=n._onframeCbs;if(y)for(var b=0;b<y.length;b++)y[b](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Vt(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=r[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var o=n[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(t[o]=zF(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||Hi(t);for(var r=0;r<n.length;r++){var i=n[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e})();function HR(){return new Date().getTime()}var Brr=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=HR()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(uU(r),!n._paused&&n.update())}uU(r)},t.prototype.start=function(){this._running||(this._time=HR(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=HR(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=HR()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new uSe(n,r.loop);return this.addAnimator(i),i},t})(Zf),jrr=300,aae=Ii.domSupported,sae=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Vt(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}})(),AFe={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},OFe=!1;function Ome(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Hrr(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function lae(e){e&&(e.zrByTouch=!0)}function Vrr(e,t){return Xh(e.dom,new Grr(e,t),!0)}function Vgt(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Grr=(function(){function e(t,n){this.stopPropagation=Nl,this.stopImmediatePropagation=Nl,this.preventDefault=Nl,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),Ng={mousedown:function(e){e=Xh(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Xh(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Xh(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Xh(this.dom,e);var t=e.toElement||e.relatedTarget;Vgt(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){OFe=!0,e=Xh(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){OFe||(e=Xh(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Xh(this.dom,e),lae(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ng.mousemove.call(this,e),Ng.mousedown.call(this,e)},touchmove:function(e){e=Xh(this.dom,e),lae(e),this.handler.processGesture(e,"change"),Ng.mousemove.call(this,e)},touchend:function(e){e=Xh(this.dom,e),lae(e),this.handler.processGesture(e,"end"),Ng.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<jrr&&Ng.click.call(this,e)},pointerdown:function(e){Ng.mousedown.call(this,e)},pointermove:function(e){Ome(e)||Ng.mousemove.call(this,e)},pointerup:function(e){Ng.mouseup.call(this,e)},pointerout:function(e){Ome(e)||Ng.mouseout.call(this,e)}};ye(["click","dblclick","contextmenu"],function(e){Ng[e]=function(t){t=Xh(this.dom,t),this.trigger(e,t)}});var zme={pointermove:function(e){Ome(e)||zme.mousemove.call(this,e)},pointerup:function(e){zme.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function $rr(e,t){var n=t.domHandlers;Ii.pointerEventsSupported?ye(sae.pointer,function(r){B7(t,r,function(i){n[r].call(e,i)})}):(Ii.touchEventsSupported&&ye(sae.touch,function(r){B7(t,r,function(i){n[r].call(e,i),Hrr(t)})}),ye(sae.mouse,function(r){B7(t,r,function(i){i=aSe(i),t.touching||n[r].call(e,i)})}))}function Urr(e,t){Ii.pointerEventsSupported?ye(AFe.pointer,n):Ii.touchEventsSupported||ye(AFe.mouse,n);function n(r){function i(o){o=aSe(o),Vgt(e,o.target)||(o=Vrr(e,o),t.domHandlers[r].call(e,o))}B7(t,r,i,{capture:!0})}}function B7(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,bme(e.domTarget,t,n,r)}function cae(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&rrr(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var zFe=(function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e})(),Xrr=(function(e){gt(t,e);function t(n,r){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new zFe(n,Ng),aae&&(i._globalHandlerScope=new zFe(document,zme)),$rr(i,i._localHandlerScope),i}return t.prototype.dispose=function(){cae(this._localHandlerScope),aae&&cae(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,aae&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?Urr(this,r):cae(r)}},t})(Zf),Ggt=1;Ii.hasGlobalWindow&&(Ggt=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var mU=Ggt,Tme=.4,Eme="#333",Rme="#ccc",Yrr="#eee",TFe=FB,EFe=5e-5;function eA(e){return e>EFe||e<-EFe}var tA=[],WE=[],uae=gp(),dae=Math.abs,Sy=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return eA(this.rotation)||eA(this.x)||eA(this.y)||eA(this.scaleX-1)||eA(this.scaleY-1)||eA(this.skewX)||eA(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(TFe(r),this.invTransform=null);return}r=r||gp(),n?this.getLocalTransform(r):TFe(r),t&&(n?Mb(r,t,r):lJ(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(tA);var r=tA[0]<0?-1:1,i=tA[1]<0?-1:1,o=((tA[0]-r)*n+r)/tA[0]||0,a=((tA[1]-i)*n+i)/tA[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||gp(),H3(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||gp(),Mb(WE,t.invTransform,n),n=WE);var r=this.originX,i=this.originY;(r||i)&&(uae[4]=r,uae[5]=i,Mb(WE,n,uae),WE[4]-=r,WE[5]-=i,n=WE),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Yu(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Yu(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&dae(t[0]-1)>1e-10&&dae(t[3]-1)>1e-10?Math.sqrt(dae(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){$gt(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,u=t.x,d=t.y,p=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var g=r+s,m=i+l;n[4]=-g*o-p*m*a,n[5]=-m*a-h*g*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=h*o,n[2]=p*a,c&&Nw(n,n,c),n[4]+=r+u,n[5]+=i+d,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),_b=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $gt(e,t){for(var n=0;n<_b.length;n++){var r=_b[n];e[r]=t[r]}}var RFe={};function oh(e,t){t=t||iw;var n=RFe[t];n||(n=RFe[t]=new WB(500));var r=n.get(e);return r==null&&(r=wm.measureText(e,t).width,n.put(e,r)),r}function IFe(e,t,n,r){var i=oh(e,t),o=dJ(t),a=dN(0,i,n),s=SR(0,o,r),l=new ui(a,s,i,o);return l}function qB(e,t,n,r){var i=((e||"")+"").split(`
`),o=i.length;if(o===1)return IFe(i[0],t,n,r);for(var a=new ui(0,0,0,0),s=0;s<i.length;s++){var l=IFe(i[s],t,n,r);s===0?a.copy(l):a.union(l)}return a}function dN(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function SR(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function dJ(e){return oh("国",e)}function Am(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function vU(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",d="top";if(r instanceof Array)l+=Am(r[0],n.width),c+=Am(r[1],n.height),u=null,d=null;else switch(r){case"left":l-=i,c+=s,u="right",d="middle";break;case"right":l+=i+a,c+=s,d="middle";break;case"top":l+=a/2,c-=i,u="center",d="bottom";break;case"bottom":l+=a/2,c+=o+i,u="center";break;case"inside":l+=a/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=i,c+=s,d="middle";break;case"insideRight":l+=a-i,c+=s,u="right",d="middle";break;case"insideTop":l+=a/2,c+=i,u="center";break;case"insideBottom":l+=a/2,c+=o-i,u="center",d="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,u="right",d="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=d,e}var pae="__zr_normal__",hae=_b.concat(["ignore"]),Krr=Wf(_b,function(e,t){return e[t]=!0,e},{ignore:!1}),qE={},Qrr=new ui(0,0,0,0),pJ=(function(){function e(t){this.id=nSe(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var c=!1;if(o.copyTransform(n),r.position!=null){var u=Qrr;r.layoutRect?u.copy(r.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(qE,r,u):vU(qE,r,u),o.x=qE.x,o.y=qE.y,a=qE.align,s=qE.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var p=void 0,h=void 0;d==="center"?(p=u.width*.5,h=u.height*.5):(p=Am(d[0],u.width),h=Am(d[1],u.height)),c=!0,o.originX=-o.x+p+(i?0:u.x),o.originY=-o.y+h+(i?0:u.y)}}r.rotation!=null&&(o.rotation=r.rotation);var g=r.offset;g&&(o.x+=g[0],o.y+=g[1],c||(o.originX=-g[0],o.originY=-g[1]));var m=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,M=void 0,C=void 0;m&&this.canBeInsideText()?(y=r.insideFill,M=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(M==null||M==="auto")&&(M=this.getInsideTextStroke(y),C=!0)):(y=r.outsideFill,M=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(M==null||M==="auto")&&(M=this.getOutsideStroke(y),C=!0)),y=y||"#000",(y!==b.fill||M!==b.stroke||C!==b.autoStroke||a!==b.align||s!==b.verticalAlign)&&(l=!0,b.fill=y,b.stroke=M,b.autoStroke=C,b.align=a,b.verticalAlign=s,n.setDefaultTextStyle(b)),n.__dirty|=Up,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Rme:Eme},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&c1(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,gm(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Nt(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(xr(t))for(var r=t,i=Hi(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==pae)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,hae)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var i=0;i<r.length;i++){var o=r[i];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(pae,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===pae,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(hi(s,t)>=0&&(n||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o){iJ("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,p=this._textGuide;return d&&d.useState(t,n,r,u),p&&p.useState(t,n,r,u),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Up),c}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var c=t[l],u=void 0;this.stateProxy&&(u=this.stateProxy(c,t)),u||(u=this.states[c]),u&&i.push(u)}var d=i[a-1],p=!!(d&&d.hoverLayer||r);p&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&g&&g.duration>0,g);var m=this._textContent,b=this._textGuide;m&&m.useStates(t,n,p),b&&b.useStates(t,n,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Up)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=hi(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=hi(i,t),a=hi(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i<t.length;i++){var o=t[i];Nt(n,o),o.textConfig&&(r=r||{},Nt(r,o.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,i,o,a){var s=!(n&&i);n&&n.textConfig?(this.textConfig=Nt({},i?this.textConfig:r.textConfig),Nt(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},c=!1,u=0;u<hae.length;u++){var d=hae[u],p=o&&Krr[d];n&&n[d]!=null?p?(c=!0,l[d]=n[d]):this[d]=n[d]:s&&r[d]!=null&&(p?(c=!0,l[d]=r[d]):this[d]=r[d])}if(!o)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],g=h.targetName;h.getLoop()||h.__changeFinalValue(g?(n||r)[g]:n||r)}c&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new Sy,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Nt(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Up;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var i=t?this[t]:this,o=new uSe(i,n,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=hi(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,r){fae(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){fae(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var o=fae(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Up;function n(r,i,o,a){Object.defineProperty(t,r,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[o]=l[0],this[a]=l[1],this[i]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[o]},set:function(u){l[o]=u}}),Object.defineProperty(c,1,{get:function(){return l[a]},set:function(u){l[a]=u}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),e})();Hl(pJ,Zf);Hl(pJ,Sy);function fae(e,t,n,r,i){n=n||{};var o=[];Ugt(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},d=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(g,m){n.during(m)});for(var p=0;p<o.length;p++){var h=o[p];u&&h.done(u),d&&h.aborted(d),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function gae(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Zrr(e){return Ad(e[0])}function Jrr(e,t,n){if(Ad(t[n]))if(Ad(e[n])||(e[n]=[]),h1(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),gae(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(Zrr(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?gae(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else gae(o,i,a);o.length=i.length}else e[n]=t[n]}function eir(e,t){return e===t||Ad(e)&&Ad(t)&&tir(e,t)}function tir(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ugt(e,t,n,r,i,o,a,s){for(var l=Hi(r),c=i.duration,u=i.delay,d=i.additive,p=i.setToFinal,h=!xr(o),g=e.animators,m=[],b=0;b<l.length;b++){var y=l[b],M=r[y];if(M!=null&&n[y]!=null&&(h||o[y]))if(xr(M)&&!Ad(M)&&!_B(M)){if(t){s||(n[y]=M,e.updateDuringAnimation(t));continue}Ugt(e,y,n[y],M,i,o&&o[y],a,s)}else m.push(y);else s||(n[y]=M,e.updateDuringAnimation(t),m.push(y))}var C=m.length;if(!d&&C)for(var x=0;x<g.length;x++){var w=g[x];if(w.targetName===t){var S=w.stopTracks(m);if(S){var A=hi(g,w);g.splice(A,1)}}}if(i.force||(m=Lo(m,function(R){return!eir(r[R],n[R])}),C=m.length),C>0||i.force&&!a.length){var z=void 0,O=void 0,T=void 0;if(s){O={},p&&(z={});for(var x=0;x<C;x++){var y=m[x];O[y]=n[y],p?z[y]=r[y]:n[y]=r[y]}}else if(p){T={};for(var x=0;x<C;x++){var y=m[x];T[y]=zF(n[y]),Jrr(n,r,y)}}var w=new uSe(n,!1,!1,d?Lo(g,function(P){return P.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),p&&z&&w.whenWithKeys(0,z,m),T&&w.whenWithKeys(0,T,m),w.whenWithKeys(c??500,s?O:r,m).delay(u||0),e.addAnimator(w,t),a.push(w)}}var Ir=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=hi(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,o=hi(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var o=n[i];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];n.call(r,a,o)}return this},t.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=n.call(r,o);o.isGroup&&!a&&o.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new ui(0,0,0,0),i=n||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),u=l.getLocalTransform(o);u?(ui.applyTransform(r,c,u),a=a||r.clone(),a.union(r)):(a=a||c.clone(),a.union(c))}}return a||r},t})(pJ);Ir.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var j7={},gO={};function nir(e){delete gO[e]}function rir(e){if(!e)return!1;if(typeof e=="string")return hq(e,1)<Tme;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=hq(t[i].color,1);return n/=r,n<Tme}return!1}var iir=(function(){function e(t,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new grr,a=r.renderer||"canvas";j7[a]||(a=Hi(j7)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new j7[a](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var c=!Ii.node&&!Ii.worker&&!l?new Xrr(s.getViewportRoot(),s.root):null,u=r.useCoarsePointer,d=u==null||u==="auto"?Ii.touchEventsSupported:!!u,p=44,h;d&&(h=Xr(r.pointerSize,p)),this.handler=new Ogt(o,s,c,s.root,h),this.animation=new Brr({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=rir(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=HR();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=HR();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof Ir&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,nir(this.id))},e})();function Ime(e,t){var n=new iir(nSe(),e,t);return gO[n.id]=n,n}function oir(e){e.dispose()}function air(){for(var e in gO)gO.hasOwnProperty(e)&&gO[e].dispose();gO={}}function sir(e){return gO[e]}function Xgt(e,t){j7[e]=t}var Pme;function Ygt(e){if(typeof Pme=="function")return Pme(e)}function Kgt(e){Pme=e}var lir="5.6.1";const cir=Object.freeze(Object.defineProperty({__proto__:null,dispose:oir,disposeAll:air,getElementSSRData:Ygt,getInstance:sir,init:Ime,registerPainter:Xgt,registerSSRDataGetter:Kgt,version:lir},Symbol.toStringTag,{value:"Module"}));var PFe=1e-4,Qgt=20;function uir(e){return e.replace(/^\s+|\s+$/g,"")}function Ko(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,c=s-a;if(l===0)return c===0?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*c+a}function vn(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return An(e)?uir(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function wl(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),Qgt),e=(+e).toFixed(t),n?e:+e}function Jp(e){return e.sort(function(t,n){return t-n}),e}function tm(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Zgt(e)}function Zgt(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function dSe(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function dir(e,t,n){if(!e[t])return 0;var r=Jgt(e,n);return r[t]||0}function Jgt(e,t){var n=Wf(e,function(h,g){return h+(isNaN(g)?0:g)},0);if(n===0)return[];for(var r=Math.pow(10,t),i=Vt(e,function(h){return(isNaN(h)?0:h)/n*r*100}),o=r*100,a=Vt(i,function(h){return Math.floor(h)}),s=Wf(a,function(h,g){return h+g},0),l=Vt(i,function(h,g){return h-a[g]});s<o;){for(var c=Number.NEGATIVE_INFINITY,u=null,d=0,p=l.length;d<p;++d)l[d]>c&&(c=l[d],u=d);++a[u],l[u]=0,++s}return Vt(a,function(h){return h/r})}function pir(e,t){var n=Math.max(tm(e),tm(t)),r=e+t;return n>Qgt?r:wl(r,n)}var Dme=9007199254740991;function pSe(e){var t=Math.PI*2;return(e%t+t)%t}function kP(e){return e>-PFe&&e<PFe}var hir=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function dh(e){if(e instanceof Date)return e;if(An(e)){var t=hir.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function emt(e){return Math.pow(10,hJ(e))}function hJ(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function hSe(e,t){var n=hJ(e),r=Math.pow(10,n),i=e/r,o;return t?i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10:i<1?o=1:i<2?o=2:i<3?o=3:i<5?o=5:o=10,e=o*r,n>=-20?+e.toFixed(n<0?-n:0):e}function H7(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function kme(e){e.sort(function(l,c){return s(l,c,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?e.splice(r,1):r++}return e;function s(l,c,u){return l.interval[u]<c.interval[u]||l.interval[u]===c.interval[u]&&(l.close[u]-c.close[u]===(u?-1:1)||!u&&s(l,c,1))}}function Nb(e){var t=parseFloat(e);return t==e&&(t!==0||!An(e)||e.indexOf("x")<=0)?t:NaN}function fSe(e){return!isNaN(Nb(e))}function tmt(){return Math.round(Math.random()*9)}function nmt(e,t){return t===0?e:nmt(t,e%t)}function DFe(e,t){return e==null?t:t==null?e:e*t/nmt(e,t)}function Qo(e){throw new Error(e)}function kFe(e,t,n){return(t-e)*n+e}var rmt="series\0",imt="\0_ec_\0";function Ea(e){return e instanceof Array?e:e==null?[]:[e]}function Xz(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var LFe=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function ek(e){return xr(e)&&!Ht(e)&&!(e instanceof Date)?e.value:e}function fir(e){return xr(e)&&!(e instanceof Array)}function omt(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=Kn();ye(t,function(l,c){if(!xr(l)){t[c]=null;return}});var s=gir(e,a,n);return(r||i)&&mir(s,e,a,t),r&&vir(s,t),r||i?bir(s,t,i):o&&yir(s,t),Mir(s),s}function gir(e,t,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),r.push({existing:n==="replaceMerge"||gq(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function mir(e,t,n,r){ye(r,function(i,o){if(!(!i||i.id==null)){var a=TF(i.id),s=n.get(a);if(s!=null){var l=e[s];S0(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}function vir(e,t){ye(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||n.id==null)&&!gq(n)&&!gq(o)&&amt("name",o,n)){e[i].newOption=n,t[r]=null;return}}})}function bir(e,t,n){ye(t,function(r){if(r){for(var i,o=0;(i=e[o])&&(i.newOption||gq(i.existing)||i.existing&&r.id!=null&&!amt("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function yir(e,t){ye(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function Mir(e){var t=Kn();ye(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),ye(e,function(n){var r=n.newOption;S0(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),ye(e,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(xr(o)){if(a.name=o.name!=null?TF(o.name):i?i.name:rmt+r,i)a.id=TF(i.id);else if(o.id!=null)a.id=TF(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function amt(e,t,n){var r=Zc(t[e],null),i=Zc(n[e],null);return r!=null&&i!=null&&r===i}function TF(e){return Zc(e,"")}function Zc(e,t){return e==null?t:An(e)?e:yo(e)||sU(e)?e+"":t}function gSe(e){var t=e.name;return!!(t&&t.indexOf(rmt))}function gq(e){return e&&e.id!=null&&TF(e.id).indexOf(imt)===0}function Cir(e){return imt+e}function xir(e,t,n){ye(e,function(r){var i=r.newOption;xr(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=wir(t,i,r.existing,n))})}function wir(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function Sir(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(a,s,l){for(var c=0,u=a.length;c<u;c++){var d=Zc(a[c].seriesId,null);if(d==null)return;for(var p=Ea(a[c].dataIndex),h=l&&l[d],g=0,m=p.length;g<m;g++){var b=p[g];h&&h[b]?h[b]=null:(s[d]||(s[d]={}))[b]=1}}}function o(a,s){var l=[];for(var c in a)if(a.hasOwnProperty(c)&&a[c]!=null)if(s)l.push(+c);else{var u=o(a[c],!0);u.length&&l.push({seriesId:c,dataIndex:u})}return l}}function Yz(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Ht(t.dataIndex)?Vt(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Ht(t.name)?Vt(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function mo(){var e="__ec_inner_"+Air++;return function(t){return t[e]||(t[e]={})}}var Air=tmt();function EF(e,t,n){var r=mSe(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(c,u){var d=BB(e,u,c,{useDefault:l===u,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[u+"Models"]=d.models,s[u+"Model"]=d.models[0]}),s}function mSe(e,t){var n;if(An(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Kn(),o={},a=!1;return ye(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],u=c[1],d=(c[2]||"").toLowerCase();if(!(!u||!d||t&&t.includeMainTypes&&hi(t.includeMainTypes,u)<0)){a=a||!!u;var p=i.get(u)||i.set(u,{});p[d]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Sc={useDefault:!0,enableAll:!1,enableNone:!1},Oir={useDefault:!1,enableAll:!0,enableNone:!0};function BB(e,t,n,r){r=r||Sc;var i=n.index,o=n.id,a=n.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(S0(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(S0(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function smt(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function zir(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Tir(e){return e==="auto"?Ii.domSupported?"html":"richText":e||"html"}function Lme(e,t){var n=Kn(),r=[];return ye(e,function(i){var o=t(i);(n.get(o)||(r.push(o),n.set(o,[]))).push(i)}),{keys:r,buckets:n}}function lmt(e,t,n,r,i){var o=t==null||t==="auto";if(r==null)return r;if(yo(r)){var a=kFe(n||0,r,i);return wl(a,o?Math.max(tm(n||0),tm(r)):t)}else{if(An(r))return i<1?n:r;for(var s=[],l=n,c=r,u=Math.max(l?l.length:0,c.length),d=0;d<u;++d){var p=e.getDimensionInfo(d);if(p&&p.type==="ordinal")s[d]=(i<1&&l?l:c)[d];else{var h=l&&l[d]?l[d]:0,g=c[d],a=kFe(h,g,i);s[d]=wl(a,o?Math.max(tm(h),tm(g)):t)}}return s}}var Eir=".",nA="___EC__COMPONENT__CONTAINER___",cmt="___EC__EXTENDED_CLASS___";function tb(e){var t={main:"",sub:""};if(e){var n=e.split(Eir);t.main=n[0]||"",t.sub=n[1]||""}return t}function Rir(e){S0(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Iir(e){return!!(e&&e[cmt])}function vSe(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return Pir(r)?i=(function(o){gt(a,o);function a(){return o.apply(this,arguments)||this}return a})(r):(i=function(){(n.$constructor||r).apply(this,arguments)},rSe(i,this)),Nt(i.prototype,n),i[cmt]=!0,i.extend=this.extend,i.superCall=Lir,i.superApply=_ir,i.superClass=r,i}}function Pir(e){return fr(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function umt(e,t){e.extend=t.extend}var Dir=Math.round(Math.random()*10);function kir(e){var t=["__\0is_clz",Dir++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function Lir(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function _ir(e,t,n){return this.superClass.prototype[t].apply(e,n)}function fJ(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){Rir(i),r.prototype.type=i;var o=tb(i);if(!o.sub)t[o.main]=r;else if(o.sub!==nA){var a=n(o);a[o.sub]=r}}return r},e.getClass=function(r,i,o){var a=t[r];if(a&&a[nA]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},e.getClassesByMainType=function(r){var i=tb(r),o=[],a=t[i.main];return a&&a[nA]?ye(a,function(s,l){l!==nA&&o.push(s)}):o.push(a),o},e.hasClass=function(r){var i=tb(r);return!!t[i.main]},e.getAllClassMainTypes=function(){var r=[];return ye(t,function(i,o){r.push(o)}),r},e.hasSubTypes=function(r){var i=tb(r),o=t[i.main];return o&&o[nA]};function n(r){var i=t[r.main];return(!i||!i[nA])&&(i=t[r.main]={},i[nA]=!0),i}}function Kz(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&hi(i,l)>=0||o&&hi(o,l)<0)){var c=r.getShallow(l,t);c!=null&&(a[e[s][0]]=c)}}return a}}var Nir=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Fir=Kz(Nir),Wir=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Fir(this,t,n)},e})(),_me=new WB(50);function qir(e){if(typeof e=="string"){var t=_me.get(e);return t&&t.image}else return e}function bSe(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=_me.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!gJ(t)&&o.pending.push(a)):(t=wm.loadImage(e,_Fe,_Fe),t.__zrImageSrc=e,_me.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function _Fe(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function gJ(e){return e&&e.width&&e.height}var mae=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Bir(e,t,n,r,i){var o={};return dmt(o,e,t,n,r,i),o.text}function dmt(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
`);o=pmt(n,r,i,o);for(var s=!1,l={},c=0,u=a.length;c<u;c++)hmt(l,a[c],o),a[c]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
`),e.isTruncated=s}function pmt(e,t,n,r){r=r||{};var i=Nt({},r);i.font=t,n=Xr(n,"..."),i.maxIterations=Xr(r.maxIterations,2);var o=i.minChar=Xr(r.minChar,0);i.cnCharWidth=oh("国",t);var a=i.ascCharWidth=oh("a",t);i.placeholder=Xr(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var c=oh(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function hmt(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var a=oh(t,i);if(a<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?jir(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=oh(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function jir(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function Hir(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,i=t.font,o=n==="truncate",a=dJ(i),s=Xr(t.lineHeight,a),l=!!t.backgroundColor,c=t.lineOverflow==="truncate",u=!1,d=t.width,p;d!=null&&(n==="break"||n==="breakAll")?p=e?fmt(e,t.font,d,n==="breakAll",0).lines:[]:p=e?e.split(`
`):[];var h=p.length*s,g=Xr(t.height,h);if(h>g&&c){var m=Math.floor(g/s);u=u||p.length>m,p=p.slice(0,m)}if(e&&o&&d!=null)for(var b=pmt(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},M=0;M<p.length;M++)hmt(y,p[M],b),p[M]=y.textLine,u=u||y.isTruncated;for(var C=g,x=0,M=0;M<p.length;M++)x=Math.max(oh(p[M],i),x);d==null&&(d=x);var w=x;return r&&(C+=r[0]+r[2],w+=r[1]+r[3],d+=r[1]+r[3]),l&&(w=d),{lines:p,height:g,outerWidth:w,outerHeight:C,lineHeight:s,calculatedLineHeight:a,contentWidth:x,contentHeight:h,width:d,isTruncated:u}}var Vir=(function(){function e(){}return e})(),NFe=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),Gir=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function $ir(e,t){var n=new Gir;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,i=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=mae.lastIndex=0,l;(l=mae.exec(e))!=null;){var c=l.index;c>s&&vae(n,e.substring(s,c),t,a),vae(n,l[2],t,a,l[1]),s=mae.lastIndex}s<e.length&&vae(n,e.substring(s,e.length),t,a);var u=[],d=0,p=0,h=t.padding,g=o==="truncate",m=t.lineOverflow==="truncate",b={};function y(q,$,U){q.width=$,q.lineHeight=U,d+=U,p=Math.max(p,$)}e:for(var M=0;M<n.lines.length;M++){for(var C=n.lines[M],x=0,w=0,S=0;S<C.tokens.length;S++){var A=C.tokens[S],z=A.styleName&&t.rich[A.styleName]||{},O=A.textPadding=z.padding,T=O?O[1]+O[3]:0,R=A.font=z.font||t.font;A.contentHeight=dJ(R);var P=Xr(z.height,A.contentHeight);if(A.innerHeight=P,O&&(P+=O[0]+O[2]),A.height=P,A.lineHeight=hm(z.lineHeight,t.lineHeight,P),A.align=z&&z.align||t.align,A.verticalAlign=z&&z.verticalAlign||"middle",m&&i!=null&&d+A.lineHeight>i){var F=n.lines.length;S>0?(C.tokens=C.tokens.slice(0,S),y(C,w,x),n.lines=n.lines.slice(0,M+1)):n.lines=n.lines.slice(0,M),n.isTruncated=n.isTruncated||n.lines.length<F;break e}var N=z.width,L=N==null||N==="auto";if(typeof N=="string"&&N.charAt(N.length-1)==="%")A.percentWidth=N,u.push(A),A.contentWidth=oh(A.text,R);else{if(L){var W=z.backgroundColor,j=W&&W.image;j&&(j=qir(j),gJ(j)&&(A.width=Math.max(A.width,j.width*P/j.height)))}var V=g&&r!=null?r-w:null;V!=null&&V<A.width?!L||V<T?(A.text="",A.width=A.contentWidth=0):(dmt(b,A.text,V-T,R,t.ellipsis,{minChar:t.truncateMinChar}),A.text=b.text,n.isTruncated=n.isTruncated||b.isTruncated,A.width=A.contentWidth=oh(A.text,R)):A.contentWidth=oh(A.text,R)}A.width+=T,w+=A.width,z&&(x=Math.max(x,A.lineHeight))}y(C,w,x)}n.outerWidth=n.width=Xr(r,p),n.outerHeight=n.height=Xr(i,d),n.contentHeight=d,n.contentWidth=p,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var M=0;M<u.length;M++){var A=u[M],G=A.percentWidth;A.width=parseInt(G,10)/100*n.width}return n}function vae(e,t,n,r,i){var o=t==="",a=i&&n.rich[i]||{},s=e.lines,l=a.font||n.font,c=!1,u,d;if(r){var p=a.padding,h=p?p[1]+p[3]:0;if(a.width!=null&&a.width!=="auto"){var g=Am(a.width,r.width)+h;s.length>0&&g+r.accumWidth>r.width&&(u=t.split(`
`),c=!0),r.accumWidth=g}else{var m=fmt(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+h,d=m.linesWidths,u=m.lines}}else u=t.split(`
`);for(var b=0;b<u.length;b++){var y=u[b],M=new Vir;if(M.styleName=i,M.text=y,M.isLineHolder=!y&&!o,typeof a.width=="number"?M.width=a.width:M.width=d?d[b]:oh(y,l),!b&&!c){var C=(s[s.length-1]||(s[0]=new NFe)).tokens,x=C.length;x===1&&C[0].isLineHolder?C[0]=M:(y||!x||o)&&C.push(M)}else s.push(new NFe([M]))}}function Uir(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Xir=Wf(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Yir(e){return Uir(e)?!!Xir[e]:!0}function fmt(e,t,n,r,i){for(var o=[],a=[],s="",l="",c=0,u=0,d=0;d<e.length;d++){var p=e.charAt(d);if(p===`
`){l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0;continue}var h=oh(p,t),g=r?!1:!Yir(p);if(o.length?u+h>n:i+u+h>n){u?(s||l)&&(g?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=p,c+=h,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=p,u=h)):g?(o.push(l),a.push(c),l=p,c=h):(o.push(p),a.push(h));continue}u+=h,g?(l+=p,c+=h):(l&&(s+=l,l="",c=0),s+=p)}return!o.length&&!s&&(s=e,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),o.length===1&&(u+=i),{accumWidth:u,lines:o,linesWidths:a}}var Nme="__zr_style_"+Math.round(Math.random()*10),ez={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},mJ={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ez[Nme]=!0;var FFe=["z","z2","invisible"],Kir=["invisible"],qf=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Hi(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Qir(this,n,r)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new ui(0,0,0,0)),r?ui.applyTransform(n,i,r):n.copy(i),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new ui(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Nt(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=cN,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&cN)},t.prototype.styleUpdated=function(){this.__dirty&=~cN},t.prototype.createStyle=function(n){return NB(ez,n)},t.prototype.useStyle=function(n){n[Nme]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[Nme]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,FFe)},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),c;if(r&&r.style?a?o?c=r.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(c,r.style)):l&&(c=i.style),c)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var d=Hi(u),p=0;p<d.length;p++){var h=d[p];h in c&&(c[h]=c[h],this.style[h]=u[h])}for(var g=Hi(c),p=0;p<g.length;p++){var h=g[p];this.style[h]=this.style[h]}this._transitionState(n,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?Kir:FFe,p=0;p<m.length;p++){var h=m[p];r&&r[h]!=null?this[h]=r[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(n,r){return Nt(n,r),n},t.prototype.getAnimationStyleProps=function(){return mJ},t.initDefaultProps=(function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Up|cN})(),t})(pJ),bae=new ui(0,0,0,0),yae=new ui(0,0,0,0);function Qir(e,t,n){return bae.copy(e.getBoundingRect()),e.transform&&bae.applyTransform(e.transform),yae.width=t,yae.height=n,!bae.intersect(yae)}var Q1=Math.min,Z1=Math.max,Mae=Math.sin,Cae=Math.cos,rA=Math.PI*2,oV=_w(),aV=_w(),sV=_w();function vJ(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],i=Q1(i,r[0]),o=Z1(o,r[0]),a=Q1(a,r[1]),s=Z1(s,r[1]);t[0]=i,t[1]=a,n[0]=o,n[1]=s}}function WFe(e,t,n,r,i,o){i[0]=Q1(e,n),i[1]=Q1(t,r),o[0]=Z1(e,n),o[1]=Z1(t,r)}var qFe=[],BFe=[];function Zir(e,t,n,r,i,o,a,s,l,c){var u=Igt,d=yu,p=u(e,n,i,a,qFe);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var h=0;h<p;h++){var g=d(e,n,i,a,qFe[h]);l[0]=Q1(g,l[0]),c[0]=Z1(g,c[0])}p=u(t,r,o,s,BFe);for(var h=0;h<p;h++){var m=d(t,r,o,s,BFe[h]);l[1]=Q1(m,l[1]),c[1]=Z1(m,c[1])}l[0]=Q1(e,l[0]),c[0]=Z1(e,c[0]),l[0]=Q1(a,l[0]),c[0]=Z1(a,c[0]),l[1]=Q1(t,l[1]),c[1]=Z1(t,c[1]),l[1]=Q1(s,l[1]),c[1]=Z1(s,c[1])}function Jir(e,t,n,r,i,o,a,s){var l=Dgt,c=Vu,u=Z1(Q1(l(e,n,i),1),0),d=Z1(Q1(l(t,r,o),1),0),p=c(e,n,i,u),h=c(t,r,o,d);a[0]=Q1(e,i,p),a[1]=Q1(t,o,h),s[0]=Z1(e,i,p),s[1]=Z1(t,o,h)}function eor(e,t,n,r,i,o,a,s,l){var c=xy,u=wy,d=Math.abs(i-o);if(d%rA<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(oV[0]=Cae(i)*n+e,oV[1]=Mae(i)*r+t,aV[0]=Cae(o)*n+e,aV[1]=Mae(o)*r+t,c(s,oV,aV),u(l,oV,aV),i=i%rA,i<0&&(i=i+rA),o=o%rA,o<0&&(o=o+rA),i>o&&!a?o+=rA:i<o&&a&&(i+=rA),a){var p=o;o=i,i=p}for(var h=0;h<o;h+=Math.PI/2)h>i&&(sV[0]=Cae(h)*n+e,sV[1]=Mae(h)*r+t,c(s,sV,s),u(l,sV,l))}var Xa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},iA=[],oA=[],mv=[],lC=[],vv=[],bv=[],xae=Math.min,wae=Math.max,aA=Math.cos,sA=Math.sin,V2=Math.abs,Fme=Math.PI,zC=Fme*2,Sae=typeof Float32Array<"u",p_=[];function Aae(e){var t=Math.round(e/Fme*1e8)/1e8;return t%2*Fme}function ySe(e,t){var n=Aae(e[0]);n<0&&(n+=zC);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=zC?i=n+zC:t&&n-i>=zC?i=n-zC:!t&&n>i?i=n+(zC-Aae(n-i)):t&&n<i&&(i=n-(zC-Aae(i-n))),e[0]=n,e[1]=i}var Fb=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=V2(r/mU/t)||0,this._uy=V2(r/mU/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(Xa.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=V2(t-this._xi),i=V2(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(Xa.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){return this._drawPendingPt(),this.addData(Xa.C,t,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(Xa.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,o,a){this._drawPendingPt(),p_[0]=i,p_[1]=o,ySe(p_,a),i=p_[0],o=p_[1];var s=o-i;return this.addData(Xa.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=aA(o)*r+t,this._yi=sA(o)*r+n,this},e.prototype.arcTo=function(t,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,o),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(Xa.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xa.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&Sae&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var n=t.length,r=0,i=this._len,o=0;o<n;o++)r+=t[o].len();Sae&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;o<n;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},e.prototype.addData=function(t,n,r,i,o,a,s,l,c){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var d=0;d<arguments.length;d++)u[this._len++]=arguments[d]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Sae&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mv[0]=mv[1]=vv[0]=vv[1]=Number.MAX_VALUE,lC[0]=lC[1]=bv[0]=bv[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],r=t[a+1],i=n,o=r),s){case Xa.M:n=i=t[a++],r=o=t[a++],vv[0]=i,vv[1]=o,bv[0]=i,bv[1]=o;break;case Xa.L:WFe(n,r,t[a],t[a+1],vv,bv),n=t[a++],r=t[a++];break;case Xa.C:Zir(n,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],vv,bv),n=t[a++],r=t[a++];break;case Xa.Q:Jir(n,r,t[a++],t[a++],t[a],t[a+1],vv,bv),n=t[a++],r=t[a++];break;case Xa.A:var c=t[a++],u=t[a++],d=t[a++],p=t[a++],h=t[a++],g=t[a++]+h;a+=1;var m=!t[a++];l&&(i=aA(h)*d+c,o=sA(h)*p+u),eor(c,u,d,p,h,g,m,vv,bv),n=aA(g)*d+c,r=sA(g)*p+u;break;case Xa.R:i=n=t[a++],o=r=t[a++];var b=t[a++],y=t[a++];WFe(i,o,i+b,o+y,vv,bv);break;case Xa.Z:n=i,r=o;break}xy(mv,mv,vv),wy(lC,lC,bv)}return a===0&&(mv[0]=mv[1]=lC[0]=lC[1]=0),new ui(mv[0],mv[1],lC[0]-mv[0],lC[1]-mv[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,d=0,p=0;p<n;){var h=t[p++],g=p===1;g&&(o=t[p],a=t[p+1],s=o,l=a);var m=-1;switch(h){case Xa.M:o=s=t[p++],a=l=t[p++];break;case Xa.L:{var b=t[p++],y=t[p++],M=b-o,C=y-a;(V2(M)>r||V2(C)>i||p===n-1)&&(m=Math.sqrt(M*M+C*C),o=b,a=y);break}case Xa.C:{var x=t[p++],w=t[p++],b=t[p++],y=t[p++],S=t[p++],A=t[p++];m=mrr(o,a,x,w,b,y,S,A,10),o=S,a=A;break}case Xa.Q:{var x=t[p++],w=t[p++],b=t[p++],y=t[p++];m=brr(o,a,x,w,b,y,10),o=b,a=y;break}case Xa.A:var z=t[p++],O=t[p++],T=t[p++],R=t[p++],P=t[p++],F=t[p++],N=F+P;p+=1,g&&(s=aA(P)*T+z,l=sA(P)*R+O),m=wae(T,R)*xae(zC,Math.abs(F)),o=aA(N)*T+z,a=sA(N)*R+O;break;case Xa.R:{s=o=t[p++],l=a=t[p++];var L=t[p++],W=t[p++];m=L*2+W*2;break}case Xa.Z:{var M=s-o,C=l-a;m=Math.sqrt(M*M+C*C),o=s,a=l;break}}m>=0&&(c[d++]=m,u+=m)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,c,u,d,p,h=n<1,g,m,b=0,y=0,M,C=0,x,w;if(!(h&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,m=this._pathLen,M=n*m,!M)))e:for(var S=0;S<a;){var A=r[S++],z=S===1;switch(z&&(c=r[S],u=r[S+1],s=c,l=u),A!==Xa.L&&C>0&&(t.lineTo(x,w),C=0),A){case Xa.M:s=c=r[S++],l=u=r[S++],t.moveTo(c,u);break;case Xa.L:{d=r[S++],p=r[S++];var O=V2(d-c),T=V2(p-u);if(O>i||T>o){if(h){var R=g[y++];if(b+R>M){var P=(M-b)/R;t.lineTo(c*(1-P)+d*P,u*(1-P)+p*P);break e}b+=R}t.lineTo(d,p),c=d,u=p,C=0}else{var F=O*O+T*T;F>C&&(x=d,w=p,C=F)}break}case Xa.C:{var N=r[S++],L=r[S++],W=r[S++],j=r[S++],V=r[S++],G=r[S++];if(h){var R=g[y++];if(b+R>M){var P=(M-b)/R;ow(c,N,W,V,P,iA),ow(u,L,j,G,P,oA),t.bezierCurveTo(iA[1],oA[1],iA[2],oA[2],iA[3],oA[3]);break e}b+=R}t.bezierCurveTo(N,L,W,j,V,G),c=V,u=G;break}case Xa.Q:{var N=r[S++],L=r[S++],W=r[S++],j=r[S++];if(h){var R=g[y++];if(b+R>M){var P=(M-b)/R;uq(c,N,W,P,iA),uq(u,L,j,P,oA),t.quadraticCurveTo(iA[1],oA[1],iA[2],oA[2]);break e}b+=R}t.quadraticCurveTo(N,L,W,j),c=W,u=j;break}case Xa.A:var q=r[S++],$=r[S++],U=r[S++],X=r[S++],Q=r[S++],re=r[S++],ee=r[S++],se=!r[S++],pe=U>X?U:X,te=V2(U-X)>.001,ce=Q+re,oe=!1;if(h){var R=g[y++];b+R>M&&(ce=Q+re*(M-b)/R,oe=!0),b+=R}if(te&&t.ellipse?t.ellipse(q,$,U,X,ee,Q,ce,se):t.arc(q,$,pe,Q,ce,se),oe)break e;z&&(s=aA(Q)*U+q,l=sA(Q)*X+$),c=aA(ce)*U+q,u=sA(ce)*X+$;break;case Xa.R:s=c=r[S],l=u=r[S+1],d=r[S++],p=r[S++];var ae=r[S++],ne=r[S++];if(h){var R=g[y++];if(b+R>M){var le=M-b;t.moveTo(d,p),t.lineTo(d+xae(le,ae),p),le-=ae,le>0&&t.lineTo(d+ae,p+xae(le,ne)),le-=ne,le>0&&t.lineTo(d+wae(ae-le,0),p+ne),le-=ae,le>0&&t.lineTo(d,p+wae(ne-le,0));break e}b+=R}t.rect(d,p,ae,ne);break;case Xa.Z:if(h){var R=g[y++];if(b+R>M){var P=(M-b)/R;t.lineTo(c*(1-P)+s*P,u*(1-P)+l*P);break e}b+=R}t.closePath(),c=s,u=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Xa,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function FC(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,c=e;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-r)/(e-n),c=(e*r-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var u=l*o-a+c,d=u*u/(l*l+1);return d<=s/2*s/2}function tor(e,t,n,r,i,o,a,s,l,c,u){if(l===0)return!1;var d=l;if(u>t+d&&u>r+d&&u>o+d&&u>s+d||u<t-d&&u<r-d&&u<o-d&&u<s-d||c>e+d&&c>n+d&&c>i+d&&c>a+d||c<e-d&&c<n-d&&c<i-d&&c<a-d)return!1;var p=Pgt(e,t,n,r,i,o,a,s,c,u,null);return p<=d/2}function gmt(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var c=a;if(l>t+c&&l>r+c&&l>o+c||l<t-c&&l<r-c&&l<o-c||s>e+c&&s>n+c&&s>i+c||s<e-c&&s<n-c&&s<i-c)return!1;var u=kgt(e,t,n,r,i,o,s,l,null);return u<=c/2}var jFe=Math.PI*2;function eh(e){return e%=jFe,e<0&&(e+=jFe),e}var h_=Math.PI*2;function nor(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var c=a;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(r-i)%h_<1e-4)return!0;if(o){var d=r;r=eh(i),i=eh(d)}else r=eh(r),i=eh(i);r>i&&(i+=h_);var p=Math.atan2(l,s);return p<0&&(p+=h_),p>=r&&p<=i||p+h_>=r&&p+h_<=i}function iy(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r||r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;(a===1||a===0)&&(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var cC=Fb.CMD,lA=Math.PI*2,ror=1e-4;function ior(e,t){return Math.abs(e-t)<ror}var Y0=[-1,-1,-1],Zh=[-1,-1];function oor(){var e=Zh[0];Zh[0]=Zh[1],Zh[1]=e}function aor(e,t,n,r,i,o,a,s,l,c){if(c>t&&c>r&&c>o&&c>s||c<t&&c<r&&c<o&&c<s)return 0;var u=pU(t,r,o,s,c,Y0);if(u===0)return 0;for(var d=0,p=-1,h=void 0,g=void 0,m=0;m<u;m++){var b=Y0[m],y=b===0||b===1?.5:1,M=yu(e,n,i,a,b);M<l||(p<0&&(p=Igt(t,r,o,s,Zh),Zh[1]<Zh[0]&&p>1&&oor(),h=yu(t,r,o,s,Zh[0]),p>1&&(g=yu(t,r,o,s,Zh[1]))),p===2?b<Zh[0]?d+=h<t?y:-y:b<Zh[1]?d+=g<h?y:-y:d+=s<g?y:-y:b<Zh[0]?d+=h<t?y:-y:d+=s<h?y:-y)}return d}function sor(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=vrr(t,r,o,s,Y0);if(l===0)return 0;var c=Dgt(t,r,o);if(c>=0&&c<=1){for(var u=0,d=Vu(t,r,o,c),p=0;p<l;p++){var h=Y0[p]===0||Y0[p]===1?.5:1,g=Vu(e,n,i,Y0[p]);g<a||(Y0[p]<c?u+=d<t?h:-h:u+=o<d?h:-h)}return u}else{var h=Y0[0]===0||Y0[0]===1?.5:1,g=Vu(e,n,i,Y0[0]);return g<a?0:o<t?h:-h}}function lor(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Y0[0]=-l,Y0[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=lA-1e-4){r=0,i=lA;var u=o?1:-1;return a>=Y0[0]+e&&a<=Y0[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=lA,i+=lA);for(var p=0,h=0;h<2;h++){var g=Y0[h];if(g+e>a){var m=Math.atan2(s,g),u=o?1:-1;m<0&&(m=lA+m),(m>=r&&m<=i||m+lA>=r&&m+lA<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(u=-u),p+=u)}}return p}function mmt(e,t,n,r,i){for(var o=e.data,a=e.len(),s=0,l=0,c=0,u=0,d=0,p,h,g=0;g<a;){var m=o[g++],b=g===1;switch(m===cC.M&&g>1&&(n||(s+=iy(l,c,u,d,r,i))),b&&(l=o[g],c=o[g+1],u=l,d=c),m){case cC.M:u=o[g++],d=o[g++],l=u,c=d;break;case cC.L:if(n){if(FC(l,c,o[g],o[g+1],t,r,i))return!0}else s+=iy(l,c,o[g],o[g+1],r,i)||0;l=o[g++],c=o[g++];break;case cC.C:if(n){if(tor(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=aor(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],c=o[g++];break;case cC.Q:if(n){if(gmt(l,c,o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=sor(l,c,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],c=o[g++];break;case cC.A:var y=o[g++],M=o[g++],C=o[g++],x=o[g++],w=o[g++],S=o[g++];g+=1;var A=!!(1-o[g++]);p=Math.cos(w)*C+y,h=Math.sin(w)*x+M,b?(u=p,d=h):s+=iy(l,c,p,h,r,i);var z=(r-y)*x/C+y;if(n){if(nor(y,M,x,w,w+S,A,t,z,i))return!0}else s+=lor(y,M,x,w,w+S,A,z,i);l=Math.cos(w+S)*C+y,c=Math.sin(w+S)*x+M;break;case cC.R:u=l=o[g++],d=c=o[g++];var O=o[g++],T=o[g++];if(p=u+O,h=d+T,n){if(FC(u,d,p,d,t,r,i)||FC(p,d,p,h,t,r,i)||FC(p,h,u,h,t,r,i)||FC(u,h,u,d,t,r,i))return!0}else s+=iy(p,d,p,h,r,i),s+=iy(u,h,u,d,r,i);break;case cC.Z:if(n){if(FC(l,c,u,d,t,r,i))return!0}else s+=iy(l,c,u,d,r,i);l=u,c=d;break}}return!n&&!ior(c,d)&&(s+=iy(l,c,u,d,r,i)||0),s!==0}function cor(e,t,n){return mmt(e,0,!1,t,n)}function uor(e,t,n,r){return mmt(e,t,!0,n,r)}var bU=br({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ez),dor={style:br({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},mJ.style)},Oae=_b.concat(["invisible","culling","z","z2","zlevel","parent"]),Di=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<Oae.length;++s)i[Oae[s]]=this[Oae[s]];i.__dirty|=Up}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=Hi(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<r.length;o++){var a=r[o],s=n[a];a==="style"?this.style?Nt(this.style,s):this.useStyle(s):a==="shape"?Nt(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(An(n)){var r=hq(n,0);return r>.5?Eme:r>.2?Yrr:Rme}else if(n)return Rme}return Eme},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(An(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=hq(n,0)<Tme;if(o===a)return r}},t.prototype.buildPath=function(n,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=~wR},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new Fb(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&wR)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;c=Math.max(c,u??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,c=a.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),uor(s,l/c,n,r)))return!0}if(this.hasFill())return cor(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wR,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:Nt(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wR)},t.prototype.createStyle=function(n){return NB(bU,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Nt({},this.shape))},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),c;if(r&&r.shape?a?o?c=r.shape:(c=Nt({},i.shape),Nt(c,r.shape)):(c=Nt({},o?this.shape:i.shape),Nt(c,r.shape)):l&&(c=i.shape),c)if(a){this.shape=Nt({},this.shape);for(var u={},d=Hi(c),p=0;p<d.length;p++){var h=d[p];typeof c[h]=="object"?this.shape[h]=c[h]:u[h]=c[h]}this._transitionState(n,{shape:u},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return dor},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=(function(o){gt(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return Or(n.style)},a.prototype.getDefaultShape=function(){return Or(n.shape)},a})(t);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},t.initDefaultProps=(function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Up|cN|wR})(),t})(qf),por=br({strokeFirst:!0,font:iw,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},bU),LP=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return NB(por,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=qB(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(qf);LP.prototype.type="tspan";var hor=br({x:0,y:0},ez),gor={style:br({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},mJ.style)};function mor(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Du=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return NB(hor,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=mor(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return gor},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new ui(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(qf);Du.prototype.type="image";function vor(e,t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.r,s,l,c,u;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=c=u=a:a instanceof Array?a.length===1?s=l=c=u=a[0]:a.length===2?(s=c=a[0],l=u=a[1]):a.length===3?(s=a[0],l=u=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],u=a[3]):s=l=c=u=0;var d;s+l>i&&(d=s+l,s*=i/d,l*=i/d),c+u>i&&(d=c+u,c*=i/d,u*=i/d),l+c>o&&(d=l+c,l*=o/d,c*=o/d),s+u>o&&(d=s+u,s*=o/d,u*=o/d),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+o-c),c!==0&&e.arc(n+i-c,r+o-c,c,0,Math.PI/2),e.lineTo(n+u,r+o),u!==0&&e.arc(n+u,r+o-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var VR=Math.round;function vmt(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(VR(r*2)===VR(i*2)&&(e.x1=e.x2=mO(r,s,!0)),VR(o*2)===VR(a*2)&&(e.y1=e.y2=mO(o,s,!0))),e}}function bmt(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=mO(r,s,!0),e.y=mO(i,s,!0),e.width=Math.max(mO(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(mO(i+a,s,!1)-e.y,a===0?0:1)),e}}function mO(e,t,n){if(!t)return e;var r=VR(e*2);return(r+VR(t))%2===0?r/2:(r+(n?1:-1))/2}var bor=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),yor={},ao=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new bor},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=bmt(yor,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?vor(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Di);ao.prototype.type="rect";var HFe={fill:"#000"},VFe=2,Mor={style:br({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},mJ.style)},oo=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=HFe,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,wor(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new ui(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),c=s.getLocalTransform(i);c?(n.copy(l),n.applyTransform(c),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||HFe},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return Nt(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,r){for(var i=Hi(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},Nt(n[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return Mor},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||iw,i=n.padding,o=QFe(n),a=Hir(o,n),s=zae(n),l=!!n.backgroundColor,c=a.outerHeight,u=a.outerWidth,d=a.contentWidth,p=a.lines,h=a.lineHeight,g=this._defaultStyle;this.isTruncated=!!a.isTruncated;var m=n.x||0,b=n.y||0,y=n.align||g.align||"left",M=n.verticalAlign||g.verticalAlign||"top",C=m,x=SR(b,a.contentHeight,M);if(s||i){var w=dN(m,u,y),S=SR(b,c,M);s&&this._renderBackground(n,n,w,S,u,c)}x+=h/2,i&&(C=KFe(m,y,i),M==="top"?x+=i[0]:M==="bottom"&&(x-=i[2]));for(var A=0,z=!1,O=YFe("fill"in n?n.fill:(z=!0,g.fill)),T=XFe("stroke"in n?n.stroke:!l&&(!g.autoStroke||z)?(A=VFe,g.stroke):null),R=n.textShadowBlur>0,P=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),F=a.calculatedLineHeight,N=0;N<p.length;N++){var L=this._getOrCreateChild(LP),W=L.createStyle();L.useStyle(W),W.text=p[N],W.x=C,W.y=x,W.textAlign=y,W.textBaseline="middle",W.opacity=n.opacity,W.strokeFirst=!0,R&&(W.shadowBlur=n.textShadowBlur||0,W.shadowColor=n.textShadowColor||"transparent",W.shadowOffsetX=n.textShadowOffsetX||0,W.shadowOffsetY=n.textShadowOffsetY||0),W.stroke=T,W.fill=O,T&&(W.lineWidth=n.lineWidth||A,W.lineDash=n.lineDash,W.lineDashOffset=n.lineDashOffset||0),W.font=r,$Fe(W,n),x+=h,P&&L.setBoundingRect(new ui(dN(W.x,d,W.textAlign),SR(W.y,F,W.textBaseline),d,F))}},t.prototype._updateRichTexts=function(){var n=this.style,r=QFe(n),i=$ir(r,n),o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.padding,c=n.x||0,u=n.y||0,d=this._defaultStyle,p=n.align||d.align,h=n.verticalAlign||d.verticalAlign;this.isTruncated=!!i.isTruncated;var g=dN(c,a,p),m=SR(u,s,h),b=g,y=m;l&&(b+=l[3],y+=l[0]);var M=b+o;zae(n)&&this._renderBackground(n,n,g,m,a,s);for(var C=!!n.backgroundColor,x=0;x<i.lines.length;x++){for(var w=i.lines[x],S=w.tokens,A=S.length,z=w.lineHeight,O=w.width,T=0,R=b,P=M,F=A-1,N=void 0;T<A&&(N=S[T],!N.align||N.align==="left");)this._placeToken(N,n,z,y,R,"left",C),O-=N.width,R+=N.width,T++;for(;F>=0&&(N=S[F],N.align==="right");)this._placeToken(N,n,z,y,P,"right",C),O-=N.width,P-=N.width,F--;for(R+=(o-(R-b)-(M-P)-O)/2;T<=F;)N=S[T],this._placeToken(N,n,z,y,R+N.width/2,"center",C),R+=N.width,T++;y+=z}},t.prototype._placeToken=function(n,r,i,o,a,s,l){var c=r.rich[n.styleName]||{};c.text=n.text;var u=n.verticalAlign,d=o+i/2;u==="top"?d=o+n.height/2:u==="bottom"&&(d=o+i-n.height/2);var p=!n.isLineHolder&&zae(c);p&&this._renderBackground(c,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,d-n.height/2,n.width,n.height);var h=!!c.backgroundColor,g=n.textPadding;g&&(a=KFe(a,s,g),d-=n.height/2-g[0]-n.innerHeight/2);var m=this._getOrCreateChild(LP),b=m.createStyle();m.useStyle(b);var y=this._defaultStyle,M=!1,C=0,x=YFe("fill"in c?c.fill:"fill"in r?r.fill:(M=!0,y.fill)),w=XFe("stroke"in c?c.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||M)?(C=VFe,y.stroke):null),S=c.textShadowBlur>0||r.textShadowBlur>0;b.text=n.text,b.x=a,b.y=d,S&&(b.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,b.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",b.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,b.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),b.textAlign=s,b.textBaseline="middle",b.font=n.font||iw,b.opacity=hm(c.opacity,r.opacity,1),$Fe(b,c),w&&(b.lineWidth=hm(c.lineWidth,r.lineWidth,C),b.lineDash=Xr(c.lineDash,r.lineDash),b.lineDashOffset=r.lineDashOffset||0,b.stroke=w),x&&(b.fill=x);var A=n.contentWidth,z=n.contentHeight;m.setBoundingRect(new ui(dN(b.x,A,b.textAlign),SR(b.y,z,b.textBaseline),A,z))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,c=n.borderWidth,u=n.borderColor,d=l&&l.image,p=l&&!d,h=n.borderRadius,g=this,m,b;if(p||n.lineHeight||c&&u){m=this._getOrCreateChild(ao),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=h,m.dirtyShape()}if(p){var M=m.style;M.fill=l||null,M.fillOpacity=Xr(n.fillOpacity,1)}else if(d){b=this._getOrCreateChild(Du),b.onload=function(){g.dirtyStyle()};var C=b.style;C.image=l.image,C.x=i,C.y=o,C.width=a,C.height=s}if(c&&u){var M=m.style;M.lineWidth=c,M.stroke=u,M.strokeOpacity=Xr(n.strokeOpacity,1),M.lineDash=n.borderDash,M.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(M.strokeFirst=!0,M.lineWidth*=2)}var x=(m||b).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=hm(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Mmt(n)&&(r=[n.fontStyle,n.fontWeight,ymt(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Cf(r)||n.textFont||n.font},t})(qf),Cor={left:!0,right:1,center:1},xor={top:1,bottom:1,middle:1},GFe=["fontStyle","fontWeight","fontSize","fontFamily"];function ymt(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Jwe+"px":e+"px"}function $Fe(e,t){for(var n=0;n<GFe.length;n++){var r=GFe[n],i=t[r];i!=null&&(e[r]=i)}}function Mmt(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function wor(e){return UFe(e),ye(e.rich,UFe),e}function UFe(e){if(e){e.font=oo.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Cor[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||xor[n]?n:"top";var r=e.padding;r&&(e.padding=sJ(e.padding))}}function XFe(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function YFe(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function KFe(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function QFe(e){var t=e.text;return t!=null&&(t+=""),t}function zae(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var _r=mo(),Wme=function(e,t,n,r){if(r){var i=_r(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=_r(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},ZFe=1,JFe={},Cmt=mo(),MSe=mo(),CSe=0,jB=1,bJ=2,f1=["emphasis","blur","select"],mq=["normal","emphasis","blur","select"],tk=10,Sor=9,tz="highlight",V7="downplay",RF="select",G7="unselect",IF="toggleSelect";function BE(e){return e!=null&&e!=="none"}function yJ(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function xmt(e){yJ(e,"emphasis",bJ)}function wmt(e){e.hoverState===bJ&&yJ(e,"normal",CSe)}function xSe(e){yJ(e,"blur",jB)}function Smt(e){e.hoverState===jB&&yJ(e,"normal",CSe)}function Aor(e){e.selected=!0}function Oor(e){e.selected=!1}function eWe(e,t,n){t(e,n)}function SM(e,t,n){eWe(e,t,n),e.isGroup&&e.traverse(function(r){eWe(r,t,n)})}function yU(e,t){switch(t){case"emphasis":e.hoverState=bJ;break;case"normal":e.hoverState=CSe;break;case"blur":e.hoverState=jB;break;case"select":e.selected=!0}}function zor(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(o,t)}return o}function Tor(e,t,n,r){var i=n&&hi(n,"select")>=0,o=!1;if(e instanceof Di){var a=Cmt(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(BE(s)||BE(l)){r=r||{};var c=r.style||{};c.fill==="inherit"?(o=!0,r=Nt({},r),c=Nt({},c),c.fill=s):!BE(c.fill)&&BE(s)?(o=!0,r=Nt({},r),c=Nt({},c),c.fill=fU(s)):!BE(c.stroke)&&BE(l)&&(o||(r=Nt({},r),c=Nt({},c)),c.stroke=fU(l)),r.style=c}}if(r&&r.z2==null){o||(r=Nt({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??tk)}return r}function Eor(e,t,n){if(n&&n.z2==null){n=Nt({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Sor)}return n}function Ror(e,t,n){var r=hi(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:zor(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Nt({},n),a=Nt({opacity:r?i:o.opacity*.1},a),n.style=a),n}function Tae(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Tor(this,e,t,n);if(e==="blur")return Ror(this,e,n);if(e==="select")return Eor(this,e,n)}return n}function Qz(e){e.stateProxy=Tae;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Tae),n&&(n.stateProxy=Tae)}function tWe(e,t){!Tmt(e,t)&&!e.__highByOuter&&SM(e,xmt)}function nWe(e,t){!Tmt(e,t)&&!e.__highByOuter&&SM(e,wmt)}function rM(e,t){e.__highByOuter|=1<<(t||0),SM(e,xmt)}function iM(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&SM(e,wmt)}function Amt(e){SM(e,xSe)}function wSe(e){SM(e,Smt)}function Omt(e){SM(e,Aor)}function zmt(e){SM(e,Oor)}function Tmt(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Emt(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=MSe(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(c){Smt(c)}),s&&n.push(o)),a.isBlured=!1}),ye(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function qme(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(c,u){for(var d=0;d<u.length;d++){var p=c.getItemGraphicEl(u[d]);p&&wSe(p)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(c){var u=a===c,d=c.coordinateSystem;d&&d.master&&(d=d.master);var p=d&&s?d===s:u;if(!(n==="series"&&!u||n==="coordinateSystem"&&!p||t==="series"&&u)){var h=r.getViewOfSeriesModel(c);if(h.group.traverse(function(b){b.__highByOuter&&u&&t==="self"||xSe(b)}),Ad(t))o(c.getData(),t);else if(xr(t))for(var g=Hi(t),m=0;m<g.length;m++)o(c.getData(g[m]),t[g[m]]);l.push(c),MSe(c).isBlured=!0}}),i.eachComponent(function(c,u){if(c!=="series"){var d=r.getViewOfComponentModel(u);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,i)}})}}function Bme(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){MSe(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){xSe(o)})}}}function Ior(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Yz(i,t);o=(Ht(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var c=_r(a);qme(r,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);u!=null&&qme(r,u,d,n)}}}function SSe(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(n),l,c=0;c<s.length;c++)if(_r(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Por(e,t,n){var r=_r(e),i=SSe(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Bme(r.componentMainType,r.componentIndex,n),ye(o,function(s){return tWe(s,t)})):(qme(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&Bme(r.componentMainType,r.componentIndex,n),tWe(e,t))}function Dor(e,t,n){Emt(n);var r=_r(e),i=SSe(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?ye(i,function(o){return nWe(o,t)}):nWe(e,t)}function kor(e,t,n){if(Hme(t)){var r=t.dataType,i=e.getData(r),o=Yz(i,t);Ht(o)||(o=[o]),e[t.type===IF?"toggleSelect":t.type===RF?"select":"unselect"](o,r)}}function rWe(e){var t=e.getAllData();ye(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?Omt(o):zmt(o)})})}function Lor(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();ye(r,function(i){i.data;var o=i.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function Lx(e,t,n){vO(e,!0),SM(e,Qz),jme(e,t,n)}function _or(e){vO(e,!1)}function sl(e,t,n,r){r?_or(e):Lx(e,t,n)}function jme(e,t,n){var r=_r(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var iWe=["emphasis","blur","select"],Nor={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Od(e,t,n,r){n=n||"itemStyle";for(var i=0;i<iWe.length;i++){var o=iWe[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=r?r(a):a[Nor[n]]()}}function vO(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function vq(e){return!!(e&&e.__highDownDispatcher)}function For(e,t,n){var r=_r(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function Wor(e){var t=JFe[e];return t==null&&ZFe<=32&&(t=JFe[e]=ZFe++),t}function Hme(e){var t=e.type;return t===RF||t===G7||t===IF}function oWe(e){var t=e.type;return t===tz||t===V7}function qor(e){var t=Cmt(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var jE=Fb.CMD,Bor=[[],[],[]],aWe=Math.sqrt,jor=Math.atan2;function Rmt(e,t){if(t){var n=e.data,r=e.len(),i,o,a,s,l,c,u=jE.M,d=jE.C,p=jE.L,h=jE.R,g=jE.A,m=jE.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case u:o=1;break;case p:o=1;break;case d:o=3;break;case m:o=2;break;case g:var b=t[4],y=t[5],M=aWe(t[0]*t[0]+t[1]*t[1]),C=aWe(t[2]*t[2]+t[3]*t[3]),x=jor(-t[1]/C,t[0]/M);n[a]*=M,n[a++]+=b,n[a]*=C,n[a++]+=y,n[a++]*=M,n[a++]*=C,n[a++]+=x,n[a++]+=x,a+=2,s=a;break;case h:c[0]=n[a++],c[1]=n[a++],Yu(c,c,t),n[s++]=c[0],n[s++]=c[1],c[0]+=n[a++],c[1]+=n[a++],Yu(c,c,t),n[s++]=c[0],n[s++]=c[1]}for(l=0;l<o;l++){var w=Bor[l];w[0]=n[a++],w[1]=n[a++],Yu(w,w,t),n[s++]=w[0],n[s++]=w[1]}}e.increaseVersion()}}var Eae=Math.sqrt,lV=Math.sin,cV=Math.cos,f_=Math.PI;function sWe(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Vme(e,t){return(e[0]*t[0]+e[1]*t[1])/(sWe(e)*sWe(t))}function lWe(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Vme(e,t))}function cWe(e,t,n,r,i,o,a,s,l,c,u){var d=l*(f_/180),p=cV(d)*(e-n)/2+lV(d)*(t-r)/2,h=-1*lV(d)*(e-n)/2+cV(d)*(t-r)/2,g=p*p/(a*a)+h*h/(s*s);g>1&&(a*=Eae(g),s*=Eae(g));var m=(i===o?-1:1)*Eae((a*a*(s*s)-a*a*(h*h)-s*s*(p*p))/(a*a*(h*h)+s*s*(p*p)))||0,b=m*a*h/s,y=m*-s*p/a,M=(e+n)/2+cV(d)*b-lV(d)*y,C=(t+r)/2+lV(d)*b+cV(d)*y,x=lWe([1,0],[(p-b)/a,(h-y)/s]),w=[(p-b)/a,(h-y)/s],S=[(-1*p-b)/a,(-1*h-y)/s],A=lWe(w,S);if(Vme(w,S)<=-1&&(A=f_),Vme(w,S)>=1&&(A=0),A<0){var z=Math.round(A/f_*1e6)/1e6;A=f_*2+z%2*f_}u.addData(c,M,C,a,s,x,A,d,o)}var Hor=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Vor=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Gor(e){var t=new Fb;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=Fb.CMD,l=e.match(Hor);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],d=u.charAt(0),p=void 0,h=u.match(Vor)||[],g=h.length,m=0;m<g;m++)h[m]=parseFloat(h[m]);for(var b=0;b<g;){var y=void 0,M=void 0,C=void 0,x=void 0,w=void 0,S=void 0,A=void 0,z=n,O=r,T=void 0,R=void 0;switch(d){case"l":n+=h[b++],r+=h[b++],p=s.L,t.addData(p,n,r);break;case"L":n=h[b++],r=h[b++],p=s.L,t.addData(p,n,r);break;case"m":n+=h[b++],r+=h[b++],p=s.M,t.addData(p,n,r),i=n,o=r,d="l";break;case"M":n=h[b++],r=h[b++],p=s.M,t.addData(p,n,r),i=n,o=r,d="L";break;case"h":n+=h[b++],p=s.L,t.addData(p,n,r);break;case"H":n=h[b++],p=s.L,t.addData(p,n,r);break;case"v":r+=h[b++],p=s.L,t.addData(p,n,r);break;case"V":r=h[b++],p=s.L,t.addData(p,n,r);break;case"C":p=s.C,t.addData(p,h[b++],h[b++],h[b++],h[b++],h[b++],h[b++]),n=h[b-2],r=h[b-1];break;case"c":p=s.C,t.addData(p,h[b++]+n,h[b++]+r,h[b++]+n,h[b++]+r,h[b++]+n,h[b++]+r),n+=h[b-2],r+=h[b-1];break;case"S":y=n,M=r,T=t.len(),R=t.data,a===s.C&&(y+=n-R[T-4],M+=r-R[T-3]),p=s.C,z=h[b++],O=h[b++],n=h[b++],r=h[b++],t.addData(p,y,M,z,O,n,r);break;case"s":y=n,M=r,T=t.len(),R=t.data,a===s.C&&(y+=n-R[T-4],M+=r-R[T-3]),p=s.C,z=n+h[b++],O=r+h[b++],n+=h[b++],r+=h[b++],t.addData(p,y,M,z,O,n,r);break;case"Q":z=h[b++],O=h[b++],n=h[b++],r=h[b++],p=s.Q,t.addData(p,z,O,n,r);break;case"q":z=h[b++]+n,O=h[b++]+r,n+=h[b++],r+=h[b++],p=s.Q,t.addData(p,z,O,n,r);break;case"T":y=n,M=r,T=t.len(),R=t.data,a===s.Q&&(y+=n-R[T-4],M+=r-R[T-3]),n=h[b++],r=h[b++],p=s.Q,t.addData(p,y,M,n,r);break;case"t":y=n,M=r,T=t.len(),R=t.data,a===s.Q&&(y+=n-R[T-4],M+=r-R[T-3]),n+=h[b++],r+=h[b++],p=s.Q,t.addData(p,y,M,n,r);break;case"A":C=h[b++],x=h[b++],w=h[b++],S=h[b++],A=h[b++],z=n,O=r,n=h[b++],r=h[b++],p=s.A,cWe(z,O,n,r,S,A,C,x,w,p,t);break;case"a":C=h[b++],x=h[b++],w=h[b++],S=h[b++],A=h[b++],z=n,O=r,n+=h[b++],r+=h[b++],p=s.A,cWe(z,O,n,r,S,A,C,x,w,p,t);break}}(d==="z"||d==="Z")&&(p=s.Z,t.addData(p),n=i,r=o),a=p}return t.toStatic(),t}var Imt=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t})(Di);function Pmt(e){return e.setData!=null}function Dmt(e,t){var n=Gor(e),r=Nt({},t);return r.buildPath=function(i){if(Pmt(i)){i.setData(n.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;n.rebuildPath(o,1)}},r.applyTransform=function(i){Rmt(n,i),this.dirtyShape()},r}function kmt(e,t){return new Imt(Dmt(e,t))}function $or(e,t){var n=Dmt(e,t),r=(function(i){gt(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o})(Imt);return r}function Uor(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Di(t);return a.createPathProxy(),a.buildPath=function(s){if(Pmt(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}function ASe(e,t){t=t||{};var n=new Di;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Rmt(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Xor=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),t2=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Xor},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t})(Di);t2.prototype.type="circle";var Yor=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),HB=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Yor},t.prototype.buildPath=function(n,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,c=s*i,u=l*i;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-u,o-c,a-l,o,a-l),n.bezierCurveTo(o+c,a-l,o+s,a-u,o+s,a),n.bezierCurveTo(o+s,a+u,o+c,a+l,o,a+l),n.bezierCurveTo(o-c,a+l,o-s,a+u,o-s,a),n.closePath()},t})(Di);HB.prototype.type="ellipse";var Lmt=Math.PI,Rae=Lmt*2,cA=Math.sin,HE=Math.cos,Kor=Math.acos,$d=Math.atan2,uWe=Math.abs,PF=Math.sqrt,pN=Math.max,yv=Math.min,_g=1e-4;function Qor(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,p=d*l-u*c;if(!(p*p<_g))return p=(u*(t-o)-d*(e-i))/p,[e+p*l,t+p*c]}function uV(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/PF(s*s+l*l),u=c*l,d=-c*s,p=e+u,h=t+d,g=n+u,m=r+d,b=(p+g)/2,y=(h+m)/2,M=g-p,C=m-h,x=M*M+C*C,w=i-o,S=p*m-g*h,A=(C<0?-1:1)*PF(pN(0,w*w*x-S*S)),z=(S*C-M*A)/x,O=(-S*M-C*A)/x,T=(S*C+M*A)/x,R=(-S*M+C*A)/x,P=z-b,F=O-y,N=T-b,L=R-y;return P*P+F*F>N*N+L*L&&(z=T,O=R),{cx:z,cy:O,x0:-u,y0:-d,x1:z*(i/w-1),y1:O*(i/w-1)}}function Zor(e){var t;if(Ht(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Jor(e,t){var n,r=pN(t.r,0),i=pN(t.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var u=t.cx,d=t.cy,p=!!t.clockwise,h=uWe(c-l),g=h>Rae&&h%Rae;if(g>_g&&(h=g),!(r>_g))e.moveTo(u,d);else if(h>Rae-_g)e.moveTo(u+r*HE(l),d+r*cA(l)),e.arc(u,d,r,l,c,!p),i>_g&&(e.moveTo(u+i*HE(c),d+i*cA(c)),e.arc(u,d,i,c,l,p));else{var m=void 0,b=void 0,y=void 0,M=void 0,C=void 0,x=void 0,w=void 0,S=void 0,A=void 0,z=void 0,O=void 0,T=void 0,R=void 0,P=void 0,F=void 0,N=void 0,L=r*HE(l),W=r*cA(l),j=i*HE(c),V=i*cA(c),G=h>_g;if(G){var q=t.cornerRadius;q&&(n=Zor(q),m=n[0],b=n[1],y=n[2],M=n[3]);var $=uWe(r-i)/2;if(C=yv($,y),x=yv($,M),w=yv($,m),S=yv($,b),O=A=pN(C,x),T=z=pN(w,S),(A>_g||z>_g)&&(R=r*HE(c),P=r*cA(c),F=i*HE(l),N=i*cA(l),h<Lmt)){var U=Qor(L,W,F,N,R,P,j,V);if(U){var X=L-U[0],Q=W-U[1],re=R-U[0],ee=P-U[1],se=1/cA(Kor((X*re+Q*ee)/(PF(X*X+Q*Q)*PF(re*re+ee*ee)))/2),pe=PF(U[0]*U[0]+U[1]*U[1]);O=yv(A,(r-pe)/(se+1)),T=yv(z,(i-pe)/(se-1))}}}if(!G)e.moveTo(u+L,d+W);else if(O>_g){var te=yv(y,O),ce=yv(M,O),oe=uV(F,N,L,W,r,te,p),ae=uV(R,P,j,V,r,ce,p);e.moveTo(u+oe.cx+oe.x0,d+oe.cy+oe.y0),O<A&&te===ce?e.arc(u+oe.cx,d+oe.cy,O,$d(oe.y0,oe.x0),$d(ae.y0,ae.x0),!p):(te>0&&e.arc(u+oe.cx,d+oe.cy,te,$d(oe.y0,oe.x0),$d(oe.y1,oe.x1),!p),e.arc(u,d,r,$d(oe.cy+oe.y1,oe.cx+oe.x1),$d(ae.cy+ae.y1,ae.cx+ae.x1),!p),ce>0&&e.arc(u+ae.cx,d+ae.cy,ce,$d(ae.y1,ae.x1),$d(ae.y0,ae.x0),!p))}else e.moveTo(u+L,d+W),e.arc(u,d,r,l,c,!p);if(!(i>_g)||!G)e.lineTo(u+j,d+V);else if(T>_g){var te=yv(m,T),ce=yv(b,T),oe=uV(j,V,R,P,i,-ce,p),ae=uV(L,W,F,N,i,-te,p);e.lineTo(u+oe.cx+oe.x0,d+oe.cy+oe.y0),T<z&&te===ce?e.arc(u+oe.cx,d+oe.cy,T,$d(oe.y0,oe.x0),$d(ae.y0,ae.x0),!p):(ce>0&&e.arc(u+oe.cx,d+oe.cy,ce,$d(oe.y0,oe.x0),$d(oe.y1,oe.x1),!p),e.arc(u,d,i,$d(oe.cy+oe.y1,oe.cx+oe.x1),$d(ae.cy+ae.y1,ae.cx+ae.x1),p),te>0&&e.arc(u+ae.cx,d+ae.cy,te,$d(ae.y1,ae.x1),$d(ae.y0,ae.x0),!p))}else e.lineTo(u+j,d+V),e.arc(u,d,i,c,l,p)}e.closePath()}}}var ear=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),A0=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new ear},t.prototype.buildPath=function(n,r){Jor(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Di);A0.prototype.type="sector";var tar=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),nk=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new tar},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},t})(Di);nk.prototype.type="ring";function nar(e,t,n,r){var i=[],o=[],a=[],s=[],l,c,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var p=0,h=e.length;p<h;p++)xy(u,u,e[p]),wy(d,d,e[p]);xy(u,u,r[0]),wy(d,d,r[1])}for(var p=0,h=e.length;p<h;p++){var g=e[p];if(n)l=e[p?p-1:h-1],c=e[(p+1)%h];else if(p===0||p===h-1){i.push(yb(e[p]));continue}else l=e[p-1],c=e[p+1];dx(o,c,l),wF(o,o,t);var m=cU(g,l),b=cU(g,c),y=m+b;y!==0&&(m/=y,b/=y),wF(a,o,-m),wF(s,o,b);var M=fme([],g,a),C=fme([],g,s);r&&(wy(M,M,u),xy(M,M,d),wy(C,C,u),xy(C,C,d)),i.push(M),i.push(C)}return n&&i.push(i.shift()),i}function _mt(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=nar(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],c=o[s*2+1],u=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var rar=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),O0=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new rar},t.prototype.buildPath=function(n,r){_mt(n,r,!0)},t})(Di);O0.prototype.type="polygon";var iar=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),R0=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iar},t.prototype.buildPath=function(n,r){_mt(n,r,!1)},t})(Di);R0.prototype.type="polyline";var oar={},aar=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),Jc=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new aar},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=vmt(oar,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var c=r.percent;c!==0&&(n.moveTo(i,o),c<1&&(a=i*(1-c)+a*c,s=o*(1-c)+s*c),n.lineTo(a,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t})(Di);Jc.prototype.type="line";var k1=[],sar=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function dWe(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?bFe:yu)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?bFe:yu)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?yme:Vu)(e.x1,e.cpx1,e.x2,t),(n?yme:Vu)(e.y1,e.cpy1,e.y2,t)]}var rk=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sar},t.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,c=r.cpy1,u=r.cpx2,d=r.cpy2,p=r.percent;p!==0&&(n.moveTo(i,o),u==null||d==null?(p<1&&(uq(i,l,a,p,k1),l=k1[1],a=k1[2],uq(o,c,s,p,k1),c=k1[1],s=k1[2]),n.quadraticCurveTo(l,c,a,s)):(p<1&&(ow(i,l,u,a,p,k1),l=k1[1],u=k1[2],a=k1[3],ow(o,c,d,s,p,k1),c=k1[1],d=k1[2],s=k1[3]),n.bezierCurveTo(l,c,u,d,a,s)))},t.prototype.pointAt=function(n){return dWe(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=dWe(this.shape,n,!0);return j3(r,r)},t})(Di);rk.prototype.type="bezier-curve";var lar=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),VB=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lar},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,c=r.clockwise,u=Math.cos(s),d=Math.sin(s);n.moveTo(u*a+i,d*a+o),n.arc(i,o,a,s,l,!c)},t})(Di);VB.prototype.type="arc";var MJ=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Di.prototype.getBoundingRect.call(this)},t})(Di),Nmt=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e})(),ik=(function(e){gt(t,e);function t(n,r,i,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t})(Nmt),OSe=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t})(Nmt),uA=[0,0],dA=[0,0],dV=new ci,pV=new ci,MU=(function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new ci;for(var r=0;r<2;r++)this._axes[r]=new ci;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),n)for(var c=0;c<4;c++)r[c].transform(n);ci.sub(i[0],r[1],r[0]),ci.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,i=!n;return dV.set(1/0,1/0),pV.set(0,0),!this._intersectCheckOneSide(this,t,dV,pV,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,dV,pV,i,-1)&&(r=!1,i)||i||ci.copy(n,r?dV:pV),r},e.prototype._intersectCheckOneSide=function(t,n,r,i,o,a){for(var s=!0,l=0;l<2;l++){var c=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,uA),this._getProjMinMaxOnAxis(l,n._corners,dA),uA[1]<dA[0]||uA[0]>dA[1]){if(s=!1,o)return s;var u=Math.abs(dA[0]-uA[1]),d=Math.abs(uA[0]-dA[1]);Math.min(u,d)>i.len()&&(u<d?ci.scale(i,c,-u*a):ci.scale(i,c,d*a))}else if(r){var u=Math.abs(dA[0]-uA[1]),d=Math.abs(uA[0]-dA[1]);Math.min(u,d)<r.len()&&(u<d?ci.scale(r,c,u*a):ci.scale(r,c,-d*a))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var i=this._axes[t],o=this._origin,a=n[0].dot(i)+o[t],s=a,l=a,c=1;c<n.length;c++){var u=n[c].dot(i)+o[t];s=Math.min(u,s),l=Math.max(u,l)}r[0]=s,r[1]=l},e})(),car=[],Fmt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new ui(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(car)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,r))return!0}return!1},t})(qf),Wmt=mo();function ok(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var c=void 0,u=void 0,d=void 0;r?(c=Xr(r.duration,200),u=Xr(r.easing,"cubicOut"),d=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),u=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(u=o.easing),o.delay!=null&&(d=o.delay)),fr(d)&&(d=d(n,i)),fr(c)&&(c=c(n));var p={duration:c||0,delay:d,easing:u};return p}else return null}function zSe(e,t,n,r,i,o,a){var s=!1,l;fr(i)?(a=o,o=i,i=null):xr(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var c=e==="leave";c||t.stopAnimation("leave");var u=ok(e,r,i,c?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,p=u.delay,h=u.easing,g={duration:d,delay:p||0,easing:h,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};s?t.animateFrom(n,g):t.animateTo(n,g)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Ao(e,t,n,r,i,o){zSe("update",e,t,n,r,i,o)}function ys(e,t,n,r,i,o){zSe("enter",e,t,n,r,i,o)}function kI(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function aw(e,t,n,r,i,o){kI(e)||zSe("leave",e,t,n,r,i,o)}function pWe(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),aw(e,{style:{opacity:0}},t,n,r)}function bq(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||pWe(i,t,n,r)}):pWe(e,t,n,r)}function Om(e){Wmt(e).oldStyle=e.style}function uar(e){return Wmt(e).oldStyle}var CU=Math.max,xU=Math.min,Gme={};function qmt(e){return Di.extend(e)}var dar=$or;function Bmt(e,t){return dar(e,t)}function Jf(e,t){Gme[e]=t}function CJ(e){if(Gme.hasOwnProperty(e))return Gme[e]}function GB(e,t,n,r){var i=kmt(e,t);return n&&(r==="center"&&(n=jmt(n,i.getBoundingRect())),ESe(i,n)),i}function TSe(e,t,n){var r=new Du({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle(jmt(t,o))}}});return r}function jmt(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var Xp=Uor;function ESe(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function _P(e,t){return vmt(e,e,{lineWidth:t}),e}function par(e){return bmt(e.shape,e.shape,e.style),e}var $7=mO;function _x(e,t){for(var n=FB([]);e&&e!==t;)Mb(n,e.getLocalTransform(),n),e=e.parent;return n}function mm(e,t,n){return t&&!Ad(t)&&(t=Sy.getLocalTransform(t)),n&&(t=H3([],t)),Yu([],e,t)}function xJ(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[e==="left"?-r:e==="right"?r:0,e==="top"?-i:e==="bottom"?i:0];return o=mm(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function hWe(e){return!e.isGroup}function har(e){return e.shape!=null}function $B(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){hWe(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return har(a)&&(s.shape=Nt({},a.shape)),s}var o=r(e);t.traverse(function(a){if(hWe(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Ao(a,l,n,_r(a).dataIndex)}}})}function RSe(e,t){return Vt(e,function(n){var r=n[0];r=CU(r,t.x),r=xU(r,t.x+t.width);var i=n[1];return i=CU(i,t.y),i=xU(i,t.y+t.height),[r,i]})}function Hmt(e,t){var n=CU(e.x,t.x),r=xU(e.x+e.width,t.x+t.width),i=CU(e.y,t.y),o=xU(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function ak(e,t,n){var r=Nt({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),br(i,n),new Du(r)):GB(e.replace("path://",""),r,n,"center")}function hN(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Vmt(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Vmt(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,p=Iae(u,d,l,c);if(far(p))return!1;var h=e-i,g=t-o,m=Iae(h,g,l,c)/p;if(m<0||m>1)return!1;var b=Iae(h,g,u,d)/p;return!(b<0||b>1)}function Iae(e,t,n,r){return e*r-n*t}function far(e){return e<=1e-6&&e>=-1e-6}function V3(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=An(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&ye(Hi(l),function(u){Fn(s,u)||(s[u]=l[u],s.$vars.push(u))});var c=_r(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:br({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function fWe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Fw(e,t){if(e)if(Ht(e))for(var n=0;n<e.length;n++)fWe(e[n],t);else fWe(e,t)}Jf("circle",t2);Jf("ellipse",HB);Jf("sector",A0);Jf("ring",nk);Jf("polygon",O0);Jf("polyline",R0);Jf("rect",ao);Jf("line",Jc);Jf("bezierCurve",rk);Jf("arc",VB);const G3=Object.freeze(Object.defineProperty({__proto__:null,Arc:VB,BezierCurve:rk,BoundingRect:ui,Circle:t2,CompoundPath:MJ,Ellipse:HB,Group:Ir,Image:Du,IncrementalDisplayable:Fmt,Line:Jc,LinearGradient:ik,OrientedBoundingRect:MU,Path:Di,Point:ci,Polygon:O0,Polyline:R0,RadialGradient:OSe,Rect:ao,Ring:nk,Sector:A0,Text:oo,applyTransform:mm,clipPointsByRect:RSe,clipRectByRect:Hmt,createIcon:ak,extendPath:Bmt,extendShape:qmt,getShapeClass:CJ,getTransform:_x,groupTransition:$B,initProps:ys,isElementRemoved:kI,lineLineIntersect:Vmt,linePolygonIntersect:hN,makeImage:TSe,makePath:GB,mergePath:Xp,registerShape:Jf,removeElement:aw,removeElementWithFadeOut:bq,resizePath:ESe,setTooltipConfig:V3,subPixelOptimize:$7,subPixelOptimizeLine:_P,subPixelOptimizeRect:par,transformDirection:xJ,traverseElements:Fw,updateProps:Ao},Symbol.toStringTag,{value:"Module"}));var wJ={};function Gmt(e,t){for(var n=0;n<f1.length;n++){var r=f1[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function $me(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=fr(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:s},c=0;c<f1.length;c++){var u=f1[c],d=t[u];l[u]=Xr(r?r.getFormattedLabel(i,u,null,o,d&&d.get("formatter")):null,s)}return l}function zd(e,t,n,r){n=n||wJ;for(var i=e instanceof oo,o=!1,a=0;a<mq.length;a++){var s=t[mq[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new oo,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=$me(n,t),u=t.normal,d=!!u.getShallow("show"),p=Za(u,r&&r.normal,n,!1,!i);p.text=c.normal,i||e.setTextConfig(wU(u,n,!1));for(var a=0;a<f1.length;a++){var h=f1[a],s=t[h];if(s){var g=l.ensureState(h),m=!!Xr(s.getShallow("show"),d);if(m!==d&&(g.ignore=!m),g.style=Za(s,r&&r[h],n,!0,!i),g.style.text=c[h],!i){var b=e.ensureState(h);b.textConfig=wU(s,n,!0)}}}l.silent=!!u.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!d,l.useStyle(p),l.dirty(),n.enableTextSetter&&(sk(l).setLabelText=function(y){var M=$me(n,t,y);Gmt(l,M)})}else l&&(l.ignore=!0);e.dirty()}function Ru(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<f1.length;r++){var i=f1[r];n[i]=e.getModel([i,t])}return n}function Za(e,t,n,r,i){var o={};return gar(o,e,n,r,i),t&&Nt(o,t),o}function wU(e,t,n){t=t||{};var r={},i,o=e.getShallow("rotate"),a=Xr(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function gar(e,t,n,r,i){n=n||wJ;var o=t.ecModel,a=o&&o.option.textStyle,s=mar(t),l;if(s){l={};for(var c in s)if(s.hasOwnProperty(c)){var u=t.getModel(["rich",c]);bWe(l[c]={},u,a,n,r,i,!1,!0)}}l&&(e.rich=l);var d=t.get("overflow");d&&(e.overflow=d);var p=t.get("minMargin");p!=null&&(e.margin=p),bWe(e,t,a,n,r,i,!0,!1)}function mar(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||wJ).rich;if(n){t=t||{};for(var r=Hi(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}var gWe=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],mWe=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vWe=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function bWe(e,t,n,r,i,o,a,s){n=!i&&n||wJ;var l=r&&r.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),d=Xr(t.getShallow("opacity"),n.opacity);(c==="inherit"||c==="auto")&&(l?c=l:c=null),(u==="inherit"||u==="auto")&&(l?u=l:u=null),o||(c=c||n.color,u=u||n.textBorderColor),c!=null&&(e.fill=c),u!=null&&(e.stroke=u);var p=Xr(t.getShallow("textBorderWidth"),n.textBorderWidth);p!=null&&(e.lineWidth=p);var h=Xr(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var g=Xr(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!o&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var m=0;m<gWe.length;m++){var b=gWe[m],y=Xr(t.getShallow(b),n[b]);y!=null&&(e[b]=y)}for(var m=0;m<mWe.length;m++){var b=mWe[m],y=t.getShallow(b);y!=null&&(e[b]=y)}if(e.verticalAlign==null){var M=t.getShallow("baseline");M!=null&&(e.verticalAlign=M)}if(!a||!r.disableBox){for(var m=0;m<vWe.length;m++){var b=vWe[m],y=t.getShallow(b);y!=null&&(e[b]=y)}var C=t.getShallow("borderType");C!=null&&(e.borderDash=C),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function ISe(e,t){var n=t&&t.getModel("textStyle");return Cf([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var sk=mo();function $mt(e,t,n,r){if(e){var i=sk(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function Umt(e,t,n,r,i){var o=sk(e);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=Xr(o.interpolatedValue,o.prevValue),l=o.value;function c(u){var d=lmt(n,o.precision,s,l,u);o.interpolatedValue=u===1?null:d;var p=$me({labelDataIndex:t,labelFetcher:i,defaultText:a?a(d):d+""},o.statesModels,d);Gmt(e,p)}e.percent=0,(o.prevValue==null?ys:Ao)(e,{percent:1},r,t,null,c)}var bar=["textStyle","color"],Pae=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Dae=new oo,yar=(function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(bar):null)},e.prototype.getFont=function(){return ISe({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<Pae.length;r++)n[Pae[r]]=this.getShallow(Pae[r]);return Dae.useStyle(n),Dae.update(),Dae.getBoundingRect()},e})(),Xmt=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mar=Kz(Xmt),Car=(function(){function e(){}return e.prototype.getLineStyle=function(t){return Mar(this,t)},e})(),Ymt=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],xar=Kz(Ymt),war=(function(){function e(){}return e.prototype.getItemStyle=function(t,n){return xar(this,t,n)},e})(),No=(function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){ei(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,i=r==null?r:r[t];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Or(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Ii.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e})();vSe(No);kir(No);Hl(No,Car);Hl(No,war);Hl(No,Wir);Hl(No,yar);var Sar=Math.round(Math.random()*10);function lk(e){return[e||"",Sar++].join("_")}function Aar(e){var t={};e.registerSubTypeDefaulter=function(n,r){var i=tb(n);t[i.main]=r},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=tb(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}function Oar(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var c=n(a),u=c.graph,d=c.noEntryList,p={};for(ye(o,function(M){p[M]=!0});d.length;){var h=d.pop(),g=u[h],m=!!p[h];m&&(s.call(l,h,g.originalDeps.slice()),delete p[h]),ye(g.successor,m?y:b)}ye(p,function(){var M="";throw new Error(M)});function b(M){u[M].entryCount--,u[M].entryCount===0&&d.push(M)}function y(M){p[M]=!0,b(M)}};function n(o){var a={},s=[];return ye(o,function(l){var c=r(a,l),u=c.originalDeps=t(l),d=i(u,o);c.entryCount=d.length,c.entryCount===0&&s.push(l),ye(d,function(p){hi(c.predecessor,p)<0&&c.predecessor.push(p);var h=r(a,p);hi(h.successor,p)<0&&h.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return ye(o,function(l){hi(a,l)>=0&&s.push(l)}),s}}function Ww(e,t){return ei(ei({},e,!0),t,!0)}const zar={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Tar={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var SU="ZH",PSe="EN",LI=PSe,U7={},DSe={},Kmt=Ii.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||LI).toUpperCase();return e.indexOf(SU)>-1?SU:LI})():LI;function kSe(e,t){e=e.toUpperCase(),DSe[e]=new No(t),U7[e]=t}function Ear(e){if(An(e)){var t=U7[e.toUpperCase()]||{};return e===SU||e===PSe?Or(t):ei(Or(t),Or(U7[LI]),!1)}else return ei(Or(e),Or(U7[LI]),!1)}function Ume(e){return DSe[e]}function Rar(){return DSe[LI]}kSe(PSe,zar);kSe(SU,Tar);var LSe=1e3,_Se=LSe*60,DF=_Se*60,gf=DF*24,yWe=gf*365,fN={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},hV="{yyyy}-{MM}-{dd}",MWe={year:"{yyyy}",month:"{yyyy}-{MM}",day:hV,hour:hV+" "+fN.hour,minute:hV+" "+fN.minute,second:hV+" "+fN.second,millisecond:fN.none},kae=["year","month","day","hour","minute","second","millisecond"],Qmt=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function K0(e,t){return e+="","0000".substr(0,t-e.length)+e}function _I(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Iar(e){return e===_I(e)}function Par(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function UB(e,t,n,r){var i=dh(e),o=i[NSe(n)](),a=i[NI(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[SJ(n)](),c=i["get"+(n?"UTC":"")+"Day"](),u=i[yq(n)](),d=(u-1)%12+1,p=i[AJ(n)](),h=i[OJ(n)](),g=i[zJ(n)](),m=u>=12?"pm":"am",b=m.toUpperCase(),y=r instanceof No?r:Ume(r||Kmt)||Rar(),M=y.getModel("time"),C=M.get("month"),x=M.get("monthAbbr"),w=M.get("dayOfWeek"),S=M.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,b+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,K0(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,C[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,K0(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,K0(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[c]).replace(/{ee}/g,S[c]).replace(/{e}/g,c+"").replace(/{HH}/g,K0(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,K0(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,K0(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,K0(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,K0(g,3)).replace(/{S}/g,g+"")}function Dar(e,t,n,r,i){var o=null;if(An(n))o=n;else if(fr(n))o=n(e.value,t,{level:e.level});else{var a=Nt({},fN);if(e.level>0)for(var s=0;s<kae.length;++s)a[kae[s]]="{primary|"+a[kae[s]]+"}";var l=n?n.inherit===!1?n:br(n,a):a,c=Zmt(e.value,i);if(l[c])o=l[c];else if(l.inherit){for(var u=Qmt.indexOf(c),s=u-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(Ht(o)){var d=e.level==null?0:e.level>=0?e.level:o.length+e.level;d=Math.min(d,o.length-1),o=o[d]}}return UB(new Date(e.value),o,i,r)}function Zmt(e,t){var n=dh(e),r=n[NI(t)]()+1,i=n[SJ(t)](),o=n[yq(t)](),a=n[AJ(t)](),s=n[OJ(t)](),l=n[zJ(t)](),c=l===0,u=c&&s===0,d=u&&a===0,p=d&&o===0,h=p&&i===1,g=h&&r===1;return g?"year":h?"month":p?"day":d?"hour":u?"minute":c?"second":"millisecond"}function CWe(e,t,n){var r=yo(e)?dh(e):e;switch(t=t||Zmt(e,n),t){case"year":return r[NSe(n)]();case"half-year":return r[NI(n)]()>=6?1:0;case"quarter":return Math.floor((r[NI(n)]()+1)/4);case"month":return r[NI(n)]();case"day":return r[SJ(n)]();case"half-day":return r[yq(n)]()/24;case"hour":return r[yq(n)]();case"minute":return r[AJ(n)]();case"second":return r[OJ(n)]();case"millisecond":return r[zJ(n)]()}}function NSe(e){return e?"getUTCFullYear":"getFullYear"}function NI(e){return e?"getUTCMonth":"getMonth"}function SJ(e){return e?"getUTCDate":"getDate"}function yq(e){return e?"getUTCHours":"getHours"}function AJ(e){return e?"getUTCMinutes":"getMinutes"}function OJ(e){return e?"getUTCSeconds":"getSeconds"}function zJ(e){return e?"getUTCMilliseconds":"getMilliseconds"}function kar(e){return e?"setUTCFullYear":"setFullYear"}function Jmt(e){return e?"setUTCMonth":"setMonth"}function evt(e){return e?"setUTCDate":"setDate"}function tvt(e){return e?"setUTCHours":"setHours"}function nvt(e){return e?"setUTCMinutes":"setMinutes"}function rvt(e){return e?"setUTCSeconds":"setSeconds"}function ivt(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Lar(e,t,n,r,i,o,a,s){var l=new oo({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function FSe(e){if(!fSe(e))return An(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function WSe(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var $3=sJ;function Xme(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(u){return u&&Cf(u)?u:"-"}function o(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?dh(e):e;if(isNaN(+l)){if(s)return"-"}else return UB(l,r,n)}if(t==="ordinal")return sU(e)?i(e):yo(e)&&o(e)?e+"":"-";var c=Nb(e);return o(c)?FSe(c):sU(e)?i(e):typeof e=="boolean"?e+"":"-"}var xWe=["a","b","c","d","e","f","g"],Lae=function(e,t){return"{"+e+(t??"")+"}"};function qSe(e,t,n){Ht(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=xWe[o];e=e.replace(Lae(a),Lae(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(Lae(xWe[l],s),n?l0(c):c)}return e}function _ar(e,t,n){return ye(t,function(r,i){e=e.replace("{"+i+"}",r)}),e}function ovt(e,t){var n=An(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+l0(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+l0(r)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Nar(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
yyyy`);var r=dh(t),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),c=r[i+"Minutes"](),u=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return e=e.replace("MM",K0(a,2)).replace("M",a).replace("yyyy",o).replace("yy",K0(o%100+"",2)).replace("dd",K0(s,2)).replace("d",s).replace("hh",K0(l,2)).replace("h",l).replace("mm",K0(c,2)).replace("m",c).replace("ss",K0(u,2)).replace("s",u).replace("SSS",K0(d,3)),e}function Far(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Zz(e,t){return t=t||"transparent",An(e)?e:xr(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function AU(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var X7=ye,avt=["left","right","top","bottom","width","height"],bO=[["width","left","right"],["height","top","bottom"]];function BSe(e,t,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,c){var u=l.getBoundingRect(),d=t.childAt(c+1),p=d&&d.getBoundingRect(),h,g;if(e==="horizontal"){var m=u.width+(p?-p.x+u.x:0);h=o+m,h>r||l.newline?(o=0,h=m,a+=s+n,s=u.height):s=Math.max(s,u.height)}else{var b=u.height+(p?-p.y+u.y:0);g=a+b,g>i||l.newline?(o+=s+n,a=0,g=b,s=u.width):s=Math.max(s,u.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=h+n:a=g+n)})}var nz=BSe;Zr(BSe,"vertical");Zr(BSe,"horizontal");function War(e,t,n){var r=t.width,i=t.height,o=vn(e.left,r),a=vn(e.top,i),s=vn(e.right,r),l=vn(e.bottom,i);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),n=$3(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Pc(e,t,n){n=$3(n||0);var r=t.width,i=t.height,o=vn(e.left,r),a=vn(e.top,i),s=vn(e.right,r),l=vn(e.bottom,i),c=vn(e.width,r),u=vn(e.height,i),d=n[2]+n[0],p=n[1]+n[3],h=e.aspect;switch(isNaN(c)&&(c=r-s-p-o),isNaN(u)&&(u=i-l-d-a),h!=null&&(isNaN(c)&&isNaN(u)&&(h>r/i?c=r*.8:u=i*.8),isNaN(c)&&(c=h*u),isNaN(u)&&(u=c/h)),isNaN(o)&&(o=r-s-c-p),isNaN(a)&&(a=i-l-u-d),e.left||e.right){case"center":o=r/2-c/2-n[3];break;case"right":o=r-c-p;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-u/2-n[0];break;case"bottom":a=i-u-d;break}o=o||0,a=a||0,isNaN(c)&&(c=r-p-o-(s||0)),isNaN(u)&&(u=i-d-a-(l||0));var g=new ui(o+n[3],a+n[0],c,u);return g.margin=n,g}function TJ(e,t,n,r,i,o){var a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!a&&!s)return!1;var c;if(l==="raw")c=e.type==="group"?new ui(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(c=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();c=c.clone(),c.applyTransform(u)}var d=Pc(br({width:c.width,height:c.height},t),n,r),p=a?d.x-c.x:0,h=s?d.y-c.y:0;return l==="raw"?(o.x=p,o.y=h):(o.x+=p,o.y+=h),o===e&&e.markRedraw(),!0}function qar(e,t){return e[bO[t][0]]!=null||e[bO[t][1]]!=null&&e[bO[t][2]]!=null}function Mq(e){var t=e.layoutMode||e.constructor.layoutMode;return xr(t)?t:t?{type:t}:null}function sw(e,t,n){var r=n&&n.ignoreSize;!Ht(r)&&(r=[r,r]);var i=a(bO[0],0),o=a(bO[1],1);c(bO[0],e,i),c(bO[1],e,o);function a(u,d){var p={},h=0,g={},m=0,b=2;if(X7(u,function(C){g[C]=e[C]}),X7(u,function(C){s(t,C)&&(p[C]=g[C]=t[C]),l(p,C)&&h++,l(g,C)&&m++}),r[d])return l(t,u[1])?g[u[2]]=null:l(t,u[2])&&(g[u[1]]=null),g;if(m===b||!h)return g;if(h>=b)return p;for(var y=0;y<u.length;y++){var M=u[y];if(!s(p,M)&&s(e,M)){p[M]=e[M];break}}return p}function s(u,d){return u.hasOwnProperty(d)}function l(u,d){return u[d]!=null&&u[d]!=="auto"}function c(u,d,p){X7(u,function(h){d[h]=p[h]})}}function ck(e){return svt({},e)}function svt(e,t){return t&&e&&X7(avt,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Bar=mo(),Ri=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.uid=lk("ec_cpt_model"),o}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Mq(this),o=i?ck(n):{},a=r.getTheme();ei(n,a.get(this.mainType)),ei(n,this.getDefaultOption()),i&&sw(n,o,i)},t.prototype.mergeOption=function(n,r){ei(this.option,n,!0);var i=Mq(this);i&&sw(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!Iir(n))return n.defaultOption;var r=Bar(this);if(!r.defaultOption){for(var i=[],o=n;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=ei(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return BB(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(No);umt(Ri,No);fJ(Ri);Aar(Ri);Oar(Ri,jar);function jar(e){var t=[];return ye(Ri.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Vt(t,function(n){return tb(n).main}),e!=="dataset"&&hi(t,"dataset")<=0&&t.unshift("dataset"),t}var lvt="";typeof navigator<"u"&&(lvt=navigator.platform||"");var VE="rgba(0, 0, 0, 0.2)";const Har={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:VE,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:VE,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:VE,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:VE,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:VE,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:VE,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lvt.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var cvt=Kn(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),eg="original",z0="arrayRows",tg="objectRows",n2="keyedColumns",Nx="typedArray",uvt="unknown",Cb="column",uk="row",fd={Must:1,Might:2,Not:3},dvt=mo();function Var(e){dvt(e).datasetMap=Kn()}function pvt(e,t,n){var r={},i=HSe(t);if(!i||!e)return r;var o=[],a=[],s=t.ecModel,l=dvt(s).datasetMap,c=i.uid+"_"+n.seriesLayoutBy,u,d;e=e.slice(),ye(e,function(m,b){var y=xr(m)?m:e[b]={name:m};y.type==="ordinal"&&u==null&&(u=b,d=g(y)),r[y.name]=[]});var p=l.get(c)||l.set(c,{categoryWayDim:d,valueWayDim:0});ye(e,function(m,b){var y=m.name,M=g(m);if(u==null){var C=p.valueWayDim;h(r[y],C,M),h(a,C,M),p.valueWayDim+=M}else if(u===b)h(r[y],0,M),h(o,0,M);else{var C=p.categoryWayDim;h(r[y],C,M),h(a,C,M),p.categoryWayDim+=M}});function h(m,b,y){for(var M=0;M<y;M++)m.push(b+M)}function g(m){var b=m.dimsDef;return b?b.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function jSe(e,t,n){var r={},i=HSe(e);if(!i)return r;var o=t.sourceFormat,a=t.dimensionsDefine,s;(o===tg||o===n2)&&ye(a,function(u,d){(xr(u)?u.name:u)==="name"&&(s=d)});var l=(function(){for(var u={},d={},p=[],h=0,g=Math.min(5,n);h<g;h++){var m=fvt(t.data,o,t.seriesLayoutBy,a,t.startIndex,h);p.push(m);var b=m===fd.Not;if(b&&u.v==null&&h!==s&&(u.v=h),(u.n==null||u.n===u.v||!b&&p[u.n]===fd.Not)&&(u.n=h),y(u)&&p[u.n]!==fd.Not)return u;b||(m===fd.Might&&d.v==null&&h!==s&&(d.v=h),(d.n==null||d.n===d.v)&&(d.n=h))}function y(M){return M.v!=null&&M.n!=null}return y(u)?u:y(d)?d:null})();if(l){r.value=[l.v];var c=s??l.n;r.itemName=[c],r.seriesName=[c]}return r}function HSe(e){var t=e.get("data",!0);if(!t)return BB(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Sc).models[0]}function Gar(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:BB(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Sc).models}function hvt(e,t){return fvt(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function fvt(e,t,n,r,i,o){var a,s=5;if(h1(e))return fd.Not;var l,c;if(r){var u=r[o];xr(u)?(l=u.name,c=u.type):An(u)&&(l=u)}if(c!=null)return c==="ordinal"?fd.Must:fd.Not;if(t===z0){var d=e;if(n===uk){for(var p=d[o],h=0;h<(p||[]).length&&h<s;h++)if((a=x(p[i+h]))!=null)return a}else for(var h=0;h<d.length&&h<s;h++){var g=d[i+h];if(g&&(a=x(g[o]))!=null)return a}}else if(t===tg){var m=e;if(!l)return fd.Not;for(var h=0;h<m.length&&h<s;h++){var b=m[h];if(b&&(a=x(b[l]))!=null)return a}}else if(t===n2){var y=e;if(!l)return fd.Not;var p=y[l];if(!p||h1(p))return fd.Not;for(var h=0;h<p.length&&h<s;h++)if((a=x(p[h]))!=null)return a}else if(t===eg)for(var M=e,h=0;h<M.length&&h<s;h++){var b=M[h],C=ek(b);if(!Ht(C))return fd.Not;if((a=x(C[o]))!=null)return a}function x(w){var S=An(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?fd.Might:fd.Not;if(S&&w!=="-")return fd.Must}return fd.Not}var Yme=Kn();function $ar(e,t){S0(Yme.get(e)==null&&t),Yme.set(e,t)}function Uar(e,t,n){var r=Yme.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var wWe=mo(),Xar=mo(),VSe=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Ea(this.get("color",!0)),o=this.get("colorLayer",!0);return gvt(this,wWe,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Kar(this,wWe)},e})();function Kme(e,t,n,r){var i=Ea(e.get(["aria","decal","decals"]));return gvt(e,Xar,i,null,t,n,r)}function Yar(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function gvt(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var u=a==null||!r?n:Yar(r,a);if(u=u||n,!(!u||!u.length)){var d=u[l];return i&&(c[i]=d),s.paletteIdx=(l+1)%u.length,d}}function Kar(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var fV,g_,SWe,AWe="\0_ec_inner",Qar=1,GSe=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new No(o),this._locale=new No(a),this._optionManager=s},t.prototype.setOption=function(n,r,i){var o=TWe(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,TWe(r))},t.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?SWe(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&ye(l,function(c){i=!0,this._mergeOption(c,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Kn(),c=r&&r.replaceMergeMainTypeMap;Var(this),ye(n,function(d,p){d!=null&&(Ri.hasClass(p)?p&&(s.push(p),l.set(p,!0)):i[p]=i[p]==null?Or(d):ei(i[p],d,!0))}),c&&c.each(function(d,p){Ri.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),Ri.topologicalTravel(s,Ri.getAllClassMainTypes(),u,this);function u(d){var p=Uar(this,d,Ea(n[d])),h=o.get(d),g=h?c&&c.get(d)?"replaceMerge":"normalMerge":"replaceAll",m=omt(h,p,g);xir(m,d,Ri),i[d]=null,o.set(d,null),a.set(d,0);var b=[],y=[],M=0,C;ye(m,function(x,w){var S=x.existing,A=x.newOption;if(!A)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var z=d==="series",O=Ri.getClass(d,x.keyInfo.subType,!z);if(!O)return;if(d==="tooltip"){if(C)return;C=!0}if(S&&S.constructor===O)S.name=x.keyInfo.name,S.mergeOption(A,this),S.optionUpdated(A,!1);else{var T=Nt({componentIndex:w},x.keyInfo);S=new O(A,this,this,T),Nt(S,T),x.brandNew&&(S.__requireNewView=!0),S.init(A,this,this),S.optionUpdated(null,!0)}}S?(b.push(S.option),y.push(S),M++):(b.push(void 0),y.push(void 0))},this),i[d]=b,o.set(d,y),a.set(d,M),d==="series"&&fV(this)}this._seriesIndices||fV(this)},t.prototype.getOption=function(){var n=Or(this.option);return ye(n,function(r,i){if(Ri.hasClass(i)){for(var o=Ea(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!gq(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[AWe],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,o=n.id,a=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],ye(Ea(i),function(c){s[c]&&l.push(s[c])})):o!=null?l=OWe("id",o,s):a!=null?l=OWe("name",a,s):l=Lo(s,function(c){return!!c}),zWe(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):Lo(this._componentsMap.get(i),function(c){return!!c});return l(zWe(a,n));function s(c){var u=i+"Index",d=i+"Id",p=i+"Name";return c&&(c[u]!=null||c[d]!=null||c[p]!=null)?{mainType:i,index:c[u],id:c[d],name:c[p]}:null}function l(c){return n.filter?Lo(c,n.filter):c}},t.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(fr(n)){var a=r,s=n;o.each(function(d,p){for(var h=0;d&&h<d.length;h++){var g=d[h];g&&s.call(a,p,g,g.componentIndex)}})}else for(var l=An(n)?o.get(n):xr(n)?this.findComponents(n):null,c=0;l&&c<l.length;c++){var u=l[c];u&&r.call(i,u,u.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=Zc(n,null);return Lo(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return Lo(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return Lo(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){g_(this),ye(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},t.prototype.eachRawSeries=function(n,r){ye(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){g_(this),ye(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,r,i){return ye(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return g_(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){g_(this);var i=[];ye(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=Kn(i)},t.prototype.restoreData=function(n){fV(this);var r=this._componentsMap,i=[];r.each(function(o,a){Ri.hasClass(a)&&i.push(a)}),Ri.topologicalTravel(i,Ri.getAllClassMainTypes(),function(o){ye(r.get(o),function(a){a&&(o!=="series"||!Zar(a,n))&&a.restoreData()})})},t.internalField=(function(){fV=function(n){var r=n._seriesIndices=[];ye(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Kn(r)},g_=function(n){},SWe=function(n,r){n.option={},n.option[AWe]=Qar,n._componentsMap=Kn({series:[]}),n._componentsCount=Kn();var i=r.aria;xr(i)&&i.enabled==null&&(i.enabled=!0),Jar(r,n._theme.option),ei(r,Har,!1),n._mergeOption(r,null)}})(),t})(No);function Zar(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Jar(e,t){var n=e.color&&!e.colorLayer;ye(t,function(r,i){i==="colorLayer"&&n||Ri.hasClass(i)||(typeof r=="object"?e[i]=e[i]?ei(e[i],r,!1):Or(r):e[i]==null&&(e[i]=r))})}function OWe(e,t,n){if(Ht(t)){var r=Kn();return ye(t,function(o){if(o!=null){var a=Zc(o,null);a!=null&&r.set(o,!0)}}),Lo(n,function(o){return o&&r.get(o[e])})}else{var i=Zc(t,null);return Lo(n,function(o){return o&&i!=null&&o[e]===i})}}function zWe(e,t){return t.hasOwnProperty("subType")?Lo(e,function(n){return n&&n.subType===t.subType}):e}function TWe(e){var t=Kn();return e&&ye(Ea(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Hl(GSe,VSe);var esr=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],mvt=(function(){function e(t){ye(esr,function(n){this[n]=Rn(t[n],t)},this)}return e})(),_ae={},dk=(function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];ye(_ae,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){ye(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){_ae[t]=n},e.get=function(t){return _ae[t]},e})(),tsr=/^(min|max)?(.+)$/,nsr=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(ye(Ea(t.series),function(a){a&&a.data&&h1(a.data)&&lq(a.data)}),ye(Ea(t.dataset),function(a){a&&a.source&&h1(a.source)&&lq(a.source)})),t=Or(t);var i=this._optionBackup,o=rsr(t,n,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Or(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(n=Or(r[i.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,c=i.length;l<c;l++)isr(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!asr(a,this._currentMediaIndices)&&(s=Vt(a,function(u){return Or(u===-1?o.option:i[u].option)})),this._currentMediaIndices=a,s},e})();function rsr(e,t,n){var r=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,d=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((d||u)&&(e.options=e.media=null),o=e),u&&Ht(c)&&ye(c,function(h){h&&h.option&&(h.query?r.push(h):i||(i=h))}),p(o),ye(l,function(h){return p(h)}),ye(r,function(h){return p(h.option)});function p(h){ye(t,function(g){g(h,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function isr(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return ye(e,function(o,a){var s=a.match(tsr);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();osr(r[c],o,l)||(i=!1)}}),i}function osr(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function asr(e,t){return e.join(",")===t.join(",")}var Ig=ye,Cq=xr,EWe=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nae(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=EWe.length;n<r;n++){var i=EWe[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?ei(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?ei(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function a0(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,br(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function gN(e){a0(e,"itemStyle"),a0(e,"lineStyle"),a0(e,"areaStyle"),a0(e,"label"),a0(e,"labelLine"),a0(e,"upperLabel"),a0(e,"edgeLabel")}function Cc(e,t){var n=Cq(e)&&e[t],r=Cq(n)&&n.textStyle;if(r)for(var i=0,o=LFe.length;i<o;i++){var a=LFe[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function Yh(e){e&&(gN(e),Cc(e,"label"),e.emphasis&&Cc(e.emphasis,"label"))}function ssr(e){if(Cq(e)){Nae(e),gN(e),Cc(e,"label"),Cc(e,"upperLabel"),Cc(e,"edgeLabel"),e.emphasis&&(Cc(e.emphasis,"label"),Cc(e.emphasis,"upperLabel"),Cc(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Nae(t),Yh(t));var n=e.markLine;n&&(Nae(n),Yh(n));var r=e.markArea;r&&Yh(r);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!h1(o))for(var a=0;a<o.length;a++)Yh(o[a]);ye(e.categories,function(c){gN(c)})}if(i&&!h1(i))for(var a=0;a<i.length;a++)Yh(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)Yh(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)Ht(l[a])?(Yh(l[a][0]),Yh(l[a][1])):Yh(l[a]);e.type==="gauge"?(Cc(e,"axisLabel"),Cc(e,"title"),Cc(e,"detail")):e.type==="treemap"?(a0(e.breadcrumb,"itemStyle"),ye(e.levels,function(c){gN(c)})):e.type==="tree"&&gN(e.leaves)}}function G2(e){return Ht(e)?e:e?[e]:[]}function RWe(e){return(Ht(e)?e[0]:e)||{}}function lsr(e,t){Ig(G2(e.series),function(r){Cq(r)&&ssr(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ig(n,function(r){Ig(G2(e[r]),function(i){i&&(Cc(i,"axisLabel"),Cc(i.axisPointer,"label"))})}),Ig(G2(e.parallel),function(r){var i=r&&r.parallelAxisDefault;Cc(i,"axisLabel"),Cc(i&&i.axisPointer,"label")}),Ig(G2(e.calendar),function(r){a0(r,"itemStyle"),Cc(r,"dayLabel"),Cc(r,"monthLabel"),Cc(r,"yearLabel")}),Ig(G2(e.radar),function(r){Cc(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),Ig(G2(e.geo),function(r){Cq(r)&&(Yh(r),Ig(G2(r.regions),function(i){Yh(i)}))}),Ig(G2(e.timeline),function(r){Yh(r),a0(r,"label"),a0(r,"itemStyle"),a0(r,"controlStyle",!0);var i=r.data;Ht(i)&&ye(i,function(o){xr(o)&&(a0(o,"label"),a0(o,"itemStyle"))})}),Ig(G2(e.toolbox),function(r){a0(r,"iconStyle"),Ig(r.feature,function(i){a0(i,"iconStyle")})}),Cc(RWe(e.axisPointer),"label"),Cc(RWe(e.tooltip).axisPointer,"label")}function csr(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function usr(e,t,n,r){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=n)}function IWe(e){e&&ye(dsr,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var dsr=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],psr=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fae=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function m_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Fae.length;n++){var r=Fae[n][1],i=Fae[n][0];t[r]!=null&&(t[i]=t[r])}}function PWe(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function DWe(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function hsr(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function vvt(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&vvt(e[n].children,t)}function bvt(e,t){lsr(e,t),e.series=Ea(e.series),ye(e.series,function(n){if(xr(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),PWe(n.label);var i=n.data;if(i&&!h1(i))for(var o=0;o<i.length;o++)PWe(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=csr(n,"pointer.color");a!=null&&usr(n,"itemStyle.color",a)}else if(r==="bar"){m_(n),m_(n.backgroundStyle),m_(n.emphasis);var i=n.data;if(i&&!h1(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(m_(i[o]),m_(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),DWe(n),vvt(n.data,DWe)}else r==="graph"||r==="sankey"?hsr(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&br(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),IWe(n)}}),e.dataRange&&(e.visualMap=e.dataRange),ye(psr,function(n){var r=e[n];r&&(Ht(r)||(r=[r]),ye(r,function(i){IWe(i)}))})}function fsr(e){var t=Kn();e.eachSeries(function(n){var r=n.get("stack");if(r){var i=t.get(r)||t.set(r,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(gsr)}function gsr(e){ye(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(c,u,d){var p=a.get(t.stackedDimension,d);if(isNaN(p))return i;var h,g;s?g=a.getRawIndex(d):h=a.get(t.stackedByDimension,d);for(var m=NaN,b=n-1;b>=0;b--){var y=e[b];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,h)),g>=0){var M=y.data.getByRawIndex(y.stackResultDimension,g);if(l==="all"||l==="positive"&&M>0||l==="negative"&&M<0||l==="samesign"&&p>=0&&M>0||l==="samesign"&&p<=0&&M<0){p=pir(p,M),m=M;break}}}return r[0]=p,r[1]=m,r})})}var EJ=(function(){function e(t){this.data=t.data||(t.sourceFormat===n2?{}:[]),this.sourceFormat=t.sourceFormat||uvt,this.seriesLayoutBy=t.seriesLayoutBy||Cb,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&hvt(this,r)===fd.Must&&(i.type="ordinal")}}return e})();function $Se(e){return e instanceof EJ}function Qme(e,t,n){n=n||yvt(e);var r=t.seriesLayoutBy,i=vsr(e,n,r,t.sourceHeader,t.dimensions),o=new EJ({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Or(t)});return o}function USe(e){return new EJ({data:e,sourceFormat:h1(e)?Nx:eg})}function msr(e){return new EJ({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Or(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function yvt(e){var t=uvt;if(h1(e))t=Nx;else if(Ht(e)){e.length===0&&(t=z0);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(Ht(i)||h1(i)){t=z0;break}else if(xr(i)){t=tg;break}}}}else if(xr(e)){for(var o in e)if(Fn(e,o)&&Ad(e[o])){t=n2;break}}return t}function vsr(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:kWe(i),startIndex:a,dimensionsDetectedCount:o};if(t===z0){var s=e;r==="auto"||r==null?LWe(function(c){c!=null&&c!=="-"&&(An(c)?a==null&&(a=1):a=0)},n,s,10):a=yo(r)?r:r?1:0,!i&&a===1&&(i=[],LWe(function(c,u){i[u]=c!=null?c+"":""},n,s,1/0)),o=i?i.length:n===uk?s.length:s[0]?s[0].length:null}else if(t===tg)i||(i=bsr(e));else if(t===n2)i||(i=[],ye(e,function(c,u){i.push(u)}));else if(t===eg){var l=ek(e[0]);o=Ht(l)&&l.length||1}return{startIndex:a,dimensionsDefine:kWe(i),dimensionsDetectedCount:o}}function bsr(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Hi(n)}function kWe(e){if(e){var t=Kn();return Vt(e,function(n,r){n=xr(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function LWe(e,t,n,r){if(t===uk)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)e(o[i],i)}function Mvt(e){var t=e.sourceFormat;return t===tg||t===n2}var pA,hA,fA,_We,NWe,Cvt=(function(){function e(t,n){var r=$Se(t)?t:USe(t);this._source=r;var i=this._data=r.data;r.sourceFormat===Nx&&(this._offset=0,this._dimSize=n,this._data=i),NWe(this,i,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;NWe=function(a,s,l){var c=l.sourceFormat,u=l.seriesLayoutBy,d=l.startIndex,p=l.dimensionsDefine,h=_We[XSe(c,u)];if(Nt(a,h),c===Nx)a.getItem=n,a.count=i,a.fillStorage=r;else{var g=xvt(c,u);a.getItem=Rn(g,null,s,d,p);var m=wvt(c,u);a.count=Rn(m,null,s,d,p)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,u=c*a,d=0;d<c;d++)s[d]=l[u+d];return s},r=function(a,s,l,c){for(var u=this._data,d=this._dimSize,p=0;p<d;p++){for(var h=c[p],g=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],b=s-a,y=l[p],M=0;M<b;M++){var C=u[M*d+p];y[a+M]=C,C<g&&(g=C),C>m&&(m=C)}h[0]=g,h[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};_We=(t={},t[z0+"_"+Cb]={pure:!0,appendData:o},t[z0+"_"+uk]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tg]={pure:!0,appendData:o},t[n2]={pure:!0,appendData:function(a){var s=this._data;ye(a,function(l,c){for(var u=s[c]||(s[c]=[]),d=0;d<(l||[]).length;d++)u.push(l[d])})}},t[eg]={appendData:o},t[Nx]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}})(),e})(),FWe=function(e,t,n,r){return e[r]},ysr=(pA={},pA[z0+"_"+Cb]=function(e,t,n,r){return e[r+t]},pA[z0+"_"+uk]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},pA[tg]=FWe,pA[n2]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=e[s];o[a]=l?l[r]:null}return o},pA[eg]=FWe,pA);function xvt(e,t){var n=ysr[XSe(e,t)];return n}var WWe=function(e,t,n){return e.length},Msr=(hA={},hA[z0+"_"+Cb]=function(e,t,n){return Math.max(0,e.length-t)},hA[z0+"_"+uk]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},hA[tg]=WWe,hA[n2]=function(e,t,n){var r=n[0].name,i=e[r];return i?i.length:0},hA[eg]=WWe,hA);function wvt(e,t){var n=Msr[XSe(e,t)];return n}var Wae=function(e,t,n){return e[t]},Csr=(fA={},fA[z0]=Wae,fA[tg]=function(e,t,n){return e[n]},fA[n2]=Wae,fA[eg]=function(e,t,n){var r=ek(e);return r instanceof Array?r[t]:r},fA[Nx]=Wae,fA);function Svt(e){var t=Csr[e];return t}function XSe(e,t){return e===z0?e+"_"+t:e}function NP(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return Svt(o)(r,a,s)}else{var l=r;return o===eg&&(l=ek(r)),l}}}}var xsr=/\{@(.+?)\}/g,RJ=(function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),i=this.getRawValue(t,n),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),c=l&&l[r.getItemVisual(t,"drawType")||"fill"],u=l&&l.stroke,d=this.mainType,p=d==="series",h=r.userOutput&&r.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:c,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&Ht(l.value)&&(l.value=l.value[i]),!o){var c=s.getItemModel(t);o=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(fr(o))return l.status=n,l.dimensionIndex=i,o(l);if(An(o)){var u=qSe(o,l);return u.replace(xsr,function(d,p){var h=p.length,g=p;g.charAt(0)==="["&&g.charAt(h-1)==="]"&&(g=+g.slice(1,h-1));var m=NP(s,t,g);if(a&&Ht(a.interpolatedValue)){var b=s.getDimensionIndex(g);b>=0&&(m=a.interpolatedValue[b])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,n){return NP(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function qWe(e){var t,n;return xr(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function kF(e){return new wsr(e)}var wsr=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;(a!==l||s!==c)&&(o="reset");function u(M){return!(M>=1)&&(M=1),M}var d;(this._dirty||o==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=c;var p=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,g=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(d||h<g)){var m=this._progress;if(Ht(m))for(var b=0;b<m.length;b++)this._doProgress(m[b],h,g,l,c);else this._doProgress(m,h,g,l,c)}this._dueIndex=g;var y=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,i,o){BWe.reset(n,r,i,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:BWe.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Ht(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),BWe=(function(){var e,t,n,r,i,o={reset:function(l,c,u,d){t=l,e=c,n=u,r=d,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*n+Math.ceil(t/i),c=t>=e?null:l<r?l:t;return t++,c}})();function Fx(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!yo(e)&&e!=null&&e!=="-"&&(e=+dh(e)),e==null||e===""?NaN:Number(e))}var Ssr=Kn({number:function(e){return parseFloat(e)},time:function(e){return+dh(e)},trim:function(e){return An(e)?Cf(e):e}});function Avt(e){return Ssr.get(e)}var Ovt={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Asr=(function(){function e(t,n){if(!yo(n)){var r="";Qo(r)}this._opFn=Ovt[t],this._rvalFloat=Nb(n)}return e.prototype.evaluate=function(t){return yo(t)?this._opFn(t,this._rvalFloat):this._opFn(Nb(t),this._rvalFloat)},e})(),zvt=(function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=yo(t)?t:Nb(t),i=yo(n)?n:Nb(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=An(t),l=An(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},e})(),Osr=(function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=Nb(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Nb(t)===this._rvalFloat)}return this._isEQ?n:!n},e})();function zsr(e,t){return e==="eq"||e==="ne"?new Osr(e==="eq",t):Fn(Ovt,e)?new Asr(e,t):null}var Tsr=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return Fx(t,n)},e})();function Esr(e,t){var n=new Tsr,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Cb&&Qo(a);var s=[],l={},c=e.dimensionsDefine;if(c)ye(c,function(m,b){var y=m.name,M={index:b,name:y,displayName:m.displayName};if(s.push(M),y!=null){var C="";Fn(l,y)&&Qo(C),l[y]=M}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=xvt(i,Cb);t.__isBuiltIn&&(n.getRawDataItem=function(m){return d(r,o,s,m)},n.getRawData=Rn(Rsr,null,e)),n.cloneRawData=Rn(Isr,null,e);var p=wvt(i,Cb);n.count=Rn(p,null,r,o,s);var h=Svt(i);n.retrieveValue=function(m,b){var y=d(r,o,s,m);return g(y,b)};var g=n.retrieveValueFromItem=function(m,b){if(m!=null){var y=s[b];if(y)return h(m,b,y.name)}};return n.getDimensionInfo=Rn(Psr,null,s,l),n.cloneAllDimensionInfo=Rn(Dsr,null,s),n}function Rsr(e){var t=e.sourceFormat;if(!YSe(t)){var n="";Qo(n)}return e.data}function Isr(e){var t=e.sourceFormat,n=e.data;if(!YSe(t)){var r="";Qo(r)}if(t===z0){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(t===tg){for(var i=[],o=0,a=n.length;o<a;o++)i.push(Nt({},n[o]));return i}}function Psr(e,t,n){if(n!=null){if(yo(n)||!isNaN(n)&&!Fn(t,n))return e[n];if(Fn(t,n))return t[n]}}function Dsr(e){return Or(e)}var Tvt=Kn();function ksr(e){e=Or(e);var t=e.type,n="";t||Qo(n);var r=t.split(":");r.length!==2&&Qo(n);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),e.__isBuiltIn=i,Tvt.set(t,e)}function Lsr(e,t,n){var r=Ea(e),i=r.length,o="";i||Qo(o);for(var a=0,s=i;a<s;a++){var l=r[a];t=_sr(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function _sr(e,t,n,r){var i="";t.length||Qo(i),xr(e)||Qo(i);var o=e.type,a=Tvt.get(o);a||Qo(i);var s=Vt(t,function(c){return Esr(c,a)}),l=Ea(a.transform({upstream:s[0],upstreamList:s,config:Or(e.config)}));return Vt(l,function(c,u){var d="";xr(c)||Qo(d),c.data||Qo(d);var p=yvt(c.data);YSe(p)||Qo(d);var h,g=t[0];if(g&&u===0&&!c.dimensions){var m=g.startIndex;m&&(c.data=g.data.slice(0,m).concat(c.data)),h={seriesLayoutBy:Cb,sourceHeader:m,dimensions:g.metaRawOption.dimensions}}else h={seriesLayoutBy:Cb,sourceHeader:0,dimensions:c.dimensions};return Qme(c.data,h,null)})}function YSe(e){return e===z0||e===tg}var IJ="undefined",Nsr=typeof Uint32Array===IJ?Array:Uint32Array,Fsr=typeof Uint16Array===IJ?Array:Uint16Array,Evt=typeof Int32Array===IJ?Array:Int32Array,jWe=typeof Float64Array===IJ?Array:Float64Array,Rvt={float:jWe,int:Evt,ordinal:Array,number:Array,time:jWe},qae;function GE(e){return e>65535?Nsr:Fsr}function $E(){return[1/0,-1/0]}function Wsr(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function HWe(e,t,n,r,i){var o=Rvt[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new o(r)}var Zme=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Kn()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=qae[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],Mvt(i),this._dimensions=Vt(n,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(t);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(t,o),this._chunks[o]=new Rvt[n||"float"](this._rawCount),this._rawExtent[o]=$E(),o},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[t]=$E());for(var l=o[t],c=a;c<s;c++){var u=r[c]=n.parseAndCollect(r[c]);isNaN(u)||(l[0]=Math.min(u,l[0]),l[1]=Math.max(u,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),c=0;c<o;c++){var u=i[c];HWe(r,c,u.type,l,!0)}for(var d=[],p=s;p<l;p++)for(var h=p-s,g=0;g<o;g++){var u=i[g],m=qae.arrayRows.call(this,t[h]||d,u.property,h,g);r[g][p]=m;var b=a[g];m<b[0]&&(b[0]=m),m>b[1]&&(b[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=Vt(a,function(M){return M.property}),u=0;u<s;u++){var d=a[u];l[u]||(l[u]=$E()),HWe(o,u,d.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,o,l);else for(var p=[],h=t;h<n;h++){p=i.getItem(h,p);for(var g=0;g<s;g++){var m=o[g],b=this._dimValueGetter(p,c[g],h,g);m[h]=b;var y=l[g];b<y[0]&&(y[0]=b),b>y[1]&&(y[1]=b)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],i=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(r+=a)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<t)i=a+1;else if(n[a]>t)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,o=i[t],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,c=0,u=0,d=this.count();u<d;u++){var p=this.getRawIndex(u),h=n-o[p],g=Math.abs(h);g<=r&&((g<s||g===s&&h>=0&&l<0)&&(s=g,l=h,c=0),h===l&&(a[c++]=u))}return a.length=c,a},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var o=0;o<i;o++)t[o]=n[o]}else t=new r(n.buffer,0,i)}else{var r=GE(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=GE(r._rawCount),a=new o(i),s=[],l=t.length,c=0,u=t[0],d=r._chunks,p=0;p<i;p++){var h=void 0,g=r.getRawIndex(p);if(l===0)h=n(p);else if(l===1){var m=d[u][g];h=n(m,p)}else{for(var b=0;b<l;b++)s[b]=d[t[b]][g];s[b]=p,h=n.apply(null,s)}h&&(a[c++]=g)}return c<i&&(r._indices=a),r._count=c,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var i=Hi(t),o=i.length;if(!o)return this;var a=n.count(),s=GE(n._rawCount),l=new s(a),c=0,u=i[0],d=t[u][0],p=t[u][1],h=n._chunks,g=!1;if(!n._indices){var m=0;if(o===1){for(var b=h[i[0]],y=0;y<r;y++){var M=b[y];(M>=d&&M<=p||isNaN(M))&&(l[c++]=m),m++}g=!0}else if(o===2){for(var b=h[i[0]],C=h[i[1]],x=t[i[1]][0],w=t[i[1]][1],y=0;y<r;y++){var M=b[y],S=C[y];(M>=d&&M<=p||isNaN(M))&&(S>=x&&S<=w||isNaN(S))&&(l[c++]=m),m++}g=!0}}if(!g)if(o===1)for(var y=0;y<a;y++){var A=n.getRawIndex(y),M=h[i[0]][A];(M>=d&&M<=p||isNaN(M))&&(l[c++]=A)}else for(var y=0;y<a;y++){for(var z=!0,A=n.getRawIndex(y),O=0;O<o;O++){var T=i[O],M=h[T][A];(M<t[T][0]||M>t[T][1])&&(z=!1)}z&&(l[c++]=n.getRawIndex(y))}return c<a&&(n._indices=l),n._count=c,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var i=t._chunks,o=[],a=n.length,s=t.count(),l=[],c=t._rawExtent,u=0;u<n.length;u++)c[n[u]]=$E();for(var d=0;d<s;d++){for(var p=t.getRawIndex(d),h=0;h<a;h++)l[h]=i[n[h]][p];l[a]=d;var g=r&&r.apply(null,l);if(g!=null){typeof g!="object"&&(o[0]=g,g=o);for(var u=0;u<g.length;u++){var m=n[u],b=g[u],y=c[m],M=i[m];M&&(M[p]=b),b<y[0]&&(y[0]=b),b>y[1]&&(y[1]=b)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/n),c=this.getRawIndex(0),u,d,p,h=new(GE(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=c;for(var g=1;g<a-1;g+=l){for(var m=Math.min(g+l,a-1),b=Math.min(g+l*2,a),y=(b+m)/2,M=0,C=m;C<b;C++){var x=this.getRawIndex(C),w=o[x];isNaN(w)||(M+=w)}M/=b-m;var S=g,A=Math.min(g+l,a),z=g-1,O=o[c];u=-1,p=S;for(var T=-1,R=0,C=S;C<A;C++){var x=this.getRawIndex(C),w=o[x];if(isNaN(w)){R++,T<0&&(T=x);continue}d=Math.abs((z-y)*(w-O)-(z-C)*(M-O)),d>u&&(u=d,p=x)}R>0&&R<A-S&&(h[s++]=Math.min(T,p),p=Math.max(T,p)),h[s++]=p,c=p}return h[s++]=this.getRawIndex(a-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},e.prototype.minmaxDownSample=function(t,n){for(var r=this.clone([t],!0),i=r._chunks,o=Math.floor(1/n),a=i[t],s=this.count(),l=new(GE(this._rawCount))(Math.ceil(s/o)*2),c=0,u=0;u<s;u+=o){var d=u,p=a[this.getRawIndex(d)],h=u,g=a[this.getRawIndex(h)],m=o;u+o>s&&(m=s-u);for(var b=0;b<m;b++){var y=this.getRawIndex(u+b),M=a[y];M<p&&(p=M,d=u+b),M>g&&(g=M,h=u+b)}var C=this.getRawIndex(d),x=this.getRawIndex(h);d<h?(l[c++]=C,l[c++]=x):(l[c++]=x,l[c++]=C)}return r._count=c,r._indices=l,r._updateGetRawIdx(),r},e.prototype.downSample=function(t,n,r,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),c=a[t],u=this.count(),d=o._rawExtent[t]=$E(),p=new(GE(this._rawCount))(Math.ceil(u/l)),h=0,g=0;g<u;g+=l){l>u-g&&(l=u-g,s.length=l);for(var m=0;m<l;m++){var b=this.getRawIndex(g+m);s[m]=c[b]}var y=r(s),M=this.getRawIndex(Math.min(g+i(s,y)||0,u-1));c[M]=y,y<d[0]&&(d[0]=y),y>d[1]&&(d[1]=y),p[h++]=M}return o._count=h,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(i[t[0]][s],o);break;case 2:n(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,c=[];l<r;l++)c[l]=i[t[l]][s];c[l]=o,n.apply(null,c)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=$E();if(!n)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=r;for(var s=a[0],l=a[1],c=0;c<i;c++){var u=this.getRawIndex(c),d=n[u];d<s&&(s=d),d>l&&(l=d)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o<i.length;o++)r.push(i[o][n]);return r},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&Wf(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?Wsr(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Or(this._extent),t._rawExtent=Or(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,r,i,o){return Fx(n[o],this._dimensions[o])}qae={arrayRows:t,objectRows:function(n,r,i,o){return Fx(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return Fx(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}})(),e})(),Ivt=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(gV(t)){var a=t,s=void 0,l=void 0,c=void 0;if(r){var u=n[0];u.prepareSource(),c=u.getSource(),s=c.data,l=c.sourceFormat,o=[u._getVersionSign()]}else s=a.get("data",!0),l=h1(s)?Nx:eg,o=[];var d=this._getSourceMetaRawOption()||{},p=c&&c.metaRawOption||{},h=Xr(d.seriesLayoutBy,p.seriesLayoutBy)||null,g=Xr(d.sourceHeader,p.sourceHeader),m=Xr(d.dimensions,p.dimensions),b=h!==p.seriesLayoutBy||!!g!=!!p.sourceHeader||m;i=b?[Qme(s,{seriesLayoutBy:h,sourceHeader:g,dimensions:m},l)]:[]}else{var y=t;if(r){var M=this._applyTransform(n);i=M.sourceList,o=M.upstreamSignList}else{var C=y.get("source",!0);i=[Qme(C,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&GWe(o)}var a,s=[],l=[];return ye(t,function(c){c.prepareSource();var u=c.getSource(i||0),d="";i!=null&&!u&&GWe(d),s.push(u),l.push(c._getVersionSign())}),r?a=Lsr(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[msr(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];gV(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new Zme,s.initData(new Cvt(n,t.length),t)),a[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(gV(t)){var n=HSe(t);return n?[n.getSourceManager()]:[]}else return Vt(Gar(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,i;if(gV(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},e})();function VWe(e){var t=e.option.transform;t&&lq(e.option.transform)}function gV(e){return e.mainType==="series"}function GWe(e){throw new Error(e)}var qsr="line-height:1";function Pvt(e){var t=e.lineHeight;return t==null?qsr:"line-height:"+l0(t+"")+"px"}function Dvt(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+l0(r+"")+"px;color:"+l0(n)+";font-weight:"+l0(i+""),valueStyle:"font-size:"+l0(a+"")+"px;color:"+l0(o)+";font-weight:"+l0(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Bsr=[0,10,20,30],jsr=["",`
`,`

`,`


`];function Iu(e,t){return t.type=e,t}function Jme(e){return e.type==="section"}function kvt(e){return Jme(e)?Hsr:Vsr}function Lvt(e){if(Jme(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return ye(e.blocks,function(i){var o=Lvt(i);o>=t&&(t=o+ +(r&&(!o||Jme(i)&&!i.noHeader)))}),t}return 0}function Hsr(e,t,n,r){var i=t.noHeader,o=Gsr(Lvt(t)),a=[],s=t.blocks||[];S0(!s||Ht(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Fn(c,l)){var u=new zvt(c[l],null);s.sort(function(m,b){return u.evaluate(m.sortParam,b.sortParam)})}else l==="seriesDesc"&&s.reverse()}ye(s,function(m,b){var y=t.valueFormatter,M=kvt(m)(y?Nt(Nt({},e),{valueFormatter:y}):e,m,b>0?o.html:0,r);M!=null&&a.push(M)});var d=e.renderMode==="richText"?a.join(o.richText):eve(r,a.join(""),i?n:o.html);if(i)return d;var p=Xme(t.header,"ordinal",e.useUTC),h=Dvt(r,e.renderMode).nameStyle,g=Pvt(r);return e.renderMode==="richText"?_vt(e,p,h)+o.richText+d:eve(r,'<div style="'+h+";"+g+';">'+l0(p)+"</div>"+d,n)}function Vsr(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(x){return x=Ht(x)?x:[x],Vt(x,function(w,S){return Xme(w,Ht(h)?h[S]:h,c)})};if(!(o&&a)){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=o?"":Xme(l,"ordinal",c),h=t.valueType,g=a?[]:u(t.value,t.dataIndex),m=!s||!o,b=!s&&o,y=Dvt(r,i),M=y.nameStyle,C=y.valueStyle;return i==="richText"?(s?"":d)+(o?"":_vt(e,p,M))+(a?"":Xsr(e,g,m,b,C)):eve(r,(s?"":d)+(o?"":$sr(p,!s,M))+(a?"":Usr(g,m,b,C)),n)}}function $We(e,t,n,r,i,o){if(e){var a=kvt(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Gsr(e){return{html:Bsr[e],richText:jsr[e]}}function eve(e,t,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",o=Pvt(e);return'<div style="'+i+";"+o+';">'+t+r+"</div>"}function $sr(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+l0(e)+"</span>"}function Usr(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=Ht(e)?e:[e],'<span style="'+o+";"+r+'">'+Vt(e,function(a){return l0(a)}).join("&nbsp;&nbsp;")+"</span>"}function _vt(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Xsr(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ht(t)?t.join("  "):t,o)}function Nvt(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Zz(r)}function Fvt(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Bae=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=tmt()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,o=ovt({color:n,type:t,renderMode:r,markerId:i});return An(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Ht(n)?ye(n,function(o){return Nt(r,o)}):Nt(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e})();function Wvt(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=Ht(s),c=Nvt(t,n),u,d,p,h;if(a>1||l&&!a){var g=Ysr(s,t,n,o,c);u=g.inlineValues,d=g.inlineValueTypes,p=g.blocks,h=g.inlineValues[0]}else if(a){var m=i.getDimensionInfo(o[0]);h=u=NP(i,n,o[0]),d=m.type}else h=u=l?s[0]:s;var b=gSe(t),y=b&&t.name||"",M=i.getName(n),C=r?y:M;return Iu("section",{header:y,noHeader:r||!b,sortParam:h,blocks:[Iu("nameValue",{markerType:"item",markerColor:c,name:C,noName:!Cf(C),value:u,valueType:d,dataIndex:n})].concat(p||[])})}function Ysr(e,t,n,r,i){var o=t.getData(),a=Wf(e,function(d,p,h){var g=o.getDimensionInfo(h);return d=d||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],c=[];r.length?ye(r,function(d){u(NP(o,n,d),d)}):ye(e,u);function u(d,p){var h=o.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(a?c.push(Iu("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var uC=mo();function mV(e,t){return e.getName(t)||e.getId(t)}var Y7="__universalTransitionEnabled",Ia=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=kF({count:Qsr,reset:Zsr}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=uC(this).sourceManager=new Ivt(this);o.prepareSource();var a=this.getInitialData(n,i);XWe(a,this),this.dataTask.context.data=a,uC(this).dataBeforeProcessed=a,UWe(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Mq(this),o=i?ck(n):{},a=this.subType;Ri.hasClass(a)&&(a+="Series"),ei(n,r.getTheme().get(this.subType)),ei(n,this.getDefaultOption()),Xz(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&sw(n,o,i)},t.prototype.mergeOption=function(n,r){n=ei(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Mq(this);i&&sw(this.option,n,i);var o=uC(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);XWe(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,uC(this).dataBeforeProcessed=a,UWe(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!h1(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&Xz(n[i],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=tve(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return uC(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=tve(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}uC(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Kn(n)},t.prototype.getSourceManager=function(){return uC(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return uC(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,r,i){return Wvt({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Ii.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=VSe.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],c=mV(a,l);i[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(n,r){for(var i=[],o=0;o<n.length;o++)i[0]=n[o],this.isSelected(n[o],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Hi(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[mV(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Y7])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){xr(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,u=0;u<l;u++){var d=r[u],p=mV(n,d);c[p]=!0,this._selectedDataIndicesMap[p]=n.getRawIndex(d)}}else if(s==="single"||s===!0){var h=r[l-1],p=mV(n,h);a.selectedMap=(i={},i[p]=!0,i),this._selectedDataIndicesMap=(o={},o[p]=n.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var o=n.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return Ri.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(Ri);Hl(Ia,RJ);Hl(Ia,VSe);umt(Ia,Ri);function UWe(e){var t=e.name;gSe(e)||(e.name=Ksr(e)||t)}function Ksr(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return ye(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function Qsr(e){return e.model.getRawData().count()}function Zsr(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Jsr}function Jsr(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function XWe(e,t){ye(DP(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Zr(elr,t))})}function elr(e,t){var n=tve(e);return n&&n.setOutputEnd((t||this).count()),t}function tve(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var us=(function(){function e(){this.group=new Ir,this.uid=lk("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();vSe(us);fJ(us);function pk(){var e=mo();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var qvt=mo(),tlr=pk(),pa=(function(){function e(){this.group=new Ir,this.uid=lk("viewChart"),this.renderTask=kF({plan:nlr,reset:rlr}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&KWe(o,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&KWe(o,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){Fw(this.group,t)},e.markUpdateMethod=function(t,n){qvt(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function YWe(e,t,n){e&&vq(e)&&(t==="emphasis"?rM:iM)(e,n)}function KWe(e,t,n){var r=Yz(e,t),i=t&&t.highlightKey!=null?Wor(t.highlightKey):null;r!=null?ye(Ea(r),function(o){YWe(e.getItemGraphicEl(o),n,i)}):e.eachItemGraphicEl(function(o){YWe(o,n,i)})}vSe(pa);fJ(pa);function nlr(e){return tlr(e.model)}function rlr(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&qvt(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,r,i),ilr[l]}var ilr={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},OU="\0__throttleOriginMethod",QWe="\0__throttleRate",ZWe="\0__throttleType";function PJ(e,t,n){var r,i=0,o=0,a=null,s,l,c,u;t=t||0;function d(){o=new Date().getTime(),a=null,e.apply(l,c||[])}var p=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];r=new Date().getTime(),l=this,c=h;var m=u||t,b=u||n;u=null,s=r-(b?i:o)-m,clearTimeout(a),b?a=setTimeout(d,m):s>=0?d():a=setTimeout(d,-s),i=r};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(h){u=h},p}function hk(e,t,n,r){var i=e[t];if(i){var o=i[OU]||i,a=i[ZWe],s=i[QWe];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=PJ(o,n,r==="debounce"),i[OU]=o,i[ZWe]=r,i[QWe]=n}return i}}function xq(e,t){var n=e[t];n&&n[OU]&&(n.clear&&n.clear(),e[t]=n[OU])}var JWe=mo(),eqe={itemStyle:Kz(Ymt,!0),lineStyle:Kz(Xmt,!0)},olr={lineStyle:"stroke",itemStyle:"fill"};function Bvt(e,t){var n=e.visualStyleMapper||eqe[t];return n||(console.warn("Unknown style type '"+t+"'."),eqe.itemStyle)}function jvt(e,t){var n=e.visualDrawType||olr[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var alr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=Bvt(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=jvt(e,r),c=a[l],u=fr(c)?c:null,d=a.fill==="auto"||a.stroke==="auto";if(!a[l]||u||d){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||fr(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||fr(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,g){var m=e.getDataParams(g),b=Nt({},a);b[l]=u(m),h.setItemVisual(g,"style",b)}}}},v_=new No,slr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Bvt(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){v_.option=l[r];var c=i(v_),u=a.ensureUniqueItemVisual(s,"style");Nt(u,c),v_.option.decal&&(a.setItemVisual(s,"decal",v_.option.decal),v_.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},llr={performRawSeries:!0,overallReset:function(e){var t=Kn();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=t.get(i);o||(o={},t.set(i,o)),JWe(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=JWe(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=jvt(n,s);o.each(function(c){var u=o.getRawIndex(c);i[u]=c}),r.each(function(c){var u=i[c],d=o.getItemVisual(u,"colorFromPalette");if(d){var p=o.ensureUniqueItemVisual(u,"style"),h=r.getName(c)||c+"",g=r.count();p[l]=n.getColorFromPalette(h,a,g)}})}})}},vV=Math.PI;function clr(e,t){t=t||{},br(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ir,r=new ao({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new oo({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new ao({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new VB({shape:{startAngle:-vV/2,endAngle:-vV/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:vV*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:vV*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),u=e.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:u}),o.setShape({x:c-l,y:u-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Hvt=(function(){function e(t,n,r,i){this._stageTaskMap=Kn(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Kn();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;ye(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";S0(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var o=!1,a=this;ye(t,function(l,c){if(!(i.visualType&&i.visualType!==l.visualType)){var u=a._stageTaskMap.get(l.uid),d=u.seriesTaskMap,p=u.overallTask;if(p){var h,g=p.agentStubMap;g.each(function(b){s(i,b)&&(b.dirty(),h=!0)}),h&&p.dirty(),a.updatePayload(p,r);var m=a.getPerformArgs(p,i.block);g.each(function(b){b.perform(m)}),p.perform(m)&&(o=!0)}else d&&d.each(function(b,y){s(i,b)&&b.dirty();var M=a.getPerformArgs(b,i.block);M.skip=!l.performRawSeries&&n.isSeriesFiltered(b.context.model),a.updatePayload(b,r),b.perform(M)&&(o=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Kn(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(u):l?r.eachRawSeriesByType(l,u):c&&c(r,i).each(u);function u(d){var p=d.uid,h=s.set(p,a&&a.get(p)||kF({plan:flr,reset:glr,count:vlr}));h.context={model:d,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(d,h)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||kF({reset:ulr});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Kn(),c=t.seriesType,u=t.getTargetSeries,d=!0,p=!1,h="";S0(!t.createOnAllSeries,h),c?r.eachRawSeriesByType(c,g):u?u(r,i).each(g):(d=!1,ye(r.getSeries(),g));function g(m){var b=m.uid,y=l.set(b,s&&s.get(b)||(p=!0,kF({reset:dlr,onDirty:hlr})));y.context={model:m,overallProgress:d},y.agent=a,y.__block=d,o._pipe(m,y)}p&&a.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return fr(t)&&(t={overallReset:t,seriesType:blr(t)}),t.uid=lk("stageHandler"),n&&(t.visualType=n),t},e})();function ulr(e){e.overallReset(e.ecModel,e.api,e.payload)}function dlr(e){return e.overallProgress&&plr}function plr(){this.agent.dirty(),this.getDownstream().dirty()}function hlr(){this.agent&&this.agent.dirty()}function flr(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function glr(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ea(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Vt(t,function(n,r){return Vvt(r)}):mlr}var mlr=Vvt(0);function Vvt(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function vlr(e){return e.data.count()}function blr(e){zU=null;try{e(wq,Gvt)}catch{}return zU}var wq={},Gvt={},zU;$vt(wq,GSe);$vt(Gvt,mvt);wq.eachSeriesByType=wq.eachRawSeriesByType=function(e){zU=e};wq.eachComponent=function(e){e.mainType==="series"&&e.subType&&(zU=e.subType)};function $vt(e,t){for(var n in t.prototype)e[n]=Nl}var tqe=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const ylr={color:tqe,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],tqe]};var Zd="#B9B8CE",nqe="#100C2A",bV=function(){return{axisLine:{lineStyle:{color:Zd}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},rqe=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Uvt={darkMode:!0,color:rqe,backgroundColor:nqe,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Zd},pageTextStyle:{color:Zd}},textStyle:{color:Zd},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Zd}},dataZoom:{borderColor:"#71708A",textStyle:{color:Zd},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Zd}},timeline:{lineStyle:{color:Zd},label:{color:Zd},controlStyle:{color:Zd,borderColor:Zd}},calendar:{itemStyle:{color:nqe},dayLabel:{color:Zd},monthLabel:{color:Zd},yearLabel:{color:Zd}},timeAxis:bV(),logAxis:bV(),valueAxis:bV(),categoryAxis:bV(),line:{symbol:"circle"},graph:{color:rqe},gauge:{title:{color:Zd},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Zd},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Uvt.categoryAxis.splitLine.show=!1;var Mlr=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(An(t)){var o=tb(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};ye(t,function(l,c){for(var u=!1,d=0;d<a.length;d++){var p=a[d],h=c.lastIndexOf(p);if(h>0&&h===c.length-p.length){var g=c.slice(0,h);g!=="data"&&(n.mainType=g,n[p.toLowerCase()]=l,u=!0)}}s.hasOwnProperty(c)&&(r[c]=l,u=!0),u||(i[c]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,c=n.dataQuery;return u(l,a,"mainType")&&u(l,a,"subType")&&u(l,a,"index","componentIndex")&&u(l,a,"name")&&u(l,a,"id")&&u(c,o,"name")&&u(c,o,"dataIndex")&&u(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,o));function u(d,p,h,g){return d[h]==null||p[g||h]===d[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),nve=["symbol","symbolSize","symbolRotate","symbolOffset"],iqe=nve.concat(["symbolKeepAspect"]),Clr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a<nve.length;a++){var s=nve[a],l=e.get(s);fr(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Nt({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var c=Hi(i);function u(d,p){for(var h=e.getRawValue(p),g=e.getDataParams(p),m=0;m<c.length;m++){var b=c[m];d.setItemVisual(p,b,i[b](h,g))}}return{dataEach:o?u:null}}},xlr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<iqe.length;s++){var l=iqe[s],c=a.getShallow(l,!0);c!=null&&i.setItemVisual(o,l,c)}}return{dataEach:n.hasItemOption?r:null}}};function KSe(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function XB(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Xvt(e,t,n,r){switch(n){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break}}function Yvt(e,t){function n(r,i){var o=[];return r.eachComponent({mainType:"series",subType:e,query:i},function(a){o.push(a.seriesIndex)}),o}ye([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(i,o,a){i=Nt({},i),a.dispatchAction(Nt(i,{type:r[1],seriesIndex:n(o,i)}))})})}function UE(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,c=i.selected,u=0;u<c.length;u++)if(c[u].seriesIndex===s){var d=a.getData(),p=Yz(d,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:Ht(p)?d.getName(p[0]):d.getName(p),selected:An(l)?l:Nt({},l)})}})}function wlr(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(UE("map","selectchanged",t,i,r),UE("pie","selectchanged",t,i,r)):r.fromAction==="select"?(UE("map","selected",t,i,r),UE("pie","selected",t,i,r)):r.fromAction==="unselect"&&(UE("map","unselected",t,i,r),UE("pie","unselected",t,i,r))})}function yO(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Slr=Math.round(Math.random()*9),Alr=typeof Object.defineProperty=="function",Olr=(function(){function e(){this._id="__ec_inner_"+Slr++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return Alr?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),zlr=Di.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),Tlr=Di.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),Elr=Di.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,c=Math.asin(s/a),u=Math.cos(c)*a,d=Math.sin(c),p=Math.cos(c),h=a*.6,g=a*.7;e.moveTo(n-u,l+s),e.arc(n,l,a,Math.PI-c,Math.PI*2+c),e.bezierCurveTo(n+u-d*h,l+s+p*h,n,r-g,n,r),e.bezierCurveTo(n,r-g,n-u+d*h,l+s+p*h,n-u,l+s),e.closePath()}}),Rlr=Di.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),Ilr={line:Jc,rect:ao,roundRect:ao,square:ao,circle:t2,diamond:Tlr,pin:Elr,arrow:Rlr,triangle:zlr},Plr={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},TU={};ye(Ilr,function(e,t){TU[t]=new e});var Dlr=Di.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=vU(e,t,n),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var i=TU[r];i||(r="rect",i=TU[r]),Plr[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function klr(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function sc(e,t,n,r,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=TSe(e.slice(8),new ui(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=GB(e.slice(7),{},new ui(t,n,r,i),a?"center":"cover"):l=new Dlr({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=klr,o&&l.setColor(o),l}function fk(e){return Ht(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function U3(e,t){if(e!=null)return Ht(e)||(e=[e,e]),[vn(e[0],t[0])||0,vn(Xr(e[1],e[0]),t[1])||0]}function MO(e){return isFinite(e)}function Llr(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=MO(r)?r:0,i=MO(i)?i:1,o=MO(o)?o:0,a=MO(a)?a:0;var s=e.createLinearGradient(r,o,i,a);return s}function _lr(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=MO(a)?a:.5,s=MO(s)?s:.5,l=l>=0&&MO(l)?l:.5;var c=e.createRadialGradient(a,s,0,a,s,l);return c}function rve(e,t,n){for(var r=t.type==="radial"?_lr(e,t,n):Llr(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Nlr(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function yV(e){return parseInt(e,10)}function GR(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||yV(s[r])||yV(e.style[r]))-(yV(s[o])||0)-(yV(s[a])||0)|0}function Flr(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:yo(e)?[e]:Ht(e)?e:null}function QSe(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Flr(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Vt(n,function(o){return o/i}),r/=i)}return[n,r]}var Wlr=new Fb(!0);function EU(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function oqe(e){return typeof e=="string"&&e!=="none"}function RU(e){var t=e.fill;return t!=null&&t!=="none"}function aqe(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function sqe(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function ive(e,t,n){var r=bSe(t.image,t.__image,n);if(gJ(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*xF),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function qlr(e,t,n,r){var i,o=EU(n),a=RU(n),s=n.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var u=t.path||Wlr,d=t.__dirty;if(!r){var p=n.fill,h=n.stroke,g=a&&!!p.colorStops,m=o&&!!h.colorStops,b=a&&!!p.image,y=o&&!!h.image,M=void 0,C=void 0,x=void 0,w=void 0,S=void 0;(g||m)&&(S=t.getBoundingRect()),g&&(M=d?rve(e,p,S):t.__canvasFillGradient,t.__canvasFillGradient=M),m&&(C=d?rve(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=C),b&&(x=d||!t.__canvasFillPattern?ive(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(w=d||!t.__canvasStrokePattern?ive(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),g?e.fillStyle=M:b&&(x?e.fillStyle=x:a=!1),m?e.strokeStyle=C:y&&(w?e.strokeStyle=w:o=!1)}var A=t.getGlobalScale();u.setScale(A[0],A[1],t.segmentIgnoreThreshold);var z,O;e.setLineDash&&n.lineDash&&(i=QSe(t),z=i[0],O=i[1]);var T=!0;(c||d&wR)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),T=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),T&&u.rebuildPath(e,l?s:1),z&&(e.setLineDash(z),e.lineDashOffset=O),r||(n.strokeFirst?(o&&sqe(e,n),a&&aqe(e,n)):(a&&aqe(e,n),o&&sqe(e,n))),z&&e.setLineDash([])}function Blr(e,t,n){var r=t.__image=bSe(n.image,t.__image,t,t.onload);if(!(!r||!gJ(r))){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(r,c,u,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var c=n.sx,u=n.sy,d=a-c,p=s-u;e.drawImage(r,c,u,d,p,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function jlr(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||iw,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=QSe(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(EU(n)&&e.strokeText(i,n.x,n.y),RU(n)&&e.fillText(i,n.x,n.y)):(RU(n)&&e.fillText(i,n.x,n.y),EU(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var lqe=["shadowBlur","shadowOffsetX","shadowOffsetY"],cqe=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Kvt(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){np(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?ez.opacity:a}(r||t.blend!==n.blend)&&(o||(np(e,i),o=!0),e.globalCompositeOperation=t.blend||ez.blend);for(var s=0;s<lqe.length;s++){var l=lqe[s];(r||t[l]!==n[l])&&(o||(np(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(np(e,i),o=!0),e.shadowColor=t.shadowColor||ez.shadowColor),o}function uqe(e,t,n,r,i){var o=Sq(t,i.inHover),a=r?null:n&&Sq(n,i.inHover)||{};if(o===a)return!1;var s=Kvt(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(np(e,i),s=!0),oqe(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(np(e,i),s=!0),oqe(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(np(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(np(e,i),s=!0),e.lineWidth=c)}for(var u=0;u<cqe.length;u++){var d=cqe[u],p=d[0];(r||o[p]!==a[p])&&(s||(np(e,i),s=!0),e[p]=o[p]||d[1])}return s}function Hlr(e,t,n,r,i){return Kvt(e,Sq(t,i.inHover),n&&Sq(n,i.inHover),r,i)}function Qvt(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Vlr(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),Qvt(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function Glr(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var dqe=1,pqe=2,hqe=3,fqe=4;function $lr(e){var t=RU(e),n=EU(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function np(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Sq(e,t){return t&&e.__hoverStyle||e.style}function ZSe(e,t){CO(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function CO(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~Up,t.__isRendered=!1;return}var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||Nlr(o,a))&&(a&&a.length&&(np(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(np(e,n),e.save(),Vlr(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u=t instanceof Di&&t.autoBatch&&$lr(t.style);s||Glr(i,c.transform)?(np(e,n),Qvt(e,t)):u||np(e,n);var d=Sq(t,n.inHover);t instanceof Di?(n.lastDrawType!==dqe&&(l=!0,n.lastDrawType=dqe),uqe(e,t,c,l,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),qlr(e,t,d,u),u&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof LP?(n.lastDrawType!==hqe&&(l=!0,n.lastDrawType=hqe),uqe(e,t,c,l,n),jlr(e,t,d)):t instanceof Du?(n.lastDrawType!==pqe&&(l=!0,n.lastDrawType=pqe),Hlr(e,t,c,l,n),Blr(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==fqe&&(l=!0,n.lastDrawType=fqe),Ulr(e,t,n)),u&&r&&np(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Ulr(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=t.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),CO(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var c=0,u=i.length;c<u;c++){var l=i[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),CO(e,l,o,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var jae=new Olr,gqe=new WB(100),mqe=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function FP(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&&jae.delete(e);var o=jae.get(e);if(o)return o;var a=br(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,jae.set(e,s),e.dirty=!1,s;function l(c){for(var u=[n],d=!0,p=0;p<mqe.length;++p){var h=a[mqe[p]];if(h!=null&&!Ht(h)&&!An(h)&&!yo(h)&&typeof h!="boolean"){d=!1;break}u.push(h)}var g;if(d){g=u.join(",")+(i?"-svg":"");var m=gqe.get(g);m&&(i?c.svgElement=m:c.image=m)}var b=Jvt(a.dashArrayX),y=Xlr(a.dashArrayY),M=Zvt(a.symbol),C=Ylr(b),x=ebt(y),w=!i&&wm.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},A=O(),z;w&&(w.width=A.width*n,w.height=A.height*n,z=w.getContext("2d")),T(),d&&gqe.put(g,w||S),c.image=w,c.svgElement=S,c.svgWidth=A.width,c.svgHeight=A.height;function O(){for(var R=1,P=0,F=C.length;P<F;++P)R=DFe(R,C[P]);for(var N=1,P=0,F=M.length;P<F;++P)N=DFe(N,M[P].length);R*=N;var L=x*C.length*M.length;return{width:Math.max(1,Math.min(R,a.maxTileWidth)),height:Math.max(1,Math.min(L,a.maxTileHeight))}}function T(){z&&(z.clearRect(0,0,w.width,w.height),a.backgroundColor&&(z.fillStyle=a.backgroundColor,z.fillRect(0,0,w.width,w.height)));for(var R=0,P=0;P<y.length;++P)R+=y[P];if(R<=0)return;for(var F=-x,N=0,L=0,W=0;F<A.height;){if(N%2===0){for(var j=L/2%M.length,V=0,G=0,q=0;V<A.width*2;){for(var $=0,P=0;P<b[W].length;++P)$+=b[W][P];if($<=0)break;if(G%2===0){var U=(1-a.symbolSize)*.5,X=V+b[W][G]*U,Q=F+y[N]*U,re=b[W][G]*a.symbolSize,ee=y[N]*a.symbolSize,se=q/2%M[j].length;pe(X,Q,re,ee,M[j][se])}V+=b[W][G],++q,++G,G===b[W].length&&(G=0)}++W,W===b.length&&(W=0)}F+=y[N],++L,++N,N===y.length&&(N=0)}function pe(te,ce,oe,ae,ne){var le=i?1:n,he=sc(ne,te*le,ce*le,oe*le,ae*le,a.color,a.symbolKeepAspect);if(i){var be=r.painter.renderOneToVNode(he);be&&S.children.push(be)}else ZSe(z,he)}}}}function Zvt(e){if(!e||e.length===0)return[["rect"]];if(An(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!An(e[n])){t=!1;break}if(t)return Zvt([e]);for(var r=[],n=0;n<e.length;++n)An(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Jvt(e){if(!e||e.length===0)return[[0,0]];if(yo(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!yo(e[r])){n=!1;break}if(n)return Jvt([e]);for(var i=[],r=0;r<e.length;++r)if(yo(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=Vt(e[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function Xlr(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(yo(e)){var t=Math.ceil(e);return[t,t]}var n=Vt(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function Ylr(e){return Vt(e,function(t){return ebt(t)})}function ebt(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function Klr(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=FP(s,t)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=FP(i,t)}}})}var Fg=new Zf,tbt={};function Qlr(e,t){tbt[e]=t}function nbt(e){return tbt[e]}var Zlr="5.6.0",Jlr={zrender:"5.6.1"},ecr=1,tcr=800,ncr=900,rcr=1e3,icr=2e3,ocr=5e3,rbt=1e3,acr=1100,JSe=2e3,ibt=3e3,scr=4e3,DJ=4500,lcr=4600,ccr=5e3,ucr=6e3,obt=7e3,abt={PROCESSOR:{FILTER:rcr,SERIES_FILTER:tcr,STATISTIC:ocr},VISUAL:{LAYOUT:rbt,PROGRESSIVE_LAYOUT:acr,GLOBAL:JSe,CHART:ibt,POST_CHART_LAYOUT:lcr,COMPONENT:scr,BRUSH:ccr,CHART_ITEM:DJ,ARIA:ucr,DECAL:obt}},Ud="__flagInMainProcess",L1="__pendingUpdate",Hae="__needsUpdateStatus",vqe=/^[a-zA-Z0-9_]+$/,Vae="__connectUpdateStatus",bqe=0,dcr=1,pcr=2;function sbt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return cbt(this,e,t)}}function lbt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cbt(this,e,t)}}function cbt(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Zf.prototype[t].apply(e,n)}var ubt=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Zf),dbt=ubt.prototype;dbt.on=lbt("on");dbt.off=lbt("off");var XE,Gae,MV,dC,$ae,Uae,Xae,b_,y_,yqe,Mqe,Yae,Cqe,CV,xqe,pbt,_h,wqe,IU=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,new Mlr)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},An(r)&&(r=hbt[r]),o._dom=n;var a="canvas",s="auto",l=!1;i.ssr&&Kgt(function(p){var h=_r(p),g=h.dataIndex;if(g!=null){var m=Kn();return m.set("series_index",h.seriesIndex),m.set("data_index",g),h.ssrType&&m.set("ssr_type",h.ssrType),m}});var c=o._zr=Ime(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Xr(i.useDirtyRect,l),useCoarsePointer:Xr(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=PJ(Rn(c.flush,c),17),r=Or(r),r&&bvt(r,!0),o._theme=r,o._locale=Ear(i.locale||Kmt),o._coordSysMgr=new dk;var u=o._api=xqe(o);function d(p,h){return p.__prio-h.__prio}return F7(DU,d),F7(ove,d),o._scheduler=new Hvt(o,u,ove,DU),o._messageCenter=new ubt,o._initEvents(),o.resize=Rn(o.resize,o),c.animation.on("frame",o._onframe,o),yqe(c,o),Mqe(c,o),lq(o),o}return t.prototype._onframe=function(){if(!this._disposed){wqe(this);var n=this._scheduler;if(this[L1]){var r=this[L1].silent;this[Ud]=!0;try{XE(this),dC.update.call(this,null,this[L1].updateParams)}catch(l){throw this[Ud]=!1,this[L1]=null,l}this._zr.flush(),this[Ud]=!1,this[L1]=null,b_.call(this,r),y_.call(this,r)}else if(n.unfinished){var i=ecr,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),Uae(this,o),n.performVisualTasks(o),CV(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[Ud]){if(this._disposed){this.id;return}var o,a,s;if(xr(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[Ud]=!0,!this._model||r){var l=new nsr(this._api),c=this._theme,u=this._model=new GSe;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,c,this._locale,l)}this._model.setOption(n,{replaceMerge:a},ave);var d={seriesTransition:s,optionChanged:!0};if(i)this[L1]={silent:o,updateParams:d},this[Ud]=!1,this.getZr().wakeUp();else{try{XE(this),dC.update.call(this,null,d)}catch(p){throw this[L1]=null,this[Ud]=!1,p}this._ssr||this._zr.flush(),this[L1]=null,this[Ud]=!1,b_.call(this,o),y_.call(this,o)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ii.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ii.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return ye(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;ye(r,function(l){i.eachComponent({mainType:l},function(c){var u=a._componentsMap[c.__viewId];u.group.ignore||(o.push(u),u.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return ye(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(kU[i]){var l=s,c=s,u=-s,d=-s,p=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();ye(rz,function(C,x){if(C.group===i){var w=r?C.getZr().painter.getSvgDom().innerHTML:C.renderToCanvas(Or(n)),S=C.getDom().getBoundingClientRect();l=o(S.left,l),c=o(S.top,c),u=a(S.right,u),d=a(S.bottom,d),p.push({dom:w,left:S.left,top:S.top})}}),l*=h,c*=h,u*=h,d*=h;var g=u-l,m=d-c,b=wm.createCanvas(),y=Ime(b,{renderer:r?"svg":"canvas"});if(y.resize({width:g,height:m}),r){var M="";return ye(p,function(C){var x=C.left-l,w=C.top-c;M+='<g transform="translate('+x+","+w+')">'+C.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=M,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new ao({shape:{x:0,y:0,width:g,height:m},style:{fill:n.connectedBackgroundColor}})),ye(p,function(C){var x=new Du({style:{x:C.left*h-l,y:C.top*h-c,image:C.dom}});y.add(x)}),y.refreshImmediately(),b.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return $ae(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return $ae(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=EF(i,n);return ye(a,function(s,l){l.indexOf("Models")>=0&&ye(s,function(c){var u=c.coordinateSystem;if(u&&u.containPoint)o=o||!!u.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[c.__viewId];d&&d.containPoint&&(o=o||d.containPoint(r,c))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=EF(i,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?KSe(s,l,r):XB(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;ye(hcr,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,c=r==="globalout";if(c?l={}:s&&yO(s,function(g){var m=_r(g);if(m&&m.dataIndex!=null){var b=m.dataModel||a.getSeriesByIndex(m.seriesIndex);return l=b&&b.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=Nt({},m.eventData),!0},!0),l){var u=l.componentType,d=l.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",d=l.seriesIndex);var p=u&&d!=null&&a.getComponent(u,d),h=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:h},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),ye(LF,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),ye(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),wlr(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&smt(this.getDom(),tAe,"");var r=this,i=r._api,o=r._model;ye(r._componentsViews,function(a){a.dispose(o,i)}),ye(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete rz[r.id]},t.prototype.resize=function(n){if(!this[Ud]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[L1]&&(o==null&&(o=this[L1].silent),i=!0,this[L1]=null),this[Ud]=!0;try{i&&XE(this),dC.update.call(this,{type:"resize",animation:Nt({duration:0},n&&n.animation)})}catch(a){throw this[Ud]=!1,a}this[Ud]=!1,b_.call(this,o),y_.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(xr(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!sve[n]){var i=sve[n](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Nt({},n);return r.type=LF[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(xr(r)||(r={silent:!!r}),!!PU[n.type]&&this._model){if(this[Ud]){this._pendingActions.push(n);return}var i=r.silent;Xae.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Ii.browser.weChat&&this._throttledZrFlush(),b_.call(this,i),y_.call(this,i)}},t.prototype.updateLabelLayout=function(){Fg.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){XE=function(d){var p=d._scheduler;p.restorePipelines(d._model),p.prepareStageTasks(),Gae(d,!0),Gae(d,!1),p.plan()},Gae=function(d,p){for(var h=d._model,g=d._scheduler,m=p?d._componentsViews:d._chartsViews,b=p?d._componentsMap:d._chartsMap,y=d._zr,M=d._api,C=0;C<m.length;C++)m[C].__alive=!1;p?h.eachComponent(function(S,A){S!=="series"&&x(A)}):h.eachSeries(x);function x(S){var A=S.__requireNewView;S.__requireNewView=!1;var z="_ec_"+S.id+"_"+S.type,O=!A&&b[z];if(!O){var T=tb(S.type),R=p?us.getClass(T.main,T.sub):pa.getClass(T.sub);O=new R,O.init(h,M),b[z]=O,m.push(O),y.add(O.group)}S.__viewId=O.__id=z,O.__alive=!0,O.__model=S,O.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!p&&g.prepareView(O,S,h,M)}for(var C=0;C<m.length;){var w=m[C];w.__alive?C++:(!p&&w.renderTask.dispose(),y.remove(w.group),w.dispose(h,M),m.splice(C,1),b[w.__id]===w&&delete b[w.__id],w.__id=w.group.__ecComponentInfo=null)}},MV=function(d,p,h,g,m){var b=d._model;if(b.setUpdatePayload(h),!g){ye([].concat(d._componentsViews).concat(d._chartsViews),w);return}var y={};y[g+"Id"]=h[g+"Id"],y[g+"Index"]=h[g+"Index"],y[g+"Name"]=h[g+"Name"];var M={mainType:g,query:y};m&&(M.subType=m);var C=h.excludeSeriesId,x;C!=null&&(x=Kn(),ye(Ea(C),function(S){var A=Zc(S,null);A!=null&&x.set(A,!0)})),b&&b.eachComponent(M,function(S){var A=x&&x.get(S.id)!=null;if(!A)if(oWe(h))if(S instanceof Ia)h.type===tz&&!h.notBlur&&!S.get(["emphasis","disabled"])&&Ior(S,h,d._api);else{var z=SSe(S.mainType,S.componentIndex,h.name,d._api),O=z.focusSelf,T=z.dispatchers;h.type===tz&&O&&!h.notBlur&&Bme(S.mainType,S.componentIndex,d._api),T&&ye(T,function(R){h.type===tz?rM(R):iM(R)})}else Hme(h)&&S instanceof Ia&&(kor(S,h,d._api),rWe(S),_h(d))},d),b&&b.eachComponent(M,function(S){var A=x&&x.get(S.id)!=null;A||w(d[g==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},d);function w(S){S&&S.__alive&&S[p]&&S[p](S.__model,b,d._api,h)}},dC={prepareAndUpdate:function(d){XE(this),dC.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,p){var h=this._model,g=this._api,m=this._zr,b=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(d),y.restoreData(h,d),y.performSeriesTasks(h),b.create(h,g),y.performDataProcessorTasks(h,d),Uae(this,h),b.update(h,g),n(h),y.performVisualTasks(h,d),Yae(this,h,g,d,p);var M=h.get("backgroundColor")||"transparent",C=h.get("darkMode");m.setBackgroundColor(M),C!=null&&C!=="auto"&&m.setDarkMode(C),Fg.trigger("afterupdate",h,g)}},updateTransform:function(d){var p=this,h=this._model,g=this._api;if(h){h.setUpdatePayload(d);var m=[];h.eachComponent(function(y,M){if(y!=="series"){var C=p.getViewOfComponentModel(M);if(C&&C.__alive)if(C.updateTransform){var x=C.updateTransform(M,h,g,d);x&&x.update&&m.push(C)}else m.push(C)}});var b=Kn();h.eachSeries(function(y){var M=p._chartsMap[y.__viewId];if(M.updateTransform){var C=M.updateTransform(y,h,g,d);C&&C.update&&b.set(y.uid,1)}else b.set(y.uid,1)}),n(h),this._scheduler.performVisualTasks(h,d,{setDirty:!0,dirtyMap:b}),CV(this,h,g,d,{},b),Fg.trigger("afterupdate",h,g)}},updateView:function(d){var p=this._model;p&&(p.setUpdatePayload(d),pa.markUpdateMethod(d,"updateView"),n(p),this._scheduler.performVisualTasks(p,d,{setDirty:!0}),Yae(this,p,this._api,d,{}),Fg.trigger("afterupdate",p,this._api))},updateVisual:function(d){var p=this,h=this._model;h&&(h.setUpdatePayload(d),h.eachSeries(function(g){g.getData().clearAllVisual()}),pa.markUpdateMethod(d,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,d,{visualType:"visual",setDirty:!0}),h.eachComponent(function(g,m){if(g!=="series"){var b=p.getViewOfComponentModel(m);b&&b.__alive&&b.updateVisual(m,h,p._api,d)}}),h.eachSeries(function(g){var m=p._chartsMap[g.__viewId];m.updateVisual(g,h,p._api,d)}),Fg.trigger("afterupdate",h,this._api))},updateLayout:function(d){dC.update.call(this,d)}},$ae=function(d,p,h,g){if(d._disposed){d.id;return}for(var m=d._model,b=d._coordSysMgr.getCoordinateSystems(),y,M=EF(m,h),C=0;C<b.length;C++){var x=b[C];if(x[p]&&(y=x[p](m,M,g))!=null)return y}},Uae=function(d,p){var h=d._chartsMap,g=d._scheduler;p.eachSeries(function(m){g.updateStreamModes(m,h[m.__viewId])})},Xae=function(d,p){var h=this,g=this.getModel(),m=d.type,b=d.escapeConnect,y=PU[m],M=y.actionInfo,C=(M.update||"update").split(":"),x=C.pop(),w=C[0]!=null&&tb(C[0]);this[Ud]=!0;var S=[d],A=!1;d.batch&&(A=!0,S=Vt(d.batch,function(N){return N=br(Nt({},N),d),N.batch=null,N}));var z=[],O,T=Hme(d),R=oWe(d);if(R&&Emt(this._api),ye(S,function(N){if(O=y.action(N,h._model,h._api),O=O||Nt({},N),O.type=M.event||O.type,z.push(O),R){var L=mSe(d),W=L.queryOptionMap,j=L.mainTypeSpecified,V=j?W.keys()[0]:"series";MV(h,x,N,V),_h(h)}else T?(MV(h,x,N,"series"),_h(h)):w&&MV(h,x,N,w.main,w.sub)}),x!=="none"&&!R&&!T&&!w)try{this[L1]?(XE(this),dC.update.call(this,d),this[L1]=null):dC[x].call(this,d)}catch(N){throw this[Ud]=!1,N}if(A?O={type:M.event||m,escapeConnect:b,batch:z}:O=z[0],this[Ud]=!1,!p){var P=this._messageCenter;if(P.trigger(O.type,O),T){var F={type:"selectchanged",escapeConnect:b,selected:Lor(g),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};P.trigger(F.type,F)}}},b_=function(d){for(var p=this._pendingActions;p.length;){var h=p.shift();Xae.call(this,h,d)}},y_=function(d){!d&&this.trigger("updated")},yqe=function(d,p){d.on("rendered",function(h){p.trigger("rendered",h),d.animation.isFinished()&&!p[L1]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},Mqe=function(d,p){d.on("mouseover",function(h){var g=h.target,m=yO(g,vq);m&&(Por(m,h,p._api),_h(p))}).on("mouseout",function(h){var g=h.target,m=yO(g,vq);m&&(Dor(m,h,p._api),_h(p))}).on("click",function(h){var g=h.target,m=yO(g,function(M){return _r(M).dataIndex!=null},!0);if(m){var b=m.selected?"unselect":"select",y=_r(m);p._api.dispatchAction({type:b,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(d){d.clearColorPalette(),d.eachSeries(function(p){p.clearColorPalette()})}function r(d){var p=[],h=[],g=!1;if(d.eachComponent(function(M,C){var x=C.get("zlevel")||0,w=C.get("z")||0,S=C.getZLevelKey();g=g||!!S,(M==="series"?h:p).push({zlevel:x,z:w,idx:C.componentIndex,type:M,key:S})}),g){var m=p.concat(h),b,y;F7(m,function(M,C){return M.zlevel===C.zlevel?M.z-C.z:M.zlevel-C.zlevel}),ye(m,function(M){var C=d.getComponent(M.type,M.idx),x=M.zlevel,w=M.key;b!=null&&(x=Math.max(b,x)),w?(x===b&&w!==y&&x++,y=w):y&&(x===b&&x++,y=""),b=x,C.setZLevel(x)})}}Yae=function(d,p,h,g,m){r(p),Cqe(d,p,h,g,m),ye(d._chartsViews,function(b){b.__alive=!1}),CV(d,p,h,g,m),ye(d._chartsViews,function(b){b.__alive||b.remove(p,h)})},Cqe=function(d,p,h,g,m,b){ye(b||d._componentsViews,function(y){var M=y.__model;c(M,y),y.render(M,p,h,g),s(M,y),u(M,y)})},CV=function(d,p,h,g,m,b){var y=d._scheduler;m=Nt(m||{},{updatedSeries:p.getSeries()}),Fg.trigger("series:beforeupdate",p,h,m);var M=!1;p.eachSeries(function(C){var x=d._chartsMap[C.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,g),c(C,x),b&&b.get(C.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(M=!0),x.group.silent=!!C.get("silent"),a(C,x),rWe(C)}),y.unfinished=M||y.unfinished,Fg.trigger("series:layoutlabels",p,h,m),Fg.trigger("series:transition",p,h,m),p.eachSeries(function(C){var x=d._chartsMap[C.__viewId];s(C,x),u(C,x)}),o(d,p),Fg.trigger("series:afterupdate",p,h,m)},_h=function(d){d[Hae]=!0,d.getZr().wakeUp()},wqe=function(d){d[Hae]&&(d.getZr().storage.traverse(function(p){kI(p)||i(p)}),d[Hae]=!1)};function i(d){for(var p=[],h=d.currentStates,g=0;g<h.length;g++){var m=h[g];m==="emphasis"||m==="blur"||m==="select"||p.push(m)}d.selected&&d.states.select&&p.push("select"),d.hoverState===bJ&&d.states.emphasis?p.push("emphasis"):d.hoverState===jB&&d.states.blur&&p.push("blur"),d.useStates(p)}function o(d,p){var h=d._zr,g=h.storage,m=0;g.traverse(function(b){b.isGroup||m++}),m>p.get("hoverLayerThreshold")&&!Ii.node&&!Ii.worker&&p.eachSeries(function(b){if(!b.preventUsingHoverLayer){var y=d._chartsMap[b.__viewId];y.__alive&&y.eachRendered(function(M){M.states.emphasis&&(M.states.emphasis.hoverLayer=!0)})}})}function a(d,p){var h=d.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=h)})}function s(d,p){if(!d.preventAutoZ){var h=d.get("z")||0,g=d.get("zlevel")||0;p.eachRendered(function(m){return l(m,h,g,-1/0),!0})}}function l(d,p,h,g){var m=d.getTextContent(),b=d.getTextGuideLine(),y=d.isGroup;if(y)for(var M=d.childrenRef(),C=0;C<M.length;C++)g=Math.max(l(M[C],p,h,g),g);else d.z=p,d.zlevel=h,g=Math.max(d.z2,g);if(m&&(m.z=p,m.zlevel=h,isFinite(g)&&(m.z2=g+2)),b){var x=d.textGuideLineConfig;b.z=p,b.zlevel=h,isFinite(g)&&(b.z2=g+(x&&x.showAbove?1:-1))}return g}function c(d,p){p.eachRendered(function(h){if(!kI(h)){var g=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function u(d,p){var h=d.getModel("stateAnimation"),g=d.isAnimationEnabled(),m=h.get("duration"),b=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(y){if(y.states&&y.states.emphasis){if(kI(y))return;if(y instanceof Di&&qor(y),y.__dirty){var M=y.prevStates;M&&y.useStates(M)}if(g){y.stateTransition=b;var C=y.getTextContent(),x=y.getTextGuideLine();C&&(C.stateTransition=b),x&&(x.stateTransition=b)}y.__dirty&&i(y)}})}xqe=function(d){return new((function(p){gt(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(g){for(;g;){var m=g.__ecComponentInfo;if(m!=null)return d._model.getComponent(m.mainType,m.index);g=g.parent}},h.prototype.enterEmphasis=function(g,m){rM(g,m),_h(d)},h.prototype.leaveEmphasis=function(g,m){iM(g,m),_h(d)},h.prototype.enterBlur=function(g){Amt(g),_h(d)},h.prototype.leaveBlur=function(g){wSe(g),_h(d)},h.prototype.enterSelect=function(g){Omt(g),_h(d)},h.prototype.leaveSelect=function(g){zmt(g),_h(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(g){return d.getViewOfComponentModel(g)},h.prototype.getViewOfSeriesModel=function(g){return d.getViewOfSeriesModel(g)},h})(mvt))(d)},pbt=function(d){function p(h,g){for(var m=0;m<h.length;m++){var b=h[m];b[Vae]=g}}ye(LF,function(h,g){d._messageCenter.on(g,function(m){if(kU[d.group]&&d[Vae]!==bqe){if(m&&m.escapeConnect)return;var b=d.makeActionFromEvent(m),y=[];ye(rz,function(M){M!==d&&M.group===d.group&&y.push(M)}),p(y,bqe),ye(y,function(M){M[Vae]!==dcr&&M.dispatchAction(b)}),p(y,pcr)}})})}})(),t})(Zf),eAe=IU.prototype;eAe.on=sbt("on");eAe.off=sbt("off");eAe.one=function(e,t,n){var r=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),r.off(e,i)}this.on.call(this,e,i,n)};var hcr=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var PU={},LF={},ove=[],ave=[],DU=[],hbt={},sve={},rz={},kU={},fcr=+new Date-0,gcr=+new Date-0,tAe="_echarts_instance_";function mcr(e,t,n){var r=!(n&&n.ssr);if(r){var i=nAe(e);if(i)return i}var o=new IU(e,t,n);return o.id="ec_"+fcr++,rz[o.id]=o,r&&smt(e,tAe,o.id),pbt(o),Fg.trigger("afterinit",o),o}function vcr(e){if(Ht(e)){var t=e;e=null,ye(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+gcr++,ye(t,function(n){n.group=e})}return kU[e]=!0,e}function fbt(e){kU[e]=!1}var bcr=fbt;function ycr(e){An(e)?e=rz[e]:e instanceof IU||(e=nAe(e)),e instanceof IU&&!e.isDisposed()&&e.dispose()}function nAe(e){return rz[zir(e,tAe)]}function Mcr(e){return rz[e]}function rAe(e,t){hbt[e]=t}function iAe(e){hi(ave,e)<0&&ave.push(e)}function oAe(e,t){aAe(ove,e,t,icr)}function gbt(e){kJ("afterinit",e)}function mbt(e){kJ("afterupdate",e)}function kJ(e,t){Fg.on(e,t)}function Nm(e,t,n){fr(t)&&(n=t,t="");var r=xr(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!LF[t]&&(S0(vqe.test(r)&&vqe.test(t)),PU[r]||(PU[r]={action:n,actionInfo:e}),LF[t]=r)}function vbt(e,t){dk.register(e,t)}function Ccr(e){var t=dk.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function bbt(e,t){aAe(DU,e,t,rbt,"layout")}function qw(e,t){aAe(DU,e,t,ibt,"visual")}var Sqe=[];function aAe(e,t,n,r,i){if((fr(t)||xr(t))&&(n=t,t=r),!(hi(Sqe,n)>=0)){Sqe.push(n);var o=Hvt.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function sAe(e,t){sve[e]=t}function xcr(e){pgt({createCanvas:e})}function ybt(e,t,n){var r=nbt("registerMap");r&&r(e,t,n)}function wcr(e){var t=nbt("getMap");return t&&t(e)}var Mbt=ksr;qw(JSe,alr);qw(DJ,slr);qw(DJ,llr);qw(JSe,Clr);qw(DJ,xlr);qw(obt,Klr);iAe(bvt);oAe(ncr,fsr);sAe("default",clr);Nm({type:tz,event:tz,update:tz},Nl);Nm({type:V7,event:V7,update:V7},Nl);Nm({type:RF,event:RF,update:RF},Nl);Nm({type:G7,event:G7,update:G7},Nl);Nm({type:IF,event:IF,update:IF},Nl);rAe("light",ylr);rAe("dark",Uvt);var Scr={},Aqe=[],Acr={registerPreprocessor:iAe,registerProcessor:oAe,registerPostInit:gbt,registerPostUpdate:mbt,registerUpdateLifecycle:kJ,registerAction:Nm,registerCoordinateSystem:vbt,registerLayout:bbt,registerVisual:qw,registerTransform:Mbt,registerLoading:sAe,registerMap:ybt,registerImpl:Qlr,PRIORITY:abt,ComponentModel:Ri,ComponentView:us,SeriesModel:Ia,ChartView:pa,registerComponentModel:function(e){Ri.registerClass(e)},registerComponentView:function(e){us.registerClass(e)},registerSeriesModel:function(e){Ia.registerClass(e)},registerChartView:function(e){pa.registerClass(e)},registerSubTypeDefaulter:function(e,t){Ri.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Xgt(e,t)}};function Si(e){if(Ht(e)){ye(e,function(t){Si(t)});return}hi(Aqe,e)>=0||(Aqe.push(e),fr(e)&&(e={install:e}),e.install(Acr))}function M_(e){return e==null?0:e.length||1}function Oqe(e){return e}var oM=(function(){function e(t,n,r,i,o,a){this._old=t,this._new=n,this._oldKeyGetter=r||Oqe,this._newKeyGetter=i||Oqe,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=r[s],c=M_(l);if(c>1){var u=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(u,a)}else c===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],c=r[l],u=i[l],d=M_(c),p=M_(u);if(d>1&&p===1)this._updateManyToOne&&this._updateManyToOne(u,c),i[l]=null;else if(d===1&&p>1)this._updateOneToMany&&this._updateOneToMany(u,c),i[l]=null;else if(d===1&&p===1)this._update&&this._update(u,c),i[l]=null;else if(d>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,c),i[l]=null;else if(d>1)for(var h=0;h<d;h++)this._remove&&this._remove(c[h]);else this._remove&&this._remove(c)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var i=t[r],o=n[i],a=M_(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[i]=null}},e.prototype._initIndexMap=function(t,n,r,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(r[a]=s),!!n){var l=n[s],c=M_(l);c===0?(n[s]=a,o&&r.push(s)):c===1?n[s]=[l,a]:l.push(a)}}},e})(),Ocr=(function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function zcr(e,t){var n={},r=n.encode={},i=Kn(),o=[],a=[],s={};ye(e.dimensions,function(p){var h=e.getDimensionInfo(p),g=h.coordDim;if(g){var m=h.coordDimIndex;Kae(r,g)[m]=p,h.isExtraCoord||(i.set(g,1),Tcr(h.type)&&(o[0]=p),Kae(s,g)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&a.push(p)}cvt.each(function(b,y){var M=Kae(r,y),C=h.otherDims[y];C!=null&&C!==!1&&(M[C]=h.name)})});var l=[],c={};i.each(function(p,h){var g=r[h];c[h]=g[0],l=l.concat(g)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Vt(l,function(p){return e.getDimensionInfo(p).storeDimIndex}),n.encodeFirstDimNotExtra=c;var u=r.label;u&&u.length&&(o=u.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Ocr(s,t),n}function Kae(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function LU(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Tcr(e){return!(e==="ordinal"||e==="time")}var K7=(function(){function e(t){this.otherDims={},t!=null&&Nt(this,t)}return e})(),Ecr=mo(),Rcr={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Cbt=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Sbt(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Xr(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=Mvt(this.source),r=!Abt(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,c=void 0,u=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===a)l=n?d.name:null,c=d.type,u=d.ordinalMeta,s++;else{var p=this.getSourceDimension(a);p&&(l=n?p.name:null,c=p.type)}o.push({property:l,type:c,ordinalMeta:u}),n&&l!=null&&(!d||!d.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Rcr[c]||"f",u&&(i+=u.uid),i+="$"}var h=this.source,g=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:o,hash:g}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(n);a&&(i=a.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function xbt(e){return e instanceof Cbt}function wbt(e){for(var t=Kn(),n=0;n<(e||[]).length;n++){var r=e[n],i=xr(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function Sbt(e){var t=Ecr(e);return t.dimNameMap||(t.dimNameMap=wbt(e.dimensionsDefine))}function Abt(e){return e>30}var C_=xr,pC=Vt,Icr=typeof Int32Array>"u"?Array:Int32Array,Pcr="e\0\0",zqe=-1,Dcr=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kcr=["_approximateExtent"],Tqe,xV,x_,w_,Qae,S_,Zae,y0=(function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;xbt(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,c={},u=0;u<r.length;u++){var d=r[u],p=An(d)?new K7({name:d}):d instanceof K7?d:new K7(d),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var g=p.otherDims=p.otherDims||{};a.push(h),o[h]=p,c[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),g.itemName===0&&(this._nameDimIdx=u),g.itemId===0&&(this._idDimIdx=u),i&&(p.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=Kn();ye(a,function(b){m.set(o[b].storeDimIndex,b)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(yo(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var i=this,o;if(t instanceof Zme&&(o=t),!o){var a=this.dimensions,s=$Se(t)||Ad(t)?new Cvt(t,a.length):t;o=new Zme;var l=pC(a,function(c){return{type:i._dimInfos[c].type,property:c}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=zcr(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n&&n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=n[l],a&&Zae(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Nx&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===eg;if(l&&!i.pure)for(var c=[],u=t;u<n;u++){var d=i.getItem(u,c);if(!this.hasItemOption&&fir(d)&&(this.hasItemOption=!0),d){var p=d.name;o[u]==null&&p!=null&&(o[u]=Zc(p,null));var h=d.id;a[u]==null&&h!=null&&(a[u]=Zc(h,null))}}if(this._shouldMakeIdFromName())for(var u=t;u<n;u++)Zae(this,u);Tqe(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){C_(t)?Nt(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=x_(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},e.prototype.getId=function(t){return xV(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,i=this._store;return Ht(t)?i.getValues(pC(t,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],i=r&&r[n];return i==null||isNaN(i)?zqe:i},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){fr(t)&&(r=n,n=t,t=[]);var i=r||this,o=pC(w_(t),this._getStoreDimIndex,this);this._store.each(o,i?Rn(n,i):n)},e.prototype.filterSelf=function(t,n,r){fr(t)&&(r=n,n=t,t=[]);var i=r||this,o=pC(w_(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?Rn(n,i):n),this},e.prototype.selectRange=function(t){var n=this,r={},i=Hi(t);return ye(i,function(o){var a=n._getStoreDimIndex(o);r[a]=t[o]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){fr(t)&&(r=n,n=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(n&&n.apply(this,arguments))},r),i},e.prototype.map=function(t,n,r,i){var o=r||i||this,a=pC(w_(t),this._getStoreDimIndex,this),s=S_(this);return s._store=this._store.map(a,o?Rn(n,o):n),s},e.prototype.modify=function(t,n,r,i){var o=r||i||this,a=pC(w_(t),this._getStoreDimIndex,this);this._store.modify(a,o?Rn(n,o):n)},e.prototype.downSample=function(t,n,r,i){var o=S_(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),o},e.prototype.minmaxDownSample=function(t,n){var r=S_(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=S_(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new No(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new oM(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return xV(t,r)},function(r){return xV(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},C_(t)?Nt(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],i=r&&r[n];return i??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),Ht(o)?o=o.slice():C_(o)&&(o=Nt({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,C_(n)?Nt(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){C_(t)?Nt(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Nt(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Wme(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){ye(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:pC(this.dimensions,this._getDimInfo,this),this.hostModel)),Qae(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];fr(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(aJ(arguments)))})},e.internalField=(function(){Tqe=function(t){var n=t._invertedIndicesMap;ye(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new Icr(a.categories.length);for(var l=0;l<r.length;l++)r[l]=zqe;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},x_=function(t,n,r){return Zc(t._getCategory(n,r),null)},xV=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=x_(t,t._idDimIdx,n)),r==null&&(r=Pcr+n),r},w_=function(t){return Ht(t)||(t=t!=null?[t]:[]),t},S_=function(t){var n=new e(t._schema?t._schema:pC(t.dimensions,t._getDimInfo,t),t.hostModel);return Qae(n,t),n},Qae=function(t,n){ye(Dcr.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,ye(kcr,function(r){t[r]=Or(n[r])}),t._calculationInfo=Nt({},n._calculationInfo)},Zae=function(t,n){var r=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=x_(t,o,n)),l==null&&a!=null&&(i[n]=l=x_(t,a,n)),l==null&&s!=null){var c=t._nameRepeatCount,u=c[s]=(c[s]||0)+1;l=s,u>1&&(l+="__ec__"+u),i[n]=l}}})(),e})();function Lcr(e,t){return gk(e,t).dimensions}function gk(e,t){$Se(e)||(e=USe(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Kn(),o=[],a=Ncr(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Abt(a),l=r===e.dimensionsDefine,c=l?Sbt(e):wbt(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,a));for(var d=Kn(u),p=new Evt(a),h=0;h<p.length;h++)p[h]=-1;function g(O){var T=p[O];if(T<0){var R=r[O],P=xr(R)?R:{name:R},F=new K7,N=P.name;N!=null&&c.get(N)!=null&&(F.name=F.displayName=N),P.type!=null&&(F.type=P.type),P.displayName!=null&&(F.displayName=P.displayName);var L=o.length;return p[O]=L,F.storeDimIndex=O,o.push(F),F}return o[T]}if(!s)for(var h=0;h<a;h++)g(h);d.each(function(O,T){var R=Ea(O).slice();if(R.length===1&&!An(R[0])&&R[0]<0){d.set(T,!1);return}var P=d.set(T,[]);ye(R,function(F,N){var L=An(F)?c.get(F):F;L!=null&&L<a&&(P[N]=L,b(g(L),T,N))})});var m=0;ye(n,function(O){var T,R,P,F;if(An(O))T=O,F={};else{F=O,T=F.name;var N=F.ordinalMeta;F.ordinalMeta=null,F=Nt({},F),F.ordinalMeta=N,R=F.dimsDef,P=F.otherDims,F.name=F.coordDim=F.coordDimIndex=F.dimsDef=F.otherDims=null}var L=d.get(T);if(L!==!1){if(L=Ea(L),!L.length)for(var W=0;W<(R&&R.length||1);W++){for(;m<a&&g(m).coordDim!=null;)m++;m<a&&L.push(m++)}ye(L,function(j,V){var G=g(j);if(l&&F.type!=null&&(G.type=F.type),b(br(G,F),T,V),G.name==null&&R){var q=R[V];!xr(q)&&(q={name:q}),G.name=G.displayName=q.name,G.defaultTooltip=q.defaultTooltip}P&&br(G.otherDims,P)})}});function b(O,T,R){cvt.get(T)!=null?O.otherDims[T]=R:(O.coordDim=T,O.coordDimIndex=R,i.set(T,!0))}var y=t.generateCoord,M=t.generateCoordCount,C=M!=null;M=y?M||1:0;var x=y||"value";function w(O){O.name==null&&(O.name=O.coordDim)}if(s)ye(o,function(O){w(O)}),o.sort(function(O,T){return O.storeDimIndex-T.storeDimIndex});else for(var S=0;S<a;S++){var A=g(S),z=A.coordDim;z==null&&(A.coordDim=Fcr(x,i,C),A.coordDimIndex=0,(!y||M<=0)&&(A.isExtraCoord=!0),M--),w(A),A.type==null&&(hvt(e,S)===fd.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return _cr(o),new Cbt({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function _cr(e){for(var t=Kn(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function Ncr(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return ye(t,function(o){var a;xr(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function Fcr(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Wcr=(function(){function e(t){this.coordSysDims=[],this.axisMap=Kn(),this.categoryAxisMap=Kn(),this.coordSysName=t}return e})();function qcr(e){var t=e.get("coordinateSystem"),n=new Wcr(t),r=Bcr[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Bcr={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Sc).models[0],o=e.getReferringComponents("yAxis",Sc).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),YE(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),YE(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Sc).models[0];t.coordSysDims=["single"],n.set("single",i),YE(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Sc).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),YE(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),YE(a)&&(r.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();ye(o.parallelAxisIndex,function(s,l){var c=i.getComponent("parallelAxis",s),u=a[l];n.set(u,c),YE(c)&&(r.set(u,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function YE(e){return e.get("type")==="category"}function Obt(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;jcr(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),c,u,d,p;if(ye(o,function(M,C){An(M)&&(o[C]=M={name:M}),l&&!M.isExtraCoord&&(!r&&!c&&M.ordinalMeta&&(c=M),!u&&M.type!=="ordinal"&&M.type!=="time"&&(!i||i===M.coordDim)&&(u=M))}),u&&!r&&!c&&(r=!0),u){d="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var h=u.coordDim,g=u.type,m=0;ye(o,function(M){M.coordDim===h&&m++});var b={name:d,coordDim:h,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:p,coordDim:p,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(b.storeDimIndex=s.ensureCalculationDimension(p,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),a.appendCalculationDimension(b),a.appendCalculationDimension(y)):(o.push(b),o.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:d}}function jcr(e){return!xbt(e.schema)}function aM(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function lAe(e,t){return aM(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Hcr(e,t){var n=e.get("coordinateSystem"),r=dk.get(n),i;return t&&t.coordSysDims&&(i=Vt(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=LU(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Vcr(e,t,n){var r,i;return n&&ye(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function r2(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;e?(o=!0,i=USe(e)):(i=r.getSource(),o=i.sourceFormat===eg);var a=qcr(t),s=Hcr(t,a),l=n.useEncodeDefaulter,c=fr(l)?l:l?Zr(pvt,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},d=gk(i,u),p=Vcr(d.dimensions,n.createInvertedIndices,a),h=o?null:r.getSharedDataStore(d),g=Obt(t,{schema:d,store:h}),m=new y0(d,t);m.setCalculationInfo(g);var b=p!=null&&Gcr(i)?function(y,M,C,x){return x===p?C:this.defaultDimValueGetter(y,M,C,x)}:null;return m.hasItemOption=!1,m.initData(o?i:h,null,b),m}function Gcr(e){if(e.sourceFormat===eg){var t=$cr(e.data||[]);return!Ht(ek(t))}}function $cr(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var i2=(function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();fJ(i2);var Ucr=0,lve=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Ucr}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Vt(r,Xcr);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!An(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Kn(this.categories))},e})();function Xcr(e){return xr(e)&&e.value!=null?e.value:e+""}function cve(e){return e.type==="interval"||e.type==="log"}function Ycr(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=hSe(o/t,!0);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=zbt(a),l=i.niceTickExtent=[wl(Math.ceil(e[0]/a)*a,s),wl(Math.floor(e[1]/a)*a,s)];return Kcr(l,e),i}function Jae(e){var t=Math.pow(10,hJ(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,wl(n*t)}function zbt(e){return tm(e)+2}function Eqe(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Kcr(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Eqe(e,0,t),Eqe(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function LJ(e,t){return e>=t[0]&&e<=t[1]}function _J(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function NJ(e,t){return e*(t[1]-t[0])+t[0]}var FJ=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new lve({})),Ht(i)&&(i=new lve({categories:Vt(i,function(o){return xr(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:An(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),LJ(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),_J(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(NJ(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a<l;++a){var c=r[a];i[a]=c,o[c]=a}for(var u=0;a<s;++a){for(;o[u]!=null;)u++;i.push(u),o[u]=a}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(i2);i2.registerClass(FJ);var gA=wl,sM=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return LJ(n,this._extent)},t.prototype.normalize=function(n){return _J(n,this._extent)},t.prototype.scale=function(n){return NJ(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=zbt(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]<o[0]&&(n?s.push({value:gA(o[0]-r,a)}):s.push({value:i[0]}));for(var c=o[0];c<=o[1]&&(s.push({value:c}),c=gA(c+r,a),c!==s[s.length-1].value);)if(s.length>l)return[];var u=s.length?s[s.length-1].value:o[1];return i[1]>u&&(n?s.push({value:gA(u+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<r.length;a++){for(var s=r[a],l=r[a-1],c=0,u=[],d=s.value-l.value,p=d/n;c<n-1;){var h=gA(l.value+(c+1)*p);h>o[0]&&h<o[1]&&u.push(h),c++}i.push(u)}return i},t.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=tm(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=gA(n.value,i,!0);return FSe(o)},t.prototype.calcNiceTicks=function(n,r,i){n=n||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=Ycr(o,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var a=this._interval;n.fixMin||(r[0]=gA(Math.floor(r[0]/a)*a)),n.fixMax||(r[1]=gA(Math.ceil(r[1]/a)*a))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t})(i2);i2.registerClass(sM);var Tbt=typeof Float32Array<"u",Qcr=Tbt?Float32Array:Array;function nb(e){return Ht(e)?Tbt?new Float32Array(e):e:new Qcr(e)}var uve="__ec_stack_";function Ebt(e){return e.get("stack")||uve+e.seriesIndex}function cAe(e){return e.dim+e.index}function Zcr(e){var t=[],n=e.axis,r="axis0";if(n.type==="category"){for(var i=n.getBandWidth(),o=0;o<e.count;o++)t.push(br({bandWidth:i,axisKey:r,stackId:uve+o},e));for(var a=Pbt(t),s=[],o=0;o<e.count;o++){var l=a[r][uve+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Rbt(e,t){var n=[];return t.eachSeriesByType(e,function(r){Lbt(r)&&n.push(r)}),n}function Jcr(e){var t={};ye(e,function(l){var c=l.coordinateSystem,u=c.getBaseAxis();if(!(u.type!=="time"&&u.type!=="value"))for(var d=l.getData(),p=u.dim+"_"+u.index,h=d.getDimensionIndex(d.mapDimension(u.dim)),g=d.getStore(),m=0,b=g.count();m<b;++m){var y=g.get(h,m);t[p]?t[p].push(y):t[p]=[y]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,c){return l-c});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function Ibt(e){var t=Jcr(e),n=[];return ye(e,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,c=t[l],u=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);s=c?u/p*c:u}else{var h=r.getData();s=Math.abs(a[1]-a[0])/h.count()}var g=vn(r.get("barWidth"),s),m=vn(r.get("barMaxWidth"),s),b=vn(r.get("barMinWidth")||(_bt(r)?.5:1),s),y=r.get("barGap"),M=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:m,barMinWidth:b,barGap:y,barCategoryGap:M,axisKey:cAe(o),stackId:Ebt(r)})}),Pbt(n)}function Pbt(e){var t={};ye(e,function(r,i){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var c=r.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var u=r.barWidth;u&&!l[c].width&&(l[c].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var d=r.barMaxWidth;d&&(l[c].maxWidth=d);var p=r.barMinWidth;p&&(l[c].minWidth=p);var h=r.barGap;h!=null&&(s.gap=h);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return ye(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Hi(o).length;s=Math.max(35-l*4,15)+"%"}var c=vn(s,a),u=vn(r.gap,1),d=r.remainedWidth,p=r.autoWidthCount,h=(d-c)/(p+(p-1)*u);h=Math.max(h,0),ye(o,function(y){var M=y.maxWidth,C=y.minWidth;if(y.width){var x=y.width;M&&(x=Math.min(x,M)),C&&(x=Math.max(x,C)),y.width=x,d-=x+u*x,p--}else{var x=h;M&&M<x&&(x=Math.min(M,d)),C&&C>x&&(x=C),x!==h&&(y.width=x,d-=x+u*x,p--)}}),h=(d-c)/(p+(p-1)*u),h=Math.max(h,0);var g=0,m;ye(o,function(y,M){y.width||(y.width=h),m=y,g+=y.width*(1+u)}),m&&(g-=m.width*u);var b=-g/2;ye(o,function(y,M){n[i][M]=n[i][M]||{bandWidth:a,offset:b,width:y.width},b+=y.width*(1+u)})}),n}function eur(e,t,n){if(e&&t){var r=e[cAe(t)];return r}}function Dbt(e,t){var n=Rbt(e,t),r=Ibt(n);ye(n,function(i){var o=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=Ebt(i),c=r[cAe(s)][l],u=c.offset,d=c.width;o.setLayout({bandWidth:c.bandWidth,offset:u,size:d})})}function kbt(e){return{seriesType:e,plan:pk(),reset:function(t){if(Lbt(t)){var n=t.getData(),r=t.coordinateSystem,i=r.getBaseAxis(),o=r.getOtherAxis(i),a=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(i.dim)),l=t.get("showBackground",!0),c=n.mapDimension(o.dim),u=n.getCalculationInfo("stackResultDimension"),d=aM(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),h=tur(i,o),g=_bt(t),m=t.get("barMinHeight")||0,b=u&&n.getDimensionIndex(u),y=n.getLayout("size"),M=n.getLayout("offset");return{progress:function(C,x){for(var w=C.count,S=g&&nb(w*3),A=g&&l&&nb(w*3),z=g&&nb(w),O=r.master.getRect(),T=p?O.width:O.height,R,P=x.getStore(),F=0;(R=C.next())!=null;){var N=P.get(d?b:a,R),L=P.get(s,R),W=h,j=void 0;d&&(j=+N-P.get(a,R));var V=void 0,G=void 0,q=void 0,$=void 0;if(p){var U=r.dataToPoint([N,L]);if(d){var X=r.dataToPoint([j,L]);W=X[0]}V=W,G=U[1]+M,q=U[0]-W,$=y,Math.abs(q)<m&&(q=(q<0?-1:1)*m)}else{var U=r.dataToPoint([L,N]);if(d){var X=r.dataToPoint([L,j]);W=X[1]}V=U[0]+M,G=W,q=y,$=U[1]-W,Math.abs($)<m&&($=($<=0?-1:1)*m)}g?(S[F]=V,S[F+1]=G,S[F+2]=p?q:$,A&&(A[F]=p?O.x:V,A[F+1]=p?G:O.y,A[F+2]=T),z[R]=R):x.setItemLayout(R,{x:V,y:G,width:q,height:$}),F+=3}g&&x.setLayout({largePoints:S,largeDataIndices:z,largeBackgroundPoints:A,valueAxisHorizontal:p})}}}}}}function Lbt(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function _bt(e){return e.pipelineContext&&e.pipelineContext.large}function tur(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?n>0?n:1:n))}var nur=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},uAe=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return UB(n.value,MWe[Par(_I(this._minLevelUnit))]||MWe.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return Dar(n,r,i,a,o)},t.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var o=this.getSetting("useUTC"),a=cur(this._minLevelUnit,this._approxInterval,o,r);return i=i.concat(a),i.push({value:r[1],level:0}),i},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=gf,r[1]+=gf),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-gf}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,i){n=n||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=wV.length,l=Math.min(nur(wV,this._approxInterval,0,s),s-1);this._interval=wV[l][1],this._minLevelUnit=wV[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return yo(n)?n:+dh(n)},t.prototype.contain=function(n){return LJ(this.parse(n),this._extent)},t.prototype.normalize=function(n){return _J(this.parse(n),this._extent)},t.prototype.scale=function(n){return NJ(n,this._extent)},t.type="time",t})(sM),wV=[["second",LSe],["minute",_Se],["hour",DF],["quarter-day",DF*6],["half-day",DF*12],["day",gf*1.2],["half-week",gf*3.5],["week",gf*7],["month",gf*31],["quarter",gf*95],["half-year",yWe/2],["year",yWe]];function rur(e,t,n,r){var i=dh(t),o=dh(n),a=function(g){return CWe(i,g,r)===CWe(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},d=function(){return u()&&a("minute")},p=function(){return d()&&a("second")},h=function(){return p()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return d();case"second":return p();case"millisecond":return h()}}function iur(e,t){return e/=gf,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function our(e){var t=30*gf;return e/=t,e>6?6:e>3?3:e>2?2:1}function aur(e){return e/=DF,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Rqe(e,t){return e/=t?_Se:LSe,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function sur(e){return hSe(e,!0)}function lur(e,t,n){var r=new Date(e);switch(_I(t)){case"year":case"month":r[Jmt(n)](0);case"day":r[evt(n)](1);case"hour":r[tvt(n)](0);case"minute":r[nvt(n)](0);case"second":r[rvt(n)](0),r[ivt(n)](0)}return r.getTime()}function cur(e,t,n,r){var i=1e4,o=Qmt,a=0;function s(T,R,P,F,N,L,W){for(var j=new Date(R),V=R,G=j[F]();V<P&&V<=r[1];)W.push({value:V}),G+=T,j[N](G),V=j.getTime();W.push({value:V,notAdd:!0})}function l(T,R,P){var F=[],N=!R.length;if(!rur(_I(T),r[0],r[1],n)){N&&(R=[{value:lur(new Date(r[0]),T,n)},{value:r[1]}]);for(var L=0;L<R.length-1;L++){var W=R[L].value,j=R[L+1].value;if(W!==j){var V=void 0,G=void 0,q=void 0,$=!1;switch(T){case"year":V=Math.max(1,Math.round(t/gf/365)),G=NSe(n),q=kar(n);break;case"half-year":case"quarter":case"month":V=our(t),G=NI(n),q=Jmt(n);break;case"week":case"half-week":case"day":V=iur(t),G=SJ(n),q=evt(n),$=!0;break;case"half-day":case"quarter-day":case"hour":V=aur(t),G=yq(n),q=tvt(n);break;case"minute":V=Rqe(t,!0),G=AJ(n),q=nvt(n);break;case"second":V=Rqe(t,!1),G=OJ(n),q=rvt(n);break;case"millisecond":V=sur(t),G=zJ(n),q=ivt(n);break}s(V,W,j,G,q,$,F),T==="year"&&P.length>1&&L===0&&P.unshift({value:P[0].value-V})}}for(var L=0;L<F.length;L++)P.push(F[L]);return F}}for(var c=[],u=[],d=0,p=0,h=0;h<o.length&&a++<i;++h){var g=_I(o[h]);if(Iar(o[h])){l(o[h],c[c.length-1]||[],u);var m=o[h+1]?_I(o[h+1]):null;if(g!==m){if(u.length){p=d,u.sort(function(T,R){return T.value-R.value});for(var b=[],y=0;y<u.length;++y){var M=u[y].value;(y===0||u[y-1].value!==M)&&(b.push(u[y]),M>=r[0]&&M<=r[1]&&d++)}var C=(r[1]-r[0])/t;if(d>C*1.5&&p>C/1.5||(c.push(b),d>C||e===o[h]))break}u=[]}}}for(var x=Lo(Vt(c,function(T){return Lo(T,function(R){return R.value>=r[0]&&R.value<=r[1]&&!R.notAdd})}),function(T){return T.length>0}),w=[],S=x.length-1,h=0;h<x.length;++h)for(var A=x[h],z=0;z<A.length;++z)w.push({value:A[z].value,level:S-h});w.sort(function(T,R){return T.value-R.value});for(var O=[],h=0;h<w.length;++h)(h===0||w[h].value!==w[h-1].value)&&O.push(w[h]);return O}i2.registerClass(uAe);var Iqe=i2.prototype,_F=sM.prototype,uur=wl,dur=Math.floor,pur=Math.ceil,SV=Math.pow,Pg=Math.log,dAe=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new sM,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,o=r.getExtent(),a=_F.getTicks.call(this,n);return Vt(a,function(s){var l=s.value,c=wl(SV(this.base,l));return c=l===i[0]&&this._fixMin?AV(c,o[0]):c,c=l===i[1]&&this._fixMax?AV(c,o[1]):c,{value:c}},this)},t.prototype.setExtent=function(n,r){var i=Pg(this.base);n=Pg(Math.max(0,n))/i,r=Pg(Math.max(0,r))/i,_F.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=Iqe.getExtent.call(this);r[0]=SV(n,r[0]),r[1]=SV(n,r[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(r[0]=AV(r[0],o[0])),this._fixMax&&(r[1]=AV(r[1],o[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Pg(n[0])/Pg(r),n[1]=Pg(n[1])/Pg(r),Iqe.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=emt(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[wl(pur(r[0]/o)*o),wl(dur(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){_F.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=Pg(n)/Pg(this.base),LJ(n,this._extent)},t.prototype.normalize=function(n){return n=Pg(n)/Pg(this.base),_J(n,this._extent)},t.prototype.scale=function(n){return n=NJ(n,this._extent),SV(this.base,n)},t.type="log",t})(i2),Nbt=dAe.prototype;Nbt.getMinorTicks=_F.getMinorTicks;Nbt.getLabel=_F.getLabel;function AV(e,t){return uur(e,tm(t))}i2.registerClass(dAe);var hur=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;fr(a)?this._modelMinNum=OV(t,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=OV(t,a));var s=this._modelMaxRaw=n.get("max",!0);if(fr(s)?this._modelMaxNum=OV(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=OV(t,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),c=Ht(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Am(c[0],1),Am(c[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=s!=null,u=l!=null;s==null&&(s=t?i?0:NaN:n-o[0]*a),l==null&&(l=t?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=PP(s)||PP(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!u&&(l=0));var p=this._determinedMin,h=this._determinedMax;return p!=null&&(s=p,c=!0),h!=null&&(l=h,u=!0),{min:s,max:l,minFixed:c,maxFixed:u,isBlank:d}},e.prototype.modifyDataMinMax=function(t,n){this[gur[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=fur[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),fur={min:"_determinedMin",max:"_determinedMax"},gur={min:"_dataMin",max:"_dataMax"};function Fbt(e,t,n){var r=e.rawExtentInfo;return r||(r=new hur(e,t,n),e.rawExtentInfo=r,r)}function OV(e,t){return t==null?null:PP(t)?NaN:e.parse(t)}function Wbt(e,t){var n=e.type,r=Fbt(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&n==="time"){var s=Rbt("bar",a),l=!1;if(ye(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var c=Ibt(s),u=mur(i,o,t,c);i=u.min,o=u.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function mur(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=eur(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;ye(a,function(h){s=Math.min(h.offset,s)});var l=-1/0;ye(a,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,d=1-(s+l)/o,p=u/d-u;return t+=p*(l/c),e-=p*(s/c),{min:e,max:t}}function Jz(e,t){var n=t,r=Wbt(e,n),i=r.extent,o=n.get("splitNumber");e instanceof dAe&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function YB(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new FJ({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new uAe({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(i2.getClass(t)||sM)}}function vur(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function mk(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?(function(r){return function(i,o){return e.scale.getFormattedLabel(i,o,r)}})(t):An(t)?(function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}})(t):fr(t)?(function(r){return function(i,o){return n!=null&&(o=i.value-n),r(pAe(e,i),o,i.level!=null?{level:i.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function pAe(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function bur(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof FJ?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=mk(e),l,c=1;i>40&&(c=Math.ceil(i/40));for(var u=0;u<i;u+=c){var d=r?r[u]:{value:o[0]+u},p=s(d,u),h=a.getTextRect(p),g=yur(h,a.get("rotate")||0);l?l.union(g):l=g}return l}}function yur(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new ui(e.x,e.y,o,a);return s}function hAe(e){var t=e.get("interval");return t??"auto"}function qbt(e){return e.type==="category"&&hAe(e.getLabelModel())===0}function _U(e,t){var n={};return ye(e.mapDimensionsAll(t),function(r){n[lAe(e,r)]=!0}),Hi(n)}function Mur(e,t,n){t&&ye(_U(t,n),function(r){var i=t.getApproximateExtent(r);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var vk=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})();function Cur(e){return r2(null,e)}var xur={isDimensionStacked:aM,enableDataStack:Obt,getStackedDimension:lAe};function wur(e,t){var n=t;t instanceof No||(n=new No(t));var r=YB(n);return r.setExtent(e[0],e[1]),Jz(r,n),r}function Sur(e){Hl(e,vk)}function Aur(e,t){return t=t||{},Za(e,null,null,t.state!=="normal")}const Our=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Lcr,createList:Cur,createScale:wur,createSymbol:sc,createTextStyle:Aur,dataStack:xur,enableHoverEmphasis:Lx,getECData:_r,getLayoutRect:Pc,mixinAxisModelCommonMethods:Sur},Symbol.toStringTag,{value:"Module"}));var zur=1e-8;function Pqe(e,t){return Math.abs(e-t)<zur}function QA(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var o=1;o<e.length;o++){var a=e[o];r+=iy(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return(!Pqe(i[0],s[0])||!Pqe(i[1],s[1]))&&(r+=iy(i[0],i[1],s[0],s[1],t,n)),r!==0}var Tur=[];function ese(e,t){for(var n=0;n<e.length;n++)Yu(e[n],e[n],t)}function Dqe(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(xy(t,t,o),wy(n,n,o))}}function Eur(e){for(var t=0,n=0,r=0,i=e.length,o=e[i-1][0],a=e[i-1][1],s=0;s<i;s++){var l=e[s][0],c=e[s][1],u=o*c-l*a;t+=u,n+=(o+l)*u,r+=(a+c)*u,o=l,a=c}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Bbt=(function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e})(),kqe=(function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e})(),Lqe=(function(){function e(t){this.type="linestring",this.points=t}return e})(),jbt=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.type="geoJSON",o.geometries=r,o._center=i&&[i[0],i[1]],o}return t.prototype.calcCenter=function(){for(var n=this.geometries,r,i=0,o=0;o<n.length;o++){var a=n[o],s=a.exterior,l=s&&s.length;l>i&&(r=a,i=l)}if(r)return Eur(r.exterior);var c=this.getBoundingRect();return[c.x+c.width/2,c.y+c.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var i=[1/0,1/0],o=[-1/0,-1/0],a=this.geometries;return ye(a,function(s){s.type==="polygon"?Dqe(s.exterior,i,o,n):ye(s.points,function(l){Dqe(l,i,o,n)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])||(i[0]=i[1]=o[0]=o[1]=0),r=new ui(i[0],i[1],o[0]-i[0],o[1]-i[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var o=0,a=i.length;o<a;o++){var s=i[o];if(s.type==="polygon"){var l=s.exterior,c=s.interiors;if(QA(l,n[0],n[1])){for(var u=0;u<(c?c.length:0);u++)if(QA(c[u],n[0],n[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=a.width/a.height;i?o||(o=i/s):i=s*o;for(var l=new ui(n,r,i,o),c=a.calculateTransform(l),u=this.geometries,d=0;d<u.length;d++){var p=u[d];p.type==="polygon"?(ese(p.exterior,c),ye(p.interiors,function(h){ese(h,c)})):ye(p.points,function(h){ese(h,c)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},t.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new t(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},t})(Bbt),Rur=(function(e){gt(t,e);function t(n,r){var i=e.call(this,n)||this;return i.type="geoSVG",i._elOnlyForCalculate=r,i}return t.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),i=[r.x+r.width/2,r.y+r.height/2],o=FB(Tur),a=n;a&&!a.isGeoSVGGraphicRoot;)Mb(o,a.getLocalTransform(),o),a=a.parent;return H3(o,o),Yu(i,i,o),i},t})(Bbt);function Iur(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return ye(r,function(i){var o=i.geometry,a=o.encodeOffsets,s=o.coordinates;if(a)switch(o.type){case"LineString":o.coordinates=Hbt(s,a,n);break;case"Polygon":tse(s,a,n);break;case"MultiLineString":tse(s,a,n);break;case"MultiPolygon":ye(s,function(l,c){return tse(l,a[c],n)})}}),t.UTF8Encoding=!1,t}function tse(e,t,n){for(var r=0;r<e.length;r++)e[r]=Hbt(e[r],t[r],n)}function Hbt(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function dve(e,t){return e=Iur(e),Vt(Lo(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,i=n.geometry,o=[];switch(i.type){case"Polygon":var a=i.coordinates;o.push(new kqe(a[0],a.slice(1)));break;case"MultiPolygon":ye(i.coordinates,function(l){l[0]&&o.push(new kqe(l[0],l.slice(1)))});break;case"LineString":o.push(new Lqe([i.coordinates]));break;case"MultiLineString":o.push(new Lqe(i.coordinates))}var s=new jbt(r[t||"name"],o,r.cp);return s.properties=r,s})}const Pur=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Dme,asc:Jp,getPercentWithPrecision:dir,getPixelPrecision:dSe,getPrecision:tm,getPrecisionSafe:Zgt,isNumeric:fSe,isRadianAroundZero:kP,linearMap:Ko,nice:hSe,numericToNumber:Nb,parseDate:dh,quantile:H7,quantity:emt,quantityExponent:hJ,reformIntervals:kme,remRadian:pSe,round:wl},Symbol.toStringTag,{value:"Module"})),Dur=Object.freeze(Object.defineProperty({__proto__:null,format:UB,parse:dh},Symbol.toStringTag,{value:"Module"})),kur=Object.freeze(Object.defineProperty({__proto__:null,Arc:VB,BezierCurve:rk,BoundingRect:ui,Circle:t2,CompoundPath:MJ,Ellipse:HB,Group:Ir,Image:Du,IncrementalDisplayable:Fmt,Line:Jc,LinearGradient:ik,Polygon:O0,Polyline:R0,RadialGradient:OSe,Rect:ao,Ring:nk,Sector:A0,Text:oo,clipPointsByRect:RSe,clipRectByRect:Hmt,createIcon:ak,extendPath:Bmt,extendShape:qmt,getShapeClass:CJ,getTransform:_x,initProps:ys,makeImage:TSe,makePath:GB,mergePath:Xp,registerShape:Jf,resizePath:ESe,updateProps:Ao},Symbol.toStringTag,{value:"Module"})),Lur=Object.freeze(Object.defineProperty({__proto__:null,addCommas:FSe,capitalFirst:Far,encodeHTML:l0,formatTime:Nar,formatTpl:qSe,getTextRect:Lar,getTooltipMarker:ovt,normalizeCssArray:$3,toCamelCase:WSe,truncateText:Bir},Symbol.toStringTag,{value:"Module"})),_ur=Object.freeze(Object.defineProperty({__proto__:null,bind:Rn,clone:Or,curry:Zr,defaults:br,each:ye,extend:Nt,filter:Lo,indexOf:hi,inherits:rSe,isArray:Ht,isFunction:fr,isObject:xr,isString:An,map:Vt,merge:ei,reduce:Wf},Symbol.toStringTag,{value:"Module"}));var Aq=mo();function Vbt(e,t){var n=Vt(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Nur(e){var t=e.getLabelModel().get("customValues");if(t){var n=mk(e),r=e.scale.getExtent(),i=Vbt(e,t),o=Lo(i,function(a){return a>=r[0]&&a<=r[1]});return{labels:Vt(o,function(a){var s={value:a};return{formattedLabel:n(s),rawLabel:e.scale.getLabel(s),tickValue:a}})}}return e.type==="category"?Wur(e):Bur(e)}function Fur(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=Vbt(e,n);return{ticks:Lo(i,function(o){return o>=r[0]&&o<=r[1]})}}return e.type==="category"?qur(e,t):{ticks:Vt(e.scale.getTicks(),function(o){return o.value})}}function Wur(e){var t=e.getLabelModel(),n=Gbt(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Gbt(e,t){var n=$bt(e,"labels"),r=hAe(t),i=Ubt(n,r);if(i)return i;var o,a;return fr(r)?o=Kbt(e,r):(a=r==="auto"?jur(e):r,o=Ybt(e,a)),Xbt(n,r,{labels:o,labelCategoryInterval:a})}function qur(e,t){var n=$bt(e,"ticks"),r=hAe(t),i=Ubt(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),fr(r))o=Kbt(e,r,!0);else if(r==="auto"){var s=Gbt(e,e.getLabelModel());a=s.labelCategoryInterval,o=Vt(s.labels,function(l){return l.tickValue})}else a=r,o=Ybt(e,a,!0);return Xbt(n,r,{ticks:o,tickCategoryInterval:a})}function Bur(e){var t=e.scale.getTicks(),n=mk(e);return{labels:Vt(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function $bt(e,t){return Aq(e)[t]||(Aq(e)[t]=[])}function Ubt(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Xbt(e,t,n){return e.push({key:t,value:n}),n}function jur(e){var t=Aq(e).autoInterval;return t??(Aq(e).autoInterval=e.calculateCategoryInterval())}function Hur(e){var t=Vur(e),n=mk(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(r)),d=Math.abs(c*Math.sin(r)),p=0,h=0;l<=o[1];l+=s){var g=0,m=0,b=qB(n({value:l}),t.font,"center","top");g=b.width*1.3,m=b.height*1.3,p=Math.max(p,g,7),h=Math.max(h,m,7)}var y=p/u,M=h/d;isNaN(y)&&(y=1/0),isNaN(M)&&(M=1/0);var C=Math.max(0,Math.floor(Math.min(y,M))),x=Aq(e.model),w=e.getExtent(),S=x.lastAutoInterval,A=x.lastTickCount;return S!=null&&A!=null&&Math.abs(S-C)<=1&&Math.abs(A-a)<=1&&S>C&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?C=S:(x.lastTickCount=a,x.lastAutoInterval=C,x.axisExtent0=w[0],x.axisExtent1=w[1]),C}function Vur(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Ybt(e,t,n){var r=mk(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],u=i.count();c!==0&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=qbt(e),p=a.get("showMinLabel")||d,h=a.get("showMaxLabel")||d;p&&c!==o[0]&&m(o[0]);for(var g=c;g<=o[1];g+=l)m(g);h&&g-l!==o[1]&&m(o[1]);function m(b){var y={value:b};s.push(n?b:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:b})}return s}function Kbt(e,t,n){var r=e.scale,i=mk(e),o=[];return ye(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var _qe=[0,1],ng=(function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return dSe(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),Nqe(r,i.count())),Ko(t,_qe,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),Nqe(r,i.count()));var o=Ko(t,r,_qe,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=Fur(this,n),i=r.ticks,o=Vt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Gur(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=Vt(r,function(o){return Vt(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return Nur(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return Hur(this)},e})();function Nqe(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Gur(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/l;ye(t,function(h){h.coord-=c/2});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,a={coord:t[i-1].coord+c*s,tickValue:u[1]+1},t.push(a)}var d=o[0]>o[1];p(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&p(o[0],t[0].coord)&&t.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&p(a.coord,o[1])&&t.push({coord:o[1]});function p(h,g){return h=wl(h),g=wl(g),d?h>g:h<g}}function $ur(e){var t=Ri.extend(e);return Ri.registerClass(t),t}function Uur(e){var t=us.extend(e);return us.registerClass(t),t}function Xur(e){var t=Ia.extend(e);return Ia.registerClass(t),t}function Yur(e){var t=pa.extend(e);return pa.registerClass(t),t}var A_=Math.PI*2,mA=Fb.CMD,Kur=["top","right","bottom","left"];function Qur(e,t,n,r,i){var o=n.width,a=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+a/2),i.set(1,0);break}}function Zur(e,t,n,r,i,o,a,s,l){a-=e,s-=t;var c=Math.sqrt(a*a+s*s);a/=c,s/=c;var u=a*n+e,d=s*n+t;if(Math.abs(r-i)%A_<1e-4)return l[0]=u,l[1]=d,c-n;if(o){var p=r;r=eh(i),i=eh(p)}else r=eh(r),i=eh(i);r>i&&(i+=A_);var h=Math.atan2(s,a);if(h<0&&(h+=A_),h>=r&&h<=i||h+A_>=r&&h+A_<=i)return l[0]=u,l[1]=d,c-n;var g=n*Math.cos(r)+e,m=n*Math.sin(r)+t,b=n*Math.cos(i)+e,y=n*Math.sin(i)+t,M=(g-a)*(g-a)+(m-s)*(m-s),C=(b-a)*(b-a)+(y-s)*(y-s);return M<C?(l[0]=g,l[1]=m,Math.sqrt(M)):(l[0]=b,l[1]=y,Math.sqrt(C))}function NU(e,t,n,r,i,o,a,s){var l=i-e,c=o-t,u=n-e,d=r-t,p=Math.sqrt(u*u+d*d);u/=p,d/=p;var h=l*u+c*d,g=h/p;s&&(g=Math.min(Math.max(g,0),1)),g*=p;var m=a[0]=e+g*u,b=a[1]=t+g*d;return Math.sqrt((m-i)*(m-i)+(b-o)*(b-o))}function Qbt(e,t,n,r,i,o,a){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,c=a[0]=Math.min(Math.max(i,e),s),u=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((c-i)*(c-i)+(u-o)*(u-o))}var qg=[];function Jur(e,t,n){var r=Qbt(t.x,t.y,t.width,t.height,e.x,e.y,qg);return n.set(qg[0],qg[1]),r}function edr(e,t,n){for(var r=0,i=0,o=0,a=0,s,l,c=1/0,u=t.data,d=e.x,p=e.y,h=0;h<u.length;){var g=u[h++];h===1&&(r=u[h],i=u[h+1],o=r,a=i);var m=c;switch(g){case mA.M:o=u[h++],a=u[h++],r=o,i=a;break;case mA.L:m=NU(r,i,u[h],u[h+1],d,p,qg,!0),r=u[h++],i=u[h++];break;case mA.C:m=Pgt(r,i,u[h++],u[h++],u[h++],u[h++],u[h],u[h+1],d,p,qg),r=u[h++],i=u[h++];break;case mA.Q:m=kgt(r,i,u[h++],u[h++],u[h],u[h+1],d,p,qg),r=u[h++],i=u[h++];break;case mA.A:var b=u[h++],y=u[h++],M=u[h++],C=u[h++],x=u[h++],w=u[h++];h+=1;var S=!!(1-u[h++]);s=Math.cos(x)*M+b,l=Math.sin(x)*C+y,h<=1&&(o=s,a=l);var A=(d-b)*C/M+b;m=Zur(b,y,C,x,x+w,S,A,p,qg),r=Math.cos(x+w)*M+b,i=Math.sin(x+w)*C+y;break;case mA.R:o=r=u[h++],a=i=u[h++];var z=u[h++],O=u[h++];m=Qbt(o,a,z,O,d,p,qg);break;case mA.Z:m=NU(r,i,o,a,d,p,qg,!0),r=o,i=a;break}m<c&&(c=m,n.set(qg[0],qg[1]))}return c}var nm=new ci,ss=new ci,tc=new ci,rb=new ci,$v=new ci;function Fqe(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Kur,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,c=i.anchor,u=e.getComputedTransform(),d=u&&H3([],u),p=t.get("length2")||0;c&&tc.copy(c);for(var h=0;h<a.length;h++){var g=a[h];Qur(g,0,s,nm,rb),ci.scaleAndAdd(ss,nm,rb,p),ss.transform(d);var m=e.getBoundingRect(),b=c?c.distance(ss):e instanceof Di?edr(ss,e.path,tc):Jur(ss,m,tc);b<l&&(l=b,ss.transform(u),tc.transform(u),tc.toArray(o[0]),ss.toArray(o[1]),nm.toArray(o[2]))}Zbt(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var FU=[],Q0=new ci;function Zbt(e,t){if(t<=180&&t>0){t=t/180*Math.PI,nm.fromArray(e[0]),ss.fromArray(e[1]),tc.fromArray(e[2]),ci.sub(rb,nm,ss),ci.sub($v,tc,ss);var n=rb.len(),r=$v.len();if(!(n<.001||r<.001)){rb.scale(1/n),$v.scale(1/r);var i=rb.dot($v),o=Math.cos(t);if(o<i){var a=NU(ss.x,ss.y,tc.x,tc.y,nm.x,nm.y,FU,!1);Q0.fromArray(FU),Q0.scaleAndAdd($v,a/Math.tan(Math.PI-t));var s=tc.x!==ss.x?(Q0.x-ss.x)/(tc.x-ss.x):(Q0.y-ss.y)/(tc.y-ss.y);if(isNaN(s))return;s<0?ci.copy(Q0,ss):s>1&&ci.copy(Q0,tc),Q0.toArray(e[1])}}}}function tdr(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,nm.fromArray(e[0]),ss.fromArray(e[1]),tc.fromArray(e[2]),ci.sub(rb,ss,nm),ci.sub($v,tc,ss);var r=rb.len(),i=$v.len();if(!(r<.001||i<.001)){rb.scale(1/r),$v.scale(1/i);var o=rb.dot(t),a=Math.cos(n);if(o<a){var s=NU(ss.x,ss.y,tc.x,tc.y,nm.x,nm.y,FU,!1);Q0.fromArray(FU);var l=Math.PI/2,c=Math.acos($v.dot(t)),u=l+c-n;if(u>=l)ci.copy(Q0,tc);else{Q0.scaleAndAdd($v,s/Math.tan(Math.PI/2-u));var d=tc.x!==ss.x?(Q0.x-ss.x)/(tc.x-ss.x):(Q0.y-ss.y)/(tc.y-ss.y);if(isNaN(d))return;d<0?ci.copy(Q0,ss):d>1&&ci.copy(Q0,tc)}Q0.toArray(e[1])}}}}function nse(e,t,n,r){var i=n==="normal",o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function ndr(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Cy(r[0],r[1]),o=Cy(r[1],r[2]);if(!i||!o){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var a=Math.min(i,o)*n,s=SF([],r[1],r[0],a/i),l=SF([],r[1],r[2],a/o),c=SF([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function fAe(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var o=t.normal,a=o.get("show"),s=i.ignore,l=0;l<mq.length;l++){var c=mq[l],u=t[c],d=c==="normal";if(u){var p=u.get("show"),h=d?s:Xr(i.states[c]&&i.states[c].ignore,s);if(h||!Xr(p,a)){var g=d?r:r&&r.states[c];g&&(g.ignore=!0),r&&nse(r,!0,c,u);continue}r||(r=new R0,e.setTextGuideLine(r),!d&&(s||!a)&&nse(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),nse(r,!1,c,u)}}if(r){br(r.style,n),r.style.fill=null;var m=o.get("showAbove"),b=e.textGuideLineConfig=e.textGuideLineConfig||{};b.showAbove=m||!1,r.buildPath=ndr}}function gAe(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<f1.length;r++){var i=f1[r];n[i]=e.getModel([i,t])}return n}function Jbt(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new MU(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:c,localRect:a,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}function e2t(e,t,n,r,i,o){var a=e.length;if(a<2)return;e.sort(function(S,A){return S.rect[t]-A.rect[t]});for(var s=0,l,c=!1,u=0;u<a;u++){var d=e[u],p=d.rect;l=p[t]-s,l<0&&(p[t]-=l,d.label[t]-=l,c=!0),s=p[t]+p[n]}var h=e[0],g=e[a-1],m,b;y(),m<0&&x(-m,.8),b<0&&x(b,.8),y(),M(m,b,1),M(b,m,-1),y(),m<0&&w(-m),b<0&&w(b);function y(){m=h.rect[t]-r,b=i-g.rect[t]-g.rect[n]}function M(S,A,z){if(S<0){var O=Math.min(A,-S);if(O>0){C(O*z,0,a);var T=O+S;T<0&&x(-T*z,1)}else x(-S*z,1)}}function C(S,A,z){S!==0&&(c=!0);for(var O=A;O<z;O++){var T=e[O],R=T.rect;R[t]+=S,T.label[t]+=S}}function x(S,A){for(var z=[],O=0,T=1;T<a;T++){var R=e[T-1].rect,P=Math.max(e[T].rect[t]-R[t]-R[n],0);z.push(P),O+=P}if(O){var F=Math.min(Math.abs(S)/O,A);if(S>0)for(var T=0;T<a-1;T++){var N=z[T]*F;C(N,0,T+1)}else for(var T=a-1;T>0;T--){var N=z[T-1]*F;C(-N,T,a)}}}function w(S){var A=S<0?-1:1;S=Math.abs(S);for(var z=Math.ceil(S/(a-1)),O=0;O<a-1;O++)if(A>0?C(z,0,O+1):C(-z,a-O-1,a),S-=z,S<=0)return}return c}function rdr(e,t,n,r){return e2t(e,"x","width",t,n)}function t2t(e,t,n,r){return e2t(e,"y","height",t,n)}function n2t(e){var t=[];e.sort(function(m,b){return b.priority-m.priority});var n=new ui(0,0,0,0);function r(m){if(!m.ignore){var b=m.ensureState("emphasis");b.ignore==null&&(b.ignore=!1)}m.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,c=o.label,u=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,p=!1,h=0;h<t.length;h++){var g=t[h];if(n.intersect(g.rect)){if(a&&g.axisAligned){p=!0;break}if(g.obb||(g.obb=new MU(g.localRect,g.transform)),d||(d=new MU(s,l)),d.intersect(g.obb)){p=!0;break}}}p?(r(c),u&&r(u)):(c.attr("ignore",o.defaultAttr.ignore),u&&u.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function idr(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function odr(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:idr(r&&r.shape.points)}}var Wqe=["align","verticalAlign","width","height","fontSize"],B0=new Sy,rse=mo(),adr=mo();function zV(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var TV=["x","y","rotation"],sdr=(function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,n,r,i,o){var a=i.style,s=i.__hostTarget,l=s.textConfig||{},c=i.getComputedTransform(),u=i.getBoundingRect().plain();ui.applyTransform(u,u,c),c?B0.setLocalTransform(c):(B0.x=B0.y=B0.rotation=B0.originX=B0.originY=0,B0.scaleX=B0.scaleY=1),B0.rotation=eh(B0.rotation);var d=i.__hostTarget,p;if(d){p=d.getBoundingRect().plain();var h=d.getComputedTransform();ui.applyTransform(p,p,h)}var g=p&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:g,seriesModel:r,dataIndex:t,dataType:n,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:g&&g.ignore,x:B0.x,y:B0.y,scaleX:B0.scaleX,scaleY:B0.scaleY,rotation:B0.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var r=t.__model,i=r.get("labelLayout");(fr(i)||Hi(i).length)&&t.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=_r(o);a&&!a.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,a,i)})},e.prototype.updateLayoutConfig=function(t){var n=t.getWidth(),r=t.getHeight();function i(C,x){return function(){Fqe(C,x)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,c=a.defaultAttr,u=void 0;fr(a.layoutOption)?u=a.layoutOption(odr(a,l)):u=a.layoutOption,u=u||{},a.computedLayoutOption=u;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:u.x!=null||u.y!=null?null:c.attachedPos,rotation:u.rotate!=null?u.rotate*d:c.attachedRot,offset:[u.dx||0,u.dy||0]});var p=!1;if(u.x!=null?(s.x=vn(u.x,n),s.setStyle("x",0),p=!0):(s.x=c.x,s.setStyle("x",c.style.x)),u.y!=null?(s.y=vn(u.y,r),s.setStyle("y",0),p=!0):(s.y=c.y,s.setStyle("y",c.style.y)),u.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:u.labelLinePoints}),p=!1)}var g=rse(s);g.needsUpdateLabelLine=p,s.rotation=u.rotate!=null?u.rotate*d:c.rotation,s.scaleX=c.scaleX,s.scaleY=c.scaleY;for(var m=0;m<Wqe.length;m++){var b=Wqe[m];s.setStyle(b,u[b]!=null?u[b]:c.style[b])}if(u.draggable){if(s.draggable=!0,s.cursor="move",l){var y=a.seriesModel;if(a.dataIndex!=null){var M=a.seriesModel.getData(a.dataType);y=M.getItemModel(a.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=c.cursor}},e.prototype.layout=function(t){var n=t.getWidth(),r=t.getHeight(),i=Jbt(this._labelList),o=Lo(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Lo(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});rdr(o,0,n),t2t(a,0,r);var s=Lo(i,function(l){return l.layoutOption.hideOverlap});n2t(s)},e.prototype.processLabelsOverall=function(){var t=this;ye(this._chartViewList,function(n){var r=n.__model,i=n.ignoreLabelLineUpdate,o=r.isAnimationEnabled();n.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!i,l=a.getTextContent();!s&&l&&(s=rse(l).needsUpdateLabelLine),s&&t._updateLabelLine(a,r),o&&t._animateLabels(a,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),i=_r(t),o=i.dataIndex;if(r&&o!=null){var a=n.getData(i.dataType),s=a.getItemModel(o),l={},c=a.getItemVisual(o,"style");if(c){var u=a.getVisual("drawType");l.stroke=c[u]}var d=s.getModel("labelLine");fAe(t,gAe(s),l),Fqe(t,d)}},e.prototype._animateLabels=function(t,n){var r=t.getTextContent(),i=t.getTextGuideLine();if(r&&(t.forceLabelAnimation||!r.ignore&&!r.invisible&&!t.disableLabelAnimation&&!kI(t))){var o=rse(r),a=o.oldLayout,s=_r(t),l=s.dataIndex,c={x:r.x,y:r.y,rotation:r.rotation},u=n.getData(s.dataType);if(a){r.attr(a);var p=t.prevStates;p&&(hi(p,"select")>=0&&r.attr(o.oldLayoutSelect),hi(p,"emphasis")>=0&&r.attr(o.oldLayoutEmphasis)),Ao(r,c,n,l)}else if(r.attr(c),!sk(r).valueAnimation){var d=Xr(r.style.opacity,1);r.style.opacity=0,ys(r,{style:{opacity:d}},n,l)}if(o.oldLayout=c,r.states.select){var h=o.oldLayoutSelect={};zV(h,c,TV),zV(h,r.states.select,TV)}if(r.states.emphasis){var g=o.oldLayoutEmphasis={};zV(g,c,TV),zV(g,r.states.emphasis,TV)}Umt(r,l,u,n,n)}if(i&&!i.ignore&&!i.invisible){var o=adr(i),a=o.oldLayout,m={points:i.shape.points};a?(i.attr({shape:a}),Ao(i,{shape:m},n)):(i.setShape(m),i.style.strokePercent=0,ys(i,{style:{strokePercent:1}},n)),o.oldLayout=m}},e})(),ise=mo();function ldr(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var i=ise(n).labelManager;i||(i=ise(n).labelManager=new sdr),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var i=ise(n).labelManager;r.updatedSeries.forEach(function(o){i.addLabelsOfSeries(n.getViewOfSeriesModel(o))}),i.updateLayoutConfig(n),i.layout(n),i.processLabelsOverall()})}var ose=Math.sin,ase=Math.cos,r2t=Math.PI,vA=Math.PI*2,cdr=180/r2t,i2t=(function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){this._add("C",t,n,r,i,o,a)},e.prototype.quadraticCurveTo=function(t,n,r,i){this._add("Q",t,n,r,i)},e.prototype.arc=function(t,n,r,i,o,a){this.ellipse(t,n,r,r,0,i,o,a)},e.prototype.ellipse=function(t,n,r,i,o,a,s,l){var c=s-a,u=!l,d=Math.abs(c),p=fx(d-vA)||(u?c>=vA:-c>=vA),h=c>0?c%vA:c%vA+vA,g=!1;p?g=!0:fx(d)?g=!1:g=h>=r2t==!!u;var m=t+r*ase(a),b=n+i*ose(a);this._start&&this._add("M",m,b);var y=Math.round(o*cdr);if(p){var M=1/this._p,C=(u?1:-1)*(vA-M);this._add("A",r,i,y,1,+u,t+r*ase(a+C),n+i*ose(a+C)),M>.01&&this._add("A",r,i,y,0,+u,m,b)}else{var x=t+r*ase(s),w=n+i*ose(s);this._add("A",r,i,y,+g,+u,x,w)}},e.prototype.rect=function(t,n,r,i){this._add("M",t,n),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,i,o,a,s,l,c){for(var u=[],d=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}u.push(Math.round(h*d)/d)}this._d.push(t+u.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e})(),mAe="none",udr=Math.round;function ddr(e){var t=e.fill;return t!=null&&t!==mAe}function pdr(e){var t=e.stroke;return t!=null&&t!==mAe}var pve=["lineCap","miterLimit","lineJoin"],hdr=Vt(pve,function(e){return"stroke-"+e.toLowerCase()});function fdr(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Du){e("opacity",i);return}if(ddr(t)){var o=fq(t.fill);e("fill",o.color);var a=t.fillOpacity!=null?t.fillOpacity*o.opacity*i:o.opacity*i;a<1&&e("fill-opacity",a)}else e("fill",mAe);if(pdr(t)){var s=fq(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,c=l?(t.lineWidth||0)/l:0,u=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,d=t.strokeFirst;if(c!==1&&e("stroke-width",c),d&&e("paint-order",d?"stroke":"fill"),u<1&&e("stroke-opacity",u),t.lineDash){var p=QSe(n),h=p[0],g=p[1];h&&(g=udr(g||0),e("stroke-dasharray",h.join(",")),(g||r)&&e("stroke-dashoffset",g))}for(var m=0;m<pve.length;m++){var b=pve[m];if(t[b]!==bU[b]){var y=t[b]||bU[b];y&&e(hdr[m],y)}}}}var o2t="http://www.w3.org/2000/svg",a2t="http://www.w3.org/1999/xlink",gdr="http://www.w3.org/2000/xmlns/",mdr="http://www.w3.org/XML/1998/namespace",qqe="ecmeta_";function s2t(e){return document.createElementNS(o2t,e)}function wu(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function vdr(e,t){var n=[];if(t)for(var r in t){var i=t[r],o=r;i!==!1&&(i!==!0&&i!=null&&(o+='="'+i+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function bdr(e){return"</"+e+">"}function vAe(e,t){t=t||{};var n=t.newline?`
`:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return vdr(a,s)+(a!=="style"?l0(l):l||"")+(o?""+n+Vt(o,function(c){return r(c)}).join(n)+n:"")+bdr(a)}return r(e)}function ydr(e,t,n){n=n||{};var r=n.newline?`
`:"",i=" {"+r,o=r+"}",a=Vt(Hi(e),function(l){return l+i+Vt(Hi(e[l]),function(c){return c+":"+e[l][c]+";"}).join(r)+o}).join(r),s=Vt(Hi(t),function(l){return"@keyframes "+l+i+Vt(Hi(t[l]),function(c){return c+i+Vt(Hi(t[l][c]),function(u){var d=t[l][c][u];return u==="d"&&(d='path("'+d+'")'),u+":"+d+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(r)}function hve(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Bqe(e,t,n,r){return wu("svg","root",{width:e,height:t,xmlns:o2t,"xmlns:xlink":a2t,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var Mdr=0;function l2t(){return Mdr++}var jqe={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},LA="transform-origin";function Cdr(e,t,n){var r=Nt({},e.shape);Nt(r,t),e.buildPath(n,r);var i=new i2t;return i.reset(Bgt(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function xdr(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[LA]=n+"px "+r+"px")}var wdr={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function c2t(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Sdr(e,t,n){var r=e.shape.paths,i={},o,a;if(ye(r,function(l){var c=hve(n.zrId);c.animation=!0,WJ(l,{},c,!0);var u=c.cssAnims,d=c.cssNodes,p=Hi(u),h=p.length;if(h){a=p[h-1];var g=u[a];for(var m in g){var b=g[m];i[m]=i[m]||{d:""},i[m].d+=b.d||""}for(var y in d){var M=d[y].animation;M.indexOf(a)>=0&&(o=M)}}}),!!o){t.d=!1;var s=c2t(i,n);return o.replace(a,s)}}function Hqe(e){return An(e)?jqe[e]?"cubic-bezier("+jqe[e]+")":sSe(e)?e:"":""}function WJ(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof MJ){var s=Sdr(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},c=0;c<o;c++){var u=i[c],d=[u.getMaxTime()/1e3+"s"],p=Hqe(u.getClip().easing),h=u.getDelay();p?d.push(p):d.push("linear"),h&&d.push(h/1e3+"s"),u.getLoop()&&d.push("infinite");var g=d.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(u)}function m(M){var C=M[1],x=C.length,w={},S={},A={},z="animation-timing-function";function O(pe,te,ce){for(var oe=pe.getTracks(),ae=pe.getMaxTime(),ne=0;ne<oe.length;ne++){var le=oe[ne];if(le.needsAnimate()){var he=le.keyframes,be=le.propName;if(ce&&(be=ce(be)),be)for(var me=0;me<he.length;me++){var Me=he[me],Oe=Math.round(Me.time/ae*100)+"%",de=Hqe(Me.easing),ie=Me.rawValue;(An(ie)||yo(ie))&&(te[Oe]=te[Oe]||{},te[Oe][be]=Me.rawValue,de&&(te[Oe][z]=de))}}}}for(var T=0;T<x;T++){var R=C[T],P=R.targetName;P?P==="shape"&&O(R,S):!r&&O(R,w)}for(var F in w){var N={};$gt(N,e),Nt(N,w[F]);var L=jgt(N),W=w[F][z];A[F]=L?{transform:L}:{},xdr(A[F],N),W&&(A[F][z]=W)}var j,V=!0;for(var F in S){A[F]=A[F]||{};var G=!j,W=S[F][z];G&&(j=new Fb);var q=j.len();j.reset(),A[F].d=Cdr(e,S[F],j);var $=j.len();if(!G&&q!==$){V=!1;break}W&&(A[F][z]=W)}if(!V)for(var F in A)delete A[F].d;if(!r)for(var T=0;T<x;T++){var R=C[T],P=R.targetName;P==="style"&&O(R,A,function(oe){return wdr[oe]})}for(var U=Hi(A),X=!0,Q,T=1;T<U.length;T++){var re=U[T-1],ee=U[T];if(A[re][LA]!==A[ee][LA]){X=!1;break}Q=A[re][LA]}if(X&&Q){for(var F in A)A[F][LA]&&delete A[F][LA];t[LA]=Q}if(Lo(U,function(pe){return Hi(A[pe]).length>0}).length){var se=c2t(A,n);return se+" "+M[0]+" both"}}for(var b in l){var s=m(l[b]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+l2t();n.cssNodes["."+y]={animation:a.join(",")},t.class=y}}function Adr(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};Vqe(r,t,n)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=fU(l))}var c=i.lineWidth;if(c){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;c=c/u}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),c&&(r["stroke-width"]=c),Vqe(r,t,n)}}function Vqe(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+l2t(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=e),t.class=t.class?t.class+" "+o:o}var Oq=Math.round;function u2t(e){return e&&An(e.src)}function d2t(e){return e&&fr(e.toDataURL)}function bAe(e,t,n,r){fdr(function(i,o){var a=i==="fill"||i==="stroke";a&&qgt(o)?h2t(t,e,i,r):a&&cSe(o)?f2t(n,e,i,r):e[i]=o,a&&r.ssr&&o==="none"&&(e["pointer-events"]="visible")},t,n,!1),Pdr(n,e,r)}function yAe(e,t){var n=Ygt(t);n&&(n.each(function(r,i){r!=null&&(e[(qqe+i).toLowerCase()]=r+"")}),t.isSilent()&&(e[qqe+"silent"]="true"))}function Gqe(e){return fx(e[0]-1)&&fx(e[1])&&fx(e[2])&&fx(e[3]-1)}function Odr(e){return fx(e[4])&&fx(e[5])}function MAe(e,t,n){if(t&&!(Odr(t)&&Gqe(t))){var r=1e4;e.transform=Gqe(t)?"translate("+Oq(t[4]*r)/r+" "+Oq(t[5]*r)/r+")":Err(t)}}function $qe(e,t,n){for(var r=e.points,i=[],o=0;o<r.length;o++)i.push(Oq(r[o][0]*n)/n),i.push(Oq(r[o][1]*n)/n);t.points=i.join(" ")}function Uqe(e){return!e.smooth}function zdr(e){var t=Vt(e,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,i){for(var o=0;o<t.length;o++){var a=t[o],s=n[a[0]];s!=null&&(r[a[1]]=Oq(s*i)/i)}}}var Tdr={circle:[zdr(["cx","cy","r"])],polyline:[$qe,Uqe],polygon:[$qe,Uqe]};function Edr(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function p2t(e,t){var n=e.style,r=e.shape,i=Tdr[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,c=t.compress&&Bgt(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(a&&Edr(e))&&!(l<1)){s=e.type;var u=Math.pow(10,c);i[0](r,o,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var p=e.path;d&&(p.beginPath(),e.buildPath(p,e.shape),e.pathUpdated());var h=p.getVersion(),g=e,m=g.__svgPathBuilder;(g.__svgPathVersion!==h||!m||l!==g.__svgPathStrokePercent)&&(m||(m=g.__svgPathBuilder=new i2t),m.reset(c),p.rebuildPath(m,l),m.generateStr(),g.__svgPathVersion=h,g.__svgPathStrokePercent=l),o.d=m.getStr()}return MAe(o,e.transform),bAe(o,n,e,t),yAe(o,e),t.animation&&WJ(e,o,t),t.emphasis&&Adr(e,o,t),wu(s,e.id+"",o)}function Rdr(e,t){var n=e.style,r=n.image;if(r&&!An(r)&&(u2t(r)?r=r.src:d2t(r)&&(r=r.toDataURL())),!!r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),MAe(l,e.transform),bAe(l,n,e,t),yAe(l,e),t.animation&&WJ(e,l,t),wu("image",e.id+"",l)}}function Idr(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||iw,o=n.x||0,a=Irr(n.y||0,dJ(i),n.textBaseline),s=Rrr[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Mmt(n)){var c="",u=n.fontStyle,d=ymt(n.fontSize);if(!parseFloat(d))return;var p=n.fontFamily||dgt,h=n.fontWeight;c+="font-size:"+d+";font-family:"+p+";",u&&u!=="normal"&&(c+="font-style:"+u+";"),h&&h!=="normal"&&(c+="font-weight:"+h+";"),l.style=c}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),MAe(l,e.transform),bAe(l,n,e,t),yAe(l,e),t.animation&&WJ(e,l,t),wu("text",e.id+"",l,void 0,r)}}function Xqe(e,t){if(e instanceof Di)return p2t(e,t);if(e instanceof Du)return Rdr(e,t);if(e instanceof LP)return Idr(e,t)}function Pdr(e,t,n){var r=e.style;if(Prr(r)){var i=Drr(e),o=n.shadowCache,a=o[i];if(!a){var s=e.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,p=r.shadowBlur,h=fq(r.shadowColor),g=h.opacity,m=h.color,b=p/2/l,y=p/2/c,M=b+" "+y;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=wu("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[wu("feDropShadow","",{dx:u/l,dy:d/c,stdDeviation:M,"flood-color":m,"flood-opacity":g})]),o[i]=a}t.filter=uJ(a)}}function h2t(e,t,n,r){var i=e[n],o,a={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Fgt(i))o="linearGradient",a.x1=i.x,a.y1=i.y,a.x2=i.x2,a.y2=i.y2;else if(Wgt(i))o="radialGradient",a.cx=Xr(i.x,.5),a.cy=Xr(i.y,.5),a.r=Xr(i.r,.5);else return;for(var s=i.colorStops,l=[],c=0,u=s.length;c<u;++c){var d=xme(s[c].offset)*100+"%",p=s[c].color,h=fq(p),g=h.color,m=h.opacity,b={offset:d};b["stop-color"]=g,m<1&&(b["stop-opacity"]=m),l.push(wu("stop",c+"",b))}var y=wu(o,"",a,l),M=vAe(y),C=r.gradientCache,x=C[M];x||(x=r.zrId+"-g"+r.gradientIdx++,C[M]=x,a.id=x,r.defs[x]=wu(o,x,a,l)),t[n]=uJ(x)}function f2t(e,t,n,r){var i=e.style[n],o=e.getBoundingRect(),a={},s=i.repeat,l=s==="no-repeat",c=s==="repeat-x",u=s==="repeat-y",d;if(Ngt(i)){var p=i.imageWidth,h=i.imageHeight,g=void 0,m=i.image;if(An(m)?g=m:u2t(m)?g=m.src:d2t(m)&&(g=m.toDataURL()),typeof Image>"u"){var b="Image width/height must been given explictly in svg-ssr renderer.";S0(p,b),S0(h,b)}else if(p==null||h==null){var y=function(T,R){if(T){var P=T.elm,F=p||R.width,N=h||R.height;T.tag==="pattern"&&(c?(N=1,F/=o.width):u&&(F=1,N/=o.height)),T.attrs.width=F,T.attrs.height=N,P&&(P.setAttribute("width",F),P.setAttribute("height",N))}},M=bSe(g,null,e,function(T){l||y(S,T),y(d,T)});M&&M.width&&M.height&&(p=p||M.width,h=h||M.height)}d=wu("image","img",{href:g,width:p,height:h}),a.width=p,a.height=h}else i.svgElement&&(d=Or(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(d){var C,x;l?C=x=1:c?(x=1,C=a.width/o.width):u?(C=1,x=a.height/o.height):a.patternUnits="userSpaceOnUse",C!=null&&!isNaN(C)&&(a.width=C),x!=null&&!isNaN(x)&&(a.height=x);var w=jgt(i);w&&(a.patternTransform=w);var S=wu("pattern","",a,[d]),A=vAe(S),z=r.patternCache,O=z[A];O||(O=r.zrId+"-p"+r.patternIdx++,z[A]=O,a.id=O,S=r.defs[O]=wu("pattern",O,a,[d])),t[n]=uJ(O)}}function Ddr(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[e.id]=o,i[o]=wu("clipPath",o,a,[p2t(e,n)])}t["clip-path"]=uJ(o)}function Yqe(e){return document.createTextNode(e)}function ZA(e,t,n){e.insertBefore(t,n)}function Kqe(e,t){e.removeChild(t)}function Qqe(e,t){e.appendChild(t)}function g2t(e){return e.parentNode}function m2t(e){return e.nextSibling}function sse(e,t){e.textContent=t}var Zqe=58,kdr=120,Ldr=wu("","");function fve(e){return e===void 0}function Dv(e){return e!==void 0}function _dr(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;o!==void 0&&(r[o]=i)}return r}function mN(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function zq(e){var t,n=e.children,r=e.tag;if(Dv(r)){var i=e.elm=s2t(r);if(CAe(Ldr,e),Ht(n))for(t=0;t<n.length;++t){var o=n[t];o!=null&&Qqe(i,zq(o))}else Dv(e.text)&&!xr(e.text)&&Qqe(i,Yqe(e.text))}else e.elm=Yqe(e.text);return e.elm}function v2t(e,t,n,r,i){for(;r<=i;++r){var o=n[r];o!=null&&ZA(e,zq(o),t)}}function WU(e,t,n,r){for(;n<=r;++n){var i=t[n];if(i!=null)if(Dv(i.tag)){var o=g2t(i.elm);Kqe(o,i.elm)}else Kqe(e,i.elm)}}function CAe(e,t){var n,r=t.elm,i=e&&e.attrs||{},o=t.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n==="style"?r.style.cssText=a:n.charCodeAt(0)!==kdr?r.setAttribute(n,a):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(gdr,n,a):n.charCodeAt(3)===Zqe?r.setAttributeNS(mdr,n,a):n.charCodeAt(5)===Zqe?r.setAttributeNS(a2t,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function Ndr(e,t,n){for(var r=0,i=0,o=t.length-1,a=t[0],s=t[o],l=n.length-1,c=n[0],u=n[l],d,p,h,g;r<=o&&i<=l;)a==null?a=t[++r]:s==null?s=t[--o]:c==null?c=n[++i]:u==null?u=n[--l]:mN(a,c)?(AR(a,c),a=t[++r],c=n[++i]):mN(s,u)?(AR(s,u),s=t[--o],u=n[--l]):mN(a,u)?(AR(a,u),ZA(e,a.elm,m2t(s.elm)),a=t[++r],u=n[--l]):mN(s,c)?(AR(s,c),ZA(e,s.elm,a.elm),s=t[--o],c=n[++i]):(fve(d)&&(d=_dr(t,r,o)),p=d[c.key],fve(p)?ZA(e,zq(c),a.elm):(h=t[p],h.tag!==c.tag?ZA(e,zq(c),a.elm):(AR(h,c),t[p]=void 0,ZA(e,h.elm,a.elm))),c=n[++i]);(r<=o||i<=l)&&(r>o?(g=n[l+1]==null?null:n[l+1].elm,v2t(e,g,n,i,l)):WU(e,t,r,o))}function AR(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(CAe(e,t),fve(t.text)?Dv(r)&&Dv(i)?r!==i&&Ndr(n,r,i):Dv(i)?(Dv(e.text)&&sse(n,""),v2t(n,null,i,0,i.length-1)):Dv(r)?WU(n,r,0,r.length-1):Dv(e.text)&&sse(n,""):e.text!==t.text&&(Dv(r)&&WU(n,r,0,r.length-1),sse(n,t.text)))}function Fdr(e,t){if(mN(e,t))AR(e,t);else{var n=e.elm,r=g2t(n);zq(t),r!==null&&(ZA(r,t.elm,m2t(n)),WU(r,[e],0,0))}return t}var Wdr=0,qdr=(function(){function e(t,n,r){if(this.type="svg",this.refreshHover=Jqe(),this.configLayer=Jqe(),this.storage=n,this._opts=r=Nt({},r),this.root=t,this._id="zr"+Wdr++,this._oldVNode=Bqe(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=s2t("svg");CAe(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Fdr(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return Xqe(t,hve(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=hve(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis,o.ssr=this._opts.ssr;var a=[],s=this._bgVNode=Bdr(r,i,this._backgroundColor,o);s&&a.push(s);var l=t.compress?null:this._mainVNode=wu("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var c=Vt(Hi(o.defs),function(p){return o.defs[p]});if(c.length&&a.push(wu("defs","defs",{},c)),t.animation){var u=ydr(o.cssNodes,o.cssAnims,{newline:!0});if(u){var d=wu("style","stl",{},[],u);a.push(d)}}return Bqe(r,i,a,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},vAe(this.renderToVNode({animation:Xr(t.cssAnimation,!0),emphasis:Xr(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Xr(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var i=t.length,o=[],a=0,s,l,c=0,u=0;u<i;u++){var d=t[u];if(!d.invisible){var p=d.__clipPaths,h=p&&p.length||0,g=l&&l.length||0,m=void 0;for(m=Math.max(h-1,g-1);m>=0&&!(p&&l&&p[m]===l[m]);m--);for(var b=g-1;b>m;b--)a--,s=o[a-1];for(var y=m+1;y<h;y++){var M={};Ddr(p[y],M,n);var C=wu("g","clip-g-"+c++,M,[]);(s?s.children:r).push(C),o[a++]=C,s=C}l=p;var x=Xqe(d,n);x&&(s?s.children:r).push(x)}}},e.prototype.resize=function(t,n){var r=this._opts,i=this.root,o=this._viewport;if(t!=null&&(r.width=t),n!=null&&(r.height=n),i&&o&&(o.style.display="none",t=GR(i,0,r),n=GR(i,1,r),o.style.display=""),this._width!==t||this._height!==n){if(this._width=t,this._height=n,o){var a=o.style;a.width=t+"px",a.height=n+"px"}if(cSe(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",n))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var n=this.renderToString(),r="data:image/svg+xml;";return t?(n=Lrr(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e})();function Jqe(e){return function(){}}function Bdr(e,t,n,r){var i;if(n&&n!=="none")if(i=wu("rect","bg",{width:e,height:t,x:"0",y:"0"}),qgt(n))h2t({fill:n},i.attrs,"fill",r);else if(cSe(n))f2t({style:{fill:n},dirty:Nl,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",r);else{var o=fq(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}function jdr(e){e.registerPainter("svg",qdr)}function e6e(e,t,n){var r=wm.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var lse=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||mU,typeof n=="string"?a=e6e(n,r,i):xr(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(iSe(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=e6e("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new ui(0,0,0,0);function u(M){if(!(!M.isFinite()||M.isZero()))if(a.length===0){var C=new ui(0,0,0,0);C.copy(M),a.push(C)}else{for(var x=!1,w=1/0,S=0,A=0;A<a.length;++A){var z=a[A];if(z.intersect(M)){var O=new ui(0,0,0,0);O.copy(z),O.union(M),a[A]=O,x=!0;break}else if(l){c.copy(M),c.union(z);var T=M.width*M.height,R=z.width*z.height,P=c.width*c.height,F=P-T-R;F<w&&(w=F,S=A)}}if(l&&(a[S].union(M),x=!0),!x){var C=new ui(0,0,0,0);C.copy(M),a.push(C)}l||(l=a.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var p=n[d];if(p){var h=p.shouldBePainted(i,o,!0,!0),g=p.__isRendered&&(p.__dirty&Up||!h)?p.getPrevPaintRect():null;g&&u(g);var m=h&&(p.__dirty&Up||!p.__isRendered)?p.getPaintRect():null;m&&u(m)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var p=r[d],h=p&&p.shouldBePainted(i,o,!0,!0);if(p&&(!h||!p.__zr)&&p.__isRendered){var g=p.getPrevPaintRect();g&&u(g)}}var b;do{b=!1;for(var d=0;d<a.length;){if(a[d].isZero()){a.splice(d,1);continue}for(var y=d+1;y<a.length;)a[d].intersect(a[y])?(b=!0,a[d].union(a[y]),a.splice(y,1)):y++;d++}}while(b);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=r+"px"),o.width=n*i,o.height=r*i,s&&(s.width=n*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(n,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var c=this.motionBlur&&!n,u=this.lastFrameAlpha,d=this.dpr,p=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/d,l/d));var h=this.domBack;function g(m,b,y,M){if(a.clearRect(m,b,y,M),r&&r!=="transparent"){var C=void 0;if(_B(r)){var x=r.global||r.__width===y&&r.__height===M;C=x&&r.__canvasGradient||rve(a,r,{x:0,y:0,width:y,height:M}),r.__canvasGradient=C,r.__width=y,r.__height=M}else mgt(r)&&(r.scaleX=r.scaleX||d,r.scaleY=r.scaleY||d,C=ive(a,r,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));a.save(),a.fillStyle=C||r,a.fillRect(m,b,y,M),a.restore()}c&&(a.save(),a.globalAlpha=u,a.drawImage(h,m,b,y,M),a.restore())}!i||c?g(0,0,s,l):i.length&&ye(i,function(m){g(m.x*d,m.y*d,m.width*d,m.height*d)})},t})(Zf),t6e=1e5,bA=314159,EV=.01,Hdr=.001;function Vdr(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Gdr(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var $dr=(function(){function e(t,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Nt({},r||{}),this.dpr=r.devicePixelRatio||mU,this._singleCanvas=o,this.root=t;var a=t.style;a&&(iSe(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var u=t,d=u.width,p=u.height;r.width!=null&&(d=r.width),r.height!=null&&(p=r.height),this.dpr=r.devicePixelRatio||1,u.width=d*this.dpr,u.height=p*this.dpr,this._width=d,this._height=p;var h=new lse(u,this,this.dpr);h.__builtin__=!0,h.initContext(),l[bA]=h,h.zlevel=bA,s.push(bA),this._domRoot=t}else{this._width=GR(t,0,r),this._height=GR(t,1,r);var c=this._domRoot=Gdr(this._width,this._height);t.appendChild(c)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<n;a++){var s=t[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(t6e)),o||(o=r.ctx,o.save()),CO(o,s,i,a===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(t6e)},e.prototype.paintOne=function(t,n){ZSe(t,n)},e.prototype._paintList=function(t,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,n,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;uU(function(){l._paintList(t,n,r,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(bA).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||r)&&o.push(c)}for(var u=!0,d=!1,p=function(m){var b=o[m],y=b.ctx,M=a&&b.createRepaintRects(t,n,h._width,h._height),C=r?b.__startIndex:b.__drawIndex,x=!r&&b.incremental&&Date.now,w=x&&Date.now(),S=b.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(b.__startIndex===b.__endIndex)b.clear(!1,S,M);else if(C===b.__startIndex){var A=t[C];(!A.incremental||!A.notClear||r)&&b.clear(!1,S,M)}C===-1&&(console.error("For some unknown reason. drawIndex is -1"),C=b.__startIndex);var z,O=function(F){var N={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(z=C;z<b.__endIndex;z++){var L=t[z];if(L.__inHover&&(d=!0),i._doPaintEl(L,b,a,F,N,z===b.__endIndex-1),x){var W=Date.now()-w;if(W>15)break}}N.prevElClipPaths&&y.restore()};if(M)if(M.length===0)z=b.__endIndex;else for(var T=h.dpr,R=0;R<M.length;++R){var P=M[R];y.save(),y.beginPath(),y.rect(P.x*T,P.y*T,P.width*T,P.height*T),y.clip(),O(P),y.restore()}else y.save(),O(),y.restore();b.__drawIndex=z,b.__drawIndex<b.__endIndex&&(u=!1)},h=this,g=0;g<o.length;g++)p(g);return Ii.wxa&&ye(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:u,needsRefreshHover:d}},e.prototype._doPaintEl=function(t,n,r,i,o,a){var s=n.ctx;if(r){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(CO(s,t,o,a),t.setPrevPaintRect(l))}else CO(s,t,o,a)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=bA);var r=this._layers[t];return r||(r=new lse("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?ei(r,this._layerConfig[t],!0):this._layerConfig[t-EV]&&ei(r,this._layerConfig[t-EV],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!r[t]&&Vdr(n)){if(o>0&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(n.dom,c.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i];t.call(n,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&t.call(n,a,o)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||t.call(n,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,p){d.__dirty=d.__used=!1});function n(d){o&&(o.__endIndex!==d&&(o.__dirty=!0),o.__endIndex=d)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var i=t[r];if(i.zlevel!==t[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var i=t[l],c=i.zlevel,u=void 0;s!==c&&(s=c,a=0),i.incremental?(u=this.getLayer(c+Hdr,this._needsManuallyCompositing),u.incremental=!0,a=1):u=this.getLayer(c+(a>0?EV:0),this._needsManuallyCompositing),u.__builtin__||iJ("ZLevel "+c+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==l&&(u.__dirty=!0),u.__startIndex=l,u.incremental?u.__drawIndex=-1:u.__drawIndex=l,n(l),o=u),i.__dirty&Up&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(d,p){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ye(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?ei(r[t],n,!0):r[t]=n;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+EV){var a=this._layers[o];ei(a,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,i=n[t];i&&(i.dom.parentNode.removeChild(i.dom),delete n[t],r.splice(hi(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(t!=null&&(i.width=t),n!=null&&(i.height=n),t=GR(o,0,i),n=GR(o,1,i),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(bA).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[bA].dom;var n=new lse("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,o=n.dom.height;this.eachLayer(function(d){d.__builtin__?r.drawImage(d.dom,0,0,i,o):d.renderToCanvas&&(r.save(),d.renderToCanvas(r),r.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var u=s[l];CO(r,u,a,l===c-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function Udr(e){e.registerPainter("canvas",$dr)}var Xdr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return r2(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new Ir,i=sc("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,c=sc(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(c),c.setStyle(n.itemStyle);var u=n.iconRotate==="inherit"?a:n.iconRotate||0;return c.rotation=u*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Ia);function WP(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=NP(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a<n.length;a++)o.push(NP(e,t,n[a]));return o.join(" ")}}function b2t(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Ht(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var KB=(function(e){gt(t,e);function t(n,r,i,o){var a=e.call(this)||this;return a.updateData(n,r,i,o),a}return t.prototype._createSymbol=function(n,r,i,o,a){this.removeAll();var s=sc(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=Ydr,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){rM(this.childAt(0))},t.prototype.downplay=function(){iM(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),c=a!==this._symbolType,u=o&&o.disableAnimation;if(c){var d=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,d)}else{var p=this.childAt(0);p.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};u?p.attr(h):Ao(p,h,s,r),Om(p)}if(this._updateCommon(n,r,l,i,o),c){var p=this.childAt(0);if(!u){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,ys(p,h,s,r)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,c,u,d,p,h,g,m,b,y;if(o&&(c=o.emphasisItemStyle,u=o.blurItemStyle,d=o.selectItemStyle,p=o.focus,h=o.blurScope,m=o.labelStatesModels,b=o.hoverScale,y=o.cursorStyle,g=o.emphasisDisabled),!o||n.hasItemOption){var M=o&&o.itemModel?o.itemModel:n.getItemModel(r),C=M.getModel("emphasis");c=C.getModel("itemStyle").getItemStyle(),d=M.getModel(["select","itemStyle"]).getItemStyle(),u=M.getModel(["blur","itemStyle"]).getItemStyle(),p=C.get("focus"),h=C.get("blurScope"),g=C.get("disabled"),m=Ru(M),b=C.getShallow("scale"),y=M.getShallow("cursor")}var x=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=U3(n.getItemVisual(r,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var S=n.getItemVisual(r,"style"),A=S.fill;if(s instanceof Du){var z=s.style;s.useStyle(Nt({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},S))}else s.__isEmptyBrush?s.useStyle(Nt({},S)):s.useStyle(S),s.style.decal=null,s.setColor(A,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var O=n.getItemVisual(r,"liftZ"),T=this._z2;O!=null?T==null&&(this._z2=s.z2,s.z2+=O):T!=null&&(s.z2=T,this._z2=null);var R=a&&a.useNameLabel;zd(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:P,inheritColor:A,defaultOpacity:S.opacity});function P(L){return R?n.getName(L):WP(n,L)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var F=s.ensureState("emphasis");F.style=c,s.ensureState("select").style=d,s.ensureState("blur").style=u;var N=b==null||b===!0?Math.max(1.1,3/this._sizeY):isFinite(b)&&b>0?+b:1;F.scaleX=this._sizeX*N,F.scaleY=this._sizeY*N,this.setSymbolScale(1),sl(this,p,h,g)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=_r(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&aw(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();aw(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return fk(n.getItemVisual(r,"symbolSize"))},t})(Ir);function Ydr(e,t){this.parent.drift(e,t)}function cse(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function n6e(e){return e!=null&&!xr(e)&&(e={isIgnore:e}),e||{}}function r6e(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ru(t),cursorStyle:t.get("cursor")}}var QB=(function(){function e(t){this.group=new Ir,this._SymbolCtor=t||KB}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=n6e(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=r6e(t),c={disableAnimation:s},u=n.getSymbolPoint||function(d){return t.getItemLayout(d)};o||r.removeAll(),t.diff(o).add(function(d){var p=u(d);if(cse(t,p,d,n)){var h=new a(t,d,l,c);h.setPosition(p),t.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,p){var h=o.getItemGraphicEl(p),g=u(d);if(!cse(t,g,d,n)){r.remove(h);return}var m=t.getItemVisual(d,"symbol")||"circle",b=h&&h.getSymbolType&&h.getSymbolType();if(!h||b&&b!==m)r.remove(h),h=new a(t,d,l,c),h.setPosition(g);else{h.updateData(t,d,l,c);var y={x:g[0],y:g[1]};s?h.attr(y):Ao(h,y,i)}r.add(h),t.setItemGraphicEl(d,h)}).remove(function(d){var p=o.getItemGraphicEl(d);p&&p.fadeOut(function(){r.remove(p)},i)}).execute(),this._getSymbolPoint=u,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=t._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=r6e(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=n6e(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=n.getItemLayout(o);if(cse(n,a,o,r)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Fw(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},e})();function y2t(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=Kdr(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(a),u=s==="x"||s==="radius"?1:0,d=Vt(e.dimensions,function(g){return t.mapDimension(g)}),p=!1,h=t.getCalculationInfo("stackResultDimension");return aM(t,d[0])&&(p=!0,d[0]=h),aM(t,d[1])&&(p=!0,d[1]=h),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Kdr(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:yo(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function M2t(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}function Qdr(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Zdr(e,t,n,r,i,o,a,s){for(var l=Qdr(e,t),c=[],u=[],d=[],p=[],h=[],g=[],m=[],b=y2t(i,t,a),y=e.getLayout("points")||[],M=t.getLayout("points")||[],C=0;C<l.length;C++){var x=l[C],w=!0,S=void 0,A=void 0;switch(x.cmd){case"=":S=x.idx*2,A=x.idx1*2;var z=y[S],O=y[S+1],T=M[A],R=M[A+1];(isNaN(z)||isNaN(O))&&(z=T,O=R),c.push(z,O),u.push(T,R),d.push(n[S],n[S+1]),p.push(r[A],r[A+1]),m.push(t.getRawIndex(x.idx1));break;case"+":var P=x.idx,F=b.dataDimsForPoint,N=i.dataToPoint([t.get(F[0],P),t.get(F[1],P)]);A=P*2,c.push(N[0],N[1]),u.push(M[A],M[A+1]);var L=M2t(b,i,t,P);d.push(L[0],L[1]),p.push(r[A],r[A+1]),m.push(t.getRawIndex(P));break;case"-":w=!1}w&&(h.push(x),g.push(g.length))}g.sort(function(re,ee){return m[re]-m[ee]});for(var W=c.length,j=nb(W),V=nb(W),G=nb(W),q=nb(W),$=[],C=0;C<g.length;C++){var U=g[C],X=C*2,Q=U*2;j[X]=c[Q],j[X+1]=c[Q+1],V[X]=u[Q],V[X+1]=u[Q+1],G[X]=d[Q],G[X+1]=d[Q+1],q[X]=p[Q],q[X+1]=p[Q+1],$[C]=h[U]}return{current:j,next:V,stackedOnCurrent:G,stackedOnNext:q,status:$}}var hC=Math.min,fC=Math.max;function iz(e,t){return isNaN(e)||isNaN(t)}function gve(e,t,n,r,i,o,a,s,l){for(var c,u,d,p,h,g,m=n,b=0;b<r;b++){var y=t[m*2],M=t[m*2+1];if(m>=i||m<0)break;if(iz(y,M)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](y,M),d=y,p=M;else{var C=y-c,x=M-u;if(C*C+x*x<.5){m+=o;continue}if(a>0){for(var w=m+o,S=t[w*2],A=t[w*2+1];S===y&&A===M&&b<r;)b++,w+=o,m+=o,S=t[w*2],A=t[w*2+1],y=t[m*2],M=t[m*2+1],C=y-c,x=M-u;var z=b+1;if(l)for(;iz(S,A)&&z<r;)z++,w+=o,S=t[w*2],A=t[w*2+1];var O=.5,T=0,R=0,P=void 0,F=void 0;if(z>=r||iz(S,A))h=y,g=M;else{T=S-c,R=A-u;var N=y-c,L=S-y,W=M-u,j=A-M,V=void 0,G=void 0;if(s==="x"){V=Math.abs(N),G=Math.abs(L);var q=T>0?1:-1;h=y-q*V*a,g=M,P=y+q*G*a,F=M}else if(s==="y"){V=Math.abs(W),G=Math.abs(j);var $=R>0?1:-1;h=y,g=M-$*V*a,P=y,F=M+$*G*a}else V=Math.sqrt(N*N+W*W),G=Math.sqrt(L*L+j*j),O=G/(G+V),h=y-T*a*(1-O),g=M-R*a*(1-O),P=y+T*a*O,F=M+R*a*O,P=hC(P,fC(S,y)),F=hC(F,fC(A,M)),P=fC(P,hC(S,y)),F=fC(F,hC(A,M)),T=P-y,R=F-M,h=y-T*V/G,g=M-R*V/G,h=hC(h,fC(c,y)),g=hC(g,fC(u,M)),h=fC(h,hC(c,y)),g=fC(g,hC(u,M)),T=y-h,R=M-g,P=y+T*G/V,F=M+R*G/V}e.bezierCurveTo(d,p,h,g,y,M),d=P,p=F}else e.lineTo(y,M)}c=y,u=M,m+=o}return b}var C2t=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Jdr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new C2t},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&iz(i[a*2-2],i[a*2-1]);a--);for(;o<a&&iz(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=gve(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=Fb.CMD,s,l,c=r==="x",u=[],d=0;d<o.length;){var p=o[d++],h=void 0,g=void 0,m=void 0,b=void 0,y=void 0,M=void 0,C=void 0;switch(p){case a.M:s=o[d++],l=o[d++];break;case a.L:if(h=o[d++],g=o[d++],C=c?(n-s)/(h-s):(n-l)/(g-l),C<=1&&C>=0){var x=c?(g-l)*C+l:(h-s)*C+s;return c?[n,x]:[x,n]}s=h,l=g;break;case a.C:h=o[d++],g=o[d++],m=o[d++],b=o[d++],y=o[d++],M=o[d++];var w=c?pU(s,h,m,y,n,u):pU(l,g,b,M,n,u);if(w>0)for(var S=0;S<w;S++){var A=u[S];if(A<=1&&A>=0){var x=c?yu(l,g,b,M,A):yu(s,h,m,y,A);return c?[n,x]:[x,n]}}s=y,l=M;break}}},t})(Di),e0r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(C2t),x2t=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new e0r},t.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&iz(i[s*2-2],i[s*2-1]);s--);for(;a<s&&iz(i[a*2],i[a*2+1]);a++);}for(;a<s;){var c=gve(n,i,a,s,s,1,r.smooth,l,r.connectNulls);gve(n,o,a+c-1,c,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=c+1,n.closePath()}},t})(Di);function w2t(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,u=n.get(["lineStyle","width"])||0;a-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new ao({shape:{x:a,y:s,width:l,height:c}});if(t){var p=e.getBaseAxis(),h=p.isHorizontal(),g=p.inverse;h?(g&&(d.shape.x+=l),d.shape.width=0):(g||(d.shape.y+=c),d.shape.height=0);var m=fr(i)?function(b){i(b,d)}:null;ys(d,{shape:{width:l,height:c,x:a,y:s}},n,null,r,m)}return d}function S2t(e,t,n){var r=e.getArea(),i=wl(r.r0,1),o=wl(r.r,1),a=new A0({shape:{cx:wl(e.cx,1),cy:wl(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,ys(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function ZB(e,t,n,r,i){if(e){if(e.type==="polar")return S2t(e,t,n);if(e.type==="cartesian2d")return w2t(e,t,n,r,i)}else return null;return null}function X3(e,t){return e.type===t}function i6e(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function o6e(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function a6e(e,t){var n=o6e(e),r=n[0],i=n[1],o=o6e(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function s6e(e){return yo(e)?e:e?.5:0}function t0r(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=nb(r*2),o=0;o<r;o++){var a=M2t(n,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function gC(e,t,n,r,i){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,c=[],u=[],d=[],p=[];if(i){for(l=0;l<e.length;l+=2){var h=t||e;!isNaN(h[l])&&!isNaN(h[l+1])&&p.push(e[l],e[l+1])}e=p}for(l=0;l<e.length-2;l+=2)switch(d[0]=e[l+2],d[1]=e[l+3],u[0]=e[l],u[1]=e[l+1],s.push(u[0],u[1]),r){case"end":c[a]=d[a],c[1-a]=u[1-a],s.push(c[0],c[1]);break;case"middle":var g=(u[a]+d[a])/2,m=[];c[a]=m[a]=g,c[1-a]=u[1-a],m[1-a]=d[1-a],s.push(c[0],c[1]),s.push(m[0],m[1]);break;default:c[a]=u[a],c[1-a]=d[1-a],s.push(c[0],c[1])}return s.push(e[l++],e[l++]),s}function n0r(e,t){var n=[],r=e.length,i,o;function a(u,d,p){var h=u.coord,g=(p-h)/(d.coord-h),m=lSe(g,[u.color,d.color]);return{coord:p,color:m}}for(var s=0;s<r;s++){var l=e[s],c=l.coord;if(c<0)i=l;else if(c>t){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function r0r(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(o){var l=t.getAxis(i),c=Vt(o.stops,function(C){return{coord:l.toGlobalCoord(l.dataToCoord(C.value)),color:C.color}}),u=c.length,d=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var p=n0r(c,i==="x"?n.getWidth():n.getHeight()),h=p.length;if(!h&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var g=10,m=p[0].coord-g,b=p[h-1].coord+g,y=b-m;if(y<.001)return"transparent";ye(p,function(C){C.offset=(C.coord-m)/y}),p.push({offset:h?p[h-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:d[0]||"transparent"});var M=new ik(0,0,0,0,p,!0);return M[i]=m,M[i+"2"]=b,M}}}function i0r(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&o0r(o,t))){var a=t.mapDimension(o.dim),s={};return ye(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function o0r(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(KB.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function a0r(e,t){return isNaN(e)||isNaN(t)}function s0r(e){for(var t=e.length/2;t>0&&a0r(e[t*2-2],e[t*2-1]);t--);return t-1}function l6e(e,t){return[e[t*2],e[t*2+1]]}function l0r(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,c=0;c<r;c++)if(a=e[c*2+i],!(isNaN(a)||isNaN(e[c*2+1-i]))){if(c===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=c;break}s=c,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function A2t(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<f1.length;t++)if(e.get([f1[t],"endLabel","show"]))return!0;return!1}function use(e,t,n,r){if(X3(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=A2t(r)?function(h,g){e._endLabelOnDuring(h,g,a,s,o,i,t)}:null,c=t.getBaseAxis().isHorizontal(),u=w2t(t,n,r,function(){var h=e._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var d=u.shape,p=Math.max(d.width,d.height);c?(d.y-=p,d.height+=p*2):(d.x-=p,d.width+=p*2)}return l&&l(1,u),u}else return S2t(t,n,r)}function c0r(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var u0r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new Ir,r=new QB;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=Rn(this._changePolyState,this)},t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),c=n.getModel("areaStyle"),u=s.getLayout("points")||[],d=o.type==="polar",p=this._coordSys,h=this._symbolDraw,g=this._polyline,m=this._polygon,b=this._lineGroup,y=!r.ssr&&n.get("animation"),M=!c.isEmpty(),C=c.get("origin"),x=y2t(o,s,C),w=M&&t0r(o,s,x),S=n.get("showSymbol"),A=n.get("connectNulls"),z=S&&!d&&i0r(n,s,o),O=this._data;O&&O.eachItemGraphicEl(function(re,ee){re.__temp&&(a.remove(re),O.setItemGraphicEl(ee,null))}),S||h.remove(),a.add(b);var T=d?!1:n.get("step"),R;o&&o.getArea&&n.get("clip",!0)&&(R=o.getArea(),R.width!=null?(R.x-=.1,R.y-=.1,R.width+=.2,R.height+=.2):R.r0&&(R.r0-=.5,R.r+=.5)),this._clipShapeForSymbol=R;var P=r0r(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&p.type===o.type&&T===this._step))S&&h.updateData(s,{isIgnore:z,clipShape:R,disableAnimation:!0,getSymbolPoint:function(re){return[u[re*2],u[re*2+1]]}}),y&&this._initSymbolLabelAnimation(s,o,R),T&&(w&&(w=gC(w,u,o,T,A)),u=gC(u,null,o,T,A)),g=this._newPolyline(u),M?m=this._newPolygon(u,w):m&&(b.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Zz(P)),b.setClipPath(use(this,o,!0,n));else{M&&!m?m=this._newPolygon(u,w):m&&!M&&(b.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Zz(P));var F=b.getClipPath();if(F){var N=use(this,o,!1,n);ys(F,{shape:N.shape},n)}else b.setClipPath(use(this,o,!0,n));S&&h.updateData(s,{isIgnore:z,clipShape:R,disableAnimation:!0,getSymbolPoint:function(re){return[u[re*2],u[re*2+1]]}}),(!i6e(this._stackedOnPoints,w)||!i6e(this._points,u))&&(y?this._doUpdateAnimation(s,w,o,i,T,C,A):(T&&(w&&(w=gC(w,u,o,T,A)),u=gC(u,null,o,T,A)),g.setShape({points:u}),m&&m.setShape({points:u,stackedOnPoints:w})))}var L=n.getModel("emphasis"),W=L.get("focus"),j=L.get("blurScope"),V=L.get("disabled");if(g.useStyle(br(l.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),Od(g,n,"lineStyle"),g.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var G=g.getState("emphasis").style;G.lineWidth=+g.style.lineWidth+1}_r(g).seriesIndex=n.seriesIndex,sl(g,W,j,V);var q=s6e(n.get("smooth")),$=n.get("smoothMonotone");if(g.setShape({smooth:q,smoothMonotone:$,connectNulls:A}),m){var U=s.getCalculationInfo("stackedOnSeries"),X=0;m.useStyle(br(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(X=s6e(U.get("smooth"))),m.setShape({smooth:q,stackedOnSmooth:X,smoothMonotone:$,connectNulls:A}),Od(m,n,"areaStyle"),_r(m).seriesIndex=n.seriesIndex,sl(m,W,j,V)}var Q=this._changePolyState;s.eachItemGraphicEl(function(re){re&&(re.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=s,this._coordSys=o,this._stackedOnPoints=w,this._points=u,this._step=T,this._valueOrigin=C,n.get("triggerLineEvent")&&(this.packEventData(n,g),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){_r(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=Yz(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),c=a.getItemGraphicEl(s);if(!c){var u=l[s*2],d=l[s*2+1];if(isNaN(u)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,d))return;var p=n.get("zlevel")||0,h=n.get("z")||0;c=new KB(a,s),c.x=u,c.y=d,c.setZ(p,h);var g=c.getSymbolPath().getTextContent();g&&(g.zlevel=p,g.z=h,g.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else pa.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=Yz(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else pa.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;yU(this._polyline,n),r&&yU(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Jdr({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new x2t({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var c=n.hostModel,u=c.get("animationDuration");fr(u)&&(u=u(null));var d=c.get("animationDelay")||0,p=fr(d)?d(null):d;n.eachItemGraphicEl(function(h,g){var m=h;if(m){var b=[h.x,h.y],y=void 0,M=void 0,C=void 0;if(i)if(a){var x=i,w=r.pointToCoord(b);o?(y=x.startAngle,M=x.endAngle,C=-w[1]/180*Math.PI):(y=x.r0,M=x.r,C=w[0])}else{var S=i;o?(y=S.x,M=S.x+S.width,C=h.x):(y=S.y+S.height,M=S.y,C=h.y)}var A=M===y?0:(C-y)/(M-y);l&&(A=1-A);var z=fr(d)?d(g):u*A+p,O=m.getSymbolPath(),T=O.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:z}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:z}),O.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(A2t(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new oo({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=s0r(l);u>=0&&(zd(s,Ru(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:u,defaultText:function(d,p,h){return h!=null?b2t(a,h):WP(a,d)},enableTextSetter:!0},c0r(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var c=this._endLabel,u=this._polyline;if(c){n<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var d=i.getLayout("points"),p=i.hostModel,h=p.get("connectNulls"),g=s.get("precision"),m=s.get("distance")||0,b=l.getBaseAxis(),y=b.isHorizontal(),M=b.inverse,C=r.shape,x=M?y?C.x:C.y+C.height:y?C.x+C.width:C.y,w=(y?m:0)*(M?-1:1),S=(y?0:-m)*(M?-1:1),A=y?"x":"y",z=l0r(d,x,A),O=z.range,T=O[1]-O[0],R=void 0;if(T>=1){if(T>1&&!h){var P=l6e(d,O[0]);c.attr({x:P[0]+w,y:P[1]+S}),a&&(R=p.getRawValue(O[0]))}else{var P=u.getPointOn(x,A);P&&c.attr({x:P[0]+w,y:P[1]+S});var F=p.getRawValue(O[0]),N=p.getRawValue(O[1]);a&&(R=lmt(i,g,F,N,z.t))}o.lastFrameIndex=O[0]}else{var L=n===1||o.lastFrameIndex>0?O[0]:0,P=l6e(d,L);a&&(R=p.getRawValue(L)),c.attr({x:P[0]+w,y:P[1]+S})}if(a){var W=sk(c);typeof W.setLabelText=="function"&&W.setLabelText(R)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var c=this._polyline,u=this._polygon,d=n.hostModel,p=Zdr(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),h=p.current,g=p.stackedOnCurrent,m=p.next,b=p.stackedOnNext;if(a&&(g=gC(p.stackedOnCurrent,p.current,i,a,l),h=gC(p.current,null,i,a,l),b=gC(p.stackedOnNext,p.next,i,a,l),m=gC(p.next,null,i,a,l)),a6e(h,m)>3e3||u&&a6e(g,b)>3e3){c.stopAnimation(),c.setShape({points:m}),u&&(u.stopAnimation(),u.setShape({points:m,stackedOnPoints:b}));return}c.shape.__points=p.current,c.shape.points=h;var y={shape:{points:m}};p.current!==h&&(y.shape.__points=p.next),c.stopAnimation(),Ao(c,y,d),u&&(u.setShape({points:h,stackedOnPoints:g}),u.stopAnimation(),Ao(u,{shape:{stackedOnPoints:b}},d),c.shape.points!==u.shape.points&&(u.shape.points=c.shape.points));for(var M=[],C=p.status,x=0;x<C.length;x++){var w=C[x].cmd;if(w==="="){var S=n.getItemGraphicEl(C[x].idx1);S&&M.push({el:S,ptIdx:x})}}c.animators&&c.animators.length&&c.animators[0].during(function(){u&&u.dirtyShape();for(var A=c.shape.__points,z=0;z<M.length;z++){var O=M[z].el,T=M[z].ptIdx*2;O.x=A[T],O.y=A[T+1],O.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(pa);function JB(e,t){return{seriesType:e,plan:pk(),reset:function(n){var r=n.getData(),i=n.coordinateSystem,o=n.pipelineContext,a=t||o.large;if(i){var s=Vt(i.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,c=r.getCalculationInfo("stackResultDimension");aM(r,s[0])&&(s[0]=c),aM(r,s[1])&&(s[1]=c);var u=r.getStore(),d=r.getDimensionIndex(s[0]),p=r.getDimensionIndex(s[1]);return l&&{progress:function(h,g){for(var m=h.end-h.start,b=a&&nb(m*l),y=[],M=[],C=h.start,x=0;C<h.end;C++){var w=void 0;if(l===1){var S=u.get(d,C);w=i.dataToPoint(S,null,M)}else y[0]=u.get(d,C),y[1]=u.get(p,C),w=i.dataToPoint(y,null,M);a?(b[x++]=w[0],b[x++]=w[1]):g.setItemLayout(C,w.slice())}a&&g.setLayout("points",b)}}}}}}var d0r={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},p0r=function(e){return Math.round(e.length/2)};function O2t(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),u=l.getExtent(),d=r.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(d||1),h=Math.round(s/p);if(isFinite(h)&&h>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(c.dim),1/h)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(c.dim),1/h));var g=void 0;An(o)?g=d0r[o]:fr(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(c.dim),1/h,g,p0r))}}}}}function h0r(e){e.registerChartView(u0r),e.registerSeriesModel(Xdr),e.registerLayout(JB("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,O2t("line"))}var Tq=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return r2(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,i){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(n),s=o.dataToPoint(a);if(i)ye(o.getAxes(),function(p,h){if(p.type==="category"&&r!=null){var g=p.getTicksCoords(),m=p.getTickModel().get("alignWithLabel"),b=a[h],y=r[h]==="x1"||r[h]==="y1";if(y&&!m&&(b+=1),g.length<2)return;if(g.length===2){s[h]=p.toGlobalCoord(p.getExtent()[y?1:0]);return}for(var M=void 0,C=void 0,x=1,w=0;w<g.length;w++){var S=g[w].coord,A=w===g.length-1?g[w-1].tickValue+x:g[w].tickValue;if(A===b){C=S;break}else if(A<b)M=S;else if(M!=null&&A>b){C=(S+M)/2;break}w===1&&(x=A-g[0].tickValue)}C==null&&(M?M&&(C=g[g.length-1].coord):C=g[0].coord),s[h]=p.toGlobalCoord(C)}});else{var l=this.getData(),c=l.getLayout("offset"),u=l.getLayout("size"),d=o.getBaseAxis().isHorizontal()?0:1;s[d]+=c+u/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(Ia);Ia.registerClass(Tq);var f0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return r2(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ww(Tq.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(Tq),g0r=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),qU=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new g0r},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-a)*.5,c=a+l,u=r.startAngle,d=r.endAngle,p=r.clockwise,h=Math.PI*2,g=p?d-u<h:u-d<h;g||(u=d-(p?h:-h));var m=Math.cos(u),b=Math.sin(u),y=Math.cos(d),M=Math.sin(d);g?(n.moveTo(m*a+i,b*a+o),n.arc(m*c+i,b*c+o,l,-Math.PI+u,u,!p)):n.moveTo(m*s+i,b*s+o),n.arc(i,o,s,u,d,!p),n.arc(y*c+i,M*c+o,l,d-Math.PI*2,d-Math.PI,!p),a!==0&&n.arc(i,o,a,d,u,p)},t})(Di);function m0r(e,t){t=t||{};var n=t.isRoundCap;return function(r,i,o){var a=i.position;if(!a||a instanceof Array)return vU(r,i,o);var s=e(a),l=i.distance!=null?i.distance:5,c=this.shape,u=c.cx,d=c.cy,p=c.r,h=c.r0,g=(p+h)/2,m=c.startAngle,b=c.endAngle,y=(m+b)/2,M=n?Math.abs(p-h)/2:0,C=Math.cos,x=Math.sin,w=u+p*C(m),S=d+p*x(m),A="left",z="top";switch(s){case"startArc":w=u+(h-l)*C(y),S=d+(h-l)*x(y),A="center",z="top";break;case"insideStartArc":w=u+(h+l)*C(y),S=d+(h+l)*x(y),A="center",z="bottom";break;case"startAngle":w=u+g*C(m)+RV(m,l+M,!1),S=d+g*x(m)+IV(m,l+M,!1),A="right",z="middle";break;case"insideStartAngle":w=u+g*C(m)+RV(m,-l+M,!1),S=d+g*x(m)+IV(m,-l+M,!1),A="left",z="middle";break;case"middle":w=u+g*C(y),S=d+g*x(y),A="center",z="middle";break;case"endArc":w=u+(p+l)*C(y),S=d+(p+l)*x(y),A="center",z="bottom";break;case"insideEndArc":w=u+(p-l)*C(y),S=d+(p-l)*x(y),A="center",z="top";break;case"endAngle":w=u+g*C(b)+RV(b,l+M,!0),S=d+g*x(b)+IV(b,l+M,!0),A="left",z="middle";break;case"insideEndAngle":w=u+g*C(b)+RV(b,-l+M,!0),S=d+g*x(b)+IV(b,-l+M,!0),A="right",z="middle";break;default:return vU(r,i,o)}return r=r||{},r.x=w,r.y=S,r.align=A,r.verticalAlign=z,r}}function v0r(e,t,n,r){if(yo(r)){e.setTextConfig({rotation:r});return}else if(Ht(t)){e.setTextConfig({rotation:0});return}var i=e.shape,o=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(o+a)/2,l,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-l;c==="middle"&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function RV(e,t,n){return t*Math.sin(e)*(n?-1:1)}function IV(e,t,n){return t*Math.cos(e)*(n?1:-1)}function xO(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Ht(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Vt(r,function(o){return Am(o,i)})}}var dse=Math.max,pse=Math.min;function b0r(e,t){var n=e.getArea&&e.getArea();if(X3(e,"cartesian2d")){var r=e.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var y0r=(function(e){gt(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(n,r,i,o){this._model=n,this._removeOnRenderedListener(i),this._updateDrawMode(n);var a=n.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,i):this._renderNormal(n,r,i,o))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},t.prototype.eachRendered=function(n){Fw(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n,r,i,o){var a=this.group,s=n.getData(),l=this._data,c=n.coordinateSystem,u=c.getBaseAxis(),d;c.type==="cartesian2d"?d=u.isHorizontal():c.type==="polar"&&(d=u.dim==="angle");var p=n.isAnimationEnabled()?n:null,h=M0r(n,c);h&&this._enableRealtimeSort(h,s,i);var g=n.get("clip",!0)||h,m=b0r(c,s);a.removeClipPath();var b=n.get("roundCap",!0),y=n.get("showBackground",!0),M=n.getModel("backgroundStyle"),C=M.get("borderRadius")||0,x=[],w=this._backgroundEls,S=o&&o.isInitSort,A=o&&o.type==="changeAxisOrder";function z(R){var P=PV[c.type](s,R),F=z0r(c,d,P);return F.useStyle(M.getItemStyle()),c.type==="cartesian2d"?F.setShape("r",C):F.setShape("cornerRadius",C),x[R]=F,F}s.diff(l).add(function(R){var P=s.getItemModel(R),F=PV[c.type](s,R,P);if(y&&z(R),!(!s.hasValue(R)||!h6e[c.type](F))){var N=!1;g&&(N=c6e[c.type](m,F));var L=u6e[c.type](n,s,R,F,d,p,u.model,!1,b);h&&(L.forceLabelAnimation=!0),f6e(L,s,R,P,F,n,d,c.type==="polar"),S?L.attr({shape:F}):h?d6e(h,p,L,F,R,d,!1,!1):ys(L,{shape:F},n,R),s.setItemGraphicEl(R,L),a.add(L),L.ignore=N}}).update(function(R,P){var F=s.getItemModel(R),N=PV[c.type](s,R,F);if(y){var L=void 0;w.length===0?L=z(P):(L=w[P],L.useStyle(M.getItemStyle()),c.type==="cartesian2d"?L.setShape("r",C):L.setShape("cornerRadius",C),x[R]=L);var W=PV[c.type](s,R),j=T2t(d,W,c);Ao(L,{shape:j},p,R)}var V=l.getItemGraphicEl(P);if(!s.hasValue(R)||!h6e[c.type](N)){a.remove(V);return}var G=!1;if(g&&(G=c6e[c.type](m,N),G&&a.remove(V)),V?Om(V):V=u6e[c.type](n,s,R,N,d,p,u.model,!!V,b),h&&(V.forceLabelAnimation=!0),A){var q=V.getTextContent();if(q){var $=sk(q);$.prevValue!=null&&($.prevValue=$.value)}}else f6e(V,s,R,F,N,n,d,c.type==="polar");S?V.attr({shape:N}):h?d6e(h,p,V,N,R,d,!0,A):Ao(V,{shape:N},n,R,null),s.setItemGraphicEl(R,V),V.ignore=G,a.add(V)}).remove(function(R){var P=l.getItemGraphicEl(R);P&&bq(P,n,R)}).execute();var O=this._backgroundGroup||(this._backgroundGroup=new Ir);O.removeAll();for(var T=0;T<x.length;++T)O.add(x[T]);a.add(O),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(n,r,i){this._clear(),m6e(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),m6e(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&ZB(n.coordinateSystem,!1,n),i=this.group;r?i.setClipPath(r):i.removeClipPath()},t.prototype._enableRealtimeSort=function(n,r,i){var o=this;if(r.count()){var a=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,i),this._isFirstFrame=!1;else{var s=function(l){var c=r.getItemGraphicEl(l),u=c&&c.shape;return u&&Math.abs(a.isHorizontal()?u.height:u.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,s,a,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,r,i){var o=[];return n.each(n.mapDimension(r.dim),function(a,s){var l=i(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:Vt(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,r,i){for(var o=i.scale,a=n.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,c=o.getOrdinalMeta().categories.length;l<c;++l){var u=n.rawIndexOf(a,o.getRawOrdinalNumber(l)),d=u<0?Number.MIN_VALUE:r(n.indexOfRawIndex(u));if(d>s)return!0;s=d}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,o=i.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],i.getOrdinalMeta().categories.length-1);a<=s;++a)if(n.ordinalNumbers[a]!==i.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(n,r,i,o){if(this._isOrderChangedWithinSameData(n,r,i)){var a=this._dataSort(n,i,r);this._isOrderDifferentInView(a,i)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(n,r,i){var o=r.baseAxis,a=this._dataSort(n,o,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(o){bq(o,n,_r(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(pa),c6e={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=dse(t.x,e.x),s=pse(t.x+t.width,i),l=dse(t.y,e.y),c=pse(t.y+t.height,o),u=s<a,d=c<l;return t.x=u&&a>i?s:a,t.y=d&&l>o?c:l,t.width=u?0:s-a,t.height=d?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=pse(t.r,e.r),o=dse(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return a}},u6e={cartesian2d:function(e,t,n,r,i,o,a,s,l){var c=new ao({shape:Nt({},r),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,d=i?"height":"width";u[d]=0}return c},polar:function(e,t,n,r,i,o,a,s,l){var c=!i&&l?qU:A0,u=new c({shape:r,z2:1});u.name="item";var d=z2t(i);if(u.calculateTextPosition=m0r(d,{isRoundCap:c===qU}),o){var p=u.shape,h=i?"r":"endAngle",g={};p[h]=i?r.r0:r.startAngle,g[h]=r[h],(s?Ao:ys)(u,{shape:g},o)}return u}};function M0r(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function d6e(e,t,n,r,i,o,a,s){var l,c;o?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Ao:ys)(n,{shape:l},t,i,null);var u=t?e.baseAxis.model:null;(a?Ao:ys)(n,{shape:c},u,i)}function p6e(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var C0r=["x","y","width","height"],x0r=["cx","cy","r","startAngle","endAngle"],h6e={cartesian2d:function(e){return!p6e(e,C0r)},polar:function(e){return!p6e(e,x0r)}},PV={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?S0r(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function w0r(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function z2t(e){return(function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(e)}function f6e(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=e.shape,d=xO(r.getModel("itemStyle"),u,!0);Nt(u,d),e.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",c)}e.useStyle(l);var p=r.getShallow("cursor");p&&e.attr("cursor",p);var h=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=Ru(r);zd(e,g,{labelFetcher:o,labelDataIndex:n,defaultText:WP(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var b=r.get(["label","position"]);e.textConfig.inside=b==="middle"?!0:null,v0r(e,b==="outside"?h:b,z2t(a),r.get(["label","rotate"]))}$mt(m,g,o.getRawValue(n),function(M){return b2t(t,M)});var y=r.getModel(["emphasis"]);sl(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Od(e,r),w0r(i)&&(e.style.fill="none",e.style.stroke="none",ye(e.states,function(M){M.style&&(M.style.fill=M.style.stroke="none")}))}function S0r(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}var A0r=(function(){function e(){}return e})(),g6e=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new A0r},t.prototype.buildPath=function(n,r){for(var i=r.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,u=0;u<i.length;u+=3)l[o]=c,l[a]=i[u+2],s[o]=i[u+o],s[a]=i[u+a],n.rect(s[0],s[1],l[0],l[1])},t})(Di);function m6e(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),c=i.getLayout("largeBackgroundPoints");if(c){var u=new g6e({shape:{points:c},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var d=new g6e({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),d.style.stroke=null,_r(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",v6e),d.on("mousemove",v6e)),n&&n.push(d)}var v6e=PJ(function(e){var t=this,n=O0r(t,e.offsetX,e.offsetY);_r(t).dataIndex=n>=0?n:null},30,!1);function O0r(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,d=o.length/3;u<d;u++){var p=u*3;if(l[r]=c,l[i]=o[p+2],s[r]=o[p+r],s[i]=o[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}function T2t(e,t,n){if(X3(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),o=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function z0r(e,t,n){var r=e.type==="polar"?A0:ao;return new r({shape:T2t(t,n,e),silent:!0,z2:0})}function T0r(e){e.registerChartView(y0r),e.registerSeriesModel(f0r),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Zr(Dbt,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kbt("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,O2t("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var b6e=Math.PI*2,DV=Math.PI/180;function E2t(e,t){return Pc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function R2t(e,t){var n=E2t(e,t),r=e.get("center"),i=e.get("radius");Ht(i)||(i=[0,i]);var o=vn(n.width,t.getWidth()),a=vn(n.height,t.getHeight()),s=Math.min(o,a),l=vn(i[0],s/2),c=vn(i[1],s/2),u,d,p=e.coordinateSystem;if(p){var h=p.dataToPoint(r);u=h[0]||0,d=h[1]||0}else Ht(r)||(r=[r,r]),u=vn(r[0],o)+n.x,d=vn(r[1],a)+n.y;return{cx:u,cy:d,r0:l,r:c}}function E0r(e,t,n){t.eachSeriesByType(e,function(r){var i=r.getData(),o=i.mapDimension("value"),a=E2t(r,n),s=R2t(r,n),l=s.cx,c=s.cy,u=s.r,d=s.r0,p=-r.get("startAngle")*DV,h=r.get("endAngle"),g=r.get("padAngle")*DV;h=h==="auto"?p-b6e:-h*DV;var m=r.get("minAngle")*DV,b=m+g,y=0;i.each(o,function(j){!isNaN(j)&&y++});var M=i.getSum(o),C=Math.PI/(M||y)*2,x=r.get("clockwise"),w=r.get("roseType"),S=r.get("stillShowZeroSum"),A=i.getDataExtent(o);A[0]=0;var z=x?1:-1,O=[p,h],T=z*g/2;ySe(O,!x),p=O[0],h=O[1];var R=I2t(r);R.startAngle=p,R.endAngle=h,R.clockwise=x;var P=Math.abs(h-p),F=P,N=0,L=p;if(i.setLayout({viewRect:a,r:u}),i.each(o,function(j,V){var G;if(isNaN(j)){i.setItemLayout(V,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:c,r0:d,r:w?NaN:u});return}w!=="area"?G=M===0&&S?C:j*C:G=P/y,G<b?(G=b,F-=b):N+=j;var q=L+z*G,$=0,U=0;g>G?($=L+z*G/2,U=$):($=L+T,U=q-T),i.setItemLayout(V,{angle:G,startAngle:$,endAngle:U,clockwise:x,cx:l,cy:c,r0:d,r:w?Ko(j,A,[d,u]):u}),L=q}),F<b6e&&y)if(F<=.001){var W=P/y;i.each(o,function(j,V){if(!isNaN(j)){var G=i.getItemLayout(V);G.angle=W;var q=0,$=0;W<g?(q=p+z*(V+1/2)*W,$=q):(q=p+z*V*W+T,$=p+z*(V+1)*W-T),G.startAngle=q,G.endAngle=$}})}else C=F/N,L=p,i.each(o,function(j,V){if(!isNaN(j)){var G=i.getItemLayout(V),q=G.angle===b?b:j*C,$=0,U=0;q<g?($=L+z*q/2,U=$):($=L+T,U=L+z*q-T),G.startAngle=$,G.endAngle=U,L+=z*q}})})}var I2t=mo();function ej(e){return{seriesType:e,reset:function(t,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=t.getData();i.filterSelf(function(o){for(var a=i.getName(o),s=0;s<r.length;s++)if(!r[s].isSelected(a))return!1;return!0})}}}}var R0r=Math.PI/180;function y6e(e,t,n,r,i,o,a,s,l,c){if(e.length<2)return;function u(m){for(var b=m.rB,y=b*b,M=0;M<m.list.length;M++){var C=m.list[M],x=Math.abs(C.label.y-n),w=r+C.len,S=w*w,A=Math.sqrt(Math.abs((1-x*x/y)*S)),z=t+(A+C.len2)*i,O=z-C.label.x,T=C.targetTextWidth-O*i;P2t(C,T,!0),C.label.x=z}}function d(m){for(var b={list:[],maxY:0},y={list:[],maxY:0},M=0;M<m.length;M++)if(m[M].labelAlignTo==="none"){var C=m[M],x=C.label.y>n?y:b,w=Math.abs(C.label.y-n);if(w>=x.maxY){var S=C.label.x-t-C.len2*i,A=r+C.len,z=Math.abs(S)<A?Math.sqrt(w*w/(1-S*S/A/A)):A;x.rB=z,x.maxY=w}x.list.push(C)}u(b),u(y)}for(var p=e.length,h=0;h<p;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var g=e[h].label.x-c;e[h].linePoints[1][0]+=g,e[h].label.x=c}t2t(e,l,l+a)&&d(e)}function I0r(e,t,n,r,i,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=0;p<e.length;p++){var h=e[p].label;hse(e[p])||(h.x<t?(u=Math.min(u,h.x),l.push(e[p])):(d=Math.max(d,h.x),c.push(e[p])))}for(var p=0;p<e.length;p++){var g=e[p];if(!hse(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var h=g.label,m=g.linePoints,b=void 0;g.labelAlignTo==="edge"?h.x<t?b=m[2][0]-g.labelDistance-a-g.edgeDistance:b=a+i-g.edgeDistance-m[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?h.x<t?b=u-a-g.bleedMargin:b=a+i-d-g.bleedMargin:h.x<t?b=h.x-a-g.bleedMargin:b=a+i-h.x-g.bleedMargin,g.targetTextWidth=b,P2t(g,b)}}y6e(c,t,n,r,1,i,o,a,s,d),y6e(l,t,n,r,-1,i,o,a,s,u);for(var p=0;p<e.length;p++){var g=e[p];if(!hse(g)&&g.linePoints){var h=g.label,m=g.linePoints,y=g.labelAlignTo==="edge",M=h.style.padding,C=M?M[1]+M[3]:0,x=h.style.backgroundColor?0:C,w=g.rect.width+x,S=m[1][0]-m[2][0];y?h.x<t?m[2][0]=a+g.edgeDistance+w+g.labelDistance:m[2][0]=a+i-g.edgeDistance-w-g.labelDistance:(h.x<t?m[2][0]=h.x+g.labelDistance:m[2][0]=h.x-g.labelDistance,m[1][0]=m[2][0]+S),m[1][1]=m[2][1]=h.y}}}function P2t(e,t,n){if(n===void 0&&(n=!1),e.labelStyleWidth==null){var r=e.label,i=r.style,o=e.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,c=i.overflow,u=o.width+(a?0:l);if(t<u||n){var d=o.height;if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var p=r.getBoundingRect();r.setStyle("width",Math.ceil(p.width)),r.setStyle("backgroundColor",a)}else{var h=t-l,g=t<u?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",g)}var m=r.getBoundingRect();o.width=m.width;var b=(r.style.margin||0)+2.1;o.height=m.height+b,o.y-=(o.height-d)/2}}}function hse(e){return e.position==="center"}function P0r(e){var t=e.getData(),n=[],r,i,o=!1,a=(e.get("minShowLabelAngle")||0)*R0r,s=t.getLayout("viewRect"),l=t.getLayout("r"),c=s.width,u=s.x,d=s.y,p=s.height;function h(S){S.ignore=!0}function g(S){if(!S.ignore)return!0;for(var A in S.states)if(S.states[A].ignore===!1)return!0;return!1}t.each(function(S){var A=t.getItemGraphicEl(S),z=A.shape,O=A.getTextContent(),T=A.getTextGuideLine(),R=t.getItemModel(S),P=R.getModel("label"),F=P.get("position")||R.get(["emphasis","label","position"]),N=P.get("distanceToLabelLine"),L=P.get("alignTo"),W=vn(P.get("edgeDistance"),c),j=P.get("bleedMargin"),V=R.getModel("labelLine"),G=V.get("length");G=vn(G,c);var q=V.get("length2");if(q=vn(q,c),Math.abs(z.endAngle-z.startAngle)<a){ye(O.states,h),O.ignore=!0,T&&(ye(T.states,h),T.ignore=!0);return}if(g(O)){var $=(z.startAngle+z.endAngle)/2,U=Math.cos($),X=Math.sin($),Q,re,ee,se;r=z.cx,i=z.cy;var pe=F==="inside"||F==="inner";if(F==="center")Q=z.cx,re=z.cy,se="center";else{var te=(pe?(z.r+z.r0)/2*U:z.r*U)+r,ce=(pe?(z.r+z.r0)/2*X:z.r*X)+i;if(Q=te+U*3,re=ce+X*3,!pe){var oe=te+U*(G+l-z.r),ae=ce+X*(G+l-z.r),ne=oe+(U<0?-1:1)*q,le=ae;L==="edge"?Q=U<0?u+W:u+c-W:Q=ne+(U<0?-N:N),re=le,ee=[[te,ce],[oe,ae],[ne,le]]}se=pe?"center":L==="edge"?U>0?"right":"left":U>0?"left":"right"}var he=Math.PI,be=0,me=P.get("rotate");if(yo(me))be=me*(he/180);else if(F==="center")be=0;else if(me==="radial"||me===!0){var Me=U<0?-$+he:-$;be=Me}else if(me==="tangential"&&F!=="outside"&&F!=="outer"){var Oe=Math.atan2(U,X);Oe<0&&(Oe=he*2+Oe);var de=X>0;de&&(Oe=he+Oe),be=Oe-he}if(o=!!be,O.x=Q,O.y=re,O.rotation=be,O.setStyle({verticalAlign:"middle"}),pe){O.setStyle({align:se});var Ae=O.states.select;Ae&&(Ae.x+=O.x,Ae.y+=O.y)}else{var ie=O.getBoundingRect().clone();ie.applyTransform(O.getComputedTransform());var ue=(O.style.margin||0)+2.1;ie.y-=ue/2,ie.height+=ue,n.push({label:O,labelLine:T,position:F,len:G,len2:q,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new ci(U,X),linePoints:ee,textAlign:se,labelDistance:N,labelAlignTo:L,edgeDistance:W,bleedMargin:j,rect:ie,unconstrainedWidth:ie.width,labelStyleWidth:O.style.width})}A.setTextConfig({inside:pe})}}),!o&&e.get("avoidLabelOverlap")&&I0r(n,r,i,l,c,p,u,d);for(var m=0;m<n.length;m++){var b=n[m],y=b.label,M=b.labelLine,C=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:b.textAlign}),C&&(ye(y.states,h),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(M){var w=b.linePoints;C||!w?(ye(M.states,h),M.ignore=!0):(Zbt(w,b.minTurnAngle),tdr(w,b.surfaceNormal,b.maxSurfaceAngle),M.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new ci(w[0][0],w[0][1])})}}}var D0r=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;o.z2=2;var a=new oo;return o.setTextContent(a),o.updateData(n,r,i,!0),o}return t.prototype.updateData=function(n,r,i,o){var a=this,s=n.hostModel,l=n.getItemModel(r),c=l.getModel("emphasis"),u=n.getItemLayout(r),d=Nt(xO(l.getModel("itemStyle"),u,!0),u);if(isNaN(d.startAngle)){a.setShape(d);return}if(o){a.setShape(d);var p=s.getShallow("animationType");s.ecModel.ssr?(ys(a,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),a.originX=d.cx,a.originY=d.cy):p==="scale"?(a.shape.r=u.r0,ys(a,{shape:{r:u.r}},s,r)):i!=null?(a.setShape({startAngle:i,endAngle:i}),ys(a,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,r)):(a.shape.endAngle=u.startAngle,Ao(a,{shape:{endAngle:u.endAngle}},s,r))}else Om(a),Ao(a,{shape:d},s,r);a.useStyle(n.getItemVisual(r,"style")),Od(a,l);var h=(u.startAngle+u.endAngle)/2,g=s.get("selectedOffset"),m=Math.cos(h)*g,b=Math.sin(h)*g,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,n,r),a.ensureState("emphasis").shape=Nt({r:u.r+(c.get("scale")&&c.get("scaleSize")||0)},xO(c.getModel("itemStyle"),u)),Nt(a.ensureState("select"),{x:m,y:b,shape:xO(l.getModel(["select","itemStyle"]),u)}),Nt(a.ensureState("blur"),{shape:xO(l.getModel(["blur","itemStyle"]),u)});var M=a.getTextGuideLine(),C=a.getTextContent();M&&Nt(M.ensureState("select"),{x:m,y:b}),Nt(C.ensureState("select"),{x:m,y:b}),sl(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(n,r,i){var o=this,a=r.getItemModel(i),s=a.getModel("labelLine"),l=r.getItemVisual(i,"style"),c=l&&l.fill,u=l&&l.opacity;zd(o,Ru(a),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:c,defaultOpacity:u,defaultText:n.getFormattedLabel(i,"normal")||r.getName(i)});var d=o.getTextContent();o.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var p=n.get(["label","position"]);if(p!=="outside"&&p!=="outer")o.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new R0,this.setTextGuideLine(h)),fAe(this,gAe(a),{stroke:c,opacity:hm(s.get(["lineStyle","opacity"]),u,1)})}},t})(A0),k0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,i,o){var a=n.getData(),s=this._data,l=this.group,c;if(!s&&a.count()>0){for(var u=a.getItemLayout(0),d=1;isNaN(u&&u.startAngle)&&d<a.count();++d)u=a.getItemLayout(d);u&&(c=u.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&n.get("showEmptyCircle")){var p=I2t(n),h=new A0({shape:Nt(R2t(n,i),p)});h.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}a.diff(s).add(function(g){var m=new D0r(a,g,c);a.setItemGraphicEl(g,m),l.add(m)}).update(function(g,m){var b=s.getItemGraphicEl(m);b.updateData(a,g,c),b.off("click"),l.add(b),a.setItemGraphicEl(g,b)}).remove(function(g){var m=s.getItemGraphicEl(g);bq(m,n,g)}).execute(),P0r(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},t.type="pie",t})(pa);function bk(e,t,n){t=Ht(t)&&{coordDimensions:t}||Nt({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=gk(r,t).dimensions,o=new y0(i,e);return o.initData(r,n),o}var tj=(function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e})(),L0r=mo(),_0r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tj(Rn(this.getData,this),Rn(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return bk(this,{coordDimensions:["value"],encodeDefaulter:Zr(jSe,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),i=L0r(r),o=i.seats;if(!o){var a=[];r.each(r.mapDimension("value"),function(l){a.push(l)}),o=i.seats=Jgt(a,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=o[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){Xz(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Ia);function N0r(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(i){var o=r.mapDimension("value"),a=r.get(o,i);return!(yo(a)&&!isNaN(a)&&a<0)})}}}function F0r(e){e.registerChartView(k0r),e.registerSeriesModel(_0r),Yvt("pie",e.registerAction),e.registerLayout(Zr(E0r,"pie")),e.registerProcessor(ej("pie")),e.registerProcessor(N0r("pie"))}var W0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return r2(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t})(Ia),D2t=4,q0r=(function(){function e(){}return e})(),B0r=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new q0r},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var i=r.points,o=r.size,a=this.symbolProxy,s=a.shape,l=n.getContext?n.getContext():n,c=l&&o[0]<D2t,u=this.softClipShape,d;if(c){this._ctx=l;return}for(this._ctx=null,d=this._off;d<i.length;){var p=i[d++],h=i[d++];isNaN(p)||isNaN(h)||u&&!u.contain(p,h)||(s.x=p-o[0]/2,s.y=h-o[1]/2,s.width=o[0],s.height=o[1],a.buildPath(n,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.afterBrush=function(){var n=this.shape,r=n.points,i=n.size,o=this._ctx,a=this.softClipShape,s;if(o){for(s=this._off;s<r.length;){var l=r[s++],c=r[s++];isNaN(l)||isNaN(c)||a&&!a.contain(l,c)||o.fillRect(l-i[0]/2,c-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(n,r){for(var i=this.shape,o=i.points,a=i.size,s=Math.max(a[0],4),l=Math.max(a[1],4),c=o.length/2-1;c>=0;c--){var u=c*2,d=o[u]-s/2,p=o[u+1]-l/2;if(n>=d&&r>=p&&n<=d+s&&r<=p+l)return c}return-1},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.points,o=r.size,a=o[0],s=o[1],l=1/0,c=1/0,u=-1/0,d=-1/0,p=0;p<i.length;){var h=i[p++],g=i[p++];l=Math.min(h,l),u=Math.max(h,u),c=Math.min(g,c),d=Math.max(g,d)}n=this._rect=new ui(l-a/2,c-s/2,u-l+a,d-c+s)}return n},t})(Di),j0r=(function(){function e(){this.group=new Ir}return e.prototype.updateData=function(t,n){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,n)},e.prototype.updateLayout=function(t){var n=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,o=r.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}r.setShape("points",n),r.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,n,r){var i=this._newAdded[0],o=n.getLayout("points"),a=i&&i.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var c=this._create();c.startIndex=t.start,c.endIndex=t.end,c.incremental=!0,c.setShape({points:o}),this._setCommon(c,n,r)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new B0r({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,n,r){var i=n.hostModel;r=r||{};var o=n.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=r.clipShape||null,t.symbolProxy=sc(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<D2t;t.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var c=_r(t);c.seriesIndex=i.seriesIndex,t.on("mousemove",function(u){c.dataIndex=null;var d=t.hoverDataIdx;d>=0&&(c.dataIndex=d+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),H0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.updateData(o,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.incrementalPrepareUpdate(o),this._finished=!1},t.prototype.incrementalRender=function(n,r,i){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,i){var o=n.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var a=JB("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(n,r){var i=this._symbolDraw,o=r.pipelineContext,a=o.large;return(!i||a!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=a?new j0r:new QB,this._isLargeDraw=a,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(pa),V0r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(Ri),mve=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Sc).models[0]},t.type="cartesian2dAxis",t})(Ri);Hl(mve,vk);var k2t={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},G0r=ei({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},k2t),xAe=ei({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},k2t),$0r=ei({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xAe),U0r=br({logBase:10},xAe);const L2t={category:G0r,value:xAe,time:$0r,log:U0r};var X0r={value:1,category:1,time:1,log:1};function qP(e,t,n,r){ye(X0r,function(i,o){var a=ei(ei({},L2t[o],!0),r,!0),s=(function(l){gt(c,l);function c(){var u=l!==null&&l.apply(this,arguments)||this;return u.type=t+"Axis."+o,u}return c.prototype.mergeDefaultAndTheme=function(u,d){var p=Mq(this),h=p?ck(u):{},g=d.getTheme();ei(u,g.get(o+"Axis")),ei(u,this.getDefaultOption()),u.type=M6e(u),p&&sw(u,h,p)},c.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=lve.createByAxisModel(this))},c.prototype.getCategories=function(u){var d=this.option;if(d.type==="category")return u?d.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=t+"Axis."+o,c.defaultOption=a,c})(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",M6e)}function M6e(e){return e.type||(e.data?"category":"value")}var Y0r=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Vt(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Lo(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),vve=["x","y"];function C6e(e){return e.type==="interval"||e.type==="time"}var K0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=vve,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!C6e(n)||!C6e(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],c=o[1]-o[0];if(!(!l||!c)){var u=(s[0]-a[0])/l,d=(s[1]-a[1])/c,p=a[0]-i[0]*u,h=a[1]-o[0]*d,g=this._transform=[u,0,0,d,p,h];this._invTransform=H3([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new ui(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Yu(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),c=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return Yu(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new ui(o,a,s,l)},t})(Y0r),Q0r=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(ng);function bve(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,c=i.dim,u=r.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,g=c==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=[c==="y"?g[p[l]]:d[0],c==="x"?g[p[l]]:d[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var b={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=b[s],o.labelOffset=a?g[p[s]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),xu(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function x6e(e){return e.get("coordinateSystem")==="cartesian2d"}function w6e(e){var t={xAxisModel:null,yAxisModel:null};return ye(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Sc).models[0];t[r]=o}),t}var fse=Math.log;function _2t(e,t,n){var r=sM.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Wbt(e,t),c=l.extent,u=l.fixMin,d=l.fixMax;if(e.type==="log"){var p=fse(e.base);c=[fse(c[0])/p,fse(c[1])/p]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:d});var h=r.getExtent.call(e);u&&(c[0]=h[0]),d&&(c[1]=h[1]);var g=r.getInterval.call(e),m=c[0],b=c[1];if(u&&d)g=(b-m)/a;else if(u)for(b=c[0]+g*a;b<c[1]&&isFinite(b)&&isFinite(c[1]);)g=Jae(g),b=c[0]+g*a;else if(d)for(m=c[1]-g*a;m>c[0]&&isFinite(m)&&isFinite(c[0]);)g=Jae(g),m=c[1]-g*a;else{var y=e.getTicks().length-1;y>a&&(g=Jae(g));var M=g*a;b=Math.ceil(c[1]/g)*g,m=wl(b-M),m<0&&c[0]>=0?(m=0,b=wl(M)):b>0&&c[1]<=0&&(b=0,m=-wl(M))}var C=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+g*C,b+g*x),r.setInterval.call(e,g),(C||x)&&r.setNiceExtent.call(e,m+g,b-g)}var Z0r=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vve,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=Hi(a),c=l.length;if(c){for(var u=[],d=c-1;d>=0;d--){var p=+l[d],h=a[p],g=h.model,m=h.scale;cve(m)&&g.get("alignTicks")&&g.get("interval")==null?u.push(h):(Jz(m,g),cve(m)&&(s=h))}u.length&&(s||(s=u.pop(),Jz(s.scale,s.model)),ye(u,function(b){_2t(b.scale,b.model,s.scale)}))}}i(r.x),i(r.y);var o={};ye(r.x,function(a){S6e(r,"y",a,o)}),ye(r.y,function(a){S6e(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),o=!r&&t.get("containLabel"),a=Pc(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(ye(s,function(c){if(!c.model.get(["axisLabel","inside"])){var u=bur(c);if(u){var d=c.isHorizontal()?"height":"width",p=c.model.get(["axisLabel","margin"]);a[d]-=u[d]+p,c.position==="top"?a.y+=u.height+p:c.position==="left"&&(a.x+=u.width+p)}}}),l()),ye(this._coordsList,function(c){c.calcAffineTransform()});function l(){ye(s,function(c){var u=c.isHorizontal(),d=u?[0,a.width]:[0,a.height],p=c.inverse?1:0;c.setExtent(d[p],d[1-p]),J0r(c,u?a.x:a.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}xr(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===n)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Sc).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",Sc).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,hi(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var c=o.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,ye(s.x,function(u,d){ye(s.y,function(p,h){var g="x"+d+"y"+h,m=new K0r(g);m.master=i,m.model=t,i._coordsMap[g]=m,i._coordsList.push(m),m.addAxis(u),m.addAxis(p)})});function c(u){return function(d,p){if(gse(d,t)){var h=d.get("position");u==="x"?h!=="top"&&h!=="bottom"&&(h=a.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=a.left?"right":"left"),a[h]=!0;var g=new Q0r(u,YB(d),[0,0],d.get("type"),h),m=g.type==="category";g.onBand=m&&d.get("boundaryGap"),g.inverse=d.get("inverse"),d.axis=g,g.model=d,g.grid=o,g.index=p,o._axesList.push(g),s[u][p]=g,l[u]++}}}},e.prototype._updateScale=function(t,n){ye(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),t.eachSeries(function(i){if(x6e(i)){var o=w6e(i),a=o.xAxisModel,s=o.yAxisModel;if(!gse(a,n)||!gse(s,n))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),c=i.getData(),u=l.getAxis("x"),d=l.getAxis("y");r(c,u),r(c,d)}},this);function r(i,o){ye(_U(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return ye(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);hi(n,o)<0&&n.push(o),hi(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(i){if(x6e(i)){var o=w6e(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),c=l.coordinateSystem;i.coordinateSystem=c.getCartesian(a.componentIndex,s.componentIndex)}}),r},e.dimensions=vve,e})();function gse(e,t){return e.getCoordSysModel()===t}function S6e(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)A6e(i[l])&&(o=i[l]);else for(var c in i)if(i.hasOwnProperty(c)&&A6e(i[c])&&!r[u(i[c])]){o=i[c];break}o&&(r[u(o)]=!0);function u(d){return d.dim+"_"+d.index}}function A6e(e){return e&&e.type!=="category"&&e.type!=="time"&&vur(e)}function J0r(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return r-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}var gx=Math.PI,u1=(function(){function e(t,n){this.group=new Ir,this.opt=n,this.axisModel=t,br(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Ir({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!O6e[t]},e.prototype.add=function(t){O6e[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var i=pSe(n-t),o,a;return kP(i)?(a=r>0?"top":"bottom",o="center"):kP(i-gx)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<gx?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),O6e={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(Yu(s,s,a),Yu(l,l,a));var u=Nt({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Jc({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});_P(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=t.get(["axisLine","symbol"]);if(p!=null){var h=t.get(["axisLine","symbolSize"]);An(p)&&(p=[p,p]),(An(h)||yo(h))&&(h=[h,h]);var g=U3(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],b=h[1];ye([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,M){if(p[M]!=="none"&&p[M]!=null){var C=sc(p[M],-m/2,-b/2,m,b,u.stroke,!0),x=y.r+y.offset,w=c?l:s;C.attr({rotation:y.rotate,x:w[0]+x*Math.cos(e.rotation),y:w[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabel:function(e,t,n,r){var i=n1r(n,r,t,e),o=i1r(n,r,t,e);if(t1r(t,o,i),r1r(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=Jbt(Vt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));n2t(a)}},axisName:function(e,t,n,r){var i=xu(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,c=t.axis.getExtent(),u=c[0]>c[1]?-1:1,d=[o==="start"?c[0]-u*l:o==="end"?c[1]+u*l:(c[0]+c[1])/2,T6e(o)?e.labelOffset+a*l:0],p,h=t.get("nameRotate");h!=null&&(h=h*gx/180);var g;T6e(o)?p=u1.innerTextLayout(e.rotation,h??e.rotation,a):(p=e1r(e.rotation,o,h||0,c),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(p.rotation)),!isFinite(g)&&(g=null)));var m=s.getFont(),b=t.get("nameTruncate",!0)||{},y=b.ellipsis,M=xu(e.nameTruncateMaxWidth,b.maxWidth,g),C=new oo({x:d[0],y:d[1],rotation:p.rotation,silent:u1.isLabelSilent(t),style:Za(s,{text:i,font:m,overflow:"truncate",width:M,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(V3({el:C,componentModel:t,itemName:i}),C.__fullText=i,C.anid="name",t.get("triggerEvent")){var x=u1.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,_r(C).eventData=x}r.add(C),C.updateTransform(),n.add(C),C.decomposeTransform()}}};function e1r(e,t,n,r){var i=pSe(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return kP(i-gx/2)?(a=l?"bottom":"top",o="center"):kP(i-gx*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<gx*1.5&&i>gx/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function t1r(e,t,n){if(!qbt(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],d=n[n.length-1],p=n[n.length-2];r===!1?(Nh(o),Nh(c)):z6e(o,a)&&(r?(Nh(a),Nh(u)):(Nh(o),Nh(c))),i===!1?(Nh(s),Nh(d)):z6e(l,s)&&(i?(Nh(l),Nh(p)):(Nh(s),Nh(d)))}}function Nh(e){e&&(e.ignore=!0)}function z6e(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=FB([]);return Nw(i,i,-e.rotation),n.applyTransform(Mb([],i,e.getLocalTransform())),r.applyTransform(Mb([],i,t.getLocalTransform())),n.intersect(r)}}function T6e(e){return e==="middle"||e==="center"}function N2t(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(Yu(a,a,t),Yu(s,s,t));var u=new Jc({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});_P(u.shape,u.style.lineWidth),u.anid=i+"_"+e[l].tickValue,o.push(u)}return o}function n1r(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),c=i.getTicksCoords(),u=N2t(c,t.transform,l,br(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<u.length;d++)e.add(u[d]);return u}}function r1r(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),c=br(s.getLineStyle(),br(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var d=N2t(a[u],t.transform,l,c,"minorticks_"+u),p=0;p<d.length;p++)e.add(d[p])}}function i1r(e,t,n,r){var i=n.axis,o=xu(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),c=(xu(r.labelRotate,a.get("rotate"))||0)*gx/180,u=u1.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],h=u1.isLabelSilent(n),g=n.get("triggerEvent");return ye(l,function(m,b){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,M=m.formattedLabel,C=m.rawLabel,x=a;if(d&&d[y]){var w=d[y];xr(w)&&w.textStyle&&(x=new No(w.textStyle,a,n.ecModel))}var S=x.getTextColor()||n.get(["axisLine","lineStyle","color"]),A=i.dataToCoord(y),z=x.getShallow("align",!0)||u.textAlign,O=Xr(x.getShallow("alignMinLabel",!0),z),T=Xr(x.getShallow("alignMaxLabel",!0),z),R=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||u.textVerticalAlign,P=Xr(x.getShallow("verticalAlignMinLabel",!0),R),F=Xr(x.getShallow("verticalAlignMaxLabel",!0),R),N=new oo({x:A,y:r.labelOffset+r.labelDirection*s,rotation:u.rotation,silent:h,z2:10+(m.level||0),style:Za(x,{text:M,align:b===0?O:b===l.length-1?T:z,verticalAlign:b===0?P:b===l.length-1?F:R,fill:fr(S)?S(i.type==="category"?C:i.type==="value"?y+"":y,b):S})});if(N.anid="label_"+y,V3({el:N,componentModel:n,itemName:M,formatterParamsExtra:{isTruncated:function(){return N.isTruncated},value:C,tickIndex:b}}),g){var L=u1.makeAxisEventDataBase(n);L.targetType="axisLabel",L.value=C,L.tickIndex=b,i.type==="category"&&(L.dataIndex=y),_r(N).eventData=L}t.add(N),N.updateTransform(),p.push(N),e.add(N),N.decomposeTransform()}),p}}function o1r(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return a1r(n,e,t),n.seriesInvolved&&l1r(n,e),n}function a1r(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];ye(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Eq(s.model),c=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var u=s.model,d=u.getModel("tooltip",r);if(ye(s.getAxes(),Zr(m,!1,null)),s.getTooltipAxes&&r&&d.get("show")){var p=d.get("trigger")==="axis",h=d.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(d.get(["axisPointer","axis"]));(p||h)&&ye(g.baseAxes,Zr(m,h?"cross":!0,p)),h&&ye(g.otherAxes,Zr(m,"cross",!1))}function m(b,y,M){var C=M.model.getModel("axisPointer",i),x=C.get("show");if(!(!x||x==="auto"&&!b&&!yve(C))){y==null&&(y=C.get("triggerTooltip")),C=b?s1r(M,d,i,t,b,y):C;var w=C.get("snap"),S=C.get("triggerEmphasis"),A=Eq(M.model),z=y||w||M.type==="category",O=e.axesInfo[A]={key:A,axis:M,coordSys:s,axisPointerModel:C,triggerTooltip:y,triggerEmphasis:S,involveSeries:z,snap:w,useHandle:yve(C),seriesModels:[],linkGroup:null};c[A]=O,e.seriesInvolved=e.seriesInvolved||z;var T=c1r(o,M);if(T!=null){var R=a[T]||(a[T]={axesInfo:{}});R.axesInfo[A]=O,R.mapper=o[T].mapper,O.linkGroup=R}}}})}function s1r(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};ye(s,function(p){l[p]=Or(a.get(p))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),i==="cross"){var u=a.get(["label","show"]);if(c.show=u??!0,!o){var d=l.lineStyle=a.get("crossStyle");d&&br(c,d.textStyle)}}return e.model.getModel("axisPointer",new No(l,n,r))}function l1r(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||ye(e.coordSysAxesInfo[Eq(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function c1r(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(mse(o[r+"AxisId"],n.id)||mse(o[r+"AxisIndex"],n.componentIndex)||mse(o[r+"AxisName"],n.name))return i}}function mse(e,t){return e==="all"||Ht(e)&&hi(e,t)>=0||e===t}function u1r(e){var t=wAe(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=yve(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function wAe(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Eq(e)]}function d1r(e){var t=wAe(e);return t&&t.axisPointerModel}function yve(e){return!!e.get(["handle","show"])}function Eq(e){return e.type+"||"+e.id}var E6e={},Y3=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this.axisPointerClass&&u1r(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},t.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=d1r(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){E6e[n]=r},t.getAxisPointerClass=function(n){return n&&E6e[n]},t.type="axis",t})(us),Mve=mo();function F2t(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var u=s.length,d=Mve(e).splitAreaColors,p=Kn(),h=0;if(d)for(var g=0;g<c.length;g++){var m=d.get(c[g].tickValue);if(m!=null){h=(m+(u-1)*g)%u;break}}var b=i.toGlobalCoord(c[0].coord),y=a.getAreaStyle();s=Ht(s)?s:[s];for(var g=1;g<c.length;g++){var M=i.toGlobalCoord(c[g].coord),C=void 0,x=void 0,w=void 0,S=void 0;i.isHorizontal()?(C=b,x=l.y,w=M-C,S=l.height,b=C+w):(C=l.x,x=b,w=l.width,S=M-x,b=x+S);var A=c[g-1].tickValue;A!=null&&p.set(A,h),t.add(new ao({anid:A!=null?"area_"+A:null,shape:{x:C,y:x,width:w,height:S},style:br({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%u}Mve(e).splitAreaColors=p}}}function W2t(e){Mve(e).splitAreaColors=null}var p1r=["axisLine","axisTickLabel","axisName"],h1r=["splitArea","splitLine","minorSplitLine"],q2t=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Ir,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=bve(s,n),c=new u1(n,Nt({handleAutoShown:function(d){for(var p=s.coordinateSystem.getCartesians(),h=0;h<p.length;h++)if(cve(p[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));ye(p1r,c.add,c),this._axisGroup.add(c.getGroup()),ye(h1r,function(d){n.get([d,"show"])&&f1r[d](this,this._axisGroup,n,s)},this);var u=o&&o.type==="changeAxisOrder"&&o.isInitSort;u||$B(a,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)}},t.prototype.remove=function(){W2t(this)},t.type="cartesianAxis",t})(Y3),f1r={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;s=Ht(s)?s:[s];for(var u=r.coordinateSystem.getRect(),d=i.isHorizontal(),p=0,h=i.getTicksCoords({tickModel:o}),g=[],m=[],b=a.getLineStyle(),y=0;y<h.length;y++){var M=i.toGlobalCoord(h[y].coord);if(!(y===0&&!l||y===h.length-1&&!c)){var C=h[y].tickValue;d?(g[0]=M,g[1]=u.y,m[0]=M,m[1]=u.y+u.height):(g[0]=u.x,g[1]=M,m[0]=u.x+u.width,m[1]=M);var x=p++%s.length,w=new Jc({anid:C!=null?"line_"+C:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:br({stroke:s[x]},b),silent:!0});_P(w.shape,b.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var u=[],d=[],p=a.getLineStyle(),h=0;h<c.length;h++)for(var g=0;g<c[h].length;g++){var m=i.toGlobalCoord(c[h][g].coord);l?(u[0]=m,u[1]=s.y,d[0]=m,d[1]=s.y+s.height):(u[0]=s.x,u[1]=m,d[0]=s.x+s.width,d[1]=m);var b=new Jc({anid:"minor_line_"+c[h][g].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:p,silent:!0});_P(b.shape,p.lineWidth),t.add(b)}},splitArea:function(e,t,n,r){F2t(e,t,n,r)}},B2t=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t})(q2t),g1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=B2t.type,n}return t.type="yAxis",t})(q2t),m1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new ao({shape:n.coordinateSystem.getRect(),style:br({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(us),R6e={offset:0};function j2t(e){e.registerComponentView(m1r),e.registerComponentModel(V0r),e.registerCoordinateSystem("cartesian2d",Z0r),qP(e,"x",mve,R6e),qP(e,"y",mve,R6e),e.registerComponentView(B2t),e.registerComponentView(g1r),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function v1r(e){Si(j2t),e.registerSeriesModel(W0r),e.registerChartView(H0r),e.registerLayout(JB("scatter"))}function b1r(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],i=t.coordinateSystem;if(i){var o=i.getIndicatorAxes();ye(o,function(a,s){n.each(n.mapDimension(o[s].dim),function(l,c){r[c]=r[c]||[];var u=i.dataToPoint(l,s);r[c][s]=I6e(u)?u:P6e(i)})}),n.each(function(a){var s=ggt(r[a],function(l){return I6e(l)})||P6e(i);r[a].push(s.slice()),n.setItemLayout(a,r[a])})}})}function I6e(e){return!isNaN(e[0])&&!isNaN(e[1])}function P6e(e){return[e.cx,e.cy]}function y1r(e){var t=e.polar;if(t){Ht(t)||(t=[t]);var n=[];ye(t,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],Ht(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}ye(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var M1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=this._data;function c(p,h){var g=p.getItemVisual(h,"symbol")||"circle";if(g!=="none"){var m=fk(p.getItemVisual(h,"symbolSize")),b=sc(g,-1,-1,2,2),y=p.getItemVisual(h,"symbolRotate")||0;return b.attr({style:{strokeNoScale:!0},z2:100,scaleX:m[0]/2,scaleY:m[1]/2,rotation:y*Math.PI/180||0}),b}}function u(p,h,g,m,b,y){g.removeAll();for(var M=0;M<h.length-1;M++){var C=c(m,b);C&&(C.__dimIdx=M,p[M]?(C.setPosition(p[M]),G3[y?"initProps":"updateProps"](C,{x:h[M][0],y:h[M][1]},n,b)):C.setPosition(h[M]),g.add(C))}}function d(p){return Vt(p,function(h){return[o.cx,o.cy]})}s.diff(l).add(function(p){var h=s.getItemLayout(p);if(h){var g=new O0,m=new R0,b={shape:{points:h}};g.shape.points=d(h),m.shape.points=d(h),ys(g,b,n,p),ys(m,b,n,p);var y=new Ir,M=new Ir;y.add(m),y.add(g),y.add(M),u(m.shape.points,h,M,s,p,!0),s.setItemGraphicEl(p,y)}}).update(function(p,h){var g=l.getItemGraphicEl(h),m=g.childAt(0),b=g.childAt(1),y=g.childAt(2),M={shape:{points:s.getItemLayout(p)}};M.shape.points&&(u(m.shape.points,M.shape.points,y,s,p,!1),Om(b),Om(m),Ao(m,M,n),Ao(b,M,n),s.setItemGraphicEl(p,g))}).remove(function(p){a.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,h){var g=s.getItemModel(h),m=p.childAt(0),b=p.childAt(1),y=p.childAt(2),M=s.getItemVisual(h,"style"),C=M.fill;a.add(p),m.useStyle(br(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:C})),Od(m,g,"lineStyle"),Od(b,g,"areaStyle");var x=g.getModel("areaStyle"),w=x.isEmpty()&&x.parentModel.isEmpty();b.ignore=w,ye(["emphasis","select","blur"],function(z){var O=g.getModel([z,"areaStyle"]),T=O.isEmpty()&&O.parentModel.isEmpty();b.ensureState(z).ignore=T&&w}),b.useStyle(br(x.getAreaStyle(),{fill:C,opacity:.7,decal:M.decal}));var S=g.getModel("emphasis"),A=S.getModel("itemStyle").getItemStyle();y.eachChild(function(z){if(z instanceof Du){var O=z.style;z.useStyle(Nt({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},M))}else z.useStyle(M),z.setColor(C),z.style.strokeNoScale=!0;var T=z.ensureState("emphasis");T.style=Or(A);var R=s.getStore().get(s.getDimensionIndex(z.__dimIdx),h);(R==null||isNaN(R))&&(R=""),zd(z,Ru(g),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:z.__dimIdx,defaultText:R,inheritColor:C,defaultOpacity:M.opacity})}),sl(p,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(pa),C1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tj(Rn(this.getData,this),Rn(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return bk(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(n),c=l===""?this.name:l,u=Nvt(this,n);return Iu("section",{header:c,sortBlocks:!0,blocks:Vt(s,function(d){var p=o.get(o.mapDimension(d.dim),n);return Iu("nameValue",{markerType:"subItem",markerColor:u,name:d.name,value:p,sortParam:p})})})},t.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),i=this.coordinateSystem,o=r.getValues(Vt(i.dimensions,function(c){return r.mapDimension(c)}),n),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=i.getIndicatorAxes();return i.coordToPoint(l[a].dataToCoord(o[a]),a)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(Ia),O_=L2t.value;function kV(e,t){return br({show:t},e)}var x1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),c=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),p=this.get("triggerEvent"),h=Vt(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var m=l;g.color!=null&&(m=br({color:g.color},l));var b=ei(Or(g),{boundaryGap:n,splitNumber:r,scale:i,axisLine:o,axisTick:a,axisLabel:s,name:g.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:m,triggerEvent:p},!1);if(An(u)){var y=b.name;b.name=u.replace("{value}",y??"")}else fr(u)&&(b.name=u(b.name,b));var M=new No(b,null,this.ecModel);return Hl(M,vk.prototype),M.mainType="radar",M.componentIndex=this.componentIndex,M},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ei({lineStyle:{color:"#bbb"}},O_.axisLine),axisLabel:kV(O_.axisLabel,!1),axisTick:kV(O_.axisTick,!1),splitLine:kV(O_.splitLine,!0),splitArea:kV(O_.splitArea,!0),indicator:[]},t})(Ri),w1r=["axisLine","axisTickLabel","axisName"],S1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=this.group;o.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes(),o=Vt(i,function(a){var s=a.model.get("showName")?a.name:"",l=new u1(a.model,{axisName:s,position:[r.cx,r.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});ye(o,function(a){ye(w1r,a.add,a),this.group.add(a.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var o=n.get("shape"),a=n.getModel("splitLine"),s=n.getModel("splitArea"),l=a.getModel("lineStyle"),c=s.getModel("areaStyle"),u=a.get("show"),d=s.get("show"),p=l.get("color"),h=c.get("color"),g=Ht(p)?p:[p],m=Ht(h)?h:[h],b=[],y=[];function M(L,W,j){var V=j%W.length;return L[V]=L[V]||[],V}if(o==="circle")for(var C=i[0].getTicksCoords(),x=r.cx,w=r.cy,S=0;S<C.length;S++){if(u){var A=M(b,g,S);b[A].push(new t2({shape:{cx:x,cy:w,r:C[S].coord}}))}if(d&&S<C.length-1){var A=M(y,m,S);y[A].push(new nk({shape:{cx:x,cy:w,r0:C[S].coord,r:C[S+1].coord}}))}}else for(var z,O=Vt(i,function(L,W){var j=L.getTicksCoords();return z=z==null?j.length-1:Math.min(j.length-1,z),Vt(j,function(V){return r.coordToPoint(V.coord,W)})}),T=[],S=0;S<=z;S++){for(var R=[],P=0;P<i.length;P++)R.push(O[P][S]);if(R[0]&&R.push(R[0].slice()),u){var A=M(b,g,S);b[A].push(new R0({shape:{points:R}}))}if(d&&T){var A=M(y,m,S-1);y[A].push(new O0({shape:{points:R.concat(T)}}))}T=R.slice().reverse()}var F=l.getLineStyle(),N=c.getAreaStyle();ye(y,function(L,W){this.group.add(Xp(L,{style:br({stroke:"none",fill:m[W%m.length]},N),silent:!0}))},this),ye(b,function(L,W){this.group.add(Xp(L,{style:br({fill:"none",stroke:g[W%g.length]},F),silent:!0}))},this)},t.type="radar",t})(us),A1r=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.type="value",o.angle=0,o.name="",o}return t})(ng),O1r=(function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=Vt(t.getIndicatorModels(),function(i,o){var a="indicator_"+o,s=new A1r(a,new sM);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(a),s},this),this.resize(t,r)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(t),n)},e.prototype.coordToPoint=function(t,n){var r=this._indicatorAxes[n],i=r.angle,o=this.cx+t*Math.cos(i),a=this.cy-t*Math.sin(i);return[o,a]},e.prototype.pointToData=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,i=Math.sqrt(n*n+r*r);n/=i,r/=i;for(var o=Math.atan2(-r,n),a=1/0,s,l=-1,c=0;c<this._indicatorAxes.length;c++){var u=this._indicatorAxes[c],d=Math.abs(o-u.angle);d<a&&(s=u,l=c,a=d)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o)/2;this.cx=vn(r[0],i),this.cy=vn(r[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(An(s)||yo(s))&&(s=[0,s]),this.r0=vn(s[0],a),this.r=vn(s[1],a),ye(this._indicatorAxes,function(l,c){l.setExtent(this.r0,this.r);var u=this.startAngle+c*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),l.angle=u},this)},e.prototype.update=function(t,n){var r=this._indicatorAxes,i=this._model;ye(r,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var c=s.getData();ye(r,function(u){u.scale.unionExtentFromData(c,c.mapDimension(u.dim))})}},this);var o=i.get("splitNumber"),a=new sM;a.setExtent(0,o),a.setInterval(1),ye(r,function(s,l){_2t(s.scale,s.model,a)})},e.prototype.convertToPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},e.dimensions=[],e})();function z1r(e){e.registerCoordinateSystem("radar",O1r),e.registerComponentModel(x1r),e.registerComponentView(S1r),e.registerVisual({seriesType:"radar",reset:function(t){var n=t.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function T1r(e){Si(z1r),e.registerChartView(M1r),e.registerSeriesModel(C1r),e.registerLayout(b1r),e.registerProcessor(ej("radar")),e.registerPreprocessor(y1r)}var D6e="\0_ec_interaction_mutex";function E1r(e,t,n){var r=SAe(e);r[t]=n}function R1r(e,t,n){var r=SAe(e),i=r[t];i===n&&(r[t]=null)}function k6e(e,t){return!!SAe(e)[t]}function SAe(e){return e[D6e]||(e[D6e]={})}Nm({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Nl);var nj=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var i=Rn(r._mousedownHandler,r),o=Rn(r._mousemoveHandler,r),a=Rn(r._mouseupHandler,r),s=Rn(r._mousewheelHandler,r),l=Rn(r._pinchHandler,r);return r.enable=function(c,u){this.disable(),this._opt=br(Or(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),c==null&&(c=!0),(c===!0||c==="move"||c==="pan")&&(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",a)),(c===!0||c==="scale"||c==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",a),n.off("mousewheel",s),n.off("pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(n){this.pointerChecker=n},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){if(!uFe(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,o=n.offsetY;this.pointerChecker&&this.pointerChecker(n,i,o)&&(this._x=i,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!Q7("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||k6e(this._zr,"globalPan"))){var r=n.offsetX,i=n.offsetY,o=this._x,a=this._y,s=r-o,l=i-a;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&nM(n.event),H2t(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:o,oldY:a,newX:r,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){uFe(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=Q7("zoomOnMouseWheel",n,this._opt),i=Q7("moveOnMouseWheel",n,this._opt),o=n.wheelDelta,a=Math.abs(o),s=n.offsetX,l=n.offsetY;if(!(o===0||!r&&!i)){if(r){var c=a>3?1.4:a>1?1.2:1.1,u=o>0?c:1/c;vse(this,"zoom","zoomOnMouseWheel",n,{scale:u,originX:s,originY:l,isAvailableBehavior:null})}if(i){var d=Math.abs(o),p=(o>0?1:-1)*(d>3?.4:d>1?.15:.05);vse(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!k6e(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;vse(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t})(Zf);function vse(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(nM(r.event),H2t(e,t,n,r,i))}function H2t(e,t,n,r,i){i.isAvailableBehavior=Rn(Q7,null,n,r),e.trigger(t,i)}function Q7(e,t,n){var r=n[e];return!e||r&&(!An(r)||t.event[r+"Key"])}function AAe(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function OAe(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(c-1),i.y-=(r-i.y)*(c-1),i.scaleX*=c,i.scaleY*=c,i.dirty()}var I1r={axisPointer:1,tooltip:1,brush:1};function qJ(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!I1r.hasOwnProperty(r.mainType)&&i&&i.model!==n}function V2t(e){if(An(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var bse,BU={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},L6e=Hi(BU),jU={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_6e=Hi(jU),P1r=(function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=V2t(t);this._defsUsePending=[];var i=new Ir;this._root=i;var o=[],a=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Np(r,i,null,!0,!1);for(var c=r.firstChild;c;)this._parseNode(c,i,o,null,!1,!1),c=c.nextSibling;L1r(this._defs,this._defsUsePending),this._defsUsePending=[];var u,d;if(a){var p=BJ(a);p.length>=4&&(u={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(u&&s!=null&&l!=null&&(d=$2t(u,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=i;i=new Ir,i.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!n.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new ao({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:u,viewBoxTransform:d,named:o}},e.prototype._parseNode=function(t,n,r,i,o,a){var s=t.nodeName.toLowerCase(),l,c=i;if(s==="defs"&&(o=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=n;else{if(!o){var u=bse[s];if(u&&Fn(bse,s)){l=u.call(this,t,n);var d=t.getAttribute("name");if(d){var p={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(p),s==="g"&&(c=p)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});n.add(l)}}var h=N6e[s];if(h&&Fn(N6e,s)){var g=h.call(this,t),m=t.getAttribute("id");m&&(this._defs[m]=g)}}if(l&&l.isGroup)for(var b=t.firstChild;b;)b.nodeType===1?this._parseNode(b,l,r,c,o,a):b.nodeType===3&&a&&this._parseText(b,l),b=b.nextSibling},e.prototype._parseText=function(t,n){var r=new LP({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),D1r(r,n);var i=r.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,r.scaleX*=o/9,r.scaleY*=o/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=(function(){bse={g:function(t,n){var r=new Ir;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new ao;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new t2;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new Jc;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new HB;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),i;r&&(i=q6e(r));var o=new O0({shape:{points:i||[]},silent:!0});return Fh(n,o),Np(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,n){var r=t.getAttribute("points"),i;r&&(i=q6e(r));var o=new R0({shape:{points:i||[]},silent:!0});return Fh(n,o),Np(t,o,this._defsUsePending,!1,!1),o},image:function(t,n){var r=new Du;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new Ir;return Fh(n,s),Np(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),i=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new Ir;return Fh(n,s),Np(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,n){var r=t.getAttribute("d")||"",i=kmt(r);return Fh(n,i),Np(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}})(),e})(),N6e={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new ik(t,n,r,i);return F6e(e,o),W6e(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new OSe(t,n,r);return F6e(e,i),W6e(e,i),i}};function F6e(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function W6e(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var o={};G2t(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function Fh(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),br(t.__inheritedStyle,e.__inheritedStyle))}function q6e(e){for(var t=BJ(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}function Np(e,t,n,r,i){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};e.nodeType===1&&(F1r(e,t),G2t(e,a,s),r||W1r(e,a,s)),o.style=o.style||{},a.fill!=null&&(o.style.fill=B6e(o,"fill",a.fill,n)),a.stroke!=null&&(o.style.stroke=B6e(o,"stroke",a.stroke,n)),ye(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(o.style[l]=parseFloat(a[l]))}),ye(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(o.style[l]=a[l])}),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Vt(BJ(a.lineDash),function(l){return parseFloat(l)})),(a.visibility==="hidden"||a.visibility==="collapse")&&(o.invisible=!0),a.display==="none"&&(o.ignore=!0)}function D1r(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r==="auto"||r==="baseline"?i="alphabetic":r==="before-edge"||r==="text-before-edge"?i="top":r==="after-edge"||r==="text-after-edge"?i="bottom":(r==="central"||r==="mathematical")&&(i="middle"),e.style.textBaseline=i}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&(a==="middle"&&(s="center"),e.style.textAlign=s)}}var k1r=/^url\(\s*#(.*?)\)/;function B6e(e,t,n,r){var i=n&&n.match(k1r);if(i){var o=Cf(i[1]);r.push([e,t,o]);return}return n==="none"&&(n=null),n}function L1r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var _1r=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BJ(e){return e.match(_1r)||[]}var N1r=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,yse=Math.PI/180;function F1r(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(N1r,function(d,p,h){return r.push(p,h),""});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=BJ(a);switch(i=i||gp(),s){case"translate":Sm(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":cJ(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Nw(i,i,-parseFloat(l[0])*yse,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*yse);Mb(i,[1,0,c,1,0,0],i);break;case"skewY":var u=Math.tan(parseFloat(l[0])*yse);Mb(i,[1,u,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var j6e=/([^\s:;]+)\s*:\s*([^:;]+)/g;function G2t(e,t,n){var r=e.getAttribute("style");if(r){j6e.lastIndex=0;for(var i;(i=j6e.exec(r))!=null;){var o=i[1],a=Fn(BU,o)?BU[o]:null;a&&(t[a]=i[2]);var s=Fn(jU,o)?jU[o]:null;s&&(n[s]=i[2])}}}function W1r(e,t,n){for(var r=0;r<L6e.length;r++){var i=L6e[r],o=e.getAttribute(i);o!=null&&(t[BU[i]]=o)}for(var r=0;r<_6e.length;r++){var i=_6e[r],o=e.getAttribute(i);o!=null&&(n[jU[i]]=o)}}function $2t(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function q1r(e,t){var n=new P1r;return n.parse(e,t)}var B1r=Kn(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),j1r=(function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=Kn(),this._freedGraphics=[],this._mapName=t,this._parsedXML=V2t(n)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=V1r(t.named),r=n.regions,i=n.regionsMap;this._regions=r,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var n,r;try{n=t&&q1r(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,S0(r!=null)}catch(b){throw new Error(`Invalid svg format
`+b.message)}var i=new Ir;i.add(r),i.isGeoSVGGraphicRoot=!0;var o=n.width,a=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var c=void 0,u=void 0,d=void 0,p=void 0;if(o!=null?(c=0,d=o):s&&(c=s.x,d=s.width),a!=null?(u=0,p=a):s&&(u=s.y,p=s.height),c==null||u==null){var h=r.getBoundingRect();c==null&&(c=h.x,d=h.width),u==null&&(u=h.y,p=h.height)}l=this._boundingRect=new ui(c,u,d,p)}if(s){var g=$2t(s,l);r.scaleX=r.scaleY=g.scale,r.x=g.x,r.y=g.y}i.setClipPath(new ao({shape:l.plain()}));var m=[];return ye(n.named,function(b){B1r.get(b.svgNodeTagLower)!=null&&(m.push(b),H1r(b.el))}),{root:i,boundingRect:l,named:m}},e.prototype.useGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,r),r)},e.prototype.freeGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);r&&(n.removeKey(t),this._freedGraphics.push(r))},e})();function H1r(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function V1r(e){var t=[],n=Kn();return ye(e,function(r){if(r.namedFrom==null){var i=new Rur(r.name,r.el);t.push(i),n.set(r.name,i)}}),{regions:t,regionsMap:n}}var Cve=[126,25],H6e="南海诸岛",_A=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var yA=0;yA<_A.length;yA++)for(var KE=0;KE<_A[yA].length;KE++)_A[yA][KE][0]/=10.5,_A[yA][KE][1]/=-10.5/.75,_A[yA][KE][0]+=Cve[0],_A[yA][KE][1]+=Cve[1];function G1r(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===H6e)return;t.push(new jbt(H6e,Vt(_A,function(r){return{type:"polygon",exterior:r}}),Cve))}}var $1r={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function U1r(e,t){if(e==="china"){var n=$1r[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var X1r=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Y1r(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:X1r[0]})}var K1r="name",Q1r=(function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=Kn(),this._mapName=t,this._specialAreas=r,this._geoJSON=J1r(n)}return e.prototype.load=function(t,n){n=n||K1r;var r=this._parsedMap.get(n);if(!r){var i=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:i,boundingRect:Z1r(i)})}var o=Kn(),a=[];return ye(r.regions,function(s){var l=s.name;t&&Fn(t,l)&&(s=s.cloneShallow(l=t[l])),a.push(s),o.set(l,s)}),{regions:a,boundingRect:r.boundingRect||new ui(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,i;try{i=r?dve(r,t):[]}catch(o){throw new Error(`Invalid geoJson format
`+o.message)}return G1r(n,i),ye(i,function(o){var a=o.name;U1r(n,o),Y1r(n,o);var s=this._specialAreas&&this._specialAreas[a];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),i},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e})();function Z1r(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function J1r(e){return An(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var z_=Kn();const lM={registerMap:function(e,t,n){if(t.svg){var r=new j1r(e,t.svg);z_.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new Q1r(e,i,n);z_.set(e,r)}},getGeoResource:function(e){return z_.get(e)},getMapForUser:function(e){var t=z_.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=z_.get(e);if(r)return r.load(t,n)}};var zAe=["rect","circle","line","ellipse","polygon","polyline","path"],epr=Kn(zAe),tpr=Kn(zAe.concat(["g"])),npr=Kn(zAe.concat(["g"])),U2t=mo();function LV(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function V6e(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var X2t=(function(){function e(t){var n=new Ir;this.uid=lk("ec_map_draw"),this._controller=new nj(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new Ir),n.add(this._svgGroup=new Ir)}return e.prototype.draw=function(t,n,r,i,o){var a=t.mainType==="geo",s=t.getData&&t.getData();a&&n.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,c=this._regionsGroup,u=this.group,d=l.getTransformInfo(),p=d.raw,h=d.roam,g=!c.childAt(0)||o;g?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):Ao(u,h,t);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,b={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:m,isGeo:a,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(b):l.resourceType==="geoSVG"&&this._buildSVG(b),this._updateController(t,n,r),this._updateMapSelectHandler(t,c,r,i)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=Kn(),r=Kn(),i=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,s=t.data,l=t.geo.projection,c=l&&l.stream;function u(h,g){return g&&(h=g(h)),h&&[h[0]*o.scaleX+o.x,h[1]*o.scaleY+o.y]}function d(h){for(var g=[],m=!c&&l&&l.project,b=0;b<h.length;++b){var y=u(h[b],m);y&&g.push(y)}return g}function p(h){return{shape:{points:d(h)}}}i.removeAll(),ye(t.geo.regions,function(h){var g=h.name,m=n.get(g),b=r.get(g)||{},y=b.dataIdx,M=b.regionModel;if(!m){m=n.set(g,new Ir),i.add(m),y=s?s.indexOfName(g):null,M=t.isGeo?a.getRegionModel(g):s?s.getItemModel(y):null;var C=M.get("silent",!0);C!=null&&(m.silent=C),r.set(g,{dataIdx:y,regionModel:M})}var x=[],w=[];ye(h.geometries,function(z){if(z.type==="polygon"){var O=[z.exterior].concat(z.interiors||[]);c&&(O=K6e(O,c)),ye(O,function(R){x.push(new O0(p(R)))})}else{var T=z.points;c&&(T=K6e(T,c,!0)),ye(T,function(R){w.push(new R0(p(R)))})}});var S=u(h.getCenter(),l&&l.project);function A(z,O){if(z.length){var T=new MJ({culling:!0,segmentIgnoreThreshold:1,shape:{paths:z}});m.add(T),G6e(t,T,y,M),$6e(t,T,g,M,a,y,S),O&&(V6e(T),ye(T.states,V6e))}}A(x),A(w,!0)}),n.each(function(h,g){var m=r.get(g),b=m.dataIdx,y=m.regionModel;U6e(t,h,g,y,a,b),X6e(t,h,g,y,a),Y6e(t,h,g,y,a)},this)},e.prototype._buildSVG=function(t){var n=t.geo.map,r=t.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var i=this._svgDispatcherMap=Kn(),o=!1;ye(this._svgGraphicRecord.named,function(a){var s=a.name,l=t.mapOrGeoModel,c=t.data,u=a.svgNodeTagLower,d=a.el,p=c?c.indexOfName(s):null,h=l.getRegionModel(s);epr.get(u)!=null&&d instanceof qf&&G6e(t,d,p,h),d instanceof qf&&(d.culling=!0);var g=h.get("silent",!0);if(g!=null&&(d.silent=g),d.z2EmphasisLift=0,!a.namedFrom&&(npr.get(u)!=null&&$6e(t,d,s,h,l,p,null),U6e(t,d,s,h,l,p),X6e(t,d,s,h,l),tpr.get(u)!=null)){var m=Y6e(t,d,s,h,l);m==="self"&&(o=!0);var b=i.get(s)||i.set(s,[]);b.push(d)}},this),this._enableBlurEntireSVG(o,t)},e.prototype._enableBlurEntireSVG=function(t,n){if(t&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=r.opacity;this._svgGraphicRecord.root.traverse(function(o){if(!o.isGroup){Qz(o);var a=o.ensureState("blur").style||{};a.opacity==null&&i!=null&&(a.opacity=i),o.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,n){if(t==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var o=i.get(t);return o?[o]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var n=lM.getGeoResource(t);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var n=lM.getGeoResource(t);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,n,r){var i=t.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=i.getZoom(),o.enable(t.get("roam")||!1);var s=t.mainType;function l(){var c={type:"geoRoam",componentType:s};return c[s+"Id"]=t.id,c}o.off("pan").on("pan",function(c){this._mouseDownFlag=!1,AAe(a,c.dx,c.dy),r.dispatchAction(Nt(l(),{dx:c.dx,dy:c.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(c){this._mouseDownFlag=!1,OAe(a,c.scale,c.originX,c.originY),r.dispatchAction(Nt(l(),{totalZoom:a.zoom,zoom:c.scale,originX:c.originX,originY:c.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(c,u,d){return i.containPoint([u,d])&&!qJ(c,r,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=U2t(n).ignore)})},e.prototype._updateMapSelectHandler=function(t,n,r,i){var o=this;n.off("mousedown"),n.off("click"),t.get("selectedMode")&&(n.on("mousedown",function(){o._mouseDownFlag=!0}),n.on("click",function(a){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},e})();function G6e(e,t,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=LV(i),c=LV(o),u=LV(s),d=LV(a),p=e.data;if(p){var h=p.getItemVisual(n,"style"),g=p.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),g&&(l.decal=FP(g,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=d,Qz(t)}function $6e(e,t,n,r,i,o,a){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),o)),u=s&&s.getItemLayout(o);if(l||c||u&&u.showLabel){var d=l?n:o,p=void 0;(!s||o>=0)&&(p=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;zd(t,Ru(r),{labelFetcher:p,labelDataIndex:d,defaultText:n},h);var g=t.getTextContent();if(g&&(U2t(g).ignore=g.ignore,t.textConfig&&a)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(a[0]-m.x)/m.width*100+"%",(a[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function U6e(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):_r(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function X6e(e,t,n,r,i){e.data||V3({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function Y6e(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return sl(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&For(t,i,n),a}function K6e(e,t,n){var r=[],i;function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,c){isFinite(l)&&isFinite(c)&&i.push([l,c])},sphere:function(){}});return!n&&s.polygonStart(),ye(e,function(l){s.lineStart();for(var c=0;c<l.length;c++)s.point(l[c][0],l[c][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var rpr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){if(!(o&&o.type==="mapToggleSelect"&&o.from===this.uid)){var a=this.group;if(a.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===n.id){var s=this._mapDraw;s&&a.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new X2t(i);a.add(s.group),s.draw(n,r,i,this,o),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(n,r,i){var o=n.originalData,a=this.group;o.each(o.mapDimension("value"),function(s,l){if(!isNaN(s)){var c=o.getItemLayout(l);if(!(!c||!c.point)){var u=c.point,d=c.offset,p=new t2({style:{fill:n.getData().getVisual("style").fill},shape:{cx:u[0]+d*9,cy:u[1],r:3},silent:!0,z2:8+(d?0:tk+1)});if(!d){var h=n.mainSeries.getData(),g=o.getName(l),m=h.indexOfName(g),b=o.getItemModel(l),y=b.getModel("label"),M=h.getItemGraphicEl(m);zd(p,Ru(b),{labelFetcher:{getFormattedLabel:function(C,x){return n.getFormattedLabel(m,x)}},defaultText:g}),p.disableLabelAnimation=!0,y.get("position")||p.setTextConfig({position:"bottom"}),M.onHoverStateChange=function(C){yU(p,C)}}a.add(p)}}})},t.type="map",t})(pa),ipr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),o=this.coordinateSystem,a=o.getRegion(i);return a&&o.dataToPoint(a.getCenter())}},n}return t.prototype.getInitialData=function(n){for(var r=bk(this,{coordDimensions:["value"],encodeDefaulter:Zr(jSe,this)}),i=Kn(),o=[],a=0,s=r.count();a<s;a++){var l=r.getName(a);i.set(l,a)}var c=lM.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return ye(c.regions,function(u){var d=u.name,p=i.get(d),h=u.properties&&u.properties.echartsStyle,g;p==null?(g={name:d},o.push(g)):g=r.getRawDataItem(p),h&&ei(g,h)}),r.appendData(o),r},t.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},t.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},t.prototype.formatTooltip=function(n,r,i){for(var o=this.getData(),a=this.getRawValue(n),s=o.getName(n),l=this.seriesGroup,c=[],u=0;u<l.length;u++){var d=l[u].originalData.indexOfName(s),p=o.mapDimension("value");isNaN(l[u].originalData.get(p,d))||c.push(l[u].name)}return Iu("section",{header:c.join(", "),noHeader:!c.length,blocks:[Iu("nameValue",{name:s,value:a})]})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",i=sc(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return i.setStyle(n.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t})(Ia);function opr(e,t){var n={};return ye(e,function(r){r.each(r.mapDimension("value"),function(i,o){var a="ec-"+r.getName(o);n[a]=n[a]||[],isNaN(i)||n[a].push(i)})}),e[0].map(e[0].mapDimension("value"),function(r,i){for(var o="ec-"+e[0].getName(i),a=0,s=1/0,l=-1/0,c=n[o].length,u=0;u<c;u++)s=Math.min(s,n[o][u]),l=Math.max(l,n[o][u]),a+=n[o][u];var d;return t==="min"?d=s:t==="max"?d=l:t==="average"?d=a/c:d=a,c===0?NaN:d})}function apr(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),i=r?"o"+r.id:"i"+n.getMapType();(t[i]=t[i]||[]).push(n)}),ye(t,function(n,r){for(var i=opr(Vt(n,function(a){return a.getData()}),n[0].get("mapValueCalculation")),o=0;o<n.length;o++)n[o].originalData=n[o].getData();for(var o=0;o<n.length;o++)n[o].seriesGroup=n,n[o].needsDrawMap=o===0&&!n[o].getHostGeoModel(),n[o].setData(i.cloneShallow()),n[o].mainSeries=n[0]})}function spr(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var i={};ye(n.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(c,u){var d=l.getName(u),p=s.getRegion(d);if(!(!p||isNaN(c))){var h=i[d]||0,g=s.dataToPoint(p.getCenter());i[d]=h+1,l.setItemLayout(u,{point:g,offset:h})}})});var o=n.getData();o.each(function(a){var s=o.getName(a),l=o.getItemLayout(a)||{};l.showLabel=!i[s],o.setItemLayout(a,l)}),t[r]=!0}})}var Q6e=Yu,rj=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Sy,r._rawTransformable=new Sy,r.name=n,r}return t.prototype.setBoundingRect=function(n,r,i,o){return this._rect=new ui(n,r,i,o),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(n,r,i,o){this._transformTo(n,r,i,o),this._viewRect=new ui(n,r,i,o)},t.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new ui(n,r,i,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(n,r){n&&(this._center=[vn(n[0],r.getWidth()),vn(n[1],r.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,i=n.y+n.height/2;return[r,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),o=this.getCenter(),a=this.getZoom();o=Yu([],o,n),i=Yu([],i,n),r.originX=o[0],r.originY=o[1],r.x=i[0]-o[0],r.y=i[1]-o[1],r.scaleX=r.scaleY=a,this._updateTransform()},t.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),lJ(this.transform||(this.transform=[]),r.transform||gp()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],H3(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,i=new Sy;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},t.prototype.dataToPoint=function(n,r,i){var o=r?this._rawTransform:this.transform;return i=i||[],o?Q6e(i,n,o):i0(i,n)},t.prototype.pointToData=function(n){var r=this.invTransform;return r?Q6e([],n,r):[n[0],n[1]]},t.prototype.convertToPixel=function(n,r,i){var o=Z6e(r);return o===this?o.dataToPoint(i):null},t.prototype.convertFromPixel=function(n,r,i){var o=Z6e(r);return o===this?o.pointToData(i):null},t.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},t.dimensions=["x","y"],t})(Sy);function Z6e(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var lpr={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Y2t=["lng","lat"],xve=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,n)||this;o.dimensions=Y2t,o.type="geo",o._nameCoordMap=Kn(),o.map=r;var a=i.projection,s=lM.load(r,i.nameMap,i.nameProperty),l=lM.getGeoResource(r);o.resourceType=l?l.type:null;var c=o.regions=s.regions,u=lpr[l.type];o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=a;var d;if(a)for(var p=0;p<c.length;p++){var h=c[p].getBoundingRect(a);d=d||h.clone(),d.union(h)}else d=s.boundingRect;return o.setBoundingRect(d.x,d.y,d.width,d.height),o.aspectScale=a?1:Xr(i.aspectScale,u.aspectScale),o._invertLongitute=a?!1:u.invertLongitute,o}return t.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new ui(n,r,i,o));var c=l.parent;l.parent=null,l.decomposeTransform(),l.parent=c,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(n){return this._regionsMap.get(n)},t.prototype.getRegionByCoord=function(n){for(var r=this.regions,i=0;i<r.length;i++){var o=r[i];if(o.type==="geoJSON"&&o.contain(n))return r[i]}},t.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},t.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},t.prototype.dataToPoint=function(n,r,i){if(An(n)&&(n=this.getGeoCoord(n)),n){var o=this.projection;return o&&(n=o.project(n)),n&&this.projectedToPoint(n,r,i)}},t.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},t.prototype.pointToProjected=function(n){return e.prototype.pointToData.call(this,n)},t.prototype.projectedToPoint=function(n,r,i){return e.prototype.dataToPoint.call(this,n,r,i)},t.prototype.convertToPixel=function(n,r,i){var o=J6e(r);return o===this?o.dataToPoint(i):null},t.prototype.convertFromPixel=function(n,r,i){var o=J6e(r);return o===this?o.pointToData(i):null},t})(rj);Hl(xve,rj);function J6e(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Sc).models[0]||{}).coordinateSystem:null}function eBe(e,t){var n=e.get("boundingCoords");if(n!=null){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],c=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var u=function(S,A,z,O){for(var T=z-S,R=O-A,P=0;P<=100;P++){var F=P/100,N=o.project([S+T*F,A+R*F]);xy(r,r,N),wy(i,i,N)}};u(a,s,l,s),u(l,s,l,c),u(l,c,a,c),u(a,c,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var d=this.getBoundingRect(),p=e.get("layoutCenter"),h=e.get("layoutSize"),g=t.getWidth(),m=t.getHeight(),b=d.width/d.height*this.aspectScale,y=!1,M,C;p&&h&&(M=[vn(p[0],g),vn(p[1],m)],C=vn(h,Math.min(g,m)),!isNaN(M[0])&&!isNaN(M[1])&&!isNaN(C)&&(y=!0));var x;if(y)x={},b>1?(x.width=C,x.height=C/b):(x.height=C,x.width=C*b),x.y=M[1]-x.height/2,x.x=M[0]-x.width/2;else{var w=e.getBoxLayoutParams();w.aspect=b,x=Pc(w,{width:g,height:m})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function cpr(e,t){ye(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var upr=(function(){function e(){this.dimensions=Y2t}return e.prototype.create=function(t,n){var r=[];function i(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}t.eachComponent("geo",function(a,s){var l=a.get("map"),c=new xve(l+s,l,Nt({nameMap:a.get("nameMap")},i(a)));c.zoomLimit=a.get("scaleLimit"),r.push(c),a.coordinateSystem=c,c.model=a,c.resize=eBe,c.resize(a,n)}),t.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=r[l]}});var o={};return t.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),ye(o,function(a,s){var l=Vt(a,function(u){return u.get("nameMap")}),c=new xve(s,s,Nt({nameMap:oJ(l)},i(a[0])));c.zoomLimit=xu.apply(null,Vt(a,function(u){return u.get("scaleLimit")})),r.push(c),c.resize=eBe,c.resize(a[0],n),ye(a,function(u){u.coordinateSystem=c,cpr(c,u)})}),r},e.prototype.getFilledRegions=function(t,n,r,i){for(var o=(t||[]).slice(),a=Kn(),s=0;s<o.length;s++)a.set(o[s].name,o[s]);var l=lM.load(n,r,i);return ye(l.regions,function(c){var u=c.name,d=a.get(u),p=c.properties&&c.properties.echartsStyle;d||(d={name:u},o.push(d)),p&&ei(d,p)}),o},e})(),K2t=new upr,dpr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,i){var o=lM.getGeoResource(n.map);if(o&&o.type==="geoJSON"){var a=n.itemStyle=n.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(n,i),Xz(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=K2t.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=Wf(r.regions||[],function(o,a){var s=a.name;return s&&(o.set(s,new No(a,n,n.ecModel)),a.selected&&(i[s]=!0)),o},Kn()),r.selectedMap||(r.selectedMap=i)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new No(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(n,r){var i=this.getRegionModel(n),o=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),a={name:n};if(fr(o))return a.status=r,o(a);if(An(o))return o.replace("{a}",n??"")},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.select=function(n){var r=this.option,i=r.selectedMode;if(i){i!=="multiple"&&(r.selectedMap=null);var o=r.selectedMap||(r.selectedMap={});o[n]=!0}},t.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},t.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},t.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t})(Ri);function tBe(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function TAe(e,t,n,r){var i=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(tBe(e,s),r)),a!=null){if(n){var l=n.min||0,c=n.max||1/0;a=Math.max(Math.min(i*a,c),l)/i}e.scaleX*=a,e.scaleY*=a;var u=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=u,e.y-=d,e.updateTransform(),e.setCenter(tBe(e,s),r),e.setZoom(a*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var ppr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(n,r){this._api=r},t.prototype.render=function(n,r,i,o){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new X2t(i));var a=this._mapDraw;a.draw(n,r,i,this,o),a.group.on("click",this._handleRegionClick,this),a.group.silent=n.get("silent"),this.group.add(a.group),this.updateSelectStatus(n,r,i)},t.prototype._handleRegionClick=function(n){var r;yO(n.target,function(i){return(r=_r(i).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},t.prototype.updateSelectStatus=function(n,r,i){var o=this;this._mapDraw.group.traverse(function(a){var s=_r(a).eventData;if(s)return o._model.isSelected(s.name)?i.enterSelect(a):i.leaveSelect(a),!0})},t.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t})(us);function hpr(e,t,n){lM.registerMap(e,t,n)}function Q2t(e){e.registerCoordinateSystem("geo",K2t),e.registerComponentModel(dpr),e.registerComponentView(ppr),e.registerImpl("registerMap",hpr),e.registerImpl("getMap",function(n){return lM.getMapForUser(n)});function t(n,r){r.update="geo:updateSelectStatus",e.registerAction(r,function(i,o){var a={},s=[];return o.eachComponent({mainType:"geo",query:i},function(l){l[n](i.name);var c=l.coordinateSystem;ye(c.regions,function(d){a[d.name]=l.isSelected(d.name)||!1});var u=[];ye(a,function(d,p){a[p]&&u.push(p)}),s.push({geoIndex:l.componentIndex,name:u})}),{selected:a,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,i){var o=n.componentType||"series";r.eachComponent({mainType:o,query:n},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=TAe(s,n,a.get("scaleLimit"),i);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),o==="series"&&ye(a.seriesGroup,function(c){c.setCenter(l.center),c.setZoom(l.zoom)})}})})}function fpr(e){Si(Q2t),e.registerChartView(rpr),e.registerSeriesModel(ipr),e.registerLayout(spr),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,apr),Yvt("map",e.registerAction)}function gpr(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(s)}}function mpr(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){ypr(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=Mpr(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function vpr(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function nBe(e){return arguments.length?e:wpr}function vN(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function bpr(e,t){return Pc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ypr(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function Mpr(e,t,n,r){if(t){for(var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,d=s.hierNode.modifier;s=Mse(s),o=Cse(o),s&&o;){i=Mse(i),a=Cse(a),i.hierNode.ancestor=e;var p=s.hierNode.prelim+d-o.hierNode.prelim-c+r(s,o);p>0&&(xpr(Cpr(s,e,n),e,p),c+=p,l+=p),d+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=i.hierNode.modifier,u+=a.hierNode.modifier}s&&!Mse(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!Cse(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=e)}return n}function Mse(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Cse(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Cpr(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function xpr(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function wpr(e,t){return e.parentNode===t.parentNode?1:2}var Spr=(function(){function e(){this.parentPoint=[],this.childPoints=[]}return e})(),Apr=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Spr},t.prototype.buildPath=function(n,r){var i=r.childPoints,o=i.length,a=r.parentPoint,s=i[0],l=i[o-1];if(o===1){n.moveTo(a[0],a[1]),n.lineTo(s[0],s[1]);return}var c=r.orient,u=c==="TB"||c==="BT"?0:1,d=1-u,p=vn(r.forkPosition,1),h=[];h[u]=a[u],h[d]=a[d]+(l[d]-a[d])*p,n.moveTo(a[0],a[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[u]=s[u],n.lineTo(h[0],h[1]),h[u]=l[u],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var g=1;g<o-1;g++){var m=i[g];n.moveTo(m[0],m[1]),h[u]=m[u],n.lineTo(h[0],h[1])}},t})(Di),Opr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Ir,n}return t.prototype.init=function(n,r){this._controller=new nj(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(n,r,i){var o=n.getData(),a=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(n,i),this._updateController(n,r,i);var c=this._data;o.diff(c).add(function(u){rBe(o,u)&&iBe(o,u,null,s,n)}).update(function(u,d){var p=c.getItemGraphicEl(d);if(!rBe(o,u)){p&&aBe(c,d,p,s,n);return}iBe(o,u,p,s,n)}).remove(function(u){var d=c.getItemGraphicEl(u);d&&aBe(c,u,d,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(u,d){u.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:d})})}),this._data=o},t.prototype._updateViewCoordSys=function(n,r){var i=n.getData(),o=[];i.each(function(d){var p=i.getItemLayout(d);p&&!isNaN(p.x)&&!isNaN(p.y)&&o.push([+p.x,+p.y])});var a=[],s=[];vJ(o,a,s);var l=this._min,c=this._max;s[0]-a[0]===0&&(a[0]=l?l[0]:a[0]-1,s[0]=c?c[0]:s[0]+1),s[1]-a[1]===0&&(a[1]=l?l[1]:a[1]-1,s[1]=c?c[1]:s[1]+1);var u=n.coordinateSystem=new rj;u.zoomLimit=n.get("scaleLimit"),u.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),u.setCenter(n.get("center"),r),u.setZoom(n.get("zoom")),this.group.attr({x:u.x,y:u.y,scaleX:u.scaleX,scaleY:u.scaleY}),this._min=a,this._max=s},t.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(c,u,d){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(u,d)&&!qJ(c,i,n)}),a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(c){AAe(s,c.dx,c.dy),i.dispatchAction({seriesId:n.id,type:"treeRoam",dx:c.dx,dy:c.dy})}).on("zoom",function(c){OAe(s,c.scale,c.originX,c.originY),i.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:c.scale,originX:c.originX,originY:c.originY}),o._updateNodeAndLinkScale(n),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),i=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(o,a){o.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,o=r.scaleX||1,a=r.getZoom(),s=(a-1)*i+1;return s/o},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t})(pa);function rBe(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function iBe(e,t,n,r,i){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,c=a.isExpand===!1&&a.children.length!==0?l:"#fff",u=e.tree.root,d=a.parentNode===u?a:a.parentNode||a,p=e.getItemGraphicEl(d.dataIndex),h=d.getLayout(),g=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:h,m=a.getLayout();o?(n=new KB(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Ao(n,{x:m.x,y:m.y},i);var b=n.getSymbolPath();if(i.get("layout")==="radial"){var y=u.children[0],M=y.getLayout(),C=y.children.length,x=void 0,w=void 0;if(m.x===M.x&&a.isExpand===!0&&y.children.length){var S={x:(y.children[0].getLayout().x+y.children[C-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[C-1].getLayout().y)/2};x=Math.atan2(S.y-M.y,S.x-M.x),x<0&&(x=Math.PI*2+x),w=S.x<M.x,w&&(x=x-Math.PI)}else x=Math.atan2(m.y-M.y,m.x-M.x),x<0&&(x=Math.PI*2+x),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(w=m.x<M.x,w&&(x=x-Math.PI)):(w=m.x>M.x,w||(x=x-Math.PI));var A=w?"left":"right",z=s.getModel("label"),O=z.get("rotate"),T=O*(Math.PI/180),R=b.getTextContent();R&&(b.setTextConfig({position:z.get("position")||A,rotation:O==null?-x:T,origin:"center"}),R.setStyle("verticalAlign","middle"))}var P=s.get(["emphasis","focus"]),F=P==="relative"?DP(a.getAncestorsIndices(),a.getDescendantIndices()):P==="ancestor"?a.getAncestorsIndices():P==="descendant"?a.getDescendantIndices():null;F&&(_r(n).focus=F),zpr(i,a,u,n,g,h,m,r),n.__edge&&(n.onHoverStateChange=function(N){if(N!=="blur"){var L=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);L&&L.hoverState===jB||yU(n.__edge,N)}})}function zpr(e,t,n,r,i,o,a,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),d=e.getOrient(),p=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),m=r.__edge;if(c==="curve")t.parentNode&&t.parentNode!==n&&(m||(m=r.__edge=new rk({shape:wve(u,d,p,i,i)})),Ao(m,{shape:wve(u,d,p,o,a)},e));else if(c==="polyline"&&u==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var b=t.children,y=[],M=0;M<b.length;M++){var C=b[M].getLayout();y.push([C.x,C.y])}m||(m=r.__edge=new Apr({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:h}})),Ao(m,{shape:{parentPoint:[a.x,a.y],childPoints:y}},e)}m&&!(c==="polyline"&&!t.isExpand)&&(m.useStyle(br({strokeNoScale:!0,fill:null},g)),Od(m,l,"lineStyle"),Qz(m),s.add(m))}function oBe(e,t,n,r,i){var o=t.tree.root,a=Z2t(o,e),s=a.source,l=a.sourceLayout,c=t.getItemGraphicEl(e.dataIndex);if(c){var u=t.getItemGraphicEl(s.dataIndex),d=u.__edge,p=c.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),h=r.get("edgeShape"),g=r.get("layout"),m=r.get("orient"),b=r.get(["lineStyle","curveness"]);p&&(h==="curve"?aw(p,{shape:wve(g,m,b,l,l),style:{opacity:0}},r,{cb:function(){n.remove(p)},removeOpt:i}):h==="polyline"&&r.get("layout")==="orthogonal"&&aw(p,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(p)},removeOpt:i}))}}function Z2t(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function aBe(e,t,n,r,i){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=Z2t(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};aw(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach(function(c){oBe(c,e,r,i,l)}),oBe(o,e,r,i,l)}function wve(e,t,n,r,i){var o,a,s,l,c,u,d,p;if(e==="radial"){c=r.rawX,d=r.rawY,u=i.rawX,p=i.rawY;var h=vN(c,d),g=vN(c,d+(p-d)*n),m=vN(u,p+(d-p)*n),b=vN(u,p);return{x1:h.x||0,y1:h.y||0,x2:b.x||0,y2:b.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:m.x||0,cpy2:m.y||0}}else c=r.x,d=r.y,u=i.x,p=i.y,(t==="LR"||t==="RL")&&(o=c+(u-c)*n,a=d,s=u+(c-u)*n,l=p),(t==="TB"||t==="BT")&&(o=c,a=d+(p-d)*n,s=u,l=p+(d-p)*n);return{x1:c,y1:d,x2:u,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var Rf=mo();function J2t(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,eyt(t,n,e),ye(n,function(r){ye(t.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,Zr(Tpr,e))})}),t.wrapMethod("cloneShallow",Zr(Rpr,e)),ye(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,Zr(Epr,e))}),S0(n[t.dataType]===t)}function Tpr(e,t){if(Dpr(this)){var n=Nt({},Rf(this).datas);n[this.dataType]=t,eyt(t,n,e)}else EAe(t,this.dataType,Rf(this).mainData,e);return t}function Epr(e,t){return e.struct&&e.struct.update(),t}function Rpr(e,t){return ye(Rf(t).datas,function(n,r){n!==t&&EAe(n.cloneShallow(),r,t,e)}),t}function Ipr(e){var t=Rf(this).mainData;return e==null||t==null?t:Rf(t).datas[e]}function Ppr(){var e=Rf(this).mainData;return e==null?[{data:e}]:Vt(Hi(Rf(e).datas),function(t){return{type:t,data:Rf(e).datas[t]}})}function Dpr(e){return Rf(e).mainData===e}function eyt(e,t,n){Rf(e).datas={},ye(t,function(r,i){EAe(r,i,e,n)})}function EAe(e,t,n,r){Rf(n).datas[t]=e,Rf(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=Ipr,e.getLinkedDataAll=Ppr}var kpr=(function(){function e(t,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=n}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,n,r){fr(t)&&(r=n,n=t,t=null),t=t||{},An(t)&&(t={order:t});var i=t.order||"preorder",o=this[t.attr||"children"],a;i==="preorder"&&(a=n.call(r,this));for(var s=0;!a&&s<o.length;s++)o[s].eachNode(t,n,r);i==="postorder"&&n.call(r,this)},e.prototype.updateDepthAndHeight=function(t){var n=0;this.depth=t;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(t+1),i.height>n&&(n=i.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].getNodeById(t);if(o)return o}},e.prototype.contains=function(t){if(t===this)return!0;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].contains(t);if(o)return o}},e.prototype.getAncestors=function(t){for(var n=[],r=t?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},e.prototype.getAncestorsIndices=function(){for(var t=[],n=this;n;)t.push(n.dataIndex),n=n.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(n){t.push(n.dataIndex)}),t},e.prototype.getValue=function(t){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n<t.length;++n)if(t[n]===this)return n;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var n=t.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e})(),RAe=(function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,n,r){this.root.eachNode(t,n,r)},e.prototype.getNodeByDataIndex=function(t){var n=this.data.getRawIndex(t);return this._nodes[n]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,n=this._nodes,r=0,i=n.length;r<i;r++)n[r].dataIndex=-1;for(var r=0,i=t.count();r<i;r++)n[t.getRawIndex(r)].dataIndex=r},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),o=[],a=1;s(t);function s(u,d){var p=u.value;a=Math.max(a,Ht(p)?p.length:1),o.push(u);var h=new kpr(Zc(u.name,""),i);d?Lpr(h,d):i.root=h,i._nodes.push(h);var g=u.children;if(g)for(var m=0;m<g.length;m++)s(g[m],h)}i.root.updateDepthAndHeight(0);var l=gk(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,c=new y0(l,n);return c.initData(o),r&&r(c),J2t({mainData:c,struct:i,structAttr:"tree"}),i.update(),i},e})();function Lpr(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}function Rq(e,t,n){if(e&&hi(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(An(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(o!=null&&(i=r.getNodeById(o)))return{node:i}}}function tyt(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function IAe(e,t){var n=tyt(e);return hi(n,t)>=0}function jJ(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var _pr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},i=n.leaves||{},o=new No(i,this,this.ecModel),a=RAe.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(p,h){var g=a.getNodeByDataIndex(h);return g&&g.children.length&&g.isExpand||(p.parentModel=o),p})}var l=0;a.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var c=n.expandAndCollapse,u=c&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return a.root.eachNode("preorder",function(d){var p=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=p&&p.collapsed!=null?!p.collapsed:d.depth<=u}),a.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,i){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(n),l=s.getValue(),c=s.name;s&&s!==a;)c=s.parentNode.name+"."+c,s=s.parentNode;return Iu("nameValue",{name:c,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=jJ(i,this),r.collapsed=!i.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(Ia);function Npr(e,t,n){for(var r=[e],i=[],o;o=r.pop();)if(i.push(o),o.isExpand){var a=o.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;o=i.pop();)t(o,n)}function T_(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var o=i.length-1;o>=0;o--)n.push(i[o])}}function Fpr(e,t){e.eachSeriesByType("tree",function(n){Wpr(n,t)})}function Wpr(e,t){var n=bpr(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;r==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=nBe(function(C,x){return(C.parentNode===x.parentNode?1:2)/C.depth})):(i=n.width,o=n.height,a=nBe());var s=e.getData().tree.root,l=s.children[0];if(l){gpr(s),Npr(l,mpr,a),s.hierNode.modifier=-l.hierNode.prelim,T_(l,vpr);var c=l,u=l,d=l;T_(l,function(C){var x=C.getLayout().x;x<c.getLayout().x&&(c=C),x>u.getLayout().x&&(u=C),C.depth>d.depth&&(d=C)});var p=c===u?1:a(c,u)/2,h=p-c.getLayout().x,g=0,m=0,b=0,y=0;if(r==="radial")g=i/(u.getLayout().x+p+h),m=o/(d.depth-1||1),T_(l,function(C){b=(C.getLayout().x+h)*g,y=(C.depth-1)*m;var x=vN(b,y);C.setLayout({x:x.x,y:x.y,rawX:b,rawY:y},!0)});else{var M=e.getOrient();M==="RL"||M==="LR"?(m=o/(u.getLayout().x+p+h),g=i/(d.depth-1||1),T_(l,function(C){y=(C.getLayout().x+h)*m,b=M==="LR"?(C.depth-1)*g:i-(C.depth-1)*g,C.setLayout({x:b,y},!0)})):(M==="TB"||M==="BT")&&(g=i/(u.getLayout().x+p+h),m=o/(d.depth-1||1),T_(l,function(C){b=(C.getLayout().x+h)*g,y=M==="TB"?(C.depth-1)*m:o-(C.depth-1)*m,C.setLayout({x:b,y},!0)}))}}}function qpr(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(i.dataIndex,"style");Nt(s,a)})})}function Bpr(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var i=t.dataIndex,o=r.getData().tree,a=o.getNodeByDataIndex(i);a.isExpand=!a.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var o=i.coordinateSystem,a=TAe(o,t,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}function jpr(e){e.registerChartView(Opr),e.registerSeriesModel(_pr),e.registerLayout(Fpr),e.registerVisual(qpr),Bpr(e)}var sBe=["treemapZoomToNode","treemapRender","treemapMove"];function Hpr(e){for(var t=0;t<sBe.length;t++)e.registerAction({type:sBe[t],update:"updateView"},Nl);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},i);function i(o,a){var s=["treemapZoomToNode","treemapRootToNode"],l=Rq(n,s,o);if(l){var c=o.getViewRoot();c&&(n.direction=IAe(c,l.node)?"rollUp":"drillDown"),o.resetViewRoot(l.node)}}})}function nyt(e){var t=e.getData(),n=t.tree,r={};n.eachNode(function(i){for(var o=i;o&&o.depth>1;)o=o.parentNode;var a=Kme(e.ecModel,o.name||o.dataIndex+"",r);i.setVisual("decal",a)})}var Vpr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};ryt(i);var o=n.levels||[],a=this.designatedVisualItemStyle={},s=new No({itemStyle:a},this,r);o=n.levels=Gpr(o,r);var l=Vt(o||[],function(d){return new No(d,s,r)},this),c=RAe.createTree(i,this,u);function u(d){d.wrapMethod("getItemModel",function(p,h){var g=c.getNodeByDataIndex(h),m=g?l[g.depth]:null;return p.parentModel=m||s,p})}return c.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Iu("nameValue",{name:s,value:a})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=jJ(i,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Nt(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Kn(),this._idIndexMapCount=0);var i=r.get(n);return i==null&&r.set(n,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){nyt(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t})(Ia);function ryt(e){var t=0;ye(e.children,function(r){ryt(r);var i=r.value;Ht(i)&&(i=i[0]),t+=i});var n=e.value;Ht(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Ht(e.value)?e.value[0]=n:e.value=n}function Gpr(e,t){var n=Ea(t.get("color")),r=Ea(t.get(["aria","decal","decals"]));if(n){e=e||[];var i,o;ye(e,function(s){var l=new No(s),c=l.get("color"),u=l.get("decal");(l.get(["itemStyle","color"])||c&&c!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||u&&u!=="none")&&(o=!0)});var a=e[0]||(e[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),e}}var $pr=8,lBe=8,xse=5,Upr=(function(){function e(t){this.group=new Ir,t.add(this.group)}return e.prototype.render=function(t,n,r,i){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!o.get("show")||!r)){var s=o.getModel("itemStyle"),l=o.getModel("emphasis"),c=s.getModel("textStyle"),u=l.getModel(["itemStyle","textStyle"]),d={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,c),this._renderContent(t,d,s,l,c,u,i),TJ(a,d.pos,d.box)}},e.prototype._prepare=function(t,n,r){for(var i=t;i;i=i.parentNode){var o=Zc(i.getModel().get("name"),""),a=r.getTextRect(o),s=Math.max(a.width+$pr*2,n.emptyItemWidth);n.totalWidth+=s+lBe,n.renderList.push({node:i,text:o,width:s})}},e.prototype._renderContent=function(t,n,r,i,o,a,s){for(var l=0,c=n.emptyItemWidth,u=t.get(["breadcrumb","height"]),d=War(n.pos,n.box),p=n.totalWidth,h=n.renderList,g=i.getModel("itemStyle").getItemStyle(),m=h.length-1;m>=0;m--){var b=h[m],y=b.node,M=b.width,C=b.text;p>d.width&&(p-=M-c,M=c,C=null);var x=new O0({shape:{points:Xpr(l,0,M,u,m===h.length-1,m===0)},style:br(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new oo({style:Za(o,{text:C})}),textConfig:{position:"inside"},z2:tk*1e4,onclick:Zr(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Za(a,{text:C}),x.ensureState("emphasis").style=g,sl(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),Ypr(x,t,y),l+=M+lBe}},e.prototype.remove=function(){this.group.removeAll()},e})();function Xpr(e,t,n,r,i,o){var a=[[i?e:e-xse,t],[e+n,t],[e+n,t+r],[i?e:e-xse,t+r]];return!o&&a.splice(2,0,[e+n+xse,t+r/2]),!i&&a.push([e,t+r/2]),a}function Ypr(e,t,n){_r(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&jJ(n,t)}}var Kpr=(function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,i,o){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:i,easing:o}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:r,aborted:r})}return this},e})();function Qpr(){return new Kpr}var Sve=Ir,cBe=ao,uBe=3,dBe="label",pBe="upperLabel",Zpr=tk*10,Jpr=tk*2,ehr=tk*3,NA=Kz([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),hBe=function(e){var t=NA(e);return t.stroke=t.fill=t.lineWidth=null,t},HU=mo(),thr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=E_(),n}return t.prototype.render=function(n,r,i,o){var a=r.findComponents({mainType:"series",subType:"treemap",query:o});if(!(hi(a,n)<0)){this.seriesModel=n,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Rq(o,s,n),c=o&&o.type,u=n.layoutInfo,d=!this._oldTree,p=this._storage,h=c==="treemapRootToNode"&&l&&p?{rootNodeGroup:p.nodeGroup[l.node.getRawIndex()],direction:o.direction}:null,g=this._giveContainerGroup(u),m=n.get("animation"),b=this._doRender(g,n,h);m&&!d&&(!c||c==="treemapZoomToNode"||c==="treemapRootToNode")?this._doAnimation(g,b,n,h):b.renderFinally(),this._resetController(i),this._renderBreadcrumb(n,i,l)}},t.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new Sve,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},t.prototype._doRender=function(n,r,i){var o=r.getData().tree,a=this._oldTree,s=E_(),l=E_(),c=this._storage,u=[];function d(M,C,x,w){return nhr(r,l,c,i,s,u,M,C,x,w)}m(o.root?[o.root]:[],a&&a.root?[a.root]:[],n,o===a||!a,0);var p=b(c);if(this._oldTree=o,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,g=o.root.getLayout();g.width===h.width&&g.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:p,renderFinally:y};function m(M,C,x,w,S){w?(C=M,ye(M,function(O,T){!O.isRemoved()&&z(T,T)})):new oM(C,M,A,A).add(z).update(z).remove(Zr(z,null)).execute();function A(O){return O.getId()}function z(O,T){var R=O!=null?M[O]:null,P=T!=null?C[T]:null,F=d(R,P,x,S);F&&m(R&&R.viewChildren||[],P&&P.viewChildren||[],F,w,S+1)}}function b(M){var C=E_();return M&&ye(M,function(x,w){var S=C[w];ye(x,function(A){A&&(S.push(A),HU(A).willDelete=!0)})}),C}function y(){ye(p,function(M){ye(M,function(C){C.parent&&C.parent.remove(C)})}),ye(u,function(M){M.invisible=!0,M.dirty()})}},t.prototype._doAnimation=function(n,r,i,o){var a=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(fr(a)?0:a)||0,c=(fr(s)?null:s)||"cubicOut",u=Qpr();ye(r.willDeleteEls,function(d,p){ye(d,function(h,g){if(!h.invisible){var m=h.parent,b,y=HU(m);if(o&&o.direction==="drillDown")b=m===o.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var M=0,C=0;y.willDelete||(M=y.nodeWidth/2,C=y.nodeHeight/2),b=p==="nodeGroup"?{x:M,y:C,style:{opacity:0}}:{shape:{x:M,y:C,width:0,height:0},style:{opacity:0}}}b&&u.add(h,b,l,0,c)}})}),ye(this._storage,function(d,p){ye(d,function(h,g){var m=r.lastsForAnimation[p][g],b={};m&&(h instanceof Ir?m.oldX!=null&&(b.x=h.x,b.y=h.y,h.x=m.oldX,h.y=m.oldY):(m.oldShape&&(b.shape=Nt({},h.shape),h.setShape(m.oldShape)),m.fadein?(h.setStyle("opacity",0),b.style={opacity:1}):h.style.opacity!==1&&(b.style={opacity:1})),u.add(h,b,l,0,c))})},this),this._state="animating",u.finished(Rn(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),r||(r=this._controller=new nj(n.getZr()),r.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),r.on("pan",Rn(this._onPan,this)),r.on("zoom",Rn(this._onZoom,this)));var o=new ui(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(a,s,l){return o.contain(s,l)})},t.prototype._clearController=function(){var n=this._controller;this._controllerHost=null,n&&(n.dispose(),n=null)},t.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>uBe||Math.abs(n.dy)>uBe)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+n.dx,y:i.y+n.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(n){var r=n.originX,i=n.originY,o=n.scale;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var s=a.getLayout();if(!s)return;var l=new ui(s.x,s.y,s.width,s.height),c=null,u=this._controllerHost;c=u.zoomLimit;var d=u.zoom=u.zoom||1;if(d*=o,c){var p=c.min||0,h=c.max||1/0;d=Math.max(Math.min(h,d),p)}var g=d/u.zoom;u.zoom=d;var m=this.seriesModel.layoutInfo;r-=m.x,i-=m.y;var b=gp();Sm(b,b,[-r,-i]),cJ(b,b,[g,g]),Sm(b,b,[r,i]),l.applyTransform(b),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(i){if(r._state==="ready"){var o=r.seriesModel.get("nodeClick",!0);if(o){var a=r.findTarget(i.offsetX,i.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)r._rootToNode(a);else if(o==="zoomToNode")r._zoomToNode(a);else if(o==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),c=l.get("link",!0),u=l.get("target",!0)||"blank";c&&AU(c,u)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,i){var o=this;i||(i=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Upr(this.group))).render(n,r,i.node,function(a){o._state!=="animating"&&(IAe(n.getViewRoot(),a)?o._rootToNode({node:a}):o._zoomToNode({node:a}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=E_(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var i,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),c=s.shape;if(c.x<=l[0]&&l[0]<=c.x+c.width&&c.y<=l[1]&&l[1]<=c.y+c.height)i={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t})(pa);function E_(){return{nodeGroup:[],background:[],content:[]}}function nhr(e,t,n,r,i,o,a,s,l,c){if(!a)return;var u=a.getLayout(),d=e.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),!u||!u.isInView)return;var h=u.width,g=u.height,m=u.borderWidth,b=u.invisible,y=a.getRawIndex(),M=s&&s.getRawIndex(),C=a.viewChildren,x=u.upperHeight,w=C&&C.length,S=p.getModel("itemStyle"),A=p.getModel(["emphasis","itemStyle"]),z=p.getModel(["blur","itemStyle"]),O=p.getModel(["select","itemStyle"]),T=S.get("borderRadius")||0,R=re("nodeGroup",Sve);if(!R)return;if(l.add(R),R.x=u.x||0,R.y=u.y||0,R.markRedraw(),HU(R).nodeWidth=h,HU(R).nodeHeight=g,u.isAboveViewRoot)return R;var P=re("background",cBe,c,Jpr);P&&q(R,P,w&&u.upperLabelHeight);var F=p.getModel("emphasis"),N=F.get("focus"),L=F.get("blurScope"),W=F.get("disabled"),j=N==="ancestor"?a.getAncestorsIndices():N==="descendant"?a.getDescendantIndices():N;if(w)vq(R)&&vO(R,!1),P&&(vO(P,!W),d.setItemGraphicEl(a.dataIndex,P),jme(P,j,L));else{var V=re("content",cBe,c,ehr);V&&$(R,V),P.disableMorphing=!0,P&&vq(P)&&vO(P,!1),vO(R,!W),d.setItemGraphicEl(a.dataIndex,R);var G=p.getShallow("cursor");G&&V.attr("cursor",G),jme(R,j,L)}return R;function q(pe,te,ce){var oe=_r(te);if(oe.dataIndex=a.dataIndex,oe.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:h,height:g,r:T}),b)U(te);else{te.invisible=!1;var ae=a.getVisual("style"),ne=ae.stroke,le=hBe(S);le.fill=ne;var he=NA(A);he.fill=A.get("borderColor");var be=NA(z);be.fill=z.get("borderColor");var me=NA(O);if(me.fill=O.get("borderColor"),ce){var Me=h-2*m;X(te,ne,ae.opacity,{x:m,y:0,width:Me,height:x})}else te.removeTextContent();te.setStyle(le),te.ensureState("emphasis").style=he,te.ensureState("blur").style=be,te.ensureState("select").style=me,Qz(te)}pe.add(te)}function $(pe,te){var ce=_r(te);ce.dataIndex=a.dataIndex,ce.seriesIndex=e.seriesIndex;var oe=Math.max(h-2*m,0),ae=Math.max(g-2*m,0);if(te.culling=!0,te.setShape({x:m,y:m,width:oe,height:ae,r:T}),b)U(te);else{te.invisible=!1;var ne=a.getVisual("style"),le=ne.fill,he=hBe(S);he.fill=le,he.decal=ne.decal;var be=NA(A),me=NA(z),Me=NA(O);X(te,le,ne.opacity,null),te.setStyle(he),te.ensureState("emphasis").style=be,te.ensureState("blur").style=me,te.ensureState("select").style=Me,Qz(te)}pe.add(te)}function U(pe){!pe.invisible&&o.push(pe)}function X(pe,te,ce,oe){var ae=p.getModel(oe?pBe:dBe),ne=Zc(p.get("name"),null),le=ae.getShallow("show");zd(pe,Ru(p,oe?pBe:dBe),{defaultText:le?ne:null,inheritColor:te,defaultOpacity:ce,labelFetcher:e,labelDataIndex:a.dataIndex});var he=pe.getTextContent();if(he){var be=he.style,me=sJ(be.padding||0);oe&&(pe.setTextConfig({layoutRect:oe}),he.disableLabelLayout=!0),he.beforeUpdate=function(){var Oe=Math.max((oe?oe.width:pe.shape.width)-me[1]-me[3],0),de=Math.max((oe?oe.height:pe.shape.height)-me[0]-me[2],0);(be.width!==Oe||be.height!==de)&&he.setStyle({width:Oe,height:de})},be.truncateMinChar=2,be.lineOverflow="truncate",Q(be,oe,u);var Me=he.getState("emphasis");Q(Me?Me.style:null,oe,u)}}function Q(pe,te,ce){var oe=pe?pe.text:null;if(!te&&ce.isLeafRoot&&oe!=null){var ae=e.get("drillDownIcon",!0);pe.text=ae?ae+" "+oe:oe}}function re(pe,te,ce,oe){var ae=M!=null&&n[pe][M],ne=i[pe];return ae?(n[pe][M]=null,ee(ne,ae)):b||(ae=new te,ae instanceof qf&&(ae.z2=rhr(ce,oe)),se(ne,ae)),t[pe][y]=ae}function ee(pe,te){var ce=pe[y]={};te instanceof Sve?(ce.oldX=te.x,ce.oldY=te.y):ce.oldShape=Nt({},te.shape)}function se(pe,te){var ce=pe[y]={},oe=a.parentNode,ae=te instanceof Ir;if(oe&&(!r||r.direction==="drillDown")){var ne=0,le=0,he=i.background[oe.getRawIndex()];!r&&he&&he.oldShape&&(ne=he.oldShape.width,le=he.oldShape.height),ae?(ce.oldX=0,ce.oldY=le):ce.oldShape={x:ne,y:le,width:0,height:0}}ce.fadein=!ae}}function rhr(e,t){return e*Zpr+t}var Iq=ye,ihr=xr,VU=-1,Su=(function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=Or(t);this.type=r,this.mappingMethod=n,this._normalizeData=shr[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],n==="piecewise"?(wse(i),ohr(i)):n==="category"?i.categories?ahr(i):wse(i,!0):(S0(n!=="linear"||i.dataExtent),wse(i))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return Rn(this._normalizeData,this)},e.listVisualTypes=function(){return Hi(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){xr(t)?ye(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var i,o=Ht(t)?[]:xr(t)?{}:(i=!0,null);return e.eachVisual(t,function(a,s){var l=n.call(r,a,s);i?o=l:o[s]=l}),o},e.retrieveVisuals=function(t){var n={},r;return t&&Iq(e.visualHandlers,function(i,o){t.hasOwnProperty(o)&&(n[o]=t[o],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(Ht(t))t=t.slice();else if(ihr(t)){var n=[];Iq(t,function(r,i){n.push(i)}),t=n}else return[];return t.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var i,o=1/0,a=0,s=n.length;a<s;a++){var l=n[a].value;if(l!=null){if(l===t||An(l)&&l===t+"")return a;r&&p(l,a)}}for(var a=0,s=n.length;a<s;a++){var c=n[a],u=c.interval,d=c.close;if(u){if(u[0]===-1/0){if(NV(d[1],t,u[1]))return a}else if(u[1]===1/0){if(NV(d[0],u[0],t))return a}else if(NV(d[0],u[0],t)&&NV(d[1],t,u[1]))return a;r&&p(u[0],a),r&&p(u[1],a)}}if(r)return t===1/0?n.length-1:t===-1/0?0:i;function p(h,g){var m=Math.abs(h-t);m<o&&(o=m,i=g)}},e.visualHandlers={color:{applyVisual:R_("color"),getColorMapper:function(){var t=this.option;return Rn(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),bN.call(this,n)}:function(n,r,i){var o=!!i;return!r&&(n=this._normalizeData(n)),i=OF(n,t.parsedVisual,i),o?i:gm(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return gm(OF(t,this.option.parsedVisual),"rgba")},category:bN,piecewise:function(t,n){var r=Ove.call(this,n);return r==null&&(r=gm(OF(t,this.option.parsedVisual),"rgba")),r},fixed:FA}},colorHue:_V(function(t,n){return DI(t,n)}),colorSaturation:_V(function(t,n){return DI(t,null,n)}),colorLightness:_V(function(t,n){return DI(t,null,null,n)}),colorAlpha:_V(function(t,n){return pq(t,n)}),decal:{applyVisual:R_("decal"),_normalizedToVisual:{linear:null,category:bN,piecewise:null,fixed:null}},opacity:{applyVisual:R_("opacity"),_normalizedToVisual:Ave([0,1])},liftZ:{applyVisual:R_("liftZ"),_normalizedToVisual:{linear:FA,category:FA,piecewise:FA,fixed:FA}},symbol:{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("symbol",i)},_normalizedToVisual:{linear:fBe,category:bN,piecewise:function(t,n){var r=Ove.call(this,n);return r==null&&(r=fBe.call(this,t)),r},fixed:FA}},symbolSize:{applyVisual:R_("symbolSize"),_normalizedToVisual:Ave([0,1])}},e})();function ohr(e){var t=e.pieceList;e.hasSpecialVisual=!1,ye(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function ahr(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Iq(t,function(a,s){n[a]=s}),!Ht(r)){var i=[];xr(r)?Iq(r,function(a,s){var l=n[s];i[l??VU]=a}):i[VU]=r,r=iyt(e,i)}for(var o=t.length-1;o>=0;o--)r[o]==null&&(delete n[t[o]],t.pop())}function wse(e,t){var n=e.visual,r=[];xr(n)?Iq(n,function(o){r.push(o)}):n!=null&&r.push(n);var i={color:1,symbol:1};!t&&r.length===1&&!i.hasOwnProperty(e.type)&&(r[1]=r[0]),iyt(e,r)}function _V(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:Ave([0,1])}}function fBe(e){var t=this.option.visual;return t[Math.round(Ko(e,[0,1],[0,t.length-1],!0))]||{}}function R_(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function bN(e){var t=this.option.visual;return t[this.option.loop&&e!==VU?e%t.length:e]}function FA(){return this.option.visual[0]}function Ave(e){return{linear:function(t){return Ko(t,e,this.option.visual,!0)},category:bN,piecewise:function(t,n){var r=Ove.call(this,n);return r==null&&(r=Ko(t,e,this.option.visual,!0)),r},fixed:FA}}function Ove(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=Su.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function iyt(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Vt(t,function(n){var r=c1(n);return r||[0,0,0,1]})),t}var shr={linear:function(e){return Ko(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Su.findPieceIndex(e,t,!0);if(n!=null)return Ko(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??VU},fixed:Nl};function NV(e,t,n){return e?t<=n:t<n}var lhr="itemStyle",oyt=mo();const chr={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||ayt(n,{},e.getViewRoot().getAncestors(),e)}};function ayt(e,t,n,r){var i=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(!(!o||o.invisible||!o.isInView)){var s=i.getModel(lhr),l=uhr(s,t,r),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),u=s.get("borderColor"),d=s.get("borderColorSaturation"),p;d!=null&&(p=gBe(l),u=dhr(d,p)),c.stroke=u;var h=e.viewChildren;if(!h||!h.length)p=gBe(l),c.fill=p;else{var g=phr(e,i,o,s,l,h);ye(h,function(m,b){if(m.depth>=n.length||m===n[m.depth]){var y=hhr(i,l,m,b,g,r);ayt(m,y,n,r)}})}}}function uhr(e,t,n){var r=Nt({},t),i=n.designatedVisualItemStyle;return ye(["color","colorAlpha","colorSaturation"],function(o){i[o]=t[o];var a=e.get(o);i[o]=null,a!=null&&(r[o]=a)}),r}function gBe(e){var t=Sse(e,"color");if(t){var n=Sse(e,"colorAlpha"),r=Sse(e,"colorSaturation");return r&&(t=DI(t,null,null,r)),n&&(t=pq(t,n)),t}}function dhr(e,t){return t!=null?DI(t,null,null,e):null}function Sse(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function phr(e,t,n,r,i,o){if(!(!o||!o.length)){var a=Ase(t,"color")||i.color!=null&&i.color!=="none"&&(Ase(t,"colorAlpha")||Ase(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();s!=null&&s<c[0]&&(c[0]=s),l!=null&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),d={type:a.name,dataExtent:c,visual:a.range};d.type==="color"&&(u==="index"||u==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var p=new Su(d);return oyt(p).drColorMappingBy=u,p}}}function Ase(e,t){var n=e.get(t);return Ht(n)&&n.length?{name:t,range:n}:null}function hhr(e,t,n,r,i,o){var a=Nt({},t);if(i){var s=i.type,l=s==="color"&&oyt(i).drColorMappingBy,c=l==="index"?r:l==="id"?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(c)}return a}var Pq=Math.max,GU=Math.min,mBe=xu,PAe=ye,syt=["itemStyle","borderWidth"],fhr=["itemStyle","gapWidth"],ghr=["upperLabel","show"],mhr=["upperLabel","height"];const vhr={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=Pc(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],c=vn(mBe(s.width,l[0]),i),u=vn(mBe(s.height,l[1]),o),d=r&&r.type,p=["treemapZoomToNode","treemapRootToNode"],h=Rq(r,p,e),g=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,m=e.getViewRoot(),b=tyt(m);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?whr(e,h,m,c,u):g?[g.width,g.height]:[c,u],M=a.sort;M&&M!=="asc"&&M!=="desc"&&(M="desc");var C={squareRatio:a.squareRatio,sort:M,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(x),lyt(m,C,!1,0),x=m.getLayout(),PAe(b,function(S,A){var z=(b[A+1]||m).getValue();S.setLayout(Nt({dataExtent:[z,z],borderWidth:0,upperHeight:0},x))})}var w=e.getData().tree.root;w.setLayout(Shr(s,g,h),!0),e.setLayoutInfo(s),cyt(w,new ui(-s.x,-s.y,i,o),b,m,0)}};function lyt(e,t,n,r){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),l=s.get(syt),c=s.get(fhr)/2,u=uyt(s),d=Math.max(l,u),p=l-c,h=d-c;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),i=Pq(i-2*p,0),o=Pq(o-p-h,0);var g=i*o,m=bhr(e,s,g,t,n,r);if(m.length){var b={x:p,y:h,width:i,height:o},y=GU(i,o),M=1/0,C=[];C.area=0;for(var x=0,w=m.length;x<w;){var S=m[x];C.push(S),C.area+=S.getLayout().area;var A=xhr(C,y,t.squareRatio);A<=M?(x++,M=A):(C.area-=C.pop().getLayout().area,vBe(C,y,b,c,!1),y=GU(b.width,b.height),C.length=C.area=0,M=1/0)}if(C.length&&vBe(C,y,b,c,!0),!n){var z=s.get("childrenVisibleMin");z!=null&&g<z&&(n=!0)}for(var x=0,w=m.length;x<w;x++)lyt(m[x],t,n,r+1)}}}function bhr(e,t,n,r,i,o){var a=e.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=o;if(i&&!l)return e.viewChildren=[];a=Lo(a,function(h){return!h.isRemoved()}),Mhr(a,s);var c=Chr(t,a,s);if(c.sum===0)return e.viewChildren=[];if(c.sum=yhr(t,n,c.sum,s,a),c.sum===0)return e.viewChildren=[];for(var u=0,d=a.length;u<d;u++){var p=a[u].getValue()/c.sum*n;a[u].setLayout({area:p})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:c.dataExtent},!0),a}function yhr(e,t,n,r,i){if(!r)return n;for(var o=e.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var c=i[r==="asc"?a-l-1:l].getValue();c/n*t<o&&(s=l,n-=c)}return r==="asc"?i.splice(0,a-s):i.splice(s,a-s),n}function Mhr(e,t){return t&&e.sort(function(n,r){var i=t==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return i===0?t==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:i}),e}function Chr(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].getValue();var a=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:a==="value"&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],PAe(t,function(l){var c=l.getValue(a);c<s[0]&&(s[0]=c),c>s[1]&&(s[1]=c)})),{sum:r,dataExtent:s}}function xhr(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;o<s;o++)a=e[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=e.area*e.area,c=t*t*n;return l?Pq(c*r/l,l/(c*i)):1/0}function vBe(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],c=n[s[o]],u=t?e.area/t:0;(i||u>n[l[a]])&&(u=n[l[a]]);for(var d=0,p=e.length;d<p;d++){var h=e[d],g={},m=u?h.getLayout().area/u:0,b=g[l[a]]=Pq(u-2*r,0),y=n[s[o]]+n[l[o]]-c,M=d===p-1||y<m?y:m,C=g[l[o]]=Pq(M-2*r,0);g[s[a]]=n[s[a]]+GU(r,b/2),g[s[o]]=c+GU(r,C/2),c+=M,h.setLayout(g,!0)}n[s[a]]+=u,n[l[a]]-=u}function whr(e,t,n,r,i){var o=(t||{}).node,a=[r,i];if(!o||o===n)return a;for(var s,l=r*i,c=l*e.option.zoomToNodeRatio;s=o.parentNode;){for(var u=0,d=s.children,p=0,h=d.length;p<h;p++)u+=d[p].getValue();var g=o.getValue();if(g===0)return a;c*=u/g;var m=s.getModel(),b=m.get(syt),y=Math.max(b,uyt(m));c+=4*b*b+(3*b+y)*Math.pow(c,.5),c>Dme&&(c=Dme),o=s}c<l&&(c=l);var M=Math.pow(c/l,.5);return[r*M,i*M]}function Shr(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;for(var a=[o.width/2,o.height/2],s=i;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function cyt(e,t,n,r,i){var o=e.getLayout(),a=n[i],s=a&&a===e;if(!(a&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new ui(t.x-o.x,t.y-o.y,t.width,t.height);PAe(e.viewChildren||[],function(c){cyt(c,l,n,r,i+1)})}}function uyt(e){return e.get(ghr)?e.get(mhr):0}function Ahr(e){e.registerSeriesModel(Vpr),e.registerChartView(thr),e.registerVisual(chr),e.registerLayout(vhr),Hpr(e)}function Ohr(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getGraph(),o=i.data,a=r.mapArray(r.getName);o.filterSelf(function(s){var l=o.getItemModel(s),c=l.getShallow("category");if(c!=null){yo(c)&&(c=a[c]);for(var u=0;u<t.length;u++)if(!t[u].isSelected(c))return!1}return!0})})}function zhr(e){var t={};e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getData(),o={};r.each(function(a){var s=r.getName(a);o["ec-"+s]=a;var l=r.getItemModel(a),c=l.getModel("itemStyle").getItemStyle();c.fill||(c.fill=n.getColorFromPalette(s,t)),r.setItemVisual(a,"style",c);for(var u=["symbol","symbolSize","symbolKeepAspect"],d=0;d<u.length;d++){var p=l.getShallow(u[d],!0);p!=null&&r.setItemVisual(a,u[d],p)}}),r.count()&&i.each(function(a){var s=i.getItemModel(a),l=s.getShallow("category");if(l!=null){An(l)&&(l=o["ec-"+l]);var c=r.getItemVisual(l,"style"),u=i.ensureUniqueItemVisual(a,"style");Nt(u,c);for(var d=["symbol","symbolSize","symbolKeepAspect"],p=0;p<d.length;p++)i.setItemVisual(a,d[p],r.getItemVisual(l,d[p]))}})})}function FV(e){return e instanceof Array||(e=[e,e]),e}function Thr(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),i=FV(t.get("edgeSymbol")),o=FV(t.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("style",t.getModel("lineStyle").getLineStyle()),r.each(function(a){var s=r.getItemModel(a),l=n.getEdgeByIndex(a),c=FV(s.getShallow("symbol",!0)),u=FV(s.getShallow("symbolSize",!0)),d=s.getModel("lineStyle").getLineStyle(),p=r.ensureUniqueItemVisual(a,"style");switch(Nt(p,d),p.stroke){case"source":{var h=l.node1.getVisual("style");p.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");p.stroke=h&&h.fill;break}}c[0]&&l.setVisual("fromSymbol",c[0]),c[1]&&l.setVisual("toSymbol",c[1]),u[0]&&l.setVisual("fromSymbolSize",u[0]),u[1]&&l.setVisual("toSymbolSize",u[1])})})}var zve="-->",HJ=function(e){return e.get("autoCurveness")||null},dyt=function(e,t){var n=HJ(e),r=20,i=[];if(yo(n))r=n;else if(Ht(n)){e.__curvenessList=n;return}t>r&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=i},Dq=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(zve)},pyt=function(e){var t=e.split(zve);return[t[0],t[2],t[1]].join(zve)},Ehr=function(e,t){var n=Dq(e.node1,e.node2,t);return t.__edgeMap[n]},Rhr=function(e,t){var n=Tve(Dq(e.node1,e.node2,t),t),r=Tve(Dq(e.node2,e.node1,t),t);return n+r},Tve=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function Ihr(e){HJ(e)&&(e.__curvenessList=[],e.__edgeMap={},dyt(e))}function Phr(e,t,n,r){if(HJ(n)){var i=Dq(e,t,n),o=n.__edgeMap,a=o[pyt(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function DAe(e,t,n,r){var i=HJ(t),o=Ht(i);if(!i)return null;var a=Ehr(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var c=Rhr(e,t);dyt(t,c),e.lineStyle=e.lineStyle||{};var u=Dq(e.node1,e.node2,t),d=t.__curvenessList,p=o||c%2?0:1;if(a.isForward)return d[p+s];var h=pyt(u),g=Tve(h,t),m=d[s+g+p];return r?o?i&&i[0]===0?(g+p)%2?m:-m:((g%2?0:1)+p)%2?m:-m:(g+p)%2?m:-m:d[s+g+p]}function hyt(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var n=e.getGraph();n.eachNode(function(r){var i=r.getModel();r.setLayout([+i.get("x"),+i.get("y")])}),kAe(n,e)}}function kAe(e,t){e.eachEdge(function(n,r){var i=hm(n.getModel().get(["lineStyle","curveness"]),-DAe(n,t,r,!0),0),o=yb(n.node1.getLayout()),a=yb(n.node2.getLayout()),s=[o,a];+i&&s.push([(o[0]+a[0])/2-(o[1]-a[1])*i,(o[1]+a[1])/2-(a[0]-o[0])*i]),n.setLayout(s)})}function Dhr(e,t){e.eachSeriesByType("graph",function(n){var r=n.get("layout"),i=n.coordinateSystem;if(i&&i.type!=="view"){var o=n.getData(),a=[];ye(i.dimensions,function(p){a=a.concat(o.mapDimensionsAll(p))});for(var s=0;s<o.count();s++){for(var l=[],c=!1,u=0;u<a.length;u++){var d=o.get(a[u],s);isNaN(d)||(c=!0),l.push(d)}c?o.setItemLayout(s,i.dataToPoint(l)):o.setItemLayout(s,[NaN,NaN])}kAe(o.graph,n)}else(!r||r==="none")&&hyt(n)})}function yN(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,i=t.getZoom(),o=(i-1)*n+1;return o/r}function MN(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var bBe=Math.PI,Ose=[];function LAe(e,t,n,r){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var o=i.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,c=o.height/2+o.y,u=Math.min(o.width,o.height)/2,d=a.count();if(a.setLayout({cx:l,cy:c}),!!d){if(n){var p=i.pointToData(r),h=p[0],g=p[1],m=[h-l,g-c];j3(m,m),wF(m,m,u),n.setLayout([l+m[0],c+m[1]],!0);var b=e.get(["circular","rotateLabel"]);fyt(n,b,l,c)}khr[t](e,s,a,u,l,c,d),s.eachEdge(function(y,M){var C=hm(y.getModel().get(["lineStyle","curveness"]),DAe(y,e,M),0),x=yb(y.node1.getLayout()),w=yb(y.node2.getLayout()),S,A=(x[0]+w[0])/2,z=(x[1]+w[1])/2;+C&&(C*=3,S=[l*C+A*(1-C),c*C+z*(1-C)]),y.setLayout([x,w,S])})}}}var khr={value:function(e,t,n,r,i,o,a){var s=0,l=n.getSum("value"),c=Math.PI*2/(l||a);t.eachNode(function(u){var d=u.getValue("value"),p=c*(l?d:1)/2;s+=p,u.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=p})},symbolSize:function(e,t,n,r,i,o,a){var s=0;Ose.length=a;var l=yN(e);t.eachNode(function(d){var p=MN(d);isNaN(p)&&(p=2),p<0&&(p=0),p*=l;var h=Math.asin(p/2/r);isNaN(h)&&(h=bBe/2),Ose[d.dataIndex]=h,s+=h*2});var c=(2*bBe-s)/a/2,u=0;t.eachNode(function(d){var p=c+Ose[d.dataIndex];u+=p,(!d.getLayout()||!d.getLayout().fixed)&&d.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+o]),u+=p})}};function fyt(e,t,n,r){var i=e.getGraphicEl();if(i){var o=e.getModel(),a=o.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),c=Math.atan2(l[1]-r,l[0]-n);c<0&&(c=Math.PI*2+c);var u=l[0]<n;u&&(c=c-Math.PI);var d=u?"left":"right";s.setTextConfig({rotation:-c,position:d,origin:"center"});var p=s.ensureState("emphasis");Nt(p.textConfig||(p.textConfig={}),{position:d})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function Lhr(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&LAe(t,"symbolSize")})}var QE=lU;function _hr(e,t,n){for(var r=e,i=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],c=n.gravity==null?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||(d.p=_w(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=yb(d.p),d.edges=null}var p=n.friction==null?.6:n.friction,h=p,g,m;return{warmUp:function(){h=p*.8},setFixed:function(b){r[b].fixed=!0},setUnfixed:function(b){r[b].fixed=!1},beforeStep:function(b){g=b},afterStep:function(b){m=b},step:function(b){g&&g(r,i);for(var y=[],M=r.length,C=0;C<i.length;C++){var x=i[C];if(!x.ignoreForceLayout){var w=x.n1,S=x.n2;dx(y,S.p,w.p);var A=cq(y)-x.d,z=S.w/(w.w+S.w);isNaN(z)&&(z=0),j3(y,y),!w.fixed&&QE(w.p,w.p,y,z*A*h),!S.fixed&&QE(S.p,S.p,y,-(1-z)*A*h)}}for(var C=0;C<M;C++){var O=r[C];O.fixed||(dx(y,l,O.p),QE(O.p,O.p,y,c*h))}for(var C=0;C<M;C++)for(var w=r[C],T=C+1;T<M;T++){var S=r[T];dx(y,S.p,w.p);var A=cq(y);A===0&&(Cgt(y,Math.random()-.5,Math.random()-.5),A=1);var R=(w.rep+S.rep)/A/A;!w.fixed&&QE(w.pp,w.pp,y,R),!S.fixed&&QE(S.pp,S.pp,y,-R)}for(var P=[],C=0;C<M;C++){var O=r[C];O.fixed||(dx(P,O.p,O.pp),QE(O.p,O.p,P,h),i0(O.pp,O.p))}h=h*.992;var F=h<.01;m&&m(r,i,F),b&&b(F)}}}function Nhr(e){e.eachSeriesByType("graph",function(t){var n=t.coordinateSystem;if(!(n&&n.type!=="view"))if(t.get("layout")==="force"){var r=t.preservedPoints||{},i=t.getGraph(),o=i.data,a=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?o.each(function(C){var x=o.getId(C);o.setItemLayout(C,r[x]||[NaN,NaN])}):!l||l==="none"?hyt(t):l==="circular"&&LAe(t,"value");var c=o.getDataExtent("value"),u=a.getDataExtent("value"),d=s.get("repulsion"),p=s.get("edgeLength"),h=Ht(d)?d:[d,d],g=Ht(p)?p:[p,p];g=[g[1],g[0]];var m=o.mapArray("value",function(C,x){var w=o.getItemLayout(x),S=Ko(C,c,h);return isNaN(S)&&(S=(h[0]+h[1])/2),{w:S,rep:S,fixed:o.getItemModel(x).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),b=a.mapArray("value",function(C,x){var w=i.getEdgeByIndex(x),S=Ko(C,u,g);isNaN(S)&&(S=(g[0]+g[1])/2);var A=w.getModel(),z=hm(w.getModel().get(["lineStyle","curveness"]),-DAe(w,t,x,!0),0);return{n1:m[w.node1.dataIndex],n2:m[w.node2.dataIndex],d:S,curveness:z,ignoreForceLayout:A.get("ignoreForceLayout")}}),y=n.getBoundingRect(),M=_hr(m,b,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});M.beforeStep(function(C,x){for(var w=0,S=C.length;w<S;w++)C[w].fixed&&i0(C[w].p,i.getNodeByIndex(w).getLayout())}),M.afterStep(function(C,x,w){for(var S=0,A=C.length;S<A;S++)C[S].fixed||i.getNodeByIndex(S).setLayout(C[S].p),r[o.getId(S)]=C[S].p;for(var S=0,A=x.length;S<A;S++){var z=x[S],O=i.getEdgeByIndex(S),T=z.n1.p,R=z.n2.p,P=O.getLayout();P=P?P.slice():[],P[0]=P[0]||[],P[1]=P[1]||[],i0(P[0],T),i0(P[1],R),+z.curveness&&(P[2]=[(T[0]+R[0])/2-(T[1]-R[1])*z.curveness,(T[1]+R[1])/2-(R[0]-T[0])*z.curveness]),O.setLayout(P)}}),t.forceLayout=M,t.preservedPoints=r,M.step()}else t.forceLayout=null})}function Fhr(e,t,n){var r=Nt(e.getBoxLayoutParams(),{aspect:n});return Pc(r,{width:t.getWidth(),height:t.getHeight()})}function Whr(e,t){var n=[];return e.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var o=r.getData(),a=o.mapArray(function(b){var y=o.getItemModel(b);return[+y.get("x"),+y.get("y")]}),s=[],l=[];vJ(a,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var c=(l[0]-s[0])/(l[1]-s[1]),u=Fhr(r,t,c);isNaN(c)&&(s=[u.x,u.y],l=[u.x+u.width,u.y+u.height]);var d=l[0]-s[0],p=l[1]-s[1],h=u.width,g=u.height,m=r.coordinateSystem=new rj;m.zoomLimit=r.get("scaleLimit"),m.setBoundingRect(s[0],s[1],d,p),m.setViewRect(u.x,u.y,h,g),m.setCenter(r.get("center"),t),m.setZoom(r.get("zoom")),n.push(m)}}),n}var yBe=Jc.prototype,zse=rk.prototype,gyt=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})();(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(gyt);function Tse(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var qhr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-line",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gyt},t.prototype.buildPath=function(n,r){Tse(r)?yBe.buildPath.call(this,n,r):zse.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return Tse(this.shape)?yBe.pointAt.call(this,n):zse.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,i=Tse(r)?[r.x2-r.x1,r.y2-r.y1]:zse.tangentAt.call(this,n);return j3(i,i)},t})(Di),Ese=["fromSymbol","toSymbol"];function MBe(e){return"_"+e+"Type"}function CBe(e,t,n){var r=t.getItemVisual(n,e);if(!r||r==="none")return r;var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=fk(i),c=U3(a||0,l);return r+l+c+(o||"")+(s||"")}function xBe(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r==="none")){var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=fk(i),c=U3(a||0,l),u=sc(r,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=e,u}}function Bhr(e){var t=new qhr({name:"line",subPixelOptimize:!0});return Eve(t.shape,e),t}function Eve(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var _Ae=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;return o._createLine(n,r,i),o}return t.prototype._createLine=function(n,r,i){var o=n.hostModel,a=n.getItemLayout(r),s=Bhr(a);s.shape.percent=0,ys(s,{shape:{percent:1}},o,r),this.add(s),ye(Ese,function(l){var c=xBe(l,n,r);this.add(c),this[MBe(l)]=CBe(l,n,r)},this),this._updateCommonStl(n,r,i)},t.prototype.updateData=function(n,r,i){var o=n.hostModel,a=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};Eve(l.shape,s),Ao(a,l,o,r),ye(Ese,function(c){var u=CBe(c,n,r),d=MBe(c);if(this[d]!==u){this.remove(this.childOfName(c));var p=xBe(c,n,r);this.add(p)}this[d]=u},this),this._updateCommonStl(n,r,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(n,r,i){var o=n.hostModel,a=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,c=i&&i.selectLineStyle,u=i&&i.labelStatesModels,d=i&&i.emphasisDisabled,p=i&&i.focus,h=i&&i.blurScope;if(!i||n.hasItemOption){var g=n.getItemModel(r),m=g.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),c=g.getModel(["select","lineStyle"]).getLineStyle(),d=m.get("disabled"),p=m.get("focus"),h=m.get("blurScope"),u=Ru(g)}var b=n.getItemVisual(r,"style"),y=b.stroke;a.useStyle(b),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=c,ye(Ese,function(S){var A=this.childOfName(S);if(A){A.setColor(y),A.style.opacity=b.opacity;for(var z=0;z<f1.length;z++){var O=f1[z],T=a.getState(O);if(T){var R=T.style||{},P=A.ensureState(O),F=P.style||(P.style={});R.stroke!=null&&(F[A.__isEmptyBrush?"stroke":"fill"]=R.stroke),R.opacity!=null&&(F.opacity=R.opacity)}}A.markRedraw()}},this);var M=o.getRawValue(r);zd(this,u,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(S,A){return o.getFormattedLabel(S,A,n.dataType)}},inheritColor:y||"#000",defaultOpacity:b.opacity,defaultText:(M==null?n.getName(r):isFinite(M)?wl(M):M)+""});var C=this.getTextContent();if(C){var x=u.normal;C.__align=C.style.align,C.__verticalAlign=C.style.verticalAlign,C.__position=x.get("position")||"middle";var w=x.get("distance");Ht(w)||(w=[w,w]),C.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),sl(this,p,h,d)},t.prototype.highlight=function(){rM(this)},t.prototype.downplay=function(){iM(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");Eve(r.shape,n),r.dirty()},t.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),i=n.childOfName("toSymbol"),o=n.getTextContent();if(!r&&!i&&(!o||o.ignore))return;for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var c=l.shape.percent,u=l.pointAt(0),d=l.pointAt(c),p=dx([],d,u);j3(p,p);function h(T,R){var P=T.__specifiedRotation;if(P==null){var F=l.tangentAt(R);T.attr("rotation",(R===1?-1:1)*Math.PI/2-Math.atan2(F[1],F[0]))}else T.attr("rotation",P)}if(r&&(r.setPosition(u),h(r,0),r.scaleX=r.scaleY=a*c,r.markRedraw()),i&&(i.setPosition(d),h(i,1),i.scaleX=i.scaleY=a*c,i.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var g=void 0,m=void 0,b=o.__labelDistance,y=b[0]*a,M=b[1]*a,C=c/2,x=l.tangentAt(C),w=[x[1],-x[0]],S=l.pointAt(C);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var A=x[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var z=-Math.atan2(x[1],x[0]);d[0]<u[0]&&(z=Math.PI+z),o.rotation=z}var O=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":O=-M,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":O=M,m="top";break;default:O=0,m="middle"}switch(o.__position){case"end":o.x=p[0]*y+d[0],o.y=p[1]*M+d[1],g=p[0]>.8?"left":p[0]<-.8?"right":"center",m=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":o.x=-p[0]*y+u[0],o.y=-p[1]*M+u[1],g=p[0]>.8?"right":p[0]<-.8?"left":"center",m=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*A+u[0],o.y=u[1]+O,g=x[0]<0?"right":"left",o.originX=-y*A,o.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=S[0],o.y=S[1]+O,g="center",o.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*A+d[0],o.y=d[1]+O,g=x[0]>=0?"right":"left",o.originX=y*A,o.originY=-O;break}o.scaleX=o.scaleY=a,o.setStyle({verticalAlign:o.__verticalAlign||m,align:o.__align||g})}},t})(Ir),NAe=(function(){function e(t){this.group=new Ir,this._LineCtor=t||_Ae}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,i=r.group,o=r._lineData;r._lineData=t,o||i.removeAll();var a=wBe(t);t.diff(o).add(function(s){n._doAdd(t,s,a)}).update(function(s,l){n._doUpdate(o,t,l,s,a)}).remove(function(s){i.remove(o.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wBe(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!jhr(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=n.getItemLayout(i);if(Rse(o)){var a=new this._LineCtor(n,i,this._seriesScope);a.traverse(r),this.group.add(a),n.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Fw(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var i=t.getItemLayout(n);if(Rse(i)){var o=new this._LineCtor(t,n,r);t.setItemGraphicEl(n,o),this.group.add(o)}},e.prototype._doUpdate=function(t,n,r,i,o){var a=t.getItemGraphicEl(r);if(!Rse(n.getItemLayout(i))){this.group.remove(a);return}a?a.updateData(n,i,o):a=new this._LineCtor(n,i,o),n.setItemGraphicEl(i,a),this.group.add(a)},e})();function jhr(e){return e.animators&&e.animators.length>0}function wBe(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Ru(t)}}function SBe(e){return isNaN(e[0])||isNaN(e[1])}function Rse(e){return e&&!SBe(e[0])&&!SBe(e[1])}var Ise=[],Pse=[],Dse=[],ZE=Vu,kse=Dx,ABe=Math.abs;function OBe(e,t,n){for(var r=e[0],i=e[1],o=e[2],a=1/0,s,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Ise[0]=ZE(r[0],i[0],o[0],u),Ise[1]=ZE(r[1],i[1],o[1],u);var d=ABe(kse(Ise,t)-l);d<a&&(a=d,s=u)}for(var p=0;p<32;p++){var h=s+c;Pse[0]=ZE(r[0],i[0],o[0],s),Pse[1]=ZE(r[1],i[1],o[1],s),Dse[0]=ZE(r[0],i[0],o[0],h),Dse[1]=ZE(r[1],i[1],o[1],h);var d=kse(Pse,t)-l;if(ABe(d)<.01)break;var g=kse(Dse,t)-l;c/=2,d<0?g>=0?s=s+c:s=s-c:g>=0?s=s-c:s=s+c}return s}function Lse(e,t){var n=[],r=uq,i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge(function(s,l){var c=s.getLayout(),u=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");c.__original||(c.__original=[yb(c[0]),yb(c[1])],c[2]&&c.__original.push(yb(c[2])));var p=c.__original;if(c[2]!=null){if(i0(i[0],p[0]),i0(i[1],p[2]),i0(i[2],p[1]),u&&u!=="none"){var h=MN(s.node1),g=OBe(i,p[0],h*t);r(i[0][0],i[1][0],i[2][0],g,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],g,n),i[0][1]=n[3],i[1][1]=n[4]}if(d&&d!=="none"){var h=MN(s.node2),g=OBe(i,p[1],h*t);r(i[0][0],i[1][0],i[2][0],g,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],g,n),i[1][1]=n[1],i[2][1]=n[2]}i0(c[0],i[0]),i0(c[1],i[2]),i0(c[2],i[1])}else{if(i0(o[0],p[0]),i0(o[1],p[1]),dx(a,o[1],o[0]),j3(a,a),u&&u!=="none"){var h=MN(s.node1);lU(o[0],o[0],a,h*t)}if(d&&d!=="none"){var h=MN(s.node2);lU(o[1],o[1],a,-h*t)}i0(c[0],o[0]),i0(c[1],o[1])}})}function zBe(e){return e.type==="view"}var Hhr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var i=new QB,o=new NAe,a=this.group;this._controller=new nj(r.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(o.group),this._symbolDraw=i,this._lineDraw=o,this._firstRender=!0},t.prototype.render=function(n,r,i){var o=this,a=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,c=this.group;if(zBe(a)){var u={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?c.attr(u):Ao(c,u,n)}Lse(n.getGraph(),yN(n));var d=n.getData();s.updateData(d);var p=n.getEdgeData();l.updateData(p),this._updateNodeAndLinkScale(),this._updateController(n,r,i),clearTimeout(this._layoutTimeout);var h=n.forceLayout,g=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,g);var m=n.get("layout");d.graph.eachNode(function(C){var x=C.dataIndex,w=C.getGraphicEl(),S=C.getModel();if(w){w.off("drag").off("dragend");var A=S.get("draggable");A&&w.on("drag",function(O){switch(m){case"force":h.warmUp(),!o._layouting&&o._startForceLayoutIteration(h,g),h.setFixed(x),d.setItemLayout(x,[w.x,w.y]);break;case"circular":d.setItemLayout(x,[w.x,w.y]),C.setLayout({fixed:!0},!0),LAe(n,"symbolSize",C,[O.offsetX,O.offsetY]),o.updateLayout(n);break;case"none":default:d.setItemLayout(x,[w.x,w.y]),kAe(n.getGraph(),n),o.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(x)}),w.setDraggable(A,!!S.get("cursor"));var z=S.get(["emphasis","focus"]);z==="adjacency"&&(_r(w).focus=C.getAdjacentDataIndices())}}),d.graph.eachEdge(function(C){var x=C.getGraphicEl(),w=C.getModel().get(["emphasis","focus"]);x&&w==="adjacency"&&(_r(x).focus={edge:[C.dataIndex],node:[C.node1.dataIndex,C.node2.dataIndex]})});var b=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=d.getLayout("cx"),M=d.getLayout("cy");d.graph.eachNode(function(C){fyt(C,b,y,M)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r){var i=this;(function o(){n.step(function(a){i.updateLayout(i._model),(i._layouting=!a)&&(r?i._layoutTimeout=setTimeout(o,16):o())})})()},t.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(c,u,d){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(u,d)&&!qJ(c,i,n)}),!zBe(n.coordinateSystem)){a.disable();return}a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(c){AAe(s,c.dx,c.dy),i.dispatchAction({seriesId:n.id,type:"graphRoam",dx:c.dx,dy:c.dy})}).on("zoom",function(c){OAe(s,c.scale,c.originX,c.originY),i.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:c.scale,originX:c.originX,originY:c.originY}),o._updateNodeAndLinkScale(),Lse(n.getGraph(),yN(n)),o._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),i=yN(n);r.eachItemGraphicEl(function(o,a){o&&o.setSymbolScale(i)})},t.prototype.updateLayout=function(n){Lse(n.getGraph(),yN(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t})(pa);function JE(e){return"_EC_"+e}var Vhr=(function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[JE(t)]){var i=new WA(t,n);return i.hostGraph=this,this.nodes.push(i),r[JE(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[JE(t)]},e.prototype.addEdge=function(t,n,r){var i=this._nodesMap,o=this._edgesMap;if(yo(t)&&(t=this.nodes[t]),yo(n)&&(n=this.nodes[n]),t instanceof WA||(t=i[JE(t)]),n instanceof WA||(n=i[JE(n)]),!(!t||!n)){var a=t.id+"-"+n.id,s=new myt(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),o[a]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof WA&&(t=t.id),n instanceof WA&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&t.call(n,r[o],o)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&t.call(n,r[o],o)},e.prototype.breadthFirstTraverse=function(t,n,r,i){if(n instanceof WA||(n=this._nodesMap[JE(n)]),!!n){for(var o=r==="out"?"outEdges":r==="in"?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(i,n,null))for(var s=[n];s.length;)for(var l=s.shift(),c=l[o],a=0;a<c.length;a++){var u=c[a],d=u.node1===l?u.node2:u.node1;if(!d.__visited){if(t.call(i,d,l))return;s.push(d),d.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,n=this.edgeData,r=this.nodes,i=this.edges,o=0,a=r.length;o<a;o++)r[o].dataIndex=-1;for(var o=0,a=t.count();o<a;o++)r[t.getRawIndex(o)].dataIndex=o;n.filterSelf(function(s){var l=i[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var o=0,a=i.length;o<a;o++)i[o].dataIndex=-1;for(var o=0,a=n.count();o<a;o++)i[n.getRawIndex(o)].dataIndex=o},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var o=r[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e})(),WA=(function(){function e(t,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=n??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(t.edge.push(r.dataIndex),t.node.push(r.node1.dataIndex,r.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=Kn(),n=Kn(),r=0;r<this.edges.length;r++){var i=this.edges[r];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],a=[i.node2],s=0;s<o.length;){var l=o[s];s++,n.set(l.dataIndex,!0);for(var c=0;c<l.inEdges.length;c++)t.set(l.inEdges[c].dataIndex,!0),o.push(l.inEdges[c].node1)}for(s=0;s<a.length;){var u=a[s];s++,n.set(u.dataIndex,!0);for(var c=0;c<u.outEdges.length;c++)t.set(u.outEdges[c].dataIndex,!0),a.push(u.outEdges[c].node2)}}}return{edge:t.keys(),node:n.keys()}},e})(),myt=(function(){function e(t,n,r){this.dataIndex=-1,this.node1=t,this.node2=n,this.dataIndex=r??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=Kn(),n=Kn();t.set(this.dataIndex,!0);for(var r=[this.node1],i=[this.node2],o=0;o<r.length;){var a=r[o];o++,n.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)t.set(a.inEdges[s].dataIndex,!0),r.push(a.inEdges[s].node1)}for(o=0;o<i.length;){var l=i[o];o++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:n.keys()}},e})();function vyt(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Hl(WA,vyt("hostGraph","data"));Hl(myt,vyt("hostGraph","edgeData"));function byt(e,t,n,r,i){for(var o=new Vhr(r),a=0;a<e.length;a++)o.addNode(xu(e[a].id,e[a].name,a),a);for(var s=[],l=[],c=0,a=0;a<t.length;a++){var u=t[a],d=u.source,p=u.target;o.addEdge(d,p,c)&&(l.push(u),s.push(xu(Zc(u.id,null),d+" > "+p)),c++)}var h=n.get("coordinateSystem"),g;if(h==="cartesian2d"||h==="polar")g=r2(e,n);else{var m=dk.get(h),b=m?m.dimensions||[]:[];hi(b,"value")<0&&b.concat(["value"]);var y=gk(e,{coordDimensions:b,encodeDefine:n.getEncode()}).dimensions;g=new y0(y,n),g.initData(e)}var M=new y0(["value"],n);return M.initData(l,s),i&&i(g,M),J2t({mainData:g,struct:o,structAttr:"graph",datas:{node:g,edge:M},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Ghr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new tj(i,i),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Xz(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],o=n.data||n.nodes||[],a=this;if(o&&i){Ihr(this);var s=byt(o,i,this,!0,l);return ye(s.edges,function(c){Phr(c.node1,c.node2,this,c.dataIndex)},this),s.data}function l(c,u){c.wrapMethod("getItemModel",function(g){var m=a._categoriesModels,b=g.getShallow("category"),y=m[b];return y&&(y.parentModel=g.parentModel,g.parentModel=y),g});var d=No.prototype.getModel;function p(g,m){var b=d.call(this,g,m);return b.resolveParentPath=h,b}u.wrapMethod("getItemModel",function(g){return g.resolveParentPath=h,g.getModel=p,g});function h(g){if(g&&(g[0]==="label"||g[1]==="label")){var m=g.slice();return g[0]==="label"?m[0]="edgeLabel":g[1]==="label"&&(m[1]="edgeLabel"),m}return g}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,i){if(i==="edge"){var o=this.getData(),a=this.getDataParams(n,i),s=o.graph.getEdgeByIndex(n),l=o.getName(s.node1.dataIndex),c=o.getName(s.node2.dataIndex),u=[];return l!=null&&u.push(l),c!=null&&u.push(c),Iu("nameValue",{name:u.join(" > "),value:a.value,noValue:a.value==null})}var d=Wvt({series:this,dataIndex:n,multipleSeries:r});return d},t.prototype._updateCategoriesData=function(){var n=Vt(this.option.categories||[],function(i){return i.value!=null?i:Nt({value:0},i)}),r=new y0(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(Ia),$hr={type:"graphRoam",event:"graphRoam",update:"none"};function Uhr(e){e.registerChartView(Hhr),e.registerSeriesModel(Ghr),e.registerProcessor(Ohr),e.registerVisual(zhr),e.registerVisual(Thr),e.registerLayout(Dhr),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Lhr),e.registerLayout(Nhr),e.registerCoordinateSystem("graphView",{dimensions:rj.dimensions,create:Whr}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Nl),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Nl),e.registerAction($hr,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(i){var o=i.coordinateSystem,a=TAe(o,t,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}var Xhr=(function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e})(),Yhr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new Xhr},t.prototype.buildPath=function(n,r){var i=Math.cos,o=Math.sin,a=r.r,s=r.width,l=r.angle,c=r.x-i(l)*s*(s>=a/3?1:2),u=r.y-o(l)*s*(s>=a/3?1:2);l=r.angle-Math.PI/2,n.moveTo(c,u),n.lineTo(r.x+i(l)*s,r.y+o(l)*s),n.lineTo(r.x+i(r.angle)*a,r.y+o(r.angle)*a),n.lineTo(r.x-i(l)*s,r.y-o(l)*s),n.lineTo(c,u)},t})(Di);function Khr(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=vn(n[0],t.getWidth()),s=vn(n[1],t.getHeight()),l=vn(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function WV(e,t){var n=e==null?"":e+"";return t&&(An(t)?n=t.replace("{value}",n):fr(t)&&(n=t(e))),n}var Qhr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){this.group.removeAll();var o=n.get(["axisLine","lineStyle","color"]),a=Khr(n,i);this._renderMain(n,r,i,o,a),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,i,o,a){var s=this.group,l=n.get("clockwise"),c=-n.get("startAngle")/180*Math.PI,u=-n.get("endAngle")/180*Math.PI,d=n.getModel("axisLine"),p=d.get("roundCap"),h=p?qU:A0,g=d.get("show"),m=d.getModel("lineStyle"),b=m.get("width"),y=[c,u];ySe(y,!l),c=y[0],u=y[1];for(var M=u-c,C=c,x=[],w=0;g&&w<o.length;w++){var S=Math.min(Math.max(o[w][0],0),1);u=c+M*S;var A=new h({shape:{startAngle:C,endAngle:u,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-b,r:a.r},silent:!0});A.setStyle({fill:o[w][1]}),A.setStyle(m.getLineStyle(["color","width"])),x.push(A),C=u}x.reverse(),ye(x,function(O){return s.add(O)});var z=function(O){if(O<=0)return o[0][1];var T;for(T=0;T<o.length;T++)if(o[T][0]>=O&&(T===0?0:o[T-1][0])<O)return o[T][1];return o[T-1][1]};this._renderTicks(n,r,i,z,a,c,u,l,b),this._renderTitleAndDetail(n,r,i,z,a),this._renderAnchor(n,a),this._renderPointer(n,r,i,z,a,c,u,l,b)},t.prototype._renderTicks=function(n,r,i,o,a,s,l,c,u){for(var d=this.group,p=a.cx,h=a.cy,g=a.r,m=+n.get("min"),b=+n.get("max"),y=n.getModel("splitLine"),M=n.getModel("axisTick"),C=n.getModel("axisLabel"),x=n.get("splitNumber"),w=M.get("splitNumber"),S=vn(y.get("length"),g),A=vn(M.get("length"),g),z=s,O=(l-s)/x,T=O/w,R=y.getModel("lineStyle").getLineStyle(),P=M.getModel("lineStyle").getLineStyle(),F=y.get("distance"),N,L,W=0;W<=x;W++){if(N=Math.cos(z),L=Math.sin(z),y.get("show")){var j=F?F+u:u,V=new Jc({shape:{x1:N*(g-j)+p,y1:L*(g-j)+h,x2:N*(g-S-j)+p,y2:L*(g-S-j)+h},style:R,silent:!0});R.stroke==="auto"&&V.setStyle({stroke:o(W/x)}),d.add(V)}if(C.get("show")){var j=C.get("distance")+F,G=WV(wl(W/x*(b-m)+m),C.get("formatter")),q=o(W/x),$=N*(g-S-j)+p,U=L*(g-S-j)+h,X=C.get("rotate"),Q=0;X==="radial"?(Q=-z+2*Math.PI,Q>Math.PI/2&&(Q+=Math.PI)):X==="tangential"?Q=-z-Math.PI/2:yo(X)&&(Q=X*Math.PI/180),Q===0?d.add(new oo({style:Za(C,{text:G,x:$,y:U,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:N<-.4?"left":N>.4?"right":"center"},{inheritColor:q}),silent:!0})):d.add(new oo({style:Za(C,{text:G,x:$,y:U,verticalAlign:"middle",align:"center"},{inheritColor:q}),silent:!0,originX:$,originY:U,rotation:Q}))}if(M.get("show")&&W!==x){var j=M.get("distance");j=j?j+u:u;for(var re=0;re<=w;re++){N=Math.cos(z),L=Math.sin(z);var ee=new Jc({shape:{x1:N*(g-j)+p,y1:L*(g-j)+h,x2:N*(g-A-j)+p,y2:L*(g-A-j)+h},silent:!0,style:P});P.stroke==="auto"&&ee.setStyle({stroke:o((W+re/w)/x)}),d.add(ee),z+=T}z-=T}else z+=O}},t.prototype._renderPointer=function(n,r,i,o,a,s,l,c,u){var d=this.group,p=this._data,h=this._progressEls,g=[],m=n.get(["pointer","show"]),b=n.getModel("progress"),y=b.get("show"),M=n.getData(),C=M.mapDimension("value"),x=+n.get("min"),w=+n.get("max"),S=[x,w],A=[s,l];function z(T,R){var P=M.getItemModel(T),F=P.getModel("pointer"),N=vn(F.get("width"),a.r),L=vn(F.get("length"),a.r),W=n.get(["pointer","icon"]),j=F.get("offsetCenter"),V=vn(j[0],a.r),G=vn(j[1],a.r),q=F.get("keepAspect"),$;return W?$=sc(W,V-N/2,G-L,N,L,null,q):$=new Yhr({shape:{angle:-Math.PI/2,width:N,r:L,x:V,y:G}}),$.rotation=-(R+Math.PI/2),$.x=a.cx,$.y=a.cy,$}function O(T,R){var P=b.get("roundCap"),F=P?qU:A0,N=b.get("overlap"),L=N?b.get("width"):u/M.count(),W=N?a.r-L:a.r-(T+1)*L,j=N?a.r:a.r-T*L,V=new F({shape:{startAngle:s,endAngle:R,cx:a.cx,cy:a.cy,clockwise:c,r0:W,r:j}});return N&&(V.z2=Ko(M.get(C,T),[x,w],[100,0],!0)),V}(y||m)&&(M.diff(p).add(function(T){var R=M.get(C,T);if(m){var P=z(T,s);ys(P,{rotation:-((isNaN(+R)?A[0]:Ko(R,S,A,!0))+Math.PI/2)},n),d.add(P),M.setItemGraphicEl(T,P)}if(y){var F=O(T,s),N=b.get("clip");ys(F,{shape:{endAngle:Ko(R,S,A,N)}},n),d.add(F),Wme(n.seriesIndex,M.dataType,T,F),g[T]=F}}).update(function(T,R){var P=M.get(C,T);if(m){var F=p.getItemGraphicEl(R),N=F?F.rotation:s,L=z(T,N);L.rotation=N,Ao(L,{rotation:-((isNaN(+P)?A[0]:Ko(P,S,A,!0))+Math.PI/2)},n),d.add(L),M.setItemGraphicEl(T,L)}if(y){var W=h[R],j=W?W.shape.endAngle:s,V=O(T,j),G=b.get("clip");Ao(V,{shape:{endAngle:Ko(P,S,A,G)}},n),d.add(V),Wme(n.seriesIndex,M.dataType,T,V),g[T]=V}}).execute(),M.each(function(T){var R=M.getItemModel(T),P=R.getModel("emphasis"),F=P.get("focus"),N=P.get("blurScope"),L=P.get("disabled");if(m){var W=M.getItemGraphicEl(T),j=M.getItemVisual(T,"style"),V=j.fill;if(W instanceof Du){var G=W.style;W.useStyle(Nt({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},j))}else W.useStyle(j),W.type!=="pointer"&&W.setColor(V);W.setStyle(R.getModel(["pointer","itemStyle"]).getItemStyle()),W.style.fill==="auto"&&W.setStyle("fill",o(Ko(M.get(C,T),S,[0,1],!0))),W.z2EmphasisLift=0,Od(W,R),sl(W,F,N,L)}if(y){var q=g[T];q.useStyle(M.getItemVisual(T,"style")),q.setStyle(R.getModel(["progress","itemStyle"]).getItemStyle()),q.z2EmphasisLift=0,Od(q,R),sl(q,F,N,L)}}),this._progressEls=g)},t.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),o=i.get("show");if(o){var a=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),c=i.get("keepAspect"),u=sc(s,r.cx-a/2+vn(l[0],r.r),r.cy-a/2+vn(l[1],r.r),a,a,null,c);u.z2=i.get("showAbove")?1:0,u.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(n,r,i,o,a){var s=this,l=n.getData(),c=l.mapDimension("value"),u=+n.get("min"),d=+n.get("max"),p=new Ir,h=[],g=[],m=n.isAnimationEnabled(),b=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new oo({silent:!0}),g[y]=new oo({silent:!0})}).update(function(y,M){h[y]=s._titleEls[M],g[y]=s._detailEls[M]}).execute(),l.each(function(y){var M=l.getItemModel(y),C=l.get(c,y),x=new Ir,w=o(Ko(C,[u,d],[0,1],!0)),S=M.getModel("title");if(S.get("show")){var A=S.get("offsetCenter"),z=a.cx+vn(A[0],a.r),O=a.cy+vn(A[1],a.r),T=h[y];T.attr({z2:b?0:2,style:Za(S,{x:z,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),x.add(T)}var R=M.getModel("detail");if(R.get("show")){var P=R.get("offsetCenter"),F=a.cx+vn(P[0],a.r),N=a.cy+vn(P[1],a.r),L=vn(R.get("width"),a.r),W=vn(R.get("height"),a.r),j=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,T=g[y],V=R.get("formatter");T.attr({z2:b?0:2,style:Za(R,{x:F,y:N,text:WV(C,V),width:isNaN(L)?null:L,height:isNaN(W)?null:W,align:"center",verticalAlign:"middle"},{inheritColor:j})}),$mt(T,{normal:R},C,function(q){return WV(q,V)}),m&&Umt(T,y,l,n,{getFormattedLabel:function(q,$,U,X,Q,re){return WV(re?re.interpolatedValue:C,V)}}),x.add(T)}p.add(x)}),this.group.add(p),this._titleEls=h,this._detailEls=g},t.type="gauge",t})(pa),Zhr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return bk(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t})(Ia);function Jhr(e){e.registerChartView(Qhr),e.registerSeriesModel(Zhr)}var efr=["itemStyle","opacity"],tfr=(function(e){gt(t,e);function t(n,r){var i=e.call(this)||this,o=i,a=new R0,s=new oo;return o.setTextContent(s),i.setTextGuideLine(a),i.updateData(n,r,!0),i}return t.prototype.updateData=function(n,r,i){var o=this,a=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),c=s.getModel("emphasis"),u=s.get(efr);u=u??1,i||Om(o),o.useStyle(n.getItemVisual(r,"style")),o.style.lineJoin="round",i?(o.setShape({points:l.points}),o.style.opacity=0,ys(o,{style:{opacity:u}},a,r)):Ao(o,{style:{opacity:u},shape:{points:l.points}},a,r),Od(o,s),this._updateLabel(n,r),sl(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(n,r){var i=this,o=this.getTextGuideLine(),a=i.getTextContent(),s=n.hostModel,l=n.getItemModel(r),c=n.getItemLayout(r),u=c.label,d=n.getItemVisual(r,"style"),p=d.fill;zd(a,Ru(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:n.getName(r)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),i.setTextConfig({local:!0,inside:!!u.inside,insideStroke:p,outsideFill:p});var h=u.linePoints;o.setShape({points:h}),i.textGuideLineConfig={anchor:h?new ci(h[0][0],h[0][1]):null},Ao(a,{style:{x:u.x,y:u.y}},s,r),a.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),fAe(i,gAe(l),{stroke:p})},t})(O0),nfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this._data,s=this.group;o.diff(a).add(function(l){var c=new tfr(o,l);o.setItemGraphicEl(l,c),s.add(c)}).update(function(l,c){var u=a.getItemGraphicEl(c);u.updateData(o,l),s.add(u),o.setItemGraphicEl(l,u)}).remove(function(l){var c=a.getItemGraphicEl(l);bq(c,n,l)}).execute(),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t})(pa),rfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tj(Rn(this.getData,this),Rn(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return bk(this,{coordDimensions:["value"],encodeDefaulter:Zr(jSe,this)})},t.prototype._defaultLabelLine=function(n){Xz(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),i=e.prototype.getDataParams.call(this,n),o=r.mapDimension("value"),a=r.getSum(o);return i.percent=a?+(r.get(o,n)/a*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(Ia);function ifr(e,t){return Pc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ofr(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),i=[],o=t==="ascending",a=0,s=e.count();a<s;a++)i[a]=a;return fr(t)?i.sort(t):t!=="none"&&i.sort(function(l,c){return o?r[l]-r[c]:r[c]-r[l]}),i}function afr(e){var t=e.hostModel,n=t.get("orient");e.each(function(r){var i=e.getItemModel(r),o=i.getModel("label"),a=o.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(r),c=l.points,u=a==="inner"||a==="inside"||a==="center"||a==="insideLeft"||a==="insideRight",d,p,h,g;if(u)a==="insideLeft"?(p=(c[0][0]+c[3][0])/2+5,h=(c[0][1]+c[3][1])/2,d="left"):a==="insideRight"?(p=(c[1][0]+c[2][0])/2-5,h=(c[1][1]+c[2][1])/2,d="right"):(p=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,h=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,d="center"),g=[[p,h],[p,h]];else{var m=void 0,b=void 0,y=void 0,M=void 0,C=s.get("length");a==="left"?(m=(c[3][0]+c[0][0])/2,b=(c[3][1]+c[0][1])/2,y=m-C,p=y-5,d="right"):a==="right"?(m=(c[1][0]+c[2][0])/2,b=(c[1][1]+c[2][1])/2,y=m+C,p=y+5,d="left"):a==="top"?(m=(c[3][0]+c[0][0])/2,b=(c[3][1]+c[0][1])/2,M=b-C,h=M-5,d="center"):a==="bottom"?(m=(c[1][0]+c[2][0])/2,b=(c[1][1]+c[2][1])/2,M=b+C,h=M+5,d="center"):a==="rightTop"?(m=n==="horizontal"?c[3][0]:c[1][0],b=n==="horizontal"?c[3][1]:c[1][1],n==="horizontal"?(M=b-C,h=M-5,d="center"):(y=m+C,p=y+5,d="top")):a==="rightBottom"?(m=c[2][0],b=c[2][1],n==="horizontal"?(M=b+C,h=M+5,d="center"):(y=m+C,p=y+5,d="bottom")):a==="leftTop"?(m=c[0][0],b=n==="horizontal"?c[0][1]:c[1][1],n==="horizontal"?(M=b-C,h=M-5,d="center"):(y=m-C,p=y-5,d="right")):a==="leftBottom"?(m=n==="horizontal"?c[1][0]:c[3][0],b=n==="horizontal"?c[1][1]:c[2][1],n==="horizontal"?(M=b+C,h=M+5,d="center"):(y=m-C,p=y-5,d="right")):(m=(c[1][0]+c[2][0])/2,b=(c[1][1]+c[2][1])/2,n==="horizontal"?(M=b+C,h=M+5,d="center"):(y=m+C,p=y+5,d="left")),n==="horizontal"?(y=m,p=y):(M=b,h=M),g=[[m,b],[y,M]]}l.label={linePoints:g,x:p,y:h,verticalAlign:"middle",textAlign:d,inside:u}})}function sfr(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),i=r.mapDimension("value"),o=n.get("sort"),a=ifr(n,t),s=n.get("orient"),l=a.width,c=a.height,u=ofr(r,o),d=a.x,p=a.y,h=s==="horizontal"?[vn(n.get("minSize"),c),vn(n.get("maxSize"),c)]:[vn(n.get("minSize"),l),vn(n.get("maxSize"),l)],g=r.getDataExtent(i),m=n.get("min"),b=n.get("max");m==null&&(m=Math.min(g[0],0)),b==null&&(b=g[1]);var y=n.get("funnelAlign"),M=n.get("gap"),C=s==="horizontal"?l:c,x=(C-M*(r.count()-1))/r.count(),w=function(N,L){if(s==="horizontal"){var W=r.get(i,N)||0,j=Ko(W,[m,b],h,!0),V=void 0;switch(y){case"top":V=p;break;case"center":V=p+(c-j)/2;break;case"bottom":V=p+(c-j);break}return[[L,V],[L,V+j]]}var G=r.get(i,N)||0,q=Ko(G,[m,b],h,!0),$;switch(y){case"left":$=d;break;case"center":$=d+(l-q)/2;break;case"right":$=d+l-q;break}return[[$,L],[$+q,L]]};o==="ascending"&&(x=-x,M=-M,s==="horizontal"?d+=l:p+=c,u=u.reverse());for(var S=0;S<u.length;S++){var A=u[S],z=u[S+1],O=r.getItemModel(A);if(s==="horizontal"){var T=O.get(["itemStyle","width"]);T==null?T=x:(T=vn(T,l),o==="ascending"&&(T=-T));var R=w(A,d),P=w(z,d+T);d+=T+M,r.setItemLayout(A,{points:R.concat(P.slice().reverse())})}else{var F=O.get(["itemStyle","height"]);F==null?F=x:(F=vn(F,c),o==="ascending"&&(F=-F));var R=w(A,p),P=w(z,p+F);p+=F+M,r.setItemLayout(A,{points:R.concat(P.slice().reverse())})}}afr(r)})}function lfr(e){e.registerChartView(nfr),e.registerSeriesModel(rfr),e.registerLayout(sfr),e.registerProcessor(ej("funnel"))}var cfr=.3,ufr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Ir,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(n,r,i,o){this._progressiveEls=null;var a=this._dataGroup,s=n.getData(),l=this._data,c=n.coordinateSystem,u=c.dimensions,d=EBe(n);s.diff(l).add(p).update(h).remove(g).execute();function p(b){var y=TBe(s,a,b,u,c);_se(y,s,b,d)}function h(b,y){var M=l.getItemGraphicEl(y),C=yyt(s,b,u,c);s.setItemGraphicEl(b,M),Ao(M,{shape:{points:C}},n,b),Om(M),_se(M,s,b,d)}function g(b){var y=l.getItemGraphicEl(b);a.remove(y)}if(!this._initialized){this._initialized=!0;var m=dfr(c,n,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(m)}this._data=s},t.prototype.incrementalPrepareRender=function(n,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(n,r,i){for(var o=r.getData(),a=r.coordinateSystem,s=a.dimensions,l=EBe(r),c=this._progressiveEls=[],u=n.start;u<n.end;u++){var d=TBe(o,this._dataGroup,u,s,a);d.incremental=!0,_se(d,o,u,l),c.push(d)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})(pa);function dfr(e,t,n){var r=e.model,i=e.getRect(),o=new ao({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a=r.get("layout")==="horizontal"?"width":"height";return o.setShape(a,0),ys(o,{shape:{width:i.width,height:i.height}},t,n),o}function yyt(e,t,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);pfr(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function TBe(e,t,n,r,i){var o=yyt(e,n,r,i),a=new R0({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function EBe(e){var t=e.get("smooth",!0);return t===!0&&(t=cfr),t=Nb(t),PP(t)&&(t=0),{smooth:t}}function _se(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),o=i.getModel("emphasis");Od(e,i,"lineStyle"),sl(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function pfr(e,t){return t==="category"?e==null:e==null||isNaN(e)}var hfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.getInitialData=function(n,r){return r2(null,this,{useEncodeDefaulter:Rn(ffr,null,this)})},t.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,i=this.getData(),o=[];return r.eachActiveState(i,function(a,s){n===a&&o.push(i.getRawIndex(s))}),o},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t})(Ia);function ffr(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return ye(t.dimensions,function(r){var i=gfr(r);n[r]=i}),n}}function gfr(e){return+e.replace("dim","")}var mfr=["lineStyle","opacity"],vfr={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(i,o){n.eachActiveState(o,function(a,s){var l=r[a];if(a==="normal"&&o.hasItemOption){var c=o.getItemModel(s).get(mfr,!0);c!=null&&(l=c)}var u=o.ensureUniqueItemVisual(s,"style");u.opacity=l},i.start,i.end)}}}};function bfr(e){yfr(e),Mfr(e)}function yfr(e){if(!e.parallel){var t=!1;ye(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function Mfr(e){var t=Ea(e.parallelAxis);ye(t,function(n){if(xr(n)){var r=n.parallelIndex||0,i=Ea(e.parallel)[r];i&&i.parallelAxisDefault&&ei(n,i.parallelAxisDefault,!1)}})}var Cfr=5,xfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){this._model=n,this._api=i,this._handlers||(this._handlers={},ye(wfr,function(o,a){i.getZr().on(a,this._handlers[a]=Rn(o,this))},this)),hk(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){xq(this,"_throttledDispatchExpand"),ye(this._handlers,function(i,o){r.getZr().off(o,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},t.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(Nt({type:"parallelAxisExpand"},n))},t.type="parallel",t})(us),wfr={mousedown:function(e){Nse(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Nse(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>Cfr)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Nse(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Nse(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var Sfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&ei(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var i=n.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(n){ye(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],i=Lo(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);ye(i,function(o){n.push("dim"+o.get("dim")),r.push(o.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t})(Ri),Afr=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.type=o||"value",s.axisIndex=a,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(ng);function K3(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(i!=null&&(i=eR(i,[0,a])),o!=null&&(o=Math.max(o,i??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=eR(s,[0,a]),i=o=eR(s,[i,o]),r=0}t[0]=eR(t[0],n),t[1]=eR(t[1],n);var l=Fse(t,r);t[r]+=e;var c=i||0,u=n.slice();l.sign<0?u[0]+=c:u[1]-=c,t[r]=eR(t[r],u);var d;return d=Fse(t,r),i!=null&&(d.sign!==l.sign||d.span<i)&&(t[1-r]=t[r]+l.sign*i),d=Fse(t,r),o!=null&&d.span>o&&(t[1-r]=t[r]+d.sign*o),t}function Fse(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function eR(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Wse=ye,Myt=Math.min,Cyt=Math.max,RBe=Math.floor,Ofr=Math.ceil,IBe=wl,zfr=Math.PI,Tfr=(function(){function e(t,n,r){this.type="parallel",this._axesMap=Kn(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var i=t.dimensions,o=t.parallelAxisIndex;Wse(i,function(a,s){var l=o[s],c=n.getComponent("parallelAxis",l),u=this._axesMap.set(a,new Afr(a,YB(c),[0,0],c.get("type"),l)),d=u.type==="category";u.onBand=d&&c.get("boundaryGap"),u.inverse=c.get("inverse"),c.axis=u,u.model=c,u.coordinateSystem=c.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,i=n.layoutBase,o=n.pixelDimIndex,a=t[1-o],s=t[o];return a>=r&&a<=r+n.axisLength&&s>=i&&s<=i+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var i=r.getData();Wse(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(i,i.mapDimension(o)),Jz(a.scale,a.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=Pc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a=o==="horizontal"?0:1,s=n[i[a]],l=[0,s],c=this.dimensions.length,u=qV(t.get("axisExpandWidth"),l),d=qV(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,h=t.get("axisExpandWindow"),g;if(h)g=qV(h[1]-h[0],l),h[1]=h[0]+g;else{g=qV(u*(d-1),l);var m=t.get("axisExpandCenter")||RBe(c/2);h=[u*m-g/2],h[1]=h[0]+g}var b=(s-g)/(c-d);b<3&&(b=0);var y=[RBe(IBe(h[0]/u,1))+1,Ofr(IBe(h[1]/u,1))-1],M=b/u*h[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:b,axisExpandWindow:h,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:M}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;n.each(function(a){var s=[0,i.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),Wse(r,function(a,s){var l=(i.axisExpandable?Rfr:Efr)(s,i),c={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},u={horizontal:zfr/2,vertical:0},d=[c[o].x+t.x,c[o].y+t.y],p=u[o],h=gp();Nw(h,h,p),Sm(h,h,d),this._axesLayout[a]={position:d,rotation:p,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,i){r==null&&(r=0),i==null&&(i=t.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];ye(a,function(b){s.push(t.mapDimension(b)),l.push(o.get(b).model)});for(var c=this.hasAxisBrushed(),u=r;u<i;u++){var d=void 0;if(!c)d="normal";else{d="active";for(var p=t.getValues(s,u),h=0,g=a.length;h<g;h++){var m=l[h].getActiveState(p[h]);if(m==="inactive"){d="inactive";break}}}n(d,u)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,n=this._axesMap,r=!1,i=0,o=t.length;i<o;i++)n.get(t[i]).model.getActiveState()!=="normal"&&(r=!0);return r},e.prototype.axisCoordToPoint=function(t,n){var r=this._axesLayout[n];return mm([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return Or(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,i=n.axisExpandWindow.slice(),o=i[1]-i[0],a=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[r]-n.layoutBase-n.axisExpandWindow0Pos,l,c="slide",u=n.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),p=d[0]!=null;if(u)p&&u&&s<o*d[0]?(c="jump",l=s-o*d[2]):p&&u&&s>o*(1-d[0])?(c="jump",l=s-o*(1-d[2])):(l=s-o*d[1])>=0&&(l=s-o*(1-d[1]))<=0&&(l=0),l*=n.axisExpandWidth/u,l?K3(l,i,a,"all"):c="none";else{var h=i[1]-i[0],g=a[1]*s/h;i=[Cyt(0,g-h/2)],i[1]=Myt(a[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:c}},e})();function qV(e,t){return Myt(Cyt(e,t[0]),t[1])}function Efr(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Rfr(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,o=t.axisCollapseWidth,a=t.winInnerIndices,s,l=o,c=!1,u;return e<a[0]?(s=e*o,u=o):e<=a[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],l=r,c=!0):(s=n-(i-1-e)*o,u=o),{position:s,axisNameAvailableWidth:l,axisLabelShow:c,nameTruncateMaxWidth:u}}function Ifr(e,t){var n=[];return e.eachComponent("parallel",function(r,i){var o=new Tfr(r,e,t);o.name="parallel_"+i,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",Sc).models[0];r.coordinateSystem=i.coordinateSystem}}),n}var Pfr={create:Ifr},Rve=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return Kz([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=Or(n);if(r)for(var i=r.length-1;i>=0;i--)Jp(r[i])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=n&&n<=i[1])return"active"}else for(var o=0,a=r.length;o<a;o++)if(r[o][0]<=n&&n<=r[o][1])return"active";return"inactive"},t})(Ri);Hl(Rve,vk);var e3=!0,kq=Math.min,BP=Math.max,Dfr=Math.pow,kfr=1e4,Lfr=6,_fr=6,PBe="globalPan",Nfr={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Ffr={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DBe={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Wfr=0,FAe=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new Ir,r._uid="brushController_"+Wfr++,ye($fr,function(i,o){this._handlers[o]=Rn(i,this)},r),r}return t.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},t.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||E1r(r,PBe,this._uid),ye(this._handlers,function(i,o){r.on(o,i)}),this._brushType=n.brushType,this._brushOption=ei(Or(DBe),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;R1r(n,PBe,this._uid),ye(this._handlers,function(r,i){n.off(i,r)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};ye(n,function(i){r[i.panelId]=Or(i)})}else this._panels=null;return this},t.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},t.prototype.updateCovers=function(n){n=Vt(n,function(p){return ei(Or(DBe),p,!0)});var r="\0-brush-index-",i=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new oM(i,n,c,l).add(u).update(u).remove(d).execute(),this;function l(p,h){return(p.id!=null?p.id:r+h)+"-"+p.brushType}function c(p,h){return l(p.__brushOption,h)}function u(p,h){var g=n[p];if(h!=null&&i[h]===s)o[p]=i[h];else{var m=o[p]=h!=null?(i[h].__brushOption=g,i[h]):wyt(a,xyt(a,g));WAe(a,m)}}function d(p){i[p]!==s&&a.group.remove(i[p])}},t.prototype.unmount=function(){return this.enableBrush(!1),Ive(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(Zf);function xyt(e,t){var n=VJ[t.brushType].createCover(e,t);return n.__brushOption=t,Ayt(n,t),e.group.add(n),n}function wyt(e,t){var n=qAe(t);return n.endCreating&&(n.endCreating(e,t),Ayt(t,t.__brushOption)),t}function Syt(e,t){var n=t.__brushOption;qAe(t).updateCoverShape(e,t,n.range,n)}function Ayt(e,t){var n=t.z;n==null&&(n=kfr),e.traverse(function(r){r.z=n,r.z2=n})}function WAe(e,t){qAe(t).updateCommon(e,t),Syt(e,t)}function qAe(e){return VJ[e.__brushOption.brushType]}function BAe(e,t,n){var r=e._panels;if(!r)return e3;var i,o=e._transform;return ye(r,function(a){a.isTargetByCursor(t,n,o)&&(i=a)}),i}function Oyt(e,t){var n=e._panels;if(!n)return e3;var r=t.__brushOption.panelId;return r!=null?n[r]:e3}function Ive(e){var t=e._covers,n=t.length;return ye(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function t3(e,t){var n=Vt(e._covers,function(r){var i=r.__brushOption,o=Or(i.range);return{brushType:i.brushType,panelId:i.panelId,range:o}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function qfr(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1],a=Dfr(i*i+o*o,.5);return a>Lfr}function zyt(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Tyt(e,t,n,r){var i=new Ir;return i.add(new ao({name:"main",style:jAe(n),silent:!0,draggable:!0,cursor:"move",drift:Zr(kBe,e,t,i,["n","s","w","e"]),ondragend:Zr(t3,t,{isEnd:!0})})),ye(r,function(o){i.add(new ao({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Zr(kBe,e,t,i,o),ondragend:Zr(t3,t,{isEnd:!0})}))}),i}function Eyt(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=BP(i,_fr),a=n[0][0],s=n[1][0],l=a-i/2,c=s-i/2,u=n[0][1],d=n[1][1],p=u-o+i/2,h=d-o+i/2,g=u-a,m=d-s,b=g+i,y=m+i;$2(e,t,"main",a,s,g,m),r.transformable&&($2(e,t,"w",l,c,o,y),$2(e,t,"e",p,c,o,y),$2(e,t,"n",l,c,b,o),$2(e,t,"s",l,h,b,o),$2(e,t,"nw",l,c,o,o),$2(e,t,"ne",p,c,o,o),$2(e,t,"sw",l,h,o,o),$2(e,t,"se",p,h,o,o))}function Pve(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(jAe(n)),i.attr({silent:!r,cursor:r?"move":"default"}),ye([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=t.childOfName(o.join("")),s=o.length===1?Dve(e,o[0]):jfr(e,o);a&&a.attr({silent:!r,invisible:!r,cursor:r?Ffr[s]+"-resize":null})})}function $2(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(Vfr(HAe(e,t,[[r,i],[r+o,i+a]])))}function jAe(e){return br({strokeNoScale:!0},e.brushStyle)}function Ryt(e,t,n,r){var i=[kq(e,n),kq(t,r)],o=[BP(e,n),BP(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function Bfr(e){return _x(e.group)}function Dve(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=xJ(n[t],Bfr(e));return r[i]}function jfr(e,t){var n=[Dve(e,t[0]),Dve(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function kBe(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=Iyt(t,i,o);ye(r,function(c){var u=Nfr[c];s[u[0]][u[1]]+=l[u[0]]}),a.range=e.fromRectRange(Ryt(s[0][0],s[1][0],s[0][1],s[1][1])),WAe(t,n),t3(t,{isEnd:!1})}function Hfr(e,t,n,r){var i=t.__brushOption.range,o=Iyt(e,n,r);ye(i,function(a){a[0]+=o[0],a[1]+=o[1]}),WAe(e,t),t3(e,{isEnd:!1})}function Iyt(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function HAe(e,t,n){var r=Oyt(e,t);return r&&r!==e3?r.clipPath(n,e._transform):Or(n)}function Vfr(e){var t=kq(e[0][0],e[1][0]),n=kq(e[0][1],e[1][1]),r=BP(e[0][0],e[1][0]),i=BP(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function Gfr(e,t,n){if(!(!e._brushType||Ufr(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,o=BAe(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===e3||s.panelId===o.panelId)&&VJ[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function kve(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Lve(e,t,n){return e.childOfName("main").contain(t,n)}function Pyt(e,t,n,r){var i=e._creatingCover,o=e._creatingPanel,a=e._brushOption,s;if(e._track.push(n.slice()),qfr(e)||i){if(o&&!i){a.brushMode==="single"&&Ive(e);var l=Or(a);l.brushType=LBe(l.brushType,o),l.panelId=o===e3?null:o.panelId,i=e._creatingCover=xyt(e,l),e._covers.push(i)}if(i){var c=VJ[LBe(e._brushType,o)],u=i.__brushOption;u.range=c.getCreatingRange(HAe(e,i,e._track)),r&&(wyt(e,i),c.updateCommon(e,i)),Syt(e,i),s={isEnd:r}}}else r&&a.brushMode==="single"&&a.removeOnClick&&BAe(e,t,n)&&Ive(e)&&(s={isEnd:r,removeOnClick:!0});return s}function LBe(e,t){return e==="auto"?t.defaultBrushType:e}var $fr={mousedown:function(e){if(this._dragging)_Be(this,e);else if(!e.target||!e.target.draggable){kve(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=BAe(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(Gfr(this,e,r),this._dragging){kve(e);var i=Pyt(this,e,r,!1);i&&t3(this,i)}},mouseup:function(e){_Be(this,e)}};function _Be(e,t){if(e._dragging){kve(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=Pyt(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&t3(e,o)}}function Ufr(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var VJ={lineX:NBe(0),lineY:NBe(1),rect:{createCover:function(e,t){function n(r){return r}return Tyt({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=zyt(e);return Ryt(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){Eyt(e,t,n,r)},updateCommon:Pve,contain:Lve},polygon:{createCover:function(e,t){var n=new Ir;return n.add(new R0({name:"main",style:jAe(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new O0({name:"main",draggable:!0,drift:Zr(Hfr,e,t),ondragend:Zr(t3,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:HAe(e,t,n)})},updateCommon:Pve,contain:Lve}};function NBe(e){return{createCover:function(t,n){return Tyt({toRectRange:function(r){var i=[r,[0,100]];return e&&i.reverse(),i},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=zyt(t),r=kq(n[0][e],n[1][e]),i=BP(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var o,a=Oyt(t,n);if(a!==e3&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),Eyt(t,n,l,i)},updateCommon:Pve,contain:Lve}}function Dyt(e){return e=VAe(e),function(t){return RSe(t,e)}}function kyt(e,t){return e=VAe(e),function(n){var r=t??n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function Lyt(e,t,n){var r=VAe(e);return function(i,o){return r.contain(o[0],o[1])&&!qJ(i,t,n)}}function VAe(e){return ui.create(e)}var Xfr=["axisLine","axisTickLabel","axisName"],Yfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new FAe(r.getZr())).on("brush",Rn(this._onBrush,this))},t.prototype.render=function(n,r,i,o){if(!Kfr(n,r,o)){this.axisModel=n,this.api=i,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Ir,this.group.add(this._axisGroup),!!n.get("show")){var s=Zfr(n,r),l=s.coordinateSystem,c=n.getAreaSelectStyle(),u=c.width,d=n.axis.dim,p=l.getAxisLayout(d),h=Nt({strokeContainThreshold:u},p),g=new u1(n,h);ye(Xfr,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(h,c,n,s,u,i),$B(a,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,i,o,a,s){var l=i.axis.getExtent(),c=l[1]-l[0],u=Math.min(30,Math.abs(c)*.1),d=ui.create({x:l[0],y:-a/2,width:c,height:a});d.x-=u,d.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:Dyt(d),isTargetByCursor:Lyt(d,s,o),getLinearBrushOtherExtent:kyt(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Qfr(i))},t.prototype._onBrush=function(n){var r=n.areas,i=this.axisModel,o=i.axis,a=Vt(r,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!i.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(us);function Kfr(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Qfr(e){var t=e.axis;return Vt(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function Zfr(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Jfr={type:"axisAreaSelect",event:"axisAreaSelected"};function egr(e){e.registerAction(Jfr,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var tgr={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function _yt(e){e.registerComponentView(xfr),e.registerComponentModel(Sfr),e.registerCoordinateSystem("parallel",Pfr),e.registerPreprocessor(bfr),e.registerComponentModel(Rve),e.registerComponentView(Yfr),qP(e,"parallel",Rve,tgr),egr(e)}function ngr(e){Si(_yt),e.registerChartView(ufr),e.registerSeriesModel(hfr),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,vfr)}var rgr=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e})(),igr=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new rgr},t.prototype.buildPath=function(n,r){var i=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+i,r.y2),n.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(n.lineTo(r.x2,r.y2+i),n.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),n.closePath()},t.prototype.highlight=function(){rM(this)},t.prototype.downplay=function(){iM(this)},t})(Di),ogr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,i){var o=this,a=n.getGraph(),s=this.group,l=n.layoutInfo,c=l.width,u=l.height,d=n.getData(),p=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(g){var m=new igr,b=_r(m);b.dataIndex=g.dataIndex,b.seriesIndex=n.seriesIndex,b.dataType="edge";var y=g.getModel(),M=y.getModel("lineStyle"),C=M.get("curveness"),x=g.node1.getLayout(),w=g.node1.getModel(),S=w.get("localX"),A=w.get("localY"),z=g.node2.getLayout(),O=g.node2.getModel(),T=O.get("localX"),R=O.get("localY"),P=g.getLayout(),F,N,L,W,j,V,G,q;m.shape.extent=Math.max(1,P.dy),m.shape.orient=h,h==="vertical"?(F=(S!=null?S*c:x.x)+P.sy,N=(A!=null?A*u:x.y)+x.dy,L=(T!=null?T*c:z.x)+P.ty,W=R!=null?R*u:z.y,j=F,V=N*(1-C)+W*C,G=L,q=N*C+W*(1-C)):(F=(S!=null?S*c:x.x)+x.dx,N=(A!=null?A*u:x.y)+P.sy,L=T!=null?T*c:z.x,W=(R!=null?R*u:z.y)+P.ty,j=F*(1-C)+L*C,V=N,G=F*C+L*(1-C),q=W),m.setShape({x1:F,y1:N,x2:L,y2:W,cpx1:j,cpy1:V,cpx2:G,cpy2:q}),m.useStyle(M.getItemStyle()),FBe(m.style,h,g);var $=""+y.get("value"),U=Ru(y,"edgeLabel");zd(m,U,{labelFetcher:{getFormattedLabel:function(re,ee,se,pe,te,ce){return n.getFormattedLabel(re,ee,"edge",pe,hm(te,U.normal&&U.normal.get("formatter"),$),ce)}},labelDataIndex:g.dataIndex,defaultText:$}),m.setTextConfig({position:"inside"});var X=y.getModel("emphasis");Od(m,y,"lineStyle",function(re){var ee=re.getItemStyle();return FBe(ee,h,g),ee}),s.add(m),p.setItemGraphicEl(g.dataIndex,m);var Q=X.get("focus");sl(m,Q==="adjacency"?g.getAdjacentDataIndices():Q==="trajectory"?g.getTrajectoryDataIndices():Q,X.get("blurScope"),X.get("disabled"))}),a.eachNode(function(g){var m=g.getLayout(),b=g.getModel(),y=b.get("localX"),M=b.get("localY"),C=b.getModel("emphasis"),x=b.get(["itemStyle","borderRadius"])||0,w=new ao({shape:{x:y!=null?y*c:m.x,y:M!=null?M*u:m.y,width:m.dx,height:m.dy,r:x},style:b.getModel("itemStyle").getItemStyle(),z2:10});zd(w,Ru(b),{labelFetcher:{getFormattedLabel:function(A,z){return n.getFormattedLabel(A,z,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),w.disableLabelAnimation=!0,w.setStyle("fill",g.getVisual("color")),w.setStyle("decal",g.getVisual("style").decal),Od(w,b),s.add(w),d.setItemGraphicEl(g.dataIndex,w),_r(w).dataType="node";var S=C.get("focus");sl(w,S==="adjacency"?g.getAdjacentDataIndices():S==="trajectory"?g.getTrajectoryDataIndices():S,C.get("blurScope"),C.get("disabled"))}),d.eachItemGraphicEl(function(g,m){var b=d.getItemModel(m);b.get("draggable")&&(g.drift=function(y,M){o._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=M,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:d.getRawIndex(m),localX:this.shape.x/c,localY:this.shape.y/u})},g.ondragend=function(){o._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(agr(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t})(pa);function FBe(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");An(r)&&An(i)&&(e.fill=new ik(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function agr(e,t,n){var r=new ao({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ys(r,{shape:{width:e.width+20}},t,n),r}var sgr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],o=n.data||n.nodes||[],a=n.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<a.length;l++)a[l].depth!=null&&a[l].depth>=0&&(s[a[l].depth]=new No(a[l],this,r));var c=byt(o,i,this,!0,u);return c.data;function u(d,p){d.wrapMethod("getItemModel",function(h,g){var m=h.parentModel,b=m.getData().getItemLayout(g);if(b){var y=b.depth,M=m.levelModels[y];M&&(h.parentModel=M)}return h}),p.wrapMethod("getItemModel",function(h,g){var m=h.parentModel,b=m.getGraph().getEdgeByIndex(g),y=b.node1.getLayout();if(y){var M=y.depth,C=m.levelModels[M];C&&(h.parentModel=C)}return h})}},t.prototype.setNodePosition=function(n,r){var i=this.option.data||this.option.nodes,o=i[n];o.localX=r[0],o.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,i){function o(h){return isNaN(h)||h==null}if(i==="edge"){var a=this.getDataParams(n,i),s=a.data,l=a.value,c=s.source+" -- "+s.target;return Iu("nameValue",{name:c,value:l,noValue:o(l)})}else{var u=this.getGraph().getNodeByIndex(n),d=u.getLayout().value,p=this.getDataParams(n,i).data.name;return Iu("nameValue",{name:p!=null?p+"":null,value:d,noValue:o(d)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var i=e.prototype.getDataParams.call(this,n,r);if(i.value==null&&r==="node"){var o=this.getGraph().getNodeByIndex(n),a=o.getLayout().value;i.value=a}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t})(Ia);function lgr(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),i=n.get("nodeGap"),o=cgr(n,t);n.layoutInfo=o;var a=o.width,s=o.height,l=n.getGraph(),c=l.nodes,u=l.edges;dgr(c);var d=Lo(c,function(m){return m.getLayout().value===0}),p=d.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),g=n.get("nodeAlign");ugr(c,u,r,i,a,s,p,h,g)})}function cgr(e,t){return Pc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ugr(e,t,n,r,i,o,a,s,l){pgr(e,t,n,i,o,s,l),mgr(e,t,o,i,r,a,s),Agr(e,s)}function dgr(e){ye(e,function(t){var n=Wx(t.outEdges,$U),r=Wx(t.inEdges,$U),i=t.getValue()||0,o=Math.max(n,r,i);t.setLayout({value:o},!0)})}function pgr(e,t,n,r,i,o,a){for(var s=[],l=[],c=[],u=[],d=0,p=0;p<t.length;p++)s[p]=1;for(var p=0;p<e.length;p++)l[p]=e[p].inEdges.length,l[p]===0&&c.push(e[p]);for(var h=-1;c.length;){for(var g=0;g<c.length;g++){var m=c[g],b=m.hostGraph.data.getRawDataItem(m.dataIndex),y=b.depth!=null&&b.depth>=0;y&&b.depth>h&&(h=b.depth),m.setLayout({depth:y?b.depth:d},!0),o==="vertical"?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var M=0;M<m.outEdges.length;M++){var C=m.outEdges[M],x=t.indexOf(C);s[x]=0;var w=C.node2,S=e.indexOf(w);--l[S]===0&&u.indexOf(w)<0&&u.push(w)}}++d,c=u,u=[]}for(var p=0;p<s.length;p++)if(s[p]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var A=h>d-1?h:d-1;a&&a!=="left"&&hgr(e,a,o,A);var z=o==="vertical"?(i-n)/A:(r-n)/A;ggr(e,z,o)}function Nyt(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function hgr(e,t,n,r){if(t==="right"){for(var i=[],o=e,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];i.indexOf(u.node1)<0&&i.push(u.node1)}}o=i,i=[],++a}ye(e,function(d){Nyt(d)||d.setLayout({depth:Math.max(0,r-d.getLayout().skNodeHeight)},!0)})}else t==="justify"&&fgr(e,r)}function fgr(e,t){ye(e,function(n){!Nyt(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function ggr(e,t,n){ye(e,function(r){var i=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function mgr(e,t,n,r,i,o,a){var s=vgr(e,a);bgr(s,t,n,r,i,a),qse(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,ygr(s,l,a),qse(s,i,n,r,a),Sgr(s,l,a),qse(s,i,n,r,a)}function vgr(e,t){var n=[],r=t==="vertical"?"y":"x",i=Lme(e,function(o){return o.getLayout()[r]});return i.keys.sort(function(o,a){return o-a}),ye(i.keys,function(o){n.push(i.buckets.get(o))}),n}function bgr(e,t,n,r,i,o){var a=1/0;ye(e,function(s){var l=s.length,c=0;ye(s,function(d){c+=d.getLayout().value});var u=o==="vertical"?(r-(l-1)*i)/c:(n-(l-1)*i)/c;u<a&&(a=u)}),ye(e,function(s){ye(s,function(l,c){var u=l.getLayout().value*a;o==="vertical"?(l.setLayout({x:c},!0),l.setLayout({dx:u},!0)):(l.setLayout({y:c},!0),l.setLayout({dy:u},!0))})}),ye(t,function(s){var l=+s.getValue()*a;s.setLayout({dy:l},!0)})}function qse(e,t,n,r,i){var o=i==="vertical"?"x":"y";ye(e,function(a){a.sort(function(m,b){return m.getLayout()[o]-b.getLayout()[o]});for(var s,l,c,u=0,d=a.length,p=i==="vertical"?"dx":"dy",h=0;h<d;h++)l=a[h],c=u-l.getLayout()[o],c>0&&(s=l.getLayout()[o]+c,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),u=l.getLayout()[o]+l.getLayout()[p]+t;var g=i==="vertical"?r:n;if(c=u-t-g,c>0){s=l.getLayout()[o]-c,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),u=s;for(var h=d-2;h>=0;--h)l=a[h],c=l.getLayout()[o]+l.getLayout()[p]+t-u,c>0&&(s=l.getLayout()[o]-c,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),u=l.getLayout()[o]}})}function ygr(e,t,n){ye(e.slice().reverse(),function(r){ye(r,function(i){if(i.outEdges.length){var o=Wx(i.outEdges,Mgr,n)/Wx(i.outEdges,$U);if(isNaN(o)){var a=i.outEdges.length;o=a?Wx(i.outEdges,Cgr,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-lw(i,n))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-lw(i,n))*t;i.setLayout({y:l},!0)}}})})}function Mgr(e,t){return lw(e.node2,t)*e.getValue()}function Cgr(e,t){return lw(e.node2,t)}function xgr(e,t){return lw(e.node1,t)*e.getValue()}function wgr(e,t){return lw(e.node1,t)}function lw(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function $U(e){return e.getValue()}function Wx(e,t,n){for(var r=0,i=e.length,o=-1;++o<i;){var a=+t(e[o],n);isNaN(a)||(r+=a)}return r}function Sgr(e,t,n){ye(e,function(r){ye(r,function(i){if(i.inEdges.length){var o=Wx(i.inEdges,xgr,n)/Wx(i.inEdges,$U);if(isNaN(o)){var a=i.inEdges.length;o=a?Wx(i.inEdges,wgr,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-lw(i,n))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-lw(i,n))*t;i.setLayout({y:l},!0)}}})})}function Agr(e,t){var n=t==="vertical"?"x":"y";ye(e,function(r){r.outEdges.sort(function(i,o){return i.node2.getLayout()[n]-o.node2.getLayout()[n]}),r.inEdges.sort(function(i,o){return i.node1.getLayout()[n]-o.node1.getLayout()[n]})}),ye(e,function(r){var i=0,o=0;ye(r.outEdges,function(a){a.setLayout({sy:i},!0),i+=a.getLayout().dy}),ye(r.inEdges,function(a){a.setLayout({ty:o},!0),o+=a.getLayout().dy})})}function Ogr(e){e.eachSeriesByType("sankey",function(t){var n=t.getGraph(),r=n.nodes,i=n.edges;if(r.length){var o=1/0,a=-1/0;ye(r,function(s){var l=s.getLayout().value;l<o&&(o=l),l>a&&(a=l)}),ye(r,function(s){var l=new Su({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),c=l.mapValueToVisual(s.getLayout().value),u=s.getModel().get(["itemStyle","color"]);u!=null?(s.setVisual("color",u),s.setVisual("style",{fill:u})):(s.setVisual("color",c),s.setVisual("style",{fill:c}))})}i.length&&ye(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function zgr(e){e.registerChartView(ogr),e.registerSeriesModel(sgr),e.registerLayout(lgr),e.registerVisual(Ogr),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Fyt=(function(){function e(){}return e.prototype._hasEncodeRule=function(t){var n=this.getEncode();return n&&n.get(t)!=null},e.prototype.getInitialData=function(t,n){var r,i=n.getComponent("xAxis",this.get("xAxisIndex")),o=n.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type"),l;a==="category"?(t.layout="horizontal",r=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",r=o.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var c=["x","y"],u=t.layout==="horizontal"?0:1,d=this._baseAxisDim=c[u],p=c[1-u],h=[i,o],g=h[u].get("type"),m=h[1-u].get("type"),b=t.data;if(b&&l){var y=[];ye(b,function(x,w){var S;Ht(x)?(S=x.slice(),x.unshift(w)):Ht(x.value)?(S=Nt({},x),S.value=S.value.slice(),x.value.unshift(w)):S=x,y.push(S)}),t.data=y}var M=this.defaultValueDimensions,C=[{name:d,type:LU(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:LU(m),dimsDef:M.slice()}];return bk(this,{coordDimensions:C,dimensionsCount:M.length+1,encodeDefaulter:Zr(pvt,C,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e})(),Wyt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t})(Ia);Hl(Wyt,Fyt,!0);var Tgr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=n.get("layout")==="horizontal"?1:0;o.diff(s).add(function(c){if(o.hasValue(c)){var u=o.getItemLayout(c),d=WBe(u,o,c,l,!0);o.setItemGraphicEl(c,d),a.add(d)}}).update(function(c,u){var d=s.getItemGraphicEl(u);if(!o.hasValue(c)){a.remove(d);return}var p=o.getItemLayout(c);d?(Om(d),qyt(p,d,o,c)):d=WBe(p,o,c,l),a.add(d),o.setItemGraphicEl(c,d)}).remove(function(c){var u=s.getItemGraphicEl(c);u&&a.remove(u)}).execute(),this._data=o},t.prototype.remove=function(n){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(o){o&&r.remove(o)})},t.type="boxplot",t})(pa),Egr=(function(){function e(){}return e})(),Rgr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new Egr},t.prototype.buildPath=function(n,r){var i=r.points,o=0;for(n.moveTo(i[o][0],i[o][1]),o++;o<4;o++)n.lineTo(i[o][0],i[o][1]);for(n.closePath();o<i.length;o++)n.moveTo(i[o][0],i[o][1]),o++,n.lineTo(i[o][0],i[o][1])},t})(Di);function WBe(e,t,n,r,i){var o=e.ends,a=new Rgr({shape:{points:i?Igr(o,r,e):o}});return qyt(e,a,t,n,i),a}function qyt(e,t,n,r,i){var o=n.hostModel,a=G3[i?"initProps":"updateProps"];a(t,{shape:{points:e.ends}},o,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Od(t,s),sl(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Igr(e,t,n){return Vt(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}var NF=ye;function Pgr(e){var t=Dgr(e);NF(t,function(n){var r=n.seriesModels;r.length&&(kgr(n),NF(r,function(i,o){Lgr(i,n.boxOffsetList[o],n.boxWidthList[o])}))})}function Dgr(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),o=hi(n,i);o<0&&(o=n.length,n[o]=i,t[o]={axis:i,seriesModels:[]}),t[o].seriesModels.push(r)}),t}function kgr(e){var t=e.axis,n=e.seriesModels,r=n.length,i=e.boxWidthList=[],o=e.boxOffsetList=[],a=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;NF(n,function(g){l=Math.max(l,g.getData().count())});var c=t.getExtent();s=Math.abs(c[1]-c[0])/l}NF(n,function(g){var m=g.get("boxWidth");Ht(m)||(m=[m,m]),a.push([vn(m[0],s)||0,vn(m[1],s)||0])});var u=s*.8-2,d=u/r*.3,p=(u-d*(r-1))/r,h=p/2-u/2;NF(n,function(g,m){o.push(h),h+=d+p,i.push(Math.min(Math.max(p,a[m][0]),a[m][1]))})}function Lgr(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a=e.get("layout")==="horizontal"?0:1,s=1-a,l=["x","y"],c=i.mapDimension(l[a]),u=i.mapDimensionsAll(l[s]);if(c==null||u.length<5)return;for(var d=0;d<i.count();d++){var p=i.get(c,d),h=C(p,u[2],d),g=C(p,u[0],d),m=C(p,u[1],d),b=C(p,u[3],d),y=C(p,u[4],d),M=[];x(M,m,!1),x(M,b,!0),M.push(g,m,y,b),w(M,g),w(M,y),w(M,h),i.setItemLayout(d,{initBaseline:h[s],ends:M})}function C(S,A,z){var O=i.get(A,z),T=[];T[a]=S,T[s]=O;var R;return isNaN(S)||isNaN(O)?R=[NaN,NaN]:(R=r.dataToPoint(T),R[a]+=t),R}function x(S,A,z){var O=A.slice(),T=A.slice();O[a]+=o,T[a]-=o,z?S.push(O,T):S.push(T,O)}function w(S,A){var z=A.slice(),O=A.slice();z[a]-=o,O[a]+=o,S.push(z,O)}}function _gr(e,t){t=t||{};for(var n=[],r=[],i=t.boundIQR,o=i==="none"||i===0,a=0;a<e.length;a++){var s=Jp(e[a].slice()),l=H7(s,.25),c=H7(s,.5),u=H7(s,.75),d=s[0],p=s[s.length-1],h=(i??1.5)*(u-l),g=o?d:Math.max(d,l-h),m=o?p:Math.min(p,u+h),b=t.itemNameFormatter,y=fr(b)?b({value:a}):An(b)?b.replace("{value}",a+""):a+"";n.push([y,g,l,c,u,m]);for(var M=0;M<s.length;M++){var C=s[M];if(C<g||C>m){var x=[y,C];r.push(x)}}}return{boxData:n,outliers:r}}var Ngr={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==z0){var r="";Qo(r)}var i=_gr(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Fgr(e){e.registerSeriesModel(Wyt),e.registerChartView(Tgr),e.registerLayout(Pgr),e.registerTransform(Ngr)}var Wgr=["itemStyle","borderColor"],qgr=["itemStyle","borderColor0"],Bgr=["itemStyle","borderColorDoji"],jgr=["itemStyle","color"],Hgr=["itemStyle","color0"];function GAe(e,t){return t.get(e>0?jgr:Hgr)}function $Ae(e,t){return t.get(e===0?Bgr:e>0?Wgr:qgr)}var Vgr={seriesType:"candlestick",plan:pk(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:function(r,i){for(var o;(o=r.next())!=null;){var a=i.getItemModel(o),s=i.getItemLayout(o).sign,l=a.getItemStyle();l.fill=GAe(s,a),l.stroke=$Ae(s,a)||l.fill;var c=i.ensureUniqueItemVisual(o,"style");Nt(c,l)}}}}}},Ggr=["color","borderColor"],$gr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,i){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,i,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){Fw(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),i=this._data,o=this.group,a=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,c=l.getArea&&l.getArea();this._data||o.removeAll(),r.diff(i).add(function(u){if(r.hasValue(u)){var d=r.getItemLayout(u);if(s&&qBe(c,d))return;var p=Bse(d,u,!0);ys(p,{shape:{points:d.ends}},n,u),jse(p,r,u,a),o.add(p),r.setItemGraphicEl(u,p)}}).update(function(u,d){var p=i.getItemGraphicEl(d);if(!r.hasValue(u)){o.remove(p);return}var h=r.getItemLayout(u);if(s&&qBe(c,h)){o.remove(p);return}p?(Ao(p,{shape:{points:h.ends}},n,u),Om(p)):p=Bse(h),jse(p,r,u,a),o.add(p),r.setItemGraphicEl(u,p)}).remove(function(u){var d=i.getItemGraphicEl(u);d&&o.remove(d)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),BBe(n,this.group);var r=n.get("clip",!0)?ZB(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var i=r.getData(),o=i.getLayout("isSimpleBox"),a;(a=n.next())!=null;){var s=i.getItemLayout(a),l=Bse(s);jse(l,i,a,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){BBe(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(pa),Ugr=(function(){function e(){}return e})(),Xgr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Ugr},t.prototype.buildPath=function(n,r){var i=r.points;this.__simpleBox?(n.moveTo(i[4][0],i[4][1]),n.lineTo(i[6][0],i[6][1])):(n.moveTo(i[0][0],i[0][1]),n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]),n.lineTo(i[3][0],i[3][1]),n.closePath(),n.moveTo(i[4][0],i[4][1]),n.lineTo(i[5][0],i[5][1]),n.moveTo(i[6][0],i[6][1]),n.lineTo(i[7][0],i[7][1]))},t})(Di);function Bse(e,t,n){var r=e.ends;return new Xgr({shape:{points:n?Ygr(r,e):r},z2:100})}function qBe(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function jse(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Od(e,i);var o=t.getItemLayout(n).sign;ye(e.states,function(s,l){var c=i.getModel(l),u=GAe(o,c),d=$Ae(o,c)||u,p=s.style||(s.style={});u&&(p.fill=u),d&&(p.stroke=d)});var a=i.getModel("emphasis");sl(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function Ygr(e,t){return Vt(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var Kgr=(function(){function e(){}return e})(),Hse=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Kgr},t.prototype.buildPath=function(n,r){for(var i=r.points,o=0;o<i.length;)if(this.__sign===i[o++]){var a=i[o++];n.moveTo(a,i[o++]),n.lineTo(a,i[o++])}else o+=3},t})(Di);function BBe(e,t,n,r){var i=e.getData(),o=i.getLayout("largePoints"),a=new Hse({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new Hse({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Hse({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),Vse(1,a,e),Vse(-1,s,e),Vse(0,l,e),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Vse(e,t,n,r){var i=$Ae(e,n)||GAe(e,n),o=n.getModel("itemStyle").getItemStyle(Ggr);t.useStyle(o),t.style.fill=null,t.style.stroke=i}var Byt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,i){var o=r.getItemLayout(n);return o&&i.rect(o.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(Ia);Hl(Byt,Fyt,!0);function Qgr(e){!e||!Ht(e.series)||ye(e.series,function(t){xr(t)&&t.type==="k"&&(t.type="candlestick")})}var Zgr={seriesType:"candlestick",plan:pk(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=Jgr(e,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=Vt(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),c=l[0],u=l[1],d=l[2],p=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?g:h};function h(m,b){for(var y,M=b.getStore();(y=m.next())!=null;){var C=M.get(s,y),x=M.get(c,y),w=M.get(u,y),S=M.get(d,y),A=M.get(p,y),z=Math.min(x,w),O=Math.max(x,w),T=j(z,C),R=j(O,C),P=j(S,C),F=j(A,C),N=[];V(N,R,0),V(N,T,1),N.push(q(F),q(R),q(P),q(T));var L=b.getItemModel(y),W=!!L.get(["itemStyle","borderColorDoji"]);b.setItemLayout(y,{sign:jBe(M,y,x,w,u,W),initBaseline:x>w?R[o]:T[o],ends:N,brushRect:G(S,A,C)})}function j($,U){var X=[];return X[i]=U,X[o]=$,isNaN(U)||isNaN($)?[NaN,NaN]:t.dataToPoint(X)}function V($,U,X){var Q=U.slice(),re=U.slice();Q[i]=$7(Q[i]+r/2,1,!1),re[i]=$7(re[i]-r/2,1,!0),X?$.push(Q,re):$.push(re,Q)}function G($,U,X){var Q=j($,X),re=j(U,X);return Q[i]-=r/2,re[i]-=r/2,{x:Q[0],y:Q[1],width:r,height:re[1]-Q[1]}}function q($){return $[i]=$7($[i],1),$}}function g(m,b){for(var y=nb(m.count*4),M=0,C,x=[],w=[],S,A=b.getStore(),z=!!e.get(["itemStyle","borderColorDoji"]);(S=m.next())!=null;){var O=A.get(s,S),T=A.get(c,S),R=A.get(u,S),P=A.get(d,S),F=A.get(p,S);if(isNaN(O)||isNaN(P)||isNaN(F)){y[M++]=NaN,M+=3;continue}y[M++]=jBe(A,S,T,R,u,z),x[i]=O,x[o]=P,C=t.dataToPoint(x,null,w),y[M++]=C?C[0]:NaN,y[M++]=C?C[1]:NaN,x[o]=F,C=t.dataToPoint(x,null,w),y[M++]=C?C[1]:NaN}b.setLayout("largePoints",y)}}};function jBe(e,t,n,r,i,o){var a;return n>r?a=-1:n<r?a=1:a=o?0:t>0?e.get(i,t-1)<=r?1:-1:1,a}function Jgr(e,t){var n=e.getBaseAxis(),r,i=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),o=vn(Xr(e.get("barMaxWidth"),i),i),a=vn(Xr(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?vn(s,i):Math.max(Math.min(i/2,o),a)}function emr(e){e.registerChartView($gr),e.registerSeriesModel(Byt),e.registerPreprocessor(Qgr),e.registerVisual(Vgr),e.registerLayout(Zgr)}function HBe(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var tmr=(function(e){gt(t,e);function t(n,r){var i=e.call(this)||this,o=new KB(n,r),a=new Ir;return i.add(o),i.add(a),i.updateData(n,r),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,i=n.color,o=n.rippleNumber,a=this.childAt(1),s=0;s<o;s++){var l=sc(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var c=-s/o*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(c).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(c).start(),a.add(l)}HBe(a,n)},t.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,i=this.childAt(1),o=["symbolType","period","rippleScale","rippleNumber"],a=0;a<o.length;a++){var s=o[a];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}HBe(i,n)},t.prototype.highlight=function(){rM(this)},t.prototype.downplay=function(){iM(this)},t.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},t.prototype.updateData=function(n,r){var i=this,o=n.hostModel;this.childAt(0).updateData(n,r);var a=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),c=fk(n.getItemVisual(r,"symbolSize")),u=n.getItemVisual(r,"style"),d=u&&u.fill,p=s.getModel("emphasis");a.setScale(c),a.traverse(function(b){b.setStyle("fill",d)});var h=U3(n.getItemVisual(r,"symbolOffset"),c);h&&(a.x=h[0],a.y=h[1]);var g=n.getItemVisual(r,"symbolRotate");a.rotation=(g||0)*Math.PI/180||0;var m={};m.showEffectOn=o.get("showEffectOn"),m.rippleScale=s.get(["rippleEffect","scale"]),m.brushType=s.get(["rippleEffect","brushType"]),m.period=s.get(["rippleEffect","period"])*1e3,m.effectOffset=r/n.count(),m.z=o.getShallow("z")||0,m.zlevel=o.getShallow("zlevel")||0,m.symbolType=l,m.color=d,m.rippleEffectColor=s.get(["rippleEffect","color"]),m.rippleNumber=s.get(["rippleEffect","number"]),m.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(m):this.startEffectAnimation(m),this._effectCfg=m):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(b){b==="emphasis"?m.showEffectOn!=="render"&&i.startEffectAnimation(m):b==="normal"&&m.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=m,sl(this,p.get("focus"),p.get("blurScope"),p.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t})(Ir),nmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new QB(tmr)},t.prototype.render=function(n,r,i){var o=n.getData(),a=this._symbolDraw;a.updateData(o,{clipShape:this._getClipShape(n)}),this.group.add(a.group)},t.prototype._getClipShape=function(n){var r=n.coordinateSystem,i=r&&r.getArea&&r.getArea();return n.get("clip",!0)?i:null},t.prototype.updateTransform=function(n,r,i){var o=n.getData();this.group.dirty();var a=JB("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=Sgt(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t})(pa),rmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return r2(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t})(Ia);function imr(e){e.registerChartView(nmr),e.registerSeriesModel(rmr),e.registerLayout(JB("effectScatter"))}var jyt=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;return o.add(o.createLine(n,r,i)),o._updateEffectSymbol(n,r),o}return t.prototype.createLine=function(n,r,i){return new _Ae(n,r,i)},t.prototype._updateEffectSymbol=function(n,r){var i=n.getItemModel(r),o=i.getModel("effect"),a=o.get("symbolSize"),s=o.get("symbol");Ht(a)||(a=[a,a]);var l=n.getItemVisual(r,"style"),c=o.get("color")||l&&l.stroke,u=this.childAt(1);this._symbolType!==s&&(this.remove(u),u=sc(s,-.5,-.5,1,1,c),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",c),u.setStyle(o.getItemStyle(["color"])),u.scaleX=a[0],u.scaleY=a[1],u.setColor(c),this._symbolType=s,this._symbolScale=a,this._updateEffectAnimation(n,o,r))},t.prototype._updateEffectAnimation=function(n,r,i){var o=this.childAt(1);if(o){var a=n.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),c=r.get("roundTrip"),u=r.get("constantSpeed"),d=xu(r.get("delay"),function(h){return h/n.count()*s/3});if(o.ignore=!0,this._updateAnimationPoints(o,a),u>0&&(s=this._getLineLength(o)/u*1e3),s!==this._period||l!==this._loop||c!==this._roundTrip){o.stopAnimation();var p=void 0;fr(d)?p=d(i):p=d,o.__t>0&&(p=-s*o.__t),this._animateSymbol(o,s,p,l,c)}this._period=s,this._loop=l,this._roundTrip=c}},t.prototype._animateSymbol=function(n,r,i,o,a){if(r>0){n.__t=0;var s=this,l=n.animate("",o).when(a?r*2:r,{__t:a?2:1}).delay(i).during(function(){s._updateSymbolPosition(n)});o||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return Cy(n.__p1,n.__cp1)+Cy(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,i){this.childAt(0).updateData(n,r,i),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,i=n.__p2,o=n.__cp1,a=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),c=Vu,u=yme;s[0]=c(r[0],o[0],i[0],a),s[1]=c(r[1],o[1],i[1],a);var d=n.__t<1?u(r[0],o[0],i[0],a):u(i[0],o[0],r[0],1-a),p=n.__t<1?u(r[1],o[1],i[1],a):u(i[1],o[1],r[1],1-a);n.rotation=-Math.atan2(p,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Cy(l,s)*1.05,a===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Cy(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},t.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var i=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,i,r)},t})(Ir),Hyt=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;return o._createPolyline(n,r,i),o}return t.prototype._createPolyline=function(n,r,i){var o=n.getItemLayout(r),a=new R0({shape:{points:o}});this.add(a),this._updateCommonStl(n,r,i)},t.prototype.updateData=function(n,r,i){var o=n.hostModel,a=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};Ao(a,s,o,r),this._updateCommonStl(n,r,i)},t.prototype._updateCommonStl=function(n,r,i){var o=this.childAt(0),a=n.getItemModel(r),s=i&&i.emphasisLineStyle,l=i&&i.focus,c=i&&i.blurScope,u=i&&i.emphasisDisabled;if(!i||n.hasItemOption){var d=a.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),u=d.get("disabled"),l=d.get("focus"),c=d.get("blurScope")}o.useStyle(n.getItemVisual(r,"style")),o.style.fill=null,o.style.strokeNoScale=!0;var p=o.ensureState("emphasis");p.style=s,sl(this,l,c,u)},t.prototype.updateLayout=function(n,r){var i=this.childAt(0);i.setShape("points",n.getItemLayout(r))},t})(Ir),omr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return t.prototype.createLine=function(n,r,i){return new Hyt(n,r,i)},t.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var i=[0],o=0,a=1;a<r.length;a++){var s=r[a-1],l=r[a];o+=Cy(s,l),i.push(o)}if(o===0){this._length=0;return}for(var a=0;a<i.length;a++)i[a]/=o;this._offsets=i,this._length=o},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,i=this._points,o=this._offsets,a=i.length;if(o){var s=this._lastFrame,l;if(r<this._lastFramePercent){var c=Math.min(s+1,a-1);for(l=c;l>=0&&!(o[l]<=r);l--);l=Math.min(l,a-2)}else{for(l=s;l<a&&!(o[l]>r);l++);l=Math.min(l-1,a-2)}var u=(r-o[l])/(o[l+1]-o[l]),d=i[l],p=i[l+1];n.x=d[0]*(1-u)+u*p[0],n.y=d[1]*(1-u)+u*p[1];var h=n.__t<1?p[0]-d[0]:d[0]-p[0],g=n.__t<1?p[1]-d[1]:d[1]-p[1];n.rotation=-Math.atan2(g,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t})(jyt),amr=(function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e})(),smr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new amr},t.prototype.buildPath=function(n,r){var i=r.segs,o=r.curveness,a;if(r.polyline)for(a=this._off;a<i.length;){var s=i[a++];if(s>0){n.moveTo(i[a++],i[a++]);for(var l=1;l<s;l++)n.lineTo(i[a++],i[a++])}}else for(a=this._off;a<i.length;){var c=i[a++],u=i[a++],d=i[a++],p=i[a++];if(n.moveTo(c,u),o>0){var h=(c+d)/2-(u-p)*o,g=(u+p)/2-(d-c)*o;n.quadraticCurveTo(h,g,d,p)}else n.lineTo(d,p)}this.incremental&&(this._off=a,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var i=this.shape,o=i.segs,a=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,c=0;c<o.length;){var u=o[c++];if(u>0)for(var d=o[c++],p=o[c++],h=1;h<u;h++){var g=o[c++],m=o[c++];if(FC(d,p,g,m,s,n,r))return l}l++}else for(var l=0,c=0;c<o.length;){var d=o[c++],p=o[c++],g=o[c++],m=o[c++];if(a>0){var b=(d+g)/2-(p-m)*a,y=(p+m)/2-(g-d)*a;if(gmt(d,p,b,y,g,m,s,n,r))return l}else if(FC(d,p,g,m,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.segs,o=1/0,a=1/0,s=-1/0,l=-1/0,c=0;c<i.length;){var u=i[c++],d=i[c++];o=Math.min(u,o),s=Math.max(u,s),a=Math.min(d,a),l=Math.max(d,l)}n=this._rect=new ui(o,a,s,l)}return n},t})(Di),lmr=(function(){function e(){this.group=new Ir}return e.prototype.updateData=function(t){this._clear();var n=this._create();n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,n){var r=this._newAdded[0],i=n.getLayout("linesPoints"),o=r&&r.shape.segs;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,n),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new smr({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,n,r){var i=n.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var o=n.getVisual("style");o&&o.stroke&&t.setStyle("stroke",o.stroke),t.setStyle("fill",null);var a=_r(t);a.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){a.dataIndex=null;var l=t.hoverDataIdx;l>0&&(a.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),Vyt={seriesType:"lines",plan:pk(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var c=0,u=i.start;u<i.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+c*2)}else s=new Float32Array(l*4);for(var d=0,p=[],u=i.start;u<i.end;u++){var h=e.getLineCoords(u,a);n&&(s[d++]=h);for(var g=0;g<h;g++)p=t.dataToPoint(a[g],!1,p),s[d++]=p[0],s[d++]=p[1]}o.setLayout("linesPoints",s)}else for(var u=i.start;u<i.end;u++){var m=o.getItemModel(u),h=e.getLineCoords(u,a),b=[];if(n)for(var y=0;y<h;y++)b.push(t.dataToPoint(a[y]));else{b[0]=t.dataToPoint(a[0]),b[1]=t.dataToPoint(a[1]);var M=m.get(["lineStyle","curveness"]);+M&&(b[2]=[(b[0][0]+b[1][0])/2-(b[0][1]-b[1][1])*M,(b[0][1]+b[1][1])/2-(b[1][0]-b[0][0])*M])}o.setItemLayout(u,b)}}}}}},cmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),c=i.getZr(),u=c.painter.getType()==="svg";u||c.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!u&&c.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(u||c.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(o);var d=n.get("clip",!0)&&ZB(n.coordinateSystem,!1,n);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n);a.incrementalPrepareUpdate(o),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,i){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,i){var o=n.getData(),a=n.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=Vyt.reset(n,r,i);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(n,r){var i=this._lineDraw,o=this._showEffect(r),a=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!i||o!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new lmr:new NAe(a?o?omr:Hyt:o?jyt:_Ae),this._hasEffet=o,this._isPolyline=a,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t})(pa),umr=typeof Uint32Array>"u"?Array:Uint32Array,dmr=typeof Float64Array>"u"?Array:Float64Array;function VBe(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Vt(t,function(n){var r=[n[0].coord,n[1].coord],i={coords:r};return n[0].name&&(i.fromName=n[0].name),n[1].name&&(i.toName=n[1].name),oJ([i,n[0],n[1]])}))}var pmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],VBe(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(VBe(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=DP(this._flatCoords,r.flatCoords),this._flatCoordsOffset=DP(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[n*2],o=this._flatCoordsOffset[n*2+1],a=0;a<o;a++)r[a]=r[a]||[],r[a][0]=this._flatCoords[i+a*2],r[a][1]=this._flatCoords[i+a*2+1];return o}else{for(var s=this._getCoordsFromItemModel(n),a=0;a<s.length;a++)r[a]=r[a]||[],r[a][0]=s[a][0],r[a][1]=s[a][1];return s.length}},t.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),yo(n[0])){for(var i=n.length,o=new umr(i),a=new dmr(i),s=0,l=0,c=0,u=0;u<i;){c++;var d=n[u++];o[l++]=s+r,o[l++]=d;for(var p=0;p<d;p++){var h=n[u++],g=n[u++];a[s++]=h,a[s++]=g}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,l),flatCoords:a,count:c}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},t.prototype.getInitialData=function(n,r){var i=new y0(["value"],this);return i.hasItemOption=!1,i.initData(n.data,[],function(o,a,s,l){if(o instanceof Array)return NaN;i.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[l]:c}),i},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getItemModel(n),s=a.get("name");if(s)return s;var l=a.get("fromName"),c=a.get("toName"),u=[];return l!=null&&u.push(l),c!=null&&u.push(c),Iu("nameValue",{name:u.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t})(Ia);function BV(e){return e instanceof Array||(e=[e,e]),e}var hmr={seriesType:"lines",reset:function(e){var t=BV(e.get("symbol")),n=BV(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function i(o,a){var s=o.getItemModel(a),l=BV(s.getShallow("symbol",!0)),c=BV(s.getShallow("symbolSize",!0));l[0]&&o.setItemVisual(a,"fromSymbol",l[0]),l[1]&&o.setItemVisual(a,"toSymbol",l[1]),c[0]&&o.setItemVisual(a,"fromSymbolSize",c[0]),c[1]&&o.setItemVisual(a,"toSymbolSize",c[1])}return{dataEach:r.hasItemOption?i:null}}};function fmr(e){e.registerChartView(cmr),e.registerSeriesModel(pmr),e.registerLayout(Vyt),e.registerVisual(hmr)}var gmr=256,mmr=(function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=wm.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,i,o,a){var s=this._getBrush(),l=this._getGradient(o,"inRange"),c=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,d=this.canvas,p=d.getContext("2d"),h=t.length;d.width=n,d.height=r;for(var g=0;g<h;++g){var m=t[g],b=m[0],y=m[1],M=m[2],C=i(M);p.globalAlpha=C,p.drawImage(s,b-u,y-u)}if(!d.width||!d.height)return d;for(var x=p.getImageData(0,0,d.width,d.height),w=x.data,S=0,A=w.length,z=this.minOpacity,O=this.maxOpacity,T=O-z;S<A;){var C=w[S+3]/256,R=Math.floor(C*(gmr-1))*4;if(C>0){var P=a(C)?l:c;C>0&&(C=C*T+z),w[S++]=P[R],w[S++]=P[R+1],w[S++]=P[R+2],w[S++]=P[R+3]*C*256}else S+=4}return p.putImageData(x,0,0),d},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=wm.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var i=t.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-n,n,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,i=r[n]||(r[n]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],a=0,s=0;s<256;s++)t[n](s/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},e})();function vmr(e,t,n){var r=e[1]-e[0];t=Vt(t,function(a){return{interval:[(a.interval[0]-e[0])/r,(a.interval[1]-e[0])/r]}});var i=t.length,o=0;return function(a){var s;for(s=o;s<i;s++){var l=t[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}if(s===i)for(s=o-1;s>=0;s--){var l=t[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}return s>=0&&s<i&&n[s]}}function bmr(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(r){return r>=t[0]&&r<=t[1]}}function GBe(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var ymr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(o=s)})}),this._progressiveEls=null,this.group.removeAll();var a=n.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(n,i,0,n.getData().count()):GBe(a)&&this._renderOnGeo(a,n,o,i)},t.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,i,o){var a=r.coordinateSystem;a&&(GBe(a)?this.render(r,i,o):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,o,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){Fw(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,i,o,a){var s=n.coordinateSystem,l=X3(s,"cartesian2d"),c,u,d,p;if(l){var h=s.getAxis("x"),g=s.getAxis("y");c=h.getBandWidth()+.5,u=g.getBandWidth()+.5,d=h.scale.getExtent(),p=g.scale.getExtent()}for(var m=this.group,b=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),M=n.getModel(["blur","itemStyle"]).getItemStyle(),C=n.getModel(["select","itemStyle"]).getItemStyle(),x=n.get(["itemStyle","borderRadius"]),w=Ru(n),S=n.getModel("emphasis"),A=S.get("focus"),z=S.get("blurScope"),O=S.get("disabled"),T=l?[b.mapDimension("x"),b.mapDimension("y"),b.mapDimension("value")]:[b.mapDimension("time"),b.mapDimension("value")],R=i;R<o;R++){var P=void 0,F=b.getItemVisual(R,"style");if(l){var N=b.get(T[0],R),L=b.get(T[1],R);if(isNaN(b.get(T[2],R))||isNaN(N)||isNaN(L)||N<d[0]||N>d[1]||L<p[0]||L>p[1])continue;var W=s.dataToPoint([N,L]);P=new ao({shape:{x:W[0]-c/2,y:W[1]-u/2,width:c,height:u},style:F})}else{if(isNaN(b.get(T[1],R)))continue;P=new ao({z2:1,shape:s.dataToRect([b.get(T[0],R)]).contentShape,style:F})}if(b.hasItemOption){var j=b.getItemModel(R),V=j.getModel("emphasis");y=V.getModel("itemStyle").getItemStyle(),M=j.getModel(["blur","itemStyle"]).getItemStyle(),C=j.getModel(["select","itemStyle"]).getItemStyle(),x=j.get(["itemStyle","borderRadius"]),A=V.get("focus"),z=V.get("blurScope"),O=V.get("disabled"),w=Ru(j)}P.shape.r=x;var G=n.getRawValue(R),q="-";G&&G[2]!=null&&(q=G[2]+""),zd(P,w,{labelFetcher:n,labelDataIndex:R,defaultOpacity:F.opacity,defaultText:q}),P.ensureState("emphasis").style=y,P.ensureState("blur").style=M,P.ensureState("select").style=C,sl(P,A,z,O),P.incremental=a,a&&(P.states.emphasis.hoverLayer=!0),m.add(P),b.setItemGraphicEl(R,P),this._progressiveEls&&this._progressiveEls.push(P)}},t.prototype._renderOnGeo=function(n,r,i,o){var a=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),c=this._hmLayer||this._hmLayer||new mmr;c.blurSize=r.get("blurSize"),c.pointSize=r.get("pointSize"),c.minOpacity=r.get("minOpacity"),c.maxOpacity=r.get("maxOpacity");var u=n.getViewRect().clone(),d=n.getRoamTransform();u.applyTransform(d);var p=Math.max(u.x,0),h=Math.max(u.y,0),g=Math.min(u.width+u.x,o.getWidth()),m=Math.min(u.height+u.y,o.getHeight()),b=g-p,y=m-h,M=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],C=l.mapArray(M,function(A,z,O){var T=n.dataToPoint([A,z]);return T[0]-=p,T[1]-=h,T.push(O),T}),x=i.getExtent(),w=i.type==="visualMap.continuous"?bmr(x,i.option.range):vmr(x,i.getPieceList(),i.option.selected);c.update(C,b,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var S=new Du({style:{width:b,height:y,x:p,y:h,image:c.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t})(pa),Mmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return r2(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=dk.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t})(Ia);function Cmr(e){e.registerChartView(ymr),e.registerSeriesModel(Mmr)}var xmr=["itemStyle","borderWidth"],$Be=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Gse=new t2,wmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=this.group,a=n.getData(),s=this._data,l=n.coordinateSystem,c=l.getBaseAxis(),u=c.isHorizontal(),d=l.master.getRect(),p={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:u,valueDim:$Be[+u],categoryDim:$Be[1-+u]};a.diff(s).add(function(g){if(a.hasValue(g)){var m=XBe(a,g),b=UBe(a,g,m,p),y=YBe(a,p,b);a.setItemGraphicEl(g,y),o.add(y),QBe(y,p,b)}}).update(function(g,m){var b=s.getItemGraphicEl(m);if(!a.hasValue(g)){o.remove(b);return}var y=XBe(a,g),M=UBe(a,g,y,p),C=Kyt(a,M);b&&C!==b.__pictorialShapeStr&&(o.remove(b),a.setItemGraphicEl(g,null),b=null),b?Rmr(b,p,M):b=YBe(a,p,M,!0),a.setItemGraphicEl(g,b),b.__pictorialSymbolMeta=M,o.add(b),QBe(b,p,M)}).remove(function(g){var m=s.getItemGraphicEl(g);m&&KBe(s,g,m.__pictorialSymbolMeta.animationModel,m)}).execute();var h=n.get("clip",!0)?ZB(n.coordinateSystem,!1,n):null;return h?o.setClipPath(h):o.removeClipPath(),this._data=a,this.group},t.prototype.remove=function(n,r){var i=this.group,o=this._data;n.get("animation")?o&&o.eachItemGraphicEl(function(a){KBe(o,_r(a).dataIndex,n,a)}):i.removeAll()},t.type="pictorialBar",t})(pa);function UBe(e,t,n,r){var i=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),p={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Smr(n,o,i,r,p),Amr(e,t,i,o,a,p.boundingLength,p.pxSign,u,r,p),Omr(n,p.symbolScale,c,r,p);var h=p.symbolSize,g=U3(n.get("symbolOffset"),h);return zmr(n,h,i,o,a,g,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,r,p),p}function Smr(e,t,n,r,i){var o=r.valueDim,a=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),c=1-+(n[o.wh]<=0),u;if(Ht(a)){var d=[$se(s,a[0])-l,$se(s,a[1])-l];d[1]<d[0]&&d.reverse(),u=d[c]}else a!=null?u=$se(s,a)-l:t?u=r.coordSysExtent[o.index][c]-l:u=n[o.wh];i.boundingLength=u,t&&(i.repeatCutLength=n[o.wh]);var p=o.xy==="x",h=s.inverse;i.pxSign=p&&!h||!p&&h?u>=0?1:-1:u>0?1:-1}function $se(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Amr(e,t,n,r,i,o,a,s,l,c){var u=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),h=e.getItemVisual(t,"symbolSize"),g;Ht(h)?g=h.slice():h==null?g=["100%","100%"]:g=[h,h],g[d.index]=vn(g[d.index],p),g[u.index]=vn(g[u.index],r?p:Math.abs(o)),c.symbolSize=g;var m=c.symbolScale=[g[0]/s,g[1]/s];m[u.index]*=(l.isHorizontal?-1:1)*a}function Omr(e,t,n,r,i){var o=e.get(xmr)||0;o&&(Gse.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Gse.updateTransform(),o/=Gse.getLineScale(),o*=t[r.valueDim.index]),i.valueLineWidth=o||0}function zmr(e,t,n,r,i,o,a,s,l,c,u,d){var p=u.categoryDim,h=u.valueDim,g=d.pxSign,m=Math.max(t[h.index]+s,0),b=m;if(r){var y=Math.abs(l),M=xu(e.get("symbolMargin"),"15%")+"",C=!1;M.lastIndexOf("!")===M.length-1&&(C=!0,M=M.slice(0,M.length-1));var x=vn(M,t[h.index]),w=Math.max(m+x*2,0),S=C?0:x*2,A=fSe(r),z=A?r:ZBe((y+S)/w),O=y-z*m;x=O/2/(C?z:Math.max(z-1,1)),w=m+x*2,S=C?0:x*2,!A&&r!=="fixed"&&(z=c?ZBe((Math.abs(c)+S)/w):0),b=z*w-S,d.repeatTimes=z,d.symbolMargin=x}var T=g*(b/2),R=d.pathPosition=[];R[p.index]=n[p.wh]/2,R[h.index]=a==="start"?T:a==="end"?l-T:l/2,o&&(R[0]+=o[0],R[1]+=o[1]);var P=d.bundlePosition=[];P[p.index]=n[p.xy],P[h.index]=n[h.xy];var F=d.barRectShape=Nt({},n);F[h.wh]=g*Math.max(Math.abs(n[h.wh]),Math.abs(R[h.index]+T)),F[p.wh]=n[p.wh];var N=d.clipShape={};N[p.xy]=-n[p.xy],N[p.wh]=u.ecSize[p.wh],N[h.xy]=0,N[h.wh]=n[h.wh]}function Gyt(e){var t=e.symbolPatternSize,n=sc(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function $yt(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,d=o[t.valueDim.index]+a+n.symbolMargin*2;for(UAe(e,function(m){m.__pictorialAnimationIndex=u,m.__pictorialRepeatTimes=c,u<c?FI(m,null,g(u),n,r):FI(m,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(m)}),u++});u<c;u++){var p=Gyt(n);p.__pictorialAnimationIndex=u,p.__pictorialRepeatTimes=c,i.add(p);var h=g(u);FI(p,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function g(m){var b=s.slice(),y=n.pxSign,M=m;return(n.symbolRepeatDirection==="start"?y>0:y<0)&&(M=c-1-m),b[l.index]=d*(M-c/2+.5)+s[l.index],{x:b[0],y:b[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Uyt(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?FI(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=Gyt(n),i.add(o),FI(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function Xyt(e,t,n){var r=Nt({},t.barRectShape),i=e.__pictorialBarRect;i?FI(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new ao({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function Yyt(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,o=Nt({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(i)Ao(i,{shape:o},s,l);else{o[a.wh]=0,i=new ao({shape:o}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var c={};c[a.wh]=n.clipShape[a.wh],G3[r?"updateProps":"initProps"](i,{shape:c},s,l)}}}function XBe(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Tmr,n.isAnimationEnabled=Emr,n}function Tmr(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Emr(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function YBe(e,t,n,r){var i=new Ir,o=new Ir;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?$yt(i,t,n):Uyt(i,t,n),Xyt(i,n,r),Yyt(i,t,n,r),i.__pictorialShapeStr=Kyt(e,n),i.__pictorialSymbolMeta=n,i}function Rmr(e,t,n){var r=n.animationModel,i=n.dataIndex,o=e.__pictorialBundle;Ao(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?$yt(e,t,n,!0):Uyt(e,t,n,!0),Xyt(e,n,!0),Yyt(e,t,n,!0)}function KBe(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];UAe(r,function(a){o.push(a)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),ye(o,function(a){aw(a,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function Kyt(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function UAe(e,t,n){ye(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function FI(e,t,n,r,i,o){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&G3[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,o)}function QBe(e,t,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),u=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");UAe(e,function(m){if(m instanceof Du){var b=m.style;m.useStyle(Nt({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},n.style))}else m.useStyle(n.style);var y=m.ensureState("emphasis");y.style=a,p&&(y.scaleX=m.scaleX*1.1,y.scaleY=m.scaleY*1.1),m.ensureState("blur").style=s,m.ensureState("select").style=l,c&&(m.cursor=c),m.z2=n.z2});var h=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,zd(g,Ru(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:WP(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),sl(e,u,d,o.get("disabled"))}function ZBe(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Imr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ww(Tq.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t})(Tq);function Pmr(e){e.registerChartView(wmr),e.registerSeriesModel(Imr),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Zr(Dbt,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kbt("pictorialBar"))}var Dmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this,s=this.group,l=n.getLayerSeries(),c=o.getLayout("layoutInfo"),u=c.rect,d=c.boundaryGap;s.x=0,s.y=u.y+d[0];function p(b){return b.name}var h=new oM(this._layersSeries||[],l,p,p),g=[];h.add(Rn(m,this,"add")).update(Rn(m,this,"update")).remove(Rn(m,this,"remove")).execute();function m(b,y,M){var C=a._layers;if(b==="remove"){s.remove(C[y]);return}for(var x=[],w=[],S,A=l[y].indices,z=0;z<A.length;z++){var O=o.getItemLayout(A[z]),T=O.x,R=O.y0,P=O.y;x.push(T,R),w.push(T,R+P),S=o.getItemVisual(A[z],"style")}var F,N=o.getItemLayout(A[0]),L=n.getModel("label"),W=L.get("margin"),j=n.getModel("emphasis");if(b==="add"){var V=g[y]=new Ir;F=new x2t({shape:{points:x,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V.add(F),s.add(V),n.isAnimationEnabled()&&F.setClipPath(kmr(F.getBoundingRect(),n,function(){F.removeClipPath()}))}else{var V=C[M];F=V.childAt(0),s.add(V),g[y]=V,Ao(F,{shape:{points:x,stackedOnPoints:w}},n),Om(F)}zd(F,Ru(n),{labelDataIndex:A[z-1],defaultText:o.getName(A[z-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),F.setTextConfig({position:null,local:!0});var G=F.getTextContent();G&&(G.x=N.x-W,G.y=N.y0+N.y/2),F.useStyle(S),o.setItemGraphicEl(y,F),Od(F,n),sl(F,j.get("focus"),j.get("blurScope"),j.get("disabled"))}this._layersSeries=l,this._layers=g},t.type="themeRiver",t})(pa);function kmr(e,t,n){var r=new ao({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ys(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var Use=2,Lmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tj(Rn(this.getData,this),Rn(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,i={},o=Lme(n,function(p){return i.hasOwnProperty(p[0]+"")||(i[p[0]+""]=-1),p[2]}),a=[];o.buckets.each(function(p,h){a.push({name:h,dataList:p})});for(var s=a.length,l=0;l<s;++l){for(var c=a[l].name,u=0;u<a[l].dataList.length;++u){var d=a[l].dataList[u][0]+"";i[d]=l}for(var d in i)i.hasOwnProperty(d)&&i[d]!==l&&(i[d]=l,n[r]=[d,0,c],r++)}return n},t.prototype.getInitialData=function(n,r){for(var i=this.getReferringComponents("singleAxis",Sc).models[0],o=i.get("type"),a=Lo(n.data,function(g){return g[2]!==void 0}),s=this.fixData(a||[]),l=[],c=this.nameMap=Kn(),u=0,d=0;d<s.length;++d)l.push(s[d][Use]),c.get(s[d][Use])||(c.set(s[d][Use],u),u++);var p=gk(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:LU(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new y0(p,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),i=[],o=0;o<r;++o)i[o]=o;var a=n.mapDimension("single"),s=Lme(i,function(c){return n.get("name",c)}),l=[];return s.buckets.each(function(c,u){c.sort(function(d,p){return n.get(a,d)-n.get(a,p)}),l.push({name:u,indices:c})}),l},t.prototype.getAxisTooltipData=function(n,r,i){Ht(n)||(n=n?[n]:[]);for(var o=this.getData(),a=this.getLayerSeries(),s=[],l=a.length,c,u=0;u<l;++u){for(var d=Number.MAX_VALUE,p=-1,h=a[u].indices.length,g=0;g<h;++g){var m=o.get(n[0],a[u].indices[g]),b=Math.abs(m-r);b<=d&&(c=m,d=b,p=a[u].indices[g])}s.push(p)}return{dataIndices:s,nestestValue:c}},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getName(n),s=o.get(o.mapDimension("value"),n);return Iu("nameValue",{name:a,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t})(Ia);function _mr(e,t){e.eachSeriesByType("themeRiver",function(n){var r=n.getData(),i=n.coordinateSystem,o={},a=i.getRect();o.rect=a;var s=n.get("boundaryGap"),l=i.getAxis();if(o.boundaryGap=s,l.orient==="horizontal"){s[0]=vn(s[0],a.height),s[1]=vn(s[1],a.height);var c=a.height-s[0]-s[1];JBe(r,n,c)}else{s[0]=vn(s[0],a.width),s[1]=vn(s[1],a.width);var u=a.width-s[0]-s[1];JBe(r,n,u)}r.setLayout("layoutInfo",o)})}function JBe(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),o=e.mapDimension("single"),a=e.mapDimension("value"),s=Vt(i,function(b){return Vt(b.indices,function(y){var M=r.dataToPoint(e.get(o,y));return M[1]=e.get(a,y),M})}),l=Nmr(s),c=l.y0,u=n/l.max,d=i.length,p=i[0].indices.length,h,g=0;g<p;++g){h=c[g]*u,e.setItemLayout(i[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:h,y:s[0][g][1]*u});for(var m=1;m<d;++m)h+=s[m-1][g][1]*u,e.setItemLayout(i[m].indices[g],{layerIndex:m,x:s[m][g][0],y0:h,y:s[m][g][1]*u})}}function Nmr(e){for(var t=e.length,n=e[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),r.push(s)}for(var c=0;c<n;++c)i[c]=(o-r[c])/2;o=0;for(var u=0;u<n;++u){var d=r[u]+i[u];d>o&&(o=d)}return{y0:i,max:o}}function Fmr(e){e.registerChartView(Dmr),e.registerSeriesModel(Lmr),e.registerLayout(_mr),e.registerProcessor(ej("themeRiver"))}var Wmr=2,qmr=4,eje=(function(e){gt(t,e);function t(n,r,i,o){var a=e.call(this)||this;a.z2=Wmr,a.textConfig={inside:!0},_r(a).seriesIndex=r.seriesIndex;var s=new oo({z2:qmr,silent:n.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,n,r,i,o),a}return t.prototype.updateData=function(n,r,i,o,a){this.node=r,r.piece=this,i=i||this._seriesModel,o=o||this._ecModel;var s=this;_r(s).dataIndex=r.dataIndex;var l=r.getModel(),c=l.getModel("emphasis"),u=r.getLayout(),d=Nt({},u);d.label=null;var p=r.getVisual("style");p.lineJoin="bevel";var h=r.getVisual("decal");h&&(p.decal=FP(h,a));var g=xO(l.getModel("itemStyle"),d,!0);Nt(d,g),ye(f1,function(M){var C=s.ensureState(M),x=l.getModel([M,"itemStyle"]);C.style=x.getItemStyle();var w=xO(x,d);w&&(C.shape=w)}),n?(s.setShape(d),s.shape.r=u.r0,ys(s,{shape:{r:u.r}},i,r.dataIndex)):(Ao(s,{shape:d},i),Om(s)),s.useStyle(p),this._updateLabel(i);var m=l.getShallow("cursor");m&&s.attr("cursor",m),this._seriesModel=i||this._seriesModel,this._ecModel=o||this._ecModel;var b=c.get("focus"),y=b==="relative"?DP(r.getAncestorsIndices(),r.getDescendantIndices()):b==="ancestor"?r.getAncestorsIndices():b==="descendant"?r.getDescendantIndices():b;sl(this,y,c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,i=this.node.getModel(),o=i.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,c=Math.cos(l),u=Math.sin(l),d=this,p=d.getTextContent(),h=this.node.dataIndex,g=o.get("minAngle")/180*Math.PI,m=o.get("show")&&!(g!=null&&Math.abs(s)<g);p.ignore=!m,ye(mq,function(y){var M=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),C=y==="normal",x=C?p:p.ensureState(y),w=n.getFormattedLabel(h,y);C&&(w=w||r.node.name),x.style=Za(M,{},null,y!=="normal",!0),w&&(x.style.text=w);var S=M.get("show");S!=null&&!C&&(x.ignore=!S);var A=b(M,"position"),z=C?d:d.states[y],O=z.style.fill;z.textConfig={outsideFill:M.get("color")==="inherit"?O:null,inside:A!=="outside"};var T,R=b(M,"distance")||0,P=b(M,"align"),F=b(M,"rotate"),N=Math.PI*.5,L=Math.PI*1.5,W=eh(F==="tangential"?Math.PI/2-l:l),j=W>N&&!kP(W-N)&&W<L;A==="outside"?(T=a.r+R,P=j?"right":"left"):!P||P==="center"?(s===2*Math.PI&&a.r0===0?T=0:T=(a.r+a.r0)/2,P="center"):P==="left"?(T=a.r0+R,P=j?"right":"left"):P==="right"&&(T=a.r-R,P=j?"left":"right"),x.style.align=P,x.style.verticalAlign=b(M,"verticalAlign")||"middle",x.x=T*c+a.cx,x.y=T*u+a.cy;var V=0;F==="radial"?V=eh(-l)+(j?Math.PI:0):F==="tangential"?V=eh(Math.PI/2-l)+(j?Math.PI:0):yo(F)&&(V=F*Math.PI/180),x.rotation=eh(V)});function b(y,M){var C=y.get(M);return C??o.get(M)}p.dirtyStyle()},t})(A0),_ve="sunburstRootToNode",tje="sunburstHighlight",Bmr="sunburstUnhighlight";function jmr(e){e.registerAction({type:_ve,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(i,o){var a=Rq(t,[_ve],i);if(a){var s=i.getViewRoot();s&&(t.direction=IAe(s,a.node)?"rollUp":"drillDown"),i.resetViewRoot(a.node)}}}),e.registerAction({type:tje,update:"none"},function(t,n,r){t=Nt({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(o){var a=Rq(t,[tje],o);a&&(t.dataIndex=a.node.dataIndex)}r.dispatchAction(Nt(t,{type:"highlight"}))}),e.registerAction({type:Bmr,update:"updateView"},function(t,n,r){t=Nt({},t),r.dispatchAction(Nt(t,{type:"downplay"}))})}var Hmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){var a=this;this.seriesModel=n,this.api=i,this.ecModel=r;var s=n.getData(),l=s.tree.root,c=n.getViewRoot(),u=this.group,d=n.get("renderLabelForZeroData"),p=[];c.eachNode(function(M){p.push(M)});var h=this._oldChildren||[];g(p,h),y(l,c),this._initEvents(),this._oldChildren=p;function g(M,C){if(M.length===0&&C.length===0)return;new oM(C,M,x,x).add(w).update(w).remove(Zr(w,null)).execute();function x(S){return S.getId()}function w(S,A){var z=S==null?null:M[S],O=A==null?null:C[A];m(z,O)}}function m(M,C){if(!d&&M&&!M.getValue()&&(M=null),M!==l&&C!==l){if(C&&C.piece)M?(C.piece.updateData(!1,M,n,r,i),s.setItemGraphicEl(M.dataIndex,C.piece)):b(C);else if(M){var x=new eje(M,n,r,i);u.add(x),s.setItemGraphicEl(M.dataIndex,x)}}}function b(M){M&&M.piece&&(u.remove(M.piece),M.piece=null)}function y(M,C){C.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,M,n,r,i):(a.virtualPiece=new eje(M,n,r,i),u.add(a.virtualPiece)),C.piece.off("click"),a.virtualPiece.on("click",function(x){a._rootToNode(C.parentNode)})):a.virtualPiece&&(u.remove(a.virtualPiece),a.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,o=n.seriesModel.getViewRoot();o.eachNode(function(a){if(!i&&a.piece&&a.piece===r.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(a);else if(s==="link"){var l=a.getModel(),c=l.get("link");if(c){var u=l.get("target",!0)||"_blank";AU(c,u)}}i=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:_ve,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},t.type="sunburst",t})(pa),Vmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};Qyt(i);var o=this._levelModels=Vt(n.levels||[],function(l){return new No(l,this,r)},this),a=RAe.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(c,u){var d=a.getNodeByDataIndex(u),p=o[d.depth];return p&&(c.parentModel=p),c})}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=jJ(i,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){nyt(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t})(Ia);function Qyt(e){var t=0;ye(e.children,function(r){Qyt(r);var i=r.value;Ht(i)&&(i=i[0]),t+=i});var n=e.value;Ht(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Ht(e.value)?e.value[0]=n:e.value=n}var nje=Math.PI/180;function Gmr(e,t,n){t.eachSeriesByType(e,function(r){var i=r.get("center"),o=r.get("radius");Ht(o)||(o=[0,o]),Ht(i)||(i=[i,i]);var a=n.getWidth(),s=n.getHeight(),l=Math.min(a,s),c=vn(i[0],a),u=vn(i[1],s),d=vn(o[0],l/2),p=vn(o[1],l/2),h=-r.get("startAngle")*nje,g=r.get("minAngle")*nje,m=r.getData().tree.root,b=r.getViewRoot(),y=b.depth,M=r.get("sort");M!=null&&Zyt(b,M);var C=0;ye(b.children,function(W){!isNaN(W.getValue())&&C++});var x=b.getValue(),w=Math.PI/(x||C)*2,S=b.depth>0,A=b.height-(S?-1:1),z=(p-d)/(A||1),O=r.get("clockwise"),T=r.get("stillShowZeroSum"),R=O?1:-1,P=function(W,j){if(W){var V=j;if(W!==m){var G=W.getValue(),q=x===0&&T?w:G*w;q<g&&(q=g),V=j+R*q;var $=W.depth-y-(S?-1:1),U=d+z*$,X=d+z*($+1),Q=r.getLevelModel(W);if(Q){var re=Q.get("r0",!0),ee=Q.get("r",!0),se=Q.get("radius",!0);se!=null&&(re=se[0],ee=se[1]),re!=null&&(U=vn(re,l/2)),ee!=null&&(X=vn(ee,l/2))}W.setLayout({angle:q,startAngle:j,endAngle:V,clockwise:O,cx:c,cy:u,r0:U,r:X})}if(W.children&&W.children.length){var pe=0;ye(W.children,function(te){pe+=P(te,j+pe)})}return V-j}};if(S){var F=d,N=d+z,L=Math.PI*2;m.setLayout({angle:L,startAngle:h,endAngle:h+L,clockwise:O,cx:c,cy:u,r0:F,r:N})}P(b,h)})}function Zyt(e,t){var n=e.children||[];e.children=$mr(n,t),n.length&&ye(e.children,function(r){Zyt(r,t)})}function $mr(e,t){if(fr(t)){var n=Vt(e,function(i,o){var a=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return a}},index:o}});return n.sort(function(i,o){return t(i.params,o.params)}),Vt(n,function(i){return e[i.index]})}else{var r=t==="asc";return e.sort(function(i,o){var a=(i.getValue()-o.getValue())*(r?1:-1);return a===0?(i.dataIndex-o.dataIndex)*(r?-1:1):a})}}function Umr(e){var t={};function n(r,i,o){for(var a=r;a&&a.depth>1;)a=a.parentNode;var s=i.getColorFromPalette(a.name||a.dataIndex+"",t);return r.depth>1&&An(s)&&(s=hU(s,(r.depth-1)/(o-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var i=r.getData(),o=i.tree;o.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(a,r,o.root.height));var c=i.ensureUniqueItemVisual(a.dataIndex,"style");Nt(c,l)})})}function Xmr(e){e.registerChartView(Hmr),e.registerSeriesModel(Vmr),e.registerLayout(Zr(Gmr,"sunburst")),e.registerProcessor(Zr(ej,"sunburst")),e.registerVisual(Umr),jmr(e)}var rje={color:"fill",borderColor:"stroke"},Ymr={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ly=mo(),Kmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return r2(null,this)},t.prototype.getDataParams=function(n,r,i){var o=e.prototype.getDataParams.call(this,n,r);return i&&(o.info=Ly(i).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Ia);function Qmr(e,t){return t=t||[0,0],Vt(["x","y"],function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))},this)}function Zmr(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Rn(Qmr,e)}}}function Jmr(e,t){return t=t||[0,0],Vt([0,1],function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function evr(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:Rn(Jmr,e)}}}function tvr(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function nvr(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Rn(tvr,e)}}}function rvr(e,t){return t=t||[0,0],Vt(["Radius","Angle"],function(n,r){var i="get"+n+"Axis",o=this[i](),a=t[r],s=e[r]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function ivr(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(i){var o=t.dataToRadius(i[0]),a=n.dataToAngle(i[1]),s=e.coordToPoint([o,a]);return s.push(o,a*Math.PI/180),s},size:Rn(rvr,e)}}}function ovr(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,i){return e.dataToPoint(r,i)}}}}function Jyt(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||Fn(e,"text")))}function eMt(e,t,n){var r=e,i,o,a;if(t==="text")a=r;else{a={},Fn(r,"text")&&(a.text=r.text),Fn(r,"rich")&&(a.rich=r.rich),Fn(r,"textFill")&&(a.fill=r.textFill),Fn(r,"textStroke")&&(a.stroke=r.textStroke),Fn(r,"fontFamily")&&(a.fontFamily=r.fontFamily),Fn(r,"fontSize")&&(a.fontSize=r.fontSize),Fn(r,"fontStyle")&&(a.fontStyle=r.fontStyle),Fn(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=Fn(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Fn(r,"textPosition")&&(i.position=r.textPosition),Fn(r,"textOffset")&&(i.offset=r.textOffset),Fn(r,"textRotation")&&(i.rotation=r.textRotation),Fn(r,"textDistance")&&(i.distance=r.textDistance)}return ije(a,e),ye(a.rich,function(l){ije(l,l)}),{textConfig:i,textContent:o}}function ije(e,t){t&&(t.font=t.textFont||t.font,Fn(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Fn(t,"textAlign")&&(e.align=t.textAlign),Fn(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Fn(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Fn(t,"textWidth")&&(e.width=t.textWidth),Fn(t,"textHeight")&&(e.height=t.textHeight),Fn(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Fn(t,"textPadding")&&(e.padding=t.textPadding),Fn(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Fn(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Fn(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Fn(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Fn(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Fn(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Fn(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function oje(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=e.fill||"#000";aje(r,t);var a=r.textFill==null;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,ye(t.rich,function(s){aje(s,s)}),r}function aje(e,t){t&&(Fn(t,"fill")&&(e.textFill=t.fill),Fn(t,"stroke")&&(e.textStroke=t.fill),Fn(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Fn(t,"font")&&(e.font=t.font),Fn(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Fn(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Fn(t,"fontSize")&&(e.fontSize=t.fontSize),Fn(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Fn(t,"align")&&(e.textAlign=t.align),Fn(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Fn(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Fn(t,"width")&&(e.textWidth=t.width),Fn(t,"height")&&(e.textHeight=t.height),Fn(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Fn(t,"padding")&&(e.textPadding=t.padding),Fn(t,"borderColor")&&(e.textBorderColor=t.borderColor),Fn(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Fn(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Fn(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Fn(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Fn(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Fn(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Fn(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Fn(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Fn(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Fn(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var tMt={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sje=Hi(tMt);Wf(_b,function(e,t){return e[t]=1,e},{});_b.join(", ");var UU=["","style","shape","extra"],jP=mo();function XAe(e,t,n,r,i){var o=e+"Animation",a=ok(e,r,i)||{},s=jP(t).userDuring;return a.duration>0&&(a.during=s?Rn(uvr,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Nt(a,n[o]),a}function Z7(e,t,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=jP(e),c=t.style;l.userDuring=t.during;var u={},d={};if(pvr(e,t,d),cje("shape",t,d),cje("extra",t,d),!o&&s&&(dvr(e,t,u),lje("shape",e,t,u),lje("extra",e,t,u),hvr(e,t,c,u)),d.style=c,avr(e,d,a),lvr(e,t),s)if(o){var p={};ye(UU,function(g){var m=g?t[g]:t;m&&m.enterFrom&&(g&&(p[g]=p[g]||{}),Nt(g?p[g]:p,m.enterFrom))});var h=XAe("enter",e,t,n,i);h.duration>0&&e.animateFrom(p,h)}else svr(e,t,i||0,n,u);nMt(e,t),c?e.dirty():e.markRedraw()}function nMt(e,t){for(var n=jP(e).leaveToProps,r=0;r<UU.length;r++){var i=UU[r],o=i?t[i]:t;o&&o.leaveTo&&(n||(n=jP(e).leaveToProps={}),i&&(n[i]=n[i]||{}),Nt(i?n[i]:n,o.leaveTo))}}function GJ(e,t,n,r){if(e){var i=e.parent,o=jP(e).leaveToProps;if(o){var a=XAe("update",e,t,n,0);a.done=function(){i.remove(e)},e.animateTo(o,a)}else i.remove(e)}}function oz(e){return e==="all"}function avr(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,o=0;o<i.length;o++){var a=i[o];a.targetName==="style"&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function svr(e,t,n,r,i){if(i){var o=XAe("update",e,t,r,n);o.duration>0&&e.animateFrom(i,o)}}function lvr(e,t){Fn(t,"silent")&&(e.silent=t.silent),Fn(t,"ignore")&&(e.ignore=t.ignore),e instanceof qf&&Fn(t,"invisible")&&(e.invisible=t.invisible),e instanceof Di&&Fn(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Av={},cvr={setTransform:function(e,t){return Av.el[e]=t,this},getTransform:function(e){return Av.el[e]},setShape:function(e,t){var n=Av.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Av.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Av.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Av.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Av.el.extra||(Av.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Av.el.extra;if(t)return t[e]}};function uvr(){var e=this,t=e.el;if(t){var n=jP(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}Av.el=t,r(cvr)}}function lje(e,t,n,r){var i=n[e];if(i){var o=t[e],a;if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[e]={}),oz(l))Nt(a,o);else for(var c=Ea(l),u=0;u<c.length;u++){var d=c[u],p=o[d];a[d]=p}else if(oz(s)||hi(s,e)>=0){!a&&(a=r[e]={});for(var h=Hi(o),u=0;u<h.length;u++){var d=h[u],p=o[d];fvr(i[d],p)&&(a[d]=p)}}}}}function cje(e,t,n){var r=t[e];if(r)for(var i=n[e]={},o=Hi(r),a=0;a<o.length;a++){var s=o[a];i[s]=zF(r[s])}}function dvr(e,t,n){for(var r=t.transition,i=oz(r)?_b:Ea(r||[]),o=0;o<i.length;o++){var a=i[o];if(!(a==="style"||a==="shape"||a==="extra")){var s=e[a];n[a]=s}}}function pvr(e,t,n){for(var r=0;r<sje.length;r++){var i=sje[r],o=tMt[i],a=t[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var r=0;r<_b.length;r++){var s=_b[r];t[s]!=null&&(n[s]=t[s])}}function hvr(e,t,n,r){if(n){var i=e.style,o;if(i){var a=n.transition,s=t.transition;if(a&&!oz(a)){var l=Ea(a);!o&&(o=r.style={});for(var c=0;c<l.length;c++){var u=l[c],d=i[u];o[u]=d}}else if(e.getAnimationStyleProps&&(oz(s)||oz(a)||hi(s,"style")>=0)){var p=e.getAnimationStyleProps(),h=p?p.style:null;if(h){!o&&(o=r.style={});for(var g=Hi(n),c=0;c<g.length;c++){var u=g[c];if(h[u]){var d=i[u];o[u]=d}}}}}}}function fvr(e,t){return Ad(e)?e!==t:e!=null&&isFinite(e)}var rMt=mo(),gvr=["percent","easing","shape","style","extra"];function iMt(e){e.stopAnimation("keyframe"),e.attr(rMt(e))}function XU(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Ht(t)){ye(t,function(s){XU(e,s,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var o=ok("enter",n,0);i=o&&o.duration}if(!(!r||!i)){var a=rMt(e);ye(UU,function(s){if(!(s&&!e[s])){var l;r.sort(function(c,u){return c.percent-u.percent}),ye(r,function(c){var u=e.animators,d=s?c[s]:c;if(d){var p=Hi(d);if(s||(p=Lo(p,function(m){return hi(gvr,m)<0})),!!p.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<u.length;h++)u[h]!==l&&u[h].targetName===l.targetName&&u[h].stopTracks(p);s&&(a[s]=a[s]||{});var g=s?a[s]:a;ye(p,function(m){g[m]=((s?e[s]:e)||{})[m]}),l.whenWithKeys(i*c.percent,d,p,c.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var _y="emphasis",mx="normal",YAe="blur",KAe="select",cw=[mx,_y,YAe,KAe],Xse={normal:["itemStyle"],emphasis:[_y,"itemStyle"],blur:[YAe,"itemStyle"],select:[KAe,"itemStyle"]},Yse={normal:["label"],emphasis:[_y,"label"],blur:[YAe,"label"],select:[KAe,"label"]},mvr=["x","y"],vvr="e\0\0",Wh={normal:{},emphasis:{},blur:{},select:{}},bvr={cartesian2d:Zmr,geo:evr,single:nvr,polar:ivr,calendar:ovr};function Nve(e){return e instanceof Di}function Fve(e){return e instanceof qf}function yvr(e,t){t.copyTransform(e),Fve(t)&&Fve(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,Nve(t)&&Nve(e)&&t.setShape(e.shape))}var Mvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this._progressiveEls=null;var a=this._data,s=n.getData(),l=this.group,c=uje(n,s,r,i);a||l.removeAll(),s.diff(a).add(function(d){Kse(i,null,d,c(d,o),n,l,s)}).remove(function(d){var p=a.getItemGraphicEl(d);p&&GJ(p,Ly(p).option,n)}).update(function(d,p){var h=a.getItemGraphicEl(p);Kse(i,h,d,c(d,o),n,l,s)}).execute();var u=n.get("clip",!0)?ZB(n.coordinateSystem,!1,n):null;u?l.setClipPath(u):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(n,r,i,o,a){var s=r.getData(),l=uje(r,s,i,o),c=this._progressiveEls=[];function u(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var d=n.start;d<n.end;d++){var p=Kse(null,null,d,l(d,a),r,this.group,s);p&&(p.traverse(u),c.push(p))}},t.prototype.eachRendered=function(n){Fw(this._progressiveEls||this.group,n)},t.prototype.filterForExposedEvent=function(n,r,i,o){var a=r.element;if(a==null||i.name===a)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===a)return!0;return!1},t.type="custom",t})(pa);function QAe(e){var t=e.type,n;if(t==="path"){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=sMt(r);n=GB(o,null,i,r.layout||"center"),Ly(n).customPathData=o}else if(t==="image")n=new Du({}),Ly(n).customImagePath=e.style.image;else if(t==="text")n=new oo({});else if(t==="group")n=new Ir;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var a=CJ(t);if(!a){var s="";Qo(s)}n=new a}return Ly(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function ZAe(e,t,n,r,i,o,a){iMt(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=mvr);var l=r&&r.style;if(l){if(t.type==="text"){var c=l;Fn(c,"textFill")&&(c.fill=c.textFill),Fn(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,d=Nve(t)?l.decal:null;e&&d&&(d.dirty=!0,u=FP(d,e)),l.__decalPattern=u}if(Fve(t)&&l){var u=l.__decalPattern;u&&(l.decal=u)}Z7(t,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),XU(t,r.keyframeAnimation,o)}function oMt(e,t,n,r,i){var o=t.isGroup?null:t,a=i&&i[e].cfg;if(o){var s=o.ensureState(e);if(r===!1){var l=o.getState(e);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),Qz(o)}}function Cvr(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=t.z2;a!=null&&(r.z2=a||0);for(var s=0;s<cw.length;s++)xvr(r,t,cw[s])}}function xvr(e,t,n){var r=n===mx,i=r?t:YU(t,n),o=i?i.z2:null,a;o!=null&&(a=r?e:e.ensureState(n),a.z2=o||0)}function uje(e,t,n,r){var i=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):bvr[o.type](o));for(var s=br({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:S,ordinalRawValue:w,styleEmphasis:A,visual:T,barLayout:R,currentSeriesIndices:P,font:F},a.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:wvr(e.getData())},c,u,d={},p={},h={},g={},m=0;m<cw.length;m++){var b=cw[m];h[b]=e.getModel(Xse[b]),g[b]=e.getModel(Yse[b])}function y(N){return N===c?u||(u=t.getItemModel(N)):t.getItemModel(N)}function M(N,L){return t.hasItemOption?N===c?d[L]||(d[L]=y(N).getModel(Xse[L])):y(N).getModel(Xse[L]):h[L]}function C(N,L){return t.hasItemOption?N===c?p[L]||(p[L]=y(N).getModel(Yse[L])):y(N).getModel(Yse[L]):g[L]}return function(N,L){return c=N,u=null,d={},p={},i&&i(br({dataIndexInside:N,dataIndex:t.getRawIndex(N),actionType:L?L.type:null},l),s)};function x(N,L){return L==null&&(L=c),t.getStore().get(t.getDimensionIndex(N||0),L)}function w(N,L){L==null&&(L=c),N=N||0;var W=t.getDimensionInfo(N);if(!W){var j=t.getDimensionIndex(N);return j>=0?t.getStore().get(j,L):void 0}var V=t.get(W.name,L),G=W&&W.ordinalMeta;return G?G.categories[V]:V}function S(N,L){L==null&&(L=c);var W=t.getItemVisual(L,"style"),j=W&&W.fill,V=W&&W.opacity,G=M(L,mx).getItemStyle();j!=null&&(G.fill=j),V!=null&&(G.opacity=V);var q={inheritColor:An(j)?j:"#000"},$=C(L,mx),U=Za($,null,q,!1,!0);U.text=$.getShallow("show")?Xr(e.getFormattedLabel(L,mx),WP(t,L)):null;var X=wU($,q,!1);return O(N,G),G=oje(G,U,X),N&&z(G,N),G.legacy=!0,G}function A(N,L){L==null&&(L=c);var W=M(L,_y).getItemStyle(),j=C(L,_y),V=Za(j,null,null,!0,!0);V.text=j.getShallow("show")?hm(e.getFormattedLabel(L,_y),e.getFormattedLabel(L,mx),WP(t,L)):null;var G=wU(j,null,!0);return O(N,W),W=oje(W,V,G),N&&z(W,N),W.legacy=!0,W}function z(N,L){for(var W in L)Fn(L,W)&&(N[W]=L[W])}function O(N,L){N&&(N.textFill&&(L.textFill=N.textFill),N.textPosition&&(L.textPosition=N.textPosition))}function T(N,L){if(L==null&&(L=c),Fn(rje,N)){var W=t.getItemVisual(L,"style");return W?W[rje[N]]:null}if(Fn(Ymr,N))return t.getItemVisual(L,N)}function R(N){if(o.type==="cartesian2d"){var L=o.getBaseAxis();return Zcr(br({axis:L},N))}}function P(){return n.getCurrentSeriesIndices()}function F(N){return ISe(N,n)}}function wvr(e){var t={};return ye(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=t[i]=t[i]||[];o[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function Kse(e,t,n,r,i,o,a){if(!r){o.remove(t);return}var s=JAe(e,t,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&sl(s,r.focus,r.blurScope,r.emphasisDisabled),s}function JAe(e,t,n,r,i,o){var a=-1,s=t;t&&aMt(t,r,i)&&(a=hi(o.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=QAe(r),s&&yvr(s,c)),r.morph===!1?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),Wh.normal.cfg=Wh.normal.conOpt=Wh.emphasis.cfg=Wh.emphasis.conOpt=Wh.blur.cfg=Wh.blur.conOpt=Wh.select.cfg=Wh.select.conOpt=null,Wh.isLegacy=!1,Avr(c,n,r,i,l,Wh),Svr(c,n,r,i,l),ZAe(e,c,n,r,Wh,i,l),Fn(r,"info")&&(Ly(c).info=r.info);for(var u=0;u<cw.length;u++){var d=cw[u];if(d!==mx){var p=YU(r,d),h=eOe(r,p,d);oMt(d,c,p,h,Wh)}}return Cvr(c,r,i),r.type==="group"&&Ovr(e,c,n,r,i),a>=0?o.replaceAt(c,a):o.add(c),c}function aMt(e,t,n){var r=Ly(e),i=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&Rvr(o)&&sMt(o)!==r.customPathData||i==="image"&&Fn(a,"image")&&a.image!==r.customImagePath}function Svr(e,t,n,r,i){var o=n.clipPath;if(o===!1)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&aMt(a,o,r)&&(a=null),a||(a=QAe(o),e.setClipPath(a)),ZAe(null,a,t,o,null,r,i)}}function Avr(e,t,n,r,i,o){if(!e.isGroup){dje(n,null,o),dje(n,_y,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(a!=null||s!=null||c!=null||l!=null){var u=e.getTextContent();if(a===!1)u&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=QAe(a),e.setTextContent(u)),ZAe(null,u,t,a,null,r,i);for(var d=a&&a.style,p=0;p<cw.length;p++){var h=cw[p];if(h!==mx){var g=o[h].conOpt;oMt(h,u,g,eOe(a,g,h),null)}}d?u.dirty():u.markRedraw()}}}}function dje(e,t,n){var r=t?YU(e,t):e,i=t?eOe(e,r,_y):e.style,o=e.type,a=r?r.textConfig:null,s=e.textContent,l=s?t?YU(s,t):s:null;if(i&&(n.isLegacy||Jyt(i,o,!!a,!!l))){n.isLegacy=!0;var c=eMt(i,o,!t);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=l}function YU(e,t){return t?e?e[t]:null:e}function eOe(e,t,n){var r=t&&t.style;return r==null&&n===_y&&e&&(r=e.styleEmphasis),r}function Ovr(e,t,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,c=s===!1;if(!(!a&&!l&&!c)){if(l){Tvr({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:t});return}c&&t.removeAll();for(var u=0;u<a;u++){var d=o[u],p=t.childAt(u);d?(d.ignore==null&&(d.ignore=!1),JAe(e,p,n,d,i,t)):p.ignore=!0}for(var h=t.childCount()-1;h>=u;h--){var g=t.childAt(h);zvr(t,g,i)}}}function zvr(e,t,n){t&&GJ(t,Ly(e).option,n)}function Tvr(e){new oM(e.oldChildren,e.newChildren,pje,pje,e).add(hje).update(hje).remove(Evr).execute()}function pje(e,t){var n=e&&e.name;return n??vvr+t}function hje(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,i=t!=null?n.oldChildren[t]:null;JAe(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function Evr(e){var t=this.context,n=t.oldChildren[e];n&&GJ(n,Ly(n).option,t.seriesModel)}function sMt(e){return e&&(e.pathData||e.d)}function Rvr(e){return e&&(Fn(e,"pathData")||Fn(e,"d"))}function Ivr(e){e.registerChartView(Mvr),e.registerSeriesModel(Kmr)}var JA=mo(),fje=Or,Qse=Rn,tOe=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,o,t,n,r);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=u;var d=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Ir,this.createPointerEl(s,c,t,n),this.createLabelEl(s,c,t,n),r.getZr().add(s);else{var p=Zr(gje,n,d);this.updatePointerEl(s,c,p),this.updateLabelEl(s,c,p,n)}vje(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=wAe(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,o){},e.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=JA(t).pointerEl=new G3[o.type](fje(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=JA(t).labelEl=new oo(fje(n.label));t.add(o),mje(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=JA(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var o=JA(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),mje(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=ak(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){nM(c.event)},onmousedown:Qse(this._onHandleDragMove,this,0,0),drift:Qse(this._onHandleDragMove,this),ondragend:Qse(this._onHandleDragEnd,this)}),r.add(i)),vje(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Ht(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,hk(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){gje(this._axisPointerModel,!n&&this._moveAnimation,this._handle,Zse(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(Zse(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(Zse(i)),JA(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xq(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e})();function gje(e,t,n,r){lMt(JA(n).lastProp,r)||(JA(n).lastProp=r,t?Ao(n,r,e):(n.stopAnimation(),n.attr(r)))}function lMt(e,t){if(xr(e)&&xr(t)){var n=!0;return ye(t,function(r,i){n=n&&lMt(e[i],r)}),!!n}else return e===t}function mje(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Zse(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function vje(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function nOe(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function cMt(e,t,n,r,i){var o=n.get("value"),a=uMt(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=$3(s.get("padding")||0),c=s.getFont(),u=qB(a,c),d=i.position,p=u.width+l[1]+l[3],h=u.height+l[0]+l[2],g=i.align;g==="right"&&(d[0]-=p),g==="center"&&(d[0]-=p/2);var m=i.verticalAlign;m==="bottom"&&(d[1]-=h),m==="middle"&&(d[1]-=h/2),Pvr(d,p,h,r);var b=s.get("backgroundColor");(!b||b==="auto")&&(b=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:Za(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:b}),z2:10}}function Pvr(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function uMt(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:pAe(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};ye(r,function(l){var c=n.getSeriesByIndex(l.seriesIndex),u=l.dataIndexInside,d=c&&c.getDataParams(u);d&&s.seriesData.push(d)}),An(a)?o=a.replace("{value}",o):fr(a)&&(o=a(s))}return o}function rOe(e,t,n){var r=gp();return Nw(r,r,n.rotation),Sm(r,r,n.position),mm([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function dMt(e,t,n,r,i,o){var a=u1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),cMt(t,r,i,o,{position:rOe(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function iOe(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function pMt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function bje(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:o,clockwise:!0}}var Dvr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,c=o.get("type"),u=yje(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(c&&c!=="none"){var p=nOe(o),h=kvr[c](s,d,u);h.style=p,n.graphicKey=h.type,n.pointer=h}var g=bve(l.model,i);dMt(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=bve(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=rOe(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),c=yje(s,a).getOtherAxis(a).getGlobalExtent(),u=a.dim==="x"?0:1,d=[n.x,n.y];d[u]+=r[u],d[u]=Math.min(l[1],d[u]),d[u]=Math.max(l[0],d[u]);var p=(c[1]+c[0])/2,h=[p,p];h[u]=d[u];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:n.rotation,cursorPoint:h,tooltipOption:g[u]}},t})(tOe);function yje(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var kvr={line:function(e,t,n){var r=iOe([t,n[0]],[t,n[1]],Mje(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:pMt([t-r/2,n[0]],[r,i],Mje(e))}}};function Mje(e){return e.dim==="x"?0:1}var Lvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(Ri),Ay=mo(),_vr=ye;function hMt(e,t,n){if(!Ii.node){var r=t.getZr();Ay(r).records||(Ay(r).records={}),Nvr(r,t);var i=Ay(r).records[e]||(Ay(r).records[e]={});i.handler=n}}function Nvr(e,t){if(Ay(e).initialized)return;Ay(e).initialized=!0,n("click",Zr(Cje,"click")),n("mousemove",Zr(Cje,"mousemove")),n("globalout",Wvr);function n(r,i){e.on(r,function(o){var a=qvr(t);_vr(Ay(e).records,function(s){s&&i(s,o,a.dispatchAction)}),Fvr(a.pendings,t)})}}function Fvr(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Wvr(e,t,n){e.handler("leave",null,n)}function Cje(e,t,n,r){t.handler(e,n,r)}function qvr(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Wve(e,t){if(!Ii.node){var n=t.getZr(),r=(Ay(n).records||{})[e];r&&(Ay(n).records[e]=null)}}var Bvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";hMt("axisPointer",i,function(s,l,c){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){Wve("axisPointer",r)},t.prototype.dispose=function(n,r){Wve("axisPointer",r)},t.type="axisPointer",t})(us);function fMt(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Yz(o,e);if(a==null||a<0||Ht(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),d=u.dim,p=c.dim,h=d==="x"||d==="radius"?1:0,g=o.mapDimension(p),m=[];m[h]=o.get(g,a),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(o.getValues(Vt(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var b=s.getBoundingRect().clone();b.applyTransform(s.transform),n=[b.x+b.width/2,b.y+b.height/2]}return{point:n,el:s}}var xje=mo();function jvr(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Rn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){J7(i)&&(i=fMt({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=J7(i),c=o.axesInfo,u=s.axesInfo,d=r==="leave"||J7(i),p={},h={},g={list:[],map:{}},m={showPointer:Zr(Vvr,h),showTooltip:Zr(Gvr,g)};ye(s.coordSysMap,function(y,M){var C=l||y.containPoint(i);ye(s.coordSysAxesInfo[M],function(x,w){var S=x.axis,A=Yvr(c,x);if(!d&&C&&(!c||A)){var z=A&&A.value;z==null&&!l&&(z=S.pointToData(i)),z!=null&&wje(x,z,m,!1,p)}})});var b={};return ye(u,function(y,M){var C=y.linkGroup;C&&!h[M]&&ye(C.axesInfo,function(x,w){var S=h[w];if(x!==y&&S){var A=S.value;C.mapper&&(A=y.axis.scale.parse(C.mapper(A,Sje(x),Sje(y)))),b[y.key]=A}})}),ye(b,function(y,M){wje(u[M],y,m,!0,p)}),$vr(h,u,p),Uvr(g,i,e,a),Xvr(u,a,n),p}}function wje(e,t,n,r,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=Hvr(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Nt(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function Hvr(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return ye(t.seriesModels,function(l,c){var u=l.getData().mapDimensionsAll(r),d,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(u,e,n);p=h.dataIndices,d=h.nestestValue}else{if(p=l.getData().indicesOfNearest(u[0],e,n.type==="category"?.5:null),!p.length)return;d=l.getData().get(u[0],p[0])}if(!(d==null||!isFinite(d))){var g=e-d,m=Math.abs(g);m<=a&&((m<a||g>=0&&s<0)&&(a=m,s=g,i=d,o.length=0),ye(p,function(b){o.push({seriesIndex:l.seriesIndex,dataIndexInside:b,dataIndex:l.getData().getRawIndex(b)})}))}}),{payloadBatch:o,snapToValue:i}}function Vvr(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Gvr(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,c=Eq(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function $vr(e,t,n){var r=n.axesInfo=[];ye(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function Uvr(e,t,n,r){if(J7(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Xvr(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=xje(r)[i]||{},a=xje(r)[i]={};ye(e,function(c,u){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&ye(d.seriesDataIndices,function(p){var h=p.seriesIndex+" | "+p.dataIndex;a[h]=p})});var s=[],l=[];ye(o,function(c,u){!a[u]&&l.push(c)}),ye(a,function(c,u){!o[u]&&s.push(c)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Yvr(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function Sje(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function J7(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function ij(e){Y3.registerAxisPointerClass("CartesianAxisPointer",Dvr),e.registerComponentModel(Lvr),e.registerComponentView(Bvr),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Ht(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=o1r(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jvr)}function Kvr(e){Si(j2t),Si(ij)}var Qvr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,c=l.getOtherAxis(s),u=c.getExtent(),d=s.dataToCoord(r),p=o.get("type");if(p&&p!=="none"){var h=nOe(o),g=Jvr[p](s,l,d,u);g.style=h,n.graphicKey=g.type,n.pointer=g}var m=o.get(["label","margin"]),b=Zvr(r,i,o,l,m);cMt(n,i,o,a,b)},t})(tOe);function Zvr(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),c,u,d;if(o.dim==="radius"){var p=gp();Nw(p,p,s),Sm(p,p,[r.cx,r.cy]),c=mm([a,-i],p);var h=t.getModel("axisLabel").get("rotate")||0,g=u1.innerTextLayout(s,h*Math.PI/180,-1);u=g.textAlign,d=g.textVerticalAlign}else{var m=l[1];c=r.coordToPoint([m+i,a]);var b=r.cx,y=r.cy;u=Math.abs(c[0]-b)/m<.3?"center":c[0]>b?"left":"right",d=Math.abs(c[1]-y)/m<.3?"middle":c[1]>y?"top":"bottom"}return{position:c,align:u,verticalAlign:d}}var Jvr={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:iOe(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:bje(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(-n+i/2)*o)}:{type:"Sector",shape:bje(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},ebr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,i=this.ecModel;return i.eachComponent(n,function(o){o.getCoordSysModel()===this&&(r=o)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(Ri),oOe=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Sc).models[0]},t.type="polarAxis",t})(Ri);Hl(oOe,vk);var tbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t})(oOe),nbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t})(oOe),aOe=(function(e){gt(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t})(ng);aOe.prototype.dataToRadius=ng.prototype.dataToCoord;aOe.prototype.radiusToData=ng.prototype.coordToData;var rbr=mo(),sOe=(function(e){gt(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),i=n.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),c=Math.abs(l),u=qB(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(u.height,7),p=d/c;isNaN(p)&&(p=1/0);var h=Math.max(0,Math.floor(p)),g=rbr(n.model),m=g.lastAutoInterval,b=g.lastTickCount;return m!=null&&b!=null&&Math.abs(m-h)<=1&&Math.abs(b-a)<=1&&m>h?h=m:(g.lastTickCount=a,g.lastAutoInterval=h),h},t})(ng);sOe.prototype.dataToAngle=ng.prototype.dataToCoord;sOe.prototype.angleToData=ng.prototype.coordToData;var gMt=["radius","angle"],ibr=(function(){function e(t){this.dimensions=gMt,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new aOe,this._angleAxis=new sOe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===t&&n.push(r),i.scale.type===t&&n.push(i),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)])},e.prototype.pointToData=function(t,n){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);i.inverse?a=s-360:s=a+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var c=Math.atan2(-r,n)/Math.PI*180,u=c<a?1:-1;c<a||c>s;)c+=u*360;return[l,c]},e.prototype.coordToPoint=function(t){var n=t[0],r=t[1]/180*Math.PI,i=Math.cos(r)*n+this.cx,o=-Math.sin(r)*n+this.cy;return[i,o]},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var i=t.getExtent(),o=Math.PI/180,a=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:t.inverse,contain:function(s,l){var c=s-this.cx,u=l-this.cy,d=c*c+u*u,p=this.r,h=this.r0;return p!==h&&d-a<=p*p&&d+a>=h*h}}},e.prototype.convertToPixel=function(t,n,r){var i=Aje(n);return i===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var i=Aje(n);return i===this?this.pointToData(r):null},e})();function Aje(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function obr(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=vn(r[0],i),e.cy=vn(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,l=t.get("radius");l==null?l=[0,"100%"]:Ht(l)||(l=[0,l]);var c=[vn(l[0],s),vn(l[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function abr(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();ye(_U(l,"radius"),function(c){i.scale.unionExtentFromData(l,c)}),ye(_U(l,"angle"),function(c){r.scale.unionExtentFromData(l,c)})}}),Jz(r.scale,r.model),Jz(i.scale,i.model),r.type==="category"&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function sbr(e){return e.mainType==="angleAxis"}function Oje(e,t){var n;if(e.type=t.get("type"),e.scale=YB(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),sbr(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=(n=t.get("endAngle"))!==null&&n!==void 0?n:r+(e.inverse?-360:360);e.setExtent(r,i)}t.axis=e,e.model=t}var lbr={dimensions:gMt,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,i){var o=new ibr(i+"");o.update=abr;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");Oje(a,l),Oje(s,c),obr(o,r,t),n.push(o),r.coordinateSystem=o,o.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",Sc).models[0];r.coordinateSystem=i.coordinateSystem}}),n}},cbr=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function jV(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function HV(e){var t=e.getRadiusAxis();return t.inverse?0:1}function zje(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var ubr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=n.axis,o=i.polar,a=o.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),c=Vt(i.getViewLabels(),function(u){u=Or(u);var d=i.scale,p=d.type==="ordinal"?d.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=i.dataToCoord(p),u});zje(c),zje(s),ye(cbr,function(u){n.get([u,"show"])&&(!i.scale.isBlank()||u==="axisLine")&&dbr[u](this.group,n,o,s,l,a,c)},this)}},t.type="angleAxis",t})(Y3),dbr={axisLine:function(e,t,n,r,i,o){var a=t.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,c=s.getExtent(),u=HV(n),d=u?0:1,p,h=Math.abs(c[1]-c[0])===360?"Circle":"Arc";o[d]===0?p=new G3[h]({shape:{cx:n.cx,cy:n.cy,r:o[u],startAngle:-c[0]*l,endAngle:-c[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):p=new nk({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[d]},style:a.getLineStyle(),z2:1,silent:!0}),p.style.fill=null,e.add(p)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[HV(n)],c=Vt(r,function(u){return new Jc({shape:jV(n,[l,l+s],u.coord)})});e.add(Xp(c,{style:br(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),c=o[HV(n)],u=[],d=0;d<i.length;d++)for(var p=0;p<i[d].length;p++)u.push(new Jc({shape:jV(n,[c,c+l],i[d][p].coord)}));e.add(Xp(u,{style:br(s.getModel("lineStyle").getLineStyle(),br(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");ye(a,function(d,p){var h=l,g=d.tickValue,m=o[HV(n)],b=n.coordToPoint([m+c,d.coord]),y=n.cx,M=n.cy,C=Math.abs(b[0]-y)/m<.3?"center":b[0]>y?"left":"right",x=Math.abs(b[1]-M)/m<.3?"middle":b[1]>M?"top":"bottom";if(s&&s[g]){var w=s[g];xr(w)&&w.textStyle&&(h=new No(w.textStyle,l,l.ecModel))}var S=new oo({silent:u1.isLabelSilent(t),style:Za(h,{x:b[0],y:b[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:C,verticalAlign:x})});if(e.add(S),u){var A=u1.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=d.rawLabel,_r(S).eventData=A}},this)},splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d<r.length;d++){var p=c++%l.length;u[p]=u[p]||[],u[p].push(new Jc({shape:jV(n,o,r[d].coord)}))}for(var d=0;d<u.length;d++)e.add(Xp(u[d],{style:br({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],c=0;c<i.length;c++)for(var u=0;u<i[c].length;u++)l.push(new Jc({shape:jV(n,o,i[c][u].coord)}));e.add(Xp(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,o){if(r.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=Math.PI/180,p=-r[0].coord*d,h=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),m=t.get("clockwise"),b=1,y=r.length;b<=y;b++){var M=b===y?r[0].coord:r[b].coord,C=c++%l.length;u[C]=u[C]||[],u[C].push(new A0({shape:{cx:n.cx,cy:n.cy,r0:h,r:g,startAngle:p,endAngle:-M*d,clockwise:m},silent:!0})),p=-M*d}for(var b=0;b<u.length;b++)e.add(Xp(u[b],{style:br({fill:l[b%l.length]},s.getAreaStyle()),silent:!0}))}}},pbr=["axisLine","axisTickLabel","axisName"],hbr=["splitLine","splitArea","minorSplitLine"],fbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=this._axisGroup,o=this._axisGroup=new Ir;this.group.add(o);var a=n.axis,s=a.polar,l=s.getAngleAxis(),c=a.getTicksCoords(),u=a.getMinorTicksCoords(),d=l.getExtent()[0],p=a.getExtent(),h=mbr(s,n,d),g=new u1(n,h);ye(pbr,g.add,g),o.add(g.getGroup()),$B(i,o,n),ye(hbr,function(m){n.get([m,"show"])&&!a.scale.isBlank()&&gbr[m](this.group,n,s,d,p,c,u)},this)}},t.type="radiusAxis",t})(Y3),gbr={splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),c=0,u=n.getAngleAxis(),d=Math.PI/180,p=u.getExtent(),h=Math.abs(p[1]-p[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],m=0;m<o.length;m++){var b=c++%l.length;g[b]=g[b]||[],g[b].push(new G3[h]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[m].coord,0),startAngle:-p[0]*d,endAngle:-p[1]*d,clockwise:u.inverse}}))}for(var m=0;m<g.length;m++)e.add(Xp(g[m],{style:br({stroke:l[m%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,o,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),c=[],u=0;u<a.length;u++)for(var d=0;d<a[u].length;d++)c.push(new t2({shape:{cx:n.cx,cy:n.cy,r:a[u][d].coord}}));e.add(Xp(c,{style:br({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,o){if(o.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=o[0].coord,p=1;p<o.length;p++){var h=c++%l.length;u[h]=u[h]||[],u[h].push(new A0({shape:{cx:n.cx,cy:n.cy,r0:d,r:o[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=o[p].coord}for(var p=0;p<u.length;p++)e.add(Xp(u[p],{style:br({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}};function mbr(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function mMt(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function vMt(e,t){return t.dim+e.model.componentIndex}function vbr(e,t,n){var r={},i=bbr(Lo(t.getSeriesByType(e),function(o){return!t.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(o){if(o.coordinateSystem.type==="polar"){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=vMt(s,l),u=mMt(o),d=i[c][u],p=d.offset,h=d.width,g=s.getOtherAxis(l),m=o.coordinateSystem.cx,b=o.coordinateSystem.cy,y=o.get("barMinHeight")||0,M=o.get("barMinAngle")||0;r[u]=r[u]||[];for(var C=a.mapDimension(g.dim),x=a.mapDimension(l.dim),w=aM(a,C),S=l.dim!=="radius"||!o.get("roundCap",!0),A=g.model,z=A.get("startValue"),O=g.dataToCoord(z||0),T=0,R=a.count();T<R;T++){var P=a.get(C,T),F=a.get(x,T),N=P>=0?"p":"n",L=O;w&&(r[u][F]||(r[u][F]={p:O,n:O}),L=r[u][F][N]);var W=void 0,j=void 0,V=void 0,G=void 0;if(g.dim==="radius"){var q=g.dataToCoord(P)-O,$=l.dataToCoord(F);Math.abs(q)<y&&(q=(q<0?-1:1)*y),W=L,j=L+q,V=$-p,G=V-h,w&&(r[u][F][N]=j)}else{var U=g.dataToCoord(P,S)-O,X=l.dataToCoord(F);Math.abs(U)<M&&(U=(U<0?-1:1)*M),W=X+p,j=W+h,V=L,G=L+U,w&&(r[u][F][N]=G)}a.setItemLayout(T,{cx:m,cy:b,r0:W,r:j,startAngle:-V*Math.PI/180,endAngle:-G*Math.PI/180,clockwise:V>=G})}}})}function bbr(e){var t={};ye(e,function(r,i){var o=r.getData(),a=r.coordinateSystem,s=a.getBaseAxis(),l=vMt(a,s),c=s.getExtent(),u=s.type==="category"?s.getBandWidth():Math.abs(c[1]-c[0])/o.count(),d=t[l]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},p=d.stacks;t[l]=d;var h=mMt(r);p[h]||d.autoWidthCount++,p[h]=p[h]||{width:0,maxWidth:0};var g=vn(r.get("barWidth"),u),m=vn(r.get("barMaxWidth"),u),b=r.get("barGap"),y=r.get("barCategoryGap");g&&!p[h].width&&(g=Math.min(d.remainedWidth,g),p[h].width=g,d.remainedWidth-=g),m&&(p[h].maxWidth=m),b!=null&&(d.gap=b),y!=null&&(d.categoryGap=y)});var n={};return ye(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=vn(r.categoryGap,a),l=vn(r.gap,1),c=r.remainedWidth,u=r.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),ye(o,function(m,b){var y=m.maxWidth;y&&y<d&&(y=Math.min(y,c),m.width&&(y=Math.min(y,m.width)),c-=y,m.width=y,u--)}),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var p=0,h;ye(o,function(m,b){m.width||(m.width=d),h=m,p+=m.width*(1+l)}),h&&(p-=h.width*l);var g=-p/2;ye(o,function(m,b){n[i][b]=n[i][b]||{offset:g,width:m.width},g+=m.width*(1+l)})}),n}var ybr={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Mbr={splitNumber:5},Cbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t})(us);function xbr(e){Si(ij),Y3.registerAxisPointerClass("PolarAxisPointer",Qvr),e.registerCoordinateSystem("polar",lbr),e.registerComponentModel(ebr),e.registerComponentView(Cbr),qP(e,"angle",tbr,ybr),qP(e,"radius",nbr,Mbr),e.registerComponentView(ubr),e.registerComponentView(fbr),e.registerLayout(Zr(vbr,"bar"))}function qve(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[a==="vertical"?c.vertical[o]:l[0],a==="horizontal"?c.horizontal[o]:l[3]];var u={horizontal:0,vertical:1};i.rotation=Math.PI/2*u[a];var d={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),xu(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=t.rotate;return p==null&&(p=e.get(["axisLabel","rotate"])),i.labelRotation=o==="top"?-p:p,i.z2=1,i}var wbr=["axisLine","axisTickLabel","axisName"],Sbr=["splitArea","splitLine"],Abr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return t.prototype.render=function(n,r,i,o){var a=this.group;a.removeAll();var s=this._axisGroup;this._axisGroup=new Ir;var l=qve(n),c=new u1(n,l);ye(wbr,c.add,c),a.add(this._axisGroup),a.add(c.getGroup()),ye(Sbr,function(u){n.get([u,"show"])&&Obr[u](this,this.group,this._axisGroup,n)},this),$B(s,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)},t.prototype.remove=function(){W2t(this)},t.type="singleAxis",t})(Y3),Obr={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),c=r.coordinateSystem.getRect(),u=i.isHorizontal(),d=[],p=0,h=i.getTicksCoords({tickModel:o}),g=[],m=[],b=0;b<h.length;++b){var y=i.toGlobalCoord(h[b].coord);u?(g[0]=y,g[1]=c.y,m[0]=y,m[1]=c.y+c.height):(g[0]=c.x,g[1]=y,m[0]=c.x+c.width,m[1]=y);var M=new Jc({shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},silent:!0});_P(M.shape,l);var C=p++%s.length;d[C]=d[C]||[],d[C].push(M)}for(var x=a.getLineStyle(["color"]),b=0;b<d.length;++b)t.add(Xp(d[b],{style:br({stroke:s[b%s.length]},x),silent:!0}))}},splitArea:function(e,t,n,r){F2t(e,n,r,r)}},e$=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t})(Ri);Hl(e$,vk.prototype);var zbr=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},t})(ng),bMt=["single"],Tbr=(function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=bMt,this.axisPointerEnabled=!0,this.model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var i=this.dimension,o=new zbr(i,YB(t),[0,0],t.get("type"),t.get("position")),a=o.type==="category";o.onBand=a&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(t,n){t.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();ye(i.mapDimensionsAll(this.dimension),function(o){this._axis.scale.unionExtentFromData(i,o)},this),Jz(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){this._rect=Pc({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,n=this._axis,r=n.isHorizontal(),i=r?[0,t.width]:[0,t.height],o=n.inverse?1:0;n.setExtent(i[o],i[1-o]),this._updateAxisTransform(n,r?t.x:t.y)},e.prototype._updateAxisTransform=function(t,n){var r=t.getExtent(),i=r[0]+r[1],o=t.isHorizontal();t.toGlobalCoord=o?function(a){return a+n}:function(a){return i-a+n},t.toLocalCoord=o?function(a){return a-n}:function(a){return i-a+n}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var n=this.getRect(),r=this.getAxis(),i=r.orient;return i==="horizontal"?r.contain(r.toLocalCoord(t[0]))&&t[1]>=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),i=[],o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[o]=n.toGlobalCoord(n.dataToCoord(+t)),i[1-o]=o===0?r.y+r.height/2:r.x+r.width/2,i},e.prototype.convertToPixel=function(t,n,r){var i=Tje(n);return i===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var i=Tje(n);return i===this?this.pointToData(r):null},e})();function Tje(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function Ebr(e,t){var n=[];return e.eachComponent("singleAxis",function(r,i){var o=new Tbr(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",Sc).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),n}var Rbr={create:Ebr,dimensions:bMt},Eje=["x","y"],Ibr=["width","height"],Pbr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.coordinateSystem,c=Jse(l,1-KU(s)),u=l.dataToPoint(r)[0],d=o.get("type");if(d&&d!=="none"){var p=nOe(o),h=Dbr[d](s,u,c);h.style=p,n.graphicKey=h.type,n.pointer=h}var g=qve(i);dMt(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=qve(r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=rOe(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.coordinateSystem,l=KU(a),c=Jse(s,l),u=[n.x,n.y];u[l]+=r[l],u[l]=Math.min(c[1],u[l]),u[l]=Math.max(c[0],u[l]);var d=Jse(s,1-l),p=(d[1]+d[0])/2,h=[p,p];return h[l]=u[l],{x:u[0],y:u[1],rotation:n.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t})(tOe),Dbr={line:function(e,t,n){var r=iOe([t,n[0]],[t,n[1]],KU(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:pMt([t-r/2,n[0]],[r,i],KU(e))}}};function KU(e){return e.isHorizontal()?0:1}function Jse(e,t){var n=e.getRect();return[n[Eje[t]],n[Eje[t]]+n[Ibr[t]]]}var kbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t})(us);function Lbr(e){Si(ij),Y3.registerAxisPointerClass("SingleAxisPointer",Pbr),e.registerComponentView(kbr),e.registerComponentView(Abr),e.registerComponentModel(e$),qP(e,"single",e$,e$.defaultOption),e.registerCoordinateSystem("single",Rbr)}var _br=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,i){var o=ck(n);e.prototype.init.apply(this,arguments),Rje(n,o)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),Rje(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(Ri);function Rje(e,t){var n=e.cellSize,r;Ht(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var i=Vt([0,1],function(o){return qar(t,o)&&(r[o]="auto"),r[o]!=null&&r[o]!=="auto"});sw(e,t,{type:"box",ignoreSize:i})}var Nbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=this.group;o.removeAll();var a=n.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),c=r.getLocaleModel();this._renderDayRect(n,s,o),this._renderLines(n,s,l,o),this._renderYearText(n,s,l,o),this._renderMonthText(n,c,l,o),this._renderWeekText(n,c,s,l,o)},t.prototype._renderDayRect=function(n,r,i){for(var o=n.coordinateSystem,a=n.getModel("itemStyle").getItemStyle(),s=o.getCellWidth(),l=o.getCellHeight(),c=r.start.time;c<=r.end.time;c=o.getNextNDay(c,1).time){var u=o.dataToRect([c],!1).tl,d=new ao({shape:{x:u[0],y:u[1],width:s,height:l},cursor:"default",style:a});i.add(d)}},t.prototype._renderLines=function(n,r,i,o){var a=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),c=n.get(["splitLine","show"]),u=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,p=0;d.time<=r.end.time;p++){g(d.formatedDate),p===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(m){a._firstDayOfMonth.push(s.getDateInfo(m)),a._firstDayPoints.push(s.dataToRect([m],!1).tl);var b=a._getLinePointsOfOneWeek(n,m,i);a._tlpoints.push(b[0]),a._blpoints.push(b[b.length-1]),c&&a._drawSplitline(b,l,o)}c&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,u,i),l,o),c&&this._drawSplitline(a._getEdgesPoints(a._blpoints,u,i),l,o)},t.prototype._getEdgesPoints=function(n,r,i){var o=[n[0].slice(),n[n.length-1].slice()],a=i==="horizontal"?0:1;return o[0][a]=o[0][a]-r/2,o[1][a]=o[1][a]+r/2,o},t.prototype._drawSplitline=function(n,r,i){var o=new R0({z2:20,shape:{points:n},style:r});i.add(o)},t.prototype._getLinePointsOfOneWeek=function(n,r,i){for(var o=n.coordinateSystem,a=o.getDateInfo(r),s=[],l=0;l<7;l++){var c=o.getNextNDay(a.time,l),u=o.dataToRect([c.time],!1);s[2*c.day]=u.tl,s[2*c.day+1]=u[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return An(n)&&n?_ar(n,r):fr(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,i,o,a){var s=r[0],l=r[1],c=["center","bottom"];o==="bottom"?(l+=a,c=["center","top"]):o==="left"?s-=a:o==="right"?(s+=a,c=["center","top"]):l-=a;var u=0;return(o==="left"||o==="right")&&(u=Math.PI/2),{rotation:u,x:s,y:l,style:{align:c[0],verticalAlign:c[1]}}},t.prototype._renderYearText=function(n,r,i,o){var a=n.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=i!=="horizontal"?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(c[0][0]+c[1][0])/2,d=(c[0][1]+c[1][1])/2,p=i==="horizontal"?0:1,h={top:[u,c[p][1]],bottom:[u,c[1-p][1]],left:[c[1-p][0],d],right:[c[p][0],d]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var m=a.get("formatter"),b={start:r.start.y,end:r.end.y,nameMap:g},y=this._formatterLabel(m,b),M=new oo({z2:30,style:Za(a,{text:y}),silent:a.get("silent")});M.attr(this._yearTextPositionControl(M,h[l],i,l,s)),o.add(M)}},t.prototype._monthTextPositionControl=function(n,r,i,o,a){var s="left",l="top",c=n[0],u=n[1];return i==="horizontal"?(u=u+a,r&&(s="center"),o==="start"&&(l="bottom")):(c=c+a,r&&(l="middle"),o==="start"&&(s="right")),{x:c,y:u,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,i,o){var a=n.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),c=a.get("position"),u=a.get("align"),d=[this._tlpoints,this._blpoints];(!s||An(s))&&(s&&(r=Ume(s)||r),s=r.get(["time","monthAbbr"])||[]);var p=c==="start"?0:1,h=i==="horizontal"?0:1;l=c==="start"?-l:l;for(var g=u==="center",m=a.get("silent"),b=0;b<d[p].length-1;b++){var y=d[p][b].slice(),M=this._firstDayOfMonth[b];if(g){var C=this._firstDayPoints[b];y[h]=(C[h]+d[0][b+1][h])/2}var x=a.get("formatter"),w=s[+M.m-1],S={yyyy:M.y,yy:(M.y+"").slice(2),MM:M.m,M:+M.m,nameMap:w},A=this._formatterLabel(x,S),z=new oo({z2:30,style:Nt(Za(a,{text:A}),this._monthTextPositionControl(y,g,i,c,l)),silent:m});o.add(z)}}},t.prototype._weekTextPositionControl=function(n,r,i,o,a){var s="center",l="middle",c=n[0],u=n[1],d=i==="start";return r==="horizontal"?(c=c+o+(d?1:-1)*a[0]/2,s=d?"right":"left"):(u=u+o+(d?1:-1)*a[1]/2,l=d?"bottom":"top"),{x:c,y:u,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(n,r,i,o,a){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,c=s.get("position"),u=s.get("nameMap"),d=s.get("margin"),p=l.getFirstDayOfWeek();if(!u||An(u)){u&&(r=Ume(u)||r);var h=r.get(["time","dayOfWeekShort"]);u=h||Vt(r.get(["time","dayOfWeekAbbr"]),function(S){return S[0]})}var g=l.getNextNDay(i.end.time,7-i.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];d=vn(d,Math.min(m[1],m[0])),c==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,d=-d);for(var b=s.get("silent"),y=0;y<7;y++){var M=l.getNextNDay(g,y),C=l.dataToRect([M.time],!1).center,x=y;x=Math.abs((y+p)%7);var w=new oo({z2:30,style:Nt(Za(s,{text:u[x]}),this._weekTextPositionControl(C,o,c,d,m)),silent:b});a.add(w)}}},t.type="calendar",t})(us),ele=864e5,Fbr=(function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=dh(t);var n=t.getFullYear(),r=t.getMonth()+1,i=r<10?"0"+r:""+r,o=t.getDate(),a=o<10?"0"+o:""+o,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:i,d:a,day:s,time:t.getTime(),formatedDate:n+"-"+i+"-"+a,date:t}},e.prototype.getNextNDay=function(t,n){return n=n||0,n===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+n),this.getDateInfo(t))},e.prototype.update=function(t,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];ye([0,1],function(d){u(o,d)&&(a[i[d]]=o[d]*s[d])});var l={width:n.getWidth(),height:n.getHeight()},c=this._rect=Pc(a,l);ye([0,1],function(d){u(o,d)||(o[d]=c[i[d]]/s[d])});function u(d,p){return d[p]!=null&&d[p]!=="auto"}this._sw=o[0],this._sh=o[1]},e.prototype.dataToPoint=function(t,n){Ht(t)&&(t=t[0]),n==null&&(n=!0);var r=this.getDateInfo(t),i=this._rangeInfo,o=r.formatedDate;if(n&&!(r.time>=i.start.time&&r.time<i.end.time+ele))return[NaN,NaN];var a=r.day,s=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var n=this.pointToDate(t);return n&&n.time},e.prototype.dataToRect=function(t,n){var r=this.dataToPoint(t,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var n=Math.floor((t[0]-this._rect.x)/this._sw)+1,r=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,i):this._getDateByWeeksAndDay(n,r-1,i)},e.prototype.convertToPixel=function(t,n,r){var i=Ije(n);return i===this?i.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var i=Ije(n);return i===this?i.pointToData(r):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),n;if(Ht(t)&&t.length===1&&(t=t[0]),Ht(t))n=t;else{var r=t.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),o=i.date;o.setMonth(o.getMonth()+1);var a=this.getNextNDay(o,-1);n=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return t;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var i=Math.floor(n[1].time/ele)-Math.floor(n[0].time/ele)+1,o=new Date(n[0].time),a=o.getDate(),s=n[1].date.getDate();o.setDate(a+i-1);var l=o.getDate();if(l!==s)for(var c=o.getTime()-n[1].time>0?1:-1;(l=o.getDate())!==s&&(o.getTime()-n[1].time)*c>0;)i-=c,o.setDate(l-c);var u=Math.floor((i+n[0].day+6)/7),d=r?-u+1:u-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:d,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var i=this._getRangeInfo(r);if(t>i.weeks||t===0&&n<i.fweek||t===i.weeks&&n>i.lweek)return null;var o=(t-1)*7-i.fweek+n,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(i){var o=new e(i);r.push(o),i.coordinateSystem=o}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e})();function Ije(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}function Wbr(e){e.registerComponentModel(_br),e.registerComponentView(Nbr),e.registerCoordinateSystem("calendar",Fbr)}function qbr(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Pje(e,t){var n;return ye(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function Bbr(e,t,n){var r=Nt({},n),i=e[t],o=n.$action||"merge";o==="merge"?i?(ei(i,r,!0),sw(i,r,{ignoreSize:!0}),svt(n,i),VV(n,i),VV(n,i,"shape"),VV(n,i,"style"),VV(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:o==="replace"?e[t]=r:o==="remove"&&i&&(e[t]=null)}var yMt=["transition","enterFrom","leaveTo"],jbr=yMt.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function VV(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?yMt:jbr,i=0;i<r.length;i++){var o=r[i];e[o]==null&&t[o]!=null&&(e[o]=t[o])}}function Hbr(e,t){if(e&&(e.hv=t.hv=[Pje(t,["left","right"]),Pje(t,["top","bottom"])],e.type==="group")){var n=e,r=t;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var Vbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(n,r){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,n,r),this.option.elements=i},t.prototype.optionUpdated=function(n,r){var i=this.option,o=(r?i:n).elements,a=i.elements=r?[]:i.elements,s=[];this._flatten(o,s,null);var l=omt(a,s,"normalMerge"),c=this._elOptionsToUpdate=[];ye(l,function(u,d){var p=u.newOption;p&&(c.push(p),qbr(u,p),Bbr(a,d,p),Hbr(a[d],p))},this),i.elements=Lo(a,function(u){return u&&delete u.$action,u!=null})},t.prototype._flatten=function(n,r,i){ye(n,function(o){if(o){i&&(o.parentOption=i),r.push(o);var a=o.children;a&&a.length&&this._flatten(a,r,o),delete o.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t})(Ri),Dje={path:null,compoundPath:null,group:Ir,image:Du,text:oo},Jh=mo(),Gbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=Kn()},t.prototype.render=function(n,r,i){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,i)},t.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var i=this._elMap,o=this.group,a=n.get("z"),s=n.get("zlevel");ye(r,function(l){var c=Zc(l.id,null),u=c!=null?i.get(c):null,d=Zc(l.parentId,null),p=d!=null?i.get(d):o,h=l.type,g=l.style;h==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var m=l.textContent,b=l.textConfig;if(g&&Jyt(g,h,!!b,!!m)){var y=eMt(g,h,!0);!b&&y.textConfig&&(b=l.textConfig=y.textConfig),!m&&y.textContent&&(m=y.textContent)}var M=$br(l),C=l.$action||"merge",x=C==="merge",w=C==="replace";if(x){var S=!u,A=u;S?A=kje(c,p,l.type,i):(A&&(Jh(A).isNew=!1),iMt(A)),A&&(Z7(A,M,n,{isInit:S}),Lje(A,l,a,s))}else if(w){t$(u,l,i,n);var z=kje(c,p,l.type,i);z&&(Z7(z,M,n,{isInit:!0}),Lje(z,l,a,s))}else C==="remove"&&(nMt(u,l),t$(u,l,i,n));var O=i.get(c);if(O&&m)if(x){var T=O.getTextContent();T?T.attr(m):O.setTextContent(new oo(m))}else w&&O.setTextContent(new oo(m));if(O){var R=l.clipPath;if(R){var P=R.type,F=void 0,S=!1;if(x){var N=O.getClipPath();S=!N||Jh(N).type!==P,F=S?Bve(P):N}else w&&(S=!0,F=Bve(P));O.setClipPath(F),Z7(F,R,n,{isInit:S}),XU(F,R.keyframeAnimation,n)}var L=Jh(O);O.setTextConfig(b),L.option=l,Ubr(O,n,l),V3({el:O,componentModel:n,itemName:O.name,itemTooltipOption:l.tooltip}),XU(O,l.keyframeAnimation,n)}})}},t.prototype._relocate=function(n,r){for(var i=n.option.elements,o=this.group,a=this._elMap,s=r.getWidth(),l=r.getHeight(),c=["x","y"],u=0;u<i.length;u++){var d=i[u],p=Zc(d.id,null),h=p!=null?a.get(p):null;if(!(!h||!h.isGroup)){var g=h.parent,m=g===o,b=Jh(h),y=Jh(g);b.width=vn(b.option.width,m?s:y.width)||0,b.height=vn(b.option.height,m?l:y.height)||0}}for(var u=i.length-1;u>=0;u--){var d=i[u],p=Zc(d.id,null),h=p!=null?a.get(p):null;if(h){var g=h.parent,y=Jh(g),M=g===o?{width:s,height:l}:{width:y.width,height:y.height},C={},x=TJ(h,d,M,null,{hv:d.hv,boundingMode:d.bounding},C);if(!Jh(h).isNew&&x){for(var w=d.transition,S={},A=0;A<c.length;A++){var z=c[A],O=C[z];w&&(oz(w)||hi(w,z)>=0)?S[z]=O:h[z]=O}Ao(h,S,n,0)}else h.attr(C)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(i){t$(i,Jh(i).option,r,n._lastGraphicModel)}),this._elMap=Kn()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(us);function Bve(e){var t=Fn(Dje,e)?Dje[e]:CJ(e),n=new t({});return Jh(n).type=e,n}function kje(e,t,n,r){var i=Bve(n);return t.add(i),r.set(e,i),Jh(i).id=e,Jh(i).isNew=!0,i}function t$(e,t,n,r){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(o){t$(o,t,n,r)}),GJ(e,t,r),n.removeKey(Jh(e).id))}function Lje(e,t,n,r){e.isGroup||ye([["cursor",qf.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(i){var o=i[0];Fn(t,o)?e[o]=Xr(t[o],i[1]):e[o]==null&&(e[o]=i[1])}),ye(Hi(t),function(i){if(i.indexOf("on")===0){var o=t[i];e[i]=fr(o)?o:null}}),Fn(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function $br(e){return e=Nt({},e),ye(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(avt),function(t){delete e[t]}),e}function Ubr(e,t,n){var r=_r(e).eventData;!e.silent&&!e.ignore&&!r&&(r=_r(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function Xbr(e){e.registerComponentModel(Vbr),e.registerComponentView(Gbr),e.registerPreprocessor(function(t){var n=t.graphic;Ht(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var _je=["x","y","radius","angle","single"],Ybr=["cartesian2d","polar","singleAxis"];function Kbr(e){var t=e.get("coordinateSystem");return hi(Ybr,t)>=0}function vx(e){return e+"Axis"}function Qbr(e,t){var n=Kn(),r=[],i=Kn();e.eachComponent({mainType:"dataZoom",query:t},function(u){i.get(u.uid)||s(u)});var o;do o=!1,e.eachComponent("dataZoom",a);while(o);function a(u){!i.get(u.uid)&&l(u)&&(s(u),o=!0)}function s(u){i.set(u.uid,!0),r.push(u),c(u)}function l(u){var d=!1;return u.eachTargetAxis(function(p,h){var g=n.get(p);g&&g[h]&&(d=!0)}),d}function c(u){u.eachTargetAxis(function(d,p){(n.get(d)||n.set(d,[]))[p]=!0})}return r}function MMt(e){var t=e.ecModel,n={infoList:[],infoMap:Kn()};return e.eachTargetAxis(function(r,i){var o=t.getComponent(vx(r),i);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=n.infoMap.get(s);l||(l={model:a,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(o)}}}),n}var tle=(function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e})(),Lq=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,i){var o=Nje(n);this.settledOption=o,this.mergeDefaultAndTheme(n,i),this._doInit(o)},t.prototype.mergeOption=function(n){var r=Nje(n);ei(this.option,n,!0),ei(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var i=this.settledOption;ye([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(r[o[0]]=i[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Kn(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return ye(_je,function(i){var o=this.getReferringComponents(vx(i),Oir);if(o.specified){r=!0;var a=new tle;ye(o.models,function(s){a.add(s.componentIndex)}),n.set(i,a)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,o=!0;if(o){var a=r==="vertical"?"y":"x",s=i.findComponents({mainType:a+"Axis"});l(s,a)}if(o){var s=i.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===r}});l(s,"single")}function l(c,u){var d=c[0];if(d){var p=new tle;if(p.add(d.componentIndex),n.set(u,p),o=!1,u==="x"||u==="y"){var h=d.getReferringComponents("grid",Sc).models[0];h&&ye(c,function(g){d.componentIndex!==g.componentIndex&&h===g.getReferringComponents("grid",Sc).models[0]&&p.add(g.componentIndex)})}}}o&&ye(_je,function(c){if(o){var u=i.findComponents({mainType:vx(c),filter:function(p){return p.get("type",!0)==="category"}});if(u[0]){var d=new tle;d.add(u[0].componentIndex),n.set(c,d),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,i=this.get("rangeMode");ye([["start","startValue"],["end","endValue"]],function(o,a){var s=n[o[0]]!=null,l=n[o[1]]!=null;s&&!l?r[a]="percent":!s&&l?r[a]="value":i?r[a]=i[a]:s&&(r[a]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,i){n==null&&(n=this.ecModel.getComponent(vx(r),i))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,o){ye(i.indexList,function(a){n.call(r,o,a)})})},t.prototype.getAxisProxy=function(n,r){var i=this.getAxisModel(n,r);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(vx(n),r)},t.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;ye([["start","startValue"],["end","endValue"]],function(o){(n[o[0]]!=null||n[o[1]]!=null)&&(r[o[0]]=i[o[0]]=n[o[0]],r[o[1]]=i[o[1]]=n[o[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;ye(["start","startValue","end","endValue"],function(i){r[i]=n[i]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),o=0;o<i.length;o++)for(var a=i[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var c=this.getAxisProxy(a,s.indexList[l]);if(c.hostedBy(this))return c;r||(r=c)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(Ri);function Nje(e){var t={};return ye(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var Zbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t})(Lq),lOe=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this.dataZoomModel=n,this.ecModel=r,this.api=i},t.type="dataZoom",t})(us),Jbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t})(lOe),OR=ye,Fje=Jp,e2r=(function(){function e(t,n,r,i){this._dimName=t,this._axisIndex=n,this.ecModel=i,this._dataZoomModel=r}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(n){if(Kbr(n)){var r=vx(this._dimName),i=n.getReferringComponents(r,Sc).models[0];i&&this._axisIndex===i.componentIndex&&t.push(n)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Or(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],c;OR(["start","end"],function(p,h){var g=t[p],m=t[p+"Value"];o[h]==="percent"?(g==null&&(g=a[h]),m=i.parse(Ko(g,a,n))):(c=!0,m=m==null?n[h]:i.parse(m),g=Ko(m,n,a)),l[h]=m==null||isNaN(m)?n[h]:m,s[h]=g==null||isNaN(g)?a[h]:g}),Fje(l),Fje(s);var u=this._minMaxSpan;c?d(l,s,n,a,!1):d(s,l,a,n,!0);function d(p,h,g,m,b){var y=b?"Span":"ValueSpan";K3(0,p,g,"all",u["min"+y],u["max"+y]);for(var M=0;M<2;M++)h[M]=Ko(p[M],g,m,!0),b&&(h[M]=i.parse(h[M]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=t2r(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(t.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,n){if(t!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;if(o==="none")return;OR(i,function(l){var c=l.getData(),u=c.mapDimensionsAll(r);if(u.length){if(o==="weakFilter"){var d=c.getStore(),p=Vt(u,function(h){return c.getDimensionIndex(h)},c);c.filterSelf(function(h){for(var g,m,b,y=0;y<u.length;y++){var M=d.get(p[y],h),C=!isNaN(M),x=M<a[0],w=M>a[1];if(C&&!x&&!w)return!0;C&&(b=!0),x&&(g=!0),w&&(m=!0)}return b&&g&&m})}else OR(u,function(h){if(o==="empty")l.setData(c=c.map(h,function(m){return s(m)?m:NaN}));else{var g={};g[h]=a,c.selectRange(g)}});OR(u,function(h){c.setApproximateExtent(a,h)})}});function s(l){return l>=a[0]&&l<=a[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;OR(["min","max"],function(i){var o=n.get(i+"Span"),a=n.get(i+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=Ko(r[0]+a,r,[0,100],!0):o!=null&&(a=Ko(o,[0,100],r,!0)-r[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=a},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=dSe(r,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;n[0]!==0&&o.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&o.setDeterminedMinMax("max",+r[1].toFixed(i)),o.freeze()}},e})();function t2r(e,t,n){var r=[1/0,-1/0];OR(n,function(a){Mur(r,a.getData(),t)});var i=e.getAxisModel(),o=Fbt(i.axis.scale,i,r).calculate();return[o.min,o.max]}var n2r={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=e.getComponent(vx(a),s);i(a,s,l,o)})})}t(function(i,o,a,s){a.__dzAxisProxy=null});var n=[];t(function(i,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new e2r(i,o,s,e),n.push(a.__dzAxisProxy))});var r=Kn();return ye(n,function(i){ye(i.getTargetSeriesModels(),function(o){r.set(o.uid,o)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).reset(n)}),n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),o=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function r2r(e){e.registerAction("dataZoom",function(t,n){var r=Qbr(n,t);ye(r,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Wje=!1;function cOe(e){Wje||(Wje=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,n2r),r2r(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function i2r(e){e.registerComponentModel(Zbr),e.registerComponentView(Jbr),cOe(e)}var cf=(function(){function e(){}return e})(),CMt={};function zR(e,t){CMt[e]=t}function xMt(e){return CMt[e]}var o2r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;ye(this.option.feature,function(r,i){var o=xMt(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(n)),ei(r,o.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t})(Ri);function a2r(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Pc(r,o,i);nz(t.get("orient"),e,t.get("itemGap"),a.width,a.height),TJ(e,r,o,i)}function wMt(e,t){var n=$3(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new ao({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var s2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,i,o){var a=this.group;if(a.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",c=n.get("feature")||{},u=this._features||(this._features={}),d=[];ye(c,function(g,m){d.push(m)}),new oM(this._featureNames||[],d).add(p).update(p).remove(Zr(p,null)).execute(),this._featureNames=d;function p(g,m){var b=d[g],y=d[m],M=c[b],C=new No(M,n,n.ecModel),x;if(o&&o.newTitle!=null&&o.featureName===b&&(M.title=o.newTitle),b&&!y){if(l2r(b))x={onclick:C.option.onclick,featureName:b};else{var w=xMt(b);if(!w)return;x=new w}u[b]=x}else if(x=u[y],!x)return;x.uid=lk("toolbox-feature"),x.model=C,x.ecModel=r,x.api=i;var S=x instanceof cf;if(!b&&y){S&&x.dispose&&x.dispose(r,i);return}if(!C.get("show")||S&&x.unusable){S&&x.remove&&x.remove(r,i);return}h(C,x,b),C.setIconStatus=function(A,z){var O=this.option,T=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[A]=z,T[A]&&(z==="emphasis"?rM:iM)(T[A])},x instanceof cf&&x.render&&x.render(C,r,i,o)}function h(g,m,b){var y=g.getModel("iconStyle"),M=g.getModel(["emphasis","iconStyle"]),C=m instanceof cf&&m.getIcons?m.getIcons():g.get("icon"),x=g.get("title")||{},w,S;An(C)?(w={},w[b]=C):w=C,An(x)?(S={},S[b]=x):S=x;var A=g.iconPaths={};ye(w,function(z,O){var T=ak(z,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(y.getItemStyle());var R=T.ensureState("emphasis");R.style=M.getItemStyle();var P=new oo({style:{text:S[O],align:M.get("textAlign"),borderRadius:M.get("textBorderRadius"),padding:M.get("textPadding"),fill:null,font:ISe({fontStyle:M.get("textFontStyle"),fontFamily:M.get("textFontFamily"),fontSize:M.get("textFontSize"),fontWeight:M.get("textFontWeight")},r)},ignore:!0});T.setTextContent(P),V3({el:T,componentModel:n,itemName:O,formatterParamsExtra:{title:S[O]}}),T.__title=S[O],T.on("mouseover",function(){var F=M.getItemStyle(),N=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:M.get("textFill")||F.fill||F.stroke||"#000",backgroundColor:M.get("textBackgroundColor")}),T.setTextConfig({position:M.get("textPosition")||N}),P.ignore=!n.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",O])!=="emphasis"&&i.leaveEmphasis(this),P.hide()}),(g.get(["iconStatus",O])==="emphasis"?rM:iM)(T),a.add(T),T.on("click",Rn(m.onclick,m,r,i,O)),A[O]=T})}a2r(a,n,i),a.add(wMt(a.getBoundingRect(),n)),l||a.eachChild(function(g){var m=g.__title,b=g.ensureState("emphasis"),y=b.textConfig||(b.textConfig={}),M=g.getTextContent(),C=M&&M.ensureState("emphasis");if(C&&!fr(C)&&m){var x=C.style||(C.style={}),w=qB(m,oo.makeFont(x)),S=g.x+a.x,A=g.y+a.y+s,z=!1;A+w.height>i.getHeight()&&(y.position="top",z=!0);var O=z?-5-w.height:s+10;S+w.width/2>i.getWidth()?(y.position=["100%",O],x.align="right"):S-w.width/2<0&&(y.position=[0,O],x.align="left")}})},t.prototype.updateView=function(n,r,i,o){ye(this._features,function(a){a instanceof cf&&a.updateView&&a.updateView(a.model,r,i,o)})},t.prototype.remove=function(n,r){ye(this._features,function(i){i instanceof cf&&i.remove&&i.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){ye(this._features,function(i){i instanceof cf&&i.dispose&&i.dispose(n,r)})},t.type="toolbox",t})(us);function l2r(e){return e.indexOf("my")===0}var c2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var i=this.model,o=i.get("name")||n.get("title.0.text")||"echarts",a=r.getZr().painter.getType()==="svg",s=a?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),c=Ii.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var u=document.createElement("a");u.download=o+"."+s,u.target="_blank",u.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||a){var p=l.split(","),h=p[0].indexOf("base64")>-1,g=a?decodeURIComponent(p[1]):p[1];h&&(g=window.atob(g));var m=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var b=g.length,y=new Uint8Array(b);b--;)y[b]=g.charCodeAt(b);var M=new Blob([y]);window.navigator.msSaveOrOpenBlob(M,m)}else{var C=document.createElement("iframe");document.body.appendChild(C);var x=C.contentWindow,w=x.document;w.open("image/svg+xml","replace"),w.write(g),w.close(),x.focus(),w.execCommand("SaveAs",!0,m),document.body.removeChild(C)}}else{var S=i.get("lang"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',z=window.open();z.document.write(A),z.document.title=o}},t.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t})(cf),qje="__ec_magicType_stack__",u2r=[["line","bar"],["stack"]],d2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),i={};return ye(n.get("type"),function(o){r[o]&&(i[o]=r[o])}),i},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,i){var o=this.model,a=o.get(["seriesIndex",i]);if(Bje[i]){var s={series:[]},l=function(d){var p=d.subType,h=d.id,g=Bje[i](p,h,d,o);g&&(br(g,d.option),s.series.push(g));var m=d.coordinateSystem;if(m&&m.type==="cartesian2d"&&(i==="line"||i==="bar")){var b=m.getAxesByScale("ordinal")[0];if(b){var y=b.dim,M=y+"Axis",C=d.getReferringComponents(M,Sc).models[0],x=C.componentIndex;s[M]=s[M]||[];for(var w=0;w<=x;w++)s[M][x]=s[M][x]||{};s[M][x].boundaryGap=i==="bar"}}};ye(u2r,function(d){hi(d,i)>=0&&ye(d,function(p){o.setIconStatus(p,"normal")})}),o.setIconStatus(i,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var c,u=i;i==="stack"&&(c=ei({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",i])!=="emphasis"&&(u="tiled")),r.dispatchAction({type:"changeMagicType",currentType:u,newOption:s,newTitle:c,featureName:"magicType"})}},t})(cf),Bje={line:function(e,t,n,r){if(e==="bar")return ei({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return ei({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===qje;if(e==="line"||e==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),ei({id:t,stack:i?"":qje},r.get(["option","stack"])||{},!0)}};Nm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var $J=new Array(60).join("-"),HP="	";function p2r(e){var t={},n=[],r=[];return e.eachRawSeries(function(i){var o=i.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var a=o.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;t[s]||(t[s]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[s].series.push(i)}else n.push(i)}else n.push(i)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function h2r(e){var t=[];return ye(e,function(n,r){var i=n.categoryAxis,o=n.valueAxis,a=o.dim,s=[" "].concat(Vt(n.series,function(h){return h.name})),l=[i.model.getCategories()];ye(n.series,function(h){var g=h.getRawData();l.push(h.getRawData().mapArray(g.mapDimension(a),function(m){return m}))});for(var c=[s.join(HP)],u=0;u<l[0].length;u++){for(var d=[],p=0;p<l.length;p++)d.push(l[p][u]);c.push(d.join(HP))}t.push(c.join(`
`))}),t.join(`

`+$J+`

`)}function f2r(e){return Vt(e,function(t){var n=t.getRawData(),r=[t.name],i=[];return n.each(n.dimensions,function(){for(var o=arguments.length,a=arguments[o-1],s=n.getName(a),l=0;l<o-1;l++)i[l]=arguments[l];r.push((s?s+HP:"")+i.join(HP))}),r.join(`
`)}).join(`

`+$J+`

`)}function g2r(e){var t=p2r(e);return{value:Lo([h2r(t.seriesGroupByCategoryAxis),f2r(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`

`+$J+`

`),meta:t.meta}}function QU(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function m2r(e){var t=e.slice(0,e.indexOf(`
`));if(t.indexOf(HP)>=0)return!0}var jve=new RegExp("["+HP+"]+","g");function v2r(e){for(var t=e.split(/\n+/g),n=QU(t.shift()).split(jve),r=[],i=Vt(n,function(l){return{name:l,data:[]}}),o=0;o<t.length;o++){var a=QU(t[o]).split(jve);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function b2r(e){for(var t=e.split(/\n+/g),n=QU(t.shift()),r=[],i=0;i<t.length;i++){var o=QU(t[i]);if(o){var a=o.split(jve),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var u=0;u<a.length;u++)l.push(+a[u]);l.length===1&&(c?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function y2r(e,t){var n=e.split(new RegExp(`
*`+$J+`
*`,"g")),r={series:[]};return ye(n,function(i,o){if(m2r(i)){var a=v2r(i),s=t[o],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:a.categories},r.series=r.series.concat(a.series))}else{var a=b2r(i);r.series.push(a)}}),r}var M2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),o=this.model;this._dom&&i.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var c=document.createElement("div"),u=document.createElement("textarea");c.style.cssText="overflow:auto";var d=o.get("optionToContent"),p=o.get("contentToOption"),h=g2r(n);if(fr(d)){var g=d(r.getOption());An(g)?c.innerHTML=g:Uz(g)&&c.appendChild(g)}else{u.readOnly=o.get("readOnly");var m=u.style;m.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",m.color=o.get("textColor"),m.borderColor=o.get("textareaBorderColor"),m.backgroundColor=o.get("textareaColor"),u.value=h.value,c.appendChild(u)}var b=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var M="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",C=document.createElement("div"),x=document.createElement("div");M+=";background-color:"+o.get("buttonColor"),M+=";color:"+o.get("buttonTextColor");var w=this;function S(){i.removeChild(a),w._dom=null}bme(C,"click",S),bme(x,"click",function(){if(p==null&&d!=null||p!=null&&d==null){S();return}var A;try{fr(p)?A=p(c,r.getOption()):A=y2r(u.value,b)}catch(z){throw S(),new Error("Data view format error "+z)}A&&r.dispatchAction({type:"changeDataView",newOption:A}),S()}),C.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=C.style.cssText=M,!o.get("readOnly")&&y.appendChild(x),y.appendChild(C),a.appendChild(s),a.appendChild(c),a.appendChild(y),c.style.height=i.clientHeight-80+"px",i.appendChild(a),this._dom=a},t.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},t})(cf);function C2r(e,t){return Vt(e,function(n,r){var i=t&&t[r];if(xr(i)&&!Ht(i)){var o=xr(n)&&!Ht(n);o||(n={value:n});var a=i.name!=null&&n.name==null;return n=br(n,i),a&&delete n.name,n}else return n})}Nm({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];ye(e.newOption.series,function(r){var i=t.getSeriesByName(r.name)[0];if(!i)n.push(Nt({type:"scatter"},r));else{var o=i.get("data");n.push({name:r.name,data:C2r(r.data,o)})}}),t.mergeOption(br({series:n},e.newOption))});var SMt=ye,AMt=mo();function x2r(e,t){var n=uOe(e);SMt(t,function(r,i){for(var o=n.length-1;o>=0;o--){var a=n[o];if(a[i])break}if(o<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();n[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),n.push(t)}function w2r(e){var t=uOe(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return SMt(n,function(i,o){for(var a=t.length-1;a>=0;a--)if(i=t[a][o],i){r[o]=i;break}}),r}function S2r(e){AMt(e).snapshots=null}function A2r(e){return uOe(e).length}function uOe(e){var t=AMt(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var O2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){S2r(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t})(cf);Nm({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var z2r=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],dOe=(function(){function e(t,n,r){var i=this;this._targetInfoList=[];var o=jje(n,t);ye(T2r,function(a,s){(!r||!r.include||hi(r.include,s)>=0)&&a(o,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,i,o){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var a=nle[r.brushType](0,o,i);r.__rangeOffset={offset:$je[r.brushType](a.values,r.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){ye(t,function(i){var o=this.findTargetInfo(i,n);o&&o!==!0&&ye(o.coordSyses,function(a){var s=nle[i.brushType](1,a,i.range,!0);r(i,s.values,a,n)})},this)},e.prototype.setInputRanges=function(t,n){ye(t,function(r){var i=this.findTargetInfo(r,n);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var o=nle[r.brushType](0,i.coordSys,r.coordRange),a=r.__rangeOffset;r.range=a?$je[r.brushType](o.values,a.offset,E2r(o.xyMinMax,a.xyMinMax)):o.values}},this)},e.prototype.makePanelOpts=function(t,n){return Vt(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:Dyt(i),isTargetByCursor:Lyt(i,t,r.coordSysModel),getLinearBrushOtherExtent:kyt(i)}})},e.prototype.controlSeries=function(t,n,r){var i=this.findTargetInfo(t,r);return i===!0||i&&hi(i.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,i=jje(n,t),o=0;o<r.length;o++){var a=r[o],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<Hje.length;l++)if(Hje[l](i,a))return a}return!0},e})();function Hve(e){return e[0]>e[1]&&e.reverse(),e}function jje(e,t){return EF(e,t,{includeMainTypes:z2r})}var T2r={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Kn(),a={},s={};!n&&!r&&!i||(ye(n,function(l){var c=l.axis.grid.model;o.set(c.id,c),a[c.id]=!0}),ye(r,function(l){var c=l.axis.grid.model;o.set(c.id,c),s[c.id]=!0}),ye(i,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var c=l.coordinateSystem,u=[];ye(c.getCartesians(),function(d,p){(hi(n,d.getAxis("x").model)>=0||hi(r,d.getAxis("y").model)>=0)&&u.push(d)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:u[0],coordSyses:u,getPanelRect:Vje.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){ye(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:Vje.geo})})}},Hje=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],Vje={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(_x(e)),t}},nle={lineX:Zr(Gje,0),lineY:Zr(Gje,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[Hve([i[0],o[0]]),Hve([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=Vt(n,function(a){var s=e?t.pointToData(a,r):t.dataToPoint(a,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:o,xyMinMax:i}}};function Gje(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=Hve(Vt([0,1],function(s){return t?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var $je={lineX:Zr(Uje,0),lineY:Zr(Uje,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Vt(e,function(r,i){return[r[0]-n[0]*t[i][0],r[1]-n[1]*t[i][1]]})}};function Uje(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function E2r(e,t){var n=Xje(e),r=Xje(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Xje(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Vve=ye,R2r=Cir("toolbox-dataZoom_"),I2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,i,o){this._brushController||(this._brushController=new FAe(i.getZr()),this._brushController.on("brush",Rn(this._onBrush,this)).mount()),k2r(n,r,this,o,i),D2r(n,r)},t.prototype.onclick=function(n,r,i){P2r[i].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var i={},o=this.ecModel;this._brushController.updateCovers([]);var a=new dOe(pOe(this.model),o,{include:["grid"]});a.matchOutputRanges(r,o,function(c,u,d){if(d.type==="cartesian2d"){var p=c.brushType;p==="rect"?(s("x",d,u[0]),s("y",d,u[1])):s({lineX:"x",lineY:"y"}[p],d,u)}}),x2r(o,i),this._dispatchZoomAction(i);function s(c,u,d){var p=u.getAxis(c),h=p.model,g=l(c,h,o),m=g.findRepresentativeAxisProxy(h).getMinMaxSpan();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(d=K3(0,d.slice(),p.scale.getExtent(),0,m.minValueSpan,m.maxValueSpan)),g&&(i[g.id]={dataZoomId:g.id,startValue:d[0],endValue:d[1]})}function l(c,u,d){var p;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var g=h.getAxisModel(c,u.componentIndex);g&&(p=h)}),p}},t.prototype._dispatchZoomAction=function(n){var r=[];Vve(n,function(i,o){r.push(Or(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t})(cf),P2r={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(w2r(this.ecModel))}};function pOe(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function D2r(e,t){e.setIconStatus("back",A2r(t)>1?"emphasis":"normal")}function k2r(e,t,n,r,i){var o=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(o=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new dOe(pOe(e),t,{include:["grid"]}),s=a.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}$ar("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],o=pOe(r),a=EF(e,o);Vve(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Vve(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,c,u){var d=l.componentIndex,p={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:R2r+c+d};p[u]=d,i.push(p)}return i});function L2r(e){e.registerComponentModel(o2r),e.registerComponentView(s2r),zR("saveAsImage",c2r),zR("magicType",d2r),zR("dataView",M2r),zR("dataZoom",I2r),zR("restore",O2r),Si(i2r)}var _2r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(Ri);function OMt(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function zMt(e){if(Ii.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var TMt=zMt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),N2r=zMt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function EMt(e,t){if(!e)return t;t=WSe(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function F2r(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var W2r=EMt(N2r,"transition"),hOe=EMt(TMt,"transform"),q2r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ii.transform3dSupported?"will-change:transform;":"");function B2r(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function j2r(e,t,n){if(!An(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Zz(t);var o=B2r(n),a=Math.max(Math.round(i)*1.5,6),s="",l=hOe+":",c;hi(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var u=c*Math.PI/180,d=a+i,p=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),h=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-d)/2)*100)/100;s+=";"+o+":-"+h+"px";var g=t+" solid "+i+"px;",m=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'<div style="'+m.join("")+'"></div>'}function H2r(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Ii.transformSupported?","+hOe+r:",left"+r+",top"+r),W2r+":"+i}function Yje(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ii.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Ii.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+hOe+":"+a+";":[["top",0],["left",0],[TMt,a]]}function V2r(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=Xr(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),ye(["decoration","align"],function(c){var u=e.get(c);u&&t.push("text-"+c+":"+u)}),t.join(";")}function G2r(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),d=Fvt(e,"html"),p=l+"px "+c+"px "+a+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push(H2r(i,n)),o&&r.push("background-color:"+o),ye(["width","color","radius"],function(h){var g="border-"+h,m=WSe(g),b=e.get(m);b!=null&&r.push(g+":"+b+(h==="color"?"":"px"))}),r.push(V2r(u)),d!=null&&r.push("padding:"+$3(d).join("px ")+"px"),r.join(";")+";"}function Kje(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Ynr(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var $2r=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ii.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=n.appendTo,a=o&&(An(o)?document.querySelector(o):Uz(o)?o:fr(o)&&o(t.getDom()));Kje(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=i.handler,u=i.painter.getViewportRoot();Xh(u,l,!0),c.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=F2r(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=q2r+G2r(t,!this._firstShow,this._longHide)+Yje(o[0],o[1],!0)+("border-color:"+Zz(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(An(o)&&r.get("trigger")==="item"&&!OMt(r)&&(s=j2r(r,i,o)),An(t))a.innerHTML=t+s;else if(t){a.innerHTML="",Ht(t)||(t=[t]);for(var l=0;l<t.length;l++)Uz(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var c=document.createElement("div");c.innerHTML=s,a.appendChild(c)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var r=this._styleCoord;if(Kje(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=Yje(r[0],r[1]);ye(o,function(a){i[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Ii.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Rn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e})(),U2r=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Zje(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,i,o){var a=this;xr(t)&&Qo(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new oo({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Fvt(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),ye(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){a.el.style[c]=r.get(c)}),ye(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){a.el.style[c]=s.get(c)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=Qje(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var i=this._styleCoord;Zje(i,this._zr,t,n),t=i[0],n=i[1];var o=r.style,a=TC(o.borderWidth||0),s=Qje(o);r.x=t+a+s.left,r.y=n+a+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Rn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function TC(e){return Math.max(0,e)}function Qje(e){var t=TC(e.shadowBlur||0),n=TC(e.shadowOffsetX||0),r=TC(e.shadowOffsetY||0);return{left:TC(t-n),right:TC(t+n),top:TC(t-r),bottom:TC(t+r)}}function Zje(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var X2r=new ao({shape:{x:-1,y:-1,width:2,height:2}}),Y2r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(Ii.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=Tir(i.get("renderMode"));this._tooltipContent=o==="richText"?new U2r(r):new $2r(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(n,r,i){if(!(Ii.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?hk(this,"_updatePosition",50,"fixRate"):xq(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");hMt("itemTooltip",this._api,Rn(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||Ii.node||!i.getDom())){var a=Jje(o,i);this._ticket="";var s=o.dataByCoordSys,l=J2r(o,r,i);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var u=X2r;u.x=o.x,u.y=o.y,u.update(),_r(u).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:u},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var d=fMt(o,r),p=d.point[0],h=d.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:d.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(Jje(o,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var c=r.getSeriesByIndex(a);if(c){var u=c.getData(),d=I_([u.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=_r(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;yO(i,function(u){if(_r(u).dataIndex!=null)return l=u,!0;if(_r(u).tooltipConfig!=null)return c=u,!0},!0),l?this._showSeriesItemTooltip(n,l,r):c?this._showComponentItemTooltip(n,c,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Rn(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=I_([r.tooltipOption],o),l=this._renderMode,c=[],u=Iu("section",{blocks:[],noHeader:!0}),d=[],p=new Bae;ye(n,function(M){ye(M.dataByAxis,function(C){var x=i.getComponent(C.axisDim+"Axis",C.axisIndex),w=C.value;if(!(!x||w==null)){var S=uMt(w,x.axis,i,C.seriesDataIndices,C.valueLabelOpt),A=Iu("section",{header:S,noHeader:!Cf(S),sortBlocks:!0,blocks:[]});u.blocks.push(A),ye(C.seriesDataIndices,function(z){var O=i.getSeriesByIndex(z.seriesIndex),T=z.dataIndexInside,R=O.getDataParams(T);if(!(R.dataIndex<0)){R.axisDim=C.axisDim,R.axisIndex=C.axisIndex,R.axisType=C.axisType,R.axisId=C.axisId,R.axisValue=pAe(x.axis,{value:w}),R.axisValueLabel=S,R.marker=p.makeTooltipMarker("item",Zz(R.color),l);var P=qWe(O.formatTooltip(T,!0,null)),F=P.frag;if(F){var N=I_([O],o).get("valueFormatter");A.blocks.push(N?Nt({valueFormatter:N},F):F)}P.text&&d.push(P.text),c.push(R)}})}})}),u.blocks.reverse(),d.reverse();var h=r.position,g=s.get("order"),m=$We(u,p,l,g,i.get("useUTC"),s.get("textStyle"));m&&d.unshift(m);var b=l==="richText"?`

`:"<br/>",y=d.join(b);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(s,h,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,y,c,Math.random()+"",a[0],a[1],h,null,p)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=_r(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,u=a.dataIndex,d=a.dataType,p=c.getData(d),h=this._renderMode,g=n.positionDefault,m=I_([p.getItemModel(u),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),b=m.get("trigger");if(!(b!=null&&b!=="item")){var y=c.getDataParams(u,d),M=new Bae;y.marker=M.makeTooltipMarker("item",Zz(y.color),h);var C=qWe(c.formatTooltip(u,!1,d)),x=m.get("order"),w=m.get("valueFormatter"),S=C.frag,A=S?$We(w?Nt({valueFormatter:w},S):S,M,h,x,o.get("useUTC"),m.get("textStyle")):C.text,z="item_"+c.name+"_"+u;this._showOrMove(m,function(){this._showTooltipContent(m,A,y,z,n.offsetX,n.offsetY,n.position,n.target,M)}),i({type:"showTip",dataIndexInside:u,dataIndex:p.getRawIndex(u),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=_r(r),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(An(l)){var u=l;l={content:u,formatter:u},c=!0}c&&o&&l.content&&(l=Or(l),l.content=l0(l.content));var d=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&d.push(p),d.push({formatter:l.content});var h=n.positionDefault,g=I_(d,this._tooltipModel,h?{position:h}:null),m=g.get("content"),b=Math.random()+"",y=new Bae;this._showOrMove(g,function(){var M=Or(g.get("formatterParams")||{});this._showTooltipContent(g,m,M,b,n.offsetX,n.offsetY,n.position,r,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,o,a,s,l,c,u){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var d=this._tooltipContent;d.setEnterable(n.get("enterable"));var p=n.get("formatter");l=l||n.get("position");var h=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),m=g.color;if(p)if(An(p)){var b=n.ecModel.get("useUTC"),y=Ht(i)?i[0]:i,M=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=p,M&&(h=UB(y.axisValue,h,b)),h=qSe(h,i,!0)}else if(fr(p)){var C=Rn(function(x,w){x===this._ticket&&(d.setContent(w,u,n,m,l),this._updatePosition(n,l,a,s,d,i,c))},this);this._ticket=o,h=p(i,o,C)}else h=p;d.setContent(h,u,n,m,l),d.show(n,m),this._updatePosition(n,l,a,s,d,i,c)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||Ht(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!Ht(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,o,a,s,l){var c=this._api.getWidth(),u=this._api.getHeight();r=r||n.get("position");var d=a.getSize(),p=n.get("align"),h=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),fr(r)&&(r=r([i,o],s,a.el,g,{viewSize:[c,u],contentSize:d.slice()})),Ht(r))i=vn(r[0],c),o=vn(r[1],u);else if(xr(r)){var m=r;m.width=d[0],m.height=d[1];var b=Pc(m,{width:c,height:u});i=b.x,o=b.y,p=null,h=null}else if(An(r)&&l){var y=Z2r(r,g,d,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=K2r(i,o,a,c,u,p?null:20,h?null:20);i=y[0],o=y[1]}if(p&&(i-=eHe(p)?d[0]/2:p==="right"?d[0]:0),h&&(o-=eHe(h)?d[1]/2:h==="bottom"?d[1]:0),OMt(n)){var y=Q2r(i,o,a,c,u);i=y[0],o=y[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&ye(i,function(s,l){var c=s.dataByAxis||[],u=n[l]||{},d=u.dataByAxis||[];a=a&&c.length===d.length,a&&ye(c,function(p,h){var g=d[h]||{},m=p.seriesDataIndices||[],b=g.seriesDataIndices||[];a=a&&p.value===g.value&&p.axisType===g.axisType&&p.axisId===g.axisId&&m.length===b.length,a&&ye(m,function(y,M){var C=b[M];a=a&&y.seriesIndex===C.seriesIndex&&y.dataIndex===C.dataIndex}),o&&ye(p.seriesDataIndices,function(y){var M=y.seriesIndex,C=r[M],x=o[M];C&&x&&x.data!==C.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){Ii.node||!r.getDom()||(xq(this,"_updatePosition"),this._tooltipContent.dispose(),Wve("itemTooltip",r))},t.type="tooltip",t})(us);function I_(e,t,n){var r=t.ecModel,i;n?(i=new No(n,r,r),i=new No(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof No&&(a=a.get("tooltip",!0)),An(a)&&(a={formatter:a}),a&&(i=new No(a,i,r)))}return i}function Jje(e,t){return e.dispatchAction||Rn(t.dispatchAction,t)}function K2r(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],c=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),a!=null&&(t+c+a>i?t-=c+a:t+=a),[e,t]}function Q2r(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Z2r(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-i/2,l=t.y+u/2-o/2;break;case"top":s=t.x+c/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-i/2,l=t.y+u+a;break;case"left":s=t.x-i-a,l=t.y+u/2-o/2;break;case"right":s=t.x+c+a,l=t.y+u/2-o/2}return[s,l]}function eHe(e){return e==="center"||e==="middle"}function J2r(e,t,n){var r=mSe(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=BB(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var u=_r(c).tooltipConfig;if(u&&u.name===e.name)return l=c,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function eyr(e){Si(ij),e.registerComponentModel(_2r),e.registerComponentView(Y2r),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nl),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nl)}var tyr=["rect","polygon","keep","clear"];function nyr(e,t){var n=Ea(e?e.brush:[]);if(n.length){var r=[];ye(n,function(l){var c=l.hasOwnProperty("toolbox")?l.toolbox:[];c instanceof Array&&(r=r.concat(c))});var i=e&&e.toolbox;Ht(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),ryr(s),t&&!s.length&&s.push.apply(s,tyr)}}function ryr(e){var t={};ye(e,function(n){t[n]=1}),e.length=0,ye(t,function(n,r){e.push(r)})}var tHe=ye;function nHe(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function Gve(e,t,n){var r={};return tHe(t,function(o){var a=r[o]=i();tHe(e[o],function(s,l){if(Su.isValidType(l)){var c={type:l,visual:s};n&&n(c,o),a[l]=new Su(c),l==="opacity"&&(c=Or(c),c.type="colorAlpha",a.__hidden.__alphaForOpacity=new Su(c))}})}),r;function i(){var o=function(){};o.prototype.__hidden=o.prototype;var a=new o;return a}}function RMt(e,t,n){var r;ye(n,function(i){t.hasOwnProperty(i)&&nHe(t[i])&&(r=!0)}),r&&ye(n,function(i){t.hasOwnProperty(i)&&nHe(t[i])?e[i]=Or(t[i]):delete e[i]})}function iyr(e,t,n,r,i,o){var a={};ye(e,function(d){var p=Su.prepareVisualTypes(t[d]);a[d]=p});var s;function l(d){return KSe(n,s,d)}function c(d,p){Xvt(n,s,d,p)}n.each(u);function u(d,p){s=d;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var g=r.call(i,d),m=t[g],b=a[g],y=0,M=b.length;y<M;y++){var C=b[y];m[C]&&m[C].applyVisual(d,l,c)}}}function oyr(e,t,n,r){var i={};return ye(e,function(o){var a=Su.prepareVisualTypes(t[o]);i[o]=a}),{progress:function(a,s){var l;r!=null&&(l=s.getDimensionIndex(r));function c(w){return KSe(s,d,w)}function u(w,S){Xvt(s,d,w,S)}for(var d,p=s.getStore();(d=a.next())!=null;){var h=s.getRawDataItem(d);if(!(h&&h.visualMap===!1))for(var g=r!=null?p.get(l,d):d,m=n(g),b=t[m],y=i[m],M=0,C=y.length;M<C;M++){var x=y[M];b[x]&&b[x].applyVisual(g,c,u)}}}}}function ayr(e){var t=e.brushType,n={point:function(r){return rHe[t].point(r,n,e)},rect:function(r){return rHe[t].rect(r,n,e)}};return n}var rHe={lineX:iHe(0),lineY:iHe(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&QA(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,o=e.y,a=e.width,s=e.height,l=r[0];if(QA(r,i,o)||QA(r,i+a,o)||QA(r,i,o+s)||QA(r,i+a,o+s)||ui.create(e).contain(l[0],l[1])||hN(i,o,i+a,o,r)||hN(i,o,i,o+s,r)||hN(i+a,o,i+a,o+s,r)||hN(i,o+s,i+a,o+s,r))return!0}}};function iHe(e){var t=["x","y"],n=["width","height"];return{point:function(r,i,o){if(r){var a=o.range,s=r[e];return P_(s,a)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),P_(s[0],a)||P_(s[1],a)||P_(a[0],s)||P_(a[1],s)}}}}function P_(e,t){return t[0]<=e&&e<=t[1]}var oHe=["inBrush","outOfBrush"],rle="__ecBrushSelect",$ve="__ecInBrushSelectEvent";function IMt(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new dOe(t.option,e);n.setInputRanges(t.areas,e)})}function syr(e,t,n){var r=[],i,o;e.eachComponent({mainType:"brush"},function(a){n&&n.type==="takeGlobalCursor"&&a.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),IMt(e),e.eachComponent({mainType:"brush"},function(a,s){var l={brushId:a.id,brushIndex:s,brushName:a.name,areas:Or(a.areas),selected:[]};r.push(l);var c=a.option,u=c.brushLink,d=[],p=[],h=[],g=!1;s||(i=c.throttleType,o=c.throttleDelay);var m=Vt(a.areas,function(w){var S=dyr[w.brushType],A=br({boundingRect:S?S(w):void 0},w);return A.selectors=ayr(A),A}),b=Gve(a.option,oHe,function(w){w.mappingMethod="fixed"});Ht(u)&&ye(u,function(w){d[w]=1});function y(w){return u==="all"||!!d[w]}function M(w){return!!w.length}e.eachSeries(function(w,S){var A=h[S]=[];w.subType==="parallel"?C(w,S):x(w,S,A)});function C(w,S){var A=w.coordinateSystem;g=g||A.hasAxisBrushed(),y(S)&&A.eachActiveState(w.getData(),function(z,O){z==="active"&&(p[O]=1)})}function x(w,S,A){if(!(!w.brushSelector||uyr(a,S))&&(ye(m,function(O){a.brushTargetManager.controlSeries(O,w,e)&&A.push(O),g=g||M(A)}),y(S)&&M(A))){var z=w.getData();z.each(function(O){aHe(w,A,z,O)&&(p[O]=1)})}}e.eachSeries(function(w,S){var A={seriesId:w.id,seriesIndex:S,seriesName:w.name,dataIndex:[]};l.selected.push(A);var z=h[S],O=w.getData(),T=y(S)?function(R){return p[R]?(A.dataIndex.push(O.getRawIndex(R)),"inBrush"):"outOfBrush"}:function(R){return aHe(w,z,O,R)?(A.dataIndex.push(O.getRawIndex(R)),"inBrush"):"outOfBrush"};(y(S)?g:M(z))&&iyr(oHe,b,O,T)})}),lyr(t,i,o,r,n)}function lyr(e,t,n,r,i){if(i){var o=e.getZr();if(!o[$ve]){o[rle]||(o[rle]=cyr);var a=hk(o,rle,n,t);a(e,r)}}}function cyr(e,t){if(!e.isDisposed()){var n=e.getZr();n[$ve]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[$ve]=!1}}function aHe(e,t,n,r){for(var i=0,o=t.length;i<o;i++){var a=t[i];if(e.brushSelector(r,n,a.selectors,a))return!0}}function uyr(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(Ht(n)?hi(n,t)<0:t!==n)}var dyr={rect:function(e){return sHe(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&sHe(t)}};function sHe(e){return new ui(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var pyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new FAe(r.getZr())).on("brush",Rn(this._onBrush,this)).mount()},t.prototype.render=function(n,r,i,o){this.model=n,this._updateController(n,r,i,o)},t.prototype.updateTransform=function(n,r,i,o){IMt(r),this._updateController(n,r,i,o)},t.prototype.updateVisual=function(n,r,i,o){this.updateTransform(n,r,i,o)},t.prototype.updateView=function(n,r,i,o){this._updateController(n,r,i,o)},t.prototype._updateController=function(n,r,i,o){(!o||o.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Or(i),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Or(i),$from:r})},t.type="brush",t})(us),hyr="#ddd",fyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var i=this.option;!r&&RMt(i,n,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:hyr},o.hasOwnProperty("liftZ")||(o.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=Vt(n,function(r){return lHe(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=lHe(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t})(Ri);function lHe(e,t){return ei({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new No(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var gyr=["rect","polygon","lineX","lineY","keep","clear"],myr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,i){var o,a,s;r.eachComponent({mainType:"brush"},function(l){o=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=o,this._brushMode=a,ye(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===o)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,i){this.render(n,r,i)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),i={};return ye(n.get("type",!0),function(o){r[o]&&(i[o]=r[o])}),i},t.prototype.onclick=function(n,r,i){var o=this._brushType,a=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?o:o===i?!1:i,brushMode:i==="keep"?a==="multiple"?"single":"multiple":a}})},t.getDefaultOption=function(n){var r={show:!0,type:gyr.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t})(cf);function vyr(e){e.registerComponentView(pyr),e.registerComponentModel(fyr),e.registerPreprocessor(nyr),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,syr),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Nl),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Nl),zR("brush",myr)}var byr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(Ri),yyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){if(this.group.removeAll(),!!n.get("show")){var o=this.group,a=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),c=Xr(n.get("textBaseline"),n.get("textVerticalAlign")),u=new oo({style:Za(a,{text:n.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),d=u.getBoundingRect(),p=n.get("subtext"),h=new oo({style:Za(s,{text:p,fill:s.getTextColor(),y:d.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=n.get("link"),m=n.get("sublink"),b=n.get("triggerEvent",!0);u.silent=!g&&!b,h.silent=!m&&!b,g&&u.on("click",function(){AU(g,"_"+n.get("target"))}),m&&h.on("click",function(){AU(m,"_"+n.get("subtarget"))}),_r(u).eventData=_r(h).eventData=b?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(u),p&&o.add(h);var y=o.getBoundingRect(),M=n.getBoxLayoutParams();M.width=y.width,M.height=y.height;var C=Pc(M,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?C.x+=C.width:l==="center"&&(C.x+=C.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?C.y+=C.height:c==="middle"&&(C.y+=C.height/2),c=c||"top"),o.x=C.x,o.y=C.y,o.markRedraw();var x={align:l,verticalAlign:c};u.setStyle(x),h.setStyle(x),y=o.getBoundingRect();var w=C.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var A=new ao({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});o.add(A)}},t.type="title",t})(us);function Myr(e){e.registerComponentModel(byr),e.registerComponentView(yyr)}var cHe=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],i=n.axisType,o=this._names=[],a;i==="category"?(a=[],ye(r,function(c,u){var d=Zc(ek(c),""),p;xr(c)?(p=Or(c),p.value=u):p=u,a.push(p),o.push(d)})):a=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new y0([{name:"value",type:s}],this);l.initData(a,o)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t})(Ri),PMt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=Ww(cHe.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t})(cHe);Hl(PMt,RJ.prototype);var Cyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t})(us),xyr=(function(e){gt(t,e);function t(n,r,i,o){var a=e.call(this,n,r,i)||this;return a.type=o||"value",a}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t})(ng),ile=Math.PI,uHe=mo(),wyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,i){if(this.model=n,this.api=i,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var o=this._layout(n,i),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,n);n.formatTooltip=function(c){var u=l.scale.getLabel({value:c});return Iu("nameValue",{noName:!0,value:u})},ye(["AxisLine","AxisTick","Control","CurrentPointer"],function(c){this["_render"+c](o,a,l,n)},this),this._renderAxisLabel(o,s,l,n),this._position(o,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var i=n.get(["label","position"]),o=n.get("orient"),a=Ayr(n,r),s;i==null||i==="auto"?s=o==="horizontal"?a.y+a.height/2<r.getHeight()/2?"-":"+":a.x+a.width/2<r.getWidth()/2?"+":"-":An(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},c={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:ile/2},d=o==="vertical"?a.height:a.width,p=n.getModel("controlStyle"),h=p.get("show",!0),g=h?p.get("itemSize"):0,m=h?p.get("itemGap"):0,b=g+m,y=n.get(["label","rotate"])||0;y=y*ile/180;var M,C,x,w=p.get("position",!0),S=h&&p.get("showPlayBtn",!0),A=h&&p.get("showPrevBtn",!0),z=h&&p.get("showNextBtn",!0),O=0,T=d;w==="left"||w==="bottom"?(S&&(M=[0,0],O+=b),A&&(C=[O,0],O+=b),z&&(x=[T-g,0],T-=b)):(S&&(M=[T-g,0],T-=b),A&&(C=[0,0],O+=b),z&&(x=[T-g,0],T-=b));var R=[O,T];return n.get("inverse")&&R.reverse(),{viewRect:a,mainLength:d,orient:o,rotation:u[o],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[o],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||c[o],playPosition:M,prevBtnPosition:C,nextBtnPosition:x,axisExtent:R,controlSize:g,controlGap:m}},t.prototype._position=function(n,r){var i=this._mainGroup,o=this._labelGroup,a=n.viewRect;if(n.orient==="vertical"){var s=gp(),l=a.x,c=a.y+a.height;Sm(s,s,[-l,-c]),Nw(s,s,-ile/2),Sm(s,s,[l,c]),a=a.clone(),a.applyTransform(s)}var u=M(a),d=M(i.getBoundingRect()),p=M(o.getBoundingRect()),h=[i.x,i.y],g=[o.x,o.y];g[0]=h[0]=u[0][0];var m=n.labelPosOpt;if(m==null||An(m)){var b=m==="+"?0:1;C(h,d,u,1,b),C(g,p,u,1,1-b)}else{var b=m>=0?0:1;C(h,d,u,1,b),g[1]=h[1]+m}i.setPosition(h),o.setPosition(g),i.rotation=o.rotation=n.rotation,y(i),y(o);function y(x){x.originX=u[0][0]-x.x,x.originY=u[1][0]-x.y}function M(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function C(x,w,S,A,z){x[A]+=S[A][z]-w[A][z]}},t.prototype._createAxis=function(n,r){var i=r.getData(),o=r.get("axisType"),a=Syr(r,o);a.getTicks=function(){return i.mapArray(["value"],function(c){return{value:c}})};var s=i.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new xyr("value",a,n.axisExtent,o);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new Ir;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,i,o){var a=i.getExtent();if(o.get(["lineStyle","show"])){var s=new Jc({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:Nt({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Jc({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:br({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,i,o){var a=this,s=o.getData(),l=i.scale.getTicks();this._tickSymbols=[],ye(l,function(c){var u=i.dataToCoord(c.value),d=s.getItemModel(c.value),p=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),g=d.getModel(["progress","itemStyle"]),m={x:u,y:0,onclick:Rn(a._changeTimeline,a,c.value)},b=dHe(d,p,r,m);b.ensureState("emphasis").style=h.getItemStyle(),b.ensureState("progress").style=g.getItemStyle(),Lx(b);var y=_r(b);d.get("tooltip")?(y.dataIndex=c.value,y.dataModel=o):y.dataIndex=y.dataModel=null,a._tickSymbols.push(b)})},t.prototype._renderAxisLabel=function(n,r,i,o){var a=this,s=i.getLabelModel();if(s.get("show")){var l=o.getData(),c=i.getViewLabels();this._tickLabels=[],ye(c,function(u){var d=u.tickValue,p=l.getItemModel(d),h=p.getModel("label"),g=p.getModel(["emphasis","label"]),m=p.getModel(["progress","label"]),b=i.dataToCoord(u.tickValue),y=new oo({x:b,y:0,rotation:n.labelRotation-n.rotation,onclick:Rn(a._changeTimeline,a,d),silent:!1,style:Za(h,{text:u.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=Za(g),y.ensureState("progress").style=Za(m),r.add(y),Lx(y),uHe(y).dataIndex=d,a._tickLabels.push(y)})}},t.prototype._renderControl=function(n,r,i,o){var a=n.controlSize,s=n.rotation,l=o.getModel("controlStyle").getItemStyle(),c=o.getModel(["emphasis","controlStyle"]).getItemStyle(),u=o.getPlayState(),d=o.get("inverse",!0);p(n.nextBtnPosition,"next",Rn(this._changeTimeline,this,d?"-":"+")),p(n.prevBtnPosition,"prev",Rn(this._changeTimeline,this,d?"+":"-")),p(n.playPosition,u?"stop":"play",Rn(this._handlePlayClick,this,!u),!0);function p(h,g,m,b){if(h){var y=Am(Xr(o.get(["controlStyle",g+"BtnSize"]),a),a),M=[0,-y/2,y,y],C=Oyr(o,g+"Icon",M,{x:h[0],y:h[1],originX:a/2,originY:0,rotation:b?-s:0,rectHover:!0,style:l,onclick:m});C.ensureState("emphasis").style=c,r.add(C),Lx(C)}}},t.prototype._renderCurrentPointer=function(n,r,i,o){var a=o.getData(),s=o.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),c=this,u={onCreate:function(d){d.draggable=!0,d.drift=Rn(c._handlePointerDrag,c),d.ondragend=Rn(c._handlePointerDragend,c),pHe(d,c._progressLine,s,i,o,!0)},onUpdate:function(d){pHe(d,c._progressLine,s,i,o)}};this._currentPointer=dHe(l,l,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var i=this._toAxisCoord(n)[0],o=this._axis,a=Jp(o.getExtent().slice());i>a[1]&&(i=a[1]),i<a[0]&&(i=a[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),c=this.model;(r||l!==c.getCurrentIndex()&&c.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return mm(n,r,!0)},t.prototype._findNearestTick=function(n){var r=this.model.getData(),i=1/0,o,a=this._axis;return r.each(["value"],function(s,l){var c=a.dataToCoord(s),u=Math.abs(c-n);u<i&&(i=u,o=l)}),o},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},t.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,i=this._tickLabels;if(r)for(var o=0;o<r.length;o++)r&&r[o]&&r[o].toggleState("progress",o<n);if(i)for(var o=0;o<i.length;o++)i&&i[o]&&i[o].toggleState("progress",uHe(i[o]).dataIndex<=n)},t.type="timeline.slider",t})(Cyr);function Syr(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new FJ({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new uAe({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new sM}}function Ayr(e,t){return Pc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function Oyr(e,t,n,r){var i=r.style,o=ak(e.get(["controlStyle",t]),r||{},new ui(n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function dHe(e,t,n,r,i,o){var a=t.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=e.get("symbol");i=sc(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),r=ei({rectHover:!0,z2:100},r,!0);var c=fk(e.get("symbolSize"));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var u=U3(e.get("symbolOffset"),c);u&&(r.x=(r.x||0)+u[0],r.y=(r.y||0)+u[1]);var d=e.get("symbolRotate");return r.rotation=(d||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function pHe(e,t,n,r,i,o){if(!e.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function zyr(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n,r){var i=n.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),n.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),br({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,n){var r=n.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function Tyr(e){var t=e&&e.timeline;Ht(t)||(t=t?[t]:[]),ye(t,function(n){n&&Eyr(n)})}function Eyr(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),hHe(e),eO(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});eO(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!eO(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}ye(e.data||[],function(i){xr(i)&&!Ht(i)&&(!eO(i,"value")&&eO(i,"name")&&(i.value=i.name),hHe(i))})}function hHe(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};ye(r,function(a,s){!o[s]&&!eO(i,s)&&(i[s]=a)}),n.label&&!eO(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function eO(e,t){return e.hasOwnProperty(t)}function Ryr(e){e.registerComponentModel(PMt),e.registerComponentView(wyr),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),zyr(e),e.registerPreprocessor(Tyr)}function fOe(e,t){if(!e)return!1;for(var n=Ht(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function GV(e){Xz(e,"label",["show"])}var $V=mo(),cM=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),this._mergeOption(n,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ii.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},t.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},t.prototype._mergeOption=function(n,r,i,o){var a=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),c=$V(s)[a];if(!l||!l.data){$V(s)[a]=null;return}c?c._mergeOption(l,r,!0):(o&&GV(l),ye(l.data,function(u){u instanceof Array?(GV(u[0]),GV(u[1])):GV(u)}),c=this.createMarkerModelFromSeries(l,this,r),Nt(c,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),c.__hostSeries=s),$V(s)[a]=c},this)},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Iu("section",{header:this.name,blocks:[Iu("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(n){this._data=n},t.prototype.getDataParams=function(n,r){var i=RJ.prototype.getDataParams.call(this,n,r),o=this.__hostSeries;return o&&(i.seriesId=o.id,i.seriesName=o.name,i.seriesType=o.subType),i},t.getMarkerModelFromSeries=function(n,r){return $V(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(Ri);Hl(cM,RJ.prototype);var Iyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,i){return new t(n,r,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t})(cM);function Uve(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Pyr(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function UV(e,t,n,r,i,o){var a=[],s=aM(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,c=gOe(t,l,e),u=t.indicesOfNearest(l,c)[0];a[i]=t.get(n,u),a[o]=t.get(l,u);var d=t.get(r,u),p=tm(t.get(r,u));return p=Math.min(p,20),p>=0&&(a[o]=+a[o].toFixed(p)),[a,d]}var ole={min:Zr(UV,"min"),max:Zr(UV,"max"),average:Zr(UV,"average"),median:Zr(UV,"median")};function _q(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!Pyr(t)&&!Ht(t.coord)&&Ht(i)){var o=DMt(t,n,r,e);if(t=Or(t),t.type&&ole[t.type]&&o.baseAxis&&o.valueAxis){var a=hi(i,o.baseAxis.dim),s=hi(i,o.valueAxis.dim),l=ole[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Ht(i))t.coord=[];else for(var c=t.coord,u=0;u<2;u++)ole[c[u]]&&(c[u]=gOe(n,n.mapDimension(i[u]),c[u]));return t}}function DMt(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(Dyr(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Dyr(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Nq(e,t){return e&&e.containData&&t.coord&&!Uve(t)?e.containData(t.coord):!0}function kyr(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!Uve(t)&&!Uve(n)?e.containZone(t.coord,n.coord):!0}function kMt(e,t){return e?function(n,r,i,o){var a=o<2?n.coord&&n.coord[o]:n.value;return Fx(a,t[o])}:function(n,r,i,o){return Fx(n.value,t[o])}}function gOe(e,t,n){if(n==="average"){var r=0,i=0;return e.each(t,function(o,a){isNaN(o)||(r+=o,i++)}),r/i}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var ale=mo(),mOe=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Kn()},t.prototype.render=function(n,r,i){var o=this,a=this.markerGroupMap;a.each(function(s){ale(s).keep=!1}),r.eachSeries(function(s){var l=cM.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,r,i)}),a.each(function(s){!ale(s).keep&&o.group.remove(s.group)})},t.prototype.markKeep=function(n){ale(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var i=this;ye(n,function(o){var a=cM.getMarkerModelFromSeries(o,i.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(r?Amt(l):wSe(l))})}})},t.type="marker",t})(us);function fHe(e,t,n){var r=t.coordinateSystem;e.each(function(i){var o=e.getItemModel(i),a,s=vn(o.get("x"),n.getWidth()),l=vn(o.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var c=e.get(r.dimensions[0],i),u=e.get(r.dimensions[1],i);a=r.dataToPoint([c,u])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),e.setItemLayout(i,a)})}var Lyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cM.getMarkerModelFromSeries(o,"markPoint");a&&(fHe(a.getData(),o,i),this.markerGroupMap.get(o.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),c=this.markerGroupMap,u=c.get(s)||c.set(s,new QB),d=_yr(a,n,r);r.setData(d),fHe(r.getData(),n,o),d.each(function(p){var h=d.getItemModel(p),g=h.getShallow("symbol"),m=h.getShallow("symbolSize"),b=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),M=h.getShallow("symbolKeepAspect");if(fr(g)||fr(m)||fr(b)||fr(y)){var C=r.getRawValue(p),x=r.getDataParams(p);fr(g)&&(g=g(C,x)),fr(m)&&(m=m(C,x)),fr(b)&&(b=b(C,x)),fr(y)&&(y=y(C,x))}var w=h.getModel("itemStyle").getItemStyle(),S=XB(l,"color");w.fill||(w.fill=S),d.setItemVisual(p,{symbol:g,symbolSize:m,symbolRotate:b,symbolOffset:y,symbolKeepAspect:M,style:w})}),u.updateData(d),this.group.add(u.group),d.eachItemGraphicEl(function(p){p.traverse(function(h){_r(h).dataModel=r})}),this.markKeep(u),u.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t})(mOe);function _yr(e,t,n){var r;e?r=Vt(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Nt(Nt({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new y0(r,n),o=Vt(n.get("data"),Zr(_q,t));e&&(o=Lo(o,Zr(Nq,e)));var a=kMt(!!e,r);return i.initData(o,null,a),i}function Nyr(e){e.registerComponentModel(Iyr),e.registerComponentView(Lyr),e.registerPreprocessor(function(t){fOe(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Fyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,i){return new t(n,r,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(cM),XV=mo(),Wyr=function(e,t,n,r){var i=e.getData(),o;if(Ht(r))o=r;else{var a=r.type;if(a==="min"||a==="max"||a==="average"||a==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=xu(r.yAxis,r.xAxis);else{var c=DMt(r,i,t,e);s=c.valueAxis;var u=lAe(i,c.valueDataDim);l=gOe(i,u,a)}var d=s.dim==="x"?0:1,p=1-d,h=Or(r),g={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,g.coord[p]=1/0;var m=n.get("precision");m>=0&&yo(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[d]=g.coord[d]=l,o=[h,g,{type:a,valueIndex:r.valueIndex,value:l}]}else o=[]}var b=[_q(e,o[0]),_q(e,o[1]),Nt({},o[2])];return b[2].type=b[2].type||null,ei(b[2],b[0]),ei(b[2],b[1]),b};function ZU(e){return!isNaN(e)&&!isFinite(e)}function gHe(e,t,n,r){var i=1-e,o=r.dimensions[e];return ZU(t[i])&&ZU(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function qyr(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(gHe(1,n,r,e)||gHe(0,n,r,e)))return!0}return Nq(e,t[0])&&Nq(e,t[1])}function sle(e,t,n,r,i){var o=r.coordinateSystem,a=e.getItemModel(t),s,l=vn(a.get("x"),i.getWidth()),c=vn(a.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,d=e.get(u[0],t),p=e.get(u[1],t);s=o.dataToPoint([d,p])}if(X3(o,"cartesian2d")){var h=o.getAxis("x"),g=o.getAxis("y"),u=o.dimensions;ZU(e.get(u[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):ZU(e.get(u[1],t))&&(s[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c)}e.setItemLayout(t,s)}var Byr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cM.getMarkerModelFromSeries(o,"markLine");if(a){var s=a.getData(),l=XV(a).from,c=XV(a).to;l.each(function(u){sle(l,u,!0,o,i),sle(c,u,!1,o,i)}),s.each(function(u){s.setItemLayout(u,[l.getItemLayout(u),c.getItemLayout(u)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),c=this.markerGroupMap,u=c.get(s)||c.set(s,new NAe);this.group.add(u.group);var d=jyr(a,n,r),p=d.from,h=d.to,g=d.line;XV(r).from=p,XV(r).to=h,r.setData(g);var m=r.get("symbol"),b=r.get("symbolSize"),y=r.get("symbolRotate"),M=r.get("symbolOffset");Ht(m)||(m=[m,m]),Ht(b)||(b=[b,b]),Ht(y)||(y=[y,y]),Ht(M)||(M=[M,M]),d.from.each(function(x){C(p,x,!0),C(h,x,!1)}),g.each(function(x){var w=g.getItemModel(x).getModel("lineStyle").getLineStyle();g.setItemLayout(x,[p.getItemLayout(x),h.getItemLayout(x)]),w.stroke==null&&(w.stroke=p.getItemVisual(x,"style").fill),g.setItemVisual(x,{fromSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(x,"symbolOffset"),fromSymbolRotate:p.getItemVisual(x,"symbolRotate"),fromSymbolSize:p.getItemVisual(x,"symbolSize"),fromSymbol:p.getItemVisual(x,"symbol"),toSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(x,"symbolOffset"),toSymbolRotate:h.getItemVisual(x,"symbolRotate"),toSymbolSize:h.getItemVisual(x,"symbolSize"),toSymbol:h.getItemVisual(x,"symbol"),style:w})}),u.updateData(g),d.line.eachItemGraphicEl(function(x){_r(x).dataModel=r,x.traverse(function(w){_r(w).dataModel=r})});function C(x,w,S){var A=x.getItemModel(w);sle(x,w,S,n,o);var z=A.getModel("itemStyle").getItemStyle();z.fill==null&&(z.fill=XB(l,"color")),x.setItemVisual(w,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:Xr(A.get("symbolOffset",!0),M[S?0:1]),symbolRotate:Xr(A.get("symbolRotate",!0),y[S?0:1]),symbolSize:Xr(A.get("symbolSize"),b[S?0:1]),symbol:Xr(A.get("symbol",!0),m[S?0:1]),style:z})}this.markKeep(u),u.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t})(mOe);function jyr(e,t,n){var r;e?r=Vt(e&&e.dimensions,function(c){var u=t.getData().getDimensionInfo(t.getData().mapDimension(c))||{};return Nt(Nt({},u),{name:c,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new y0(r,n),o=new y0(r,n),a=new y0([],n),s=Vt(n.get("data"),Zr(Wyr,t,e,n));e&&(s=Lo(s,Zr(qyr,e)));var l=kMt(!!e,r);return i.initData(Vt(s,function(c){return c[0]}),null,l),o.initData(Vt(s,function(c){return c[1]}),null,l),a.initData(Vt(s,function(c){return c[2]})),a.hasItemOption=!0,{from:i,to:o,line:a}}function Hyr(e){e.registerComponentModel(Fyr),e.registerComponentView(Byr),e.registerPreprocessor(function(t){fOe(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Vyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,i){return new t(n,r,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t})(cM),YV=mo(),Gyr=function(e,t,n,r){var i=r[0],o=r[1];if(!(!i||!o)){var a=_q(e,i),s=_q(e,o),l=a.coord,c=s.coord;l[0]=xu(l[0],-1/0),l[1]=xu(l[1],-1/0),c[0]=xu(c[0],1/0),c[1]=xu(c[1],1/0);var u=oJ([{},a,s]);return u.coord=[a.coord,s.coord],u.x0=a.x,u.y0=a.y,u.x1=s.x,u.y1=s.y,u}};function JU(e){return!isNaN(e)&&!isFinite(e)}function mHe(e,t,n,r){var i=1-e;return JU(t[i])&&JU(n[i])}function $yr(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return X3(e,"cartesian2d")?n&&r&&(mHe(1,n,r)||mHe(0,n,r))?!0:kyr(e,i,o):Nq(e,i)||Nq(e,o)}function vHe(e,t,n,r,i){var o=r.coordinateSystem,a=e.getItemModel(t),s,l=vn(a.get(n[0]),i.getWidth()),c=vn(a.get(n[1]),i.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else{if(r.getMarkerPosition){var u=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=o.clampData(u),h=o.clampData(d),g=[];n[0]==="x0"?g[0]=p[0]>h[0]?d[0]:u[0]:g[0]=p[0]>h[0]?u[0]:d[0],n[1]==="y0"?g[1]=p[1]>h[1]?d[1]:u[1]:g[1]=p[1]>h[1]?u[1]:d[1],s=r.getMarkerPosition(g,n,!0)}else{var m=e.get(n[0],t),b=e.get(n[1],t),y=[m,b];o.clampData&&o.clampData(y,y),s=o.dataToPoint(y,!0)}if(X3(o,"cartesian2d")){var M=o.getAxis("x"),C=o.getAxis("y"),m=e.get(n[0],t),b=e.get(n[1],t);JU(m)?s[0]=M.toGlobalCoord(M.getExtent()[n[0]==="x0"?0:1]):JU(b)&&(s[1]=C.toGlobalCoord(C.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c)}return s}var bHe=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Uyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cM.getMarkerModelFromSeries(o,"markArea");if(a){var s=a.getData();s.each(function(l){var c=Vt(bHe,function(d){return vHe(s,l,d,o,i)});s.setItemLayout(l,c);var u=s.getItemGraphicEl(l);u.setShape("points",c)})}},this)},t.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),c=this.markerGroupMap,u=c.get(s)||c.set(s,{group:new Ir});this.group.add(u.group),this.markKeep(u);var d=Xyr(a,n,r);r.setData(d),d.each(function(p){var h=Vt(bHe,function(z){return vHe(d,p,z,n,o)}),g=a.getAxis("x").scale,m=a.getAxis("y").scale,b=g.getExtent(),y=m.getExtent(),M=[g.parse(d.get("x0",p)),g.parse(d.get("x1",p))],C=[m.parse(d.get("y0",p)),m.parse(d.get("y1",p))];Jp(M),Jp(C);var x=!(b[0]>M[1]||b[1]<M[0]||y[0]>C[1]||y[1]<C[0]),w=!x;d.setItemLayout(p,{points:h,allClipped:w});var S=d.getItemModel(p).getModel("itemStyle").getItemStyle(),A=XB(l,"color");S.fill||(S.fill=A,An(S.fill)&&(S.fill=pq(S.fill,.4))),S.stroke||(S.stroke=A),d.setItemVisual(p,"style",S)}),d.diff(YV(u).data).add(function(p){var h=d.getItemLayout(p);if(!h.allClipped){var g=new O0({shape:{points:h.points}});d.setItemGraphicEl(p,g),u.group.add(g)}}).update(function(p,h){var g=YV(u).data.getItemGraphicEl(h),m=d.getItemLayout(p);m.allClipped?g&&u.group.remove(g):(g?Ao(g,{shape:{points:m.points}},r,p):g=new O0({shape:{points:m.points}}),d.setItemGraphicEl(p,g),u.group.add(g))}).remove(function(p){var h=YV(u).data.getItemGraphicEl(p);u.group.remove(h)}).execute(),d.eachItemGraphicEl(function(p,h){var g=d.getItemModel(h),m=d.getItemVisual(h,"style");p.useStyle(d.getItemVisual(h,"style")),zd(p,Ru(g),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:An(m.fill)?pq(m.fill,1):"#000"}),Od(p,g),sl(p,null,null,g.get(["emphasis","disabled"])),_r(p).dataModel=r}),YV(u).data=d,u.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t})(mOe);function Xyr(e,t,n){var r,i,o=["x0","y0","x1","y1"];if(e){var a=Vt(e&&e.dimensions,function(c){var u=t.getData(),d=u.getDimensionInfo(u.mapDimension(c))||{};return Nt(Nt({},d),{name:c,ordinalMeta:null})});i=Vt(o,function(c,u){return{name:c,type:a[u%2].type}}),r=new y0(i,n)}else i=[{name:"value",type:"float"}],r=new y0(i,n);var s=Vt(n.get("data"),Zr(Gyr,t,e,n));e&&(s=Lo(s,Zr($yr,e)));var l=e?function(c,u,d,p){var h=c.coord[Math.floor(p/2)][p%2];return Fx(h,i[p])}:function(c,u,d,p){return Fx(c.value,i[p])};return r.initData(s,null,l),r.hasItemOption=!0,r}function Yyr(e){e.registerComponentModel(Vyr),e.registerComponentView(Uyr),e.registerPreprocessor(function(t){fOe(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Kyr=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Xve=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Ht(r)&&ye(r,function(o,a){An(o)&&(o={type:o}),r[a]=ei(o,Kyr(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<n.length;i++){var o=n[i].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var c=l.name;i.push(c);var u;if(l.legendVisualProvider){var d=l.legendVisualProvider,p=d.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(p)),p.length?r=r.concat(p):u=!0}else u=!0;u&&gSe(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Kn(),s=Vt(o,function(l){return(An(l)||yo(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new No(l,this,this.ecModel))},this);this._data=Lo(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;ye(o,function(a){r[a.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;ye(n,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;ye(n,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&hi(this._availableNames,n)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(Ri),tR=Zr,Yve=ye,KV=Ir,LMt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new KV),this.group.add(this._selectorGroup=new KV),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),c=n.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,c);var u=n.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},p=n.get("padding"),h=Pc(u,d,p),g=this.layoutInner(n,a,h,o,l,c),m=Pc(br({width:g.width,height:g.height},u),d,p);this.group.x=m.x-g.x,this.group.y=m.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wMt(g,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,o,a,s,l){var c=this.getContentGroup(),u=Kn(),d=r.get("selectedMode"),p=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&p.push(h.id)}),Yve(r.getData(),function(h,g){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var b=new KV;b.newline=!0,c.add(b);return}var y=i.getSeriesByName(m)[0];if(!u.get(m))if(y){var M=y.getData(),C=M.getVisual("legendLineStyle")||{},x=M.getVisual("legendIcon"),w=M.getVisual("style"),S=this._createItem(y,m,g,h,r,n,C,w,x,d,o);S.on("click",tR(yHe,m,null,o,p)).on("mouseover",tR(Kve,y.name,null,o,p)).on("mouseout",tR(Qve,y.name,null,o,p)),i.ssr&&S.eachChild(function(A){var z=_r(A);z.seriesIndex=y.seriesIndex,z.dataIndex=g,z.ssrType="legend"}),u.set(m,!0)}else i.eachRawSeries(function(A){if(!u.get(m)&&A.legendVisualProvider){var z=A.legendVisualProvider;if(!z.containName(m))return;var O=z.indexOfName(m),T=z.getItemVisual(O,"style"),R=z.getItemVisual(O,"legendIcon"),P=c1(T.fill);P&&P[3]===0&&(P[3]=.2,T=Nt(Nt({},T),{fill:gm(P,"rgba")}));var F=this._createItem(A,m,g,h,r,n,{},T,R,d,o);F.on("click",tR(yHe,null,m,o,p)).on("mouseover",tR(Kve,null,m,o,p)).on("mouseout",tR(Qve,null,m,o,p)),i.ssr&&F.eachChild(function(N){var L=_r(N);L.seriesIndex=A.seriesIndex,L.dataIndex=g,L.ssrType="legend"}),u.set(m,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();Yve(n,function(c){var u=c.type,d=new oo({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(d);var p=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);zd(d,{normal:p,emphasis:h},{defaultText:c.title}),Lx(d)})},t.prototype._createItem=function(n,r,i,o,a,s,l,c,u,d,p){var h=n.visualDrawType,g=a.get("itemWidth"),m=a.get("itemHeight"),b=a.isSelected(r),y=o.get("symbolRotate"),M=o.get("symbolKeepAspect"),C=o.get("icon");u=C||u||"roundRect";var x=Qyr(u,o,l,c,h,b,p),w=new KV,S=o.getModel("textStyle");if(fr(n.getLegendIcon)&&(!C||C==="inherit"))w.add(n.getLegendIcon({itemWidth:g,itemHeight:m,icon:u,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:M}));else{var A=C==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;w.add(Zyr({itemWidth:g,itemHeight:m,icon:u,iconRotate:A,itemStyle:x.itemStyle,symbolKeepAspect:M}))}var z=s==="left"?g+5:-5,O=s,T=a.get("formatter"),R=r;An(T)&&T?R=T.replace("{name}",r??""):fr(T)&&(R=T(r));var P=b?S.getTextColor():o.get("inactiveColor");w.add(new oo({style:Za(S,{text:R,x:z,y:m/2,fill:P,align:O,verticalAlign:"middle"},{inheritColor:P})}));var F=new ao({shape:w.getBoundingRect(),style:{fill:"transparent"}}),N=o.getModel("tooltip");return N.get("show")&&V3({el:F,componentModel:a,itemName:r,itemTooltipOption:N.option}),w.add(F),w.eachChild(function(L){L.silent=!0}),F.silent=!d,this.getContentGroup().add(w),Lx(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();nz(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var u=l.getBoundingRect(),d=[-u.x,-u.y];if(c.markRedraw(),l.markRedraw(),a){nz("horizontal",c,n.get("selectorItemGap",!0));var p=c.getBoundingRect(),h=[-p.x,-p.y],g=n.get("selectorButtonGap",!0),m=n.getOrient().index,b=m===0?"width":"height",y=m===0?"height":"width",M=m===0?"y":"x";s==="end"?h[m]+=u[b]+g:d[m]+=p[b]+g,h[1-m]+=u[y]/2-p[y]/2,c.x=h[0],c.y=h[1],l.x=d[0],l.y=d[1];var C={x:0,y:0};return C[b]=u[b]+g+p[b],C[y]=Math.max(u[y],p[y]),C[M]=Math.min(0,p[M]+h[1-m]),C}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(us);function Qyr(e,t,n,r,i,o,a){function s(b,y){b.lineWidth==="auto"&&(b.lineWidth=y.lineWidth>0?2:0),Yve(b,function(M,C){b[C]==="inherit"&&(b[C]=y[C])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");c.decal=!d||d==="inherit"?r.decal:FP(d,a),c.fill==="inherit"&&(c.fill=r[i]),c.stroke==="inherit"&&(c.stroke=r[u]),c.opacity==="inherit"&&(c.opacity=(i==="fill"?r:n).opacity),s(c,r);var p=t.getModel("lineStyle"),h=p.getLineStyle();if(s(h,n),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!o){var g=t.get("inactiveBorderWidth"),m=c[u];c.lineWidth=g==="auto"?r.lineWidth>0&&m?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}function Zyr(e){var t=e.icon||"roundRect",n=sc(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function yHe(e,t,n,r){Qve(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),Kve(e,t,n,r)}function _Mt(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function Kve(e,t,n,r){_Mt(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function Qve(e,t,n,r){_Mt(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function Jyr(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function D_(e,t,n){var r=e==="allSelect"||e==="inverseSelect",i={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){r?s[e]():s[e](t.name),MHe(s,i),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){ye(i,function(l,c){s[l?"select":"unSelect"](c)}),MHe(s,a)}),r?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function MHe(e,t){var n=t||{};return ye(e.getData(),function(r){var i=r.get("name");if(!(i===`
`||i==="")){var o=e.isSelected(i);Fn(n,i)?n[i]=n[i]&&o:n[i]=o}}),n}function eMr(e){e.registerAction("legendToggleSelect","legendselectchanged",Zr(D_,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Zr(D_,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Zr(D_,"inverseSelect")),e.registerAction("legendSelect","legendselected",Zr(D_,"select")),e.registerAction("legendUnSelect","legendunselected",Zr(D_,"unSelect"))}function NMt(e){e.registerComponentModel(Xve),e.registerComponentView(LMt),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Jyr),e.registerSubTypeDefaulter("legend",function(){return"plain"}),eMr(e)}var tMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,i){var o=ck(n);e.prototype.init.call(this,n,r,i),CHe(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),CHe(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Ww(Xve.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(Xve);function CHe(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,sw(t,n,{type:"box",ignoreSize:!!i})}var xHe=Ir,lle=["width","height"],cle=["x","y"],nMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new xHe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new xHe)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,i,o,a,s,l){var c=this;e.prototype.renderInner.call(this,n,r,i,o,a,s,l);var u=this._controllerGroup,d=r.get("pageIconSize",!0),p=Ht(d)?d:[d,d];g("pagePrev",0);var h=r.getModel("pageTextStyle");u.add(new oo({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(m,b){var y=m+"DataIndex",M=ak(r.get("pageIcons",!0)[r.getOrient().name][b],{onclick:Rn(c._pageGo,c,y,r,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});M.name=m,u.add(M)}},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),c=n.getOrient().index,u=lle[c],d=cle[c],p=lle[1-c],h=cle[1-c];a&&nz("horizontal",l,n.get("selectorItemGap",!0));var g=n.get("selectorButtonGap",!0),m=l.getBoundingRect(),b=[-m.x,-m.y],y=Or(i);a&&(y[u]=i[u]-m[u]-g);var M=this._layoutContentAndController(n,o,y,c,u,p,h,d);if(a){if(s==="end")b[c]+=M[u]+g;else{var C=m[u]+g;b[c]-=C,M[d]-=C}M[u]+=m[u]+g,b[1-c]+=M[h]+M[p]/2-m[p]/2,M[p]=Math.max(M[p],m[p]),M[h]=Math.min(M[h],m[h]+b[1-c]),l.x=b[0],l.y=b[1],l.markRedraw()}return M},t.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,c){var u=this.getContentGroup(),d=this._containerGroup,p=this._controllerGroup;nz(n.get("orient"),u,n.get("itemGap"),o?i.width:null,o?null:i.height),nz("horizontal",p,n.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),g=p.getBoundingRect(),m=this._showController=h[a]>i[a],b=[-h.x,-h.y];r||(b[o]=u[c]);var y=[0,0],M=[-g.x,-g.y],C=Xr(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var x=n.get("pageButtonPosition",!0);x==="end"?M[o]+=i[a]-g[a]:y[o]+=g[a]+C}M[1-o]+=h[s]/2-g[s]/2,u.setPosition(b),d.setPosition(y),p.setPosition(M);var w={x:0,y:0};if(w[a]=m?i[a]:h[a],w[s]=Math.max(h[s],g[s]),w[l]=Math.min(0,g[l]+M[1-o]),d.__rectSize=i[a],m){var S={x:0,y:0};S[a]=Math.max(i[a]-g[a]-C,0),S[s]=w[s],d.setClipPath(new ao({shape:S})),d.__rectSize=S[a]}else p.eachChild(function(z){z.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(n);return A.pageIndex!=null&&Ao(u,{x:A.contentPosition[0],y:A.contentPosition[1]},m?n:null),this._updatePageInfoView(n,A),w},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;ye(["pagePrev","pageNext"],function(u){var d=u+"DataIndex",p=r[d]!=null,h=i.childOfName(u);h&&(h.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,c=r.pageCount;o&&a&&o.setStyle("text",An(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=lle[a],l=cle[a],c=this._findTargetItemIndex(r),u=i.children(),d=u[c],p=u.length,h=p?1:0,g={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return g;var m=x(d);g.contentPosition[a]=-m.s;for(var b=c+1,y=m,M=m,C=null;b<=p;++b)C=x(u[b]),(!C&&M.e>y.s+o||C&&!w(C,y.s))&&(M.i>y.i?y=M:y=C,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),M=C;for(var b=c-1,y=m,M=m,C=null;b>=-1;--b)C=x(u[b]),(!C||!w(M,C.s))&&y.i<M.i&&(M=y,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=y.i),++g.pageCount,++g.pageIndex),y=C;return g;function x(S){if(S){var A=S.getBoundingRect(),z=A[l]+S[l];return{s:z,e:z+A[s],i:S.__legendDataIndex}}}function w(S,A){return S.e>=A&&S.s<=A+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t})(LMt);function rMr(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function iMr(e){Si(NMt),e.registerComponentModel(tMr),e.registerComponentView(nMr),rMr(e)}function oMr(e){Si(NMt),Si(iMr)}var aMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=Ww(Lq.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(Lq),vOe=mo();function sMr(e,t,n){vOe(e).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)})}function lMr(e,t){for(var n=vOe(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||FMt(n,a))}}}function FMt(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function cMr(e,t){var n={model:t,containsPoint:Zr(dMr,t),dispatchAction:Zr(uMr,e),dataZoomInfoMap:null,controller:null},r=n.controller=new nj(e.getZr());return ye(["pan","zoom","scrollMove"],function(i){r.on(i,function(o){var a=[];n.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],c=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,o);!s.model.get("disabled",!0)&&c&&a.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),a.length&&n.dispatchAction(a)})}),n}function uMr(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function dMr(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function pMr(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(o){var a=o.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+t]&&(t=s),i=i&&a.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function hMr(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=vOe(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=Kn());i.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=MMt(o);ye(a.infoList,function(s){var l=s.model.uid,c=i.get(l)||i.set(l,cMr(n,s.model)),u=c.dataZoomInfoMap||(c.dataZoomInfoMap=Kn());u.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),i.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var c=l.keys()[0];c!=null&&(s=l.get(c))}if(!s){FMt(i,o);return}var u=pMr(l);a.enable(u.controlType,u.opt),a.setPointerChecker(o.containsPoint),hk(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var fMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,i){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),sMr(i,n,{pan:Rn(ule.pan,this),zoom:Rn(ule.zoom,this),scrollMove:Rn(ule.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lMr(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(lOe),ule={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=dle[t](null,[r.originX,r.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/r.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(K3(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}},pan:wHe(function(e,t,n,r,i,o){var a=dle[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength}),scrollMove:wHe(function(e,t,n,r,i,o){var a=dle[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n);return a.signal*(e[1]-e[0])*o.scrollDelta})};function wHe(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,r,i);if(K3(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var dle={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],o.dim==="x"?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function WMt(e){cOe(e),e.registerComponentModel(aMr),e.registerComponentView(fMr),hMr(e)}var gMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ww(Lq.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})(Lq),k_=ao,SHe=7,mMr=1,ple=30,vMr=7,L_="horizontal",AHe="vertical",bMr=5,yMr=["line","bar","candlestick","scatter"],MMr={easing:"cubicOut",duration:100,delay:0},CMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=Rn(this._onBrush,this),this._onBrushEnd=Rn(this._onBrushEnd,this)},t.prototype.render=function(n,r,i,o){if(e.prototype.render.apply(this,arguments),hk(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xq(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Ir;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,i=n.get("brushSelect"),o=i?vMr:0,a=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===L_?{right:s.width-a.x-a.width,top:s.height-ple-SHe-o,width:a.width,height:ple}:{right:SHe,top:a.y,width:ple,height:a.height},c=ck(n.option);ye(["right","top","width","height"],function(d){c[d]==="ph"&&(c[d]=l[d])});var u=Pc(c,s);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===AHe&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===L_&&!a?{scaleY:l?1:-1,scaleX:1}:i===L_&&a?{scaleY:l?1:-1,scaleX:-1}:i===AHe&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=n.getBoundingRect([s]);n.x=r.x-c.x,n.y=r.y-c.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,o=n.get("brushSelect");i.add(new k_({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var a=new k_({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Rn(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(a)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],o=n.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():n.otherDim;if(l==null)return;var c=this._shadowPolygonPts,u=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var d=a.getDataExtent(l),p=(d[1]-d[0])*.3;d=[d[0]-p,d[1]+p];var h=[0,r[1]],g=[0,r[0]],m=[[r[0],0],[0,0]],b=[],y=g[1]/(a.count()-1),M=0,C=Math.round(a.count()/r[0]),x;a.each([l],function(O,T){if(C>0&&T%C){M+=y;return}var R=O==null||isNaN(O)||O==="",P=R?0:Ko(O,d,h,!0);R&&!x&&T?(m.push([m[m.length-1][0],0]),b.push([b[b.length-1][0],0])):!R&&x&&(m.push([M,0]),b.push([M,0])),m.push([M,P]),b.push([M,P]),M+=y,x=R}),c=this._shadowPolygonPts=m,u=this._shadowPolylinePts=b}this._shadowData=a,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var w=this.dataZoomModel;function S(O){var T=w.getModel(O?"selectedDataBackground":"dataBackground"),R=new Ir,P=new O0({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),F=new R0({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(P),R.add(F),R}for(var A=0;A<3;A++){var z=S(A===1);this._displayables.sliderGroup.add(z),this._displayables.dataShadowSegs.push(z)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,o=this.ecModel;return n.eachTargetAxis(function(a,s){var l=n.getAxisProxy(a,s).getTargetSeriesModels();ye(l,function(c){if(!i&&!(r!==!0&&hi(yMr,c.get("type"))<0)){var u=o.getComponent(vx(a),s).axis,d=xMr(a),p,h=c.coordinateSystem;d!=null&&h.getOtherAxis&&(p=h.getOtherAxis(u).inverse),d=c.getData().mapDimension(d),i={thisAxis:u,series:c,thisDim:a,otherDim:d,otherAxisInverse:p}}},this)},this),i}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],o=r.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,u=l.get("borderRadius")||0,d=l.get("brushSelect"),p=r.filler=new k_({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new k_({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:u},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:mMr,fill:"rgba(0,0,0,0)"}})),ye([0,1],function(C){var x=l.get("handleIcon");!TU[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var w=sc(x,-1,0,2,2,null,!0);w.attr({cursor:OHe(this._orient),draggable:!0,drift:Rn(this._onDragMove,this,C),ondragend:Rn(this._onDragEnd,this),onmouseover:Rn(this._showDataInfo,this,!0),onmouseout:Rn(this._showDataInfo,this,!1),z2:5});var S=w.getBoundingRect(),A=l.get("handleSize");this._handleHeight=vn(A,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Lx(w);var z=l.get("handleColor");z!=null&&(w.style.fill=z),a.add(i[C]=w);var O=l.getModel("textStyle"),T=l.get("handleLabel")||{},R=T.show||!1;n.add(o[C]=new oo({silent:!0,invisible:!R,style:Za(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=p;if(d){var g=vn(l.get("moveHandleSize"),s[1]),m=r.moveHandle=new ao({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),b=g*.8,y=r.moveHandleIcon=sc(l.get("moveHandleIcon"),-b/2,-b/2,b,b,"#fff",!0);y.silent=!0,y.y=s[1]+g/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var M=Math.min(s[1]/2,Math.max(g,10));h=r.moveZone=new ao({invisible:!0,shape:{y:s[1]-M,height:g+M}}),h.on("mouseover",function(){c.enterEmphasis(m)}).on("mouseout",function(){c.leaveEmphasis(m)}),a.add(m),a.add(y),a.add(h)}h.attr({draggable:!0,cursor:OHe(this._orient),drift:Rn(this._onDragMove,this,"all"),ondragstart:Rn(this._showDataInfo,this,!0),ondragend:Rn(this._onDragEnd,this),onmouseover:Rn(this._showDataInfo,this,!0),onmouseout:Rn(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Ko(n[0],[0,100],r,!0),Ko(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];K3(r,o,a,i.get("zoomLock")?"all":n,s.minSpan!=null?Ko(s.minSpan,l,a,!0):null,s.maxSpan!=null?Ko(s.maxSpan,l,a,!0):null);var c=this._range,u=this._range=Jp([Ko(o[0],a,l,!0),Ko(o[1],a,l,!0)]);return!c||c[0]!==u[0]||c[1]!==u[1]},t.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,o=Jp(i.slice()),a=this._size;ye([0,1],function(h){var g=r.handles[h],m=this._handleHeight;g.attr({scaleX:m/2,scaleY:m/2,x:i[h]+(h?-1:1),y:a[1]/2-m/2})},this),r.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,c=[0,o[0],o[1],a[0]],u=0;u<l.length;u++){var d=l[u],p=d.getClipPath();p||(p=new ao,d.setClipPath(p)),p.setShape({x:c[u],y:0,width:c[u+1]-c[u],height:a[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,i=this._displayables,o=i.handleLabels,a=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var c=l.getAxisModel().axis,u=this._range,d=n?l.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],c),this._formatLabel(d[1],c)]}}var p=Jp(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(g){var m=_x(i.handles[g].parent,this.group),b=xJ(g===0?"right":"left",m),y=this._handleWidth/2+bMr,M=mm([p[g]+(g===0?-y:y),this._size[1]/2],m);o[g].setStyle({x:M[0],y:M[1],verticalAlign:a===L_?"middle":b,align:a===L_?b:"center",text:s[g]})}},t.prototype._formatLabel=function(n,r){var i=this.dataZoomModel,o=i.get("labelFormatter"),a=i.get("labelPrecision");(a==null||a==="auto")&&(a=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(a,20));return fr(o)?o(n,s):An(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},i=r.show||!1,o=this.dataZoomModel.getModel(["emphasis","handleLabel"]),a=o.get("show")||!1,s=n||this._dragging?a:i,l=this._displayables,c=l.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(n,r,i,o){this._dragging=!0,nM(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=mm([r,i],a,!0),l=this._updateInterval(n,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",i[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new ci(r,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=Jp([Ko(i.x,a,s,!0),Ko(i.x+i.width,a,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(nM(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var i=this._displayables,o=this.dataZoomModel,a=i.brushRect;a||(a=i.brushRect=new k_({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(n,r),u=l.transformCoordToLocal(s.x,s.y),d=this._size;c[0]=Math.max(Math.min(d[0],c[0]),0),a.setShape({x:u[0],y:0,width:c[0]-u[0],height:d[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?MMr:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=MMt(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var o=this.api.getWidth(),a=this.api.getHeight();n={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return n},t.type="dataZoom.slider",t})(lOe);function xMr(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function OHe(e){return e==="vertical"?"ns-resize":"ew-resize"}function qMt(e){e.registerComponentModel(gMr),e.registerComponentView(CMr),cOe(e)}function wMr(e){Si(WMt),Si(qMt)}var BMt={get:function(e,t,n){var r=Or((SMr[e]||{})[t]);return n&&Ht(r)?r[r.length-1]:r}},SMr={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},zHe=Su.mapVisual,AMr=Su.eachVisual,OMr=Ht,THe=ye,zMr=Jp,TMr=Ko,eX=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.optionUpdated=function(n,r){var i=this.option;!r&&RMt(i,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=Rn(n,this),this.controllerVisuals=Gve(this.option.controller,r,n),this.targetVisuals=Gve(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(i,o){r.push(o)}):r=Ea(n),r},t.prototype.eachTargetSeries=function(n,r){ye(this.getTargetSeriesIndices(),function(i){var o=this.ecModel.getSeriesByIndex(i);o&&n.call(r,o)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(i){i===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,i){var o=this.option,a=o.precision,s=this.dataBound,l=o.formatter,c;i=i||["<",">"],Ht(n)&&(n=n.slice(),c=!0);var u=r?n:c?[d(n[0]),d(n[1])]:d(n);if(An(l))return l.replace("{value}",c?u[0]:u).replace("{value2}",c?u[1]:u);if(fr(l))return c?l(n[0],n[1]):l(n);if(c)return n[0]===s[0]?i[0]+" "+u[1]:n[1]===s[1]?i[1]+" "+u[0]:u[0]+" - "+u[1];return u;function d(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var n=this.option,r=zMr([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var i=n.dimensions,o=i.length-1;o>=0;o--){var a=i[o],s=n.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},o=r.target||(r.target={}),a=r.controller||(r.controller={});ei(o,i),ei(a,i);var s=this.isCategory();l.call(this,o),l.call(this,a),c.call(this,o,"inRange","outOfRange"),u.call(this,a);function l(d){OMr(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:n.get("gradientColor")}}function c(d,p,h){var g=d[p],m=d[h];g&&!m&&(m=d[h]={},THe(g,function(b,y){if(Su.isValidType(y)){var M=BMt.get(y,"inactive",s);M!=null&&(m[y]=M,y==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function u(d){var p=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),m=this.getItemSymbol(),b=m||"roundRect";THe(this.stateList,function(y){var M=this.itemSize,C=d[y];C||(C=d[y]={color:s?g:[g]}),C.symbol==null&&(C.symbol=p&&Or(p)||(s?b:[b])),C.symbolSize==null&&(C.symbolSize=h&&Or(h)||(s?M[0]:[M[0],M[0]])),C.symbol=zHe(C.symbol,function(S){return S==="none"?b:S});var x=C.symbolSize;if(x!=null){var w=-1/0;AMr(x,function(S){S>w&&(w=S)}),C.symbolSize=zHe(x,function(S){return TMr(S,[0,w],[0,M[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t})(Ri),EHe=[20,140],EMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=EHe[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=EHe[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Ht(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),ye(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Jp((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},t.prototype.getValueState=function(n){var r=this.option.range,i=this.getExtent();return(r[0]<=i[0]||r[0]<=n)&&(r[1]>=i[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(i){var o=[],a=i.getData();a.each(this.getDataDimensionIndex(a),function(s,l){n[0]<=s&&s<=n[1]&&o.push(l)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getVisualMeta=function(n){var r=RHe(this,"outOfRange",this.getExtent()),i=RHe(this,"inRange",this.option.range.slice()),o=[];function a(h,g){o.push({value:h,color:n(h,g)})}for(var s=0,l=0,c=i.length,u=r.length;l<u&&(!i.length||r[l]<=i[0]);l++)r[l]<i[s]&&a(r[l],"outOfRange");for(var d=1;s<c;s++,d=0)d&&o.length&&a(i[s],"outOfRange"),a(i[s],"inRange");for(var d=1;l<u;l++)(!i.length||i[i.length-1]<r[l])&&(d&&(o.length&&a(o[o.length-1].value,"outOfRange"),d=0),a(r[l],"outOfRange"));var p=o.length;return{stops:o,outerColors:[p?o[0].color:"transparent",p?o[p-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Ww(eX.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t})(eX);function RHe(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var jMt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r},t.prototype.render=function(n,r,i,o){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,i,o)},t.prototype.renderBackground=function(n){var r=this.visualMapModel,i=$3(r.get("padding")||0),o=n.getBoundingRect();n.add(new ao({z2:-1,silent:!0,shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[3]+i[1],height:o.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(n,r,i){i=i||{};var o=i.forceState,a=this.visualMapModel,s={};if(r==="color"){var l=a.get("contentColor");s.color=l}function c(h){return s[h]}function u(h,g){s[h]=g}var d=a.controllerVisuals[o||a.getValueState(n)],p=Su.prepareVisualTypes(d);return ye(p,function(h){var g=d[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",g=d.__alphaForOpacity),Su.dependsOn(h,r)&&g&&g.applyVisual(n,c,u)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,i=this.api;TJ(n,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(n,r,i,o){},t.type="visualMap",t})(us),IHe=[["left","right","width"],["top","bottom","height"]];function HMt(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var o={width:t.getWidth(),height:t.getHeight()},a=r.orient==="horizontal"?1:0,s=IHe[a],l=[0,null,10],c={},u=0;u<3;u++)c[IHe[1-a][u]]=l[u],c[s[u]]=u===2?n[0]:r[s[u]];var d=[["x","width",3],["y","height",0]][a],p=Pc(c,o,r.padding);return s[(p.margin[d[2]]||0)+p[d[0]]+p[d[1]]*.5<o[d[1]]*.5?0:1]}function n$(e,t){return ye(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Ov=Ko,RMr=ye,PHe=Math.min,hle=Math.max,IMr=12,PMr=6,DMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(n,r){e.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=Rn(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Rn(this._hideIndicator,this)},t.prototype.doRender=function(n,r,i,o){(!o||o.type!=="selectDataRange"||o.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var i=n.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(n,r,i){if(r){var o=r[1-i];o=o!=null?o+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,c=this._shapes.mainGroup,u=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],c),d=this._applyTransform(i===0?"bottom":"top",c),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new oo({style:Za(h,{x:u[0],y:u[1],verticalAlign:p==="horizontal"?"middle":d,align:p==="horizontal"?d:"center",text:o})}))}},t.prototype._renderBar=function(n){var r=this.visualMapModel,i=this._shapes,o=r.itemSize,a=this._orient,s=this._useHandle,l=HMt(r,this.api,o),c=i.mainGroup=this._createBarGroup(l),u=new Ir;c.add(u),u.add(i.outOfRange=DHe()),u.add(i.inRange=DHe(null,s?LHe(this._orient):null,Rn(this._dragHandle,this,"all",!1),Rn(this._dragHandle,this,"all",!0))),u.setClipPath(new ao({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var d=r.textStyleModel.getTextRect("国"),p=hle(d.width,d.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,c,0,o,p,a),this._createHandle(r,c,1,o,p,a)),this._createIndicator(r,c,o,p,a),n.add(c)},t.prototype._createHandle=function(n,r,i,o,a,s){var l=Rn(this._dragHandle,this,i,!1),c=Rn(this._dragHandle,this,i,!0),u=Am(n.get("handleSize"),o[0]),d=sc(n.get("handleIcon"),-u/2,-u/2,u,u,null,!0),p=LHe(this._orient);d.attr({cursor:p,draggable:!0,drift:l,ondragend:c,onmousemove:function(y){nM(y.event)}}),d.x=o[0]/2,d.useStyle(n.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),vO(d,!0),r.add(d);var h=this.visualMapModel.textStyleModel,g=new oo({cursor:p,draggable:!0,drift:l,onmousemove:function(y){nM(y.event)},ondragend:c,style:Za(h,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var m=[u,0],b=this._shapes;b.handleThumbs[i]=d,b.handleLabelPoints[i]=m,b.handleLabels[i]=g},t.prototype._createIndicator=function(n,r,i,o,a){var s=Am(n.get("indicatorSize"),i[0]),l=sc(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var c=n.getModel("indicatorStyle").getItemStyle();if(l instanceof Du){var u=l.style;l.useStyle(Nt({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else l.useStyle(c);r.add(l);var d=this.visualMapModel.textStyleModel,p=new oo({silent:!0,invisible:!0,style:Za(d,{x:0,y:0,text:""})});this.group.add(p);var h=[(a==="horizontal"?o/2:PMr)+i[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=p,g.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(n,r,i,o){if(this._useHandle){if(this._dragging=!r,!r){var a=this._applyTransform([i,o],this._shapes.mainGroup,!0);this._updateInterval(n,a[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():kHe(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),i=n.getExtent(),o=[0,n.itemSize[1]];this._handleEnds=[Ov(r[0],i,o,!0),Ov(r[1],i,o,!0)]},t.prototype._updateInterval=function(n,r){r=r||0;var i=this.visualMapModel,o=this._handleEnds,a=[0,i.itemSize[1]];K3(r,o,a,n,0);var s=i.getExtent();this._dataInterval=[Ov(o[0],a,s,!0),Ov(o[1],a,s,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,i=r.getExtent(),o=this._shapes,a=[0,r.itemSize[1]],s=n?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),c=this._createBarVisual(i,i,a,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(n,r,i,o){var a={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,a),l=[this.getControllerVisual(n[0],"symbolSize",a),this.getControllerVisual(n[1],"symbolSize",a)],c=this._createBarPoints(i,l);return{barColor:new ik(0,0,0,1,s),barPoints:c,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(n,r){var i=100,o=[],a=(n[1]-n[0])/i;o.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=n[0]+a*s;if(l>n[1])break;o.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return o.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),o},t.prototype._createBarPoints=function(n,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],n[0]],[i[0],n[0]],[i[0],n[1]],[i[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,i=this.visualMapModel.get("inverse");return new Ir(r==="horizontal"&&!i?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,a=i.handleThumbs,s=i.handleLabels,l=o.itemSize,c=o.getExtent(),u=this._applyTransform("left",i.mainGroup);RMr([0,1],function(d){var p=a[d];p.setStyle("fill",r.handlesColor[d]),p.y=n[d];var h=Ov(n[d],[0,l[1]],c,!0),g=this.getControllerVisual(h,"symbolSize");p.scaleX=p.scaleY=g/l[0],p.x=l[0]-g/2;var m=mm(i.handleLabelPoints[d],_x(p,this.group));if(this._orient==="horizontal"){var b=u==="left"||u==="top"?(l[0]-g)/2:(l[0]-g)/-2;m[1]+=b}s[d].setStyle({x:m[0],y:m[1],text:o.formatValueText(this._dataInterval[d]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,i,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,c=[0,l[1]],u=this._shapes,d=u.indicator;if(d){d.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",p),g=this.getControllerVisual(n,"symbolSize"),m=Ov(n,s,c,!0),b=l[0]-g/2,y={x:d.x,y:d.y};d.y=m,d.x=b;var M=mm(u.indicatorLabelPoint,_x(d,this.group)),C=u.indicatorLabel;C.attr("invisible",!1);var x=this._applyTransform("left",u.mainGroup),w=this._orient,S=w==="horizontal";C.setStyle({text:(i||"")+a.formatValueText(r),verticalAlign:S?x:"middle",align:S?"center":x});var A={x:b,y:m,style:{fill:h}},z={style:{x:M[0],y:M[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(A,O),C.animateTo(z,O)}else d.attr(A),C.attr(z);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var R=0;R<T.length;R++)this.api.enterBlur(T[R])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var i=n.visualMapModel.itemSize,o=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);o[1]=PHe(hle(0,o[1]),i[1]),n._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=i[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(n,r){var i=this.visualMapModel,o=i.itemSize;if(i.option.hoverLink){var a=[0,o[1]],s=i.getExtent();n=PHe(hle(a[0],n),a[1]);var l=kMr(i,s,a),c=[n-l,n+l],u=Ov(n,a,s,!0),d=[Ov(c[0],a,s,!0),Ov(c[1],a,s,!0)];c[0]<a[0]&&(d[0]=-1/0),c[1]>a[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(u,d[1],"< ",l):d[1]===1/0?this._showIndicator(u,d[0],"> ",l):this._showIndicator(u,u,"≈ ",l));var p=this._hoverLinkDataIndices,h=[];(r||kHe(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(d));var g=Sir(p,h);this._dispatchHighDown("downplay",n$(g[0],i)),this._dispatchHighDown("highlight",n$(g[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(yO(n.target,function(l){var c=_r(l);if(c.dataIndex!=null)return r=c,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var a=i.getData(r.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this.api.leaveBlur(r[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",n$(n,this.visualMapModel)),n.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(n,r,i,o){var a=_x(r,o?null:this.group);return Ht(n)?mm(n,a,i):xJ(n,a,i)},t.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(jMt);function DHe(e,t,n,r){return new O0({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(i){nM(i.event)},ondragend:r})}function kMr(e,t,n){var r=IMr/2,i=e.get("hoverLinkDataSize");return i&&(r=Ov(i,t,n,!0)/2),r}function kHe(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function LHe(e){return e==="vertical"?"ns-resize":"ew-resize"}var LMr={type:"selectDataRange",event:"dataRangeSelected",update:"update"},_Mr=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},NMr=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(r){var i=e.pipelineContext;!r.isTargetSeries(e)||i&&i.large||n.push(oyr(r.stateList,r.targetVisuals,Rn(r.getValueState,r),r.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var o=i.getVisualMeta(Rn(FMr,null,e,i))||{stops:[],outerColors:[]},a=i.getDataDimensionIndex(n);a>=0&&(o.dimension=a,r.push(o))}}),e.getData().setVisual("visualMeta",r)}}];function FMr(e,t,n,r){for(var i=t.targetVisuals[r],o=Su.prepareVisualTypes(i),a={color:XB(e.getData(),"color")},s=0,l=o.length;s<l;s++){var c=o[s],u=i[c==="opacity"?"__alphaForOpacity":c];u&&u.applyVisual(n,d,p)}return a.color;function d(h){return a[h]}function p(h,g){a[h]=g}}var _He=ye;function WMr(e){var t=e&&e.visualMap;Ht(t)||(t=t?[t]:[]),_He(t,function(n){if(n){nR(n,"splitList")&&!nR(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Ht(r)&&_He(r,function(i){xr(i)&&(nR(i,"start")&&!nR(i,"min")&&(i.min=i.start),nR(i,"end")&&!nR(i,"max")&&(i.max=i.end))})}})}function nR(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var NHe=!1;function VMt(e){NHe||(NHe=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(LMr,_Mr),ye(NMr,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(WMr))}function GMt(e){e.registerComponentModel(EMr),e.registerComponentView(DMr),VMt(e)}var qMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],BMr[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var o=this.option.categories;this.resetVisual(function(a,s){i==="categories"?(a.mappingMethod="category",a.categories=Or(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=Vt(this._pieceList,function(l){return l=Or(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},i=Su.listVisualTypes(),o=this.isCategory();ye(n.pieces,function(s){ye(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),ye(r,function(s,l){var c=!1;ye(this.stateList,function(u){c=c||a(n,u,l)||a(n.target,u,l)},this),!c&&ye(this.stateList,function(u){(n[u]||(n[u]={}))[l]=BMt.get(l,u==="inRange"?"active":"inactive",o)})},this);function a(s,l,c){return s&&s[l]&&s[l].hasOwnProperty(c)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var i=this.option,o=this._pieceList,a=(r?i:n).selected||{};if(i.selected=a,ye(o,function(l,c){var u=this.getSelectedMapKey(l);a.hasOwnProperty(u)||(a[u]=!0)},this),i.selectedMode==="single"){var s=!1;ye(o,function(l,c){var u=this.getSelectedMapKey(l);a[u]&&(s?a[u]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Or(n)},t.prototype.getValueState=function(n){var r=Su.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],i=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,c){var u=Su.findPieceIndex(l,i);u===n&&a.push(c)},this),r.push({seriesId:o.id,dataIndex:a})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var i=n.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],i=["",""],o=this;function a(u,d){var p=o.getRepresentValue({interval:u});d||(d=o.getValueState(p));var h=n(p,d);u[0]===-1/0?i[0]=h:u[1]===1/0?i[1]=h:r.push({value:u[0],color:h},{value:u[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var c=-1/0;return ye(s,function(u){var d=u.interval;d&&(d[0]>c&&a([c,d[0]],"outOfRange"),a(d.slice()),c=d[1])},this),{stops:r,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Ww(eX.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(eX),BMr={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),kme(e),ye(e,function(c,u){c.index=u,c.text=this.formatValueText(c.interval)},this)},categories:function(e){var t=this.option;ye(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),FHe(t,e)},pieces:function(e){var t=this.option;ye(t.pieces,function(n,r){xr(n)||(n={value:n});var i={text:"",index:r};if(n.label!=null&&(i.text=n.label),n.hasOwnProperty("value")){var o=i.value=n.value;i.interval=[o,o],i.close=[1,1]}else{for(var a=i.interval=[],s=i.close=[0,0],l=[1,0,1],c=[-1/0,1/0],u=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],h=0;h<3&&a[d]==null;h++)a[d]=n[p[h]],s[d]=l[h],u[d]=h===2;a[d]==null&&(a[d]=c[d])}u[0]&&a[1]===1/0&&(s[0]=0),u[1]&&a[0]===-1/0&&(s[1]=0),a[0]===a[1]&&s[0]&&s[1]&&(i.value=a[0])}i.visual=Su.retrieveVisuals(n),e.push(i)},this),FHe(t,e),kme(e),ye(e,function(n){var r=n.close,i=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,i)},this)}};function FHe(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}var jMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,i=r.get("textGap"),o=r.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),c=r.itemSize,u=this._getViewData(),d=u.endsText,p=xu(r.get("showLabel",!0),!d),h=!r.get("selectedMode");d&&this._renderEndsText(n,d[0],c,p,l),ye(u.viewPieceList,function(g){var m=g.piece,b=new Ir;b.onclick=Rn(this._onItemClick,this,m),this._enableHoverLink(b,g.indexInModelPieceList);var y=r.getRepresentValue(m);if(this._createItemSymbol(b,y,[0,0,c[0],c[1]],h),p){var M=this.visualMapModel.getValueState(y);b.add(new oo({style:{x:l==="right"?-i:c[0]+i,y:c[1]/2,text:m.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:M==="outOfRange"?.5:1},silent:h}))}n.add(b)},this),d&&this._renderEndsText(n,d[1],c,p,l),nz(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var i=this;n.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:a,batch:n$(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return HMt(n,this.api,n.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(n,r,i,o,a){if(r){var s=new Ir,l=this.visualMapModel.textStyleModel;s.add(new oo({style:Za(l,{x:o?a==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?a:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=Vt(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=n.get("text"),o=n.get("orient"),a=n.get("inverse");return(o==="horizontal"?a:!a)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},t.prototype._createItemSymbol=function(n,r,i,o){var a=sc(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color"));a.silent=o,n.add(a)},t.prototype._onItemClick=function(n){var r=this.visualMapModel,i=r.option,o=i.selectedMode;if(o){var a=Or(i.selected),s=r.getSelectedMapKey(n);o==="single"||o===!0?(a[s]=!0,ye(a,function(l,c){a[c]=c===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t})(jMt);function $Mt(e){e.registerComponentModel(qMr),e.registerComponentView(jMr),VMt(e)}function HMr(e){Si(GMt),Si($Mt)}var VMr={label:{enabled:!0},decal:{show:!1}},WHe=mo(),GMr={};function $Mr(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Or(VMr);ei(r.label,e.getLocaleModel().get("aria"),!1),ei(n.option,r,!1),i(),o();function i(){var c=n.getModel("decal"),u=c.get("show");if(u){var d=Kn();e.eachSeries(function(p){if(!p.isColorBySeries()){var h=d.get(p.type);h||(h={},d.set(p.type,h)),WHe(p).scope=h}}),e.eachRawSeries(function(p){if(e.isSeriesFiltered(p))return;if(fr(p.enableAriaDecal)){p.enableAriaDecal();return}var h=p.getData();if(p.isColorBySeries()){var M=Kme(p.ecModel,p.name,GMr,e.getSeriesCount()),C=h.getVisual("decal");h.setVisual("decal",x(C,M))}else{var g=p.getRawData(),m={},b=WHe(p).scope;h.each(function(w){var S=h.getRawIndex(w);m[S]=w});var y=g.count();g.each(function(w){var S=m[w],A=g.getName(w)||w+"",z=Kme(p.ecModel,A,b,y),O=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",x(O,z))})}function x(w,S){var A=w?Nt(Nt({},S),w):S;return A.dirty=!0,A}})}}function o(){var c=t.getZr().dom;if(c){var u=e.getLocaleModel().get("aria"),d=n.getModel("label");if(d.option=br(d.option,u),!!d.get("enabled")){if(c.setAttribute("role","img"),d.get("description")){c.setAttribute("aria-label",d.get("description"));return}var p=e.getSeriesCount(),h=d.get(["data","maxCount"])||10,g=d.get(["series","maxCount"])||10,m=Math.min(p,g),b;if(!(p<1)){var y=s();if(y){var M=d.get(["general","withTitle"]);b=a(M,{title:y})}else b=d.get(["general","withoutTitle"]);var C=[],x=p>1?d.get(["series","multiple","prefix"]):d.get(["series","single","prefix"]);b+=a(x,{seriesCount:p}),e.eachSeries(function(z,O){if(O<m){var T=void 0,R=z.get("name"),P=R?"withName":"withoutName";T=p>1?d.get(["series","multiple",P]):d.get(["series","single",P]),T=a(T,{seriesId:z.seriesIndex,seriesName:z.get("name"),seriesType:l(z.subType)});var F=z.getData();if(F.count()>h){var N=d.get(["data","partialData"]);T+=a(N,{displayCnt:h})}else T+=d.get(["data","allData"]);for(var L=d.get(["data","separator","middle"]),W=d.get(["data","separator","end"]),j=d.get(["data","excludeDimensionId"]),V=[],G=0;G<F.count();G++)if(G<h){var q=F.getName(G),$=j?Lo(F.getValues(G),function(X,Q){return hi(j,Q)===-1}):F.getValues(G),U=d.get(["data",q?"withName":"withoutName"]);V.push(a(U,{name:q,value:$.join(L)}))}T+=V.join(L)+W,C.push(T)}});var w=d.getModel(["series","multiple","separator"]),S=w.get("middle"),A=w.get("end");b+=C.join(S)+A,c.setAttribute("aria-label",b)}}}}function a(c,u){if(!An(c))return c;var d=c;return ye(u,function(p,h){d=d.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),p)}),d}function s(){var c=e.get("title");return c&&c.length&&(c=c[0]),c&&c.text}function l(c){var u=e.getLocaleModel().get(["series","typeNames"]);return u[c]||u.chart}}function UMr(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},ye(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function XMr(e){e.registerPreprocessor(UMr),e.registerVisual(e.PRIORITY.VISUAL.ARIA,$Mr)}var qHe={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},YMr=(function(){function e(t){var n=this._condVal=An(t)?new RegExp(t):vgt(t)?t:null;if(n==null){var r="";Qo(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return An(n)?this._condVal.test(t):yo(n)?this._condVal.test(t+""):!1},e})(),KMr=(function(){function e(){}return e.prototype.evaluate=function(){return this.value},e})(),QMr=(function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},e})(),ZMr=(function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(t[n].evaluate())return!0;return!1},e})(),JMr=(function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e})(),eCr=(function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),i=t?this.valueParser(r):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(t?i:r))return!1;return!0},e})();function bOe(e,t){if(e===!0||e===!1){var n=new KMr;return n.value=e,n}var r="";return UMt(e)||Qo(r),e.and?BHe("and",e,t):e.or?BHe("or",e,t):e.not?tCr(e,t):nCr(e,t)}function BHe(e,t,n){var r=t[e],i="";Ht(r)||Qo(i),r.length||Qo(i);var o=e==="and"?new QMr:new ZMr;return o.children=Vt(r,function(a){return bOe(a,n)}),o.children.length||Qo(i),o}function tCr(e,t){var n=e.not,r="";UMt(n)||Qo(r);var i=new JMr;return i.child=bOe(n,t),i.child||Qo(r),i}function nCr(e,t){for(var n="",r=t.prepareGetValue(e),i=[],o=Hi(e),a=e.parser,s=a?Avt(a):null,l=0;l<o.length;l++){var c=o[l];if(!(c==="parser"||t.valueGetterAttrMap.get(c))){var u=Fn(qHe,c)?qHe[c]:c,d=e[c],p=s?s(d):d,h=zsr(u,p)||u==="reg"&&new YMr(p);h||Qo(n),i.push(h)}}i.length||Qo(n);var g=new eCr;return g.valueGetterParam=r,g.valueParser=s,g.getValue=t.getValue,g.subCondList=i,g}function UMt(e){return xr(e)&&!Ad(e)}var rCr=(function(){function e(t,n){this._cond=bOe(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e})();function iCr(e,t){return new rCr(e,t)}var oCr={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=iCr(e.config,{valueGetterAttrMap:Kn({dimension:!0}),prepareGetValue:function(s){var l="",c=s.dimension;Fn(s,"dimension")||Qo(l);var u=t.getDimensionInfo(c);return u||Qo(l),{dimIdx:u.index}},getValue:function(s){return t.retrieveValueFromItem(n,s.dimIdx)}}),i=[],o=0,a=t.count();o<a;o++)n=t.getRawDataItem(o),r.evaluate()&&i.push(n);return{data:i}}},aCr={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",i=Ea(n);i.length||Qo(r);var o=[];ye(i,function(u){var d=u.dimension,p=u.order,h=u.parser,g=u.incomparable;if(d==null&&Qo(r),p!=="asc"&&p!=="desc"&&Qo(r),g&&g!=="min"&&g!=="max"){var m="";Qo(m)}if(p!=="asc"&&p!=="desc"){var b="";Qo(b)}var y=t.getDimensionInfo(d);y||Qo(r);var M=h?Avt(h):null;h&&!M&&Qo(r),o.push({dimIdx:y.index,parser:M,comparator:new zvt(p,g)})});var a=t.sourceFormat;a!==z0&&a!==tg&&Qo(r);for(var s=[],l=0,c=t.count();l<c;l++)s.push(t.getRawDataItem(l));return s.sort(function(u,d){for(var p=0;p<o.length;p++){var h=o[p],g=t.retrieveValueFromItem(u,h.dimIdx),m=t.retrieveValueFromItem(d,h.dimIdx);h.parser&&(g=h.parser(g),m=h.parser(m));var b=h.comparator.evaluate(g,m);if(b!==0)return b}return 0}),{data:s}}};function sCr(e){e.registerTransform(oCr),e.registerTransform(aCr)}var lCr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.prototype.init=function(n,r,i){e.prototype.init.call(this,n,r,i),this._sourceManager=new Ivt(this),VWe(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),VWe(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Cb},t})(Ri),cCr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t})(us);function uCr(e){e.registerComponentModel(lCr),e.registerComponentView(cCr)}var Mv=Fb.CMD;function $R(e,t){return Math.abs(e-t)<1e-5}function Zve(e){var t=e.data,n=e.len(),r=[],i,o=0,a=0,s=0,l=0;function c(F,N){i&&i.length>2&&r.push(i),i=[F,N]}function u(F,N,L,W){$R(F,L)&&$R(N,W)||i.push(F,N,L,W,L,W)}function d(F,N,L,W,j,V){var G=Math.abs(N-F),q=Math.tan(G/4)*4/3,$=N<F?-1:1,U=Math.cos(F),X=Math.sin(F),Q=Math.cos(N),re=Math.sin(N),ee=U*j+L,se=X*V+W,pe=Q*j+L,te=re*V+W,ce=j*q*$,oe=V*q*$;i.push(ee-ce*X,se+oe*U,pe+ce*re,te-oe*Q,pe,te)}for(var p,h,g,m,b=0;b<n;){var y=t[b++],M=b===1;switch(M&&(o=t[b],a=t[b+1],s=o,l=a,(y===Mv.L||y===Mv.C||y===Mv.Q)&&(i=[s,l])),y){case Mv.M:o=s=t[b++],a=l=t[b++],c(s,l);break;case Mv.L:p=t[b++],h=t[b++],u(o,a,p,h),o=p,a=h;break;case Mv.C:i.push(t[b++],t[b++],t[b++],t[b++],o=t[b++],a=t[b++]);break;case Mv.Q:p=t[b++],h=t[b++],g=t[b++],m=t[b++],i.push(o+2/3*(p-o),a+2/3*(h-a),g+2/3*(p-g),m+2/3*(h-m),g,m),o=g,a=m;break;case Mv.A:var C=t[b++],x=t[b++],w=t[b++],S=t[b++],A=t[b++],z=t[b++]+A;b+=1;var O=!t[b++];p=Math.cos(A)*w+C,h=Math.sin(A)*S+x,M?(s=p,l=h,c(s,l)):u(o,a,p,h),o=Math.cos(z)*w+C,a=Math.sin(z)*S+x;for(var T=(O?-1:1)*Math.PI/2,R=A;O?R>z:R<z;R+=T){var P=O?Math.max(R+T,z):Math.min(R+T,z);d(R,P,C,x,w,S)}break;case Mv.R:s=o=t[b++],l=a=t[b++],p=s+t[b++],h=l+t[b++],c(p,l),u(p,l,p,h),u(p,h,s,h),u(s,h,s,l),u(s,l,p,l);break;case Mv.Z:i&&u(o,a,s,l),o=s,a=l;break}}return i&&i.length>2&&r.push(i),r}function Jve(e,t,n,r,i,o,a,s,l,c){if($R(e,n)&&$R(t,r)&&$R(i,a)&&$R(o,s)){l.push(a,s);return}var u=2/c,d=u*u,p=a-e,h=s-t,g=Math.sqrt(p*p+h*h);p/=g,h/=g;var m=n-e,b=r-t,y=i-a,M=o-s,C=m*m+b*b,x=y*y+M*M;if(C<d&&x<d){l.push(a,s);return}var w=p*m+h*b,S=-p*y-h*M,A=C-w*w,z=x-S*S;if(A<d&&w>=0&&z<d&&S>=0){l.push(a,s);return}var O=[],T=[];ow(e,n,i,a,.5,O),ow(t,r,o,s,.5,T),Jve(O[0],T[0],O[1],T[1],O[2],T[2],O[3],T[3],l,c),Jve(O[4],T[4],O[5],T[5],O[6],T[6],O[7],T[7],l,c)}function dCr(e,t){var n=Zve(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var c=2;c<o.length;){var u=o[c++],d=o[c++],p=o[c++],h=o[c++],g=o[c++],m=o[c++];Jve(s,l,u,d,p,h,g,m,a,t),s=g,l=m}r.push(a)}return r}function XMt(e,t,n){var r=e[t],i=e[1-t],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);s===0&&(s=1,a=n);for(var l=[],c=0;c<a;c++)l.push(s);var u=a*s,d=n-u;if(d>0)for(var c=0;c<d;c++)l[c%a]+=1;return l}function jHe(e,t,n){for(var r=e.r0,i=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*i,c=i-r,u=l>Math.abs(c),d=XMt([l,c],u?0:1,t),p=(u?s:c)/d.length,h=0;h<d.length;h++)for(var g=(u?c:s)/d[h],m=0;m<d[h];m++){var b={};u?(b.startAngle=o+p*h,b.endAngle=o+p*(h+1),b.r0=r+g*m,b.r=r+g*(m+1)):(b.startAngle=o+g*m,b.endAngle=o+g*(m+1),b.r0=r+p*h,b.r=r+p*(h+1)),b.clockwise=e.clockwise,b.cx=e.cx,b.cy=e.cy,n.push(b)}}function pCr(e,t,n){for(var r=e.width,i=e.height,o=r>i,a=XMt([r,i],o?0:1,t),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",d=e[s]/a.length,p=0;p<a.length;p++)for(var h=e[l]/a[p],g=0;g<a[p];g++){var m={};m[c]=p*d,m[u]=g*h,m[s]=d,m[l]=h,m.x+=e.x,m.y+=e.y,n.push(m)}}function HHe(e,t,n,r){return e*r-n*t}function hCr(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,p=HHe(u,d,l,c);if(Math.abs(p)<1e-6)return null;var h=e-i,g=t-o,m=HHe(h,g,u,d)/p;return m<0||m>1?null:new ci(m*l+e,m*c+t)}function fCr(e,t,n){var r=new ci;ci.sub(r,n,t),r.normalize();var i=new ci;ci.sub(i,e,t);var o=i.dot(r);return o}function rR(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function gCr(e,t,n){for(var r=e.length,i=[],o=0;o<r;o++){var a=e[o],s=e[(o+1)%r],l=hCr(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&i.push({projPt:fCr(l,t,n),pt:l,idx:o})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(b,y){return b.projPt-y.projPt});var c=i[0],u=i[i.length-1];if(u.idx<c.idx){var d=c;c=u,u=d}for(var p=[c.pt.x,c.pt.y],h=[u.pt.x,u.pt.y],g=[p],m=[h],o=c.idx+1;o<=u.idx;o++)rR(g,e[o].slice());rR(g,h),rR(g,p);for(var o=u.idx+1;o<=c.idx+r;o++)rR(m,e[o%r].slice());return rR(m,p),rR(m,h),[{points:g},{points:m}]}function VHe(e){var t=e.points,n=[],r=[];vJ(t,n,r);var i=new ui(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,c=new ci,u=new ci;return o>a?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),gCr(t,c,u)}function tX(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),o=e(t);tX(e,o[0],i,r),tX(e,o[1],n-i,r)}return r}function mCr(e,t){for(var n=[],r=0;r<t;r++)n.push(ASe(e));return n}function vCr(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function bCr(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function yCr(e,t){var n=[],r=e.shape,i;switch(e.type){case"rect":pCr(r,t,n),i=ao;break;case"sector":jHe(r,t,n),i=A0;break;case"circle":jHe({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=A0;break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Vt(dCr(e.getUpdatedPathProxy(),a),function(y){return bCr(y)}),l=s.length;if(l===0)tX(VHe,{points:s[0]},t,n);else if(l===t)for(var c=0;c<l;c++)n.push({points:s[c]});else{var u=0,d=Vt(s,function(y){var M=[],C=[];vJ(y,M,C);var x=(C[1]-M[1])*(C[0]-M[0]);return u+=x,{poly:y,area:x}});d.sort(function(y,M){return M.area-y.area});for(var p=t,c=0;c<l;c++){var h=d[c];if(p<=0)break;var g=c===l-1?p:Math.ceil(h.area/u*t);g<0||(tX(VHe,{points:h.poly},g,n),p-=g)}}i=O0;break}if(!i)return mCr(e,t);for(var m=[],c=0;c<n.length;c++){var b=new i;b.setShape(n[c]),vCr(e,b),m.push(b)}return m}function MCr(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],o=[],a=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,d=[a[0],a[1]],p=l,h=2;h<s;){var g=a[h-2],m=a[h-1],b=a[h++],y=a[h++],M=a[h++],C=a[h++],x=a[h++],w=a[h++];if(p<=0){d.push(b,y,M,C,x,w);continue}for(var S=Math.min(p,u-1)+1,A=1;A<=S;A++){var z=A/S;ow(g,b,M,x,z,i),ow(m,y,C,w,z,o),g=i[3],m=o[3],d.push(i[1],o[1],i[2],o[2],g,m),b=i[5],y=o[5],M=i[6],C=o[6]}p-=S-1}return a===e?[d,t]:[e,d]}function GHe(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],o=[],a=0;a<t.length;)o[a++]=r,o[a++]=i;return o}function CCr(e,t){for(var n,r,i,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,d=void 0;l?c?(n=MCr(l,c),u=n[0],d=n[1],r=u,i=d):(d=GHe(i||l,l),u=l):(u=GHe(r||c,c),d=c),o.push(u),a.push(d)}return[o,a]}function $He(e){for(var t=0,n=0,r=0,i=e.length,o=0,a=i-2;o<i;a=o,o+=2){var s=e[a],l=e[a+1],c=e[o],u=e[o+1],d=s*u-c*l;t+=d,n+=(s+c)*d,r+=(l+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function xCr(e,t,n,r){for(var i=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,c=0;c<i;c++){for(var u=c*6,d=0,p=0;p<s;p+=2){var h=p===0?u:(u+p-2)%l+2,g=e[h]-n[0],m=e[h+1]-n[1],b=t[p]-r[0],y=t[p+1]-r[1],M=b-g,C=y-m;d+=M*M+C*C}d<o&&(o=d,a=c)}return a}function wCr(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function SCr(e,t,n,r){for(var i=[],o,a=0;a<e.length;a++){var s=e[a],l=t[a],c=$He(s),u=$He(l);o==null&&(o=c[2]<0!=u[2]<0);var d=[],p=[],h=0,g=1/0,m=[],b=s.length;o&&(s=wCr(s));for(var y=xCr(s,l,c,u)*6,M=b-2,C=0;C<M;C+=2){var x=(y+C)%M+2;d[C+2]=s[x]-c[0],d[C+3]=s[x+1]-c[1]}d[0]=s[y]-c[0],d[1]=s[y+1]-c[1];for(var w=r/n,S=-r/2;S<=r/2;S+=w){for(var A=Math.sin(S),z=Math.cos(S),O=0,C=0;C<s.length;C+=2){var T=d[C],R=d[C+1],P=l[C]-u[0],F=l[C+1]-u[1],N=P*z-F*A,L=P*A+F*z;m[C]=N,m[C+1]=L;var W=N-T,j=L-R;O+=W*W+j*j}if(O<g){g=O,h=S;for(var V=0;V<m.length;V++)p[V]=m[V]}}i.push({from:d,to:p,fromCp:c,toCp:u,rotation:-h})}return i}function nX(e){return e.__isCombineMorphing}var YMt="__mOriginal_";function rX(e,t,n){var r=YMt+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var l=arguments,c;return s&&s.apply(this,l),o?c=o.apply(this,l):c=i.apply(this,l),a&&a.apply(this,l),c}}function FF(e,t){var n=YMt+t;e[n]&&(e[t]=e[n],e[n]=null)}function UHe(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=t[0]*o+t[2]*a+t[4],r[i++]=t[1]*o+t[3]*a+t[5]}}function KMt(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=CCr(Zve(n),Zve(r)),o=i[0],a=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}s&&UHe(o,s),l&&UHe(a,l),rX(t,"updateTransform",{replace:c}),t.transform=null;var u=SCr(o,a,10,Math.PI),d=[];rX(t,"buildPath",{replace:function(p){for(var h=t.__morphT,g=1-h,m=[],b=0;b<u.length;b++){var y=u[b],M=y.from,C=y.to,x=y.rotation*h,w=y.fromCp,S=y.toCp,A=Math.sin(x),z=Math.cos(x);SF(m,w,S,h);for(var O=0;O<M.length;O+=2){var T=M[O],R=M[O+1],P=C[O],F=C[O+1],N=T*g+P*h,L=R*g+F*h;d[O]=N*z-L*A+m[0],d[O+1]=N*A+L*z+m[1]}var W=d[0],j=d[1];p.moveTo(W,j);for(var O=2;O<M.length;){var P=d[O++],F=d[O++],V=d[O++],G=d[O++],q=d[O++],$=d[O++];W===P&&j===F&&V===q&&G===$?p.lineTo(q,$):p.bezierCurveTo(P,F,V,G,q,$),W=q,j=$}}}})}function yOe(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;KMt(e,t),t.__morphT=0;function o(){FF(t,"buildPath"),FF(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},br({during:function(a){t.dirtyShape(),i&&i(a)},done:function(){o(),r&&r()}},n)),t}function ACr(e,t,n,r,i,o){var a=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=o===r?0:Math.round(32767*(t-r)/(o-r));for(var s=0,l,c=(1<<a)/2;c>0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),s+=c*c*(3*u^d),d===0&&(u===1&&(e=c-1-e,t=c-1-t),l=e,e=t,t=l)}return s}function iX(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,o=Vt(e,function(s){var l=s.getBoundingRect(),c=s.getComputedTransform(),u=l.x+l.width/2+(c?c[4]:0),d=l.y+l.height/2+(c?c[5]:0);return t=Math.min(u,t),n=Math.min(d,n),r=Math.max(u,r),i=Math.max(d,i),[u,d]}),a=Vt(o,function(s,l){return{cp:s,z:ACr(s[0],s[1],t,n,r,i),path:e[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function QMt(e){return yCr(e.path,e.count)}function ebe(){return{fromIndividuals:[],toIndividuals:[],count:0}}function OCr(e,t,n){var r=[];function i(w){for(var S=0;S<w.length;S++){var A=w[S];nX(A)?i(A.childrenRef()):A instanceof Di&&r.push(A)}}i(e);var o=r.length;if(!o)return ebe();var a=n.dividePath||QMt,s=a({path:t,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),ebe();r=iX(r),s=iX(s);for(var l=n.done,c=n.during,u=n.individualDelay,d=new Sy,p=0;p<o;p++){var h=r[p],g=s[p];g.parent=t,g.copyTransform(d),u||KMt(h,g)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function m(w){for(var S=0;S<s.length;S++)s[S].addSelfToZr(w)}rX(t,"addSelfToZr",{after:function(w){m(w)}}),rX(t,"removeSelfFromZr",{after:function(w){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(w)}});function b(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,FF(t,"addSelfToZr"),FF(t,"removeSelfFromZr")}var y=s.length;if(u)for(var M=y,C=function(){M--,M===0&&(b(),l&&l())},p=0;p<y;p++){var x=u?br({delay:(n.delay||0)+u(p,y,r[p],s[p]),done:C},n):n;yOe(r[p],s[p],x)}else t.__morphT=0,t.animateTo({__morphT:1},br({during:function(w){for(var S=0;S<y;S++){var A=s[S];A.__morphT=t.__morphT,A.dirtyShape()}c&&c(w)},done:function(){b();for(var w=0;w<e.length;w++)FF(e[w],"updateTransform");l&&l()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function zCr(e,t,n){var r=t.length,i=[],o=n.dividePath||QMt;function a(h){for(var g=0;g<h.length;g++){var m=h[g];nX(m)?a(m.childrenRef()):m instanceof Di&&i.push(m)}}if(nX(e)){a(e.childrenRef());var s=i.length;if(s<r)for(var l=0,c=s;c<r;c++)i.push(ASe(i[l++%s]));i.length=r}else{i=o({path:e,count:r});for(var u=e.getComputedTransform(),c=0;c<i.length;c++)i[c].setLocalTransform(u);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),ebe()}i=iX(i),t=iX(t);for(var d=n.individualDelay,c=0;c<r;c++){var p=d?br({delay:(n.delay||0)+d(c,r,i[c],t[c])},n):n;yOe(i[c],t[c],p)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function XHe(e){return Ht(e[0])}function YHe(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var o=t[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(t[i][a])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var o=l.length,c=Math.ceil(o/2);n[i].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var TCr={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=ASe(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function fle(e,t,n,r,i,o){if(!e.length||!t.length)return;var a=ok("update",r,i);if(!(a&&a.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),c,u;XHe(e)&&(c=e,u=t),XHe(t)&&(c=t,u=e);function d(y,M,C,x,w){var S=y.many,A=y.one;if(S.length===1&&!w){var z=M?S[0]:A,O=M?A:S[0];if(nX(z))d({many:[z],one:O},!0,C,x,!0);else{var T=s?br({delay:s(C,x)},l):l;yOe(z,O,T),o(z,O,z,O,T)}}else for(var R=br({dividePath:TCr[n],individualDelay:s&&function(j,V,G,q){return s(j+C,x)}},l),P=M?OCr(S,A,R):zCr(A,S,R),F=P.fromIndividuals,N=P.toIndividuals,L=F.length,W=0;W<L;W++){var T=s?br({delay:s(W,L)},l):l;o(F[W],N[W],M?S[W]:y.one,M?y.one:S[W],T)}}for(var p=c?c===e:e.length>t.length,h=c?YHe(u,c):YHe(p?t:e,[p?e:t]),g=0,m=0;m<h.length;m++)g+=h[m].many.length;for(var b=0,m=0;m<h.length;m++)d(h[m],p,b,g),b+=h[m].many.length}function qA(e){if(!e)return[];if(Ht(e)){for(var t=[],n=0;n<e.length;n++)t.push(qA(e[n]));return t}var r=[];return e.traverse(function(i){i instanceof Di&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var ZMt=1e4,ECr=0,KHe=1,QHe=2,RCr=mo();function ICr(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function PCr(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=e.get(r.name,t);return i&&i.categories[o]||o+""}}function ZHe(e,t,n,r){var i=r?"itemChildGroupId":"itemGroupId",o=ICr(e,i);if(o){var a=PCr(e,t,o);return a}var s=e.getRawDataItem(t),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return n||e.getId(t)}function JHe(e){var t=[];return ye(e,function(n){var r=n.data,i=n.dataGroupId;if(!(r.count()>ZMt))for(var o=r.getIndices(),a=0;a<o.length;a++)t.push({data:r,groupId:ZHe(r,a,i,!1),childGroupId:ZHe(r,a,i,!0),divide:n.divide,dataIndex:a})}),t}function gle(e,t,n){e.traverse(function(r){r instanceof Di&&ys(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function mle(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function iR(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function DCr(e,t,n){var r=ok("update",n,t);r&&e.traverse(function(i){if(i instanceof qf){var o=uar(i);o&&i.animateFrom({style:o},r)}})}function kCr(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],o=t[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function JMt(e,t,n){var r=JHe(e),i=JHe(t);function o(C,x,w,S,A){(w||C)&&x.animateFrom({style:w&&w!==C?Nt(Nt({},w.style),C.style):C.style},A)}var a=!1,s=ECr,l=Kn(),c=Kn();r.forEach(function(C){C.groupId&&l.set(C.groupId,!0),C.childGroupId&&c.set(C.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(c.get(d)){s=KHe;break}var p=i[u].childGroupId;if(p&&l.get(p)){s=QHe;break}}function h(C,x){return function(w){var S=w.data,A=w.dataIndex;return x?S.getId(A):C?s===KHe?w.childGroupId:w.groupId:s===QHe?w.childGroupId:w.groupId}}var g=kCr(r,i),m={};if(!g)for(var u=0;u<i.length;u++){var b=i[u],y=b.data.getItemGraphicEl(b.dataIndex);y&&(m[y.id]=!0)}function M(C,x){var w=r[x],S=i[C],A=S.data.hostModel,z=w.data.getItemGraphicEl(w.dataIndex),O=S.data.getItemGraphicEl(S.dataIndex);if(z===O){O&&DCr(O,S.dataIndex,A);return}z&&m[z.id]||O&&(iR(O),z?(iR(z),mle(z),a=!0,fle(qA(z),qA(O),S.divide,A,C,o)):gle(O,A,C))}new oM(r,i,h(!0,g),h(!1,g),null,"multiple").update(M).updateManyToOne(function(C,x){var w=i[C],S=w.data,A=S.hostModel,z=S.getItemGraphicEl(w.dataIndex),O=Lo(Vt(x,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==z&&!m[T.id]});z&&(iR(z),O.length?(ye(O,function(T){iR(T),mle(T)}),a=!0,fle(qA(O),qA(z),w.divide,A,C,o)):gle(z,A,w.dataIndex))}).updateOneToMany(function(C,x){var w=r[x],S=w.data.getItemGraphicEl(w.dataIndex);if(!(S&&m[S.id])){var A=Lo(Vt(C,function(O){return i[O].data.getItemGraphicEl(i[O].dataIndex)}),function(O){return O&&O!==S}),z=i[C[0]].data.hostModel;A.length&&(ye(A,function(O){return iR(O)}),S?(iR(S),mle(S),a=!0,fle(qA(S),qA(A),w.divide,z,C[0],o)):ye(A,function(O){return gle(O,z,C[0])}))}}).updateManyToMany(function(C,x){new oM(x,C,function(w){return r[w].data.getId(r[w].dataIndex)},function(w){return i[w].data.getId(i[w].dataIndex)}).update(function(w,S){M(C[w],x[S])}).execute()}).execute(),a&&ye(t,function(C){var x=C.data,w=x.hostModel,S=w&&n.getViewOfSeriesModel(w),A=ok("update",w,0);S&&w.isAnimationEnabled()&&A&&A.duration>0&&S.group.traverse(function(z){z instanceof Di&&!z.animators.length&&z.animateFrom({style:{opacity:0}},A)})})}function e8e(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function t8e(e){return Ht(e)?e.sort().join(","):e}function WC(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function LCr(e,t){var n=Kn(),r=Kn(),i=Kn();return ye(e.oldSeries,function(o,a){var s=e.oldDataGroupIds[a],l=e.oldData[a],c=e8e(o),u=t8e(c);r.set(u,{dataGroupId:s,data:l}),Ht(c)&&ye(c,function(d){i.set(d,{key:u,dataGroupId:s,data:l})})}),ye(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var a=o.get("dataGroupId"),s=o.getData(),l=e8e(o),c=t8e(l),u=r.get(c);if(u)n.set(c,{oldSeries:[{dataGroupId:u.dataGroupId,divide:WC(u.data),data:u.data}],newSeries:[{dataGroupId:a,divide:WC(s),data:s}]});else if(Ht(l)){var d=[];ye(l,function(g){var m=r.get(g);m.data&&d.push({dataGroupId:m.dataGroupId,divide:WC(m.data),data:m.data})}),d.length&&n.set(c,{oldSeries:d,newSeries:[{dataGroupId:a,data:s,divide:WC(s)}]})}else{var p=i.get(l);if(p){var h=n.get(p.key);h||(h={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:WC(p.data)}],newSeries:[]},n.set(p.key,h)),h.newSeries.push({dataGroupId:a,data:s,divide:WC(s)})}}}}),n}function n8e(e,t){for(var n=0;n<e.length;n++){var r=t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id;if(r)return n}}function _Cr(e,t,n,r){var i=[],o=[];ye(Ea(e.from),function(a){var s=n8e(t.oldSeries,a);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:WC(t.oldData[s]),groupIdDim:a.dimension})}),ye(Ea(e.to),function(a){var s=n8e(n.updatedSeries,a);if(s>=0){var l=n.updatedSeries[s].getData();o.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:WC(l),groupIdDim:a.dimension})}}),i.length>0&&o.length>0&&JMt(i,o,r)}function NCr(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){ye(Ea(r.seriesTransition),function(i){ye(Ea(i.to),function(o){for(var a=r.updatedSeries,s=0;s<a.length;s++)(o.seriesIndex!=null&&o.seriesIndex===a[s].seriesIndex||o.seriesId!=null&&o.seriesId===a[s].id)&&(a[s][Y7]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var i=RCr(n);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var o=r.seriesTransition;if(o)ye(Ea(o),function(h){_Cr(h,i,r,n)});else{var a=LCr(i,r);ye(a.keys(),function(h){var g=a.get(h);JMt(g.oldSeries,g.newSeries,n)})}ye(r.updatedSeries,function(h){h[Y7]&&(h[Y7]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],c=i.oldDataGroupIds=[],u=i.oldData=[],d=0;d<s.length;d++){var p=s[d].getData();p.count()<ZMt&&(l.push(s[d]),c.push(s[d].get("dataGroupId")),u.push(p))}})}Si([Udr]);Si([jdr]);Si([h0r,T0r,F0r,v1r,T1r,fpr,jpr,Ahr,Uhr,Jhr,lfr,ngr,zgr,Fgr,emr,imr,fmr,Cmr,Pmr,Fmr,Xmr,Ivr]);Si(Kvr);Si(xbr);Si(Q2t);Si(Lbr);Si(_yt);Si(Wbr);Si(Xbr);Si(L2r);Si(eyr);Si(ij);Si(vyr);Si(Myr);Si(Ryr);Si(Nyr);Si(Hyr);Si(Yyr);Si(oMr);Si(wMr);Si(WMt);Si(qMt);Si(HMr);Si(GMt);Si($Mt);Si(XMr);Si(sCr);Si(uCr);Si(NCr);Si(ldr);const FCr=Object.freeze(Object.defineProperty({__proto__:null,Axis:ng,ChartView:pa,ComponentModel:Ri,ComponentView:us,List:y0,Model:No,PRIORITY:abt,SeriesModel:Ia,color:Trr,connect:vcr,dataTool:Scr,dependencies:Jlr,disConnect:bcr,disconnect:fbt,dispose:ycr,env:Ii,extendChartView:Yur,extendComponentModel:$ur,extendComponentView:Uur,extendSeriesModel:Xur,format:Lur,getCoordinateSystemDimensions:Ccr,getInstanceByDom:nAe,getInstanceById:Mcr,getMap:wcr,graphic:kur,helper:Our,init:mcr,innerDrawElementOnCanvas:ZSe,matrix:arr,number:Pur,parseGeoJSON:dve,parseGeoJson:dve,registerAction:Nm,registerCoordinateSystem:vbt,registerLayout:bbt,registerLoading:sAe,registerLocale:kSe,registerMap:ybt,registerPostInit:gbt,registerPostUpdate:mbt,registerPreprocessor:iAe,registerProcessor:oAe,registerTheme:rAe,registerTransform:Mbt,registerUpdateLifecycle:kJ,registerVisual:qw,setCanvasCreator:xcr,setPlatformAPI:pgt,throttle:PJ,time:Dur,use:Si,util:_ur,vector:$nr,version:Zlr,zrUtil:Wnr,zrender:cir},Symbol.toStringTag,{value:"Module"}));var U2={},X2={},vle={},r8e;function WCr(){return r8e||(r8e=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1,n=function(){return"".concat(t++)};e.default=n})(vle)),vle}var __={},N_={},ble={},i8e;function eCt(){return i8e||(i8e=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,o=null;return function(){for(var a=this,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];clearTimeout(o),o=setTimeout(function(){r.apply(a,l)},i)}};e.default=t})(ble)),ble}var Y2={},o8e;function MOe(){if(o8e)return Y2;o8e=1,Object.defineProperty(Y2,"__esModule",{value:!0}),Y2.SizeSensorId=Y2.SensorTabIndex=Y2.SensorClassName=void 0;var e="size-sensor-id";Y2.SizeSensorId=e;var t="size-sensor-object";Y2.SensorClassName=t;var n="-1";return Y2.SensorTabIndex=n,Y2}var a8e;function qCr(){if(a8e)return N_;a8e=1,Object.defineProperty(N_,"__esModule",{value:!0}),N_.createSensor=void 0;var e=n(eCt()),t=MOe();function n(i){return i&&i.__esModule?i:{default:i}}var r=function(o,a){var s=void 0,l=[],c=function(){getComputedStyle(o).position==="static"&&(o.style.position="relative");var m=document.createElement("object");return m.onload=function(){m.contentDocument.defaultView.addEventListener("resize",u),u()},m.style.display="block",m.style.position="absolute",m.style.top="0",m.style.left="0",m.style.height="100%",m.style.width="100%",m.style.overflow="hidden",m.style.pointerEvents="none",m.style.zIndex="-1",m.style.opacity="0",m.setAttribute("class",t.SensorClassName),m.setAttribute("tabindex",t.SensorTabIndex),m.type="text/html",o.appendChild(m),m.data="about:blank",m},u=(0,e.default)(function(){l.forEach(function(g){g(o)})}),d=function(m){s||(s=c()),l.indexOf(m)===-1&&l.push(m)},p=function(){s&&s.parentNode&&(s.contentDocument&&s.contentDocument.defaultView.removeEventListener("resize",u),s.parentNode.removeChild(s),o.removeAttribute(t.SizeSensorId),s=void 0,l=[],a&&a())},h=function(m){var b=l.indexOf(m);b!==-1&&l.splice(b,1),l.length===0&&s&&p()};return{element:o,bind:d,destroy:p,unbind:h}};return N_.createSensor=r,N_}var F_={},s8e;function BCr(){if(s8e)return F_;s8e=1,Object.defineProperty(F_,"__esModule",{value:!0}),F_.createSensor=void 0;var e=MOe(),t=n(eCt());function n(i){return i&&i.__esModule?i:{default:i}}var r=function(o,a){var s=void 0,l=[],c=(0,t.default)(function(){l.forEach(function(g){g(o)})}),u=function(){var m=new ResizeObserver(c);return m.observe(o),c(),m},d=function(m){s||(s=u()),l.indexOf(m)===-1&&l.push(m)},p=function(){s.disconnect(),l=[],s=void 0,o.removeAttribute(e.SizeSensorId),a&&a()},h=function(m){var b=l.indexOf(m);b!==-1&&l.splice(b,1),l.length===0&&s&&p()};return{element:o,bind:d,destroy:p,unbind:h}};return F_.createSensor=r,F_}var l8e;function jCr(){if(l8e)return __;l8e=1,Object.defineProperty(__,"__esModule",{value:!0}),__.createSensor=void 0;var e=qCr(),t=BCr(),n=typeof ResizeObserver<"u"?t.createSensor:e.createSensor;return __.createSensor=n,__}var c8e;function HCr(){if(c8e)return X2;c8e=1,Object.defineProperty(X2,"__esModule",{value:!0}),X2.removeSensor=X2.getSensor=X2.Sensors=void 0;var e=r(WCr()),t=jCr(),n=MOe();function r(l){return l&&l.__esModule?l:{default:l}}var i={};X2.Sensors=i;function o(l){l&&i[l]&&delete i[l]}var a=function(c){var u=c.getAttribute(n.SizeSensorId);if(u&&i[u])return i[u];var d=(0,e.default)();c.setAttribute(n.SizeSensorId,d);var p=(0,t.createSensor)(c,function(){return o(d)});return i[d]=p,p};X2.getSensor=a;var s=function(c){var u=c.element.getAttribute(n.SizeSensorId);c.destroy(),o(u)};return X2.removeSensor=s,X2}var u8e;function VCr(){if(u8e)return U2;u8e=1,Object.defineProperty(U2,"__esModule",{value:!0}),U2.ver=U2.clear=U2.bind=void 0;var e=HCr(),t=function(o,a){var s=(0,e.getSensor)(o);return s.bind(a),function(){s.unbind(a)}};U2.bind=t;var n=function(o){var a=(0,e.getSensor)(o);(0,e.removeSensor)(a)};U2.clear=n;var r="1.0.2";return U2.ver=r,U2}var d8e=VCr();function p8e(e,t){var n={};return t.forEach(function(r){n[r]=e[r]}),n}function yle(e){return typeof e=="function"}function h8e(e){return typeof e=="string"}var GCr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.echarts=n.echarts,r.ele=null,r.isInitialResize=!0,r}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(n){var r=this.props.shouldSetOption;if(!(yle(r)&&!r(n,this.props))){if(!DA(n.theme,this.props.theme)||!DA(n.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var i=this.getEchartsInstance();DA(n.onEvents,this.props.onEvents)||(this.offEvents(i,n.onEvents),this.bindEvents(i,this.props.onEvents));var o=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];DA(p8e(this.props,o),p8e(n,o))||this.updateEChartsOption(),(!DA(n.style,this.props.style)||!DA(n.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return U5e(this,void 0,void 0,function(){var n=this;return X5e(this,function(r){return[2,new Promise(function(i){n.echarts.init(n.ele,n.props.theme,n.props.opts);var o=n.getEchartsInstance();o.on("finished",function(){var a=n.ele.clientWidth,s=n.ele.clientHeight;n.echarts.dispose(n.ele);var l=Dn({width:a,height:s},n.props.opts);i(n.echarts.init(n.ele,n.props.theme,l))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{d8e.clear(this.ele)}catch(n){console.warn(n)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return U5e(this,void 0,void 0,function(){var n,r,i,o,a,s,l=this;return X5e(this,function(c){switch(c.label){case 0:return n=this.props,r=n.onEvents,i=n.onChartReady,o=n.autoResize,a=o===void 0?!0:o,[4,this.initEchartsInstance()];case 1:return c.sent(),s=this.updateEChartsOption(),this.bindEvents(s,r||{}),yle(i)&&i(s),this.ele&&a&&d8e.bind(this.ele,function(){l.resize()}),[2]}})})},t.prototype.bindEvents=function(n,r){function i(a,s){h8e(a)&&yle(s)&&n.on(a,function(l){s(l,n)})}for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i(o,r[o])},t.prototype.offEvents=function(n,r){if(r)for(var i in r)h8e(i)&&n.off(i)},t.prototype.updateEChartsOption=function(){var n=this.props,r=n.option,i=n.notMerge,o=i===void 0?!1:i,a=n.replaceMerge,s=a===void 0?null:a,l=n.lazyUpdate,c=l===void 0?!1:l,u=n.showLoading,d=n.loadingOption,p=d===void 0?null:d,h=this.getEchartsInstance();return h.setOption(r,{notMerge:o,replaceMerge:s,lazyUpdate:c}),u?h.showLoading(p):h.hideLoading(),h},t.prototype.resize=function(){var n=this.getEchartsInstance();if(!this.isInitialResize)try{n.resize({width:"auto",height:"auto"})}catch(r){console.warn(r)}this.isInitialResize=!1},t.prototype.render=function(){var n=this,r=this.props,i=r.style,o=r.className,a=o===void 0?"":o,s=Dn({height:300},i);return E.createElement("div",{ref:function(l){n.ele=l},style:s,className:"echarts-for-react ".concat(a)})},t})(v.PureComponent),AM=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.echarts=FCr,r}return t})(GCr);/*!
 * @kurkle/color v0.3.4
 * https://github.com/kurkle/color#readme
 * (c) 2024 Jukka Kurkela
 * Released under the MIT License
 */function oj(e){return e+.5|0}const bx=(e,t,n)=>Math.max(Math.min(e,n),t);function CN(e){return bx(oj(e*2.55),0,255)}function qx(e){return bx(oj(e*255),0,255)}function cy(e){return bx(oj(e/2.55)/100,0,1)}function f8e(e){return bx(oj(e*100),0,100)}const qh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},tbe=[..."0123456789ABCDEF"],$Cr=e=>tbe[e&15],UCr=e=>tbe[(e&240)>>4]+tbe[e&15],QV=e=>(e&240)>>4===(e&15),XCr=e=>QV(e.r)&&QV(e.g)&&QV(e.b)&&QV(e.a);function YCr(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&qh[e[1]]*17,g:255&qh[e[2]]*17,b:255&qh[e[3]]*17,a:t===5?qh[e[4]]*17:255}:(t===7||t===9)&&(n={r:qh[e[1]]<<4|qh[e[2]],g:qh[e[3]]<<4|qh[e[4]],b:qh[e[5]]<<4|qh[e[6]],a:t===9?qh[e[7]]<<4|qh[e[8]]:255})),n}const KCr=(e,t)=>e<255?t(e):"";function QCr(e){var t=XCr(e)?$Cr:UCr;return e?"#"+t(e.r)+t(e.g)+t(e.b)+KCr(e.a,t):void 0}const ZCr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tCt(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function JCr(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function exr(e,t,n){const r=tCt(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function txr(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function COe(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let l,c,u;return o!==a&&(u=o-a,c=s>.5?u/(2-o-a):u/(o+a),l=txr(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function xOe(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(qx)}function wOe(e,t,n){return xOe(tCt,e,t,n)}function nxr(e,t,n){return xOe(exr,e,t,n)}function rxr(e,t,n){return xOe(JCr,e,t,n)}function nCt(e){return(e%360+360)%360}function ixr(e){const t=ZCr.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?CN(+t[5]):qx(+t[5]));const i=nCt(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=nxr(i,o,a):t[1]==="hsv"?r=rxr(i,o,a):r=wOe(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function oxr(e,t){var n=COe(e);n[0]=nCt(n[0]+t),n=wOe(n),e.r=n[0],e.g=n[1],e.b=n[2]}function axr(e){if(!e)return;const t=COe(e),n=t[0],r=f8e(t[1]),i=f8e(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${cy(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const g8e={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},m8e={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function sxr(){const e={},t=Object.keys(m8e),n=Object.keys(g8e);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,g8e[o]);o=parseInt(m8e[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let ZV;function lxr(e){ZV||(ZV=sxr(),ZV.transparent=[0,0,0,0]);const t=ZV[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cxr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function uxr(e){const t=cxr.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?CN(a):bx(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?CN(r):bx(r,0,255)),i=255&(t[4]?CN(i):bx(i,0,255)),o=255&(t[6]?CN(o):bx(o,0,255)),{r,g:i,b:o,a:n}}}function dxr(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${cy(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Mle=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,oR=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function pxr(e,t,n){const r=oR(cy(e.r)),i=oR(cy(e.g)),o=oR(cy(e.b));return{r:qx(Mle(r+n*(oR(cy(t.r))-r))),g:qx(Mle(i+n*(oR(cy(t.g))-i))),b:qx(Mle(o+n*(oR(cy(t.b))-o))),a:e.a+n*(t.a-e.a)}}function JV(e,t,n){if(e){let r=COe(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=wOe(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function rCt(e,t){return e&&Object.assign(t||{},e)}function v8e(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=qx(e[3]))):(t=rCt(e,{r:0,g:0,b:0,a:1}),t.a=qx(t.a)),t}function hxr(e){return e.charAt(0)==="r"?uxr(e):ixr(e)}let iCt=class nbe{constructor(t){if(t instanceof nbe)return t;const n=typeof t;let r;n==="object"?r=v8e(t):n==="string"&&(r=YCr(t)||lxr(t)||hxr(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=rCt(this._rgb);return t&&(t.a=cy(t.a)),t}set rgb(t){this._rgb=v8e(t)}rgbString(){return this._valid?dxr(this._rgb):void 0}hexString(){return this._valid?QCr(this._rgb):void 0}hslString(){return this._valid?axr(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=pxr(this._rgb,t._rgb,n)),this}clone(){return new nbe(this.rgb)}alpha(t){return this._rgb.a=qx(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=oj(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return JV(this._rgb,2,t),this}darken(t){return JV(this._rgb,2,-t),this}saturate(t){return JV(this._rgb,1,t),this}desaturate(t){return JV(this._rgb,1,-t),this}rotate(t){return oxr(this._rgb,t),this}};/*!
 * Chart.js v4.5.0
 * https://www.chartjs.org
 * (c) 2025 Chart.js Contributors
 * Released under the MIT License
 */function K2(){}const fxr=(()=>{let e=0;return()=>e++})();function $s(e){return e==null}function $u(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function qa(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Bf(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Cv(e,t){return Bf(e)?e:t}function ko(e,t){return typeof e>"u"?t:e}const gxr=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function _i(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function jo(e,t,n,r){let i,o,a;if($u(e))for(o=e.length,i=0;i<o;i++)t.call(n,e[i],i);else if(qa(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function oX(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function aX(e){if($u(e))return e.map(aX);if(qa(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=aX(e[n[i]]);return t}return e}function oCt(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function mxr(e,t,n,r){if(!oCt(e))return;const i=t[e],o=n[e];qa(i)&&qa(o)?Fq(i,o,r):t[e]=aX(o)}function Fq(e,t,n){const r=$u(t)?t:[t],i=r.length;if(!qa(e))return e;n=n||{};const o=n.merger||mxr;let a;for(let s=0;s<i;++s){if(a=r[s],!qa(a))continue;const l=Object.keys(a);for(let c=0,u=l.length;c<u;++c)o(l[c],e,a,n)}return e}function WF(e,t){return Fq(e,t,{merger:vxr})}function vxr(e,t,n){if(!oCt(e))return;const r=t[e],i=n[e];qa(r)&&qa(i)?WF(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=aX(i))}const b8e={"":e=>e,x:e=>e.x,y:e=>e.y};function bxr(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function yxr(e){const t=bxr(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function sX(e,t){return(b8e[t]||(b8e[t]=yxr(t)))(e)}function SOe(e){return e.charAt(0).toUpperCase()+e.slice(1)}const lX=e=>typeof e<"u",uw=e=>typeof e=="function",y8e=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Mxr(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ku=Math.PI,xb=2*Ku,Cxr=xb+Ku,cX=Number.POSITIVE_INFINITY,xxr=Ku/180,rm=Ku/2,MA=Ku/4,M8e=Ku*2/3,aCt=Math.log10,dw=Math.sign;function az(e,t,n){return Math.abs(e-t)<n}function C8e(e){const t=Math.round(e);e=az(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(aCt(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function wxr(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function Sxr(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Wq(e){return!Sxr(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Axr(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Oxr(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function wO(e){return e*(Ku/180)}function zxr(e){return e*(180/Ku)}function x8e(e){if(!Bf(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Txr(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*Ku&&(o+=xb),{angle:o,distance:i}}function rbe(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Exr(e,t){return(e-t+Cxr)%xb-Ku}function EC(e){return(e%xb+xb)%xb}function sCt(e,t,n,r){const i=EC(e),o=EC(t),a=EC(n),s=EC(o-i),l=EC(a-i),c=EC(i-o),u=EC(i-a);return i===o||i===a||r&&o===a||s>l&&c<u}function xf(e,t,n){return Math.max(t,Math.min(n,e))}function Rxr(e){return xf(e,-32768,32767)}function xN(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function AOe(e,t,n){n=n||(a=>e[a]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const SO=(e,t,n,r)=>AOe(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),Ixr=(e,t,n)=>AOe(e,n,r=>e[r][t]>=n);function Pxr(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const lCt=["push","pop","shift","splice","unshift"];function Dxr(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),lCt.forEach(n=>{const r="_onData"+SOe(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function w8e(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(lCt.forEach(o=>{delete e[o]}),delete e._chartjs)}function kxr(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const cCt=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function uCt(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,cCt.call(window,()=>{r=!1,e.apply(t,n)}))}}function Lxr(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const OOe=e=>e==="start"?"left":e==="end"?"right":"center",r0=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,_xr=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function Nxr(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,vScale:s,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=a.axis,{min:d,max:p,minDefined:h,maxDefined:g}=a.getUserBounds();if(h){if(i=Math.min(SO(l,u,d).lo,n?r:SO(t,u,a.getPixelForValue(d)).lo),c){const m=l.slice(0,i+1).reverse().findIndex(b=>!$s(b[s.axis]));i-=Math.max(0,m)}i=xf(i,0,r-1)}if(g){let m=Math.max(SO(l,a.axis,p,!0).hi+1,n?0:SO(t,u,a.getPixelForValue(p),!0).hi+1);if(c){const b=l.slice(m-1).findIndex(y=>!$s(y[s.axis]));m+=Math.max(0,b)}o=xf(m,i,r)-i}else o=r-i}return{start:i,count:o}}function Fxr(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const eG=e=>e===0||e===1,S8e=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*xb/n)),A8e=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*xb/n)+1,qF={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*rm)+1,easeOutSine:e=>Math.sin(e*rm),easeInOutSine:e=>-.5*(Math.cos(Ku*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eG(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eG(e)?e:S8e(e,.075,.3),easeOutElastic:e=>eG(e)?e:A8e(e,.075,.3),easeInOutElastic(e){return eG(e)?e:e<.5?.5*S8e(e*2,.1125,.45):.5+.5*A8e(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-qF.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?qF.easeInBounce(e*2)*.5:qF.easeOutBounce(e*2-1)*.5+.5};function zOe(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function O8e(e){return zOe(e)?e:new iCt(e)}function Cle(e){return zOe(e)?e:new iCt(e).saturate(.5).darken(.1).hexString()}const Wxr=["x","y","borderWidth","radius","tension"],qxr=["color","borderColor","backgroundColor"];function Bxr(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:qxr},numbers:{type:"number",properties:Wxr}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function jxr(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const z8e=new Map;function Hxr(e,t){t=t||{};const n=e+JSON.stringify(t);let r=z8e.get(n);return r||(r=new Intl.NumberFormat(e,t),z8e.set(n,r)),r}function dCt(e,t,n){return Hxr(t,n).format(e)}const Vxr={values(e){return $u(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=Gxr(e,n)}const a=aCt(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),dCt(e,r,l)}};function Gxr(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var pCt={formatters:Vxr};function $xr(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:pCt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const n3=Object.create(null),ibe=Object.create(null);function BF(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function xle(e,t,n){return typeof t=="string"?Fq(BF(e,t),n):Fq(BF(e,""),t)}class Uxr{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Cle(i.backgroundColor),this.hoverBorderColor=(r,i)=>Cle(i.borderColor),this.hoverColor=(r,i)=>Cle(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return xle(this,t,n)}get(t){return BF(this,t)}describe(t,n){return xle(ibe,t,n)}override(t,n){return xle(n3,t,n)}route(t,n,r,i){const o=BF(this,t),a=BF(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return qa(l)?Object.assign({},c,l):ko(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var Ac=new Uxr({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Bxr,jxr,$xr]);function Xxr(e){return!e||$s(e.size)||$s(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function T8e(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function CA(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function E8e(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function obe(e,t,n,r){hCt(e,t,n,r,null)}function hCt(e,t,n,r,i){let o,a,s,l,c,u,d,p;const h=t.pointStyle,g=t.rotation,m=t.radius;let b=(g||0)*xxr;if(h&&typeof h=="object"&&(o=h.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,xb):e.arc(n,r,m,0,xb),e.closePath();break;case"triangle":u=i?i/2:m,e.moveTo(n+Math.sin(b)*u,r-Math.cos(b)*m),b+=M8e,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*m),b+=M8e,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,a=Math.cos(b+MA)*l,d=Math.cos(b+MA)*(i?i/2-c:l),s=Math.sin(b+MA)*l,p=Math.sin(b+MA)*(i?i/2-c:l),e.arc(n-d,r-s,c,b-Ku,b-rm),e.arc(n+p,r-a,c,b-rm,b),e.arc(n+d,r+s,c,b,b+rm),e.arc(n-p,r+a,c,b+rm,b+Ku),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}b+=MA;case"rectRot":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,p=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+p,r-a),e.lineTo(n+d,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":b+=MA;case"cross":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,p=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,p=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),b+=MA,d=Math.cos(b)*(i?i/2:m),a=Math.cos(b)*m,s=Math.sin(b)*m,p=Math.sin(b)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(b)*m,s=Math.sin(b)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:m),r+Math.sin(b)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function VP(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function TOe(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function EOe(e){e.restore()}function Yxr(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Kxr(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Qxr(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),$s(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Zxr(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function Jxr(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function qq(e,t,n,r,i,o={}){const a=$u(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,Qxr(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&Jxr(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),$s(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),Zxr(e,n,r,c,o),r+=Number(i.lineHeight);e.restore()}function abe(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*Ku,Ku,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,Ku,rm,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,rm,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-rm,!0),e.lineTo(n+a.topLeft,r)}const ewr=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,twr=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function nwr(e,t){const n=(""+e).match(ewr);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const rwr=e=>+e||0;function fCt(e,t){const n={},r=qa(t),i=r?Object.keys(t):t,o=qa(e)?r?a=>ko(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=rwr(o(a));return n}function iwr(e){return fCt(e,{top:"y",right:"x",bottom:"y",left:"x"})}function jF(e){return fCt(e,["topLeft","topRight","bottomLeft","bottomRight"])}function jf(e){const t=iwr(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function f0(e,t){e=e||{},t=t||Ac.font;let n=ko(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=ko(e.style,t.style);r&&!(""+r).match(twr)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:ko(e.family,t.family),lineHeight:nwr(ko(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:ko(e.weight,t.weight),string:""};return i.string=Xxr(i),i}function tG(e,t,n,r){let i,o,a;for(i=0,o=e.length;i<o;++i)if(a=e[i],a!==void 0&&a!==void 0)return a}function owr(e,t,n){const{min:r,max:i}=e,o=gxr(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Q3(e,t){return Object.assign(Object.create(e),t)}function ROe(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=bCt("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>ROe([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return mCt(s,l,()=>hwr(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return I8e(s).includes(l)},ownKeys(s){return I8e(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function GP(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:gCt(e,r),setContext:o=>GP(e,o,n,r),override:o=>GP(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return mCt(o,a,()=>swr(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function gCt(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:uw(n)?n:()=>n,isIndexable:uw(r)?r:()=>r}}const awr=(e,t)=>e?e+SOe(t):t,IOe=(e,t)=>qa(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function mCt(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function swr(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return uw(s)&&a.isScriptable(t)&&(s=lwr(t,s,e,n)),$u(s)&&s.length&&(s=cwr(t,s,e,a.isIndexable)),IOe(t,s)&&(s=GP(s,i,o&&o[t],a)),s}function lwr(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),IOe(e,l)&&(l=POe(i._scopes,i,e,l)),l}function cwr(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(qa(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=POe(c,i,e,u);t.push(GP(d,o,a&&a[e],s))}}return t}function vCt(e,t,n){return uw(e)?e(t,n):e}const uwr=(e,t)=>e===!0?t:typeof e=="string"?sX(t,e):void 0;function dwr(e,t,n,r,i){for(const o of t){const a=uwr(n,o);if(a){e.add(a);const s=vCt(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function POe(e,t,n,r){const i=t._rootScopes,o=vCt(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=R8e(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=R8e(s,a,o,l,r),l===null)?!1:ROe(Array.from(s),[""],i,o,()=>pwr(t,n,r))}function R8e(e,t,n,r,i){for(;n;)n=dwr(e,t,n,r,i);return n}function pwr(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return $u(i)&&qa(n)?n:i||{}}function hwr(e,t,n,r){let i;for(const o of t)if(i=bCt(awr(o,e),n),typeof i<"u")return IOe(e,i)?POe(n,r,e,i):i}function bCt(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function I8e(e){let t=e._keys;return t||(t=e._keys=fwr(e._scopes)),t}function fwr(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const gwr=Number.EPSILON||1e-14,$P=(e,t)=>t<e.length&&!e[t].skip&&e[t],yCt=e=>e==="x"?"y":"x";function mwr(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=rbe(o,i),l=rbe(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,p=r*u;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function vwr(e,t,n){const r=e.length;let i,o,a,s,l,c=$P(e,0);for(let u=0;u<r-1;++u)if(l=c,c=$P(e,u+1),!(!l||!c)){if(az(t[u],0,gwr)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],o=n[u+1]/t[u],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[u]=i*a*t[u],n[u+1]=o*a*t[u])}}function bwr(e,t,n="x"){const r=yCt(n),i=e.length;let o,a,s,l=$P(e,0);for(let c=0;c<i;++c){if(a=s,s=l,l=$P(e,c+1),!s)continue;const u=s[n],d=s[r];a&&(o=(u-a[n])/3,s[`cp1${n}`]=u-o,s[`cp1${r}`]=d-o*t[c]),l&&(o=(l[n]-u)/3,s[`cp2${n}`]=u+o,s[`cp2${r}`]=d+o*t[c])}}function ywr(e,t="x"){const n=yCt(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=$P(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=$P(e,a+1),!!l){if(c){const u=c[t]-l[t];i[a]=u!==0?(c[n]-l[n])/u:0}o[a]=s?c?dw(i[a-1])!==dw(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}vwr(e,i,o),bwr(e,o,t)}function nG(e,t,n){return Math.max(Math.min(e,n),t)}function Mwr(e,t){let n,r,i,o,a,s=VP(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&VP(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=nG(i.cp1x,t.left,t.right),i.cp1y=nG(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=nG(i.cp2x,t.left,t.right),i.cp2y=nG(i.cp2y,t.top,t.bottom)))}function Cwr(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")ywr(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=mwr(c,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&Mwr(e,n)}function DOe(){return typeof window<"u"&&typeof document<"u"}function kOe(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function uX(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const UJ=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function xwr(e,t){return UJ(e).getPropertyValue(t)}const wwr=["top","right","bottom","left"];function sz(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=wwr[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Swr=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Awr(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(Swr(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Wv(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=UJ(n),o=i.boxSizing==="border-box",a=sz(i,"padding"),s=sz(i,"border","width"),{x:l,y:c,box:u}=Awr(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:g}=t;return o&&(h-=a.width+s.width,g-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/g*n.height/r)}}function Owr(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&kOe(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=UJ(o),l=sz(s,"border","width"),c=sz(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=uX(s.maxWidth,o,"clientWidth"),i=uX(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||cX,maxHeight:i||cX}}const rG=e=>Math.round(e*10)/10;function zwr(e,t,n,r){const i=UJ(e),o=sz(i,"margin"),a=uX(i.maxWidth,e,"clientWidth")||cX,s=uX(i.maxHeight,e,"clientHeight")||cX,l=Owr(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const p=sz(i,"border","width"),h=sz(i,"padding");c-=h.width+p.width,u-=h.height+p.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=rG(Math.min(c,a,l.maxWidth)),u=rG(Math.min(u,s,l.maxHeight)),c&&!u&&(u=rG(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=rG(Math.floor(u*r))),{width:c,height:u}}function P8e(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Twr=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};DOe()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function D8e(e,t){const n=xwr(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function BA(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Ewr(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Rwr(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=BA(e,i,n),s=BA(i,o,n),l=BA(o,t,n),c=BA(a,s,n),u=BA(s,l,n);return BA(c,u,n)}const Iwr=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},Pwr=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function WI(e,t,n){return e?Iwr(t,n):Pwr()}function MCt(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function CCt(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function xCt(e){return e==="angle"?{between:sCt,compare:Exr,normalize:EC}:{between:xN,compare:(t,n)=>t-n,normalize:t=>t}}function k8e({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Dwr(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=xCt(r),l=t.length;let{start:c,end:u,loop:d}=e,p,h;if(d){for(c+=l,u+=l,p=0,h=l;p<h&&a(s(t[c%l][r]),i,o);++p)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function kwr(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:c}=xCt(r),{start:u,end:d,loop:p,style:h}=Dwr(e,t,n),g=[];let m=!1,b=null,y,M,C;const x=()=>l(i,C,y)&&s(i,C)!==0,w=()=>s(o,y)===0||l(o,C,y),S=()=>m||x(),A=()=>!m||w();for(let z=u,O=u;z<=d;++z)M=t[z%a],!M.skip&&(y=c(M[r]),y!==C&&(m=l(y,i,o),b===null&&S()&&(b=s(y,i)===0?z:O),b!==null&&A()&&(g.push(k8e({start:b,end:z,loop:p,count:a,style:h})),b=null),O=z,C=y));return b!==null&&g.push(k8e({start:b,end:d,loop:p,count:a,style:h})),g}function Lwr(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=kwr(r[i],e.points,t);o.length&&n.push(...o)}return n}function _wr(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function Nwr(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function Fwr(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=_wr(n,i,o,r);if(r===!0)return L8e(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,c=!!e._fullLoop&&a===0&&s===i-1;return L8e(e,Nwr(n,a,l,c),n,t)}function L8e(e,t,n,r){return!r||!r.setContext||!n?t:Wwr(e,t,n,r)}function Wwr(e,t,n,r){const i=e._chart.getContext(),o=_8e(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=o,d=t[0].start,p=d;function h(g,m,b,y){const M=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=M;for(;n[m%l].skip;)m+=M;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:b,style:y}),u=y,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],b;for(p=d+1;p<=g.end;p++){const y=n[p%l];b=_8e(r.setContext(Q3(i,{type:"segment",p0:m,p1:y,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),qwr(b,u)&&h(d,p-1,g.loop,u),m=y,u=b}d<p-1&&h(d,p-1,g.loop,u)}return c}function _8e(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function qwr(e,t){if(!t)return!1;const n=[],r=function(i,o){return zOe(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function iG(e,t,n){return e.options.clip?e[n]:t[n]}function Bwr(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:iG(n,t,"left"),right:iG(n,t,"right"),top:iG(r,t,"top"),bottom:iG(r,t,"bottom")}:t}function jwr(e,t){const n=t._clip;if(n.disabled)return!1;const r=Bwr(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
 * Chart.js v4.5.0
 * https://www.chartjs.org
 * (c) 2025 Chart.js Contributors
 * Released under the MIT License
 */class Hwr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=cCt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ey=new Hwr;const N8e="transparent",Vwr={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=O8e(e||N8e),i=r.valid&&O8e(t||N8e);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};let Gwr=class{constructor(t,n,r,i){const o=n[r];i=tG([t.to,i,o,t.from]);const a=tG([t.from,o,i]);this._active=!0,this._fn=t.fn||Vwr[t.type||typeof a],this._easing=qF[t.easing]||qF.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=tG([t.to,n,i,t.from]),this._from=tG([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}};class wCt{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!qa(t))return;const n=Object.keys(Ac.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!qa(o))return;const a={};for(const s of n)a[s]=o[s];($u(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=Uwr(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&$wr(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const p=r.get(c);if(d)if(p&&d.active()){d.update(p,u,s);continue}else d.cancel();if(!p||!p.duration){t[c]=u;continue}o[c]=d=new Gwr(p,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ey.add(this._chart,r),!0}}function $wr(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Uwr(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function F8e(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function Xwr(e,t,n){if(n===!1)return!1;const r=F8e(e,n),i=F8e(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Ywr(e){let t,n,r,i;return qa(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function SCt(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function W8e(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,c;if(t===null)return;let u=!1;for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(u=!0,r.all)continue;break}c=e.values[l],Bf(c)&&(o||t===0||dw(t)===dw(c))&&(t+=c)}return!u&&!r.all?0:t}function Kwr(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",o=r.axis==="x"?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[i]:u,[o]:e[u]};return s}function wle(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Qwr(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Zwr(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Jwr(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function q8e(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function B8e(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=Qwr(o,a,r),d=t.length;let p;for(let h=0;h<d;++h){const g=t[h],{[l]:m,[c]:b}=g,y=g._stacks||(g._stacks={});p=y[c]=Jwr(i,u,m),p[s]=b,p._top=q8e(p,a,!0,r.type),p._bottom=q8e(p,a,!1,r.type);const M=p._visualValues||(p._visualValues={});M[s]=b}}function Sle(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function eSr(e,t){return Q3(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function tSr(e,t,n){return Q3(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function W_(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Ale=e=>e==="reset"||e==="none",j8e=(e,t)=>t?e:Object.assign({},e),nSr=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:SCt(n,!0),values:null};class ACt{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=wle(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&W_(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,p,h,g)=>d==="x"?p:d==="r"?g:h,o=n.xAxisID=ko(r.xAxisID,Sle(t,"x")),a=n.yAxisID=ko(r.yAxisID,Sle(t,"y")),s=n.rAxisID=ko(r.rAxisID,Sle(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&w8e(this._data,this),t._stacked&&W_(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(qa(n)){const i=this._cachedMeta;this._data=Kwr(n,i)}else if(r!==n){if(r){w8e(r,this);const i=this._cachedMeta;W_(i),i._parsed=[]}n&&Object.isExtensible(n)&&Dxr(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=wle(n.vScale,n),n.stack!==r.stack&&(i=!0,W_(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&(B8e(this,n._parsed),n._stacked=wle(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{$u(i[t])?p=this.parseArrayData(r,i,t,n):qa(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const h=()=>d[s]===null||c&&d[s]<c[s];for(u=0;u<n;++u)r._parsed[u+t]=d=p[u],l&&(h()&&(l=!1),c=d);r._sorted=l}a&&B8e(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,c=o.getLabels(),u=o===a,d=new Array(i);let p,h,g;for(p=0,h=i;p<h;++p)g=p+r,d[p]={[s]:u||o.parse(c[g],g),[l]:a.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],s[l]={x:o.parse(d[0],u),y:a.parse(d[1],u)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,p,h;for(u=0,d=i;u<d;++u)p=u+r,h=n[p],c[u]={x:o.parse(sX(h,s),p),y:a.parse(sX(h,l),p)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],s={keys:SCt(i,!0),values:n._stacks[t.axis]._visualValues};return W8e(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=W8e(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=nSr(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Zwr(s);let p,h;function g(){h=i[p];const m=h[s.axis];return!Bf(h[t.axis])||u>m||d<m}for(p=0;p<a&&!(!g()&&(this.updateRangeFromParsed(c,t,h,l),o));++p);if(o){for(p=a-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],Bf(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Ywr(ko(this.options.clip,Xwr(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,o,s,l),u=s;u<s+l;++u){const d=i[u];d.hidden||(d.active&&c?a.push(d):d.draw(t,o))}for(u=0;u<a.length;++u)a[u].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=tSr(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=eSr(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&lX(r);if(s)return j8e(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),u),h=Object.keys(Ac.elements[t]),g=()=>this.getContext(r,i,n),m=c.resolveNamedOptions(p,h,g,d);return m.$shared&&(m.$shared=l,o[a]=Object.freeze(j8e(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),p=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(p,this.getContext(t,r,n))}const c=new wCt(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Ale(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){Ale(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Ale(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&W_(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class rSr extends ACt{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=Nxr(n,i,a);this._drawStart=s,this._drawCount=l,Fxr(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),p=a.axis,h=s.axis,{spanGaps:g,segment:m}=this.options,b=Wq(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||i==="none",M=n+r,C=t.length;let x=n>0&&this.getParsed(n-1);for(let w=0;w<C;++w){const S=t[w],A=y?S:{};if(w<n||w>=M){A.skip=!0;continue}const z=this.getParsed(w),O=$s(z[h]),T=A[p]=a.getPixelForValue(z[p],w),R=A[h]=o||O?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,z,l):z[h],w);A.skip=isNaN(T)||isNaN(R)||O,A.stop=w>0&&Math.abs(z[p]-x[p])>b,m&&(A.parsed=z,A.raw=c.data[w]),d&&(A.options=u||this.resolveDataElementOptions(w,S.active?"active":i)),y||this.updateElement(S,w,A,i),x=z}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function xA(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class LOe{static override(t){Object.assign(LOe.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return xA()}parse(){return xA()}format(){return xA()}add(){return xA()}diff(){return xA()}startOf(){return xA()}endOf(){return xA()}}var OCt={_date:LOe};function iSr(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const c=s._reversePixels?Ixr:SO;if(r){if(i._sharedOptions){const u=o[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const p=c(o,t,n-d),h=c(o,t,n+d);return{lo:p.lo,hi:h.hi}}}}else{const u=c(o,t,n);if(l){const{vScale:d}=i._cachedMeta,{_parsed:p}=e,h=p.slice(0,u.lo+1).reverse().findIndex(m=>!$s(m[d.axis]));u.lo-=Math.max(0,h);const g=p.slice(u.hi).findIndex(m=>!$s(m[d.axis]));u.hi+=Math.max(0,g)}return u}}return{lo:0,hi:o.length-1}}function XJ(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:c,data:u}=o[s],{lo:d,hi:p}=iSr(o[s],t,a,i);for(let h=d;h<=p;++h){const g=u[h];g.skip||r(g,c,h)}}}function oSr(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function Ole(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||XJ(e,n,t,function(s,l,c){!i&&!VP(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:l,index:c})},!0),o}function aSr(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:c,endAngle:u}=a.getProps(["startAngle","endAngle"],r),{angle:d}=Txr(a,{x:t.x,y:t.y});sCt(d,c,u)&&i.push({element:a,datasetIndex:s,index:l})}return XJ(e,n,t,o),i}function sSr(e,t,n,r,i,o){let a=[];const s=oSr(n);let l=Number.POSITIVE_INFINITY;function c(u,d,p){const h=u.inRange(t.x,t.y,i);if(r&&!h)return;const g=u.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!h)return;const b=s(t,g);b<l?(a=[{element:u,datasetIndex:d,index:p}],l=b):b===l&&a.push({element:u,datasetIndex:d,index:p})}return XJ(e,n,t,c),a}function zle(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?aSr(e,t,n,i):sSr(e,t,n,r,i,o)}function H8e(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return XJ(e,n,t,(l,c,u)=>{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var lSr={modes:{index(e,t,n,r){const i=Wv(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?Ole(e,i,o,r,a):zle(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=Wv(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?Ole(e,i,o,r,a):zle(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;u<c.length;++u)s.push({element:c[u],datasetIndex:l,index:u})}return s},point(e,t,n,r){const i=Wv(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return Ole(e,i,o,r,a)},nearest(e,t,n,r){const i=Wv(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return zle(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=Wv(t,e);return H8e(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Wv(t,e);return H8e(e,i,"y",n.intersect,r)}}};const zCt=["left","top","right","bottom"];function q_(e,t){return e.filter(n=>n.pos===t)}function V8e(e,t){return e.filter(n=>zCt.indexOf(n.pos)===-1&&n.box.axis===t)}function B_(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function cSr(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function uSr(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!zCt.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function dSr(e,t){const n=uSr(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,c=n[s.stack],u=c&&s.stackWeight/c.weight;s.horizontal?(s.width=u?u*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=u?u*i:l&&t.availableHeight)}return n}function pSr(e){const t=cSr(e),n=B_(t.filter(c=>c.box.fullSize),!0),r=B_(q_(t,"left"),!0),i=B_(q_(t,"right")),o=B_(q_(t,"top"),!0),a=B_(q_(t,"bottom")),s=V8e(t,"x"),l=V8e(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:q_(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function G8e(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function TCt(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function hSr(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!qa(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&TCt(a,o.getPadding());const s=Math.max(0,t.outerWidth-G8e(a,e,"left","right")),l=Math.max(0,t.outerHeight-G8e(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function fSr(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function gSr(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function wN(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,gSr(s.horizontal,t));const{same:d,other:p}=hSr(t,n,s,r);c|=d&&i.length,u=u||p,l.fullSize||i.push(s)}return c&&wN(i,t,n,r)||u}function oG(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function $8e(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,c=r[s.stack]||{placed:0,weight:1},u=s.stackWeight/c.weight||1;if(s.horizontal){const d=t.w*u,p=c.size||l.height;lX(c.start)&&(a=c.start),l.fullSize?oG(l,i.left,a,n.outerWidth-i.right-i.left,p):oG(l,t.left+c.placed,a,d,p),c.start=a,c.placed+=d,a=l.bottom}else{const d=t.h*u,p=c.size||l.width;lX(c.start)&&(o=c.start),l.fullSize?oG(l,o,i.top,p,n.outerHeight-i.bottom-i.top):oG(l,o,t.top+c.placed,p,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=a}var wf={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=jf(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=pSr(e.boxes),l=s.vertical,c=s.horizontal;jo(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},i);TCt(p,jf(r));const h=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),g=dSr(l.concat(c),d);wN(s.fullSize,h,d,g),wN(l,h,d,g),wN(c,h,d,g)&&wN(l,h,d,g),fSr(h),$8e(s.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,$8e(s.rightAndBottom,h,d,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},jo(s.chartArea,m=>{const b=m.box;Object.assign(b,e.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class ECt{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class mSr extends ECt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const r$="$chartjs",vSr={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},U8e=e=>e===null||e==="";function bSr(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[r$]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",U8e(i)){const o=D8e(e,"width");o!==void 0&&(e.width=o)}if(U8e(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=D8e(e,"height");o!==void 0&&(e.height=o)}return e}const RCt=Twr?{passive:!0}:!1;function ySr(e,t,n){e&&e.addEventListener(t,n,RCt)}function MSr(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,RCt)}function CSr(e,t){const n=vSr[e.type]||e.type,{x:r,y:i}=Wv(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function dX(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function xSr(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||dX(s.addedNodes,r),a=a&&!dX(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function wSr(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||dX(s.removedNodes,r),a=a&&!dX(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Bq=new Map;let X8e=0;function ICt(){const e=window.devicePixelRatio;e!==X8e&&(X8e=e,Bq.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function SSr(e,t){Bq.size||window.addEventListener("resize",ICt),Bq.set(e,t)}function ASr(e){Bq.delete(e),Bq.size||window.removeEventListener("resize",ICt)}function OSr(e,t,n){const r=e.canvas,i=r&&kOe(r);if(!i)return;const o=uCt((s,l)=>{const c=i.clientWidth;n(s,l),c<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),SSr(e,o),a}function Tle(e,t,n){n&&n.disconnect(),t==="resize"&&ASr(e)}function zSr(e,t,n){const r=e.canvas,i=uCt(o=>{e.ctx!==null&&n(CSr(o,e))},e);return ySr(r,t,i),i}class TSr extends ECt{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(bSr(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[r$])return!1;const r=n[r$].initial;["height","width"].forEach(o=>{const a=r[o];$s(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[r$],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:xSr,detach:wSr,resize:OSr}[n]||zSr;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Tle,detach:Tle,resize:Tle}[n]||MSr)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return zwr(t,n,r,i)}isAttached(t){const n=t&&kOe(t);return!!(n&&n.isConnected)}}function ESr(e){return!DOe()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?mSr:TSr}let Z3=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Wq(this.x)&&Wq(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}};function RSr(e,t){const n=e.options.ticks,r=ISr(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?DSr(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return kSr(t,c,o,a/i),c;const u=PSr(o,t,i);if(a>0){let d,p;const h=a>1?Math.round((l-s)/(a-1)):null;for(aG(t,c,u,$s(h)?0:s-h,s),d=0,p=a-1;d<p;d++)aG(t,c,u,o[d],o[d+1]);return aG(t,c,u,l,$s(h)?t.length:l+h),c}return aG(t,c,u),c}function ISr(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function PSr(e,t,n){const r=LSr(e),i=t.length/n;if(!r)return Math.max(i,1);const o=wxr(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function DSr(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function kSr(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function aG(e,t,n,r,i){const o=ko(r,0),a=Math.min(ko(i,e.length),e.length);let s=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=o;u<0;)s++,u=Math.round(o+s*n);for(c=Math.max(o,0);c<a;c++)c===u&&(t.push(e[c]),s++,u=Math.round(o+s*n))}function LSr(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const _Sr=e=>e==="left"?"right":e==="right"?"left":e,Y8e=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,K8e=(e,t)=>Math.min(t||e,e);function Q8e(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function NSr(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,a-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-s||l>a+s)))return l}function FSr(e,t){jo(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function j_(e){return e.drawTicks?e.tickLength:0}function Z8e(e,t){if(!e.display)return 0;const n=f0(e.font,t),r=jf(e.padding);return($u(e.text)?e.text.length:1)*n.lineHeight+r.height}function WSr(e,t){return Q3(e,{scale:t,type:"scale"})}function qSr(e,t,n){return Q3(e,{tick:n,index:t,type:"tick"})}function BSr(e,t,n){let r=OOe(e);return(n&&t!=="right"||!n&&t==="right")&&(r=_Sr(r)),r}function jSr(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,p,h,g;const m=a-i,b=s-o;if(e.isHorizontal()){if(h=r0(r,o,s),qa(n)){const y=Object.keys(n)[0],M=n[y];g=u[y].getPixelForValue(M)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=Y8e(e,n,t);p=s-o}else{if(qa(n)){const y=Object.keys(n)[0],M=n[y];h=u[y].getPixelForValue(M)-b+t}else n==="center"?h=(c.left+c.right)/2-b+t:h=Y8e(e,n,t);g=r0(r,a,i),d=n==="left"?-rm:rm}return{titleX:h,titleY:g,maxWidth:p,rotation:d}}class yk extends Z3{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Cv(t,Number.POSITIVE_INFINITY),n=Cv(n,Number.NEGATIVE_INFINITY),r=Cv(r,Number.POSITIVE_INFINITY),i=Cv(i,Number.NEGATIVE_INFINITY),{min:Cv(t,r),max:Cv(n,i),minDefined:Bf(t),maxDefined:Bf(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Cv(n,Cv(r,n)),max:Cv(r,Cv(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){_i(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=owr(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Q8e(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=RSr(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){_i(this.options.afterUpdate,[this])}beforeSetDimensions(){_i(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){_i(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),_i(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){_i(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=_i(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){_i(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){_i(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=K8e(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,p=u.highest.height,h=xf(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:h/(r-1),d+6>s&&(s=h/(r-(t.offset?.5:1)),l=this.maxHeight-j_(t.grid)-n.padding-Z8e(t.title,this.chart.options.font),c=Math.sqrt(d*d+p*p),a=zxr(Math.min(Math.asin(xf((u.highest.height+6)/s,-1,1)),Math.asin(xf(l/c,-1,1))-Math.asin(xf(p/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){_i(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){_i(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=Z8e(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=j_(o)+l):(t.height=this.maxHeight,t.width=j_(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:p}=this._getLabelSizes(),h=r.padding*2,g=wO(this.labelRotation),m=Math.cos(g),b=Math.sin(g);if(s){const y=r.mirror?0:b*d.width+m*p.height;t.height=Math.min(this.maxHeight,t.height+y+h)}else{const y=r.mirror?0:m*d.width+b*p.height;t.width=Math.min(this.maxWidth,t.width+y+h)}this._calculatePadding(c,u,b,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,h=0;l?c?(p=i*t.width,h=r*n.height):(p=r*t.height,h=i*n.width):o==="start"?h=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,h=n.width/2),this.paddingLeft=Math.max((p-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+a)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){_i(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)$s(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Q8e(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/K8e(n,r));let c=0,u=0,d,p,h,g,m,b,y,M,C,x,w;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=b=m.string,y=o[b]=o[b]||{data:{},gc:[]},M=m.lineHeight,C=x=0,!$s(g)&&!$u(g))C=T8e(i,y.data,y.gc,C,g),x=M;else if($u(g))for(p=0,h=g.length;p<h;++p)w=g[p],!$s(w)&&!$u(w)&&(C=T8e(i,y.data,y.gc,C,w),x+=M);a.push(C),s.push(x),c=Math.max(C,c),u=Math.max(x,u)}FSr(o,n);const S=a.indexOf(c),A=s.indexOf(u),z=O=>({width:a[O]||0,height:s[O]||0});return{first:z(0),last:z(n-1),widest:z(S),highest:z(A),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Rxr(this._alignToPixels?CA(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=qSr(this.getContext(),t,r))}return this.$context||(this.$context=WSr(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=wO(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),p=j_(o),h=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,b=m/2,y=function(W){return CA(r,W,m)};let M,C,x,w,S,A,z,O,T,R,P,F;if(a==="top")M=y(this.bottom),A=this.bottom-p,O=M-b,R=y(t.top)+b,F=t.bottom;else if(a==="bottom")M=y(this.top),R=t.top,F=y(t.bottom)-b,A=M+b,O=this.top+p;else if(a==="left")M=y(this.right),S=this.right-p,z=M-b,T=y(t.left)+b,P=t.right;else if(a==="right")M=y(this.left),T=t.left,P=y(t.right)-b,S=M+b,z=this.left+p;else if(n==="x"){if(a==="center")M=y((t.top+t.bottom)/2+.5);else if(qa(a)){const W=Object.keys(a)[0],j=a[W];M=y(this.chart.scales[W].getPixelForValue(j))}R=t.top,F=t.bottom,A=M+b,O=A+p}else if(n==="y"){if(a==="center")M=y((t.left+t.right)/2);else if(qa(a)){const W=Object.keys(a)[0],j=a[W];M=y(this.chart.scales[W].getPixelForValue(j))}S=M-b,z=S-p,T=t.left,P=t.right}const N=ko(i.ticks.maxTicksLimit,d),L=Math.max(1,Math.ceil(d/N));for(C=0;C<d;C+=L){const W=this.getContext(C),j=o.setContext(W),V=s.setContext(W),G=j.lineWidth,q=j.color,$=V.dash||[],U=V.dashOffset,X=j.tickWidth,Q=j.tickColor,re=j.tickBorderDash||[],ee=j.tickBorderDashOffset;x=NSr(this,C,l),x!==void 0&&(w=CA(r,x,G),c?S=z=T=P=w:A=O=R=F=w,h.push({tx1:S,ty1:A,tx2:z,ty2:O,x1:T,y1:R,x2:P,y2:F,width:G,color:q,borderDash:$,borderDashOffset:U,tickWidth:X,tickColor:Q,tickBorderDash:re,tickBorderDashOffset:ee}))}return this._ticksLength=d,this._borderValue=M,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,p=j_(r.grid),h=p+u,g=d?-u:h,m=-wO(this.labelRotation),b=[];let y,M,C,x,w,S,A,z,O,T,R,P,F="middle";if(i==="top")S=this.bottom-g,A=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+g,A=this._getXAxisLabelAlignment();else if(i==="left"){const L=this._getYAxisLabelAlignment(p);A=L.textAlign,w=L.x}else if(i==="right"){const L=this._getYAxisLabelAlignment(p);A=L.textAlign,w=L.x}else if(n==="x"){if(i==="center")S=(t.top+t.bottom)/2+h;else if(qa(i)){const L=Object.keys(i)[0],W=i[L];S=this.chart.scales[L].getPixelForValue(W)+h}A=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-h;else if(qa(i)){const L=Object.keys(i)[0],W=i[L];w=this.chart.scales[L].getPixelForValue(W)}A=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?F="top":l==="end"&&(F="bottom"));const N=this._getLabelSizes();for(y=0,M=s.length;y<M;++y){C=s[y],x=C.label;const L=o.setContext(this.getContext(y));z=this.getPixelForTick(y)+o.labelOffset,O=this._resolveTickFontOptions(y),T=O.lineHeight,R=$u(x)?x.length:1;const W=R/2,j=L.color,V=L.textStrokeColor,G=L.textStrokeWidth;let q=A;a?(w=z,A==="inner"&&(y===M-1?q=this.options.reverse?"left":"right":y===0?q=this.options.reverse?"right":"left":q="center"),i==="top"?c==="near"||m!==0?P=-R*T+T/2:c==="center"?P=-N.highest.height/2-W*T+T:P=-N.highest.height+T/2:c==="near"||m!==0?P=T/2:c==="center"?P=N.highest.height/2-W*T:P=N.highest.height-R*T,d&&(P*=-1),m!==0&&!L.showLabelBackdrop&&(w+=T/2*Math.sin(m))):(S=z,P=(1-R)*T/2);let $;if(L.showLabelBackdrop){const U=jf(L.backdropPadding),X=N.heights[y],Q=N.widths[y];let re=P-U.top,ee=0-U.left;switch(F){case"middle":re-=X/2;break;case"bottom":re-=X;break}switch(A){case"center":ee-=Q/2;break;case"right":ee-=Q;break;case"inner":y===M-1?ee-=Q:y>0&&(ee-=Q/2);break}$={left:ee,top:re,width:Q+U.width,height:X+U.height,color:L.backdropColor}}b.push({label:x,font:O,textOffset:P,options:{rotation:m,color:j,strokeColor:V,strokeWidth:G,textAlign:q,textBaseline:F,translation:[w,S],backdrop:$}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-wO(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,p;this.isHorizontal()?(c=CA(t,this.left,a)-a/2,u=CA(t,this.right,s)+s/2,d=p=l):(d=CA(t,this.top,a)-a/2,p=CA(t,this.bottom,s)+s/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&TOe(r,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,c=a.label,u=a.textOffset;qq(r,c,0,u,l,s)}i&&EOe(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=f0(r.font),a=jf(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||qa(n)?(l+=a.bottom,$u(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:c,titleY:u,maxWidth:d,rotation:p}=jSr(this,l,n,s);qq(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:p,textAlign:BSr(s,n,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=ko(t.grid&&t.grid.z,-1),i=ko(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==yk.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return f0(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class sG{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;GSr(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,HSr(t,a,r),this.override&&Ac.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in Ac[i]&&(delete Ac[i][r],this.override&&delete n3[r])}}function HSr(e,t,n){const r=Fq(Object.create(null),[n?Ac.get(n):{},Ac.get(t),e.defaults]);Ac.set(t,r),e.defaultRoutes&&VSr(t,e.defaultRoutes),e.descriptors&&Ac.describe(t,e.descriptors)}function VSr(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Ac.route(o,i,l,s)})}function GSr(e){return"id"in e&&"defaults"in e}class $Sr{constructor(){this.controllers=new sG(ACt,"datasets",!0),this.elements=new sG(Z3,"elements"),this.plugins=new sG(Object,"plugins"),this.scales=new sG(yk,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):jo(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=SOe(t);_i(r["before"+i],[],r),n[t](r),_i(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Rv=new $Sr;class USr{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(_i(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){$s(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=ko(r.options&&r.options.plugins,{}),o=XSr(r);return i===!1&&!n?[]:KSr(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function XSr(e){const t={},n=[],r=Object.keys(Rv.plugins.items);for(let o=0;o<r.length;o++)n.push(Rv.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function YSr(e,t){return!t&&e===!1?null:e===!0?{}:e}function KSr(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,c=YSr(r[l],i);c!==null&&o.push({plugin:s,options:QSr(e.config,{plugin:s,local:n[l]},c,a)})}return o}function QSr(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function sbe(e,t){const n=Ac.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function ZSr(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function JSr(e,t){return e===t?"_index_":"_value_"}function J8e(e){if(e==="x"||e==="y"||e==="r")return e}function eAr(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function lbe(e,...t){if(J8e(e))return e;for(const n of t){const r=n.axis||eAr(n.position)||e.length>1&&J8e(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function eVe(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function tAr(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return eVe(e,"x",n[0])||eVe(e,"y",n[0])}return{}}function nAr(e,t){const n=n3[e.type]||{scales:{}},r=t.scales||{},i=sbe(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!qa(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=lbe(a,s,tAr(a,e),Ac.scales[s.type]),c=JSr(l,i),u=n.scales||{};o[a]=WF(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||sbe(s,t),u=(n3[s]||{}).scales||{};Object.keys(u).forEach(d=>{const p=ZSr(d,l),h=a[p+"AxisID"]||p;o[h]=o[h]||Object.create(null),WF(o[h],[{axis:p},r[h],u[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];WF(s,[Ac.scales[s.type],Ac.scale])}),o}function PCt(e){const t=e.options||(e.options={});t.plugins=ko(t.plugins,{}),t.scales=nAr(e,t)}function DCt(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function rAr(e){return e=e||{},e.data=DCt(e.data),PCt(e),e}const tVe=new Map,kCt=new Set;function lG(e,t){let n=tVe.get(e);return n||(n=t(),tVe.set(e,n),kCt.add(n)),n}const H_=(e,t,n)=>{const r=sX(t,n);r!==void 0&&e.add(r)};class iAr{constructor(t){this._config=rAr(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=DCt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),PCt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return lG(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return lG(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return lG(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return lG(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>H_(l,t,d))),u.forEach(d=>H_(l,i,d)),u.forEach(d=>H_(l,n3[o]||{},d)),u.forEach(d=>H_(l,Ac,d)),u.forEach(d=>H_(l,ibe,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),kCt.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,n3[n]||{},Ac.datasets[n]||{},{type:n},Ac,ibe]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=nVe(this._resolverCache,t,i);let l=a;if(aAr(a,n)){o.$shared=!1,r=uw(r)?r():r;const c=this.createResolver(t,r,s);l=GP(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=nVe(this._resolverCache,t,r);return qa(n)?GP(o,n,void 0,i):o}}function nVe(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:ROe(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const oAr=e=>qa(e)&&Object.getOwnPropertyNames(e).some(t=>uw(e[t]));function aAr(e,t){const{isScriptable:n,isIndexable:r}=gCt(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(uw(s)||oAr(s))||a&&$u(s))return!0}return!1}var sAr="4.5.0";const lAr=["top","bottom","left","right","chartArea"];function rVe(e,t){return e==="top"||e==="bottom"||lAr.indexOf(e)===-1&&t==="x"}function iVe(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function oVe(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),_i(n&&n.onComplete,[e],t)}function cAr(e){const t=e.chart,n=t.options.animation;_i(n&&n.onProgress,[e],t)}function LCt(e){return DOe()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const i$={},aVe=e=>{const t=LCt(e);return Object.values(i$).filter(n=>n.canvas===t).pop()};function uAr(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function dAr(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}let YJ=class{static defaults=Ac;static instances=i$;static overrides=n3;static registry=Rv;static version=sAr;static getChart=aVe;static register(...t){Rv.add(...t),sVe()}static unregister(...t){Rv.remove(...t),sVe()}constructor(t,n){const r=this.config=new iAr(n),i=LCt(t),o=aVe(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||ESr(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=fxr(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new USr,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Lxr(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],i$[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ey.listen(this,"complete",oVe),ey.listen(this,"progress",cAr),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return $s(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Rv}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():P8e(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return E8e(this.canvas,this.ctx),this}stop(){return ey.stop(this),this}resize(t,n){ey.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,P8e(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),_i(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};jo(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=lbe(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),jo(o,a=>{const s=a.options,l=s.id,c=lbe(l,s),u=ko(s.type,a.dtype);(s.position===void 0||rVe(s.position,c)!==rVe(a.dposition))&&(s.position=a.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const p=Rv.getScale(u);d=new p({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),jo(i,(a,s)=>{a||delete r[s]}),jo(r,a=>{wf.configure(this,a,a.options),wf.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(iVe("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||sbe(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Rv.getController(s),{datasetElementType:c,dataElementType:u}=Ac.datasets[s];Object.assign(l,{dataElementType:Rv.getElement(u),datasetElementType:c&&Rv.getElement(c)}),a.controller=new l(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){jo(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),p=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(p),a=Math.max(+d.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||jo(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(iVe("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){jo(this.scales,t=>{wf.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!y8e(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;uAr(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!y8e(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;wf.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],jo(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,uw(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ey.has(this)?this.attached&&!ey.running(this)&&ey.start(this):(this.draw(),oVe({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=jwr(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&TOe(n,i),t.controller.draw(),i&&EOe(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return VP(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=lSr.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Q3(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);lX(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ey.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),E8e(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete i$[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};jo(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){jo(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},jo(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const c=a&&this.getDatasetMeta(a.datasetIndex).controller;c&&c[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!oX(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=Mxr(t),c=dAr(t,this._lastEvent,r,l);r&&(this._lastEvent=null,_i(o.onHover,[t,s,this],this),l&&_i(o.onClick,[t,s,this],this));const u=!oX(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}};function sVe(){return jo(YJ.instances,e=>e._plugins.invalidate())}function _Ct(e,t,n=t){e.lineCap=ko(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ko(n.borderDash,t.borderDash)),e.lineDashOffset=ko(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ko(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ko(n.borderWidth,t.borderWidth),e.strokeStyle=ko(n.borderColor,t.borderColor)}function pAr(e,t,n){e.lineTo(n.x,n.y)}function hAr(e){return e.stepped?Yxr:e.tension||e.cubicInterpolationMode==="monotone"?Kxr:pAr}function NCt(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function fAr(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:c}=NCt(i,n,r),u=hAr(o);let{move:d=!0,reverse:p}=r||{},h,g,m;for(h=0;h<=c;++h)g=i[(s+(p?c-h:h))%a],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):u(e,m,g,p,o.stepped),m=g);return l&&(g=i[(s+(p?c:0))%a],u(e,m,g,p,o.stepped)),!!l}function gAr(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=NCt(i,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,p,h,g,m,b,y;const M=x=>(a+(c?s-x:x))%o,C=()=>{m!==b&&(e.lineTo(u,b),e.lineTo(u,m),e.lineTo(u,y))};for(l&&(h=i[M(0)],e.moveTo(h.x,h.y)),p=0;p<=s;++p){if(h=i[M(p)],h.skip)continue;const x=h.x,w=h.y,S=x|0;S===g?(w<m?m=w:w>b&&(b=w),u=(d*u+x)/++d):(C(),e.lineTo(x,w),g=S,d=0,m=b=w),y=w}C()}function cbe(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?gAr:fAr}function mAr(e){return e.stepped?Ewr:e.tension||e.cubicInterpolationMode==="monotone"?Rwr:BA}function vAr(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),_Ct(e,t.options),e.stroke(i)}function bAr(e,t,n,r){const{segments:i,options:o}=t,a=cbe(t);for(const s of i)_Ct(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const yAr=typeof Path2D=="function";function MAr(e,t,n,r){yAr&&!t.options.segment?vAr(e,t,n,r):bAr(e,t,n,r)}class CAr extends Z3{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Cwr(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Fwr(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=Lwr(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=mAr(r);let c,u;for(c=0,u=a.length;c<u;++c){const{start:d,end:p}=a[c],h=o[d],g=o[p];if(h===g){s.push(h);continue}const m=Math.abs((i-h[n])/(g[n]-h[n])),b=l(h,g,m,r.stepped);b[n]=t[n],s.push(b)}return s.length===1?s[0]:s}pathSegment(t,n,r){return cbe(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=cbe(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),MAr(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function lVe(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class xAr extends Z3{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return lVe(this,t,"x",n)}inYRange(t,n){return lVe(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!VP(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,obe(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}const cVe=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},wAr=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class uVe extends Z3{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=_i(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=f0(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=cVe(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let p=-1,h=-u;return this.legendItems.forEach((g,m)=>{const b=r+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+b+2*s>a)&&(d+=u,c[c.length-(m>0?0:1)]=0,h+=u,p++),l[m]={left:0,top:h,row:p,width:b,height:i},c[c.length-1]+=b+s}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let d=s,p=0,h=0,g=0,m=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:M,itemHeight:C}=SAr(r,n,o,b,i);y>0&&h+C+2*s>u&&(d+=p+s,c.push({width:p,height:h}),g+=p+s,m++,p=h=0),l[y]={left:g,top:h,col:m,width:M,height:C},p=Math.max(p,M),h+=C+s}),d+=p,c.push({width:p,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=WI(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=r0(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=r0(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=r0(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=r0(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;TOe(t,this),this._draw(),EOe(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=Ac.color,l=WI(t.rtl,this.left,this.width),c=f0(a.font),{padding:u}=a,d=c.size,p=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=cVe(a,d),y=function(S,A,z){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const O=ko(z.lineWidth,1);if(i.fillStyle=ko(z.fillStyle,s),i.lineCap=ko(z.lineCap,"butt"),i.lineDashOffset=ko(z.lineDashOffset,0),i.lineJoin=ko(z.lineJoin,"miter"),i.lineWidth=O,i.strokeStyle=ko(z.strokeStyle,s),i.setLineDash(ko(z.lineDash,[])),a.usePointStyle){const T={radius:m*Math.SQRT2/2,pointStyle:z.pointStyle,rotation:z.rotation,borderWidth:O},R=l.xPlus(S,g/2),P=A+p;hCt(i,T,R,P,a.pointStyleWidth&&g)}else{const T=A+Math.max((d-m)/2,0),R=l.leftForLtr(S,g),P=jF(z.borderRadius);i.beginPath(),Object.values(P).some(F=>F!==0)?abe(i,{x:R,y:T,w:g,h:m,radius:P}):i.rect(R,T,g,m),i.fill(),O!==0&&i.stroke()}i.restore()},M=function(S,A,z){qq(i,z.text,S,A+b/2,c,{strikethrough:z.hidden,textAlign:l.textAlign(z.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?h={x:r0(o,this.left+u,this.right-r[0]),y:this.top+u+x,line:0}:h={x:this.left+u,y:r0(o,this.top+x+u,this.bottom-n[0].height),line:0},MCt(this.ctx,t.textDirection);const w=b+u;this.legendItems.forEach((S,A)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;const z=i.measureText(S.text).width,O=l.textAlign(S.textAlign||(S.textAlign=a.textAlign)),T=g+p+z;let R=h.x,P=h.y;l.setWidth(this.width),C?A>0&&R+T+u>this.right&&(P=h.y+=w,h.line++,R=h.x=r0(o,this.left+u,this.right-r[h.line])):A>0&&P+w>this.bottom&&(R=h.x=R+n[h.line].width+u,h.line++,P=h.y=r0(o,this.top+x+u,this.bottom-n[h.line].height));const F=l.x(R);if(y(F,P,S),R=_xr(O,R+g+p,C?R+T:this.right,t.rtl),M(l.x(R),P,S),C)h.x+=T+u;else if(typeof S.text!="string"){const N=c.lineHeight;h.y+=FCt(S,N)+u}else h.y+=w}),CCt(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=f0(n.font),i=jf(n.padding);if(!n.display)return;const o=WI(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),u=this.top+c,d=r0(t.align,d,this.right-p);else{const g=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);u=c+r0(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=r0(s,d,d+p);a.textAlign=o.textAlign(OOe(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,qq(a,n.text,h,u,r)}_computeTitleHeight(){const t=this.options.title,n=f0(t.font),r=jf(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(xN(t,this.left,this.right)&&xN(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],xN(t,i.left,i.left+i.width)&&xN(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!zAr(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=wAr(i,r);i&&!o&&_i(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&_i(n.onHover,[t,r,this],this)}else r&&_i(n.onClick,[t,r,this],this)}}function SAr(e,t,n,r,i){const o=AAr(r,e,t,n),a=OAr(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function AAr(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function OAr(e,t,n){let r=e;return typeof t.text!="string"&&(r=FCt(t,n)),r}function FCt(e,t){const n=e.text?e.text.length:0;return t*n}function zAr(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var TAr={id:"legend",_element:uVe,start(e,t,n){const r=e.legend=new uVe({ctx:e.ctx,options:n,chart:e});wf.configure(e,r,n),wf.addBox(e,r)},stop(e){wf.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;wf.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=jf(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class WCt extends Z3{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=$u(r.text)?r.text.length:1;this._padding=jf(r.padding);const o=i*f0(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,u,d;return this.isHorizontal()?(u=r0(s,r,o),d=n+t,c=o-r):(a.position==="left"?(u=r+t,d=r0(s,i,n),l=Ku*-.5):(u=o-t,d=r0(s,n,i),l=Ku*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=f0(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);qq(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:OOe(n.align),textBaseline:"middle",translation:[a,s]})}}function EAr(e,t){const n=new WCt({ctx:e.ctx,options:t,chart:e});wf.configure(e,n,t),wf.addBox(e,n),e.titleBlock=n}var RAr={id:"title",_element:WCt,start(e,t,n){EAr(e,n)},stop(e){const t=e.titleBlock;wf.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;wf.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const SN={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++o}}return o===0||r.size===0?!1:{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=rbe(t,c);u<i&&(i=u,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function zv(e,t){return t&&($u(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ty(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function IAr(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function dVe(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=f0(t.bodyFont),c=f0(t.titleFont),u=f0(t.footerFont),d=o.length,p=i.length,h=r.length,g=jf(t.padding);let m=g.height,b=0,y=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const x=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=h*x+(y-h)*l.lineHeight+(y-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let M=0;const C=function(x){b=Math.max(b,n.measureText(x).width+M)};return n.save(),n.font=c.string,jo(e.title,C),n.font=l.string,jo(e.beforeBody.concat(e.afterBody),C),M=t.displayColors?a+2+t.boxPadding:0,jo(r,x=>{jo(x.before,C),jo(x.lines,C),jo(x.after,C)}),M=0,n.font=u.string,jo(e.footer,C),n.restore(),b+=g.width,{width:b,height:m}}function PAr(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function DAr(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function kAr(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),DAr(c,e,t,n)&&(c="center"),c}function pVe(e,t,n){const r=n.yAlign||t.yAlign||PAr(e,n);return{xAlign:n.xAlign||t.xAlign||kAr(e,t,n,r),yAlign:r}}function LAr(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function _Ar(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function hVe(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=jF(a);let g=LAr(t,s);const m=_Ar(t,l,c);return l==="center"?s==="left"?g+=c:s==="right"&&(g-=c):s==="left"?g-=Math.max(u,p)+i:s==="right"&&(g+=Math.max(d,h)+i),{x:xf(g,0,r.width-t.width),y:xf(m,0,r.height-t.height)}}function cG(e,t,n){const r=jf(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function fVe(e){return zv([],ty(e))}function NAr(e,t,n){return Q3(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function gVe(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const qCt={beforeTitle:K2,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:K2,beforeBody:K2,beforeLabel:K2,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return $s(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:K2,afterBody:K2,beforeFooter:K2,footer:K2,afterFooter:K2};function _1(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?qCt[t].call(n,r):i}let mVe=class extends Z3{static positioners=SN;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new wCt(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=NAr(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=_1(r,"beforeTitle",this,t),o=_1(r,"title",this,t),a=_1(r,"afterTitle",this,t);let s=[];return s=zv(s,ty(i)),s=zv(s,ty(o)),s=zv(s,ty(a)),s}getBeforeBody(t,n){return fVe(_1(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return jo(t,o=>{const a={before:[],lines:[],after:[]},s=gVe(r,o);zv(a.before,ty(_1(s,"beforeLabel",this,o))),zv(a.lines,_1(s,"label",this,o)),zv(a.after,ty(_1(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return fVe(_1(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=_1(r,"beforeFooter",this,t),o=_1(r,"footer",this,t),a=_1(r,"afterFooter",this,t);let s=[];return s=zv(s,ty(i)),s=zv(s,ty(o)),s=zv(s,ty(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;l<c;++l)s.push(IAr(this.chart,n[l]));return t.filter&&(s=s.filter((u,d,p)=>t.filter(u,d,p,r))),t.itemSort&&(s=s.sort((u,d)=>t.itemSort(u,d,r))),jo(s,u=>{const d=gVe(t.callbacks,u);i.push(_1(d,"labelColor",this,u)),o.push(_1(d,"labelPointStyle",this,u)),a.push(_1(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=SN[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=dVe(this,r),c=Object.assign({},s,l),u=pVe(this.chart,r,c),d=hVe(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=jF(s),{x:p,y:h}=t,{width:g,height:m}=n;let b,y,M,C,x,w;return o==="center"?(x=h+m/2,i==="left"?(b=p,y=b-a,C=x+a,w=x-a):(b=p+g,y=b+a,C=x-a,w=x+a),M=b):(i==="left"?y=p+Math.max(l,u)+a:i==="right"?y=p+g-Math.max(c,d)-a:y=this.caretX,o==="top"?(C=h,x=C-a,b=y-a,M=y+a):(C=h+m,x=C+a,b=y+a,M=y-a),w=C),{x1:b,x2:y,x3:M,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=WI(r.rtl,this.x,this.width);for(t.x=cG(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=f0(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=o,u=f0(o.bodyFont),d=cG(this,"left",o),p=i.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,g=n.y+h;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},b=i.leftForLtr(p,c)+c/2,y=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,obe(t,m,b,y),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,obe(t,m,b,y)}else{t.lineWidth=qa(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(p,c),b=i.leftForLtr(i.xPlus(p,1),c-2),y=jF(a.borderRadius);Object.values(y).some(M=>M!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,abe(t,{x:m,y:g,w:c,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),abe(t,{x:b,y:g+1,w:c-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=a.backgroundColor,t.fillRect(b,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=f0(r.bodyFont);let p=d.lineHeight,h=0;const g=WI(r.rtl,this.x,this.width),m=function(z){n.fillText(z,g.x(t.x+h),t.y+p/2),t.y+=p+o},b=g.textAlign(a);let y,M,C,x,w,S,A;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=cG(this,b,r),n.fillStyle=r.bodyColor,jo(this.beforeBody,m),h=s&&b!=="right"?a==="center"?c/2+u:c+2+u:0,x=0,S=i.length;x<S;++x){for(y=i[x],M=this.labelTextColors[x],n.fillStyle=M,jo(y.before,m),C=y.lines,s&&C.length&&(this._drawColorBox(n,t,x,g,r),p=Math.max(d.lineHeight,l)),w=0,A=C.length;w<A;++w)m(C[w]),p=d.lineHeight;jo(y.after,m)}h=0,p=d.lineHeight,jo(this.afterBody,m),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=WI(r.rtl,this.x,this.width);for(t.x=cG(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=f0(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:p,bottomLeft:h,bottomRight:g}=jF(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+c-p,l),n.quadraticCurveTo(s+c,l,s+c,l+p),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+c,l+u-g),n.quadraticCurveTo(s+c,l+u,s+c-g,l+u),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+h,l+u),n.quadraticCurveTo(s,l+u,s,l+u-h),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=SN[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=dVe(this,t),l=Object.assign({},a,this._size),c=pVe(n,t,l),u=hVe(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=jf(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),MCt(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),CCt(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!oX(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!oX(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=SN[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}};var FAr={id:"tooltip",_element:mVe,positioners:SN,afterInit(e,t,n){n&&(e.tooltip=new mVe({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:qCt},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const WAr=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function qAr(e,t,n,r){const i=e.indexOf(t);if(i===-1)return WAr(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const BAr=(e,t)=>e===null?null:xf(Math.round(e),0,t);function vVe(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class jAr extends yk{static id="category";static defaults={ticks:{callback:vVe}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if($s(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:qAr(r,t,ko(n,t),this._addedLabels),BAr(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return vVe.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function HAr(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:p}=e,h=o||1,g=u-1,{min:m,max:b}=t,y=!$s(a),M=!$s(s),C=!$s(c),x=(b-m)/(d+1);let w=C8e((b-m)/g/h)*h,S,A,z,O;if(w<1e-14&&!y&&!M)return[{value:m},{value:b}];O=Math.ceil(b/w)-Math.floor(m/w),O>g&&(w=C8e(O*w/g/h)*h),$s(l)||(S=Math.pow(10,l),w=Math.ceil(w*S)/S),i==="ticks"?(A=Math.floor(m/w)*w,z=Math.ceil(b/w)*w):(A=m,z=b),y&&M&&o&&Axr((s-a)/o,w/1e3)?(O=Math.round(Math.min((s-a)/w,u)),w=(s-a)/O,A=a,z=s):C?(A=y?a:A,z=M?s:z,O=c-1,w=(z-A)/O):(O=(z-A)/w,az(O,Math.round(O),w/1e3)?O=Math.round(O):O=Math.ceil(O));const T=Math.max(x8e(w),x8e(A));S=Math.pow(10,$s(l)?T:l),A=Math.round(A*S)/S,z=Math.round(z*S)/S;let R=0;for(y&&(p&&A!==a?(n.push({value:a}),A<a&&R++,az(Math.round((A+R*w)*S)/S,a,bVe(a,x,e))&&R++):A<a&&R++);R<O;++R){const P=Math.round((A+R*w)*S)/S;if(M&&P>s)break;n.push({value:P})}return M&&p&&z!==s?n.length&&az(n[n.length-1].value,s,bVe(s,x,e))?n[n.length-1].value=s:n.push({value:s}):(!M||z===s)&&n.push({value:z}),n}function bVe(e,t,{horizontal:n,minRotation:r}){const i=wO(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class VAr extends yk{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return $s(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=dw(i),c=dw(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=HAr(i,o);return t.bounds==="ticks"&&Oxr(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return dCt(t,this.chart.options.locale,this.options.ticks.format)}}class GAr extends VAr{static id="linear";static defaults={ticks:{callback:pCt.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Bf(t)?t:0,this.max=Bf(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=wO(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const KJ={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},rp=Object.keys(KJ);function yVe(e,t){return e-t}function MVe(e,t){if($s(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Bf(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Wq(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function CVe(e,t,n,r){const i=rp.length;for(let o=rp.indexOf(e);o<i-1;++o){const a=KJ[rp[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return rp[o]}return rp[i-1]}function $Ar(e,t,n,r,i){for(let o=rp.length-1;o>=rp.indexOf(n);o--){const a=rp[o];if(KJ[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return rp[n?rp.indexOf(n):0]}function UAr(e){for(let t=rp.indexOf(e)+1,n=rp.length;t<n;++t)if(KJ[rp[t]].common)return rp[t]}function xVe(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=AOe(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function XAr(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function wVe(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:XAr(e,r,i,n)}class ube extends yk{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new OCt._date(t.adapters.date);i.init(n),WF(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:MVe(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(c){!a&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Bf(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Bf(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=Pxr(i,o,a);return this._unit=n.unit||(r.autoSkip?CVe(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):$Ar(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:UAr(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),wVe(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=xf(n,0,a),r=xf(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||CVe(o.minUnit,n,r,this._getLabelCapacity(n)),s=ko(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Wq(l)||l===!0,u={};let d=n,p,h;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(p=d,h=0;p<r;p=+t.add(p,s,a),h++)xVe(u,p,g);return(p===r||i.bounds==="ticks"||h===1)&&xVe(u,p,g),Object.keys(u).sort(yVe).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return _i(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],p=r[n],h=c&&d&&p&&p.major;return this._adapter.format(t,i||(h?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=wO(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,wVe(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(MVe(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return kxr(t.sort(yVe))}}function uG(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=SO(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=SO(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class PGi extends ube{static id="timeseries";static defaults=ube.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=uG(n,this.min),this._tableRange=uG(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a<s;++a)c=t[a],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)u=i[a+1],l=i[a-1],c=i[a],Math.round((u+l)/2)!==c&&o.push({time:c,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(uG(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return uG(this._table,r*this._tableRange+this._minPos,!0)}}var Ele={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */var SVe;function YAr(){return SVe||(SVe=1,(function(e){(function(t,n,r,i){var o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),s="function",l=Math.round,c=Math.abs,u=Date.now;function d(Re,qe,st){return setTimeout(C(Re,st),qe)}function p(Re,qe,st){return Array.isArray(Re)?(h(Re,st[qe],st),!0):!1}function h(Re,qe,st){var _t;if(Re)if(Re.forEach)Re.forEach(qe,st);else if(Re.length!==i)for(_t=0;_t<Re.length;)qe.call(st,Re[_t],_t,Re),_t++;else for(_t in Re)Re.hasOwnProperty(_t)&&qe.call(st,Re[_t],_t,Re)}function g(Re,qe,st){var _t="DEPRECATED METHOD: "+qe+`
`+st+` AT 
`;return function(){var hn=new Error("get-stack-trace"),hr=hn&&hn.stack?hn.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",eo=t.console&&(t.console.warn||t.console.log);return eo&&eo.call(t.console,_t,hr),Re.apply(this,arguments)}}var m;typeof Object.assign!="function"?m=function(qe){if(qe===i||qe===null)throw new TypeError("Cannot convert undefined or null to object");for(var st=Object(qe),_t=1;_t<arguments.length;_t++){var hn=arguments[_t];if(hn!==i&&hn!==null)for(var hr in hn)hn.hasOwnProperty(hr)&&(st[hr]=hn[hr])}return st}:m=Object.assign;var b=g(function(qe,st,_t){for(var hn=Object.keys(st),hr=0;hr<hn.length;)(!_t||_t&&qe[hn[hr]]===i)&&(qe[hn[hr]]=st[hn[hr]]),hr++;return qe},"extend","Use `assign`."),y=g(function(qe,st){return b(qe,st,!0)},"merge","Use `assign`.");function M(Re,qe,st){var _t=qe.prototype,hn;hn=Re.prototype=Object.create(_t),hn.constructor=Re,hn._super=_t,st&&m(hn,st)}function C(Re,qe){return function(){return Re.apply(qe,arguments)}}function x(Re,qe){return typeof Re==s?Re.apply(qe&&qe[0]||i,qe):Re}function w(Re,qe){return Re===i?qe:Re}function S(Re,qe,st){h(T(qe),function(_t){Re.addEventListener(_t,st,!1)})}function A(Re,qe,st){h(T(qe),function(_t){Re.removeEventListener(_t,st,!1)})}function z(Re,qe){for(;Re;){if(Re==qe)return!0;Re=Re.parentNode}return!1}function O(Re,qe){return Re.indexOf(qe)>-1}function T(Re){return Re.trim().split(/\s+/g)}function R(Re,qe,st){if(Re.indexOf&&!st)return Re.indexOf(qe);for(var _t=0;_t<Re.length;){if(st&&Re[_t][st]==qe||!st&&Re[_t]===qe)return _t;_t++}return-1}function P(Re){return Array.prototype.slice.call(Re,0)}function F(Re,qe,st){for(var _t=[],hn=[],hr=0;hr<Re.length;){var eo=Re[hr][qe];R(hn,eo)<0&&_t.push(Re[hr]),hn[hr]=eo,hr++}return _t=_t.sort(function(Al,uc){return Al[qe]>uc[qe]}),_t}function N(Re,qe){for(var st,_t,hn=qe[0].toUpperCase()+qe.slice(1),hr=0;hr<o.length;){if(st=o[hr],_t=st?st+hn:qe,_t in Re)return _t;hr++}return i}var L=1;function W(){return L++}function j(Re){var qe=Re.ownerDocument||Re;return qe.defaultView||qe.parentWindow||t}var V=/mobile|tablet|ip(ad|hone|od)|android/i,G="ontouchstart"in t,q=N(t,"PointerEvent")!==i,$=G&&V.test(navigator.userAgent),U="touch",X="pen",Q="mouse",re="kinect",ee=25,se=1,pe=2,te=4,ce=8,oe=1,ae=2,ne=4,le=8,he=16,be=ae|ne,me=le|he,Me=be|me,Oe=["x","y"],de=["clientX","clientY"];function ie(Re,qe){var st=this;this.manager=Re,this.callback=qe,this.element=Re.element,this.target=Re.options.inputTarget,this.domHandler=function(_t){x(Re.options.enable,[Re])&&st.handler(_t)},this.init()}ie.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(j(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(j(this.element),this.evWin,this.domHandler)}};function ue(Re){var qe,st=Re.options.inputClass;return st?qe=st:q?qe=Zn:$?qe=Je:G?qe=un:qe=Ft,new qe(Re,Ae)}function Ae(Re,qe,st){var _t=st.pointers.length,hn=st.changedPointers.length,hr=qe&se&&_t-hn===0,eo=qe&(te|ce)&&_t-hn===0;st.isFirst=!!hr,st.isFinal=!!eo,hr&&(Re.session={}),st.eventType=qe,Ce(Re,st),Re.emit("hammer.input",st),Re.recognize(st),Re.session.prevInput=st}function Ce(Re,qe){var st=Re.session,_t=qe.pointers,hn=_t.length;st.firstInput||(st.firstInput=_e(qe)),hn>1&&!st.firstMultiple?st.firstMultiple=_e(qe):hn===1&&(st.firstMultiple=!1);var hr=st.firstInput,eo=st.firstMultiple,Fs=eo?eo.center:hr.center,Al=qe.center=Ie(_t);qe.timeStamp=u(),qe.deltaTime=qe.timeStamp-hr.timeStamp,qe.angle=De(Fs,Al),qe.distance=ve(Fs,Al),Ee(st,qe),qe.offsetDirection=we(qe.deltaX,qe.deltaY);var uc=Le(qe.deltaTime,qe.deltaX,qe.deltaY);qe.overallVelocityX=uc.x,qe.overallVelocityY=uc.y,qe.overallVelocity=c(uc.x)>c(uc.y)?uc.x:uc.y,qe.scale=eo?Ve(eo.pointers,_t):1,qe.rotation=eo?ze(eo.pointers,_t):0,qe.maxPointers=st.prevInput?qe.pointers.length>st.prevInput.maxPointers?qe.pointers.length:st.prevInput.maxPointers:qe.pointers.length,Ge(st,qe);var P0=Re.element;z(qe.srcEvent.target,P0)&&(P0=qe.srcEvent.target),qe.target=P0}function Ee(Re,qe){var st=qe.center,_t=Re.offsetDelta||{},hn=Re.prevDelta||{},hr=Re.prevInput||{};(qe.eventType===se||hr.eventType===te)&&(hn=Re.prevDelta={x:hr.deltaX||0,y:hr.deltaY||0},_t=Re.offsetDelta={x:st.x,y:st.y}),qe.deltaX=hn.x+(st.x-_t.x),qe.deltaY=hn.y+(st.y-_t.y)}function Ge(Re,qe){var st=Re.lastInterval||qe,_t=qe.timeStamp-st.timeStamp,hn,hr,eo,Fs;if(qe.eventType!=ce&&(_t>ee||st.velocity===i)){var Al=qe.deltaX-st.deltaX,uc=qe.deltaY-st.deltaY,P0=Le(_t,Al,uc);hr=P0.x,eo=P0.y,hn=c(P0.x)>c(P0.y)?P0.x:P0.y,Fs=we(Al,uc),Re.lastInterval=qe}else hn=st.velocity,hr=st.velocityX,eo=st.velocityY,Fs=st.direction;qe.velocity=hn,qe.velocityX=hr,qe.velocityY=eo,qe.direction=Fs}function _e(Re){for(var qe=[],st=0;st<Re.pointers.length;)qe[st]={clientX:l(Re.pointers[st].clientX),clientY:l(Re.pointers[st].clientY)},st++;return{timeStamp:u(),pointers:qe,center:Ie(qe),deltaX:Re.deltaX,deltaY:Re.deltaY}}function Ie(Re){var qe=Re.length;if(qe===1)return{x:l(Re[0].clientX),y:l(Re[0].clientY)};for(var st=0,_t=0,hn=0;hn<qe;)st+=Re[hn].clientX,_t+=Re[hn].clientY,hn++;return{x:l(st/qe),y:l(_t/qe)}}function Le(Re,qe,st){return{x:qe/Re||0,y:st/Re||0}}function we(Re,qe){return Re===qe?oe:c(Re)>=c(qe)?Re<0?ae:ne:qe<0?le:he}function ve(Re,qe,st){st||(st=Oe);var _t=qe[st[0]]-Re[st[0]],hn=qe[st[1]]-Re[st[1]];return Math.sqrt(_t*_t+hn*hn)}function De(Re,qe,st){st||(st=Oe);var _t=qe[st[0]]-Re[st[0]],hn=qe[st[1]]-Re[st[1]];return Math.atan2(hn,_t)*180/Math.PI}function ze(Re,qe){return De(qe[1],qe[0],de)+De(Re[1],Re[0],de)}function Ve(Re,qe){return ve(qe[0],qe[1],de)/ve(Re[0],Re[1],de)}var Ke={mousedown:se,mousemove:pe,mouseup:te},et="mousedown",it="mousemove mouseup";function Ft(){this.evEl=et,this.evWin=it,this.pressed=!1,ie.apply(this,arguments)}M(Ft,ie,{handler:function(qe){var st=Ke[qe.type];st&se&&qe.button===0&&(this.pressed=!0),st&pe&&qe.which!==1&&(st=te),this.pressed&&(st&te&&(this.pressed=!1),this.callback(this.manager,st,{pointers:[qe],changedPointers:[qe],pointerType:Q,srcEvent:qe}))}});var Dt={pointerdown:se,pointermove:pe,pointerup:te,pointercancel:ce,pointerout:ce},Qn={2:U,3:X,4:Q,5:re},ir="pointerdown",Hn="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(ir="MSPointerDown",Hn="MSPointerMove MSPointerUp MSPointerCancel");function Zn(){this.evEl=ir,this.evWin=Hn,ie.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}M(Zn,ie,{handler:function(qe){var st=this.store,_t=!1,hn=qe.type.toLowerCase().replace("ms",""),hr=Dt[hn],eo=Qn[qe.pointerType]||qe.pointerType,Fs=eo==U,Al=R(st,qe.pointerId,"pointerId");hr&se&&(qe.button===0||Fs)?Al<0&&(st.push(qe),Al=st.length-1):hr&(te|ce)&&(_t=!0),!(Al<0)&&(st[Al]=qe,this.callback(this.manager,hr,{pointers:st,changedPointers:[qe],pointerType:eo,srcEvent:qe}),_t&&st.splice(Al,1))}});var Br={touchstart:se,touchmove:pe,touchend:te,touchcancel:ce},vr="touchstart",Fe="touchstart touchmove touchend touchcancel";function He(){this.evTarget=vr,this.evWin=Fe,this.started=!1,ie.apply(this,arguments)}M(He,ie,{handler:function(qe){var st=Br[qe.type];if(st===se&&(this.started=!0),!!this.started){var _t=Xe.call(this,qe,st);st&(te|ce)&&_t[0].length-_t[1].length===0&&(this.started=!1),this.callback(this.manager,st,{pointers:_t[0],changedPointers:_t[1],pointerType:U,srcEvent:qe})}}});function Xe(Re,qe){var st=P(Re.touches),_t=P(Re.changedTouches);return qe&(te|ce)&&(st=F(st.concat(_t),"identifier")),[st,_t]}var ct={touchstart:se,touchmove:pe,touchend:te,touchcancel:ce},lt="touchstart touchmove touchend touchcancel";function Je(){this.evTarget=lt,this.targetIds={},ie.apply(this,arguments)}M(Je,ie,{handler:function(qe){var st=ct[qe.type],_t=ft.call(this,qe,st);_t&&this.callback(this.manager,st,{pointers:_t[0],changedPointers:_t[1],pointerType:U,srcEvent:qe})}});function ft(Re,qe){var st=P(Re.touches),_t=this.targetIds;if(qe&(se|pe)&&st.length===1)return _t[st[0].identifier]=!0,[st,st];var hn,hr,eo=P(Re.changedTouches),Fs=[],Al=this.target;if(hr=st.filter(function(uc){return z(uc.target,Al)}),qe===se)for(hn=0;hn<hr.length;)_t[hr[hn].identifier]=!0,hn++;for(hn=0;hn<eo.length;)_t[eo[hn].identifier]&&Fs.push(eo[hn]),qe&(te|ce)&&delete _t[eo[hn].identifier],hn++;if(Fs.length)return[F(hr.concat(Fs),"identifier"),Fs]}var Tt=2500,St=25;function un(){ie.apply(this,arguments);var Re=C(this.handler,this);this.touch=new Je(this.manager,Re),this.mouse=new Ft(this.manager,Re),this.primaryTouch=null,this.lastTouches=[]}M(un,ie,{handler:function(qe,st,_t){var hn=_t.pointerType==U,hr=_t.pointerType==Q;if(!(hr&&_t.sourceCapabilities&&_t.sourceCapabilities.firesTouchEvents)){if(hn)Un.call(this,st,_t);else if(hr&&yr.call(this,_t))return;this.callback(qe,st,_t)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Un(Re,qe){Re&se?(this.primaryTouch=qe.changedPointers[0].identifier,Yr.call(this,qe)):Re&(te|ce)&&Yr.call(this,qe)}function Yr(Re){var qe=Re.changedPointers[0];if(qe.identifier===this.primaryTouch){var st={x:qe.clientX,y:qe.clientY};this.lastTouches.push(st);var _t=this.lastTouches,hn=function(){var hr=_t.indexOf(st);hr>-1&&_t.splice(hr,1)};setTimeout(hn,Tt)}}function yr(Re){for(var qe=Re.srcEvent.clientX,st=Re.srcEvent.clientY,_t=0;_t<this.lastTouches.length;_t++){var hn=this.lastTouches[_t],hr=Math.abs(qe-hn.x),eo=Math.abs(st-hn.y);if(hr<=St&&eo<=St)return!0}return!1}var dr=N(a.style,"touchAction"),si=dr!==i,$o="compute",Uo="auto",Qi="manipulation",di="none",kt="pan-x",It="pan-y",Vn=xa();function jr(Re,qe){this.manager=Re,this.set(qe)}jr.prototype={set:function(Re){Re==$o&&(Re=this.compute()),si&&this.manager.element.style&&Vn[Re]&&(this.manager.element.style[dr]=Re),this.actions=Re.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var Re=[];return h(this.manager.recognizers,function(qe){x(qe.options.enable,[qe])&&(Re=Re.concat(qe.getTouchAction()))}),Jr(Re.join(" "))},preventDefaults:function(Re){var qe=Re.srcEvent,st=Re.offsetDirection;if(this.manager.session.prevented){qe.preventDefault();return}var _t=this.actions,hn=O(_t,di)&&!Vn[di],hr=O(_t,It)&&!Vn[It],eo=O(_t,kt)&&!Vn[kt];if(hn){var Fs=Re.pointers.length===1,Al=Re.distance<2,uc=Re.deltaTime<250;if(Fs&&Al&&uc)return}if(!(eo&&hr)&&(hn||hr&&st&be||eo&&st&me))return this.preventSrc(qe)},preventSrc:function(Re){this.manager.session.prevented=!0,Re.preventDefault()}};function Jr(Re){if(O(Re,di))return di;var qe=O(Re,kt),st=O(Re,It);return qe&&st?di:qe||st?qe?kt:It:O(Re,Qi)?Qi:Uo}function xa(){if(!si)return!1;var Re={},qe=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(st){Re[st]=qe?t.CSS.supports("touch-action",st):!0}),Re}var Xo=1,La=2,ad=4,Lu=8,Lc=Lu,Dd=16,fi=32;function Ns(Re){this.options=m({},this.defaults,Re||{}),this.id=W(),this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Xo,this.simultaneous={},this.requireFail=[]}Ns.prototype={defaults:{},set:function(Re){return m(this.options,Re),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(Re){if(p(Re,"recognizeWith",this))return this;var qe=this.simultaneous;return Re=ou(Re,this),qe[Re.id]||(qe[Re.id]=Re,Re.recognizeWith(this)),this},dropRecognizeWith:function(Re){return p(Re,"dropRecognizeWith",this)?this:(Re=ou(Re,this),delete this.simultaneous[Re.id],this)},requireFailure:function(Re){if(p(Re,"requireFailure",this))return this;var qe=this.requireFail;return Re=ou(Re,this),R(qe,Re)===-1&&(qe.push(Re),Re.requireFailure(this)),this},dropRequireFailure:function(Re){if(p(Re,"dropRequireFailure",this))return this;Re=ou(Re,this);var qe=R(this.requireFail,Re);return qe>-1&&this.requireFail.splice(qe,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(Re){return!!this.simultaneous[Re.id]},emit:function(Re){var qe=this,st=this.state;function _t(hn){qe.manager.emit(hn,Re)}st<Lu&&_t(qe.options.event+_u(st)),_t(qe.options.event),Re.additionalEvent&&_t(Re.additionalEvent),st>=Lu&&_t(qe.options.event+_u(st))},tryEmit:function(Re){if(this.canEmit())return this.emit(Re);this.state=fi},canEmit:function(){for(var Re=0;Re<this.requireFail.length;){if(!(this.requireFail[Re].state&(fi|Xo)))return!1;Re++}return!0},recognize:function(Re){var qe=m({},Re);if(!x(this.options.enable,[this,qe])){this.reset(),this.state=fi;return}this.state&(Lc|Dd|fi)&&(this.state=Xo),this.state=this.process(qe),this.state&(La|ad|Lu|Dd)&&this.tryEmit(qe)},process:function(Re){},getTouchAction:function(){},reset:function(){}};function _u(Re){return Re&Dd?"cancel":Re&Lu?"end":Re&ad?"move":Re&La?"start":""}function kd(Re){return Re==he?"down":Re==le?"up":Re==ae?"left":Re==ne?"right":""}function ou(Re,qe){var st=qe.manager;return st?st.get(Re):Re}function As(){Ns.apply(this,arguments)}M(As,Ns,{defaults:{pointers:1},attrTest:function(Re){var qe=this.options.pointers;return qe===0||Re.pointers.length===qe},process:function(Re){var qe=this.state,st=Re.eventType,_t=qe&(La|ad),hn=this.attrTest(Re);return _t&&(st&ce||!hn)?qe|Dd:_t||hn?st&te?qe|Lu:qe&La?qe|ad:La:fi}});function au(){As.apply(this,arguments),this.pX=null,this.pY=null}M(au,As,{defaults:{event:"pan",threshold:10,pointers:1,direction:Me},getTouchAction:function(){var Re=this.options.direction,qe=[];return Re&be&&qe.push(It),Re&me&&qe.push(kt),qe},directionTest:function(Re){var qe=this.options,st=!0,_t=Re.distance,hn=Re.direction,hr=Re.deltaX,eo=Re.deltaY;return hn&qe.direction||(qe.direction&be?(hn=hr===0?oe:hr<0?ae:ne,st=hr!=this.pX,_t=Math.abs(Re.deltaX)):(hn=eo===0?oe:eo<0?le:he,st=eo!=this.pY,_t=Math.abs(Re.deltaY))),Re.direction=hn,st&&_t>qe.threshold&&hn&qe.direction},attrTest:function(Re){return As.prototype.attrTest.call(this,Re)&&(this.state&La||!(this.state&La)&&this.directionTest(Re))},emit:function(Re){this.pX=Re.deltaX,this.pY=Re.deltaY;var qe=kd(Re.direction);qe&&(Re.additionalEvent=this.options.event+qe),this._super.emit.call(this,Re)}});function Xn(){As.apply(this,arguments)}M(Xn,As,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[di]},attrTest:function(Re){return this._super.attrTest.call(this,Re)&&(Math.abs(Re.scale-1)>this.options.threshold||this.state&La)},emit:function(Re){if(Re.scale!==1){var qe=Re.scale<1?"in":"out";Re.additionalEvent=this.options.event+qe}this._super.emit.call(this,Re)}});function wn(){Ns.apply(this,arguments),this._timer=null,this._input=null}M(wn,Ns,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Uo]},process:function(Re){var qe=this.options,st=Re.pointers.length===qe.pointers,_t=Re.distance<qe.threshold,hn=Re.deltaTime>qe.time;if(this._input=Re,!_t||!st||Re.eventType&(te|ce)&&!hn)this.reset();else if(Re.eventType&se)this.reset(),this._timer=d(function(){this.state=Lc,this.tryEmit()},qe.time,this);else if(Re.eventType&te)return Lc;return fi},reset:function(){clearTimeout(this._timer)},emit:function(Re){this.state===Lc&&(Re&&Re.eventType&te?this.manager.emit(this.options.event+"up",Re):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function nn(){As.apply(this,arguments)}M(nn,As,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[di]},attrTest:function(Re){return this._super.attrTest.call(this,Re)&&(Math.abs(Re.rotation)>this.options.threshold||this.state&La)}});function Lr(){As.apply(this,arguments)}M(Lr,As,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:be|me,pointers:1},getTouchAction:function(){return au.prototype.getTouchAction.call(this)},attrTest:function(Re){var qe=this.options.direction,st;return qe&(be|me)?st=Re.overallVelocity:qe&be?st=Re.overallVelocityX:qe&me&&(st=Re.overallVelocityY),this._super.attrTest.call(this,Re)&&qe&Re.offsetDirection&&Re.distance>this.options.threshold&&Re.maxPointers==this.options.pointers&&c(st)>this.options.velocity&&Re.eventType&te},emit:function(Re){var qe=kd(Re.offsetDirection);qe&&this.manager.emit(this.options.event+qe,Re),this.manager.emit(this.options.event,Re)}});function Os(){Ns.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}M(Os,Ns,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Qi]},process:function(Re){var qe=this.options,st=Re.pointers.length===qe.pointers,_t=Re.distance<qe.threshold,hn=Re.deltaTime<qe.time;if(this.reset(),Re.eventType&se&&this.count===0)return this.failTimeout();if(_t&&hn&&st){if(Re.eventType!=te)return this.failTimeout();var hr=this.pTime?Re.timeStamp-this.pTime<qe.interval:!0,eo=!this.pCenter||ve(this.pCenter,Re.center)<qe.posThreshold;this.pTime=Re.timeStamp,this.pCenter=Re.center,!eo||!hr?this.count=1:this.count+=1,this._input=Re;var Fs=this.count%qe.taps;if(Fs===0)return this.hasRequireFailures()?(this._timer=d(function(){this.state=Lc,this.tryEmit()},qe.interval,this),La):Lc}return fi},failTimeout:function(){return this._timer=d(function(){this.state=fi},this.options.interval,this),fi},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Lc&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Va(Re,qe){return qe=qe||{},qe.recognizers=w(qe.recognizers,Va.defaults.preset),new cc(Re,qe)}Va.VERSION="2.0.7",Va.defaults={domEvents:!1,touchAction:$o,enable:!0,inputTarget:null,inputClass:null,preset:[[nn,{enable:!1}],[Xn,{enable:!1},["rotate"]],[Lr,{direction:be}],[au,{direction:be},["swipe"]],[Os],[Os,{event:"doubletap",taps:2},["tap"]],[wn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var wa=1,_c=2;function cc(Re,qe){this.options=m({},Va.defaults,qe||{}),this.options.inputTarget=this.options.inputTarget||Re,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=Re,this.input=ue(this),this.touchAction=new jr(this,this.options.touchAction),C1(this,!0),h(this.options.recognizers,function(st){var _t=this.add(new st[0](st[1]));st[2]&&_t.recognizeWith(st[2]),st[3]&&_t.requireFailure(st[3])},this)}cc.prototype={set:function(Re){return m(this.options,Re),Re.touchAction&&this.touchAction.update(),Re.inputTarget&&(this.input.destroy(),this.input.target=Re.inputTarget,this.input.init()),this},stop:function(Re){this.session.stopped=Re?_c:wa},recognize:function(Re){var qe=this.session;if(!qe.stopped){this.touchAction.preventDefaults(Re);var st,_t=this.recognizers,hn=qe.curRecognizer;(!hn||hn&&hn.state&Lc)&&(hn=qe.curRecognizer=null);for(var hr=0;hr<_t.length;)st=_t[hr],qe.stopped!==_c&&(!hn||st==hn||st.canRecognizeWith(hn))?st.recognize(Re):st.reset(),!hn&&st.state&(La|ad|Lu)&&(hn=qe.curRecognizer=st),hr++}},get:function(Re){if(Re instanceof Ns)return Re;for(var qe=this.recognizers,st=0;st<qe.length;st++)if(qe[st].options.event==Re)return qe[st];return null},add:function(Re){if(p(Re,"add",this))return this;var qe=this.get(Re.options.event);return qe&&this.remove(qe),this.recognizers.push(Re),Re.manager=this,this.touchAction.update(),Re},remove:function(Re){if(p(Re,"remove",this))return this;if(Re=this.get(Re),Re){var qe=this.recognizers,st=R(qe,Re);st!==-1&&(qe.splice(st,1),this.touchAction.update())}return this},on:function(Re,qe){if(Re!==i&&qe!==i){var st=this.handlers;return h(T(Re),function(_t){st[_t]=st[_t]||[],st[_t].push(qe)}),this}},off:function(Re,qe){if(Re!==i){var st=this.handlers;return h(T(Re),function(_t){qe?st[_t]&&st[_t].splice(R(st[_t],qe),1):delete st[_t]}),this}},emit:function(Re,qe){this.options.domEvents&&zp(Re,qe);var st=this.handlers[Re]&&this.handlers[Re].slice();if(!(!st||!st.length)){qe.type=Re,qe.preventDefault=function(){qe.srcEvent.preventDefault()};for(var _t=0;_t<st.length;)st[_t](qe),_t++}},destroy:function(){this.element&&C1(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function C1(Re,qe){var st=Re.element;if(st.style){var _t;h(Re.options.cssProps,function(hn,hr){_t=N(st.style,hr),qe?(Re.oldCssProps[_t]=st.style[_t],st.style[_t]=hn):st.style[_t]=Re.oldCssProps[_t]||""}),qe||(Re.oldCssProps={})}}function zp(Re,qe){var st=n.createEvent("Event");st.initEvent(Re,!0,!0),st.gesture=qe,qe.target.dispatchEvent(st)}m(Va,{INPUT_START:se,INPUT_MOVE:pe,INPUT_END:te,INPUT_CANCEL:ce,STATE_POSSIBLE:Xo,STATE_BEGAN:La,STATE_CHANGED:ad,STATE_ENDED:Lu,STATE_RECOGNIZED:Lc,STATE_CANCELLED:Dd,STATE_FAILED:fi,DIRECTION_NONE:oe,DIRECTION_LEFT:ae,DIRECTION_RIGHT:ne,DIRECTION_UP:le,DIRECTION_DOWN:he,DIRECTION_HORIZONTAL:be,DIRECTION_VERTICAL:me,DIRECTION_ALL:Me,Manager:cc,Input:ie,TouchAction:jr,TouchInput:Je,MouseInput:Ft,PointerEventInput:Zn,TouchMouseInput:un,SingleTouchInput:He,Recognizer:Ns,AttrRecognizer:As,Tap:Os,Pan:au,Swipe:Lr,Pinch:Xn,Rotate:nn,Press:wn,on:S,off:A,each:h,merge:y,extend:b,assign:m,inherit:M,bindFn:C,prefixed:N});var IM=typeof t<"u"?t:typeof self<"u"?self:{};IM.Hammer=Va,e.exports?e.exports=Va:t[r]=Va})(window,document,"Hammer")})(Ele)),Ele.exports}var KAr=YAr();const HF=qn(KAr);/*!
* chartjs-plugin-zoom v2.2.0
* https://www.chartjs.org/chartjs-plugin-zoom/2.2.0/
 * (c) 2016-2024 chartjs-plugin-zoom Contributors
 * Released under the MIT License
 */const jq=e=>e&&e.enabled&&e.modifierKey,BCt=(e,t)=>e&&t[e+"Key"],_Oe=(e,t)=>e&&!t[e+"Key"];function pw(e,t,n){return e===void 0?!0:typeof e=="string"?e.indexOf(t)!==-1:typeof e=="function"?e({chart:n}).indexOf(t)!==-1:!1}function Rle(e,t){return typeof e=="function"&&(e=e({chart:t})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function QAr(e,t){let n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}function ZAr({x:e,y:t},n){const r=n.scales,i=Object.keys(r);for(let o=0;o<i.length;o++){const a=r[i[o]];if(t>=a.top&&t<=a.bottom&&e>=a.left&&e<=a.right)return a}return null}function jCt(e,t,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=e||{},a=ZAr(t,n),s=Rle(r,n),l=Rle(i,n);if(o){const u=Rle(o,n);for(const d of["x","y"])u[d]&&(l[d]=s[d],s[d]=!1)}if(a&&l[a.axis])return[a];const c=[];return jo(n.scales,function(u){s[u.axis]&&c.push(u)}),c}const dbe=new WeakMap;function Fl(e){let t=dbe.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{},dragging:!1,panning:!1},dbe.set(e,t)),t}function JAr(e){dbe.delete(e)}function HCt(e,t,n,r){const i=Math.max(0,Math.min(1,(e-t)/n||0)),o=1-i;return{min:r*i,max:r*o}}function VCt(e,t){const n=e.isHorizontal()?t.x:t.y;return e.getValueForPixel(n)}function GCt(e,t,n){const r=e.max-e.min,i=r*(t-1),o=VCt(e,n);return HCt(o,e.min,r,i)}function eOr(e,t,n){const r=VCt(e,n);if(r===void 0)return{min:e.min,max:e.max};const i=Math.log10(e.min),o=Math.log10(e.max),a=Math.log10(r),s=o-i,l=s*(t-1),c=HCt(a,i,s,l);return{min:Math.pow(10,i+c.min),max:Math.pow(10,o-c.max)}}function tOr(e,t){return t&&(t[e.id]||t[e.axis])||{}}function AVe(e,t,n,r,i){let o=n[r];if(o==="original"){const a=e.originalScaleLimits[t.id][r];o=ko(a.options,a.scale)}return ko(o,i)}function nOr(e,t,n){const r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function rOr(e,{min:t,max:n,minLimit:r,maxLimit:i},o){const a=(e-n+t)/2;t-=a,n+=a;const s=o.min.options??o.min.scale,l=o.max.options??o.max.scale,c=e/1e6;return az(t,s,c)&&(t=s),az(n,l,c)&&(n=l),t<r?(t=r,n=Math.min(r+e,i)):n>i&&(n=i,t=Math.max(i-e,r)),{min:t,max:n}}function J3(e,{min:t,max:n},r,i=!1){const o=Fl(e.chart),{options:a}=e,s=tOr(e,r),{minRange:l=0}=s,c=AVe(o,e,s,"min",-1/0),u=AVe(o,e,s,"max",1/0);if(i==="pan"&&(t<c||n>u))return!0;const d=e.max-e.min,p=i?Math.max(n-t,l):d;if(i&&p===l&&d<=l)return!0;const h=rOr(p,{min:t,max:n,minLimit:c,maxLimit:u},o.originalScaleLimits[e.id]);return a.min=h.min,a.max=h.max,o.updatedScaleLimits[e.id]=h,e.parse(h.min)!==e.min||e.parse(h.max)!==e.max}function iOr(e,t,n,r){const i=GCt(e,t,n),o={min:e.min+i.min,max:e.max-i.max};return J3(e,o,r,!0)}function oOr(e,t,n,r){const i=eOr(e,t,n);return J3(e,i,r,!0)}function aOr(e,t,n,r){J3(e,nOr(e,t,n),r,!0)}const OVe=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function sOr(e){const n=e.getLabels().length-1;e.min>0&&(e.min-=1),e.max<n&&(e.max+=1)}function lOr(e,t,n,r){const i=GCt(e,t,n);e.min===e.max&&t<1&&sOr(e);const o={min:e.min+OVe(i.min),max:e.max-OVe(i.max)};return J3(e,o,r,!0)}function cOr(e){return e.isHorizontal()?e.width:e.height}function uOr(e,t,n){const i=e.getLabels().length-1;let{min:o,max:a}=e;const s=Math.max(a-o,1),l=Math.round(cOr(e)/Math.max(s,10)),c=Math.round(Math.abs(t/l));let u;return t<-l?(a=Math.min(a+c,i),o=s===1?a:a-s,u=a===i):t>l&&(o=Math.max(0,o-c),a=s===1?o:o+s,u=o===0),J3(e,{min:o,max:a},n)||u}const dOr={second:500,minute:30*1e3,hour:1800*1e3,day:720*60*1e3,week:3.5*24*60*60*1e3,month:360*60*60*1e3,quarter:1440*60*60*1e3,year:4368*60*60*1e3};function $Ct(e,t,n,r=!1){const{min:i,max:o,options:a}=e,s=a.time&&a.time.round,l=dOr[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(o+l)-t);return isNaN(c)||isNaN(u)?!0:J3(e,{min:c,max:u},n,r?"pan":!1)}function zVe(e,t,n){return $Ct(e,t,n,!0)}const pbe={category:lOr,default:iOr,logarithmic:oOr},hbe={default:aOr},fbe={category:uOr,default:$Ct,logarithmic:zVe,timeseries:zVe};function pOr(e,t,n){const{id:r,options:{min:i,max:o}}=e;if(!t[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o}function TVe(e,t){jo(e,(n,r)=>{t[r]||delete e[r]})}function Mk(e,t){const{scales:n}=e,{originalScaleLimits:r,updatedScaleLimits:i}=t;return jo(n,function(o){pOr(o,r,i)&&(r[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),TVe(r,n),TVe(i,n),r}function EVe(e,t,n,r){const i=pbe[e.type]||pbe.default;_i(i,[e,t,n,r])}function RVe(e,t,n,r){const i=hbe[e.type]||hbe.default;_i(i,[e,t,n,r])}function hOr(e){const t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function NOe(e,t,n="none",r="api"){const{x:i=1,y:o=1,focalPoint:a=hOr(e)}=typeof t=="number"?{x:t,y:t}:t,s=Fl(e),{options:{limits:l,zoom:c}}=s;Mk(e,s);const u=i!==1,d=o!==1,p=jCt(c,a,e);jo(p||e.scales,function(h){h.isHorizontal()&&u?EVe(h,i,a,l):!h.isHorizontal()&&d&&EVe(h,o,a,l)}),e.update(n),_i(c.onZoom,[{chart:e,trigger:r}])}function UCt(e,t,n,r="none",i="api"){const o=Fl(e),{options:{limits:a,zoom:s}}=o,{mode:l="xy"}=s;Mk(e,o);const c=pw(l,"x",e),u=pw(l,"y",e);jo(e.scales,function(d){d.isHorizontal()&&c?RVe(d,t.x,n.x,a):!d.isHorizontal()&&u&&RVe(d,t.y,n.y,a)}),e.update(r),_i(s.onZoom,[{chart:e,trigger:i}])}function fOr(e,t,n,r="none",i="api"){const o=Fl(e);Mk(e,o);const a=e.scales[t];J3(a,n,void 0,!0),e.update(r),_i(o.options.zoom?.onZoom,[{chart:e,trigger:i}])}function gOr(e,t="default"){const n=Fl(e),r=Mk(e,n);jo(e.scales,function(i){const o=i.options;r[i.id]?(o.min=r[i.id].min.options,o.max=r[i.id].max.options):(delete o.min,delete o.max),delete n.updatedScaleLimits[i.id]}),e.update(t),_i(n.options.zoom.onZoomComplete,[{chart:e}])}function mOr(e,t){const n=e.originalScaleLimits[t];if(!n)return;const{min:r,max:i}=n;return ko(i.options,i.scale)-ko(r.options,r.scale)}function vOr(e){const t=Fl(e);let n=1,r=1;return jo(e.scales,function(i){const o=mOr(t,i.id);if(o){const a=Math.round(o/(i.max-i.min)*100)/100;n=Math.min(n,a),r=Math.max(r,a)}}),n<1?n:r}function IVe(e,t,n,r){const{panDelta:i}=r,o=i[e.id]||0;dw(o)===dw(t)&&(t+=o);const a=fbe[e.type]||fbe.default;_i(a,[e,t,n])?i[e.id]=0:i[e.id]=t}function XCt(e,t,n,r="none"){const{x:i=0,y:o=0}=typeof t=="number"?{x:t,y:t}:t,a=Fl(e),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};Mk(e,a);const u=i!==0,d=o!==0;jo(n||e.scales,function(p){p.isHorizontal()&&u?IVe(p,i,l,a):!p.isHorizontal()&&d&&IVe(p,o,l,a)}),e.update(r),_i(c,[{chart:e}])}function YCt(e){const t=Fl(e);Mk(e,t);const n={};for(const r of Object.keys(e.scales)){const{min:i,max:o}=t.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:i.scale,max:o.scale}}return n}function bOr(e){const t=Fl(e),n={};for(const r of Object.keys(e.scales))n[r]=t.updatedScaleLimits[r];return n}function yOr(e){const t=YCt(e);for(const n of Object.keys(e.scales)){const{min:r,max:i}=t[n];if(r!==void 0&&e.scales[n].min!==r||i!==void 0&&e.scales[n].max!==i)return!0}return!1}function PVe(e){const t=Fl(e);return t.panning||t.dragging}const DVe=(e,t,n)=>Math.min(n,Math.max(t,e));function J1(e,t){const{handlers:n}=Fl(e),r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function VF(e,t,n,r){const{handlers:i,options:o}=Fl(e),a=i[n];if(a&&a.target===t)return;J1(e,n),i[n]=l=>r(e,l,o),i[n].target=t;const s=n==="wheel"?!1:void 0;t.addEventListener(n,i[n],{passive:s})}function MOr(e,t){const n=Fl(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function COr(e,t){const n=Fl(e);!n.dragStart||t.key!=="Escape"||(J1(e,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,e.update("none"))}function gbe(e,t){if(e.target!==t.canvas){const n=t.canvas.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}return Wv(e,t)}function KCt(e,t,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){const o=gbe(t,e);if(_i(r,[{chart:e,event:t,point:o}])===!1)return _i(i,[{chart:e,event:t}]),!1}}function xOr(e,t){if(e.legend){const o=Wv(t,e);if(VP(o,e.legend))return}const n=Fl(e),{pan:r,zoom:i={}}=n.options;if(t.button!==0||BCt(jq(r),t)||_Oe(jq(i.drag),t))return _i(i.onZoomRejected,[{chart:e,event:t}]);KCt(e,t,i)!==!1&&(n.dragStart=t,VF(e,e.canvas.ownerDocument,"mousemove",MOr),VF(e,window.document,"keydown",COr))}function wOr({begin:e,end:t},n){let r=t.x-e.x,i=t.y-e.y;const o=Math.abs(r/i);o>n?r=Math.sign(r)*Math.abs(i*n):o<n&&(i=Math.sign(i)*Math.abs(r/n)),t.x=e.x+r,t.y=e.y+i}function kVe(e,t,n,{min:r,max:i,prop:o}){e[r]=DVe(Math.min(n.begin[o],n.end[o]),t[r],t[i]),e[i]=DVe(Math.max(n.begin[o],n.end[o]),t[r],t[i])}function SOr(e,t,n){const r={begin:gbe(t.dragStart,e),end:gbe(t.dragEnd,e)};if(n){const i=e.chartArea.width/e.chartArea.height;wOr(r,i)}return r}function QCt(e,t,n,r){const i=pw(t,"x",e),o=pw(t,"y",e),{top:a,left:s,right:l,bottom:c,width:u,height:d}=e.chartArea,p={top:a,left:s,right:l,bottom:c},h=SOr(e,n,r&&i&&o);i&&kVe(p,e.chartArea,h,{min:"left",max:"right",prop:"x"}),o&&kVe(p,e.chartArea,h,{min:"top",max:"bottom",prop:"y"});const g=p.right-p.left,m=p.bottom-p.top;return{...p,width:g,height:m,zoomX:i&&g?1+(u-g)/u:1,zoomY:o&&m?1+(d-m)/d:1}}function AOr(e,t){const n=Fl(e);if(!n.dragStart)return;J1(e,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0,maintainAspectRatio:a}}=n.options.zoom,s=QCt(e,r,{dragStart:n.dragStart,dragEnd:t},a),l=pw(r,"x",e)?s.width:0,c=pw(r,"y",e)?s.height:0,u=Math.sqrt(l*l+c*c);if(n.dragStart=n.dragEnd=null,u<=o){n.dragging=!1,e.update("none");return}UCt(e,{x:s.left,y:s.top},{x:s.right,y:s.bottom},"zoom","drag"),n.dragging=!1,n.filterNextClick=!0,_i(i,[{chart:e}])}function OOr(e,t,n){if(_Oe(jq(n.wheel),t)){_i(n.onZoomRejected,[{chart:e,event:t}]);return}if(KCt(e,t,n)!==!1&&(t.cancelable&&t.preventDefault(),t.deltaY!==void 0))return!0}function zOr(e,t){const{handlers:{onZoomComplete:n},options:{zoom:r}}=Fl(e);if(!OOr(e,t,r))return;const i=t.target.getBoundingClientRect(),o=r.wheel.speed,a=t.deltaY>=0?2-1/(1-o):1+o,s={x:a,y:a,focalPoint:{x:t.clientX-i.left,y:t.clientY-i.top}};NOe(e,s,"zoom","wheel"),_i(n,[{chart:e}])}function TOr(e,t,n,r){n&&(Fl(e).handlers[t]=QAr(()=>_i(n,[{chart:e}]),r))}function EOr(e,t){const n=e.canvas,{wheel:r,drag:i,onZoomComplete:o}=t.zoom;r.enabled?(VF(e,n,"wheel",zOr),TOr(e,"onZoomComplete",o,250)):J1(e,"wheel"),i.enabled?(VF(e,n,"mousedown",xOr),VF(e,n.ownerDocument,"mouseup",AOr)):(J1(e,"mousedown"),J1(e,"mousemove"),J1(e,"mouseup"),J1(e,"keydown"))}function ROr(e){J1(e,"mousedown"),J1(e,"mousemove"),J1(e,"mouseup"),J1(e,"wheel"),J1(e,"click"),J1(e,"keydown")}function IOr(e,t){return function(n,r){const{pan:i,zoom:o={}}=t.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return a&&!t.panning&&r.pointerType==="mouse"&&(_Oe(jq(i),a)||BCt(jq(o.drag),a))?(_i(i.onPanRejected,[{chart:e,event:r}]),!1):!0}}function POr(e,t){const n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}function ZCt(e,t,n){if(t.scale){const{center:r,pointers:i}=n,o=1/t.scale*n.scale,a=n.target.getBoundingClientRect(),s=POr(i[0],i[1]),l=t.options.zoom.mode,c={x:s.x&&pw(l,"x",e)?o:1,y:s.y&&pw(l,"y",e)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}};NOe(e,c,"zoom","pinch"),t.scale=n.scale}}function DOr(e,t,n){if(t.options.zoom.pinch.enabled){const r=Wv(n,e);_i(t.options.zoom.onZoomStart,[{chart:e,event:n,point:r}])===!1?(t.scale=null,_i(t.options.zoom.onZoomRejected,[{chart:e,event:n}])):t.scale=1}}function kOr(e,t,n){t.scale&&(ZCt(e,t,n),t.scale=null,_i(t.options.zoom.onZoomComplete,[{chart:e}]))}function JCt(e,t,n){const r=t.delta;r&&(t.panning=!0,XCt(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}function LOr(e,t,n){const{enabled:r,onPanStart:i,onPanRejected:o}=t.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(_i(i,[{chart:e,event:n,point:s}])===!1)return _i(o,[{chart:e,event:n}]);t.panScales=jCt(t.options.pan,s,e),t.delta={x:0,y:0},JCt(e,t,n)}function _Or(e,t){t.delta=null,t.panning&&(t.panning=!1,t.filterNextClick=!0,_i(t.options.pan.onPanComplete,[{chart:e}]))}const mbe=new WeakMap;function LVe(e,t){const n=Fl(e),r=e.canvas,{pan:i,zoom:o}=t,a=new HF.Manager(r);o&&o.pinch.enabled&&(a.add(new HF.Pinch),a.on("pinchstart",s=>DOr(e,n,s)),a.on("pinch",s=>ZCt(e,n,s)),a.on("pinchend",s=>kOr(e,n,s))),i&&i.enabled&&(a.add(new HF.Pan({threshold:i.threshold,enable:IOr(e,n)})),a.on("panstart",s=>LOr(e,n,s)),a.on("panmove",s=>JCt(e,n,s)),a.on("panend",()=>_Or(e,n))),mbe.set(e,a)}function _Ve(e){const t=mbe.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),mbe.delete(e))}function NOr(e,t){const{pan:n,zoom:r}=e,{pan:i,zoom:o}=t;return r?.zoom?.pinch?.enabled!==o?.zoom?.pinch?.enabled||n?.enabled!==i?.enabled||n?.threshold!==i?.threshold}var FOr="2.2.0";function dG(e,t,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=Fl(e);if(r.drawTime!==t||!o)return;const{left:a,top:s,width:l,height:c}=QCt(e,n.zoom.mode,{dragStart:i,dragEnd:o},r.maintainAspectRatio),u=e.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var WOr={id:"zoom",version:FOr,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){const r=Fl(e);r.options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),HF&&LVe(e,n),e.pan=(i,o,a)=>XCt(e,i,o,a),e.zoom=(i,o)=>NOe(e,i,o),e.zoomRect=(i,o,a)=>UCt(e,i,o,a),e.zoomScale=(i,o,a)=>fOr(e,i,o,a),e.resetZoom=i=>gOr(e,i),e.getZoomLevel=()=>vOr(e),e.getInitialScaleBounds=()=>YCt(e),e.getZoomedScaleBounds=()=>bOr(e),e.isZoomedOrPanned=()=>yOr(e),e.isZoomingOrPanning=()=>PVe(e)},beforeEvent(e,{event:t}){if(PVe(e))return!1;if(t.type==="click"||t.type==="mouseup"){const n=Fl(e);if(n.filterNextClick)return n.filterNextClick=!1,!1}},beforeUpdate:function(e,t,n){const r=Fl(e),i=r.options;r.options=n,NOr(i,n)&&(_Ve(e),LVe(e,n)),EOr(e,n)},beforeDatasetsDraw(e,t,n){dG(e,"beforeDatasetsDraw",n)},afterDatasetsDraw(e,t,n){dG(e,"afterDatasetsDraw",n)},beforeDraw(e,t,n){dG(e,"beforeDraw",n)},afterDraw(e,t,n){dG(e,"afterDraw",n)},stop:function(e){ROr(e),HF&&_Ve(e),JAr(e)},panFunctions:fbe,zoomFunctions:pbe,zoomRectFunctions:hbe};const ext="label";function NVe(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function qOr(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function txt(e,t){e.labels=t}function nxt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ext;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function BOr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ext;const n={labels:[],datasets:[]};return txt(n,e.labels),nxt(n,e.datasets,t),n}function jOr(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...p}=e,h=v.useRef(null),g=v.useRef(null),m=()=>{h.current&&(g.current=new YJ(h.current,{type:a,data:BOr(s,o),options:l&&{...l},plugins:c}),NVe(t,g.current))},b=()=>{NVe(t,null),g.current&&(g.current.destroy(),g.current=null)};return v.useEffect(()=>{!i&&g.current&&l&&qOr(g.current,l)},[i,l]),v.useEffect(()=>{!i&&g.current&&txt(g.current.config.data,s.labels)},[i,s.labels]),v.useEffect(()=>{!i&&g.current&&s.datasets&&nxt(g.current.config.data,s.datasets,o)},[i,s.datasets]),v.useEffect(()=>{g.current&&(i?(b(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),v.useEffect(()=>{g.current&&(b(),setTimeout(m))},[a]),v.useEffect(()=>(m(),()=>b()),[]),E.createElement("canvas",{ref:h,role:"img",height:n,width:r,...p},u)}const HOr=v.forwardRef(jOr);function VOr(e,t){return YJ.register(t),v.forwardRef((n,r)=>E.createElement(HOr,{...n,ref:r,type:e}))}const GOr=VOr("line",rSr);var Ile={};const $Or="Á",UOr="á",XOr="Ă",YOr="ă",KOr="∾",QOr="∿",ZOr="∾̳",JOr="Â",ezr="â",tzr="´",nzr="А",rzr="а",izr="Æ",ozr="æ",azr="⁡",szr="𝔄",lzr="𝔞",czr="À",uzr="à",dzr="ℵ",pzr="ℵ",hzr="Α",fzr="α",gzr="Ā",mzr="ā",vzr="⨿",bzr="&",yzr="&",Mzr="⩕",Czr="⩓",xzr="∧",wzr="⩜",Szr="⩘",Azr="⩚",Ozr="∠",zzr="⦤",Tzr="∠",Ezr="⦨",Rzr="⦩",Izr="⦪",Pzr="⦫",Dzr="⦬",kzr="⦭",Lzr="⦮",_zr="⦯",Nzr="∡",Fzr="∟",Wzr="⊾",qzr="⦝",Bzr="∢",jzr="Å",Hzr="⍼",Vzr="Ą",Gzr="ą",$zr="𝔸",Uzr="𝕒",Xzr="⩯",Yzr="≈",Kzr="⩰",Qzr="≊",Zzr="≋",Jzr="'",e3r="⁡",t3r="≈",n3r="≊",r3r="Å",i3r="å",o3r="𝒜",a3r="𝒶",s3r="≔",l3r="*",c3r="≈",u3r="≍",d3r="Ã",p3r="ã",h3r="Ä",f3r="ä",g3r="∳",m3r="⨑",v3r="≌",b3r="϶",y3r="‵",M3r="∽",C3r="⋍",x3r="∖",w3r="⫧",S3r="⊽",A3r="⌅",O3r="⌆",z3r="⌅",T3r="⎵",E3r="⎶",R3r="≌",I3r="Б",P3r="б",D3r="„",k3r="∵",L3r="∵",_3r="∵",N3r="⦰",F3r="϶",W3r="ℬ",q3r="ℬ",B3r="Β",j3r="β",H3r="ℶ",V3r="≬",G3r="𝔅",$3r="𝔟",U3r="⋂",X3r="◯",Y3r="⋃",K3r="⨀",Q3r="⨁",Z3r="⨂",J3r="⨆",eTr="★",tTr="▽",nTr="△",rTr="⨄",iTr="⋁",oTr="⋀",aTr="⤍",sTr="⧫",lTr="▪",cTr="▴",uTr="▾",dTr="◂",pTr="▸",hTr="␣",fTr="▒",gTr="░",mTr="▓",vTr="█",bTr="=⃥",yTr="≡⃥",MTr="⫭",CTr="⌐",xTr="𝔹",wTr="𝕓",STr="⊥",ATr="⊥",OTr="⋈",zTr="⧉",TTr="┐",ETr="╕",RTr="╖",ITr="╗",PTr="┌",DTr="╒",kTr="╓",LTr="╔",_Tr="─",NTr="═",FTr="┬",WTr="╤",qTr="╥",BTr="╦",jTr="┴",HTr="╧",VTr="╨",GTr="╩",$Tr="⊟",UTr="⊞",XTr="⊠",YTr="┘",KTr="╛",QTr="╜",ZTr="╝",JTr="└",eEr="╘",tEr="╙",nEr="╚",rEr="│",iEr="║",oEr="┼",aEr="╪",sEr="╫",lEr="╬",cEr="┤",uEr="╡",dEr="╢",pEr="╣",hEr="├",fEr="╞",gEr="╟",mEr="╠",vEr="‵",bEr="˘",yEr="˘",MEr="¦",CEr="𝒷",xEr="ℬ",wEr="⁏",SEr="∽",AEr="⋍",OEr="⧅",zEr="\\",TEr="⟈",EEr="•",REr="•",IEr="≎",PEr="⪮",DEr="≏",kEr="≎",LEr="≏",_Er="Ć",NEr="ć",FEr="⩄",WEr="⩉",qEr="⩋",BEr="∩",jEr="⋒",HEr="⩇",VEr="⩀",GEr="ⅅ",$Er="∩︀",UEr="⁁",XEr="ˇ",YEr="ℭ",KEr="⩍",QEr="Č",ZEr="č",JEr="Ç",eRr="ç",tRr="Ĉ",nRr="ĉ",rRr="∰",iRr="⩌",oRr="⩐",aRr="Ċ",sRr="ċ",lRr="¸",cRr="¸",uRr="⦲",dRr="¢",pRr="·",hRr="·",fRr="𝔠",gRr="ℭ",mRr="Ч",vRr="ч",bRr="✓",yRr="✓",MRr="Χ",CRr="χ",xRr="ˆ",wRr="≗",SRr="↺",ARr="↻",ORr="⊛",zRr="⊚",TRr="⊝",ERr="⊙",RRr="®",IRr="Ⓢ",PRr="⊖",DRr="⊕",kRr="⊗",LRr="○",_Rr="⧃",NRr="≗",FRr="⨐",WRr="⫯",qRr="⧂",BRr="∲",jRr="”",HRr="’",VRr="♣",GRr="♣",$Rr=":",URr="∷",XRr="⩴",YRr="≔",KRr="≔",QRr=",",ZRr="@",JRr="∁",eIr="∘",tIr="∁",nIr="ℂ",rIr="≅",iIr="⩭",oIr="≡",aIr="∮",sIr="∯",lIr="∮",cIr="𝕔",uIr="ℂ",dIr="∐",pIr="∐",hIr="©",fIr="©",gIr="℗",mIr="∳",vIr="↵",bIr="✗",yIr="⨯",MIr="𝒞",CIr="𝒸",xIr="⫏",wIr="⫑",SIr="⫐",AIr="⫒",OIr="⋯",zIr="⤸",TIr="⤵",EIr="⋞",RIr="⋟",IIr="↶",PIr="⤽",DIr="⩈",kIr="⩆",LIr="≍",_Ir="∪",NIr="⋓",FIr="⩊",WIr="⊍",qIr="⩅",BIr="∪︀",jIr="↷",HIr="⤼",VIr="⋞",GIr="⋟",$Ir="⋎",UIr="⋏",XIr="¤",YIr="↶",KIr="↷",QIr="⋎",ZIr="⋏",JIr="∲",ePr="∱",tPr="⌭",nPr="†",rPr="‡",iPr="ℸ",oPr="↓",aPr="↡",sPr="⇓",lPr="‐",cPr="⫤",uPr="⊣",dPr="⤏",pPr="˝",hPr="Ď",fPr="ď",gPr="Д",mPr="д",vPr="‡",bPr="⇊",yPr="ⅅ",MPr="ⅆ",CPr="⤑",xPr="⩷",wPr="°",SPr="∇",APr="Δ",OPr="δ",zPr="⦱",TPr="⥿",EPr="𝔇",RPr="𝔡",IPr="⥥",PPr="⇃",DPr="⇂",kPr="´",LPr="˙",_Pr="˝",NPr="`",FPr="˜",WPr="⋄",qPr="⋄",BPr="⋄",jPr="♦",HPr="♦",VPr="¨",GPr="ⅆ",$Pr="ϝ",UPr="⋲",XPr="÷",YPr="÷",KPr="⋇",QPr="⋇",ZPr="Ђ",JPr="ђ",eDr="⌞",tDr="⌍",nDr="$",rDr="𝔻",iDr="𝕕",oDr="¨",aDr="˙",sDr="⃜",lDr="≐",cDr="≑",uDr="≐",dDr="∸",pDr="∔",hDr="⊡",fDr="⌆",gDr="∯",mDr="¨",vDr="⇓",bDr="⇐",yDr="⇔",MDr="⫤",CDr="⟸",xDr="⟺",wDr="⟹",SDr="⇒",ADr="⊨",ODr="⇑",zDr="⇕",TDr="∥",EDr="⤓",RDr="↓",IDr="↓",PDr="⇓",DDr="⇵",kDr="̑",LDr="⇊",_Dr="⇃",NDr="⇂",FDr="⥐",WDr="⥞",qDr="⥖",BDr="↽",jDr="⥟",HDr="⥗",VDr="⇁",GDr="↧",$Dr="⊤",UDr="⤐",XDr="⌟",YDr="⌌",KDr="𝒟",QDr="𝒹",ZDr="Ѕ",JDr="ѕ",ekr="⧶",tkr="Đ",nkr="đ",rkr="⋱",ikr="▿",okr="▾",akr="⇵",skr="⥯",lkr="⦦",ckr="Џ",ukr="џ",dkr="⟿",pkr="É",hkr="é",fkr="⩮",gkr="Ě",mkr="ě",vkr="Ê",bkr="ê",ykr="≖",Mkr="≕",Ckr="Э",xkr="э",wkr="⩷",Skr="Ė",Akr="ė",Okr="≑",zkr="ⅇ",Tkr="≒",Ekr="𝔈",Rkr="𝔢",Ikr="⪚",Pkr="È",Dkr="è",kkr="⪖",Lkr="⪘",_kr="⪙",Nkr="∈",Fkr="⏧",Wkr="ℓ",qkr="⪕",Bkr="⪗",jkr="Ē",Hkr="ē",Vkr="∅",Gkr="∅",$kr="◻",Ukr="∅",Xkr="▫",Ykr=" ",Kkr=" ",Qkr=" ",Zkr="Ŋ",Jkr="ŋ",eLr=" ",tLr="Ę",nLr="ę",rLr="𝔼",iLr="𝕖",oLr="⋕",aLr="⧣",sLr="⩱",lLr="ε",cLr="Ε",uLr="ε",dLr="ϵ",pLr="≖",hLr="≕",fLr="≂",gLr="⪖",mLr="⪕",vLr="⩵",bLr="=",yLr="≂",MLr="≟",CLr="⇌",xLr="≡",wLr="⩸",SLr="⧥",ALr="⥱",OLr="≓",zLr="ℯ",TLr="ℰ",ELr="≐",RLr="⩳",ILr="≂",PLr="Η",DLr="η",kLr="Ð",LLr="ð",_Lr="Ë",NLr="ë",FLr="€",WLr="!",qLr="∃",BLr="∃",jLr="ℰ",HLr="ⅇ",VLr="ⅇ",GLr="≒",$Lr="Ф",ULr="ф",XLr="♀",YLr="ﬃ",KLr="ﬀ",QLr="ﬄ",ZLr="𝔉",JLr="𝔣",e4r="ﬁ",t4r="◼",n4r="▪",r4r="fj",i4r="♭",o4r="ﬂ",a4r="▱",s4r="ƒ",l4r="𝔽",c4r="𝕗",u4r="∀",d4r="∀",p4r="⋔",h4r="⫙",f4r="ℱ",g4r="⨍",m4r="½",v4r="⅓",b4r="¼",y4r="⅕",M4r="⅙",C4r="⅛",x4r="⅔",w4r="⅖",S4r="¾",A4r="⅗",O4r="⅜",z4r="⅘",T4r="⅚",E4r="⅝",R4r="⅞",I4r="⁄",P4r="⌢",D4r="𝒻",k4r="ℱ",L4r="ǵ",_4r="Γ",N4r="γ",F4r="Ϝ",W4r="ϝ",q4r="⪆",B4r="Ğ",j4r="ğ",H4r="Ģ",V4r="Ĝ",G4r="ĝ",$4r="Г",U4r="г",X4r="Ġ",Y4r="ġ",K4r="≥",Q4r="≧",Z4r="⪌",J4r="⋛",e_r="≥",t_r="≧",n_r="⩾",r_r="⪩",i_r="⩾",o_r="⪀",a_r="⪂",s_r="⪄",l_r="⋛︀",c_r="⪔",u_r="𝔊",d_r="𝔤",p_r="≫",h_r="⋙",f_r="⋙",g_r="ℷ",m_r="Ѓ",v_r="ѓ",b_r="⪥",y_r="≷",M_r="⪒",C_r="⪤",x_r="⪊",w_r="⪊",S_r="⪈",A_r="≩",O_r="⪈",z_r="≩",T_r="⋧",E_r="𝔾",R_r="𝕘",I_r="`",P_r="≥",D_r="⋛",k_r="≧",L_r="⪢",__r="≷",N_r="⩾",F_r="≳",W_r="𝒢",q_r="ℊ",B_r="≳",j_r="⪎",H_r="⪐",V_r="⪧",G_r="⩺",$_r=">",U_r=">",X_r="≫",Y_r="⋗",K_r="⦕",Q_r="⩼",Z_r="⪆",J_r="⥸",e5r="⋗",t5r="⋛",n5r="⪌",r5r="≷",i5r="≳",o5r="≩︀",a5r="≩︀",s5r="ˇ",l5r=" ",c5r="½",u5r="ℋ",d5r="Ъ",p5r="ъ",h5r="⥈",f5r="↔",g5r="⇔",m5r="↭",v5r="^",b5r="ℏ",y5r="Ĥ",M5r="ĥ",C5r="♥",x5r="♥",w5r="…",S5r="⊹",A5r="𝔥",O5r="ℌ",z5r="ℋ",T5r="⤥",E5r="⤦",R5r="⇿",I5r="∻",P5r="↩",D5r="↪",k5r="𝕙",L5r="ℍ",_5r="―",N5r="─",F5r="𝒽",W5r="ℋ",q5r="ℏ",B5r="Ħ",j5r="ħ",H5r="≎",V5r="≏",G5r="⁃",$5r="‐",U5r="Í",X5r="í",Y5r="⁣",K5r="Î",Q5r="î",Z5r="И",J5r="и",eNr="İ",tNr="Е",nNr="е",rNr="¡",iNr="⇔",oNr="𝔦",aNr="ℑ",sNr="Ì",lNr="ì",cNr="ⅈ",uNr="⨌",dNr="∭",pNr="⧜",hNr="℩",fNr="Ĳ",gNr="ĳ",mNr="Ī",vNr="ī",bNr="ℑ",yNr="ⅈ",MNr="ℐ",CNr="ℑ",xNr="ı",wNr="ℑ",SNr="⊷",ANr="Ƶ",ONr="⇒",zNr="℅",TNr="∞",ENr="⧝",RNr="ı",INr="⊺",PNr="∫",DNr="∬",kNr="ℤ",LNr="∫",_Nr="⊺",NNr="⋂",FNr="⨗",WNr="⨼",qNr="⁣",BNr="⁢",jNr="Ё",HNr="ё",VNr="Į",GNr="į",$Nr="𝕀",UNr="𝕚",XNr="Ι",YNr="ι",KNr="⨼",QNr="¿",ZNr="𝒾",JNr="ℐ",eFr="∈",tFr="⋵",nFr="⋹",rFr="⋴",iFr="⋳",oFr="∈",aFr="⁢",sFr="Ĩ",lFr="ĩ",cFr="І",uFr="і",dFr="Ï",pFr="ï",hFr="Ĵ",fFr="ĵ",gFr="Й",mFr="й",vFr="𝔍",bFr="𝔧",yFr="ȷ",MFr="𝕁",CFr="𝕛",xFr="𝒥",wFr="𝒿",SFr="Ј",AFr="ј",OFr="Є",zFr="є",TFr="Κ",EFr="κ",RFr="ϰ",IFr="Ķ",PFr="ķ",DFr="К",kFr="к",LFr="𝔎",_Fr="𝔨",NFr="ĸ",FFr="Х",WFr="х",qFr="Ќ",BFr="ќ",jFr="𝕂",HFr="𝕜",VFr="𝒦",GFr="𝓀",$Fr="⇚",UFr="Ĺ",XFr="ĺ",YFr="⦴",KFr="ℒ",QFr="Λ",ZFr="λ",JFr="⟨",eWr="⟪",tWr="⦑",nWr="⟨",rWr="⪅",iWr="ℒ",oWr="«",aWr="⇤",sWr="⤟",lWr="←",cWr="↞",uWr="⇐",dWr="⤝",pWr="↩",hWr="↫",fWr="⤹",gWr="⥳",mWr="↢",vWr="⤙",bWr="⤛",yWr="⪫",MWr="⪭",CWr="⪭︀",xWr="⤌",wWr="⤎",SWr="❲",AWr="{",OWr="[",zWr="⦋",TWr="⦏",EWr="⦍",RWr="Ľ",IWr="ľ",PWr="Ļ",DWr="ļ",kWr="⌈",LWr="{",_Wr="Л",NWr="л",FWr="⤶",WWr="“",qWr="„",BWr="⥧",jWr="⥋",HWr="↲",VWr="≤",GWr="≦",$Wr="⟨",UWr="⇤",XWr="←",YWr="←",KWr="⇐",QWr="⇆",ZWr="↢",JWr="⌈",eqr="⟦",tqr="⥡",nqr="⥙",rqr="⇃",iqr="⌊",oqr="↽",aqr="↼",sqr="⇇",lqr="↔",cqr="↔",uqr="⇔",dqr="⇆",pqr="⇋",hqr="↭",fqr="⥎",gqr="↤",mqr="⊣",vqr="⥚",bqr="⋋",yqr="⧏",Mqr="⊲",Cqr="⊴",xqr="⥑",wqr="⥠",Sqr="⥘",Aqr="↿",Oqr="⥒",zqr="↼",Tqr="⪋",Eqr="⋚",Rqr="≤",Iqr="≦",Pqr="⩽",Dqr="⪨",kqr="⩽",Lqr="⩿",_qr="⪁",Nqr="⪃",Fqr="⋚︀",Wqr="⪓",qqr="⪅",Bqr="⋖",jqr="⋚",Hqr="⪋",Vqr="⋚",Gqr="≦",$qr="≶",Uqr="≶",Xqr="⪡",Yqr="≲",Kqr="⩽",Qqr="≲",Zqr="⥼",Jqr="⌊",e6r="𝔏",t6r="𝔩",n6r="≶",r6r="⪑",i6r="⥢",o6r="↽",a6r="↼",s6r="⥪",l6r="▄",c6r="Љ",u6r="љ",d6r="⇇",p6r="≪",h6r="⋘",f6r="⌞",g6r="⇚",m6r="⥫",v6r="◺",b6r="Ŀ",y6r="ŀ",M6r="⎰",C6r="⎰",x6r="⪉",w6r="⪉",S6r="⪇",A6r="≨",O6r="⪇",z6r="≨",T6r="⋦",E6r="⟬",R6r="⇽",I6r="⟦",P6r="⟵",D6r="⟵",k6r="⟸",L6r="⟷",_6r="⟷",N6r="⟺",F6r="⟼",W6r="⟶",q6r="⟶",B6r="⟹",j6r="↫",H6r="↬",V6r="⦅",G6r="𝕃",$6r="𝕝",U6r="⨭",X6r="⨴",Y6r="∗",K6r="_",Q6r="↙",Z6r="↘",J6r="◊",eBr="◊",tBr="⧫",nBr="(",rBr="⦓",iBr="⇆",oBr="⌟",aBr="⇋",sBr="⥭",lBr="‎",cBr="⊿",uBr="‹",dBr="𝓁",pBr="ℒ",hBr="↰",fBr="↰",gBr="≲",mBr="⪍",vBr="⪏",bBr="[",yBr="‘",MBr="‚",CBr="Ł",xBr="ł",wBr="⪦",SBr="⩹",ABr="<",OBr="<",zBr="≪",TBr="⋖",EBr="⋋",RBr="⋉",IBr="⥶",PBr="⩻",DBr="◃",kBr="⊴",LBr="◂",_Br="⦖",NBr="⥊",FBr="⥦",WBr="≨︀",qBr="≨︀",BBr="¯",jBr="♂",HBr="✠",VBr="✠",GBr="↦",$Br="↦",UBr="↧",XBr="↤",YBr="↥",KBr="▮",QBr="⨩",ZBr="М",JBr="м",ejr="—",tjr="∺",njr="∡",rjr=" ",ijr="ℳ",ojr="𝔐",ajr="𝔪",sjr="℧",ljr="µ",cjr="*",ujr="⫰",djr="∣",pjr="·",hjr="⊟",fjr="−",gjr="∸",mjr="⨪",vjr="∓",bjr="⫛",yjr="…",Mjr="∓",Cjr="⊧",xjr="𝕄",wjr="𝕞",Sjr="∓",Ajr="𝓂",Ojr="ℳ",zjr="∾",Tjr="Μ",Ejr="μ",Rjr="⊸",Ijr="⊸",Pjr="∇",Djr="Ń",kjr="ń",Ljr="∠⃒",_jr="≉",Njr="⩰̸",Fjr="≋̸",Wjr="ŉ",qjr="≉",Bjr="♮",jjr="ℕ",Hjr="♮",Vjr=" ",Gjr="≎̸",$jr="≏̸",Ujr="⩃",Xjr="Ň",Yjr="ň",Kjr="Ņ",Qjr="ņ",Zjr="≇",Jjr="⩭̸",eHr="⩂",tHr="Н",nHr="н",rHr="–",iHr="⤤",oHr="↗",aHr="⇗",sHr="↗",lHr="≠",cHr="≐̸",uHr="​",dHr="​",pHr="​",hHr="​",fHr="≢",gHr="⤨",mHr="≂̸",vHr="≫",bHr="≪",yHr=`
`,MHr="∄",CHr="∄",xHr="𝔑",wHr="𝔫",SHr="≧̸",AHr="≱",OHr="≱",zHr="≧̸",THr="⩾̸",EHr="⩾̸",RHr="⋙̸",IHr="≵",PHr="≫⃒",DHr="≯",kHr="≯",LHr="≫̸",_Hr="↮",NHr="⇎",FHr="⫲",WHr="∋",qHr="⋼",BHr="⋺",jHr="∋",HHr="Њ",VHr="њ",GHr="↚",$Hr="⇍",UHr="‥",XHr="≦̸",YHr="≰",KHr="↚",QHr="⇍",ZHr="↮",JHr="⇎",e8r="≰",t8r="≦̸",n8r="⩽̸",r8r="⩽̸",i8r="≮",o8r="⋘̸",a8r="≴",s8r="≪⃒",l8r="≮",c8r="⋪",u8r="⋬",d8r="≪̸",p8r="∤",h8r="⁠",f8r=" ",g8r="𝕟",m8r="ℕ",v8r="⫬",b8r="¬",y8r="≢",M8r="≭",C8r="∦",x8r="∉",w8r="≠",S8r="≂̸",A8r="∄",O8r="≯",z8r="≱",T8r="≧̸",E8r="≫̸",R8r="≹",I8r="⩾̸",P8r="≵",D8r="≎̸",k8r="≏̸",L8r="∉",_8r="⋵̸",N8r="⋹̸",F8r="∉",W8r="⋷",q8r="⋶",B8r="⧏̸",j8r="⋪",H8r="⋬",V8r="≮",G8r="≰",$8r="≸",U8r="≪̸",X8r="⩽̸",Y8r="≴",K8r="⪢̸",Q8r="⪡̸",Z8r="∌",J8r="∌",eVr="⋾",tVr="⋽",nVr="⊀",rVr="⪯̸",iVr="⋠",oVr="∌",aVr="⧐̸",sVr="⋫",lVr="⋭",cVr="⊏̸",uVr="⋢",dVr="⊐̸",pVr="⋣",hVr="⊂⃒",fVr="⊈",gVr="⊁",mVr="⪰̸",vVr="⋡",bVr="≿̸",yVr="⊃⃒",MVr="⊉",CVr="≁",xVr="≄",wVr="≇",SVr="≉",AVr="∤",OVr="∦",zVr="∦",TVr="⫽⃥",EVr="∂̸",RVr="⨔",IVr="⊀",PVr="⋠",DVr="⊀",kVr="⪯̸",LVr="⪯̸",_Vr="⤳̸",NVr="↛",FVr="⇏",WVr="↝̸",qVr="↛",BVr="⇏",jVr="⋫",HVr="⋭",VVr="⊁",GVr="⋡",$Vr="⪰̸",UVr="𝒩",XVr="𝓃",YVr="∤",KVr="∦",QVr="≁",ZVr="≄",JVr="≄",eGr="∤",tGr="∦",nGr="⋢",rGr="⋣",iGr="⊄",oGr="⫅̸",aGr="⊈",sGr="⊂⃒",lGr="⊈",cGr="⫅̸",uGr="⊁",dGr="⪰̸",pGr="⊅",hGr="⫆̸",fGr="⊉",gGr="⊃⃒",mGr="⊉",vGr="⫆̸",bGr="≹",yGr="Ñ",MGr="ñ",CGr="≸",xGr="⋪",wGr="⋬",SGr="⋫",AGr="⋭",OGr="Ν",zGr="ν",TGr="#",EGr="№",RGr=" ",IGr="≍⃒",PGr="⊬",DGr="⊭",kGr="⊮",LGr="⊯",_Gr="≥⃒",NGr=">⃒",FGr="⤄",WGr="⧞",qGr="⤂",BGr="≤⃒",jGr="<⃒",HGr="⊴⃒",VGr="⤃",GGr="⊵⃒",$Gr="∼⃒",UGr="⤣",XGr="↖",YGr="⇖",KGr="↖",QGr="⤧",ZGr="Ó",JGr="ó",e7r="⊛",t7r="Ô",n7r="ô",r7r="⊚",i7r="О",o7r="о",a7r="⊝",s7r="Ő",l7r="ő",c7r="⨸",u7r="⊙",d7r="⦼",p7r="Œ",h7r="œ",f7r="⦿",g7r="𝔒",m7r="𝔬",v7r="˛",b7r="Ò",y7r="ò",M7r="⧁",C7r="⦵",x7r="Ω",w7r="∮",S7r="↺",A7r="⦾",O7r="⦻",z7r="‾",T7r="⧀",E7r="Ō",R7r="ō",I7r="Ω",P7r="ω",D7r="Ο",k7r="ο",L7r="⦶",_7r="⊖",N7r="𝕆",F7r="𝕠",W7r="⦷",q7r="“",B7r="‘",j7r="⦹",H7r="⊕",V7r="↻",G7r="⩔",$7r="∨",U7r="⩝",X7r="ℴ",Y7r="ℴ",K7r="ª",Q7r="º",Z7r="⊶",J7r="⩖",e$r="⩗",t$r="⩛",n$r="Ⓢ",r$r="𝒪",i$r="ℴ",o$r="Ø",a$r="ø",s$r="⊘",l$r="Õ",c$r="õ",u$r="⨶",d$r="⨷",p$r="⊗",h$r="Ö",f$r="ö",g$r="⌽",m$r="‾",v$r="⏞",b$r="⎴",y$r="⏜",M$r="¶",C$r="∥",x$r="∥",w$r="⫳",S$r="⫽",A$r="∂",O$r="∂",z$r="П",T$r="п",E$r="%",R$r=".",I$r="‰",P$r="⊥",D$r="‱",k$r="𝔓",L$r="𝔭",_$r="Φ",N$r="φ",F$r="ϕ",W$r="ℳ",q$r="☎",B$r="Π",j$r="π",H$r="⋔",V$r="ϖ",G$r="ℏ",$$r="ℎ",U$r="ℏ",X$r="⨣",Y$r="⊞",K$r="⨢",Q$r="+",Z$r="∔",J$r="⨥",e9r="⩲",t9r="±",n9r="±",r9r="⨦",i9r="⨧",o9r="±",a9r="ℌ",s9r="⨕",l9r="𝕡",c9r="ℙ",u9r="£",d9r="⪷",p9r="⪻",h9r="≺",f9r="≼",g9r="⪷",m9r="≺",v9r="≼",b9r="≺",y9r="⪯",M9r="≼",C9r="≾",x9r="⪯",w9r="⪹",S9r="⪵",A9r="⋨",O9r="⪯",z9r="⪳",T9r="≾",E9r="′",R9r="″",I9r="ℙ",P9r="⪹",D9r="⪵",k9r="⋨",L9r="∏",_9r="∏",N9r="⌮",F9r="⌒",W9r="⌓",q9r="∝",B9r="∝",j9r="∷",H9r="∝",V9r="≾",G9r="⊰",$9r="𝒫",U9r="𝓅",X9r="Ψ",Y9r="ψ",K9r=" ",Q9r="𝔔",Z9r="𝔮",J9r="⨌",eUr="𝕢",tUr="ℚ",nUr="⁗",rUr="𝒬",iUr="𝓆",oUr="ℍ",aUr="⨖",sUr="?",lUr="≟",cUr='"',uUr='"',dUr="⇛",pUr="∽̱",hUr="Ŕ",fUr="ŕ",gUr="√",mUr="⦳",vUr="⟩",bUr="⟫",yUr="⦒",MUr="⦥",CUr="⟩",xUr="»",wUr="⥵",SUr="⇥",AUr="⤠",OUr="⤳",zUr="→",TUr="↠",EUr="⇒",RUr="⤞",IUr="↪",PUr="↬",DUr="⥅",kUr="⥴",LUr="⤖",_Ur="↣",NUr="↝",FUr="⤚",WUr="⤜",qUr="∶",BUr="ℚ",jUr="⤍",HUr="⤏",VUr="⤐",GUr="❳",$Ur="}",UUr="]",XUr="⦌",YUr="⦎",KUr="⦐",QUr="Ř",ZUr="ř",JUr="Ŗ",eXr="ŗ",tXr="⌉",nXr="}",rXr="Р",iXr="р",oXr="⤷",aXr="⥩",sXr="”",lXr="”",cXr="↳",uXr="ℜ",dXr="ℛ",pXr="ℜ",hXr="ℝ",fXr="ℜ",gXr="▭",mXr="®",vXr="®",bXr="∋",yXr="⇋",MXr="⥯",CXr="⥽",xXr="⌋",wXr="𝔯",SXr="ℜ",AXr="⥤",OXr="⇁",zXr="⇀",TXr="⥬",EXr="Ρ",RXr="ρ",IXr="ϱ",PXr="⟩",DXr="⇥",kXr="→",LXr="→",_Xr="⇒",NXr="⇄",FXr="↣",WXr="⌉",qXr="⟧",BXr="⥝",jXr="⥕",HXr="⇂",VXr="⌋",GXr="⇁",$Xr="⇀",UXr="⇄",XXr="⇌",YXr="⇉",KXr="↝",QXr="↦",ZXr="⊢",JXr="⥛",eYr="⋌",tYr="⧐",nYr="⊳",rYr="⊵",iYr="⥏",oYr="⥜",aYr="⥔",sYr="↾",lYr="⥓",cYr="⇀",uYr="˚",dYr="≓",pYr="⇄",hYr="⇌",fYr="‏",gYr="⎱",mYr="⎱",vYr="⫮",bYr="⟭",yYr="⇾",MYr="⟧",CYr="⦆",xYr="𝕣",wYr="ℝ",SYr="⨮",AYr="⨵",OYr="⥰",zYr=")",TYr="⦔",EYr="⨒",RYr="⇉",IYr="⇛",PYr="›",DYr="𝓇",kYr="ℛ",LYr="↱",_Yr="↱",NYr="]",FYr="’",WYr="’",qYr="⋌",BYr="⋊",jYr="▹",HYr="⊵",VYr="▸",GYr="⧎",$Yr="⧴",UYr="⥨",XYr="℞",YYr="Ś",KYr="ś",QYr="‚",ZYr="⪸",JYr="Š",eKr="š",tKr="⪼",nKr="≻",rKr="≽",iKr="⪰",oKr="⪴",aKr="Ş",sKr="ş",lKr="Ŝ",cKr="ŝ",uKr="⪺",dKr="⪶",pKr="⋩",hKr="⨓",fKr="≿",gKr="С",mKr="с",vKr="⊡",bKr="⋅",yKr="⩦",MKr="⤥",CKr="↘",xKr="⇘",wKr="↘",SKr="§",AKr=";",OKr="⤩",zKr="∖",TKr="∖",EKr="✶",RKr="𝔖",IKr="𝔰",PKr="⌢",DKr="♯",kKr="Щ",LKr="щ",_Kr="Ш",NKr="ш",FKr="↓",WKr="←",qKr="∣",BKr="∥",jKr="→",HKr="↑",VKr="­",GKr="Σ",$Kr="σ",UKr="ς",XKr="ς",YKr="∼",KKr="⩪",QKr="≃",ZKr="≃",JKr="⪞",eQr="⪠",tQr="⪝",nQr="⪟",rQr="≆",iQr="⨤",oQr="⥲",aQr="←",sQr="∘",lQr="∖",cQr="⨳",uQr="⧤",dQr="∣",pQr="⌣",hQr="⪪",fQr="⪬",gQr="⪬︀",mQr="Ь",vQr="ь",bQr="⌿",yQr="⧄",MQr="/",CQr="𝕊",xQr="𝕤",wQr="♠",SQr="♠",AQr="∥",OQr="⊓",zQr="⊓︀",TQr="⊔",EQr="⊔︀",RQr="√",IQr="⊏",PQr="⊑",DQr="⊏",kQr="⊑",LQr="⊐",_Qr="⊒",NQr="⊐",FQr="⊒",WQr="□",qQr="□",BQr="⊓",jQr="⊏",HQr="⊑",VQr="⊐",GQr="⊒",$Qr="⊔",UQr="▪",XQr="□",YQr="▪",KQr="→",QQr="𝒮",ZQr="𝓈",JQr="∖",eZr="⌣",tZr="⋆",nZr="⋆",rZr="☆",iZr="★",oZr="ϵ",aZr="ϕ",sZr="¯",lZr="⊂",cZr="⋐",uZr="⪽",dZr="⫅",pZr="⊆",hZr="⫃",fZr="⫁",gZr="⫋",mZr="⊊",vZr="⪿",bZr="⥹",yZr="⊂",MZr="⋐",CZr="⊆",xZr="⫅",wZr="⊆",SZr="⊊",AZr="⫋",OZr="⫇",zZr="⫕",TZr="⫓",EZr="⪸",RZr="≻",IZr="≽",PZr="≻",DZr="⪰",kZr="≽",LZr="≿",_Zr="⪰",NZr="⪺",FZr="⪶",WZr="⋩",qZr="≿",BZr="∋",jZr="∑",HZr="∑",VZr="♪",GZr="¹",$Zr="²",UZr="³",XZr="⊃",YZr="⋑",KZr="⪾",QZr="⫘",ZZr="⫆",JZr="⊇",eJr="⫄",tJr="⊃",nJr="⊇",rJr="⟉",iJr="⫗",oJr="⥻",aJr="⫂",sJr="⫌",lJr="⊋",cJr="⫀",uJr="⊃",dJr="⋑",pJr="⊇",hJr="⫆",fJr="⊋",gJr="⫌",mJr="⫈",vJr="⫔",bJr="⫖",yJr="⤦",MJr="↙",CJr="⇙",xJr="↙",wJr="⤪",SJr="ß",AJr="	",OJr="⌖",zJr="Τ",TJr="τ",EJr="⎴",RJr="Ť",IJr="ť",PJr="Ţ",DJr="ţ",kJr="Т",LJr="т",_Jr="⃛",NJr="⌕",FJr="𝔗",WJr="𝔱",qJr="∴",BJr="∴",jJr="∴",HJr="Θ",VJr="θ",GJr="ϑ",$Jr="ϑ",UJr="≈",XJr="∼",YJr="  ",KJr=" ",QJr=" ",ZJr="≈",JJr="∼",eei="Þ",tei="þ",nei="˜",rei="∼",iei="≃",oei="≅",aei="≈",sei="⨱",lei="⊠",cei="×",uei="⨰",dei="∭",pei="⤨",hei="⌶",fei="⫱",gei="⊤",mei="𝕋",vei="𝕥",bei="⫚",yei="⤩",Mei="‴",Cei="™",xei="™",wei="▵",Sei="▿",Aei="◃",Oei="⊴",zei="≜",Tei="▹",Eei="⊵",Rei="◬",Iei="≜",Pei="⨺",Dei="⃛",kei="⨹",Lei="⧍",_ei="⨻",Nei="⏢",Fei="𝒯",Wei="𝓉",qei="Ц",Bei="ц",jei="Ћ",Hei="ћ",Vei="Ŧ",Gei="ŧ",$ei="≬",Uei="↞",Xei="↠",Yei="Ú",Kei="ú",Qei="↑",Zei="↟",Jei="⇑",eti="⥉",tti="Ў",nti="ў",rti="Ŭ",iti="ŭ",oti="Û",ati="û",sti="У",lti="у",cti="⇅",uti="Ű",dti="ű",pti="⥮",hti="⥾",fti="𝔘",gti="𝔲",mti="Ù",vti="ù",bti="⥣",yti="↿",Mti="↾",Cti="▀",xti="⌜",wti="⌜",Sti="⌏",Ati="◸",Oti="Ū",zti="ū",Tti="¨",Eti="_",Rti="⏟",Iti="⎵",Pti="⏝",Dti="⋃",kti="⊎",Lti="Ų",_ti="ų",Nti="𝕌",Fti="𝕦",Wti="⤒",qti="↑",Bti="↑",jti="⇑",Hti="⇅",Vti="↕",Gti="↕",$ti="⇕",Uti="⥮",Xti="↿",Yti="↾",Kti="⊎",Qti="↖",Zti="↗",Jti="υ",eni="ϒ",tni="ϒ",nni="Υ",rni="υ",ini="↥",oni="⊥",ani="⇈",sni="⌝",lni="⌝",cni="⌎",uni="Ů",dni="ů",pni="◹",hni="𝒰",fni="𝓊",gni="⋰",mni="Ũ",vni="ũ",bni="▵",yni="▴",Mni="⇈",Cni="Ü",xni="ü",wni="⦧",Sni="⦜",Ani="ϵ",Oni="ϰ",zni="∅",Tni="ϕ",Eni="ϖ",Rni="∝",Ini="↕",Pni="⇕",Dni="ϱ",kni="ς",Lni="⊊︀",_ni="⫋︀",Nni="⊋︀",Fni="⫌︀",Wni="ϑ",qni="⊲",Bni="⊳",jni="⫨",Hni="⫫",Vni="⫩",Gni="В",$ni="в",Uni="⊢",Xni="⊨",Yni="⊩",Kni="⊫",Qni="⫦",Zni="⊻",Jni="∨",eri="⋁",tri="≚",nri="⋮",rri="|",iri="‖",ori="|",ari="‖",sri="∣",lri="|",cri="❘",uri="≀",dri=" ",pri="𝔙",hri="𝔳",fri="⊲",gri="⊂⃒",mri="⊃⃒",vri="𝕍",bri="𝕧",yri="∝",Mri="⊳",Cri="𝒱",xri="𝓋",wri="⫋︀",Sri="⊊︀",Ari="⫌︀",Ori="⊋︀",zri="⊪",Tri="⦚",Eri="Ŵ",Rri="ŵ",Iri="⩟",Pri="∧",Dri="⋀",kri="≙",Lri="℘",_ri="𝔚",Nri="𝔴",Fri="𝕎",Wri="𝕨",qri="℘",Bri="≀",jri="≀",Hri="𝒲",Vri="𝓌",Gri="⋂",$ri="◯",Uri="⋃",Xri="▽",Yri="𝔛",Kri="𝔵",Qri="⟷",Zri="⟺",Jri="Ξ",eii="ξ",tii="⟵",nii="⟸",rii="⟼",iii="⋻",oii="⨀",aii="𝕏",sii="𝕩",lii="⨁",cii="⨂",uii="⟶",dii="⟹",pii="𝒳",hii="𝓍",fii="⨆",gii="⨄",mii="△",vii="⋁",bii="⋀",yii="Ý",Mii="ý",Cii="Я",xii="я",wii="Ŷ",Sii="ŷ",Aii="Ы",Oii="ы",zii="¥",Tii="𝔜",Eii="𝔶",Rii="Ї",Iii="ї",Pii="𝕐",Dii="𝕪",kii="𝒴",Lii="𝓎",_ii="Ю",Nii="ю",Fii="ÿ",Wii="Ÿ",qii="Ź",Bii="ź",jii="Ž",Hii="ž",Vii="З",Gii="з",$ii="Ż",Uii="ż",Xii="ℨ",Yii="​",Kii="Ζ",Qii="ζ",Zii="𝔷",Jii="ℨ",eoi="Ж",toi="ж",noi="⇝",roi="𝕫",ioi="ℤ",ooi="𝒵",aoi="𝓏",soi="‍",loi="‌",coi={Aacute:$Or,aacute:UOr,Abreve:XOr,abreve:YOr,ac:KOr,acd:QOr,acE:ZOr,Acirc:JOr,acirc:ezr,acute:tzr,Acy:nzr,acy:rzr,AElig:izr,aelig:ozr,af:azr,Afr:szr,afr:lzr,Agrave:czr,agrave:uzr,alefsym:dzr,aleph:pzr,Alpha:hzr,alpha:fzr,Amacr:gzr,amacr:mzr,amalg:vzr,amp:bzr,AMP:yzr,andand:Mzr,And:Czr,and:xzr,andd:wzr,andslope:Szr,andv:Azr,ang:Ozr,ange:zzr,angle:Tzr,angmsdaa:Ezr,angmsdab:Rzr,angmsdac:Izr,angmsdad:Pzr,angmsdae:Dzr,angmsdaf:kzr,angmsdag:Lzr,angmsdah:_zr,angmsd:Nzr,angrt:Fzr,angrtvb:Wzr,angrtvbd:qzr,angsph:Bzr,angst:jzr,angzarr:Hzr,Aogon:Vzr,aogon:Gzr,Aopf:$zr,aopf:Uzr,apacir:Xzr,ap:Yzr,apE:Kzr,ape:Qzr,apid:Zzr,apos:Jzr,ApplyFunction:e3r,approx:t3r,approxeq:n3r,Aring:r3r,aring:i3r,Ascr:o3r,ascr:a3r,Assign:s3r,ast:l3r,asymp:c3r,asympeq:u3r,Atilde:d3r,atilde:p3r,Auml:h3r,auml:f3r,awconint:g3r,awint:m3r,backcong:v3r,backepsilon:b3r,backprime:y3r,backsim:M3r,backsimeq:C3r,Backslash:x3r,Barv:w3r,barvee:S3r,barwed:A3r,Barwed:O3r,barwedge:z3r,bbrk:T3r,bbrktbrk:E3r,bcong:R3r,Bcy:I3r,bcy:P3r,bdquo:D3r,becaus:k3r,because:L3r,Because:_3r,bemptyv:N3r,bepsi:F3r,bernou:W3r,Bernoullis:q3r,Beta:B3r,beta:j3r,beth:H3r,between:V3r,Bfr:G3r,bfr:$3r,bigcap:U3r,bigcirc:X3r,bigcup:Y3r,bigodot:K3r,bigoplus:Q3r,bigotimes:Z3r,bigsqcup:J3r,bigstar:eTr,bigtriangledown:tTr,bigtriangleup:nTr,biguplus:rTr,bigvee:iTr,bigwedge:oTr,bkarow:aTr,blacklozenge:sTr,blacksquare:lTr,blacktriangle:cTr,blacktriangledown:uTr,blacktriangleleft:dTr,blacktriangleright:pTr,blank:hTr,blk12:fTr,blk14:gTr,blk34:mTr,block:vTr,bne:bTr,bnequiv:yTr,bNot:MTr,bnot:CTr,Bopf:xTr,bopf:wTr,bot:STr,bottom:ATr,bowtie:OTr,boxbox:zTr,boxdl:TTr,boxdL:ETr,boxDl:RTr,boxDL:ITr,boxdr:PTr,boxdR:DTr,boxDr:kTr,boxDR:LTr,boxh:_Tr,boxH:NTr,boxhd:FTr,boxHd:WTr,boxhD:qTr,boxHD:BTr,boxhu:jTr,boxHu:HTr,boxhU:VTr,boxHU:GTr,boxminus:$Tr,boxplus:UTr,boxtimes:XTr,boxul:YTr,boxuL:KTr,boxUl:QTr,boxUL:ZTr,boxur:JTr,boxuR:eEr,boxUr:tEr,boxUR:nEr,boxv:rEr,boxV:iEr,boxvh:oEr,boxvH:aEr,boxVh:sEr,boxVH:lEr,boxvl:cEr,boxvL:uEr,boxVl:dEr,boxVL:pEr,boxvr:hEr,boxvR:fEr,boxVr:gEr,boxVR:mEr,bprime:vEr,breve:bEr,Breve:yEr,brvbar:MEr,bscr:CEr,Bscr:xEr,bsemi:wEr,bsim:SEr,bsime:AEr,bsolb:OEr,bsol:zEr,bsolhsub:TEr,bull:EEr,bullet:REr,bump:IEr,bumpE:PEr,bumpe:DEr,Bumpeq:kEr,bumpeq:LEr,Cacute:_Er,cacute:NEr,capand:FEr,capbrcup:WEr,capcap:qEr,cap:BEr,Cap:jEr,capcup:HEr,capdot:VEr,CapitalDifferentialD:GEr,caps:$Er,caret:UEr,caron:XEr,Cayleys:YEr,ccaps:KEr,Ccaron:QEr,ccaron:ZEr,Ccedil:JEr,ccedil:eRr,Ccirc:tRr,ccirc:nRr,Cconint:rRr,ccups:iRr,ccupssm:oRr,Cdot:aRr,cdot:sRr,cedil:lRr,Cedilla:cRr,cemptyv:uRr,cent:dRr,centerdot:pRr,CenterDot:hRr,cfr:fRr,Cfr:gRr,CHcy:mRr,chcy:vRr,check:bRr,checkmark:yRr,Chi:MRr,chi:CRr,circ:xRr,circeq:wRr,circlearrowleft:SRr,circlearrowright:ARr,circledast:ORr,circledcirc:zRr,circleddash:TRr,CircleDot:ERr,circledR:RRr,circledS:IRr,CircleMinus:PRr,CirclePlus:DRr,CircleTimes:kRr,cir:LRr,cirE:_Rr,cire:NRr,cirfnint:FRr,cirmid:WRr,cirscir:qRr,ClockwiseContourIntegral:BRr,CloseCurlyDoubleQuote:jRr,CloseCurlyQuote:HRr,clubs:VRr,clubsuit:GRr,colon:$Rr,Colon:URr,Colone:XRr,colone:YRr,coloneq:KRr,comma:QRr,commat:ZRr,comp:JRr,compfn:eIr,complement:tIr,complexes:nIr,cong:rIr,congdot:iIr,Congruent:oIr,conint:aIr,Conint:sIr,ContourIntegral:lIr,copf:cIr,Copf:uIr,coprod:dIr,Coproduct:pIr,copy:hIr,COPY:fIr,copysr:gIr,CounterClockwiseContourIntegral:mIr,crarr:vIr,cross:bIr,Cross:yIr,Cscr:MIr,cscr:CIr,csub:xIr,csube:wIr,csup:SIr,csupe:AIr,ctdot:OIr,cudarrl:zIr,cudarrr:TIr,cuepr:EIr,cuesc:RIr,cularr:IIr,cularrp:PIr,cupbrcap:DIr,cupcap:kIr,CupCap:LIr,cup:_Ir,Cup:NIr,cupcup:FIr,cupdot:WIr,cupor:qIr,cups:BIr,curarr:jIr,curarrm:HIr,curlyeqprec:VIr,curlyeqsucc:GIr,curlyvee:$Ir,curlywedge:UIr,curren:XIr,curvearrowleft:YIr,curvearrowright:KIr,cuvee:QIr,cuwed:ZIr,cwconint:JIr,cwint:ePr,cylcty:tPr,dagger:nPr,Dagger:rPr,daleth:iPr,darr:oPr,Darr:aPr,dArr:sPr,dash:lPr,Dashv:cPr,dashv:uPr,dbkarow:dPr,dblac:pPr,Dcaron:hPr,dcaron:fPr,Dcy:gPr,dcy:mPr,ddagger:vPr,ddarr:bPr,DD:yPr,dd:MPr,DDotrahd:CPr,ddotseq:xPr,deg:wPr,Del:SPr,Delta:APr,delta:OPr,demptyv:zPr,dfisht:TPr,Dfr:EPr,dfr:RPr,dHar:IPr,dharl:PPr,dharr:DPr,DiacriticalAcute:kPr,DiacriticalDot:LPr,DiacriticalDoubleAcute:_Pr,DiacriticalGrave:NPr,DiacriticalTilde:FPr,diam:WPr,diamond:qPr,Diamond:BPr,diamondsuit:jPr,diams:HPr,die:VPr,DifferentialD:GPr,digamma:$Pr,disin:UPr,div:XPr,divide:YPr,divideontimes:KPr,divonx:QPr,DJcy:ZPr,djcy:JPr,dlcorn:eDr,dlcrop:tDr,dollar:nDr,Dopf:rDr,dopf:iDr,Dot:oDr,dot:aDr,DotDot:sDr,doteq:lDr,doteqdot:cDr,DotEqual:uDr,dotminus:dDr,dotplus:pDr,dotsquare:hDr,doublebarwedge:fDr,DoubleContourIntegral:gDr,DoubleDot:mDr,DoubleDownArrow:vDr,DoubleLeftArrow:bDr,DoubleLeftRightArrow:yDr,DoubleLeftTee:MDr,DoubleLongLeftArrow:CDr,DoubleLongLeftRightArrow:xDr,DoubleLongRightArrow:wDr,DoubleRightArrow:SDr,DoubleRightTee:ADr,DoubleUpArrow:ODr,DoubleUpDownArrow:zDr,DoubleVerticalBar:TDr,DownArrowBar:EDr,downarrow:RDr,DownArrow:IDr,Downarrow:PDr,DownArrowUpArrow:DDr,DownBreve:kDr,downdownarrows:LDr,downharpoonleft:_Dr,downharpoonright:NDr,DownLeftRightVector:FDr,DownLeftTeeVector:WDr,DownLeftVectorBar:qDr,DownLeftVector:BDr,DownRightTeeVector:jDr,DownRightVectorBar:HDr,DownRightVector:VDr,DownTeeArrow:GDr,DownTee:$Dr,drbkarow:UDr,drcorn:XDr,drcrop:YDr,Dscr:KDr,dscr:QDr,DScy:ZDr,dscy:JDr,dsol:ekr,Dstrok:tkr,dstrok:nkr,dtdot:rkr,dtri:ikr,dtrif:okr,duarr:akr,duhar:skr,dwangle:lkr,DZcy:ckr,dzcy:ukr,dzigrarr:dkr,Eacute:pkr,eacute:hkr,easter:fkr,Ecaron:gkr,ecaron:mkr,Ecirc:vkr,ecirc:bkr,ecir:ykr,ecolon:Mkr,Ecy:Ckr,ecy:xkr,eDDot:wkr,Edot:Skr,edot:Akr,eDot:Okr,ee:zkr,efDot:Tkr,Efr:Ekr,efr:Rkr,eg:Ikr,Egrave:Pkr,egrave:Dkr,egs:kkr,egsdot:Lkr,el:_kr,Element:Nkr,elinters:Fkr,ell:Wkr,els:qkr,elsdot:Bkr,Emacr:jkr,emacr:Hkr,empty:Vkr,emptyset:Gkr,EmptySmallSquare:$kr,emptyv:Ukr,EmptyVerySmallSquare:Xkr,emsp13:Ykr,emsp14:Kkr,emsp:Qkr,ENG:Zkr,eng:Jkr,ensp:eLr,Eogon:tLr,eogon:nLr,Eopf:rLr,eopf:iLr,epar:oLr,eparsl:aLr,eplus:sLr,epsi:lLr,Epsilon:cLr,epsilon:uLr,epsiv:dLr,eqcirc:pLr,eqcolon:hLr,eqsim:fLr,eqslantgtr:gLr,eqslantless:mLr,Equal:vLr,equals:bLr,EqualTilde:yLr,equest:MLr,Equilibrium:CLr,equiv:xLr,equivDD:wLr,eqvparsl:SLr,erarr:ALr,erDot:OLr,escr:zLr,Escr:TLr,esdot:ELr,Esim:RLr,esim:ILr,Eta:PLr,eta:DLr,ETH:kLr,eth:LLr,Euml:_Lr,euml:NLr,euro:FLr,excl:WLr,exist:qLr,Exists:BLr,expectation:jLr,exponentiale:HLr,ExponentialE:VLr,fallingdotseq:GLr,Fcy:$Lr,fcy:ULr,female:XLr,ffilig:YLr,fflig:KLr,ffllig:QLr,Ffr:ZLr,ffr:JLr,filig:e4r,FilledSmallSquare:t4r,FilledVerySmallSquare:n4r,fjlig:r4r,flat:i4r,fllig:o4r,fltns:a4r,fnof:s4r,Fopf:l4r,fopf:c4r,forall:u4r,ForAll:d4r,fork:p4r,forkv:h4r,Fouriertrf:f4r,fpartint:g4r,frac12:m4r,frac13:v4r,frac14:b4r,frac15:y4r,frac16:M4r,frac18:C4r,frac23:x4r,frac25:w4r,frac34:S4r,frac35:A4r,frac38:O4r,frac45:z4r,frac56:T4r,frac58:E4r,frac78:R4r,frasl:I4r,frown:P4r,fscr:D4r,Fscr:k4r,gacute:L4r,Gamma:_4r,gamma:N4r,Gammad:F4r,gammad:W4r,gap:q4r,Gbreve:B4r,gbreve:j4r,Gcedil:H4r,Gcirc:V4r,gcirc:G4r,Gcy:$4r,gcy:U4r,Gdot:X4r,gdot:Y4r,ge:K4r,gE:Q4r,gEl:Z4r,gel:J4r,geq:e_r,geqq:t_r,geqslant:n_r,gescc:r_r,ges:i_r,gesdot:o_r,gesdoto:a_r,gesdotol:s_r,gesl:l_r,gesles:c_r,Gfr:u_r,gfr:d_r,gg:p_r,Gg:h_r,ggg:f_r,gimel:g_r,GJcy:m_r,gjcy:v_r,gla:b_r,gl:y_r,glE:M_r,glj:C_r,gnap:x_r,gnapprox:w_r,gne:S_r,gnE:A_r,gneq:O_r,gneqq:z_r,gnsim:T_r,Gopf:E_r,gopf:R_r,grave:I_r,GreaterEqual:P_r,GreaterEqualLess:D_r,GreaterFullEqual:k_r,GreaterGreater:L_r,GreaterLess:__r,GreaterSlantEqual:N_r,GreaterTilde:F_r,Gscr:W_r,gscr:q_r,gsim:B_r,gsime:j_r,gsiml:H_r,gtcc:V_r,gtcir:G_r,gt:$_r,GT:U_r,Gt:X_r,gtdot:Y_r,gtlPar:K_r,gtquest:Q_r,gtrapprox:Z_r,gtrarr:J_r,gtrdot:e5r,gtreqless:t5r,gtreqqless:n5r,gtrless:r5r,gtrsim:i5r,gvertneqq:o5r,gvnE:a5r,Hacek:s5r,hairsp:l5r,half:c5r,hamilt:u5r,HARDcy:d5r,hardcy:p5r,harrcir:h5r,harr:f5r,hArr:g5r,harrw:m5r,Hat:v5r,hbar:b5r,Hcirc:y5r,hcirc:M5r,hearts:C5r,heartsuit:x5r,hellip:w5r,hercon:S5r,hfr:A5r,Hfr:O5r,HilbertSpace:z5r,hksearow:T5r,hkswarow:E5r,hoarr:R5r,homtht:I5r,hookleftarrow:P5r,hookrightarrow:D5r,hopf:k5r,Hopf:L5r,horbar:_5r,HorizontalLine:N5r,hscr:F5r,Hscr:W5r,hslash:q5r,Hstrok:B5r,hstrok:j5r,HumpDownHump:H5r,HumpEqual:V5r,hybull:G5r,hyphen:$5r,Iacute:U5r,iacute:X5r,ic:Y5r,Icirc:K5r,icirc:Q5r,Icy:Z5r,icy:J5r,Idot:eNr,IEcy:tNr,iecy:nNr,iexcl:rNr,iff:iNr,ifr:oNr,Ifr:aNr,Igrave:sNr,igrave:lNr,ii:cNr,iiiint:uNr,iiint:dNr,iinfin:pNr,iiota:hNr,IJlig:fNr,ijlig:gNr,Imacr:mNr,imacr:vNr,image:bNr,ImaginaryI:yNr,imagline:MNr,imagpart:CNr,imath:xNr,Im:wNr,imof:SNr,imped:ANr,Implies:ONr,incare:zNr,in:"∈",infin:TNr,infintie:ENr,inodot:RNr,intcal:INr,int:PNr,Int:DNr,integers:kNr,Integral:LNr,intercal:_Nr,Intersection:NNr,intlarhk:FNr,intprod:WNr,InvisibleComma:qNr,InvisibleTimes:BNr,IOcy:jNr,iocy:HNr,Iogon:VNr,iogon:GNr,Iopf:$Nr,iopf:UNr,Iota:XNr,iota:YNr,iprod:KNr,iquest:QNr,iscr:ZNr,Iscr:JNr,isin:eFr,isindot:tFr,isinE:nFr,isins:rFr,isinsv:iFr,isinv:oFr,it:aFr,Itilde:sFr,itilde:lFr,Iukcy:cFr,iukcy:uFr,Iuml:dFr,iuml:pFr,Jcirc:hFr,jcirc:fFr,Jcy:gFr,jcy:mFr,Jfr:vFr,jfr:bFr,jmath:yFr,Jopf:MFr,jopf:CFr,Jscr:xFr,jscr:wFr,Jsercy:SFr,jsercy:AFr,Jukcy:OFr,jukcy:zFr,Kappa:TFr,kappa:EFr,kappav:RFr,Kcedil:IFr,kcedil:PFr,Kcy:DFr,kcy:kFr,Kfr:LFr,kfr:_Fr,kgreen:NFr,KHcy:FFr,khcy:WFr,KJcy:qFr,kjcy:BFr,Kopf:jFr,kopf:HFr,Kscr:VFr,kscr:GFr,lAarr:$Fr,Lacute:UFr,lacute:XFr,laemptyv:YFr,lagran:KFr,Lambda:QFr,lambda:ZFr,lang:JFr,Lang:eWr,langd:tWr,langle:nWr,lap:rWr,Laplacetrf:iWr,laquo:oWr,larrb:aWr,larrbfs:sWr,larr:lWr,Larr:cWr,lArr:uWr,larrfs:dWr,larrhk:pWr,larrlp:hWr,larrpl:fWr,larrsim:gWr,larrtl:mWr,latail:vWr,lAtail:bWr,lat:yWr,late:MWr,lates:CWr,lbarr:xWr,lBarr:wWr,lbbrk:SWr,lbrace:AWr,lbrack:OWr,lbrke:zWr,lbrksld:TWr,lbrkslu:EWr,Lcaron:RWr,lcaron:IWr,Lcedil:PWr,lcedil:DWr,lceil:kWr,lcub:LWr,Lcy:_Wr,lcy:NWr,ldca:FWr,ldquo:WWr,ldquor:qWr,ldrdhar:BWr,ldrushar:jWr,ldsh:HWr,le:VWr,lE:GWr,LeftAngleBracket:$Wr,LeftArrowBar:UWr,leftarrow:XWr,LeftArrow:YWr,Leftarrow:KWr,LeftArrowRightArrow:QWr,leftarrowtail:ZWr,LeftCeiling:JWr,LeftDoubleBracket:eqr,LeftDownTeeVector:tqr,LeftDownVectorBar:nqr,LeftDownVector:rqr,LeftFloor:iqr,leftharpoondown:oqr,leftharpoonup:aqr,leftleftarrows:sqr,leftrightarrow:lqr,LeftRightArrow:cqr,Leftrightarrow:uqr,leftrightarrows:dqr,leftrightharpoons:pqr,leftrightsquigarrow:hqr,LeftRightVector:fqr,LeftTeeArrow:gqr,LeftTee:mqr,LeftTeeVector:vqr,leftthreetimes:bqr,LeftTriangleBar:yqr,LeftTriangle:Mqr,LeftTriangleEqual:Cqr,LeftUpDownVector:xqr,LeftUpTeeVector:wqr,LeftUpVectorBar:Sqr,LeftUpVector:Aqr,LeftVectorBar:Oqr,LeftVector:zqr,lEg:Tqr,leg:Eqr,leq:Rqr,leqq:Iqr,leqslant:Pqr,lescc:Dqr,les:kqr,lesdot:Lqr,lesdoto:_qr,lesdotor:Nqr,lesg:Fqr,lesges:Wqr,lessapprox:qqr,lessdot:Bqr,lesseqgtr:jqr,lesseqqgtr:Hqr,LessEqualGreater:Vqr,LessFullEqual:Gqr,LessGreater:$qr,lessgtr:Uqr,LessLess:Xqr,lesssim:Yqr,LessSlantEqual:Kqr,LessTilde:Qqr,lfisht:Zqr,lfloor:Jqr,Lfr:e6r,lfr:t6r,lg:n6r,lgE:r6r,lHar:i6r,lhard:o6r,lharu:a6r,lharul:s6r,lhblk:l6r,LJcy:c6r,ljcy:u6r,llarr:d6r,ll:p6r,Ll:h6r,llcorner:f6r,Lleftarrow:g6r,llhard:m6r,lltri:v6r,Lmidot:b6r,lmidot:y6r,lmoustache:M6r,lmoust:C6r,lnap:x6r,lnapprox:w6r,lne:S6r,lnE:A6r,lneq:O6r,lneqq:z6r,lnsim:T6r,loang:E6r,loarr:R6r,lobrk:I6r,longleftarrow:P6r,LongLeftArrow:D6r,Longleftarrow:k6r,longleftrightarrow:L6r,LongLeftRightArrow:_6r,Longleftrightarrow:N6r,longmapsto:F6r,longrightarrow:W6r,LongRightArrow:q6r,Longrightarrow:B6r,looparrowleft:j6r,looparrowright:H6r,lopar:V6r,Lopf:G6r,lopf:$6r,loplus:U6r,lotimes:X6r,lowast:Y6r,lowbar:K6r,LowerLeftArrow:Q6r,LowerRightArrow:Z6r,loz:J6r,lozenge:eBr,lozf:tBr,lpar:nBr,lparlt:rBr,lrarr:iBr,lrcorner:oBr,lrhar:aBr,lrhard:sBr,lrm:lBr,lrtri:cBr,lsaquo:uBr,lscr:dBr,Lscr:pBr,lsh:hBr,Lsh:fBr,lsim:gBr,lsime:mBr,lsimg:vBr,lsqb:bBr,lsquo:yBr,lsquor:MBr,Lstrok:CBr,lstrok:xBr,ltcc:wBr,ltcir:SBr,lt:ABr,LT:OBr,Lt:zBr,ltdot:TBr,lthree:EBr,ltimes:RBr,ltlarr:IBr,ltquest:PBr,ltri:DBr,ltrie:kBr,ltrif:LBr,ltrPar:_Br,lurdshar:NBr,luruhar:FBr,lvertneqq:WBr,lvnE:qBr,macr:BBr,male:jBr,malt:HBr,maltese:VBr,Map:"⤅",map:GBr,mapsto:$Br,mapstodown:UBr,mapstoleft:XBr,mapstoup:YBr,marker:KBr,mcomma:QBr,Mcy:ZBr,mcy:JBr,mdash:ejr,mDDot:tjr,measuredangle:njr,MediumSpace:rjr,Mellintrf:ijr,Mfr:ojr,mfr:ajr,mho:sjr,micro:ljr,midast:cjr,midcir:ujr,mid:djr,middot:pjr,minusb:hjr,minus:fjr,minusd:gjr,minusdu:mjr,MinusPlus:vjr,mlcp:bjr,mldr:yjr,mnplus:Mjr,models:Cjr,Mopf:xjr,mopf:wjr,mp:Sjr,mscr:Ajr,Mscr:Ojr,mstpos:zjr,Mu:Tjr,mu:Ejr,multimap:Rjr,mumap:Ijr,nabla:Pjr,Nacute:Djr,nacute:kjr,nang:Ljr,nap:_jr,napE:Njr,napid:Fjr,napos:Wjr,napprox:qjr,natural:Bjr,naturals:jjr,natur:Hjr,nbsp:Vjr,nbump:Gjr,nbumpe:$jr,ncap:Ujr,Ncaron:Xjr,ncaron:Yjr,Ncedil:Kjr,ncedil:Qjr,ncong:Zjr,ncongdot:Jjr,ncup:eHr,Ncy:tHr,ncy:nHr,ndash:rHr,nearhk:iHr,nearr:oHr,neArr:aHr,nearrow:sHr,ne:lHr,nedot:cHr,NegativeMediumSpace:uHr,NegativeThickSpace:dHr,NegativeThinSpace:pHr,NegativeVeryThinSpace:hHr,nequiv:fHr,nesear:gHr,nesim:mHr,NestedGreaterGreater:vHr,NestedLessLess:bHr,NewLine:yHr,nexist:MHr,nexists:CHr,Nfr:xHr,nfr:wHr,ngE:SHr,nge:AHr,ngeq:OHr,ngeqq:zHr,ngeqslant:THr,nges:EHr,nGg:RHr,ngsim:IHr,nGt:PHr,ngt:DHr,ngtr:kHr,nGtv:LHr,nharr:_Hr,nhArr:NHr,nhpar:FHr,ni:WHr,nis:qHr,nisd:BHr,niv:jHr,NJcy:HHr,njcy:VHr,nlarr:GHr,nlArr:$Hr,nldr:UHr,nlE:XHr,nle:YHr,nleftarrow:KHr,nLeftarrow:QHr,nleftrightarrow:ZHr,nLeftrightarrow:JHr,nleq:e8r,nleqq:t8r,nleqslant:n8r,nles:r8r,nless:i8r,nLl:o8r,nlsim:a8r,nLt:s8r,nlt:l8r,nltri:c8r,nltrie:u8r,nLtv:d8r,nmid:p8r,NoBreak:h8r,NonBreakingSpace:f8r,nopf:g8r,Nopf:m8r,Not:v8r,not:b8r,NotCongruent:y8r,NotCupCap:M8r,NotDoubleVerticalBar:C8r,NotElement:x8r,NotEqual:w8r,NotEqualTilde:S8r,NotExists:A8r,NotGreater:O8r,NotGreaterEqual:z8r,NotGreaterFullEqual:T8r,NotGreaterGreater:E8r,NotGreaterLess:R8r,NotGreaterSlantEqual:I8r,NotGreaterTilde:P8r,NotHumpDownHump:D8r,NotHumpEqual:k8r,notin:L8r,notindot:_8r,notinE:N8r,notinva:F8r,notinvb:W8r,notinvc:q8r,NotLeftTriangleBar:B8r,NotLeftTriangle:j8r,NotLeftTriangleEqual:H8r,NotLess:V8r,NotLessEqual:G8r,NotLessGreater:$8r,NotLessLess:U8r,NotLessSlantEqual:X8r,NotLessTilde:Y8r,NotNestedGreaterGreater:K8r,NotNestedLessLess:Q8r,notni:Z8r,notniva:J8r,notnivb:eVr,notnivc:tVr,NotPrecedes:nVr,NotPrecedesEqual:rVr,NotPrecedesSlantEqual:iVr,NotReverseElement:oVr,NotRightTriangleBar:aVr,NotRightTriangle:sVr,NotRightTriangleEqual:lVr,NotSquareSubset:cVr,NotSquareSubsetEqual:uVr,NotSquareSuperset:dVr,NotSquareSupersetEqual:pVr,NotSubset:hVr,NotSubsetEqual:fVr,NotSucceeds:gVr,NotSucceedsEqual:mVr,NotSucceedsSlantEqual:vVr,NotSucceedsTilde:bVr,NotSuperset:yVr,NotSupersetEqual:MVr,NotTilde:CVr,NotTildeEqual:xVr,NotTildeFullEqual:wVr,NotTildeTilde:SVr,NotVerticalBar:AVr,nparallel:OVr,npar:zVr,nparsl:TVr,npart:EVr,npolint:RVr,npr:IVr,nprcue:PVr,nprec:DVr,npreceq:kVr,npre:LVr,nrarrc:_Vr,nrarr:NVr,nrArr:FVr,nrarrw:WVr,nrightarrow:qVr,nRightarrow:BVr,nrtri:jVr,nrtrie:HVr,nsc:VVr,nsccue:GVr,nsce:$Vr,Nscr:UVr,nscr:XVr,nshortmid:YVr,nshortparallel:KVr,nsim:QVr,nsime:ZVr,nsimeq:JVr,nsmid:eGr,nspar:tGr,nsqsube:nGr,nsqsupe:rGr,nsub:iGr,nsubE:oGr,nsube:aGr,nsubset:sGr,nsubseteq:lGr,nsubseteqq:cGr,nsucc:uGr,nsucceq:dGr,nsup:pGr,nsupE:hGr,nsupe:fGr,nsupset:gGr,nsupseteq:mGr,nsupseteqq:vGr,ntgl:bGr,Ntilde:yGr,ntilde:MGr,ntlg:CGr,ntriangleleft:xGr,ntrianglelefteq:wGr,ntriangleright:SGr,ntrianglerighteq:AGr,Nu:OGr,nu:zGr,num:TGr,numero:EGr,numsp:RGr,nvap:IGr,nvdash:PGr,nvDash:DGr,nVdash:kGr,nVDash:LGr,nvge:_Gr,nvgt:NGr,nvHarr:FGr,nvinfin:WGr,nvlArr:qGr,nvle:BGr,nvlt:jGr,nvltrie:HGr,nvrArr:VGr,nvrtrie:GGr,nvsim:$Gr,nwarhk:UGr,nwarr:XGr,nwArr:YGr,nwarrow:KGr,nwnear:QGr,Oacute:ZGr,oacute:JGr,oast:e7r,Ocirc:t7r,ocirc:n7r,ocir:r7r,Ocy:i7r,ocy:o7r,odash:a7r,Odblac:s7r,odblac:l7r,odiv:c7r,odot:u7r,odsold:d7r,OElig:p7r,oelig:h7r,ofcir:f7r,Ofr:g7r,ofr:m7r,ogon:v7r,Ograve:b7r,ograve:y7r,ogt:M7r,ohbar:C7r,ohm:x7r,oint:w7r,olarr:S7r,olcir:A7r,olcross:O7r,oline:z7r,olt:T7r,Omacr:E7r,omacr:R7r,Omega:I7r,omega:P7r,Omicron:D7r,omicron:k7r,omid:L7r,ominus:_7r,Oopf:N7r,oopf:F7r,opar:W7r,OpenCurlyDoubleQuote:q7r,OpenCurlyQuote:B7r,operp:j7r,oplus:H7r,orarr:V7r,Or:G7r,or:$7r,ord:U7r,order:X7r,orderof:Y7r,ordf:K7r,ordm:Q7r,origof:Z7r,oror:J7r,orslope:e$r,orv:t$r,oS:n$r,Oscr:r$r,oscr:i$r,Oslash:o$r,oslash:a$r,osol:s$r,Otilde:l$r,otilde:c$r,otimesas:u$r,Otimes:d$r,otimes:p$r,Ouml:h$r,ouml:f$r,ovbar:g$r,OverBar:m$r,OverBrace:v$r,OverBracket:b$r,OverParenthesis:y$r,para:M$r,parallel:C$r,par:x$r,parsim:w$r,parsl:S$r,part:A$r,PartialD:O$r,Pcy:z$r,pcy:T$r,percnt:E$r,period:R$r,permil:I$r,perp:P$r,pertenk:D$r,Pfr:k$r,pfr:L$r,Phi:_$r,phi:N$r,phiv:F$r,phmmat:W$r,phone:q$r,Pi:B$r,pi:j$r,pitchfork:H$r,piv:V$r,planck:G$r,planckh:$$r,plankv:U$r,plusacir:X$r,plusb:Y$r,pluscir:K$r,plus:Q$r,plusdo:Z$r,plusdu:J$r,pluse:e9r,PlusMinus:t9r,plusmn:n9r,plussim:r9r,plustwo:i9r,pm:o9r,Poincareplane:a9r,pointint:s9r,popf:l9r,Popf:c9r,pound:u9r,prap:d9r,Pr:p9r,pr:h9r,prcue:f9r,precapprox:g9r,prec:m9r,preccurlyeq:v9r,Precedes:b9r,PrecedesEqual:y9r,PrecedesSlantEqual:M9r,PrecedesTilde:C9r,preceq:x9r,precnapprox:w9r,precneqq:S9r,precnsim:A9r,pre:O9r,prE:z9r,precsim:T9r,prime:E9r,Prime:R9r,primes:I9r,prnap:P9r,prnE:D9r,prnsim:k9r,prod:L9r,Product:_9r,profalar:N9r,profline:F9r,profsurf:W9r,prop:q9r,Proportional:B9r,Proportion:j9r,propto:H9r,prsim:V9r,prurel:G9r,Pscr:$9r,pscr:U9r,Psi:X9r,psi:Y9r,puncsp:K9r,Qfr:Q9r,qfr:Z9r,qint:J9r,qopf:eUr,Qopf:tUr,qprime:nUr,Qscr:rUr,qscr:iUr,quaternions:oUr,quatint:aUr,quest:sUr,questeq:lUr,quot:cUr,QUOT:uUr,rAarr:dUr,race:pUr,Racute:hUr,racute:fUr,radic:gUr,raemptyv:mUr,rang:vUr,Rang:bUr,rangd:yUr,range:MUr,rangle:CUr,raquo:xUr,rarrap:wUr,rarrb:SUr,rarrbfs:AUr,rarrc:OUr,rarr:zUr,Rarr:TUr,rArr:EUr,rarrfs:RUr,rarrhk:IUr,rarrlp:PUr,rarrpl:DUr,rarrsim:kUr,Rarrtl:LUr,rarrtl:_Ur,rarrw:NUr,ratail:FUr,rAtail:WUr,ratio:qUr,rationals:BUr,rbarr:jUr,rBarr:HUr,RBarr:VUr,rbbrk:GUr,rbrace:$Ur,rbrack:UUr,rbrke:XUr,rbrksld:YUr,rbrkslu:KUr,Rcaron:QUr,rcaron:ZUr,Rcedil:JUr,rcedil:eXr,rceil:tXr,rcub:nXr,Rcy:rXr,rcy:iXr,rdca:oXr,rdldhar:aXr,rdquo:sXr,rdquor:lXr,rdsh:cXr,real:uXr,realine:dXr,realpart:pXr,reals:hXr,Re:fXr,rect:gXr,reg:mXr,REG:vXr,ReverseElement:bXr,ReverseEquilibrium:yXr,ReverseUpEquilibrium:MXr,rfisht:CXr,rfloor:xXr,rfr:wXr,Rfr:SXr,rHar:AXr,rhard:OXr,rharu:zXr,rharul:TXr,Rho:EXr,rho:RXr,rhov:IXr,RightAngleBracket:PXr,RightArrowBar:DXr,rightarrow:kXr,RightArrow:LXr,Rightarrow:_Xr,RightArrowLeftArrow:NXr,rightarrowtail:FXr,RightCeiling:WXr,RightDoubleBracket:qXr,RightDownTeeVector:BXr,RightDownVectorBar:jXr,RightDownVector:HXr,RightFloor:VXr,rightharpoondown:GXr,rightharpoonup:$Xr,rightleftarrows:UXr,rightleftharpoons:XXr,rightrightarrows:YXr,rightsquigarrow:KXr,RightTeeArrow:QXr,RightTee:ZXr,RightTeeVector:JXr,rightthreetimes:eYr,RightTriangleBar:tYr,RightTriangle:nYr,RightTriangleEqual:rYr,RightUpDownVector:iYr,RightUpTeeVector:oYr,RightUpVectorBar:aYr,RightUpVector:sYr,RightVectorBar:lYr,RightVector:cYr,ring:uYr,risingdotseq:dYr,rlarr:pYr,rlhar:hYr,rlm:fYr,rmoustache:gYr,rmoust:mYr,rnmid:vYr,roang:bYr,roarr:yYr,robrk:MYr,ropar:CYr,ropf:xYr,Ropf:wYr,roplus:SYr,rotimes:AYr,RoundImplies:OYr,rpar:zYr,rpargt:TYr,rppolint:EYr,rrarr:RYr,Rrightarrow:IYr,rsaquo:PYr,rscr:DYr,Rscr:kYr,rsh:LYr,Rsh:_Yr,rsqb:NYr,rsquo:FYr,rsquor:WYr,rthree:qYr,rtimes:BYr,rtri:jYr,rtrie:HYr,rtrif:VYr,rtriltri:GYr,RuleDelayed:$Yr,ruluhar:UYr,rx:XYr,Sacute:YYr,sacute:KYr,sbquo:QYr,scap:ZYr,Scaron:JYr,scaron:eKr,Sc:tKr,sc:nKr,sccue:rKr,sce:iKr,scE:oKr,Scedil:aKr,scedil:sKr,Scirc:lKr,scirc:cKr,scnap:uKr,scnE:dKr,scnsim:pKr,scpolint:hKr,scsim:fKr,Scy:gKr,scy:mKr,sdotb:vKr,sdot:bKr,sdote:yKr,searhk:MKr,searr:CKr,seArr:xKr,searrow:wKr,sect:SKr,semi:AKr,seswar:OKr,setminus:zKr,setmn:TKr,sext:EKr,Sfr:RKr,sfr:IKr,sfrown:PKr,sharp:DKr,SHCHcy:kKr,shchcy:LKr,SHcy:_Kr,shcy:NKr,ShortDownArrow:FKr,ShortLeftArrow:WKr,shortmid:qKr,shortparallel:BKr,ShortRightArrow:jKr,ShortUpArrow:HKr,shy:VKr,Sigma:GKr,sigma:$Kr,sigmaf:UKr,sigmav:XKr,sim:YKr,simdot:KKr,sime:QKr,simeq:ZKr,simg:JKr,simgE:eQr,siml:tQr,simlE:nQr,simne:rQr,simplus:iQr,simrarr:oQr,slarr:aQr,SmallCircle:sQr,smallsetminus:lQr,smashp:cQr,smeparsl:uQr,smid:dQr,smile:pQr,smt:hQr,smte:fQr,smtes:gQr,SOFTcy:mQr,softcy:vQr,solbar:bQr,solb:yQr,sol:MQr,Sopf:CQr,sopf:xQr,spades:wQr,spadesuit:SQr,spar:AQr,sqcap:OQr,sqcaps:zQr,sqcup:TQr,sqcups:EQr,Sqrt:RQr,sqsub:IQr,sqsube:PQr,sqsubset:DQr,sqsubseteq:kQr,sqsup:LQr,sqsupe:_Qr,sqsupset:NQr,sqsupseteq:FQr,square:WQr,Square:qQr,SquareIntersection:BQr,SquareSubset:jQr,SquareSubsetEqual:HQr,SquareSuperset:VQr,SquareSupersetEqual:GQr,SquareUnion:$Qr,squarf:UQr,squ:XQr,squf:YQr,srarr:KQr,Sscr:QQr,sscr:ZQr,ssetmn:JQr,ssmile:eZr,sstarf:tZr,Star:nZr,star:rZr,starf:iZr,straightepsilon:oZr,straightphi:aZr,strns:sZr,sub:lZr,Sub:cZr,subdot:uZr,subE:dZr,sube:pZr,subedot:hZr,submult:fZr,subnE:gZr,subne:mZr,subplus:vZr,subrarr:bZr,subset:yZr,Subset:MZr,subseteq:CZr,subseteqq:xZr,SubsetEqual:wZr,subsetneq:SZr,subsetneqq:AZr,subsim:OZr,subsub:zZr,subsup:TZr,succapprox:EZr,succ:RZr,succcurlyeq:IZr,Succeeds:PZr,SucceedsEqual:DZr,SucceedsSlantEqual:kZr,SucceedsTilde:LZr,succeq:_Zr,succnapprox:NZr,succneqq:FZr,succnsim:WZr,succsim:qZr,SuchThat:BZr,sum:jZr,Sum:HZr,sung:VZr,sup1:GZr,sup2:$Zr,sup3:UZr,sup:XZr,Sup:YZr,supdot:KZr,supdsub:QZr,supE:ZZr,supe:JZr,supedot:eJr,Superset:tJr,SupersetEqual:nJr,suphsol:rJr,suphsub:iJr,suplarr:oJr,supmult:aJr,supnE:sJr,supne:lJr,supplus:cJr,supset:uJr,Supset:dJr,supseteq:pJr,supseteqq:hJr,supsetneq:fJr,supsetneqq:gJr,supsim:mJr,supsub:vJr,supsup:bJr,swarhk:yJr,swarr:MJr,swArr:CJr,swarrow:xJr,swnwar:wJr,szlig:SJr,Tab:AJr,target:OJr,Tau:zJr,tau:TJr,tbrk:EJr,Tcaron:RJr,tcaron:IJr,Tcedil:PJr,tcedil:DJr,Tcy:kJr,tcy:LJr,tdot:_Jr,telrec:NJr,Tfr:FJr,tfr:WJr,there4:qJr,therefore:BJr,Therefore:jJr,Theta:HJr,theta:VJr,thetasym:GJr,thetav:$Jr,thickapprox:UJr,thicksim:XJr,ThickSpace:YJr,ThinSpace:KJr,thinsp:QJr,thkap:ZJr,thksim:JJr,THORN:eei,thorn:tei,tilde:nei,Tilde:rei,TildeEqual:iei,TildeFullEqual:oei,TildeTilde:aei,timesbar:sei,timesb:lei,times:cei,timesd:uei,tint:dei,toea:pei,topbot:hei,topcir:fei,top:gei,Topf:mei,topf:vei,topfork:bei,tosa:yei,tprime:Mei,trade:Cei,TRADE:xei,triangle:wei,triangledown:Sei,triangleleft:Aei,trianglelefteq:Oei,triangleq:zei,triangleright:Tei,trianglerighteq:Eei,tridot:Rei,trie:Iei,triminus:Pei,TripleDot:Dei,triplus:kei,trisb:Lei,tritime:_ei,trpezium:Nei,Tscr:Fei,tscr:Wei,TScy:qei,tscy:Bei,TSHcy:jei,tshcy:Hei,Tstrok:Vei,tstrok:Gei,twixt:$ei,twoheadleftarrow:Uei,twoheadrightarrow:Xei,Uacute:Yei,uacute:Kei,uarr:Qei,Uarr:Zei,uArr:Jei,Uarrocir:eti,Ubrcy:tti,ubrcy:nti,Ubreve:rti,ubreve:iti,Ucirc:oti,ucirc:ati,Ucy:sti,ucy:lti,udarr:cti,Udblac:uti,udblac:dti,udhar:pti,ufisht:hti,Ufr:fti,ufr:gti,Ugrave:mti,ugrave:vti,uHar:bti,uharl:yti,uharr:Mti,uhblk:Cti,ulcorn:xti,ulcorner:wti,ulcrop:Sti,ultri:Ati,Umacr:Oti,umacr:zti,uml:Tti,UnderBar:Eti,UnderBrace:Rti,UnderBracket:Iti,UnderParenthesis:Pti,Union:Dti,UnionPlus:kti,Uogon:Lti,uogon:_ti,Uopf:Nti,uopf:Fti,UpArrowBar:Wti,uparrow:qti,UpArrow:Bti,Uparrow:jti,UpArrowDownArrow:Hti,updownarrow:Vti,UpDownArrow:Gti,Updownarrow:$ti,UpEquilibrium:Uti,upharpoonleft:Xti,upharpoonright:Yti,uplus:Kti,UpperLeftArrow:Qti,UpperRightArrow:Zti,upsi:Jti,Upsi:eni,upsih:tni,Upsilon:nni,upsilon:rni,UpTeeArrow:ini,UpTee:oni,upuparrows:ani,urcorn:sni,urcorner:lni,urcrop:cni,Uring:uni,uring:dni,urtri:pni,Uscr:hni,uscr:fni,utdot:gni,Utilde:mni,utilde:vni,utri:bni,utrif:yni,uuarr:Mni,Uuml:Cni,uuml:xni,uwangle:wni,vangrt:Sni,varepsilon:Ani,varkappa:Oni,varnothing:zni,varphi:Tni,varpi:Eni,varpropto:Rni,varr:Ini,vArr:Pni,varrho:Dni,varsigma:kni,varsubsetneq:Lni,varsubsetneqq:_ni,varsupsetneq:Nni,varsupsetneqq:Fni,vartheta:Wni,vartriangleleft:qni,vartriangleright:Bni,vBar:jni,Vbar:Hni,vBarv:Vni,Vcy:Gni,vcy:$ni,vdash:Uni,vDash:Xni,Vdash:Yni,VDash:Kni,Vdashl:Qni,veebar:Zni,vee:Jni,Vee:eri,veeeq:tri,vellip:nri,verbar:rri,Verbar:iri,vert:ori,Vert:ari,VerticalBar:sri,VerticalLine:lri,VerticalSeparator:cri,VerticalTilde:uri,VeryThinSpace:dri,Vfr:pri,vfr:hri,vltri:fri,vnsub:gri,vnsup:mri,Vopf:vri,vopf:bri,vprop:yri,vrtri:Mri,Vscr:Cri,vscr:xri,vsubnE:wri,vsubne:Sri,vsupnE:Ari,vsupne:Ori,Vvdash:zri,vzigzag:Tri,Wcirc:Eri,wcirc:Rri,wedbar:Iri,wedge:Pri,Wedge:Dri,wedgeq:kri,weierp:Lri,Wfr:_ri,wfr:Nri,Wopf:Fri,wopf:Wri,wp:qri,wr:Bri,wreath:jri,Wscr:Hri,wscr:Vri,xcap:Gri,xcirc:$ri,xcup:Uri,xdtri:Xri,Xfr:Yri,xfr:Kri,xharr:Qri,xhArr:Zri,Xi:Jri,xi:eii,xlarr:tii,xlArr:nii,xmap:rii,xnis:iii,xodot:oii,Xopf:aii,xopf:sii,xoplus:lii,xotime:cii,xrarr:uii,xrArr:dii,Xscr:pii,xscr:hii,xsqcup:fii,xuplus:gii,xutri:mii,xvee:vii,xwedge:bii,Yacute:yii,yacute:Mii,YAcy:Cii,yacy:xii,Ycirc:wii,ycirc:Sii,Ycy:Aii,ycy:Oii,yen:zii,Yfr:Tii,yfr:Eii,YIcy:Rii,yicy:Iii,Yopf:Pii,yopf:Dii,Yscr:kii,yscr:Lii,YUcy:_ii,yucy:Nii,yuml:Fii,Yuml:Wii,Zacute:qii,zacute:Bii,Zcaron:jii,zcaron:Hii,Zcy:Vii,zcy:Gii,Zdot:$ii,zdot:Uii,zeetrf:Xii,ZeroWidthSpace:Yii,Zeta:Kii,zeta:Qii,zfr:Zii,Zfr:Jii,ZHcy:eoi,zhcy:toi,zigrarr:noi,zopf:roi,Zopf:ioi,Zscr:ooi,zscr:aoi,zwj:soi,zwnj:loi};var Ple,FVe;function rxt(){return FVe||(FVe=1,Ple=coi),Ple}var Dle,WVe;function FOe(){return WVe||(WVe=1,Dle=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Dle}var aR={},kle,qVe;function uoi(){if(qVe)return kle;qVe=1;var e={};function t(r){var i,o,a=e[r];if(a)return a;for(a=e[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),/^[0-9a-z]$/i.test(o)?a.push(o):a.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2));for(i=0;i<r.length;i++)a[r.charCodeAt(i)]=r[i];return a}function n(r,i,o){var a,s,l,c,u,d="";for(typeof i!="string"&&(o=i,i=n.defaultChars),typeof o>"u"&&(o=!0),u=t(i),a=0,s=r.length;a<s;a++){if(l=r.charCodeAt(a),o&&l===37&&a+2<s&&/^[0-9a-f]{2}$/i.test(r.slice(a+1,a+3))){d+=r.slice(a,a+3),a+=2;continue}if(l<128){d+=u[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&a+1<s&&(c=r.charCodeAt(a+1),c>=56320&&c<=57343)){d+=encodeURIComponent(r[a]+r[a+1]),a++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(r[a])}return d}return n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",kle=n,kle}var Lle,BVe;function doi(){if(BVe)return Lle;BVe=1;var e={};function t(r){var i,o,a=e[r];if(a)return a;for(a=e[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),a.push(o);for(i=0;i<r.length;i++)o=r.charCodeAt(i),a[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2);return a}function n(r,i){var o;return typeof i!="string"&&(i=n.defaultChars),o=t(i),r.replace(/(%[a-f0-9]{2})+/gi,function(a){var s,l,c,u,d,p,h,g="";for(s=0,l=a.length;s<l;s+=3){if(c=parseInt(a.slice(s+1,s+3),16),c<128){g+=o[c];continue}if((c&224)===192&&s+3<l&&(u=parseInt(a.slice(s+4,s+6),16),(u&192)===128)){h=c<<6&1984|u&63,h<128?g+="��":g+=String.fromCharCode(h),s+=3;continue}if((c&240)===224&&s+6<l&&(u=parseInt(a.slice(s+4,s+6),16),d=parseInt(a.slice(s+7,s+9),16),(u&192)===128&&(d&192)===128)){h=c<<12&61440|u<<6&4032|d&63,h<2048||h>=55296&&h<=57343?g+="���":g+=String.fromCharCode(h),s+=6;continue}if((c&248)===240&&s+9<l&&(u=parseInt(a.slice(s+4,s+6),16),d=parseInt(a.slice(s+7,s+9),16),p=parseInt(a.slice(s+10,s+12),16),(u&192)===128&&(d&192)===128&&(p&192)===128)){h=c<<18&1835008|u<<12&258048|d<<6&4032|p&63,h<65536||h>1114111?g+="����":(h-=65536,g+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),s+=9;continue}g+="�"}return g})}return n.defaultChars=";/?:@&=+$,#",n.componentChars="",Lle=n,Lle}var _le,jVe;function poi(){return jVe||(jVe=1,_le=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}),_le}var Nle,HVe;function hoi(){if(HVe)return Nle;HVe=1;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
`,"	"],o=["{","}","|","\\","^","`"].concat(i),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),l=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function g(m,b){if(m&&m instanceof e)return m;var y=new e;return y.parse(m,b),y}return e.prototype.parse=function(m,b){var y,M,C,x,w,S=m;if(S=S.trim(),!b&&m.split("#").length===1){var A=r.exec(S);if(A)return this.pathname=A[1],A[2]&&(this.search=A[2]),this}var z=t.exec(S);if(z&&(z=z[0],C=z.toLowerCase(),this.protocol=z,S=S.substr(z.length)),(b||z||S.match(/^\/\/[^@\/]+@[^@\/]+/))&&(w=S.substr(0,2)==="//",w&&!(z&&p[z])&&(S=S.substr(2),this.slashes=!0)),!p[z]&&(w||z&&!h[z])){var O=-1;for(y=0;y<l.length;y++)x=S.indexOf(l[y]),x!==-1&&(O===-1||x<O)&&(O=x);var T,R;for(O===-1?R=S.lastIndexOf("@"):R=S.lastIndexOf("@",O),R!==-1&&(T=S.slice(0,R),S=S.slice(R+1),this.auth=T),O=-1,y=0;y<s.length;y++)x=S.indexOf(s[y]),x!==-1&&(O===-1||x<O)&&(O=x);O===-1&&(O=S.length),S[O-1]===":"&&O--;var P=S.slice(0,O);S=S.slice(O),this.parseHost(P),this.hostname=this.hostname||"";var F=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!F){var N=this.hostname.split(/\./);for(y=0,M=N.length;y<M;y++){var L=N[y];if(L&&!L.match(u)){for(var W="",j=0,V=L.length;j<V;j++)L.charCodeAt(j)>127?W+="x":W+=L[j];if(!W.match(u)){var G=N.slice(0,y),q=N.slice(y+1),$=L.match(d);$&&(G.push($[1]),q.unshift($[2])),q.length&&(S=q.join(".")+S),this.hostname=G.join(".");break}}}}this.hostname.length>c&&(this.hostname=""),F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var U=S.indexOf("#");U!==-1&&(this.hash=S.substr(U),S=S.slice(0,U));var X=S.indexOf("?");return X!==-1&&(this.search=S.substr(X),S=S.slice(0,X)),S&&(this.pathname=S),h[C]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(m){var b=n.exec(m);b&&(b=b[0],b!==":"&&(this.port=b.substr(1)),m=m.substr(0,m.length-b.length)),m&&(this.hostname=m)},Nle=g,Nle}var VVe;function ixt(){return VVe||(VVe=1,aR.encode=uoi(),aR.decode=doi(),aR.format=poi(),aR.parse=hoi()),aR}var wA={},Fle,GVe;function oxt(){return GVe||(GVe=1,Fle=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Fle}var Wle,$Ve;function axt(){return $Ve||($Ve=1,Wle=/[\0-\x1F\x7F-\x9F]/),Wle}var qle,UVe;function foi(){return UVe||(UVe=1,qle=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),qle}var Ble,XVe;function sxt(){return XVe||(XVe=1,Ble=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ble}var YVe;function goi(){return YVe||(YVe=1,wA.Any=oxt(),wA.Cc=axt(),wA.Cf=foi(),wA.P=FOe(),wA.Z=sxt()),wA}var KVe;function Ja(){return KVe||(KVe=1,(function(e){function t(N){return Object.prototype.toString.call(N)}function n(N){return t(N)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(N,L){return r.call(N,L)}function o(N){var L=Array.prototype.slice.call(arguments,1);return L.forEach(function(W){if(W){if(typeof W!="object")throw new TypeError(W+"must be object");Object.keys(W).forEach(function(j){N[j]=W[j]})}}),N}function a(N,L,W){return[].concat(N.slice(0,L),W,N.slice(L+1))}function s(N){return!(N>=55296&&N<=57343||N>=64976&&N<=65007||(N&65535)===65535||(N&65535)===65534||N>=0&&N<=8||N===11||N>=14&&N<=31||N>=127&&N<=159||N>1114111)}function l(N){if(N>65535){N-=65536;var L=55296+(N>>10),W=56320+(N&1023);return String.fromCharCode(L,W)}return String.fromCharCode(N)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+u.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=rxt();function g(N,L){var W;return i(h,L)?h[L]:L.charCodeAt(0)===35&&p.test(L)&&(W=L[1].toLowerCase()==="x"?parseInt(L.slice(2),16):parseInt(L.slice(1),10),s(W))?l(W):N}function m(N){return N.indexOf("\\")<0?N:N.replace(c,"$1")}function b(N){return N.indexOf("\\")<0&&N.indexOf("&")<0?N:N.replace(d,function(L,W,j){return W||g(L,j)})}var y=/[&<>"]/,M=/[&<>"]/g,C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function x(N){return C[N]}function w(N){return y.test(N)?N.replace(M,x):N}var S=/[.?*+^$[\]\\(){}|-]/g;function A(N){return N.replace(S,"\\$&")}function z(N){switch(N){case 9:case 32:return!0}return!1}function O(N){if(N>=8192&&N<=8202)return!0;switch(N){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var T=FOe();function R(N){return T.test(N)}function P(N){switch(N){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function F(N){return N=N.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(N=N.replace(/ẞ/g,"ß")),N.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=ixt(),e.lib.ucmicro=goi(),e.assign=o,e.isString=n,e.has=i,e.unescapeMd=m,e.unescapeAll=b,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=w,e.arrayReplaceAt=a,e.isSpace=z,e.isWhiteSpace=O,e.isMdAsciiPunct=P,e.isPunctChar=R,e.escapeRE=A,e.normalizeReference=F})(Ile)),Ile}var V_={},jle,QVe;function moi(){return QVe||(QVe=1,jle=function(t,n,r){var i,o,a,s,l=-1,c=t.posMax,u=t.pos;for(t.pos=n+1,i=1;t.pos<c;){if(a=t.src.charCodeAt(t.pos),a===93&&(i--,i===0)){o=!0;break}if(s=t.pos,t.md.inline.skipToken(t),a===91){if(s===t.pos-1)i++;else if(r)return t.pos=u,-1}}return o&&(l=t.pos),t.pos=u,l}),jle}var Hle,ZVe;function voi(){if(ZVe)return Hle;ZVe=1;var e=Ja().unescapeAll;return Hle=function(n,r,i){var o,a,s=r,l={ok:!1,pos:0,lines:0,str:""};if(n.charCodeAt(s)===60){for(s++;s<i;){if(o=n.charCodeAt(s),o===10||o===60)return l;if(o===62)return l.pos=s+1,l.str=e(n.slice(r+1,s)),l.ok=!0,l;if(o===92&&s+1<i){s+=2;continue}s++}return l}for(a=0;s<i&&(o=n.charCodeAt(s),!(o===32||o<32||o===127));){if(o===92&&s+1<i){if(n.charCodeAt(s+1)===32)break;s+=2;continue}if(o===40&&(a++,a>32))return l;if(o===41){if(a===0)break;a--}s++}return r===s||a!==0||(l.str=e(n.slice(r,s)),l.pos=s,l.ok=!0),l},Hle}var Vle,JVe;function boi(){if(JVe)return Vle;JVe=1;var e=Ja().unescapeAll;return Vle=function(n,r,i){var o,a,s=0,l=r,c={ok:!1,pos:0,lines:0,str:""};if(l>=i||(a=n.charCodeAt(l),a!==34&&a!==39&&a!==40))return c;for(l++,a===40&&(a=41);l<i;){if(o=n.charCodeAt(l),o===a)return c.pos=l+1,c.lines=s,c.str=e(n.slice(r+1,l)),c.ok=!0,c;if(o===40&&a===41)return c;o===10?s++:o===92&&l+1<i&&(l++,n.charCodeAt(l)===10&&s++),l++}return c},Vle}var eGe;function yoi(){return eGe||(eGe=1,V_.parseLinkLabel=moi(),V_.parseLinkDestination=voi(),V_.parseLinkTitle=boi()),V_}var Gle,tGe;function Moi(){if(tGe)return Gle;tGe=1;var e=Ja().assign,t=Ja().unescapeAll,n=Ja().escapeHtml,r={};r.code_inline=function(o,a,s,l,c){var u=o[a];return"<code"+c.renderAttrs(u)+">"+n(u.content)+"</code>"},r.code_block=function(o,a,s,l,c){var u=o[a];return"<pre"+c.renderAttrs(u)+"><code>"+n(o[a].content)+`</code></pre>
`},r.fence=function(o,a,s,l,c){var u=o[a],d=u.info?t(u.info).trim():"",p="",h="",g,m,b,y,M;return d&&(b=d.split(/(\s+)/g),p=b[0],h=b.slice(2).join("")),s.highlight?g=s.highlight(u.content,p,h)||n(u.content):g=n(u.content),g.indexOf("<pre")===0?g+`
`:d?(m=u.attrIndex("class"),y=u.attrs?u.attrs.slice():[],m<0?y.push(["class",s.langPrefix+p]):(y[m]=y[m].slice(),y[m][1]+=" "+s.langPrefix+p),M={attrs:y},"<pre><code"+c.renderAttrs(M)+">"+g+`</code></pre>
`):"<pre><code"+c.renderAttrs(u)+">"+g+`</code></pre>
`},r.image=function(o,a,s,l,c){var u=o[a];return u.attrs[u.attrIndex("alt")][1]=c.renderInlineAsText(u.children,s,l),c.renderToken(o,a,s)},r.hardbreak=function(o,a,s){return s.xhtmlOut?`<br />
`:`<br>
`},r.softbreak=function(o,a,s){return s.breaks?s.xhtmlOut?`<br />
`:`<br>
`:`
`},r.text=function(o,a){return n(o[a].content)},r.html_block=function(o,a){return o[a].content},r.html_inline=function(o,a){return o[a].content};function i(){this.rules=e({},r)}return i.prototype.renderAttrs=function(a){var s,l,c;if(!a.attrs)return"";for(c="",s=0,l=a.attrs.length;s<l;s++)c+=" "+n(a.attrs[s][0])+'="'+n(a.attrs[s][1])+'"';return c},i.prototype.renderToken=function(a,s,l){var c,u="",d=!1,p=a[s];return p.hidden?"":(p.block&&p.nesting!==-1&&s&&a[s-1].hidden&&(u+=`
`),u+=(p.nesting===-1?"</":"<")+p.tag,u+=this.renderAttrs(p),p.nesting===0&&l.xhtmlOut&&(u+=" /"),p.block&&(d=!0,p.nesting===1&&s+1<a.length&&(c=a[s+1],(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===p.tag)&&(d=!1))),u+=d?`>
`:">",u)},i.prototype.renderInline=function(o,a,s){for(var l,c="",u=this.rules,d=0,p=o.length;d<p;d++)l=o[d].type,typeof u[l]<"u"?c+=u[l](o,d,a,s,this):c+=this.renderToken(o,d,a);return c},i.prototype.renderInlineAsText=function(o,a,s){for(var l="",c=0,u=o.length;c<u;c++)o[c].type==="text"?l+=o[c].content:o[c].type==="image"?l+=this.renderInlineAsText(o[c].children,a,s):o[c].type==="softbreak"&&(l+=`
`);return l},i.prototype.render=function(o,a,s){var l,c,u,d="",p=this.rules;for(l=0,c=o.length;l<c;l++)u=o[l].type,u==="inline"?d+=this.renderInline(o[l].children,a,s):typeof p[u]<"u"?d+=p[u](o,l,a,s,this):d+=this.renderToken(o,l,a,s);return d},Gle=i,Gle}var $le,nGe;function WOe(){if(nGe)return $le;nGe=1;function e(){this.__rules__=[],this.__cache__=null}return e.prototype.__find__=function(t){for(var n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1},e.prototype.__compile__=function(){var t=this,n=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(i){n.indexOf(i)<0&&n.push(i)})}),t.__cache__={},n.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(i){i.enabled&&(r&&i.alt.indexOf(r)<0||t.__cache__[r].push(i.fn))})})},e.prototype.at=function(t,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=n,this.__rules__[i].alt=o.alt||[],this.__cache__=null},e.prototype.before=function(t,n,r,i){var o=this.__find__(t),a=i||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:n,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},e.prototype.after=function(t,n,r,i){var o=this.__find__(t),a=i||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:n,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},e.prototype.push=function(t,n,r){var i=r||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(i){var o=this.__find__(i);if(o<0){if(n)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!0,r.push(i)},this),this.__cache__=null,r},e.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,n)},e.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(i){var o=this.__find__(i);if(o<0){if(n)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!1,r.push(i)},this),this.__cache__=null,r},e.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]},$le=e,$le}var Ule,rGe;function Coi(){if(rGe)return Ule;rGe=1;var e=/\r\n?|\n/g,t=/\0/g;return Ule=function(r){var i;i=r.src.replace(e,`
`),i=i.replace(t,"�"),r.src=i},Ule}var Xle,iGe;function xoi(){return iGe||(iGe=1,Xle=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}),Xle}var Yle,oGe;function woi(){return oGe||(oGe=1,Yle=function(t){var n=t.tokens,r,i,o;for(i=0,o=n.length;i<o;i++)r=n[i],r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}),Yle}var Kle,aGe;function Soi(){if(aGe)return Kle;aGe=1;var e=Ja().arrayReplaceAt;function t(r){return/^<a[>\s]/i.test(r)}function n(r){return/^<\/a\s*>/i.test(r)}return Kle=function(i){var o,a,s,l,c,u,d,p,h,g,m,b,y,M,C,x,w=i.tokens,S;if(i.md.options.linkify){for(a=0,s=w.length;a<s;a++)if(!(w[a].type!=="inline"||!i.md.linkify.pretest(w[a].content)))for(l=w[a].children,y=0,o=l.length-1;o>=0;o--){if(u=l[o],u.type==="link_close"){for(o--;l[o].level!==u.level&&l[o].type!=="link_open";)o--;continue}if(u.type==="html_inline"&&(t(u.content)&&y>0&&y--,n(u.content)&&y++),!(y>0)&&u.type==="text"&&i.md.linkify.test(u.content)){for(h=u.content,S=i.md.linkify.match(h),d=[],b=u.level,m=0,S.length>0&&S[0].index===0&&o>0&&l[o-1].type==="text_special"&&(S=S.slice(1)),p=0;p<S.length;p++)M=S[p].url,C=i.md.normalizeLink(M),i.md.validateLink(C)&&(x=S[p].text,S[p].schema?S[p].schema==="mailto:"&&!/^mailto:/i.test(x)?x=i.md.normalizeLinkText("mailto:"+x).replace(/^mailto:/,""):x=i.md.normalizeLinkText(x):x=i.md.normalizeLinkText("http://"+x).replace(/^http:\/\//,""),g=S[p].index,g>m&&(c=new i.Token("text","",0),c.content=h.slice(m,g),c.level=b,d.push(c)),c=new i.Token("link_open","a",1),c.attrs=[["href",C]],c.level=b++,c.markup="linkify",c.info="auto",d.push(c),c=new i.Token("text","",0),c.content=x,c.level=b,d.push(c),c=new i.Token("link_close","a",-1),c.level=--b,c.markup="linkify",c.info="auto",d.push(c),m=S[p].lastIndex);m<h.length&&(c=new i.Token("text","",0),c.content=h.slice(m),c.level=b,d.push(c)),w[a].children=l=e(l,o,d)}}}},Kle}var Qle,sGe;function Aoi(){if(sGe)return Qle;sGe=1;var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t=/\((c|tm|r)\)/i,n=/\((c|tm|r)\)/ig,r={c:"©",r:"®",tm:"™"};function i(s,l){return r[l.toLowerCase()]}function o(s){var l,c,u=0;for(l=s.length-1;l>=0;l--)c=s[l],c.type==="text"&&!u&&(c.content=c.content.replace(n,i)),c.type==="link_open"&&c.info==="auto"&&u--,c.type==="link_close"&&c.info==="auto"&&u++}function a(s){var l,c,u=0;for(l=s.length-1;l>=0;l--)c=s[l],c.type==="text"&&!u&&e.test(c.content)&&(c.content=c.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),c.type==="link_open"&&c.info==="auto"&&u--,c.type==="link_close"&&c.info==="auto"&&u++}return Qle=function(l){var c;if(l.md.options.typographer)for(c=l.tokens.length-1;c>=0;c--)l.tokens[c].type==="inline"&&(t.test(l.tokens[c].content)&&o(l.tokens[c].children),e.test(l.tokens[c].content)&&a(l.tokens[c].children))},Qle}var Zle,lGe;function Ooi(){if(lGe)return Zle;lGe=1;var e=Ja().isWhiteSpace,t=Ja().isPunctChar,n=Ja().isMdAsciiPunct,r=/['"]/,i=/['"]/g,o="’";function a(l,c,u){return l.slice(0,c)+u+l.slice(c+1)}function s(l,c){var u,d,p,h,g,m,b,y,M,C,x,w,S,A,z,O,T,R,P,F,N;for(P=[],u=0;u<l.length;u++){for(d=l[u],b=l[u].level,T=P.length-1;T>=0&&!(P[T].level<=b);T--);if(P.length=T+1,d.type==="text"){p=d.content,g=0,m=p.length;e:for(;g<m&&(i.lastIndex=g,h=i.exec(p),!!h);){if(z=O=!0,g=h.index+1,R=h[0]==="'",M=32,h.index-1>=0)M=p.charCodeAt(h.index-1);else for(T=u-1;T>=0&&!(l[T].type==="softbreak"||l[T].type==="hardbreak");T--)if(l[T].content){M=l[T].content.charCodeAt(l[T].content.length-1);break}if(C=32,g<m)C=p.charCodeAt(g);else for(T=u+1;T<l.length&&!(l[T].type==="softbreak"||l[T].type==="hardbreak");T++)if(l[T].content){C=l[T].content.charCodeAt(0);break}if(x=n(M)||t(String.fromCharCode(M)),w=n(C)||t(String.fromCharCode(C)),S=e(M),A=e(C),A?z=!1:w&&(S||x||(z=!1)),S?O=!1:x&&(A||w||(O=!1)),C===34&&h[0]==='"'&&M>=48&&M<=57&&(O=z=!1),z&&O&&(z=x,O=w),!z&&!O){R&&(d.content=a(d.content,h.index,o));continue}if(O){for(T=P.length-1;T>=0&&(y=P[T],!(P[T].level<b));T--)if(y.single===R&&P[T].level===b){y=P[T],R?(F=c.md.options.quotes[2],N=c.md.options.quotes[3]):(F=c.md.options.quotes[0],N=c.md.options.quotes[1]),d.content=a(d.content,h.index,N),l[y.token].content=a(l[y.token].content,y.pos,F),g+=N.length-1,y.token===u&&(g+=F.length-1),p=d.content,m=p.length,P.length=T;continue e}}z?P.push({token:u,pos:h.index,single:R,level:b}):O&&R&&(d.content=a(d.content,h.index,o))}}}}return Zle=function(c){var u;if(c.md.options.typographer)for(u=c.tokens.length-1;u>=0;u--)c.tokens[u].type!=="inline"||!r.test(c.tokens[u].content)||s(c.tokens[u].children,c)},Zle}var Jle,cGe;function zoi(){return cGe||(cGe=1,Jle=function(t){var n,r,i,o,a,s,l=t.tokens;for(n=0,r=l.length;n<r;n++)if(l[n].type==="inline"){for(i=l[n].children,a=i.length,o=0;o<a;o++)i[o].type==="text_special"&&(i[o].type="text");for(o=s=0;o<a;o++)i[o].type==="text"&&o+1<a&&i[o+1].type==="text"?i[o+1].content=i[o].content+i[o+1].content:(o!==s&&(i[s]=i[o]),s++);o!==s&&(i.length=s)}}),Jle}var ece,uGe;function qOe(){if(uGe)return ece;uGe=1;function e(t,n,r){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return e.prototype.attrIndex=function(n){var r,i,o;if(!this.attrs)return-1;for(r=this.attrs,i=0,o=r.length;i<o;i++)if(r[i][0]===n)return i;return-1},e.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]},e.prototype.attrSet=function(n,r){var i=this.attrIndex(n),o=[n,r];i<0?this.attrPush(o):this.attrs[i]=o},e.prototype.attrGet=function(n){var r=this.attrIndex(n),i=null;return r>=0&&(i=this.attrs[r][1]),i},e.prototype.attrJoin=function(n,r){var i=this.attrIndex(n);i<0?this.attrPush([n,r]):this.attrs[i][1]=this.attrs[i][1]+" "+r},ece=e,ece}var tce,dGe;function Toi(){if(dGe)return tce;dGe=1;var e=qOe();function t(n,r,i){this.src=n,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,tce=t,tce}var nce,pGe;function Eoi(){if(pGe)return nce;pGe=1;var e=WOe(),t=[["normalize",Coi()],["block",xoi()],["inline",woi()],["linkify",Soi()],["replacements",Aoi()],["smartquotes",Ooi()],["text_join",zoi()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1])}return n.prototype.process=function(r){var i,o,a;for(a=this.ruler.getRules(""),i=0,o=a.length;i<o;i++)a[i](r)},n.prototype.State=Toi(),nce=n,nce}var rce,hGe;function Roi(){if(hGe)return rce;hGe=1;var e=Ja().isSpace;function t(r,i){var o=r.bMarks[i]+r.tShift[i],a=r.eMarks[i];return r.src.slice(o,a)}function n(r){var i=[],o=0,a=r.length,s,l=!1,c=0,u="";for(s=r.charCodeAt(o);o<a;)s===124&&(l?(u+=r.substring(c,o-1),c=o):(i.push(u+r.substring(c,o)),u="",c=o+1)),l=s===92,o++,s=r.charCodeAt(o);return i.push(u+r.substring(c)),i}return rce=function(i,o,a,s){var l,c,u,d,p,h,g,m,b,y,M,C,x,w,S,A,z,O;if(o+2>a||(h=o+1,i.sCount[h]<i.blkIndent)||i.sCount[h]-i.blkIndent>=4||(u=i.bMarks[h]+i.tShift[h],u>=i.eMarks[h])||(z=i.src.charCodeAt(u++),z!==124&&z!==45&&z!==58)||u>=i.eMarks[h]||(O=i.src.charCodeAt(u++),O!==124&&O!==45&&O!==58&&!e(O))||z===45&&e(O))return!1;for(;u<i.eMarks[h];){if(l=i.src.charCodeAt(u),l!==124&&l!==45&&l!==58&&!e(l))return!1;u++}for(c=t(i,o+1),g=c.split("|"),y=[],d=0;d<g.length;d++){if(M=g[d].trim(),!M){if(d===0||d===g.length-1)continue;return!1}if(!/^:?-+:?$/.test(M))return!1;M.charCodeAt(M.length-1)===58?y.push(M.charCodeAt(0)===58?"center":"right"):M.charCodeAt(0)===58?y.push("left"):y.push("")}if(c=t(i,o).trim(),c.indexOf("|")===-1||i.sCount[o]-i.blkIndent>=4||(g=n(c),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),m=g.length,m===0||m!==y.length))return!1;if(s)return!0;for(w=i.parentType,i.parentType="table",A=i.md.block.ruler.getRules("blockquote"),b=i.push("table_open","table",1),b.map=C=[o,0],b=i.push("thead_open","thead",1),b.map=[o,o+1],b=i.push("tr_open","tr",1),b.map=[o,o+1],d=0;d<g.length;d++)b=i.push("th_open","th",1),y[d]&&(b.attrs=[["style","text-align:"+y[d]]]),b=i.push("inline","",0),b.content=g[d].trim(),b.children=[],b=i.push("th_close","th",-1);for(b=i.push("tr_close","tr",-1),b=i.push("thead_close","thead",-1),h=o+2;h<a&&!(i.sCount[h]<i.blkIndent);h++){for(S=!1,d=0,p=A.length;d<p;d++)if(A[d](i,h,a,!0)){S=!0;break}if(S||(c=t(i,h).trim(),!c)||i.sCount[h]-i.blkIndent>=4)break;for(g=n(c),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),h===o+2&&(b=i.push("tbody_open","tbody",1),b.map=x=[o+2,0]),b=i.push("tr_open","tr",1),b.map=[h,h+1],d=0;d<m;d++)b=i.push("td_open","td",1),y[d]&&(b.attrs=[["style","text-align:"+y[d]]]),b=i.push("inline","",0),b.content=g[d]?g[d].trim():"",b.children=[],b=i.push("td_close","td",-1);b=i.push("tr_close","tr",-1)}return x&&(b=i.push("tbody_close","tbody",-1),x[1]=h),b=i.push("table_close","table",-1),C[1]=h,i.parentType=w,i.line=h,!0},rce}var ice,fGe;function Ioi(){return fGe||(fGe=1,ice=function(t,n,r){var i,o,a;if(t.sCount[n]-t.blkIndent<4)return!1;for(o=i=n+1;i<r;){if(t.isEmpty(i)){i++;continue}if(t.sCount[i]-t.blkIndent>=4){i++,o=i;continue}break}return t.line=o,a=t.push("code_block","code",0),a.content=t.getLines(n,o,4+t.blkIndent,!1)+`
`,a.map=[n,t.line],!0}),ice}var oce,gGe;function Poi(){return gGe||(gGe=1,oce=function(t,n,r,i){var o,a,s,l,c,u,d,p=!1,h=t.bMarks[n]+t.tShift[n],g=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||h+3>g||(o=t.src.charCodeAt(h),o!==126&&o!==96)||(c=h,h=t.skipChars(h,o),a=h-c,a<3)||(d=t.src.slice(c,h),s=t.src.slice(h,g),o===96&&s.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(l=n;l++,!(l>=r||(h=c=t.bMarks[l]+t.tShift[l],g=t.eMarks[l],h<g&&t.sCount[l]<t.blkIndent));)if(t.src.charCodeAt(h)===o&&!(t.sCount[l]-t.blkIndent>=4)&&(h=t.skipChars(h,o),!(h-c<a)&&(h=t.skipSpaces(h),!(h<g)))){p=!0;break}return a=t.sCount[n],t.line=l+(p?1:0),u=t.push("fence","code",0),u.info=s,u.content=t.getLines(n+1,l,a,!0),u.markup=d,u.map=[n,t.line],!0}),oce}var ace,mGe;function Doi(){if(mGe)return ace;mGe=1;var e=Ja().isSpace;return ace=function(n,r,i,o){var a,s,l,c,u,d,p,h,g,m,b,y,M,C,x,w,S,A,z,O,T=n.lineMax,R=n.bMarks[r]+n.tShift[r],P=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(R)!==62)return!1;if(o)return!0;for(m=[],b=[],C=[],x=[],A=n.md.block.ruler.getRules("blockquote"),M=n.parentType,n.parentType="blockquote",h=r;h<i&&(O=n.sCount[h]<n.blkIndent,R=n.bMarks[h]+n.tShift[h],P=n.eMarks[h],!(R>=P));h++){if(n.src.charCodeAt(R++)===62&&!O){for(c=n.sCount[h]+1,n.src.charCodeAt(R)===32?(R++,c++,a=!1,w=!0):n.src.charCodeAt(R)===9?(w=!0,(n.bsCount[h]+c)%4===3?(R++,c++,a=!1):a=!0):w=!1,g=c,m.push(n.bMarks[h]),n.bMarks[h]=R;R<P&&(s=n.src.charCodeAt(R),e(s));){s===9?g+=4-(g+n.bsCount[h]+(a?1:0))%4:g++;R++}d=R>=P,b.push(n.bsCount[h]),n.bsCount[h]=n.sCount[h]+1+(w?1:0),C.push(n.sCount[h]),n.sCount[h]=g-c,x.push(n.tShift[h]),n.tShift[h]=R-n.bMarks[h];continue}if(d)break;for(S=!1,l=0,u=A.length;l<u;l++)if(A[l](n,h,i,!0)){S=!0;break}if(S){n.lineMax=h,n.blkIndent!==0&&(m.push(n.bMarks[h]),b.push(n.bsCount[h]),x.push(n.tShift[h]),C.push(n.sCount[h]),n.sCount[h]-=n.blkIndent);break}m.push(n.bMarks[h]),b.push(n.bsCount[h]),x.push(n.tShift[h]),C.push(n.sCount[h]),n.sCount[h]=-1}for(y=n.blkIndent,n.blkIndent=0,z=n.push("blockquote_open","blockquote",1),z.markup=">",z.map=p=[r,0],n.md.block.tokenize(n,r,h),z=n.push("blockquote_close","blockquote",-1),z.markup=">",n.lineMax=T,n.parentType=M,p[1]=n.line,l=0;l<x.length;l++)n.bMarks[l+r]=m[l],n.tShift[l+r]=x[l],n.sCount[l+r]=C[l],n.bsCount[l+r]=b[l];return n.blkIndent=y,!0},ace}var sce,vGe;function koi(){if(vGe)return sce;vGe=1;var e=Ja().isSpace;return sce=function(n,r,i,o){var a,s,l,c,u=n.bMarks[r]+n.tShift[r],d=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(a=n.src.charCodeAt(u++),a!==42&&a!==45&&a!==95))return!1;for(s=1;u<d;){if(l=n.src.charCodeAt(u++),l!==a&&!e(l))return!1;l===a&&s++}return s<3?!1:(o||(n.line=r+1,c=n.push("hr","hr",0),c.map=[r,n.line],c.markup=Array(s+1).join(String.fromCharCode(a))),!0)},sce}var lce,bGe;function Loi(){if(bGe)return lce;bGe=1;var e=Ja().isSpace;function t(i,o){var a,s,l,c;return s=i.bMarks[o]+i.tShift[o],l=i.eMarks[o],a=i.src.charCodeAt(s++),a!==42&&a!==45&&a!==43||s<l&&(c=i.src.charCodeAt(s),!e(c))?-1:s}function n(i,o){var a,s=i.bMarks[o]+i.tShift[o],l=s,c=i.eMarks[o];if(l+1>=c||(a=i.src.charCodeAt(l++),a<48||a>57))return-1;for(;;){if(l>=c)return-1;if(a=i.src.charCodeAt(l++),a>=48&&a<=57){if(l-s>=10)return-1;continue}if(a===41||a===46)break;return-1}return l<c&&(a=i.src.charCodeAt(l),!e(a))?-1:l}function r(i,o){var a,s,l=i.level+2;for(a=o+2,s=i.tokens.length-2;a<s;a++)i.tokens[a].level===l&&i.tokens[a].type==="paragraph_open"&&(i.tokens[a+2].hidden=!0,i.tokens[a].hidden=!0,a+=2)}return lce=function(o,a,s,l){var c,u,d,p,h,g,m,b,y,M,C,x,w,S,A,z,O,T,R,P,F,N,L,W,j,V,G,q=a,$=!1,U=!0;if(o.sCount[q]-o.blkIndent>=4||o.listIndent>=0&&o.sCount[q]-o.listIndent>=4&&o.sCount[q]<o.blkIndent)return!1;if(l&&o.parentType==="paragraph"&&o.sCount[q]>=o.blkIndent&&($=!0),(N=n(o,q))>=0){if(m=!0,W=o.bMarks[q]+o.tShift[q],w=Number(o.src.slice(W,N-1)),$&&w!==1)return!1}else if((N=t(o,q))>=0)m=!1;else return!1;if($&&o.skipSpaces(N)>=o.eMarks[q])return!1;if(l)return!0;for(x=o.src.charCodeAt(N-1),C=o.tokens.length,m?(G=o.push("ordered_list_open","ol",1),w!==1&&(G.attrs=[["start",w]])):G=o.push("bullet_list_open","ul",1),G.map=M=[q,0],G.markup=String.fromCharCode(x),L=!1,V=o.md.block.ruler.getRules("list"),O=o.parentType,o.parentType="list";q<s;){for(F=N,S=o.eMarks[q],g=A=o.sCount[q]+N-(o.bMarks[q]+o.tShift[q]);F<S;){if(c=o.src.charCodeAt(F),c===9)A+=4-(A+o.bsCount[q])%4;else if(c===32)A++;else break;F++}if(u=F,u>=S?h=1:h=A-g,h>4&&(h=1),p=g+h,G=o.push("list_item_open","li",1),G.markup=String.fromCharCode(x),G.map=b=[q,0],m&&(G.info=o.src.slice(W,N-1)),P=o.tight,R=o.tShift[q],T=o.sCount[q],z=o.listIndent,o.listIndent=o.blkIndent,o.blkIndent=p,o.tight=!0,o.tShift[q]=u-o.bMarks[q],o.sCount[q]=A,u>=S&&o.isEmpty(q+1)?o.line=Math.min(o.line+2,s):o.md.block.tokenize(o,q,s,!0),(!o.tight||L)&&(U=!1),L=o.line-q>1&&o.isEmpty(o.line-1),o.blkIndent=o.listIndent,o.listIndent=z,o.tShift[q]=R,o.sCount[q]=T,o.tight=P,G=o.push("list_item_close","li",-1),G.markup=String.fromCharCode(x),q=o.line,b[1]=q,q>=s||o.sCount[q]<o.blkIndent||o.sCount[q]-o.blkIndent>=4)break;for(j=!1,d=0,y=V.length;d<y;d++)if(V[d](o,q,s,!0)){j=!0;break}if(j)break;if(m){if(N=n(o,q),N<0)break;W=o.bMarks[q]+o.tShift[q]}else if(N=t(o,q),N<0)break;if(x!==o.src.charCodeAt(N-1))break}return m?G=o.push("ordered_list_close","ol",-1):G=o.push("bullet_list_close","ul",-1),G.markup=String.fromCharCode(x),M[1]=q,o.line=q,o.parentType=O,U&&r(o,C),!0},lce}var cce,yGe;function _oi(){if(yGe)return cce;yGe=1;var e=Ja().normalizeReference,t=Ja().isSpace;return cce=function(r,i,o,a){var s,l,c,u,d,p,h,g,m,b,y,M,C,x,w,S,A=0,z=r.bMarks[i]+r.tShift[i],O=r.eMarks[i],T=i+1;if(r.sCount[i]-r.blkIndent>=4||r.src.charCodeAt(z)!==91)return!1;for(;++z<O;)if(r.src.charCodeAt(z)===93&&r.src.charCodeAt(z-1)!==92){if(z+1===O||r.src.charCodeAt(z+1)!==58)return!1;break}for(u=r.lineMax,w=r.md.block.ruler.getRules("reference"),b=r.parentType,r.parentType="reference";T<u&&!r.isEmpty(T);T++)if(!(r.sCount[T]-r.blkIndent>3)&&!(r.sCount[T]<0)){for(x=!1,p=0,h=w.length;p<h;p++)if(w[p](r,T,u,!0)){x=!0;break}if(x)break}for(C=r.getLines(i,T,r.blkIndent,!1).trim(),O=C.length,z=1;z<O;z++){if(s=C.charCodeAt(z),s===91)return!1;if(s===93){m=z;break}else s===10?A++:s===92&&(z++,z<O&&C.charCodeAt(z)===10&&A++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(z=m+2;z<O;z++)if(s=C.charCodeAt(z),s===10)A++;else if(!t(s))break;if(y=r.md.helpers.parseLinkDestination(C,z,O),!y.ok||(d=r.md.normalizeLink(y.str),!r.md.validateLink(d)))return!1;for(z=y.pos,A+=y.lines,l=z,c=A,M=z;z<O;z++)if(s=C.charCodeAt(z),s===10)A++;else if(!t(s))break;for(y=r.md.helpers.parseLinkTitle(C,z,O),z<O&&M!==z&&y.ok?(S=y.str,z=y.pos,A+=y.lines):(S="",z=l,A=c);z<O&&(s=C.charCodeAt(z),!!t(s));)z++;if(z<O&&C.charCodeAt(z)!==10&&S)for(S="",z=l,A=c;z<O&&(s=C.charCodeAt(z),!!t(s));)z++;return z<O&&C.charCodeAt(z)!==10||(g=e(C.slice(1,m)),!g)?!1:(a||(typeof r.env.references>"u"&&(r.env.references={}),typeof r.env.references[g]>"u"&&(r.env.references[g]={title:S,href:d}),r.parentType=b,r.line=i+A+1),!0)},cce}var uce,MGe;function Noi(){return MGe||(MGe=1,uce=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]),uce}var pG={},CGe;function lxt(){if(CGe)return pG;CGe=1;var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",t="[^\"'=<>`\\x00-\\x20]+",n="'[^']*'",r='"[^"]*"',i="(?:"+t+"|"+n+"|"+r+")",o="(?:\\s+"+e+"(?:\\s*=\\s*"+i+")?)",a="<[A-Za-z][A-Za-z0-9\\-]*"+o+"*\\s*\\/?>",s="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",l="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",c="<[?][\\s\\S]*?[?]>",u="<![A-Z]+\\s+[^>]*>",d="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",p=new RegExp("^(?:"+a+"|"+s+"|"+l+"|"+c+"|"+u+"|"+d+")"),h=new RegExp("^(?:"+a+"|"+s+")");return pG.HTML_TAG_RE=p,pG.HTML_OPEN_CLOSE_TAG_RE=h,pG}var dce,xGe;function Foi(){if(xGe)return dce;xGe=1;var e=Noi(),t=lxt().HTML_OPEN_CLOSE_TAG_RE,n=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(t.source+"\\s*$"),/^$/,!1]];return dce=function(i,o,a,s){var l,c,u,d,p=i.bMarks[o]+i.tShift[o],h=i.eMarks[o];if(i.sCount[o]-i.blkIndent>=4||!i.md.options.html||i.src.charCodeAt(p)!==60)return!1;for(d=i.src.slice(p,h),l=0;l<n.length&&!n[l][0].test(d);l++);if(l===n.length)return!1;if(s)return n[l][2];if(c=o+1,!n[l][1].test(d)){for(;c<a&&!(i.sCount[c]<i.blkIndent);c++)if(p=i.bMarks[c]+i.tShift[c],h=i.eMarks[c],d=i.src.slice(p,h),n[l][1].test(d)){d.length!==0&&c++;break}}return i.line=c,u=i.push("html_block","",0),u.map=[o,c],u.content=i.getLines(o,c,i.blkIndent,!0),!0},dce}var pce,wGe;function Woi(){if(wGe)return pce;wGe=1;var e=Ja().isSpace;return pce=function(n,r,i,o){var a,s,l,c,u=n.bMarks[r]+n.tShift[r],d=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(a=n.src.charCodeAt(u),a!==35||u>=d))return!1;for(s=1,a=n.src.charCodeAt(++u);a===35&&u<d&&s<=6;)s++,a=n.src.charCodeAt(++u);return s>6||u<d&&!e(a)?!1:(o||(d=n.skipSpacesBack(d,u),l=n.skipCharsBack(d,35,u),l>u&&e(n.src.charCodeAt(l-1))&&(d=l),n.line=r+1,c=n.push("heading_open","h"+String(s),1),c.markup="########".slice(0,s),c.map=[r,n.line],c=n.push("inline","",0),c.content=n.src.slice(u,d).trim(),c.map=[r,n.line],c.children=[],c=n.push("heading_close","h"+String(s),-1),c.markup="########".slice(0,s)),!0)},pce}var hce,SGe;function qoi(){return SGe||(SGe=1,hce=function(t,n,r){var i,o,a,s,l,c,u,d,p,h=n+1,g,m=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(g=t.parentType,t.parentType="paragraph";h<r&&!t.isEmpty(h);h++)if(!(t.sCount[h]-t.blkIndent>3)){if(t.sCount[h]>=t.blkIndent&&(c=t.bMarks[h]+t.tShift[h],u=t.eMarks[h],c<u&&(p=t.src.charCodeAt(c),(p===45||p===61)&&(c=t.skipChars(c,p),c=t.skipSpaces(c),c>=u)))){d=p===61?1:2;break}if(!(t.sCount[h]<0)){for(o=!1,a=0,s=m.length;a<s;a++)if(m[a](t,h,r,!0)){o=!0;break}if(o)break}}return d?(i=t.getLines(n,h,t.blkIndent,!1).trim(),t.line=h+1,l=t.push("heading_open","h"+String(d),1),l.markup=String.fromCharCode(p),l.map=[n,t.line],l=t.push("inline","",0),l.content=i,l.map=[n,t.line-1],l.children=[],l=t.push("heading_close","h"+String(d),-1),l.markup=String.fromCharCode(p),t.parentType=g,!0):!1}),hce}var fce,AGe;function Boi(){return AGe||(AGe=1,fce=function(t,n,r){var i,o,a,s,l,c,u=n+1,d=t.md.block.ruler.getRules("paragraph");for(c=t.parentType,t.parentType="paragraph";u<r&&!t.isEmpty(u);u++)if(!(t.sCount[u]-t.blkIndent>3)&&!(t.sCount[u]<0)){for(o=!1,a=0,s=d.length;a<s;a++)if(d[a](t,u,r,!0)){o=!0;break}if(o)break}return i=t.getLines(n,u,t.blkIndent,!1).trim(),t.line=u,l=t.push("paragraph_open","p",1),l.map=[n,t.line],l=t.push("inline","",0),l.content=i,l.map=[n,t.line],l.children=[],l=t.push("paragraph_close","p",-1),t.parentType=c,!0}),fce}var gce,OGe;function joi(){if(OGe)return gce;OGe=1;var e=qOe(),t=Ja().isSpace;function n(r,i,o,a){var s,l,c,u,d,p,h,g;for(this.src=r,this.md=i,this.env=o,this.tokens=a,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",l=this.src,g=!1,c=u=p=h=0,d=l.length;u<d;u++){if(s=l.charCodeAt(u),!g)if(t(s)){p++,s===9?h+=4-h%4:h++;continue}else g=!0;(s===10||u===d-1)&&(s!==10&&u++,this.bMarks.push(c),this.eMarks.push(u),this.tShift.push(p),this.sCount.push(h),this.bsCount.push(0),g=!1,p=0,h=0,c=u+1)}this.bMarks.push(l.length),this.eMarks.push(l.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return n.prototype.push=function(r,i,o){var a=new e(r,i,o);return a.block=!0,o<0&&this.level--,a.level=this.level,o>0&&this.level++,this.tokens.push(a),a},n.prototype.isEmpty=function(i){return this.bMarks[i]+this.tShift[i]>=this.eMarks[i]},n.prototype.skipEmptyLines=function(i){for(var o=this.lineMax;i<o&&!(this.bMarks[i]+this.tShift[i]<this.eMarks[i]);i++);return i},n.prototype.skipSpaces=function(i){for(var o,a=this.src.length;i<a&&(o=this.src.charCodeAt(i),!!t(o));i++);return i},n.prototype.skipSpacesBack=function(i,o){if(i<=o)return i;for(;i>o;)if(!t(this.src.charCodeAt(--i)))return i+1;return i},n.prototype.skipChars=function(i,o){for(var a=this.src.length;i<a&&this.src.charCodeAt(i)===o;i++);return i},n.prototype.skipCharsBack=function(i,o,a){if(i<=a)return i;for(;i>a;)if(o!==this.src.charCodeAt(--i))return i+1;return i},n.prototype.getLines=function(i,o,a,s){var l,c,u,d,p,h,g,m=i;if(i>=o)return"";for(h=new Array(o-i),l=0;m<o;m++,l++){for(c=0,g=d=this.bMarks[m],m+1<o||s?p=this.eMarks[m]+1:p=this.eMarks[m];d<p&&c<a;){if(u=this.src.charCodeAt(d),t(u))u===9?c+=4-(c+this.bsCount[m])%4:c++;else if(d-g<this.tShift[m])c++;else break;d++}c>a?h[l]=new Array(c-a+1).join(" ")+this.src.slice(d,p):h[l]=this.src.slice(d,p)}return h.join("")},n.prototype.Token=e,gce=n,gce}var mce,zGe;function Hoi(){if(zGe)return mce;zGe=1;var e=WOe(),t=[["table",Roi(),["paragraph","reference"]],["code",Ioi()],["fence",Poi(),["paragraph","reference","blockquote","list"]],["blockquote",Doi(),["paragraph","reference","blockquote","list"]],["hr",koi(),["paragraph","reference","blockquote","list"]],["list",Loi(),["paragraph","reference","blockquote"]],["reference",_oi()],["html_block",Foi(),["paragraph","reference","blockquote"]],["heading",Woi(),["paragraph","reference","blockquote"]],["lheading",qoi()],["paragraph",Boi()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1],{alt:(t[r][2]||[]).slice()})}return n.prototype.tokenize=function(r,i,o){for(var a,s,l,c=this.ruler.getRules(""),u=c.length,d=i,p=!1,h=r.md.options.maxNesting;d<o&&(r.line=d=r.skipEmptyLines(d),!(d>=o||r.sCount[d]<r.blkIndent));){if(r.level>=h){r.line=o;break}for(l=r.line,s=0;s<u;s++)if(a=c[s](r,d,o,!1),a){if(l>=r.line)throw new Error("block rule didn't increment state.line");break}if(!a)throw new Error("none of the block rules matched");r.tight=!p,r.isEmpty(r.line-1)&&(p=!0),d=r.line,d<o&&r.isEmpty(d)&&(p=!0,d++,r.line=d)}},n.prototype.parse=function(r,i,o,a){var s;r&&(s=new this.State(r,i,o,a),this.tokenize(s,s.line,s.lineMax))},n.prototype.State=joi(),mce=n,mce}var vce,TGe;function Voi(){if(TGe)return vce;TGe=1;function e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}return vce=function(n,r){for(var i=n.pos;i<n.posMax&&!e(n.src.charCodeAt(i));)i++;return i===n.pos?!1:(r||(n.pending+=n.src.slice(n.pos,i)),n.pos=i,!0)},vce}var bce,EGe;function Goi(){if(EGe)return bce;EGe=1;var e=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;return bce=function(n,r){var i,o,a,s,l,c,u,d;return!n.md.options.linkify||n.linkLevel>0||(i=n.pos,o=n.posMax,i+3>o)||n.src.charCodeAt(i)!==58||n.src.charCodeAt(i+1)!==47||n.src.charCodeAt(i+2)!==47||(a=n.pending.match(e),!a)||(s=a[1],l=n.md.linkify.matchAtStart(n.src.slice(i-s.length)),!l)||(c=l.url,c.length<=s.length)||(c=c.replace(/\*+$/,""),u=n.md.normalizeLink(c),!n.md.validateLink(u))?!1:(r||(n.pending=n.pending.slice(0,-s.length),d=n.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=n.push("text","",0),d.content=n.md.normalizeLinkText(c),d=n.push("link_close","a",-1),d.markup="linkify",d.info="auto"),n.pos+=c.length-s.length,!0)},bce}var yce,RGe;function $oi(){if(RGe)return yce;RGe=1;var e=Ja().isSpace;return yce=function(n,r){var i,o,a,s=n.pos;if(n.src.charCodeAt(s)!==10)return!1;if(i=n.pending.length-1,o=n.posMax,!r)if(i>=0&&n.pending.charCodeAt(i)===32)if(i>=1&&n.pending.charCodeAt(i-1)===32){for(a=i-1;a>=1&&n.pending.charCodeAt(a-1)===32;)a--;n.pending=n.pending.slice(0,a),n.push("hardbreak","br",0)}else n.pending=n.pending.slice(0,-1),n.push("softbreak","br",0);else n.push("softbreak","br",0);for(s++;s<o&&e(n.src.charCodeAt(s));)s++;return n.pos=s,!0},yce}var Mce,IGe;function Uoi(){if(IGe)return Mce;IGe=1;for(var e=Ja().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),Mce=function(i,o){var a,s,l,c,u,d=i.pos,p=i.posMax;if(i.src.charCodeAt(d)!==92||(d++,d>=p))return!1;if(a=i.src.charCodeAt(d),a===10){for(o||i.push("hardbreak","br",0),d++;d<p&&(a=i.src.charCodeAt(d),!!e(a));)d++;return i.pos=d,!0}return c=i.src[d],a>=55296&&a<=56319&&d+1<p&&(s=i.src.charCodeAt(d+1),s>=56320&&s<=57343&&(c+=i.src[d+1],d++)),l="\\"+c,o||(u=i.push("text_special","",0),a<256&&t[a]!==0?u.content=c:u.content=l,u.markup=l,u.info="escape"),i.pos=d+1,!0},Mce}var Cce,PGe;function Xoi(){return PGe||(PGe=1,Cce=function(t,n){var r,i,o,a,s,l,c,u,d=t.pos,p=t.src.charCodeAt(d);if(p!==96)return!1;for(r=d,d++,i=t.posMax;d<i&&t.src.charCodeAt(d)===96;)d++;if(o=t.src.slice(r,d),c=o.length,t.backticksScanned&&(t.backticks[c]||0)<=r)return n||(t.pending+=o),t.pos+=c,!0;for(l=d;(s=t.src.indexOf("`",l))!==-1;){for(l=s+1;l<i&&t.src.charCodeAt(l)===96;)l++;if(u=l-s,u===c)return n||(a=t.push("code_inline","code",0),a.markup=o,a.content=t.src.slice(d,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=l,!0;t.backticks[u]=s}return t.backticksScanned=!0,n||(t.pending+=o),t.pos+=c,!0}),Cce}var hG={},DGe;function kGe(){if(DGe)return hG;DGe=1,hG.tokenize=function(n,r){var i,o,a,s,l,c=n.pos,u=n.src.charCodeAt(c);if(r||u!==126||(o=n.scanDelims(n.pos,!0),s=o.length,l=String.fromCharCode(u),s<2))return!1;for(s%2&&(a=n.push("text","",0),a.content=l,s--),i=0;i<s;i+=2)a=n.push("text","",0),a.content=l+l,n.delimiters.push({marker:u,length:0,token:n.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return n.pos+=o.length,!0};function e(t,n){var r,i,o,a,s,l=[],c=n.length;for(r=0;r<c;r++)o=n[r],o.marker===126&&o.end!==-1&&(a=n[o.end],s=t.tokens[o.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=t.tokens[a.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&l.push(a.token-1));for(;l.length;){for(r=l.pop(),i=r+1;i<t.tokens.length&&t.tokens[i].type==="s_close";)i++;i--,r!==i&&(s=t.tokens[i],t.tokens[i]=t.tokens[r],t.tokens[r]=s)}}return hG.postProcess=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},hG}var fG={},LGe;function _Ge(){if(LGe)return fG;LGe=1,fG.tokenize=function(n,r){var i,o,a,s=n.pos,l=n.src.charCodeAt(s);if(r||l!==95&&l!==42)return!1;for(o=n.scanDelims(n.pos,l===42),i=0;i<o.length;i++)a=n.push("text","",0),a.content=String.fromCharCode(l),n.delimiters.push({marker:l,length:o.length,token:n.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return n.pos+=o.length,!0};function e(t,n){var r,i,o,a,s,l,c=n.length;for(r=c-1;r>=0;r--)i=n[r],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(o=n[i.end],l=r>0&&n[r-1].end===i.end+1&&n[r-1].marker===i.marker&&n[r-1].token===i.token-1&&n[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),a=t.tokens[i.token],a.type=l?"strong_open":"em_open",a.tag=l?"strong":"em",a.nesting=1,a.markup=l?s+s:s,a.content="",a=t.tokens[o.token],a.type=l?"strong_close":"em_close",a.tag=l?"strong":"em",a.nesting=-1,a.markup=l?s+s:s,a.content="",l&&(t.tokens[n[r-1].token].content="",t.tokens[n[i.end+1].token].content="",r--))}return fG.postProcess=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},fG}var xce,NGe;function Yoi(){if(NGe)return xce;NGe=1;var e=Ja().normalizeReference,t=Ja().isSpace;return xce=function(r,i){var o,a,s,l,c,u,d,p,h,g="",m="",b=r.pos,y=r.posMax,M=r.pos,C=!0;if(r.src.charCodeAt(r.pos)!==91||(c=r.pos+1,l=r.md.helpers.parseLinkLabel(r,r.pos,!0),l<0))return!1;if(u=l+1,u<y&&r.src.charCodeAt(u)===40){for(C=!1,u++;u<y&&(a=r.src.charCodeAt(u),!(!t(a)&&a!==10));u++);if(u>=y)return!1;if(M=u,d=r.md.helpers.parseLinkDestination(r.src,u,r.posMax),d.ok){for(g=r.md.normalizeLink(d.str),r.md.validateLink(g)?u=d.pos:g="",M=u;u<y&&(a=r.src.charCodeAt(u),!(!t(a)&&a!==10));u++);if(d=r.md.helpers.parseLinkTitle(r.src,u,r.posMax),u<y&&M!==u&&d.ok)for(m=d.str,u=d.pos;u<y&&(a=r.src.charCodeAt(u),!(!t(a)&&a!==10));u++);}(u>=y||r.src.charCodeAt(u)!==41)&&(C=!0),u++}if(C){if(typeof r.env.references>"u")return!1;if(u<y&&r.src.charCodeAt(u)===91?(M=u+1,u=r.md.helpers.parseLinkLabel(r,u),u>=0?s=r.src.slice(M,u++):u=l+1):u=l+1,s||(s=r.src.slice(c,l)),p=r.env.references[e(s)],!p)return r.pos=b,!1;g=p.href,m=p.title}return i||(r.pos=c,r.posMax=l,h=r.push("link_open","a",1),h.attrs=o=[["href",g]],m&&o.push(["title",m]),r.linkLevel++,r.md.inline.tokenize(r),r.linkLevel--,h=r.push("link_close","a",-1)),r.pos=u,r.posMax=y,!0},xce}var wce,FGe;function Koi(){if(FGe)return wce;FGe=1;var e=Ja().normalizeReference,t=Ja().isSpace;return wce=function(r,i){var o,a,s,l,c,u,d,p,h,g,m,b,y,M="",C=r.pos,x=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(u=r.pos+2,c=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),c<0))return!1;if(d=c+1,d<x&&r.src.charCodeAt(d)===40){for(d++;d<x&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);if(d>=x)return!1;for(y=d,h=r.md.helpers.parseLinkDestination(r.src,d,r.posMax),h.ok&&(M=r.md.normalizeLink(h.str),r.md.validateLink(M)?d=h.pos:M=""),y=d;d<x&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);if(h=r.md.helpers.parseLinkTitle(r.src,d,r.posMax),d<x&&y!==d&&h.ok)for(g=h.str,d=h.pos;d<x&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);else g="";if(d>=x||r.src.charCodeAt(d)!==41)return r.pos=C,!1;d++}else{if(typeof r.env.references>"u")return!1;if(d<x&&r.src.charCodeAt(d)===91?(y=d+1,d=r.md.helpers.parseLinkLabel(r,d),d>=0?l=r.src.slice(y,d++):d=c+1):d=c+1,l||(l=r.src.slice(u,c)),p=r.env.references[e(l)],!p)return r.pos=C,!1;M=p.href,g=p.title}return i||(s=r.src.slice(u,c),r.md.inline.parse(s,r.md,r.env,b=[]),m=r.push("image","img",0),m.attrs=o=[["src",M],["alt",""]],m.children=b,m.content=s,g&&o.push(["title",g])),r.pos=d,r.posMax=x,!0},wce}var Sce,WGe;function Qoi(){if(WGe)return Sce;WGe=1;var e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,t=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;return Sce=function(r,i){var o,a,s,l,c,u,d=r.pos;if(r.src.charCodeAt(d)!==60)return!1;for(c=r.pos,u=r.posMax;;){if(++d>=u||(l=r.src.charCodeAt(d),l===60))return!1;if(l===62)break}return o=r.src.slice(c+1,d),t.test(o)?(a=r.md.normalizeLink(o),r.md.validateLink(a)?(i||(s=r.push("link_open","a",1),s.attrs=[["href",a]],s.markup="autolink",s.info="auto",s=r.push("text","",0),s.content=r.md.normalizeLinkText(o),s=r.push("link_close","a",-1),s.markup="autolink",s.info="auto"),r.pos+=o.length+2,!0):!1):e.test(o)?(a=r.md.normalizeLink("mailto:"+o),r.md.validateLink(a)?(i||(s=r.push("link_open","a",1),s.attrs=[["href",a]],s.markup="autolink",s.info="auto",s=r.push("text","",0),s.content=r.md.normalizeLinkText(o),s=r.push("link_close","a",-1),s.markup="autolink",s.info="auto"),r.pos+=o.length+2,!0):!1):!1},Sce}var Ace,qGe;function Zoi(){if(qGe)return Ace;qGe=1;var e=lxt().HTML_TAG_RE;function t(i){return/^<a[>\s]/i.test(i)}function n(i){return/^<\/a\s*>/i.test(i)}function r(i){var o=i|32;return o>=97&&o<=122}return Ace=function(o,a){var s,l,c,u,d=o.pos;return!o.md.options.html||(c=o.posMax,o.src.charCodeAt(d)!==60||d+2>=c)||(s=o.src.charCodeAt(d+1),s!==33&&s!==63&&s!==47&&!r(s))||(l=o.src.slice(d).match(e),!l)?!1:(a||(u=o.push("html_inline","",0),u.content=l[0],t(u.content)&&o.linkLevel++,n(u.content)&&o.linkLevel--),o.pos+=l[0].length,!0)},Ace}var Oce,BGe;function Joi(){if(BGe)return Oce;BGe=1;var e=rxt(),t=Ja().has,n=Ja().isValidEntityCode,r=Ja().fromCodePoint,i=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o=/^&([a-z][a-z0-9]{1,31});/i;return Oce=function(s,l){var c,u,d,p,h=s.pos,g=s.posMax;if(s.src.charCodeAt(h)!==38||h+1>=g)return!1;if(c=s.src.charCodeAt(h+1),c===35){if(d=s.src.slice(h).match(i),d)return l||(u=d[1][0].toLowerCase()==="x"?parseInt(d[1].slice(1),16):parseInt(d[1],10),p=s.push("text_special","",0),p.content=n(u)?r(u):r(65533),p.markup=d[0],p.info="entity"),s.pos+=d[0].length,!0}else if(d=s.src.slice(h).match(o),d&&t(e,d[1]))return l||(p=s.push("text_special","",0),p.content=e[d[1]],p.markup=d[0],p.info="entity"),s.pos+=d[0].length,!0;return!1},Oce}var zce,jGe;function eai(){if(jGe)return zce;jGe=1;function e(t){var n,r,i,o,a,s,l,c,u={},d=t.length;if(d){var p=0,h=-2,g=[];for(n=0;n<d;n++)if(i=t[n],g.push(0),(t[p].marker!==i.marker||h!==i.token-1)&&(p=n),h=i.token,i.length=i.length||0,!!i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],r=p-g[p]-1,s=r;r>a;r-=g[r]+1)if(o=t[r],o.marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(l=!0),!l)){c=r>0&&!t[r-1].open?g[r-1]+1:0,g[n]=n-r+c,g[r]=c,i.open=!1,o.end=n,o.close=!1,s=-1,h=-2;break}s!==-1&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}return zce=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(i[r].delimiters)},zce}var Tce,HGe;function tai(){return HGe||(HGe=1,Tce=function(t){var n,r,i=0,o=t.tokens,a=t.tokens.length;for(n=r=0;n<a;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type==="text"&&n+1<a&&o[n+1].type==="text"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)}),Tce}var Ece,VGe;function nai(){if(VGe)return Ece;VGe=1;var e=qOe(),t=Ja().isWhiteSpace,n=Ja().isPunctChar,r=Ja().isMdAsciiPunct;function i(o,a,s,l){this.src=o,this.env=s,this.md=a,this.tokens=l,this.tokens_meta=Array(l.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}return i.prototype.pushPending=function(){var o=new e("text","",0);return o.content=this.pending,o.level=this.pendingLevel,this.tokens.push(o),this.pending="",o},i.prototype.push=function(o,a,s){this.pending&&this.pushPending();var l=new e(o,a,s),c=null;return s<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,s>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(c),l},i.prototype.scanDelims=function(o,a){var s=o,l,c,u,d,p,h,g,m,b,y=!0,M=!0,C=this.posMax,x=this.src.charCodeAt(o);for(l=o>0?this.src.charCodeAt(o-1):32;s<C&&this.src.charCodeAt(s)===x;)s++;return u=s-o,c=s<C?this.src.charCodeAt(s):32,g=r(l)||n(String.fromCharCode(l)),b=r(c)||n(String.fromCharCode(c)),h=t(l),m=t(c),m?y=!1:b&&(h||g||(y=!1)),h?M=!1:g&&(m||b||(M=!1)),a?(d=y,p=M):(d=y&&(!M||g),p=M&&(!y||b)),{can_open:d,can_close:p,length:u}},i.prototype.Token=e,Ece=i,Ece}var Rce,GGe;function rai(){if(GGe)return Rce;GGe=1;var e=WOe(),t=[["text",Voi()],["linkify",Goi()],["newline",$oi()],["escape",Uoi()],["backticks",Xoi()],["strikethrough",kGe().tokenize],["emphasis",_Ge().tokenize],["link",Yoi()],["image",Koi()],["autolink",Qoi()],["html_inline",Zoi()],["entity",Joi()]],n=[["balance_pairs",eai()],["strikethrough",kGe().postProcess],["emphasis",_Ge().postProcess],["fragments_join",tai()]];function r(){var i;for(this.ruler=new e,i=0;i<t.length;i++)this.ruler.push(t[i][0],t[i][1]);for(this.ruler2=new e,i=0;i<n.length;i++)this.ruler2.push(n[i][0],n[i][1])}return r.prototype.skipToken=function(i){var o,a,s=i.pos,l=this.ruler.getRules(""),c=l.length,u=i.md.options.maxNesting,d=i.cache;if(typeof d[s]<"u"){i.pos=d[s];return}if(i.level<u){for(a=0;a<c;a++)if(i.level++,o=l[a](i,!0),i.level--,o){if(s>=i.pos)throw new Error("inline rule didn't increment state.pos");break}}else i.pos=i.posMax;o||i.pos++,d[s]=i.pos},r.prototype.tokenize=function(i){for(var o,a,s,l=this.ruler.getRules(""),c=l.length,u=i.posMax,d=i.md.options.maxNesting;i.pos<u;){if(s=i.pos,i.level<d){for(a=0;a<c;a++)if(o=l[a](i,!1),o){if(s>=i.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(i.pos>=u)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()},r.prototype.parse=function(i,o,a,s){var l,c,u,d=new this.State(i,o,a,s);for(this.tokenize(d),c=this.ruler2.getRules(""),u=c.length,l=0;l<u;l++)c[l](d)},r.prototype.State=nai(),Rce=r,Rce}var Ice,$Ge;function iai(){return $Ge||($Ge=1,Ice=function(e){var t={};e=e||{},t.src_Any=oxt().source,t.src_Cc=axt().source,t.src_Z=sxt().source,t.src_P=FOe().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><｜]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Ice}var Pce,UGe;function oai(){if(UGe)return Pce;UGe=1;function e(C){var x=Array.prototype.slice.call(arguments,1);return x.forEach(function(w){w&&Object.keys(w).forEach(function(S){C[S]=w[S]})}),C}function t(C){return Object.prototype.toString.call(C)}function n(C){return t(C)==="[object String]"}function r(C){return t(C)==="[object Object]"}function i(C){return t(C)==="[object RegExp]"}function o(C){return t(C)==="[object Function]"}function a(C){return C.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(C){return Object.keys(C||{}).reduce(function(x,w){return x||s.hasOwnProperty(w)},!1)}var c={"http:":{validate:function(C,x,w){var S=C.slice(x);return w.re.http||(w.re.http=new RegExp("^\\/\\/"+w.re.src_auth+w.re.src_host_port_strict+w.re.src_path,"i")),w.re.http.test(S)?S.match(w.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(C,x,w){var S=C.slice(x);return w.re.no_http||(w.re.no_http=new RegExp("^"+w.re.src_auth+"(?:localhost|(?:(?:"+w.re.src_domain+")\\.)+"+w.re.src_domain_root+")"+w.re.src_port+w.re.src_host_terminator+w.re.src_path,"i")),w.re.no_http.test(S)?x>=3&&C[x-3]===":"||x>=3&&C[x-3]==="/"?0:S.match(w.re.no_http)[0].length:0}},"mailto:":{validate:function(C,x,w){var S=C.slice(x);return w.re.mailto||(w.re.mailto=new RegExp("^"+w.re.src_email_name+"@"+w.re.src_host_strict,"i")),w.re.mailto.test(S)?S.match(w.re.mailto)[0].length:0}}},u="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(C){C.__index__=-1,C.__text_cache__=""}function h(C){return function(x,w){var S=x.slice(w);return C.test(S)?S.match(C)[0].length:0}}function g(){return function(C,x){x.normalize(C)}}function m(C){var x=C.re=iai()(C.__opts__),w=C.__tlds__.slice();C.onCompile(),C.__tlds_replaced__||w.push(u),w.push(x.src_xn),x.src_tlds=w.join("|");function S(T){return T.replace("%TLDS%",x.src_tlds)}x.email_fuzzy=RegExp(S(x.tpl_email_fuzzy),"i"),x.link_fuzzy=RegExp(S(x.tpl_link_fuzzy),"i"),x.link_no_ip_fuzzy=RegExp(S(x.tpl_link_no_ip_fuzzy),"i"),x.host_fuzzy_test=RegExp(S(x.tpl_host_fuzzy_test),"i");var A=[];C.__compiled__={};function z(T,R){throw new Error('(LinkifyIt) Invalid schema "'+T+'": '+R)}Object.keys(C.__schemas__).forEach(function(T){var R=C.__schemas__[T];if(R!==null){var P={validate:null,link:null};if(C.__compiled__[T]=P,r(R)){i(R.validate)?P.validate=h(R.validate):o(R.validate)?P.validate=R.validate:z(T,R),o(R.normalize)?P.normalize=R.normalize:R.normalize?z(T,R):P.normalize=g();return}if(n(R)){A.push(T);return}z(T,R)}}),A.forEach(function(T){C.__compiled__[C.__schemas__[T]]&&(C.__compiled__[T].validate=C.__compiled__[C.__schemas__[T]].validate,C.__compiled__[T].normalize=C.__compiled__[C.__schemas__[T]].normalize)}),C.__compiled__[""]={validate:null,normalize:g()};var O=Object.keys(C.__compiled__).filter(function(T){return T.length>0&&C.__compiled__[T]}).map(a).join("|");C.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+x.src_ZPCc+"))("+O+")","i"),C.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+x.src_ZPCc+"))("+O+")","ig"),C.re.schema_at_start=RegExp("^"+C.re.schema_search.source,"i"),C.re.pretest=RegExp("("+C.re.schema_test.source+")|("+C.re.host_fuzzy_test.source+")|@","i"),p(C)}function b(C,x){var w=C.__index__,S=C.__last_index__,A=C.__text_cache__.slice(w,S);this.schema=C.__schema__.toLowerCase(),this.index=w+x,this.lastIndex=S+x,this.raw=A,this.text=A,this.url=A}function y(C,x){var w=new b(C,x);return C.__compiled__[w.schema].normalize(w,C),w}function M(C,x){if(!(this instanceof M))return new M(C,x);x||l(C)&&(x=C,C={}),this.__opts__=e({},s,x),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},c,C),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},m(this)}return M.prototype.add=function(x,w){return this.__schemas__[x]=w,m(this),this},M.prototype.set=function(x){return this.__opts__=e(this.__opts__,x),this},M.prototype.test=function(x){if(this.__text_cache__=x,this.__index__=-1,!x.length)return!1;var w,S,A,z,O,T,R,P,F;if(this.re.schema_test.test(x)){for(R=this.re.schema_search,R.lastIndex=0;(w=R.exec(x))!==null;)if(z=this.testSchemaAt(x,w[2],R.lastIndex),z){this.__schema__=w[2],this.__index__=w.index+w[1].length,this.__last_index__=w.index+w[0].length+z;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(P=x.search(this.re.host_fuzzy_test),P>=0&&(this.__index__<0||P<this.__index__)&&(S=x.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(O=S.index+S[1].length,(this.__index__<0||O<this.__index__)&&(this.__schema__="",this.__index__=O,this.__last_index__=S.index+S[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(F=x.indexOf("@"),F>=0&&(A=x.match(this.re.email_fuzzy))!==null&&(O=A.index+A[1].length,T=A.index+A[0].length,(this.__index__<0||O<this.__index__||O===this.__index__&&T>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=O,this.__last_index__=T))),this.__index__>=0},M.prototype.pretest=function(x){return this.re.pretest.test(x)},M.prototype.testSchemaAt=function(x,w,S){return this.__compiled__[w.toLowerCase()]?this.__compiled__[w.toLowerCase()].validate(x,S,this):0},M.prototype.match=function(x){var w=0,S=[];this.__index__>=0&&this.__text_cache__===x&&(S.push(y(this,w)),w=this.__last_index__);for(var A=w?x.slice(w):x;this.test(A);)S.push(y(this,w)),A=A.slice(this.__last_index__),w+=this.__last_index__;return S.length?S:null},M.prototype.matchAtStart=function(x){if(this.__text_cache__=x,this.__index__=-1,!x.length)return null;var w=this.re.schema_at_start.exec(x);if(!w)return null;var S=this.testSchemaAt(x,w[2],w[0].length);return S?(this.__schema__=w[2],this.__index__=w.index+w[1].length,this.__last_index__=w.index+w[0].length+S,y(this,0)):null},M.prototype.tlds=function(x,w){return x=Array.isArray(x)?x:[x],w?(this.__tlds__=this.__tlds__.concat(x).sort().filter(function(S,A,z){return S!==z[A-1]}).reverse(),m(this),this):(this.__tlds__=x.slice(),this.__tlds_replaced__=!0,m(this),this)},M.prototype.normalize=function(x){x.schema||(x.url="http://"+x.url),x.schema==="mailto:"&&!/^mailto:/i.test(x.url)&&(x.url="mailto:"+x.url)},M.prototype.onCompile=function(){},Pce=M,Pce}const qI=2147483647,ib=36,BOe=1,Hq=26,aai=38,sai=700,cxt=72,uxt=128,dxt="-",lai=/^xn--/,cai=/[^\0-\x7F]/,uai=/[\x2E\u3002\uFF0E\uFF61]/g,dai={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Dce=ib-BOe,ob=Math.floor,kce=String.fromCharCode;function qC(e){throw new RangeError(dai[e])}function pai(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function pxt(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(uai,".");const i=e.split("."),o=pai(i,t).join(".");return r+o}function jOe(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const hxt=e=>String.fromCodePoint(...e),hai=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ib},XGe=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},fxt=function(e,t,n){let r=0;for(e=n?ob(e/sai):e>>1,e+=ob(e/t);e>Dce*Hq>>1;r+=ib)e=ob(e/Dce);return ob(r+(Dce+1)*e/(e+aai))},HOe=function(e){const t=[],n=e.length;let r=0,i=uxt,o=cxt,a=e.lastIndexOf(dxt);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&qC("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let u=1,d=ib;;d+=ib){s>=n&&qC("invalid-input");const p=hai(e.charCodeAt(s++));p>=ib&&qC("invalid-input"),p>ob((qI-r)/u)&&qC("overflow"),r+=p*u;const h=d<=o?BOe:d>=o+Hq?Hq:d-o;if(p<h)break;const g=ib-h;u>ob(qI/g)&&qC("overflow"),u*=g}const c=t.length+1;o=fxt(r-l,c,l==0),ob(r/c)>qI-i&&qC("overflow"),i+=ob(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},VOe=function(e){const t=[];e=jOe(e);const n=e.length;let r=uxt,i=0,o=cxt;for(const l of e)l<128&&t.push(kce(l));const a=t.length;let s=a;for(a&&t.push(dxt);s<n;){let l=qI;for(const u of e)u>=r&&u<l&&(l=u);const c=s+1;l-r>ob((qI-i)/c)&&qC("overflow"),i+=(l-r)*c,r=l;for(const u of e)if(u<r&&++i>qI&&qC("overflow"),u===r){let d=i;for(let p=ib;;p+=ib){const h=p<=o?BOe:p>=o+Hq?Hq:p-o;if(d<h)break;const g=d-h,m=ib-h;t.push(kce(XGe(h+g%m,0))),d=ob(g/m)}t.push(kce(XGe(d,0))),o=fxt(i,c,s===a),i=0,++s}++i,++r}return t.join("")},gxt=function(e){return pxt(e,function(t){return lai.test(t)?HOe(t.slice(4).toLowerCase()):t})},mxt=function(e){return pxt(e,function(t){return cai.test(t)?"xn--"+VOe(t):t})},fai={version:"2.3.1",ucs2:{decode:jOe,encode:hxt},decode:HOe,encode:VOe,toASCII:mxt,toUnicode:gxt},gai=Object.freeze(Object.defineProperty({__proto__:null,decode:HOe,default:fai,encode:VOe,toASCII:mxt,toUnicode:gxt,ucs2decode:jOe,ucs2encode:hxt},Symbol.toStringTag,{value:"Module"})),mai=hK(gai);var Lce,YGe;function vai(){return YGe||(YGe=1,Lce={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),Lce}var _ce,KGe;function bai(){return KGe||(KGe=1,_ce={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}),_ce}var Nce,QGe;function yai(){return QGe||(QGe=1,Nce={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}),Nce}var Fce,ZGe;function Mai(){if(ZGe)return Fce;ZGe=1;var e=Ja(),t=yoi(),n=Moi(),r=Eoi(),i=Hoi(),o=rai(),a=oai(),s=ixt(),l=mai,c={default:vai(),zero:bai(),commonmark:yai()},u=/^(vbscript|javascript|file|data):/,d=/^data:image\/(gif|png|jpeg|webp);/;function p(y){var M=y.trim().toLowerCase();return u.test(M)?!!d.test(M):!0}var h=["http:","https:","mailto:"];function g(y){var M=s.parse(y,!0);if(M.hostname&&(!M.protocol||h.indexOf(M.protocol)>=0))try{M.hostname=l.toASCII(M.hostname)}catch{}return s.encode(s.format(M))}function m(y){var M=s.parse(y,!0);if(M.hostname&&(!M.protocol||h.indexOf(M.protocol)>=0))try{M.hostname=l.toUnicode(M.hostname)}catch{}return s.decode(s.format(M),s.decode.defaultChars+"%")}function b(y,M){if(!(this instanceof b))return new b(y,M);M||e.isString(y)||(M=y||{},y="default"),this.inline=new o,this.block=new i,this.core=new r,this.renderer=new n,this.linkify=new a,this.validateLink=p,this.normalizeLink=g,this.normalizeLinkText=m,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(y),M&&this.set(M)}return b.prototype.set=function(y){return e.assign(this.options,y),this},b.prototype.configure=function(y){var M=this,C;if(e.isString(y)&&(C=y,y=c[C],!y))throw new Error('Wrong `markdown-it` preset "'+C+'", check name');if(!y)throw new Error("Wrong `markdown-it` preset, can't be empty");return y.options&&M.set(y.options),y.components&&Object.keys(y.components).forEach(function(x){y.components[x].rules&&M[x].ruler.enableOnly(y.components[x].rules),y.components[x].rules2&&M[x].ruler2.enableOnly(y.components[x].rules2)}),this},b.prototype.enable=function(y,M){var C=[];Array.isArray(y)||(y=[y]),["core","block","inline"].forEach(function(w){C=C.concat(this[w].ruler.enable(y,!0))},this),C=C.concat(this.inline.ruler2.enable(y,!0));var x=y.filter(function(w){return C.indexOf(w)<0});if(x.length&&!M)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+x);return this},b.prototype.disable=function(y,M){var C=[];Array.isArray(y)||(y=[y]),["core","block","inline"].forEach(function(w){C=C.concat(this[w].ruler.disable(y,!0))},this),C=C.concat(this.inline.ruler2.disable(y,!0));var x=y.filter(function(w){return C.indexOf(w)<0});if(x.length&&!M)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+x);return this},b.prototype.use=function(y){var M=[this].concat(Array.prototype.slice.call(arguments,1));return y.apply(y,M),this},b.prototype.parse=function(y,M){if(typeof y!="string")throw new Error("Input data should be a String");var C=new this.core.State(y,this,M);return this.core.process(C),C.tokens},b.prototype.render=function(y,M){return M=M||{},this.renderer.render(this.parse(y,M),this.options,M)},b.prototype.parseInline=function(y,M){var C=new this.core.State(y,this,M);return C.inlineMode=!0,this.core.process(C),C.tokens},b.prototype.renderInline=function(y,M){return M=M||{},this.renderer.render(this.parseInline(y,M),this.options,M)},Fce=b,Fce}var Wce,JGe;function Cai(){return JGe||(JGe=1,Wce=Mai()),Wce}var xai=Cai();const wai=qn(xai);var gG,Sai=new Uint8Array(16);function Aai(){if(!gG&&(gG=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!gG))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gG(Sai)}const Oai=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function zai(e){return typeof e=="string"&&Oai.test(e)}var dd=[];for(var qce=0;qce<256;++qce)dd.push((qce+256).toString(16).substr(1));function Tai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(dd[e[t+0]]+dd[e[t+1]]+dd[e[t+2]]+dd[e[t+3]]+"-"+dd[e[t+4]]+dd[e[t+5]]+"-"+dd[e[t+6]]+dd[e[t+7]]+"-"+dd[e[t+8]]+dd[e[t+9]]+"-"+dd[e[t+10]]+dd[e[t+11]]+dd[e[t+12]]+dd[e[t+13]]+dd[e[t+14]]+dd[e[t+15]]).toLowerCase();if(!zai(n))throw TypeError("Stringified UUID is invalid");return n}function vxt(e,t,n){e=e||{};var r=e.random||(e.rng||Aai)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Tai(r)}function Dc(e){return v.createElement("i",{className:"rmel-iconfont rmel-icon-"+e.type})}function Eai(e){return v.createElement("div",{className:"rc-md-navigation "+(e.visible?"visible":"in-visible")},v.createElement("div",{className:"navigation-nav left"},v.createElement("div",{className:"button-wrap"},e.left)),v.createElement("div",{className:"navigation-nav right"},v.createElement("div",{className:"button-wrap"},e.right)))}function Rai(e){return v.createElement("div",{className:"tool-bar",style:e.style},e.children)}var Bce={exports:{}},e7e;function Iai(){return e7e||(e7e=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||l,p),g=n?n+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,g=new Array(h);p<h;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,h,g){var m=n?n+c:c;if(!this._events[m])return!1;var b=this._events[m],y=arguments.length,M,C;if(b.fn){switch(b.once&&this.removeListener(c,b.fn,void 0,!0),y){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,u),!0;case 3:return b.fn.call(b.context,u,d),!0;case 4:return b.fn.call(b.context,u,d,p),!0;case 5:return b.fn.call(b.context,u,d,p,h),!0;case 6:return b.fn.call(b.context,u,d,p,h,g),!0}for(C=1,M=new Array(y-1);C<y;C++)M[C-1]=arguments[C];b.fn.apply(b.context,M)}else{var x=b.length,w;for(C=0;C<x;C++)switch(b[C].once&&this.removeListener(c,b[C].fn,void 0,!0),y){case 1:b[C].fn.call(b[C].context);break;case 2:b[C].fn.call(b[C].context,u);break;case 3:b[C].fn.call(b[C].context,u,d);break;case 4:b[C].fn.call(b[C].context,u,d,p);break;default:if(!M)for(w=1,M=new Array(y-1);w<y;w++)M[w-1]=arguments[w];b[C].fn.apply(b[C].context,M)}}return!0},s.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var h=n?n+c:c;if(!this._events[h])return this;if(!u)return a(this,h),this;var g=this._events[h];if(g.fn)g.fn===u&&(!p||g.once)&&(!d||g.context===d)&&a(this,h);else{for(var m=0,b=[],y=g.length;m<y;m++)(g[m].fn!==u||p&&!g[m].once||d&&g[m].context!==d)&&b.push(g[m]);b.length?this._events[h]=b.length===1?b[0]:b:a(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Bce)),Bce.exports}var Pai=Iai(),bxt=(function(e){ha(t,e);function t(){for(var n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i))||this,n.EVENT_CHANGE="a1",n.EVENT_FULL_SCREEN="a2",n.EVENT_VIEW_CHANGE="a3",n.EVENT_KEY_DOWN="a4",n.EVENT_EDITOR_KEY_DOWN="a5",n.EVENT_FOCUS="a5",n.EVENT_BLUR="a6",n.EVENT_SCROLL="a7",n.EVENT_LANG_CHANGE="b1",n}return t})(Pai.EventEmitter),yx=new bxt;const Dai={clearTip:"Are you sure you want to clear all contents?",btnHeader:"Header",btnClear:"Clear",btnBold:"Bold",btnItalic:"Italic",btnUnderline:"Underline",btnStrikethrough:"Strikethrough",btnUnordered:"Unordered list",btnOrdered:"Ordered list",btnQuote:"Quote",btnLineBreak:"Line break",btnInlineCode:"Inline code",btnCode:"Code",btnTable:"Table",btnImage:"Image",btnLink:"Link",btnUndo:"Undo",btnRedo:"Redo",btnFullScreen:"Full screen",btnExitFullScreen:"Exit full screen",btnModeEditor:"Only display editor",btnModePreview:"Only display preview",btnModeAll:"Display both editor and preview",selectTabMap:"Actual input when typing a Tab key",tab:"Tab",spaces:"Spaces"},kai={clearTip:"您确定要清空所有内容吗？",btnHeader:"标题",btnClear:"清空",btnBold:"加粗",btnItalic:"斜体",btnUnderline:"下划线",btnStrikethrough:"删除线",btnUnordered:"无序列表",btnOrdered:"有序列表",btnQuote:"引用",btnLineBreak:"换行",btnInlineCode:"行内代码",btnCode:"代码块",btnTable:"表格",btnImage:"图片",btnLink:"链接",btnUndo:"撤销",btnRedo:"重做",btnFullScreen:"全屏",btnExitFullScreen:"退出全屏",btnModeEditor:"仅显示编辑器",btnModePreview:"仅显示预览",btnModeAll:"显示编辑器与预览",selectTabMap:"按下 Tab 键时实际的输入",tab:"制表符",spaces:"空格"};var Lai=(function(){function e(){this.langs={enUS:Dai,zhCN:kai},this.current="enUS",this.setUp()}var t=e.prototype;return t.setUp=function(){if(!(typeof window>"u")){var r="enUS";if(navigator.language){var i=navigator.language.split("-");r=i[0],i.length!==1&&(r+=i[i.length-1].toUpperCase())}if(navigator.browserLanguage){var o=navigator.browserLanguage.split("-");r=o[0],o[1]&&(r+=o[1].toUpperCase())}this.current!==r&&this.isAvailable(r)&&(this.current=r,yx.emit(yx.EVENT_LANG_CHANGE,this,r,this.langs[r]))}},t.isAvailable=function(r){return typeof this.langs[r]<"u"},t.add=function(r,i){this.langs[r]=i},t.setCurrent=function(r){if(!this.isAvailable(r))throw new Error("Language "+r+" is not exists");this.current!==r&&(this.current=r,yx.emit(yx.EVENT_LANG_CHANGE,this,r,this.langs[r]))},t.get=function(r,i){var o=this.langs[this.current][r]||"";return i&&Object.keys(i).forEach(function(a){o=o.replace(new RegExp("\\{"+a+"\\}","g"),i[a])}),o},t.getCurrent=function(){return this.current},e})(),Ms=new Lai,Vl=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getConfig=function(i,o){return typeof this.props.config[i]<"u"&&this.props.config[i]!==null?this.props.config[i]:o},so(t,[{key:"editor",get:function(){return this.props.editor}},{key:"editorConfig",get:function(){return this.props.editorConfig}}]),t})(v.Component);Vl.pluginName="";Vl.align="left";Vl.defaultConfig={};var vbe=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){return v.createElement("span",{className:"rc-md-divider"})},t})(Vl);vbe.pluginName="divider";var _ai={start:0,end:0,text:""};function Nai(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Fai(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fai(e,t){if(e){if(typeof e=="string")return t7e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t7e(e,t)}}function t7e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GOe(e){return e&&(e instanceof Promise||(typeof e=="object"||typeof e=="function")&&typeof e.then=="function")}function Wai(e,t){for(var n="",r=t;r--;)n+=e;return n}function qai(e,t){var n=t.withKey,r=t.keyCode,i=t.key,o=t.aliasCommand,a={ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey,keyCode:e.keyCode,key:e.key};if(o&&(a.ctrlKey=a.ctrlKey||a.metaKey),n&&n.length>0)for(var s=Nai(n),l;!(l=s()).done;){var c=l.value;if(typeof a[c]<"u"&&!a[c])return!1}else if(a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return!1;return a.key?a.key===i:a.keyCode===r}function jce(e,t){var n=e.split(`
`),r=e.substr(0,t).split(`
`),i=r.length,o=r[r.length-1].length,a=n[r.length-1],s=r.length>1?r[r.length-2]:null,l=n.length>r.length?n[r.length]:null;return{line:i,col:o,beforeText:e.substr(0,t),afterText:e.substr(t),curLine:a,prevLine:s,nextLine:l}}var TR={bold:["**","**"],italic:["*","*"],underline:["++","++"],strikethrough:["~~","~~"],quote:[`
> `,`
`],inlinecode:["`","`"],code:["\n```\n","\n```\n"]};for(var mG=1;mG<=6;mG++)TR["h"+mG]=[`
`+Wai("#",mG)+" ",`
`];function Bai(e){for(var t=e.row,n=t===void 0?2:t,r=e.col,i=r===void 0?2:r,o=["|"],a=["|"],s=["|"],l="",c=1;c<=i;c++)o.push(" Head |"),s.push(" --- |"),a.push(" Data |");for(var u=1;u<=n;u++)l+=`
`+a.join("");return o.join("")+`
`+s.join("")+l}function n7e(e,t){var n=t;if(n.substr(0,1)!==`
`&&(n=`
`+n),e==="unordered")return n.length>1?n.replace(/\n/g,`
* `).trim():"* ";var r=1;return n.length>1?n.replace(/\n/g,function(){return`
`+r+++". "}).trim():"1. "}function Hce(e,t){return{text:e,newBlock:t,selection:{start:e.length,end:e.length}}}function bbe(e,t,n){if(typeof TR[t]<"u")return{text:""+TR[t][0]+e+TR[t][1],selection:{start:TR[t][0].length,end:TR[t][0].length+e.length}};switch(t){case"tab":var r=n.tabMapValue===1?"	":" ".repeat(n.tabMapValue),i=r+e.replace(/\n/g,`
`+r),o=e.includes(`
`)?e.match(/\n/g).length:0;return{text:i,selection:{start:n.tabMapValue,end:n.tabMapValue*(o+1)+e.length}};case"unordered":return Hce(n7e("unordered",e),!0);case"order":return Hce(n7e("order",e),!0);case"hr":return Hce("---",!0);case"table":return{text:Bai(n),newBlock:!0};case"image":return{text:"!["+(e||n.target)+"]("+(n.imageUrl||"")+")",selection:{start:2,end:e.length+2}};case"link":return{text:"["+e+"]("+(n.linkUrl||"")+")",selection:{start:1,end:e.length+1}}}return{text:e,selection:{start:0,end:e.length}}}function yxt(e,t){var n={};return Object.keys(e).forEach(function(r){if(typeof t[r]>"u"){n[r]=e[r];return}if(typeof t[r]=="object"){Array.isArray(t[r])?n[r]=[].concat(t[r]):n[r]=yxt(e[r],t[r]);return}n[r]=t[r]}),n}function jai(e){for(var t=Y({},e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach(function(o){typeof o=="object"&&(t=yxt(t,o))}),t}function Mxt(e,t){var n=bbe("","image",{target:"Uploading_"+vxt(),imageUrl:""}).text,r=new Promise(function(i){var o=!0,a=function(c){o&&console.warn("Deprecated: onImageUpload should return a Promise, callback will be removed in future"),i(bbe("","image",{target:e.name,imageUrl:c}).text)},s=t(e,a);GOe(s)&&(o=!1,s.then(a))});return{placeholder:n,uploaded:r}}var r7e={theme:"default",view:{menu:!0,md:!0,html:!0},canView:{menu:!0,md:!0,html:!0,both:!0,fullScreen:!0,hideMenu:!0},htmlClass:"",markdownClass:"",syncScrollMode:["rightFollowLeft","leftFollowRight"],imageUrl:"",imageAccept:"",linkUrl:"",loggerMaxSize:100,loggerInterval:600,table:{maxRow:4,maxCol:6},allowPasteImage:!0,onImageUpload:void 0,onCustomImageUpload:void 0,shortcuts:!0,onChangeTrigger:"both"},Hai=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.el=v.createRef(),i}var n=t.prototype;return n.getElement=function(){return this.el.current},n.getHeight=function(){return this.el.current?this.el.current.offsetHeight:0},t})(v.Component),Vai=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getHtml=function(){return typeof this.props.html=="string"?this.props.html:this.el.current?this.el.current.innerHTML:""},n.render=function(){return typeof this.props.html=="string"?v.createElement("div",{ref:this.el,dangerouslySetInnerHTML:{__html:this.props.html},className:this.props.className||"custom-html-style"}):v.createElement("div",{ref:this.el,className:this.props.className||"custom-html-style"},this.props.html)},t})(Hai);function Vce(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Gai(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gai(e,t){if(e){if(typeof e=="string")return i7e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i7e(e,t)}}function i7e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sl=(function(e){ha(t,e),t.use=function(i,o){o===void 0&&(o={});for(var a=0;a<t.plugins.length;a++)if(t.plugins[a].comp===i){t.plugins.splice(a,1,{comp:i,config:o});return}t.plugins.push({comp:i,config:o})},t.unuse=function(i){for(var o=0;o<t.plugins.length;o++)if(t.plugins[o].comp===i){t.plugins.splice(o,1);return}},t.unuseAll=function(){t.plugins=[]};function t(r){var i;return i=e.call(this,r)||this,i.nodeMdText=v.createRef(),i.nodeMdPreview=v.createRef(),i.nodeMdPreviewWrapper=v.createRef(),i.hasContentChanged=!0,i.composing=!1,i.pluginApis=new Map,i.scrollScale=1,i.isSyncingScroll=!1,i.shouldSyncScroll="md",i.keyboardListeners=[],i.emitter=new bxt,i.config=jai(r7e,i.props.config,i.props),i.state={text:(i.props.value||i.props.defaultValue||"").replace(/↵/g,`
`),html:"",view:i.config.view||r7e.view,fullScreen:!1,plugins:i.getPlugins()},i.config.canView&&!i.config.canView.menu&&(i.state.view.menu=!1),i.nodeMdText=v.createRef(),i.nodeMdPreviewWrapper=v.createRef(),i.handleChange=i.handleChange.bind(xn(i)),i.handlePaste=i.handlePaste.bind(xn(i)),i.handleDrop=i.handleDrop.bind(xn(i)),i.handleToggleMenu=i.handleToggleMenu.bind(xn(i)),i.handleKeyDown=i.handleKeyDown.bind(xn(i)),i.handleEditorKeyDown=i.handleEditorKeyDown.bind(xn(i)),i.handleLocaleUpdate=i.handleLocaleUpdate.bind(xn(i)),i.handleFocus=i.handleFocus.bind(xn(i)),i.handleBlur=i.handleBlur.bind(xn(i)),i.handleInputScroll=i.handleSyncScroll.bind(xn(i),"md"),i.handlePreviewScroll=i.handleSyncScroll.bind(xn(i),"html"),i}var n=t.prototype;return n.componentDidMount=function(){var i=this.state.text;this.renderHTML(i),yx.on(yx.EVENT_LANG_CHANGE,this.handleLocaleUpdate),Ms.setUp()},n.componentWillUnmount=function(){yx.off(yx.EVENT_LANG_CHANGE,this.handleLocaleUpdate)},n.componentDidUpdate=function(i){if(typeof this.props.value<"u"&&this.props.value!==this.state.text){var o=this.props.value;typeof o!="string"&&(o=String(o).toString()),o=o.replace(/↵/g,`
`),this.state.text!==o&&(this.setState({text:o}),this.renderHTML(o))}i.plugins!==this.props.plugins&&this.setState({plugins:this.getPlugins()})},n.isComposing=function(){return this.composing},n.getPlugins=function(){var i=this,o=[];if(this.props.plugins)for(var a=function(p){if(p===vbe.pluginName){o.push({comp:vbe,config:{}});return}for(var h=Vce(t.plugins),g;!(g=h()).done;){var m=g.value;if(m.comp.pluginName===p){o.push(m);return}}},s=Vce(this.props.plugins),l;!(l=s()).done;){var c=l.value;c==="fonts"?(a("font-bold"),a("font-italic"),a("font-underline"),a("font-strikethrough"),a("list-unordered"),a("list-ordered"),a("block-quote"),a("block-wrap"),a("block-code-inline"),a("block-code-block")):a(c)}else o=[].concat(t.plugins);var u={};return o.forEach(function(d){typeof u[d.comp.align]>"u"&&(u[d.comp.align]=[]);var p=d.comp.pluginName==="divider"?vxt():d.comp.pluginName;u[d.comp.align].push(v.createElement(d.comp,{editor:i,editorConfig:i.config,config:Y({},d.comp.defaultConfig||{},d.config||{}),key:p}))}),u},n.handleSyncScroll=function(i,o){var a=this;if(i===this.shouldSyncScroll){this.props.onScroll&&this.props.onScroll(o,i),this.emitter.emit(this.emitter.EVENT_SCROLL,o,i);var s=this.config.syncScrollMode,l=s===void 0?[]:s;l.includes(i==="md"?"rightFollowLeft":"leftFollowRight")&&(this.hasContentChanged&&this.nodeMdText.current&&this.nodeMdPreviewWrapper.current&&(this.scrollScale=this.nodeMdText.current.scrollHeight/this.nodeMdPreviewWrapper.current.scrollHeight,this.hasContentChanged=!1),this.isSyncingScroll||(this.isSyncingScroll=!0,requestAnimationFrame(function(){a.nodeMdText.current&&a.nodeMdPreviewWrapper.current&&(i==="md"?a.nodeMdPreviewWrapper.current.scrollTop=a.nodeMdText.current.scrollTop/a.scrollScale:a.nodeMdText.current.scrollTop=a.nodeMdPreviewWrapper.current.scrollTop*a.scrollScale),a.isSyncingScroll=!1})))}},n.renderHTML=function(i){var o=this;if(!this.props.renderHTML)return console.error("renderHTML props is required!"),Promise.resolve();var a=this.props.renderHTML(i);return GOe(a)?a.then(function(s){return o.setHtml(s)}):typeof a=="function"?this.setHtml(a()):this.setHtml(a)},n.setHtml=function(i){var o=this;return new Promise(function(a){o.setState({html:i},a)})},n.handleToggleMenu=function(){this.setView({menu:!this.state.view.menu})},n.handleFocus=function(i){var o=this.props.onFocus;o&&o(i),this.emitter.emit(this.emitter.EVENT_FOCUS,i)},n.handleBlur=function(i){var o=this.props.onBlur;o&&o(i),this.emitter.emit(this.emitter.EVENT_BLUR,i)},n.handleChange=function(i){i.persist();var o=i.target.value;this.setText(o,i)},n.handlePaste=function(i){if(!(!this.config.allowPasteImage||!this.config.onImageUpload)){var o=i.nativeEvent,a=(o.clipboardData||window.clipboardData).items;a&&(i.preventDefault(),this.uploadWithDataTransfer(a))}},n.handleDrop=function(i){if(this.config.onImageUpload){var o=i.nativeEvent;if(o.dataTransfer){var a=o.dataTransfer.items;a&&(i.preventDefault(),this.uploadWithDataTransfer(a))}}},n.handleEditorKeyDown=function(i){var o=this,a=i.keyCode,s=i.key,l=i.currentTarget;if((a===13||s==="Enter")&&this.composing===!1){var c=l.value,u=l.selectionStart,d=jce(c,u),p=function(){var M=l.value.substr(0,u-d.curLine.length)+l.value.substr(u);o.setText(M,void 0,{start:u-d.curLine.length,end:u-d.curLine.length}),i.preventDefault()},h=function(M){o.insertText(`
`+M,!1,{start:M.length+1,end:M.length+1}),i.preventDefault()},g=d.curLine.match(/^(\s*?)\* /);if(g){if(/^(\s*?)\* $/.test(d.curLine)){p();return}h(g[0]);return}var m=d.curLine.match(/^(\s*?)(\d+)\. /);if(m){if(/^(\s*?)(\d+)\. $/.test(d.curLine)){p();return}var b=""+m[1]+(parseInt(m[2],10)+1)+". ";h(b);return}}this.emitter.emit(this.emitter.EVENT_EDITOR_KEY_DOWN,i)},n.handleLocaleUpdate=function(){this.forceUpdate()},n.getMdElement=function(){return this.nodeMdText.current},n.getHtmlElement=function(){return this.nodeMdPreviewWrapper.current},n.clearSelection=function(){this.nodeMdText.current&&this.nodeMdText.current.setSelectionRange(0,0,"none")},n.getSelection=function(){var i=this.nodeMdText.current;if(!i)return Y({},_ai);var o=i.selectionStart,a=i.selectionEnd,s=(i.value||"").slice(o,a);return{start:o,end:a,text:s}},n.setSelection=function(i){this.nodeMdText.current&&(this.nodeMdText.current.setSelectionRange(i.start,i.end,"forward"),this.nodeMdText.current.focus())},n.insertMarkdown=function(i,o){o===void 0&&(o={});var a=this.getSelection(),s=o?Y({},o):{};if(i==="image"&&(s=Y({},s,{target:o.target||a.text||"",imageUrl:o.imageUrl||this.config.imageUrl})),i==="link"&&(s=Y({},s,{linkUrl:this.config.linkUrl})),i==="tab"&&a.start!==a.end){var l=this.getMdValue().slice(0,a.start).lastIndexOf(`
`)+1;this.setSelection({start:l,end:a.end})}var c=bbe(a.text,i,s),u=c.text,d=c.selection;if(c.newBlock){var p=jce(this.getMdValue(),a.start),h=p.col,g=p.curLine;h>0&&g.length>0&&(u=`
`+u,d&&(d.start++,d.end++));var m=p.afterText;a.start!==a.end&&(m=jce(this.getMdValue(),a.end).afterText),m.trim()!==""&&m.substr(0,2)!==`

`&&(m.substr(0,1)!==`
`&&(u+=`
`),u+=`
`)}this.insertText(u,!0,d)},n.insertPlaceholder=function(i,o){var a=this;this.insertText(i,!0),o.then(function(s){var l=a.getMdValue().replace(i,s);a.setText(l)})},n.insertText=function(i,o,a){i===void 0&&(i=""),o===void 0&&(o=!1);var s=this.state.text,l=this.getSelection(),c=s.slice(0,l.start),u=s.slice(o?l.end:l.start,s.length);this.setText(c+i+u,void 0,a?{start:a.start+c.length,end:a.end+c.length}:{start:l.start,end:l.start})},n.setText=function(i,o,a){var s=this;i===void 0&&(i="");var l=this.config.onChangeTrigger,c=l===void 0?"both":l,u=i.replace(/↵/g,`
`);if(this.state.text!==i){this.setState({text:u}),this.props.onChange&&(c==="both"||c==="beforeRender")&&this.props.onChange({text:u,html:this.getHtmlValue()},o),this.emitter.emit(this.emitter.EVENT_CHANGE,i,o,typeof o>"u"),a&&setTimeout(function(){return s.setSelection(a)}),this.hasContentChanged||(this.hasContentChanged=!0);var d=this.renderHTML(u);(c==="both"||c==="afterRender")&&d.then(function(){s.props.onChange&&s.props.onChange({text:s.state.text,html:s.getHtmlValue()},o)})}},n.getMdValue=function(){return this.state.text},n.getHtmlValue=function(){return typeof this.state.html=="string"?this.state.html:this.nodeMdPreview.current?this.nodeMdPreview.current.getHtml():""},n.onKeyboard=function(i){var o=this;if(Array.isArray(i)){i.forEach(function(a){return o.onKeyboard(a)});return}this.keyboardListeners.includes(i)||this.keyboardListeners.push(i)},n.offKeyboard=function(i){var o=this;if(Array.isArray(i)){i.forEach(function(s){return o.offKeyboard(s)});return}var a=this.keyboardListeners.indexOf(i);a>=0&&this.keyboardListeners.splice(a,1)},n.handleKeyDown=function(i){for(var o=Vce(this.keyboardListeners),a;!(a=o()).done;){var s=a.value;if(qai(i,s)){i.preventDefault(),s.callback(i);return}}this.emitter.emit(this.emitter.EVENT_KEY_DOWN,i)},n.getEventType=function(i){switch(i){case"change":return this.emitter.EVENT_CHANGE;case"fullscreen":return this.emitter.EVENT_FULL_SCREEN;case"viewchange":return this.emitter.EVENT_VIEW_CHANGE;case"keydown":return this.emitter.EVENT_KEY_DOWN;case"editor_keydown":return this.emitter.EVENT_EDITOR_KEY_DOWN;case"blur":return this.emitter.EVENT_BLUR;case"focus":return this.emitter.EVENT_FOCUS;case"scroll":return this.emitter.EVENT_SCROLL}},n.on=function(i,o){var a=this.getEventType(i);a&&this.emitter.on(a,o)},n.off=function(i,o){var a=this.getEventType(i);a&&this.emitter.off(a,o)},n.setView=function(i){var o=this,a=Y({},this.state.view,i);this.setState({view:a},function(){o.emitter.emit(o.emitter.EVENT_VIEW_CHANGE,a)})},n.getView=function(){return Y({},this.state.view)},n.fullScreen=function(i){var o=this;this.state.fullScreen!==i&&this.setState({fullScreen:i},function(){o.emitter.emit(o.emitter.EVENT_FULL_SCREEN,i)})},n.registerPluginApi=function(i,o){this.pluginApis.set(i,o)},n.unregisterPluginApi=function(i){this.pluginApis.delete(i)},n.callPluginApi=function(i){var o=this.pluginApis.get(i);if(!o)throw new Error("API "+i+" not found");for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return o.apply(void 0,s)},n.isFullScreen=function(){return this.state.fullScreen},n.uploadWithDataTransfer=function(i){var o=this,a=this.config.onImageUpload;if(a){var s=[];Array.prototype.forEach.call(i,function(l){if(l.kind==="file"&&l.type.includes("image")){var c=l.getAsFile();if(c){var u=Mxt(c,a);s.push(Promise.resolve(u.placeholder)),u.uploaded.then(function(d){var p=o.getMdValue().replace(u.placeholder,d),h=d.length-u.placeholder.length,g=o.getSelection();o.setText(p,void 0,{start:g.start+h,end:g.start+h})})}}else l.kind==="string"&&l.type==="text/plain"&&s.push(new Promise(function(d){return l.getAsString(d)}))}),Promise.all(s).then(function(l){var c=l.join(""),u=o.getSelection();o.insertText(c,!0,{start:u.start===u.end?c.length:0,end:c.length})})}},n.render=function(){var i=this,o=this.state,a=o.view,s=o.fullScreen,l=o.text,c=o.html,u=this.props,d=u.id,p=u.className,h=p===void 0?"":p,g=u.style,m=u.name,b=m===void 0?"textarea":m,y=u.autoFocus,M=u.placeholder,C=u.readOnly,x=this.config.canView&&this.config.canView.hideMenu&&!this.config.canView.menu,w=function(T){return i.state.plugins[T]||[]},S=!!a.menu,A=d?d+"_md":void 0,z=d?d+"_html":void 0;return v.createElement("div",{id:d,className:"rc-md-editor "+(s?"full":"")+" "+h,style:g,onKeyDown:this.handleKeyDown,onDrop:this.handleDrop},v.createElement(Eai,{visible:S,left:w("left"),right:w("right")}),v.createElement("div",{className:"editor-container"},x&&v.createElement(Rai,null,v.createElement("span",{className:"button button-type-menu",title:S?"hidden menu":"show menu",onClick:this.handleToggleMenu},v.createElement(Dc,{type:"expand-"+(S?"less":"more")}))),v.createElement("section",{className:"section sec-md "+(a.md?"visible":"in-visible")},v.createElement("textarea",{id:A,ref:this.nodeMdText,name:b,autoFocus:y,placeholder:M,readOnly:C,value:l,className:"section-container input "+(this.config.markdownClass||""),wrap:"hard",onChange:this.handleChange,onScroll:this.handleInputScroll,onMouseOver:function(){return i.shouldSyncScroll="md"},onKeyDown:this.handleEditorKeyDown,onCompositionStart:function(){return i.composing=!0},onCompositionEnd:function(){return i.composing=!1},onPaste:this.handlePaste,onFocus:this.handleFocus,onBlur:this.handleBlur})),v.createElement("section",{className:"section sec-html "+(a.html?"visible":"in-visible")},v.createElement("div",{id:z,className:"section-container html-wrap",ref:this.nodeMdPreviewWrapper,onMouseOver:function(){return i.shouldSyncScroll="html"},onScroll:this.handlePreviewScroll},v.createElement(Vai,{html:c,className:this.config.htmlClass,ref:this.nodeMdPreview})))))},t})(v.Component);Sl.plugins=[];Sl.addLocale=Ms.add.bind(Ms);Sl.useLocale=Ms.setCurrent.bind(Ms);Sl.getLocale=Ms.getCurrent.bind(Ms);var Cxt=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-code-block",title:Ms.get("btnCode"),onClick:function(){return i.editor.insertMarkdown("code")}},v.createElement(Dc,{type:"code-block"}))},t})(Vl);Cxt.pluginName="block-code-block";var xxt=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-code-inline",title:Ms.get("btnInlineCode"),onClick:function(){return i.editor.insertMarkdown("inlinecode")}},v.createElement(Dc,{type:"code"}))},t})(Vl);xxt.pluginName="block-code-inline";var wxt=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-quote",title:Ms.get("btnQuote"),onClick:function(){return i.editor.insertMarkdown("quote")}},v.createElement(Dc,{type:"quote"}))},t})(Vl);wxt.pluginName="block-quote";var Sxt=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-wrap",title:Ms.get("btnLineBreak"),onClick:function(){return i.editor.insertMarkdown("hr")}},v.createElement(Dc,{type:"wrap"}))},t})(Vl);Sxt.pluginName="block-wrap";var Axt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleClick=i.handleClick.bind(xn(i)),i}var n=t.prototype;return n.handleClick=function(){if(this.editor.getMdValue()!==""&&window.confirm&&typeof window.confirm=="function"){var i=window.confirm(Ms.get("clearTip"));i&&this.editor.setText("")}},n.render=function(){return v.createElement("span",{className:"button button-type-clear",title:Ms.get("btnClear"),onClick:this.handleClick},v.createElement(Dc,{type:"delete"}))},t})(Vl);Axt.pluginName="clear";var Oxt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"b",keyCode:66,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("bold")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-bold",title:Ms.get("btnBold"),onClick:function(){return i.editor.insertMarkdown("bold")}},v.createElement(Dc,{type:"bold"}))},t})(Vl);Oxt.pluginName="font-bold";var zxt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"i",keyCode:73,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("italic")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-italic",title:Ms.get("btnItalic"),onClick:function(){return i.editor.insertMarkdown("italic")}},v.createElement(Dc,{type:"italic"}))},t})(Vl);zxt.pluginName="font-italic";var Txt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"d",keyCode:68,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("strikethrough")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-strikethrough",title:Ms.get("btnStrikethrough"),onClick:function(){return i.editor.insertMarkdown("strikethrough")}},v.createElement(Dc,{type:"strikethrough"}))},t})(Vl);Txt.pluginName="font-strikethrough";var Ext=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"u",keyCode:85,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("underline")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-underline",title:Ms.get("btnUnderline"),onClick:function(){return i.editor.insertMarkdown("underline")}},v.createElement(Dc,{type:"underline"}))},t})(Vl);Ext.pluginName="font-underline";var $Oe=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleClick=i.handleClick.bind(xn(i)),i.handleChange=i.handleChange.bind(xn(i)),i.state={enable:i.editor.isFullScreen()},i}var n=t.prototype;return n.handleClick=function(){this.editor.fullScreen(!this.state.enable)},n.handleChange=function(i){this.setState({enable:i})},n.componentDidMount=function(){this.editor.on("fullscreen",this.handleChange)},n.componentWillUnmount=function(){this.editor.off("fullscreen",this.handleChange)},n.render=function(){if(this.editorConfig.canView&&this.editorConfig.canView.fullScreen){var i=this.state.enable;return v.createElement("span",{className:"button button-type-fullscreen",title:Ms.get(i?"btnExitFullScreen":"btnFullScreen"),onClick:this.handleClick},v.createElement(Dc,{type:i?"fullscreen-exit":"fullscreen"}))}return null},t})(Vl);$Oe.pluginName="full-screen";$Oe.align="right";var Rxt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleClose=i.handleClose.bind(xn(i)),i}var n=t.prototype;return n.handleClose=function(i){i.stopPropagation();var o=this.props.onClose;typeof o=="function"&&o()},n.render=function(){return v.createElement("div",{className:"drop-wrap "+(this.props.show?"show":"hidden"),onClick:this.handleClose},this.props.children)},t})(v.Component),$ai=(function(e){ha(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.handleHeader=function(i){var o=this.props.onSelectHeader;typeof o=="function"&&o(i)},n.render=function(){return v.createElement("ul",{className:"header-list"},v.createElement("li",{className:"list-item"},v.createElement("h1",{onClick:this.handleHeader.bind(this,"h1")},"H1")),v.createElement("li",{className:"list-item"},v.createElement("h2",{onClick:this.handleHeader.bind(this,"h2")},"H2")),v.createElement("li",{className:"list-item"},v.createElement("h3",{onClick:this.handleHeader.bind(this,"h3")},"H3")),v.createElement("li",{className:"list-item"},v.createElement("h4",{onClick:this.handleHeader.bind(this,"h4")},"H4")),v.createElement("li",{className:"list-item"},v.createElement("h5",{onClick:this.handleHeader.bind(this,"h5")},"H5")),v.createElement("li",{className:"list-item"},v.createElement("h6",{onClick:this.handleHeader.bind(this,"h6")},"H6")))},t})(v.Component),Ixt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.show=i.show.bind(xn(i)),i.hide=i.hide.bind(xn(i)),i.state={show:!1},i}var n=t.prototype;return n.show=function(){this.setState({show:!0})},n.hide=function(){this.setState({show:!1})},n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-header",title:Ms.get("btnHeader"),onMouseEnter:this.show,onMouseLeave:this.hide},v.createElement(Dc,{type:"font-size"}),v.createElement(Rxt,{show:this.state.show,onClose:this.hide},v.createElement($ai,{onSelectHeader:function(a){return i.editor.insertMarkdown(a)}})))},t})(Vl);Ixt.pluginName="header";var Uai=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.timerId=void 0,i.locked=!1,i.input=v.createRef(),i}var n=t.prototype;return n.click=function(){var i=this;this.locked||!this.input.current||(this.locked=!0,this.input.current.value="",this.input.current.click(),this.timerId&&window.clearTimeout(this.timerId),this.timerId=window.setTimeout(function(){i.locked=!1,window.clearTimeout(i.timerId),i.timerId=void 0},200))},n.componentWillUnmount=function(){this.timerId&&window.clearTimeout(this.timerId)},n.render=function(){return v.createElement("input",{type:"file",ref:this.input,accept:this.props.accept,style:{position:"absolute",zIndex:-1,left:0,top:0,width:0,height:0,opacity:0},onChange:this.props.onChange})},t})(v.Component),Pxt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.inputFile=v.createRef(),i.onImageChanged=i.onImageChanged.bind(xn(i)),i.handleCustomImageUpload=i.handleCustomImageUpload.bind(xn(i)),i.handleImageUpload=i.handleImageUpload.bind(xn(i)),i.state={show:!1},i}var n=t.prototype;return n.handleImageUpload=function(){var i=this.editorConfig.onImageUpload;typeof i=="function"?this.inputFile.current&&this.inputFile.current.click():this.editor.insertMarkdown("image")},n.onImageChanged=function(i){var o=this.editorConfig.onImageUpload;if(o){var a=Mxt(i,o);this.editor.insertPlaceholder(a.placeholder,a.uploaded)}},n.handleCustomImageUpload=function(i){var o=this,a=this.editorConfig.onCustomImageUpload;if(a){var s=a.call(this,i);GOe(s)&&s.then(function(l){l&&l.url&&o.editor.insertMarkdown("image",{target:l.text,imageUrl:l.url})})}},n.render=function(){var i=this,o=!!this.editorConfig.onCustomImageUpload;return o?v.createElement("span",{className:"button button-type-image",title:Ms.get("btnImage"),onClick:this.handleCustomImageUpload},v.createElement(Dc,{type:"image"})):v.createElement("span",{className:"button button-type-image",title:Ms.get("btnImage"),onClick:this.handleImageUpload,style:{position:"relative"}},v.createElement(Dc,{type:"image"}),v.createElement(Uai,{accept:this.editorConfig.imageAccept||"",ref:this.inputFile,onChange:function(s){s.persist(),s.target.files&&s.target.files.length>0&&i.onImageChanged(s.target.files[0])}}))},t})(Vl);Pxt.pluginName="image";var Dxt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"k",keyCode:75,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("link")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-link",title:Ms.get("btnLink"),onClick:function(){return i.editor.insertMarkdown("link")}},v.createElement(Dc,{type:"link"}))},t})(Vl);Dxt.pluginName="link";var kxt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"7",keyCode:55,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return i.editor.insertMarkdown("order")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-ordered",title:Ms.get("btnOrdered"),onClick:function(){return i.editor.insertMarkdown("order")}},v.createElement(Dc,{type:"list-ordered"}))},t})(Vl);kxt.pluginName="list-ordered";var Lxt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"8",keyCode:56,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return i.editor.insertMarkdown("unordered")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return v.createElement("span",{className:"button button-type-unordered",title:Ms.get("btnUnordered"),onClick:function(){return i.editor.insertMarkdown("unordered")}},v.createElement(Dc,{type:"list-unordered"}))},t})(Vl);Lxt.pluginName="list-unordered";var Xai=100,Yai=(function(){function e(n){n===void 0&&(n={}),this.record=[],this.recycle=[],this.initValue="";var r=n,i=r.maxSize,o=i===void 0?Xai:i;this.maxSize=o}var t=e.prototype;return t.push=function(r){for(var i=this.record.push(r);this.record.length>this.maxSize;)this.record.shift();return i},t.get=function(){return this.record},t.getLast=function(){var r=this.record.length;return this.record[r-1]},t.undo=function(r){var i=this.record.pop();if(typeof i>"u")return this.initValue;if(i!==r)return this.recycle.push(i),i;var o=this.record.pop();return typeof o>"u"?(this.recycle.push(i),this.initValue):(this.recycle.push(i),o)},t.redo=function(){var r=this.recycle.pop();if(typeof r<"u")return this.push(r),r},t.cleanRedo=function(){this.recycle=[]},t.getUndoCount=function(){return this.undo.length},t.getRedoCount=function(){return this.recycle.length},e})(),_xt=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboards=[],i.lastPop=null,i.handleChange=i.handleChange.bind(xn(i)),i.handleRedo=i.handleRedo.bind(xn(i)),i.handleUndo=i.handleUndo.bind(xn(i)),i.handleKeyboards=[{key:"y",keyCode:89,withKey:["ctrlKey"],callback:i.handleRedo},{key:"z",keyCode:90,withKey:["metaKey","shiftKey"],callback:i.handleRedo},{key:"z",keyCode:90,aliasCommand:!0,withKey:["ctrlKey"],callback:i.handleUndo}],i.logger=new Yai({maxSize:i.editorConfig.loggerMaxSize}),i.editor.registerPluginApi("undo",i.handleUndo),i.editor.registerPluginApi("redo",i.handleRedo),i}var n=t.prototype;return n.handleUndo=function(){var i=this.logger.undo(this.editor.getMdValue());typeof i<"u"&&(this.pause(),this.lastPop=i,this.editor.setText(i),this.forceUpdate())},n.handleRedo=function(){var i=this.logger.redo();typeof i<"u"&&(this.lastPop=i,this.editor.setText(i),this.forceUpdate())},n.handleChange=function(i,o,a){var s=this;if(!(this.logger.getLast()===i||this.lastPop!==null&&this.lastPop===i)){if(this.logger.cleanRedo(),a){this.logger.push(i),this.lastPop=null,this.forceUpdate();return}this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.timerId=window.setTimeout(function(){s.logger.getLast()!==i&&(s.logger.push(i),s.lastPop=null,s.forceUpdate()),window.clearTimeout(s.timerId),s.timerId=0},this.editorConfig.loggerInterval)}},n.componentDidMount=function(){var i=this;this.editor.on("change",this.handleChange),this.handleKeyboards.forEach(function(o){return i.editor.onKeyboard(o)}),this.logger.initValue=this.editor.getMdValue(),this.forceUpdate()},n.componentWillUnmount=function(){var i=this;this.timerId&&window.clearTimeout(this.timerId),this.editor.off("change",this.handleChange),this.editor.unregisterPluginApi("undo"),this.editor.unregisterPluginApi("redo"),this.handleKeyboards.forEach(function(o){return i.editor.offKeyboard(o)})},n.pause=function(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)},n.render=function(){var i=this.logger.getUndoCount()>1||this.logger.initValue!==this.editor.getMdValue(),o=this.logger.getRedoCount()>0;return v.createElement(v.Fragment,null,v.createElement("span",{className:"button button-type-undo "+(i?"":"disabled"),title:Ms.get("btnUndo"),onClick:this.handleUndo},v.createElement(Dc,{type:"undo"})),v.createElement("span",{className:"button button-type-redo "+(o?"":"disabled"),title:Ms.get("btnRedo"),onClick:this.handleRedo},v.createElement(Dc,{type:"redo"})))},t})(Vl);_xt.pluginName="logger";var Jd;(function(e){e[e.SHOW_ALL=0]="SHOW_ALL",e[e.SHOW_MD=1]="SHOW_MD",e[e.SHOW_HTML=2]="SHOW_HTML"})(Jd||(Jd={}));var UOe=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleClick=i.handleClick.bind(xn(i)),i.handleChange=i.handleChange.bind(xn(i)),i.state={view:i.editor.getView()},i}var n=t.prototype;return n.handleClick=function(){switch(this.next){case Jd.SHOW_ALL:this.editor.setView({html:!0,md:!0});break;case Jd.SHOW_HTML:this.editor.setView({html:!0,md:!1});break;case Jd.SHOW_MD:this.editor.setView({html:!1,md:!0});break}},n.handleChange=function(i){this.setState({view:i})},n.componentDidMount=function(){this.editor.on("viewchange",this.handleChange)},n.componentWillUnmount=function(){this.editor.off("viewchange",this.handleChange)},n.getDisplayInfo=function(){var i=this.next;switch(i){case Jd.SHOW_ALL:return{icon:"view-split",title:"All"};case Jd.SHOW_HTML:return{icon:"visibility",title:"Preview"};default:return{icon:"keyboard",title:"Editor"}}},n.render=function(){if(this.isDisplay){var i=this.getDisplayInfo();return v.createElement("span",{className:"button button-type-mode",title:Ms.get("btnMode"+i.title),onClick:this.handleClick},v.createElement(Dc,{type:i.icon}))}return null},so(t,[{key:"isDisplay",get:function(){var i=this.editorConfig.canView;return i?[i.html,i.md,i.both].filter(function(o){return o}).length>=2:!1}},{key:"next",get:function(){var i=this.editorConfig.canView,o=this.state.view,a=[Jd.SHOW_ALL,Jd.SHOW_MD,Jd.SHOW_HTML];i&&(i.both||a.splice(a.indexOf(Jd.SHOW_ALL),1),i.md||a.splice(a.indexOf(Jd.SHOW_MD),1),i.html||a.splice(a.indexOf(Jd.SHOW_HTML),1));var s=Jd.SHOW_MD;if(o.html&&(s=Jd.SHOW_HTML),o.html&&o.md&&(s=Jd.SHOW_ALL),a.length===0)return s;if(a.length===1)return a[0];var l=a.indexOf(s);return l<a.length-1?a[l+1]:a[0]}}]),t})(Vl);UOe.pluginName="mode-toggle";UOe.align="right";var Kai=(function(e){ha(t,e);function t(r){var i;i=e.call(this,r)||this,i.config={padding:3,width:20,height:20};var o=r.maxRow,a=o===void 0?5:o,s=r.maxCol,l=s===void 0?6:s;return i.state={maxRow:a,maxCol:l,list:i.formatTableModel(a,l)},i}var n=t.prototype;return n.formatTableModel=function(i,o){i===void 0&&(i=0),o===void 0&&(o=0);var a=new Array(i).fill(void 0);return a.map(function(s){return new Array(o).fill(0)})},n.calcWrapStyle=function(){var i=this.state,o=i.maxRow,a=i.maxCol,s=this.config,l=s.width,c=s.height,u=s.padding,d=(l+u)*a-u,p=(c+u)*o-u;return{width:d+"px",height:p+"px"}},n.calcItemStyle=function(i,o){i===void 0&&(i=0),o===void 0&&(o=0);var a=this.config,s=a.width,l=a.height,c=a.padding,u=(l+c)*i,d=(s+c)*o;return{top:u+"px",left:d+"px"}},n.getList=function(i,o){var a=this.state.list;return a.map(function(s,l){return s.map(function(c,u){return l<=i&&u<=o?1:0})})},n.handleHover=function(i,o){this.setState({list:this.getList(i,o)})},n.handleSetTable=function(i,o){var a=this.props.onSetTable;typeof a=="function"&&a({row:i+1,col:o+1})},n.componentDidUpdate=function(i){this.props.visibility===!1&&i.visibility!==this.props.visibility&&this.setState({list:this.getList(-1,-1)})},n.render=function(){var i=this;return v.createElement("ul",{className:"table-list wrap",style:this.calcWrapStyle()},this.state.list.map(function(o,a){return o.map(function(s,l){return v.createElement("li",{className:"list-item "+(s===1?"active":""),key:a+"-"+l,style:i.calcItemStyle(a,l),onMouseOver:i.handleHover.bind(i,a,l),onClick:i.handleSetTable.bind(i,a,l)})})}))},t})(v.Component),XOe=(function(e){ha(t,e);function t(r){var i;return i=e.call(this,r)||this,i.show=i.show.bind(xn(i)),i.hide=i.hide.bind(xn(i)),i.state={show:!1},i}var n=t.prototype;return n.show=function(){this.setState({show:!0})},n.hide=function(){this.setState({show:!1})},n.render=function(){var i=this,o=this.editorConfig.table||this.props.config;return v.createElement("span",{className:"button button-type-table",title:Ms.get("btnTable"),onMouseEnter:this.show,onMouseLeave:this.hide},v.createElement(Dc,{type:"grid"}),v.createElement(Rxt,{show:this.state.show,onClose:this.hide},v.createElement(Kai,{visibility:this.state.show,maxRow:o.maxRow,maxCol:o.maxCol,onSetTable:function(s){return i.editor.insertMarkdown("table",s)}})))},t})(Vl);XOe.pluginName="table";XOe.defaultConfig={maxRow:6,maxCol:6};var Gce={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var o7e;function Qai(){return o7e||(o7e=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Gce)),Gce.exports}var Zai=Qai();const wd=qn(Zai);Sl.use(Ixt);Sl.use(Oxt);Sl.use(zxt);Sl.use(Ext);Sl.use(Txt);Sl.use(Lxt);Sl.use(kxt);Sl.use(wxt);Sl.use(Sxt);Sl.use(xxt);Sl.use(Cxt);Sl.use(XOe);Sl.use(Pxt);Sl.use(Dxt);Sl.use(Axt);Sl.use(_xt);Sl.use(UOe);Sl.use($Oe);function eT(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}const Jai=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function UP(e,t,n){const r=esi(e),{webkitRelativePath:i}=e,o=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&a7e(r,"path",o),a7e(r,"relativePath",o),r}function esi(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=Jai.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function a7e(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const tsi=[".DS_Store","Thumbs.db"];function nsi(e){return eT(this,void 0,void 0,function*(){return pX(e)&&rsi(e.dataTransfer)?ssi(e.dataTransfer,e.type):isi(e)?osi(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?asi(e):[]})}function rsi(e){return pX(e)}function isi(e){return pX(e)&&pX(e.target)}function pX(e){return typeof e=="object"&&e!==null}function osi(e){return ybe(e.target.files).map(t=>UP(t))}function asi(e){return eT(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>UP(n))})}function ssi(e,t){return eT(this,void 0,void 0,function*(){if(e.items){const n=ybe(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(lsi));return s7e(Nxt(r))}return s7e(ybe(e.files).map(n=>UP(n)))})}function s7e(e){return e.filter(t=>tsi.indexOf(t.name)===-1)}function ybe(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function lsi(e){if(typeof e.webkitGetAsEntry!="function")return l7e(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Fxt(t):l7e(e,t)}function Nxt(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?Nxt(n):[n]],[])}function l7e(e,t){return eT(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const a=yield o.getFile();return a.handle=o,UP(a)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return UP(r,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function csi(e){return eT(this,void 0,void 0,function*(){return e.isDirectory?Fxt(e):usi(e)})}function Fxt(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function o(){t.readEntries(a=>eT(this,void 0,void 0,function*(){if(a.length){const s=Promise.all(a.map(csi));i.push(s),o()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),a=>{r(a)})}o()})}function usi(e){return eT(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=UP(r,e.fullPath);t(i)},r=>{n(r)})})})}var vG={},c7e;function dsi(){return c7e||(c7e=1,vG.__esModule=!0,vG.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0}),vG}var psi=dsi();const $ce=qn(psi);function u7e(e){return gsi(e)||fsi(e)||qxt(e)||hsi()}function hsi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fsi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gsi(e){if(Array.isArray(e))return Mbe(e)}function d7e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function p7e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d7e(Object(n),!0).forEach(function(r){Wxt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d7e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wxt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vq(e,t){return bsi(e)||vsi(e,t)||qxt(e,t)||msi()}function msi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qxt(e,t){if(e){if(typeof e=="string")return Mbe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mbe(e,t)}}function Mbe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vsi(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function bsi(e){if(Array.isArray(e))return e}var ysi=typeof $ce=="function"?$ce:$ce.default,Msi="file-invalid-type",Csi="file-too-large",xsi="file-too-small",wsi="too-many-files",Ssi=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:Msi,message:"File type must be ".concat(r)}},h7e=function(t){return{code:Csi,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},f7e=function(t){return{code:xsi,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Asi={code:wsi,message:"Too many files"};function Bxt(e,t){var n=e.type==="application/x-moz-file"||ysi(e,t);return[n,n?null:Ssi(t)]}function jxt(e,t,n){if(tO(e.size))if(tO(t)&&tO(n)){if(e.size>n)return[!1,h7e(n)];if(e.size<t)return[!1,f7e(t)]}else{if(tO(t)&&e.size<t)return[!1,f7e(t)];if(tO(n)&&e.size>n)return[!1,h7e(n)]}return[!0,null]}function tO(e){return e!=null}function Osi(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var c=Bxt(l,n),u=Vq(c,1),d=u[0],p=jxt(l,r,i),h=Vq(p,1),g=h[0],m=s?s(l):null;return d&&g&&!m})}function hX(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function bG(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function g7e(e){e.preventDefault()}function zsi(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Tsi(e){return e.indexOf("Edge/")!==-1}function Esi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return zsi(e)||Tsi(e)}function xv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!hX(r)&&s&&s.apply(void 0,[r].concat(o)),hX(r)})}}function Rsi(){return"showOpenFilePicker"in window}function Isi(e){if(tO(e)){var t=Object.entries(e).filter(function(n){var r=Vq(n,2),i=r[0],o=r[1],a=!0;return Hxt(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(Vxt))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Vq(r,2),o=i[0],a=i[1];return p7e(p7e({},n),{},Wxt({},o,a))},{});return[{description:"Files",accept:t}]}return e}function Psi(e){if(tO(e))return Object.entries(e).reduce(function(t,n){var r=Vq(n,2),i=r[0],o=r[1];return[].concat(u7e(t),[i],u7e(o))},[]).filter(function(t){return Hxt(t)||Vxt(t)}).join(",")}function Dsi(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function ksi(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Hxt(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Vxt(e){return/^.*\.[\w]+$/.test(e)}var Lsi=["children"],_si=["open"],Nsi=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Fsi=["refKey","onChange","onClick"];function Wsi(e){return jsi(e)||Bsi(e)||Gxt(e)||qsi()}function qsi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bsi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jsi(e){if(Array.isArray(e))return Cbe(e)}function Uce(e,t){return Gsi(e)||Vsi(e,t)||Gxt(e,t)||Hsi()}function Hsi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gxt(e,t){if(e){if(typeof e=="string")return Cbe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cbe(e,t)}}function Cbe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vsi(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Gsi(e){if(Array.isArray(e))return e}function m7e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m7e(Object(n),!0).forEach(function(r){xbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m7e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xbe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fX(e,t){if(e==null)return{};var n=$si(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $si(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var YOe=v.forwardRef(function(e,t){var n=e.children,r=fX(e,Lsi),i=Uxt(r),o=i.open,a=fX(i,_si);return v.useImperativeHandle(t,function(){return{open:o}},[o]),E.createElement(v.Fragment,null,n(Rl(Rl({},a),{},{open:o})))});YOe.displayName="Dropzone";var $xt={disabled:!1,getFilesFromEvent:nsi,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};YOe.defaultProps=$xt;YOe.propTypes={children:Z.func,accept:Z.objectOf(Z.arrayOf(Z.string)),multiple:Z.bool,preventDropOnDocument:Z.bool,noClick:Z.bool,noKeyboard:Z.bool,noDrag:Z.bool,noDragEventsBubbling:Z.bool,minSize:Z.number,maxSize:Z.number,maxFiles:Z.number,disabled:Z.bool,getFilesFromEvent:Z.func,onFileDialogCancel:Z.func,onFileDialogOpen:Z.func,useFsAccessApi:Z.bool,autoFocus:Z.bool,onDragEnter:Z.func,onDragLeave:Z.func,onDragOver:Z.func,onDrop:Z.func,onDropAccepted:Z.func,onDropRejected:Z.func,onError:Z.func,validator:Z.func};var wbe={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Uxt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Rl(Rl({},$xt),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,m=t.onFileDialogCancel,b=t.onFileDialogOpen,y=t.useFsAccessApi,M=t.autoFocus,C=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,S=t.noDrag,A=t.noDragEventsBubbling,z=t.onError,O=t.validator,T=v.useMemo(function(){return Psi(n)},[n]),R=v.useMemo(function(){return Isi(n)},[n]),P=v.useMemo(function(){return typeof b=="function"?b:v7e},[b]),F=v.useMemo(function(){return typeof m=="function"?m:v7e},[m]),N=v.useRef(null),L=v.useRef(null),W=v.useReducer(Usi,wbe),j=Uce(W,2),V=j[0],G=j[1],q=V.isFocused,$=V.isFileDialogActive,U=v.useRef(typeof window<"u"&&window.isSecureContext&&y&&Rsi()),X=function(){!U.current&&$&&setTimeout(function(){if(L.current){var Ee=L.current.files;Ee.length||(G({type:"closeDialog"}),F())}},300)};v.useEffect(function(){return window.addEventListener("focus",X,!1),function(){window.removeEventListener("focus",X,!1)}},[L,$,F,U]);var Q=v.useRef([]),re=function(Ee){N.current&&N.current.contains(Ee.target)||(Ee.preventDefault(),Q.current=[])};v.useEffect(function(){return C&&(document.addEventListener("dragover",g7e,!1),document.addEventListener("drop",re,!1)),function(){C&&(document.removeEventListener("dragover",g7e),document.removeEventListener("drop",re))}},[N,C]),v.useEffect(function(){return!r&&M&&N.current&&N.current.focus(),function(){}},[N,M,r]);var ee=v.useCallback(function(Ce){z?z(Ce):console.error(Ce)},[z]),se=v.useCallback(function(Ce){Ce.preventDefault(),Ce.persist(),de(Ce),Q.current=[].concat(Wsi(Q.current),[Ce.target]),bG(Ce)&&Promise.resolve(i(Ce)).then(function(Ee){if(!(hX(Ce)&&!A)){var Ge=Ee.length,_e=Ge>0&&Osi({files:Ee,accept:T,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:O}),Ie=Ge>0&&!_e;G({isDragAccept:_e,isDragReject:Ie,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Ce)}}).catch(function(Ee){return ee(Ee)})},[i,c,ee,A,T,a,o,s,l,O]),pe=v.useCallback(function(Ce){Ce.preventDefault(),Ce.persist(),de(Ce);var Ee=bG(Ce);if(Ee&&Ce.dataTransfer)try{Ce.dataTransfer.dropEffect="copy"}catch{}return Ee&&d&&d(Ce),!1},[d,A]),te=v.useCallback(function(Ce){Ce.preventDefault(),Ce.persist(),de(Ce);var Ee=Q.current.filter(function(_e){return N.current&&N.current.contains(_e)}),Ge=Ee.indexOf(Ce.target);Ge!==-1&&Ee.splice(Ge,1),Q.current=Ee,!(Ee.length>0)&&(G({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bG(Ce)&&u&&u(Ce))},[N,u,A]),ce=v.useCallback(function(Ce,Ee){var Ge=[],_e=[];Ce.forEach(function(Ie){var Le=Bxt(Ie,T),we=Uce(Le,2),ve=we[0],De=we[1],ze=jxt(Ie,a,o),Ve=Uce(ze,2),Ke=Ve[0],et=Ve[1],it=O?O(Ie):null;if(ve&&Ke&&!it)Ge.push(Ie);else{var Ft=[De,et];it&&(Ft=Ft.concat(it)),_e.push({file:Ie,errors:Ft.filter(function(Dt){return Dt})})}}),(!s&&Ge.length>1||s&&l>=1&&Ge.length>l)&&(Ge.forEach(function(Ie){_e.push({file:Ie,errors:[Asi]})}),Ge.splice(0)),G({acceptedFiles:Ge,fileRejections:_e,isDragReject:_e.length>0,type:"setFiles"}),p&&p(Ge,_e,Ee),_e.length>0&&g&&g(_e,Ee),Ge.length>0&&h&&h(Ge,Ee)},[G,s,T,a,o,l,p,h,g,O]),oe=v.useCallback(function(Ce){Ce.preventDefault(),Ce.persist(),de(Ce),Q.current=[],bG(Ce)&&Promise.resolve(i(Ce)).then(function(Ee){hX(Ce)&&!A||ce(Ee,Ce)}).catch(function(Ee){return ee(Ee)}),G({type:"reset"})},[i,ce,ee,A]),ae=v.useCallback(function(){if(U.current){G({type:"openDialog"}),P();var Ce={multiple:s,types:R};window.showOpenFilePicker(Ce).then(function(Ee){return i(Ee)}).then(function(Ee){ce(Ee,null),G({type:"closeDialog"})}).catch(function(Ee){Dsi(Ee)?(F(Ee),G({type:"closeDialog"})):ksi(Ee)?(U.current=!1,L.current?(L.current.value=null,L.current.click()):ee(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ee(Ee)});return}L.current&&(G({type:"openDialog"}),P(),L.current.value=null,L.current.click())},[G,P,F,y,ce,ee,R,s]),ne=v.useCallback(function(Ce){!N.current||!N.current.isEqualNode(Ce.target)||(Ce.key===" "||Ce.key==="Enter"||Ce.keyCode===32||Ce.keyCode===13)&&(Ce.preventDefault(),ae())},[N,ae]),le=v.useCallback(function(){G({type:"focus"})},[]),he=v.useCallback(function(){G({type:"blur"})},[]),be=v.useCallback(function(){x||(Esi()?setTimeout(ae,0):ae())},[x,ae]),me=function(Ee){return r?null:Ee},Me=function(Ee){return w?null:me(Ee)},Oe=function(Ee){return S?null:me(Ee)},de=function(Ee){A&&Ee.stopPropagation()},ie=v.useMemo(function(){return function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=Ce.refKey,Ge=Ee===void 0?"ref":Ee,_e=Ce.role,Ie=Ce.onKeyDown,Le=Ce.onFocus,we=Ce.onBlur,ve=Ce.onClick,De=Ce.onDragEnter,ze=Ce.onDragOver,Ve=Ce.onDragLeave,Ke=Ce.onDrop,et=fX(Ce,Nsi);return Rl(Rl(xbe({onKeyDown:Me(xv(Ie,ne)),onFocus:Me(xv(Le,le)),onBlur:Me(xv(we,he)),onClick:me(xv(ve,be)),onDragEnter:Oe(xv(De,se)),onDragOver:Oe(xv(ze,pe)),onDragLeave:Oe(xv(Ve,te)),onDrop:Oe(xv(Ke,oe)),role:typeof _e=="string"&&_e!==""?_e:"presentation"},Ge,N),!r&&!w?{tabIndex:0}:{}),et)}},[N,ne,le,he,be,se,pe,te,oe,w,S,r]),ue=v.useCallback(function(Ce){Ce.stopPropagation()},[]),Ae=v.useMemo(function(){return function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=Ce.refKey,Ge=Ee===void 0?"ref":Ee,_e=Ce.onChange,Ie=Ce.onClick,Le=fX(Ce,Fsi),we=xbe({accept:T,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:me(xv(_e,oe)),onClick:me(xv(Ie,ue)),tabIndex:-1},Ge,L);return Rl(Rl({},we),Le)}},[L,n,s,oe,r]);return Rl(Rl({},V),{},{isFocused:q&&!r,getRootProps:ie,getInputProps:Ae,rootRef:N,inputRef:L,open:me(ae)})}function Usi(e,t){switch(t.type){case"focus":return Rl(Rl({},e),{},{isFocused:!0});case"blur":return Rl(Rl({},e),{},{isFocused:!1});case"openDialog":return Rl(Rl({},wbe),{},{isFileDialogActive:!0});case"closeDialog":return Rl(Rl({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Rl(Rl({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Rl(Rl({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Rl({},wbe);default:return e}}function v7e(){}var G_={},b7e;function Xsi(){if(b7e)return G_;b7e=1;var e=ri(),t=ii();Object.defineProperty(G_,"__esModule",{value:!0}),G_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0-3.14-.85-4-2.15.02-1.32 2.67-2.05 4-2.05s3.98.73 4 2.05c-.86 1.3-2.33 2.15-4 2.15z"}),"PersonPinCircle");return G_.default=i,G_}var Ysi=Xsi();const Ksi=qn(Ysi);let KOe=sj();const io=e=>aj(e,KOe);let QOe=sj();io.write=e=>aj(e,QOe);let ZOe=sj();io.onStart=e=>aj(e,ZOe);let Xxt=sj();io.onFrame=e=>aj(e,Xxt);let Yxt=sj();io.onFinish=e=>aj(e,Yxt);let BI=[];io.setTimeout=(e,t)=>{let n=io.now()+t,r=()=>{let o=BI.findIndex(a=>a.cancel==r);~o&&BI.splice(o,1),OO.count-=~o?1:0},i={time:n,handler:e,cancel:r};return BI.splice(Kxt(n),0,i),OO.count+=1,Qxt(),i};let Kxt=e=>~(~BI.findIndex(t=>t.time>e)||~BI.length);io.cancel=e=>{KOe.delete(e),QOe.delete(e)};io.sync=e=>{Sbe=!0,io.batchedUpdates(e),Sbe=!1};io.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,io.onStart(n)}return r.handler=e,r.cancel=()=>{ZOe.delete(n),t=null},r};let JOe=typeof window<"u"?window.requestAnimationFrame:()=>{};io.use=e=>JOe=e;io.now=typeof performance<"u"?()=>performance.now():Date.now;io.batchedUpdates=e=>e();io.catch=console.error;io.frameLoop="always";io.advance=()=>{io.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Jxt()};let AO=-1,Sbe=!1;function aj(e,t){Sbe?(t.delete(e),e(0)):(t.add(e),Qxt())}function Qxt(){AO<0&&(AO=0,io.frameLoop!=="demand"&&JOe(Zxt))}function Zxt(){~AO&&(JOe(Zxt),io.batchedUpdates(Jxt))}function Jxt(){let e=AO;AO=io.now();let t=Kxt(AO);t&&(ewt(BI.splice(0,t),n=>n.handler()),OO.count-=t),ZOe.flush(),KOe.flush(e?Math.min(64,AO-e):16.667),Xxt.flush(),QOe.flush(),Yxt.flush()}function sj(){let e=new Set,t=e;return{add(n){OO.count+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return OO.count-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,OO.count-=t.size,ewt(t,r=>r(n)&&e.add(r)),OO.count+=e.size,t=e)}}}function ewt(e,t){e.forEach(n=>{try{t(n)}catch(r){io.catch(r)}})}const OO={count:0};function Abe(){}const Qsi=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),zn={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function oy(e,t){if(zn.arr(e)){if(!zn.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const ro=(e,t)=>e.forEach(t);function Wb(e,t,n){if(zn.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const a1=e=>zn.und(e)?[]:zn.arr(e)?e:[e];function GF(e,t){if(e.size){const n=Array.from(e);e.clear(),ro(n,t)}}const AN=(e,...t)=>GF(e,n=>n(...t));let eze,twt,Bx=null,nwt=!1,tze=Abe;const Zsi=e=>{e.to&&(twt=e.to),e.now&&(io.now=e.now),e.colors!==void 0&&(Bx=e.colors),e.skipAnimation!=null&&(nwt=e.skipAnimation),e.createStringInterpolator&&(eze=e.createStringInterpolator),e.requestAnimationFrame&&io.use(e.requestAnimationFrame),e.batchedUpdates&&(io.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tze=e.willAdvance),e.frameLoop&&(io.frameLoop=e.frameLoop)};var qb=Object.freeze({__proto__:null,get createStringInterpolator(){return eze},get to(){return twt},get colors(){return Bx},get skipAnimation(){return nwt},get willAdvance(){return tze},assign:Zsi});const $F=new Set;let mf=[],Xce=[],gX=0;const QJ={get idle(){return!$F.size&&!mf.length},start(e){gX>e.priority?($F.add(e),io.onStart(Jsi)):(rwt(e),io(Obe))},advance:Obe,sort(e){if(gX)io.onFrame(()=>QJ.sort(e));else{const t=mf.indexOf(e);~t&&(mf.splice(t,1),iwt(e))}},clear(){mf=[],$F.clear()}};function Jsi(){$F.forEach(rwt),$F.clear(),io(Obe)}function rwt(e){mf.includes(e)||iwt(e)}function iwt(e){mf.splice(eli(mf,t=>t.priority>e.priority),0,e)}function Obe(e){const t=Xce;for(let n=0;n<mf.length;n++){const r=mf[n];gX=r.priority,r.idle||(tze(r),r.advance(e),r.idle||t.push(r))}return gX=0,Xce=mf,Xce.length=0,mf=t,mf.length>0}function eli(e,t){const n=e.findIndex(t);return n<0?e.length:n}const tli={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},im="[-+]?\\d*\\.?\\d+",mX=im+"%";function ZJ(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const nli=new RegExp("rgb"+ZJ(im,im,im)),rli=new RegExp("rgba"+ZJ(im,im,im,im)),ili=new RegExp("hsl"+ZJ(im,mX,mX)),oli=new RegExp("hsla"+ZJ(im,mX,mX,im)),ali=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,sli=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lli=/^#([0-9a-fA-F]{6})$/,cli=/^#([0-9a-fA-F]{8})$/;function uli(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=lli.exec(e))?parseInt(t[1]+"ff",16)>>>0:Bx&&Bx[e]!==void 0?Bx[e]:(t=nli.exec(e))?(sR(t[1])<<24|sR(t[2])<<16|sR(t[3])<<8|255)>>>0:(t=rli.exec(e))?(sR(t[1])<<24|sR(t[2])<<16|sR(t[3])<<8|C7e(t[4]))>>>0:(t=ali.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=cli.exec(e))?parseInt(t[1],16)>>>0:(t=sli.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ili.exec(e))?(y7e(M7e(t[1]),yG(t[2]),yG(t[3]))|255)>>>0:(t=oli.exec(e))?(y7e(M7e(t[1]),yG(t[2]),yG(t[3]))|C7e(t[4]))>>>0:null}function Yce(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function y7e(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Yce(i,r,e+1/3),a=Yce(i,r,e),s=Yce(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function sR(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function M7e(e){return(parseFloat(e)%360+360)%360/360}function C7e(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function yG(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function x7e(e){let t=uli(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}const Gq=(e,t,n)=>{if(zn.fun(e))return e;if(zn.arr(e))return Gq({range:e,output:t,extrapolate:n});if(zn.str(e.output[0]))return eze(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=pli(c,o);return dli(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function dli(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function pli(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}function zbe(){return zbe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zbe.apply(this,arguments)}const XP=Symbol.for("FluidValue.get"),r3=Symbol.for("FluidValue.observers"),uf=e=>!!(e&&e[XP]),X1=e=>e&&e[XP]?e[XP]():e,w7e=e=>e[r3]||null;function hli(e,t){e.eventObserved?e.eventObserved(t):e(t)}function $q(e,t){let n=e[r3];n&&n.forEach(r=>{hli(r,t)})}class owt{constructor(t){if(this[XP]=void 0,this[r3]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");fli(this,t)}}const fli=(e,t)=>awt(e,XP,t);function Ck(e,t){if(e[XP]){let n=e[r3];n||awt(e,r3,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Uq(e,t){let n=e[r3];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[r3]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const awt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),o$=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gli=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,S7e=new RegExp(`(${o$.source})(%|[a-z]+)`,"i");let Kce;const mli=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,vli=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,swt=e=>{Kce||(Kce=Bx?new RegExp(`(${Object.keys(Bx).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>X1(o).replace(gli,x7e).replace(Kce,x7e)),n=t.map(o=>o.match(o$).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>Gq(zbe({},e,{output:o})));return o=>{var a;const s=!S7e.test(t[0])&&((a=t.find(c=>S7e.test(c)))==null?void 0:a.replace(o$,""));let l=0;return t[0].replace(o$,()=>`${i[l++](o)}${s||""}`).replace(mli,vli)}},nze="react-spring: ",lwt=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${nze}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},bli=lwt(console.warn);function yli(){bli(`${nze}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Mli=lwt(console.warn);function Cli(){Mli(`${nze}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function JJ(e){return zn.str(e)&&(e[0]=="#"||/\d/.test(e)||e in(Bx||{}))}const eee=e=>v.useEffect(e,xli),xli=[];function rze(){const e=v.useState()[1],t=v.useState(wli)[0];return eee(t.unmount),()=>{t.current&&e({})}}function wli(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function Sli(e,t){const[n]=v.useState(()=>({inputs:t,result:e()})),r=v.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&Ali(t,o.inputs)||(o={inputs:t,result:e()}):o=n,v.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function Ali(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Tbe(e){const t=v.useRef();return v.useEffect(()=>{t.current=e}),t.current}const UR=typeof window<"u"&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,Xq=Symbol.for("Animated:node"),Oli=e=>!!e&&e[Xq]===e,kv=e=>e&&e[Xq],ize=(e,t)=>Qsi(e,Xq,t),tee=e=>e&&e[Xq]&&e[Xq].getPayload();class cwt{constructor(){this.payload=void 0,ize(this,this)}getPayload(){return this.payload||[]}}class xk extends cwt{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,zn.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new xk(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return zn.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,zn.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class YP extends xk{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Gq({output:[t,t]})}static create(t){return new YP(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(zn.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Gq({output:[this.getValue(),t]})),this._value=0,super.reset()}}const vX={dependencies:null};class nee extends cwt{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Wb(this.source,(r,i)=>{Oli(r)?n[i]=r.getValue(t):uf(r)?n[i]=X1(r):t||(n[i]=r)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&ro(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Wb(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){vX.dependencies&&uf(t)&&vX.dependencies.add(t);const n=tee(t);n&&ro(n,r=>this.add(r))}}class oze extends nee{constructor(t){super(t)}static create(t){return new oze(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(zli)),!0)}}function zli(e){return(JJ(e)?YP:xk).create(e)}function Ebe(e){const t=kv(e);return t?t.constructor:zn.arr(e)?oze:JJ(e)?YP:xk}function bX(){return bX=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bX.apply(this,arguments)}const A7e=(e,t)=>{const n=!zn.fun(e)||e.prototype&&e.prototype.isReactComponent;return v.forwardRef((r,i)=>{const o=v.useRef(null),a=n&&v.useCallback(g=>{o.current=Rli(i,g)},[i]),[s,l]=Eli(r,t),c=rze(),u=()=>{const g=o.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&c()},d=new Tli(u,l),p=v.useRef();UR(()=>{const g=p.current;p.current=d,ro(l,m=>Ck(m,d)),g&&(ro(g.deps,m=>Uq(m,g)),io.cancel(g.update))}),v.useEffect(u,[]),eee(()=>()=>{const g=p.current;ro(g.deps,m=>Uq(m,g))});const h=t.getComponentProps(s.getValue());return v.createElement(e,bX({},h,{ref:a}))})};class Tli{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&io.write(this.update)}}function Eli(e,t){const n=new Set;return vX.dependencies=n,e.style&&(e=bX({},e,{style:t.createAnimatedStyle(e.style)})),e=new nee(e),vX.dependencies=null,[e,n]}function Rli(e,t){return e&&(zn.fun(e)?e(t):e.current=t),t}const O7e=Symbol.for("AnimatedComponent"),Ili=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new nee(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=z7e(a)||"Anonymous";return zn.str(a)?a=o[a]||(o[a]=A7e(a,i)):a=a[O7e]||(a[O7e]=A7e(a,i)),a.displayName=`Animated(${s})`,a};return Wb(e,(a,s)=>{zn.arr(e)&&(s=z7e(a)),o[s]=o(a)}),{animated:o}},z7e=e=>zn.str(e)?e:e&&zn.str(e.displayName)?e.displayName:zn.fun(e)&&e.name||null;function oc(){return oc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(this,arguments)}function Y1(e,...t){return zn.fun(e)?e(...t):e}const UF=(e,t)=>e===!0||!!(t&&e&&(zn.fun(e)?e(t):a1(e).includes(t))),uwt=(e,t)=>zn.obj(e)?t&&e[t]:e,dwt=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Pli=e=>e,ree=(e,t=Pli)=>{let n=Dli;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);zn.und(o)||(r[i]=o)}return r},Dli=["config","onProps","onStart","onChange","onPause","onResume","onRest"],kli={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Lli(e){const t={};let n=0;if(Wb(e,(r,i)=>{kli[i]||(t[i]=r,n++)}),n)return t}function aze(e){const t=Lli(e);if(t){const n={to:t};return Wb(e,(r,i)=>i in t||(n[i]=r)),n}return oc({},e)}function Yq(e){return e=X1(e),zn.arr(e)?e.map(Yq):JJ(e)?qb.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function pwt(e){for(const t in e)return!0;return!1}function Rbe(e){return zn.fun(e)||zn.arr(e)&&zn.obj(e[0])}function Ibe(e,t){var n;(n=e.ref)==null||n.delete(e),t?.delete(e)}function hwt(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const sze={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},_li=e=>e,Pbe=oc({},sze.default,{mass:1,damping:1,easing:_li,clamp:!1});class Nli{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Pbe)}}function Fli(e,t,n){n&&(n=oc({},n),T7e(n,t),t=oc({},n,t)),T7e(e,t),Object.assign(e,t);for(const a in Pbe)e[a]==null&&(e[a]=Pbe[a]);let{mass:r,frequency:i,damping:o}=e;return zn.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i),e}function T7e(e,t){if(!zn.und(t.decay))e.duration=void 0;else{const n=!zn.und(t.tension)||!zn.und(t.friction);(n||!zn.und(t.frequency)||!zn.und(t.damping)||!zn.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const E7e=[];class Wli{constructor(){this.changed=!1,this.values=E7e,this.toValues=null,this.fromValues=E7e,this.to=void 0,this.from=void 0,this.config=new Nli,this.immediate=!1}}function fwt(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{var l;let c,u,d=UF((l=n.cancel)!=null?l:r?.cancel,t);if(d)g();else{zn.und(n.pause)||(i.paused=UF(n.pause,t));let m=r?.pause;m!==!0&&(m=i.paused||UF(m,t)),c=Y1(n.delay||0,t),m?(i.resumeQueue.add(h),o.pause()):(o.resume(),h())}function p(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),c=u.time-io.now()}function h(){c>0&&!qb.skipAnimation?(u=io.setTimeout(g,c),i.pauseQueue.add(p),i.timeouts.add(u)):g()}function g(){i.pauseQueue.delete(p),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(oc({},n,{callId:e,cancel:d}),a)}catch(m){s(m)}}})}const lze=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?jI(e.get()):t.every(n=>n.noop)?gwt(e.get()):$g(e.get(),t.every(n=>n.finished)),gwt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),$g=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),jI=e=>({value:e,cancelled:!0,finished:!1});function mwt(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return!o&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=ree(t,(b,y)=>y==="onRest"?void 0:b);let u,d;const p=new Promise((b,y)=>(u=b,d=y)),h=b=>{const y=i<=(n.cancelId||0)&&jI(r)||i!==n.asyncId&&$g(r,!1);if(y)throw b.result=y,d(b),b},g=(b,y)=>{const M=new R7e,C=new I7e;return(async()=>{if(qb.skipAnimation)throw Kq(n),C.result=$g(r,!1),d(C),C;h(M);const x=zn.obj(b)?oc({},b):oc({},y,{to:b});x.parentId=i,Wb(c,(S,A)=>{zn.und(x[A])&&(x[A]=S)});const w=await r.start(x);return h(M),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),w})()};let m;if(qb.skipAnimation)return Kq(n),$g(r,!1);try{let b;zn.arr(e)?b=(async y=>{for(const M of y)await g(M)})(e):b=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([b.then(u),p]),m=$g(r.get(),!0,!1)}catch(b){if(b instanceof R7e)m=b.result;else if(b instanceof I7e)m=b.result;else throw b}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return zn.fun(a)&&io.batchedUpdates(()=>{a(m,r,r.item)}),m})()}function Kq(e,t){GF(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class R7e extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class I7e extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Dbe=e=>e instanceof cze;let qli=1;class cze extends owt{constructor(...t){super(...t),this.id=qli++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=kv(this);return t&&t.getValue()}to(...t){return qb.to(this,t)}interpolate(...t){return yli(),qb.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){$q(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||QJ.sort(this),$q(this,{type:"priority",parent:this,priority:t})}}const i3=Symbol.for("SpringPhase"),vwt=1,kbe=2,Lbe=4,Qce=e=>(e[i3]&vwt)>0,mC=e=>(e[i3]&kbe)>0,$_=e=>(e[i3]&Lbe)>0,P7e=(e,t)=>t?e[i3]|=kbe|vwt:e[i3]&=~kbe,D7e=(e,t)=>t?e[i3]|=Lbe:e[i3]&=~Lbe;class Bli extends cze{constructor(t,n){if(super(),this.key=void 0,this.animation=new Wli,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!zn.und(t)||!zn.und(n)){const r=zn.obj(t)?oc({},t):oc({},n,{from:t});zn.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(mC(this)||this._state.asyncTo)||$_(this)}get goal(){return X1(this.animation.to)}get velocity(){const t=kv(this);return t instanceof xk?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return Qce(this)}get isAnimating(){return mC(this)}get isPaused(){return $_(this)}advance(t){let n=!0,r=!1;const i=this.animation;let{config:o,toValues:a}=i;const s=tee(i.to);!s&&uf(i.to)&&(a=a1(X1(i.to))),i.values.forEach((u,d)=>{if(u.done)return;const p=u.constructor==YP?1:s?s[d].lastPosition:a[d];let h=i.immediate,g=p;if(!h){if(g=u.lastPosition,o.tension<=0){u.done=!0;return}let m=u.elapsedTime+=t;const b=i.fromValues[d],y=u.v0!=null?u.v0:u.v0=zn.arr(o.velocity)?o.velocity[d]:o.velocity;let M;if(zn.und(o.duration))if(o.decay){const C=o.decay===!0?.998:o.decay,x=Math.exp(-(1-C)*m);g=b+y/(1-C)*(1-x),h=Math.abs(u.lastPosition-g)<.1,M=y*x}else{M=u.lastVelocity==null?y:u.lastVelocity;const C=o.precision||(b==p?.005:Math.min(1,Math.abs(p-b)*.001)),x=o.restVelocity||C/10,w=o.clamp?0:o.bounce,S=!zn.und(w),A=b==p?u.v0>0:b<p;let z,O=!1;const T=1,R=Math.ceil(t/T);for(let P=0;P<R&&(z=Math.abs(M)>x,!(!z&&(h=Math.abs(p-g)<=C,h)));++P){S&&(O=g==p||g>p==A,O&&(M=-M*w,g=p));const F=-o.tension*1e-6*(g-p),N=-o.friction*.001*M,L=(F+N)/o.mass;M=M+L*T,g=g+M*T}}else{let C=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,u.durationProgress>0&&(u.elapsedTime=o.duration*u.durationProgress,m=u.elapsedTime+=t)),C=(o.progress||0)+m/this._memoizedDuration,C=C>1?1:C<0?0:C,u.durationProgress=C),g=b+o.easing(C)*(p-b),M=(g-u.lastPosition)/t,h=C==1}u.lastVelocity=M,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),h=!0)}s&&!s[d].done&&(h=!1),h?u.done=!0:n=!1,u.setValue(g,o.round)&&(r=!0)});const l=kv(this),c=l.getValue();if(n){const u=X1(i.to);(c!==u||r)&&!o.decay?(l.setValue(u),this._onChange(u)):r&&o.decay&&this._onChange(c),this._stop()}else r&&this._onChange(c)}set(t){return io.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(mC(this)){const{to:t,config:n}=this.animation;io.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let r;return zn.und(t)?(r=this.queue||[],this.queue=[]):r=[zn.obj(t)?t:oc({},n,{to:t})],Promise.all(r.map(i=>this._update(i))).then(i=>lze(this,i))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),Kq(this._state,t&&this._lastCallId),io.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:r,from:i}=t;r=zn.obj(r)?r[n]:r,(r==null||Rbe(r))&&(r=void 0),i=zn.obj(i)?i[n]:i,i==null&&(i=void 0);const o={to:r,from:i};return Qce(this)||(t.reverse&&([r,i]=[i,r]),i=X1(i),zn.und(i)?kv(this)||this._set(r):this._set(i)),o}_update(t,n){let r=oc({},t);const{key:i,defaultProps:o}=this;r.default&&Object.assign(o,ree(r,(l,c)=>/^on/.test(c)?uwt(l,i):l)),L7e(this,r,"onProps"),X_(this,"onProps",r,this);const a=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return fwt(++this._lastCallId,{key:i,props:r,defaultProps:o,state:s,actions:{pause:()=>{$_(this)||(D7e(this,!0),AN(s.pauseQueue),X_(this,"onPause",$g(this,U_(this,this.animation.to)),this))},resume:()=>{$_(this)&&(D7e(this,!1),mC(this)&&this._resume(),AN(s.resumeQueue),X_(this,"onResume",$g(this,U_(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(l=>{if(r.loop&&l.finished&&!(n&&l.noop)){const c=bwt(r);if(c)return this._update(c,!0)}return l})}_merge(t,n,r){if(n.cancel)return this.stop(!0),r(jI(this));const i=!zn.und(t.to),o=!zn.und(t.from);if(i||o)if(n.callId>this._lastToId)this._lastToId=n.callId;else return r(jI(this));const{key:a,defaultProps:s,animation:l}=this,{to:c,from:u}=l;let{to:d=c,from:p=u}=t;o&&!i&&(!n.default||zn.und(d))&&(d=p),n.reverse&&([d,p]=[p,d]);const h=!oy(p,u);h&&(l.from=p),p=X1(p);const g=!oy(d,c);g&&this._focus(d);const m=Rbe(n.to),{config:b}=l,{decay:y,velocity:M}=b;(i||o)&&(b.velocity=0),n.config&&!m&&Fli(b,Y1(n.config,a),n.config!==s.config?Y1(s.config,a):void 0);let C=kv(this);if(!C||zn.und(d))return r($g(this,!0));const x=zn.und(n.reset)?o&&!n.default:!zn.und(p)&&UF(n.reset,a),w=x?p:this.get(),S=Yq(d),A=zn.num(S)||zn.arr(S)||JJ(S),z=!m&&(!A||UF(s.immediate||n.immediate,a));if(g){const P=Ebe(d);if(P!==C.constructor)if(z)C=this._set(S);else throw Error(`Cannot animate between ${C.constructor.name} and ${P.name}, as the "to" prop suggests`)}const O=C.constructor;let T=uf(d),R=!1;if(!T){const P=x||!Qce(this)&&h;(g||P)&&(R=oy(Yq(w),S),T=!R),(!oy(l.immediate,z)&&!z||!oy(b.decay,y)||!oy(b.velocity,M))&&(T=!0)}if(R&&mC(this)&&(l.changed&&!x?T=!0:T||this._stop(c)),!m&&((T||uf(c))&&(l.values=C.getPayload(),l.toValues=uf(d)?null:O==YP?[1]:a1(S)),l.immediate!=z&&(l.immediate=z,!z&&!x&&this._set(c)),T)){const{onRest:P}=l;ro(Hli,N=>L7e(this,n,N));const F=$g(this,U_(this,c));AN(this._pendingCalls,F),this._pendingCalls.add(r),l.changed&&io.batchedUpdates(()=>{l.changed=!x,P?.(F,this),x?Y1(s.onRest,F):l.onStart==null||l.onStart(F,this)})}x&&this._set(w),m?r(mwt(n.to,n,this._state,this)):T?this._start():mC(this)&&!g?this._pendingCalls.add(r):r(gwt(w))}_focus(t){const n=this.animation;t!==n.to&&(w7e(this)&&this._detach(),n.to=t,w7e(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;uf(n)&&(Ck(n,this),Dbe(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;uf(t)&&Uq(t,this)}_set(t,n=!0){const r=X1(t);if(!zn.und(r)){const i=kv(this);if(!i||!oy(r,i.getValue())){const o=Ebe(r);!i||i.constructor!=o?ize(this,o.create(r)):i.setValue(r),i&&io.batchedUpdates(()=>{this._onChange(r,n)})}}return kv(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,X_(this,"onStart",$g(this,U_(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),Y1(this.animation.onChange,t,this)),Y1(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;kv(this).reset(X1(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),mC(this)||(P7e(this,!0),$_(this)||this._resume())}_resume(){qb.skipAnimation?this.finish():QJ.start(this)}_stop(t,n){if(mC(this)){P7e(this,!1);const r=this.animation;ro(r.values,o=>{o.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),$q(this,{type:"idle",parent:this});const i=n?jI(this.get()):$g(this.get(),U_(this,t??r.to));AN(this._pendingCalls,i),r.changed&&(r.changed=!1,X_(this,"onRest",i,this))}}}function U_(e,t){const n=Yq(t),r=Yq(e.get());return oy(r,n)}function bwt(e,t=e.loop,n=e.to){let r=Y1(t);if(r){const i=r!==!0&&aze(r),o=(i||e).reverse,a=!i||i.reset;return Qq(oc({},e,{loop:t,default:!1,pause:void 0,to:!o||Rbe(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function Qq(e){const{to:t,from:n}=e=aze(e),r=new Set;return zn.obj(t)&&k7e(t,r),zn.obj(n)&&k7e(n,r),e.keys=r.size?Array.from(r):null,e}function jli(e){const t=Qq(e);return zn.und(t.default)&&(t.default=ree(t)),t}function k7e(e,t){Wb(e,(n,r)=>n!=null&&t.add(r))}const Hli=["onStart","onRest","onChange","onPause","onResume"];function L7e(e,t,n){e.animation[n]=t[n]!==dwt(t,n)?uwt(t[n],e.key):void 0}function X_(e,t,...n){var r,i,o,a;(r=(i=e.animation)[t])==null||r.call(i,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}const Vli=["onStart","onChange","onRest"];let Gli=1;class ywt{constructor(t,n){this.id=Gli++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start(oc({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,r)=>t[r]=n.get()),t}set(t){for(const n in t){const r=t[n];zn.und(r)||this.springs[n].set(r)}}update(t){return t&&this.queue.push(Qq(t)),this}start(t){let{queue:n}=this;return t?n=a1(t).map(Qq):this.queue=[],this._flush?this._flush(this,n):(Swt(this,n),_be(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const r=this.springs;ro(a1(n),i=>r[i].stop(!!t))}else Kq(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(zn.und(t))this.start({pause:!0});else{const n=this.springs;ro(a1(t),r=>n[r].pause())}return this}resume(t){if(zn.und(t))this.start({pause:!1});else{const n=this.springs;ro(a1(t),r=>n[r].resume())}return this}each(t){Wb(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:r}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,GF(t,([l,c])=>{c.value=this.get(),l(c,this,this._item)}));const a=!i&&this._started,s=o||a&&r.size?this.get():null;o&&n.size&&GF(n,([l,c])=>{c.value=s,l(c,this,this._item)}),a&&(this._started=!1,GF(r,([l,c])=>{c.value=s,l(c,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;io.onFrame(this._onFrame)}}function _be(e,t){return Promise.all(t.map(n=>Mwt(e,n))).then(n=>lze(e,n))}async function Mwt(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=zn.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=zn.arr(i)||zn.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):ro(Vli,m=>{const b=t[m];if(zn.fun(b)){const y=e._events[m];t[m]=({finished:M,cancelled:C})=>{const x=y.get(b);x?(M||(x.finished=!1),C&&(x.cancelled=!0)):y.set(b,{value:null,finished:M||!1,cancelled:C||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,AN(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||dwt(t,"cancel")===!0;(u||h&&d.asyncId)&&p.push(fwt(++e._lastAsyncId,{props:t,state:d,actions:{pause:Abe,resume:Abe,start(m,b){h?(Kq(d,e._lastAsyncId),b(jI(e))):(m.onRest=s,b(mwt(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const g=lze(e,await Promise.all(p));if(a&&g.finished&&!(n&&g.noop)){const m=bwt(t,a,i);if(m)return Swt(e,[m]),Mwt(e,m,!0)}return l&&io.batchedUpdates(()=>l(g,e,e.item)),g}function Nbe(e,t){const n=oc({},e.springs);return t&&ro(a1(t),r=>{zn.und(r.keys)&&(r=Qq(r)),zn.obj(r.to)||(r=oc({},r,{to:void 0})),wwt(n,r,i=>xwt(i))}),Cwt(e,n),n}function Cwt(e,t){Wb(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ck(n,e))})}function xwt(e,t){const n=new Bli;return n.key=e,t&&Ck(n,t),n}function wwt(e,t,n){t.keys&&ro(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Swt(e,t){ro(t,n=>{wwt(e.springs,n,r=>xwt(r,e))})}function $li(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Uli=["children"],lj=e=>{let{children:t}=e,n=$li(e,Uli);const r=v.useContext(yX),i=n.pause||!!r.pause,o=n.immediate||!!r.immediate;n=Sli(()=>({pause:i,immediate:o}),[i,o]);const{Provider:a}=yX;return v.createElement(a,{value:n},t)},yX=Xli(lj,{});lj.Provider=yX.Provider;lj.Consumer=yX.Consumer;function Xli(e,t){return Object.assign(e,v.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const Awt=()=>{const e=[],t=function(i){Cli();const o=[];return ro(e,(a,s)=>{if(zn.und(i))o.push(a.start());else{const l=n(i,a,s);l&&o.push(a.start(l))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return ro(e,r=>r.pause(...arguments)),this},t.resume=function(){return ro(e,r=>r.resume(...arguments)),this},t.set=function(r){ro(e,i=>i.set(r))},t.start=function(r){const i=[];return ro(e,(o,a)=>{if(zn.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return ro(e,r=>r.stop(...arguments)),this},t.update=function(r){return ro(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(i,o,a){return zn.fun(i)?i(a,o):i};return t._getProps=n,t};function Yli(e,t,n){const r=zn.fun(t)&&t;r&&!n&&(n=[]);const i=v.useMemo(()=>r||arguments.length==3?Awt():void 0,[]),o=v.useRef(0),a=rze(),s=v.useMemo(()=>({ctrls:[],queue:[],flush(y,M){const C=Nbe(y,M);return o.current>0&&!s.queue.length&&!Object.keys(C).some(w=>!y.springs[w])?_be(y,M):new Promise(w=>{Cwt(y,C),s.queue.push(()=>{w(_be(y,M))}),a()})}}),[]),l=v.useRef([...s.ctrls]),c=[],u=Tbe(e)||0;v.useMemo(()=>{ro(l.current.slice(e,u),y=>{Ibe(y,i),y.stop(!0)}),l.current.length=e,d(u,e)},[e]),v.useMemo(()=>{d(0,Math.min(u,e))},n);function d(y,M){for(let C=y;C<M;C++){const x=l.current[C]||(l.current[C]=new ywt(null,s.flush)),w=r?r(C,x):t[C];w&&(c[C]=jli(w))}}const p=l.current.map((y,M)=>Nbe(y,c[M])),h=v.useContext(lj),g=Tbe(h),m=h!==g&&pwt(h);UR(()=>{o.current++,s.ctrls=l.current;const{queue:y}=s;y.length&&(s.queue=[],ro(y,M=>M())),ro(l.current,(M,C)=>{i?.add(M),m&&M.start({default:h});const x=c[C];x&&(hwt(M,x.ref),M.ref?M.queue.push(x):M.start(x))})}),eee(()=>()=>{ro(s.ctrls,y=>y.stop(!0))});const b=p.map(y=>oc({},y));return i?[b,i]:b}function cj(e,t){const n=zn.fun(e),[[r],i]=Yli(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}let H1;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(H1||(H1={}));function Owt(e,t,n){const r=zn.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,onDestroyed:l,ref:c,config:u}=r?r():t,d=v.useMemo(()=>r||arguments.length==3?Awt():void 0,[]),p=a1(e),h=[],g=v.useRef(null),m=i?null:g.current;UR(()=>{g.current=h}),eee(()=>()=>ro(g.current,R=>{R.expired&&clearTimeout(R.expirationId),Ibe(R.ctrl,d),R.ctrl.stop(!0)}));const b=Qli(p,r?r():t,m),y=i&&g.current||[];UR(()=>ro(y,({ctrl:R,item:P,key:F})=>{Ibe(R,d),Y1(l,P,F)}));const M=[];if(m&&ro(m,(R,P)=>{R.expired?(clearTimeout(R.expirationId),y.push(R)):(P=M[P]=b.indexOf(R.key),~P&&(h[P]=R))}),ro(p,(R,P)=>{h[P]||(h[P]={key:b[P],item:R,phase:H1.MOUNT,ctrl:new ywt},h[P].ctrl.item=R)}),M.length){let R=-1;const{leave:P}=r?r():t;ro(M,(F,N)=>{const L=m[N];~F?(R=h.indexOf(L),h[R]=oc({},L,{item:p[F]})):P&&h.splice(++R,0,L)})}zn.fun(o)&&h.sort((R,P)=>o(R.item,P.item));let C=-a;const x=rze(),w=ree(t),S=new Map;ro(h,(R,P)=>{const F=R.key,N=R.phase,L=r?r():t;let W,j,V=Y1(L.delay||0,F);if(N==H1.MOUNT)W=L.enter,j=H1.ENTER;else{const U=b.indexOf(F)<0;if(N!=H1.LEAVE)if(U)W=L.leave,j=H1.LEAVE;else if(W=L.update)j=H1.UPDATE;else return;else if(!U)W=L.enter,j=H1.ENTER;else return}if(W=Y1(W,R.item,P),W=zn.obj(W)?aze(W):{to:W},!W.config){const U=u||w.config;W.config=Y1(U,R.item,P,j)}C+=a;const G=oc({},w,{delay:V+C,ref:c,immediate:L.immediate,reset:!1},W);if(j==H1.ENTER&&zn.und(G.from)){const U=r?r():t,X=zn.und(U.initial)||m?U.from:U.initial;G.from=Y1(X,R.item,P)}const{onResolve:q}=G;G.onResolve=U=>{Y1(q,U);const X=g.current,Q=X.find(re=>re.key===F);if(Q&&!(U.cancelled&&Q.phase!=H1.UPDATE)&&Q.ctrl.idle){const re=X.every(ee=>ee.ctrl.idle);if(Q.phase==H1.LEAVE){const ee=Y1(s,Q.item);if(ee!==!1){const se=ee===!0?0:ee;if(Q.expired=!0,!re&&se>0){se<=2147483647&&(Q.expirationId=setTimeout(x,se));return}}}re&&X.some(ee=>ee.expired)&&x()}};const $=Nbe(R.ctrl,G);S.set(R,{phase:j,springs:$,payload:G})});const A=v.useContext(lj),z=Tbe(A),O=A!==z&&pwt(A);UR(()=>{O&&ro(h,R=>{R.ctrl.start({default:A})})},[A]),UR(()=>{ro(S,({phase:R,payload:P},F)=>{const{ctrl:N}=F;F.phase=R,d?.add(N),O&&R==H1.ENTER&&N.start({default:A}),P&&(hwt(N,P.ref),N.ref?N.update(P):N.start(P))})},i?void 0:n);const T=R=>v.createElement(v.Fragment,null,h.map((P,F)=>{const{springs:N}=S.get(P)||P.ctrl,L=R(oc({},N),P.item,P,F);return L&&L.type?v.createElement(L.type,oc({},L.props,{key:zn.str(P.key)||zn.num(P.key)?P.key:P.ctrl.id,ref:L.ref})):L}));return d?[T,d]:T}let Kli=1;function Qli(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!==H1.LEAVE&&!i.has(s));return a?(i.add(a),a.key):Kli++})}return zn.und(n)?e:zn.fun(n)?e.map(n):a1(n)}class zwt extends cze{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Gq(...n);const r=this._get(),i=Ebe(r);ize(this,i.create(r))}advance(t){const n=this._get(),r=this.get();oy(n,r)||(kv(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&_7e(this._active)&&Zce(this)}_get(){const t=zn.arr(this.source)?this.source.map(X1):a1(X1(this.source));return this.calc(...t)}_start(){this.idle&&!_7e(this._active)&&(this.idle=!1,ro(tee(this),t=>{t.done=!1}),qb.skipAnimation?(io.batchedUpdates(()=>this.advance()),Zce(this)):QJ.start(this))}_attach(){let t=1;ro(a1(this.source),n=>{uf(n)&&Ck(n,this),Dbe(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){ro(a1(this.source),t=>{uf(t)&&Uq(t,this)}),this._active.clear(),Zce(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=a1(this.source).reduce((n,r)=>Math.max(n,(Dbe(r)?r.priority:0)+1),0))}}function Zli(e){return e.idle!==!1}function _7e(e){return!e.size||Array.from(e).every(Zli)}function Zce(e){e.idle||(e.idle=!0,ro(tee(e),t=>{t.done=!0}),$q(e,{type:"idle",parent:e}))}const N7e=(e,...t)=>new zwt(e,t);qb.assign({createStringInterpolator:swt,to:(e,t)=>new zwt(e,t)});function uze(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Jli=["style","children","scrollTop","scrollLeft"],Twt=/^--/;function eci(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Twt.test(e)&&!(XF.hasOwnProperty(e)&&XF[e])?t+"px":(""+t).trim()}const F7e={};function tci(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",r=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=uze(r,Jli),c=Object.values(l),u=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:F7e[d]||(F7e[d]=d.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(let d in i)if(i.hasOwnProperty(d)){const p=eci(d,i[d]);Twt.test(d)?e.style.setProperty(d,p):e.style[d]=p}u.forEach((d,p)=>{e.setAttribute(d,c[p])}),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s)}let XF={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const nci=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rci=["Webkit","Ms","Moz","O"];XF=Object.keys(XF).reduce((e,t)=>(rci.forEach(n=>e[nci(n,t)]=e[t]),e),XF);const ici=["x","y","z"],oci=/^(matrix|translate|scale|rotate|skew)/,aci=/^(translate)/,sci=/^(rotate|skew)/,Jce=(e,t)=>zn.num(e)&&e!==0?e+t:e,a$=(e,t)=>zn.arr(e)?e.every(n=>a$(n,t)):zn.num(e)?e===t:parseFloat(e)===t;class lci extends nee{constructor(t){let{x:n,y:r,z:i}=t,o=uze(t,ici);const a=[],s=[];(n||r||i)&&(a.push([n||0,r||0,i||0]),s.push(l=>[`translate3d(${l.map(c=>Jce(c,"px")).join(",")})`,a$(l,0)])),Wb(o,(l,c)=>{if(c==="transform")a.push([l||""]),s.push(u=>[u,u===""]);else if(oci.test(c)){if(delete o[c],zn.und(l))return;const u=aci.test(c)?"px":sci.test(c)?"deg":"";a.push(a1(l)),s.push(c==="rotate3d"?([d,p,h,g])=>[`rotate3d(${d},${p},${h},${Jce(g,u)})`,a$(g,0)]:d=>[`${c}(${d.map(p=>Jce(p,u)).join(",")})`,a$(d,c.startsWith("scale")?1:0)])}}),a.length&&(o.transform=new cci(a,s)),super(o)}}class cci extends owt{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return ro(this.inputs,(r,i)=>{const o=X1(r[0]),[a,s]=this.transforms[i](zn.arr(o)?o:r.map(X1));t+=" "+a,n=n&&s}),n?"none":t}observerAdded(t){t==1&&ro(this.inputs,n=>ro(n,r=>uf(r)&&Ck(r,this)))}observerRemoved(t){t==0&&ro(this.inputs,n=>ro(n,r=>uf(r)&&Uq(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),$q(this,t)}}const uci=["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","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"],dci=["scrollTop","scrollLeft"];qb.assign({batchedUpdates:Bl.unstable_batchedUpdates,createStringInterpolator:swt,colors:tli});const pci=Ili(uci,{applyAnimatedValues:tci,createAnimatedStyle:e=>new lci(e),getComponentProps:e=>uze(e,dci)}),If=pci.animated;function o3(){return o3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o3.apply(this,arguments)}var hci={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},W7e=function(e,t){return"translate("+e+"px, "+t+"px)"},Ewt=v.memo((function(e){var t,n=e.position,r=e.anchor,i=e.children,o=ig(),a=gj(),s=a.animate,l=a.config,c=gAt(),u=c[0],d=c[1],p=v.useRef(!1),h=void 0,g=!1,m=d.width>0&&d.height>0,b=Math.round(n[0]),y=Math.round(n[1]);m&&(r==="top"?(b-=d.width/2,y-=d.height+14):r==="right"?(b+=14,y-=d.height/2):r==="bottom"?(b-=d.width/2,y+=14):r==="left"?(b-=d.width+14,y-=d.height/2):r==="center"&&(b-=d.width/2,y-=d.height/2),h={transform:W7e(b,y)},p.current||(g=!0),p.current=[b,y]);var M=cj({to:h,config:l,immediate:!s||g}),C=o3({},hci,o.tooltip,{transform:(t=M.transform)!=null?t:W7e(b,y)});return f.jsx(If.div,{ref:u,style:C,children:i})}));Ewt.displayName="TooltipWrapper";var fci=v.memo((function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return f.jsx("span",{style:o3({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})})),gci=v.memo((function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,c=ig(),u=mAt(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=f.jsxs("div",{style:c.tooltip.basic,children:[a&&f.jsx(fci,{color:s,style:c.tooltip.chip}),d!==void 0?f.jsxs("span",{children:[n,": ",f.jsx("strong",{children:""+d})]}):n]})}return f.jsx("div",{style:c.tooltip.container,children:t})})),mci={width:"100%",borderCollapse:"collapse"},vci=v.memo((function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=ig();return i.length?(t=typeof o=="function"?o():f.jsxs("div",{children:[n&&n,f.jsx("table",{style:o3({},mci,a.tooltip.table),children:f.jsx("tbody",{children:i.map((function(s,l){return f.jsx("tr",{children:s.map((function(c,u){return f.jsx("td",{style:a.tooltip.tableCell,children:c},u)}))},l)}))})})]}),f.jsx("div",{style:a.tooltip.container,children:t})):null}));vci.displayName="TableTooltip";var Fbe=v.memo((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=ig(),a=gj(),s=a.animate,l=a.config,c=v.useMemo((function(){return o3({},o.crosshair.line,{pointerEvents:"none"})}),[o.crosshair.line]),u=cj({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return f.jsx(If.line,o3({},u,{fill:"none",style:c}))}));Fbe.displayName="CrosshairLine";var bci=v.memo((function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),f.jsxs(f.Fragment,{children:[t&&f.jsx(Fbe,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&f.jsx(Fbe,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})}));bci.displayName="Crosshair";var Rwt=v.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Wbe={isVisible:!1,position:[null,null],content:null,anchor:null},Iwt=v.createContext(Wbe),yci=function(e){var t=v.useState(Wbe),n=t[0],r=t[1],i=v.useCallback((function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})}),[r]),o=v.useCallback((function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=l.clientX-u.left,p=l.clientY-u.top;c!=="left"&&c!=="right"||(c=d<u.width/2?"right":"left"),r({isVisible:!0,position:[d,p],anchor:c,content:s})}),[e,r]),a=v.useCallback((function(){r(Wbe)}),[r]);return{actions:v.useMemo((function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}}),[i,o,a]),state:n}},Pwt=function(){var e=v.useContext(Rwt);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},Mci=function(){var e=v.useContext(Iwt);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},Cci=function(e){return e.isVisible},xci=function(){var e=Mci();return Cci(e)?f.jsx(Ewt,{position:e.position,anchor:e.anchor,children:e.content}):null},wci=function(e){var t=e.container,n=e.children,r=yci(t),i=r.actions,o=r.state;return f.jsx(Rwt.Provider,{value:i,children:f.jsx(Iwt.Provider,{value:o,children:n})})},eue,q7e;function Sci(){if(q7e)return eue;q7e=1;function e(){this.__data__=[],this.size=0}return eue=e,eue}var tue,B7e;function uj(){if(B7e)return tue;B7e=1;function e(t,n){return t===n||t!==t&&n!==n}return tue=e,tue}var nue,j7e;function iee(){if(j7e)return nue;j7e=1;var e=uj();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return nue=t,nue}var rue,H7e;function Aci(){if(H7e)return rue;H7e=1;var e=iee(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():n.call(o,a,1),--this.size,!0}return rue=r,rue}var iue,V7e;function Oci(){if(V7e)return iue;V7e=1;var e=iee();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return iue=t,iue}var oue,G7e;function zci(){if(G7e)return oue;G7e=1;var e=iee();function t(n){return e(this.__data__,n)>-1}return oue=t,oue}var aue,$7e;function Tci(){if($7e)return aue;$7e=1;var e=iee();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return aue=t,aue}var sue,U7e;function oee(){if(U7e)return sue;U7e=1;var e=Sci(),t=Aci(),n=Oci(),r=zci(),i=Tci();function o(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,sue=o,sue}var lue,X7e;function Eci(){if(X7e)return lue;X7e=1;var e=oee();function t(){this.__data__=new e,this.size=0}return lue=t,lue}var cue,Y7e;function Rci(){if(Y7e)return cue;Y7e=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return cue=e,cue}var uue,K7e;function Ici(){if(K7e)return uue;K7e=1;function e(t){return this.__data__.get(t)}return uue=e,uue}var due,Q7e;function Pci(){if(Q7e)return due;Q7e=1;function e(t){return this.__data__.has(t)}return due=e,due}var pue,Z7e;function Dwt(){if(Z7e)return pue;Z7e=1;var e=typeof nx=="object"&&nx&&nx.Object===Object&&nx;return pue=e,pue}var hue,J7e;function o2(){if(J7e)return hue;J7e=1;var e=Dwt(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return hue=n,hue}var fue,e$e;function wk(){if(e$e)return fue;e$e=1;var e=o2(),t=e.Symbol;return fue=t,fue}var gue,t$e;function Dci(){if(t$e)return gue;t$e=1;var e=wk(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var s=n.call(a,i),l=a[i];try{a[i]=void 0;var c=!0}catch{}var u=r.call(a);return c&&(s?a[i]=l:delete a[i]),u}return gue=o,gue}var mue,n$e;function kci(){if(n$e)return mue;n$e=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return mue=n,mue}var vue,r$e;function OM(){if(r$e)return vue;r$e=1;var e=wk(),t=Dci(),n=kci(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?i:r:o&&o in Object(s)?t(s):n(s)}return vue=a,vue}var bue,i$e;function a2(){if(i$e)return bue;i$e=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return bue=e,bue}var yue,o$e;function aee(){if(o$e)return yue;o$e=1;var e=OM(),t=a2(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!t(s))return!1;var l=e(s);return l==r||l==i||l==n||l==o}return yue=a,yue}var Mue,a$e;function Lci(){if(a$e)return Mue;a$e=1;var e=o2(),t=e["__core-js_shared__"];return Mue=t,Mue}var Cue,s$e;function _ci(){if(s$e)return Cue;s$e=1;var e=Lci(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Cue=n,Cue}var xue,l$e;function kwt(){if(l$e)return xue;l$e=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return xue=n,xue}var wue,c$e;function Nci(){if(c$e)return wue;c$e=1;var e=aee(),t=_ci(),n=a2(),r=kwt(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!n(p)||t(p))return!1;var h=e(p)?u:o;return h.test(r(p))}return wue=d,wue}var Sue,u$e;function Fci(){if(u$e)return Sue;u$e=1;function e(t,n){return t?.[n]}return Sue=e,Sue}var Aue,d$e;function tT(){if(d$e)return Aue;d$e=1;var e=Nci(),t=Fci();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return Aue=n,Aue}var Oue,p$e;function dze(){if(p$e)return Oue;p$e=1;var e=tT(),t=o2(),n=e(t,"Map");return Oue=n,Oue}var zue,h$e;function see(){if(h$e)return zue;h$e=1;var e=tT(),t=e(Object,"create");return zue=t,zue}var Tue,f$e;function Wci(){if(f$e)return Tue;f$e=1;var e=see();function t(){this.__data__=e?e(null):{},this.size=0}return Tue=t,Tue}var Eue,g$e;function qci(){if(g$e)return Eue;g$e=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Eue=e,Eue}var Rue,m$e;function Bci(){if(m$e)return Rue;m$e=1;var e=see(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var s=a[o];return s===t?void 0:s}return r.call(a,o)?a[o]:void 0}return Rue=i,Rue}var Iue,v$e;function jci(){if(v$e)return Iue;v$e=1;var e=see(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return Iue=r,Iue}var Pue,b$e;function Hci(){if(b$e)return Pue;b$e=1;var e=see(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return Pue=n,Pue}var Due,y$e;function Vci(){if(y$e)return Due;y$e=1;var e=Wci(),t=qci(),n=Bci(),r=jci(),i=Hci();function o(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Due=o,Due}var kue,M$e;function Gci(){if(M$e)return kue;M$e=1;var e=Vci(),t=oee(),n=dze();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return kue=r,kue}var Lue,C$e;function $ci(){if(C$e)return Lue;C$e=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Lue=e,Lue}var _ue,x$e;function lee(){if(x$e)return _ue;x$e=1;var e=$ci();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return _ue=t,_ue}var Nue,w$e;function Uci(){if(w$e)return Nue;w$e=1;var e=lee();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Nue=t,Nue}var Fue,S$e;function Xci(){if(S$e)return Fue;S$e=1;var e=lee();function t(n){return e(this,n).get(n)}return Fue=t,Fue}var Wue,A$e;function Yci(){if(A$e)return Wue;A$e=1;var e=lee();function t(n){return e(this,n).has(n)}return Wue=t,Wue}var que,O$e;function Kci(){if(O$e)return que;O$e=1;var e=lee();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return que=t,que}var Bue,z$e;function pze(){if(z$e)return Bue;z$e=1;var e=Gci(),t=Uci(),n=Xci(),r=Yci(),i=Kci();function o(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Bue=o,Bue}var jue,T$e;function Qci(){if(T$e)return jue;T$e=1;var e=oee(),t=dze(),n=pze(),r=200;function i(o,a){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<r-1)return l.push([o,a]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(o,a),this.size=s.size,this}return jue=i,jue}var Hue,E$e;function cee(){if(E$e)return Hue;E$e=1;var e=oee(),t=Eci(),n=Rci(),r=Ici(),i=Pci(),o=Qci();function a(s){var l=this.__data__=new e(s);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,Hue=a,Hue}var Vue,R$e;function Lwt(){if(R$e)return Vue;R$e=1;var e=tT(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Vue=t,Vue}var Gue,I$e;function hze(){if(I$e)return Gue;I$e=1;var e=Lwt();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return Gue=t,Gue}var $ue,P$e;function _wt(){if(P$e)return $ue;P$e=1;var e=hze(),t=uj();function n(r,i,o){(o!==void 0&&!t(r[i],o)||o===void 0&&!(i in r))&&e(r,i,o)}return $ue=n,$ue}var Uue,D$e;function Zci(){if(D$e)return Uue;D$e=1;function e(t){return function(n,r,i){for(var o=-1,a=Object(n),s=i(n),l=s.length;l--;){var c=s[t?l:++o];if(r(a[c],c,a)===!1)break}return n}}return Uue=e,Uue}var Xue,k$e;function Nwt(){if(k$e)return Xue;k$e=1;var e=Zci(),t=e();return Xue=t,Xue}var ON={exports:{}};ON.exports;var L$e;function Fwt(){return L$e||(L$e=1,(function(e,t){var n=o2(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,p=s?s(d):new c.constructor(d);return c.copy(p),p}e.exports=l})(ON,ON.exports)),ON.exports}var Yue,_$e;function Wwt(){if(_$e)return Yue;_$e=1;var e=o2(),t=e.Uint8Array;return Yue=t,Yue}var Kue,N$e;function fze(){if(N$e)return Kue;N$e=1;var e=Wwt();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return Kue=t,Kue}var Que,F$e;function qwt(){if(F$e)return Que;F$e=1;var e=fze();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}return Que=t,Que}var Zue,W$e;function Bwt(){if(W$e)return Zue;W$e=1;function e(t,n){var r=-1,i=t.length;for(n||(n=Array(i));++r<i;)n[r]=t[r];return n}return Zue=e,Zue}var Jue,q$e;function Jci(){if(q$e)return Jue;q$e=1;var e=a2(),t=Object.create,n=(function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var o=new r;return r.prototype=void 0,o}})();return Jue=n,Jue}var ede,B$e;function jwt(){if(B$e)return ede;B$e=1;function e(t,n){return function(r){return t(n(r))}}return ede=e,ede}var tde,j$e;function gze(){if(j$e)return tde;j$e=1;var e=jwt(),t=e(Object.getPrototypeOf,Object);return tde=t,tde}var nde,H$e;function mze(){if(H$e)return nde;H$e=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return nde=t,nde}var rde,V$e;function Hwt(){if(V$e)return rde;V$e=1;var e=Jci(),t=gze(),n=mze();function r(i){return typeof i.constructor=="function"&&!n(i)?e(t(i)):{}}return rde=r,rde}var ide,G$e;function rg(){if(G$e)return ide;G$e=1;function e(t){return t!=null&&typeof t=="object"}return ide=e,ide}var ode,$$e;function eui(){if($$e)return ode;$$e=1;var e=OM(),t=rg(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return ode=r,ode}var ade,U$e;function uee(){if(U$e)return ade;U$e=1;var e=eui(),t=rg(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return ade=o,ade}var sde,X$e;function y1(){if(X$e)return sde;X$e=1;var e=Array.isArray;return sde=e,sde}var lde,Y$e;function vze(){if(Y$e)return lde;Y$e=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return lde=t,lde}var cde,K$e;function Sk(){if(K$e)return cde;K$e=1;var e=aee(),t=vze();function n(r){return r!=null&&t(r.length)&&!e(r)}return cde=n,cde}var ude,Q$e;function Vwt(){if(Q$e)return ude;Q$e=1;var e=Sk(),t=rg();function n(r){return t(r)&&e(r)}return ude=n,ude}var zN={exports:{}},dde,Z$e;function tui(){if(Z$e)return dde;Z$e=1;function e(){return!1}return dde=e,dde}zN.exports;var J$e;function dee(){return J$e||(J$e=1,(function(e,t){var n=o2(),r=tui(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(zN,zN.exports)),zN.exports}var pde,e9e;function bze(){if(e9e)return pde;e9e=1;var e=OM(),t=gze(),n=rg(),r="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,s=o.hasOwnProperty,l=a.call(Object);function c(u){if(!n(u)||e(u)!=r)return!1;var d=t(u);if(d===null)return!0;var p=s.call(d,"constructor")&&d.constructor;return typeof p=="function"&&p instanceof p&&a.call(p)==l}return pde=c,pde}var hde,t9e;function nui(){if(t9e)return hde;t9e=1;var e=OM(),t=vze(),n=rg(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",d="[object Object]",p="[object RegExp]",h="[object Set]",g="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",z="[object Uint8ClampedArray]",O="[object Uint16Array]",T="[object Uint32Array]",R={};R[M]=R[C]=R[x]=R[w]=R[S]=R[A]=R[z]=R[O]=R[T]=!0,R[r]=R[i]=R[b]=R[o]=R[y]=R[a]=R[s]=R[l]=R[c]=R[u]=R[d]=R[p]=R[h]=R[g]=R[m]=!1;function P(F){return n(F)&&t(F.length)&&!!R[e(F)]}return hde=P,hde}var fde,n9e;function Ak(){if(n9e)return fde;n9e=1;function e(t){return function(n){return t(n)}}return fde=e,fde}var TN={exports:{}};TN.exports;var r9e;function pee(){return r9e||(r9e=1,(function(e,t){var n=Dwt(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();e.exports=s})(TN,TN.exports)),TN.exports}var gde,i9e;function yze(){if(i9e)return gde;i9e=1;var e=nui(),t=Ak(),n=pee(),r=n&&n.isTypedArray,i=r?t(r):e;return gde=i,gde}var mde,o9e;function Gwt(){if(o9e)return mde;o9e=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return mde=e,mde}var vde,a9e;function Mze(){if(a9e)return vde;a9e=1;var e=hze(),t=uj(),n=Object.prototype,r=n.hasOwnProperty;function i(o,a,s){var l=o[a];(!(r.call(o,a)&&t(l,s))||s===void 0&&!(a in o))&&e(o,a,s)}return vde=i,vde}var bde,s9e;function Ok(){if(s9e)return bde;s9e=1;var e=Mze(),t=hze();function n(r,i,o,a){var s=!o;o||(o={});for(var l=-1,c=i.length;++l<c;){var u=i[l],d=a?a(o[u],r[u],u,o,r):void 0;d===void 0&&(d=r[u]),s?t(o,u,d):e(o,u,d)}return o}return bde=n,bde}var yde,l9e;function rui(){if(l9e)return yde;l9e=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return yde=e,yde}var Mde,c9e;function hee(){if(c9e)return Mde;c9e=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Mde=n,Mde}var Cde,u9e;function $wt(){if(u9e)return Cde;u9e=1;var e=rui(),t=uee(),n=y1(),r=dee(),i=hee(),o=yze(),a=Object.prototype,s=a.hasOwnProperty;function l(c,u){var d=n(c),p=!d&&t(c),h=!d&&!p&&r(c),g=!d&&!p&&!h&&o(c),m=d||p||h||g,b=m?e(c.length,String):[],y=b.length;for(var M in c)(u||s.call(c,M))&&!(m&&(M=="length"||h&&(M=="offset"||M=="parent")||g&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||i(M,y)))&&b.push(M);return b}return Cde=l,Cde}var xde,d9e;function iui(){if(d9e)return xde;d9e=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return xde=e,xde}var wde,p9e;function oui(){if(p9e)return wde;p9e=1;var e=a2(),t=mze(),n=iui(),r=Object.prototype,i=r.hasOwnProperty;function o(a){if(!e(a))return n(a);var s=t(a),l=[];for(var c in a)c=="constructor"&&(s||!i.call(a,c))||l.push(c);return l}return wde=o,wde}var Sde,h9e;function dj(){if(h9e)return Sde;h9e=1;var e=$wt(),t=oui(),n=Sk();function r(i){return n(i)?e(i,!0):t(i)}return Sde=r,Sde}var Ade,f9e;function aui(){if(f9e)return Ade;f9e=1;var e=Ok(),t=dj();function n(r){return e(r,t(r))}return Ade=n,Ade}var Ode,g9e;function sui(){if(g9e)return Ode;g9e=1;var e=_wt(),t=Fwt(),n=qwt(),r=Bwt(),i=Hwt(),o=uee(),a=y1(),s=Vwt(),l=dee(),c=aee(),u=a2(),d=bze(),p=yze(),h=Gwt(),g=aui();function m(b,y,M,C,x,w,S){var A=h(b,M),z=h(y,M),O=S.get(z);if(O){e(b,M,O);return}var T=w?w(A,z,M+"",b,y,S):void 0,R=T===void 0;if(R){var P=a(z),F=!P&&l(z),N=!P&&!F&&p(z);T=z,P||F||N?a(A)?T=A:s(A)?T=r(A):F?(R=!1,T=t(z,!0)):N?(R=!1,T=n(z,!0)):T=[]:d(z)||o(z)?(T=A,o(A)?T=g(A):(!u(A)||c(A))&&(T=i(z))):R=!1}R&&(S.set(z,T),x(T,z,C,w,S),S.delete(z)),e(b,M,T)}return Ode=m,Ode}var zde,m9e;function lui(){if(m9e)return zde;m9e=1;var e=cee(),t=_wt(),n=Nwt(),r=sui(),i=a2(),o=dj(),a=Gwt();function s(l,c,u,d,p){l!==c&&n(c,function(h,g){if(p||(p=new e),i(h))r(l,c,g,u,s,d,p);else{var m=d?d(a(l,g),h,g+"",l,c,p):void 0;m===void 0&&(m=h),t(l,g,m)}},o)}return zde=s,zde}var Tde,v9e;function fee(){if(v9e)return Tde;v9e=1;function e(t){return t}return Tde=e,Tde}var Ede,b9e;function cui(){if(b9e)return Ede;b9e=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Ede=e,Ede}var Rde,y9e;function Uwt(){if(y9e)return Rde;y9e=1;var e=cui(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var a=arguments,s=-1,l=t(a.length-i,0),c=Array(l);++s<l;)c[s]=a[i+s];s=-1;for(var u=Array(i+1);++s<i;)u[s]=a[s];return u[i]=o(c),e(r,this,u)}}return Rde=n,Rde}var Ide,M9e;function uui(){if(M9e)return Ide;M9e=1;function e(t){return function(){return t}}return Ide=e,Ide}var Pde,C9e;function dui(){if(C9e)return Pde;C9e=1;var e=uui(),t=Lwt(),n=fee(),r=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return Pde=r,Pde}var Dde,x9e;function pui(){if(x9e)return Dde;x9e=1;var e=800,t=16,n=Date.now;function r(i){var o=0,a=0;return function(){var s=n(),l=t-(s-a);if(a=s,l>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return Dde=r,Dde}var kde,w9e;function Xwt(){if(w9e)return kde;w9e=1;var e=dui(),t=pui(),n=t(e);return kde=n,kde}var Lde,S9e;function Cze(){if(S9e)return Lde;S9e=1;var e=fee(),t=Uwt(),n=Xwt();function r(i,o){return n(t(i,o,e),i+"")}return Lde=r,Lde}var _de,A9e;function Ywt(){if(A9e)return _de;A9e=1;var e=uj(),t=Sk(),n=hee(),r=a2();function i(o,a,s){if(!r(s))return!1;var l=typeof a;return(l=="number"?t(s)&&n(a,s.length):l=="string"&&a in s)?e(s[a],o):!1}return _de=i,_de}var Nde,O9e;function hui(){if(O9e)return Nde;O9e=1;var e=Cze(),t=Ywt();function n(r){return e(function(i,o){var a=-1,s=o.length,l=s>1?o[s-1]:void 0,c=s>2?o[2]:void 0;for(l=r.length>3&&typeof l=="function"?(s--,l):void 0,c&&t(o[0],o[1],c)&&(l=s<3?void 0:l,s=1),i=Object(i);++a<s;){var u=o[a];u&&r(i,u,a,l)}return i})}return Nde=n,Nde}var Fde,z9e;function fui(){if(z9e)return Fde;z9e=1;var e=lui(),t=hui(),n=t(function(r,i,o){e(r,i,o)});return Fde=n,Fde}var gui=fui();const mui=qn(gui);var Wde,T9e;function gee(){if(T9e)return Wde;T9e=1;var e=OM(),t=rg(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Wde=r,Wde}var qde,E9e;function xze(){if(E9e)return qde;E9e=1;var e=y1(),t=gee(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){if(e(o))return!1;var s=typeof o;return s=="number"||s=="symbol"||s=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||a!=null&&o in Object(a)}return qde=i,qde}var Bde,R9e;function vui(){if(R9e)return Bde;R9e=1;var e=pze(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var a=arguments,s=i?i.apply(this,a):a[0],l=o.cache;if(l.has(s))return l.get(s);var c=r.apply(this,a);return o.cache=l.set(s,c)||l,c};return o.cache=new(n.Cache||e),o}return n.Cache=e,Bde=n,Bde}var jde,I9e;function bui(){if(I9e)return jde;I9e=1;var e=vui(),t=500;function n(r){var i=e(r,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return jde=n,jde}var Hde,P9e;function yui(){if(P9e)return Hde;P9e=1;var e=bui(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(a,s,l,c){o.push(l?c.replace(n,"$1"):s||a)}),o});return Hde=r,Hde}var Vde,D9e;function mee(){if(D9e)return Vde;D9e=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return Vde=e,Vde}var Gde,k9e;function Mui(){if(k9e)return Gde;k9e=1;var e=wk(),t=mee(),n=y1(),r=gee(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function a(s){if(typeof s=="string")return s;if(n(s))return t(s,a)+"";if(r(s))return o?o.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Gde=a,Gde}var $de,L9e;function Cui(){if(L9e)return $de;L9e=1;var e=Mui();function t(n){return n==null?"":e(n)}return $de=t,$de}var Ude,_9e;function zk(){if(_9e)return Ude;_9e=1;var e=y1(),t=xze(),n=yui(),r=Cui();function i(o,a){return e(o)?o:t(o,a)?[o]:n(r(o))}return Ude=i,Ude}var Xde,N9e;function Tk(){if(N9e)return Xde;N9e=1;var e=gee();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Xde=t,Xde}var Yde,F9e;function pj(){if(F9e)return Yde;F9e=1;var e=zk(),t=Tk();function n(r,i){i=e(i,r);for(var o=0,a=i.length;r!=null&&o<a;)r=r[t(i[o++])];return o&&o==a?r:void 0}return Yde=n,Yde}var Kde,W9e;function Kwt(){if(W9e)return Kde;W9e=1;var e=pj();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return Kde=t,Kde}var xui=Kwt();const jx=qn(xui);var Qde,q9e;function Qwt(){if(q9e)return Qde;q9e=1;var e=Mze(),t=zk(),n=hee(),r=a2(),i=Tk();function o(a,s,l,c){if(!r(a))return a;s=t(s,a);for(var u=-1,d=s.length,p=d-1,h=a;h!=null&&++u<d;){var g=i(s[u]),m=l;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;if(u!=p){var b=h[g];m=c?c(b,g,h):void 0,m===void 0&&(m=r(b)?b:n(s[u+1])?[]:{})}e(h,g,m),h=h[g]}return a}return Qde=o,Qde}var Zde,B9e;function wui(){if(B9e)return Zde;B9e=1;var e=Qwt();function t(n,r,i){return n==null?n:e(n,r,i)}return Zde=t,Zde}var Sui=wui();const Jde=qn(Sui);function vee(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wze(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ek(){}var a3=.7,KP=1/a3,HI="\\s*([+-]?\\d+)\\s*",Zq="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",wb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Aui=/^#([0-9a-f]{3,8})$/,Oui=new RegExp("^rgb\\("+[HI,HI,HI]+"\\)$"),zui=new RegExp("^rgb\\("+[wb,wb,wb]+"\\)$"),Tui=new RegExp("^rgba\\("+[HI,HI,HI,Zq]+"\\)$"),Eui=new RegExp("^rgba\\("+[wb,wb,wb,Zq]+"\\)$"),Rui=new RegExp("^hsl\\("+[Zq,wb,wb]+"\\)$"),Iui=new RegExp("^hsla\\("+[Zq,wb,wb,Zq]+"\\)$"),j9e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};vee(Ek,Jq,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:H9e,formatHex:H9e,formatHsl:Pui,formatRgb:V9e,toString:V9e});function H9e(){return this.rgb().formatHex()}function Pui(){return Jwt(this).formatHsl()}function V9e(){return this.rgb().formatRgb()}function Jq(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Aui.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?G9e(t):n===3?new s1(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?MG(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?MG(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Oui.exec(e))?new s1(t[1],t[2],t[3],1):(t=zui.exec(e))?new s1(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Tui.exec(e))?MG(t[1],t[2],t[3],t[4]):(t=Eui.exec(e))?MG(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rui.exec(e))?X9e(t[1],t[2]/100,t[3]/100,1):(t=Iui.exec(e))?X9e(t[1],t[2]/100,t[3]/100,t[4]):j9e.hasOwnProperty(e)?G9e(j9e[e]):e==="transparent"?new s1(NaN,NaN,NaN,0):null}function G9e(e){return new s1(e>>16&255,e>>8&255,e&255,1)}function MG(e,t,n,r){return r<=0&&(e=t=n=NaN),new s1(e,t,n,r)}function Zwt(e){return e instanceof Ek||(e=Jq(e)),e?(e=e.rgb(),new s1(e.r,e.g,e.b,e.opacity)):new s1}function QP(e,t,n,r){return arguments.length===1?Zwt(e):new s1(e,t,n,r??1)}function s1(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}vee(s1,QP,wze(Ek,{brighter:function(e){return e=e==null?KP:Math.pow(KP,e),new s1(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?a3:Math.pow(a3,e),new s1(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$9e,formatHex:$9e,formatRgb:U9e,toString:U9e}));function $9e(){return"#"+e0e(this.r)+e0e(this.g)+e0e(this.b)}function U9e(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function e0e(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function X9e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Uv(e,t,n,r)}function Jwt(e){if(e instanceof Uv)return new Uv(e.h,e.s,e.l,e.opacity);if(e instanceof Ek||(e=Jq(e)),!e)return new Uv;if(e instanceof Uv)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Uv(a,s,l,e.opacity)}function Dui(e,t,n,r){return arguments.length===1?Jwt(e):new Uv(e,t,n,r??1)}function Uv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vee(Uv,Dui,wze(Ek,{brighter:function(e){return e=e==null?KP:Math.pow(KP,e),new Uv(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?a3:Math.pow(a3,e),new Uv(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new s1(t0e(e>=240?e-240:e+120,i,r),t0e(e,i,r),t0e(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function t0e(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const kui=Math.PI/180,Lui=180/Math.PI;var eSt=-.14861,Sze=1.78277,Aze=-.29227,bee=-.90649,e6=1.97294,Y9e=e6*bee,K9e=e6*Sze,Q9e=Sze*Aze-bee*eSt;function _ui(e){if(e instanceof lz)return new lz(e.h,e.s,e.l,e.opacity);e instanceof s1||(e=Zwt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Q9e*r+Y9e*t-K9e*n)/(Q9e+Y9e-K9e),o=r-i,a=(e6*(n-i)-Aze*o)/bee,s=Math.sqrt(a*a+o*o)/(e6*i*(1-i)),l=s?Math.atan2(a,o)*Lui-120:NaN;return new lz(l<0?l+360:l,s,i,e.opacity)}function Bb(e,t,n,r){return arguments.length===1?_ui(e):new lz(e,t,n,r??1)}function lz(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vee(lz,Bb,wze(Ek,{brighter:function(e){return e=e==null?KP:Math.pow(KP,e),new lz(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?a3:Math.pow(a3,e),new lz(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*kui,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new s1(255*(t+n*(eSt*r+Sze*i)),255*(t+n*(Aze*r+bee*i)),255*(t+n*(e6*r)),this.opacity)}}));function Nui(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Fui(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Nui((n-r/t)*t,a,i,o,s)}}const yee=e=>()=>e;function tSt(e,t){return function(n){return e+n*t}}function Wui(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function qui(e,t){var n=t-e;return n?tSt(e,n>180||n<-180?n-360*Math.round(n/360):n):yee(isNaN(e)?t:e)}function Bui(e){return(e=+e)==1?VI:function(t,n){return n-t?Wui(t,n,e):yee(isNaN(t)?n:t)}}function VI(e,t){var n=t-e;return n?tSt(e,n):yee(isNaN(e)?t:e)}const Z9e=(function e(t){var n=Bui(t);function r(i,o){var a=n((i=QP(i)).r,(o=QP(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=VI(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r})(1);function jui(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=QP(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=o(l),s+""}}}var Hui=jui(Fui);function Vui(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Gui(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $ui(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Oze(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Uui(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function MX(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Xui(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Oze(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var qbe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,n0e=new RegExp(qbe.source,"g");function Yui(e){return function(){return e}}function Kui(e){return function(t){return e(t)+""}}function Qui(e,t){var n=qbe.lastIndex=n0e.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=qbe.exec(e))&&(i=n0e.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:MX(r,i)})),n=n0e.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?Kui(l[0].x):Yui(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Oze(e,t){var n=typeof t,r;return t==null||n==="boolean"?yee(t):(n==="number"?MX:n==="string"?(r=Jq(t))?(t=r,Z9e):Qui:t instanceof Jq?Z9e:t instanceof Date?Uui:Gui(t)?Vui:Array.isArray(t)?$ui:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Xui:MX)(e,t)}function Zui(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nSt(e){return(function t(n){n=+n;function r(i,o){var a=e((i=Bb(i)).h,(o=Bb(o)).h),s=VI(i.s,o.s),l=VI(i.l,o.l),c=VI(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r})(1)}nSt(qui);var zze=nSt(VI),r0e,J9e;function Jui(){if(J9e)return r0e;J9e=1;var e=OM(),t=y1(),n=rg(),r="[object String]";function i(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return r0e=i,r0e}var edi=Jui();const tdi=qn(edi);var i0e,eUe;function rSt(){if(eUe)return i0e;eUe=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return i0e=e,i0e}var ndi=rSt();const li=qn(ndi);y1();function iSt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Tze(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=rdi(e));function r(a,s,l,c){for(l==null&&(l=0),c==null&&(c=a.length);l<c;){const u=l+c>>>1;n(a[u],s)<0?l=u+1:c=u}return l}function i(a,s,l,c){for(l==null&&(l=0),c==null&&(c=a.length);l<c;){const u=l+c>>>1;n(a[u],s)>0?c=u:l=u+1}return l}function o(a,s,l,c){l==null&&(l=0),c==null&&(c=a.length);const u=r(a,s,l,c-1);return u>l&&t(a[u-1],s)>-t(a[u],s)?u-1:u}return{left:r,center:o,right:i}}function rdi(e){return(t,n)=>iSt(e(t),n)}function idi(e){return e===null?NaN:+e}const odi=Tze(iSt),adi=odi.right;Tze(idi).center;var Bbe=Math.sqrt(50),jbe=Math.sqrt(10),Hbe=Math.sqrt(2);function Vbe(e,t,n){var r,i=-1,o,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),(s=oSt(e,t,n))===0||!isFinite(s))return[];if(s>0){let l=Math.round(e/s),c=Math.round(t/s);for(l*s<e&&++l,c*s>t&&--c,a=new Array(o=c-l+1);++i<o;)a[i]=(l+i)*s}else{s=-s;let l=Math.round(e*s),c=Math.round(t*s);for(l/s<e&&++l,c/s>t&&--c,a=new Array(o=c-l+1);++i<o;)a[i]=(l+i)/s}return r&&a.reverse(),a}function oSt(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Bbe?10:o>=jbe?5:o>=Hbe?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Bbe?10:o>=jbe?5:o>=Hbe?2:1)}function Gbe(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Bbe?i*=10:o>=jbe?i*=5:o>=Hbe&&(i*=2),t<e?-i:i}function sdi(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function nT(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const tUe=Symbol("implicit");function zO(){var e=new Map,t=[],n=[],r=tUe;function i(o){var a=o+"",s=e.get(a);if(!s){if(r!==tUe)return r;e.set(a,s=t.push(o))}return n[(s-1)%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Map;for(const a of o){const s=a+"";e.has(s)||e.set(s,t.push(a))}return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return zO(t,n).unknown(r)},nT.apply(i,arguments),i}function Eze(){var e=zO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var p=t().length,h=i<r,g=h?i:r,m=h?r:i;o=(m-g)/Math.max(1,p-l+c*2),s&&(o=Math.floor(o)),g+=(m-g-o*(p-l))*u,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var b=sdi(p).map(function(y){return g+o*y});return n(h?b.reverse():b)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(u=Math.max(0,Math.min(1,p)),d()):u},e.copy=function(){return Eze(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},nT.apply(d(),arguments)}function aSt(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aSt(t())},e}function ldi(){return aSt(Eze.apply(null,arguments).paddingInner(1))}function cdi(e){return function(){return e}}function udi(e){return+e}var nUe=[0,1];function XR(e){return e}function $be(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:cdi(isNaN(t)?NaN:.5)}function ddi(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function pdi(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=$be(i,r),o=n(a,o)):(r=$be(r,i),o=n(o,a)),function(s){return o(r(s))}}function hdi(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=$be(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=adi(e,s,1,r)-1;return o[l](i[l](s))}}function Mee(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Rze(){var e=nUe,t=nUe,n=Oze,r,i,o,a=XR,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==XR&&(a=ddi(e[0],e[p-1])),s=p>2?hdi:pdi,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?o:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((c||(c=s(t,e.map(r),MX)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,udi),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=Zui,u()},d.clamp=function(p){return arguments.length?(a=p?!0:XR,u()):a!==XR},d.interpolate=function(p){return arguments.length?(n=p,u()):n},d.unknown=function(p){return arguments.length?(o=p,d):o},function(p,h){return r=p,i=h,u()}}function sSt(){return Rze()(XR,XR)}function fdi(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function CX(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ZP(e){return e=CX(Math.abs(e)),e?e[1]:NaN}function gdi(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function mdi(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var vdi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xX(e){if(!(t=vdi.exec(e)))throw new Error("invalid format: "+e);var t;return new Ize({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}xX.prototype=Ize.prototype;function Ize(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ize.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function bdi(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var lSt;function ydi(e,t){var n=CX(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(lSt=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+CX(e,Math.max(0,t+o-1))[0]}function rUe(e,t){var n=CX(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const iUe={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:fdi,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return rUe(e*100,t)},r:rUe,s:ydi,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function oUe(e){return e}var aUe=Array.prototype.map,sUe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mdi(e){var t=e.grouping===void 0||e.thousands===void 0?oUe:gdi(aUe.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal+"",o=e.numerals===void 0?oUe:mdi(aUe.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=xX(d);var p=d.fill,h=d.align,g=d.sign,m=d.symbol,b=d.zero,y=d.width,M=d.comma,C=d.precision,x=d.trim,w=d.type;w==="n"?(M=!0,w="g"):iUe[w]||(C===void 0&&(C=12),x=!0,w="g"),(b||p==="0"&&h==="=")&&(b=!0,p="0",h="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",A=m==="$"?r:/[%p]/.test(w)?a:"",z=iUe[w],O=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function T(R){var P=S,F=A,N,L,W;if(w==="c")F=z(R)+F,R="";else{R=+R;var j=R<0||1/R<0;if(R=isNaN(R)?l:z(Math.abs(R),C),x&&(R=bdi(R)),j&&+R==0&&g!=="+"&&(j=!1),P=(j?g==="("?g:s:g==="-"||g==="("?"":g)+P,F=(w==="s"?sUe[8+lSt/3]:"")+F+(j&&g==="("?")":""),O){for(N=-1,L=R.length;++N<L;)if(W=R.charCodeAt(N),48>W||W>57){F=(W===46?i+R.slice(N+1):R.slice(N))+F,R=R.slice(0,N);break}}}M&&!b&&(R=t(R,1/0));var V=P.length+R.length+F.length,G=V<y?new Array(y-V+1).join(p):"";switch(M&&b&&(R=t(G+R,G.length?y-F.length:1/0),G=""),h){case"<":R=P+R+F+G;break;case"=":R=P+G+R+F;break;case"^":R=G.slice(0,V=G.length>>1)+P+R+F+G.slice(V);break;default:R=G+P+R+F;break}return o(R)}return T.toString=function(){return d+""},T}function u(d,p){var h=c((d=xX(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(ZP(p)/3)))*3,m=Math.pow(10,-g),b=sUe[8+g/3];return function(y){return h(m*y)+b}}return{format:c,formatPrefix:u}}var CG,hj,cSt;Cdi({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Cdi(e){return CG=Mdi(e),hj=CG.format,cSt=CG.formatPrefix,CG}function xdi(e){return Math.max(0,-ZP(Math.abs(e)))}function wdi(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ZP(t)/3)))*3-ZP(Math.abs(e)))}function Sdi(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ZP(t)-ZP(e))+1}function Adi(e,t,n,r){var i=Gbe(e,t,n),o;switch(r=xX(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=wdi(i,a))&&(r.precision=o),cSt(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Sdi(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=xdi(i))&&(r.precision=o-(r.type==="%")*2);break}}return hj(r)}function uSt(e){var t=e.domain;return e.ticks=function(n){var r=t();return Vbe(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Adi(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=oSt(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function dSt(){var e=sSt();return e.copy=function(){return Mee(e,dSt())},nT.apply(e,arguments),uSt(e)}function pSt(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function lUe(e){return Math.log(e)}function cUe(e){return Math.exp(e)}function Odi(e){return-Math.log(-e)}function zdi(e){return-Math.exp(-e)}function Tdi(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Edi(e){return e===10?Tdi:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function Rdi(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function uUe(e){return function(t){return-e(-t)}}function Idi(e){var t=e(lUe,cUe),n=t.domain,r=10,i,o;function a(){return i=Rdi(r),o=Edi(r),n()[0]<0?(i=uUe(i),o=uUe(o),e(Odi,zdi)):e(lUe,cUe),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=function(s){var l=n(),c=l[0],u=l[l.length-1],d;(d=u<c)&&(p=c,c=u,u=p);var p=i(c),h=i(u),g,m,b,y=s==null?10:+s,M=[];if(!(r%1)&&h-p<y){if(p=Math.floor(p),h=Math.ceil(h),c>0){for(;p<=h;++p)for(m=1,g=o(p);m<r;++m)if(b=g*m,!(b<c)){if(b>u)break;M.push(b)}}else for(;p<=h;++p)for(m=r-1,g=o(p);m>=1;--m)if(b=g*m,!(b<c)){if(b>u)break;M.push(b)}M.length*2<y&&(M=Vbe(c,u,y))}else M=Vbe(p,h,Math.min(h-p,y)).map(o);return d?M.reverse():M},t.tickFormat=function(s,l){if(l==null&&(l=r===10?".0e":","),typeof l!="function"&&(l=hj(l)),s===1/0)return l;s==null&&(s=10);var c=Math.max(1,r*s/t.ticks().length);return function(u){var d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=function(){return n(pSt(n(),{floor:function(s){return o(Math.floor(i(s)))},ceil:function(s){return o(Math.ceil(i(s)))}}))},t}function hSt(){var e=Idi(Rze()).domain([1,10]);return e.copy=function(){return Mee(e,hSt()).base(e.base())},nT.apply(e,arguments),e}function dUe(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function pUe(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Pdi(e){var t=1,n=e(dUe(t),pUe(t));return n.constant=function(r){return arguments.length?e(dUe(t=+r),pUe(t)):t},uSt(n)}function fSt(){var e=Pdi(Rze());return e.copy=function(){return Mee(e,fSt()).constant(e.constant())},nT.apply(e,arguments)}var o0e=new Date,a0e=new Date;function ed(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return ed(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return o0e.setTime(+o),a0e.setTime(+a),e(o0e),e(a0e),Math.floor(n(o0e,a0e))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var wX=ed(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});wX.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ed(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):wX};wX.range;const Oy=1e3,Sf=Oy*60,zy=Sf*60,s3=zy*24,Pze=s3*7,hUe=s3*30,s0e=s3*365;var TO=ed(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Oy)},function(e,t){return(t-e)/Oy},function(e){return e.getUTCSeconds()});TO.range;var Dze=ed(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oy)},function(e,t){e.setTime(+e+t*Sf)},function(e,t){return(t-e)/Sf},function(e){return e.getMinutes()});Dze.range;var kze=ed(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oy-e.getMinutes()*Sf)},function(e,t){e.setTime(+e+t*zy)},function(e,t){return(t-e)/zy},function(e){return e.getHours()});kze.range;var Lze=ed(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sf)/s3,e=>e.getDate()-1);Lze.range;function rT(e){return ed(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Sf)/Pze})}var _ze=rT(0),Ddi=rT(1),kdi=rT(2),Ldi=rT(3),_di=rT(4),Ndi=rT(5),Fdi=rT(6);_ze.range;Ddi.range;kdi.range;Ldi.range;_di.range;Ndi.range;Fdi.range;var Nze=ed(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});Nze.range;var Cee=ed(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Cee.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ed(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Cee.range;var Fze=ed(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Sf)},function(e,t){return(t-e)/Sf},function(e){return e.getUTCMinutes()});Fze.range;var Wze=ed(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*zy)},function(e,t){return(t-e)/zy},function(e){return e.getUTCHours()});Wze.range;var qze=ed(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/s3},function(e){return e.getUTCDate()-1});qze.range;function iT(e){return ed(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/Pze})}var Bze=iT(0),Wdi=iT(1),qdi=iT(2),Bdi=iT(3),jdi=iT(4),Hdi=iT(5),Vdi=iT(6);Bze.range;Wdi.range;qdi.range;Bdi.range;jdi.range;Hdi.range;Vdi.range;var jze=ed(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});jze.range;var xee=ed(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});xee.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ed(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};xee.range;function gSt(e,t,n,r,i,o){const a=[[TO,1,Oy],[TO,5,5*Oy],[TO,15,15*Oy],[TO,30,30*Oy],[o,1,Sf],[o,5,5*Sf],[o,15,15*Sf],[o,30,30*Sf],[i,1,zy],[i,3,3*zy],[i,6,6*zy],[i,12,12*zy],[r,1,s3],[r,2,2*s3],[n,1,Pze],[t,1,hUe],[t,3,3*hUe],[e,1,s0e]];function s(c,u,d){const p=u<c;p&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),g=h?h.range(c,+u+1):[];return p?g.reverse():g}function l(c,u,d){const p=Math.abs(u-c)/d,h=Tze(([,,b])=>b).right(a,p);if(h===a.length)return e.every(Gbe(c/s0e,u/s0e,d));if(h===0)return wX.every(Math.max(Gbe(c,u,d),1));const[g,m]=a[p/a[h-1][2]<a[h][2]/p?h-1:h];return g.every(m)}return[s,l]}const[Gdi,$di]=gSt(xee,jze,Bze,qze,Wze,Fze),[Udi,Xdi]=gSt(Cee,Nze,_ze,Lze,kze,Dze);var l0e=new Date,c0e=new Date;function nu(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return nu(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return l0e.setTime(+o),c0e.setTime(+a),e(l0e),e(c0e),Math.floor(n(l0e,c0e))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var t6=nu(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});t6.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?nu(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):t6};t6.range;var SX=1e3,l3=6e4,AX=36e5,mSt=864e5,vSt=6048e5,Ube=nu(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*SX)},function(e,t){return(t-e)/SX},function(e){return e.getUTCSeconds()});Ube.range;var bSt=nu(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*SX)},function(e,t){e.setTime(+e+t*l3)},function(e,t){return(t-e)/l3},function(e){return e.getMinutes()});bSt.range;var ySt=nu(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*SX-e.getMinutes()*l3)},function(e,t){e.setTime(+e+t*AX)},function(e,t){return(t-e)/AX},function(e){return e.getHours()});ySt.range;var Hze=nu(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l3)/mSt},function(e){return e.getDate()-1});Hze.range;function oT(e){return nu(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*l3)/vSt})}var OX=oT(0),n6=oT(1),MSt=oT(2),CSt=oT(3),c3=oT(4),xSt=oT(5),wSt=oT(6);OX.range;n6.range;MSt.range;CSt.range;c3.range;xSt.range;wSt.range;var SSt=nu(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});SSt.range;var hw=nu(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});hw.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:nu(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};hw.range;var ASt=nu(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*l3)},function(e,t){return(t-e)/l3},function(e){return e.getUTCMinutes()});ASt.range;var OSt=nu(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*AX)},function(e,t){return(t-e)/AX},function(e){return e.getUTCHours()});OSt.range;var Vze=nu(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/mSt},function(e){return e.getUTCDate()-1});Vze.range;function aT(e){return nu(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/vSt})}var zX=aT(0),r6=aT(1),zSt=aT(2),TSt=aT(3),u3=aT(4),ESt=aT(5),RSt=aT(6);zX.range;r6.range;zSt.range;TSt.range;u3.range;ESt.range;RSt.range;var ISt=nu(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});ISt.range;var fw=nu(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});fw.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:nu(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};fw.range;function u0e(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function d0e(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Y_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ydi(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=K_(i),u=Q_(i),d=K_(o),p=Q_(o),h=K_(a),g=Q_(a),m=K_(s),b=Q_(s),y=K_(l),M=Q_(l),C={a:j,A:V,b:G,B:q,c:null,d:yUe,e:yUe,f:b0i,g:T0i,G:R0i,H:g0i,I:m0i,j:v0i,L:PSt,m:y0i,M:M0i,p:$,q:U,Q:xUe,s:wUe,S:C0i,u:x0i,U:w0i,V:S0i,w:A0i,W:O0i,x:null,X:null,y:z0i,Y:E0i,Z:I0i,"%":CUe},x={a:X,A:Q,b:re,B:ee,c:null,d:MUe,e:MUe,f:L0i,g:G0i,G:U0i,H:P0i,I:D0i,j:k0i,L:kSt,m:_0i,M:N0i,p:se,q:pe,Q:xUe,s:wUe,S:F0i,u:W0i,U:q0i,V:B0i,w:j0i,W:H0i,x:null,X:null,y:V0i,Y:$0i,Z:X0i,"%":CUe},w={a:T,A:R,b:P,B:F,c:N,d:vUe,e:vUe,f:d0i,g:mUe,G:gUe,H:bUe,I:bUe,j:s0i,L:u0i,m:a0i,M:l0i,p:O,q:o0i,Q:h0i,s:f0i,S:c0i,u:e0i,U:t0i,V:n0i,w:Jdi,W:r0i,x:L,X:W,y:mUe,Y:gUe,Z:i0i,"%":p0i};C.x=S(n,C),C.X=S(r,C),C.c=S(t,C),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x);function S(te,ce){return function(oe){var ae=[],ne=-1,le=0,he=te.length,be,me,Me;for(oe instanceof Date||(oe=new Date(+oe));++ne<he;)te.charCodeAt(ne)===37&&(ae.push(te.slice(le,ne)),(me=fUe[be=te.charAt(++ne)])!=null?be=te.charAt(++ne):me=be==="e"?" ":"0",(Me=ce[be])&&(be=Me(oe,me)),ae.push(be),le=ne+1);return ae.push(te.slice(le,ne)),ae.join("")}}function A(te,ce){return function(oe){var ae=Y_(1900,void 0,1),ne=z(ae,te,oe+="",0),le,he;if(ne!=oe.length)return null;if("Q"in ae)return new Date(ae.Q);if("s"in ae)return new Date(ae.s*1e3+("L"in ae?ae.L:0));if(ce&&!("Z"in ae)&&(ae.Z=0),"p"in ae&&(ae.H=ae.H%12+ae.p*12),ae.m===void 0&&(ae.m="q"in ae?ae.q:0),"V"in ae){if(ae.V<1||ae.V>53)return null;"w"in ae||(ae.w=1),"Z"in ae?(le=d0e(Y_(ae.y,0,1)),he=le.getUTCDay(),le=he>4||he===0?r6.ceil(le):r6(le),le=Vze.offset(le,(ae.V-1)*7),ae.y=le.getUTCFullYear(),ae.m=le.getUTCMonth(),ae.d=le.getUTCDate()+(ae.w+6)%7):(le=u0e(Y_(ae.y,0,1)),he=le.getDay(),le=he>4||he===0?n6.ceil(le):n6(le),le=Hze.offset(le,(ae.V-1)*7),ae.y=le.getFullYear(),ae.m=le.getMonth(),ae.d=le.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),he="Z"in ae?d0e(Y_(ae.y,0,1)).getUTCDay():u0e(Y_(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(he+5)%7:ae.w+ae.U*7-(he+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,d0e(ae)):u0e(ae)}}function z(te,ce,oe,ae){for(var ne=0,le=ce.length,he=oe.length,be,me;ne<le;){if(ae>=he)return-1;if(be=ce.charCodeAt(ne++),be===37){if(be=ce.charAt(ne++),me=w[be in fUe?ce.charAt(ne++):be],!me||(ae=me(te,oe,ae))<0)return-1}else if(be!=oe.charCodeAt(ae++))return-1}return ae}function O(te,ce,oe){var ae=c.exec(ce.slice(oe));return ae?(te.p=u.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function T(te,ce,oe){var ae=h.exec(ce.slice(oe));return ae?(te.w=g.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function R(te,ce,oe){var ae=d.exec(ce.slice(oe));return ae?(te.w=p.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function P(te,ce,oe){var ae=y.exec(ce.slice(oe));return ae?(te.m=M.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function F(te,ce,oe){var ae=m.exec(ce.slice(oe));return ae?(te.m=b.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function N(te,ce,oe){return z(te,t,ce,oe)}function L(te,ce,oe){return z(te,n,ce,oe)}function W(te,ce,oe){return z(te,r,ce,oe)}function j(te){return a[te.getDay()]}function V(te){return o[te.getDay()]}function G(te){return l[te.getMonth()]}function q(te){return s[te.getMonth()]}function $(te){return i[+(te.getHours()>=12)]}function U(te){return 1+~~(te.getMonth()/3)}function X(te){return a[te.getUTCDay()]}function Q(te){return o[te.getUTCDay()]}function re(te){return l[te.getUTCMonth()]}function ee(te){return s[te.getUTCMonth()]}function se(te){return i[+(te.getUTCHours()>=12)]}function pe(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var ce=S(te+="",C);return ce.toString=function(){return te},ce},parse:function(te){var ce=A(te+="",!1);return ce.toString=function(){return te},ce},utcFormat:function(te){var ce=S(te+="",x);return ce.toString=function(){return te},ce},utcParse:function(te){var ce=A(te+="",!0);return ce.toString=function(){return te},ce}}}var fUe={"-":"",_:" ",0:"0"},td=/^\s*\d+/,Kdi=/^%/,Qdi=/[\\^$*+?|[\]().{}]/g;function Pa(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Zdi(e){return e.replace(Qdi,"\\$&")}function K_(e){return new RegExp("^(?:"+e.map(Zdi).join("|")+")","i")}function Q_(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Jdi(e,t,n){var r=td.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function e0i(e,t,n){var r=td.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function t0i(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function n0i(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function r0i(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function gUe(e,t,n){var r=td.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mUe(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function i0i(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function o0i(e,t,n){var r=td.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function a0i(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function vUe(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function s0i(e,t,n){var r=td.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function bUe(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function l0i(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function c0i(e,t,n){var r=td.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function u0i(e,t,n){var r=td.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function d0i(e,t,n){var r=td.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function p0i(e,t,n){var r=Kdi.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function h0i(e,t,n){var r=td.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function f0i(e,t,n){var r=td.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function yUe(e,t){return Pa(e.getDate(),t,2)}function g0i(e,t){return Pa(e.getHours(),t,2)}function m0i(e,t){return Pa(e.getHours()%12||12,t,2)}function v0i(e,t){return Pa(1+Hze.count(hw(e),e),t,3)}function PSt(e,t){return Pa(e.getMilliseconds(),t,3)}function b0i(e,t){return PSt(e,t)+"000"}function y0i(e,t){return Pa(e.getMonth()+1,t,2)}function M0i(e,t){return Pa(e.getMinutes(),t,2)}function C0i(e,t){return Pa(e.getSeconds(),t,2)}function x0i(e){var t=e.getDay();return t===0?7:t}function w0i(e,t){return Pa(OX.count(hw(e)-1,e),t,2)}function DSt(e){var t=e.getDay();return t>=4||t===0?c3(e):c3.ceil(e)}function S0i(e,t){return e=DSt(e),Pa(c3.count(hw(e),e)+(hw(e).getDay()===4),t,2)}function A0i(e){return e.getDay()}function O0i(e,t){return Pa(n6.count(hw(e)-1,e),t,2)}function z0i(e,t){return Pa(e.getFullYear()%100,t,2)}function T0i(e,t){return e=DSt(e),Pa(e.getFullYear()%100,t,2)}function E0i(e,t){return Pa(e.getFullYear()%1e4,t,4)}function R0i(e,t){var n=e.getDay();return e=n>=4||n===0?c3(e):c3.ceil(e),Pa(e.getFullYear()%1e4,t,4)}function I0i(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Pa(t/60|0,"0",2)+Pa(t%60,"0",2)}function MUe(e,t){return Pa(e.getUTCDate(),t,2)}function P0i(e,t){return Pa(e.getUTCHours(),t,2)}function D0i(e,t){return Pa(e.getUTCHours()%12||12,t,2)}function k0i(e,t){return Pa(1+Vze.count(fw(e),e),t,3)}function kSt(e,t){return Pa(e.getUTCMilliseconds(),t,3)}function L0i(e,t){return kSt(e,t)+"000"}function _0i(e,t){return Pa(e.getUTCMonth()+1,t,2)}function N0i(e,t){return Pa(e.getUTCMinutes(),t,2)}function F0i(e,t){return Pa(e.getUTCSeconds(),t,2)}function W0i(e){var t=e.getUTCDay();return t===0?7:t}function q0i(e,t){return Pa(zX.count(fw(e)-1,e),t,2)}function LSt(e){var t=e.getUTCDay();return t>=4||t===0?u3(e):u3.ceil(e)}function B0i(e,t){return e=LSt(e),Pa(u3.count(fw(e),e)+(fw(e).getUTCDay()===4),t,2)}function j0i(e){return e.getUTCDay()}function H0i(e,t){return Pa(r6.count(fw(e)-1,e),t,2)}function V0i(e,t){return Pa(e.getUTCFullYear()%100,t,2)}function G0i(e,t){return e=LSt(e),Pa(e.getUTCFullYear()%100,t,2)}function $0i(e,t){return Pa(e.getUTCFullYear()%1e4,t,4)}function U0i(e,t){var n=e.getUTCDay();return e=n>=4||n===0?u3(e):u3.ceil(e),Pa(e.getUTCFullYear()%1e4,t,4)}function X0i(){return"+0000"}function CUe(){return"%"}function xUe(e){return+e}function wUe(e){return Math.floor(+e/1e3)}var lR,wee,_St,NSt,FSt;Y0i({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Y0i(e){return lR=Ydi(e),wee=lR.format,_St=lR.parse,NSt=lR.utcFormat,FSt=lR.utcParse,lR}function K0i(e){return new Date(e)}function Q0i(e){return e instanceof Date?+e:+new Date(+e)}function Gze(e,t,n,r,i,o,a,s,l,c){var u=sSt(),d=u.invert,p=u.domain,h=c(".%L"),g=c(":%S"),m=c("%I:%M"),b=c("%I %p"),y=c("%a %d"),M=c("%b %d"),C=c("%B"),x=c("%Y");function w(S){return(l(S)<S?h:s(S)<S?g:a(S)<S?m:o(S)<S?b:r(S)<S?i(S)<S?y:M:n(S)<S?C:x)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?p(Array.from(S,Q0i)):p().map(K0i)},u.ticks=function(S){var A=p();return e(A[0],A[A.length-1],S??10)},u.tickFormat=function(S,A){return A==null?w:c(A)},u.nice=function(S){var A=p();return(!S||typeof S.range!="function")&&(S=t(A[0],A[A.length-1],S??10)),S?p(pSt(A,S)):u},u.copy=function(){return Mee(u,Gze(e,t,n,r,i,o,a,s,l,c))},u}function Z0i(){return nT.apply(Gze(Udi,Xdi,Cee,Nze,_ze,Lze,kze,Dze,TO,wee).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function J0i(){return nT.apply(Gze(Gdi,$di,xee,jze,Bze,qze,Wze,Fze,TO,NSt).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zo(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const e1i=zo("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),t1i=zo("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),n1i=zo("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),r1i=zo("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),i1i=zo("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),o1i=zo("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),a1i=zo("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),s1i=zo("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),WSt=zo("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ls=e=>Hui(e[e.length-1]);var See=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(zo);const l1i=Ls(See);var Aee=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(zo);const c1i=Ls(Aee);var Oee=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(zo);const u1i=Ls(Oee);var zee=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(zo);const d1i=Ls(zee);var Tee=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(zo);const p1i=Ls(Tee);var Eee=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(zo);const h1i=Ls(Eee);var Ree=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(zo);const f1i=Ls(Ree);var Iee=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(zo);const g1i=Ls(Iee);var Pee=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(zo);const m1i=Ls(Pee);var Dee=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(zo);const v1i=Ls(Dee);var kee=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(zo);const b1i=Ls(kee);var Lee=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(zo);const y1i=Ls(Lee);var _ee=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(zo);const M1i=Ls(_ee);var Nee=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(zo);const C1i=Ls(Nee);var Fee=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(zo);const x1i=Ls(Fee);var Wee=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(zo);const w1i=Ls(Wee);var qee=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(zo);const S1i=Ls(qee);var Bee=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(zo);const A1i=Ls(Bee);var jee=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(zo);const O1i=Ls(jee);var Hee=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(zo);const z1i=Ls(Hee);var Vee=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(zo);const T1i=Ls(Vee);var Gee=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(zo);const E1i=Ls(Gee);var $ee=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(zo);const R1i=Ls($ee);var Uee=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(zo);const I1i=Ls(Uee);var Xee=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(zo);const P1i=Ls(Xee);var Yee=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(zo);const D1i=Ls(Yee);var Kee=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(zo);const k1i=Ls(Kee);function L1i(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const _1i=zze(Bb(300,.5,0),Bb(-240,.5,1));var N1i=zze(Bb(-100,.75,.35),Bb(80,1.5,.8)),F1i=zze(Bb(260,.75,.35),Bb(80,1.5,.8)),xG=Bb();function W1i(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return xG.h=360*e-100,xG.s=1.5-1.5*t,xG.l=.8-.9*t,xG+""}var wG=QP(),q1i=Math.PI/3,B1i=Math.PI*2/3;function j1i(e){var t;return e=(.5-e)*Math.PI,wG.r=255*(t=Math.sin(e))*t,wG.g=255*(t=Math.sin(e+q1i))*t,wG.b=255*(t=Math.sin(e+B1i))*t,wG+""}function H1i(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Qee(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const V1i=Qee(zo("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var G1i=Qee(zo("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$1i=Qee(zo("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),U1i=Qee(zo("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),X1i=aee();const Y1i=qn(X1i);var p0e,SUe;function K1i(){if(SUe)return p0e;SUe=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return p0e=t,p0e}var h0e,AUe;function Q1i(){if(AUe)return h0e;AUe=1;function e(t){return this.__data__.has(t)}return h0e=e,h0e}var f0e,OUe;function $ze(){if(OUe)return f0e;OUe=1;var e=pze(),t=K1i(),n=Q1i();function r(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,f0e=r,f0e}var g0e,zUe;function Z1i(){if(zUe)return g0e;zUe=1;function e(t,n,r,i){for(var o=t.length,a=r+(i?1:-1);i?a--:++a<o;)if(n(t[a],a,t))return a;return-1}return g0e=e,g0e}var m0e,TUe;function J1i(){if(TUe)return m0e;TUe=1;function e(t){return t!==t}return m0e=e,m0e}var v0e,EUe;function epi(){if(EUe)return v0e;EUe=1;function e(t,n,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===n)return i;return-1}return v0e=e,v0e}var b0e,RUe;function tpi(){if(RUe)return b0e;RUe=1;var e=Z1i(),t=J1i(),n=epi();function r(i,o,a){return o===o?n(i,o,a):e(i,t,a)}return b0e=r,b0e}var y0e,IUe;function qSt(){if(IUe)return y0e;IUe=1;var e=tpi();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return y0e=t,y0e}var M0e,PUe;function BSt(){if(PUe)return M0e;PUe=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)if(r(n,t[i]))return!0;return!1}return M0e=e,M0e}var C0e,DUe;function Uze(){if(DUe)return C0e;DUe=1;function e(t,n){return t.has(n)}return C0e=e,C0e}var x0e,kUe;function npi(){if(kUe)return x0e;kUe=1;var e=$ze(),t=qSt(),n=BSt(),r=mee(),i=Ak(),o=Uze(),a=200;function s(l,c,u,d){var p=-1,h=t,g=!0,m=l.length,b=[],y=c.length;if(!m)return b;u&&(c=r(c,i(u))),d?(h=n,g=!1):c.length>=a&&(h=o,g=!1,c=new e(c));e:for(;++p<m;){var M=l[p],C=u==null?M:u(M);if(M=d||M!==0?M:0,g&&C===C){for(var x=y;x--;)if(c[x]===C)continue e;b.push(M)}else h(c,C,d)||b.push(M)}return b}return x0e=s,x0e}var w0e,LUe;function rpi(){if(LUe)return w0e;LUe=1;var e=npi(),t=Cze(),n=Vwt(),r=t(function(i,o){return n(i)?e(i,o):[]});return w0e=r,w0e}var ipi=rpi();const jSt=qn(ipi);function SG(e){return function(){return e}}var _Ue=1e-12;function HSt(e){this._context=e}HSt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function opi(e){return new HSt(e)}var NUe=Array.prototype.slice;function gw(){}function TX(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Zee(e){this._context=e}Zee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:TX(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:TX(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function api(e){return new Zee(e)}function VSt(e){this._context=e}VSt.prototype={areaStart:gw,areaEnd:gw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:TX(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function spi(e){return new VSt(e)}function GSt(e){this._context=e}GSt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:TX(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lpi(e){return new GSt(e)}function $St(e,t){this._basis=new Zee(e),this._beta=t}$St.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const cpi=(function e(t){function n(r){return t===1?new Zee(r):new $St(r,t)}return n.beta=function(r){return e(+r)},n})(.85);function EX(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Xze(e,t){this._context=e,this._k=(1-t)/6}Xze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:EX(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:EX(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const upi=(function e(t){function n(r){return new Xze(r,t)}return n.tension=function(r){return e(+r)},n})(0);function Yze(e,t){this._context=e,this._k=(1-t)/6}Yze.prototype={areaStart:gw,areaEnd:gw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:EX(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dpi=(function e(t){function n(r){return new Yze(r,t)}return n.tension=function(r){return e(+r)},n})(0);function Kze(e,t){this._context=e,this._k=(1-t)/6}Kze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:EX(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ppi=(function e(t){function n(r){return new Kze(r,t)}return n.tension=function(r){return e(+r)},n})(0);function Qze(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>_Ue){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>_Ue){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function USt(e,t){this._context=e,this._alpha=t}USt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Qze(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hpi=(function e(t){function n(r){return t?new USt(r,t):new Xze(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function XSt(e,t){this._context=e,this._alpha=t}XSt.prototype={areaStart:gw,areaEnd:gw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Qze(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fpi=(function e(t){function n(r){return t?new XSt(r,t):new Yze(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function YSt(e,t){this._context=e,this._alpha=t}YSt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qze(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gpi=(function e(t){function n(r){return t?new YSt(r,t):new Kze(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function KSt(e){this._context=e}KSt.prototype={areaStart:gw,areaEnd:gw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function mpi(e){return new KSt(e)}function FUe(e){return e<0?-1:1}function WUe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(FUe(o)+FUe(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function qUe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function S0e(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function RX(e){this._context=e}RX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:S0e(this,this._t0,qUe(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,S0e(this,qUe(this,n=WUe(this,e,t)),n);break;default:S0e(this,this._t0,n=WUe(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function QSt(e){this._context=new ZSt(e)}(QSt.prototype=Object.create(RX.prototype)).point=function(e,t){RX.prototype.point.call(this,t,e)};function ZSt(e){this._context=e}ZSt.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function vpi(e){return new RX(e)}function bpi(e){return new QSt(e)}function JSt(e){this._context=e}JSt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=BUe(e),i=BUe(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function BUe(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function ypi(e){return new JSt(e)}function Jee(e,t){this._context=e,this._t=t}Jee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Mpi(e){return new Jee(e,.5)}function Cpi(e){return new Jee(e,0)}function xpi(e){return new Jee(e,1)}function JP(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function eD(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function wpi(e,t){return e[t]}function Spi(){var e=SG([]),t=eD,n=JP,r=wpi;function i(o){var a=e.apply(this,arguments),s,l=o.length,c=a.length,u=new Array(c),d;for(s=0;s<c;++s){for(var p=a[s],h=u[s]=new Array(l),g=0,m;g<l;++g)h[g]=m=[0,+r(o[g],p,g,o)],m.data=o[g];h.key=p}for(s=0,d=t(u);s<c;++s)u[d[s]].index=s;return n(u,d),u}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:SG(NUe.call(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:SG(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?eD:typeof o=="function"?o:SG(NUe.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o??JP,i):n},i}function Api(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}JP(e,t)}}function eAt(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Opi(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}JP(e,t)}}function zpi(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,p=u[r-1][1]||0,h=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],b=m[r][1]||0,y=m[r-1][1]||0;h+=b-y}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,JP(e,t)}}function Tpi(e){var t=e.map(Epi);return eD(e).sort(function(n,r){return t[n]-t[r]})}function Epi(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function tAt(e){var t=e.map(nAt);return eD(e).sort(function(n,r){return t[n]-t[r]})}function nAt(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function Rpi(e){return tAt(e).reverse()}function Ipi(e){var t=e.length,n,r,i=e.map(nAt),o=Tpi(e),a=0,s=0,l=[],c=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)}function Ppi(e){return eD(e).reverse()}var A0e,jUe;function Dpi(){if(jUe)return A0e;jUe=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return A0e=e,A0e}var O0e,HUe;function rAt(){if(HUe)return O0e;HUe=1;var e=$ze(),t=Dpi(),n=Uze(),r=1,i=2;function o(a,s,l,c,u,d){var p=l&r,h=a.length,g=s.length;if(h!=g&&!(p&&g>h))return!1;var m=d.get(a),b=d.get(s);if(m&&b)return m==s&&b==a;var y=-1,M=!0,C=l&i?new e:void 0;for(d.set(a,s),d.set(s,a);++y<h;){var x=a[y],w=s[y];if(c)var S=p?c(w,x,y,s,a,d):c(x,w,y,a,s,d);if(S!==void 0){if(S)continue;M=!1;break}if(C){if(!t(s,function(A,z){if(!n(C,z)&&(x===A||u(x,A,l,c,d)))return C.push(z)})){M=!1;break}}else if(!(x===w||u(x,w,l,c,d))){M=!1;break}}return d.delete(a),d.delete(s),M}return O0e=o,O0e}var z0e,VUe;function kpi(){if(VUe)return z0e;VUe=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return z0e=e,z0e}var T0e,GUe;function Zze(){if(GUe)return T0e;GUe=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return T0e=e,T0e}var E0e,$Ue;function Lpi(){if($Ue)return E0e;$Ue=1;var e=wk(),t=Wwt(),n=uj(),r=rAt(),i=kpi(),o=Zze(),a=1,s=2,l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Map]",p="[object Number]",h="[object RegExp]",g="[object Set]",m="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",M="[object DataView]",C=e?e.prototype:void 0,x=C?C.valueOf:void 0;function w(S,A,z,O,T,R,P){switch(z){case M:if(S.byteLength!=A.byteLength||S.byteOffset!=A.byteOffset)return!1;S=S.buffer,A=A.buffer;case y:return!(S.byteLength!=A.byteLength||!R(new t(S),new t(A)));case l:case c:case p:return n(+S,+A);case u:return S.name==A.name&&S.message==A.message;case h:case m:return S==A+"";case d:var F=i;case g:var N=O&a;if(F||(F=o),S.size!=A.size&&!N)return!1;var L=P.get(S);if(L)return L==A;O|=s,P.set(S,A);var W=r(F(S),F(A),O,T,R,P);return P.delete(S),W;case b:if(x)return x.call(S)==x.call(A)}return!1}return E0e=w,E0e}var R0e,UUe;function Jze(){if(UUe)return R0e;UUe=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return R0e=e,R0e}var I0e,XUe;function iAt(){if(XUe)return I0e;XUe=1;var e=Jze(),t=y1();function n(r,i,o){var a=i(r);return t(r)?a:e(a,o(r))}return I0e=n,I0e}var P0e,YUe;function oAt(){if(YUe)return P0e;YUe=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var s=t[r];n(s,r,t)&&(a[o++]=s)}return a}return P0e=e,P0e}var D0e,KUe;function aAt(){if(KUe)return D0e;KUe=1;function e(){return[]}return D0e=e,D0e}var k0e,QUe;function e3e(){if(QUe)return k0e;QUe=1;var e=oAt(),t=aAt(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(s){return r.call(a,s)}))}:t;return k0e=o,k0e}var L0e,ZUe;function _pi(){if(ZUe)return L0e;ZUe=1;var e=jwt(),t=e(Object.keys,Object);return L0e=t,L0e}var _0e,JUe;function Npi(){if(JUe)return _0e;JUe=1;var e=mze(),t=_pi(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var s in Object(o))r.call(o,s)&&s!="constructor"&&a.push(s);return a}return _0e=i,_0e}var N0e,eXe;function fj(){if(eXe)return N0e;eXe=1;var e=$wt(),t=Npi(),n=Sk();function r(i){return n(i)?e(i):t(i)}return N0e=r,N0e}var F0e,tXe;function sAt(){if(tXe)return F0e;tXe=1;var e=iAt(),t=e3e(),n=fj();function r(i){return e(i,n,t)}return F0e=r,F0e}var W0e,nXe;function Fpi(){if(nXe)return W0e;nXe=1;var e=sAt(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,s,l,c,u){var d=s&t,p=e(o),h=p.length,g=e(a),m=g.length;if(h!=m&&!d)return!1;for(var b=h;b--;){var y=p[b];if(!(d?y in a:r.call(a,y)))return!1}var M=u.get(o),C=u.get(a);if(M&&C)return M==a&&C==o;var x=!0;u.set(o,a),u.set(a,o);for(var w=d;++b<h;){y=p[b];var S=o[y],A=a[y];if(l)var z=d?l(A,S,y,a,o,u):l(S,A,y,o,a,u);if(!(z===void 0?S===A||c(S,A,s,l,u):z)){x=!1;break}w||(w=y=="constructor")}if(x&&!w){var O=o.constructor,T=a.constructor;O!=T&&"constructor"in o&&"constructor"in a&&!(typeof O=="function"&&O instanceof O&&typeof T=="function"&&T instanceof T)&&(x=!1)}return u.delete(o),u.delete(a),x}return W0e=i,W0e}var q0e,rXe;function Wpi(){if(rXe)return q0e;rXe=1;var e=tT(),t=o2(),n=e(t,"DataView");return q0e=n,q0e}var B0e,iXe;function qpi(){if(iXe)return B0e;iXe=1;var e=tT(),t=o2(),n=e(t,"Promise");return B0e=n,B0e}var j0e,oXe;function lAt(){if(oXe)return j0e;oXe=1;var e=tT(),t=o2(),n=e(t,"Set");return j0e=n,j0e}var H0e,aXe;function Bpi(){if(aXe)return H0e;aXe=1;var e=tT(),t=o2(),n=e(t,"WeakMap");return H0e=n,H0e}var V0e,sXe;function ete(){if(sXe)return V0e;sXe=1;var e=Wpi(),t=dze(),n=qpi(),r=lAt(),i=Bpi(),o=OM(),a=kwt(),s="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",d="[object WeakMap]",p="[object DataView]",h=a(e),g=a(t),m=a(n),b=a(r),y=a(i),M=o;return(e&&M(new e(new ArrayBuffer(1)))!=p||t&&M(new t)!=s||n&&M(n.resolve())!=c||r&&M(new r)!=u||i&&M(new i)!=d)&&(M=function(C){var x=o(C),w=x==l?C.constructor:void 0,S=w?a(w):"";if(S)switch(S){case h:return p;case g:return s;case m:return c;case b:return u;case y:return d}return x}),V0e=M,V0e}var G0e,lXe;function jpi(){if(lXe)return G0e;lXe=1;var e=cee(),t=rAt(),n=Lpi(),r=Fpi(),i=ete(),o=y1(),a=dee(),s=yze(),l=1,c="[object Arguments]",u="[object Array]",d="[object Object]",p=Object.prototype,h=p.hasOwnProperty;function g(m,b,y,M,C,x){var w=o(m),S=o(b),A=w?u:i(m),z=S?u:i(b);A=A==c?d:A,z=z==c?d:z;var O=A==d,T=z==d,R=A==z;if(R&&a(m)){if(!a(b))return!1;w=!0,O=!1}if(R&&!O)return x||(x=new e),w||s(m)?t(m,b,y,M,C,x):n(m,b,A,y,M,C,x);if(!(y&l)){var P=O&&h.call(m,"__wrapped__"),F=T&&h.call(b,"__wrapped__");if(P||F){var N=P?m.value():m,L=F?b.value():b;return x||(x=new e),C(N,L,y,M,x)}}return R?(x||(x=new e),r(m,b,y,M,C,x)):!1}return G0e=g,G0e}var $0e,cXe;function t3e(){if(cXe)return $0e;cXe=1;var e=jpi(),t=rg();function n(r,i,o,a,s){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,a,n,s)}return $0e=n,$0e}var U0e,uXe;function Hpi(){if(uXe)return U0e;uXe=1;var e=t3e();function t(n,r){return e(n,r)}return U0e=t,U0e}Hpi();var Vpi=bze();const cAt=qn(Vpi);var X0e,dXe;function Gpi(){if(dXe)return X0e;dXe=1;var e=pj(),t=Qwt(),n=zk();function r(i,o,a){for(var s=-1,l=o.length,c={};++s<l;){var u=o[s],d=e(i,u);a(d,u)&&t(c,n(u,i),d)}return c}return X0e=r,X0e}var Y0e,pXe;function $pi(){if(pXe)return Y0e;pXe=1;function e(t,n){return t!=null&&n in Object(t)}return Y0e=e,Y0e}var K0e,hXe;function Upi(){if(hXe)return K0e;hXe=1;var e=zk(),t=uee(),n=y1(),r=hee(),i=vze(),o=Tk();function a(s,l,c){l=e(l,s);for(var u=-1,d=l.length,p=!1;++u<d;){var h=o(l[u]);if(!(p=s!=null&&c(s,h)))break;s=s[h]}return p||++u!=d?p:(d=s==null?0:s.length,!!d&&i(d)&&r(h,d)&&(n(s)||t(s)))}return K0e=a,K0e}var Q0e,fXe;function uAt(){if(fXe)return Q0e;fXe=1;var e=$pi(),t=Upi();function n(r,i){return r!=null&&t(r,i,e)}return Q0e=n,Q0e}var Z0e,gXe;function Xpi(){if(gXe)return Z0e;gXe=1;var e=Gpi(),t=uAt();function n(r,i){return e(r,i,function(o,a){return t(r,a)})}return Z0e=n,Z0e}var J0e,mXe;function Ypi(){if(mXe)return J0e;mXe=1;var e=wk(),t=uee(),n=y1(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return J0e=i,J0e}var e1e,vXe;function dAt(){if(vXe)return e1e;vXe=1;var e=Jze(),t=Ypi();function n(r,i,o,a,s){var l=-1,c=r.length;for(o||(o=t),s||(s=[]);++l<c;){var u=r[l];i>0&&o(u)?i>1?n(u,i-1,o,a,s):e(s,u):a||(s[s.length]=u)}return s}return e1e=n,e1e}var t1e,bXe;function Kpi(){if(bXe)return t1e;bXe=1;var e=dAt();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return t1e=t,t1e}var n1e,yXe;function pAt(){if(yXe)return n1e;yXe=1;var e=Kpi(),t=Uwt(),n=Xwt();function r(i){return n(t(i,void 0,e),i+"")}return n1e=r,n1e}var r1e,MXe;function Qpi(){if(MXe)return r1e;MXe=1;var e=Xpi(),t=pAt(),n=t(function(r,i){return r==null?{}:e(r,i)});return r1e=n,r1e}Qpi();function g1(){return g1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g1.apply(this,arguments)}function hAt(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var mw={fill:Z.string,fontSize:Z.number,fontFamily:Z.string},Zpi=Z.shape({domain:Z.shape({line:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,strokeDasharray:Z.string}).isRequired}).isRequired,ticks:Z.shape({line:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,strokeDasharray:Z.string}).isRequired,text:Z.shape(g1({},mw)).isRequired}).isRequired,legend:Z.shape({text:Z.shape(g1({},mw)).isRequired}).isRequired}),Jpi=Z.shape({line:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,strokeDasharray:Z.string}).isRequired}),ehi=Z.shape({hidden:Z.shape({symbol:Z.shape({fill:Z.string.isRequired,opacity:Z.number}).isRequired,text:Z.shape(g1({},mw,{opacity:Z.number})).isRequired}).isRequired,text:Z.shape(g1({},mw)).isRequired}),thi=Z.shape({text:Z.shape(g1({},mw)).isRequired}),nhi=Z.shape({text:Z.shape(g1({},mw)).isRequired}),rhi=Z.shape({text:Z.shape(g1({},mw)).isRequired}),ihi=Z.shape({line:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,strokeDasharray:Z.string}).isRequired}),ohi=Z.shape({text:Z.shape(g1({},mw,{outlineWidth:Z.number.isRequired,outlineColor:Z.string.isRequired})).isRequired,link:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,outlineWidth:Z.number.isRequired,outlineColor:Z.string.isRequired}).isRequired,outline:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,outlineWidth:Z.number.isRequired,outlineColor:Z.string.isRequired}).isRequired,symbol:Z.shape({fill:Z.string.isRequired,outlineWidth:Z.number.isRequired,outlineColor:Z.string.isRequired}).isRequired});Z.shape({background:Z.string.isRequired,fontFamily:Z.string.isRequired,fontSize:Z.number.isRequired,textColor:Z.string.isRequired,axis:Zpi.isRequired,grid:Jpi.isRequired,legends:ehi.isRequired,labels:thi.isRequired,dots:nhi.isRequired,markers:rhi,crosshair:ihi.isRequired,annotations:ohi.isRequired});var ahi={background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},shi=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],lhi=function(e,t){var n=mui({},e,t);return shi.forEach((function(r){jx(n,r+".fontFamily")===void 0&&Jde(n,r+".fontFamily",n.fontFamily),jx(n,r+".fontSize")===void 0&&Jde(n,r+".fontSize",n.fontSize),jx(n,r+".fill")===void 0&&Jde(n,r+".fill",n.textColor)})),n},fAt=v.createContext(),n3e=function(e){var t=e.children,n=e.animate,r=e.stiffness,i=e.damping,o=e.config,a=v.useMemo((function(){var s=tdi(o)?sze[o]:o;return{animate:n,springConfig:{stiffness:r,damping:i},config:s}}),[n,r,i,o]);return f.jsx(fAt.Provider,{value:a,children:t})},AG={animate:Z.bool,motionStiffness:Z.number,motionDamping:Z.number,motionConfig:Z.oneOfType([Z.oneOf(Object.keys(sze)),Z.shape({mass:Z.number,tension:Z.number,friction:Z.number,clamp:Z.bool,precision:Z.number,velocity:Z.number,duration:Z.number,easing:Z.func})])};n3e.propTypes={children:Z.node.isRequired,animate:AG.animate,stiffness:AG.motionStiffness,damping:AG.motionDamping,config:AG.motionConfig};var chi={animate:!0,stiffness:90,damping:15,config:"default"};n3e.defaultProps=chi;var gj=function(){return v.useContext(fAt)},uhi={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:li(See),PRGn:li(Aee),PiYG:li(Oee),PuOr:li(zee),RdBu:li(Tee),RdGy:li(Eee),RdYlBu:li(Ree),RdYlGn:li(Iee),spectral:li(Pee),blues:li(Gee),greens:li($ee),greys:li(Uee),oranges:li(Kee),purples:li(Xee),reds:li(Yee),BuGn:li(Dee),BuPu:li(kee),GnBu:li(Lee),OrRd:li(_ee),PuBuGn:li(Nee),PuBu:li(Fee),PuRd:li(Wee),RdPu:li(qee),YlGnBu:li(Bee),YlGn:li(jee),YlOrBr:li(Hee),YlOrRd:li(Vee)},dhi=Object.keys(uhi);li(See),li(Aee),li(Oee),li(zee),li(Tee),li(Eee),li(Ree),li(Iee),li(Pee),li(Gee),li($ee),li(Uee),li(Kee),li(Xee),li(Yee),li(Dee),li(kee),li(Lee),li(_ee),li(Nee),li(Fee),li(Wee),li(qee),li(Bee),li(jee),li(Hee),li(Vee);Z.oneOfType([Z.oneOf(dhi),Z.func,Z.arrayOf(Z.string)]);var phi={basis:api,basisClosed:spi,basisOpen:lpi,bundle:cpi,cardinal:upi,cardinalClosed:dpi,cardinalOpen:ppi,catmullRom:hpi,catmullRomClosed:fpi,catmullRomOpen:gpi,linear:opi,linearClosed:mpi,monotoneX:vpi,monotoneY:bpi,natural:ypi,step:Mpi,stepAfter:xpi,stepBefore:Cpi},tte=Object.keys(phi);Z.oneOf(tte);tte.filter((function(e){return e.endsWith("Closed")}));jSt(tte,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var hhi=jSt(tte,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Z.oneOf(hhi);Z.arrayOf(Z.shape({id:Z.string.isRequired})).isRequired,Z.arrayOf(Z.shape({id:Z.string.isRequired,match:Z.oneOfType([Z.oneOf(["*"]),Z.object,Z.func]).isRequired})).isRequired;var fhi={ascending:tAt,descending:Rpi,insideOut:Ipi,none:eD,reverse:Ppi},ghi=Object.keys(fhi);Z.oneOf(ghi);var mhi={expand:Api,diverging:eAt,none:JP,silhouette:Opi,wiggle:zpi},vhi=Object.keys(mhi);Z.oneOf(vhi);Z.shape({top:Z.number,right:Z.number,bottom:Z.number,left:Z.number}).isRequired;var bhi=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];Z.oneOf(bhi);zO(WSt);var yhi={top:0,right:0,bottom:0,left:0},Mhi=function(e,t,n){return n===void 0&&(n={}),v.useMemo((function(){var r=g1({},yhi,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n.top,n.right,n.bottom,n.left])},gAt=function(){var e=v.useRef(null),t=v.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=v.useState((function(){return new ResizeObserver((function(o){var a=o[0];return r(a.contentRect)}))}))[0];return v.useEffect((function(){return e.current&&i.observe(e.current),function(){return i.disconnect()}}),[]),[e,n]},Chi=function(e){return v.useMemo((function(){return lhi(ahi,e)}),[e])},xhi=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?wee(e.slice("5")):hj(e):function(t){return""+t}},mAt=function(e){return v.useMemo((function(){return xhi(e)}),[e])},vAt=v.createContext(),whi={},bAt=function(e){var t=e.theme,n=t===void 0?whi:t,r=e.children,i=Chi(n);return f.jsx(vAt.Provider,{value:i,children:r})};bAt.propTypes={children:Z.node.isRequired,theme:Z.object};var ig=function(){return v.useContext(vAt)},yAt=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?v.cloneElement(r,{},t):t};yAt.propTypes={children:Z.node.isRequired,condition:Z.bool.isRequired,wrapper:Z.element.isRequired};var Shi={position:"relative"},MAt=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionStiffness,c=e.motionDamping,u=e.motionConfig,d=v.useRef(null);return f.jsx(bAt,{theme:n,children:f.jsx(n3e,{animate:s,stiffness:l,damping:c,config:u,children:f.jsx(wci,{container:d,children:f.jsxs(yAt,{condition:i,wrapper:f.jsx("div",{style:Shi,ref:d}),children:[t,a&&f.jsx(xci,{})]})})})})};MAt.propTypes={children:Z.element.isRequired,isInteractive:Z.bool,renderWrapper:Z.bool,theme:Z.object,animate:Z.bool,motionStiffness:Z.number,motionDamping:Z.number,motionConfig:Z.string};Z.func.isRequired,Z.bool,Z.bool,Z.object.isRequired,Z.bool.isRequired,Z.number,Z.number,Z.string;var CAt=function(e){var t=e.children,n=gAt(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return f.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};CAt.propTypes={children:Z.func.isRequired};var Ahi=["id","colors"],xAt=function(e){var t=e.id,n=e.colors,r=hAt(e,Ahi);return f.jsx("linearGradient",g1({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map((function(i){var o=i.offset,a=i.color,s=i.opacity;return f.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)}))}))};xAt.propTypes={id:Z.string.isRequired,colors:Z.arrayOf(Z.shape({offset:Z.number.isRequired,color:Z.string.isRequired,opacity:Z.number})).isRequired,gradientTransform:Z.string};var Ohi={linearGradient:xAt},s$=v.memo((function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,a=e.stagger,s=i+o,l=i/2,c=o/2;return a===!0&&(s=2*i+2*o),f.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[f.jsx("rect",{width:s,height:s,fill:n}),f.jsx("circle",{cx:c+l,cy:c+l,r:l,fill:r}),a&&f.jsx("circle",{cx:1.5*o+i+l,cy:1.5*o+i+l,r:l,fill:r})]})}));s$.displayName="PatternDots",s$.propTypes={id:Z.string.isRequired,color:Z.string.isRequired,background:Z.string.isRequired,size:Z.number.isRequired,padding:Z.number.isRequired,stagger:Z.bool.isRequired},s$.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var i6=function(e){return e*Math.PI/180},zhi=function(e){return 180*e/Math.PI},Thi=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Ehi=function(e){var t=e%360;return t<0&&(t+=360),t},Rhi={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},l$=v.memo((function(e){var t=e.id,n=e.spacing,r=e.rotation,i=e.background,o=e.color,a=e.lineWidth,s=Math.round(r)%360,l=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var c,u=l,d=l;return s===0?c=`
                M 0 0 L `+u+` 0
                M 0 `+d+" L "+u+" "+d+`
            `:s===90?c=`
                M 0 0 L 0 `+d+`
                M `+u+" 0 L "+u+" "+d+`
            `:(u=Math.abs(l/Math.sin(i6(s))),d=l/Math.sin(i6(90-s)),c=s>0?`
                    M 0 `+-d+" L "+2*u+" "+d+`
                    M `+-u+" "+-d+" L "+u+" "+d+`
                    M `+-u+" 0 L "+u+" "+2*d+`
                `:`
                    M `+-u+" "+d+" L "+u+" "+-d+`
                    M `+-u+" "+2*d+" L "+2*u+" "+-d+`
                    M 0 `+2*d+" L "+2*u+` 0
                `),f.jsxs("pattern",{id:t,width:u,height:d,patternUnits:"userSpaceOnUse",children:[f.jsx("rect",{width:u,height:d,fill:i,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),f.jsx("path",{d:c,strokeWidth:a,stroke:o,strokeLinecap:"square"})]})}));l$.displayName="PatternLines",l$.propTypes={id:Z.string.isRequired,spacing:Z.number.isRequired,rotation:Z.number.isRequired,background:Z.string.isRequired,color:Z.string.isRequired,lineWidth:Z.number.isRequired},l$.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var c$=v.memo((function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,a=e.stagger,s=i+o,l=o/2;return a===!0&&(s=2*i+2*o),f.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[f.jsx("rect",{width:s,height:s,fill:n}),f.jsx("rect",{x:l,y:l,width:i,height:i,fill:r}),a&&f.jsx("rect",{x:1.5*o+i,y:1.5*o+i,width:i,height:i,fill:r})]})}));c$.displayName="PatternSquares",c$.propTypes={id:Z.string.isRequired,color:Z.string.isRequired,background:Z.string.isRequired,size:Z.number.isRequired,padding:Z.number.isRequired,stagger:Z.bool.isRequired},c$.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Ihi={patternDots:s$,patternLines:l$,patternSquares:c$},Phi=["type"],Xbe=g1({},Ohi,Ihi),wAt=function(e){var t=e.defs;return!t||t.length<1?null:f.jsx("defs",{"aria-hidden":!0,children:t.map((function(n){var r=n.type,i=hAt(n,Phi);return Xbe[r]?v.createElement(Xbe[r],g1({key:i.id},i)):null}))})};wAt.propTypes={defs:Z.arrayOf(Z.shape({type:Z.oneOf(Object.keys(Xbe)).isRequired,id:Z.string.isRequired}))};v.memo(wAt);Z.number.isRequired,Z.number.isRequired,Z.shape({top:Z.number.isRequired,left:Z.number.isRequired}).isRequired,Z.array,Z.oneOfType([Z.arrayOf(Z.node),Z.node]).isRequired,Z.string,Z.bool,Z.string,Z.string,Z.string;var SAt=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return f.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};SAt.propTypes={size:Z.number.isRequired,color:Z.string.isRequired,borderWidth:Z.number.isRequired,borderColor:Z.string.isRequired};var Dhi=v.memo(SAt),AAt=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?Dhi:r,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,p=d===void 0?"middle":d,h=e.labelYOffset,g=h===void 0?-12:h,m=ig(),b=gj(),y=b.animate,M=b.config,C=cj({transform:"translate("+t+", "+n+")",config:M,immediate:!y});return f.jsxs(If.g,{transform:C.transform,style:{pointerEvents:"none"},children:[v.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:c}),u&&f.jsx("text",{textAnchor:p,y:g,style:m.dots.text,children:u})]})};AAt.propTypes={x:Z.number.isRequired,y:Z.number.isRequired,datum:Z.object.isRequired,size:Z.number.isRequired,color:Z.string.isRequired,borderWidth:Z.number.isRequired,borderColor:Z.string.isRequired,symbol:Z.oneOfType([Z.func,Z.object]),label:Z.oneOfType([Z.string,Z.number]),labelTextAnchor:Z.oneOf(["start","middle","end"]),labelYOffset:Z.number.isRequired};v.memo(AAt);var Ybe=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,c=e.legendPosition,u=e.legendOffsetX,d=e.legendOffsetY,p=e.legendOrientation,h=ig(),g=0,m=0,b=0,y=0;r==="y"?(b=i(o),m=t):(g=i(o),y=n);var M=null;if(l){var C=(function(x){var w=x.axis,S=x.width,A=x.height,z=x.position,O=x.offsetX,T=x.offsetY,R=x.orientation,P=0,F=0,N=R==="vertical"?-90:0,L="start";if(w==="x")switch(z){case"top-left":P=-O,F=T,L="end";break;case"top":F=-T,L=R==="horizontal"?"middle":"start";break;case"top-right":P=O,F=T,L=R==="horizontal"?"start":"end";break;case"right":P=O,F=A/2,L=R==="horizontal"?"start":"middle";break;case"bottom-right":P=O,F=A-T,L="start";break;case"bottom":F=A+T,L=R==="horizontal"?"middle":"end";break;case"bottom-left":F=A-T,P=-O,L=R==="horizontal"?"end":"start";break;case"left":P=-O,F=A/2,L=R==="horizontal"?"end":"middle"}else switch(z){case"top-left":P=O,F=-T,L="start";break;case"top":P=S/2,F=-T,L=R==="horizontal"?"middle":"start";break;case"top-right":P=S-O,F=-T,L=R==="horizontal"?"end":"start";break;case"right":P=S+O,L=R==="horizontal"?"start":"middle";break;case"bottom-right":P=S-O,F=T,L="end";break;case"bottom":P=S/2,F=T,L=R==="horizontal"?"middle":"end";break;case"bottom-left":P=O,F=T,L=R==="horizontal"?"start":"end";break;case"left":P=-O,L=R==="horizontal"?"end":"middle"}return{x:P,y:F,rotation:N,textAnchor:L}})({axis:r,width:t,height:n,position:c,offsetX:u,offsetY:d,orientation:p});M=f.jsx("text",{transform:"translate("+C.x+", "+C.y+") rotate("+C.rotation+")",textAnchor:C.textAnchor,dominantBaseline:"central",style:s,children:l})}return f.jsxs("g",{transform:"translate("+g+", "+b+")",children:[f.jsx("line",{x1:0,x2:m,y1:0,y2:y,stroke:h.markers.lineColor,strokeWidth:h.markers.lineStrokeWidth,style:a}),M]})};Ybe.propTypes={width:Z.number.isRequired,height:Z.number.isRequired,axis:Z.oneOf(["x","y"]).isRequired,scale:Z.func.isRequired,value:Z.oneOfType([Z.number,Z.string,Z.instanceOf(Date)]).isRequired,lineStyle:Z.object,textStyle:Z.object,legend:Z.string,legendPosition:Z.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:Z.number.isRequired,legendOffsetY:Z.number.isRequired,legendOrientation:Z.oneOf(["horizontal","vertical"]).isRequired},Ybe.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var khi=v.memo(Ybe),OAt=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map((function(a,s){return f.jsx(khi,g1({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)})):null};OAt.propTypes={width:Z.number.isRequired,height:Z.number.isRequired,xScale:Z.func.isRequired,yScale:Z.func.isRequired,markers:Z.arrayOf(Z.shape({axis:Z.oneOf(["x","y"]).isRequired,value:Z.oneOfType([Z.number,Z.string,Z.instanceOf(Date)]).isRequired,lineStyle:Z.object,textStyle:Z.object}))};v.memo(OAt);var zAt=function(e){return Y1i(e)?e:function(t){return jx(t,e)}},i1e=function(e){return v.useMemo((function(){return zAt(e)}),[e])},Lhi=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},o1e=function(e,t){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return[n-i.left,r-i.top]},a1e,CXe;function _hi(){if(CXe)return a1e;CXe=1;function e(){}return a1e=e,a1e}var s1e,xXe;function Nhi(){if(xXe)return s1e;xXe=1;var e=lAt(),t=_hi(),n=Zze(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return s1e=i,s1e}var l1e,wXe;function TAt(){if(wXe)return l1e;wXe=1;var e=$ze(),t=qSt(),n=BSt(),r=Uze(),i=Nhi(),o=Zze(),a=200;function s(l,c,u){var d=-1,p=t,h=l.length,g=!0,m=[],b=m;if(u)g=!1,p=n;else if(h>=a){var y=c?null:i(l);if(y)return o(y);g=!1,p=r,b=new e}else b=c?[]:m;e:for(;++d<h;){var M=l[d],C=c?c(M):M;if(M=u||M!==0?M:0,g&&C===C){for(var x=b.length;x--;)if(b[x]===C)continue e;c&&b.push(C),m.push(M)}else p(b,C,u)||(b!==m&&b.push(C),m.push(M))}return m}return l1e=s,l1e}var c1e,SXe;function Fhi(){if(SXe)return c1e;SXe=1;var e=TAt();function t(n){return n&&n.length?e(n):[]}return c1e=t,c1e}Fhi();var u1e,AXe;function Whi(){if(AXe)return u1e;AXe=1;var e=cee(),t=t3e(),n=1,r=2;function i(o,a,s,l){var c=s.length,u=c,d=!l;if(o==null)return!u;for(o=Object(o);c--;){var p=s[c];if(d&&p[2]?p[1]!==o[p[0]]:!(p[0]in o))return!1}for(;++c<u;){p=s[c];var h=p[0],g=o[h],m=p[1];if(d&&p[2]){if(g===void 0&&!(h in o))return!1}else{var b=new e;if(l)var y=l(g,m,h,o,a,b);if(!(y===void 0?t(m,g,n|r,l,b):y))return!1}}return!0}return u1e=i,u1e}var d1e,OXe;function EAt(){if(OXe)return d1e;OXe=1;var e=a2();function t(n){return n===n&&!e(n)}return d1e=t,d1e}var p1e,zXe;function qhi(){if(zXe)return p1e;zXe=1;var e=EAt(),t=fj();function n(r){for(var i=t(r),o=i.length;o--;){var a=i[o],s=r[a];i[o]=[a,s,e(s)]}return i}return p1e=n,p1e}var h1e,TXe;function RAt(){if(TXe)return h1e;TXe=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return h1e=e,h1e}var f1e,EXe;function Bhi(){if(EXe)return f1e;EXe=1;var e=Whi(),t=qhi(),n=RAt();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return f1e=r,f1e}var g1e,RXe;function jhi(){if(RXe)return g1e;RXe=1;var e=t3e(),t=Kwt(),n=uAt(),r=xze(),i=EAt(),o=RAt(),a=Tk(),s=1,l=2;function c(u,d){return r(u)&&i(d)?o(a(u),d):function(p){var h=t(p,u);return h===void 0&&h===d?n(p,u):e(d,h,s|l)}}return g1e=c,g1e}var m1e,IXe;function Hhi(){if(IXe)return m1e;IXe=1;function e(t){return function(n){return n?.[t]}}return m1e=e,m1e}var v1e,PXe;function Vhi(){if(PXe)return v1e;PXe=1;var e=pj();function t(n){return function(r){return e(r,n)}}return v1e=t,v1e}var b1e,DXe;function Ghi(){if(DXe)return b1e;DXe=1;var e=Hhi(),t=Vhi(),n=xze(),r=Tk();function i(o){return n(o)?e(r(o)):t(o)}return b1e=i,b1e}var y1e,kXe;function r3e(){if(kXe)return y1e;kXe=1;var e=Bhi(),t=jhi(),n=fee(),r=y1(),i=Ghi();function o(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return y1e=o,y1e}var M1e,LXe;function $hi(){if(LXe)return M1e;LXe=1;var e=r3e(),t=TAt();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return M1e=n,M1e}var Uhi=$hi();const _Xe=qn(Uhi);var C1e,NXe;function Xhi(){if(NXe)return C1e;NXe=1;var e=Nwt(),t=fj();function n(r,i){return r&&e(r,i,t)}return C1e=n,C1e}var x1e,FXe;function Yhi(){if(FXe)return x1e;FXe=1;var e=Sk();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var a=i.length,s=r?a:-1,l=Object(i);(r?s--:++s<a)&&o(l[s],s,l)!==!1;);return i}}return x1e=t,x1e}var w1e,WXe;function IAt(){if(WXe)return w1e;WXe=1;var e=Xhi(),t=Yhi(),n=t(e);return w1e=n,w1e}var S1e,qXe;function Khi(){if(qXe)return S1e;qXe=1;var e=IAt(),t=Sk();function n(r,i){var o=-1,a=t(r)?Array(r.length):[];return e(r,function(s,l,c){a[++o]=i(s,l,c)}),a}return S1e=n,S1e}var A1e,BXe;function Qhi(){if(BXe)return A1e;BXe=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return A1e=e,A1e}var O1e,jXe;function Zhi(){if(jXe)return O1e;jXe=1;var e=gee();function t(n,r){if(n!==r){var i=n!==void 0,o=n===null,a=n===n,s=e(n),l=r!==void 0,c=r===null,u=r===r,d=e(r);if(!c&&!d&&!s&&n>r||s&&l&&u&&!c&&!d||o&&l&&u||!i&&u||!a)return 1;if(!o&&!s&&!d&&n<r||d&&i&&a&&!o&&!s||c&&i&&a||!l&&a||!u)return-1}return 0}return O1e=t,O1e}var z1e,HXe;function Jhi(){if(HXe)return z1e;HXe=1;var e=Zhi();function t(n,r,i){for(var o=-1,a=n.criteria,s=r.criteria,l=a.length,c=i.length;++o<l;){var u=e(a[o],s[o]);if(u){if(o>=c)return u;var d=i[o];return u*(d=="desc"?-1:1)}}return n.index-r.index}return z1e=t,z1e}var T1e,VXe;function efi(){if(VXe)return T1e;VXe=1;var e=mee(),t=pj(),n=r3e(),r=Khi(),i=Qhi(),o=Ak(),a=Jhi(),s=fee(),l=y1();function c(u,d,p){d.length?d=e(d,function(m){return l(m)?function(b){return t(b,m.length===1?m[0]:m)}:m}):d=[s];var h=-1;d=e(d,o(n));var g=r(u,function(m,b,y){var M=e(d,function(C){return C(m)});return{criteria:M,index:++h,value:m}});return i(g,function(m,b){return a(m,b,p)})}return T1e=c,T1e}var E1e,GXe;function tfi(){if(GXe)return E1e;GXe=1;var e=dAt(),t=efi(),n=Cze(),r=Ywt(),i=n(function(o,a){if(o==null)return[];var s=a.length;return s>1&&r(o,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return E1e=i,E1e}tfi();var R1e,$Xe;function nfi(){if($Xe)return R1e;$Xe=1;var e=OM(),t=rg(),n="[object Date]";function r(i){return t(i)&&e(i)==n}return R1e=r,R1e}var I1e,UXe;function rfi(){if(UXe)return I1e;UXe=1;var e=nfi(),t=Ak(),n=pee(),r=n&&n.isDate,i=r?t(r):e;return I1e=i,I1e}rfi();var cR=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],ifi={millisecond:[],second:cR.slice(0,1),minute:cR.slice(0,2),hour:cR.slice(0,3),day:cR.slice(0,4),month:cR.slice(0,5),year:cR.slice(0,6)},ofi=function(e){return function(t){return ifi[e].forEach((function(n){n(t)})),t}},afi=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,a=o===void 0||o,s=ofi(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?FSt(n):_St(n);return s(c(l))}},sfi=function(e,t,n,r){var i,o,a,s,l=e.min,c=l===void 0?0:l,u=e.max,d=u===void 0?"auto":u,p=e.stacked,h=p!==void 0&&p,g=e.reverse,m=g!==void 0&&g,b=e.clamp,y=b!==void 0&&b,M=e.nice,C=M!==void 0&&M;c==="auto"?i=h===!0?(o=t.minStacked)!=null?o:0:t.min:i=c,d==="auto"?a=h===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var x=dSt().rangeRound(r==="x"?[0,n]:[n,0]).domain(m?[a,i]:[i,a]).clamp(y);return C===!0?x.nice():typeof C=="number"&&x.nice(C),lfi(x,h)},lfi=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},cfi=function(e,t,n){var r=ldi().range([0,n]).domain(t.all);return r.type="point",r},ufi=function(e,t,n,r){var i=e.round,o=i===void 0||i,a=Eze().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return dfi(a)},dfi=function(e){var t=e;return t.type="band",t},pfi=function(e,t,n){var r,i,o=e.format,a=o===void 0?"native":o,s=e.precision,l=s===void 0?"millisecond":s,c=e.min,u=c===void 0?"auto":c,d=e.max,p=d===void 0?"auto":d,h=e.useUTC,g=h===void 0||h,m=e.nice,b=m!==void 0&&m,y=afi({format:a,precision:l,useUTC:g});r=u==="auto"?y(t.min):a!=="native"?y(u):u,i=p==="auto"?y(t.max):a!=="native"?y(p):p;var M=g?J0i():Z0i();M.range([0,n]),r&&i&&M.domain([r,i]),b===!0?M.nice():typeof b!="object"&&typeof b!="number"||M.nice(b);var C=M;return C.type="time",C.useUTC=g,C},hfi=function(e,t,n,r){var i,o=e.base,a=o===void 0?10:o,s=e.min,l=s===void 0?"auto":s,c=e.max,u=c===void 0?"auto":c;if(t.all.some((function(m){return m===0})))throw new Error("a log scale domain must not include or cross zero");var d,p,h=!1;if(t.all.filter((function(m){return m!=null})).forEach((function(m){h||(i===void 0?i=Math.sign(m):Math.sign(m)!==i&&(h=!0))})),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=l==="auto"?t.min:l,p=u==="auto"?t.max:u;var g=hSt().domain([d,p]).rangeRound(r==="x"?[0,n]:[n,0]).base(a).nice();return g.type="log",g},ffi=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?1:a,l=e.min,c=l===void 0?"auto":l,u=e.max,d=u===void 0?"auto":u,p=e.reverse,h=p!==void 0&&p;i=c==="auto"?t.min:c,o=d==="auto"?t.max:d;var g=fSt().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();h===!0?g.domain([o,i]):g.domain([i,o]);var m=g;return m.type="symlog",m};function i3e(e,t,n,r){switch(e.type){case"linear":return sfi(e,t,n,r);case"point":return cfi(0,t,n);case"band":return ufi(e,t,n,r);case"time":return pfi(e,t,n);case"log":return hfi(e,t,n,r);case"symlog":return ffi(e,t,n,r);default:throw new Error("invalid scale spec")}}var PAt=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},DAt={millisecond:[t6,t6],second:[Ube,Ube],minute:[bSt,ASt],hour:[ySt,OSt],day:[nu((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)})),nu((function(e){return e.setUTCHours(0,0,0,0)}),(function(e,t){return e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)}))],week:[OX,zX],sunday:[OX,zX],monday:[n6,r6],tuesday:[MSt,zSt],wednesday:[CSt,TSt],thursday:[c3,u3],friday:[xSt,ESt],saturday:[wSt,RSt],month:[SSt,ISt],year:[hw,fw]},gfi=Object.keys(DAt),mfi=new RegExp("^every\\s*(\\d+)?\\s*("+gfi.join("|")+")s?$","i"),kAt=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(mfi);if(n){var r=n[1],i=n[2],o=DAt[i][e.useUTC?1:0];if(i==="day"){var a,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?a:[]}if(r===void 0)return e.ticks(o);var p=o.every(Number(r));if(p)return e.ticks(p)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function zm(){return zm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}var LAt=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.engine,u=c===void 0?"svg":c,d=kAt(r,o),p=Rhi[u],h="bandwidth"in r?PAt(r):r,g={lineX:0,lineY:0},m={textX:0,textY:0},b=typeof document=="object"&&document.dir==="rtl",y=p.align.center,M=p.baseline.center;return n==="x"?(t=function(C){var x;return{x:(x=h(C))!=null?x:0,y:0}},g.lineY=a*(i==="after"?1:-1),m.textY=(a+s)*(i==="after"?1:-1),M=i==="after"?p.baseline.top:p.baseline.bottom,l===0?y=p.align.center:i==="after"&&l<0||i==="before"&&l>0?(y=p.align[b?"left":"right"],M=p.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(y=p.align[b?"right":"left"],M=p.baseline.center)):(t=function(C){var x;return{x:0,y:(x=h(C))!=null?x:0}},g.lineX=a*(i==="after"?1:-1),m.textX=(a+s)*(i==="after"?1:-1),y=i==="after"?p.align.left:p.align.right),{ticks:d.map((function(C){return zm({key:typeof C=="number"||typeof C=="string"?C:""+C,value:C},t(C),g,m)})),textAlign:y,textBaseline:M}},_At=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=wee(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return hj(e)},Kbe=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||kAt(i,a)),l="bandwidth"in i?PAt(i):i,c=o==="x"?s.map((function(u){var d,p;return{key:""+u,x1:(d=l(u))!=null?d:0,x2:(p=l(u))!=null?p:0,y1:0,y2:r}})):s.map((function(u){var d,p;return{key:""+u,x1:0,x2:n,y1:(d=l(u))!=null?d:0,y2:(p=l(u))!=null?p:0}}));return c},vfi=v.memo((function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,c=e.animatedProps,u=ig(),d=(t=r?.(n))!=null?t:n,p=v.useMemo((function(){var h={opacity:c.opacity};return a?{style:zm({},h,{cursor:"pointer"}),onClick:function(g){return a(g,d)}}:{style:h}}),[c.opacity,a,d]);return f.jsxs(If.g,zm({transform:c.transform},p,{children:[f.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:u.axis.ticks.line}),f.jsx(If.text,{dominantBaseline:s,textAnchor:l,transform:c.textTransform,style:u.axis.ticks.text,children:d})]}))})),bfi=v.memo((function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?5:u,p=e.tickPadding,h=p===void 0?5:p,g=e.tickRotation,m=g===void 0?0:g,b=e.format,y=e.renderTick,M=y===void 0?vfi:y,C=e.legend,x=e.legendPosition,w=x===void 0?"end":x,S=e.legendOffset,A=S===void 0?0:S,z=e.onClick,O=e.ariaHidden,T=ig(),R=v.useMemo((function(){return _At(b,n)}),[b,n]),P=LAt({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:m}),F=P.ticks,N=P.textAlign,L=P.textBaseline,W=null;if(C!==void 0){var j,V=0,G=0,q=0;t==="y"?(q=-90,V=A,w==="start"?(j="start",G=s):w==="middle"?(j="middle",G=s/2):w==="end"&&(j="end")):(G=A,w==="start"?j="start":w==="middle"?(j="middle",V=s/2):w==="end"&&(j="end",V=s)),W=f.jsx("text",{transform:"translate("+V+", "+G+") rotate("+q+")",textAnchor:j,style:zm({dominantBaseline:"central"},T.axis.legend.text),children:C})}var $=gj(),U=$.animate,X=$.config,Q=cj({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:X,immediate:!U}),re=Owt(F,{keys:function(ee){return ee.key},initial:function(ee){return{opacity:1,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},from:function(ee){return{opacity:0,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},enter:function(ee){return{opacity:1,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},update:function(ee){return{opacity:1,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},leave:{opacity:0},config:X,immediate:!U});return f.jsxs(If.g,{transform:Q.transform,"aria-hidden":O,children:[re((function(ee,se,pe,te){return v.createElement(M,zm({tickIndex:te,format:R,rotate:m,textBaseline:L,textAnchor:N,animatedProps:ee},se,z?{onClick:z}:{}))})),f.jsx(If.line,{style:T.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),W]})})),yfi={ticksPosition:Z.oneOf(["before","after"]),tickValues:Z.oneOfType([Z.number,Z.arrayOf(Z.oneOfType([Z.number,Z.string,Z.instanceOf(Date)])),Z.string]),tickSize:Z.number,tickPadding:Z.number,tickRotation:Z.number,format:Z.oneOfType([Z.func,Z.string]),renderTick:Z.func,legend:Z.node,legendPosition:Z.oneOf(["start","middle","end"]),legendOffset:Z.number,ariaHidden:Z.bool};Z.shape(yfi);var NAt=["top","right","bottom","left"];v.memo((function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return f.jsx(f.Fragment,{children:NAt.map((function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return f.jsx(bfi,zm({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:a==="top"||a==="left"?"before":"after"}),a)}))})}));var Mfi=v.memo((function(e){var t=e.animatedProps,n=ig();return f.jsx(If.line,zm({},t,n.grid.line))})),XXe=v.memo((function(e){var t=e.lines,n=gj(),r=n.animate,i=n.config,o=Owt(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return f.jsx("g",{children:o((function(a,s){return v.createElement(Mfi,zm({},s,{key:s.key,animatedProps:a}))}))})}));v.memo((function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=v.useMemo((function(){return!!r&&Kbe({width:t,height:n,scale:r,axis:"x",values:o})}),[r,o,t,n]),l=v.useMemo((function(){return!!i&&Kbe({width:t,height:n,scale:i,axis:"y",values:a})}),[n,t,i,a]);return f.jsxs(f.Fragment,{children:[s&&f.jsx(XXe,{lines:s}),l&&f.jsx(XXe,{lines:l})]})}));var Cfi=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=o===void 0?0:o,s=t.y,l=s===void 0?0:s,c=t.length,u=t.ticksPosition,d=t.tickValues,p=t.tickSize,h=p===void 0?5:p,g=t.tickPadding,m=g===void 0?5:g,b=t.tickRotation,y=b===void 0?0:b,M=t.format,C=t.legend,x=t.legendPosition,w=x===void 0?"end":x,S=t.legendOffset,A=S===void 0?0:S,z=t.theme,O=LAt({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:m,tickRotation:y,engine:"canvas"}),T=O.ticks,R=O.textAlign,P=O.textBaseline;e.save(),e.translate(a,l),e.textAlign=R,e.textBaseline=P,e.font=(z.axis.ticks.text.fontWeight?z.axis.ticks.text.fontWeight+" ":"")+z.axis.ticks.text.fontSize+"px "+z.axis.ticks.text.fontFamily,((n=z.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(z.axis.domain.line.strokeWidth),e.lineCap="square",z.axis.domain.line.stroke&&(e.strokeStyle=z.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?c:0,r==="x"?0:c),e.stroke());var F=typeof M=="function"?M:function(V){return""+V};if(T.forEach((function(V){var G;((G=z.axis.ticks.line.strokeWidth)!=null?G:0)>0&&(e.lineWidth=Number(z.axis.ticks.line.strokeWidth),e.lineCap="square",z.axis.ticks.line.stroke&&(e.strokeStyle=z.axis.ticks.line.stroke),e.beginPath(),e.moveTo(V.x,V.y),e.lineTo(V.x+V.lineX,V.y+V.lineY),e.stroke());var q=F(V.value);e.save(),e.translate(V.x+V.textX,V.y+V.textY),e.rotate(i6(y)),z.axis.ticks.text.fill&&(e.fillStyle=z.axis.ticks.text.fill),e.fillText(String(q),0,0),e.restore()})),C!==void 0){var N=0,L=0,W=0,j="center";r==="y"?(W=-90,N=A,w==="start"?(j="start",L=c):w==="middle"?(j="center",L=c/2):w==="end"&&(j="end")):(L=A,w==="start"?j="start":w==="middle"?(j="center",N=c/2):w==="end"&&(j="end",N=c)),e.translate(N,L),e.rotate(i6(W)),e.font=(z.axis.legend.text.fontWeight?z.axis.legend.text.fontWeight+" ":"")+z.axis.legend.text.fontSize+"px "+z.axis.legend.text.fontFamily,z.axis.legend.text.fill&&(e.fillStyle=z.axis.legend.text.fill),e.textAlign=j,e.textBaseline="middle",e.fillText(C,0,0)}e.restore()},xfi=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:a,right:s,bottom:l,left:c};NAt.forEach((function(p){var h=d[p];if(!h)return null;var g=p==="top"||p==="bottom",m=p==="top"||p==="left"?"before":"after",b=g?n:r,y=_At(h.format,b);Cfi(e,zm({},h,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:b,format:y,length:g?i:o,ticksPosition:m,theme:u}))}))},YXe=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;Kbe({width:n,height:r,scale:i,axis:o,values:a}).forEach((function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()}))},P1e,KXe;function wfi(){if(KXe)return P1e;KXe=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return P1e=e,P1e}var D1e,QXe;function Sfi(){if(QXe)return D1e;QXe=1;var e=Ok(),t=fj();function n(r,i){return r&&e(i,t(i),r)}return D1e=n,D1e}var k1e,ZXe;function Afi(){if(ZXe)return k1e;ZXe=1;var e=Ok(),t=dj();function n(r,i){return r&&e(i,t(i),r)}return k1e=n,k1e}var L1e,JXe;function Ofi(){if(JXe)return L1e;JXe=1;var e=Ok(),t=e3e();function n(r,i){return e(r,t(r),i)}return L1e=n,L1e}var _1e,eYe;function FAt(){if(eYe)return _1e;eYe=1;var e=Jze(),t=gze(),n=e3e(),r=aAt(),i=Object.getOwnPropertySymbols,o=i?function(a){for(var s=[];a;)e(s,n(a)),a=t(a);return s}:r;return _1e=o,_1e}var N1e,tYe;function zfi(){if(tYe)return N1e;tYe=1;var e=Ok(),t=FAt();function n(r,i){return e(r,t(r),i)}return N1e=n,N1e}var F1e,nYe;function WAt(){if(nYe)return F1e;nYe=1;var e=iAt(),t=FAt(),n=dj();function r(i){return e(i,n,t)}return F1e=r,F1e}var W1e,rYe;function Tfi(){if(rYe)return W1e;rYe=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var i=r.length,o=new r.constructor(i);return i&&typeof r[0]=="string"&&t.call(r,"index")&&(o.index=r.index,o.input=r.input),o}return W1e=n,W1e}var q1e,iYe;function Efi(){if(iYe)return q1e;iYe=1;var e=fze();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}return q1e=t,q1e}var B1e,oYe;function Rfi(){if(oYe)return B1e;oYe=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return B1e=t,B1e}var j1e,aYe;function Ifi(){if(aYe)return j1e;aYe=1;var e=wk(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(i){return n?Object(n.call(i)):{}}return j1e=r,j1e}var H1e,sYe;function Pfi(){if(sYe)return H1e;sYe=1;var e=fze(),t=Efi(),n=Rfi(),r=Ifi(),i=qwt(),o="[object Boolean]",a="[object Date]",s="[object Map]",l="[object Number]",c="[object RegExp]",u="[object Set]",d="[object String]",p="[object Symbol]",h="[object ArrayBuffer]",g="[object DataView]",m="[object Float32Array]",b="[object Float64Array]",y="[object Int8Array]",M="[object Int16Array]",C="[object Int32Array]",x="[object Uint8Array]",w="[object Uint8ClampedArray]",S="[object Uint16Array]",A="[object Uint32Array]";function z(O,T,R){var P=O.constructor;switch(T){case h:return e(O);case o:case a:return new P(+O);case g:return t(O,R);case m:case b:case y:case M:case C:case x:case w:case S:case A:return i(O,R);case s:return new P;case l:case d:return new P(O);case c:return n(O);case u:return new P;case p:return r(O)}}return H1e=z,H1e}var V1e,lYe;function Dfi(){if(lYe)return V1e;lYe=1;var e=ete(),t=rg(),n="[object Map]";function r(i){return t(i)&&e(i)==n}return V1e=r,V1e}var G1e,cYe;function kfi(){if(cYe)return G1e;cYe=1;var e=Dfi(),t=Ak(),n=pee(),r=n&&n.isMap,i=r?t(r):e;return G1e=i,G1e}var $1e,uYe;function Lfi(){if(uYe)return $1e;uYe=1;var e=ete(),t=rg(),n="[object Set]";function r(i){return t(i)&&e(i)==n}return $1e=r,$1e}var U1e,dYe;function _fi(){if(dYe)return U1e;dYe=1;var e=Lfi(),t=Ak(),n=pee(),r=n&&n.isSet,i=r?t(r):e;return U1e=i,U1e}var X1e,pYe;function Nfi(){if(pYe)return X1e;pYe=1;var e=cee(),t=wfi(),n=Mze(),r=Sfi(),i=Afi(),o=Fwt(),a=Bwt(),s=Ofi(),l=zfi(),c=sAt(),u=WAt(),d=ete(),p=Tfi(),h=Pfi(),g=Hwt(),m=y1(),b=dee(),y=kfi(),M=a2(),C=_fi(),x=fj(),w=dj(),S=1,A=2,z=4,O="[object Arguments]",T="[object Array]",R="[object Boolean]",P="[object Date]",F="[object Error]",N="[object Function]",L="[object GeneratorFunction]",W="[object Map]",j="[object Number]",V="[object Object]",G="[object RegExp]",q="[object Set]",$="[object String]",U="[object Symbol]",X="[object WeakMap]",Q="[object ArrayBuffer]",re="[object DataView]",ee="[object Float32Array]",se="[object Float64Array]",pe="[object Int8Array]",te="[object Int16Array]",ce="[object Int32Array]",oe="[object Uint8Array]",ae="[object Uint8ClampedArray]",ne="[object Uint16Array]",le="[object Uint32Array]",he={};he[O]=he[T]=he[Q]=he[re]=he[R]=he[P]=he[ee]=he[se]=he[pe]=he[te]=he[ce]=he[W]=he[j]=he[V]=he[G]=he[q]=he[$]=he[U]=he[oe]=he[ae]=he[ne]=he[le]=!0,he[F]=he[N]=he[X]=!1;function be(me,Me,Oe,de,ie,ue){var Ae,Ce=Me&S,Ee=Me&A,Ge=Me&z;if(Oe&&(Ae=ie?Oe(me,de,ie,ue):Oe(me)),Ae!==void 0)return Ae;if(!M(me))return me;var _e=m(me);if(_e){if(Ae=p(me),!Ce)return a(me,Ae)}else{var Ie=d(me),Le=Ie==N||Ie==L;if(b(me))return o(me,Ce);if(Ie==V||Ie==O||Le&&!ie){if(Ae=Ee||Le?{}:g(me),!Ce)return Ee?l(me,i(Ae,me)):s(me,r(Ae,me))}else{if(!he[Ie])return ie?me:{};Ae=h(me,Ie,Ce)}}ue||(ue=new e);var we=ue.get(me);if(we)return we;ue.set(me,Ae),C(me)?me.forEach(function(ze){Ae.add(be(ze,Me,Oe,ze,me,ue))}):y(me)&&me.forEach(function(ze,Ve){Ae.set(Ve,be(ze,Me,Oe,Ve,me,ue))});var ve=Ge?Ee?u:c:Ee?w:x,De=_e?void 0:ve(me);return t(De||me,function(ze,Ve){De&&(Ve=ze,ze=me[Ve]),n(Ae,Ve,be(ze,Me,Oe,Ve,me,ue))}),Ae}return X1e=be,X1e}var Y1e,hYe;function Ffi(){if(hYe)return Y1e;hYe=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i<o;)a[i]=t[i+n];return a}return Y1e=e,Y1e}var K1e,fYe;function Wfi(){if(fYe)return K1e;fYe=1;var e=pj(),t=Ffi();function n(r,i){return i.length<2?r:e(r,t(i,0,-1))}return K1e=n,K1e}var Q1e,gYe;function qfi(){if(gYe)return Q1e;gYe=1;var e=zk(),t=rSt(),n=Wfi(),r=Tk();function i(o,a){return a=e(a,o),o=n(o,a),o==null||delete o[r(t(a))]}return Q1e=i,Q1e}var Z1e,mYe;function Bfi(){if(mYe)return Z1e;mYe=1;var e=bze();function t(n){return e(n)?void 0:n}return Z1e=t,Z1e}var J1e,vYe;function jfi(){if(vYe)return J1e;vYe=1;var e=mee(),t=Nfi(),n=qfi(),r=zk(),i=Ok(),o=Bfi(),a=pAt(),s=WAt(),l=1,c=2,u=4,d=a(function(p,h){var g={};if(p==null)return g;var m=!1;h=e(h,function(y){return y=r(y,p),m||(m=y.length>1),y}),i(p,s(p),g),m&&(g=t(g,l|c|u,o));for(var b=h.length;b--;)n(g,h[b]);return g});return J1e=d,J1e}var Hfi=jfi();const Vfi=qn(Hfi);var epe,bYe;function Gfi(){if(bYe)return epe;bYe=1;var e=OM(),t=rg(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return epe=r,epe}var $fi=Gfi();const yYe=qn($fi);var tpe,MYe;function Ufi(){if(MYe)return tpe;MYe=1;var e=IAt();function t(n,r){var i=[];return e(n,function(o,a,s){r(o,a,s)&&i.push(o)}),i}return tpe=t,tpe}var npe,CYe;function Xfi(){if(CYe)return npe;CYe=1;var e=oAt(),t=Ufi(),n=r3e(),r=y1();function i(o,a){var s=r(o)?e:t;return s(o,n(a,3))}return npe=i,npe}var Yfi=Xfi();const Kfi=qn(Yfi);function o6(){return o6=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o6.apply(this,arguments)}var xYe={noteWidth:120,noteTextOffset:8},Qfi=function(e){var t=typeof e;return t==="string"||t==="function"},IX=function(e){return e.type==="circle"},wYe=function(e){return e.type==="dot"},PX=function(e){return e.type==="rect"},Zfi=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(o,a){var s=a.offset||0;return[].concat(o,Kfi(t,a.match).map((function(l){var c=r(l),u=i(l);return(IX(a)||PX(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),o6({},Vfi(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})})))}),[])},Jfi=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return Ehi(zhi(i))},egi=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?xYe.noteWidth:s,c=e.noteTextOffset,u=c===void 0?xYe.noteTextOffset:c;if(yYe(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(yYe(a))n=i+a;else{if(a.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,p=i,h=Jfi(r,i,t,n);if(IX(e)){var g=Thi(i6(h),e.size/2);d+=g.x,p+=g.y}if(PX(e)){var m=Math.round((h+90)/45)%8;m===0&&(p-=e.height/2),m===1&&(d+=e.width/2,p-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,p+=e.height/2),m===4&&(p+=e.height/2),m===5&&(d-=e.width/2,p+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,p-=e.height/2)}var b=t,y=t;return(h+90)%360>180?(b-=l,y-=l):y+=l,{points:[[d,p],[t,n],[y,n]],text:[b,n-u],angle:h+90}},tgi=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return v.useMemo((function(){return Zfi({data:t,annotations:n,getPosition:r,getDimensions:i})}),[t,n,r,i])},ngi=function(e){var t=e.annotations;return v.useMemo((function(){return t.map((function(n){return o6({},n,{computed:egi(o6({},n))})}))}),[t])},SYe=function(e,t){t.forEach((function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)}))},rgi=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach((function(i){if(!Qfi(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),SYe(e,i.computed.points),e.stroke(),e.lineCap="butt"),IX(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),wYe(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),PX(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),SYe(e,i.computed.points),e.stroke(),IX(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),wYe(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),PX(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))})),e.restore())};function DX(){return DX=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DX.apply(this,arguments)}function AYe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function igi(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=(function(i,o){if(i){if(typeof i=="string")return AYe(i,o);var a=Object.prototype.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?AYe(i,o):void 0}})(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var qAt={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:e1i,accent:t1i,dark2:n1i,paired:r1i,pastel1:i1i,pastel2:o1i,set1:a1i,set2:s1i,set3:WSt},ogi=Object.keys(qAt),BAt={brown_blueGreen:See,purpleRed_green:Aee,pink_yellowGreen:Oee,purple_orange:zee,red_blue:Tee,red_grey:Eee,red_yellow_blue:Ree,red_yellow_green:Iee,spectral:Pee},agi=Object.keys(BAt),sgi={brown_blueGreen:l1i,purpleRed_green:c1i,pink_yellowGreen:u1i,purple_orange:d1i,red_blue:p1i,red_grey:h1i,red_yellow_blue:f1i,red_yellow_green:g1i,spectral:m1i},jAt={blues:Gee,greens:$ee,greys:Uee,oranges:Kee,purples:Xee,reds:Yee,blue_green:Dee,blue_purple:kee,green_blue:Lee,orange_red:_ee,purple_blue_green:Nee,purple_blue:Fee,purple_red:Wee,red_purple:qee,yellow_green_blue:Bee,yellow_green:jee,yellow_orange_brown:Hee,yellow_orange_red:Vee},lgi=Object.keys(jAt),cgi={blues:E1i,greens:R1i,greys:I1i,oranges:k1i,purples:P1i,reds:D1i,turbo:H1i,viridis:V1i,inferno:$1i,magma:G1i,plasma:U1i,cividis:L1i,warm:N1i,cool:F1i,cubehelixDefault:_1i,blue_green:v1i,blue_purple:b1i,green_blue:y1i,orange_red:M1i,purple_blue_green:C1i,purple_blue:x1i,purple_red:w1i,red_purple:S1i,yellow_green_blue:A1i,yellow_green:O1i,yellow_orange_brown:z1i,yellow_orange_red:T1i},u$=DX({},qAt,BAt,jAt),ugi=Object.keys(u$),dgi=function(e){return ogi.includes(e)},pgi=function(e){return agi.includes(e)},hgi=function(e){return lgi.includes(e)},fgi={rainbow:W1i,sinebow:j1i};DX({},sgi,cgi,fgi);var ggi=function(e,t){if(typeof e=="function")return e;if(cAt(e)){if((function(l){return l.theme!==void 0})(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=jx(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if((function(l){return l.from!==void 0})(e)){var r=function(l){return jx(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")o.push((function(d){return d.brighter(u)}));else if(c==="darker")o.push((function(d){return d.darker(u)}));else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");o.push((function(d){return d.opacity=u,d}))}},s=igi(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(l){return o.reduce((function(c,u){return u(c)}),QP(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},OYe=function(e,t){return v.useMemo((function(){return ggi(e,t)}),[e,t])};Z.oneOfType([Z.func,Z.arrayOf(Z.string),Z.shape({scheme:Z.oneOf(ugi).isRequired,size:Z.number}),Z.shape({datum:Z.string.isRequired}),Z.string]);Z.oneOfType([Z.string,Z.func,Z.shape({theme:Z.string.isRequired}),Z.shape({from:Z.string.isRequired,modifiers:Z.arrayOf(Z.array)})]);var mgi=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return jx(d,t)};if(Array.isArray(e)){var r=zO(e),i=function(d){return r(n(d))};return i.scale=r,i}if(cAt(e)){if((function(d){return d.datum!==void 0})(e))return function(d){return jx(d,e.datum)};if((function(d){return d.scheme!==void 0})(e)){if(dgi(e.scheme)){var o=zO(u$[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(pgi(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=zO(u$[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(hgi(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=zO(u$[e.scheme][e.size||9]),u=function(d){return c(n(d))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},vgi=function(e,t){return v.useMemo((function(){return mgi(e,t)}),[e,t])};function Qbe(){return Qbe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qbe.apply(this,arguments)}var bgi={top:0,right:0,bottom:0,left:0},ygi=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Qbe({},bgi,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,p=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(p=s*o+h+u),{width:d,height:p,padding:l}},Mgi=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},Cgi=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,p=e.height;switch(s){case"left-to-right":t=0,n=(p-c)/2,i=p/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(p-c)/2,i=p/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=p,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=p-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=p-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},xgi={start:"left",middle:"center",end:"right"},wgi=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,p=d===void 0?0:d,h=t.justify,g=h!==void 0&&h,m=t.itemsSpacing,b=m===void 0?0:m,y=t.itemWidth,M=t.itemHeight,C=t.itemDirection,x=C===void 0?"left-to-right":C,w=t.itemTextColor,S=t.symbolSize,A=S===void 0?16:S,z=t.symbolSpacing,O=z===void 0?8:z,T=t.theme,R=ygi({itemCount:n.length,itemWidth:y,itemHeight:M,itemsSpacing:b,direction:u,padding:p}),P=R.width,F=R.height,N=R.padding,L=Mgi({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:P,height:F}),W=L.x,j=L.y,V=u==="row"?y+b:0,G=u==="column"?M+b:0;e.save(),e.translate(W,j),e.font=T.legends.text.fontSize+"px "+(T.legends.text.fontFamily||"sans-serif"),n.forEach((function(q,$){var U,X,Q=$*V+N.left,re=$*G+N.top,ee=Cgi({direction:x,justify:g,symbolSize:A,symbolSpacing:O,width:y,height:M}),se=ee.symbolX,pe=ee.symbolY,te=ee.labelX,ce=ee.labelY,oe=ee.labelAnchor,ae=ee.labelAlignment;e.fillStyle=(U=q.color)!=null?U:"black",e.fillRect(Q+se,re+pe,A,A),e.textAlign=xgi[oe],ae==="central"&&(e.textBaseline="middle"),e.fillStyle=(X=w??T.legends.text.fill)!=null?X:"black",e.fillText(String(q.label),Q+te,re+ce)})),e.restore()};Z.arrayOf(Z.object),Z.oneOf(["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left","center"]).isRequired,Z.number,Z.number,Z.oneOf(["row","column"]).isRequired,Z.number,Z.number.isRequired,Z.number.isRequired,Z.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]),Z.string,Z.string,Z.number,Z.oneOfType([Z.oneOf(["circle","diamond","square","triangle"]),Z.func]),Z.number,Z.number,Z.number,Z.string,Z.func,Z.func,Z.func,Z.arrayOf(Z.shape({on:Z.oneOfType([Z.oneOf(["hover"])]).isRequired,style:Z.shape({itemTextColor:Z.string,itemBackground:Z.string,itemOpacity:Z.number,symbolSize:Z.number,symbolBorderWidth:Z.number,symbolBorderColor:Z.string}).isRequired}));function tu(){return tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(this,arguments)}function mj(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var zYe,Sgi=["data"],Agi=function(e){var t,n=e.bar,r=n.data,i=mj(n,Sgi),o=e.style,a=o.borderColor,s=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,p=o.labelY,h=o.transform,g=o.width,m=e.borderRadius,b=e.borderWidth,y=e.label,M=e.shouldRenderLabel,C=e.isInteractive,x=e.onClick,w=e.onMouseEnter,S=e.onMouseLeave,A=e.tooltip,z=e.isFocusable,O=e.ariaLabel,T=e.ariaLabelledBy,R=e.ariaDescribedBy,P=ig(),F=Pwt(),N=F.showTooltipFromEvent,L=F.showTooltipAt,W=F.hideTooltip,j=v.useMemo((function(){return function(){return v.createElement(A,tu({},i,r))}}),[A,i,r]),V=v.useCallback((function(Q){x?.(tu({color:i.color},r),Q)}),[i,r,x]),G=v.useCallback((function(Q){return N(j(),Q)}),[N,j]),q=v.useCallback((function(Q){w?.(r,Q),N(j(),Q)}),[r,w,N,j]),$=v.useCallback((function(Q){S?.(r,Q),W()}),[r,W,S]),U=v.useCallback((function(){L(j(),[i.absX+i.width/2,i.absY])}),[L,j,i]),X=v.useCallback((function(){W()}),[W]);return f.jsxs(If.g,{transform:h,children:[f.jsx(If.rect,{width:N7e(g,(function(Q){return Math.max(Q,0)})),height:N7e(l,(function(Q){return Math.max(Q,0)})),rx:m,ry:m,fill:(t=r.fill)!=null?t:s,strokeWidth:b,stroke:a,focusable:z,tabIndex:z?0:void 0,"aria-label":O?O(r):void 0,"aria-labelledby":T?T(r):void 0,"aria-describedby":R?R(r):void 0,onMouseEnter:C?q:void 0,onMouseMove:C?G:void 0,onMouseLeave:C?$:void 0,onClick:C?V:void 0,onFocus:C&&z?U:void 0,onBlur:C&&z?X:void 0}),M&&f.jsx(If.text,{x:d,y:p,textAnchor:"middle",dominantBaseline:"central",fillOpacity:u,style:tu({},P.labels.text,{pointerEvents:"none",fill:c}),children:y})]})},Ogi=["color","label"],ml={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=mj(e,Ogi);return f.jsx(gci,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[]};tu({},ml,{layers:["grid","axes","bars","markers","legends","annotations"],barComponent:Agi,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1});var Dg=tu({},ml,{layers:["grid","axes","bars","legends","annotations"],pixelRatio:typeof window<"u"&&(zYe=window.devicePixelRatio)!=null?zYe:1}),HAt=function(e,t,n,r,i,o){return i3e(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},VAt=function(e,t){return e.map((function(n){return tu({},t.reduce((function(r,i){return r[i]=null,r}),{}),n)}))},nte=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},rte=function(e){return[e,Number(e)]},zgi=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],o3e=function(e,t){return e>t},GAt=function(e,t){return e<t},$At=function(e,t){return Array.from(" ".repeat(t-e),(function(n,r){return e+r}))},Tgi=function(e){return o3e(e,0)?0:e},Egi=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,l=e.getTooltipLabel,c=e.innerPadding,u=c===void 0?0:c,d=e.keys,p=e.xScale,h=e.yScale,g=e.margin,m=n?GAt:o3e,b=i.map(nte),y=[];return d.forEach((function(M,C){return $At(0,p.domain().length).forEach((function(x){var w,S,A,z=rte(i[x][M]),O=z[0],T=z[1],R=s(i[x]),P=((w=p(R))!=null?w:0)+t*C+u*C,F=m(S=T,0)?(A=h(S))!=null?A:0:r,N=(function(W,j){var V;return m(W,0)?r-j:((V=h(W))!=null?V:0)-r})(T,F),L={id:M,value:O===null?O:T,formattedValue:o(T),hidden:!1,index:x,indexValue:R,data:b[x]};y.push({key:M+"."+L.indexValue,index:y.length,data:L,x:P,y:F,absX:g.left+P,absY:g.top+F,width:t,height:N,color:a(L),label:l(L)})}))})),y},Rgi=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,l=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=u===void 0?0:u,p=e.xScale,h=e.yScale,g=e.margin,m=n?GAt:o3e,b=i.map(nte),y=[];return c.forEach((function(M,C){return $At(0,h.domain().length).forEach((function(x){var w,S,A,z=rte(i[x][M]),O=z[0],T=z[1],R=a(i[x]),P=m(S=T,0)?r:(A=p(S))!=null?A:0,F=((w=h(R))!=null?w:0)+t*C+d*C,N=(function(W,j){var V;return m(W,0)?((V=p(W))!=null?V:0)-r:r-j})(T,P),L={id:M,value:O===null?O:T,formattedValue:o(T),hidden:!1,index:x,indexValue:R,data:b[x]};y.push({key:M+"."+L.indexValue,index:y.length,data:L,x:P,y:F,absX:g.left+P,absY:g.top+F,width:N,height:t,color:s(L),label:l(L)})}))})),y},Igi=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=c===void 0?0:c,d=e.innerPadding,p=d===void 0?0:d,h=e.valueScale,g=e.indexScale,m=e.hiddenIds,b=m===void 0?[]:m,y=mj(e,zgi),M=y.keys.filter((function(q){return!b.includes(q)})),C=VAt(y.data,M),x=r==="vertical"?["y","x",s]:["x","y",l],w=x[0],S=x[1],A=x[2],z=HAt(C,y.getIndex,u,g,A,S),O=tu({max:o,min:i,reverse:a},h),T=O.min==="auto"?Tgi:function(q){return q},R=C.reduce((function(q,$){return[].concat(q,M.map((function(U){return $[U]})))}),[]).filter(Boolean),P=T(Math.min.apply(Math,R)),F=(n=Math.max.apply(Math,R),isFinite(n)?n:0),N=i3e(O,{all:R,min:P,max:F},w==="x"?s:l,w),L=r==="vertical"?[z,N]:[N,z],W=L[0],j=L[1],V=(z.bandwidth()-p*(M.length-1))/M.length,G=[tu({},y,{data:C,keys:M,innerPadding:p,xScale:W,yScale:j}),V,O.reverse,(t=N(0))!=null?t:0];return{xScale:W,yScale:j,bars:V>0?r==="vertical"?Egi.apply(void 0,G):Rgi.apply(void 0,G):[]}},Pgi=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],Dgi=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},kgi=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,p=[];return l.forEach((function(h){return c.domain().forEach((function(g,m){var b,y,M=h[m],C=(b=c(o(M.data)))!=null?b:0,x=((y=(function(T){return u(T[n?0:1])})(M))!=null?y:0)+.5*s,w=(function(T,R){var P;return((P=u(T[n?1:0]))!=null?P:0)-R})(M,x)-s,S=rte(M.data[h.key]),A=S[0],z=S[1],O={id:h.key,value:A===null?A:z,formattedValue:r(z),hidden:!1,index:m,indexValue:g,data:nte(M.data)};p.push({key:h.key+"."+g,index:p.length,data:O,x:C,y:x,absX:d.left+C,absY:d.top+x,width:t,height:w,color:i(O),label:a(O)})}))})),p},Lgi=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,p=[];return l.forEach((function(h){return u.domain().forEach((function(g,m){var b,y,M=h[m],C=(b=u(o(M.data)))!=null?b:0,x=((y=(function(T){return c(T[n?1:0])})(M))!=null?y:0)+.5*s,w=(function(T,R){var P;return((P=c(T[n?0:1]))!=null?P:0)-R})(M,x)-s,S=rte(M.data[h.key]),A=S[0],z=S[1],O={id:h.key,value:A===null?A:z,formattedValue:r(z),hidden:!1,index:m,indexValue:g,data:nte(M.data)};p.push({key:h.key+"."+g,index:p.length,data:O,x,y:C,absX:d.left+x,absY:d.top+C,width:w,height:t,color:i(O),label:a(O)})}))})),p},_gi=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=c===void 0?0:c,d=e.valueScale,p=e.indexScale,h=e.hiddenIds,g=h===void 0?[]:h,m=mj(e,Pgi),b=m.keys.filter((function(V){return!g.includes(V)})),y=Spi().keys(b).offset(eAt)(VAt(n,b)),M=r==="vertical"?["y","x",s]:["x","y",l],C=M[0],x=M[1],w=M[2],S=HAt(n,m.getIndex,u,p,w,x),A=tu({max:o,min:i,reverse:a},d),z=(t=Dgi(y),d.type==="log"?t.filter((function(V){return V!==0})):t),O=Math.min.apply(Math,z),T=Math.max.apply(Math,z),R=i3e(A,{all:z,min:O,max:T},C==="x"?s:l,C),P=r==="vertical"?[S,R]:[R,S],F=P[0],N=P[1],L=m.innerPadding>0?m.innerPadding:0,W=S.bandwidth(),j=[tu({},m,{innerPadding:L,stackedData:y,xScale:F,yScale:N}),W,A.reverse];return{xScale:F,yScale:N,bars:W>0?r==="vertical"?kgi.apply(void 0,j):Lgi.apply(void 0,j):[]}},Ngi=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,l=zAt(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?(function(c,u,d){var p=_Xe(c.map((function(h){var g,m;return{id:(g=h.data.indexValue)!=null?g:"",label:d(h.data),hidden:h.data.hidden,color:(m=h.color)!=null?m:"#000"}})),(function(h){return h.id}));return u==="horizontal"&&p.reverse(),p})(t,o,l):(function(c,u,d,p,h,g){var m=_Xe(c.map((function(b){var y;return{id:b.data.id,label:g(b.data),hidden:b.data.hidden,color:(y=b.color)!=null?y:"#000"}})),(function(b){return b.id}));return(u==="vertical"&&p==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&p==="stacked"&&h===!0)&&m.reverse(),m})(t,o,n,i,s,l)},Fgi=function(e){var t=e.indexBy,n=t===void 0?ml.indexBy:t,r=e.keys,i=r===void 0?ml.keys:r,o=e.label,a=o===void 0?ml.label:o,s=e.tooltipLabel,l=s===void 0?ml.tooltipLabel:s,c=e.valueFormat,u=e.colors,d=u===void 0?ml.colors:u,p=e.colorBy,h=p===void 0?ml.colorBy:p,g=e.borderColor,m=g===void 0?ml.borderColor:g,b=e.labelTextColor,y=b===void 0?ml.labelTextColor:b,M=e.groupMode,C=M===void 0?ml.groupMode:M,x=e.layout,w=x===void 0?ml.layout:x,S=e.reverse,A=S===void 0?ml.reverse:S,z=e.data,O=e.minValue,T=O===void 0?ml.minValue:O,R=e.maxValue,P=R===void 0?ml.maxValue:R,F=e.margin,N=e.width,L=e.height,W=e.padding,j=W===void 0?ml.padding:W,V=e.innerPadding,G=V===void 0?ml.innerPadding:V,q=e.valueScale,$=q===void 0?ml.valueScale:q,U=e.indexScale,X=U===void 0?ml.indexScale:U,Q=e.initialHiddenIds,re=Q===void 0?ml.initialHiddenIds:Q,ee=e.enableLabel,se=ee===void 0?ml.enableLabel:ee,pe=e.labelSkipWidth,te=pe===void 0?ml.labelSkipWidth:pe,ce=e.labelSkipHeight,oe=ce===void 0?ml.labelSkipHeight:ce,ae=e.legends,ne=ae===void 0?ml.legends:ae,le=e.legendLabel,he=v.useState(re??[]),be=he[0],me=he[1],Me=v.useCallback((function(Ke){me((function(et){return et.indexOf(Ke)>-1?et.filter((function(it){return it!==Ke})):[].concat(et,[Ke])}))}),[]),Oe=i1e(n),de=i1e(a),ie=i1e(l),ue=mAt(c),Ae=ig(),Ce=vgi(d,h),Ee=OYe(m,Ae),Ge=OYe(y,Ae),_e=(C==="grouped"?Igi:_gi)({layout:w,reverse:A,data:z,getIndex:Oe,keys:i,minValue:T,maxValue:P,width:N,height:L,getColor:Ce,padding:j,innerPadding:G,valueScale:$,indexScale:X,hiddenIds:be,formatValue:ue,getTooltipLabel:ie,margin:F}),Ie=_e.bars,Le=_e.xScale,we=_e.yScale,ve=v.useMemo((function(){return Ie.filter((function(Ke){return Ke.data.value!==null})).map((function(Ke,et){return tu({},Ke,{index:et})}))}),[Ie]),De=v.useCallback((function(Ke){var et=Ke.width,it=Ke.height;return!!se&&!(te>0&&et<te)&&!(oe>0&&it<oe)}),[se,te,oe]),ze=v.useMemo((function(){return i.map((function(Ke){var et=Ie.find((function(it){return it.data.id===Ke}));return tu({},et,{data:tu({id:Ke},et?.data,{hidden:be.includes(Ke)})})}))}),[be,i,Ie]),Ve=v.useMemo((function(){return ne.map((function(Ke){return[Ke,Ngi({bars:Ke.dataFrom==="keys"?ze:Ie,direction:Ke.direction,from:Ke.dataFrom,groupMode:C,layout:w,legendLabel:le,reverse:A})]}))}),[ne,ze,Ie,C,w,le,A]);return{bars:Ie,barsWithValue:ve,xScale:Le,yScale:we,getIndex:Oe,getLabel:de,getTooltipLabel:ie,formatValue:ue,getColor:Ce,getBorderColor:Ee,getLabelColor:Ge,shouldRenderBarLabel:De,hiddenIds:be,toggleSerie:Me,legendsWithData:Ve}},Wgi=["isInteractive","renderWrapper","theme"],rpe=function(e,t,n,r){return e.find((function(i){return Lhi(i.x+t.left,i.y+t.top,i.width,i.height,n,r)}))},qgi=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,l=e.layout,c=e.reverse,u=e.minValue,d=e.maxValue,p=e.valueScale,h=e.indexScale,g=e.padding,m=e.innerPadding,b=e.axisTop,y=e.axisRight,M=e.axisBottom,C=M===void 0?Dg.axisBottom:M,x=e.axisLeft,w=x===void 0?Dg.axisLeft:x,S=e.enableGridX,A=S===void 0?Dg.enableGridX:S,z=e.enableGridY,O=z===void 0?Dg.enableGridY:z,T=e.gridXValues,R=e.gridYValues,P=e.layers,F=P===void 0?Dg.layers:P,N=e.renderBar,L=N===void 0?function(Je,ft){var Tt=ft.bar,St=Tt.color,un=Tt.height,Un=Tt.width,Yr=Tt.x,yr=Tt.y,dr=ft.borderColor,si=ft.borderRadius,$o=ft.borderWidth,Uo=ft.label,Qi=ft.labelColor,di=ft.shouldRenderLabel;if(Je.fillStyle=St,$o>0&&(Je.strokeStyle=dr,Je.lineWidth=$o),Je.beginPath(),si>0){var kt=Math.min(si,un);Je.moveTo(Yr+kt,yr),Je.lineTo(Yr+Un-kt,yr),Je.quadraticCurveTo(Yr+Un,yr,Yr+Un,yr+kt),Je.lineTo(Yr+Un,yr+un-kt),Je.quadraticCurveTo(Yr+Un,yr+un,Yr+Un-kt,yr+un),Je.lineTo(Yr+kt,yr+un),Je.quadraticCurveTo(Yr,yr+un,Yr,yr+un-kt),Je.lineTo(Yr,yr+kt),Je.quadraticCurveTo(Yr,yr,Yr+kt,yr),Je.closePath()}else Je.rect(Yr,yr,Un,un);Je.fill(),$o>0&&Je.stroke(),di&&(Je.textBaseline="middle",Je.textAlign="center",Je.fillStyle=Qi,Je.fillText(Uo,Yr+Un/2,yr+un/2))}:N,W=e.enableLabel,j=e.label,V=e.labelSkipWidth,G=e.labelSkipHeight,q=e.labelTextColor,$=e.colorBy,U=e.colors,X=e.borderRadius,Q=X===void 0?Dg.borderRadius:X,re=e.borderWidth,ee=re===void 0?Dg.borderWidth:re,se=e.borderColor,pe=e.annotations,te=pe===void 0?Dg.annotations:pe,ce=e.legendLabel,oe=e.tooltipLabel,ae=e.valueFormat,ne=e.isInteractive,le=ne===void 0?Dg.isInteractive:ne,he=e.tooltip,be=he===void 0?Dg.tooltip:he,me=e.onClick,Me=e.onMouseEnter,Oe=e.onMouseLeave,de=e.legends,ie=e.pixelRatio,ue=ie===void 0?Dg.pixelRatio:ie,Ae=e.canvasRef,Ce=v.useRef(null),Ee=ig(),Ge=Mhi(o,a,i),_e=Ge.margin,Ie=Ge.innerWidth,Le=Ge.innerHeight,we=Ge.outerWidth,ve=Ge.outerHeight,De=Fgi({indexBy:n,label:j,tooltipLabel:oe,valueFormat:ae,colors:U,colorBy:$,borderColor:se,labelTextColor:q,groupMode:s,layout:l,reverse:c,data:t,keys:r,minValue:u,maxValue:d,margin:_e,width:Ie,height:Le,padding:g,innerPadding:m,valueScale:p,indexScale:h,enableLabel:W,labelSkipWidth:V,labelSkipHeight:G,legends:de,legendLabel:ce}),ze=De.bars,Ve=De.barsWithValue,Ke=De.xScale,et=De.yScale,it=De.getLabel,Ft=De.getTooltipLabel,Dt=De.getBorderColor,Qn=De.getLabelColor,ir=De.shouldRenderBarLabel,Hn=De.legendsWithData,Zn=Pwt(),Br=Zn.showTooltipFromEvent,vr=Zn.hideTooltip,Fe=ngi({annotations:tgi({data:ze,annotations:te,getPosition:function(Je){return{x:Je.x,y:Je.y}},getDimensions:function(Je){var ft=Je.width,Tt=Je.height;return{width:ft,height:Tt,size:Math.max(ft,Tt)}}})}),He=v.useMemo((function(){return{borderRadius:Q,borderWidth:ee,enableLabel:W,isInteractive:le,labelSkipWidth:V,labelSkipHeight:G,onClick:me,onMouseEnter:Me,onMouseLeave:Oe,getTooltipLabel:Ft,tooltip:be,margin:_e,innerWidth:Ie,innerHeight:Le,width:o,height:a,bars:ze,xScale:Ke,yScale:et}}),[Q,ee,W,Ft,a,Le,Ie,le,G,V,_e,me,Me,Oe,ze,Ke,et,be,o]);v.useEffect((function(){var Je,ft=(Je=Ce.current)==null?void 0:Je.getContext("2d");Ce.current&&ft&&(Ce.current.width=we*ue,Ce.current.height=ve*ue,ft.scale(ue,ue),ft.fillStyle=Ee.background,ft.fillRect(0,0,we,ve),ft.translate(_e.left,_e.top),F.forEach((function(Tt){Tt==="grid"?typeof Ee.grid.line.strokeWidth=="number"&&Ee.grid.line.strokeWidth>0&&(ft.lineWidth=Ee.grid.line.strokeWidth,ft.strokeStyle=Ee.grid.line.stroke,A&&YXe(ft,{width:o,height:a,scale:Ke,axis:"x",values:T}),O&&YXe(ft,{width:o,height:a,scale:et,axis:"y",values:R})):Tt==="axes"?xfi(ft,{xScale:Ke,yScale:et,width:Ie,height:Le,top:b,right:y,bottom:C,left:w,theme:Ee}):Tt==="bars"?Ve.forEach((function(St){L(ft,{bar:St,borderColor:Dt(St),borderRadius:Q,borderWidth:ee,label:it(St.data),labelColor:Qn(St),shouldRenderLabel:ir(St)})})):Tt==="legends"?Hn.forEach((function(St){var un=St[0],Un=St[1];wgi(ft,tu({},un,{data:Un,containerWidth:Ie,containerHeight:Le,theme:Ee}))})):Tt==="annotations"?rgi(ft,{annotations:Fe,theme:Ee}):typeof Tt=="function"&&Tt(ft,He)})),ft.save())}),[C,w,y,b,Ve,Q,ee,Fe,A,O,Dt,it,Qn,T,R,s,a,Le,Ie,He,F,l,Hn,_e.left,_e.top,ve,we,ue,L,Ke,et,c,ir,Ee,o]);var Xe=v.useCallback((function(Je){if(ze&&Ce.current){var ft=o1e(Ce.current,Je),Tt=ft[0],St=ft[1],un=rpe(ze,_e,Tt,St);un!==void 0?(Br(v.createElement(be,tu({},un.data,{color:un.color,label:un.label,value:Number(un.data.value)})),Je),Je.type==="mouseenter"&&Me?.(un.data,Je)):vr()}}),[vr,_e,Me,ze,Br,be]),ct=v.useCallback((function(Je){if(ze&&Ce.current){vr();var ft=o1e(Ce.current,Je),Tt=ft[0],St=ft[1],un=rpe(ze,_e,Tt,St);un&&Oe?.(un.data,Je)}}),[vr,_e,Oe,ze]),lt=v.useCallback((function(Je){if(ze&&Ce.current){var ft=o1e(Ce.current,Je),Tt=ft[0],St=ft[1],un=rpe(ze,_e,Tt,St);un!==void 0&&me?.(tu({},un.data,{color:un.color}),Je)}}),[_e,me,ze]);return f.jsx("canvas",{ref:function(Je){Ce.current=Je,Ae&&"current"in Ae&&(Ae.current=Je)},width:we*ue,height:ve*ue,style:{width:we,height:ve,cursor:le?"auto":"normal"},onMouseEnter:le?Xe:void 0,onMouseMove:le?Xe:void 0,onMouseLeave:le?ct:void 0,onClick:le?lt:void 0})},Bgi=v.forwardRef((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=mj(e,Wgi);return f.jsx(MAt,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:f.jsx(qgi,tu({},o,{canvasRef:t}))})}));v.forwardRef((function(e,t){return f.jsx(CAt,{children:function(n){var r=n.width,i=n.height;return f.jsx(Bgi,tu({width:r,height:i},e,{ref:t}))}})}));var Z_={},TYe;function jgi(){if(TYe)return Z_;TYe=1;var e=ri(),t=ii();Object.defineProperty(Z_,"__esModule",{value:!0}),Z_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");return Z_.default=i,Z_}var Hgi=jgi();const ite=qn(Hgi);var J_={},EYe;function Vgi(){if(EYe)return J_;EYe=1;var e=ri(),t=ii();Object.defineProperty(J_,"__esModule",{value:!0}),J_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");return J_.default=i,J_}var Ggi=Vgi();const $gi=qn(Ggi);var e5={},RYe;function Ugi(){if(RYe)return e5;RYe=1;var e=ri(),t=ii();Object.defineProperty(e5,"__esModule",{value:!0}),e5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");return e5.default=i,e5}var Xgi=Ugi();const ote=qn(Xgi),Ygi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Kgi=(e,t,n)=>{let r;const i=Ygi[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ipe(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Qgi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zgi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jgi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},emi={date:ipe({formats:Qgi,defaultWidth:"full"}),time:ipe({formats:Zgi,defaultWidth:"full"}),dateTime:ipe({formats:Jgi,defaultWidth:"full"})},tmi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nmi=(e,t,n,r)=>tmi[e];function t5(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n?.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n?.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const rmi={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},imi={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},omi={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ami={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},smi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lmi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cmi=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},umi={ordinalNumber:cmi,era:t5({values:rmi,defaultWidth:"wide"}),quarter:t5({values:imi,defaultWidth:"wide",argumentCallback:e=>e-1}),month:t5({values:omi,defaultWidth:"wide"}),day:t5({values:ami,defaultWidth:"wide"}),dayPeriod:t5({values:smi,defaultWidth:"wide",formattingValues:lmi,defaultFormattingWidth:"wide"})};function n5(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?pmi(s,d=>d.test(a)):dmi(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function dmi(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function pmi(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hmi(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const fmi=/^(\d+)(th|st|nd|rd)?/i,gmi=/\d+/i,mmi={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},vmi={any:[/^b/i,/^(a|c)/i]},bmi={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ymi={any:[/1/i,/2/i,/3/i,/4/i]},Mmi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Cmi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},xmi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wmi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Smi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ami={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Omi={ordinalNumber:hmi({matchPattern:fmi,parsePattern:gmi,valueCallback:e=>parseInt(e,10)}),era:n5({matchPatterns:mmi,defaultMatchWidth:"wide",parsePatterns:vmi,defaultParseWidth:"any"}),quarter:n5({matchPatterns:bmi,defaultMatchWidth:"wide",parsePatterns:ymi,defaultParseWidth:"any",valueCallback:e=>e+1}),month:n5({matchPatterns:Mmi,defaultMatchWidth:"wide",parsePatterns:Cmi,defaultParseWidth:"any"}),day:n5({matchPatterns:xmi,defaultMatchWidth:"wide",parsePatterns:wmi,defaultParseWidth:"any"}),dayPeriod:n5({matchPatterns:Smi,defaultMatchWidth:"any",parsePatterns:Ami,defaultParseWidth:"any"})},zmi={code:"en-US",formatDistance:Kgi,formatLong:emi,formatRelative:nmi,localize:umi,match:Omi,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Tmi={};function vj(){return Tmi}const UAt=6048e5,Emi=864e5,IYe=Symbol.for("constructDateFrom");function vw(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&IYe in e?e[IYe](t):e instanceof Date?new e.constructor(t):new Date(t)}function Fm(e,t){return vw(t||e,e)}function PYe(e){const t=Fm(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Rmi(e,...t){const n=vw.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function DYe(e,t){const n=Fm(e,t?.in);return n.setHours(0,0,0,0),n}function Imi(e,t,n){const[r,i]=Rmi(n?.in,e,t),o=DYe(r),a=DYe(i),s=+o-PYe(o),l=+a-PYe(a);return Math.round((s-l)/Emi)}function Pmi(e,t){const n=Fm(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Dmi(e,t){const n=Fm(e,t?.in);return Imi(n,Pmi(n))+1}function a6(e,t){const n=vj(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Fm(e,t?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function kX(e,t){return a6(e,{...t,weekStartsOn:1})}function XAt(e,t){const n=Fm(e,t?.in),r=n.getFullYear(),i=vw(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=kX(i),a=vw(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=kX(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function kmi(e,t){const n=XAt(e,t),r=vw(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),kX(r)}function Lmi(e,t){const n=Fm(e,t?.in),r=+kX(n)-+kmi(n);return Math.round(r/UAt)+1}function YAt(e,t){const n=Fm(e,t?.in),r=n.getFullYear(),i=vj(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=vw(t?.in||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=a6(a,t),l=vw(t?.in||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=a6(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function _mi(e,t){const n=vj(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=YAt(e,t),o=vw(t?.in||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),a6(o,t)}function Nmi(e,t){const n=Fm(e,t?.in),r=+a6(n,t)-+_mi(n,t);return Math.round(r/UAt)+1}function os(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const vC={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return os(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):os(n+1,2)},d(e,t){return os(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return os(e.getHours()%12||12,t.length)},H(e,t){return os(e.getHours(),t.length)},m(e,t){return os(e.getMinutes(),t.length)},s(e,t){return os(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return os(i,t.length)}},uR={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kYe={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return vC.y(e,t)},Y:function(e,t,n,r){const i=YAt(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return os(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):os(o,t.length)},R:function(e,t){const n=XAt(e);return os(n,t.length)},u:function(e,t){const n=e.getFullYear();return os(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return os(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return os(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return vC.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return os(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Nmi(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):os(i,t.length)},I:function(e,t,n){const r=Lmi(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):os(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):vC.d(e,t)},D:function(e,t,n){const r=Dmi(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):os(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return os(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return os(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return os(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=uR.noon:r===0?i=uR.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=uR.evening:r>=12?i=uR.afternoon:r>=4?i=uR.morning:i=uR.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vC.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):vC.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):os(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):os(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):vC.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):vC.s(e,t)},S:function(e,t){return vC.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return _Ye(r);case"XXXX":case"XX":return jA(r);case"XXXXX":case"XXX":default:return jA(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return _Ye(r);case"xxxx":case"xx":return jA(r);case"xxxxx":case"xxx":default:return jA(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+LYe(r,":");case"OOOO":default:return"GMT"+jA(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+LYe(r,":");case"zzzz":default:return"GMT"+jA(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return os(r,t.length)},T:function(e,t,n){return os(+e,t.length)}};function LYe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+os(o,2)}function _Ye(e,t){return e%60===0?(e>0?"-":"+")+os(Math.abs(e)/60,2):jA(e,t)}function jA(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=os(Math.trunc(r/60),2),o=os(r%60,2);return n+i+t+o}const NYe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},KAt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Fmi=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return NYe(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",NYe(r,t)).replace("{{time}}",KAt(i,t))},Wmi={p:KAt,P:Fmi},qmi=/^D+$/,Bmi=/^Y+$/,jmi=["D","DD","YY","YYYY"];function Hmi(e){return qmi.test(e)}function Vmi(e){return Bmi.test(e)}function Gmi(e,t,n){const r=$mi(e,t,n);if(console.warn(r),jmi.includes(e))throw new RangeError(r)}function $mi(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Umi(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Xmi(e){return!(!Umi(e)&&typeof e!="number"||isNaN(+Fm(e)))}const Ymi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kmi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qmi=/^'([^]*?)'?$/,Zmi=/''/g,Jmi=/[a-zA-Z]/;function QAt(e,t,n){const r=vj(),i=n?.locale??r.locale??zmi,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Fm(e,n?.in);if(!Xmi(s))throw new RangeError("Invalid time value");let l=t.match(Kmi).map(u=>{const d=u[0];if(d==="p"||d==="P"){const p=Wmi[d];return p(u,i.formatLong)}return u}).join("").match(Ymi).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:evi(u)};if(kYe[d])return{isToken:!0,value:u};if(d.match(Jmi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&Vmi(d)||!n?.useAdditionalDayOfYearTokens&&Hmi(d))&&Gmi(d,t,String(e));const p=kYe[d[0]];return p(s,d,i.localize,c)}).join("")}function evi(e){const t=e.match(Qmi);return t?t[1].replace(Zmi,"'"):e}function tvi(){return Object.assign({},vj())}function FYe(e,t,n){const r=tvi(),i=ivi(e,n.timeZone,n.locale??r.locale);return"formatToParts"in i?nvi(i,t):rvi(i,t)}function nvi(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function rvi(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function ivi(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function ovi(e,t){const n=uvi(t);return"formatToParts"in n?svi(n,e):lvi(n,e)}const avi={year:0,month:1,day:2,hour:3,minute:4,second:5};function svi(e,t){try{const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const o=avi[n[i].type];o!==void 0&&(r[o]=parseInt(n[i].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function lvi(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const ope={},WYe=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),cvi=WYe==="06/25/2014, 00:00:00"||WYe==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function uvi(e){return ope[e]||(ope[e]=cvi?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),ope[e]}function a3e(e,t,n,r,i,o,a){const s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,o,a),s}const qYe=36e5,dvi=6e4,ape={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ate(e,t,n){if(!e)return 0;let r=ape.timezoneZ.exec(e);if(r)return 0;let i,o;if(r=ape.timezoneHH.exec(e),r)return i=parseInt(r[1],10),BYe(i)?-(i*qYe):NaN;if(r=ape.timezoneHHMM.exec(e),r){i=parseInt(r[2],10);const a=parseInt(r[3],10);return BYe(i,a)?(o=Math.abs(i)*qYe+a*dvi,r[1]==="+"?-o:o):NaN}if(fvi(e)){t=new Date(t||Date.now());const a=n?t:pvi(t),s=Zbe(a,e);return-(n?s:hvi(t,s,e))}return NaN}function pvi(e){return a3e(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Zbe(e,t){const n=ovi(e,t),r=a3e(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let i=e.getTime();const o=i%1e3;return i-=o>=0?o:1e3+o,r-i}function hvi(e,t,n){let i=e.getTime()-t;const o=Zbe(new Date(i),n);if(t===o)return t;i-=o-t;const a=Zbe(new Date(i),n);return o===a?o:Math.max(o,a)}function BYe(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const jYe={};function fvi(e){if(jYe[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),jYe[e]=!0,!0}catch{return!1}}const gvi=60*1e3,mvi={X:function(e,t,n){const r=spe(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return HYe(r);case"XXXX":case"XX":return ER(r);case"XXXXX":case"XXX":default:return ER(r,":")}},x:function(e,t,n){const r=spe(n.timeZone,e);switch(t){case"x":return HYe(r);case"xxxx":case"xx":return ER(r);case"xxxxx":case"xxx":default:return ER(r,":")}},O:function(e,t,n){const r=spe(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+vvi(r,":");case"OOOO":default:return"GMT"+ER(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return FYe("short",e,n);case"zzzz":default:return FYe("long",e,n)}}};function spe(e,t){const n=e?ate(e,t,!0)/gvi:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function LX(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function ER(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=LX(Math.floor(r/60),2),o=LX(Math.floor(r%60),2);return n+i+t+o}function HYe(e,t){return e%60===0?(e>0?"-":"+")+LX(Math.abs(e)/60,2):ER(e,t)}function vvi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+LX(o,2)}function VYe(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const ZAt=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,lpe=36e5,GYe=6e4,bvi=2,n1={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:ZAt};function _X(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?bvi:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=yvi(e),{year:i,restDateString:o}=Mvi(r.date,n),a=Cvi(o,i);if(a===null||isNaN(a.getTime()))return new Date(NaN);if(a){const s=a.getTime();let l=0,c;if(r.time&&(l=xvi(r.time),l===null||isNaN(l)))return new Date(NaN);if(r.timeZone||t.timeZone){if(c=ate(r.timeZone||t.timeZone,new Date(s+l)),isNaN(c))return new Date(NaN)}else c=VYe(new Date(s+l)),c=VYe(new Date(s+l+c));return new Date(s+l+c)}else return new Date(NaN)}function yvi(e){const t={};let n=n1.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=n1.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const i=n1.timeZone.exec(r);i?(t.time=r.replace(i[1],""),t.timeZone=i[1].trim()):t.time=r}return t}function Mvi(e,t){if(e){const n=n1.YYY[t],r=n1.YYYYY[t];let i=n1.YYYY.exec(e)||r.exec(e);if(i){const o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=n1.YY.exec(e)||n.exec(e),i){const o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}}return{year:null}}function Cvi(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let o=n1.MM.exec(e);if(o)return n=new Date(0),r=parseInt(o[1],10)-1,UYe(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(o=n1.DDD.exec(e),o){n=new Date(0);const a=parseInt(o[1],10);return Avi(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(o=n1.MMDD.exec(e),o){n=new Date(0),r=parseInt(o[1],10)-1;const a=parseInt(o[2],10);return UYe(t,r,a)?(n.setUTCFullYear(t,r,a),n):new Date(NaN)}if(o=n1.Www.exec(e),o)return i=parseInt(o[1],10)-1,XYe(i)?$Ye(t,i):new Date(NaN);if(o=n1.WwwD.exec(e),o){i=parseInt(o[1],10)-1;const a=parseInt(o[2],10)-1;return XYe(i,a)?$Ye(t,i,a):new Date(NaN)}return null}function xvi(e){let t,n,r=n1.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),cpe(t)?t%24*lpe:NaN;if(r=n1.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),cpe(t,n)?t%24*lpe+n*GYe:NaN;if(r=n1.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const i=parseFloat(r[3].replace(",","."));return cpe(t,n,i)?t%24*lpe+n*GYe+i*1e3:NaN}return null}function $Ye(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const wvi=[31,28,31,30,31,30,31,31,30,31,30,31],Svi=[31,29,31,30,31,30,31,31,30,31,30,31];function JAt(e){return e%400===0||e%4===0&&e%100!==0}function UYe(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=JAt(e);if(r&&n>Svi[t]||!r&&n>wvi[t])return!1}return!0}function Avi(e,t){if(t<1)return!1;const n=JAt(e);return!(n&&t>366||!n&&t>365)}function XYe(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function cpe(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Ovi=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Jbe(e,t,n={}){t=String(t);const r=t.match(Ovi);if(r){const i=_X(n.originalDate||e,n);t=r.reduce(function(o,a){if(a[0]==="'")return o;const s=o.indexOf(a),l=o[s-1]==="'",c=o.replace(a,"'"+mvi[a[0]](i,a,n)+"'");return l?c.substring(0,s-1)+c.substring(s+1):c},t)}return QAt(e,t,n)}function zvi(e,t,n){e=_X(e,n);const r=ate(t,e,!0),i=new Date(e.getTime()-r),o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}function Tvi(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Jbe(zvi(e,t,{timeZone:r.timeZone}),n,r)}function Evi(e,t,n){if(typeof e=="string"&&!e.match(ZAt))return _X(e,{...n,timeZone:t});e=_X(e,n);const r=a3e(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=ate(t,new Date(r));return new Date(r+i)}var Rvi=[{name:"adalv",description:"Andorra",alias:["Europe/Andorra"]},{name:"aedxb",description:"Dubai, United Arab Emirates",alias:["Asia/Dubai"]},{name:"afkbl",description:"Kabul, Afghanistan",alias:["Asia/Kabul"]},{name:"aganu",description:"Antigua",alias:["America/Antigua"]},{name:"aiaxa",description:"Anguilla",alias:["America/Anguilla"]},{name:"altia",description:"Tirane, Albania",alias:["Europe/Tirane"]},{name:"amevn",description:"Yerevan, Armenia",alias:["Asia/Yerevan"]},{name:"ancur",description:"Curaçao",alias:["America/Curacao"]},{name:"aolad",description:"Luanda, Angola",alias:["Africa/Luanda"]},{name:"aqcas",description:"Casey Station, Bailey Peninsula",alias:["Antarctica/Casey"]},{name:"aqdav",description:"Davis Station, Vestfold Hills",alias:["Antarctica/Davis"]},{name:"aqddu",description:"Dumont d'Urville Station, Terre Adélie",alias:["Antarctica/DumontDUrville"]},{name:"aqmaw",description:"Mawson Station, Holme Bay",alias:["Antarctica/Mawson"]},{name:"aqmcm",description:"McMurdo Station, Ross Island",alias:["Antarctica/McMurdo"]},{name:"aqplm",description:"Palmer Station, Anvers Island",alias:["Antarctica/Palmer"]},{name:"aqrot",description:"Rothera Station, Adelaide Island",alias:["Antarctica/Rothera"]},{name:"aqsyw",description:"Syowa Station, East Ongul Island",alias:["Antarctica/Syowa"]},{name:"aqtrl",description:"Troll Station, Queen Maud Land",alias:["Antarctica/Troll"]},{name:"aqvos",description:"Vostok Station, Lake Vostok",alias:["Antarctica/Vostok"]},{name:"arbue",description:"Buenos Aires, Argentina",alias:["America/Buenos_Aires","America/Argentina/Buenos_Aires"]},{name:"arcor",description:"Córdoba, Argentina",alias:["America/Cordoba","America/Argentina/Cordoba","America/Rosario"]},{name:"arctc",description:"Catamarca, Argentina",alias:["America/Catamarca","America/Argentina/Catamarca","America/Argentina/ComodRivadavia"]},{name:"arirj",description:"La Rioja, Argentina",alias:["America/Argentina/La_Rioja"]},{name:"arjuj",description:"Jujuy, Argentina",alias:["America/Jujuy","America/Argentina/Jujuy"]},{name:"arluq",description:"San Luis, Argentina",alias:["America/Argentina/San_Luis"]},{name:"armdz",description:"Mendoza, Argentina",alias:["America/Mendoza","America/Argentina/Mendoza"]},{name:"arrgl",description:"Río Gallegos, Argentina",alias:["America/Argentina/Rio_Gallegos"]},{name:"arsla",description:"Salta, Argentina",alias:["America/Argentina/Salta"]},{name:"artuc",description:"Tucumán, Argentina",alias:["America/Argentina/Tucuman"]},{name:"aruaq",description:"San Juan, Argentina",alias:["America/Argentina/San_Juan"]},{name:"arush",description:"Ushuaia, Argentina",alias:["America/Argentina/Ushuaia"]},{name:"asppg",description:"Pago Pago, American Samoa",alias:["Pacific/Pago_Pago","Pacific/Samoa","US/Samoa"]},{name:"atvie",description:"Vienna, Austria",alias:["Europe/Vienna"]},{name:"auadl",description:"Adelaide, Australia",alias:["Australia/Adelaide","Australia/South"]},{name:"aubhq",description:"Broken Hill, Australia",alias:["Australia/Broken_Hill","Australia/Yancowinna"]},{name:"aubne",description:"Brisbane, Australia",alias:["Australia/Brisbane","Australia/Queensland"]},{name:"audrw",description:"Darwin, Australia",alias:["Australia/Darwin","Australia/North"]},{name:"aueuc",description:"Eucla, Australia",alias:["Australia/Eucla"]},{name:"auhba",description:"Hobart, Australia",alias:["Australia/Hobart","Australia/Tasmania"]},{name:"aukns",description:"Currie, Australia",alias:["Australia/Currie"]},{name:"auldc",description:"Lindeman Island, Australia",alias:["Australia/Lindeman"]},{name:"auldh",description:"Lord Howe Island, Australia",alias:["Australia/Lord_Howe","Australia/LHI"]},{name:"aumel",description:"Melbourne, Australia",alias:["Australia/Melbourne","Australia/Victoria"]},{name:"aumqi",description:"Macquarie Island Station, Macquarie Island",alias:["Antarctica/Macquarie"]},{name:"auper",description:"Perth, Australia",alias:["Australia/Perth","Australia/West"]},{name:"ausyd",description:"Sydney, Australia",alias:["Australia/Sydney","Australia/ACT","Australia/Canberra","Australia/NSW"]},{name:"awaua",description:"Aruba",alias:["America/Aruba"]},{name:"azbak",description:"Baku, Azerbaijan",alias:["Asia/Baku"]},{name:"basjj",description:"Sarajevo, Bosnia and Herzegovina",alias:["Europe/Sarajevo"]},{name:"bbbgi",description:"Barbados",alias:["America/Barbados"]},{name:"bddac",description:"Dhaka, Bangladesh",alias:["Asia/Dhaka","Asia/Dacca"]},{name:"bebru",description:"Brussels, Belgium",alias:["Europe/Brussels"]},{name:"bfoua",description:"Ouagadougou, Burkina Faso",alias:["Africa/Ouagadougou"]},{name:"bgsof",description:"Sofia, Bulgaria",alias:["Europe/Sofia"]},{name:"bhbah",description:"Bahrain",alias:["Asia/Bahrain"]},{name:"bibjm",description:"Bujumbura, Burundi",alias:["Africa/Bujumbura"]},{name:"bjptn",description:"Porto-Novo, Benin",alias:["Africa/Porto-Novo"]},{name:"bmbda",description:"Bermuda",alias:["Atlantic/Bermuda"]},{name:"bnbwn",description:"Brunei",alias:["Asia/Brunei"]},{name:"bolpb",description:"La Paz, Bolivia",alias:["America/La_Paz"]},{name:"bqkra",description:"Bonaire, Sint Estatius and Saba",alias:["America/Kralendijk"]},{name:"braux",description:"Araguaína, Brazil",alias:["America/Araguaina"]},{name:"brbel",description:"Belém, Brazil",alias:["America/Belem"]},{name:"brbvb",description:"Boa Vista, Brazil",alias:["America/Boa_Vista"]},{name:"brcgb",description:"Cuiabá, Brazil",alias:["America/Cuiaba"]},{name:"brcgr",description:"Campo Grande, Brazil",alias:["America/Campo_Grande"]},{name:"brern",description:"Eirunepé, Brazil",alias:["America/Eirunepe"]},{name:"brfen",description:"Fernando de Noronha, Brazil",alias:["America/Noronha","Brazil/DeNoronha"]},{name:"brfor",description:"Fortaleza, Brazil",alias:["America/Fortaleza"]},{name:"brmao",description:"Manaus, Brazil",alias:["America/Manaus","Brazil/West"]},{name:"brmcz",description:"Maceió, Brazil",alias:["America/Maceio"]},{name:"brpvh",description:"Porto Velho, Brazil",alias:["America/Porto_Velho"]},{name:"brrbr",description:"Rio Branco, Brazil",alias:["America/Rio_Branco","America/Porto_Acre","Brazil/Acre"]},{name:"brrec",description:"Recife, Brazil",alias:["America/Recife"]},{name:"brsao",description:"São Paulo, Brazil",alias:["America/Sao_Paulo","Brazil/East"]},{name:"brssa",description:"Bahia, Brazil",alias:["America/Bahia"]},{name:"brstm",description:"Santarém, Brazil",alias:["America/Santarem"]},{name:"bsnas",description:"Nassau, Bahamas",alias:["America/Nassau"]},{name:"btthi",description:"Thimphu, Bhutan",alias:["Asia/Thimphu","Asia/Thimbu"]},{name:"bwgbe",description:"Gaborone, Botswana",alias:["Africa/Gaborone"]},{name:"bymsq",description:"Minsk, Belarus",alias:["Europe/Minsk"]},{name:"bzbze",description:"Belize",alias:["America/Belize"]},{name:"cacfq",description:"Creston, Canada",alias:["America/Creston"]},{name:"caedm",description:"Edmonton, Canada",alias:["America/Edmonton","Canada/Mountain"]},{name:"caffs",description:"Rainy River, Canada",alias:["America/Rainy_River"]},{name:"cafne",description:"Fort Nelson, Canada",alias:["America/Fort_Nelson"]},{name:"caglb",description:"Glace Bay, Canada",alias:["America/Glace_Bay"]},{name:"cagoo",description:"Goose Bay, Canada",alias:["America/Goose_Bay"]},{name:"cahal",description:"Halifax, Canada",alias:["America/Halifax","Canada/Atlantic"]},{name:"caiql",description:"Iqaluit, Canada",alias:["America/Iqaluit"]},{name:"camon",description:"Moncton, Canada",alias:["America/Moncton"]},{name:"capnt",description:"Pangnirtung, Canada",alias:["America/Pangnirtung"]},{name:"careb",description:"Resolute, Canada",alias:["America/Resolute"]},{name:"careg",description:"Regina, Canada",alias:["America/Regina","Canada/East-Saskatchewan","Canada/Saskatchewan"]},{name:"casjf",description:"St. John's, Canada",alias:["America/St_Johns","Canada/Newfoundland"]},{name:"canpg",description:"Nipigon, Canada",alias:["America/Nipigon"]},{name:"cathu",description:"Thunder Bay, Canada",alias:["America/Thunder_Bay"]},{name:"cator",description:"Toronto, Canada",alias:["America/Toronto","Canada/Eastern"]},{name:"cavan",description:"Vancouver, Canada",alias:["America/Vancouver","Canada/Pacific"]},{name:"cawnp",description:"Winnipeg, Canada",alias:["America/Winnipeg","Canada/Central"]},{name:"caybx",description:"Blanc-Sablon, Canada",alias:["America/Blanc-Sablon"]},{name:"caycb",description:"Cambridge Bay, Canada",alias:["America/Cambridge_Bay"]},{name:"cayda",description:"Dawson, Canada",alias:["America/Dawson"]},{name:"caydq",description:"Dawson Creek, Canada",alias:["America/Dawson_Creek"]},{name:"cayek",description:"Rankin Inlet, Canada",alias:["America/Rankin_Inlet"]},{name:"cayev",description:"Inuvik, Canada",alias:["America/Inuvik"]},{name:"cayxy",description:"Whitehorse, Canada",alias:["America/Whitehorse","Canada/Yukon"]},{name:"cayyn",description:"Swift Current, Canada",alias:["America/Swift_Current"]},{name:"cayzf",description:"Yellowknife, Canada",alias:["America/Yellowknife"]},{name:"cayzs",description:"Atikokan, Canada",alias:["America/Coral_Harbour","America/Atikokan"]},{name:"cccck",description:"Cocos (Keeling) Islands",alias:["Indian/Cocos"]},{name:"cdfbm",description:"Lubumbashi, Democratic Republic of the Congo",alias:["Africa/Lubumbashi"]},{name:"cdfih",description:"Kinshasa, Democratic Republic of the Congo",alias:["Africa/Kinshasa"]},{name:"cfbgf",description:"Bangui, Central African Republic",alias:["Africa/Bangui"]},{name:"cgbzv",description:"Brazzaville, Republic of the Congo",alias:["Africa/Brazzaville"]},{name:"chzrh",description:"Zurich, Switzerland",alias:["Europe/Zurich"]},{name:"ciabj",description:"Abidjan, Côte d'Ivoire",alias:["Africa/Abidjan"]},{name:"ckrar",description:"Rarotonga, Cook Islands",alias:["Pacific/Rarotonga"]},{name:"clipc",description:"Easter Island, Chile",alias:["Pacific/Easter","Chile/EasterIsland"]},{name:"clpuq",description:"Punta Arenas, Chile",alias:["America/Punta_Arenas"]},{name:"clscl",description:"Santiago, Chile",alias:["America/Santiago","Chile/Continental"]},{name:"cmdla",description:"Douala, Cameroon",alias:["Africa/Douala"]},{name:"cnsha",description:"Shanghai, China",alias:["Asia/Shanghai","Asia/Chongqing","Asia/Chungking","Asia/Harbin","PRC"]},{name:"cnurc",description:"Ürümqi, China",alias:["Asia/Urumqi","Asia/Kashgar"]},{name:"cobog",description:"Bogotá, Colombia",alias:["America/Bogota"]},{name:"crsjo",description:"Costa Rica",alias:["America/Costa_Rica"]},{name:"cst6cdt",description:"POSIX style time zone for US Central Time",alias:["CST6CDT"]},{name:"cuhav",description:"Havana, Cuba",alias:["America/Havana","Cuba"]},{name:"cvrai",description:"Cape Verde",alias:["Atlantic/Cape_Verde"]},{name:"cxxch",description:"Christmas Island",alias:["Indian/Christmas"]},{name:"cyfmg",description:"Famagusta, Cyprus",alias:["Asia/Famagusta"]},{name:"cynic",description:"Nicosia, Cyprus",alias:["Asia/Nicosia","Europe/Nicosia"]},{name:"czprg",description:"Prague, Czech Republic",alias:["Europe/Prague"]},{name:"deber",description:"Berlin, Germany",alias:["Europe/Berlin"]},{name:"debsngn",description:"Busingen, Germany",alias:["Europe/Busingen"]},{name:"djjib",description:"Djibouti",alias:["Africa/Djibouti"]},{name:"dkcph",description:"Copenhagen, Denmark",alias:["Europe/Copenhagen"]},{name:"dmdom",description:"Dominica",alias:["America/Dominica"]},{name:"dosdq",description:"Santo Domingo, Dominican Republic",alias:["America/Santo_Domingo"]},{name:"dzalg",description:"Algiers, Algeria",alias:["Africa/Algiers"]},{name:"ecgps",description:"Galápagos Islands, Ecuador",alias:["Pacific/Galapagos"]},{name:"ecgye",description:"Guayaquil, Ecuador",alias:["America/Guayaquil"]},{name:"eetll",description:"Tallinn, Estonia",alias:["Europe/Tallinn"]},{name:"egcai",description:"Cairo, Egypt",alias:["Africa/Cairo","Egypt"]},{name:"eheai",description:"El Aaiún, Western Sahara",alias:["Africa/El_Aaiun"]},{name:"erasm",description:"Asmara, Eritrea",alias:["Africa/Asmera","Africa/Asmara"]},{name:"esceu",description:"Ceuta, Spain",alias:["Africa/Ceuta"]},{name:"eslpa",description:"Canary Islands, Spain",alias:["Atlantic/Canary"]},{name:"esmad",description:"Madrid, Spain",alias:["Europe/Madrid"]},{name:"est5edt",description:"POSIX style time zone for US Eastern Time",alias:["EST5EDT"]},{name:"etadd",description:"Addis Ababa, Ethiopia",alias:["Africa/Addis_Ababa"]},{name:"fihel",description:"Helsinki, Finland",alias:["Europe/Helsinki"]},{name:"fimhq",description:"Mariehamn, Åland, Finland",alias:["Europe/Mariehamn"]},{name:"fjsuv",description:"Fiji",alias:["Pacific/Fiji"]},{name:"fkpsy",description:"Stanley, Falkland Islands",alias:["Atlantic/Stanley"]},{name:"fmksa",description:"Kosrae, Micronesia",alias:["Pacific/Kosrae"]},{name:"fmpni",description:"Pohnpei, Micronesia",alias:["Pacific/Ponape","Pacific/Pohnpei"]},{name:"fmtkk",description:"Chuuk, Micronesia",alias:["Pacific/Truk","Pacific/Chuuk","Pacific/Yap"]},{name:"fotho",description:"Faroe Islands",alias:["Atlantic/Faeroe","Atlantic/Faroe"]},{name:"frpar",description:"Paris, France",alias:["Europe/Paris"]},{name:"galbv",description:"Libreville, Gabon",alias:["Africa/Libreville"]},{name:"gazastrp",description:"Gaza Strip, Palestinian Territories",alias:["Asia/Gaza"]},{name:"gblon",description:"London, United Kingdom",alias:["Europe/London","Europe/Belfast","GB","GB-Eire"]},{name:"gdgnd",description:"Grenada",alias:["America/Grenada"]},{name:"getbs",description:"Tbilisi, Georgia",alias:["Asia/Tbilisi"]},{name:"gfcay",description:"Cayenne, French Guiana",alias:["America/Cayenne"]},{name:"gggci",description:"Guernsey",alias:["Europe/Guernsey"]},{name:"ghacc",description:"Accra, Ghana",alias:["Africa/Accra"]},{name:"gigib",description:"Gibraltar",alias:["Europe/Gibraltar"]},{name:"gldkshvn",description:"Danmarkshavn, Greenland",alias:["America/Danmarkshavn"]},{name:"glgoh",description:"Nuuk (Godthåb), Greenland",alias:["America/Godthab","America/Nuuk"]},{name:"globy",description:"Ittoqqortoormiit (Scoresbysund), Greenland",alias:["America/Scoresbysund"]},{name:"glthu",description:"Qaanaaq (Thule), Greenland",alias:["America/Thule"]},{name:"gmbjl",description:"Banjul, Gambia",alias:["Africa/Banjul"]},{name:"gmt",description:"Greenwich Mean Time",alias:["Etc/GMT","Etc/GMT+0","Etc/GMT-0","Etc/GMT0","Etc/Greenwich","GMT","GMT+0","GMT-0","GMT0","Greenwich"]},{name:"gncky",description:"Conakry, Guinea",alias:["Africa/Conakry"]},{name:"gpbbr",description:"Guadeloupe",alias:["America/Guadeloupe"]},{name:"gpmsb",description:"Marigot, Saint Martin",alias:["America/Marigot"]},{name:"gpsbh",description:"Saint Barthélemy",alias:["America/St_Barthelemy"]},{name:"gqssg",description:"Malabo, Equatorial Guinea",alias:["Africa/Malabo"]},{name:"grath",description:"Athens, Greece",alias:["Europe/Athens"]},{name:"gsgrv",description:"South Georgia and the South Sandwich Islands",alias:["Atlantic/South_Georgia"]},{name:"gtgua",description:"Guatemala",alias:["America/Guatemala"]},{name:"gugum",description:"Guam",alias:["Pacific/Guam"]},{name:"gwoxb",description:"Bissau, Guinea-Bissau",alias:["Africa/Bissau"]},{name:"gygeo",description:"Guyana",alias:["America/Guyana"]},{name:"hebron",description:"West Bank, Palestinian Territories",alias:["Asia/Hebron"]},{name:"hkhkg",description:"Hong Kong SAR China",alias:["Asia/Hong_Kong","Hongkong"]},{name:"hntgu",description:"Tegucigalpa, Honduras",alias:["America/Tegucigalpa"]},{name:"hrzag",description:"Zagreb, Croatia",alias:["Europe/Zagreb"]},{name:"htpap",description:"Port-au-Prince, Haiti",alias:["America/Port-au-Prince"]},{name:"hubud",description:"Budapest, Hungary",alias:["Europe/Budapest"]},{name:"iddjj",description:"Jayapura, Indonesia",alias:["Asia/Jayapura"]},{name:"idjkt",description:"Jakarta, Indonesia",alias:["Asia/Jakarta"]},{name:"idmak",description:"Makassar, Indonesia",alias:["Asia/Makassar","Asia/Ujung_Pandang"]},{name:"idpnk",description:"Pontianak, Indonesia",alias:["Asia/Pontianak"]},{name:"iedub",description:"Dublin, Ireland",alias:["Europe/Dublin","Eire"]},{name:"imdgs",description:"Isle of Man",alias:["Europe/Isle_of_Man"]},{name:"inccu",description:"Kolkata, India",alias:["Asia/Calcutta","Asia/Kolkata"]},{name:"iodga",description:"Chagos Archipelago",alias:["Indian/Chagos"]},{name:"iqbgw",description:"Baghdad, Iraq",alias:["Asia/Baghdad"]},{name:"irthr",description:"Tehran, Iran",alias:["Asia/Tehran","Iran"]},{name:"isrey",description:"Reykjavik, Iceland",alias:["Atlantic/Reykjavik","Iceland"]},{name:"itrom",description:"Rome, Italy",alias:["Europe/Rome"]},{name:"jeruslm",description:"Jerusalem",alias:["Asia/Jerusalem","Asia/Tel_Aviv","Israel"]},{name:"jesth",description:"Jersey",alias:["Europe/Jersey"]},{name:"jmkin",description:"Jamaica",alias:["America/Jamaica","Jamaica"]},{name:"joamm",description:"Amman, Jordan",alias:["Asia/Amman"]},{name:"jptyo",description:"Tokyo, Japan",alias:["Asia/Tokyo","Japan"]},{name:"kenbo",description:"Nairobi, Kenya",alias:["Africa/Nairobi"]},{name:"kgfru",description:"Bishkek, Kyrgyzstan",alias:["Asia/Bishkek"]},{name:"khpnh",description:"Phnom Penh, Cambodia",alias:["Asia/Phnom_Penh"]},{name:"kicxi",description:"Kiritimati, Kiribati",alias:["Pacific/Kiritimati"]},{name:"kipho",description:"Enderbury Island, Kiribati",alias:["Pacific/Enderbury"]},{name:"kitrw",description:"Tarawa, Kiribati",alias:["Pacific/Tarawa"]},{name:"kmyva",description:"Comoros",alias:["Indian/Comoro"]},{name:"knbas",description:"Saint Kitts",alias:["America/St_Kitts"]},{name:"kpfnj",description:"Pyongyang, North Korea",alias:["Asia/Pyongyang"]},{name:"krsel",description:"Seoul, South Korea",alias:["Asia/Seoul","ROK"]},{name:"kwkwi",description:"Kuwait",alias:["Asia/Kuwait"]},{name:"kygec",description:"Cayman Islands",alias:["America/Cayman"]},{name:"kzaau",description:"Aqtau, Kazakhstan",alias:["Asia/Aqtau"]},{name:"kzakx",description:"Aqtobe, Kazakhstan",alias:["Asia/Aqtobe"]},{name:"kzala",description:"Almaty, Kazakhstan",alias:["Asia/Almaty"]},{name:"kzguw",description:"Atyrau (Guryev), Kazakhstan",alias:["Asia/Atyrau"]},{name:"kzksn",description:"Qostanay (Kostanay), Kazakhstan",alias:["Asia/Qostanay"]},{name:"kzkzo",description:"Kyzylorda, Kazakhstan",alias:["Asia/Qyzylorda"]},{name:"kzura",description:"Oral, Kazakhstan",alias:["Asia/Oral"]},{name:"lavte",description:"Vientiane, Laos",alias:["Asia/Vientiane"]},{name:"lbbey",description:"Beirut, Lebanon",alias:["Asia/Beirut"]},{name:"lccas",description:"Saint Lucia",alias:["America/St_Lucia"]},{name:"livdz",description:"Vaduz, Liechtenstein",alias:["Europe/Vaduz"]},{name:"lkcmb",description:"Colombo, Sri Lanka",alias:["Asia/Colombo"]},{name:"lrmlw",description:"Monrovia, Liberia",alias:["Africa/Monrovia"]},{name:"lsmsu",description:"Maseru, Lesotho",alias:["Africa/Maseru"]},{name:"ltvno",description:"Vilnius, Lithuania",alias:["Europe/Vilnius"]},{name:"lulux",description:"Luxembourg",alias:["Europe/Luxembourg"]},{name:"lvrix",description:"Riga, Latvia",alias:["Europe/Riga"]},{name:"lytip",description:"Tripoli, Libya",alias:["Africa/Tripoli","Libya"]},{name:"macas",description:"Casablanca, Morocco",alias:["Africa/Casablanca"]},{name:"mcmon",description:"Monaco",alias:["Europe/Monaco"]},{name:"mdkiv",description:"Chişinău, Moldova",alias:["Europe/Chisinau","Europe/Tiraspol"]},{name:"metgd",description:"Podgorica, Montenegro",alias:["Europe/Podgorica"]},{name:"mgtnr",description:"Antananarivo, Madagascar",alias:["Indian/Antananarivo"]},{name:"mhkwa",description:"Kwajalein, Marshall Islands",alias:["Pacific/Kwajalein","Kwajalein"]},{name:"mhmaj",description:"Majuro, Marshall Islands",alias:["Pacific/Majuro"]},{name:"mkskp",description:"Skopje, Macedonia",alias:["Europe/Skopje"]},{name:"mlbko",description:"Bamako, Mali",alias:["Africa/Bamako","Africa/Timbuktu"]},{name:"mmrgn",description:"Yangon (Rangoon), Burma",alias:["Asia/Rangoon","Asia/Yangon"]},{name:"mncoq",description:"Choibalsan, Mongolia",alias:["Asia/Choibalsan"]},{name:"mnhvd",description:"Khovd (Hovd), Mongolia",alias:["Asia/Hovd"]},{name:"mnuln",description:"Ulaanbaatar (Ulan Bator), Mongolia",alias:["Asia/Ulaanbaatar","Asia/Ulan_Bator"]},{name:"momfm",description:"Macau SAR China",alias:["Asia/Macau","Asia/Macao"]},{name:"mpspn",description:"Saipan, Northern Mariana Islands",alias:["Pacific/Saipan"]},{name:"mqfdf",description:"Martinique",alias:["America/Martinique"]},{name:"mrnkc",description:"Nouakchott, Mauritania",alias:["Africa/Nouakchott"]},{name:"msmni",description:"Montserrat",alias:["America/Montserrat"]},{name:"mst7mdt",description:"POSIX style time zone for US Mountain Time",alias:["MST7MDT"]},{name:"mtmla",description:"Malta",alias:["Europe/Malta"]},{name:"muplu",description:"Mauritius",alias:["Indian/Mauritius"]},{name:"mvmle",description:"Maldives",alias:["Indian/Maldives"]},{name:"mwblz",description:"Blantyre, Malawi",alias:["Africa/Blantyre"]},{name:"mxchi",description:"Chihuahua, Mexico",alias:["America/Chihuahua"]},{name:"mxcun",description:"Cancún, Mexico",alias:["America/Cancun"]},{name:"mxhmo",description:"Hermosillo, Mexico",alias:["America/Hermosillo"]},{name:"mxmam",description:"Matamoros, Mexico",alias:["America/Matamoros"]},{name:"mxmex",description:"Mexico City, Mexico",alias:["America/Mexico_City","Mexico/General"]},{name:"mxmid",description:"Mérida, Mexico",alias:["America/Merida"]},{name:"mxmty",description:"Monterrey, Mexico",alias:["America/Monterrey"]},{name:"mxmzt",description:"Mazatlán, Mexico",alias:["America/Mazatlan","Mexico/BajaSur"]},{name:"mxoji",description:"Ojinaga, Mexico",alias:["America/Ojinaga"]},{name:"mxpvr",description:"Bahía de Banderas, Mexico",alias:["America/Bahia_Banderas"]},{name:"mxstis",description:"Santa Isabel (Baja California), Mexico",alias:["America/Santa_Isabel"]},{name:"mxtij",description:"Tijuana, Mexico",alias:["America/Tijuana","America/Ensenada","Mexico/BajaNorte"]},{name:"mykch",description:"Kuching, Malaysia",alias:["Asia/Kuching"]},{name:"mykul",description:"Kuala Lumpur, Malaysia",alias:["Asia/Kuala_Lumpur"]},{name:"mzmpm",description:"Maputo, Mozambique",alias:["Africa/Maputo"]},{name:"nawdh",description:"Windhoek, Namibia",alias:["Africa/Windhoek"]},{name:"ncnou",description:"Noumea, New Caledonia",alias:["Pacific/Noumea"]},{name:"nenim",description:"Niamey, Niger",alias:["Africa/Niamey"]},{name:"nfnlk",description:"Norfolk Island",alias:["Pacific/Norfolk"]},{name:"nglos",description:"Lagos, Nigeria",alias:["Africa/Lagos"]},{name:"nimga",description:"Managua, Nicaragua",alias:["America/Managua"]},{name:"nlams",description:"Amsterdam, Netherlands",alias:["Europe/Amsterdam"]},{name:"noosl",description:"Oslo, Norway",alias:["Europe/Oslo"]},{name:"npktm",description:"Kathmandu, Nepal",alias:["Asia/Katmandu","Asia/Kathmandu"]},{name:"nrinu",description:"Nauru",alias:["Pacific/Nauru"]},{name:"nuiue",description:"Niue",alias:["Pacific/Niue"]},{name:"nzakl",description:"Auckland, New Zealand",alias:["Pacific/Auckland","Antarctica/South_Pole","NZ"]},{name:"nzcht",description:"Chatham Islands, New Zealand",alias:["Pacific/Chatham","NZ-CHAT"]},{name:"ommct",description:"Muscat, Oman",alias:["Asia/Muscat"]},{name:"papty",description:"Panama",alias:["America/Panama"]},{name:"pelim",description:"Lima, Peru",alias:["America/Lima"]},{name:"pfgmr",description:"Gambiera Islands, French Polynesia",alias:["Pacific/Gambier"]},{name:"pfnhv",description:"Marquesas Islands, French Polynesia",alias:["Pacific/Marquesas"]},{name:"pfppt",description:"Tahiti, French Polynesia",alias:["Pacific/Tahiti"]},{name:"pgpom",description:"Port Moresby, Papua New Guinea",alias:["Pacific/Port_Moresby"]},{name:"pgraw",description:"Bougainville, Papua New Guinea",alias:["Pacific/Bougainville"]},{name:"phmnl",description:"Manila, Philippines",alias:["Asia/Manila"]},{name:"pkkhi",description:"Karachi, Pakistan",alias:["Asia/Karachi"]},{name:"plwaw",description:"Warsaw, Poland",alias:["Europe/Warsaw","Poland"]},{name:"pmmqc",description:"Saint Pierre and Miquelon",alias:["America/Miquelon"]},{name:"pnpcn",description:"Pitcairn Islands",alias:["Pacific/Pitcairn"]},{name:"prsju",description:"Puerto Rico",alias:["America/Puerto_Rico"]},{name:"pst8pdt",description:"POSIX style time zone for US Pacific Time",alias:["PST8PDT"]},{name:"ptfnc",description:"Madeira, Portugal",alias:["Atlantic/Madeira"]},{name:"ptlis",description:"Lisbon, Portugal",alias:["Europe/Lisbon","Portugal"]},{name:"ptpdl",description:"Azores, Portugal",alias:["Atlantic/Azores"]},{name:"pwror",description:"Palau",alias:["Pacific/Palau"]},{name:"pyasu",description:"Asunción, Paraguay",alias:["America/Asuncion"]},{name:"qadoh",description:"Qatar",alias:["Asia/Qatar"]},{name:"rereu",description:"Réunion",alias:["Indian/Reunion"]},{name:"robuh",description:"Bucharest, Romania",alias:["Europe/Bucharest"]},{name:"rsbeg",description:"Belgrade, Serbia",alias:["Europe/Belgrade"]},{name:"ruasf",description:"Astrakhan, Russia",alias:["Europe/Astrakhan"]},{name:"rubax",description:"Barnaul, Russia",alias:["Asia/Barnaul"]},{name:"ruchita",description:"Chita Zabaykalsky, Russia",alias:["Asia/Chita"]},{name:"rudyr",description:"Anadyr, Russia",alias:["Asia/Anadyr"]},{name:"rugdx",description:"Magadan, Russia",alias:["Asia/Magadan"]},{name:"ruikt",description:"Irkutsk, Russia",alias:["Asia/Irkutsk"]},{name:"rukgd",description:"Kaliningrad, Russia",alias:["Europe/Kaliningrad"]},{name:"rukhndg",description:"Khandyga Tomponsky, Russia",alias:["Asia/Khandyga"]},{name:"rukra",description:"Krasnoyarsk, Russia",alias:["Asia/Krasnoyarsk"]},{name:"rukuf",description:"Samara, Russia",alias:["Europe/Samara"]},{name:"rukvx",description:"Kirov, Russia",alias:["Europe/Kirov"]},{name:"rumow",description:"Moscow, Russia",alias:["Europe/Moscow","W-SU"]},{name:"runoz",description:"Novokuznetsk, Russia",alias:["Asia/Novokuznetsk"]},{name:"ruoms",description:"Omsk, Russia",alias:["Asia/Omsk"]},{name:"ruovb",description:"Novosibirsk, Russia",alias:["Asia/Novosibirsk"]},{name:"rupkc",description:"Kamchatka Peninsula, Russia",alias:["Asia/Kamchatka"]},{name:"rurtw",description:"Saratov, Russia",alias:["Europe/Saratov"]},{name:"rusred",description:"Srednekolymsk, Russia",alias:["Asia/Srednekolymsk"]},{name:"rutof",description:"Tomsk, Russia",alias:["Asia/Tomsk"]},{name:"ruuly",description:"Ulyanovsk, Russia",alias:["Europe/Ulyanovsk"]},{name:"ruunera",description:"Ust-Nera Oymyakonsky, Russia",alias:["Asia/Ust-Nera"]},{name:"ruuus",description:"Sakhalin, Russia",alias:["Asia/Sakhalin"]},{name:"ruvog",description:"Volgograd, Russia",alias:["Europe/Volgograd"]},{name:"ruvvo",description:"Vladivostok, Russia",alias:["Asia/Vladivostok"]},{name:"ruyek",description:"Yekaterinburg, Russia",alias:["Asia/Yekaterinburg"]},{name:"ruyks",description:"Yakutsk, Russia",alias:["Asia/Yakutsk"]},{name:"rwkgl",description:"Kigali, Rwanda",alias:["Africa/Kigali"]},{name:"saruh",description:"Riyadh, Saudi Arabia",alias:["Asia/Riyadh"]},{name:"sbhir",description:"Guadalcanal, Solomon Islands",alias:["Pacific/Guadalcanal"]},{name:"scmaw",description:"Mahé, Seychelles",alias:["Indian/Mahe"]},{name:"sdkrt",description:"Khartoum, Sudan",alias:["Africa/Khartoum"]},{name:"sesto",description:"Stockholm, Sweden",alias:["Europe/Stockholm"]},{name:"sgsin",description:"Singapore",alias:["Asia/Singapore","Singapore"]},{name:"shshn",description:"Saint Helena",alias:["Atlantic/St_Helena"]},{name:"silju",description:"Ljubljana, Slovenia",alias:["Europe/Ljubljana"]},{name:"sjlyr",description:"Longyearbyen, Svalbard",alias:["Arctic/Longyearbyen","Atlantic/Jan_Mayen"]},{name:"skbts",description:"Bratislava, Slovakia",alias:["Europe/Bratislava"]},{name:"slfna",description:"Freetown, Sierra Leone",alias:["Africa/Freetown"]},{name:"smsai",description:"San Marino",alias:["Europe/San_Marino"]},{name:"sndkr",description:"Dakar, Senegal",alias:["Africa/Dakar"]},{name:"somgq",description:"Mogadishu, Somalia",alias:["Africa/Mogadishu"]},{name:"srpbm",description:"Paramaribo, Suriname",alias:["America/Paramaribo"]},{name:"ssjub",description:"Juba, South Sudan",alias:["Africa/Juba"]},{name:"sttms",description:"São Tomé, São Tomé and Príncipe",alias:["Africa/Sao_Tome"]},{name:"svsal",description:"El Salvador",alias:["America/El_Salvador"]},{name:"sxphi",description:"Sint Maarten",alias:["America/Lower_Princes"]},{name:"sydam",description:"Damascus, Syria",alias:["Asia/Damascus"]},{name:"szqmn",description:"Mbabane, Swaziland",alias:["Africa/Mbabane"]},{name:"tcgdt",description:"Grand Turk, Turks and Caicos Islands",alias:["America/Grand_Turk"]},{name:"tdndj",description:"N'Djamena, Chad",alias:["Africa/Ndjamena"]},{name:"tfpfr",description:"Kerguelen Islands, French Southern Territories",alias:["Indian/Kerguelen"]},{name:"tglfw",description:"Lomé, Togo",alias:["Africa/Lome"]},{name:"thbkk",description:"Bangkok, Thailand",alias:["Asia/Bangkok"]},{name:"tjdyu",description:"Dushanbe, Tajikistan",alias:["Asia/Dushanbe"]},{name:"tkfko",description:"Fakaofo, Tokelau",alias:["Pacific/Fakaofo"]},{name:"tldil",description:"Dili, East Timor",alias:["Asia/Dili"]},{name:"tmasb",description:"Ashgabat, Turkmenistan",alias:["Asia/Ashgabat","Asia/Ashkhabad"]},{name:"tntun",description:"Tunis, Tunisia",alias:["Africa/Tunis"]},{name:"totbu",description:"Tongatapu, Tonga",alias:["Pacific/Tongatapu"]},{name:"trist",description:"Istanbul, Turkey",alias:["Europe/Istanbul","Asia/Istanbul","Turkey"]},{name:"ttpos",description:"Port of Spain, Trinidad and Tobago",alias:["America/Port_of_Spain"]},{name:"tvfun",description:"Funafuti, Tuvalu",alias:["Pacific/Funafuti"]},{name:"twtpe",description:"Taipei, Taiwan",alias:["Asia/Taipei","ROC"]},{name:"tzdar",description:"Dar es Salaam, Tanzania",alias:["Africa/Dar_es_Salaam"]},{name:"uaiev",description:"Kiev, Ukraine",alias:["Europe/Kiev"]},{name:"uaozh",description:"Zaporizhia (Zaporozhye), Ukraine",alias:["Europe/Zaporozhye"]},{name:"uasip",description:"Simferopol, Ukraine",alias:["Europe/Simferopol"]},{name:"uauzh",description:"Uzhhorod (Uzhgorod), Ukraine",alias:["Europe/Uzhgorod"]},{name:"ugkla",description:"Kampala, Uganda",alias:["Africa/Kampala"]},{name:"umawk",description:"Wake Island, U.S. Minor Outlying Islands",alias:["Pacific/Wake"]},{name:"umjon",description:"Johnston Atoll, U.S. Minor Outlying Islands",alias:["Pacific/Johnston"]},{name:"ummdy",description:"Midway Islands, U.S. Minor Outlying Islands",alias:["Pacific/Midway"]},{name:"unk",description:"Unknown time zone",alias:["Etc/Unknown"]},{name:"usadk",description:"Adak (Alaska), United States",alias:["America/Adak","America/Atka","US/Aleutian"]},{name:"usaeg",description:"Marengo (Indiana), United States",alias:["America/Indiana/Marengo"]},{name:"usanc",description:"Anchorage, United States",alias:["America/Anchorage","US/Alaska"]},{name:"usboi",description:"Boise (Idaho), United States",alias:["America/Boise"]},{name:"uschi",description:"Chicago, United States",alias:["America/Chicago","US/Central"]},{name:"usden",description:"Denver, United States",alias:["America/Denver","America/Shiprock","Navajo","US/Mountain"]},{name:"usdet",description:"Detroit, United States",alias:["America/Detroit","US/Michigan"]},{name:"ushnl",description:"Honolulu, United States",alias:["Pacific/Honolulu","US/Hawaii"]},{name:"usind",description:"Indianapolis, United States",alias:["America/Indianapolis","America/Fort_Wayne","America/Indiana/Indianapolis","US/East-Indiana"]},{name:"usinvev",description:"Vevay (Indiana), United States",alias:["America/Indiana/Vevay"]},{name:"usjnu",description:"Juneau (Alaska), United States",alias:["America/Juneau"]},{name:"usknx",description:"Knox (Indiana), United States",alias:["America/Indiana/Knox","America/Knox_IN","US/Indiana-Starke"]},{name:"uslax",description:"Los Angeles, United States",alias:["America/Los_Angeles","US/Pacific","US/Pacific-New"]},{name:"uslui",description:"Louisville (Kentucky), United States",alias:["America/Louisville","America/Kentucky/Louisville"]},{name:"usmnm",description:"Menominee (Michigan), United States",alias:["America/Menominee"]},{name:"usmtm",description:"Metlakatla (Alaska), United States",alias:["America/Metlakatla"]},{name:"usmoc",description:"Monticello (Kentucky), United States",alias:["America/Kentucky/Monticello"]},{name:"usndcnt",description:"Center (North Dakota), United States",alias:["America/North_Dakota/Center"]},{name:"usndnsl",description:"New Salem (North Dakota), United States",alias:["America/North_Dakota/New_Salem"]},{name:"usnyc",description:"New York, United States",alias:["America/New_York","US/Eastern"]},{name:"usoea",description:"Vincennes (Indiana), United States",alias:["America/Indiana/Vincennes"]},{name:"usome",description:"Nome (Alaska), United States",alias:["America/Nome"]},{name:"usphx",description:"Phoenix, United States",alias:["America/Phoenix","US/Arizona"]},{name:"ussit",description:"Sitka (Alaska), United States",alias:["America/Sitka"]},{name:"ustel",description:"Tell City (Indiana), United States",alias:["America/Indiana/Tell_City"]},{name:"uswlz",description:"Winamac (Indiana), United States",alias:["America/Indiana/Winamac"]},{name:"uswsq",description:"Petersburg (Indiana), United States",alias:["America/Indiana/Petersburg"]},{name:"usxul",description:"Beulah (North Dakota), United States",alias:["America/North_Dakota/Beulah"]},{name:"usyak",description:"Yakutat (Alaska), United States",alias:["America/Yakutat"]},{name:"utc",description:"UTC (Coordinated Universal Time)",alias:["Etc/UTC","Etc/UCT","Etc/Universal","Etc/Zulu","UCT","UTC","Universal","Zulu"]},{name:"utce01",description:"1 hour ahead of UTC",alias:["Etc/GMT-1"]},{name:"utce02",description:"2 hours ahead of UTC",alias:["Etc/GMT-2"]},{name:"utce03",description:"3 hours ahead of UTC",alias:["Etc/GMT-3"]},{name:"utce04",description:"4 hours ahead of UTC",alias:["Etc/GMT-4"]},{name:"utce05",description:"5 hours ahead of UTC",alias:["Etc/GMT-5"]},{name:"utce06",description:"6 hours ahead of UTC",alias:["Etc/GMT-6"]},{name:"utce07",description:"7 hours ahead of UTC",alias:["Etc/GMT-7"]},{name:"utce08",description:"8 hours ahead of UTC",alias:["Etc/GMT-8"]},{name:"utce09",description:"9 hours ahead of UTC",alias:["Etc/GMT-9"]},{name:"utce10",description:"10 hours ahead of UTC",alias:["Etc/GMT-10"]},{name:"utce11",description:"11 hours ahead of UTC",alias:["Etc/GMT-11"]},{name:"utce12",description:"12 hours ahead of UTC",alias:["Etc/GMT-12"]},{name:"utce13",description:"13 hours ahead of UTC",alias:["Etc/GMT-13"]},{name:"utce14",description:"14 hours ahead of UTC",alias:["Etc/GMT-14"]},{name:"utcw01",description:"1 hour behind UTC",alias:["Etc/GMT+1"]},{name:"utcw02",description:"2 hours behind UTC",alias:["Etc/GMT+2"]},{name:"utcw03",description:"3 hours behind UTC",alias:["Etc/GMT+3"]},{name:"utcw04",description:"4 hours behind UTC",alias:["Etc/GMT+4"]},{name:"utcw05",description:"5 hours behind UTC",alias:["Etc/GMT+5","EST"]},{name:"utcw06",description:"6 hours behind UTC",alias:["Etc/GMT+6"]},{name:"utcw07",description:"7 hours behind UTC",alias:["Etc/GMT+7","MST"]},{name:"utcw08",description:"8 hours behind UTC",alias:["Etc/GMT+8"]},{name:"utcw09",description:"9 hours behind UTC",alias:["Etc/GMT+9"]},{name:"utcw10",description:"10 hours behind UTC",alias:["Etc/GMT+10","HST"]},{name:"utcw11",description:"11 hours behind UTC",alias:["Etc/GMT+11"]},{name:"utcw12",description:"12 hours behind UTC",alias:["Etc/GMT+12"]},{name:"uymvd",description:"Montevideo, Uruguay",alias:["America/Montevideo"]},{name:"uzskd",description:"Samarkand, Uzbekistan",alias:["Asia/Samarkand"]},{name:"uztas",description:"Tashkent, Uzbekistan",alias:["Asia/Tashkent"]},{name:"vavat",description:"Vatican City",alias:["Europe/Vatican"]},{name:"vcsvd",description:"Saint Vincent, Saint Vincent and the Grenadines",alias:["America/St_Vincent"]},{name:"veccs",description:"Caracas, Venezuela",alias:["America/Caracas"]},{name:"vgtov",description:"Tortola, British Virgin Islands",alias:["America/Tortola"]},{name:"vistt",description:"Saint Thomas, U.S. Virgin Islands",alias:["America/St_Thomas","America/Virgin"]},{name:"vnsgn",description:"Ho Chi Minh City, Vietnam",alias:["Asia/Saigon","Asia/Ho_Chi_Minh"]},{name:"vuvli",description:"Efate, Vanuatu",alias:["Pacific/Efate"]},{name:"wfmau",description:"Wallis Islands, Wallis and Futuna",alias:["Pacific/Wallis"]},{name:"wsapw",description:"Apia, Samoa",alias:["Pacific/Apia"]},{name:"yeade",description:"Aden, Yemen",alias:["Asia/Aden"]},{name:"ytmam",description:"Mayotte",alias:["Indian/Mayotte"]},{name:"zajnb",description:"Johannesburg, South Africa",alias:["Africa/Johannesburg"]},{name:"zmlun",description:"Lusaka, Zambia",alias:["Africa/Lusaka"]},{name:"zwhre",description:"Harare, Zimbabwe",alias:["Africa/Harare"]}],Ivi=[{windowsName:"Dateline Standard Time",territory:"001",iana:["Etc/GMT+12"]},{windowsName:"Dateline Standard Time",territory:"ZZ",iana:["Etc/GMT+12"]},{windowsName:"UTC-11",territory:"001",iana:["Etc/GMT+11"]},{windowsName:"UTC-11",territory:"AS",iana:["Pacific/Pago_Pago"]},{windowsName:"UTC-11",territory:"NU",iana:["Pacific/Niue"]},{windowsName:"UTC-11",territory:"UM",iana:["Pacific/Midway"]},{windowsName:"UTC-11",territory:"ZZ",iana:["Etc/GMT+11"]},{windowsName:"Aleutian Standard Time",territory:"001",iana:["America/Adak"]},{windowsName:"Aleutian Standard Time",territory:"US",iana:["America/Adak"]},{windowsName:"Hawaiian Standard Time",territory:"001",iana:["Pacific/Honolulu"]},{windowsName:"Hawaiian Standard Time",territory:"CK",iana:["Pacific/Rarotonga"]},{windowsName:"Hawaiian Standard Time",territory:"PF",iana:["Pacific/Tahiti"]},{windowsName:"Hawaiian Standard Time",territory:"UM",iana:["Pacific/Johnston"]},{windowsName:"Hawaiian Standard Time",territory:"US",iana:["Pacific/Honolulu"]},{windowsName:"Hawaiian Standard Time",territory:"ZZ",iana:["Etc/GMT+10"]},{windowsName:"Marquesas Standard Time",territory:"001",iana:["Pacific/Marquesas"]},{windowsName:"Marquesas Standard Time",territory:"PF",iana:["Pacific/Marquesas"]},{windowsName:"Alaskan Standard Time",territory:"001",iana:["America/Anchorage"]},{windowsName:"Alaskan Standard Time",territory:"US",iana:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},{windowsName:"UTC-09",territory:"001",iana:["Etc/GMT+9"]},{windowsName:"UTC-09",territory:"PF",iana:["Pacific/Gambier"]},{windowsName:"UTC-09",territory:"ZZ",iana:["Etc/GMT+9"]},{windowsName:"Pacific Standard Time (Mexico)",territory:"001",iana:["America/Tijuana"]},{windowsName:"Pacific Standard Time (Mexico)",territory:"MX",iana:["America/Tijuana","America/Santa_Isabel"]},{windowsName:"UTC-08",territory:"001",iana:["Etc/GMT+8"]},{windowsName:"UTC-08",territory:"PN",iana:["Pacific/Pitcairn"]},{windowsName:"UTC-08",territory:"ZZ",iana:["Etc/GMT+8"]},{windowsName:"Pacific Standard Time",territory:"001",iana:["America/Los_Angeles"]},{windowsName:"Pacific Standard Time",territory:"CA",iana:["America/Vancouver"]},{windowsName:"Pacific Standard Time",territory:"US",iana:["America/Los_Angeles"]},{windowsName:"Pacific Standard Time",territory:"ZZ",iana:["PST8PDT"]},{windowsName:"US Mountain Standard Time",territory:"001",iana:["America/Phoenix"]},{windowsName:"US Mountain Standard Time",territory:"CA",iana:["America/Creston","America/Dawson_Creek","America/Fort_Nelson"]},{windowsName:"US Mountain Standard Time",territory:"MX",iana:["America/Hermosillo"]},{windowsName:"US Mountain Standard Time",territory:"US",iana:["America/Phoenix"]},{windowsName:"US Mountain Standard Time",territory:"ZZ",iana:["Etc/GMT+7"]},{windowsName:"Mountain Standard Time (Mexico)",territory:"001",iana:["America/Chihuahua"]},{windowsName:"Mountain Standard Time (Mexico)",territory:"MX",iana:["America/Chihuahua","America/Mazatlan"]},{windowsName:"Mountain Standard Time",territory:"001",iana:["America/Denver"]},{windowsName:"Mountain Standard Time",territory:"CA",iana:["America/Edmonton","America/Cambridge_Bay","America/Inuvik","America/Yellowknife"]},{windowsName:"Mountain Standard Time",territory:"MX",iana:["America/Ojinaga"]},{windowsName:"Mountain Standard Time",territory:"US",iana:["America/Denver","America/Boise"]},{windowsName:"Mountain Standard Time",territory:"ZZ",iana:["MST7MDT"]},{windowsName:"Yukon Standard Time",territory:"001",iana:["America/Whitehorse"]},{windowsName:"Yukon Standard Time",territory:"CA",iana:["America/Whitehorse","America/Dawson"]},{windowsName:"Central America Standard Time",territory:"001",iana:["America/Guatemala"]},{windowsName:"Central America Standard Time",territory:"BZ",iana:["America/Belize"]},{windowsName:"Central America Standard Time",territory:"CR",iana:["America/Costa_Rica"]},{windowsName:"Central America Standard Time",territory:"EC",iana:["Pacific/Galapagos"]},{windowsName:"Central America Standard Time",territory:"GT",iana:["America/Guatemala"]},{windowsName:"Central America Standard Time",territory:"HN",iana:["America/Tegucigalpa"]},{windowsName:"Central America Standard Time",territory:"NI",iana:["America/Managua"]},{windowsName:"Central America Standard Time",territory:"SV",iana:["America/El_Salvador"]},{windowsName:"Central America Standard Time",territory:"ZZ",iana:["Etc/GMT+6"]},{windowsName:"Central Standard Time",territory:"001",iana:["America/Chicago"]},{windowsName:"Central Standard Time",territory:"CA",iana:["America/Winnipeg","America/Rainy_River","America/Rankin_Inlet","America/Resolute"]},{windowsName:"Central Standard Time",territory:"MX",iana:["America/Matamoros"]},{windowsName:"Central Standard Time",territory:"US",iana:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem"]},{windowsName:"Central Standard Time",territory:"ZZ",iana:["CST6CDT"]},{windowsName:"Easter Island Standard Time",territory:"001",iana:["Pacific/Easter"]},{windowsName:"Easter Island Standard Time",territory:"CL",iana:["Pacific/Easter"]},{windowsName:"Central Standard Time (Mexico)",territory:"001",iana:["America/Mexico_City"]},{windowsName:"Central Standard Time (Mexico)",territory:"MX",iana:["America/Mexico_City","America/Bahia_Banderas","America/Merida","America/Monterrey"]},{windowsName:"Canada Central Standard Time",territory:"001",iana:["America/Regina"]},{windowsName:"Canada Central Standard Time",territory:"CA",iana:["America/Regina","America/Swift_Current"]},{windowsName:"SA Pacific Standard Time",territory:"001",iana:["America/Bogota"]},{windowsName:"SA Pacific Standard Time",territory:"BR",iana:["America/Rio_Branco","America/Eirunepe"]},{windowsName:"SA Pacific Standard Time",territory:"CA",iana:["America/Coral_Harbour"]},{windowsName:"SA Pacific Standard Time",territory:"CO",iana:["America/Bogota"]},{windowsName:"SA Pacific Standard Time",territory:"EC",iana:["America/Guayaquil"]},{windowsName:"SA Pacific Standard Time",territory:"JM",iana:["America/Jamaica"]},{windowsName:"SA Pacific Standard Time",territory:"KY",iana:["America/Cayman"]},{windowsName:"SA Pacific Standard Time",territory:"PA",iana:["America/Panama"]},{windowsName:"SA Pacific Standard Time",territory:"PE",iana:["America/Lima"]},{windowsName:"SA Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT+5"]},{windowsName:"Eastern Standard Time (Mexico)",territory:"001",iana:["America/Cancun"]},{windowsName:"Eastern Standard Time (Mexico)",territory:"MX",iana:["America/Cancun"]},{windowsName:"Eastern Standard Time",territory:"001",iana:["America/New_York"]},{windowsName:"Eastern Standard Time",territory:"BS",iana:["America/Nassau"]},{windowsName:"Eastern Standard Time",territory:"CA",iana:["America/Toronto","America/Iqaluit","America/Montreal","America/Nipigon","America/Pangnirtung","America/Thunder_Bay"]},{windowsName:"Eastern Standard Time",territory:"US",iana:["America/New_York","America/Detroit","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Kentucky/Monticello","America/Louisville"]},{windowsName:"Eastern Standard Time",territory:"ZZ",iana:["EST5EDT"]},{windowsName:"Haiti Standard Time",territory:"001",iana:["America/Port-au-Prince"]},{windowsName:"Haiti Standard Time",territory:"HT",iana:["America/Port-au-Prince"]},{windowsName:"Cuba Standard Time",territory:"001",iana:["America/Havana"]},{windowsName:"Cuba Standard Time",territory:"CU",iana:["America/Havana"]},{windowsName:"US Eastern Standard Time",territory:"001",iana:["America/Indianapolis"]},{windowsName:"US Eastern Standard Time",territory:"US",iana:["America/Indianapolis","America/Indiana/Marengo","America/Indiana/Vevay"]},{windowsName:"Turks And Caicos Standard Time",territory:"001",iana:["America/Grand_Turk"]},{windowsName:"Turks And Caicos Standard Time",territory:"TC",iana:["America/Grand_Turk"]},{windowsName:"Paraguay Standard Time",territory:"001",iana:["America/Asuncion"]},{windowsName:"Paraguay Standard Time",territory:"PY",iana:["America/Asuncion"]},{windowsName:"Atlantic Standard Time",territory:"001",iana:["America/Halifax"]},{windowsName:"Atlantic Standard Time",territory:"BM",iana:["Atlantic/Bermuda"]},{windowsName:"Atlantic Standard Time",territory:"CA",iana:["America/Halifax","America/Glace_Bay","America/Goose_Bay","America/Moncton"]},{windowsName:"Atlantic Standard Time",territory:"GL",iana:["America/Thule"]},{windowsName:"Venezuela Standard Time",territory:"001",iana:["America/Caracas"]},{windowsName:"Venezuela Standard Time",territory:"VE",iana:["America/Caracas"]},{windowsName:"Central Brazilian Standard Time",territory:"001",iana:["America/Cuiaba"]},{windowsName:"Central Brazilian Standard Time",territory:"BR",iana:["America/Cuiaba","America/Campo_Grande"]},{windowsName:"SA Western Standard Time",territory:"001",iana:["America/La_Paz"]},{windowsName:"SA Western Standard Time",territory:"AG",iana:["America/Antigua"]},{windowsName:"SA Western Standard Time",territory:"AI",iana:["America/Anguilla"]},{windowsName:"SA Western Standard Time",territory:"AW",iana:["America/Aruba"]},{windowsName:"SA Western Standard Time",territory:"BB",iana:["America/Barbados"]},{windowsName:"SA Western Standard Time",territory:"BL",iana:["America/St_Barthelemy"]},{windowsName:"SA Western Standard Time",territory:"BO",iana:["America/La_Paz"]},{windowsName:"SA Western Standard Time",territory:"BQ",iana:["America/Kralendijk"]},{windowsName:"SA Western Standard Time",territory:"BR",iana:["America/Manaus","America/Boa_Vista","America/Porto_Velho"]},{windowsName:"SA Western Standard Time",territory:"CA",iana:["America/Blanc-Sablon"]},{windowsName:"SA Western Standard Time",territory:"CW",iana:["America/Curacao"]},{windowsName:"SA Western Standard Time",territory:"DM",iana:["America/Dominica"]},{windowsName:"SA Western Standard Time",territory:"DO",iana:["America/Santo_Domingo"]},{windowsName:"SA Western Standard Time",territory:"GD",iana:["America/Grenada"]},{windowsName:"SA Western Standard Time",territory:"GP",iana:["America/Guadeloupe"]},{windowsName:"SA Western Standard Time",territory:"GY",iana:["America/Guyana"]},{windowsName:"SA Western Standard Time",territory:"KN",iana:["America/St_Kitts"]},{windowsName:"SA Western Standard Time",territory:"LC",iana:["America/St_Lucia"]},{windowsName:"SA Western Standard Time",territory:"MF",iana:["America/Marigot"]},{windowsName:"SA Western Standard Time",territory:"MQ",iana:["America/Martinique"]},{windowsName:"SA Western Standard Time",territory:"MS",iana:["America/Montserrat"]},{windowsName:"SA Western Standard Time",territory:"PR",iana:["America/Puerto_Rico"]},{windowsName:"SA Western Standard Time",territory:"SX",iana:["America/Lower_Princes"]},{windowsName:"SA Western Standard Time",territory:"TT",iana:["America/Port_of_Spain"]},{windowsName:"SA Western Standard Time",territory:"VC",iana:["America/St_Vincent"]},{windowsName:"SA Western Standard Time",territory:"VG",iana:["America/Tortola"]},{windowsName:"SA Western Standard Time",territory:"VI",iana:["America/St_Thomas"]},{windowsName:"SA Western Standard Time",territory:"ZZ",iana:["Etc/GMT+4"]},{windowsName:"Pacific SA Standard Time",territory:"001",iana:["America/Santiago"]},{windowsName:"Pacific SA Standard Time",territory:"CL",iana:["America/Santiago"]},{windowsName:"Newfoundland Standard Time",territory:"001",iana:["America/St_Johns"]},{windowsName:"Newfoundland Standard Time",territory:"CA",iana:["America/St_Johns"]},{windowsName:"Tocantins Standard Time",territory:"001",iana:["America/Araguaina"]},{windowsName:"Tocantins Standard Time",territory:"BR",iana:["America/Araguaina"]},{windowsName:"E. South America Standard Time",territory:"001",iana:["America/Sao_Paulo"]},{windowsName:"E. South America Standard Time",territory:"BR",iana:["America/Sao_Paulo"]},{windowsName:"SA Eastern Standard Time",territory:"001",iana:["America/Cayenne"]},{windowsName:"SA Eastern Standard Time",territory:"AQ",iana:["Antarctica/Rothera","Antarctica/Palmer"]},{windowsName:"SA Eastern Standard Time",territory:"BR",iana:["America/Fortaleza","America/Belem","America/Maceio","America/Recife","America/Santarem"]},{windowsName:"SA Eastern Standard Time",territory:"FK",iana:["Atlantic/Stanley"]},{windowsName:"SA Eastern Standard Time",territory:"GF",iana:["America/Cayenne"]},{windowsName:"SA Eastern Standard Time",territory:"SR",iana:["America/Paramaribo"]},{windowsName:"SA Eastern Standard Time",territory:"ZZ",iana:["Etc/GMT+3"]},{windowsName:"Argentina Standard Time",territory:"001",iana:["America/Buenos_Aires"]},{windowsName:"Argentina Standard Time",territory:"AR",iana:["America/Buenos_Aires","America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},{windowsName:"Greenland Standard Time",territory:"001",iana:["America/Godthab"]},{windowsName:"Greenland Standard Time",territory:"GL",iana:["America/Godthab"]},{windowsName:"Montevideo Standard Time",territory:"001",iana:["America/Montevideo"]},{windowsName:"Montevideo Standard Time",territory:"UY",iana:["America/Montevideo"]},{windowsName:"Magallanes Standard Time",territory:"001",iana:["America/Punta_Arenas"]},{windowsName:"Magallanes Standard Time",territory:"CL",iana:["America/Punta_Arenas"]},{windowsName:"Saint Pierre Standard Time",territory:"001",iana:["America/Miquelon"]},{windowsName:"Saint Pierre Standard Time",territory:"PM",iana:["America/Miquelon"]},{windowsName:"Bahia Standard Time",territory:"001",iana:["America/Bahia"]},{windowsName:"Bahia Standard Time",territory:"BR",iana:["America/Bahia"]},{windowsName:"UTC-02",territory:"001",iana:["Etc/GMT+2"]},{windowsName:"UTC-02",territory:"BR",iana:["America/Noronha"]},{windowsName:"UTC-02",territory:"GS",iana:["Atlantic/South_Georgia"]},{windowsName:"UTC-02",territory:"ZZ",iana:["Etc/GMT+2"]},{windowsName:"Azores Standard Time",territory:"001",iana:["Atlantic/Azores"]},{windowsName:"Azores Standard Time",territory:"GL",iana:["America/Scoresbysund"]},{windowsName:"Azores Standard Time",territory:"PT",iana:["Atlantic/Azores"]},{windowsName:"Cape Verde Standard Time",territory:"001",iana:["Atlantic/Cape_Verde"]},{windowsName:"Cape Verde Standard Time",territory:"CV",iana:["Atlantic/Cape_Verde"]},{windowsName:"Cape Verde Standard Time",territory:"ZZ",iana:["Etc/GMT+1"]},{windowsName:"UTC",territory:"001",iana:["Etc/UTC"]},{windowsName:"UTC",territory:"ZZ",iana:["Etc/UTC","Etc/GMT"]},{windowsName:"GMT Standard Time",territory:"001",iana:["Europe/London"]},{windowsName:"GMT Standard Time",territory:"ES",iana:["Atlantic/Canary"]},{windowsName:"GMT Standard Time",territory:"FO",iana:["Atlantic/Faeroe"]},{windowsName:"GMT Standard Time",territory:"GB",iana:["Europe/London"]},{windowsName:"GMT Standard Time",territory:"GG",iana:["Europe/Guernsey"]},{windowsName:"GMT Standard Time",territory:"IE",iana:["Europe/Dublin"]},{windowsName:"GMT Standard Time",territory:"IM",iana:["Europe/Isle_of_Man"]},{windowsName:"GMT Standard Time",territory:"JE",iana:["Europe/Jersey"]},{windowsName:"GMT Standard Time",territory:"PT",iana:["Europe/Lisbon","Atlantic/Madeira"]},{windowsName:"Greenwich Standard Time",territory:"001",iana:["Atlantic/Reykjavik"]},{windowsName:"Greenwich Standard Time",territory:"BF",iana:["Africa/Ouagadougou"]},{windowsName:"Greenwich Standard Time",territory:"CI",iana:["Africa/Abidjan"]},{windowsName:"Greenwich Standard Time",territory:"GH",iana:["Africa/Accra"]},{windowsName:"Greenwich Standard Time",territory:"GL",iana:["America/Danmarkshavn"]},{windowsName:"Greenwich Standard Time",territory:"GM",iana:["Africa/Banjul"]},{windowsName:"Greenwich Standard Time",territory:"GN",iana:["Africa/Conakry"]},{windowsName:"Greenwich Standard Time",territory:"GW",iana:["Africa/Bissau"]},{windowsName:"Greenwich Standard Time",territory:"IS",iana:["Atlantic/Reykjavik"]},{windowsName:"Greenwich Standard Time",territory:"LR",iana:["Africa/Monrovia"]},{windowsName:"Greenwich Standard Time",territory:"ML",iana:["Africa/Bamako"]},{windowsName:"Greenwich Standard Time",territory:"MR",iana:["Africa/Nouakchott"]},{windowsName:"Greenwich Standard Time",territory:"SH",iana:["Atlantic/St_Helena"]},{windowsName:"Greenwich Standard Time",territory:"SL",iana:["Africa/Freetown"]},{windowsName:"Greenwich Standard Time",territory:"SN",iana:["Africa/Dakar"]},{windowsName:"Greenwich Standard Time",territory:"TG",iana:["Africa/Lome"]},{windowsName:"Sao Tome Standard Time",territory:"001",iana:["Africa/Sao_Tome"]},{windowsName:"Sao Tome Standard Time",territory:"ST",iana:["Africa/Sao_Tome"]},{windowsName:"Morocco Standard Time",territory:"001",iana:["Africa/Casablanca"]},{windowsName:"Morocco Standard Time",territory:"EH",iana:["Africa/El_Aaiun"]},{windowsName:"Morocco Standard Time",territory:"MA",iana:["Africa/Casablanca"]},{windowsName:"W. Europe Standard Time",territory:"001",iana:["Europe/Berlin"]},{windowsName:"W. Europe Standard Time",territory:"AD",iana:["Europe/Andorra"]},{windowsName:"W. Europe Standard Time",territory:"AT",iana:["Europe/Vienna"]},{windowsName:"W. Europe Standard Time",territory:"CH",iana:["Europe/Zurich"]},{windowsName:"W. Europe Standard Time",territory:"DE",iana:["Europe/Berlin","Europe/Busingen"]},{windowsName:"W. Europe Standard Time",territory:"GI",iana:["Europe/Gibraltar"]},{windowsName:"W. Europe Standard Time",territory:"IT",iana:["Europe/Rome"]},{windowsName:"W. Europe Standard Time",territory:"LI",iana:["Europe/Vaduz"]},{windowsName:"W. Europe Standard Time",territory:"LU",iana:["Europe/Luxembourg"]},{windowsName:"W. Europe Standard Time",territory:"MC",iana:["Europe/Monaco"]},{windowsName:"W. Europe Standard Time",territory:"MT",iana:["Europe/Malta"]},{windowsName:"W. Europe Standard Time",territory:"NL",iana:["Europe/Amsterdam"]},{windowsName:"W. Europe Standard Time",territory:"NO",iana:["Europe/Oslo"]},{windowsName:"W. Europe Standard Time",territory:"SE",iana:["Europe/Stockholm"]},{windowsName:"W. Europe Standard Time",territory:"SJ",iana:["Arctic/Longyearbyen"]},{windowsName:"W. Europe Standard Time",territory:"SM",iana:["Europe/San_Marino"]},{windowsName:"W. Europe Standard Time",territory:"VA",iana:["Europe/Vatican"]},{windowsName:"Central Europe Standard Time",territory:"001",iana:["Europe/Budapest"]},{windowsName:"Central Europe Standard Time",territory:"AL",iana:["Europe/Tirane"]},{windowsName:"Central Europe Standard Time",territory:"CZ",iana:["Europe/Prague"]},{windowsName:"Central Europe Standard Time",territory:"HU",iana:["Europe/Budapest"]},{windowsName:"Central Europe Standard Time",territory:"ME",iana:["Europe/Podgorica"]},{windowsName:"Central Europe Standard Time",territory:"RS",iana:["Europe/Belgrade"]},{windowsName:"Central Europe Standard Time",territory:"SI",iana:["Europe/Ljubljana"]},{windowsName:"Central Europe Standard Time",territory:"SK",iana:["Europe/Bratislava"]},{windowsName:"Romance Standard Time",territory:"001",iana:["Europe/Paris"]},{windowsName:"Romance Standard Time",territory:"BE",iana:["Europe/Brussels"]},{windowsName:"Romance Standard Time",territory:"DK",iana:["Europe/Copenhagen"]},{windowsName:"Romance Standard Time",territory:"ES",iana:["Europe/Madrid","Africa/Ceuta"]},{windowsName:"Romance Standard Time",territory:"FR",iana:["Europe/Paris"]},{windowsName:"Central European Standard Time",territory:"001",iana:["Europe/Warsaw"]},{windowsName:"Central European Standard Time",territory:"BA",iana:["Europe/Sarajevo"]},{windowsName:"Central European Standard Time",territory:"HR",iana:["Europe/Zagreb"]},{windowsName:"Central European Standard Time",territory:"MK",iana:["Europe/Skopje"]},{windowsName:"Central European Standard Time",territory:"PL",iana:["Europe/Warsaw"]},{windowsName:"W. Central Africa Standard Time",territory:"001",iana:["Africa/Lagos"]},{windowsName:"W. Central Africa Standard Time",territory:"AO",iana:["Africa/Luanda"]},{windowsName:"W. Central Africa Standard Time",territory:"BJ",iana:["Africa/Porto-Novo"]},{windowsName:"W. Central Africa Standard Time",territory:"CD",iana:["Africa/Kinshasa"]},{windowsName:"W. Central Africa Standard Time",territory:"CF",iana:["Africa/Bangui"]},{windowsName:"W. Central Africa Standard Time",territory:"CG",iana:["Africa/Brazzaville"]},{windowsName:"W. Central Africa Standard Time",territory:"CM",iana:["Africa/Douala"]},{windowsName:"W. Central Africa Standard Time",territory:"DZ",iana:["Africa/Algiers"]},{windowsName:"W. Central Africa Standard Time",territory:"GA",iana:["Africa/Libreville"]},{windowsName:"W. Central Africa Standard Time",territory:"GQ",iana:["Africa/Malabo"]},{windowsName:"W. Central Africa Standard Time",territory:"NE",iana:["Africa/Niamey"]},{windowsName:"W. Central Africa Standard Time",territory:"NG",iana:["Africa/Lagos"]},{windowsName:"W. Central Africa Standard Time",territory:"TD",iana:["Africa/Ndjamena"]},{windowsName:"W. Central Africa Standard Time",territory:"TN",iana:["Africa/Tunis"]},{windowsName:"W. Central Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-1"]},{windowsName:"Jordan Standard Time",territory:"001",iana:["Asia/Amman"]},{windowsName:"Jordan Standard Time",territory:"JO",iana:["Asia/Amman"]},{windowsName:"GTB Standard Time",territory:"001",iana:["Europe/Bucharest"]},{windowsName:"GTB Standard Time",territory:"CY",iana:["Asia/Nicosia","Asia/Famagusta"]},{windowsName:"GTB Standard Time",territory:"GR",iana:["Europe/Athens"]},{windowsName:"GTB Standard Time",territory:"RO",iana:["Europe/Bucharest"]},{windowsName:"Middle East Standard Time",territory:"001",iana:["Asia/Beirut"]},{windowsName:"Middle East Standard Time",territory:"LB",iana:["Asia/Beirut"]},{windowsName:"Egypt Standard Time",territory:"001",iana:["Africa/Cairo"]},{windowsName:"Egypt Standard Time",territory:"EG",iana:["Africa/Cairo"]},{windowsName:"E. Europe Standard Time",territory:"001",iana:["Europe/Chisinau"]},{windowsName:"E. Europe Standard Time",territory:"MD",iana:["Europe/Chisinau"]},{windowsName:"Syria Standard Time",territory:"001",iana:["Asia/Damascus"]},{windowsName:"Syria Standard Time",territory:"SY",iana:["Asia/Damascus"]},{windowsName:"West Bank Standard Time",territory:"001",iana:["Asia/Hebron"]},{windowsName:"West Bank Standard Time",territory:"PS",iana:["Asia/Hebron","Asia/Gaza"]},{windowsName:"South Africa Standard Time",territory:"001",iana:["Africa/Johannesburg"]},{windowsName:"South Africa Standard Time",territory:"BI",iana:["Africa/Bujumbura"]},{windowsName:"South Africa Standard Time",territory:"BW",iana:["Africa/Gaborone"]},{windowsName:"South Africa Standard Time",territory:"CD",iana:["Africa/Lubumbashi"]},{windowsName:"South Africa Standard Time",territory:"LS",iana:["Africa/Maseru"]},{windowsName:"South Africa Standard Time",territory:"MW",iana:["Africa/Blantyre"]},{windowsName:"South Africa Standard Time",territory:"MZ",iana:["Africa/Maputo"]},{windowsName:"South Africa Standard Time",territory:"RW",iana:["Africa/Kigali"]},{windowsName:"South Africa Standard Time",territory:"SZ",iana:["Africa/Mbabane"]},{windowsName:"South Africa Standard Time",territory:"ZA",iana:["Africa/Johannesburg"]},{windowsName:"South Africa Standard Time",territory:"ZM",iana:["Africa/Lusaka"]},{windowsName:"South Africa Standard Time",territory:"ZW",iana:["Africa/Harare"]},{windowsName:"South Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-2"]},{windowsName:"FLE Standard Time",territory:"001",iana:["Europe/Kiev"]},{windowsName:"FLE Standard Time",territory:"AX",iana:["Europe/Mariehamn"]},{windowsName:"FLE Standard Time",territory:"BG",iana:["Europe/Sofia"]},{windowsName:"FLE Standard Time",territory:"EE",iana:["Europe/Tallinn"]},{windowsName:"FLE Standard Time",territory:"FI",iana:["Europe/Helsinki"]},{windowsName:"FLE Standard Time",territory:"LT",iana:["Europe/Vilnius"]},{windowsName:"FLE Standard Time",territory:"LV",iana:["Europe/Riga"]},{windowsName:"FLE Standard Time",territory:"UA",iana:["Europe/Kiev","Europe/Uzhgorod","Europe/Zaporozhye"]},{windowsName:"Israel Standard Time",territory:"001",iana:["Asia/Jerusalem"]},{windowsName:"Israel Standard Time",territory:"IL",iana:["Asia/Jerusalem"]},{windowsName:"South Sudan Standard Time",territory:"001",iana:["Africa/Juba"]},{windowsName:"South Sudan Standard Time",territory:"SS",iana:["Africa/Juba"]},{windowsName:"Kaliningrad Standard Time",territory:"001",iana:["Europe/Kaliningrad"]},{windowsName:"Kaliningrad Standard Time",territory:"RU",iana:["Europe/Kaliningrad"]},{windowsName:"Sudan Standard Time",territory:"001",iana:["Africa/Khartoum"]},{windowsName:"Sudan Standard Time",territory:"SD",iana:["Africa/Khartoum"]},{windowsName:"Libya Standard Time",territory:"001",iana:["Africa/Tripoli"]},{windowsName:"Libya Standard Time",territory:"LY",iana:["Africa/Tripoli"]},{windowsName:"Namibia Standard Time",territory:"001",iana:["Africa/Windhoek"]},{windowsName:"Namibia Standard Time",territory:"NA",iana:["Africa/Windhoek"]},{windowsName:"Arabic Standard Time",territory:"001",iana:["Asia/Baghdad"]},{windowsName:"Arabic Standard Time",territory:"IQ",iana:["Asia/Baghdad"]},{windowsName:"Turkey Standard Time",territory:"001",iana:["Europe/Istanbul"]},{windowsName:"Turkey Standard Time",territory:"TR",iana:["Europe/Istanbul"]},{windowsName:"Arab Standard Time",territory:"001",iana:["Asia/Riyadh"]},{windowsName:"Arab Standard Time",territory:"BH",iana:["Asia/Bahrain"]},{windowsName:"Arab Standard Time",territory:"KW",iana:["Asia/Kuwait"]},{windowsName:"Arab Standard Time",territory:"QA",iana:["Asia/Qatar"]},{windowsName:"Arab Standard Time",territory:"SA",iana:["Asia/Riyadh"]},{windowsName:"Arab Standard Time",territory:"YE",iana:["Asia/Aden"]},{windowsName:"Belarus Standard Time",territory:"001",iana:["Europe/Minsk"]},{windowsName:"Belarus Standard Time",territory:"BY",iana:["Europe/Minsk"]},{windowsName:"Russian Standard Time",territory:"001",iana:["Europe/Moscow"]},{windowsName:"Russian Standard Time",territory:"RU",iana:["Europe/Moscow","Europe/Kirov"]},{windowsName:"Russian Standard Time",territory:"UA",iana:["Europe/Simferopol"]},{windowsName:"E. Africa Standard Time",territory:"001",iana:["Africa/Nairobi"]},{windowsName:"E. Africa Standard Time",territory:"AQ",iana:["Antarctica/Syowa"]},{windowsName:"E. Africa Standard Time",territory:"DJ",iana:["Africa/Djibouti"]},{windowsName:"E. Africa Standard Time",territory:"ER",iana:["Africa/Asmera"]},{windowsName:"E. Africa Standard Time",territory:"ET",iana:["Africa/Addis_Ababa"]},{windowsName:"E. Africa Standard Time",territory:"KE",iana:["Africa/Nairobi"]},{windowsName:"E. Africa Standard Time",territory:"KM",iana:["Indian/Comoro"]},{windowsName:"E. Africa Standard Time",territory:"MG",iana:["Indian/Antananarivo"]},{windowsName:"E. Africa Standard Time",territory:"SO",iana:["Africa/Mogadishu"]},{windowsName:"E. Africa Standard Time",territory:"TZ",iana:["Africa/Dar_es_Salaam"]},{windowsName:"E. Africa Standard Time",territory:"UG",iana:["Africa/Kampala"]},{windowsName:"E. Africa Standard Time",territory:"YT",iana:["Indian/Mayotte"]},{windowsName:"E. Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-3"]},{windowsName:"Iran Standard Time",territory:"001",iana:["Asia/Tehran"]},{windowsName:"Iran Standard Time",territory:"IR",iana:["Asia/Tehran"]},{windowsName:"Arabian Standard Time",territory:"001",iana:["Asia/Dubai"]},{windowsName:"Arabian Standard Time",territory:"AE",iana:["Asia/Dubai"]},{windowsName:"Arabian Standard Time",territory:"OM",iana:["Asia/Muscat"]},{windowsName:"Arabian Standard Time",territory:"ZZ",iana:["Etc/GMT-4"]},{windowsName:"Astrakhan Standard Time",territory:"001",iana:["Europe/Astrakhan"]},{windowsName:"Astrakhan Standard Time",territory:"RU",iana:["Europe/Astrakhan","Europe/Ulyanovsk"]},{windowsName:"Azerbaijan Standard Time",territory:"001",iana:["Asia/Baku"]},{windowsName:"Azerbaijan Standard Time",territory:"AZ",iana:["Asia/Baku"]},{windowsName:"Russia Time Zone 3",territory:"001",iana:["Europe/Samara"]},{windowsName:"Russia Time Zone 3",territory:"RU",iana:["Europe/Samara"]},{windowsName:"Mauritius Standard Time",territory:"001",iana:["Indian/Mauritius"]},{windowsName:"Mauritius Standard Time",territory:"MU",iana:["Indian/Mauritius"]},{windowsName:"Mauritius Standard Time",territory:"RE",iana:["Indian/Reunion"]},{windowsName:"Mauritius Standard Time",territory:"SC",iana:["Indian/Mahe"]},{windowsName:"Saratov Standard Time",territory:"001",iana:["Europe/Saratov"]},{windowsName:"Saratov Standard Time",territory:"RU",iana:["Europe/Saratov"]},{windowsName:"Georgian Standard Time",territory:"001",iana:["Asia/Tbilisi"]},{windowsName:"Georgian Standard Time",territory:"GE",iana:["Asia/Tbilisi"]},{windowsName:"Volgograd Standard Time",territory:"001",iana:["Europe/Volgograd"]},{windowsName:"Volgograd Standard Time",territory:"RU",iana:["Europe/Volgograd"]},{windowsName:"Caucasus Standard Time",territory:"001",iana:["Asia/Yerevan"]},{windowsName:"Caucasus Standard Time",territory:"AM",iana:["Asia/Yerevan"]},{windowsName:"Afghanistan Standard Time",territory:"001",iana:["Asia/Kabul"]},{windowsName:"Afghanistan Standard Time",territory:"AF",iana:["Asia/Kabul"]},{windowsName:"West Asia Standard Time",territory:"001",iana:["Asia/Tashkent"]},{windowsName:"West Asia Standard Time",territory:"AQ",iana:["Antarctica/Mawson"]},{windowsName:"West Asia Standard Time",territory:"KZ",iana:["Asia/Oral","Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau"]},{windowsName:"West Asia Standard Time",territory:"MV",iana:["Indian/Maldives"]},{windowsName:"West Asia Standard Time",territory:"TF",iana:["Indian/Kerguelen"]},{windowsName:"West Asia Standard Time",territory:"TJ",iana:["Asia/Dushanbe"]},{windowsName:"West Asia Standard Time",territory:"TM",iana:["Asia/Ashgabat"]},{windowsName:"West Asia Standard Time",territory:"UZ",iana:["Asia/Tashkent","Asia/Samarkand"]},{windowsName:"West Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-5"]},{windowsName:"Ekaterinburg Standard Time",territory:"001",iana:["Asia/Yekaterinburg"]},{windowsName:"Ekaterinburg Standard Time",territory:"RU",iana:["Asia/Yekaterinburg"]},{windowsName:"Pakistan Standard Time",territory:"001",iana:["Asia/Karachi"]},{windowsName:"Pakistan Standard Time",territory:"PK",iana:["Asia/Karachi"]},{windowsName:"Qyzylorda Standard Time",territory:"001",iana:["Asia/Qyzylorda"]},{windowsName:"Qyzylorda Standard Time",territory:"KZ",iana:["Asia/Qyzylorda"]},{windowsName:"India Standard Time",territory:"001",iana:["Asia/Calcutta"]},{windowsName:"India Standard Time",territory:"IN",iana:["Asia/Calcutta"]},{windowsName:"Sri Lanka Standard Time",territory:"001",iana:["Asia/Colombo"]},{windowsName:"Sri Lanka Standard Time",territory:"LK",iana:["Asia/Colombo"]},{windowsName:"Nepal Standard Time",territory:"001",iana:["Asia/Katmandu"]},{windowsName:"Nepal Standard Time",territory:"NP",iana:["Asia/Katmandu"]},{windowsName:"Central Asia Standard Time",territory:"001",iana:["Asia/Almaty"]},{windowsName:"Central Asia Standard Time",territory:"AQ",iana:["Antarctica/Vostok"]},{windowsName:"Central Asia Standard Time",territory:"CN",iana:["Asia/Urumqi"]},{windowsName:"Central Asia Standard Time",territory:"IO",iana:["Indian/Chagos"]},{windowsName:"Central Asia Standard Time",territory:"KG",iana:["Asia/Bishkek"]},{windowsName:"Central Asia Standard Time",territory:"KZ",iana:["Asia/Almaty","Asia/Qostanay"]},{windowsName:"Central Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-6"]},{windowsName:"Bangladesh Standard Time",territory:"001",iana:["Asia/Dhaka"]},{windowsName:"Bangladesh Standard Time",territory:"BD",iana:["Asia/Dhaka"]},{windowsName:"Bangladesh Standard Time",territory:"BT",iana:["Asia/Thimphu"]},{windowsName:"Omsk Standard Time",territory:"001",iana:["Asia/Omsk"]},{windowsName:"Omsk Standard Time",territory:"RU",iana:["Asia/Omsk"]},{windowsName:"Myanmar Standard Time",territory:"001",iana:["Asia/Rangoon"]},{windowsName:"Myanmar Standard Time",territory:"CC",iana:["Indian/Cocos"]},{windowsName:"Myanmar Standard Time",territory:"MM",iana:["Asia/Rangoon"]},{windowsName:"SE Asia Standard Time",territory:"001",iana:["Asia/Bangkok"]},{windowsName:"SE Asia Standard Time",territory:"AQ",iana:["Antarctica/Davis"]},{windowsName:"SE Asia Standard Time",territory:"CX",iana:["Indian/Christmas"]},{windowsName:"SE Asia Standard Time",territory:"ID",iana:["Asia/Jakarta","Asia/Pontianak"]},{windowsName:"SE Asia Standard Time",territory:"KH",iana:["Asia/Phnom_Penh"]},{windowsName:"SE Asia Standard Time",territory:"LA",iana:["Asia/Vientiane"]},{windowsName:"SE Asia Standard Time",territory:"TH",iana:["Asia/Bangkok"]},{windowsName:"SE Asia Standard Time",territory:"VN",iana:["Asia/Saigon"]},{windowsName:"SE Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-7"]},{windowsName:"Altai Standard Time",territory:"001",iana:["Asia/Barnaul"]},{windowsName:"Altai Standard Time",territory:"RU",iana:["Asia/Barnaul"]},{windowsName:"W. Mongolia Standard Time",territory:"001",iana:["Asia/Hovd"]},{windowsName:"W. Mongolia Standard Time",territory:"MN",iana:["Asia/Hovd"]},{windowsName:"North Asia Standard Time",territory:"001",iana:["Asia/Krasnoyarsk"]},{windowsName:"North Asia Standard Time",territory:"RU",iana:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},{windowsName:"N. Central Asia Standard Time",territory:"001",iana:["Asia/Novosibirsk"]},{windowsName:"N. Central Asia Standard Time",territory:"RU",iana:["Asia/Novosibirsk"]},{windowsName:"Tomsk Standard Time",territory:"001",iana:["Asia/Tomsk"]},{windowsName:"Tomsk Standard Time",territory:"RU",iana:["Asia/Tomsk"]},{windowsName:"China Standard Time",territory:"001",iana:["Asia/Shanghai"]},{windowsName:"China Standard Time",territory:"CN",iana:["Asia/Shanghai"]},{windowsName:"China Standard Time",territory:"HK",iana:["Asia/Hong_Kong"]},{windowsName:"China Standard Time",territory:"MO",iana:["Asia/Macau"]},{windowsName:"North Asia East Standard Time",territory:"001",iana:["Asia/Irkutsk"]},{windowsName:"North Asia East Standard Time",territory:"RU",iana:["Asia/Irkutsk"]},{windowsName:"Singapore Standard Time",territory:"001",iana:["Asia/Singapore"]},{windowsName:"Singapore Standard Time",territory:"BN",iana:["Asia/Brunei"]},{windowsName:"Singapore Standard Time",territory:"ID",iana:["Asia/Makassar"]},{windowsName:"Singapore Standard Time",territory:"MY",iana:["Asia/Kuala_Lumpur","Asia/Kuching"]},{windowsName:"Singapore Standard Time",territory:"PH",iana:["Asia/Manila"]},{windowsName:"Singapore Standard Time",territory:"SG",iana:["Asia/Singapore"]},{windowsName:"Singapore Standard Time",territory:"ZZ",iana:["Etc/GMT-8"]},{windowsName:"W. Australia Standard Time",territory:"001",iana:["Australia/Perth"]},{windowsName:"W. Australia Standard Time",territory:"AU",iana:["Australia/Perth"]},{windowsName:"Taipei Standard Time",territory:"001",iana:["Asia/Taipei"]},{windowsName:"Taipei Standard Time",territory:"TW",iana:["Asia/Taipei"]},{windowsName:"Ulaanbaatar Standard Time",territory:"001",iana:["Asia/Ulaanbaatar"]},{windowsName:"Ulaanbaatar Standard Time",territory:"MN",iana:["Asia/Ulaanbaatar","Asia/Choibalsan"]},{windowsName:"Aus Central W. Standard Time",territory:"001",iana:["Australia/Eucla"]},{windowsName:"Aus Central W. Standard Time",territory:"AU",iana:["Australia/Eucla"]},{windowsName:"Transbaikal Standard Time",territory:"001",iana:["Asia/Chita"]},{windowsName:"Transbaikal Standard Time",territory:"RU",iana:["Asia/Chita"]},{windowsName:"Tokyo Standard Time",territory:"001",iana:["Asia/Tokyo"]},{windowsName:"Tokyo Standard Time",territory:"ID",iana:["Asia/Jayapura"]},{windowsName:"Tokyo Standard Time",territory:"JP",iana:["Asia/Tokyo"]},{windowsName:"Tokyo Standard Time",territory:"PW",iana:["Pacific/Palau"]},{windowsName:"Tokyo Standard Time",territory:"TL",iana:["Asia/Dili"]},{windowsName:"Tokyo Standard Time",territory:"ZZ",iana:["Etc/GMT-9"]},{windowsName:"North Korea Standard Time",territory:"001",iana:["Asia/Pyongyang"]},{windowsName:"North Korea Standard Time",territory:"KP",iana:["Asia/Pyongyang"]},{windowsName:"Korea Standard Time",territory:"001",iana:["Asia/Seoul"]},{windowsName:"Korea Standard Time",territory:"KR",iana:["Asia/Seoul"]},{windowsName:"Yakutsk Standard Time",territory:"001",iana:["Asia/Yakutsk"]},{windowsName:"Yakutsk Standard Time",territory:"RU",iana:["Asia/Yakutsk","Asia/Khandyga"]},{windowsName:"Cen. Australia Standard Time",territory:"001",iana:["Australia/Adelaide"]},{windowsName:"Cen. Australia Standard Time",territory:"AU",iana:["Australia/Adelaide","Australia/Broken_Hill"]},{windowsName:"AUS Central Standard Time",territory:"001",iana:["Australia/Darwin"]},{windowsName:"AUS Central Standard Time",territory:"AU",iana:["Australia/Darwin"]},{windowsName:"E. Australia Standard Time",territory:"001",iana:["Australia/Brisbane"]},{windowsName:"E. Australia Standard Time",territory:"AU",iana:["Australia/Brisbane","Australia/Lindeman"]},{windowsName:"AUS Eastern Standard Time",territory:"001",iana:["Australia/Sydney"]},{windowsName:"AUS Eastern Standard Time",territory:"AU",iana:["Australia/Sydney","Australia/Melbourne"]},{windowsName:"West Pacific Standard Time",territory:"001",iana:["Pacific/Port_Moresby"]},{windowsName:"West Pacific Standard Time",territory:"AQ",iana:["Antarctica/DumontDUrville"]},{windowsName:"West Pacific Standard Time",territory:"FM",iana:["Pacific/Truk"]},{windowsName:"West Pacific Standard Time",territory:"GU",iana:["Pacific/Guam"]},{windowsName:"West Pacific Standard Time",territory:"MP",iana:["Pacific/Saipan"]},{windowsName:"West Pacific Standard Time",territory:"PG",iana:["Pacific/Port_Moresby"]},{windowsName:"West Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT-10"]},{windowsName:"Tasmania Standard Time",territory:"001",iana:["Australia/Hobart"]},{windowsName:"Tasmania Standard Time",territory:"AU",iana:["Australia/Hobart","Australia/Currie","Antarctica/Macquarie"]},{windowsName:"Vladivostok Standard Time",territory:"001",iana:["Asia/Vladivostok"]},{windowsName:"Vladivostok Standard Time",territory:"RU",iana:["Asia/Vladivostok","Asia/Ust-Nera"]},{windowsName:"Lord Howe Standard Time",territory:"001",iana:["Australia/Lord_Howe"]},{windowsName:"Lord Howe Standard Time",territory:"AU",iana:["Australia/Lord_Howe"]},{windowsName:"Bougainville Standard Time",territory:"001",iana:["Pacific/Bougainville"]},{windowsName:"Bougainville Standard Time",territory:"PG",iana:["Pacific/Bougainville"]},{windowsName:"Russia Time Zone 10",territory:"001",iana:["Asia/Srednekolymsk"]},{windowsName:"Russia Time Zone 10",territory:"RU",iana:["Asia/Srednekolymsk"]},{windowsName:"Magadan Standard Time",territory:"001",iana:["Asia/Magadan"]},{windowsName:"Magadan Standard Time",territory:"RU",iana:["Asia/Magadan"]},{windowsName:"Norfolk Standard Time",territory:"001",iana:["Pacific/Norfolk"]},{windowsName:"Norfolk Standard Time",territory:"NF",iana:["Pacific/Norfolk"]},{windowsName:"Sakhalin Standard Time",territory:"001",iana:["Asia/Sakhalin"]},{windowsName:"Sakhalin Standard Time",territory:"RU",iana:["Asia/Sakhalin"]},{windowsName:"Central Pacific Standard Time",territory:"001",iana:["Pacific/Guadalcanal"]},{windowsName:"Central Pacific Standard Time",territory:"AQ",iana:["Antarctica/Casey"]},{windowsName:"Central Pacific Standard Time",territory:"FM",iana:["Pacific/Ponape","Pacific/Kosrae"]},{windowsName:"Central Pacific Standard Time",territory:"NC",iana:["Pacific/Noumea"]},{windowsName:"Central Pacific Standard Time",territory:"SB",iana:["Pacific/Guadalcanal"]},{windowsName:"Central Pacific Standard Time",territory:"VU",iana:["Pacific/Efate"]},{windowsName:"Central Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT-11"]},{windowsName:"Russia Time Zone 11",territory:"001",iana:["Asia/Kamchatka"]},{windowsName:"Russia Time Zone 11",territory:"RU",iana:["Asia/Kamchatka","Asia/Anadyr"]},{windowsName:"New Zealand Standard Time",territory:"001",iana:["Pacific/Auckland"]},{windowsName:"New Zealand Standard Time",territory:"AQ",iana:["Antarctica/McMurdo"]},{windowsName:"New Zealand Standard Time",territory:"NZ",iana:["Pacific/Auckland"]},{windowsName:"UTC+12",territory:"001",iana:["Etc/GMT-12"]},{windowsName:"UTC+12",territory:"KI",iana:["Pacific/Tarawa"]},{windowsName:"UTC+12",territory:"MH",iana:["Pacific/Majuro","Pacific/Kwajalein"]},{windowsName:"UTC+12",territory:"NR",iana:["Pacific/Nauru"]},{windowsName:"UTC+12",territory:"TV",iana:["Pacific/Funafuti"]},{windowsName:"UTC+12",territory:"UM",iana:["Pacific/Wake"]},{windowsName:"UTC+12",territory:"WF",iana:["Pacific/Wallis"]},{windowsName:"UTC+12",territory:"ZZ",iana:["Etc/GMT-12"]},{windowsName:"Fiji Standard Time",territory:"001",iana:["Pacific/Fiji"]},{windowsName:"Fiji Standard Time",territory:"FJ",iana:["Pacific/Fiji"]},{windowsName:"Chatham Islands Standard Time",territory:"001",iana:["Pacific/Chatham"]},{windowsName:"Chatham Islands Standard Time",territory:"NZ",iana:["Pacific/Chatham"]},{windowsName:"UTC+13",territory:"001",iana:["Etc/GMT-13"]},{windowsName:"UTC+13",territory:"KI",iana:["Pacific/Enderbury"]},{windowsName:"UTC+13",territory:"TK",iana:["Pacific/Fakaofo"]},{windowsName:"UTC+13",territory:"ZZ",iana:["Etc/GMT-13"]},{windowsName:"Tonga Standard Time",territory:"001",iana:["Pacific/Tongatapu"]},{windowsName:"Tonga Standard Time",territory:"TO",iana:["Pacific/Tongatapu"]},{windowsName:"Samoa Standard Time",territory:"001",iana:["Pacific/Apia"]},{windowsName:"Samoa Standard Time",territory:"WS",iana:["Pacific/Apia"]},{windowsName:"Line Islands Standard Time",territory:"001",iana:["Pacific/Kiritimati"]},{windowsName:"Line Islands Standard Time",territory:"KI",iana:["Pacific/Kiritimati"]},{windowsName:"Line Islands Standard Time",territory:"ZZ",iana:["Etc/GMT-14"]}];function Pvi(e){var t=new Set;return Rvi.filter(function(n){var r=n.alias;return r.includes(e)}).map(function(n){return n.alias}).flat().forEach(function(n){t.add(n)}),Array.from(t)}function Dvi(e,t){var n=new Set;return Ivi.filter(function(r){return r.windowsName===e}).map(function(r){return r.iana}).flat().map(Pvi).flat().forEach(function(r){n.add(r)}),Array.from(n)}var r5={},YYe;function kvi(){if(YYe)return r5;YYe=1;var e=ri(),t=ii();Object.defineProperty(r5,"__esModule",{value:!0}),r5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}),"PersonOutline");return r5.default=i,r5}var Lvi=kvi();const _vi=qn(Lvi);var i5={},KYe;function Nvi(){if(KYe)return i5;KYe=1;var e=ri(),t=ii();Object.defineProperty(i5,"__esModule",{value:!0}),i5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");return i5.default=i,i5}var Fvi=Nvi();const Wvi=qn(Fvi);/*! @azure/msal-browser v2.39.0 2024-06-06 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var e2e=function(e,t){return e2e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},e2e(e,t)};function Id(e,t){e2e(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Sr=function(){return Sr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Sr.apply(this,arguments)};function QYe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function dn(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}function pn(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function qvi(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function s3e(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qvi(arguments[t]));return e}/*! @azure/msal-common v13.3.3 2024-06-06 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var t2e=function(e,t){return t2e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},t2e(e,t)};function Ap(e,t){t2e(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Fa=function(){return Fa=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Fa.apply(this,arguments)};function Bi(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}function ji(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ste(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}/*! @azure/msal-common v13.3.3 2024-06-06 */var Mt={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},bj=[Mt.OPENID_SCOPE,Mt.PROFILE_SCOPE,Mt.OFFLINE_ACCESS_SCOPE],ZYe=ste(bj,[Mt.EMAIL_SCOPE]),ah;(function(e){e.CONTENT_TYPE="Content-Type",e.RETRY_AFTER="Retry-After",e.CCS_HEADER="X-AnchorMailbox",e.WWWAuthenticate="WWW-Authenticate",e.AuthenticationInfo="Authentication-Info",e.X_MS_REQUEST_ID="x-ms-request-id",e.X_MS_HTTP_VERSION="x-ms-httpver"})(ah||(ah={}));var fu;(function(e){e.ID_TOKEN="idtoken",e.CLIENT_INFO="client.info",e.ADAL_ID_TOKEN="adal.idtoken",e.ERROR="error",e.ERROR_DESC="error.description",e.ACTIVE_ACCOUNT="active-account",e.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(fu||(fu={}));var cz;(function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"})(cz||(cz={}));var Ji;(function(e){e.CLIENT_ID="client_id",e.REDIRECT_URI="redirect_uri",e.RESPONSE_TYPE="response_type",e.RESPONSE_MODE="response_mode",e.GRANT_TYPE="grant_type",e.CLAIMS="claims",e.SCOPE="scope",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ACCESS_TOKEN="access_token",e.ID_TOKEN="id_token",e.REFRESH_TOKEN="refresh_token",e.EXPIRES_IN="expires_in",e.STATE="state",e.NONCE="nonce",e.PROMPT="prompt",e.SESSION_STATE="session_state",e.CLIENT_INFO="client_info",e.CODE="code",e.CODE_CHALLENGE="code_challenge",e.CODE_CHALLENGE_METHOD="code_challenge_method",e.CODE_VERIFIER="code_verifier",e.CLIENT_REQUEST_ID="client-request-id",e.X_CLIENT_SKU="x-client-SKU",e.X_CLIENT_VER="x-client-VER",e.X_CLIENT_OS="x-client-OS",e.X_CLIENT_CPU="x-client-CPU",e.X_CLIENT_CURR_TELEM="x-client-current-telemetry",e.X_CLIENT_LAST_TELEM="x-client-last-telemetry",e.X_MS_LIB_CAPABILITY="x-ms-lib-capability",e.X_APP_NAME="x-app-name",e.X_APP_VER="x-app-ver",e.POST_LOGOUT_URI="post_logout_redirect_uri",e.ID_TOKEN_HINT="id_token_hint",e.DEVICE_CODE="device_code",e.CLIENT_SECRET="client_secret",e.CLIENT_ASSERTION="client_assertion",e.CLIENT_ASSERTION_TYPE="client_assertion_type",e.TOKEN_TYPE="token_type",e.REQ_CNF="req_cnf",e.OBO_ASSERTION="assertion",e.REQUESTED_TOKEN_USE="requested_token_use",e.ON_BEHALF_OF="on_behalf_of",e.FOCI="foci",e.CCS_HEADER="X-AnchorMailbox",e.RETURN_SPA_CODE="return_spa_code",e.NATIVE_BROKER="nativebroker",e.LOGOUT_HINT="logout_hint"})(Ji||(Ji={}));var YR;(function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"})(YR||(YR={}));var g0={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},YF;(function(e){e.ACCOUNT="account",e.SID="sid",e.LOGIN_HINT="login_hint",e.ID_TOKEN="id_token",e.DOMAIN_HINT="domain_hint",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers",e.ACCOUNT_ID="accountIdentifier",e.HOMEACCOUNT_ID="homeAccountIdentifier"})(YF||(YF={}));var JYe={PLAIN:"plain",S256:"S256"},NX;(function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"})(NX||(NX={}));var FX;(function(e){e.IMPLICIT_GRANT="implicit",e.AUTHORIZATION_CODE_GRANT="authorization_code",e.CLIENT_CREDENTIALS_GRANT="client_credentials",e.RESOURCE_OWNER_PASSWORD_GRANT="password",e.REFRESH_TOKEN_GRANT="refresh_token",e.DEVICE_CODE_GRANT="device_code",e.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(FX||(FX={}));var nO;(function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"})(nO||(nO={}));var Mu;(function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."})(Mu||(Mu={}));var ti;(function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"})(ti||(ti={}));var KF;(function(e){e[e.ADFS=1001]="ADFS",e[e.MSA=1002]="MSA",e[e.MSSTS=1003]="MSSTS",e[e.GENERIC=1004]="GENERIC",e[e.ACCESS_TOKEN=2001]="ACCESS_TOKEN",e[e.REFRESH_TOKEN=2002]="REFRESH_TOKEN",e[e.ID_TOKEN=2003]="ID_TOKEN",e[e.APP_METADATA=3001]="APP_METADATA",e[e.UNDEFINED=9999]="UNDEFINED"})(KF||(KF={}));var n2e="appmetadata",Bvi="client_info",QF="1",ZF={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},$h;(function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"})($h||($h={}));var pd={SCHEMA_VERSION:5,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Qa;(function(e){e.BEARER="Bearer",e.POP="pop",e.SSH="ssh-cert"})(Qa||(Qa={}));var JF={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},eKe={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},WX;(function(e){e.username="username",e.password="password"})(WX||(WX={}));var KR;(function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"})(KR||(KR={}));var BC;(function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"})(BC||(BC={}));var eW;(function(e){e.CONFIGURED_MATCHES_DETECTED="1",e.CONFIGURED_NO_AUTO_DETECTION="2",e.CONFIGURED_NOT_DETECTED="3",e.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",e.AUTO_DETECTION_REQUESTED_FAILED="5"})(eW||(eW={}));var JC;(function(e){e.NO_CACHE_HIT="0",e.FORCE_REFRESH="1",e.NO_CACHED_ACCESS_TOKEN="2",e.CACHED_ACCESS_TOKEN_EXPIRED="3",e.REFRESH_CACHED_ACCESS_TOKEN="4",e.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(JC||(JC={}));var r2e;(function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"})(r2e||(r2e={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var OG={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},Gr=(function(e){Ap(t,e);function t(n,r,i){var o=this,a=r?n+": "+r:n;return o=e.call(this,a)||this,Object.setPrototypeOf(o,t.prototype),o.errorCode=n||Mt.EMPTY_STRING,o.errorMessage=r||Mt.EMPTY_STRING,o.subError=i||Mt.EMPTY_STRING,o.name="AuthError",o}return t.prototype.setCorrelationId=function(n){this.correlationId=n},t.createUnexpectedError=function(n){return new t(OG.unexpectedError.code,OG.unexpectedError.desc+": "+n)},t.createPostRequestFailed=function(n){return new t(OG.postRequestFailed.code,OG.postRequestFailed.desc+": "+n)},t})(Error);/*! @azure/msal-common v13.3.3 2024-06-06 */var qX={createNewGuid:function(){var e="Crypto interface - createNewGuid() has not been implemented";throw Gr.createUnexpectedError(e)},base64Decode:function(){var e="Crypto interface - base64Decode() has not been implemented";throw Gr.createUnexpectedError(e)},base64Encode:function(){var e="Crypto interface - base64Encode() has not been implemented";throw Gr.createUnexpectedError(e)},generatePkceCodes:function(){return Bi(this,void 0,void 0,function(){var e;return ji(this,function(t){throw e="Crypto interface - generatePkceCodes() has not been implemented",Gr.createUnexpectedError(e)})})},getPublicKeyThumbprint:function(){return Bi(this,void 0,void 0,function(){var e;return ji(this,function(t){throw e="Crypto interface - getPublicKeyThumbprint() has not been implemented",Gr.createUnexpectedError(e)})})},removeTokenBindingKey:function(){return Bi(this,void 0,void 0,function(){var e;return ji(this,function(t){throw e="Crypto interface - removeTokenBindingKey() has not been implemented",Gr.createUnexpectedError(e)})})},clearKeystore:function(){return Bi(this,void 0,void 0,function(){var e;return ji(this,function(t){throw e="Crypto interface - clearKeystore() has not been implemented",Gr.createUnexpectedError(e)})})},signJwt:function(){return Bi(this,void 0,void 0,function(){var e;return ji(this,function(t){throw e="Crypto interface - signJwt() has not been implemented",Gr.createUnexpectedError(e)})})},hashString:function(){return Bi(this,void 0,void 0,function(){var e;return ji(this,function(t){throw e="Crypto interface - hashString() has not been implemented",Gr.createUnexpectedError(e)})})}};/*! @azure/msal-common v13.3.3 2024-06-06 */var En={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},Ar=(function(e){Ap(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.name="ClientAuthError",Object.setPrototypeOf(i,t.prototype),i}return t.createClientInfoDecodingError=function(n){return new t(En.clientInfoDecodingError.code,En.clientInfoDecodingError.desc+" Failed with error: "+n)},t.createClientInfoEmptyError=function(){return new t(En.clientInfoEmptyError.code,""+En.clientInfoEmptyError.desc)},t.createTokenParsingError=function(n){return new t(En.tokenParsingError.code,En.tokenParsingError.desc+" Failed with error: "+n)},t.createTokenNullOrEmptyError=function(n){return new t(En.nullOrEmptyToken.code,En.nullOrEmptyToken.desc+" Raw Token Value: "+n)},t.createEndpointDiscoveryIncompleteError=function(n){return new t(En.endpointResolutionError.code,En.endpointResolutionError.desc+" Detail: "+n)},t.createNetworkError=function(n,r){return new t(En.networkError.code,En.networkError.desc+" | Fetch client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},t.createUnableToGetOpenidConfigError=function(n){return new t(En.unableToGetOpenidConfigError.code,En.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+n)},t.createHashNotDeserializedError=function(n){return new t(En.hashNotDeserialized.code,En.hashNotDeserialized.desc+" Given Object: "+n)},t.createInvalidStateError=function(n,r){return new t(En.invalidStateError.code,En.invalidStateError.desc+" Invalid State: "+n+", Root Err: "+r)},t.createStateMismatchError=function(){return new t(En.stateMismatchError.code,En.stateMismatchError.desc)},t.createStateNotFoundError=function(n){return new t(En.stateNotFoundError.code,En.stateNotFoundError.desc+":  "+n)},t.createNonceMismatchError=function(){return new t(En.nonceMismatchError.code,En.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(En.authTimeNotFoundError.code,En.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(En.maxAgeTranspiredError.code,En.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(n){return new t(En.nonceNotFoundError.code,En.nonceNotFoundError.desc+":  "+n)},t.createMultipleMatchingTokensInCacheError=function(){return new t(En.multipleMatchingTokens.code,En.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(En.multipleMatchingAccounts.code,En.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(En.multipleMatchingAppMetadata.code,En.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(En.tokenRequestCannotBeMade.code,En.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(n){return new t(En.appendEmptyScopeError.code,En.appendEmptyScopeError.desc+" Given Scope: "+n)},t.createRemoveEmptyScopeFromSetError=function(n){return new t(En.removeEmptyScopeError.code,En.removeEmptyScopeError.desc+" Given Scope: "+n)},t.createAppendScopeSetError=function(n){return new t(En.appendScopeSetError.code,En.appendScopeSetError.desc+" Detail Error: "+n)},t.createEmptyInputScopeSetError=function(){return new t(En.emptyInputScopeSetError.code,""+En.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(En.DeviceCodePollingCancelled.code,""+En.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(En.DeviceCodeExpired.code,""+En.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(En.DeviceCodeUnknownError.code,""+En.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(En.NoAccountInSilentRequest.code,""+En.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(En.invalidCacheRecord.code,En.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(En.invalidCacheEnvironment.code,En.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(En.noAccountFound.code,En.noAccountFound.desc)},t.createCachePluginError=function(){return new t(En.CachePluginError.code,""+En.CachePluginError.desc)},t.createNoCryptoObjectError=function(n){return new t(En.noCryptoObj.code,""+En.noCryptoObj.desc+n)},t.createInvalidCacheTypeError=function(){return new t(En.invalidCacheType.code,""+En.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(En.unexpectedAccountType.code,""+En.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(En.unexpectedCredentialType.code,""+En.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(En.invalidAssertion.code,""+En.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(En.invalidClientCredential.code,""+En.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(En.tokenRefreshRequired.code,En.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(En.userTimeoutReached.code,En.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(En.tokenClaimsRequired.code,En.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(En.noAuthorizationCodeFromServer.code,En.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(En.bindingKeyNotRemovedError.code,En.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(En.logoutNotSupported.code,En.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(En.keyIdMissing.code,En.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(En.noNetworkConnectivity.code,En.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(En.userCanceledError.code,En.userCanceledError.desc)},t})(Gr);/*! @azure/msal-common v13.3.3 2024-06-06 */var mr=(function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw Ar.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=n.exec(t);if(!r||r.length<4)throw Ar.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));var i={header:r[1],JWSPayload:r[2],JWSSig:r[3]};return i},e.isEmpty=function(t){return typeof t>"u"||!t||t.length===0},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var n=JSON.parse(t);return Object.keys(n).length===0}catch{}return!0},e.startsWith=function(t,n){return t.indexOf(n)===0},e.endsWith=function(t,n){return t.length>=n.length&&t.lastIndexOf(n)===t.length-n.length},e.queryStringToObject=function(t){var n={},r=t.split("&"),i=function(o){return decodeURIComponent(o.replace(/\+/g," "))};return r.forEach(function(o){if(o.trim()){var a=o.split(/=(.+)/g,2),s=a[0],l=a[1];s&&l&&(n[i(s)]=i(l))}}),n},e.trimArrayEntries=function(t){return t.map(function(n){return n.trim()})},e.removeEmptyStringsFromArray=function(t){return t.filter(function(n){return!e.isEmpty(n)})},e.jsonParseHelper=function(t){try{return JSON.parse(t)}catch{return null}},e.matchPattern=function(t,n){var r=new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return r.test(n)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Jl;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"})(Jl||(Jl={}));var lte=(function(){function e(t,n,r){this.level=Jl.Info;var i=function(){},o=t||e.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||i,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level=typeof o.logLevel=="number"?o.logLevel:Jl.Info,this.correlationId=o.correlationId||Mt.EMPTY_STRING,this.packageName=n||Mt.EMPTY_STRING,this.packageVersion=r||Mt.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Jl.Info}},e.prototype.clone=function(t,n,r){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)},e.prototype.logMessage=function(t,n){if(!(n.logLevel>this.level||!this.piiLoggingEnabled&&n.containsPii)){var r=new Date().toUTCString(),i;mr.isEmpty(n.correlationId)?mr.isEmpty(this.correlationId)?i="["+r+"]":i="["+r+"] : ["+this.correlationId+"]":i="["+r+"] : ["+n.correlationId+"]";var o=i+" : "+this.packageName+"@"+this.packageVersion+" : "+Jl[n.logLevel]+" - "+t;this.executeCallback(n.logLevel,o,n.containsPii||!1)}},e.prototype.executeCallback=function(t,n,r){this.localCallback&&this.localCallback(t,n,r)},e.prototype.error=function(t,n){this.logMessage(t,{logLevel:Jl.Error,containsPii:!1,correlationId:n||Mt.EMPTY_STRING})},e.prototype.errorPii=function(t,n){this.logMessage(t,{logLevel:Jl.Error,containsPii:!0,correlationId:n||Mt.EMPTY_STRING})},e.prototype.warning=function(t,n){this.logMessage(t,{logLevel:Jl.Warning,containsPii:!1,correlationId:n||Mt.EMPTY_STRING})},e.prototype.warningPii=function(t,n){this.logMessage(t,{logLevel:Jl.Warning,containsPii:!0,correlationId:n||Mt.EMPTY_STRING})},e.prototype.info=function(t,n){this.logMessage(t,{logLevel:Jl.Info,containsPii:!1,correlationId:n||Mt.EMPTY_STRING})},e.prototype.infoPii=function(t,n){this.logMessage(t,{logLevel:Jl.Info,containsPii:!0,correlationId:n||Mt.EMPTY_STRING})},e.prototype.verbose=function(t,n){this.logMessage(t,{logLevel:Jl.Verbose,containsPii:!1,correlationId:n||Mt.EMPTY_STRING})},e.prototype.verbosePii=function(t,n){this.logMessage(t,{logLevel:Jl.Verbose,containsPii:!0,correlationId:n||Mt.EMPTY_STRING})},e.prototype.trace=function(t,n){this.logMessage(t,{logLevel:Jl.Trace,containsPii:!1,correlationId:n||Mt.EMPTY_STRING})},e.prototype.tracePii=function(t,n){this.logMessage(t,{logLevel:Jl.Trace,containsPii:!0,correlationId:n||Mt.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var eOt="@azure/msal-common",l3e="13.3.3";/*! @azure/msal-common v13.3.3 2024-06-06 */var s6;(function(e){e[e.None=0]="None",e.AzurePublic="https://login.microsoftonline.com",e.AzurePpe="https://login.windows-ppe.net",e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureUsGovernment="https://login.microsoftonline.us"})(s6||(s6={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var qi={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},Gs=(function(e){Ap(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.name="ClientConfigurationError",Object.setPrototypeOf(i,t.prototype),i}return t.createRedirectUriEmptyError=function(){return new t(qi.redirectUriNotSet.code,qi.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(qi.postLogoutUriNotSet.code,qi.postLogoutUriNotSet.desc)},t.createClaimsRequestParsingError=function(n){return new t(qi.claimsRequestParsingError.code,qi.claimsRequestParsingError.desc+" Given value: "+n)},t.createInsecureAuthorityUriError=function(n){return new t(qi.authorityUriInsecure.code,qi.authorityUriInsecure.desc+" Given URI: "+n)},t.createUrlParseError=function(n){return new t(qi.urlParseError.code,qi.urlParseError.desc+" Given Error: "+n)},t.createUrlEmptyError=function(){return new t(qi.urlEmptyError.code,qi.urlEmptyError.desc)},t.createEmptyScopesArrayError=function(){return new t(qi.emptyScopesError.code,""+qi.emptyScopesError.desc)},t.createClientIdSingleScopeError=function(n){return new t(qi.clientIdSingleScopeError.code,qi.clientIdSingleScopeError.desc+" Given Scopes: "+n)},t.createInvalidPromptError=function(n){return new t(qi.invalidPrompt.code,qi.invalidPrompt.desc+" Given value: "+n)},t.createInvalidClaimsRequestError=function(){return new t(qi.invalidClaimsRequest.code,qi.invalidClaimsRequest.desc)},t.createEmptyLogoutRequestError=function(){return new t(qi.logoutRequestEmptyError.code,qi.logoutRequestEmptyError.desc)},t.createEmptyTokenRequestError=function(){return new t(qi.tokenRequestEmptyError.code,qi.tokenRequestEmptyError.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(qi.invalidCodeChallengeMethod.code,qi.invalidCodeChallengeMethod.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(qi.invalidCodeChallengeParams.code,qi.invalidCodeChallengeParams.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(qi.invalidCloudDiscoveryMetadata.code,qi.invalidCloudDiscoveryMetadata.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(qi.invalidAuthorityMetadata.code,qi.invalidAuthorityMetadata.desc)},t.createUntrustedAuthorityError=function(){return new t(qi.untrustedAuthority.code,qi.untrustedAuthority.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(qi.invalidAzureCloudInstance.code,qi.invalidAzureCloudInstance.desc)},t.createMissingSshJwkError=function(){return new t(qi.missingSshJwk.code,qi.missingSshJwk.desc)},t.createMissingSshKidError=function(){return new t(qi.missingSshKid.code,qi.missingSshKid.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(qi.missingNonceAuthenticationHeader.code,qi.missingNonceAuthenticationHeader.desc)},t.createInvalidAuthenticationHeaderError=function(n,r){return new t(qi.invalidAuthenticationHeader.code,qi.invalidAuthenticationHeader.desc+". Invalid header: "+n+". Details: "+r)},t.createAuthorityMismatchError=function(){return new t(qi.authorityMismatch.code,qi.authorityMismatch.desc)},t})(Ar);/*! @azure/msal-common v13.3.3 2024-06-06 */var c0=(function(){function e(t){var n=this,r=t?mr.trimArrayEntries(ste(t)):[],i=r?mr.removeEmptyStringsFromArray(r):[];this.validateInputScopes(i),this.scopes=new Set,i.forEach(function(o){return n.scopes.add(o)})}return e.fromString=function(t){var n=t||Mt.EMPTY_STRING,r=n.split(" ");return new e(r)},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(Mt.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw Gs.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=this.printScopesLowerCase().split(" "),r=new e(n);return mr.isEmpty(t)?!1:r.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(t){var n=this;return!t||t.scopes.size<=0?!1:this.scopes.size>=t.scopes.size&&t.asArray().every(function(r){return n.containsScope(r)})},e.prototype.containsOnlyOIDCScopes=function(){var t=this,n=0;return ZYe.forEach(function(r){t.containsScope(r)&&(n+=1)}),this.scopes.size===n},e.prototype.appendScope=function(t){mr.isEmpty(t)||this.scopes.add(t.trim())},e.prototype.appendScopes=function(t){var n=this;try{t.forEach(function(r){return n.appendScope(r)})}catch(r){throw Ar.createAppendScopeSetError(r)}},e.prototype.removeScope=function(t){if(mr.isEmpty(t))throw Ar.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},e.prototype.removeOIDCScopes=function(){var t=this;ZYe.forEach(function(n){t.scopes.delete(n)})},e.prototype.unionScopeSets=function(t){if(!t)throw Ar.createEmptyInputScopeSetError();var n=new Set;return t.scopes.forEach(function(r){return n.add(r.toLowerCase())}),this.scopes.forEach(function(r){return n.add(r.toLowerCase())}),n},e.prototype.intersectingScopeSets=function(t){if(!t)throw Ar.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var n=this.unionScopeSets(t),r=t.getScopeCount(),i=this.getScopeCount(),o=n.size;return o<i+r},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var t=[];return this.scopes.forEach(function(n){return t.push(n)}),t},e.prototype.printScopes=function(){if(this.scopes){var t=this.asArray();return t.join(" ")}return Mt.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */function BX(e,t){if(mr.isEmpty(e))throw Ar.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(r){throw Ar.createClientInfoDecodingError(r.message)}}function QR(e){if(mr.isEmpty(e))throw Ar.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(Mu.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?Mt.EMPTY_STRING:t[1]}}/*! @azure/msal-common v13.3.3 2024-06-06 */var U1;(function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs",e[e.Dsts=2]="Dsts",e[e.Ciam=3]="Ciam"})(U1||(U1={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var tD;(function(e){e.AAD="AAD",e.OIDC="OIDC"})(tD||(tD={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var M0=(function(){function e(){}return e.prototype.generateAccountId=function(){var t=[this.homeAccountId,this.environment];return t.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType}},e.generateAccountCacheKey=function(t){var n=[t.homeAccountId,t.environment||Mt.EMPTY_STRING,t.tenantId||Mt.EMPTY_STRING];return n.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n){var r=new e;n.authorityType===U1.Adfs?r.authorityType=nO.ADFS_ACCOUNT_TYPE:n.protocolMode===tD.AAD?r.authorityType=nO.MSSTS_ACCOUNT_TYPE:r.authorityType=nO.GENERIC_ACCOUNT_TYPE,r.clientInfo=t.clientInfo,r.homeAccountId=t.homeAccountId,r.nativeAccountId=t.nativeAccountId;var i=t.environment||n&&n.getPreferredCache();if(!i)throw Ar.createInvalidCacheEnvironmentError();if(r.environment=i,r.realm=t.idTokenClaims.tid||Mt.EMPTY_STRING,r.idTokenClaims=t.idTokenClaims,r.localAccountId=t.idTokenClaims.oid||t.idTokenClaims.sub||Mt.EMPTY_STRING,r.authorityType===nO.MSSTS_ACCOUNT_TYPE){var o=t.idTokenClaims.preferred_username,a=t.idTokenClaims.emails?t.idTokenClaims.emails[0]:null;r.username=o||a||""}else r.username=t.idTokenClaims.upn||"";return r.name=t.idTokenClaims.name,r.cloudGraphHostName=t.cloudGraphHostName,r.msGraphHost=t.msGraphHost,r},e.createFromAccountInfo=function(t,n,r){var i=new e;return i.authorityType=t.authorityType||nO.GENERIC_ACCOUNT_TYPE,i.homeAccountId=t.homeAccountId,i.localAccountId=t.localAccountId,i.nativeAccountId=t.nativeAccountId,i.realm=t.tenantId,i.environment=t.environment,i.username=t.username,i.name=t.name,i.idTokenClaims=t.idTokenClaims,i.cloudGraphHostName=n,i.msGraphHost=r,i},e.generateHomeAccountId=function(t,n,r,i,o){var a=o?.sub?o.sub:Mt.EMPTY_STRING;if(n===U1.Adfs||n===U1.Dsts)return a;if(t)try{var s=BX(t,i);if(!mr.isEmpty(s.uid)&&!mr.isEmpty(s.utid))return""+s.uid+Mu.CLIENT_INFO_SEPARATOR+s.utid}catch{}return r.verbose("No client info in response"),a},e.isAccountEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType"):!1},e.accountInfoIsEqual=function(t,n,r){if(!t||!n)return!1;var i=!0;if(r){var o=t.idTokenClaims||{},a=n.idTokenClaims||{};i=o.iat===a.iat&&o.nonce===a.nonce}return t.homeAccountId===n.homeAccountId&&t.localAccountId===n.localAccountId&&t.username===n.username&&t.tenantId===n.tenantId&&t.environment===n.environment&&t.nativeAccountId===n.nativeAccountId&&i},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var jb=(function(){function e(t,n){if(mr.isEmpty(t))throw Ar.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(t,n){var r=mr.decodeAuthToken(t);try{var i=r.JWSPayload,o=n.base64Decode(i);return JSON.parse(o)}catch(a){throw Ar.createTokenParsingError(a)}},e.checkMaxAge=function(t,n){var r=3e5;if(n===0||Date.now()-r>t+n)throw Ar.createMaxAgeTranspiredError()},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var q1=(function(){function e(t,n,r){this.clientId=t,this.cryptoImpl=n,this.commonLogger=r.clone(eOt,l3e)}return e.prototype.getAllAccounts=function(){var t=this,n=this.getAccountKeys();if(n.length<1)return[];var r=n.reduce(function(o,a){var s=t.getAccount(a);return s&&o.push(s),o},[]);if(r.length<1)return[];var i=r.map(function(o){return t.getAccountInfoFromEntity(o)});return i},e.prototype.getAccountInfoFilteredBy=function(t){var n=this.getAccountsFilteredBy(t);return n.length>0?this.getAccountInfoFromEntity(n[0]):null},e.prototype.getAccountInfoFromEntity=function(t){var n=t.getAccountInfo(),r=this.getIdToken(n);return r&&(n.idToken=r.secret,n.idTokenClaims=new jb(r.secret,this.cryptoImpl).claims),n},e.prototype.saveCacheRecord=function(t){return Bi(this,void 0,void 0,function(){return ji(this,function(n){switch(n.label){case 0:if(!t)throw Ar.createNullOrUndefinedCacheRecord();return t.account&&this.setAccount(t.account),t.idToken&&this.setIdTokenCredential(t.idToken),t.accessToken?[4,this.saveAccessToken(t.accessToken)]:[3,2];case 1:n.sent(),n.label=2;case 2:return t.refreshToken&&this.setRefreshTokenCredential(t.refreshToken),t.appMetadata&&this.setAppMetadata(t.appMetadata),[2]}})})},e.prototype.saveAccessToken=function(t){return Bi(this,void 0,void 0,function(){var n,r,i,o,a=this;return ji(this,function(s){switch(s.label){case 0:return n={clientId:t.clientId,credentialType:t.credentialType,environment:t.environment,homeAccountId:t.homeAccountId,realm:t.realm,tokenType:t.tokenType,requestedClaimsHash:t.requestedClaimsHash},r=this.getTokenKeys(),i=c0.fromString(t.target),o=[],r.accessToken.forEach(function(l){if(a.accessTokenKeyMatchesFilter(l,n,!1)){var c=a.getAccessTokenCredential(l);if(c&&a.credentialMatchesFilter(c,n)){var u=c0.fromString(c.target);u.intersectingScopeSets(i)&&o.push(a.removeAccessToken(l))}}}),[4,Promise.all(o)];case 1:return s.sent(),this.setAccessTokenCredential(t),[2]}})})},e.prototype.getAccountsFilteredBy=function(t){var n=this,r=this.getAccountKeys(),i=[];return r.forEach(function(o){if(n.isAccountKey(o,t.homeAccountId,t.realm)){var a=n.getAccount(o);a&&(t.homeAccountId&&!n.matchHomeAccountId(a,t.homeAccountId)||t.localAccountId&&!n.matchLocalAccountId(a,t.localAccountId)||t.username&&!n.matchUsername(a,t.username)||t.environment&&!n.matchEnvironment(a,t.environment)||t.realm&&!n.matchRealm(a,t.realm)||t.nativeAccountId&&!n.matchNativeAccountId(a,t.nativeAccountId)||i.push(a))}}),i},e.prototype.isAccountKey=function(t,n,r){return!(t.split(Mu.CACHE_KEY_SEPARATOR).length<3||n&&!t.toLowerCase().includes(n.toLowerCase())||r&&!t.toLowerCase().includes(r.toLowerCase()))},e.prototype.isCredentialKey=function(t){if(t.split(Mu.CACHE_KEY_SEPARATOR).length<6)return!1;var n=t.toLowerCase();if(n.indexOf(ti.ID_TOKEN.toLowerCase())===-1&&n.indexOf(ti.ACCESS_TOKEN.toLowerCase())===-1&&n.indexOf(ti.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&n.indexOf(ti.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(n.indexOf(ti.REFRESH_TOKEN.toLowerCase())>-1){var r=""+ti.REFRESH_TOKEN+Mu.CACHE_KEY_SEPARATOR+this.clientId+Mu.CACHE_KEY_SEPARATOR,i=""+ti.REFRESH_TOKEN+Mu.CACHE_KEY_SEPARATOR+QF+Mu.CACHE_KEY_SEPARATOR;if(n.indexOf(r.toLowerCase())===-1&&n.indexOf(i.toLowerCase())===-1)return!1}else if(n.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},e.prototype.credentialMatchesFilter=function(t,n){return!(n.clientId&&!this.matchClientId(t,n.clientId)||n.userAssertionHash&&!this.matchUserAssertionHash(t,n.userAssertionHash)||typeof n.homeAccountId=="string"&&!this.matchHomeAccountId(t,n.homeAccountId)||n.environment&&!this.matchEnvironment(t,n.environment)||n.realm&&!this.matchRealm(t,n.realm)||n.credentialType&&!this.matchCredentialType(t,n.credentialType)||n.familyId&&!this.matchFamilyId(t,n.familyId)||n.target&&!this.matchTarget(t,n.target)||(n.requestedClaimsHash||t.requestedClaimsHash)&&t.requestedClaimsHash!==n.requestedClaimsHash||t.credentialType===ti.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(n.tokenType&&!this.matchTokenType(t,n.tokenType)||n.tokenType===Qa.SSH&&n.keyId&&!this.matchKeyId(t,n.keyId)))},e.prototype.getAppMetadataFilteredBy=function(t){return this.getAppMetadataFilteredByInternal(t.environment,t.clientId)},e.prototype.getAppMetadataFilteredByInternal=function(t,n){var r=this,i=this.getKeys(),o={};return i.forEach(function(a){if(r.isAppMetadata(a)){var s=r.getAppMetadata(a);s&&(t&&!r.matchEnvironment(s,t)||n&&!r.matchClientId(s,n)||(o[a]=s))}}),o},e.prototype.getAuthorityMetadataByAlias=function(t){var n=this,r=this.getAuthorityMetadataKeys(),i=null;return r.forEach(function(o){if(!(!n.isAuthorityMetadata(o)||o.indexOf(n.clientId)===-1)){var a=n.getAuthorityMetadata(o);a&&a.aliases.indexOf(t)!==-1&&(i=a)}}),i},e.prototype.removeAllAccounts=function(){return Bi(this,void 0,void 0,function(){var t,n,r=this;return ji(this,function(i){switch(i.label){case 0:return t=this.getAccountKeys(),n=[],t.forEach(function(o){n.push(r.removeAccount(o))}),[4,Promise.all(n)];case 1:return i.sent(),[2]}})})},e.prototype.removeAccount=function(t){return Bi(this,void 0,void 0,function(){var n;return ji(this,function(r){switch(r.label){case 0:if(n=this.getAccount(t),!n)throw Ar.createNoAccountFoundError();return[4,this.removeAccountContext(n)];case 1:return r.sent(),this.removeItem(t),[2]}})})},e.prototype.removeAccountContext=function(t){return Bi(this,void 0,void 0,function(){var n,r,i,o=this;return ji(this,function(a){switch(a.label){case 0:return n=this.getTokenKeys(),r=t.generateAccountId(),i=[],n.idToken.forEach(function(s){s.indexOf(r)===0&&o.removeIdToken(s)}),n.accessToken.forEach(function(s){s.indexOf(r)===0&&i.push(o.removeAccessToken(s))}),n.refreshToken.forEach(function(s){s.indexOf(r)===0&&o.removeRefreshToken(s)}),[4,Promise.all(i)];case 1:return a.sent(),[2]}})})},e.prototype.removeAccessToken=function(t){return Bi(this,void 0,void 0,function(){var n,r,i;return ji(this,function(o){switch(o.label){case 0:if(n=this.getAccessTokenCredential(t),!n)return[2];if(n.credentialType.toLowerCase()!==ti.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(n.tokenType!==Qa.POP)return[3,4];if(r=n,i=r.keyId,!i)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(i)];case 2:return o.sent(),[3,4];case 3:throw o.sent(),Ar.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(t)]}})})},e.prototype.removeAppMetadata=function(){var t=this,n=this.getKeys();return n.forEach(function(r){t.isAppMetadata(r)&&t.removeItem(r)}),!0},e.prototype.readCacheRecord=function(t,n,r){var i=this.getTokenKeys(),o=this.readAccountFromCache(t),a=this.getIdToken(t,i),s=this.getAccessToken(t,n,i),l=this.getRefreshToken(t,!1,i),c=this.readAppMetadataFromCache(r);return o&&a&&(o.idTokenClaims=new jb(a.secret,this.cryptoImpl).claims),{account:o,idToken:a,accessToken:s,refreshToken:l,appMetadata:c}},e.prototype.readAccountFromCache=function(t){var n=M0.generateAccountCacheKey(t);return this.getAccount(n)},e.prototype.getIdToken=function(t,n){var r=this;this.commonLogger.trace("CacheManager - getIdToken called");var i={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:ti.ID_TOKEN,clientId:this.clientId,realm:t.tenantId},o=this.getIdTokensByFilter(i,n),a=o.length;return a<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):a>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),o.forEach(function(s){r.removeIdToken(s.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),o[0])},e.prototype.getIdTokensByFilter=function(t,n){var r=this,i=n&&n.idToken||this.getTokenKeys().idToken,o=[];return i.forEach(function(a){if(r.idTokenKeyMatchesFilter(a,Fa({clientId:r.clientId},t))){var s=r.getIdTokenCredential(a);s&&r.credentialMatchesFilter(s,t)&&o.push(s)}}),o},e.prototype.idTokenKeyMatchesFilter=function(t,n){var r=t.toLowerCase();return!(n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1)},e.prototype.removeIdToken=function(t){this.removeItem(t)},e.prototype.removeRefreshToken=function(t){this.removeItem(t)},e.prototype.getAccessToken=function(t,n,r){var i=this;this.commonLogger.trace("CacheManager - getAccessToken called");var o=c0.createSearchScopes(n.scopes),a=n.authenticationScheme||Qa.BEARER,s=a&&a.toLowerCase()!==Qa.BEARER.toLowerCase()?ti.ACCESS_TOKEN_WITH_AUTH_SCHEME:ti.ACCESS_TOKEN,l={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:s,clientId:this.clientId,realm:t.tenantId,target:o,tokenType:a,keyId:n.sshKid,requestedClaimsHash:n.requestedClaimsHash},c=r&&r.accessToken||this.getTokenKeys().accessToken,u=[];c.forEach(function(p){if(i.accessTokenKeyMatchesFilter(p,l,!0)){var h=i.getAccessTokenCredential(p);h&&i.credentialMatchesFilter(h,l)&&u.push(h)}});var d=u.length;return d<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):d>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),u.forEach(function(p){i.removeAccessToken(p.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0])},e.prototype.accessTokenKeyMatchesFilter=function(t,n,r){var i=t.toLowerCase();if(n.clientId&&i.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&i.indexOf(n.homeAccountId.toLowerCase())===-1||n.realm&&i.indexOf(n.realm.toLowerCase())===-1||n.requestedClaimsHash&&i.indexOf(n.requestedClaimsHash.toLowerCase())===-1)return!1;if(n.target)for(var o=n.target.asArray(),a=0;a<o.length;a++){if(r&&!i.includes(o[a].toLowerCase()))return!1;if(!r&&i.includes(o[a].toLowerCase()))return!0}return!0},e.prototype.getAccessTokensByFilter=function(t){var n=this,r=this.getTokenKeys(),i=[];return r.accessToken.forEach(function(o){if(n.accessTokenKeyMatchesFilter(o,t,!0)){var a=n.getAccessTokenCredential(o);a&&n.credentialMatchesFilter(a,t)&&i.push(a)}}),i},e.prototype.getRefreshToken=function(t,n,r){var i=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var o=n?QF:void 0,a={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:ti.REFRESH_TOKEN,clientId:this.clientId,familyId:o},s=r&&r.refreshToken||this.getTokenKeys().refreshToken,l=[];s.forEach(function(u){if(i.refreshTokenKeyMatchesFilter(u,a)){var d=i.getRefreshTokenCredential(u);d&&i.credentialMatchesFilter(d,a)&&l.push(d)}});var c=l.length;return c<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])},e.prototype.refreshTokenKeyMatchesFilter=function(t,n){var r=t.toLowerCase();return!(n.familyId&&r.indexOf(n.familyId.toLowerCase())===-1||!n.familyId&&n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1)},e.prototype.readAppMetadataFromCache=function(t){var n={environment:t,clientId:this.clientId},r=this.getAppMetadataFilteredBy(n),i=Object.keys(r).map(function(a){return r[a]}),o=i.length;if(o<1)return null;if(o>1)throw Ar.createMultipleMatchingAppMetadataInCacheError();return i[0]},e.prototype.isAppMetadataFOCI=function(t){var n=this.readAppMetadataFromCache(t);return!!(n&&n.familyId===QF)},e.prototype.matchHomeAccountId=function(t,n){return typeof t.homeAccountId=="string"&&n===t.homeAccountId},e.prototype.matchLocalAccountId=function(t,n){return typeof t.localAccountId=="string"&&n===t.localAccountId},e.prototype.matchUsername=function(t,n){return typeof t.username=="string"&&n.toLowerCase()===t.username.toLowerCase()},e.prototype.matchUserAssertionHash=function(t,n){return!!(t.userAssertionHash&&n===t.userAssertionHash)},e.prototype.matchEnvironment=function(t,n){var r=this.getAuthorityMetadataByAlias(n);return!!(r&&r.aliases.indexOf(t.environment)>-1)},e.prototype.matchCredentialType=function(t,n){return t.credentialType&&n.toLowerCase()===t.credentialType.toLowerCase()},e.prototype.matchClientId=function(t,n){return!!(t.clientId&&n===t.clientId)},e.prototype.matchFamilyId=function(t,n){return!!(t.familyId&&n===t.familyId)},e.prototype.matchRealm=function(t,n){return!!(t.realm&&n===t.realm)},e.prototype.matchNativeAccountId=function(t,n){return!!(t.nativeAccountId&&n===t.nativeAccountId)},e.prototype.matchTarget=function(t,n){var r=t.credentialType!==ti.ACCESS_TOKEN&&t.credentialType!==ti.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(r||!t.target)return!1;var i=c0.fromString(t.target);return i.containsScopeSet(n)},e.prototype.matchTokenType=function(t,n){return!!(t.tokenType&&t.tokenType===n)},e.prototype.matchKeyId=function(t,n){return!!(t.keyId&&t.keyId===n)},e.prototype.isAppMetadata=function(t){return t.indexOf(n2e)!==-1},e.prototype.isAuthorityMetadata=function(t){return t.indexOf(ZF.CACHE_KEY)!==-1},e.prototype.generateAuthorityMetadataCacheKey=function(t){return ZF.CACHE_KEY+"-"+this.clientId+"-"+t},e.toObject=function(t,n){for(var r in n)t[r]=n[r];return t},e})(),jvi=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setAccount=function(){var n="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAccount=function(){var n="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setIdTokenCredential=function(){var n="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getIdTokenCredential=function(){var n="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setAccessTokenCredential=function(){var n="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAccessTokenCredential=function(){var n="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setRefreshTokenCredential=function(){var n="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getRefreshTokenCredential=function(){var n="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setAppMetadata=function(){var n="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAppMetadata=function(){var n="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setServerTelemetry=function(){var n="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getServerTelemetry=function(){var n="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setAuthorityMetadata=function(){var n="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAuthorityMetadata=function(){var n="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAuthorityMetadataKeys=function(){var n="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setThrottlingCache=function(){var n="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getThrottlingCache=function(){var n="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.removeItem=function(){var n="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.containsKey=function(){var n="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getKeys=function(){var n="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAccountKeys=function(){var n="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getTokenKeys=function(){var n="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.clear=function(){return Bi(this,void 0,void 0,function(){var n;return ji(this,function(r){throw n="Storage interface - clear() has not been implemented for the cacheStorage interface.",Gr.createUnexpectedError(n)})})},t.prototype.updateCredentialCacheKey=function(){var n="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t})(q1);/*! @azure/msal-common v13.3.3 2024-06-06 */var Hvi=300,tOt={tokenRenewalOffsetSeconds:Hvi,preventCorsPreflight:!1},Vvi={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Jl.Info,correlationId:Mt.EMPTY_STRING},Gvi={claimsBasedCachingEnabled:!0},$vi={sendGetRequestAsync:function(){return Bi(this,void 0,void 0,function(){var e;return ji(this,function(t){throw e="Network interface - sendGetRequestAsync() has not been implemented",Gr.createUnexpectedError(e)})})},sendPostRequestAsync:function(){return Bi(this,void 0,void 0,function(){var e;return ji(this,function(t){throw e="Network interface - sendPostRequestAsync() has not been implemented",Gr.createUnexpectedError(e)})})}},Uvi={sku:Mt.SKU,version:l3e,cpu:Mt.EMPTY_STRING,os:Mt.EMPTY_STRING},Xvi={clientSecret:Mt.EMPTY_STRING,clientAssertion:void 0},Yvi={azureCloudInstance:s6.None,tenant:""+Mt.DEFAULT_COMMON_TENANT},Kvi={application:{appName:"",appVersion:""}};function Qvi(e){var t=e.authOptions,n=e.systemOptions,r=e.loggerOptions,i=e.cacheOptions,o=e.storageInterface,a=e.networkInterface,s=e.cryptoInterface,l=e.clientCredentials,c=e.libraryInfo,u=e.telemetry,d=e.serverTelemetryManager,p=e.persistencePlugin,h=e.serializableCache,g=Fa(Fa({},Vvi),r);return{authOptions:Zvi(t),systemOptions:Fa(Fa({},tOt),n),loggerOptions:g,cacheOptions:Fa(Fa({},Gvi),i),storageInterface:o||new jvi(t.clientId,qX,new lte(g)),networkInterface:a||$vi,cryptoInterface:s||qX,clientCredentials:l||Xvi,libraryInfo:Fa(Fa({},Uvi),c),telemetry:Fa(Fa({},Kvi),u),serverTelemetryManager:d||null,persistencePlugin:p||null,serializableCache:h||null}}function Zvi(e){return Fa({clientCapabilities:[],azureCloudOptions:Yvi,skipAuthorityMetadataCache:!1},e)}/*! @azure/msal-common v13.3.3 2024-06-06 */var d3=(function(e){Ap(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return t})(Gr);/*! @azure/msal-common v13.3.3 2024-06-06 */var jX=(function(){function e(){}return e.generateThrottlingStorageKey=function(t){return JF.THROTTLING_PREFIX+"."+JSON.stringify(t)},e.preProcess=function(t,n){var r,i=e.generateThrottlingStorageKey(n),o=t.getThrottlingCache(i);if(o){if(o.throttleTime<Date.now()){t.removeItem(i);return}throw new d3(((r=o.errorCodes)===null||r===void 0?void 0:r.join(" "))||Mt.EMPTY_STRING,o.errorMessage,o.subError)}},e.postProcess=function(t,n,r){if(e.checkResponseStatus(r)||e.checkResponseForRetryAfter(r)){var i={throttleTime:e.calculateThrottleTime(parseInt(r.headers[ah.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(n),i)}},e.checkResponseStatus=function(t){return t.status===429||t.status>=500&&t.status<600},e.checkResponseForRetryAfter=function(t){return t.headers?t.headers.hasOwnProperty(ah.RETRY_AFTER)&&(t.status<200||t.status>=300):!1},e.calculateThrottleTime=function(t){var n=t<=0?0:t,r=Date.now()/1e3;return Math.floor(Math.min(r+(n||JF.DEFAULT_THROTTLE_TIME_SECONDS),r+JF.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},e.removeThrottle=function(t,n,r,i){var o={clientId:n,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:i,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},a=this.generateThrottlingStorageKey(o);t.removeItem(a)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Jvi=(function(){function e(t,n){this.networkClient=t,this.cacheManager=n}return e.prototype.sendPostRequest=function(t,n,r){return Bi(this,void 0,void 0,function(){var i,o;return ji(this,function(a){switch(a.label){case 0:jX.preProcess(this.cacheManager,t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(n,r)];case 2:return i=a.sent(),[3,4];case 3:throw o=a.sent(),o instanceof Gr?o:Ar.createNetworkError(n,o);case 4:return jX.postProcess(this.cacheManager,t,i),[2,i]}})})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var th;(function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"})(th||(th={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var HA=(function(){function e(){}return e.validateRedirectUri=function(t){if(mr.isEmpty(t))throw Gs.createRedirectUriEmptyError()},e.validatePrompt=function(t){var n=[];for(var r in g0)n.push(g0[r]);if(n.indexOf(t)<0)throw Gs.createInvalidPromptError(t)},e.validateClaims=function(t){try{JSON.parse(t)}catch{throw Gs.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(t,n){if(mr.isEmpty(t)||mr.isEmpty(n))throw Gs.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(n)},e.validateCodeChallengeMethod=function(t){if([JYe.PLAIN,JYe.S256].indexOf(t)<0)throw Gs.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(t,n){return t?(n.forEach(function(r,i){t[i]&&delete t[i]}),Object.fromEntries(Object.entries(t).filter(function(r){var i=r[1];return i!==""}))):{}},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var tW=(function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(Ji.RESPONSE_TYPE,encodeURIComponent(Mt.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Ji.RESPONSE_TYPE,encodeURIComponent(Mt.TOKEN_RESPONSE_TYPE+" "+Mt.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(t){this.parameters.set(Ji.RESPONSE_MODE,encodeURIComponent(t||NX.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(Ji.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(t,n){n===void 0&&(n=!0);var r=n?ste(t||[],bj):t||[],i=new c0(r);this.parameters.set(Ji.SCOPE,encodeURIComponent(i.printScopes()))},e.prototype.addClientId=function(t){this.parameters.set(Ji.CLIENT_ID,encodeURIComponent(t))},e.prototype.addRedirectUri=function(t){HA.validateRedirectUri(t),this.parameters.set(Ji.REDIRECT_URI,encodeURIComponent(t))},e.prototype.addPostLogoutRedirectUri=function(t){HA.validateRedirectUri(t),this.parameters.set(Ji.POST_LOGOUT_URI,encodeURIComponent(t))},e.prototype.addIdTokenHint=function(t){this.parameters.set(Ji.ID_TOKEN_HINT,encodeURIComponent(t))},e.prototype.addDomainHint=function(t){this.parameters.set(YF.DOMAIN_HINT,encodeURIComponent(t))},e.prototype.addLoginHint=function(t){this.parameters.set(YF.LOGIN_HINT,encodeURIComponent(t))},e.prototype.addCcsUpn=function(t){this.parameters.set(ah.CCS_HEADER,encodeURIComponent("UPN:"+t))},e.prototype.addCcsOid=function(t){this.parameters.set(ah.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},e.prototype.addSid=function(t){this.parameters.set(YF.SID,encodeURIComponent(t))},e.prototype.addClaims=function(t,n){var r=this.addClientCapabilitiesToClaims(t,n);HA.validateClaims(r),this.parameters.set(Ji.CLAIMS,encodeURIComponent(r))},e.prototype.addCorrelationId=function(t){this.parameters.set(Ji.CLIENT_REQUEST_ID,encodeURIComponent(t))},e.prototype.addLibraryInfo=function(t){this.parameters.set(Ji.X_CLIENT_SKU,t.sku),this.parameters.set(Ji.X_CLIENT_VER,t.version),t.os&&this.parameters.set(Ji.X_CLIENT_OS,t.os),t.cpu&&this.parameters.set(Ji.X_CLIENT_CPU,t.cpu)},e.prototype.addApplicationTelemetry=function(t){t?.appName&&this.parameters.set(Ji.X_APP_NAME,t.appName),t?.appVersion&&this.parameters.set(Ji.X_APP_VER,t.appVersion)},e.prototype.addPrompt=function(t){HA.validatePrompt(t),this.parameters.set(""+Ji.PROMPT,encodeURIComponent(t))},e.prototype.addState=function(t){mr.isEmpty(t)||this.parameters.set(Ji.STATE,encodeURIComponent(t))},e.prototype.addNonce=function(t){this.parameters.set(Ji.NONCE,encodeURIComponent(t))},e.prototype.addCodeChallengeParams=function(t,n){if(HA.validateCodeChallengeParams(t,n),t&&n)this.parameters.set(Ji.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(Ji.CODE_CHALLENGE_METHOD,encodeURIComponent(n));else throw Gs.createInvalidCodeChallengeParamsError()},e.prototype.addAuthorizationCode=function(t){this.parameters.set(Ji.CODE,encodeURIComponent(t))},e.prototype.addDeviceCode=function(t){this.parameters.set(Ji.DEVICE_CODE,encodeURIComponent(t))},e.prototype.addRefreshToken=function(t){this.parameters.set(Ji.REFRESH_TOKEN,encodeURIComponent(t))},e.prototype.addCodeVerifier=function(t){this.parameters.set(Ji.CODE_VERIFIER,encodeURIComponent(t))},e.prototype.addClientSecret=function(t){this.parameters.set(Ji.CLIENT_SECRET,encodeURIComponent(t))},e.prototype.addClientAssertion=function(t){mr.isEmpty(t)||this.parameters.set(Ji.CLIENT_ASSERTION,encodeURIComponent(t))},e.prototype.addClientAssertionType=function(t){mr.isEmpty(t)||this.parameters.set(Ji.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},e.prototype.addOboAssertion=function(t){this.parameters.set(Ji.OBO_ASSERTION,encodeURIComponent(t))},e.prototype.addRequestTokenUse=function(t){this.parameters.set(Ji.REQUESTED_TOKEN_USE,encodeURIComponent(t))},e.prototype.addGrantType=function(t){this.parameters.set(Ji.GRANT_TYPE,encodeURIComponent(t))},e.prototype.addClientInfo=function(){this.parameters.set(Bvi,"1")},e.prototype.addExtraQueryParameters=function(t){var n=this,r=HA.sanitizeEQParams(t,this.parameters);Object.keys(r).forEach(function(i){n.parameters.set(i,t[i])})},e.prototype.addClientCapabilitiesToClaims=function(t,n){var r;if(!t)r={};else try{r=JSON.parse(t)}catch{throw Gs.createInvalidClaimsRequestError()}return n&&n.length>0&&(r.hasOwnProperty(YR.ACCESS_TOKEN)||(r[YR.ACCESS_TOKEN]={}),r[YR.ACCESS_TOKEN][YR.XMS_CC]={values:n}),JSON.stringify(r)},e.prototype.addUsername=function(t){this.parameters.set(WX.username,encodeURIComponent(t))},e.prototype.addPassword=function(t){this.parameters.set(WX.password,encodeURIComponent(t))},e.prototype.addPopToken=function(t){mr.isEmpty(t)||(this.parameters.set(Ji.TOKEN_TYPE,Qa.POP),this.parameters.set(Ji.REQ_CNF,encodeURIComponent(t)))},e.prototype.addSshJwk=function(t){mr.isEmpty(t)||(this.parameters.set(Ji.TOKEN_TYPE,Qa.SSH),this.parameters.set(Ji.REQ_CNF,encodeURIComponent(t)))},e.prototype.addServerTelemetry=function(t){this.parameters.set(Ji.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(Ji.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(Ji.X_MS_LIB_CAPABILITY,JF.X_MS_LIB_CAPABILITY_VALUE)},e.prototype.addLogoutHint=function(t){this.parameters.set(Ji.LOGOUT_HINT,encodeURIComponent(t))},e.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(n,r){t.push(r+"="+n)}),t.join("&")},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var c3e=(function(){function e(t,n){this.config=Qvi(t),this.logger=new lte(this.config.loggerOptions,eOt,l3e),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new Jvi(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}return e.prototype.createTokenRequestHeaders=function(t){var n={};if(n[ah.CONTENT_TYPE]=Mt.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case th.HOME_ACCOUNT_ID:try{var r=QR(t.credential);n[ah.CCS_HEADER]="Oid:"+r.uid+"@"+r.utid}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case th.UPN:n[ah.CCS_HEADER]="UPN: "+t.credential;break}return n},e.prototype.executePostToTokenEndpoint=function(t,n,r,i){return Bi(this,void 0,void 0,function(){var o;return ji(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(i,t,{body:n,headers:r})];case 1:return o=a.sent(),this.config.serverTelemetryManager&&o.status<500&&o.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},e.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw Ar.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},e.prototype.createTokenQueryParameters=function(t){var n=new tW;return t.tokenQueryParameters&&n.addExtraQueryParameters(t.tokenQueryParameters),n.createQueryString()},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var u3e=(function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},e.prototype.generateType=function(){switch(this.credentialType){case ti.ID_TOKEN:return KF.ID_TOKEN;case ti.ACCESS_TOKEN:case ti.ACCESS_TOKEN_WITH_AUTH_SCHEME:return KF.ACCESS_TOKEN;case ti.REFRESH_TOKEN:return KF.REFRESH_TOKEN;default:throw Ar.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(t,n,r,i,o,a,s,l,c){var u=[this.generateAccountIdForCacheKey(t,n),this.generateCredentialIdForCacheKey(r,i,o,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(l)];return u.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(t,n){var r=[t,n];return r.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(t,n,r,i){var o=t===ti.REFRESH_TOKEN&&i||n,a=[t,o,r||Mt.EMPTY_STRING];return a.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(t){return(t||Mt.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(t){return(t||Mt.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==Qa.BEARER.toLowerCase()?t.toLowerCase():Mt.EMPTY_STRING},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var ex=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createIdTokenEntity=function(n,r,i,o,a){var s=new t;return s.credentialType=ti.ID_TOKEN,s.homeAccountId=n,s.environment=r,s.clientId=o,s.secret=i,s.realm=a,s},t.isIdTokenEntity=function(n){return n?n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("realm")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")&&n.credentialType===ti.ID_TOKEN:!1},t})(u3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var Pf=(function(){function e(){}return e.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0,i=e.nowSeconds()+n;return i>r},e.wasClockTurnedBack=function(t){var n=Number(t);return n>e.nowSeconds()},e.delay=function(t,n){return new Promise(function(r){return setTimeout(function(){return r(n)},t)})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var tx=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createAccessTokenEntity=function(n,r,i,o,a,s,l,c,u,d,p,h,g,m,b){var y,M,C=new t;C.homeAccountId=n,C.credentialType=ti.ACCESS_TOKEN,C.secret=i;var x=Pf.nowSeconds();if(C.cachedAt=x.toString(),C.expiresOn=l.toString(),C.extendedExpiresOn=c.toString(),d&&(C.refreshOn=d.toString()),C.environment=r,C.clientId=o,C.realm=a,C.target=s,C.userAssertionHash=h,C.tokenType=mr.isEmpty(p)?Qa.BEARER:p,m&&(C.requestedClaims=m,C.requestedClaimsHash=b),((y=C.tokenType)===null||y===void 0?void 0:y.toLowerCase())!==Qa.BEARER.toLowerCase())switch(C.credentialType=ti.ACCESS_TOKEN_WITH_AUTH_SCHEME,C.tokenType){case Qa.POP:var w=jb.extractTokenClaims(i,u);if(!(!((M=w?.cnf)===null||M===void 0)&&M.kid))throw Ar.createTokenClaimsRequiredError();C.keyId=w.cnf.kid;break;case Qa.SSH:C.keyId=g}return C},t.isAccessTokenEntity=function(n){return n?n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("realm")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")&&n.hasOwnProperty("target")&&(n.credentialType===ti.ACCESS_TOKEN||n.credentialType===ti.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},t})(u3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var ZR=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createRefreshTokenEntity=function(n,r,i,o,a,s){var l=new t;return l.clientId=o,l.credentialType=ti.REFRESH_TOKEN,l.environment=r,l.homeAccountId=n,l.secret=i,l.userAssertionHash=s,a&&(l.familyId=a),l},t.isRefreshTokenEntity=function(n){return n?n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")&&n.credentialType===ti.REFRESH_TOKEN:!1},t})(u3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var tKe=["interaction_required","consent_required","login_required"],ebi=["message_only","additional_action","basic_action","user_password_expired","consent_required"],JR={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},om=(function(e){Ap(t,e);function t(n,r,i,o,a,s,l){var c=e.call(this,n,r,i)||this;return Object.setPrototypeOf(c,t.prototype),c.timestamp=o||Mt.EMPTY_STRING,c.traceId=a||Mt.EMPTY_STRING,c.correlationId=s||Mt.EMPTY_STRING,c.claims=l||Mt.EMPTY_STRING,c.name="InteractionRequiredAuthError",c}return t.isInteractionRequiredError=function(n,r,i){var o=!!n&&tKe.indexOf(n)>-1,a=!!i&&ebi.indexOf(i)>-1,s=!!r&&tKe.some(function(l){return r.indexOf(l)>-1});return o||s||a},t.createNoTokensFoundError=function(){return new t(JR.noTokensFoundError.code,JR.noTokensFoundError.desc)},t.createNativeAccountUnavailableError=function(){return new t(JR.native_account_unavailable.code,JR.native_account_unavailable.desc)},t})(Gr);/*! @azure/msal-common v13.3.3 2024-06-06 */var GI=(function(){function e(t,n,r,i,o){this.account=t||null,this.idToken=n||null,this.accessToken=r||null,this.refreshToken=i||null,this.appMetadata=o||null}return e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Ny=(function(){function e(){}return e.setRequestState=function(t,n,r){var i=e.generateLibraryState(t,r);return mr.isEmpty(n)?i:""+i+Mt.RESOURCE_DELIM+n},e.generateLibraryState=function(t,n){if(!t)throw Ar.createNoCryptoObjectError("generateLibraryState");var r={id:t.createNewGuid()};n&&(r.meta=n);var i=JSON.stringify(r);return t.base64Encode(i)},e.parseRequestState=function(t,n){if(!t)throw Ar.createNoCryptoObjectError("parseRequestState");if(mr.isEmpty(n))throw Ar.createInvalidStateError(n,"Null, undefined or empty state");try{var r=n.split(Mt.RESOURCE_DELIM),i=r[0],o=r.length>1?r.slice(1).join(Mt.RESOURCE_DELIM):Mt.EMPTY_STRING,a=t.base64Decode(i),s=JSON.parse(a);return{userRequestState:mr.isEmpty(o)?Mt.EMPTY_STRING:o,libraryState:s}}catch(l){throw Ar.createInvalidStateError(n,l)}},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var aa=(function(){function e(t){if(this._urlString=t,mr.isEmpty(this._urlString))throw Gs.createUrlEmptyError();mr.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(t){if(t){var n=t.toLowerCase();return mr.endsWith(n,"?")?n=n.slice(0,-1):mr.endsWith(n,"?/")&&(n=n.slice(0,-2)),mr.endsWith(n,"/")||(n+="/"),n}return t},e.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(n){throw Gs.createUrlParseError(n)}if(!t.HostNameAndPort||!t.PathSegments)throw Gs.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||t.Protocol.toLowerCase()!=="https:")throw Gs.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(t,n){return mr.isEmpty(n)?t:t.indexOf("?")<0?t+"?"+n:t+"&"+n},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var n=this.getUrlComponents(),r=n.PathSegments;return t&&r.length!==0&&(r[0]===cz.COMMON||r[0]===cz.ORGANIZATIONS)&&(r[0]=t),e.constructAuthorityUriFromObject(n)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=this.urlString.match(t);if(!n)throw Gs.createUrlParseError("Given url string: "+this.urlString);var r={Protocol:n[1],HostNameAndPort:n[4],AbsolutePath:n[5],QueryString:n[7]},i=r.AbsolutePath.split("/");return i=i.filter(function(o){return o&&o.length>0}),r.PathSegments=i,!mr.isEmpty(r.QueryString)&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r},e.getDomainFromUrl=function(t){var n=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=t.match(n);if(!r)throw Gs.createUrlParseError("Given url string: "+t);return r[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===Mt.FORWARD_SLASH){var r=new e(n),i=r.getUrlComponents();return i.Protocol+"//"+i.HostNameAndPort+t}return t},e.parseHash=function(t){var n=t.indexOf("#"),r=t.indexOf("#/");return r>-1?t.substring(r+2):n>-1?t.substring(n+1):Mt.EMPTY_STRING},e.parseQueryString=function(t){var n=t.indexOf("?"),r=t.indexOf("/?");return r>-1?t.substring(r+2):n>-1?t.substring(n+1):Mt.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(mr.isEmpty(t))return{};var n=e.parseHash(t),r=mr.queryStringToObject(mr.isEmpty(n)?t:n);if(!r)throw Ar.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(mr.isEmpty(t))return{};var n=e.parseQueryString(t),r=mr.queryStringToObject(mr.isEmpty(n)?t:n);if(!r)throw Ar.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(mr.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Xt;(function(e){e.AcquireTokenByCode="acquireTokenByCode",e.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",e.AcquireTokenSilent="acquireTokenSilent",e.AcquireTokenSilentAsync="acquireTokenSilentAsync",e.AcquireTokenPopup="acquireTokenPopup",e.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",e.CryptoOptsSignJwt="cryptoOptsSignJwt",e.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",e.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",e.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",e.SsoSilent="ssoSilent",e.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",e.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",e.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",e.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",e.BrokerHandhshake="brokerHandshake",e.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",e.AcquireTokenByBroker="acquireTokenByBroker",e.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",e.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",e.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",e.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",e.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",e.AcquireTokenFromCache="acquireTokenFromCache",e.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",e.InitializeBaseRequest="initializeBaseRequest",e.InitializeSilentRequest="initializeSilentRequest",e.InitializeClientApplication="initializeClientApplication",e.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",e.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",e.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",e.SilentHandlerLoadFrame="silentHandlerLoadFrame",e.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",e.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",e.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",e.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",e.GetAuthCodeUrl="getAuthCodeUrl",e.HandleCodeResponseFromServer="handleCodeResponseFromServer",e.HandleCodeResponseFromHash="handleCodeResponseFromHash",e.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",e.AuthClientAcquireToken="authClientAcquireToken",e.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",e.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",e.AuthClientCreateQueryString="authClientCreateQueryString",e.PopTokenGenerateCnf="popTokenGenerateCnf",e.PopTokenGenerateKid="popTokenGenerateKid",e.HandleServerTokenResponse="handleServerTokenResponse",e.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",e.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",e.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",e.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",e.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",e.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",e.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",e.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",e.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",e.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",e.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",e.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",e.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",e.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",e.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",e.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",e.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",e.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(Xt||(Xt={}));var HX;(function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"})(HX||(HX={}));var tbi=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.3 2024-06-06 */var i2e;(function(e){e.SW="sw",e.UHW="uhw"})(i2e||(i2e={}));var nD=(function(){function e(t,n){this.cryptoUtils=t,this.performanceClient=n}return e.prototype.generateCnf=function(t){var n,r;return Bi(this,void 0,void 0,function(){var i,o,a;return ji(this,function(s){switch(s.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.PopTokenGenerateCnf,t.correlationId),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Xt.PopTokenGenerateKid,t.correlationId),[4,this.generateKid(t)];case 1:return i=s.sent(),o=this.cryptoUtils.base64Encode(JSON.stringify(i)),a={kid:i.kid,reqCnfString:o},[4,this.cryptoUtils.hashString(o)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},e.prototype.generateKid=function(t){var n;return Bi(this,void 0,void 0,function(){var r;return ji(this,function(i){switch(i.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.PopTokenGenerateKid,t.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return r=i.sent(),[2,{kid:r,xms_ksl:i2e.SW}]}})})},e.prototype.signPopToken=function(t,n,r){return Bi(this,void 0,void 0,function(){return ji(this,function(i){return[2,this.signPayload(t,n,r)]})})},e.prototype.signPayload=function(t,n,r,i){return Bi(this,void 0,void 0,function(){var o,a,s,l,c,u;return ji(this,function(d){switch(d.label){case 0:return o=r.resourceRequestMethod,a=r.resourceRequestUri,s=r.shrClaims,l=r.shrNonce,c=a?new aa(a):void 0,u=c?.getUrlComponents(),[4,this.cryptoUtils.signJwt(Fa({at:t,ts:Pf.nowSeconds(),m:o?.toUpperCase(),u:u?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:u?.AbsolutePath,q:u?.QueryString?[[],u.QueryString]:void 0,client_claims:s||void 0},i),n,r.correlationId)];case 1:return[2,d.sent()]}})})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var o2e=(function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(t,n){var r=[n2e,t,n];return r.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var i=new e;return i.clientId=t,i.environment=n,r&&(i.familyId=r),i},e.isAppMetadataEntity=function(t,n){return n?t.indexOf(n2e)===0&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("environment"):!1},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var nbi=(function(){function e(t,n){this.cache=t,this.hasChanged=n}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var VX=(function(){function e(t,n,r,i,o,a,s){this.clientId=t,this.cacheStorage=n,this.cryptoObj=r,this.logger=i,this.serializableCache=o,this.persistencePlugin=a,this.performanceClient=s}return e.prototype.validateServerAuthorizationCodeResponse=function(t,n,r){if(!t.state||!n)throw t.state?Ar.createStateNotFoundError("Cached State"):Ar.createStateNotFoundError("Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(n))throw Ar.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw om.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new om(t.error||Mt.EMPTY_STRING,t.error_description,t.suberror,t.timestamp||Mt.EMPTY_STRING,t.trace_id||Mt.EMPTY_STRING,t.correlation_id||Mt.EMPTY_STRING,t.claims||Mt.EMPTY_STRING):new d3(t.error||Mt.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&BX(t.client_info,r)},e.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(om.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new om(t.error,t.error_description,t.suberror,t.timestamp||Mt.EMPTY_STRING,t.trace_id||Mt.EMPTY_STRING,t.correlation_id||Mt.EMPTY_STRING,t.claims||Mt.EMPTY_STRING);var n=t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id;throw new d3(t.error,n,t.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,i,o,a,s,l,c){var u;return Bi(this,void 0,void 0,function(){var d,p,h,g,m,b,y;return ji(this,function(M){switch(M.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(Xt.HandleServerTokenResponse,t.correlation_id),t.id_token){if(d=new jb(t.id_token||Mt.EMPTY_STRING,this.cryptoObj),o&&!mr.isEmpty(o.nonce)&&d.claims.nonce!==o.nonce)throw Ar.createNonceMismatchError();if(i.maxAge||i.maxAge===0){if(p=d.claims.auth_time,!p)throw Ar.createAuthTimeNotFoundError();jb.checkMaxAge(p,i.maxAge)}}this.homeAccountIdentifier=M0.generateHomeAccountId(t.client_info||Mt.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,d?.claims),o&&o.state&&(h=Ny.parseRequestState(this.cryptoObj,o.state)),t.key_id=t.key_id||i.sshKid||void 0,g=this.generateCacheRecord(t,n,r,i,d,a,o),M.label=1;case 1:return M.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new nbi(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:M.sent(),M.label=3;case 3:return s&&!l&&g.account&&(b=g.account.generateAccountKey(),y=this.cacheStorage.getAccount(b),!y)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,g,!1,i,d,h,void 0,c)]):[4,this.cacheStorage.saveCacheRecord(g)];case 4:return M.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:M.sent(),M.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,g,!1,i,d,h,t,c)]}})})},e.prototype.generateCacheRecord=function(t,n,r,i,o,a,s){var l=n.getPreferredCache();if(mr.isEmpty(l))throw Ar.createInvalidCacheEnvironmentError();var c,u;!mr.isEmpty(t.id_token)&&o&&(c=ex.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||Mt.EMPTY_STRING,this.clientId,o.claims.tid||Mt.EMPTY_STRING),u=M0.createAccount({homeAccountId:this.homeAccountIdentifier,idTokenClaims:o.claims,clientInfo:t.client_info||Mt.EMPTY_STRING,cloudGraphHostName:s?.cloud_graph_host_name,msGraphHost:s?.msgraph_host},n));var d=null;if(!mr.isEmpty(t.access_token)){var p=t.scope?c0.fromString(t.scope):new c0(i.scopes||[]),h=(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,g=(typeof t.ext_expires_in=="string"?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,m=(typeof t.refresh_in=="string"?parseInt(t.refresh_in,10):t.refresh_in)||void 0,b=r+h,y=b+g,M=m&&m>0?r+m:void 0;d=tx.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||Mt.EMPTY_STRING,this.clientId,o?o.claims.tid||Mt.EMPTY_STRING:n.tenant,p.printScopes(),b,y,this.cryptoObj,M,t.token_type,a,t.key_id,i.claims,i.requestedClaimsHash)}var C=null;mr.isEmpty(t.refresh_token)||(C=ZR.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||Mt.EMPTY_STRING,this.clientId,t.foci,a));var x=null;return mr.isEmpty(t.foci)||(x=o2e.createAppMetadataEntity(this.clientId,l,t.foci)),new GI(u,c,d,C,x)},e.generateAuthenticationResult=function(t,n,r,i,o,a,s,l,c){var u,d,p;return Bi(this,void 0,void 0,function(){var h,g,m,b,y,M,C,x,w,S,A;return ji(this,function(z){switch(z.label){case 0:if(h=Mt.EMPTY_STRING,g=[],m=null,y=Mt.EMPTY_STRING,!r.accessToken)return[3,4];if(r.accessToken.tokenType!==Qa.POP)return[3,2];if(M=new nD(t),C=r.accessToken,x=C.secret,w=C.keyId,!w)throw Ar.createKeyIdMissingError();return[4,M.signPopToken(x,w,o)];case 1:return h=z.sent(),[3,3];case 2:h=r.accessToken.secret,z.label=3;case 3:g=c0.fromString(r.accessToken.target).asArray(),m=new Date(Number(r.accessToken.expiresOn)*1e3),b=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),z.label=4;case 4:return r.appMetadata&&(y=r.appMetadata.familyId===QF?QF:Mt.EMPTY_STRING),S=a?.claims.oid||a?.claims.sub||Mt.EMPTY_STRING,A=a?.claims.tid||Mt.EMPTY_STRING,l?.spa_accountid&&r.account&&(r.account.nativeAccountId=l?.spa_accountid),[2,{authority:n.canonicalAuthority,uniqueId:S,tenantId:A,scopes:g,account:r.account?r.account.getAccountInfo():null,idToken:a?a.rawToken:Mt.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:h,fromCache:i,expiresOn:m,correlationId:o.correlationId,requestId:c||Mt.EMPTY_STRING,extExpiresOn:b,familyId:y,tokenType:((u=r.accessToken)===null||u===void 0?void 0:u.tokenType)||Mt.EMPTY_STRING,state:s?s.userRequestState:Mt.EMPTY_STRING,cloudGraphHostName:((d=r.account)===null||d===void 0?void 0:d.cloudGraphHostName)||Mt.EMPTY_STRING,msGraphHost:((p=r.account)===null||p===void 0?void 0:p.msGraphHost)||Mt.EMPTY_STRING,code:l?.spa_code,fromNativeBroker:!1}]}})})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var nOt=(function(e){Ap(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.includeRedirectUri=!0,i}return t.prototype.getAuthCodeUrl=function(n){var r,i;return Bi(this,void 0,void 0,function(){var o;return ji(this,function(a){switch(a.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.GetAuthCodeUrl,n.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.AuthClientCreateQueryString,n.correlationId),[4,this.createAuthCodeUrlQueryString(n)];case 1:return o=a.sent(),[2,aa.appendQueryString(this.authority.authorizationEndpoint,o)]}})})},t.prototype.acquireToken=function(n,r){var i,o,a,s,l,c;return Bi(this,void 0,void 0,function(){var u,d,p,h,g,m,b=this;return ji(this,function(y){switch(y.label){case 0:if(!n||!n.code)throw Ar.createTokenRequestCannotBeMadeError();return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(Xt.AuthClientAcquireToken,n.correlationId),u=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement("AuthCodeClientAcquireToken",n.correlationId),this.logger.info("in acquireToken call in auth-code client"),d=Pf.nowSeconds(),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.AuthClientExecuteTokenRequest,n.correlationId),[4,this.executeTokenRequest(this.authority,n)];case 1:return p=y.sent(),h=(s=p.headers)===null||s===void 0?void 0:s[ah.X_MS_REQUEST_ID],g=(l=p.headers)===null||l===void 0?void 0:l[ah.X_MS_HTTP_VERSION],g&&u?.addStaticFields({httpVerAuthority:g}),m=new VX(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),m.validateTokenResponse(p.body),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Xt.HandleServerTokenResponse,n.correlationId),[2,m.handleServerTokenResponse(p.body,this.authority,d,n,r,void 0,void 0,void 0,h).then(function(M){return u?.endMeasurement({success:!0}),M}).catch(function(M){throw b.logger.verbose("Error in fetching token in ACC",n.correlationId),u?.endMeasurement({errorCode:M.errorCode,subErrorCode:M.subError,success:!1}),M})]}})})},t.prototype.handleFragmentResponse=function(n,r){var i=new VX(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new aa(n),a=aa.getDeserializedHash(o.getHash());if(i.validateServerAuthorizationCodeResponse(a,r,this.cryptoUtils),!a.code)throw Ar.createNoAuthCodeInServerResponseError();return Fa(Fa({},a),{code:a.code})},t.prototype.getLogoutUri=function(n){if(!n)throw Gs.createEmptyLogoutRequestError();var r=this.createLogoutUrlQueryString(n);return aa.appendQueryString(this.authority.endSessionEndpoint,r)},t.prototype.executeTokenRequest=function(n,r){var i,o;return Bi(this,void 0,void 0,function(){var a,s,l,c,u,d,p;return ji(this,function(h){switch(h.label){case 0:return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(Xt.AuthClientExecuteTokenRequest,r.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.AuthClientCreateTokenRequestBody,r.correlationId),a=this.createTokenQueryParameters(r),s=aa.appendQueryString(n.tokenEndpoint,a),[4,this.createTokenRequestBody(r)];case 1:if(l=h.sent(),c=void 0,r.clientInfo)try{u=BX(r.clientInfo,this.cryptoUtils),c={credential:""+u.uid+Mu.CLIENT_INFO_SEPARATOR+u.utid,type:th.HOME_ACCOUNT_ID}}catch(g){this.logger.verbose("Could not parse client info for CCS Header: "+g)}return d=this.createTokenRequestHeaders(c||r.ccsCredential),p={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},[2,this.executePostToTokenEndpoint(s,l,d,p)]}})})},t.prototype.createTokenRequestBody=function(n){var r,i;return Bi(this,void 0,void 0,function(){var o,a,s,l,c,u,d,d,p;return ji(this,function(h){switch(h.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.AuthClientCreateTokenRequestBody,n.correlationId),o=new tW,o.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?o.addRedirectUri(n.redirectUri):HA.validateRedirectUri(n.redirectUri),o.addScopes(n.scopes),o.addAuthorizationCode(n.code),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&o.addServerTelemetry(this.serverTelemetryManager),n.codeVerifier&&o.addCodeVerifier(n.codeVerifier),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,o.addClientAssertion(a.assertion),o.addClientAssertionType(a.assertionType)),o.addGrantType(FX.AUTHORIZATION_CODE_GRANT),o.addClientInfo(),n.authenticationScheme!==Qa.POP?[3,2]:(s=new nD(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.PopTokenGenerateCnf,n.correlationId),[4,s.generateCnf(n)]);case 1:return l=h.sent(),o.addPopToken(l.reqCnfString),[3,3];case 2:if(n.authenticationScheme===Qa.SSH)if(n.sshJwk)o.addSshJwk(n.sshJwk);else throw Gs.createMissingSshJwkError();h.label=3;case 3:if(c=n.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(c),(!mr.isEmptyObj(n.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(n.claims,this.config.authOptions.clientCapabilities),u=void 0,n.clientInfo)try{d=BX(n.clientInfo,this.cryptoUtils),u={credential:""+d.uid+Mu.CLIENT_INFO_SEPARATOR+d.utid,type:th.HOME_ACCOUNT_ID}}catch(g){this.logger.verbose("Could not parse client info for CCS Header: "+g)}else u=n.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case th.HOME_ACCOUNT_ID:try{d=QR(u.credential),o.addCcsOid(d)}catch(g){this.logger.verbose("Could not parse home account ID for CCS Header: "+g)}break;case th.UPN:o.addCcsUpn(u.credential);break}return n.tokenBodyParameters&&o.addExtraQueryParameters(n.tokenBodyParameters),n.enableSpaAuthorizationCode&&(!n.tokenBodyParameters||!n.tokenBodyParameters[Ji.RETURN_SPA_CODE])&&o.addExtraQueryParameters((p={},p[Ji.RETURN_SPA_CODE]="1",p)),[2,o.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(n){var r;return Bi(this,void 0,void 0,function(){var i,o,a,s,l,c,c,c,u,d;return ji(this,function(p){switch(p.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.AuthClientCreateQueryString,n.correlationId),i=new tW,i.addClientId(this.config.authOptions.clientId),o=ste(n.scopes||[],n.extraScopesToConsent||[]),i.addScopes(o),i.addRedirectUri(n.redirectUri),a=n.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),i.addResponseMode(n.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),n.codeChallenge&&n.codeChallengeMethod&&i.addCodeChallengeParams(n.codeChallenge,n.codeChallengeMethod),n.prompt&&i.addPrompt(n.prompt),n.domainHint&&i.addDomainHint(n.domainHint),n.prompt!==g0.SELECT_ACCOUNT)if(n.sid&&n.prompt===g0.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(n.sid);else if(n.account){if(s=this.extractAccountSid(n.account),l=this.extractLoginHint(n.account),l){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(l);try{c=QR(n.account.homeAccountId),i.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&n.prompt===g0.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(s);try{c=QR(n.account.homeAccountId),i.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(n.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),i.addLoginHint(n.loginHint),i.addCcsUpn(n.loginHint);else if(n.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(n.account.username);try{c=QR(n.account.homeAccountId),i.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else n.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),i.addLoginHint(n.loginHint),i.addCcsUpn(n.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return n.nonce&&i.addNonce(n.nonce),n.state&&i.addState(n.state),(!mr.isEmpty(n.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(n.claims,this.config.authOptions.clientCapabilities),n.extraQueryParameters&&i.addExtraQueryParameters(n.extraQueryParameters),n.nativeBroker?(i.addNativeBroker(),n.authenticationScheme!==Qa.POP?[3,2]:(u=new nD(this.cryptoUtils),[4,u.generateCnf(n)])):[3,2];case 1:d=p.sent(),i.addPopToken(d.reqCnfString),p.label=2;case 2:return[2,i.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(n){var r=new tW;return n.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(n.postLogoutRedirectUri),n.correlationId&&r.addCorrelationId(n.correlationId),n.idTokenHint&&r.addIdTokenHint(n.idTokenHint),n.state&&r.addState(n.state),n.logoutHint&&r.addLogoutHint(n.logoutHint),n.extraQueryParameters&&r.addExtraQueryParameters(n.extraQueryParameters),r.createQueryString()},t.prototype.extractAccountSid=function(n){var r;return((r=n.idTokenClaims)===null||r===void 0?void 0:r.sid)||null},t.prototype.extractLoginHint=function(n){var r;return((r=n.idTokenClaims)===null||r===void 0?void 0:r.login_hint)||null},t})(c3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var rOt=(function(e){Ap(t,e);function t(n,r){return e.call(this,n,r)||this}return t.prototype.acquireToken=function(n){var r,i,o,a,s,l,c;return Bi(this,void 0,void 0,function(){var u,d,p,h,g,m,b=this;return ji(this,function(y){switch(y.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RefreshTokenClientAcquireToken,n.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Xt.RefreshTokenClientAcquireToken,n.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",n.correlationId),d=Pf.nowSeconds(),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.RefreshTokenClientExecuteTokenRequest,n.correlationId),[4,this.executeTokenRequest(n,this.authority)];case 1:return p=y.sent(),h=(a=p.headers)===null||a===void 0?void 0:a[ah.X_MS_HTTP_VERSION],u?.addStaticFields({refreshTokenSize:((s=p.body.refresh_token)===null||s===void 0?void 0:s.length)||0}),h&&u?.addStaticFields({httpVerToken:h}),g=(l=p.headers)===null||l===void 0?void 0:l[ah.X_MS_REQUEST_ID],m=new VX(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),m.validateTokenResponse(p.body),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Xt.HandleServerTokenResponse,n.correlationId),[2,m.handleServerTokenResponse(p.body,this.authority,d,n,void 0,void 0,!0,n.forceCache,g).then(function(M){return u?.endMeasurement({success:!0}),M}).catch(function(M){throw b.logger.verbose("Error in fetching refresh token",n.correlationId),u?.endMeasurement({errorCode:M.errorCode,subErrorCode:M.subError,success:!1}),M})]}})})},t.prototype.acquireTokenByRefreshToken=function(n){var r,i,o,a;return Bi(this,void 0,void 0,function(){var s,l,c;return ji(this,function(u){if(!n)throw Gs.createEmptyTokenRequestError();if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RefreshTokenClientAcquireTokenByRefreshToken,n.correlationId),!n.account)throw Ar.createNoAccountInSilentRequestError();if(s=this.cacheManager.isAppMetadataFOCI(n.account.environment),s)try{return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),[2,this.acquireTokenWithCachedRefreshToken(n,!0)]}catch(d){if(l=d instanceof om&&d.errorCode===JR.noTokensFoundError.code,c=d instanceof d3&&d.errorCode===eKe.INVALID_GRANT_ERROR&&d.subError===eKe.CLIENT_MISMATCH_ERROR,l||c)return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),[2,this.acquireTokenWithCachedRefreshToken(n,!1)];throw d}return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),[2,this.acquireTokenWithCachedRefreshToken(n,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(n,r){var i,o,a;return Bi(this,void 0,void 0,function(){var s,l,c;return ji(this,function(u){if((i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",n.correlationId),l=this.cacheManager.getRefreshToken(n.account,r),!l)throw s?.discardMeasurement(),om.createNoTokensFoundError();return s?.endMeasurement({success:!0}),c=Fa(Fa({},n),{refreshToken:l.secret,authenticationScheme:n.authenticationScheme||Qa.BEARER,ccsCredential:{credential:n.account.homeAccountId,type:th.HOME_ACCOUNT_ID}}),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.RefreshTokenClientAcquireToken,n.correlationId),[2,this.acquireToken(c)]})})},t.prototype.executeTokenRequest=function(n,r){var i,o,a;return Bi(this,void 0,void 0,function(){var s,l,c,u,d,p;return ji(this,function(h){switch(h.label){case 0:return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(Xt.RefreshTokenClientExecuteTokenRequest,n.correlationId),s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(Xt.RefreshTokenClientExecuteTokenRequest,n.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.RefreshTokenClientCreateTokenRequestBody,n.correlationId),l=this.createTokenQueryParameters(n),c=aa.appendQueryString(r.tokenEndpoint,l),[4,this.createTokenRequestBody(n)];case 1:return u=h.sent(),d=this.createTokenRequestHeaders(n.ccsCredential),p={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[2,this.executePostToTokenEndpoint(c,u,d,p).then(function(g){return s?.endMeasurement({success:!0}),g}).catch(function(g){throw s?.endMeasurement({success:!1}),g})]}})})},t.prototype.createTokenRequestBody=function(n){var r,i,o;return Bi(this,void 0,void 0,function(){var a,s,l,c,u,d,p;return ji(this,function(h){switch(h.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RefreshTokenClientCreateTokenRequestBody,n.correlationId),a=n.correlationId,s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Xt.BaseClientCreateTokenRequestHeaders,a),l=new tW,l.addClientId(this.config.authOptions.clientId),l.addScopes(n.scopes),l.addGrantType(FX.REFRESH_TOKEN_GRANT),l.addClientInfo(),l.addLibraryInfo(this.config.libraryInfo),l.addApplicationTelemetry(this.config.telemetry.application),l.addThrottling(),this.serverTelemetryManager&&l.addServerTelemetry(this.serverTelemetryManager),l.addCorrelationId(a),l.addRefreshToken(n.refreshToken),this.config.clientCredentials.clientSecret&&l.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(c=this.config.clientCredentials.clientAssertion,l.addClientAssertion(c.assertion),l.addClientAssertionType(c.assertionType)),n.authenticationScheme!==Qa.POP?[3,2]:(u=new nD(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.PopTokenGenerateCnf,n.correlationId),[4,u.generateCnf(n)]);case 1:return d=h.sent(),l.addPopToken(d.reqCnfString),[3,3];case 2:if(n.authenticationScheme===Qa.SSH)if(n.sshJwk)l.addSshJwk(n.sshJwk);else throw s?.endMeasurement({success:!1}),Gs.createMissingSshJwkError();h.label=3;case 3:if((!mr.isEmptyObj(n.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&l.addClaims(n.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&n.ccsCredential)switch(n.ccsCredential.type){case th.HOME_ACCOUNT_ID:try{p=QR(n.ccsCredential.credential),l.addCcsOid(p)}catch(g){this.logger.verbose("Could not parse home account ID for CCS Header: "+g)}break;case th.UPN:l.addCcsUpn(n.ccsCredential.credential);break}return s?.endMeasurement({success:!0}),[2,l.createQueryString()]}})})},t})(c3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var rbi=(function(e){Ap(t,e);function t(n,r){return e.call(this,n,r)||this}return t.prototype.acquireToken=function(n){return Bi(this,void 0,void 0,function(){var r,i;return ji(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.acquireCachedToken(n)];case 1:return[2,o.sent()];case 2:if(r=o.sent(),r instanceof Ar&&r.errorCode===En.tokenRefreshRequired.code)return i=new rOt(this.config,this.performanceClient),[2,i.acquireTokenByRefreshToken(n)];throw r;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(n){var r,i,o,a,s;return Bi(this,void 0,void 0,function(){var l,c;return ji(this,function(u){switch(u.label){case 0:if(!n)throw Gs.createEmptyTokenRequestError();if(n.forceRefresh)throw(r=this.serverTelemetryManager)===null||r===void 0||r.setCacheOutcome(JC.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),Ar.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!mr.isEmptyObj(n.claims))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(JC.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),Ar.createRefreshRequiredError();if(!n.account)throw Ar.createNoAccountInSilentRequestError();if(l=n.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(n.account,n,l),c.accessToken){if(Pf.wasClockTurnedBack(c.accessToken.cachedAt)||Pf.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(JC.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),Ar.createRefreshRequiredError();if(c.accessToken.refreshOn&&Pf.isTokenExpired(c.accessToken.refreshOn,0))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(JC.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),Ar.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(JC.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),Ar.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,n)];case 1:return[2,u.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(n,r){return Bi(this,void 0,void 0,function(){var i,o;return ji(this,function(a){switch(a.label){case 0:if(n.idToken&&(i=new jb(n.idToken.secret,this.config.cryptoInterface)),r.maxAge||r.maxAge===0){if(o=i?.claims.auth_time,!o)throw Ar.createAuthTimeNotFoundError();jb.checkMaxAge(o,r.maxAge)}return[4,VX.generateAuthenticationResult(this.cryptoUtils,this.authority,n,!0,r,i)];case 1:return[2,a.sent()]}})})},t})(c3e);/*! @azure/msal-common v13.3.3 2024-06-06 */function ibi(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.3 2024-06-06 */var iOt={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},nKe=iOt.endpointMetadata,rKe=iOt.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.3 2024-06-06 */var a2e=(function(){function e(){this.expiresAt=Pf.nowSeconds()+ZF.REFRESH_TIME_SECONDS}return e.prototype.updateCloudDiscoveryMetadata=function(t,n){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=n},e.prototype.updateEndpointMetadata=function(t,n){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=n,this.jwks_uri=t.jwks_uri},e.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},e.prototype.resetExpiresAt=function(){this.expiresAt=Pf.nowSeconds()+ZF.REFRESH_TIME_SECONDS},e.prototype.isExpired=function(){return this.expiresAt<=Pf.nowSeconds()},e.isAuthorityMetadataEntity=function(t,n){return n?t.indexOf(ZF.CACHE_KEY)===0&&n.hasOwnProperty("aliases")&&n.hasOwnProperty("preferred_cache")&&n.hasOwnProperty("preferred_network")&&n.hasOwnProperty("canonical_authority")&&n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("aliasesFromNetwork")&&n.hasOwnProperty("endpointsFromNetwork")&&n.hasOwnProperty("expiresAt")&&n.hasOwnProperty("jwks_uri"):!1},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */function obi(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.3 2024-06-06 */function abi(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.3 2024-06-06 */var sbi=(function(){function e(t,n,r){this.networkInterface=t,this.performanceClient=n,this.correlationId=r}return e.prototype.detectRegion=function(t,n){var r,i,o,a;return Bi(this,void 0,void 0,function(){var s,l,c,u,d;return ji(this,function(p){switch(p.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RegionDiscoveryDetectRegion,this.correlationId),s=t,s)return[3,8];l=e.IMDS_OPTIONS,p.label=1;case 1:return p.trys.push([1,6,,7]),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(Mt.IMDS_VERSION,l)];case 2:return c=p.sent(),c.status===KR.httpSuccess&&(s=c.body,n.region_source=BC.IMDS),c.status!==KR.httpBadRequest?[3,5]:((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(l)]);case 3:return u=p.sent(),u?((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,l)]):(n.region_source=BC.FAILED_AUTO_DETECTION,[2,null]);case 4:d=p.sent(),d.status===KR.httpSuccess&&(s=d.body,n.region_source=BC.IMDS),p.label=5;case 5:return[3,7];case 6:return p.sent(),n.region_source=BC.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=BC.ENVIRONMENT_VARIABLE,p.label=9;case 9:return s||(n.region_source=BC.FAILED_AUTO_DETECTION),[2,s||null]}})})},e.prototype.getRegionFromIMDS=function(t,n){var r;return Bi(this,void 0,void 0,function(){return ji(this,function(i){return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(Mt.IMDS_ENDPOINT+"?api-version="+t+"&format=text",n,Mt.IMDS_TIMEOUT)]})})},e.prototype.getCurrentVersion=function(t){var n;return Bi(this,void 0,void 0,function(){var r;return ji(this,function(i){switch(i.label){case 0:(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.RegionDiscoveryGetCurrentVersion,this.correlationId),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(Mt.IMDS_ENDPOINT+"?format=json",t)];case 2:return r=i.sent(),r.status===KR.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var l6=(function(){function e(t,n,r,i,o,a,s){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=n,this.cacheManager=r,this.authorityOptions=i,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new sbi(n,this.performanceClient,this.correlationId)}return e.prototype.getAuthorityType=function(t){if(t.HostNameAndPort.endsWith(Mt.CIAM_AUTH_URL))return U1.Ciam;var n=t.PathSegments;if(n.length)switch(n[0].toLowerCase()){case Mt.ADFS:return U1.Adfs;case Mt.DSTS:return U1.Dsts}return U1.Default},Object.defineProperty(e.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new aa(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Ar.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.canReplaceTenant=function(t){return t.PathSegments.length===1&&!e.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===U1.Default&&this.protocolMode===tD.AAD},e.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(t){var n=this,r=t,i=new aa(this.metadata.canonical_authority),o=i.getUrlComponents(),a=o.PathSegments,s=this.canonicalAuthorityUrlComponents.PathSegments;return s.forEach(function(l,c){var u=a[c];if(c===0&&n.canReplaceTenant(o)){var d=new aa(n.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==d&&(n.logger.verbose("Replacing tenant domain name "+u+" with id "+d),u=d)}l!==u&&(r=r.replace("/"+u+"/","/"+l+"/"))}),this.replaceTenant(r)},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===U1.Adfs||this.authorityType===U1.Dsts||this.protocolMode===tD.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){var t,n,r;return Bi(this,void 0,void 0,function(){var i,o,a,s;return ji(this,function(l){switch(l.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Xt.AuthorityResolveEndpointsAsync,this.correlationId),i=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),i||(i=new a2e,i.updateCanonicalAuthority(this.canonicalAuthority)),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(Xt.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(i)];case 1:return o=l.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,i.preferred_network),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Xt.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(i)];case 2:return a=l.sent(),o!==$h.CACHE&&a!==$h.CACHE&&(i.resetExpiresAt(),i.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(i.preferred_cache),this.cacheManager.setAuthorityMetadata(s,i),this.metadata=i,[2]}})})},e.prototype.updateEndpointMetadata=function(t){var n,r,i,o,a,s;return Bi(this,void 0,void 0,function(){var l,c;return ji(this,function(u){switch(u.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.AuthorityUpdateEndpointMetadata,this.correlationId),l=this.getEndpointMetadataFromConfig(),l?(t.updateEndpointMetadata(l,!1),[2,$h.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,$h.CACHE]:((r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Xt.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return l=u.sent(),l?!((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0)&&i.azureRegion?((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,3]:[3,4];case 2:l=u.sent(),u.label=3;case 3:return t.updateEndpointMetadata(l,!0),[2,$h.NETWORK];case 4:return c=this.getEndpointMetadataFromHardcodedValues(),c&&!this.authorityOptions.skipAuthorityMetadataCache?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(Xt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,6]:[3,7];case 5:c=u.sent(),u.label=6;case 6:return t.updateEndpointMetadata(c,!1),[2,$h.HARDCODED_VALUES];case 7:throw Ar.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},e.prototype.isAuthoritySameType=function(t){var n=new aa(t.canonical_authority),r=n.getUrlComponents().PathSegments;return r.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Gs.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var t;return Bi(this,void 0,void 0,function(){var n,r;return ji(this,function(i){switch(i.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Xt.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),n={},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,n)];case 2:return r=i.sent(),[2,ibi(r.body)?r.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in nKe?nKe[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,i,o;return Bi(this,void 0,void 0,function(){var a,s;return ji(this,function(l){switch(l.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),a=(r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.azureRegion,a?a!==Mt.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=eW.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=a,[2,e.replaceWithRegionalInformation(t,a)]):((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(s=l.sent(),s)return this.regionDiscoveryMetadata.region_outcome=eW.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,[2,e.replaceWithRegionalInformation(t,s)];this.regionDiscoveryMetadata.region_outcome=eW.AUTO_DETECTION_REQUESTED_FAILED,l.label=2;case 2:return[2,t]}})})},e.prototype.updateCloudDiscoveryMetadata=function(t){var n,r;return Bi(this,void 0,void 0,function(){var i,o,a;return ji(this,function(s){switch(s.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||Mt.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||Mt.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(t.canonical_authority||Mt.NOT_APPLICABLE)),i=this.getCloudDiscoveryMetadataFromConfig(),i?(this.logger.verbose("Found cloud discovery metadata in the config."),t.updateCloudDiscoveryMetadata(i,!1),[2,$h.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),o=t.isExpired(),this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!o?(this.logger.verbose("Found metadata in the cache."),[2,$h.CACHE]):(o&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Xt.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(i=s.sent(),i)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),t.updateCloudDiscoveryMetadata(i,!0),[2,$h.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),t.updateCloudDiscoveryMetadata(a,!1),[2,$h.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),Gs.createUntrustedAuthorityError()}})})},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===U1.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Gs.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return Bi(this,void 0,void 0,function(){var n,r,i,o,a,s,l,c;return ji(this,function(u){switch(u.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Xt.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+Mt.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},i=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,r)];case 2:if(o=u.sent(),a=void 0,s=void 0,obi(o.body))a=o.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(abi(o.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+o.status),a=o.body,a.error===Mt.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=e.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return l=u.sent(),l instanceof Gr?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
Error: `+l.errorCode+`
Error Description: `+l.errorMessage):(c=l,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
Error: `+c.name+`
Error Description: `+c.message)),[2,null];case 4:return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in rKe?rKe[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var t=this,n=this.authorityOptions.knownAuthorities.filter(function(r){return aa.getDomainFromUrl(r).toLowerCase()===t.hostnameAndPort});return n.length>0},e.generateAuthority=function(t,n){var r;if(n&&n.azureCloudInstance!==s6.None){var i=n.tenant?n.tenant:Mt.DEFAULT_COMMON_TENANT;r=n.azureCloudInstance+"/"+i+"/"}return r||t},e.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(t,n){for(var r=0;r<t.length;r++){var i=t[r];if(i.aliases.indexOf(n)>-1)return i}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},e.isPublicCloudAuthority=function(t){return Mt.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},e.buildRegionalAuthorityString=function(t,n,r){var i=new aa(t);i.validateAsUri();var o=i.getUrlComponents(),a=n+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(a=n+"."+Mt.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=aa.constructAuthorityUriFromObject(Fa(Fa({},i.getUrlComponents()),{HostNameAndPort:a})).urlString;return r?s+"?"+r:s},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,Mt.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n)),t},e.transformCIAMAuthority=function(t){var n=t.endsWith(Mt.FORWARD_SLASH)?t:""+t+Mt.FORWARD_SLASH,r=new aa(t),i=r.getUrlComponents();if(i.PathSegments.length===0&&i.HostNameAndPort.endsWith(Mt.CIAM_AUTH_URL)){var o=i.HostNameAndPort.split(".")[0];n=""+n+o+Mt.AAD_TENANT_DOMAIN_SUFFIX}return n},e.reservedTenantDomains=new Set(["{tenant}","{tenantid}",cz.COMMON,cz.CONSUMERS,cz.ORGANIZATIONS]),e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var GX=(function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,i,o,a,s){return Bi(this,void 0,void 0,function(){var l,c,u;return ji(this,function(d){switch(d.label){case 0:a?.addQueueMeasurement(Xt.AuthorityFactoryCreateDiscoveredInstance,s),l=l6.transformCIAMAuthority(t),c=e.createInstance(l,n,r,i,o,a,s),d.label=1;case 1:return d.trys.push([1,3,,4]),a?.setPreQueueTime(Xt.AuthorityResolveEndpointsAsync,s),[4,c.resolveEndpointsAsync()];case 2:return d.sent(),[2,c];case 3:throw u=d.sent(),Ar.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},e.createInstance=function(t,n,r,i,o,a,s){if(mr.isEmpty(t))throw Gs.createUrlEmptyError();return new l6(t,n,r,i,o,a,s)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var $X=(function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(t,n){var r=t.indexOf(pd.CACHE_KEY)===0,i=!0;return n&&(i=n.hasOwnProperty("failedRequests")&&n.hasOwnProperty("errors")&&n.hasOwnProperty("cacheHits")),r&&i},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var iKe=(function(){function e(){}return e.isThrottlingEntity=function(t,n){var r=!1;t&&(r=t.indexOf(JF.THROTTLING_PREFIX)===0);var i=!0;return n&&(i=n.hasOwnProperty("throttleTime")),r&&i},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var lbi={sendGetRequestAsync:function(){var e="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Gr.createUnexpectedError(e))},sendPostRequestAsync:function(){var e="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Gr.createUnexpectedError(e))}};/*! @azure/msal-common v13.3.3 2024-06-06 */var zG={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},oKe=(function(e){Ap(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.name="JoseHeaderError",Object.setPrototypeOf(i,t.prototype),i}return t.createMissingKidError=function(){return new t(zG.missingKidError.code,zG.missingKidError.desc)},t.createMissingAlgError=function(){return new t(zG.missingAlgError.code,zG.missingAlgError.desc)},t})(Gr);/*! @azure/msal-common v13.3.3 2024-06-06 */var cbi=(function(){function e(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}return e.getShrHeaderString=function(t){if(!t.kid)throw oKe.createMissingKidError();if(!t.alg)throw oKe.createMissingAlgError();var n=new e({typ:t.typ||r2e.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var ubi=(function(){function e(t,n){this.cacheOutcome=JC.NO_CACHE_HIT,this.cacheManager=n,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||Mt.EMPTY_STRING,this.wrapperVer=t.wrapperVer||Mt.EMPTY_STRING,this.telemetryCacheKey=pd.CACHE_KEY+Mu.CACHE_KEY_SEPARATOR+t.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+pd.VALUE_SEPARATOR+this.cacheOutcome,n=[this.wrapperSKU,this.wrapperVer].join(pd.VALUE_SEPARATOR),r=this.getRegionDiscoveryFields(),i=[t,r].join(pd.VALUE_SEPARATOR);return[pd.SCHEMA_VERSION,i,n].join(pd.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(pd.VALUE_SEPARATOR),i=t.errors.slice(0,n).join(pd.VALUE_SEPARATOR),o=t.errors.length,a=n<o?pd.OVERFLOW_TRUE:pd.OVERFLOW_FALSE,s=[o,a].join(pd.VALUE_SEPARATOR);return[pd.SCHEMA_VERSION,t.cacheHits,r,i,s].join(pd.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(t){var n=this.getLastRequests();n.errors.length>=pd.MAX_CACHED_ERRORS&&(n.failedRequests.shift(),n.failedRequests.shift(),n.errors.shift()),n.failedRequests.push(this.apiId,this.correlationId),mr.isEmpty(t.subError)?mr.isEmpty(t.errorCode)?t&&t.toString()?n.errors.push(t.toString()):n.errors.push(pd.UNKNOWN_ERROR):n.errors.push(t.errorCode):n.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)},e.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},e.prototype.getLastRequests=function(){var t=new $X,n=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return n||t},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.errors.length;if(n===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{var i=new $X;i.failedRequests=t.failedRequests.slice(n*2),i.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}},e.maxErrorsToSend=function(t){var n,r=0,i=0,o=t.errors.length;for(n=0;n<o;n++){var a=t.failedRequests[2*n]||Mt.EMPTY_STRING,s=t.failedRequests[2*n+1]||Mt.EMPTY_STRING,l=t.errors[n]||Mt.EMPTY_STRING;if(i+=a.toString().length+s.toString().length+l.length+3,i<pd.MAX_LAST_HEADER_BYTES)r+=1;else break}return r},e.prototype.getRegionDiscoveryFields=function(){var t=[];return t.push(this.regionUsed||Mt.EMPTY_STRING),t.push(this.regionSource||Mt.EMPTY_STRING),t.push(this.regionOutcome||Mt.EMPTY_STRING),t.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(t){this.regionUsed=t.region_used,this.regionSource=t.region_source,this.regionOutcome=t.region_outcome},e.prototype.setCacheOutcome=function(t){this.cacheOutcome=t},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var oOt=(function(){function e(t,n,r,i,o,a){this.authority=n,this.libraryName=i,this.libraryVersion=o,this.applicationTelemetry=a,this.clientId=t,this.logger=r,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return e.prototype.startPerformanceMeasurement=function(t,n){return{}},e.prototype.startPerformanceMeasuremeant=function(t,n){return{}},e.prototype.getIntFields=function(){return tbi},e.prototype.getPreQueueTime=function(t,n){var r=this.preQueueTimeByCorrelationId.get(n);if(r){if(r.name!==t){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+t+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+n+", unable to add queue measurement");return}return r.time},e.prototype.calculateQueuedTime=function(t,n){return t<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+t),0):n<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+n),0):n<t?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):n-t},e.prototype.addQueueMeasurement=function(t,n,r,i){if(!n){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+t+", cannot add queue measurement");return}if(r===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+t+" is "+r);else if(!r){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+t);return}var o={eventName:t,queueTime:r,manuallyCompleted:i},a=this.queueMeasurements.get(n);if(a)a.push(o),this.queueMeasurements.set(n,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+n+" to queue measurements");var s=[o];this.queueMeasurements.set(n,s)}this.preQueueTimeByCorrelationId.delete(n)},e.prototype.startMeasurement=function(t,n){var r=this,i,o,a=n||this.generateId();n||this.logger.info("PerformanceClient: No correlation id provided for "+t+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+t,a);var s=this.startPerformanceMeasuremeant(t,a);s.startMeasurement();var l={eventId:this.generateId(),status:HX.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:t,startTimeMs:Date.now(),correlationId:a,appName:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appName,appVersion:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appVersion};return this.cacheEventByCorrelationId(l),{endMeasurement:function(c){return r.endMeasurement(Fa(Fa({},l),c),s)},discardMeasurement:function(){return r.discardMeasurements(l.correlationId)},addStaticFields:function(c){return r.addStaticFields(c,l.correlationId)},increment:function(c){return r.increment(c,l.correlationId)},measurement:s,event:l}},e.prototype.endMeasurement=function(t,n){var r=this,i,o,a=this.eventsByCorrelationId.get(t.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+t.eventId,t.correlationId),null;var s=t.eventId===a.eventId,l={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(l=this.getQueueInfo(t.correlationId),this.discardCache(a.correlationId)):(i=a.incompleteSubMeasurements)===null||i===void 0||i.delete(t.eventId),n?.endMeasurement();var c=n?.flushMeasurement();if(!c)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+t.name+": "+c+" ms",t.correlationId),!s)return a[t.name+"DurationMs"]=Math.floor(c),Fa({},a);var u=Fa(Fa({},a),t),d=0;return(o=u.incompleteSubMeasurements)===null||o===void 0||o.forEach(function(p){r.logger.trace("PerformanceClient: Incomplete submeasurement "+p.name+" found for "+t.name,u.correlationId),d++}),u.incompleteSubMeasurements=void 0,u=Fa(Fa({},u),{durationMs:Math.round(c),queuedTimeMs:l.totalQueueTime,queuedCount:l.totalQueueCount,queuedManuallyCompletedCount:l.manuallyCompletedCount,status:HX.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],t.correlationId),u},e.prototype.addStaticFields=function(t,n){this.logger.trace("PerformanceClient: Updating static fields");var r=this.eventsByCorrelationId.get(n);r?this.eventsByCorrelationId.set(n,Fa(Fa({},r),t)):this.logger.trace("PerformanceClient: Event not found for",n)},e.prototype.increment=function(t,n){this.logger.trace("PerformanceClient: Updating counters");var r=this.eventsByCorrelationId.get(n);if(r)for(var i in t)r.hasOwnProperty(i)||(r[i]=0),r[i]+=t[i];else this.logger.trace("PerformanceClient: Event not found for",n)},e.prototype.cacheEventByCorrelationId=function(t){var n=this.eventsByCorrelationId.get(t.correlationId);n?(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" added/updated",t.correlationId),n.incompleteSubMeasurements=n.incompleteSubMeasurements||new Map,n.incompleteSubMeasurements.set(t.eventId,{name:t.name,startTimeMs:t.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" started",t.correlationId),this.eventsByCorrelationId.set(t.correlationId,Fa({},t)))},e.prototype.getQueueInfo=function(t){var n=this.queueMeasurements.get(t);n||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+t);var r=0,i=0,o=0;return n?.forEach(function(a){r+=a.queueTime,i++,o+=a.manuallyCompleted?1:0}),{totalQueueTime:r,totalQueueCount:i,manuallyCompletedCount:o}},e.prototype.discardMeasurements=function(t){this.logger.trace("PerformanceClient: Performance measurements discarded",t),this.eventsByCorrelationId.delete(t)},e.prototype.discardCache=function(t){this.discardMeasurements(t),this.logger.trace("PerformanceClient: QueueMeasurements discarded",t),this.queueMeasurements.delete(t),this.logger.trace("PerformanceClient: Pre-queue times discarded",t),this.preQueueTimeByCorrelationId.delete(t)},e.prototype.addPerformanceCallback=function(t){var n=this.generateId();return this.callbacks.set(n,t),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+n),n},e.prototype.removePerformanceCallback=function(t){var n=this.callbacks.delete(t);return n?this.logger.verbose("PerformanceClient: Performance callback "+t+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+t+" not removed."),n},e.prototype.emitEvents=function(t,n){var r=this;this.logger.verbose("PerformanceClient: Emitting performance events",n),this.callbacks.forEach(function(i,o){r.logger.trace("PerformanceClient: Emitting event to callback "+o,n),i.apply(null,[t])})},e.prototype.truncateIntegralFields=function(t,n){n.forEach(function(r){r in t&&typeof t[r]=="number"&&(t[r]=Math.floor(t[r]))})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var aKe=(function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e})(),dbi=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new aKe},t.prototype.startPerformanceMeasurement=function(){return new aKe},t.prototype.calculateQueuedTime=function(n,r){return 0},t.prototype.addQueueMeasurement=function(n,r,i){},t.prototype.setPreQueueTime=function(n,r){},t})(oOt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var On={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.  For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},tr=(function(e){Id(t,e);function t(n,r){var i=e.call(this,n,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="BrowserAuthError",i}return t.createPkceNotGeneratedError=function(n){return new t(On.pkceNotGenerated.code,On.pkceNotGenerated.desc+" Detail:"+n)},t.createCryptoNotAvailableError=function(n){return new t(On.cryptoDoesNotExist.code,On.cryptoDoesNotExist.desc+" Detail:"+n)},t.createHttpMethodNotImplementedError=function(n){return new t(On.httpMethodNotImplementedError.code,On.httpMethodNotImplementedError.desc+" Given Method: "+n)},t.createEmptyNavigationUriError=function(){return new t(On.emptyNavigateUriError.code,On.emptyNavigateUriError.desc)},t.createEmptyHashError=function(n){return new t(On.hashEmptyError.code,On.hashEmptyError.desc+" Given Url: "+n)},t.createHashDoesNotContainStateError=function(){return new t(On.hashDoesNotContainStateError.code,On.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(On.hashDoesNotContainKnownPropertiesError.code,On.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(On.unableToParseStateError.code,On.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(On.stateInteractionTypeMismatchError.code,On.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(On.interactionInProgress.code,On.interactionInProgress.desc)},t.createPopupWindowError=function(n){var r=On.popupWindowError.desc;return r=mr.isEmpty(n)?r:r+" Details: "+n,new t(On.popupWindowError.code,r)},t.createEmptyWindowCreatedError=function(){return new t(On.emptyWindowError.code,On.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(On.userCancelledError.code,On.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(On.monitorPopupTimeoutError.code,On.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(On.monitorIframeTimeoutError.code,On.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(n){return new t(On.redirectInIframeError.code,On.redirectInIframeError.desc+" (window.parent !== window) => "+n)},t.createBlockReloadInHiddenIframeError=function(){return new t(On.blockTokenRequestsInHiddenIframeError.code,On.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(On.blockAcquireTokenInPopupsError.code,On.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(On.iframeClosedPrematurelyError.code,On.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(On.silentLogoutUnsupportedError.code,On.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(On.noAccountError.code,On.noAccountError.desc)},t.createSilentPromptValueError=function(n){return new t(On.silentPromptValueError.code,On.silentPromptValueError.desc+" Given value: "+n)},t.createUnableToParseTokenRequestCacheError=function(){return new t(On.unableToParseTokenRequestCacheError.code,On.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(On.noTokenRequestCacheError.code,On.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(On.authRequestNotSet.code,On.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(On.noCachedAuthorityError.code,On.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(On.invalidCacheType.code,""+On.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(On.notInBrowserEnvironment.code,On.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(On.databaseNotOpen.code,On.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(On.noNetworkConnectivity.code,On.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(n,r){return new t(On.postRequestFailed.code,On.postRequestFailed.desc+" | Network client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},t.createGetRequestFailedError=function(n,r){return new t(On.getRequestFailed.code,On.getRequestFailed.desc+" | Network client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},t.createFailedToParseNetworkResponseError=function(n){return new t(On.failedToParseNetworkResponse.code,On.failedToParseNetworkResponse.desc+" | Attempted to reach: "+n.split("?")[0])},t.createUnableToLoadTokenError=function(n){return new t(On.unableToLoadTokenError.code,On.unableToLoadTokenError.desc+" | "+n)},t.createSigningKeyNotFoundInStorageError=function(n){return new t(On.signingKeyNotFoundInStorage.code,On.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+n)},t.createAuthCodeRequiredError=function(){return new t(On.authCodeRequired.code,On.authCodeRequired.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(On.authCodeOrNativeAccountRequired.code,On.authCodeOrNativeAccountRequired.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(On.spaCodeAndNativeAccountPresent.code,On.spaCodeAndNativeAccountPresent.desc)},t.createDatabaseUnavailableError=function(){return new t(On.databaseUnavailable.code,On.databaseUnavailable.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(On.unableToAcquireTokenFromNativePlatform.code,On.unableToAcquireTokenFromNativePlatform.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(On.nativeHandshakeTimeout.code,On.nativeHandshakeTimeout.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(On.nativeExtensionNotInstalled.code,On.nativeExtensionNotInstalled.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(On.nativeConnectionNotEstablished.code,On.nativeConnectionNotEstablished.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(On.nativeBrokerCalledBeforeInitialize.code,On.nativeBrokerCalledBeforeInitialize.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(On.nativePromptNotSupported.code,On.nativePromptNotSupported.desc)},t})(Gr);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ug={INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},EN={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Ty;(function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"})(Ty||(Ty={}));var Xc;(function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"})(Xc||(Xc={}));var qv;(function(e){e.GET="GET",e.POST="POST"})(qv||(qv={}));var ba;(function(e){e.AUTHORITY="authority",e.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",e.SESSION_STATE="session.state",e.REQUEST_STATE="request.state",e.NONCE_IDTOKEN="nonce.id_token",e.ORIGIN_URI="request.origin",e.RENEW_STATUS="token.renew.status",e.URL_HASH="urlHash",e.REQUEST_PARAMS="request.params",e.SCOPES="scopes",e.INTERACTION_STATUS_KEY="interaction.status",e.CCS_CREDENTIAL="ccs.credential",e.CORRELATION_ID="request.correlationId",e.NATIVE_REQUEST="request.native",e.REDIRECT_CONTEXT="request.redirect.context"})(ba||(ba={}));var Iv;(function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"})(Iv||(Iv={}));var eI;(function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"})(eI||(eI={}));var Vs;(function(e){e[e.acquireTokenRedirect=861]="acquireTokenRedirect",e[e.acquireTokenPopup=862]="acquireTokenPopup",e[e.ssoSilent=863]="ssoSilent",e[e.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",e[e.handleRedirectPromise=865]="handleRedirectPromise",e[e.acquireTokenByCode=866]="acquireTokenByCode",e[e.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",e[e.logout=961]="logout",e[e.logoutPopup=962]="logoutPopup"})(Vs||(Vs={}));var Cr;(function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"})(Cr||(Cr={}));var Gc;(function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"})(Gc||(Gc={}));var sKe={scopes:bj},rD="jwk",s2e;(function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"})(s2e||(s2e={}));var l2e="msal.db",pbi=1,hbi=l2e+".keys",K1;(function(e){e[e.Default=0]="Default",e[e.AccessToken=1]="AccessToken",e[e.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",e[e.RefreshToken=3]="RefreshToken",e[e.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",e[e.Skip=5]="Skip"})(K1||(K1={}));/*! @azure/msal-browser v2.39.0 2024-06-06 */var N1={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},Vc=(function(e){Id(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.name="BrowserConfigurationAuthError",Object.setPrototypeOf(i,t.prototype),i}return t.createRedirectUriEmptyError=function(){return new t(N1.redirectUriNotSet.code,N1.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(N1.postLogoutUriNotSet.code,N1.postLogoutUriNotSet.desc)},t.createStorageNotSupportedError=function(n){return new t(N1.storageNotSupportedError.code,N1.storageNotSupportedError.desc+" Given Location: "+n)},t.createRedirectCallbacksNotSetError=function(){return new t(N1.noRedirectCallbacksSet.code,N1.noRedirectCallbacksSet.desc)},t.createStubPcaInstanceCalledError=function(){return new t(N1.stubPcaInstanceCalled.code,N1.stubPcaInstanceCalled.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(N1.inMemRedirectUnavailable.code,N1.inMemRedirectUnavailable.desc)},t.createEntropyNotProvided=function(){return new t(N1.entropyNotProvided.code,N1.entropyNotProvided.desc)},t})(Gr);/*! @azure/msal-browser v2.39.0 2024-06-06 */var lKe=(function(){function e(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return e.prototype.validateWindowStorage=function(t){if(t!==Xc.LocalStorage&&t!==Xc.SessionStorage)throw Vc.createStorageNotSupportedError(t);var n=!!window[t];if(!n)throw Vc.createStorageNotSupportedError(t)},e.prototype.getItem=function(t){return this.windowStorage.getItem(t)},e.prototype.setItem=function(t,n){this.windowStorage.setItem(t,n)},e.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var c2e=(function(){function e(){this.cache=new Map}return e.prototype.getItem=function(t){return this.cache.get(t)||null},e.prototype.setItem=function(t,n){this.cache.set(t,n)},e.prototype.removeItem=function(t){this.cache.delete(t)},e.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(n,r){t.push(r)}),t},e.prototype.containsKey=function(t){return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear()},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var aOt=(function(){function e(){}return e.extractBrowserRequestState=function(t,n){if(mr.isEmpty(n))return null;try{var r=Ny.parseRequestState(t,n);return r.libraryState.meta}catch(i){throw Ar.createInvalidStateError(n,i)}},e.parseServerResponseFromHash=function(t){if(!t)return{};var n=new aa(t);return aa.getDeserializedHash(n.getHash())},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var u2e=(function(e){Id(t,e);function t(n,r,i,o){var a=e.call(this,n,i,o)||this;return a.COOKIE_LIFE_MULTIPLIER=1440*60*1e3,a.cacheConfig=r,a.logger=o,a.internalStorage=new c2e,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return t.prototype.setupBrowserStorage=function(n){switch(n){case Xc.LocalStorage:case Xc.SessionStorage:try{return new lKe(n)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=Xc.MemoryStorage,new c2e},t.prototype.setupTemporaryCacheStorage=function(n,r){switch(r){case Xc.LocalStorage:case Xc.SessionStorage:try{return new lKe(n||Xc.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case Xc.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var n=this,r=Mt.CACHE_PREFIX+"."+fu.ID_TOKEN,i=Mt.CACHE_PREFIX+"."+fu.CLIENT_INFO,o=Mt.CACHE_PREFIX+"."+fu.ERROR,a=Mt.CACHE_PREFIX+"."+fu.ERROR_DESC,s=this.browserStorage.getItem(r),l=this.browserStorage.getItem(i),c=this.browserStorage.getItem(o),u=this.browserStorage.getItem(a),d=[s,l,c,u],p=[fu.ID_TOKEN,fu.CLIENT_INFO,fu.ERROR,fu.ERROR_DESC];p.forEach(function(h,g){return n.migrateCacheEntry(h,d[g])})},t.prototype.migrateCacheEntry=function(n,r){r&&this.setTemporaryCache(n,r,!0)},t.prototype.createKeyMaps=function(){var n=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var r=this.getItem(Iv.ACCOUNT_KEYS),i=this.getItem(Iv.TOKEN_KEYS+"."+this.clientId);if(r&&i){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var o=this.browserStorage.getKeys();o.forEach(function(a){if(n.isCredentialKey(a)){var s=n.getItem(a);if(s){var l=n.validateAndParseJson(s);if(l&&l.hasOwnProperty("credentialType"))switch(l.credentialType){case ti.ID_TOKEN:if(ex.isIdTokenEntity(l)){n.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),n.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var c=q1.toObject(new ex,l),u=n.updateCredentialCacheKey(a,c);n.addTokenKey(u,ti.ID_TOKEN);return}else n.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),n.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+a);break;case ti.ACCESS_TOKEN:case ti.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(tx.isAccessTokenEntity(l)){n.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),n.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var d=q1.toObject(new tx,l),u=n.updateCredentialCacheKey(a,d);n.addTokenKey(u,ti.ACCESS_TOKEN);return}else n.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),n.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+a);break;case ti.REFRESH_TOKEN:if(ZR.isRefreshTokenEntity(l)){n.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),n.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var p=q1.toObject(new ZR,l),u=n.updateCredentialCacheKey(a,p);n.addTokenKey(u,ti.REFRESH_TOKEN);return}else n.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),n.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+a);break}}}if(n.isAccountKey(a)){var s=n.getItem(a);if(s){var h=n.validateAndParseJson(s);h&&M0.isAccountEntity(h)&&(n.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),n.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),n.addAccountKeyToMap(a))}}})},t.prototype.validateAndParseJson=function(n){try{var r=JSON.parse(n);return r&&typeof r=="object"?r:null}catch{return null}},t.prototype.getItem=function(n){return this.browserStorage.getItem(n)},t.prototype.setItem=function(n,r){this.browserStorage.setItem(n,r)},t.prototype.getAccount=function(n){this.logger.trace("BrowserCacheManager.getAccount called");var r=this.getItem(n);if(!r)return this.removeAccountKeyFromMap(n),null;var i=this.validateAndParseJson(r);return!i||!M0.isAccountEntity(i)?(this.removeAccountKeyFromMap(n),null):q1.toObject(new M0,i)},t.prototype.setAccount=function(n){this.logger.trace("BrowserCacheManager.setAccount called");var r=n.generateAccountKey();this.setItem(r,JSON.stringify(n)),this.addAccountKeyToMap(r)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var n=this.getItem(Iv.ACCOUNT_KEYS);return n?JSON.parse(n):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(n){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+n);var r=this.getAccountKeys();r.indexOf(n)===-1?(r.push(n),this.setItem(Iv.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(n){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+n);var r=this.getAccountKeys(),i=r.indexOf(n);i>-1?(r.splice(i,1),this.setItem(Iv.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},t.prototype.removeAccount=function(n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return e.prototype.removeAccount.call(this,n),this.removeAccountKeyFromMap(n),[2]})})},t.prototype.removeIdToken=function(n){e.prototype.removeIdToken.call(this,n),this.removeTokenKey(n,ti.ID_TOKEN)},t.prototype.removeAccessToken=function(n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return e.prototype.removeAccessToken.call(this,n),this.removeTokenKey(n,ti.ACCESS_TOKEN),[2]})})},t.prototype.removeRefreshToken=function(n){e.prototype.removeRefreshToken.call(this,n),this.removeTokenKey(n,ti.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var n=this.getItem(Iv.TOKEN_KEYS+"."+this.clientId);if(n){var r=this.validateAndParseJson(n);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},t.prototype.addTokenKey=function(n,r){this.logger.trace("BrowserCacheManager addTokenKey called");var i=this.getTokenKeys();switch(r){case ti.ID_TOKEN:i.idToken.indexOf(n)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(n));break;case ti.ACCESS_TOKEN:i.accessToken.indexOf(n)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),i.accessToken.push(n));break;case ti.REFRESH_TOKEN:i.refreshToken.indexOf(n)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(n));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+r),Ar.createUnexpectedCredentialTypeError()}this.setItem(Iv.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},t.prototype.removeTokenKey=function(n,r){this.logger.trace("BrowserCacheManager removeTokenKey called");var i=this.getTokenKeys();switch(r){case ti.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+n+" from map");var o=i.idToken.indexOf(n);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),i.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ti.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+n+" from map");var a=i.accessToken.indexOf(n);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),i.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ti.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+n+" from map");var s=i.refreshToken.indexOf(n);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),i.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+r),Ar.createUnexpectedCredentialTypeError()}this.setItem(Iv.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},t.prototype.getIdTokenCredential=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.ID_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!ex.isIdTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),q1.toObject(new ex,i))},t.prototype.setIdTokenCredential=function(n){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var r=n.generateCredentialKey();this.setItem(r,JSON.stringify(n)),this.addTokenKey(r,ti.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.ACCESS_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!tx.isAccessTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),q1.toObject(new tx,i))},t.prototype.setAccessTokenCredential=function(n){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var r=n.generateCredentialKey();this.setItem(r,JSON.stringify(n)),this.addTokenKey(r,ti.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.REFRESH_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!ZR.isRefreshTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),q1.toObject(new ZR,i))},t.prototype.setRefreshTokenCredential=function(n){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var r=n.generateCredentialKey();this.setItem(r,JSON.stringify(n)),this.addTokenKey(r,ti.REFRESH_TOKEN)},t.prototype.getAppMetadata=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!o2e.isAppMetadataEntity(n,i)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),q1.toObject(new o2e,i))},t.prototype.setAppMetadata=function(n){this.logger.trace("BrowserCacheManager.setAppMetadata called");var r=n.generateAppMetadataKey();this.setItem(r,JSON.stringify(n))},t.prototype.getServerTelemetry=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!$X.isServerTelemetryEntity(n,i)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),q1.toObject(new $X,i))},t.prototype.setServerTelemetry=function(n,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(n,JSON.stringify(r))},t.prototype.getAuthorityMetadata=function(n){var r=this.internalStorage.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(r);return i&&a2e.isAuthorityMetadataEntity(n,i)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),q1.toObject(new a2e,i)):null},t.prototype.getAuthorityMetadataKeys=function(){var n=this,r=this.internalStorage.getKeys();return r.filter(function(i){return n.isAuthorityMetadata(i)})},t.prototype.setWrapperMetadata=function(n,r){this.internalStorage.setItem(eI.WRAPPER_SKU,n),this.internalStorage.setItem(eI.WRAPPER_VER,r)},t.prototype.getWrapperMetadata=function(){var n=this.internalStorage.getItem(eI.WRAPPER_SKU)||Mt.EMPTY_STRING,r=this.internalStorage.getItem(eI.WRAPPER_VER)||Mt.EMPTY_STRING;return[n,r]},t.prototype.setAuthorityMetadata=function(n,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(n,JSON.stringify(r))},t.prototype.getActiveAccount=function(){var n=this.generateCacheKey(fu.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(n);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var i=this.generateCacheKey(fu.ACTIVE_ACCOUNT),o=this.getItem(i);if(!o)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(r);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(n){var r=this.generateCacheKey(fu.ACTIVE_ACCOUNT_FILTERS),i=this.generateCacheKey(fu.ACTIVE_ACCOUNT);if(n){this.logger.verbose("setActiveAccount: Active account set");var o={homeAccountId:n.homeAccountId,localAccountId:n.localAccountId};this.browserStorage.setItem(r,JSON.stringify(o)),this.browserStorage.setItem(i,n.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(i)},t.prototype.getAccountInfoByFilter=function(n){var r=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+r.length+" accounts found"),r.filter(function(i){return!(n.username&&n.username.toLowerCase()!==i.username.toLowerCase()||n.homeAccountId&&n.homeAccountId!==i.homeAccountId||n.localAccountId&&n.localAccountId!==i.localAccountId||n.tenantId&&n.tenantId!==i.tenantId||n.environment&&n.environment!==i.environment)})},t.prototype.getAccountInfoByHints=function(n,r){var i=this.getAllAccounts().filter(function(o){if(r){var a=o.idTokenClaims&&o.idTokenClaims.sid;return r===a}return n?n===o.username:!1});if(i.length===1)return i[0];if(i.length>1)throw Ar.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!iKe.isThrottlingEntity(n,i)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),q1.toObject(new iKe,i))},t.prototype.setThrottlingCache=function(n,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(n,JSON.stringify(r))},t.prototype.getTemporaryCache=function(n,r){var i=r?this.generateCacheKey(n):n;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(i);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var a=this.temporaryCacheStorage.getItem(i);if(!a){if(this.cacheConfig.cacheLocation===Xc.LocalStorage){var s=this.browserStorage.getItem(i);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},t.prototype.setTemporaryCache=function(n,r,i){var o=i?this.generateCacheKey(n):n;this.temporaryCacheStorage.setItem(o,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,r))},t.prototype.removeItem=function(n){this.browserStorage.removeItem(n),this.temporaryCacheStorage.removeItem(n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(n))},t.prototype.containsKey=function(n){return this.browserStorage.containsKey(n)||this.temporaryCacheStorage.containsKey(n)},t.prototype.getKeys=function(){return s3e(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return dn(this,void 0,void 0,function(){var n=this;return pn(this,function(r){switch(r.label){case 0:return[4,this.removeAllAccounts()];case 1:return r.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(i){(n.browserStorage.containsKey(i)||n.temporaryCacheStorage.containsKey(i))&&(i.indexOf(Mt.CACHE_PREFIX)!==-1||i.indexOf(n.clientId)!==-1)&&n.removeItem(i)}),this.internalStorage.clear(),[2]}})})},t.prototype.clearTokensAndKeysWithClaims=function(){return dn(this,void 0,void 0,function(){var n,r,i=this;return pn(this,function(o){switch(o.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),n=this.getTokenKeys(),r=[],n.accessToken.forEach(function(a){var s=i.getAccessTokenCredential(a);s?.requestedClaimsHash&&a.includes(s.requestedClaimsHash.toLowerCase())&&r.push(i.removeAccessToken(a))}),[4,Promise.all(r)];case 1:return o.sent(),r.length>0&&this.logger.warning(r.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},t.prototype.setItemCookie=function(n,r,i){var o=encodeURIComponent(n)+"="+encodeURIComponent(r)+";path=/;SameSite=Lax;";if(i){var a=this.getCookieExpirationTime(i);o+="expires="+a+";"}this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},t.prototype.getItemCookie=function(n){for(var r=encodeURIComponent(n)+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(var a=i[o];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(r)===0)return decodeURIComponent(a.substring(r.length,a.length))}return Mt.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var n=this,r=Mt.CACHE_PREFIX+"."+this.clientId,i=document.cookie.split(";");i.forEach(function(o){for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(r)===0){var a=o.split("=")[0];n.clearItemCookie(a)}})},t.prototype.clearItemCookie=function(n){this.setItemCookie(n,Mt.EMPTY_STRING,-1)},t.prototype.getCookieExpirationTime=function(n){var r=new Date,i=new Date(r.getTime()+n*this.COOKIE_LIFE_MULTIPLIER);return i.toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(n){var r=this.validateAndParseJson(n);return r?JSON.stringify(n):mr.startsWith(n,Mt.CACHE_PREFIX)||mr.startsWith(n,fu.ADAL_ID_TOKEN)?n:Mt.CACHE_PREFIX+"."+this.clientId+"."+n},t.prototype.generateAuthorityKey=function(n){var r=Ny.parseRequestState(this.cryptoImpl,n).libraryState.id;return this.generateCacheKey(ba.AUTHORITY+"."+r)},t.prototype.generateNonceKey=function(n){var r=Ny.parseRequestState(this.cryptoImpl,n).libraryState.id;return this.generateCacheKey(ba.NONCE_IDTOKEN+"."+r)},t.prototype.generateStateKey=function(n){var r=Ny.parseRequestState(this.cryptoImpl,n).libraryState.id;return this.generateCacheKey(ba.REQUEST_STATE+"."+r)},t.prototype.getCachedAuthority=function(n){var r=this.generateStateKey(n),i=this.getTemporaryCache(r);if(!i)return null;var o=this.generateAuthorityKey(i);return this.getTemporaryCache(o)},t.prototype.updateCacheEntries=function(n,r,i,o,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(n);this.setTemporaryCache(s,n,!1);var l=this.generateNonceKey(n);this.setTemporaryCache(l,r,!1);var c=this.generateAuthorityKey(n);if(this.setTemporaryCache(c,i,!1),a){var u={credential:a.homeAccountId,type:th.HOME_ACCOUNT_ID};this.setTemporaryCache(ba.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!mr.isEmpty(o)){var u={credential:o,type:th.UPN};this.setTemporaryCache(ba.CCS_CREDENTIAL,JSON.stringify(u),!0)}},t.prototype.resetRequestCache=function(n){var r=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),mr.isEmpty(n)||this.getKeys().forEach(function(i){i.indexOf(n)!==-1&&r.removeItem(i)}),n&&(this.removeItem(this.generateStateKey(n)),this.removeItem(this.generateNonceKey(n)),this.removeItem(this.generateAuthorityKey(n))),this.removeItem(this.generateCacheKey(ba.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ba.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ba.URL_HASH)),this.removeItem(this.generateCacheKey(ba.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ba.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ba.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.prototype.cleanRequestByState=function(n){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),n){var r=this.generateStateKey(n),i=this.temporaryCacheStorage.getItem(r);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+i),this.resetRequestCache(i||Mt.EMPTY_STRING)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(n){var r=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(i){if(i.indexOf(ba.REQUEST_STATE)!==-1){var o=r.temporaryCacheStorage.getItem(i);if(o){var a=aOt.extractBrowserRequestState(r.cryptoImpl,o);a&&a.interactionType===n&&(r.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+o),r.resetRequestCache(o))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},t.prototype.cacheCodeRequest=function(n,r){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var i=r.base64Encode(JSON.stringify(n));this.setTemporaryCache(ba.REQUEST_PARAMS,i,!0)},t.prototype.getCachedRequest=function(n,r){this.logger.trace("BrowserCacheManager.getCachedRequest called");var i=this.getTemporaryCache(ba.REQUEST_PARAMS,!0);if(!i)throw tr.createNoTokenRequestCacheError();var o=this.validateAndParseJson(r.base64Decode(i));if(!o)throw tr.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ba.REQUEST_PARAMS)),mr.isEmpty(o.authority)){var a=this.generateAuthorityKey(n),s=this.getTemporaryCache(a);if(!s)throw tr.createNoCachedAuthorityError();o.authority=s}return o},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var n=this.getTemporaryCache(ba.NATIVE_REQUEST,!0);if(!n)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var r=this.validateAndParseJson(n);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},t.prototype.isInteractionInProgress=function(n){var r=this.getInteractionInProgress();return n?r===this.clientId:!!r},t.prototype.getInteractionInProgress=function(){var n=Mt.CACHE_PREFIX+"."+ba.INTERACTION_STATUS_KEY;return this.getTemporaryCache(n,!1)},t.prototype.setInteractionInProgress=function(n){var r=Mt.CACHE_PREFIX+"."+ba.INTERACTION_STATUS_KEY;if(n){if(this.getInteractionInProgress())throw tr.createInteractionInProgressError();this.setTemporaryCache(r,this.clientId,!1)}else!n&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)},t.prototype.getLegacyLoginHint=function(){var n=this.getTemporaryCache(fu.ADAL_ID_TOKEN);n&&(this.browserStorage.removeItem(fu.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var r=this.getTemporaryCache(fu.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(fu.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var i=r||n;if(i){var o=new jb(i,this.cryptoImpl);if(o.claims&&o.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),o.claims.preferred_username;if(o.claims&&o.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),o.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},t.prototype.updateCredentialCacheKey=function(n,r){var i=r.generateCredentialKey();if(n!==i){var o=this.getItem(n);if(o)return this.removeItem(n),this.setItem(i,o),this.logger.verbose("Updated an outdated "+r.credentialType+" cache key"),i;this.logger.error("Attempted to update an outdated "+r.credentialType+" cache key but no item matching the outdated key was found in storage")}return n},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(ba.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(n){this.setTemporaryCache(ba.REDIRECT_CONTEXT,n,!0)},t.prototype.hydrateCache=function(n,r){var i,o,a,s,l,c;return dn(this,void 0,void 0,function(){var u,d,p,h;return pn(this,function(g){switch(g.label){case 0:return u=ex.createIdTokenEntity(((i=n.account)===null||i===void 0?void 0:i.homeAccountId)||"",((o=n.account)===null||o===void 0?void 0:o.environment)||"",n.idToken,this.clientId,n.tenantId),r.claims?[4,this.cryptoImpl.hashString(r.claims)]:[3,2];case 1:d=g.sent(),g.label=2;case 2:return p=tx.createAccessTokenEntity(((a=n.account)===null||a===void 0?void 0:a.homeAccountId)||"",((s=n.account)===null||s===void 0?void 0:s.environment)||"",n.accessToken,this.clientId,n.tenantId,n.scopes.join(" "),((l=n.expiresOn)===null||l===void 0?void 0:l.getTime())||0,((c=n.extExpiresOn)===null||c===void 0?void 0:c.getTime())||0,this.cryptoImpl,void 0,n.tokenType,void 0,r.sshKid,r.claims,d),h=new GI(void 0,u,p),[2,this.saveCacheRecord(h)]}})})},t})(q1),fbi=function(e,t){var n={cacheLocation:Xc.MemoryStorage,temporaryCacheLocation:Xc.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new u2e(e,n,qX,t)};/*! @azure/msal-browser v2.39.0 2024-06-06 */var upe="@azure/msal-browser",nW="2.39.0";/*! @azure/msal-browser v2.39.0 2024-06-06 */var gbi=(function(){function e(){}return e.prototype.sendGetRequestAsync=function(t,n){return dn(this,void 0,void 0,function(){var r,i,o;return pn(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(t,{method:qv.GET,headers:this.getFetchHeaders(n)})];case 1:return r=a.sent(),[3,3];case 2:throw i=a.sent(),window.navigator.onLine?tr.createGetRequestFailedError(i,t):tr.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),o={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 4:return[2,(o.body=a.sent(),o.status=r.status,o)];case 5:throw a.sent(),tr.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},e.prototype.sendPostRequestAsync=function(t,n){return dn(this,void 0,void 0,function(){var r,i,o,a;return pn(this,function(s){switch(s.label){case 0:r=n&&n.body||Mt.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(t,{method:qv.POST,headers:this.getFetchHeaders(n),body:r})];case 2:return i=s.sent(),[3,4];case 3:throw o=s.sent(),window.navigator.onLine?tr.createPostRequestFailedError(o,t):tr.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 5:return[2,(a.body=s.sent(),a.status=i.status,a)];case 6:throw s.sent(),tr.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},e.prototype.getFetchHeaders=function(t){var n=new Headers;if(!(t&&t.headers))return n;var r=t.headers;return Object.keys(r).forEach(function(i){n.append(i,r[i])}),n},e.prototype.getHeaderDict=function(t){var n={};return t.forEach(function(r,i){n[i]=r}),n},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var mbi=(function(){function e(){}return e.prototype.sendGetRequestAsync=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,this.sendRequestAsync(t,qv.GET,n)]})})},e.prototype.sendPostRequestAsync=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,this.sendRequestAsync(t,qv.POST,n)]})})},e.prototype.sendRequestAsync=function(t,n,r){var i=this;return new Promise(function(o,a){var s=new XMLHttpRequest;if(s.open(n,t,!0),i.setXhrHeaders(s,r),s.onload=function(){(s.status<200||s.status>=300)&&(n===qv.POST?a(tr.createPostRequestFailedError("Failed with status "+s.status,t)):a(tr.createGetRequestFailedError("Failed with status "+s.status,t)));try{var l=JSON.parse(s.responseText),c={headers:i.getHeaderDict(s),body:l,status:s.status};o(c)}catch{a(tr.createFailedToParseNetworkResponseError(t))}},s.onerror=function(){window.navigator.onLine?n===qv.POST?a(tr.createPostRequestFailedError("Failed with status "+s.status,t)):a(tr.createGetRequestFailedError("Failed with status "+s.status,t)):a(tr.createNoNetworkConnectivityError())},n===qv.POST&&r&&r.body)s.send(r.body);else if(n===qv.GET)s.send();else throw tr.createHttpMethodNotImplementedError(n)})},e.prototype.setXhrHeaders=function(t,n){if(n&&n.headers){var r=n.headers;Object.keys(r).forEach(function(i){t.setRequestHeader(i,r[i])})}},e.prototype.getHeaderDict=function(t){var n=t.getAllResponseHeaders(),r=n.trim().split(/[\r\n]+/),i={};return r.forEach(function(o){var a=o.split(": "),s=a.shift(),l=a.join(": ");s&&l&&(i[s]=l)}),i},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var nc=(function(){function e(){}return e.clearHash=function(t){t.location.hash=Mt.EMPTY_STRING,typeof t.history.replaceState=="function"&&t.history.replaceState(null,Mt.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},e.replaceHash=function(t){var n=t.split("#");n.shift(),window.location.hash=n.length>0?n.join("#"):Mt.EMPTY_STRING},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(Ug.POPUP_NAME_PREFIX+".")===0},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var t=new aa(window.location.href),n=t.getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new gbi:new mbi},e.blockReloadInHiddenIframes=function(){var t=aa.hashContainsKnownProperties(window.location.hash);if(t&&e.isInIframe())throw tr.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===Cr.Redirect&&r&&!n)throw tr.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw tr.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(t){if(!t)throw tr.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(t,n){if(t&&!n)throw tr.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var t=window.navigator.userAgent,n=t.indexOf("MSIE "),r=t.indexOf("Trident/"),i=t.indexOf("Edge/"),o=n>0||r>0,a=i>0;return o||a},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var sOt=(function(){function e(t,n,r,i,o,a,s,l,c){this.config=t,this.browserStorage=n,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=a,this.nativeMessageHandler=l,this.correlationId=c||this.browserCrypto.createNewGuid(),this.logger=i.clone(Ug.MSAL_SKU,nW,this.correlationId),this.performanceClient=s}return e.prototype.clearCacheOnLogout=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){switch(n.label){case 0:if(!t)return[3,5];M0.accountInfoIsEqual(t,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(M0.generateAccountCacheKey(t))];case 2:return n.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return n.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return n.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return n.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return n.sent(),[3,9];case 8:return n.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},e.prototype.initializeBaseRequest=function(t,n){return dn(this,void 0,void 0,function(){var r,i,o,a;return pn(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.InitializeBaseRequest,t.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),r=t.authority||this.config.auth.authority,n?[4,this.validateRequestAuthority(r,n)]:[3,2];case 1:s.sent(),s.label=2;case 2:if(i=s3e(t&&t.scopes||[]),o=Sr(Sr({},t),{correlationId:this.correlationId,authority:r,scopes:i}),!o.authenticationScheme)o.authenticationScheme=Qa.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===Qa.SSH){if(!t.sshJwk)throw Gs.createMissingSshJwkError();if(!t.sshKid)throw Gs.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&t.claims&&!mr.isEmptyObj(t.claims)?(a=o,[4,this.browserCrypto.hashString(t.claims)]):[3,4];case 3:a.requestedClaimsHash=s.sent(),s.label=4;case 4:return[2,o]}})})},e.prototype.getRedirectUri=function(t){this.logger.verbose("getRedirectUri called");var n=t||this.config.auth.redirectUri||nc.getCurrentUri();return aa.getAbsoluteUrl(n,nc.getCurrentUri())},e.prototype.validateRequestAuthority=function(t,n){return dn(this,void 0,void 0,function(){var r;return pn(this,function(i){switch(i.label){case 0:return[4,this.getDiscoveredAuthority(t)];case 1:if(r=i.sent(),!r.isAlias(n.environment))throw Gs.createAuthorityMismatchError();return[2]}})})},e.prototype.initializeServerTelemetryManager=function(t,n){this.logger.verbose("initializeServerTelemetryManager called");var r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:t,forceRefresh:n||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new ubi(r,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){switch(r.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),n={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},t?(this.logger.verbose("Creating discovered authority with request authority"),[4,GX.createDiscoveredInstance(t,this.config.system.networkClient,this.browserStorage,n,this.logger)]):[3,2];case 1:return[2,r.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,GX.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,n,this.logger)];case 3:return[2,r.sent()]}})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Rk=(function(e){Id(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initializeAuthorizationCodeRequest=function(n){return dn(this,void 0,void 0,function(){var r,i;return pn(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),this.logger.verbose("initializeAuthorizationRequest called",n.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return r=o.sent(),i=Sr(Sr({},n),{redirectUri:n.redirectUri,code:Mt.EMPTY_STRING,codeVerifier:r.verifier}),n.codeChallenge=r.challenge,n.codeChallengeMethod=Mt.S256_CODE_CHALLENGE_METHOD,[2,i]}})})},t.prototype.initializeLogoutRequest=function(n){this.logger.verbose("initializeLogoutRequest called",n?.correlationId);var r=Sr({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},n);if(n)if(n.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(n.account){var i=this.getLogoutHintFromIdTokenClaims(n.account);i&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=i)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!n||n.postLogoutRedirectUri!==null?n&&n.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=aa.getAbsoluteUrl(n.postLogoutRedirectUri,nc.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=aa.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,nc.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=aa.getAbsoluteUrl(nc.getCurrentUri(),nc.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r},t.prototype.getLogoutHintFromIdTokenClaims=function(n){var r=n.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},t.prototype.createAuthCodeClient=function(n,r,i){return dn(this,void 0,void 0,function(){var o;return pn(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(n,r,i)];case 1:return o=a.sent(),[2,new nOt(o,this.performanceClient)]}})})},t.prototype.getClientConfiguration=function(n,r,i){return dn(this,void 0,void 0,function(){var o,a;return pn(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(r,i)];case 1:return o=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:o,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:n,libraryInfo:{sku:Ug.MSAL_SKU,version:nW,cpu:Mt.EMPTY_STRING,os:Mt.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},t.prototype.validateAndExtractStateFromHash=function(n,r,i){if(this.logger.verbose("validateAndExtractStateFromHash called",i),!n.state)throw tr.createHashDoesNotContainStateError();var o=aOt.extractBrowserRequestState(this.browserCrypto,n.state);if(!o)throw tr.createUnableToParseStateError();if(o.interactionType!==r)throw tr.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",i),n.state},t.prototype.getDiscoveredAuthority=function(n,r){var i;return dn(this,void 0,void 0,function(){var o,a,s,l;return pn(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Xt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=n||this.config.auth.authority,l=l6.generateAuthority(s,r||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(Xt.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,GX.createDiscoveredInstance(l,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(u){return o.endMeasurement({success:!0}),u}).catch(function(u){throw o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,c.sent()]}})})},t.prototype.initializeAuthorizationRequest=function(n,r){return dn(this,void 0,void 0,function(){var i,o,a,s,l,c,u;return pn(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),i=this.getRedirectUri(n.redirectUri),o={interactionType:r},a=Ny.setRequestState(this.browserCrypto,n&&n.state||Mt.EMPTY_STRING,o),this.performanceClient.setPreQueueTime(Xt.InitializeBaseRequest,this.correlationId),l=[{}],[4,this.initializeBaseRequest(n)];case 1:return s=Sr.apply(void 0,[Sr.apply(void 0,l.concat([d.sent()])),{redirectUri:i,state:a,nonce:n.nonce||this.browserCrypto.createNewGuid(),responseMode:NX.FRAGMENT}]),c=n.account||this.browserStorage.getActiveAccount(),c&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+c.homeAccountId,this.correlationId),s.account=c),mr.isEmpty(s.loginHint)&&!c&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},t})(sOt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var d3e=(function(){function e(t,n,r,i,o){this.authModule=t,this.browserStorage=n,this.authCodeRequest=r,this.logger=i,this.performanceClient=o}return e.prototype.handleCodeResponseFromHash=function(t,n,r,i){return dn(this,void 0,void 0,function(){var o,a,s;return pn(this,function(l){if(this.performanceClient.addQueueMeasurement(Xt.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),mr.isEmpty(t))throw tr.createEmptyHashError(t);if(o=this.browserStorage.generateStateKey(n),a=this.browserStorage.getTemporaryCache(o),!a)throw Ar.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(t,a)}catch(c){throw c instanceof d3&&c.subError===On.userCancelledError.code?tr.createUserCancelledError():c}return this.performanceClient.setPreQueueTime(Xt.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,n,r,i)]})})},e.prototype.handleCodeResponseFromServer=function(t,n,r,i,o){return o===void 0&&(o=!0),dn(this,void 0,void 0,function(){var a,s,l,c,u,d;return pn(this,function(p){switch(p.label){case 0:if(this.performanceClient.addQueueMeasurement(Xt.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw Ar.createStateNotFoundError("Cached State");return l=this.browserStorage.generateNonceKey(s),c=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=t.code,t.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(Xt.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(t.cloud_instance_host_name,r,i)]):[3,2];case 1:p.sent(),p.label=2;case 2:return o&&(t.nonce=c||void 0),t.state=s,t.client_info?this.authCodeRequest.clientInfo=t.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(Xt.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,t)];case 3:return d=p.sent(),this.browserStorage.cleanRequestByState(n),[2,d]}})})},e.prototype.updateTokenEndpointAuthority=function(t,n,r){return dn(this,void 0,void 0,function(){var i,o;return pn(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),i="https://"+t+"/"+n.tenant+"/",[4,GX.createDiscoveredInstance(i,r,this.browserStorage,n.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return o=a.sent(),this.authModule.updateAuthority(o),[2]}})})},e.prototype.checkCcsCredentials=function(){var t=this.browserStorage.getTemporaryCache(ba.CCS_CREDENTIAL,!0);if(t)try{return JSON.parse(t)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+t)}return null},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var cKe=(function(e){Id(t,e);function t(n,r,i,o,a,s){var l=e.call(this,n,r,i,o,s)||this;return l.browserCrypto=a,l}return t.prototype.initiateAuthRequest=function(n,r){return dn(this,void 0,void 0,function(){var i,o;return pn(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),mr.isEmpty(n)?[3,7]:(r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ba.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ba.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+n),i={apiId:Vs.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1},typeof r.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),o=r.onRedirectNavigate(n),o===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,r.navigationClient.navigateExternal(n,i)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,r.navigationClient.navigateExternal(n,i)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),tr.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(n,r,i,o){return dn(this,void 0,void 0,function(){var a,s,l,c,u,d,p;return pn(this,function(h){switch(h.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),mr.isEmpty(n))throw tr.createEmptyHashError(n);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw Ar.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(n,s)}catch(g){throw g instanceof d3&&g.subError===On.userCancelledError.code?tr.createUserCancelledError():g}return c=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,i,o)]:[3,2];case 1:h.sent(),h.label=2;case 2:return l.nonce=u||void 0,l.state=s,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return p=h.sent(),this.browserStorage.cleanRequestByState(r),[2,p]}})})},t})(d3e);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Vr;(function(e){e.INITIALIZE_START="msal:initializeStart",e.INITIALIZE_END="msal:initializeEnd",e.ACCOUNT_ADDED="msal:accountAdded",e.ACCOUNT_REMOVED="msal:accountRemoved",e.LOGIN_START="msal:loginStart",e.LOGIN_SUCCESS="msal:loginSuccess",e.LOGIN_FAILURE="msal:loginFailure",e.ACQUIRE_TOKEN_START="msal:acquireTokenStart",e.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",e.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",e.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",e.SSO_SILENT_START="msal:ssoSilentStart",e.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",e.SSO_SILENT_FAILURE="msal:ssoSilentFailure",e.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",e.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",e.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",e.HANDLE_REDIRECT_START="msal:handleRedirectStart",e.HANDLE_REDIRECT_END="msal:handleRedirectEnd",e.POPUP_OPENED="msal:popupOpened",e.LOGOUT_START="msal:logoutStart",e.LOGOUT_SUCCESS="msal:logoutSuccess",e.LOGOUT_FAILURE="msal:logoutFailure",e.LOGOUT_END="msal:logoutEnd",e.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(Vr||(Vr={}));/*! @azure/msal-browser v2.39.0 2024-06-06 */var jC;(function(e){e.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",e.USER_CANCEL="USER_CANCEL",e.NO_NETWORK="NO_NETWORK",e.TRANSIENT_ERROR="TRANSIENT_ERROR",e.PERSISTENT_ERROR="PERSISTENT_ERROR",e.DISABLED="DISABLED",e.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(jC||(jC={}));var o5={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},ab=(function(e){Id(t,e);function t(n,r,i){var o=e.call(this,n,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name="NativeAuthError",o.ext=i,o}return t.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===jC.PERSISTENT_ERROR||this.ext.status===jC.DISABLED))return!0;switch(this.errorCode){case o5.extensionError.code:return!0;default:return!1}},t.createError=function(n,r,i){if(i&&i.status)switch(i.status){case jC.ACCOUNT_UNAVAILABLE:return om.createNativeAccountUnavailableError();case jC.USER_INTERACTION_REQUIRED:return new om(n,r);case jC.USER_CANCEL:return tr.createUserCancelledError();case jC.NO_NETWORK:return tr.createNoNetworkConnectivityError()}return new t(n,r,i)},t.createUserSwitchError=function(){return new t(o5.userSwitch.code,o5.userSwitch.desc)},t.createTokensNotFoundInCacheError=function(){return new t(o5.tokensNotFoundInCache.code,o5.tokensNotFoundInCache.desc)},t})(Gr);/*! @azure/msal-browser v2.39.0 2024-06-06 */var lOt=(function(e){Id(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s;return pn(this,function(l){switch(l.label){case 0:return r=this.performanceClient.startMeasurement(Xt.SilentCacheClientAcquireToken,n.correlationId),i=this.initializeServerTelemetryManager(Vs.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(i,n.authority,n.azureCloudOptions)];case 1:o=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,o.acquireCachedToken(n)];case 3:return a=l.sent(),r.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=l.sent(),s instanceof tr&&s.errorCode===On.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),r.endMeasurement({errorCode:s instanceof Gr&&s.errorCode||void 0,subErrorCode:s instanceof Gr&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(tr.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(n,r,i){return dn(this,void 0,void 0,function(){var o;return pn(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(n,r,i)];case 1:return o=a.sent(),[2,new rbi(o,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(n,r){return dn(this,void 0,void 0,function(){var i;return pn(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(Xt.InitializeBaseRequest,this.correlationId),i=[Sr({},n)],[4,this.initializeBaseRequest(n,r)];case 1:return[2,Sr.apply(void 0,[Sr.apply(void 0,i.concat([o.sent()])),{account:r,forceRefresh:n.forceRefresh||!1}])]}})})},t})(Rk);/*! @azure/msal-browser v2.39.0 2024-06-06 */var $I=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d,p,h){var g=e.call(this,n,r,i,o,a,s,c,u,h)||this;return g.apiId=l,g.accountId=d,g.nativeMessageHandler=u,g.nativeStorageManager=p,g.silentCacheClient=new lOt(n,g.nativeStorageManager,i,o,a,s,c,u,h),g}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),r=this.performanceClient.startMeasurement(Xt.NativeInteractionClientAcquireToken,n.correlationId),i=Pf.nowSeconds(),[4,this.initializeNativeRequest(n)];case 1:o=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return a=u.sent(),r.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:Ty.GetToken,request:o},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return l=u.sent(),c=this.validateNativeResponse(l),[2,this.handleNativeResponse(c,o,i).then(function(d){return r.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw r.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},t.prototype.createSilentCacheRequest=function(n,r){return{authority:n.authority,correlationId:this.correlationId,scopes:c0.fromString(n.scope).asArray(),account:r,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(n,r){return dn(this,void 0,void 0,function(){var i,o,a,s,l;return pn(this,function(c){switch(c.label){case 0:if(!n)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Ar.createNoAccountFoundError();if(i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:n}),!i)throw Ar.createNoAccountFoundError();c.label=1;case 1:return c.trys.push([1,3,,4]),o=this.createSilentCacheRequest(r,i),[4,this.silentCacheClient.acquireToken(o)];case 2:return a=c.sent(),s=Sr(Sr({},i),{idTokenClaims:a.idTokenClaims}),[2,Sr(Sr({},a),{account:s})];case 3:throw l=c.sent(),l;case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l;return pn(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(n)];case 1:r=c.sent(),i={method:Ty.GetToken,request:r},c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(i)];case 3:return o=c.sent(),this.validateNativeResponse(o),[3,5];case 4:if(a=c.sent(),a instanceof ab&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ba.NATIVE_REQUEST,JSON.stringify(r),!0),s={apiId:Vs.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(n.redirectUri),[4,this.navigationClient.navigateExternal(l,s)];case 6:return c.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return dn(this,void 0,void 0,function(){var n,r,i,o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(n=this.browserStorage.getCachedNativeRequest(),!n)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];r=n.prompt,i=QYe(n,["prompt"]),r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ba.NATIVE_REQUEST)),o={method:Ty.GetToken,request:i},a=Pf.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(o)];case 2:return s=u.sent(),this.validateNativeResponse(s),l=this.handleNativeResponse(s,i,a),this.browserStorage.setInteractionInProgress(!1),[2,l];case 3:throw c=u.sent(),this.browserStorage.setInteractionInProgress(!1),c;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(n,r,i){return dn(this,void 0,void 0,function(){var o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),n.account.id!==r.accountId)throw ab.createUserSwitchError();return[4,this.getDiscoveredAuthority(r.authority)];case 1:return o=u.sent(),a=this.createIdTokenObj(n),s=this.createHomeAccountIdentifier(n,a),l=M0.createAccount({homeAccountId:s,idTokenClaims:a.claims,clientInfo:n.client_info,nativeAccountId:n.account.id},o),[4,this.generateAuthenticationResult(n,r,a,l,o.canonicalAuthority,i)];case 2:return c=u.sent(),this.cacheAccount(l),this.cacheNativeTokens(n,r,s,a,c.accessToken,c.tenantId,i),[2,c]}})})},t.prototype.createIdTokenObj=function(n){return new jb(n.id_token||Mt.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(n,r){var i=M0.generateHomeAccountId(n.client_info||Mt.EMPTY_STRING,U1.Default,this.logger,this.browserCrypto,r.claims);return i},t.prototype.generateScopes=function(n,r){return n.scope?c0.fromString(n.scope):c0.fromString(r.scope)},t.prototype.generatePopAccessToken=function(n,r){return dn(this,void 0,void 0,function(){var i,o;return pn(this,function(a){switch(a.label){case 0:if(r.tokenType!==Qa.POP)return[3,2];if(n.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,n.shr];if(i=new nD(this.browserCrypto),o={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce},!r.keyId)throw Ar.createKeyIdMissingError();return[4,i.signPopToken(n.access_token,r.keyId,o)];case 1:return[2,a.sent()];case 2:return[2,n.access_token]}})})},t.prototype.generateAuthenticationResult=function(n,r,i,o,a,s){return dn(this,void 0,void 0,function(){var l,c,u,d,p,h,g,m;return pn(this,function(b){switch(b.label){case 0:return l=this.addTelemetryFromNativeResponse(n),c=n.scope?c0.fromString(n.scope):c0.fromString(r.scope),u=n.account.properties||{},d=u.UID||i.claims.oid||i.claims.sub||Mt.EMPTY_STRING,p=u.TenantId||i.claims.tid||Mt.EMPTY_STRING,[4,this.generatePopAccessToken(n,r)];case 1:return h=b.sent(),g=r.tokenType===Qa.POP?Qa.POP:Qa.BEARER,m={authority:a,uniqueId:d,tenantId:p,scopes:c.asArray(),account:o.getAccountInfo(),idToken:n.id_token,idTokenClaims:i.claims,accessToken:h,fromCache:l?this.isResponseFromCache(l):!1,expiresOn:new Date(Number(s+n.expires_in)*1e3),tokenType:g,correlationId:this.correlationId,state:n.state,fromNativeBroker:!0},[2,m]}})})},t.prototype.cacheAccount=function(n){var r=this;this.browserStorage.setAccount(n),this.browserStorage.removeAccountContext(n).catch(function(i){r.logger.error("Error occurred while removing account context from browser storage. "+i)})},t.prototype.cacheNativeTokens=function(n,r,i,o,a,s,l){var c=ex.createIdTokenEntity(i,r.authority,n.id_token||Mt.EMPTY_STRING,r.clientId,o.claims.tid||Mt.EMPTY_STRING),u=r.tokenType===Qa.POP?Mt.SHR_NONCE_VALIDITY:(typeof n.expires_in=="string"?parseInt(n.expires_in,10):n.expires_in)||0,d=l+u,p=this.generateScopes(n,r),h=tx.createAccessTokenEntity(i,r.authority,a,r.clientId,o?o.claims.tid||Mt.EMPTY_STRING:s,p.printScopes(),d,0,this.browserCrypto),g=new GI(void 0,c,h);this.nativeStorageManager.saveCacheRecord(g)},t.prototype.addTelemetryFromNativeResponse=function(n){var r=this.getMATSFromResponse(n);return r?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null},t.prototype.validateNativeResponse=function(n){if(n.hasOwnProperty("access_token")&&n.hasOwnProperty("id_token")&&n.hasOwnProperty("client_info")&&n.hasOwnProperty("account")&&n.hasOwnProperty("scope")&&n.hasOwnProperty("expires_in"))return n;throw ab.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(n){if(n.properties.MATS)try{return JSON.parse(n.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(n){return typeof n.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!n.is_cached},t.prototype.initializeNativeRequest=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u,d,p,h=this;return pn(this,function(g){switch(g.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),r=n.authority||this.config.auth.authority,n.account?[4,this.validateRequestAuthority(r,n.account)]:[3,2];case 1:g.sent(),g.label=2;case 2:return i=new aa(r),i.validateAsUri(),o=n.scopes,a=QYe(n,["scopes"]),s=new c0(o||[]),s.appendScopes(bj),l=function(){switch(h.apiId){case Vs.ssoSilent:case Vs.acquireTokenSilent_silentFlow:return h.logger.trace("initializeNativeRequest: silent request sets prompt to none"),g0.NONE}if(!n.prompt){h.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(n.prompt){case g0.NONE:case g0.CONSENT:case g0.LOGIN:return h.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),n.prompt;default:throw h.logger.trace("initializeNativeRequest: prompt = "+n.prompt+" is not compatible with native flow"),tr.createNativePromptParameterNotSupportedError()}},c=Sr(Sr({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:i.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(n.redirectUri),prompt:l(),correlationId:this.correlationId,tokenType:n.authenticationScheme,windowTitleSubstring:document.title,extraParameters:Sr(Sr(Sr({},n.extraQueryParameters),n.tokenQueryParameters),{telemetry:EN.MATS_TELEMETRY}),extendedExpiryToken:!1}),n.authenticationScheme!==Qa.POP?[3,4]:(u={resourceRequestUri:n.resourceRequestUri,resourceRequestMethod:n.resourceRequestMethod,shrClaims:n.shrClaims,shrNonce:n.shrNonce},d=new nD(this.browserCrypto),[4,d.generateCnf(u)]);case 3:p=g.sent(),c.reqCnf=p.reqCnfString,c.keyId=p.kid,g.label=4;case 4:return[2,c]}})})},t})(sOt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var uz=(function(){function e(t,n,r,i){this.logger=t,this.handshakeTimeoutMs=n,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(Xt.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(t){return dn(this,void 0,void 0,function(){var n,r=this;return pn(this,function(i){return this.logger.trace("NativeMessageHandler - sendMessage called."),n={channel:EN.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:t},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(n)),this.messageChannel.port1.postMessage(n),[2,new Promise(function(o,a){r.resolvers.set(n.responseId,{resolve:o,reject:a})})]})})},e.createProvider=function(t,n,r){return dn(this,void 0,void 0,function(){var i,o;return pn(this,function(a){switch(a.label){case 0:t.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),i=new e(t,n,r,EN.PREFERRED_EXTENSION_ID),[4,i.sendHandshakeRequest()];case 2:return a.sent(),[2,i];case 3:return a.sent(),o=new e(t,n,r),[4,o.sendHandshakeRequest()];case 4:return a.sent(),[2,o];case 5:return[2]}})})},e.prototype.sendHandshakeRequest=function(){return dn(this,void 0,void 0,function(){var t,n=this;return pn(this,function(r){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),t={channel:EN.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Ty.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(i){n.onChannelMessage(i)},window.postMessage(t,window.origin,[this.messageChannel.port2]),[2,new Promise(function(i,o){n.handshakeResolvers.set(t.responseId,{resolve:i,reject:o}),n.timeoutId=window.setTimeout(function(){window.removeEventListener("message",n.windowListener,!1),n.messageChannel.port1.close(),n.messageChannel.port2.close(),n.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),o(tr.createNativeHandshakeTimeoutError()),n.handshakeResolvers.delete(t.responseId)},n.handshakeTimeoutMs)})]})})},e.prototype.onWindowMessage=function(t){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),t.source===window){var n=t.data;if(!(!n.channel||n.channel!==EN.CHANNEL_ID)&&!(n.extensionId&&n.extensionId!==this.extensionId)&&n.body.method===Ty.HandshakeRequest){this.logger.verbose(n.extensionId?"Extension with id: "+n.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var r=this.handshakeResolvers.get(n.responseId);r&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),r.reject(tr.createNativeExtensionNotInstalledError()))}}},e.prototype.onChannelMessage=function(t){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var n=t.data,r=this.resolvers.get(n.responseId),i=this.handshakeResolvers.get(n.responseId);try{var o=n.body.method;if(o===Ty.Response){if(!r)return;var a=n.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")r.reject(ab.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?r.reject(ab.createError(a.result.code,a.result.description,a.result.ext)):r.resolve(a.result);else throw Gr.createUnexpectedError("Event does not contain result.");this.resolvers.delete(n.responseId)}else if(o===Ty.HandshakeResponse){if(!i)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=n.extensionId,this.extensionVersion=n.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),i.resolve(),this.handshakeResolvers.delete(n.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+t),r?r.reject(s):i&&i.reject(s)}},e.prototype.getExtensionId=function(){return this.extensionId},e.prototype.getExtensionVersion=function(){return this.extensionVersion},e.isNativeAvailable=function(t,n,r,i){if(n.trace("isNativeAvailable called"),!t.system.allowNativeBroker)return n.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return n.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(i)switch(i){case Qa.BEARER:case Qa.POP:return n.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return n.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var vbi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d){var p=e.call(this,n,r,i,o,a,s,l,u,d)||this;return p.nativeStorage=c,p}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u,d,p=this;return pn(this,function(h){switch(h.label){case 0:return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationRequest,n.correlationId),[4,this.initializeAuthorizationRequest(n,Cr.Redirect)];case 1:r=h.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||Mt.EMPTY_STRING,r.account||null),i=this.initializeServerTelemetryManager(Vs.acquireTokenRedirect),o=function(g){g.persisted&&(p.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),p.browserStorage.cleanRequestByState(r.state),p.eventHandler.emitEvent(Vr.RESTORE_FROM_BFCACHE,Cr.Redirect))},h.label=2;case 2:return h.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 3:return a=h.sent(),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(i,r.authority,r.azureCloudOptions)];case 4:return s=h.sent(),this.logger.verbose("Auth code client created"),l=new cKe(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(Sr(Sr({},r),{nativeBroker:uz.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 5:return c=h.sent(),u=this.getRedirectStartPage(n.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",o),[4,l.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:n.onRedirectNavigate})];case 6:return[2,h.sent()];case 7:throw d=h.sent(),d instanceof Gr&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),i.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(r.state),d;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u,d,p,h,g;return pn(this,function(m){switch(m.label){case 0:r=this.initializeServerTelemetryManager(Vs.handleRedirectPromise),m.label=1;case 1:if(m.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(i=this.getRedirectResponseHash(n||window.location.hash),!i)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(Cr.Redirect),[2,null];o=void 0;try{a=aa.getDeserializedHash(i),o=this.validateAndExtractStateFromHash(a,Cr.Redirect),this.logger.verbose("State extracted from hash")}catch(b){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+b),this.browserStorage.cleanRequestByInteractionType(Cr.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(ba.ORIGIN_URI,!0)||Mt.EMPTY_STRING,l=aa.removeHashFromUrl(s),c=aa.removeHashFromUrl(window.location.href),l===c&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(i,o,r)]):[3,3];case 2:return u=m.sent(),s.indexOf("#")>-1&&nc.replaceHash(s),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(i,o,r)]);case 4:return!nc.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ba.URL_HASH,i,!0),d={apiId:Vs.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},p=!0,!s||s==="null"?(h=nc.getHomepage(),this.browserStorage.setTemporaryCache(ba.ORIGIN_URI,h,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(h,d)]):[3,6]):[3,9];case 5:return p=m.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:p=m.sent(),m.label=8;case 8:if(!p)return[2,this.handleHash(i,o,r)];m.label=9;case 9:return[2,null];case 10:throw g=m.sent(),g instanceof Gr&&g.setCorrelationId(this.correlationId),r.cacheFailedRequest(g),this.browserStorage.cleanRequestByInteractionType(Cr.Redirect),g;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(n){this.logger.verbose("getRedirectResponseHash called");var r=aa.hashContainsKnownProperties(n);if(r)return nc.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),n;var i=this.browserStorage.getTemporaryCache(ba.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ba.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),i},t.prototype.handleHash=function(n,r,i){return dn(this,void 0,void 0,function(){var o,a,s,l,c,u,d,p=this;return pn(this,function(h){switch(h.label){case 0:if(o=this.browserStorage.getCachedRequest(r,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=aa.getDeserializedHash(n),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw tr.createNativeConnectionNotEstablishedError();return s=new $I(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vs.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,o.correlationId),l=Ny.parseRequestState(this.browserCrypto,r).userRequestState,[2,s.acquireToken(Sr(Sr({},o),{state:l,prompt:void 0})).finally(function(){p.browserStorage.cleanRequestByState(r)})]}if(c=this.browserStorage.getCachedAuthority(r),!c)throw tr.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,o.correlationId),[4,this.createAuthCodeClient(i,c)];case 1:return u=h.sent(),this.logger.verbose("Auth code client created"),jX.removeThrottle(this.browserStorage,this.config.auth.clientId,o),d=new cKe(u,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(n,r,u.authority,this.networkClient)];case 2:return[2,h.sent()]}})})},t.prototype.logout=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),r=this.initializeLogoutRequest(n),i=this.initializeServerTelemetryManager(Vs.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(Vr.LOGOUT_START,Cr.Redirect,n),[4,this.clearCacheOnLogout(r.account)];case 2:return u.sent(),o={apiId:Vs.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(i,n&&n.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(r),this.eventHandler.emitEvent(Vr.LOGOUT_SUCCESS,Cr.Redirect,r),n&&typeof n.onRedirectNavigate=="function"?(l=n.onRedirectNavigate(s),l===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,o)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,o)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw c=u.sent(),c instanceof Gr&&c.setCorrelationId(this.correlationId),i.cacheFailedRequest(c),this.eventHandler.emitEvent(Vr.LOGOUT_FAILURE,Cr.Redirect,null,c),this.eventHandler.emitEvent(Vr.LOGOUT_END,Cr.Redirect),c;case 11:return this.eventHandler.emitEvent(Vr.LOGOUT_END,Cr.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(n){var r=n||window.location.href;return aa.getAbsoluteUrl(r,nc.getCurrentUri())},t})(Rk);/*! @azure/msal-browser v2.39.0 2024-06-06 */var bbi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d){var p=e.call(this,n,r,i,o,a,s,l,u,d)||this;return p.unloadWindow=p.unloadWindow.bind(p),p.nativeStorage=c,p}return t.prototype.acquireToken=function(n){try{var r=this.generatePopupName(n.scopes||bj,n.authority||this.config.auth.authority),i=n.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(n,r,i);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var o=this.openSizedPopup("about:blank",r,i);return this.acquireTokenPopupAsync(n,r,i,o)}catch(a){return Promise.reject(a)}},t.prototype.logout=function(n){try{this.logger.verbose("logoutPopup called");var r=this.initializeLogoutRequest(n),i=this.generateLogoutPopupName(r),o=n&&n.authority,a=n&&n.mainWindowRedirectUri,s=n?.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,i,s,o,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var l=this.openSizedPopup("about:blank",i,s);return this.logoutPopupAsync(r,i,s,o,l,a)}catch(c){return Promise.reject(c)}},t.prototype.acquireTokenPopupAsync=function(n,r,i,o){return dn(this,void 0,void 0,function(){var a,s,l,c,u,d,p,h,g,m,b,y,M,C,x,w,S,A=this;return pn(this,function(z){switch(z.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(Vs.acquireTokenPopup),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationRequest,n.correlationId),[4,this.initializeAuthorizationRequest(n,Cr.Popup)];case 1:s=z.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||Mt.EMPTY_STRING,s.account||null),z.label=2;case 2:return z.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return l=z.sent(),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return c=z.sent(),this.logger.verbose("Auth code client created"),u=uz.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(Xt.FetchAccountIdWithNativeBroker,n.correlationId)),[4,c.getAuthCodeUrl(Sr(Sr({},s),{nativeBroker:u}))];case 5:return p=z.sent(),h=new d3e(c,this.browserStorage,l,this.logger,this.performanceClient),g={popup:o,popupName:r,popupWindowAttributes:i},m=this.initiateAuthRequest(p,g),this.eventHandler.emitEvent(Vr.POPUP_OPENED,Cr.Popup,{popupWindow:m},null),[4,this.monitorPopupForHash(m)];case 6:if(b=z.sent(),y=aa.getDeserializedHash(b),M=this.validateAndExtractStateFromHash(y,Cr.Popup,s.correlationId),jX.removeThrottle(this.browserStorage,this.config.auth.clientId,l),y.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw tr.createNativeConnectionNotEstablishedError();return C=new $I(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vs.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,y.accountId,this.nativeStorage,s.correlationId),x=Ny.parseRequestState(this.browserCrypto,M).userRequestState,[2,C.acquireToken(Sr(Sr({},s),{state:x,prompt:void 0})).finally(function(){A.browserStorage.cleanRequestByState(M)})]}return[4,h.handleCodeResponseFromHash(b,M,c.authority,this.networkClient)];case 7:return w=z.sent(),[2,w];case 8:throw S=z.sent(),o&&o.close(),S instanceof Gr&&S.setCorrelationId(this.correlationId),a.cacheFailedRequest(S),this.browserStorage.cleanRequestByState(s.state),S;case 9:return[2]}})})},t.prototype.logoutPopupAsync=function(n,r,i,o,a,s){return dn(this,void 0,void 0,function(){var l,c,u,d,p,h,g;return pn(this,function(m){switch(m.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Vr.LOGOUT_START,Cr.Popup,n),l=this.initializeServerTelemetryManager(Vs.logoutPopup),m.label=1;case 1:return m.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(n.account)];case 2:return m.sent(),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(l,o)];case 3:return c=m.sent(),this.logger.verbose("Auth code client created"),u=c.getLogoutUri(n),this.eventHandler.emitEvent(Vr.LOGOUT_SUCCESS,Cr.Popup,n),d=this.openPopup(u,{popupName:r,popupWindowAttributes:i,popup:a}),this.eventHandler.emitEvent(Vr.POPUP_OPENED,Cr.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return m.sent(),s?(p={apiId:Vs.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},h=aa.getAbsoluteUrl(s,nc.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+h),this.navigationClient.navigateInternal(h,p)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw g=m.sent(),a&&a.close(),g instanceof Gr&&g.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Vr.LOGOUT_FAILURE,Cr.Popup,null,g),this.eventHandler.emitEvent(Vr.LOGOUT_END,Cr.Popup),l.cacheFailedRequest(g),g;case 6:return this.eventHandler.emitEvent(Vr.LOGOUT_END,Cr.Popup),[2]}})})},t.prototype.initiateAuthRequest=function(n,r){if(mr.isEmpty(n))throw this.logger.error("Navigate url is empty"),tr.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+n),this.openPopup(n,r)},t.prototype.monitorPopupForHash=function(n){var r=this;return new Promise(function(i,o){var a=r.config.system.windowHashTimeout/r.config.system.pollIntervalMilliseconds,s=0;r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var l=setInterval(function(){if(n.closed){r.logger.error("PopupHandler.monitorPopupForHash - window closed"),r.cleanPopup(),clearInterval(l),o(tr.createUserCancelledError());return}var c=Mt.EMPTY_STRING,u=Mt.EMPTY_STRING;try{c=n.location.href,u=n.location.hash}catch{}mr.isEmpty(c)||c==="about:blank"||(r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,u?(r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(l),r.cleanPopup(n),aa.hashContainsKnownProperties(u)?(r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),i(u)):(r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),o(tr.createHashDoesNotContainKnownPropertiesError()))):s>a&&(r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),o(tr.createMonitorPopupTimeoutError())))},r.config.system.pollIntervalMilliseconds)})},t.prototype.waitForLogoutPopup=function(n){var r=this;return new Promise(function(i){r.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){n.closed&&(r.logger.error("PopupHandler.waitForLogoutPopup - window closed"),r.cleanPopup(),clearInterval(o),i());var a=Mt.EMPTY_STRING;try{a=n.location.href}catch{}mr.isEmpty(a)||a==="about:blank"||(r.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),r.cleanPopup(n),i())},r.config.system.pollIntervalMilliseconds)})},t.prototype.openPopup=function(n,r){try{var i=void 0;if(r.popup?(i=r.popup,this.logger.verbosePii("Navigating popup window to: "+n),i.location.assign(n)):typeof r.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+n),i=this.openSizedPopup(n,r.popupName,r.popupWindowAttributes)),!i)throw tr.createEmptyWindowCreatedError();return i.focus&&i.focus(),this.currentWindow=i,window.addEventListener("beforeunload",this.unloadWindow),i}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),tr.createPopupWindowError(o.toString())}},t.prototype.openSizedPopup=function(n,r,i){var o,a,s,l,c=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,p=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,h=(o=i.popupSize)===null||o===void 0?void 0:o.width,g=(a=i.popupSize)===null||a===void 0?void 0:a.height,m=(s=i.popupPosition)===null||s===void 0?void 0:s.top,b=(l=i.popupPosition)===null||l===void 0?void 0:l.left;return(!h||h<0||h>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),h=Ug.POPUP_WIDTH),(!g||g<0||g>p)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),g=Ug.POPUP_HEIGHT),(!m||m<0||m>p)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),m=Math.max(0,p/2-Ug.POPUP_HEIGHT/2+u)),(!b||b<0||b>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),b=Math.max(0,d/2-Ug.POPUP_WIDTH/2+c)),window.open(n,r,"width="+h+", height="+g+", top="+m+", left="+b+", scrollbars=yes")},t.prototype.unloadWindow=function(n){this.browserStorage.cleanRequestByInteractionType(Cr.Popup),this.currentWindow&&this.currentWindow.close(),n.preventDefault()},t.prototype.cleanPopup=function(n){n&&n.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(n,r){return Ug.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n.join("-")+"."+r+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(n){var r=n.account&&n.account.homeAccountId;return Ug.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r+"."+this.correlationId},t})(Rk);/*! @azure/msal-browser v2.39.0 2024-06-06 */var ybi=(function(){function e(){}return e.prototype.navigateInternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.prototype.navigateExternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.defaultNavigateWindow=function(t,n){return n.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(r){setTimeout(function(){r(!0)},n.timeout)})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Mbi=6e4,d2e=6e3,Cbi=3e4,xbi=2e3;function wbi(e,t){var n=e.auth,r=e.cache,i=e.system,o=e.telemetry,a={clientId:Mt.EMPTY_STRING,authority:""+Mt.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:Mt.EMPTY_STRING,authorityMetadata:Mt.EMPTY_STRING,redirectUri:Mt.EMPTY_STRING,postLogoutRedirectUri:Mt.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:tD.AAD,azureCloudOptions:{azureCloudInstance:s6.None,tenant:Mt.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:Xc.SessionStorage,temporaryCacheLocation:Xc.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(r&&r.cacheLocation===Xc.LocalStorage),claimsBasedCachingEnabled:!0},l={loggerCallback:function(){},logLevel:Jl.Info,piiLoggingEnabled:!1},c=Sr(Sr({},tOt),{loggerOptions:l,networkClient:t?nc.getBrowserNetworkClient():lbi,navigationClient:new ybi,loadFrameTimeout:0,windowHashTimeout:i?.loadFrameTimeout||Mbi,iframeHashTimeout:i?.loadFrameTimeout||d2e,navigateFrameWait:t&&nc.detectIEOrEdge()?500:0,redirectNavigationTimeout:Cbi,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:i?.nativeBrokerHandshakeTimeout||xbi,pollIntervalMilliseconds:Ug.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=Sr(Sr({},i),{loggerOptions:i?.loggerOptions||l}),d={application:{appName:Mt.EMPTY_STRING,appVersion:Mt.EMPTY_STRING}},p={auth:Sr(Sr({},a),n),cache:Sr(Sr({},s),r),system:Sr(Sr({},c),u),telemetry:Sr(Sr({},d),o)};return p}/*! @azure/msal-browser v2.39.0 2024-06-06 */var cOt=(function(e){Id(t,e);function t(n,r,i,o,a,s){var l=e.call(this,n,r,i,o,s)||this;return l.navigateFrameWait=a.navigateFrameWait,l.pollIntervalMilliseconds=a.pollIntervalMilliseconds,l}return t.prototype.initiateAuthRequest=function(n){return dn(this,void 0,void 0,function(){return pn(this,function(r){switch(r.label){case 0:if(this.performanceClient.addQueueMeasurement(Xt.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),mr.isEmpty(n))throw this.logger.info("Navigate url is empty"),tr.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(Xt.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(n)]):[3,2];case 1:return[2,r.sent()];case 2:return[2,this.loadFrameSync(n)]}})})},t.prototype.monitorIframeForHash=function(n,r){var i=this;return this.performanceClient.addQueueMeasurement(Xt.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(o,a){r<d2e&&i.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+r+"ms) than the default ("+d2e+"ms). This may result in timeouts.");var s=window.performance.now(),l=s+r,c=setInterval(function(){if(window.performance.now()>l){i.removeHiddenIframe(n),clearInterval(c),a(tr.createMonitorIframeTimeoutError());return}var u=Mt.EMPTY_STRING,d=n.contentWindow;try{u=d?d.location.href:Mt.EMPTY_STRING}catch{}if(!mr.isEmpty(u)){var p=d?d.location.hash:Mt.EMPTY_STRING;if(aa.hashContainsKnownProperties(p)){i.removeHiddenIframe(n),clearInterval(c),o(p);return}}},i.pollIntervalMilliseconds)})},t.prototype.loadFrame=function(n){var r=this;return this.performanceClient.addQueueMeasurement(Xt.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(i,o){var a=r.createHiddenIframe();setTimeout(function(){if(!a){o("Unable to load iframe");return}a.src=n,i(a)},r.navigateFrameWait)})},t.prototype.loadFrameSync=function(n){var r=this.createHiddenIframe();return r.src=n,r},t.prototype.createHiddenIframe=function(){var n=document.createElement("iframe");return n.className="msalSilentIframe",n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height="0",n.style.border="0",n.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(n),n},t.prototype.removeHiddenIframe=function(n){document.body===n.parentNode&&document.body.removeChild(n)},t})(d3e);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Sbi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d,p){var h=e.call(this,n,r,i,o,a,s,c,d,p)||this;return h.apiId=l,h.nativeStorage=u,h}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s;return pn(this,function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(Xt.SilentIframeClientAcquireToken,n.correlationId),this.logger.verbose("acquireTokenByIframe called"),r=this.performanceClient.startMeasurement(Xt.SilentIframeClientAcquireToken,n.correlationId),mr.isEmpty(n.loginHint)&&mr.isEmpty(n.sid)&&(!n.account||mr.isEmpty(n.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),n.prompt&&n.prompt!==g0.NONE&&n.prompt!==g0.NO_SESSION)throw r.endMeasurement({success:!1}),tr.createSilentPromptValueError(n.prompt);return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationRequest,n.correlationId),[4,this.initializeAuthorizationRequest(Sr(Sr({},n),{prompt:n.prompt||g0.NONE}),Cr.Silent)];case 1:i=l.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||Mt.EMPTY_STRING,i.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 3:return a=l.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(Xt.SilentIframeClientTokenHelper,n.correlationId),[4,this.silentTokenHelper(a,i).then(function(c){return r.endMeasurement({success:!0,fromCache:!1,requestId:c.requestId}),c})];case 4:return[2,l.sent()];case 5:throw s=l.sent(),s instanceof Gr&&s.setCorrelationId(this.correlationId),o.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(i.state),r.endMeasurement({errorCode:s instanceof Gr&&s.errorCode||void 0,subErrorCode:s instanceof Gr&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(tr.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(n,r){return dn(this,void 0,void 0,function(){var i,o,a,s,l,c,u,d,p,h=this;return pn(this,function(g){switch(g.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.SilentIframeClientTokenHelper,r.correlationId),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 1:return i=g.sent(),this.performanceClient.setPreQueueTime(Xt.GetAuthCodeUrl,r.correlationId),[4,n.getAuthCodeUrl(Sr(Sr({},r),{nativeBroker:uz.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 2:return o=g.sent(),a=new cOt(n,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(Xt.SilentHandlerInitiateAuthRequest,r.correlationId),[4,a.initiateAuthRequest(o)];case 3:return s=g.sent(),this.performanceClient.setPreQueueTime(Xt.SilentHandlerMonitorIframeForHash,r.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(l=g.sent(),c=aa.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(c,Cr.Silent,i.correlationId),c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw tr.createNativeConnectionNotEstablishedError();return d=new $I(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,c.accountId,this.browserStorage,this.correlationId),p=Ny.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(Sr(Sr({},r),{state:p,prompt:r.prompt||g0.NONE})).finally(function(){h.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(Xt.HandleCodeResponseFromHash,r.correlationId),[2,a.handleCodeResponseFromHash(l,u,n.authority,this.networkClient)]}})})},t})(Rk);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Abi=(function(e){Id(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l=this;return pn(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.SilentRefreshClientAcquireToken,n.correlationId),this.performanceClient.setPreQueueTime(Xt.InitializeBaseRequest,n.correlationId),i=[Sr({},n)],[4,this.initializeBaseRequest(n,n.account)];case 1:return r=Sr.apply(void 0,i.concat([c.sent()])),o=this.performanceClient.startMeasurement(Xt.SilentRefreshClientAcquireToken,r.correlationId),a=this.initializeServerTelemetryManager(Vs.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,r.authority,r.azureCloudOptions)];case 2:return s=c.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(Xt.RefreshTokenClientAcquireTokenByRefreshToken,n.correlationId),[2,s.acquireTokenByRefreshToken(r).then(function(u){return o.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof Gr&&u.setCorrelationId(l.correlationId),a.cacheFailedRequest(u),o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},t.prototype.logout=function(){return Promise.reject(tr.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(n,r,i){return dn(this,void 0,void 0,function(){var o;return pn(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(n,r,i)];case 1:return o=a.sent(),[2,new rOt(o,this.performanceClient)]}})})},t})(Rk);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Obi=(function(){function e(t,n){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=n,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return e.prototype.addEventCallback=function(t){if(typeof window<"u"){var n=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(n,t),this.logger.verbose("Event callback registered with id: "+n),n}return null},e.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},e.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},e.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},e.prototype.emitEvent=function(t,n,r,i){var o=this;if(typeof window<"u"){var a={eventType:t,interactionType:n||null,payload:r||null,error:i||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(s,l){o.logger.verbose("Emitting event to callback "+l+": "+t),s.apply(null,[a])})}},e.prototype.handleAccountCacheChange=function(t){try{var n=t.newValue||t.oldValue;if(!n)return;var r=JSON.parse(n);if(typeof r!="object"||!M0.isAccountEntity(r))return;var i=q1.toObject(new M0,r),o=i.getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Vr.ACCOUNT_ADDED,void 0,o)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Vr.ACCOUNT_REMOVED,void 0,o))}catch{return}},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Xd=(function(){function e(){}return e.decimalToHex=function(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var uOt=(function(){function e(t){this.cryptoObj=t}return e.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,Xd.decimalToHex(t[0])+Xd.decimalToHex(t[1])+Xd.decimalToHex(t[2])+Xd.decimalToHex(t[3])+"-"+Xd.decimalToHex(t[4])+Xd.decimalToHex(t[5])+"-"+Xd.decimalToHex(t[6])+Xd.decimalToHex(t[7])+"-"+Xd.decimalToHex(t[8])+Xd.decimalToHex(t[9])+"-"+Xd.decimalToHex(t[10])+Xd.decimalToHex(t[11])+Xd.decimalToHex(t[12])+Xd.decimalToHex(t[13])+Xd.decimalToHex(t[14])+Xd.decimalToHex(t[15])}catch{for(var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",i=0,o=Mt.EMPTY_STRING,a=0;a<36;a++)n[a]!=="-"&&n[a]!=="4"&&(i=Math.random()*16|0),n[a]==="x"?o+=r[i]:n[a]==="y"?(i&=3,i|=8,o+=r[i]):o+=n[a];return o}},e.prototype.isGuid=function(t){var n=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return n.test(t)},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Fy=(function(){function e(){}return e.stringToUtf8Arr=function(t){for(var n,r=0,i=t.length,o=0;o<i;o++)n=t.charCodeAt(o),r+=n<128?1:n<2048?2:n<65536?3:n<2097152?4:n<67108864?5:6;for(var a=new Uint8Array(r),s=0,l=0;s<r;l++)n=t.charCodeAt(l),n<128?a[s++]=n:n<2048?(a[s++]=192+(n>>>6),a[s++]=128+(n&63)):n<65536?(a[s++]=224+(n>>>12),a[s++]=128+(n>>>6&63),a[s++]=128+(n&63)):n<2097152?(a[s++]=240+(n>>>18),a[s++]=128+(n>>>12&63),a[s++]=128+(n>>>6&63),a[s++]=128+(n&63)):n<67108864?(a[s++]=248+(n>>>24),a[s++]=128+(n>>>18&63),a[s++]=128+(n>>>12&63),a[s++]=128+(n>>>6&63),a[s++]=128+(n&63)):(a[s++]=252+(n>>>30),a[s++]=128+(n>>>24&63),a[s++]=128+(n>>>18&63),a[s++]=128+(n>>>12&63),a[s++]=128+(n>>>6&63),a[s++]=128+(n&63));return a},e.stringToArrayBuffer=function(t){for(var n=new ArrayBuffer(t.length),r=new Uint8Array(n),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return n},e.utf8ArrToString=function(t){for(var n=Mt.EMPTY_STRING,r=void 0,i=t.length,o=0;o<i;o++)r=t[o],n+=String.fromCharCode(r>251&&r<254&&o+5<i?(r-252)*1073741824+(t[++o]-128<<24)+(t[++o]-128<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>247&&r<252&&o+4<i?(r-248<<24)+(t[++o]-128<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>239&&r<248&&o+3<i?(r-240<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>223&&r<240&&o+2<i?(r-224<<12)+(t[++o]-128<<6)+t[++o]-128:r>191&&r<224&&o+1<i?(r-192<<6)+t[++o]-128:r);return n},e.getSortedObjectString=function(t){return JSON.stringify(t,Object.keys(t).sort())},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var dOt=(function(){function e(){}return e.prototype.urlEncode=function(t){return encodeURIComponent(this.encode(t).replace(/=/g,Mt.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(t){return this.base64EncArr(t).replace(/=/g,Mt.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(t){var n=Fy.stringToUtf8Arr(t);return this.base64EncArr(n)},e.prototype.base64EncArr=function(t){for(var n=(3-t.length%3)%3,r=Mt.EMPTY_STRING,i=void 0,o=t.length,a=0,s=0;s<o;s++)i=s%3,a|=t[s]<<(16>>>i&24),(i===2||t.length-s===1)&&(r+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return n===0?r:r.substring(0,r.length-n)+(n===1?"=":"==")},e.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:t===62?43:t===63?47:65},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var zbi=(function(){function e(){}return e.prototype.decode=function(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Invalid base64 string")}var r=this.base64DecToArr(n);return Fy.utf8ArrToString(r)},e.prototype.base64DecToArr=function(t,n){for(var r=t.replace(/[^A-Za-z0-9\+\/]/g,Mt.EMPTY_STRING),i=r.length,o=n?Math.ceil((i*3+1>>>2)/n)*n:i*3+1>>>2,a=new Uint8Array(o),s=void 0,l=void 0,c=0,u=0,d=0;d<i;d++)if(l=d&3,c|=this.b64ToUint6(r.charCodeAt(d))<<18-6*l,l===3||i-d===1){for(s=0;s<3&&u<o;s++,u++)a[u]=c>>>(16>>>s&24)&255;c=0}return a},e.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:t===43?62:t===47?63:0},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Tbi=32,Ebi=(function(){function e(t){this.base64Encode=new dOt,this.cryptoObj=t}return e.prototype.generateCodes=function(){return dn(this,void 0,void 0,function(){var t,n;return pn(this,function(r){switch(r.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return n=r.sent(),[2,{verifier:t,challenge:n}]}})})},e.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(Tbi);this.cryptoObj.getRandomValues(t);var n=this.base64Encode.urlEncodeArr(t);return n}catch(r){throw tr.createPkceNotGeneratedError(r)}},e.prototype.generateCodeChallengeFromVerifier=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return n=i.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(n))];case 2:throw r=i.sent(),tr.createPkceNotGeneratedError(r);case 3:return[2]}})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Rbi=(function(){function e(){}return e.prototype.getRandomValues=function(t){return window.crypto.getRandomValues(t)},e.prototype.generateKey=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,window.crypto.subtle.generateKey(t,n,r)]})})},e.prototype.exportKey=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){return[2,window.crypto.subtle.exportKey(rD,t)]})})},e.prototype.importKey=function(t,n,r,i){return dn(this,void 0,void 0,function(){return pn(this,function(o){return[2,window.crypto.subtle.importKey(rD,t,n,r,i)]})})},e.prototype.sign=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,window.crypto.subtle.sign(t,n,r)]})})},e.prototype.digest=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,window.crypto.subtle.digest(t,n)]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ibi=(function(){function e(){}return e.prototype.initPrng=function(t){return window.msrCrypto.initPrng(s3e(t))},e.prototype.getRandomValues=function(t){return window.msrCrypto.getRandomValues(t)},e.prototype.generateKey=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,window.msrCrypto.subtle.generateKey(t,n,r)]})})},e.prototype.exportKey=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){return[2,window.msrCrypto.subtle.exportKey(rD,t)]})})},e.prototype.importKey=function(t,n,r,i){return dn(this,void 0,void 0,function(){return pn(this,function(o){return[2,window.msrCrypto.subtle.importKey(rD,t,n,r,i)]})})},e.prototype.sign=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,window.msrCrypto.subtle.sign(t,n,r)]})})},e.prototype.digest=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,window.msrCrypto.subtle.digest(t,n)]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Pbi=(function(){function e(){}return e.prototype.getRandomValues=function(t){return window.msCrypto.getRandomValues(t)},e.prototype.generateKey=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,new Promise(function(o,a){var s=window.msCrypto.subtle.generateKey(t,n,r);s.addEventListener("complete",function(l){o(l.target.result)}),s.addEventListener("error",function(l){a(l)})})]})})},e.prototype.exportKey=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){return[2,new Promise(function(r,i){var o=window.msCrypto.subtle.exportKey(rD,t);o.addEventListener("complete",function(a){var s=a.target.result,l=Fy.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,Mt.EMPTY_STRING).replace(/\n/g,Mt.EMPTY_STRING).replace(/\t/g,Mt.EMPTY_STRING).split(" ").join(Mt.EMPTY_STRING).replace("\0",Mt.EMPTY_STRING);try{r(JSON.parse(l))}catch(c){i(c)}}),o.addEventListener("error",function(a){i(a)})})]})})},e.prototype.importKey=function(t,n,r,i){return dn(this,void 0,void 0,function(){var o,a;return pn(this,function(s){return o=Fy.getSortedObjectString(t),a=Fy.stringToArrayBuffer(o),[2,new Promise(function(l,c){var u=window.msCrypto.subtle.importKey(rD,a,n,r,i);u.addEventListener("complete",function(d){l(d.target.result)}),u.addEventListener("error",function(d){c(d)})})]})})},e.prototype.sign=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,new Promise(function(o,a){var s=window.msCrypto.subtle.sign(t,n,r);s.addEventListener("complete",function(l){o(l.target.result)}),s.addEventListener("error",function(l){a(l)})})]})})},e.prototype.digest=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,new Promise(function(i,o){var a=window.msCrypto.subtle.digest(t,n.buffer);a.addEventListener("complete",function(s){i(s.target.result)}),a.addEventListener("error",function(s){o(s)})})]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Dbi="RSASSA-PKCS1-v1_5",uKe="SHA-256",kbi=2048,Lbi=new Uint8Array([1,0,1]),pOt=(function(){function e(t,n){var r,i;if(this.logger=t,this.cryptoOptions=n,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new Rbi;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Pbi;else if(this.hasMsrCrypto()&&(!((r=this.cryptoOptions)===null||r===void 0)&&r.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Ibi;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),tr.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((i=this.cryptoOptions)===null||i===void 0)&&i.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Vc.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:Dbi,hash:uKe,modulusLength:kbi,publicExponent:Lbi}}return e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},e.prototype.sha256Digest=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){return n=Fy.stringToUtf8Arr(t),[2,this.subtleCrypto.digest({name:uKe},n)]})})},e.prototype.getRandomValues=function(t){return this.subtleCrypto.getRandomValues(t)},e.prototype.generateKeyPair=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,t,n)]})})},e.prototype.exportJwk=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){return[2,this.subtleCrypto.exportKey(t)]})})},e.prototype.importJwk=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,this.subtleCrypto.importKey(t,this.keygenAlgorithmOptions,n,r)]})})},e.prototype.sign=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,t,n)]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var _bi=(function(){function e(){this.dbName=l2e,this.version=pbi,this.tableName=hbi,this.dbOpen=!1}return e.prototype.open=function(){return dn(this,void 0,void 0,function(){var t=this;return pn(this,function(n){return[2,new Promise(function(r,i){var o=window.indexedDB.open(t.dbName,t.version);o.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(t.tableName)}),o.addEventListener("success",function(a){var s=a;t.db=s.target.result,t.dbOpen=!0,r()}),o.addEventListener("error",function(){return i(tr.createDatabaseUnavailableError())})})]})})},e.prototype.closeConnection=function(){var t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return dn(this,void 0,void 0,function(){return pn(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,t.sent()];case 2:return[2]}})})},e.prototype.getItem=function(t){return dn(this,void 0,void 0,function(){var n=this;return pn(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!n.db)return o(tr.createDatabaseNotOpenError());var a=n.db.transaction([n.tableName],"readonly"),s=a.objectStore(n.tableName),l=s.get(t);l.addEventListener("success",function(c){var u=c;n.closeConnection(),i(u.target.result)}),l.addEventListener("error",function(c){n.closeConnection(),o(c)})})]}})})},e.prototype.setItem=function(t,n){return dn(this,void 0,void 0,function(){var r=this;return pn(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(o,a){if(!r.db)return a(tr.createDatabaseNotOpenError());var s=r.db.transaction([r.tableName],"readwrite"),l=s.objectStore(r.tableName),c=l.put(n,t);c.addEventListener("success",function(){r.closeConnection(),o()}),c.addEventListener("error",function(u){r.closeConnection(),a(u)})})]}})})},e.prototype.removeItem=function(t){return dn(this,void 0,void 0,function(){var n=this;return pn(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!n.db)return o(tr.createDatabaseNotOpenError());var a=n.db.transaction([n.tableName],"readwrite"),s=a.objectStore(n.tableName),l=s.delete(t);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(c){n.closeConnection(),o(c)})})]}})})},e.prototype.getKeys=function(){return dn(this,void 0,void 0,function(){var t=this;return pn(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(r,i){if(!t.db)return i(tr.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly"),a=o.objectStore(t.tableName),s=a.getAllKeys();s.addEventListener("success",function(l){var c=l;t.closeConnection(),r(c.target.result)}),s.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},e.prototype.containsKey=function(t){return dn(this,void 0,void 0,function(){var n=this;return pn(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!n.db)return o(tr.createDatabaseNotOpenError());var a=n.db.transaction([n.tableName],"readonly"),s=a.objectStore(n.tableName),l=s.count(t);l.addEventListener("success",function(c){var u=c;n.closeConnection(),i(u.target.result===1)}),l.addEventListener("error",function(c){n.closeConnection(),o(c)})})]}})})},e.prototype.deleteDatabase=function(){return dn(this,void 0,void 0,function(){return pn(this,function(t){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(n,r){var i=window.indexedDB.deleteDatabase(l2e);i.addEventListener("success",function(){return n(!0)}),i.addEventListener("blocked",function(){return n(!0)}),i.addEventListener("error",function(){return r(!1)})})]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var dKe=(function(){function e(t,n){this.inMemoryCache=new c2e,this.indexedDBCache=new _bi,this.logger=t,this.storeName=n}return e.prototype.handleDatabaseAccessError=function(t){if(t instanceof tr&&t.errorCode===On.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw t},e.prototype.getItem=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){switch(i.label){case 0:if(n=this.inMemoryCache.getItem(t),n)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(t)];case 2:return[2,i.sent()];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,n]}})})},e.prototype.setItem=function(t,n){return dn(this,void 0,void 0,function(){var r;return pn(this,function(i){switch(i.label){case 0:this.inMemoryCache.setItem(t,n),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(t,n)];case 2:return i.sent(),[3,4];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},e.prototype.removeItem=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){switch(r.label){case 0:this.inMemoryCache.removeItem(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},e.prototype.getKeys=function(){return dn(this,void 0,void 0,function(){var t,n;return pn(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getKeys(),t.length!==0)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},e.prototype.containsKey=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){switch(i.label){case 0:if(n=this.inMemoryCache.containsKey(t),n)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(t)];case 2:return[2,i.sent()];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,n]}})})},e.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},e.prototype.clearPersistent=function(){return dn(this,void 0,void 0,function(){var t,n;return pn(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return t=r.sent(),t&&this.logger.verbose("Persistent keystore deleted"),[2,t];case 2:return n=r.sent(),this.handleDatabaseAccessError(n),[2,!1];case 3:return[2]}})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var UX;(function(e){e.asymmetricKeys="asymmetricKeys",e.symmetricKeys="symmetricKeys"})(UX||(UX={}));var Nbi=(function(){function e(t){this.logger=t,this.asymmetricKeys=new dKe(this.logger,UX.asymmetricKeys),this.symmetricKeys=new dKe(this.logger,UX.symmetricKeys)}return e.prototype.clear=function(){return dn(this,void 0,void 0,function(){var t;return pn(this,function(n){switch(n.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return n.sent(),[2,!0];case 3:return t=n.sent(),t instanceof Error?this.logger.error("Clearing keystore failed with error: "+t.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Fbi=(function(){function e(t,n,r){this.logger=t,this.browserCrypto=new pOt(this.logger,r),this.b64Encode=new dOt,this.b64Decode=new zbi,this.guidGenerator=new uOt(this.browserCrypto),this.pkceGenerator=new Ebi(this.browserCrypto),this.cache=new Nbi(this.logger),this.performanceClient=n}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},e.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},e.prototype.generatePkceCodes=function(){return dn(this,void 0,void 0,function(){return pn(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},e.prototype.getPublicKeyThumbprint=function(t){var n;return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u;return pn(this,function(d){switch(d.label){case 0:return r=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(Xt.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return i=d.sent(),[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return o=d.sent(),a={e:o.e,kty:o.kty,n:o.n},s=Fy.getSortedObjectString(a),[4,this.hashString(s)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(i.privateKey)];case 4:return c=d.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:i.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),r&&r.endMeasurement({success:!0}),[2,l]}})})},e.prototype.removeTokenBindingKey=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){switch(r.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(t)];case 1:return r.sent(),[4,this.cache.asymmetricKeys.containsKey(t)];case 2:return n=r.sent(),[2,!n]}})})},e.prototype.clearKeystore=function(){return dn(this,void 0,void 0,function(){return pn(this,function(t){switch(t.label){case 0:return[4,this.cache.clear()];case 1:return[2,t.sent()]}})})},e.prototype.signJwt=function(t,n,r){var i;return dn(this,void 0,void 0,function(){var o,a,s,l,c,u,d,p,h,g,m,b,y;return pn(this,function(M){switch(M.label){case 0:return o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Xt.CryptoOptsSignJwt,r),[4,this.cache.asymmetricKeys.getItem(n)];case 1:if(a=M.sent(),!a)throw tr.createSigningKeyNotFoundInStorageError(n);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=M.sent(),l=Fy.getSortedObjectString(s),c=this.b64Encode.urlEncode(JSON.stringify({kid:n})),u=cbi.getShrHeaderString({kid:c,alg:s.alg}),d=this.b64Encode.urlEncode(u),t.cnf={jwk:JSON.parse(l)},p=this.b64Encode.urlEncode(JSON.stringify(t)),h=d+"."+p,g=Fy.stringToArrayBuffer(h),[4,this.browserCrypto.sign(a.privateKey,g)];case 3:return m=M.sent(),b=this.b64Encode.urlEncodeArr(new Uint8Array(m)),y=h+"."+b,o&&o.endMeasurement({success:!0}),[2,y]}})})},e.prototype.hashString=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){switch(i.label){case 0:return[4,this.browserCrypto.sha256Digest(t)];case 1:return n=i.sent(),r=new Uint8Array(n),[2,this.b64Encode.urlEncodeArr(r)]}})})},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var pKe=(function(){function e(t,n){this.correlationId=n,this.measureName=e.makeMeasureName(t,n),this.startMark=e.makeStartMark(t,n),this.endMark=e.makeEndMark(t,n)}return e.makeMeasureName=function(t,n){return"msal.measure."+t+"."+n},e.makeStartMark=function(t,n){return"msal.start."+t+"."+n},e.makeEndMark=function(t,n){return"msal.end."+t+"."+n},e.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},e.flushMeasurements=function(t,n){if(e.supportsBrowserPerformance())try{n.forEach(function(r){var i=e.makeMeasureName(r.name,t),o=window.performance.getEntriesByName(i,"measure");o.length>0&&(window.performance.clearMeasures(i),window.performance.clearMarks(e.makeStartMark(i,t)),window.performance.clearMarks(e.makeEndMark(i,t)))})}catch{}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},e.prototype.flushMeasurement=function(){if(e.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var n=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),n}}catch{}return null},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Wbi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l){var c=e.call(this,n,r,i,o,a,s)||this;return c.browserCrypto=new pOt(c.logger,l),c.guidGenerator=new uOt(c.browserCrypto),c}return t.prototype.startPerformanceMeasuremeant=function(n,r){return new pKe(n,r)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var n;return((n=document.visibilityState)===null||n===void 0?void 0:n.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(n){var r=this.eventsByCorrelationId.get(n.event.correlationId),i=r&&r.eventId===n.event.eventId,o=[];i&&r?.incompleteSubMeasurements&&r.incompleteSubMeasurements.forEach(function(a){o.push(Sr({},a))}),o.length>0&&pKe.flushMeasurements(n.event.correlationId,o)},t.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},t.prototype.startMeasurement=function(n,r){var i=this,o=this.getPageVisibility(),a=e.prototype.startMeasurement.call(this,n,r);return Sr(Sr({},a),{endMeasurement:function(s){var l=a.endMeasurement(Sr({startPageVisibility:o,endPageVisibility:i.getPageVisibility()},s));return i.deleteIncompleteSubMeasurements(a),l},discardMeasurement:function(){a.discardMeasurement(),i.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(n,r){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+n);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+n+" not provided, unable to set telemetry queue time");return}var i=this.preQueueTimeByCorrelationId.get(r);i&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+i.name+" found",r),this.addQueueMeasurement(i.name,r,void 0,!0)),this.preQueueTimeByCorrelationId.set(r,{name:n,time:window.performance.now()})},t.prototype.addQueueMeasurement=function(n,r,i,o){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+n);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+n+" not provided, unable to add queue measurement");return}var a=e.prototype.getPreQueueTime.call(this,n,r);if(a){var s=window.performance.now(),l=i||e.prototype.calculateQueuedTime.call(this,a,s);return e.prototype.addQueueMeasurement.call(this,n,r,l,o)}},t})(oOt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var qbi=(function(){function e(t,n,r,i){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=n,this.logger=r,this.cryptoObj=i}return e.prototype.loadExternalTokens=function(t,n,r){if(this.logger.info("TokenCache - loadExternalTokens called"),!n.id_token)throw tr.createUnableToLoadTokenError("Please ensure server response includes id token.");var i=new jb(n.id_token,this.cryptoObj),o,a,s;if(t.account)s=M0.createFromAccountInfo(t.account),o=new GI(s,this.loadIdToken(i,s.homeAccountId,t.account.environment,t.account.tenantId),this.loadAccessToken(t,n,s.homeAccountId,t.account.environment,t.account.tenantId,r),this.loadRefreshToken(t,n,s.homeAccountId,t.account.environment));else if(t.authority){var l=l6.generateAuthority(t.authority,t.azureCloudOptions),c={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new l6(l,this.config.system.networkClient,this.storage,c,this.logger),r.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),s=this.loadAccount(i,a,r.clientInfo),o=new GI(s,this.loadIdToken(i,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(t,n,s.homeAccountId,a.hostnameAndPort,a.tenant,r),this.loadRefreshToken(t,n,s.homeAccountId,a.hostnameAndPort));else if(n.client_info)this.logger.trace("TokenCache - homeAccountId from response"),s=this.loadAccount(i,a,n.client_info),o=new GI(s,this.loadIdToken(i,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(t,n,s.homeAccountId,a.hostnameAndPort,a.tenant,r),this.loadRefreshToken(t,n,s.homeAccountId,a.hostnameAndPort));else throw tr.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw tr.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(t,i,o,s,a)},e.prototype.loadAccount=function(t,n,r,i){var o;if(i?o=i:n.authorityType!==void 0&&r&&(o=M0.generateHomeAccountId(r,n.authorityType,this.logger,this.cryptoObj,t.claims)),!o)throw tr.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a=M0.createAccount({homeAccountId:o,idTokenClaims:t.claims,clientInfo:r,environment:n.hostnameAndPort},n);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(a),a;throw tr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(t,n,r,i){var o=ex.createIdTokenEntity(n,r,t.rawToken,this.config.auth.clientId,i);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(o),o;throw tr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadAccessToken=function(t,n,r,i,o,a){if(!n.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!n.expires_in)throw tr.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw tr.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new c0(t.scopes).printScopes(),l=a.expiresOn||n.expires_in+new Date().getTime()/1e3,c=a.extendedExpiresOn,u=tx.createAccessTokenEntity(r,i,n.access_token,this.config.auth.clientId,o,s,l,c,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw tr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadRefreshToken=function(t,n,r,i){if(!n.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var o=ZR.createRefreshTokenEntity(r,i,n.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(o),o;throw tr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(t,n,r,i,o){var a,s=Mt.EMPTY_STRING,l=[],c=null,u;r.accessToken&&(s=r.accessToken.secret,l=c0.fromString(r.accessToken.target).asArray(),c=new Date(Number(r.accessToken.expiresOn)*1e3),u=new Date(Number(r.accessToken.extendedExpiresOn)*1e3));var d=n?.claims.oid||n?.claims.sub||Mt.EMPTY_STRING,p=n?.claims.tid||Mt.EMPTY_STRING;return{authority:o?o.canonicalAuthority:Mt.EMPTY_STRING,uniqueId:d,tenantId:p,scopes:l,account:i?i.getAccountInfo():null,idToken:n?n.rawToken:Mt.EMPTY_STRING,idTokenClaims:n?n.claims:{},accessToken:s,fromCache:!0,expiresOn:c,correlationId:t.correlationId||Mt.EMPTY_STRING,requestId:Mt.EMPTY_STRING,extExpiresOn:u,familyId:Mt.EMPTY_STRING,tokenType:((a=r?.accessToken)===null||a===void 0?void 0:a.tokenType)||Mt.EMPTY_STRING,state:Mt.EMPTY_STRING,cloudGraphHostName:i.cloudGraphHostName||Mt.EMPTY_STRING,msGraphHost:i.msGraphHost||Mt.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Bbi=(function(e){Id(t,e);function t(n){var r=e.call(this,n)||this;return r.includeRedirectUri=!1,r}return t})(nOt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var jbi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d){var p=e.call(this,n,r,i,o,a,s,c,u,d)||this;return p.apiId=l,p}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!n.code)throw tr.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationRequest,n.correlationId),[4,this.initializeAuthorizationRequest(n,Cr.Silent)];case 1:r=u.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||Mt.EMPTY_STRING,r.account||null),i=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=Sr(Sr({},r),{code:n.code}),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetClientConfiguration,n.correlationId),[4,this.getClientConfiguration(i,r.authority)];case 3:return a=u.sent(),s=new Bbi(a),this.logger.verbose("Auth code client created"),l=new cOt(s,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),[2,l.handleCodeResponseFromServer({code:n.code,msgraph_host:n.msGraphHost,cloud_graph_host_name:n.cloudGraphHostName,cloud_instance_host_name:n.cloudInstanceHostName},r.state,s.authority,this.networkClient,!1)];case 4:throw c=u.sent(),c instanceof Gr&&c.setCorrelationId(this.correlationId),i.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(r.state),c;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(tr.createSilentLogoutUnsupportedError())},t})(Rk);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Hbi=(function(){function e(t){this.isBrowserEnvironment=typeof window<"u",this.config=wbi(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new lte(this.config.system.loggerOptions,upe,nW),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Wbi(this.config.auth.clientId,this.config.auth.authority,this.logger,upe,nW,this.config.telemetry.application,this.config.system.cryptoOptions):new dbi(this.config.auth.clientId,this.config.auth.authority,this.logger,upe,nW,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Fbi(this.logger,this.performanceClient,this.config.system.cryptoOptions):qX,this.eventHandler=new Obi(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new u2e(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):fbi(this.config.auth.clientId,this.logger);var n={cacheLocation:Xc.MemoryStorage,temporaryCacheLocation:Xc.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new u2e(this.config.auth.clientId,n,this.browserCrypto,this.logger),this.tokenCache=new qbi(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return dn(this,void 0,void 0,function(){var t,n,r,i,o;return pn(this,function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(t=this.config.system.allowNativeBroker,n=this.performanceClient.startMeasurement(Xt.InitializeClientApplication),this.eventHandler.emitEvent(Vr.INITIALIZE_START),!t)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),r=this,[4,uz.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return r.nativeExtensionProvider=a.sent(),[3,4];case 3:return i=a.sent(),this.logger.verbose(i),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),o=this.performanceClient.startMeasurement(Xt.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),o.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(Vr.INITIALIZE_END),n.endMeasurement({allowNativeBroker:t,success:!0}),[2]}})})},e.prototype.handleRedirectPromise=function(t){return dn(this,void 0,void 0,function(){var n,r,i,o,a,s,l,c,u=this;return pn(this,function(d){return this.logger.verbose("handleRedirectPromise called"),nc.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),n=this.getAllAccounts(),this.isBrowserEnvironment?(r=t||Mt.EMPTY_STRING,i=this.redirectResponse.get(r),typeof i>"u"?(this.eventHandler.emitEvent(Vr.HANDLE_REDIRECT_START,Cr.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),a=void 0,o&&uz.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new $I(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vs.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(ba.CORRELATION_ID,!0)||Mt.EMPTY_STRING,c=this.createRedirectClient(l),a=c.handleRedirectPromise(t)),i=a.then(function(p){if(p){var h=n.length<u.getAllAccounts().length;h?(u.eventHandler.emitEvent(Vr.LOGIN_SUCCESS,Cr.Redirect,p),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_SUCCESS,Cr.Redirect,p),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(Vr.HANDLE_REDIRECT_END,Cr.Redirect),p}).catch(function(p){throw n.length>0?u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_FAILURE,Cr.Redirect,null,p):u.eventHandler.emitEvent(Vr.LOGIN_FAILURE,Cr.Redirect,null,p),u.eventHandler.emitEvent(Vr.HANDLE_REDIRECT_END,Cr.Redirect),p}),this.redirectResponse.set(r,i)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,i]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},e.prototype.acquireTokenRedirect=function(t){return dn(this,void 0,void 0,function(){var n,r,i,o,a,s=this;return pn(this,function(l){return n=this.getRequestCorrelationId(t),this.logger.verbose("acquireTokenRedirect called",n),this.preflightBrowserEnvironmentCheck(Cr.Redirect),r=this.getAllAccounts().length>0,r?this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_START,Cr.Redirect,t):this.eventHandler.emitEvent(Vr.LOGIN_START,Cr.Redirect,t),this.nativeExtensionProvider&&this.canUseNative(t)?(o=new $I(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vs.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),i=o.acquireTokenRedirect(t).catch(function(c){if(c instanceof ab&&c.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(t.correlationId);return u.acquireToken(t)}else if(c instanceof om){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=s.createRedirectClient(t.correlationId);return u.acquireToken(t)}throw s.browserStorage.setInteractionInProgress(!1),c})):(a=this.createRedirectClient(t.correlationId),i=a.acquireToken(t)),[2,i.catch(function(c){throw r?s.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_FAILURE,Cr.Redirect,null,c):s.eventHandler.emitEvent(Vr.LOGIN_FAILURE,Cr.Redirect,null,c),c})]})})},e.prototype.acquireTokenPopup=function(t){var n=this,r=this.getRequestCorrelationId(t),i=this.performanceClient.startMeasurement(Xt.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(Cr.Popup)}catch(l){return Promise.reject(l)}var o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_START,Cr.Popup,t):this.eventHandler.emitEvent(Vr.LOGIN_START,Cr.Popup,t);var a;if(this.canUseNative(t))a=this.acquireTokenNative(t,Vs.acquireTokenPopup).then(function(l){return n.browserStorage.setInteractionInProgress(!1),i.endMeasurement({success:!0,isNativeBroker:!0,requestId:l.requestId}),l}).catch(function(l){if(l instanceof ab&&l.isFatal()){n.nativeExtensionProvider=void 0;var c=n.createPopupClient(t.correlationId);return c.acquireToken(t)}else if(l instanceof om){n.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var c=n.createPopupClient(t.correlationId);return c.acquireToken(t)}throw n.browserStorage.setInteractionInProgress(!1),l});else{var s=this.createPopupClient(t.correlationId);a=s.acquireToken(t)}return a.then(function(l){var c=o.length<n.getAllAccounts().length;return c?n.eventHandler.emitEvent(Vr.LOGIN_SUCCESS,Cr.Popup,l):n.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_SUCCESS,Cr.Popup,l),i.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),i.endMeasurement({success:!0,requestId:l.requestId}),l}).catch(function(l){return o.length>0?n.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_FAILURE,Cr.Popup,null,l):n.eventHandler.emitEvent(Vr.LOGIN_FAILURE,Cr.Popup,null,l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),Promise.reject(l)})},e.prototype.trackPageVisibilityWithMeasurement=function(){var t=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;t&&(this.logger.info("Perf: Visibility change detected in ",t.event.name),t.increment({visibilityChangeCount:1}))},e.prototype.ssoSilent=function(t){var n;return dn(this,void 0,void 0,function(){var r,i,o,a,s=this;return pn(this,function(l){return r=this.getRequestCorrelationId(t),i=Sr(Sr({},t),{prompt:t.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(Cr.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(Xt.SsoSilent,r),(n=this.ssoSilentMeasurement)===null||n===void 0||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(Vr.SSO_SILENT_START,Cr.Silent,i),this.canUseNative(i)?o=this.acquireTokenNative(i,Vs.ssoSilent).catch(function(c){if(c instanceof ab&&c.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(i.correlationId);return u.acquireToken(i)}throw c}):(a=this.createSilentIframeClient(i.correlationId),o=a.acquireToken(i)),[2,o.then(function(c){var u,d;return s.eventHandler.emitEvent(Vr.SSO_SILENT_SUCCESS,Cr.Silent,c),(u=s.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),(d=s.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){var u;throw s.eventHandler.emitEvent(Vr.SSO_SILENT_FAILURE,Cr.Silent,null,c),(u=s.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},e.prototype.acquireTokenByCode=function(t){return dn(this,void 0,void 0,function(){var n,r,i,o,a=this;return pn(this,function(s){n=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(Cr.Silent),this.logger.trace("acquireTokenByCode called",n),this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_BY_CODE_START,Cr.Silent,t),r=this.performanceClient.startMeasurement(Xt.AcquireTokenByCode,t.correlationId);try{if(t.code&&t.nativeAccountId)throw tr.createSpaCodeAndNativeAccountIdPresentError();if(t.code)return i=t.code,o=this.hybridAuthCodeResponses.get(i),o?(this.logger.verbose("Existing acquireTokenByCode request found",t.correlationId),r.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",n),o=this.acquireTokenByCodeAsync(Sr(Sr({},t),{correlationId:n})).then(function(l){return a.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_BY_CODE_SUCCESS,Cr.Silent,l),a.hybridAuthCodeResponses.delete(i),r.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),r.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){throw a.hybridAuthCodeResponses.delete(i),a.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_BY_CODE_FAILURE,Cr.Silent,null,l),r.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}),this.hybridAuthCodeResponses.set(i,o)),[2,o];if(t.nativeAccountId){if(this.canUseNative(t,t.nativeAccountId))return[2,this.acquireTokenNative(t,Vs.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof ab&&l.isFatal()&&(a.nativeExtensionProvider=void 0),l})];throw tr.createUnableToAcquireTokenFromNativePlatformError()}else throw tr.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_BY_CODE_FAILURE,Cr.Silent,null,l),r.endMeasurement({errorCode:l instanceof Gr&&l.errorCode||void 0,subErrorCode:l instanceof Gr&&l.subError||void 0,success:!1}),l}return[2]})})},e.prototype.acquireTokenByCodeAsync=function(t){var n;return dn(this,void 0,void 0,function(){var r,i,o=this;return pn(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(Xt.AcquireTokenByCodeAsync,t.correlationId),(n=this.acquireTokenByCodeAsyncMeasurement)===null||n===void 0||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),r=this.createSilentAuthCodeClient(t.correlationId),[4,r.acquireToken(t).then(function(s){var l;return(l=o.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var l;throw(l=o.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",o.trackPageVisibilityWithMeasurement)})];case 1:return i=a.sent(),[2,i]}})})},e.prototype.acquireTokenFromCache=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){switch(this.performanceClient.addQueueMeasurement(Xt.AcquireTokenFromCache,n.correlationId),r.cacheLookupPolicy){case K1.Default:case K1.AccessToken:case K1.AccessTokenAndRefreshToken:return[2,t.acquireToken(n)];default:throw Ar.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenByRefreshToken=function(t,n){return dn(this,void 0,void 0,function(){var r;return pn(this,function(i){switch(this.performanceClient.addQueueMeasurement(Xt.AcquireTokenByRefreshToken,t.correlationId),n.cacheLookupPolicy){case K1.Default:case K1.AccessTokenAndRefreshToken:case K1.RefreshToken:case K1.RefreshTokenAndNetwork:return r=this.createSilentRefreshClient(t.correlationId),this.performanceClient.setPreQueueTime(Xt.SilentRefreshClientAcquireToken,t.correlationId),[2,r.acquireToken(t)];default:throw Ar.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenBySilentIframe=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){return this.performanceClient.addQueueMeasurement(Xt.AcquireTokenBySilentIframe,t.correlationId),n=this.createSilentIframeClient(t.correlationId),this.performanceClient.setPreQueueTime(Xt.SilentIframeClientAcquireToken,t.correlationId),[2,n.acquireToken(t)]})})},e.prototype.logout=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){return n=this.getRequestCorrelationId(t),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",n),[2,this.logoutRedirect(Sr({correlationId:n},t))]})})},e.prototype.logoutRedirect=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){return n=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(Cr.Redirect),r=this.createRedirectClient(n),[2,r.logout(t)]})})},e.prototype.logoutPopup=function(t){try{var n=this.getRequestCorrelationId(t);this.preflightBrowserEnvironmentCheck(Cr.Popup);var r=this.createPopupClient(n);return r.logout(t)}catch(i){return Promise.reject(i)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(t){if(this.logger.trace("getAccountByUsername called"),!t)return this.logger.warning("getAccountByUsername: No username provided"),null;var n=this.browserStorage.getAccountInfoFilteredBy({username:t});return n?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+t),n):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(t){if(this.logger.trace("getAccountByHomeId called"),!t)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var n=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:t});return n?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+t),n):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(t){if(this.logger.trace("getAccountByLocalId called"),!t)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var n=this.browserStorage.getAccountInfoFilteredBy({localAccountId:t});return n?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+t),n):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(t,n){if(n===void 0&&(n=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),nc.blockNonBrowserEnvironment(this.isBrowserEnvironment),nc.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),nc.blockReloadInHiddenIframes(),nc.blockAcquireTokenInPopups(),nc.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===Cr.Redirect&&this.config.cache.cacheLocation===Xc.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Vc.createInMemoryRedirectUnavailableError();(t===Cr.Redirect||t===Cr.Popup)&&this.preflightInteractiveRequest(n)},e.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),nc.blockReloadInHiddenIframes(),t&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(t,n,r){return dn(this,void 0,void 0,function(){var i;return pn(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw tr.createNativeConnectionNotEstablishedError();return i=new $I(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,n,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),[2,i.acquireToken(t)]})})},e.prototype.canUseNative=function(t,n){if(this.logger.trace("canUseNative called"),!uz.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case g0.NONE:case g0.CONSENT:case g0.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+t.prompt+" is not compatible with native flow, returning false"),!1}return!n&&!this.getNativeAccountId(t)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},e.prototype.getNativeAccountId=function(t){var n=t.account||this.browserStorage.getAccountInfoByHints(t.loginHint,t.sid)||this.getActiveAccount();return n&&n.nativeAccountId||""},e.prototype.createPopupClient=function(t){return new bbi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createRedirectClient=function(t){return new vbi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createSilentIframeClient=function(t){return new Sbi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vs.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createSilentCacheClient=function(t){return new lOt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.createSilentRefreshClient=function(t){return new Abi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.createSilentAuthCodeClient=function(t){return new jbi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Vs.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},e.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},e.prototype.addPerformanceCallback=function(t){return this.performanceClient.addPerformanceCallback(t)},e.prototype.removePerformanceCallback=function(t){return this.performanceClient.removePerformanceCallback(t)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(t){this.logger=t},e.prototype.initializeWrapperLibrary=function(t,n){this.browserStorage.setWrapperMetadata(t,n)},e.prototype.setNavigationClient=function(t){this.navigationClient=t},e.prototype.getConfiguration=function(){return this.config},e.prototype.getRequestCorrelationId=function(t){return t?.correlationId?t.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():Mt.EMPTY_STRING},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Vbi=(function(e){Id(t,e);function t(n){var r=e.call(this,n)||this;return r.astsAsyncMeasurement=void 0,r.activeSilentTokenRequests=new Map,r.trackPageVisibility=r.trackPageVisibility.bind(r),r}return t.prototype.loginRedirect=function(n){return dn(this,void 0,void 0,function(){var r;return pn(this,function(i){return r=this.getRequestCorrelationId(n),this.logger.verbose("loginRedirect called",r),[2,this.acquireTokenRedirect(Sr({correlationId:r},n||sKe))]})})},t.prototype.loginPopup=function(n){var r=this.getRequestCorrelationId(n);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup(Sr({correlationId:r},n||sKe))},t.prototype.acquireTokenSilent=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u=this;return pn(this,function(d){if(r=this.getRequestCorrelationId(n),i=this.performanceClient.startMeasurement(Xt.AcquireTokenSilent,r),i.addStaticFields({cacheLookupPolicy:n.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(Cr.Silent),this.logger.verbose("acquireTokenSilent called",r),o=n.account||this.getActiveAccount(),!o)throw tr.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:n.authority||Mt.EMPTY_STRING,scopes:n.scopes,homeAccountIdentifier:o.homeAccountId,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},s=JSON.stringify(a),l=this.activeSilentTokenRequests.get(s),typeof l>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r),this.performanceClient.setPreQueueTime(Xt.AcquireTokenSilentAsync,r),c=this.acquireTokenSilentAsync(Sr(Sr({},n),{correlationId:r}),o).then(function(p){return u.activeSilentTokenRequests.delete(s),i.addStaticFields({accessTokenSize:p.accessToken.length,idTokenSize:p.idToken.length}),i.endMeasurement({success:!0,fromCache:p.fromCache,isNativeBroker:p.fromNativeBroker,cacheLookupPolicy:n.cacheLookupPolicy,requestId:p.requestId}),p}).catch(function(p){throw u.activeSilentTokenRequests.delete(s),i.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}),this.activeSilentTokenRequests.set(s,c),[2,c]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),i.discardMeasurement(),[2,l])})})},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(n,r){var i;return dn(this,void 0,void 0,function(){var o,a,s,l,c,u=this;return pn(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.AcquireTokenSilentAsync,n.correlationId),this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_START,Cr.Silent,n),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(Xt.AcquireTokenSilentAsync,n.correlationId),(i=this.astsAsyncMeasurement)===null||i===void 0||i.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),uz.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,n.authenticationScheme)&&r.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=Sr(Sr({},n),{account:r}),o=this.acquireTokenNative(a,Vs.acquireTokenSilent_silentFlow).catch(function(p){return dn(u,void 0,void 0,function(){var h;return pn(this,function(g){if(p instanceof ab&&p.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,h=this.createSilentIframeClient(n.correlationId),[2,h.acquireToken(n)];throw p})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(n.correlationId),this.performanceClient.setPreQueueTime(Xt.InitializeSilentRequest,n.correlationId),[4,s.initializeSilentRequest(n,r)];case 2:l=d.sent(),c=Sr(Sr({},n),{cacheLookupPolicy:n.cacheLookupPolicy||K1.Default}),this.performanceClient.setPreQueueTime(Xt.AcquireTokenFromCache,l.correlationId),o=this.acquireTokenFromCache(s,l,c).catch(function(p){if(c.cacheLookupPolicy===K1.AccessToken)throw p;return nc.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_NETWORK_START,Cr.Silent,l),u.performanceClient.setPreQueueTime(Xt.AcquireTokenByRefreshToken,l.correlationId),u.acquireTokenByRefreshToken(l,c).catch(function(h){var g=h instanceof d3,m=h instanceof om,b=h.errorCode===JR.noTokensFoundError.code,y=h.errorCode===Ug.INVALID_GRANT_ERROR;if((!g||!y||m||c.cacheLookupPolicy===K1.AccessTokenAndRefreshToken||c.cacheLookupPolicy===K1.RefreshToken)&&c.cacheLookupPolicy!==K1.Skip&&!b)throw h;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",n.correlationId),u.performanceClient.setPreQueueTime(Xt.AcquireTokenBySilentIframe,l.correlationId),u.acquireTokenBySilentIframe(l)})}),d.label=3;case 3:return[2,o.then(function(p){var h;return u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_SUCCESS,Cr.Silent,p),(h=u.astsAsyncMeasurement)===null||h===void 0||h.endMeasurement({success:!0,fromCache:p.fromCache,isNativeBroker:p.fromNativeBroker,requestId:p.requestId}),p}).catch(function(p){var h;throw u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_FAILURE,Cr.Silent,null,p),(h=u.astsAsyncMeasurement)===null||h===void 0||h.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},t.prototype.hydrateCache=function(n,r){return dn(this,void 0,void 0,function(){var i;return pn(this,function(o){return this.logger.verbose("hydrateCache called"),n.account?(i=M0.createFromAccountInfo(n.account,n.cloudGraphHostName,n.msGraphHost),this.browserStorage.setAccount(i),n.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),[2,this.nativeInternalStorage.hydrateCache(n,r)]):[2,this.browserStorage.hydrateCache(n,r)]):[2]})})},t})(Hbi);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Gbi={initialize:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},acquireTokenPopup:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},acquireTokenRedirect:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},acquireTokenSilent:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},acquireTokenByCode:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},getAllAccounts:function(){return[]},getAccountByHomeId:function(){return null},getAccountByUsername:function(){return null},getAccountByLocalId:function(){return null},handleRedirectPromise:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},loginPopup:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},loginRedirect:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},logout:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},logoutRedirect:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},logoutPopup:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},ssoSilent:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())},addEventCallback:function(){return null},removeEventCallback:function(){},addPerformanceCallback:function(){return""},removePerformanceCallback:function(){return!1},enableAccountStorageEvents:function(){},disableAccountStorageEvents:function(){},getTokenCache:function(){throw Vc.createStubPcaInstanceCalledError()},getLogger:function(){throw Vc.createStubPcaInstanceCalledError()},setLogger:function(){},setActiveAccount:function(){},getActiveAccount:function(){return null},initializeWrapperLibrary:function(){},setNavigationClient:function(){},getConfiguration:function(){throw Vc.createStubPcaInstanceCalledError()},hydrateCache:function(){return Promise.reject(Vc.createStubPcaInstanceCalledError())}};/*! @azure/msal-browser v2.39.0 2024-06-06 */var $bi=(function(){function e(){}return e.getInteractionStatusFromEvent=function(t,n){switch(t.eventType){case Vr.LOGIN_START:return Gc.Login;case Vr.SSO_SILENT_START:return Gc.SsoSilent;case Vr.ACQUIRE_TOKEN_START:if(t.interactionType===Cr.Redirect||t.interactionType===Cr.Popup)return Gc.AcquireToken;break;case Vr.HANDLE_REDIRECT_START:return Gc.HandleRedirect;case Vr.LOGOUT_START:return Gc.Logout;case Vr.SSO_SILENT_SUCCESS:case Vr.SSO_SILENT_FAILURE:if(n&&n!==Gc.SsoSilent)break;return Gc.None;case Vr.LOGOUT_END:if(n&&n!==Gc.Logout)break;return Gc.None;case Vr.HANDLE_REDIRECT_END:if(n&&n!==Gc.HandleRedirect)break;return Gc.None;case Vr.LOGIN_SUCCESS:case Vr.LOGIN_FAILURE:case Vr.ACQUIRE_TOKEN_SUCCESS:case Vr.ACQUIRE_TOKEN_FAILURE:case Vr.RESTORE_FROM_BFCACHE:if(t.interactionType===Cr.Redirect||t.interactionType===Cr.Popup){if(n&&n!==Gc.Login&&n!==Gc.AcquireToken)break;return Gc.None}break}return null},e})();const Ubi={instance:Gbi,inProgress:Gc.None,accounts:[],logger:new lte({})},p3e=v.createContext(Ubi);p3e.Consumer;function hKe(e,t){if(e.length!==t.length)return!1;const n=[...t];return e.every(r=>{const i=n.shift();return!r||!i?!1:r.homeAccountId===i.homeAccountId&&r.localAccountId===i.localAccountId&&r.username===i.username})}const Xbi="@azure/msal-react",fKe="1.5.13";var iD;(function(e){e.UNBLOCK_INPROGRESS="UNBLOCK_INPROGRESS",e.EVENT="EVENT"})(iD||(iD={}));const Ybi=(e,t)=>{const{type:n,payload:r}=t;let i=e.inProgress;switch(n){case iD.UNBLOCK_INPROGRESS:e.inProgress===Gc.Startup&&(i=Gc.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case iD.EVENT:const a=r.message,s=$bi.getInteractionStatusFromEvent(a,e.inProgress);s&&(r.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${e.inProgress} to ${s}`),i=s);break;default:throw new Error(`Unknown action type: ${n}`)}const o=r.instance.getAllAccounts();return i!==e.inProgress&&!hKe(o,e.accounts)?{...e,inProgress:i,accounts:o}:i!==e.inProgress?{...e,inProgress:i}:hKe(o,e.accounts)?e:{...e,accounts:o}};function Kbi(e){let{instance:t,children:n}=e;v.useEffect(()=>{t.initializeWrapperLibrary(s2e.React,fKe)},[t]);const r=v.useMemo(()=>t.getLogger().clone(Xbi,fKe),[t]),[i,o]=v.useReducer(Ybi,void 0,()=>({inProgress:Gc.Startup,accounts:t.getAllAccounts()}));v.useEffect(()=>{const s=t.addEventCallback(l=>{o({payload:{instance:t,logger:r,message:l},type:iD.EVENT})});return r.verbose(`MsalProvider - Registered event callback with id: ${s}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{o({payload:{instance:t,logger:r},type:iD.UNBLOCK_INPROGRESS})})}),()=>{s&&(r.verbose(`MsalProvider - Removing event callback ${s}`),t.removeEventCallback(s))}},[t,r]);const a={instance:t,inProgress:i.inProgress,accounts:i.accounts,logger:r};return E.createElement(p3e.Provider,{value:a},n)}const Qbi=()=>v.useContext(p3e);var a5={},gKe;function Zbi(){if(gKe)return a5;gKe=1;var e=ri(),t=ii();Object.defineProperty(a5,"__esModule",{value:!0}),a5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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.96z"}),"Cloud");return a5.default=i,a5}var Jbi=Zbi();const e2i=qn(Jbi);var s5={},mKe;function t2i(){if(mKe)return s5;mKe=1;var e=ri(),t=ii();Object.defineProperty(s5,"__esModule",{value:!0}),s5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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 11h7V4l-2.35 2.35z"}),"Refresh");return s5.default=i,s5}var n2i=t2i();const r2i=qn(n2i);var l5={},vKe;function i2i(){if(vKe)return l5;vKe=1;var e=ri(),t=ii();Object.defineProperty(l5,"__esModule",{value:!0}),l5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");return l5.default=i,l5}var o2i=i2i();const a2i=qn(o2i);var c5={},bKe;function s2i(){if(bKe)return c5;bKe=1;var e=ri(),t=ii();Object.defineProperty(c5,"__esModule",{value:!0}),c5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zM7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"}),"ToggleOff");return c5.default=i,c5}var l2i=s2i();const c2i=qn(l2i);var u5={},yKe;function u2i(){if(yKe)return u5;yKe=1;var e=ri(),t=ii();Object.defineProperty(u5,"__esModule",{value:!0}),u5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zm0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"}),"ToggleOn");return u5.default=i,u5}var d2i=u2i();const p2i=qn(d2i);var d5={},MKe;function h2i(){if(MKe)return d5;MKe=1;var e=ri(),t=ii();Object.defineProperty(d5,"__esModule",{value:!0}),d5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description");return d5.default=i,d5}var f2i=h2i();const h3e=qn(f2i);var p5={},CKe;function g2i(){if(CKe)return p5;CKe=1;var e=ri(),t=ii();Object.defineProperty(p5,"__esModule",{value:!0}),p5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}),"Image");return p5.default=i,p5}var m2i=g2i();const hOt=qn(m2i);var h5={},xKe;function v2i(){if(xKe)return h5;xKe=1;var e=ri(),t=ii();Object.defineProperty(h5,"__esModule",{value:!0}),h5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 5v14H5V5h14m1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM11 7h6v2h-6V7zm0 4h6v2h-6v-2zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");return h5.default=i,h5}var b2i=v2i();const fOt=qn(b2i);var f5={},wKe;function y2i(){if(wKe)return f5;wKe=1;var e=ri(),t=ii();Object.defineProperty(f5,"__esModule",{value:!0}),f5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"}),"FindInPage");return f5.default=i,f5}var M2i=y2i();const gOt=qn(M2i);var p2e=function(e,t){return p2e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},p2e(e,t)};function cte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");p2e(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var tt=function(){return tt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tt.apply(this,arguments)};function s2(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ct(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function xt(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function xi(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var C2i=function(e){return Mp({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})},x2i=or(C2i)(function(e){var t=e.children,n=e.classes,r=e.onClose,i=s2(e,["children","classes","onClose"]);return E.createElement(T0,tt({disableTypography:!0,style:{display:"flex",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"baseline"}},i),E.createElement(vt,{variant:"h6"},t),r?E.createElement(bn,{"aria-label":"close",className:n.closeButton,onClick:r},E.createElement(uQ,null)):E.createElement(E.Fragment,null))}),w2i=or(function(e){return{root:{padding:e.spacing(2),minWidth:600,overflow:"hidden"}}})(ru),S2i=or(function(e){return{root:{margin:0,padding:e.spacing(1)}}})(Ed);function A2i(e){var t=e.children,n=e.title,r=e.handleClose,i=e.open,o=e.id,a=o===void 0?"mesf-modal":o,s=e.maxWidth,l=s===void 0?"lg":s;return E.createElement(Qu,{onClose:function(){return r()},"aria-labelledby":a,open:i,maxWidth:l,style:{minWidth:320}},E.createElement(x2i,{id:a,onClose:function(){return r()}},n),t)}var We=Object.assign(A2i,{Content:w2i,Actions:S2i}),yt=function(e){var t=e.error,n=e.onHide,r=e.title,i=r===void 0?"Ups!":r,o=e.size,a=o===void 0?"md":o;return t?E.createElement(We,{open:!0,handleClose:function(){n()},title:i,maxWidth:a},E.createElement(We.Content,null,E.createElement("div",null,t)),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end",style:{padding:"1rem",minWidth:"600px"}},E.createElement(D,{item:!0,md:2,xs:12},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){n()}},"Ok"))))):null},mOt=v.createContext(void 0),O2i=function(e){var t=e.navbarTitle,n=e.children;return E.createElement(mOt.Provider,{value:{navbarTitle:t}},n)},z2i=function(){var e=v.useContext(mOt);if(e===void 0)throw new Error("useHelmet must be used within a HelmetProvider");return e},yn=function(e){var t=e.title,n=s2(e,["title"]),r=z2i().navbarTitle;return E.createElement(IRn,tt({defer:!1},n),E.createElement("title",null,t," - ",r))},SKe=[],g5=[];function vOt(e,t){if(e&&typeof document<"u"){var n,r=t.prepend===!0?"prepend":"append",i=t.singleTag===!0,o=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var a=SKe.indexOf(o);a===-1&&(a=SKe.push(o)-1,g5[a]={}),n=g5[a]&&g5[a][r]?g5[a][r]:g5[a][r]=s()}else n=s();e.charCodeAt(0)===65279&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),t.attributes)for(var c=Object.keys(t.attributes),u=0;u<c.length;u++)l.setAttribute(c[u],t.attributes[c[u]]);var d=r==="prepend"?"afterbegin":"beforeend";return o.insertAdjacentElement(d,l),l}}var T2i=`.lds-ring {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
}
.lds-ring div {
	box-sizing: border-box;
	display: block;
	position: absolute;
	width: 64px;
	height: 64px;
	margin: 8px;
	border: 5px solid rgb(63, 81, 181);
	border-radius: 50%;
	animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: rgb(63, 81, 181) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
	animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
	animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
	animation-delay: -0.15s;
}
@keyframes lds-ring {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
`;vOt(T2i,{});var Ik=function(){return E.createElement(E.Fragment,null,E.createElement("div",{className:"lds-ring"},E.createElement("div",null),E.createElement("div",null),E.createElement("div",null),E.createElement("div",null)))},Wm=function(){return E.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Ik,null))};Z.array,Z.array;function E2i(e){return E.createElement(Ez,tt({fontSize:"inherit",style:{width:14,height:14}},e),E.createElement("path",{d:"M22.047 22.074v0 0-20.147 0h-20.12v0 20.147 0h20.12zM22.047 24h-20.12q-.803 0-1.365-.562t-.562-1.365v-20.147q0-.776.562-1.351t1.365-.575h20.147q.776 0 1.351.575t.575 1.351v20.147q0 .803-.575 1.365t-1.378.562v0zM17.873 11.023h-11.826q-.375 0-.669.281t-.294.682v0q0 .401.294 .682t.669.281h11.826q.375 0 .669-.281t.294-.682v0q0-.401-.294-.682t-.669-.281z"}))}function R2i(e){return E.createElement(Ez,tt({fontSize:"inherit",style:{width:14,height:14}},e),E.createElement("path",{d:"M22.047 22.074v0 0-20.147 0h-20.12v0 20.147 0h20.12zM22.047 24h-20.12q-.803 0-1.365-.562t-.562-1.365v-20.147q0-.776.562-1.351t1.365-.575h20.147q.776 0 1.351.575t.575 1.351v20.147q0 .803-.575 1.365t-1.378.562v0zM17.873 12.977h-4.923v4.896q0 .401-.281.682t-.682.281v0q-.375 0-.669-.281t-.294-.682v-4.896h-4.923q-.401 0-.682-.294t-.281-.669v0q0-.401.281-.682t.682-.281h4.923v-4.896q0-.401.294-.682t.669-.281v0q.401 0 .682.281t.281.682v4.896h4.923q.401 0 .682.281t.281.682v0q0 .375-.281.669t-.682.294z"}))}function bOt(e){var t=cj({from:{opacity:0,transform:"translate3d(20px,0,0)"},to:{opacity:e.in?1:0,transform:"translate3d(".concat(e.in?0:20,"px,0,0)")}});return E.createElement(If.div,{style:t},E.createElement(RMe,tt({},e)))}bOt.propTypes={in:Z.bool};var I2i=or(function(e){return{iconContainer:{"& .close":{opacity:.3}},group:{marginLeft:7,paddingLeft:18,borderLeft:"1px dashed ".concat(Ho(e.palette.text.primary,.4))},label:{backgroundColor:function(t){return t.isChecked?Ho(e.palette.primary.main,.8)+" !important":"inherit"}}}})(function(e){return E.createElement(KEn,tt({},e,{TransitionComponent:bOt}))}),P2i=Et(function(e){return{root:{minHeight:350,flexGrow:1,height:"100%",overflow:"auto",overflowX:"hidden",width:"100%"},treeContainer:{flex:1,overflow:"auto",display:"flex",flexDirection:"column",paddingTop:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),paddingBottom:e.spacing(2)},treLabelIcon:{marginRight:e.spacing(1)},treeLabelRoot:{display:"flex",alignItems:"center",padding:e.spacing(.5,0)},treeLabelText:{fontWeight:"inherit",flexGrow:1},treeLabelInactive:{textDecoration:"line-through",textDecorationColor:"red"},treeLabelUnselectable:{color:"grey"},smallCheckbox:{transform:"scale(0.8)"},searchField:{marginBottom:e.spacing(1),"& .MuiOutlinedInput-root":{padding:"6px 8px"},"& .MuiInputBase-input":{padding:"8px 0px"}},searchResults:{position:"absolute",zIndex:1300,width:"100%",maxHeight:300,overflow:"auto",marginTop:e.spacing(1),boxShadow:e.shadows[3]},searchResultItem:{cursor:"pointer",paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),minHeight:"auto","&:hover":{backgroundColor:e.palette.action.hover},"&.focused":{backgroundColor:e.palette.action.selected,outline:"2px solid ".concat(e.palette.primary.main),outlineOffset:"-2px"}},searchResultPath:{fontSize:"0.75rem",color:e.palette.text.secondary,fontStyle:"italic",marginTop:e.spacing(.25)},searchResultIcon:{minWidth:32},searchContainer:{position:"sticky",top:0,zIndex:1e3,backgroundColor:e.palette.background.paper,borderBottom:"1px solid ".concat(e.palette.divider),padding:e.spacing(1),paddingBottom:e.spacing(.5),marginBottom:e.spacing(.5)}}}),yOt=function(e){var t=e.onClose,n=e.value,r=e.open,i=e.title,o=e.data,a=e.selectBranch,s=e.selectActive,l=e.selectInternal,c=e.multipleSelectNodes,u=e.onHide,d=e.listAssetDrawings,p=e.setListAssetDrawings,h=e.onSuccess,g=e.isLoading,m=e.mostUsedCount,b=e.itemsWithParent,y=e.dialogMaxWidth,M=y===void 0?"sm":y,C=e.allowSearch,x=C===void 0?!1:C,w=s2(e,["onClose","value","open","title","data","selectBranch","selectActive","selectInternal","multipleSelectNodes","onHide","listAssetDrawings","setListAssetDrawings","onSuccess","isLoading","mostUsedCount","itemsWithParent","dialogMaxWidth","allowSearch"]),S=v.useState(n),A=S[0],z=S[1],O=v.useState([]),T=O[0],R=O[1],P=v.useRef(null),F=v.useState([]),N=F[0],L=F[1],W=v.useState(""),j=W[0],V=W[1],G=v.useState([]),q=G[0],$=G[1],U=v.useState(!1),X=U[0],Q=U[1],re=v.useState(-1),ee=re[0],se=re[1],pe=v.useRef(null),te=v.useRef(null),ce=v.useRef([]),oe=v.useRef(null),ae=P2i();v.useEffect(function(){r?(n!==void 0&&(Oe(n),setTimeout(function(){var ve=document.getElementById(n.toString());ve&&ve.scrollIntoView({behavior:"smooth",block:"center"})},300)),x&&setTimeout(function(){if(oe.current)oe.current.focus();else{var ve=document.querySelector('input[placeholder*="Search"]');ve&&ve.focus()}},200)):(z(n),V(""),$([]),Q(!1),se(-1))},[n,r,x]),v.useEffect(function(){if(Array.isArray(d)&&d.length>=1){L(d);var ve=ne(o,d);R(ve)}},[d,o]);var ne=function(ve,De){var ze=[];if(De.includes(ve.id)&&ze.push(ve.id.toString()),Array.isArray(ve.children))for(var Ve=0,Ke=ve.children;Ve<Ke.length;Ve++){var et=Ke[Ve],it=ne(et,De);it.length>0&&(ze.push(ve.id.toString()),ze=ze.concat(it))}return ze},le=function(){V(""),$([]),Q(!1),se(-1),z(n),t(),u&&u(!1)},he=function(){var ve=ue(o,A!==void 0?A:-1);ve===null&&(ve={});var De=s&&ve.isActive||s!==!0,ze=l&&ve.isInternal||l!==!0,Ve=a&&!ve.isLeaf;ve.isLeaf?De&&ze&&(t(A,ve.name,ve),h&&h(!0)):Ve&&(t(A,ve.name,ve),h&&h(!0))},be=function(ve){if(ve.key==="Escape"){X?(V(""),$([]),Q(!1),se(-1)):(V(""),$([]),Q(!1),se(-1),z(n),t());return}if(X&&q.length>0){if(ve.key==="ArrowDown"){ve.preventDefault();var De=ee<q.length-1?ee+1:0;se(De),setTimeout(function(){return Ee(De)},0)}else if(ve.key==="ArrowUp"){ve.preventDefault();var ze=ee>0?ee-1:q.length-1;se(ze),setTimeout(function(){return Ee(ze)},0)}else if(ve.key==="Enter"&&ee>=0){ve.preventDefault();var Ve=q[ee];Ve&&Le(Ve)}}else ve.key==="Enter"&&!X&&(ve.preventDefault(),he())},me=function(ve){ve.stopPropagation()},Me=function(ve,De,ze){if(ze===void 0&&(ze=[]),!ve||ve.id===void 0)return[];if(ve.id===De)return ze.push(ve.id.toString()),ze;if(Array.isArray(ve.children)){ze.push(ve.id.toString());for(var Ve=0;Ve<ve.children.length;Ve++){var Ke=Me(ve.children[Ve],De,ze.slice());if(Ke.length>0)return Ke}}return[]},Oe=function(ve){var De=Me(o,ve,[]);De.push(ve.toString());var ze=Array.from(new Set(xi(xi([],T,!0),De,!0)));R(ze)},de=function(ve,De){var ze=ue(o,De!==void 0?Number.parseInt(De):-1);ze?.hasOwnProperty("isSelectable")&&ze.isSelectable===!1||z(Number.parseInt(De))},ie=function(ve,De){R(De)},ue=function(ve,De){if(De===void 0)return null;if(ve.id===De)return ve;if(Array.isArray(ve.children)){var ze,Ve=null;for(ze=0;Ve==null&&ze<ve.children.length;ze++)Ve=ue(ve.children[ze],De);return Ve}return null},Ae=function(ve){if(ve){var De=N.includes(ve.id),ze=void 0;De?ze=N.filter(function(Ke){return Ke!==ve.id}):ze=xi(xi([],N,!0),[ve.id],!1),L(ze),p&&p(ze);var Ve=ne(o,ze);R(Ve)}};function Ce(ve,De){De===void 0&&(De=void 0);var ze=[],Ve=Array.isArray(ve)?ve:[ve];return Ve.forEach(function(Ke){De!==void 0?Ke.parentName=De:delete Ke.parentName,ze.push(Ke),Ke.children&&Ke.children.length>0&&(ze=ze.concat(Ce(Ke.children,Ke.name)))}),ze}var Ee=function(ve){var De;ce.current[ve]&&((De=ce.current[ve])===null||De===void 0||De.scrollIntoView({behavior:"smooth",block:"nearest"}))},Ge=v.useMemo(function(){var ve=[],De=function(ze,Ve){Ve===void 0&&(Ve=[]);var Ke=xi(xi([],Ve,!0),[ze.name],!1),et=Ke.join("/"),it=ze.isLeaf===void 0?!!(ze.children&&ze.children.length>0):!ze.isLeaf;if(ve.push({id:ze.id,name:ze.name,path:et,isCode:ze.isCode,hasChildren:it,node:ze}),ze.children)for(var Ft=0,Dt=ze.children;Ft<Dt.length;Ft++){var Qn=Dt[Ft];De(Qn,Ke)}};return o&&De(o),ve},[o]),_e=function(ve){var De=ve.toLowerCase();return Ge.filter(function(ze){return ze.name.toLowerCase().includes(De)})},Ie=function(ve){var De=ve.target.value;if(V(De),pe.current&&clearTimeout(pe.current),De.trim()===""||De.length<2){$([]),Q(!1);return}pe.current=setTimeout(function(){var ze=_e(De);$(ze),Q(ze.length>0);var Ve=ze.length>0?0:-1;se(Ve),ce.current=new Array(ze.length).fill(null),Ve>=0&&setTimeout(function(){return Ee(Ve)},100)},250)},Le=function(ve){var De=Me(o,ve.id,[]),ze=Array.from(new Set(xi(xi([],T,!0),De,!0)));R(ze),z(ve.id),V(""),$([]),Q(!1),se(-1),oe.current&&oe.current.blur(),setTimeout(function(){var Ve=document.getElementById(ve.id.toString());Ve&&Ve.scrollIntoView({behavior:"smooth",block:"center"})},300)},we=function(ve){return E.createElement(I2i,{isChecked:N.includes(ve.id),key:ve.id,nodeId:ve.id.toString(),label:E.createElement("div",{className:ae.treeLabelRoot},ve.isCode===!0&&E.createElement($gi,{className:ae.treLabelIcon,htmlColor:"#1ABC9C"}),ve.isCode===!1&&E.createElement(B3,{className:ae.treLabelIcon,htmlColor:"#F1C40F"}),E.createElement(vt,{variant:"body2",className:`
							`.concat(ae.treeLabelText,`
							`).concat(ve.isActive?"":ae.treeLabelInactive,`
							`).concat(ve?.hasOwnProperty("isSelectable")&&ve.isSelectable===!1?ae.treeLabelUnselectable:"",`
						`)},E.createElement("span",null,ve.isCode&&E.createElement("i",{className:"fas fa-square mr-2",style:{color:ve.delayCategoryColor||"#FFFFFF"}}),ve.name)),c&&E.createElement(Qr,{className:ae.smallCheckbox,size:"small",color:"primary",checked:N.includes(ve.id),onChange:function(){Ae(ve)},onClick:me})),className:"delay-item-node",id:ve.id.toString(),"data-isbranch":!ve.isCode},Array.isArray(ve.children)?ve.children.map(function(De){return we(De)}):null)};return E.createElement(Qu,tt({onClose:u?function(){return u(!1)}:function(){return null},"aria-label":i,maxWidth:M,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,"aria-labelledby":"confirmation-dialog-title",open:r},w,{onKeyDown:be}),E.createElement(T0,{id:"confirmation-dialog-title"},i),g?E.createElement("div",{style:{width:600,minHeight:416,display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Ik,null)):E.createElement(ru,{dividers:!0,style:{height:"500px",overflow:"hidden",display:"flex",flexDirection:"column",padding:0}},x&&E.createElement("div",{className:ae.searchContainer,ref:te},E.createElement(je,{className:ae.searchField,placeholder:"Search (min. 2 characters)...",variant:"outlined",size:"small",fullWidth:!0,value:j,onChange:Ie,inputRef:oe,InputProps:{startAdornment:E.createElement(N3,{style:{marginRight:8,color:"#999"}})}}),X&&E.createElement(Pt,{className:ae.searchResults},E.createElement(tp,null,q.map(function(ve,De){return E.createElement(ya,{key:ve.id,button:!0,ref:function(ze){ce.current[De]=ze},className:"".concat(ae.searchResultItem," ").concat(De===ee?"focused":""),onClick:function(){return Le(ve)}},E.createElement($0,{className:ae.searchResultIcon},ve.hasChildren?E.createElement(ite,{color:"primary",fontSize:"small"}):E.createElement(Vxe,{color:"primary",fontSize:"small"})),E.createElement(ia,{primary:ve.name,secondary:ve.path,classes:{secondary:ae.searchResultPath}}))})))),E.createElement("div",{className:ae.treeContainer},E.createElement(nRn,{autoFocus:!1,className:ae.root,defaultCollapseIcon:E.createElement(E2i,null),defaultExpandIcon:E.createElement(R2i,null),ref:P,selected:A===void 0?"":A.toString(),expanded:T,onNodeSelect:de,onNodeToggle:ie},o&&o.id!==void 0&&E.createElement(D,null,m>0&&E.createElement(D,{item:!0,md:12},Ce(o).sort(function(ve,De){if(!ve.sortOrder)return 1;if(!De.sortOrder)return-1;var ze=ve.sortOrder,Ve=De.sortOrder;return ze-Ve}).slice(0,m).map(function(ve){return E.createElement(Ne,{onClick:function(){t(ve.id,ve.name),h&&h(!0)},style:{marginRight:5,marginBottom:8}},E.createElement(gM,{label:b.includes(ve.name)?"".concat(ve.parentName,"/").concat(ve.name):ve.name,size:"medium",variant:"outlined",style:{cursor:"pointer"}}))})),we(o))))),E.createElement(Ed,null,E.createElement(Ne,{onClick:le,color:"primary"},"Cancel"),E.createElement(Ne,{onClick:function(){return he()},color:"primary"},"OK")))},D2i=Et(function(e){return{root:{width:"100%",backgroundColor:e.palette.background.paper,"& .MuiInputBase-input":{color:"black",cursor:"pointer",paddingRight:45}},paper:{width:"100%",maxHeight:600}}}),oD=function(e){var t=D2i(),n=e.onSelect,r=e.value;e.styleLabel;var i=e.dataSource,o=e.inputTitle,a=o===void 0?"Asset":o;e.showPath;var s=e.multipleSelectNodes,l=s===void 0?!1:s,c=e.showClearButton,u=c===void 0?!1:c,d=e.showAssetTree,p=e.onHide,h=e.listAssetDrawings,g=h===void 0?[]:h,m=e.onSuccess,b=e.isLoading,y=e.allowSearch,M=y===void 0?!1:y,C=s2(e,["onSelect","value","styleLabel","dataSource","inputTitle","showPath","multipleSelectNodes","showClearButton","showAssetTree","onHide","listAssetDrawings","onSuccess","isLoading","allowSearch"]),x=v.useState(d||!1),w=x[0],S=x[1],A=function(R){R.stopPropagation(),S(!0)},z=function(R,P,F){d||S(!1),R!=null&&n!==void 0&&n(R,P,F)},O=function(R){if(e.showPath&&R?.includes("/")&&R.split("/").length>3){for(var P=R.split("/"),F="",N=0;N<P.length;N++)N<P.length-2?F+=".../":N===P.length-2?P[N].length>6?F+=P[N].substring(0,6)+".../":F+=P[N]+"/":(F+=P[N],N<P.length-1&&(F+="/"));return F}else return R},T=v.useMemo(function(){return O(e.description)},[e.description]);return E.createElement(D,{container:!0,className:t.root},d?E.createElement("div",null):E.createElement(D,{container:!0,item:!0,md:12,xs:12,style:{position:"relative"},title:e.description},E.createElement(D,{item:!0,style:{position:"relative",width:"100%"}},E.createElement(je,{id:"treePickerTextField",label:a,variant:"outlined",value:T,margin:"dense",autoComplete:"off",fullWidth:!0,disabled:!0,InputProps:{endAdornment:E.createElement(ac,{position:"end",style:{cursor:"pointer"}},u&&r?E.createElement(bn,{"aria-label":"clear input",onClick:function(R){console.log("onClear -> onSelect"),R.stopPropagation(),n(0,"","")},style:{cursor:"pointer",zIndex:100},edge:"end"},E.createElement(SCe,null)):null,E.createElement(ite,{style:{cursor:"pointer"}}))}})),E.createElement("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:999,cursor:"pointer"},onClick:A})),E.createElement(D,{item:!0,xs:12,md:12},E.createElement(yOt,tt({classes:{paper:t.paper},onHide:p,id:"modal-treeview-filters",title:e.title,keepMounted:!0,open:w,onClose:z,isLoading:b,value:r,data:i,onBackdropClick:function(){return S(!1)},multipleSelectNodes:l,listAssetDrawings:g,setListAssetDrawings:g,onSuccess:m,allowSearch:M},C))))},k2i=Et(function(e){return{root:{width:"100%",backgroundColor:e.palette.background.paper},paper:{width:"100%",maxHeight:600}}});function MOt(e,t){if(e?.id===t)return e.name;if(e?.children)for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=MOt(i,t);if(o!==null)return o}return null}function COt(e,t,n,r){if(n===void 0&&(n=""),r===void 0&&(r=!0),e.id===t)return r?"":n?"".concat(n,"/").concat(e.name):e.name;if(e.children&&e.children.length>0)for(var i=0,o=e.children;i<o.length;i++){var a=o[i],s=r?"":n?"".concat(n,"/").concat(e.name):e.name,l=COt(a,t,s,!1);if(l!==null)return l}return null}var f3e=function(e){var t=k2i(),n=e.value,r=e.onSelect;e.styleLabel;var i=e.dataSource;e.getOptionName;var o=e.inputTitle,a=o===void 0?"Asset":o;e.showPath;var s=e.multipleSelectNodes,l=s===void 0?!1:s,c=e.showClearButton,u=c===void 0?!1:c,d=e.showFullPath,p=d===void 0?!1:d,h=e.showAssetTree,g=e.onHide,m=e.listAssetDrawings,b=m===void 0?[]:m,y=e.onSuccess,M=e.isLoading,C=e.disabled,x=C===void 0?!1:C,w=e.mostUsedCount,S=w===void 0?0:w,A=e.itemsWithParent,z=A===void 0?[]:A,O=e.dialogMaxWidth,T=O===void 0?"sm":O,R=e.allowSearch,P=R===void 0?!1:R,F=s2(e,["value","onSelect","styleLabel","dataSource","getOptionName","inputTitle","showPath","multipleSelectNodes","showClearButton","showFullPath","showAssetTree","onHide","listAssetDrawings","onSuccess","isLoading","disabled","mostUsedCount","itemsWithParent","dialogMaxWidth","allowSearch"]),N=v.useState(!1),L=N[0],W=N[1],j=function($){$.stopPropagation(),!x&&W(!0)},V=function($,U,X){W(!1),$!=null&&r!==void 0&&r($,U,X)},G=v.useMemo(function(){return MOt(i,n)||""},[i,n]),q=v.useMemo(function(){return COt(i,n)||""},[i,n]);return E.createElement(D,{container:!0,className:t.root},h?E.createElement("div",null):E.createElement(D,{container:!0,item:!0,md:12,xs:12,style:{position:"relative"},title:e.description},E.createElement(D,{item:!0,style:{position:"relative",width:"100%"}},E.createElement(je,{id:"treePickerTextField",label:a||"",variant:"outlined",value:p?q:G,margin:"dense",autoComplete:"off",fullWidth:!0,disabled:!0,InputProps:{style:{color:x?"grey":"black",cursor:"pointer",paddingRight:25},endAdornment:E.createElement(ac,{position:"end",style:{cursor:"pointer"}},u&&n?E.createElement(bn,{"aria-label":"clear input",onClick:function($){$.stopPropagation(),r(0,"","")},style:{cursor:"pointer",zIndex:100},edge:"end",size:"small"},E.createElement(SCe,null)):null,E.createElement(ite,{style:{cursor:"pointer"}}))}})),E.createElement("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0,cursor:"pointer"},onClick:j})),E.createElement(D,{item:!0,xs:12,md:12},E.createElement(yOt,tt({classes:{paper:t.paper},onHide:g,id:"modal-treeview-filter",title:e.title,keepMounted:!0,open:L,onClose:V,isLoading:M,value:n,data:i,onBackdropClick:function(){return W(!1)},multipleSelectNodes:l,listAssetDrawings:b,setListAssetDrawings:b,onSuccess:y,mostUsedCount:S,itemsWithParent:z,dialogMaxWidth:T,allowSearch:P},F))))};(function(e){cte(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return E.createElement("div",{className:"input-group"},E.createElement("div",{className:"input-group-prepend"},E.createElement("span",{className:"input-group-text",style:this.props.styleLabel||{}},this.props.title)),E.createElement("input",{className:"form-control ",type:"password",placeholder:this.props.title,readOnly:this.props.readOnly,value:this.props.value||"",onChange:function(r){return n.props.onChange(r.target.value,n.props.name||"")},style:this.props.styleTextBox||{},maxLength:this.props.lengthCharacters||""}))},t})(v.Component);function L2i(e){var t=e.title,n=e.dataSource,r=n===void 0?[]:n,i=e.selectedValue,o=e.onChange,a=e.showColor,s=e.styleList,l=e.hasChoose;return E.createElement(je,{select:!0,label:t,variant:"outlined",value:i||"DEFAULT",onChange:function(c){return o&&o(c.target.value==="DEFAULT"?"":c.target.value)},style:s,size:"small"},l&&E.createElement(lr,{value:"DEFAULT"},"Choose ".concat(t)),r.map(function(c,u){return E.createElement(lr,{value:c.id.toString(),key:u},a&&E.createElement("span",{style:{display:"inline-block",width:12,height:12,marginRight:8,backgroundColor:c.color||"#FFFFFF"}}),c.description)}))}function _2i(e){var t=e.row.map(function(n,r){return E.createElement("td",{key:r},n)});return E.createElement("tr",null,t)}(function(e){cte(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props.columns.map(function(i,o){return E.createElement("th",{scope:"col",key:o},i)}),r=this.props.data.map(function(i,o){return E.createElement(_2i,{row:i,key:o})});return E.createElement(E.Fragment,null,E.createElement("div",{className:"container-fluid my-3"},E.createElement("div",{className:"table-responsive-md"},E.createElement("table",{className:"table table-hover table-striped table-sm"},E.createElement("thead",null,E.createElement("tr",null,n)),E.createElement("tbody",null,r)))))},t})(v.Component);Et(function(e){return{root:{flexDirection:"column","& .ant-empty-img-1":{fill:e.palette.type==="light"?"#aeb8c2":"#262626"},"& .ant-empty-img-2":{fill:e.palette.type==="light"?"#f5f5f7":"#595959"},"& .ant-empty-img-3":{fill:e.palette.type==="light"?"#dce0e6":"#434343"},"& .ant-empty-img-4":{fill:e.palette.type==="light"?"#fff":"#1c1c1c"},"& .ant-empty-img-5":{fillOpacity:e.palette.type==="light"?"0.8":"0.08",fill:e.palette.type==="light"?"#f5f5f5":"#fff"}},label:{marginTop:e.spacing(1)}}});Z.array,Z.array;Et(function(e){return{contentWrapper:{padding:e.spacing(2)},title:{marginBottom:e.spacing(2),"& small":{marginLeft:e.spacing(1),color:e.palette.text.secondary}},alertContainer:{marginBottom:e.spacing(2)},alert:{padding:e.spacing(1,2)},success:{backgroundColor:"#d4edda",color:"#155724",border:"1px solid #c3e6cb"},error:{backgroundColor:"#f8d7da",color:"#721c24",border:"1px solid #f5c6cb"},alertContent:{display:"flex",alignItems:"center",justifyContent:"space-between"},alertMessage:{padding:e.spacing(1)},closeButton:{padding:e.spacing(.5)},masterDetailPanel:{marginBottom:e.spacing(2)},buttonContainer:{display:"flex",justifyContent:"flex-end",marginTop:e.spacing(2)},button:{marginLeft:e.spacing(1)},cancelButton:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText,"&:hover":{backgroundColor:e.palette.error.dark}},saveButton:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},exportButton:{backgroundColor:"#28a745",color:"#fff","&:hover":{backgroundColor:"#218838"}},filterPanel:{marginBottom:e.spacing(2)},filterButtons:{display:"flex",marginTop:e.spacing(2)}}});var g3e=function(e){var t=zEn(At(e,"response.data.errors",null)),n="";return t.length&&(n=N2i(t,n)),At(e,"response.data.result",At(e,"response.data.message",At(e,"internalError.message",At(e,"response.data.detail",At(e,"response.data.title",e.toString())+" "+n))))},N2i=function(e,t){return e.forEach(function(n,r){r!==0&&(t+=". "),t+=n.join("")}),t},AKe={ERROR_USER_API:"Error on fetching data",ERROR_USER_DEFAULT:"Unknow error"},Yd=(function(e){cte(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.getMessageUser=function(){return o.name==="FetchError"?AKe.ERROR_USER_API:AKe.ERROR_USER_DEFAULT},o.name="FetchError",o.message=n||"Error al procesar la solicitud",o.status=r,o.internalError=i,o.stack=o.stack||"",o}return t})(Error),F2i=C3({palette:{type:"light",primary:{main:"#3f51b5"},secondary:{main:"#f50057"}},typography:{fontSize:14,h6:{fontSize:"1.1rem",fontWeight:500},subtitle1:{fontSize:"0.875rem"},body1:{fontSize:"0.875rem"},body2:{fontSize:"0.875rem"}},overrides:{MuiListItemText:{primary:{fontSize:"0.875rem"}},MuiListSubheader:{root:{fontSize:"0.875rem",fontWeight:600}},MuiListItemIcon:{root:{minWidth:"40px"}}}}),W2i=Wl({feature:"mesfGrid",css:`
    .ag-header-cell-label {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ag-header-cell {
      padding: 0px !important;
      text-align: center !important;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ag-header-group-cell-label {
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ag-theme-material .ag-row:hover, & .ag-theme-material .ag-row.custom-selected {
      backgroundColor: #C8DEF7,
    }

    .ag-row-hover .buttons  {
      opacity: 1
    }
    .ag-row-focus .buttons  {
      opacity: 1
    }
    .ag-row-selected .buttons {
      opacity: 1
    }`}),Bw=Bye.withPart(W2i);Fnt({theme:Bw});var q2i=function(){return Ct(void 0,void 0,void 0,function(){var e,t,n;return xt(this,function(r){switch(r.label){case 0:return e=new Ye,[4,e.callV2("[SYSTEM].[GetJobsStatus]",[])];case 1:if(t=r.sent(),t.ok)return n=At(t,"data.tables[0].rows",[]),n=n.map(function(i){return tt(tt({},i),{LastStarted:i.LastStarted?mt.utc(i.LastStarted).toDate():null,LastContact:i.LastContact?mt.utc(i.LastContact).toDate():null,LastCounter:i.LastCounter?mt.utc(i.LastCounter).toDate():null,StartTime:i.StartTime?mt.utc(i.StartTime).toDate():null,NextExecutionTime:i.NextExecutionTime?mt.utc(i.NextExecutionTime).toDate():null,LastExecutionTime:i.LastExecutionTime?mt.utc(i.LastExecutionTime).toDate():null})}),[2,n];throw new Error(t.message||"Error fetching jobs")}})})},B2i=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"JobId",value:e.JobId},{name:"sProcedure",value:e.sProcedure},{name:"StartTime",value:e.StartTime},{name:"PeriodTime",value:e.PeriodTime},{name:"RestartAfterFailure",value:e.RestartAfterFailure}],[4,t.callV2("[SYSTEM].[UpsertJob]",n)];case 1:if(r=i.sent(),r.ok)return[2,At(r,"data.returnValue",null)];throw new Error(r.message||"Error when upsert job")}})})},j2i=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.enabled,a=t.jobId;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"Enabled",value:o??!0},{name:"JobId",value:a}],[4,n.callV2("[SYSTEM].[SetJobEnable]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when enable job");return[2]}})})},H2i=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"JobId",value:e}],[4,t.callV2("[SYSTEM].[RestartJob]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when restart job");return[2]}})})},V2i=function(e){var t=e.jobSelected,n=e.show,r=e.onHide,i=v.useState(""),o=i[0],a=i[1],s=v.useState(!1),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=ca({mutationFn:H2i,onSuccess:function(){p(!0),r(!0)},onError:function(m){a(m.message)},onSettled:function(){c(!1)}}),g=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(m){switch(m.label){case 0:return c(!0),[4,h.mutate(t?.JobId)];case 1:return m.sent(),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{title:"RESET JOB",open:n,handleClose:function(){return r(!1)},id:"reset-job-modal"},E.createElement(We.Content,null,"Are you sure you want to reset? This action leaves the task in enable"),E.createElement(We.Actions,{style:{padding:"16px 24px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Disagree")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,startIcon:l&&E.createElement(Kt,{size:"1rem"}),onClick:function(){return g()},disabled:l,variant:"contained",color:"primary"},"Agree"))))),E.createElement(yt,{error:o,onHide:function(){return a("")}}),E.createElement(pr,{open:d,autoHideDuration:2500,onClose:function(){return p(!1)}},E.createElement(Pr,{severity:"success",onClose:function(){return p(!1)}},"The job was reseted succesfully")))},G2i=function(e){var t=e.jobSelected,n=e.show,r=e.onHide,i=v.useState(""),o=i[0],a=i[1],s=v.useState(!1),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=ca({mutationFn:j2i,onSuccess:function(){p(!0),r(!0)},onError:function(m){a(m.message),r(!1)},onSettled:function(){c(!1)}}),g=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(m){switch(m.label){case 0:return c(!0),[4,h.mutate({jobId:t?.JobId,enabled:!t?.Enabled})];case 1:return m.sent(),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{title:"".concat(t?.Enabled?"DISABLE":"ENABLE"," JOB"),open:n,handleClose:function(){return r(!1)},id:"enable-job-modal"},E.createElement(We.Content,null,"Are you sure you want to ",t?.Enabled?"disable":"enable"," ","the job?"),E.createElement(We.Actions,{style:{padding:"16px 24px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Disagree")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,startIcon:l&&E.createElement(Kt,{size:"1rem"}),onClick:function(){return g()},disabled:l,variant:"contained",color:"primary"},"Agree"))))),E.createElement(yt,{error:o,onHide:function(){return a("")}}),E.createElement(pr,{open:d,autoHideDuration:2500,onClose:function(){return p(!1)}},E.createElement(Pr,{severity:"success",onClose:function(){return p(!1)}},"The job was ",t?.Enabled?"disabled":"enabled"," ","succesfully")))},$2i=function(e){var t=e.job,n=e.modal,r=e.onHide,i=e.suffixTitle,o=v.useState(!1),a=o[0],s=o[1],l=v.useState(""),c=l[0],u=l[1],d=v.useState(!1),p=d[0],h=d[1],g=jn({mode:"onChange"}),m=g.control,b=g.reset,y=g.handleSubmit,M=g.formState.dirtyFields,C=Object.keys(M).length!==0,x=ca({mutationFn:B2i,onSuccess:function(S){return Ct(void 0,void 0,void 0,function(){return xt(this,function(A){return h(!0),r({close:!1,entityId:S}),[2]})})},onError:function(S){u(S.message)},onSettled:function(){s(!1)}}),w=function(S){return Ct(void 0,void 0,void 0,function(){return xt(this,function(A){switch(A.label){case 0:return s(!0),n==="reset"?[3,2]:[4,x.mutate(S)];case 1:A.sent(),A.label=2;case 2:return[2]}})})};return v.useEffect(function(){(n==="create"||n==="update")&&(b(t||{sProcedure:"",RestartAfterFailure:!0,PeriodTime:null,StartTime:null,LastStatus:null,LastExecutionTime:null,LastExecutionResult:"",NextExecutionTime:null}),s(!1))},[n,t]),E.createElement(E.Fragment,null,(n=="update"||n=="create")&&E.createElement(yn,{title:"".concat(n=="update"?t?.sProcedure:"New Job").concat(i?" - ".concat(i):"")}),(t===null||n!=="update")&&n!=="create"?E.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"}},E.createElement(vt,null,"Select a job or create a new one")):E.createElement("form",{onSubmit:y(w)},E.createElement(D,{container:!0,spacing:2},E.createElement(D,{item:!0,xs:12,md:12},E.createElement(Ue,{name:"sProcedure",control:m,rules:{required:"Name is required"},render:function(S){var A,z=S.field,O=S.fieldState.error;return E.createElement(je,{label:"Name",value:(A=z.value)!==null&&A!==void 0?A:"",onChange:z.onChange,variant:"outlined",size:"small",fullWidth:!0,error:!!O,helperText:O?.message})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"RestartAfterFailure",control:m,render:function(S){var A=S.field;return E.createElement(So,{control:E.createElement(Qr,{checked:!!A.value,onChange:A.onChange,name:"RestartAfterFailure",color:"primary"}),label:"Restart After Failure"})}})),E.createElement(D,{item:!0,xs:12,md:6,style:{marginTop:-7}},E.createElement(Ue,{name:"PeriodTime",control:m,rules:{required:"Period time is required"},render:function(S){var A,z=S.field,O=S.fieldState.error;return E.createElement(je,{label:"Period Time (seconds)",value:(A=z.value)!==null&&A!==void 0?A:"",onChange:z.onChange,variant:"outlined",size:"small",margin:"dense",fullWidth:!0,error:!!O,helperText:O?.message})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"StartTime",control:m,render:function(S){var A=S.field,z=S.fieldState.error;return E.createElement(E.Fragment,null,E.createElement(xd,{label:"Start Time",value:A.value?oa(A.value):null,onChange:A.onChange,format:"MM/DD/YYYY HH:mm:ss",views:["year","month","day","hours","minutes"],ampm:!1,timezone:Ic.getInstance().getServerTimeZone(),slotProps:{textField:{size:"small",margin:"none",error:!!z,fullWidth:!0}}}))}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"LastStatus",control:m,render:function(S){var A,z=S.field;return E.createElement(je,{label:"Last Status",value:(A=z.value)!==null&&A!==void 0?A:"",variant:"outlined",size:"small",fullWidth:!0,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"LastExecutionTime",control:m,render:function(S){var A=S.field;return E.createElement(xd,{label:"Last Execution Time",value:A.value?oa(A.value):null,format:"MM/DD/YYYY HH:mm:ss",views:["year","month","day","hours","minutes"],ampm:!1,timezone:Ic.getInstance().getServerTimeZone(),disabled:!0,slotProps:{textField:{size:"small",margin:"none",fullWidth:!0}}})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"NextExecutionTime",control:m,render:function(S){var A=S.field;return E.createElement(xd,{label:"Next Execution Time",value:A.value?oa(A.value):null,format:"MM/DD/YYYY HH:mm:ss",views:["year","month","day","hours","minutes"],ampm:!1,timezone:Ic.getInstance().getServerTimeZone(),disabled:!0,slotProps:{textField:{size:"small",margin:"none",fullWidth:!0}}})}})),E.createElement(D,{item:!0,xs:12,md:12},E.createElement(Ue,{name:"LastExecutionResult",control:m,render:function(S){var A,z=S.field;return E.createElement(je,{label:"Last Execution Result",value:(A=z.value)!==null&&A!==void 0?A:"",variant:"outlined",size:"small",margin:"dense",fullWidth:!0,multiline:!0,minRows:2,maxRows:2,disabled:!0})}})),E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end",style:{margin:15}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r({close:!0})}},"Close")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,startIcon:a&&E.createElement(Kt,{size:"1rem"}),disabled:a||!C,variant:"contained",color:"primary",type:"submit"},"Save")))))),E.createElement(pr,{open:p,autoHideDuration:2500,onClose:function(){return h(!1)}},E.createElement(Pr,{severity:"success",onClose:function(){return h(!1)}},"The job was updated succesfully")),E.createElement(yt,{error:c,onHide:function(){return u("")}}))},U2i=function(e){var t=e.setShowModal,n=e.setJobSelected,r=Gf(),i=function(o){var a=[];return a=a.concat([{name:"New Job",key:"new_job",onClick:function(){t("create")},icon:E.createElement(Jo,null)}]),o&&(a=a.concat([{name:"Enable Job",key:"enable_job",disabled:!!o.Enabled,onClick:function(){t("enable"),n(o)},icon:E.createElement(p2i,null)},{name:"Disable Job",key:"disable_job",disabled:!o.Enabled,onClick:function(){t("enable"),n(o)},icon:E.createElement(c2i,null)},{name:"Reset Job",key:"reset_job",onClick:function(){t("reset"),n(o)},icon:E.createElement(a2i,null)}])),a=a.concat([{name:"Refresh Job",key:"refresh_job",onClick:function(){r.invalidateQueries({queryKey:["jobs"]})},icon:E.createElement(r2i,null)}]),a};return{getMenuOptions:i}},X2i=function(e){var t=e.setShowModal,n=e.setJobSelected,r=e.showContextMenu,i=function(a){return E.createElement(bn,{style:{},onClick:function(s){return r(s,a.data,"jobsContext")},size:"small"},E.createElement(Kf,{style:{height:"auto"},fontSize:"small",color:"action"}))},o=[{field:"sProcedure",headerName:"Procedures",type:"string",flex:3,cellStyle:{justifyContent:"flex-start"}},{field:"PeriodTime",headerName:"Period Time",flex:2,valueFormatter:function(a){var s=a.value;if(s==null)return"";var l=Math.floor(s/3600),c=Math.floor(s%3600/60),u=s%60;return"".concat(l,"h ").concat(c,"min ").concat(u,"s")}},{field:"NextExecutionTime",headerName:"Next Execution",valueFormatter:function(a){var s=a.value;return s===null?"":mt(s).format("DD/MM/YY HH:mm")},flex:2},{field:"Enabled",headerName:"Enabled",minWidth:50,valueFormatter:function(a){var s=a.value;return s?"Y":"N"},flex:1,cellRenderer:function(a){return E.createElement(dP,{checked:!!a.data.Enabled,color:"primary",size:"small",onChange:function(s,l){n(a.data),t("enable")}})}},{field:"-",headerName:"",cellRenderer:i,flex:1,wrapText:!1,sortable:!1,filter:!1,maxWidth:50}];return{columnDefs:o}},Y2i=function(e){var t=e.handleNew;return v.createElement(bn,{onClick:t,color:"primary",style:{marginLeft:-15}},v.createElement(Jo,{style:{width:30,height:30}}))},K2i=Et(function(e){return{root:{"& .MuiDataGrid-row":{cursor:"pointer"},"& .MuiDataGrid-columnHeaderTitle, & .MuiTablePagination-caption":{fontWeight:"bold",fontColor:"black"}}}}),Q2i=function(){var e=K2i(),t=Gf(),n=v.useState(null),r=n[0],i=n[1],o=v.useState(null),a=o[0],s=o[1],l=v.useState(""),c=l[0],u=l[1],d=v.useState(""),p=d[0],h=d[1],g=Z2i(),m=g.data,b=g.isLoading,y=g.isError,M=g.error,C=v.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,suppressHeaderMenuButton:!0,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),x=function(N){var L=a?.getFocusedCell();L?.column.getColId()!=="-"&&N.node.isSelected()&&(i(N.data),h("update")),L?.column.getColId()==="Enabled"&&(i(N.data),h("enable"))},w=ws(),S=w.showContextMenu,A=w.registerConfig,z=U2i({setShowModal:h,setJobSelected:i}).getMenuOptions,O=X2i({setJobSelected:i,setShowModal:h,showContextMenu:S}).columnDefs,T=function(N){var L,W,j=(L=N.node)===null||L===void 0?void 0:L.data;return S(event,j,"jobsContext"),j&&(N.api.deselectAll(),(W=N.node)===null||W===void 0||W.setSelected(!0)),[]},R=function(){a&&a.deselectAll(),h("create"),i(null)},P=function(N){return Ct(void 0,[N],void 0,function(L){var W=L.close,j=L.entityId;return xt(this,function(V){switch(V.label){case 0:return W?(h(""),i(null),a&&a?.deselectAll(),[2]):[4,t.invalidateQueries({queryKey:["jobs"]}).then(function(){j&&setTimeout(function(){var G,q=a?.getRowNode(String(j));q&&(a?.ensureIndexVisible((G=q?.rowIndex)!==null&&G!==void 0?G:0),q?.setSelected(!0),i(q?.data))},100)})];case 1:return V.sent(),[2]}})})},F=function(N){var L=N.api,W=N.node,j=N.event;if(j){var V=j.key;if(V==="ArrowUp"||V==="ArrowDown"){j.preventDefault();var G=W.rowIndex!==null?W.rowIndex:-1,q=V==="ArrowUp"?G-1:G+1,$=L.getDisplayedRowAtIndex(q);$&&($.setSelected(!0),L.ensureIndexVisible(q),i($.data))}}};return v.useEffect(function(){M&&y&&u(M.message)},[M,y]),v.useEffect(function(){A({id:"jobsContext",getOptions:z})},[]),v.createElement(v.Fragment,null,v.createElement(D,{container:!0,justifyContent:"flex-start"},v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},v.createElement(vt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"System Jobs")),v.createElement(D,{container:!0,justifyContent:"flex-start",alignItems:"center",className:e.root,style:{width:"100%",padding:"0 10px"},spacing:2},v.createElement(D,{item:!0,md:6,xs:12},v.createElement(Pt,{elevation:2,style:{height:"70vh",width:"100%"}},v.createElement($n,{loading:b,rowData:m,columnDefs:O,defaultColDef:C,getContextMenuItems:T,loadingOverlayComponent:Wm,rowHeight:34,headerHeight:34,animateRows:!0,rowSelection:"single",onGridReady:function(N){return s(N.api)},getRowId:function(N){return"".concat(N.data.JobId)},onRowClicked:x,onCellKeyDown:F,gridOptions:{theme:Bw,statusBar:{statusPanels:[{statusPanel:function(N){return v.createElement(Y2i,{handleNew:R})},align:"left"},{statusPanel:"agTotalRowCountComponent",align:"right"}]}}}))),v.createElement(D,{item:!0,md:6,xs:12},v.createElement(Pt,{elevation:2,style:{height:"70vh",width:"100%",padding:15},className:"ag-theme-material"},v.createElement($2i,{job:r,modal:p,onHide:P,suffixTitle:"System Jobs"}))))),v.createElement(V2i,{show:p==="reset",onHide:function(N){return Ct(void 0,void 0,void 0,function(){return xt(this,function(L){switch(L.label){case 0:return h(""),i(null),a&&a.deselectAll(),N?[4,t.invalidateQueries({queryKey:["jobs"]})]:[3,2];case 1:L.sent(),L.label=2;case 2:return[2]}})})},jobSelected:r}),v.createElement(G2i,{show:p==="enable",onHide:function(N){return Ct(void 0,void 0,void 0,function(){return xt(this,function(L){switch(L.label){case 0:return h(""),i(null),a&&a.deselectAll(),N?[4,t.invalidateQueries({queryKey:["jobs"]})]:[3,2];case 1:L.sent(),L.label=2;case 2:return[2]}})})},jobSelected:r}),v.createElement(yt,{error:c,onHide:function(){return u("")}}))},Z2i=function(){return jl({queryKey:["jobs"],queryFn:function(){return q2i()}})},J2i=function(){return v.createElement(v.Fragment,null,v.createElement(yn,{title:"System Jobs"}),v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},v.createElement(D,{item:!0,md:12,xs:12,style:{margin:0}},v.createElement(Q2i,null))))},eyi={jobsData:[],blockButtons:!1},XX=ki({name:"__",initialState:eyi,reducers:{setJobs:function(e,t){var n=t.payload;e.jobsData=n},setBlockButtons:function(e,t){var n=t.payload;e.blockButtons=n}}}),tyi=v.createContext({state:XX.getInitialState(),actions:XX.actions}),nyi=function(e){var t=e.children,n=Fi.useComplexState({initialState:XX.getInitialState(),reducers:XX.caseReducers}),r=n[0],i=n[1];return E.createElement(tyi.Provider,{value:{state:r,actions:i}},t)},ryi=function(e){return v.createElement(nyi,null,v.createElement(J2i,null))},YX={I:{id:"I",color:"#3f51b5",description:"Info"},E:{id:"E",color:"#f44336",description:"Error"},W:{id:"W",color:"#E69C00",description:"Warning"},D:{id:"D",color:"#FF79C6",description:"Debug"}},iyi=function(e){var t=e.LogTypeCode,n=e.setLogTypeCodeFilter,r=function(i){var o=xi([],i,!0).sort();return o.length===3&&o.includes("I")&&o.includes("W")&&o.includes("E")?"All":o.length===4&&o.includes("I")&&o.includes("W")&&o.includes("E")&&o.includes("D")?"All + Debug":i.map(function(a){var s;return((s=YX[a])===null||s===void 0?void 0:s.description)||a}).join(" + ")};return E.createElement("div",{style:{marginTop:6,borderTopLeftRadius:3,borderTopRightRadius:3}},E.createElement(ol,{id:"demo-simple-select-label",style:{fontSize:10,marginBottom:0}},"Type"),E.createElement(cs,{labelId:"code-filter-select-label",id:"code-filter-select",multiple:!0,value:t,onChange:function(i){var o=i.target.value;o.length>0&&n(o)},renderValue:function(i){return r(i)},style:{minWidth:"100%"}},Object.values(YX).map(function(i){return E.createElement(lr,{key:"logId-".concat(i.id),value:i.id,style:{padding:"0px 8px"}},E.createElement(Qr,{checked:t.includes(i.id),size:"small",color:"primary"}),E.createElement(ia,{primary:i.description}))})))},OKe=function(e){var t=e.date,n=e.setDate,r=e.label,i=r===void 0?"Date":r,o=e.minDate,a=e.maxDate,s=function(l){l&&n(l.toDate())};return E.createElement(pZ,{utils:dZ},E.createElement(cB,{disableToolbar:!0,variant:"inline",format:"MM/DD/yyyy",id:"date-picker-inline",autoOk:!0,minDate:o,maxDate:a||mt().toDate(),style:{minWidth:"100%",borderTopLeftRadius:3,borderTopRightRadius:3},label:i,value:t,onChange:s,KeyboardButtonProps:{"aria-label":"change date"}}))},oyi=function(e){var t=e.search,n=e.setSearch;return E.createElement("div",{style:{marginTop:8}},E.createElement(je,{style:{minWidth:"100%"},label:"Search",variant:"outlined",size:"small",value:t,onChange:function(r){return n(r.target.value)},autoComplete:"off"}))},ayi=function(){var e=function(n){return R9.get(YX,"".concat(n[0],".color"),"#BBBBBB")},t=v.useState([{field:"Timestamp",headerName:"Time",minWidth:220,flex:1,headerClass:"ag-header-cell-centered"},{field:"Source",headerName:"Source",minWidth:290,flex:2,type:"string",cellStyle:{justifyContent:"flex-start"}},{field:"Message",headerName:"Message",minWidth:150,flex:5,type:"string",cellStyle:{justifyContent:"flex-start"}},{field:"LogTypeCode",headerName:"Type",minWidth:50,maxWidth:70,flex:1,cellRenderer:function(n){return E.createElement(gM,{style:{backgroundColor:e(n.value),color:"white"},label:n.value,size:"small"})}},{field:"User",headerName:"User",minWidth:70,flex:1,type:"string",valueFormatter:function(n){var r=n.value;return r||" "},headerClass:"ag-header-cell-centered"}])[0];return{columnDefs:t}},syi=Et(function(e){return{root:{"& .MuiDataGrid-row":{cursor:"pointer"},"& .MuiPaper-root ":{height:"100% !important"},"& .MuiDataGrid-columnHeaderTitle, & .MuiTablePagination-caption":{fontWeight:"bold"}},card:{backgroundColor:"#ffffff",display:"flex",alignItems:"center",height:"100%"},form:{}}}),lyi=function(e){var t=e.value,n=e.onChange;return E.createElement("div",{style:{marginTop:6,borderTopLeftRadius:3,borderTopRightRadius:3}},E.createElement(ol,{id:"timezone-selector-label",style:{fontSize:10,marginBottom:0}},"Timezone"),E.createElement(cs,{labelId:"timezone-selector-label",id:"timezone-selector",value:t,onChange:function(r){return n(r.target.value)},style:{minWidth:"100%"}},E.createElement(lr,{value:"UTC"},"UTC"),E.createElement(lr,{value:"Server"},"Server")))},cyi=Et(function(e){return{title:{fontSize:15},messageTitle:{marginBottom:5,fontSize:12,color:"#0000008A"}}}),uyi=function(e){if(e==null)return"";var t;if(e instanceof Date)t=e;else if(typeof e=="string"||typeof e=="number")t=new Date(e);else return"";return isNaN(t.getTime())?"":t.toLocaleDateString()+" "+t.toLocaleTimeString()},dyi=function(e){var t,n=e.show,r=e.onHide,i=e.selectedLog,o=e.suffixTitle,a=cyi();return E.createElement(E.Fragment,null,n&&E.createElement(yn,{title:"".concat((t=i?.Source)!==null&&t!==void 0?t:""," - Log Details").concat(o?" - ".concat(o):"")}),E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},E.createElement(We,{title:"LOG DETAILS",open:n,handleClose:function(){return r(!1)},maxWidth:"md",id:"log-details-modal"},E.createElement(We.Content,{style:{padding:"15px 30px"}},E.createElement(D,{container:!0,spacing:1,alignItems:"flex-start"},E.createElement(D,{item:!0,md:6,xs:12,style:{paddingRight:20,paddingLeft:5}},E.createElement(je,{variant:"standard",fullWidth:!0,margin:"dense",label:"User",defaultValue:i?.User,InputProps:{readOnly:!0}})),E.createElement(D,{item:!0,md:6,xs:12,style:{paddingRight:20,paddingLeft:5}},E.createElement(je,{variant:"standard",fullWidth:!0,margin:"dense",label:"Time",defaultValue:uyi(i?.Timestamp),InputProps:{readOnly:!0}})),E.createElement(D,{item:!0,md:6,xs:12,style:{paddingRight:20,paddingLeft:5}},E.createElement(je,{variant:"standard",fullWidth:!0,margin:"dense",label:"Source",defaultValue:i?.Source,InputProps:{readOnly:!0}})),E.createElement(D,{item:!0,md:6,xs:12,style:{paddingRight:20,paddingLeft:5}},E.createElement(je,{variant:"standard",fullWidth:!0,margin:"dense",label:"Type",defaultValue:i?.LogTypeCode,InputProps:{readOnly:!0}})),E.createElement(D,{item:!0,md:12,xs:12,style:{paddingRight:20,paddingLeft:5,marginBottom:20}},E.createElement(wD,{variant:"outlined",style:{backgroundColor:"#E9F2F8"}},E.createElement(SD,null,E.createElement(vt,{className:a.messageTitle},"Message:"),E.createElement(vt,{style:{fontSize:17}},i?.Message)))))),E.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!0)}},"Close")))))))},pyi=function(e){var t=e.setSelectedLog,n=e.setShowLogModal,r=e.handleResetButtonClick,i=function(o){var a=[];return o&&(a=a.concat([{name:"View Log",key:"view_log",onClick:function(){t(o),n(!0)},icon:E.createElement(Jo,null)},{name:"Reset Filter",key:"reset_filters",onClick:function(){r()},icon:E.createElement(Fo,null)}])),a};return{getMenuOptions:i}},hyi=function(e){return At(YX,"".concat(e,".description")," -")},fyi=function(){var e=syi(),t=v.useState(mt().add(-5,"days").hour(0).minute(0).second(0).toDate()),n=t[0],r=t[1],i=v.useState(mt().hour(23).minute(59).second(59).toDate()),o=i[0],a=i[1],s=v.useState("UTC"),l=s[0],c=s[1],u=v.useState(""),d=u[0],p=u[1],h=v.useState(["I","W","E"]),g=h[0],m=h[1],b=v.useState(!1),y=b[0],M=b[1],C=v.useState(null),x=C[0],w=C[1],S=v.useState(""),A=S[0],z=S[1],O=v.useState(!1),T=O[0],R=O[1],P=v.useState(void 0),F=P[0],N=P[1],L=myi({startDate:n,endDate:o,logTypeCode:g.join(","),autoRefresh:y}),W=L.data,j=L.isLoading,V=L.refetch,G=L.isError,q=L.error,$=function(ne){w(ne.api)},U=W?.map(function(ne){var le=ne.LogId,he=ne.Timestamp,be=ne.Source,me=ne.Message,Me=ne.LogTypeCode,Oe=ne.User;return{id:le,Timestamp:l==="UTC"?mt(he).utc().format("YYYY-MM-DD HH:mm:ss z"):Wn(he,"yyyy-MM-dd HH:mm:ss z"),Source:be,Message:gi(me)?"":me.replaceAll("Added"," Added"),LogTypeCode:hyi(Me),User:Oe}}),X=ayi().columnDefs,Q=v.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),re=ws(),ee=re.showContextMenu,se=re.registerConfig,pe=function(){te(),r(mt().add(-5,"days").hour(0).minute(0).second(0).toDate()),a(mt().hour(23).minute(59).second(59).toDate()),p(""),x?.setGridOption("quickFilterText",""),m(["I","W","E"]),V(),z("")},te=function(){r(mt().add(-5,"days").hour(0).minute(0).second(0).toDate()),a(mt().hour(23).minute(59).second(59).toDate()),p(""),x?.setGridOption("quickFilterText",""),m(["I","W","E"]),N(void 0)},ce=function(ne){var le=ne.data;le&&(N(le),R(!0))},oe=function(ne){var le,he,be=(le=ne.node)===null||le===void 0?void 0:le.data;return ne.api.deselectAll(),(he=ne.node)===null||he===void 0||he.setSelected(!0),ee(event,be,"TableLogs"),[]},ae=pyi({setSelectedLog:N,setShowLogModal:R,handleResetButtonClick:pe}).getMenuOptions;return v.useEffect(function(){se({id:"TableLogs",getOptions:ae})},[]),v.useEffect(function(){G&&q&&z(q.message)},[G,q]),v.createElement(v.Fragment,null,v.createElement(D,{container:!0,justifyContent:"flex-start"},v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},v.createElement(vt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"MES and System Logs")),v.createElement(D,{container:!0,justifyContent:"flex-start",alignItems:"center",className:e.root,style:{width:"100%",padding:"0 10px"},spacing:2},v.createElement(D,{item:!0,md:12,xs:12},v.createElement(wD,{className:e.card},v.createElement(SD,{style:{padding:"6px !important",width:"100%"}},v.createElement(D,{container:!0,alignItems:"center",direction:"row",spacing:1},v.createElement(D,{item:!0,style:{width:"fit-content"}},v.createElement(OKe,{label:"From",date:n,setDate:function(ne){return r(ne||new Date)},maxDate:o??void 0})),v.createElement(D,{item:!0,style:{width:"fit-content"}},v.createElement(OKe,{label:"To",date:o,setDate:function(ne){ne&&(a(ne),M(!1))},minDate:n})),v.createElement(D,{item:!0,md:2,xs:12},v.createElement(iyi,{LogTypeCode:g,setLogTypeCodeFilter:function(ne){return m(ne)}})),v.createElement(D,{item:!0,md:1,xs:12},v.createElement(lyi,{value:l,onChange:c})),v.createElement(D,{item:!0,md:1,xs:12},v.createElement(So,{checked:y,control:v.createElement(dP,{color:"primary"}),label:"Auto Refresh",onChange:function(ne,le){a(le?null:mt().hour(23).minute(59).second(59).toDate()),M(le)}})),v.createElement(D,{item:!0,md:3,xs:12},v.createElement(oyi,{search:d,setSearch:function(ne){p(ne),x?.setGridOption("quickFilterText",ne)}})),v.createElement(D,{item:!0,md:1,xs:12,style:{paddingTop:8}},v.createElement(Ne,{variant:"contained",color:"default",onClick:pe,fullWidth:!0},"Reset")))))),v.createElement(D,{item:!0,md:12,xs:12,style:{height:"70vh"}},v.createElement(Pt,{style:{height:"100%",width:"100%"}},v.createElement($n,{loading:j,gridOptions:{theme:Bw},rowData:U,columnDefs:X,defaultColDef:Q,onGridReady:$,getRowId:function(ne){return ne.data.id},rowHeight:34,headerHeight:40,animateRows:!0,loadingOverlayComponent:Wm,getContextMenuItems:function(ne){return oe(ne)},rowSelection:"single",onRowDoubleClicked:function(ne){ce(ne)}})))),v.createElement(yt,{error:A,onHide:function(){return z("")}})),v.createElement(dyi,{show:T,onHide:function(){return R(!1)},selectedLog:F,suffixTitle:"MES and System Logs"}))},gyi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a,s,l=t.startDate,c=t.endDate,u=t.logTypeCode;return xt(this,function(d){switch(d.label){case 0:return n=new Ye,r=new Date,r.setDate(r.getDate()+1),i=c||r,o=[{name:"Start",value:l},{name:"End",value:i},{name:"LogTypeCode",value:u==="A"?null:u}],[4,n.callV2("[MES].[GetLogs]",o)];case 1:if(a=d.sent(),a.ok)return s=At(a,"data.tables[0].rows",[]),s=s.map(function(p){return tt(tt({},p),{Timestamp:p.Timestamp?mt.utc(p.Timestamp).toDate():null})}),[2,s];throw new Error(a.message||"Error fetching logs")}})})},myi=function(e){var t=e.startDate,n=e.endDate,r=e.logTypeCode,i=e.autoRefresh;return jl({queryKey:["logs",t,n,r],queryFn:function(){return gyi({startDate:t,endDate:n,logTypeCode:r})},refetchInterval:i?5e3:!1})},vyi=function(e){return E.createElement(E.Fragment,null,E.createElement(yn,{title:"MES and System Logs"}),E.createElement(fyi,null))},byi=function(e){return v.createElement(vyi,null)},ph=function(e){return E.createElement(Pr,tt({elevation:6,variant:"filled"},e))},xOt={ProfileId:null,ProfileName:""},yyi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[SEC].[GetProfiles]",[])];case 1:if(t=n.sent(),t.ok)return[2,At(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching users")}})})},wOt=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.ProfileId,a=t.ProfileName;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"ProfileId",value:o},{name:"ProfileName",value:a}],[4,n.callV2("[SEC].[UpsertProfile]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when upsert profile");return[2]}})})},Myi=function(){return Ct(void 0,void 0,void 0,function(){var e,t,n;return xt(this,function(r){switch(r.label){case 0:return e=new Ye,t=[],[4,e.callV2("[SEC].[GetActions]",t)];case 1:if(n=r.sent(),n.ok)return[2,At(n,"data.tables[0].rows",[])];throw new Error(n.message||"Error fetching actions")}})})},Cyi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"ProfileId",value:e}],[4,t.callV2("[SEC].[GetActionsByProfileId]",n)];case 1:if(r=i.sent(),r.ok)return[2,At(r,"data.tables[0].rows",[])];throw new Error(r.message||"Error fetching actions of profile")}})})},xyi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a,s=t.profileId,l=t.actions;return xt(this,function(c){switch(c.label){case 0:return n=new Ye,r=l.map(function(u){return u.ActionId}),i=r.join(","),o=[{name:"ProfileId",value:s},{name:"ActionIds",value:i}],[4,n.callV2("[SEC].[UpsertProfileActions]",o)];case 1:if(a=c.sent(),!a.ok)throw new Error(a.message||"Error when upsert actions of profile");return[2]}})})},wyi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"ProfileId",value:e}],[4,t.callV2("[SEC].[DeleteProfile]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when delete profile");return[2]}})})},Syi=Et(function(e){return{title:{fontSize:15},modalTitle:{fontSize:15,marginTop:e.spacing(1)},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}}}),Ayi=function(e){var t,n=e.show,r=e.onHide,i=e.suffixTitle,o=v.useState(!1),a=o[0],s=o[1],l=v.useState(""),c=l[0],u=l[1],d=v.useState(!1),p=d[0],h=d[1],g=v.useState(""),m=g[0],b=g[1],y=Syi(),M=jn({defaultValues:xOt}),C=M.register,x=M.handleSubmit,w=M.reset,S=M.formState.errors,A=ca({mutationFn:wOt,onSuccess:function(){u("The profile was created successfully"),s(!0),r(!0)},onError:function(T){b(T.message)},onSettled:function(){h(!1)}}),z=function(T){return Ct(void 0,void 0,void 0,function(){return xt(this,function(R){switch(R.label){case 0:return h(!0),[4,A.mutate({ProfileId:T.ProfileId,ProfileName:T.ProfileName})];case 1:return R.sent(),[2]}})})},O=function(T,R){R!=="clickaway"&&s(!1)};return v.useEffect(function(){n&&w()},[n]),v.createElement(v.Fragment,null,n&&v.createElement(yn,{title:"New Profile".concat(i?" - ".concat(i):"")}),v.createElement(D,{container:!0},v.createElement(D,{item:!0},v.createElement(We,{title:"NEW PROFILE",open:n,handleClose:function(){return r(!1)},id:"create-profile-modal",maxWidth:"md"},v.createElement("form",{onSubmit:x(z)},v.createElement(We.Content,{style:{padding:"15px 30px"}},v.createElement(D,{container:!0,spacing:1},v.createElement(D,{item:!0,md:12,xs:12},v.createElement(je,tt({},C("ProfileName",{required:!0}),{label:"Profile name",variant:"outlined",error:!!S.ProfileName,fullWidth:!0,margin:"dense",autoComplete:"off"}))," ",((t=S.ProfileName)===null||t===void 0?void 0:t.type)==="required"&&v.createElement("span",{className:y.errorLabel},"Profile name is required")))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:p&&v.createElement(Kt,{size:"1rem"}),disabled:p,variant:"contained",color:"primary",type:"submit"},"Save")))))))),v.createElement(pr,{open:a,autoHideDuration:2500,onClose:O},v.createElement(ph,{severity:"success",onClose:O},c)),v.createElement(yt,{error:m,onHide:function(){return b("")},title:"Error Creating Profile"}))},Oyi=function(e){var t=e.profile,n=e.show,r=e.onHide,i=e.suffixTitle,o=v.useState(!1),a=o[0],s=o[1],l=v.useState(""),c=l[0],u=l[1],d=v.useState(!0),p=d[0],h=d[1],g=v.useState(!1),m=g[0],b=g[1],y=v.useState(!1),M=y[0],C=y[1],x=function(A,z){z!=="clickaway"&&(s(!1),C(!1))},w=ca({mutationFn:wyi,onSuccess:function(){s(!0),r(!0)},onError:function(A){u(A.message)},onSettled:function(){C(!1),b(!1)}}),S=function(A){return Ct(void 0,void 0,void 0,function(){return xt(this,function(z){switch(z.label){case 0:return b(!0),[4,w.mutate(A)];case 1:return z.sent(),[2]}})})};return v.useEffect(function(){n&&(h(!1),b(!1))},[n]),E.createElement(E.Fragment,null,n&&E.createElement(yn,{title:"Delete Profile".concat(i?" - ".concat(i):"")}),E.createElement(We,{title:"DELETE PROFILE",open:n,handleClose:function(){return r(!1)},id:"delete-profile-modal",maxWidth:"md"},E.createElement("form",null,E.createElement(We.Content,{style:{padding:"15px 30px"}},p&&E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"}},E.createElement(Ik,null)),!p&&E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(vt,null,"Are you sure you want to delete"," ",E.createElement("strong",null,t?.ProfileName)," profile?"))))),E.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"secondary",onClick:function(){return C(!0)}},"DELETE")))),E.createElement(Qu,{open:M,onClose:function(){return x()},"aria-labelledby":"responsive-dialog-title"},E.createElement(T0,{id:"responsive-dialog-title"},"WARNING"),E.createElement(ru,null,E.createElement(mM,{style:{padding:0,margin:0}},"Be careful, once deleted you will not be able to recover this profile, are you sure you want to delete it?")),E.createElement(Ed,{style:{padding:"16px 24px"}},E.createElement(Ne,{onClick:function(){return C(!1)},autoFocus:!0,color:"default"},"CANCEL"),E.createElement(Ne,{startIcon:m&&E.createElement(Kt,{size:"1rem"}),autoFocus:!0,color:"secondary",onClick:function(){return S(t?.ProfileId)}},"Delete"))))),E.createElement(pr,{open:a,autoHideDuration:2500,onClose:x},E.createElement(ph,{severity:"success",onClose:x},"The profile was deleted successfully")),E.createElement(yt,{error:c,onHide:function(){return u("")},title:"Error Deleting Profile"}))},zyi=function(){return jl({queryKey:["actions"],queryFn:function(){return Myi()}})},Tyi=function(e){var t=e.actionsOfProfile,n=e.onSelectionChanged,r=v.useState(""),i=r[0],o=r[1],a=v.useState(""),s=a[0],l=a[1],c=v.useState(null),u=c[0],d=c[1],p=function(z){z.api.applyColumnState({state:[{colId:"ActionName",sort:"asc",sortIndex:0}]})},h=zyi(),g=h.data,m=h.isLoading,b=h.isError,y=h.error,M=g?.map(function(z){var O=z.ActionId,T=z.ActionName;return{ActionId:O,ActionName:T}}),C=[{field:"ActionId",headerName:"#",flex:1,maxWidth:100,checkboxSelection:!0,showDisabledCheckboxes:!0,sortIndex:1},{field:"ActionName",headerName:"Name",flex:4,sortIndex:0,comparator:function(z,O,T,R,P){var F;return T.isSelected()&&!R.isSelected()?-1:!T.isSelected()&&R.isSelected()?1:(F=T.data.ActionName)===null||F===void 0?void 0:F.localeCompare(R.data.ActionName)}}],x=v.useMemo(function(){return{resizable:!0,sortable:!0,filter:!0,suppressHeaderMenuButton:!0}},[]),w=function(z){p(z);var O=z.api.getSelectedRows();n(O)},S=v.useCallback(function(z){z.api.forEachNode(function(O){O.setSelected(!!O.data&&!gi(t.find(function(T){return T.ActionId===O.data.ActionId})))}),p(z)},[p]),A=v.useCallback(function(z){d(z.api)},[d]);return v.useEffect(function(){y&&b&&l(y.message)},[y,b]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,md:12,xs:12,style:{padding:"0 0 10px",justifyContent:"space-between"}},E.createElement(D,{item:!0,md:12,xs:12},"Actions"),E.createElement(D,{item:!0,md:12,xs:12},E.createElement(je,{id:"outlined-basic",label:"Search",variant:"outlined",value:i,onChange:function(z){o(z.target.value),u?.setGridOption("quickFilterText",z?.target.value)},margin:"dense",style:{width:"100%"}}))),E.createElement("div",{style:{width:"100%",height:"60vh"}},E.createElement($n,{loading:m,gridOptions:{theme:Bye.withParams({spacing:4})},rowData:M||[],getRowId:function(z){return String(z.data.ActionId)},onGridReady:A,columnDefs:C,defaultColDef:x,onFirstDataRendered:S,rowSelection:"multiple",rowMultiSelectWithClick:!0,onSelectionChanged:w})),E.createElement(yt,{error:s,onHide:function(){return l("")}}))},Eyi=Et(function(e){return{root:{"& .MuiFormLabel-asterisk":{display:"none"}}}}),Ryi=function(e){var t=e.profileId;return jl({queryKey:["actions",t],queryFn:function(){return t?Cyi(t):[]}})},Iyi=function(e){var t,n=e.profileForEdit,r=e.show,i=e.onHide,o=e.suffixTitle,a=Eyi(),s=v.useState(!1),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=v.useState(!1),g=h[0],m=h[1],b=v.useState([]),y=b[0],M=b[1],C=v.useState(""),x=C[0],w=C[1],S=v.useState(""),A=S[0],z=S[1],O=v.useState(""),T=O[0],R=O[1],P=v.useState(!1);P[0];var F=P[1],N=Ryi({profileId:(t=n?.ProfileId)!==null&&t!==void 0?t:null}),L=N.data,W=N.isLoading,j=N.isError,V=N.error,G=jn({defaultValues:xOt}).handleSubmit,q=function(ee,se){se!=="clickaway"&&(p(!1),c(!1))},$=function(ee){z(ee.target.value)},U=Gf(),X=ca({mutationFn:wOt,onSuccess:function(){i(!0),c(!0)},onError:function(ee){R(ee.message)},onSettled:function(){m(!1)}}),Q=ca({mutationFn:xyi,onSuccess:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ee){switch(ee.label){case 0:return[4,U.invalidateQueries({queryKey:["actions",n?.ProfileId]})];case 1:return ee.sent(),n?.ProfileName===A?[3,3]:[4,X.mutate({ProfileId:n?.ProfileId,ProfileName:A})];case 2:return ee.sent(),setTimeout(function(){return p(!0)},2600),[3,4];case 3:p(!0),i(!0),ee.label=4;case 4:return[2]}})})},onError:function(ee){w(ee.message)},onSettled:function(){m(!1)}}),re=function(){return Ct(void 0,void 0,void 0,function(){var ee;return xt(this,function(se){switch(se.label){case 0:return m(!0),ee=L?.length===y.length&&L.every(function(pe,te){return pe.ActionId===y[te].ActionId}),ee?[4,X.mutate({ProfileId:n?.ProfileId,ProfileName:A})]:[3,2];case 1:return se.sent(),[3,4];case 2:return[4,Q.mutate({profileId:n?.ProfileId,actions:y})];case 3:se.sent(),se.label=4;case 4:return[2]}})})};return v.useEffect(function(){r&&(F(!1),z(n?.ProfileName),m(!1))},[r,n?.ProfileId]),v.useEffect(function(){V&&j&&w(V.message)},[V,j]),v.createElement(v.Fragment,null,r&&v.createElement(yn,{title:"Edit Profile".concat(o?" - ".concat(o):"")}),v.createElement(We,{title:"EDIT PROFILE",open:r,handleClose:function(){return i(!1)},id:"edit-profile-modal",maxWidth:"xl"},v.createElement("form",{onSubmit:G(re)},v.createElement(We.Content,{style:{padding:"0 30px 15px"}},v.createElement(D,{container:!0,style:{position:"relative"},className:a.root},v.createElement(D,{item:!0,md:12,xs:12},v.createElement(je,{id:"outlined-basic",label:"Name",variant:"outlined",value:A,fullWidth:!0,size:"small",margin:"dense",autoComplete:"off",onChange:function(ee){return $(ee)},InputLabelProps:{shrink:!0},required:!0,error:A.length===0}))),W&&v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"60px"}},v.createElement(Kt,{size:"3rem"})),!W&&L&&v.createElement(Tyi,{actionsOfProfile:L,onSelectionChanged:M})),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},!W&&v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return i(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:g&&v.createElement(Kt,{size:"1rem"}),disabled:g,variant:"contained",color:"primary",type:"submit"},"Save")))))),v.createElement(pr,{open:d,autoHideDuration:2500,onClose:q},v.createElement(ph,{severity:"info",onClose:q},"The actions of the profile were edited successfully")),v.createElement(pr,{open:l,autoHideDuration:2500,onClose:q},v.createElement(ph,{severity:"success",onClose:q},"The name of the profile were edited successfully")),v.createElement(yt,{error:x,onHide:function(){return w("")},title:"Error Editing Profile"}),v.createElement(yt,{error:T,onHide:function(){return R("")},title:"Error Editing Profile"}))},Pyi=function(e){var t=e.setProfileId,n=e.setShowDeleteModal,r=e.setShowCreateModal,i=e.setModalProceduresProfile,o=function(a){var s=[];return a?s=s.concat([{name:"New Profile",key:"new_profile",onClick:function(){r(!0)},icon:E.createElement(Jo,null)},{name:"Edit Profile",key:"edit_profile",onClick:function(){t(a),i(!0)},icon:E.createElement(Fo,null)},{name:"Delete Profile",key:"delete_profile",onClick:function(){t(a),n(!0)},icon:E.createElement(Mo,null)}]):s=s.concat([{name:"New Profile",key:"new_profile",onClick:function(){r(!0)},icon:E.createElement(Jo,null)}]),s};return{getMenuOptions:o}},Dyi=Et(function(e){return{buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}}}),kyi=function(e){var t=e.setProfileId,n=e.setModalProceduresProfile,r=e.setModalDeleteProfile,i=e.showContextMenu,o=Dyi(),a=[{field:"ProfileName",headerName:"Profile name",minWidth:170,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"Actions",cellRenderer:function(s){return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.buttons},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Ne,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(l){return t(s?.data),n(!0),[2]})})})()}},E.createElement(Fo,{color:"primary"})),E.createElement(Ne,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(l){return t(s.data),r(!0),[2]})})})()}},E.createElement(Mo,{color:"secondary"})),E.createElement(Ne,{style:{},onClick:function(l){return i(l,s.data,"TableProfiles")}},E.createElement(Kf,{style:{height:"auto"},color:"action"}))))},headerName:" ",wrapText:!1,autoHeight:!1,wrapHeaderText:!1,sortable:!1,flex:2,minWidth:300}];return{columnDefs:a}},Lyi=Et(function(e){return{root:{"& .ag-icon-menu":{display:"none"},"& .ag-header-cell-label":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1rem"},"& .ag-header-cell-text":{textAlign:"center !important"},"& .ag-checkbox-input-wrapper":{margin:"0 10px"},"& .ag-cell":{alignItems:"center",padding:"0 !important",border:"unset !important"},"& .ag-header-cell":{padding:"0px !important",textAlign:"center !important",fontSize:10,display:"flex",alignItems:"center",justifyContent:"center"},"& .ag-cell-wrapper":{textAlign:"center"},"& .ag-menu-option":{cursor:"pointer"},"& .MuiDataGrid-row":{cursor:"pointer"},"& .MuiDataGrid-columnHeaderTitle, & .MuiTablePagination-caption":{fontWeight:"bold",fontSize:"12px"},"& .MuiDataGrid-columnHeaderTitleContainer":{padding:"0"},"& .MuiDataGrid-cell--textLeft":{fontSize:"12px"}},btnModal:{display:"flex",justifyContent:"flex-end"}}}),_yi=function(){var e=Lyi(),t=v.useState(!1),n=t[0],r=t[1],i=v.useState(!1),o=i[0],a=i[1],s=v.useState(!1),l=s[0],c=s[1],u=v.useState(null),d=u[0],p=u[1],h=v.useState(null);h[0];var g=h[1],m=v.useState("");m[0];var b=m[1],y=SOt(),M=y.data,C=y.isLoading,x=y.isError,w=y.error,S=y.refetch,A=M?.map(function(L){var W=L.ProfileId,j=L.ProfileName;return{id:W,ProfileId:W,ProfileName:j}}),z=v.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),O=Pyi({setProfileId:p,setShowCreateModal:r,setShowDeleteModal:c,setModalProceduresProfile:a}).getMenuOptions,T=ws(),R=T.showContextMenu,P=T.registerConfig,F=kyi({setModalDeleteProfile:c,setModalProceduresProfile:a,setProfileId:p,showContextMenu:R}).columnDefs,N=function(L){var W,j,V=(W=L.node)===null||W===void 0?void 0:W.data;return L.api.deselectAll(),(j=L.node)===null||j===void 0||j.setSelected(!0),R(event,V,"TableProfiles"),[]};return v.useEffect(function(){P({id:"TableProfiles",getOptions:O})},[]),v.useEffect(function(){w&&x&&b(w.message)},[w,x]),v.createElement(v.Fragment,null,v.createElement(D,{container:!0,justifyContent:"center"},v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},v.createElement(vt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"Profile Management")),v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},v.createElement(D,{item:!0,md:12,xs:12,component:Pt,style:{height:"70vh"}},v.createElement($n,{loading:C,gridOptions:{theme:Bw},rowData:A||[],columnDefs:F,defaultColDef:z,rowHeight:34,headerHeight:34,loadingOverlayComponent:Wm,animateRows:!0,getContextMenuItems:function(L){return N(L)},getRowId:function(L){return L.data.ProfileId},rowSelection:"single",onRowDoubleClicked:function(L){p(L.data),a(!0)},onGridReady:function(L){return g(L.api)}})),v.createElement(D,{container:!0,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:2,xs:12,className:e.btnModal},v.createElement(Ne,{variant:"contained",color:"primary",onClick:function(){return r(!n)},fullWidth:!0,style:{marginTop:"10px"}},"NEW PROFILE")))))),v.createElement(Ayi,{show:n,onHide:function(L){r(!1),L&&S()},suffixTitle:"Profile Management"}),v.createElement(Oyi,{show:l,profile:d,onHide:function(L){c(!1),p(null),L&&S()},suffixTitle:"Profile Management"}),v.createElement(Iyi,{show:o,profileForEdit:d,onHide:function(L){a(!1),p(null),L&&S()},suffixTitle:"Profile Management"}))},SOt=function(){return jl({queryKey:["profiles"],queryFn:function(){return yyi()}})},Nyi=function(){return v.createElement(v.Fragment,null,v.createElement(yn,{title:"Profile Management"}),v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},v.createElement(_yi,null)))},Fyi=function(e){return v.createElement(Nyi,null)},m3e={PatternStart:new Date,ShiftCodes:"",Crews:"",User:"",PatternDays:5,CrewRotation:"",Comments:"",CanEdit:!1,ShiftsPerDay:1,NumberOfCrews:1},Wyi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[MES].[GetShiftParameters]",[])];case 1:if(t=n.sent(),t.ok)return[2,At(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching shifts")}})})},AOt=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.PatternStart,a=t.ShiftCodes,s=t.Crews,l=t.CrewRotation,c=t.Comments;return xt(this,function(u){switch(u.label){case 0:return n=new Ye,r=[{name:"AssetId",value:null},{name:"PatternStart",value:o},{name:"ShiftCodes",value:a},{name:"Crews",value:s},{name:"CrewRotation",value:l},{name:"Comments",value:c}],[4,n.callV2("[MES].[UpsertShiftParameters]",r)];case 1:if(i=u.sent(),!i.ok)throw new Error(i.message||"Error when upsert shift");return[2]}})})},qyi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"AssetId",value:null}),n.push({name:"PatternStart",value:e}),[4,t.callV2("[MES].[DeleteShiftParameters]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when delete shift");return[2]}})})},Byi=Et(function(e){return{title:{fontSize:15},modalTitle:{fontSize:15,marginTop:e.spacing(1)},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"}}}),jyi=function(e){var t,n,r=e.shiftSelected,i=e.show,o=e.onHide,a=e.suffixTitle,s=v.useState(!1),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=v.useState(""),g=h[0],m=h[1],b=Byi(),y=jn({defaultValues:r||m3e}),M=y.control,C=y.handleSubmit,x=y.reset,w=y.watch,S=y.setValue,A=y.formState.errors,z=function(){return j?.length/G*100},O=ca({mutationFn:AOt,onSuccess:function(){c(!0),o(!0)},onError:function(q){m(q.message)},onSettled:function(){p(!1)}}),T=function(q){return Ct(void 0,void 0,void 0,function(){return xt(this,function($){switch($.label){case 0:return p(!0),[4,O.mutate(q)];case 1:return $.sent(),[2]}})})},R=function(q,$){$!=="clickaway"&&c(!1)},P=w("ShiftsPerDay"),F=w("ShiftCodes"),N=w("NumberOfCrews"),L=w("Crews"),W=w("PatternDays"),j=w("CrewRotation"),V=w("Comments"),G=P*W;return v.useEffect(function(){i&&(x(),S("PatternStart",new Date))},[i]),v.createElement(v.Fragment,null,i&&v.createElement(yn,{title:"New Shift/Crew".concat(a?" - ".concat(a):"")}),v.createElement(D,{container:!0},v.createElement(D,{item:!0},v.createElement(We,{title:"NEW SHIFT/CREW",open:i,handleClose:function(){return o(!1)},id:"create-shift-modal",maxWidth:"md"},v.createElement("form",{onSubmit:C(T)},v.createElement(We.Content,{style:{padding:"15px 30px 0"}},v.createElement(D,{container:!0,spacing:2},v.createElement(Ue,{name:"PatternStart",control:M,render:function(q){var $=q.field,U=$.value,X=$.onChange;return v.createElement(pZ,{utils:dZ},v.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 0"}},v.createElement(cB,{fullWidth:!0,disablePast:!0,disableToolbar:!0,variant:"inline",format:"MM/DD/yyyy",id:"date-picker-inline",style:{minWidth:"100%",borderTopLeftRadius:3,borderTopRightRadius:3},label:"Start",value:U,onChange:function(Q){return X(Q?.toDate())},KeyboardButtonProps:{"aria-label":"change date"}})),v.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 18px"}},v.createElement(fZ,{fullWidth:!0,variant:"inline",id:"time-picker",label:"Time",value:U,onChange:function(Q){return X(Q?.toDate())},KeyboardButtonProps:{"aria-label":"change time"}})))}}),v.createElement(D,{item:!0,md:6,xs:6},v.createElement(Ue,{name:"ShiftsPerDay",control:M,rules:{min:1},render:function(q){var $=q.field,U=$.onChange,X=$.value;return v.createElement(je,{label:"# ".concat(P>1?"Shifts":"Shift","  per day"),variant:"outlined",error:!!A.ShiftsPerDay,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:X,onChange:function(Q){return parseInt(Q.target.value)>=1&&parseInt(Q.target.value)<=10&&U(Q)}})}}),((t=A.ShiftsPerDay)===null||t===void 0?void 0:t.type)==="min"&&v.createElement("span",{className:b.errorLabel},"Shifts per day is required")),v.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},v.createElement(Ue,{name:"ShiftCodes",control:M,rules:{validate:function(q){return q.length==P}},render:function(q){var $=q.field,U=$.onChange,X=$.value;return v.createElement(je,{label:"Shifts Ids",variant:"outlined",error:!!A.ShiftCodes,fullWidth:!0,margin:"dense",autoComplete:"off",value:X,onChange:function(Q){Q.target.value.length<=P&&U(Q.target.value.toString().toUpperCase())}})}}),!!A.ShiftCodes&&v.createElement("span",{className:b.errorLabel},"Please put ",P," shifts"),F.length<P&&!A.ShiftCodes&&v.createElement("span",{className:b.infoLabel},"Insert: ".concat(P," ").concat(P==1?"Id":"Ids",". ").concat(P>1?"The Ids must be differents":""))),v.createElement(D,{item:!0,md:6,xs:6},v.createElement(Ue,{name:"NumberOfCrews",control:M,rules:{min:1,max:9},render:function(q){var $=q.field,U=$.onChange,X=$.value;return v.createElement(je,{label:"# ".concat(N>1?"Crews":"Crew"),variant:"outlined",error:!!A.NumberOfCrews,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",onChange:function(Q){parseInt(Q.target.value)>=1&&parseInt(Q.target.value)<=15&&U(Q)},value:X})}}),((n=A.NumberOfCrews)===null||n===void 0?void 0:n.type)==="min"&&v.createElement("span",{className:b.errorLabel},"# Crewss day is required")),v.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},v.createElement(Ue,{name:"Crews",control:M,rules:{validate:function(q){return q.length==N}},render:function(q){var $=q.field,U=$.onChange,X=$.value;return v.createElement(je,{label:"Crews Ids",variant:"outlined",error:!!A.Crews,fullWidth:!0,margin:"dense",autoComplete:"off",value:X,onChange:function(Q){Q.target.value.length<=N&&U(Q.target.value.toString().toUpperCase())}})}}),!!A.Crews&&v.createElement("span",{className:b.errorLabel},"Please put ",N," crews"),L.length<N&&!A.Crews&&v.createElement("span",{className:b.infoLabel},"Insert: ".concat(N," ").concat(N==1?"Crew":"Crews",". ").concat(N>1?"The Crews must be differents":""))),v.createElement(D,{item:!0,md:6,xs:6,style:{marginBottom:"8px"}},v.createElement(Ue,{name:"PatternDays",control:M,render:function(q){var $=q.field,U=$.value,X=$.onChange;return v.createElement(je,{label:"Rotation Pattern",variant:"outlined",error:!!A.PatternDays,fullWidth:!0,type:"number",margin:"dense",autoComplete:"off",value:U,onChange:function(Q){parseInt(Q.target.value)>=5&&parseInt(Q.target.value)<=60&&X(Q)}})}})),v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 8px"}},v.createElement(Ue,{name:"CrewRotation",control:M,rules:{validate:function(q){return q.length==G}},render:function(q){var $=q.field,U=$.value,X=$.onChange;return v.createElement(je,{value:U,onChange:function(Q){Q.target.value.length<=G&&X(Q.target.value.toString().toUpperCase())},label:"Crew rotation",variant:"outlined",fullWidth:!0,error:!!A.CrewRotation,margin:"dense",autoComplete:"off"})}}),v.createElement(D,{container:!0,style:{padding:"0",height:2}},v.createElement(D,{item:!0,style:{height:2,width:"".concat(z(),"% "),backgroundColor:"".concat(j.length==G?"#4CAF50":"#F44336"),transition:" 0.2s ease",margin:"0 5px"}})),v.createElement(D,{container:!0,style:{margin:"4px 0 0"}},v.createElement(D,{item:!0},j?.length>=1&&j?.length!==G&&v.createElement("span",{className:b.infoLabel,style:{marginLeft:5}},"".concat(j?.length,"/").concat(G)))),!!A.CrewRotation&&v.createElement("span",{className:b.errorLabel},"Please put ",G," crews"),N>0&&Number.isInteger(G/N)===!1&&v.createElement(D,{container:!0,style:{padding:"0",marginLeft:5}},v.createElement(D,{item:!0,className:b.errorLabel},"Rotation # not a multiple of Shifts (".concat(G,") / Crews (").concat(N,")")))),v.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},v.createElement(Ue,{name:"Comments",control:M,render:function(q){var $=q.field,U=$.value,X=$.onChange;return v.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Comments",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:U,onChange:function(Q){Q.target.value.length<=200&&X(Q)}})}}),v.createElement(D,{container:!0,style:{marginBottom:18}},v.createElement(D,{item:!0},V?.length>=1&&V?.length!==200&&v.createElement("span",{className:b.infoLabel,style:{marginLeft:5}},"".concat(V?.length,"/200 max.")),V?.length==200&&v.createElement("span",{className:b.infoLabel,style:{marginLeft:5}},"Max. 200")))))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return o(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:d&&v.createElement(Kt,{size:"1rem"}),disabled:d,variant:"contained",color:"primary",type:"submit"},"Save")))))))),v.createElement(yt,{error:g,onHide:function(){return m("")},title:"Error Creating Shift"}),v.createElement(pr,{open:l,autoHideDuration:2500,onClose:R},v.createElement(ph,{severity:"success",onClose:R},"The shift was created successfully")))},Hyi=Et(function(e){return{title:{fontSize:15},modalTitle:{fontSize:15,marginTop:e.spacing(1)},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"}}}),Vyi=function(e){var t,n=e.shiftSelected,r=e.show,i=e.onHide,o=e.suffixTitle,a=Hyi(),s=v.useState(!1),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=v.useState(!1),g=h[0],m=h[1],b=v.useState(""),y=b[0],M=b[1],C=jn({defaultValues:m3e}),x=C.control,w=C.setValue,S=C.reset,A=C.watch,z=C.formState.errors,O=ca({mutationFn:qyi,onSuccess:function(){c(!0),i(!0)},onError:function(V){M(V.message)},onSettled:function(){p(!1),m(!1)}}),T=function(V){return Ct(void 0,void 0,void 0,function(){return xt(this,function(G){switch(G.label){case 0:return p(!0),[4,O.mutate(V)];case 1:return G.sent(),[2]}})})},R=function(V,G){G!=="clickaway"&&(c(!1),m(!1))},P=A("PatternStart"),F=A("ShiftsPerDay"),N=A("CrewRotation"),L=A("NumberOfCrews"),W=A("Crews"),j=A("PatternDays");return v.useEffect(function(){var V,G,q,$,U,X;r&&(S(),w("PatternStart",(V=n?.PatternStart)!==null&&V!==void 0?V:new Date),w("ShiftCodes",(G=n?.ShiftCodes)!==null&&G!==void 0?G:""),w("Crews",(q=n?.Crews)!==null&&q!==void 0?q:""),w("PatternDays",($=n?.PatternDays)!==null&&$!==void 0?$:0),w("CrewRotation",(U=n?.CrewRotation)!==null&&U!==void 0?U:""),w("Comments",(X=n?.Comments)!==null&&X!==void 0?X:""))},[r]),v.createElement(v.Fragment,null,r&&v.createElement(yn,{title:"Delete Shift".concat(o?" - ".concat(o):"")}),v.createElement(D,{container:!0},v.createElement(D,{item:!0},v.createElement(We,{title:"DELETE SHIFT",open:r,handleClose:function(){return i(!1)},id:"delete-shift-MesfModal",maxWidth:"md"},v.createElement("form",null,v.createElement(We.Content,{style:{padding:"15px 30px 0"}},v.createElement(D,{container:!0,spacing:2},v.createElement(Ue,{name:"PatternStart",control:x,render:function(V){var G=V.field,q=G.value,$=G.onChange;return v.createElement(pZ,{utils:dZ},v.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 0"}},v.createElement(cB,{fullWidth:!0,disableToolbar:!0,variant:"inline",format:"MM/DD/yyyy",id:"date-picker-inline",style:{minWidth:"100%",borderTopLeftRadius:3,borderTopRightRadius:3},label:"Start",value:q,disabled:!!n,onChange:function(U){return $(U?.toDate())},KeyboardButtonProps:{"aria-label":"change date"}})),v.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 18px"}},v.createElement(fZ,{fullWidth:!0,variant:"inline",id:"time-picker",label:"Time",value:q,disabled:!!n,onChange:function(U){return $(U?.toDate())},KeyboardButtonProps:{"aria-label":"change time"}})))}}),v.createElement(D,{item:!0,md:6,xs:6},v.createElement(Ue,{name:"ShiftsPerDay",control:x,rules:{min:1},render:function(V){var G=V.field;return G.onChange,G.value,v.createElement(je,{label:"# ".concat(F>1?"Shifts":"Shift","  per day"),variant:"outlined",error:!!z.ShiftsPerDay,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:N.length/j,disabled:!!n})}}),((t=z.ShiftsPerDay)===null||t===void 0?void 0:t.type)==="min"&&v.createElement("span",{className:a.errorLabel},"Shifts per day is required")),v.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},v.createElement(Ue,{name:"ShiftCodes",control:x,render:function(V){var G=V.field.value;return v.createElement(je,{label:"Shifts Ids",variant:"outlined",error:!!z.ShiftCodes,fullWidth:!0,margin:"dense",autoComplete:"off",value:G,disabled:!!n})}})),v.createElement(D,{item:!0,md:6,xs:6},v.createElement(Ue,{name:"NumberOfCrews",control:x,rules:{min:1,max:9},render:function(V){return V.field.value,v.createElement(je,{label:"# ".concat(L>1?"Crews":"Crew"),variant:"outlined",error:!!z.NumberOfCrews,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:W.length,disabled:!!n})}})),v.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},v.createElement(Ue,{name:"Crews",control:x,render:function(V){var G=V.field.value;return v.createElement(je,{label:"Crews Ids",variant:"outlined",error:!!z.Crews,fullWidth:!0,margin:"dense",autoComplete:"off",value:G,disabled:!!n})}})),v.createElement(D,{item:!0,md:6,xs:6},v.createElement(Ue,{name:"PatternDays",control:x,render:function(V){var G=V.field.value;return v.createElement(je,{label:"Rotation Pattern",variant:"outlined",error:!!z.PatternDays,fullWidth:!0,type:"number",margin:"dense",autoComplete:"off",value:G,disabled:!!n})}})),v.createElement(D,{item:!0,md:12,xs:12},v.createElement(Ue,{name:"CrewRotation",control:x,render:function(V){var G=V.field,q=G.value;return G.onChange,v.createElement(je,{label:"Crew rotation",variant:"outlined",fullWidth:!0,margin:"dense",autoComplete:"off",value:q,disabled:!!n})}})),v.createElement(D,{item:!0,md:12,xs:12},v.createElement(Ue,{name:"Comments",control:x,render:function(V){var G=V.field,q=G.value;return G.onChange,v.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Comments",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:q,disabled:!!n})}})))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return i(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:d&&v.createElement(Kt,{size:"1rem"}),disabled:d||(n?new Date(n.PatternStart)<new Date&&!0:!1),variant:"contained",color:"secondary",onClick:function(){return m(!0)}},"Delete"),n&&new Date(n?.PatternStart)<new Date&&v.createElement(D,{item:!0},v.createElement("span",{className:a.errorLabel,style:{fontSize:10}},"Can not delete before the current date"))))),v.createElement(Qu,{open:g,onClose:function(){return R()},"aria-labelledby":"responsive-dialog-title"},v.createElement(T0,{id:"responsive-dialog-title"},"WARNING"),v.createElement(ru,null,v.createElement(mM,{style:{padding:0,margin:0}},"Be careful, once deleted you will not be able to recover this shift, are you sure you want to delete it?")),v.createElement(Ed,{style:{padding:"16px 24px"}},v.createElement(Ne,{onClick:function(){return m(!1)},autoFocus:!0,color:"default"},"CANCEL"),v.createElement(Ne,{startIcon:d&&v.createElement(Kt,{size:"1rem"}),autoFocus:!0,color:"secondary",onClick:function(){return T(P)}},"Delete"))))))),v.createElement(yt,{error:y,onHide:function(){return M("")}}),v.createElement(pr,{open:l,autoHideDuration:2500,onClose:R},v.createElement(ph,{severity:"warning",onClose:R},"The shift was deleted successfully")))},Gyi=Et(function(e){return{title:{fontSize:15},modalTitle:{fontSize:15,marginTop:e.spacing(1)},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"}}}),$yi=function(e){var t,n=e.shiftSelected,r=e.show,i=e.onHide,o=e.suffixTitle,a=Gyi(),s=v.useState(!1),l=s[0],c=s[1],u=v.useState(""),d=u[0],p=u[1],h=v.useState(!1),g=h[0],m=h[1],b=v.useState(!1),y=b[0],M=b[1],C=jn({defaultValues:m3e}),x=C.control,w=C.setValue,S=C.handleSubmit,A=C.reset,z=C.watch,O=C.formState.errors,T=function(){return q?.length/$*100},R=ca({mutationFn:AOt,onSuccess:function(){c(!0),i(!0)},onError:function(U){p(U.message)},onSettled:function(){m(!1)}}),P=function(U){return Ct(void 0,void 0,void 0,function(){return xt(this,function(X){switch(X.label){case 0:return m(!0),[4,R.mutate(U)];case 1:return X.sent(),[2]}})})},F=function(U,X){X!=="clickaway"&&c(!1)},N=z("ShiftsPerDay"),L=z("ShiftCodes"),W=z("NumberOfCrews"),j=z("Crews"),V=z("PatternDays"),G=z("Comments"),q=z("CrewRotation"),$=N*V;return v.useEffect(function(){var U,X,Q,re,ee,se;r&&(A(),w("PatternStart",(U=n?.PatternStart)!==null&&U!==void 0?U:new Date),w("ShiftCodes",(X=n?.ShiftCodes)!==null&&X!==void 0?X:""),w("Crews",(Q=n?.Crews)!==null&&Q!==void 0?Q:""),w("PatternDays",(re=n?.PatternDays)!==null&&re!==void 0?re:0),w("CrewRotation",(ee=n?.CrewRotation)!==null&&ee!==void 0?ee:""),w("Comments",(se=n?.Comments)!==null&&se!==void 0?se:""),M(!y))},[r]),v.useEffect(function(){w("ShiftsPerDay",q.length/V),w("NumberOfCrews",j.length)},[y]),v.createElement(v.Fragment,null,r&&v.createElement(yn,{title:"Edit Shift".concat(o?" - ".concat(o):"")}),v.createElement(D,{container:!0},v.createElement(D,{item:!0},v.createElement(We,{title:"EDIT SHIFT",open:r,handleClose:function(){return i(!1)},id:"edit-shift-modal",maxWidth:"md"},v.createElement("form",{onSubmit:S(P)},v.createElement(We.Content,{style:{padding:"15px 30px 0"}},v.createElement(D,{container:!0,spacing:2},v.createElement(Ue,{name:"PatternStart",control:x,render:function(U){var X=U.field,Q=X.value,re=X.onChange;return v.createElement(pZ,{utils:dZ},v.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 0"}},v.createElement(cB,{fullWidth:!0,disablePast:!0,disableToolbar:!0,variant:"inline",format:"MM/DD/yyyy",id:"date-picker-inline",style:{minWidth:"100%",borderTopLeftRadius:3,borderTopRightRadius:3},label:"Start",value:Q,onChange:function(ee){return re(ee?.toDate())},KeyboardButtonProps:{"aria-label":"change date"}})),v.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 18px"}},v.createElement(fZ,{fullWidth:!0,variant:"inline",id:"time-picker",label:"Time",value:Q,onChange:function(ee){return re(ee?.toDate())},KeyboardButtonProps:{"aria-label":"change time"}})))}}),v.createElement(D,{item:!0,md:6,xs:6},v.createElement(Ue,{name:"ShiftsPerDay",control:x,rules:{min:1},render:function(U){var X=U.field,Q=X.onChange,re=X.value;return v.createElement(je,{label:"# ".concat(N>1?"Shifts":"Shift","  per day"),variant:"outlined",error:!!O.ShiftsPerDay,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:re,onChange:function(ee){return parseInt(ee.target.value)>=1&&parseInt(ee.target.value)<=10&&Q(ee)}})}})),v.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},v.createElement(Ue,{name:"ShiftCodes",control:x,rules:{validate:function(U){return U.length==N}},render:function(U){var X=U.field,Q=X.onChange,re=X.value;return v.createElement(je,{label:"Shifts Ids",variant:"outlined",error:!!O.ShiftCodes,fullWidth:!0,margin:"dense",autoComplete:"off",value:re,onChange:function(ee){ee.target.value.length<=N&&Q(ee.target.value.toString().toUpperCase())}})}}),!!O.ShiftCodes&&v.createElement("span",{className:a.errorLabel},"Please put ",N," shifts"),L.length<N&&!O.ShiftCodes&&v.createElement("span",{className:a.infoLabel},"Insert: ".concat(N," ").concat(N==1?"Id":"Ids",". ").concat(N>1?"The Ids must be differents":""))),v.createElement(D,{item:!0,md:6,xs:6},v.createElement(Ue,{name:"NumberOfCrews",control:x,rules:{min:1,max:9},render:function(U){var X=U.field,Q=X.onChange,re=X.value;return v.createElement(je,{label:"# ".concat(W>1?"Crews":"Crew"),variant:"outlined",error:!!O.NumberOfCrews,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:re,onChange:function(ee){parseInt(ee.target.value)>=1&&parseInt(ee.target.value)<=9&&Q(ee)}})}}),((t=O.NumberOfCrews)===null||t===void 0?void 0:t.type)==="min"&&v.createElement("span",{className:a.errorLabel},"# Crewss day is required")),v.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},v.createElement(Ue,{name:"Crews",control:x,rules:{validate:function(U){return U.length==W}},render:function(U){var X=U.field,Q=X.onChange,re=X.value;return v.createElement(je,{label:"Crews Ids",variant:"outlined",error:!!O.Crews,disabled:W<=0,fullWidth:!0,margin:"dense",autoComplete:"off",value:re,onChange:function(ee){ee.target.value.length<=W&&Q(ee.target.value.toString().toUpperCase())}})}}),!!O.Crews&&v.createElement("span",{className:a.errorLabel},"Please put ",W," crews"),j.length<W&&!O.Crews&&v.createElement("span",{className:a.infoLabel},"Insert: ".concat(W," ").concat(W==1?"Crew":"Crews",". ").concat(W>1?"The Crews must be differents":""))),v.createElement(D,{item:!0,md:6,xs:6},v.createElement(Ue,{name:"PatternDays",control:x,render:function(U){var X=U.field,Q=X.value,re=X.onChange;return v.createElement(je,{label:"Rotation Pattern",variant:"outlined",error:!!O.PatternDays,fullWidth:!0,type:"number",margin:"dense",autoComplete:"off",value:Q,onChange:function(ee){parseInt(ee.target.value)>=5&&parseInt(ee.target.value)<=60&&re(ee)}})}})),v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 8px"}},v.createElement(Ue,{name:"CrewRotation",control:x,rules:{validate:function(U){return U.length==$}},render:function(U){var X=U.field,Q=X.value,re=X.onChange;return v.createElement(je,{value:Q,onChange:function(ee){ee.target.value.length<=$&&re(ee.target.value.toString().toUpperCase())},error:!!O.CrewRotation,label:"Crew rotation",variant:"outlined",fullWidth:!0,margin:"dense",autoComplete:"off"})}}),v.createElement(D,{container:!0,style:{padding:"0",height:2}},v.createElement(D,{item:!0,style:{height:2,width:"".concat(T(),"% "),backgroundColor:"".concat(q.length==$?"#4CAF50":"#F44336"),transition:" 0.2s ease",margin:"0 5px"}})),v.createElement(D,{container:!0,style:{margin:"4px 0 0"}},v.createElement(D,{item:!0},q?.length>=1&&q?.length!==$&&v.createElement("span",{className:a.infoLabel,style:{marginLeft:5}},"".concat(q?.length,"/").concat($)))),!!O.CrewRotation&&v.createElement("span",{className:a.errorLabel},"Please put ",$," crews"),W>0&&Number.isInteger($/W)===!1&&v.createElement(D,{container:!0,style:{padding:"0",marginLeft:5}},v.createElement(D,{item:!0,className:a.errorLabel},"Rotation # not a multiple of Shifts (".concat($,") / Crews (").concat(W,")")))),v.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},v.createElement(Ue,{name:"Comments",control:x,render:function(U){var X=U.field,Q=X.value,re=X.onChange;return v.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Comments",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:Q,onChange:function(ee){ee.target.value.length<=200&&re(ee)}})}}),v.createElement(D,{container:!0,style:{marginBottom:18}},v.createElement(D,{item:!0},G?.length>=1&&G?.length!==200&&v.createElement("span",{className:a.infoLabel,style:{marginLeft:5}},"".concat(G?.length,"/200")),G?.length==200&&v.createElement("span",{className:a.infoLabel,style:{marginLeft:5}},"Max. 200")))))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return i(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:g&&v.createElement(Kt,{size:"1rem"}),disabled:g,variant:"contained",color:"primary",type:"submit"},"Save")))))))),v.createElement(yt,{error:d,onHide:function(){return p("")}}),v.createElement(pr,{open:l,autoHideDuration:2500,onClose:F},v.createElement(ph,{severity:"success",onClose:F},"The shift was created successfully")))},Uyi=function(e){var t=e.setShiftId,n=e.setShowDeleteModal,r=e.setShowCreateModal,i=e.setShowEditModal,o=function(a){var s=[];return a?s=s.concat([{name:"New Shift",key:"new_shift",onClick:function(){r(!0)},icon:E.createElement(Jo,null)},{name:"Edit Shift",key:"edit_shift",onClick:function(){t(a),i(!0)},icon:E.createElement(Fo,null)},{name:"Delete Shift",key:"delete_shift",onClick:function(){t(a),n(!0)},icon:E.createElement(Mo,null)}]):s=s.concat([{name:"New Shift",key:"new_shift",onClick:function(){r(!0)},icon:E.createElement(Jo,null)}]),s};return{getMenuOptions:o}},Xyi=Et(function(e){return{root:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}}}),Yyi=function(e){var t=e.setShiftSelected,n=e.setOpenModalEditShift,r=e.setOpenModalDeleteShift,i=e.showContextMenu,o=Xyi(),a=[{field:"PatternStart",headerName:"Pattern Start",valueFormatter:function(s){var l=s.value;return"".concat(mt(l).format("L"),", ").concat(mt(l).format("LTS"))},minWidth:180,flex:4,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"ShiftCodes",headerName:"Shift Codes",minWidth:150,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"Crews",headerName:"Crews",minWidth:150,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{sortable:!1,field:"PatternDays",headerName:"Shifts",minWidth:130,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{cellRenderer:function(s){return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.root},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Ne,{style:{},onClick:function(){t(s?.data),n(!0)}},E.createElement(Fo,{color:"primary"})),E.createElement(Ne,{style:{},onClick:function(){t(s?.data),r(!0)}},E.createElement(Mo,{color:"secondary"})),E.createElement(Ne,{style:{},onClick:function(l){return i(l,s.data,"TableShifts")}},E.createElement(Kf,{color:"action"}))))},field:"",flex:3,minWidth:240,editable:!1,autoHeight:!1,suppressNavigable:!0}];return{columnDefs:a}},Kyi=Et(function(e){return{btnModal:{display:"flex",justifyContent:"flex-end"}}}),Qyi=function(){var e=Kyi(),t=v.useRef(null),n=v.useState("");n[0];var r=n[1],i=v.useState(!1),o=i[0],a=i[1],s=v.useState(!1),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=v.useState(null),g=h[0],m=h[1],b=Zyi(),y=b.data,M=b.isLoading,C=b.isError,x=b.error,w=b.refetch,S=y?.map(function(N){var L=N.PatternStart,W=N.ShiftCodes,j=N.Crews,V=N.PatternDays,G=N.CrewRotation,q=N.Comments,$=N.CanEdit;return{id:W,PatternStart:L,ShiftCodes:W,Crews:j,PatternDays:V,CrewRotation:G,Comments:q,CanEdit:$}}),A=v.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),z=Uyi({setShiftId:m,setShowCreateModal:a,setShowDeleteModal:p,setShowEditModal:c}).getMenuOptions,O=ws(),T=O.showContextMenu,R=O.registerConfig,P=Yyi({setShiftSelected:m,setOpenModalEditShift:c,setOpenModalDeleteShift:p,showContextMenu:T}).columnDefs,F=function(N){var L,W,j=(L=N.node)===null||L===void 0?void 0:L.data;return N.api.deselectAll(),(W=N.node)===null||W===void 0||W.setSelected(!0),T(event,j,"TableShifts"),[]};return v.useEffect(function(){R({id:"TableShifts",getOptions:z})},[]),v.useEffect(function(){x&&C&&r(x.message)},[x,C]),v.createElement(v.Fragment,null,v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},v.createElement(vt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"Shifts / Crew")),v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},v.createElement(D,{component:Pt,item:!0,md:12,xs:12,style:{height:"70vh"}},v.createElement($n,{loading:M,gridOptions:{theme:Bw},ref:t,rowData:S||[],columnDefs:P,defaultColDef:A,rowHeight:34,headerHeight:34,animateRows:!0,loadingOverlayComponent:Wm,getContextMenuItems:function(N){return F(N)},rowSelection:"single",onRowDoubleClicked:function(N){m(N.data),c(!0)}})),v.createElement(D,{container:!0,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:2,xs:12,className:e.btnModal},v.createElement(Ne,{variant:"contained",color:"primary",onClick:function(){return a(!o)},fullWidth:!0,style:{marginTop:10}},"NEW SHIFT")))))),v.createElement(jyi,{shiftSelected:g,show:o,onHide:function(N){a(!1),N&&w()},suffixTitle:"Shifts / Crew"}),v.createElement($yi,{shiftSelected:g,show:l,onHide:function(N){c(!1),N&&w()},suffixTitle:"Shifts / Crew"}),v.createElement(Vyi,{shiftSelected:g,show:d,onHide:function(N){p(!1),N&&w()},suffixTitle:"Shifts / Crew"}))},Zyi=function(){return jl({queryKey:["shifts"],queryFn:function(){return Wyi()}})},Jyi=function(){return v.createElement(v.Fragment,null,v.createElement(yn,{title:"Shifts and Crews"}),v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},v.createElement(Qyi,null)))},eMi=function(e){return v.createElement(Jyi,null)},tMi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[MES].[GetAssets]",[])];case 1:if(t=n.sent(),t.ok)return[2,At(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching assets")}})})},nMi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[UTL].[GetSettings]",[])];case 1:if(t=n.sent(),t.ok)return[2,At(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching settings")}})})},rMi=function(e,t){return Ct(void 0,void 0,void 0,function(){var n,r,i;return xt(this,function(o){switch(o.label){case 0:return n=new Ye,r=[],r.push({name:"UserId",value:e}),r.push({name:"DefaultAssetId",value:t}),[4,n.callV2("[SEC].[UpsertDefaultAssetId]",r)];case 1:return i=o.sent(),[2,i]}})})},iMi=function(e){var t={id:e.AssetId,parent:e.ParentAssetId===null?-1:e.ParentAssetId,text:e.AssetName,isAtTop:!1,isAtBottom:!1,sortOrder:null,data:{fileType:"csv",fileSize:""},droppable:e.IsBranch,isEditable:!0};return t},oMi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.AssetIds,a=t.ParentAssetId;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"AssetIds",value:o.join(",")},{name:"ParentAssetId",value:a}],[4,n.callV2("[MES].[UpdateParentAssetId]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when drag asset");return[2]}})})},aMi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.AssetName,a=t.ParentAssetId,s=t.CanBeDefaultAsset;return xt(this,function(l){switch(l.label){case 0:return n=new Ye,r=[{name:"AssetName",value:o},{name:"ParentAssetId",value:a},{name:"CanBeDefaultAsset",value:s}],[4,n.callV2("[MES].[InsertAsset]",r)];case 1:if(i=l.sent(),!i.ok)throw new Error(i.message||"Error when create asset");return[2]}})})},sMi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.AssetId,a=t.AssetName,s=t.ParentAssetId,l=t.IsAsset,c=t.CanBeDefaultAsset;return xt(this,function(u){switch(u.label){case 0:return n=new Ye,r=[{name:"AssetId",value:o},{name:"AssetName",value:a},{name:"ParentAssetId",value:s},{name:"IsAsset",value:l},{name:"CanBeDefaultAsset",value:c}],[4,n.callV2("[MES].[UpdateAssetData]",r)];case 1:if(i=u.sent(),!i.ok)throw new Error(i.message||"Error when upsert asset");return[2]}})})},lMi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.AssetId,a=t.IsActive;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"AssetId",value:o},{name:"IsActive",value:a}],[4,n.callV2("[MES].[RemoveAsset]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when delete asset");return[2]}})})},cMi=function(e){var t=e.asset,n=e.selectedNodes,r=e.setSelectedNodes,i=e.isCtrlPressing,o=e.setIsDragging,a=e.setIsCtrlPressing,s=e.onAssetUpdateEnd;v.useEffect(function(){var m=function(y){y.key.toLowerCase()==="escape"?r([]):(y.ctrlKey||y.metaKey)&&a(!0)},b=function(y){(y.key.toLowerCase()==="control"||y.key.toLowerCase()==="meta")&&a(!1)};return window.addEventListener("keydown",m),window.addEventListener("keyup",b),function(){window.removeEventListener("keydown",m),window.removeEventListener("keyup",b)}},[]);var l=ca({mutationFn:oMi,onSuccess:function(){r([]),s({ok:!0})},onError:function(m){s({ok:!1,message:m.message})}}),c=function(m,b){return Ct(void 0,void 0,void 0,function(){var y;return xt(this,function(M){switch(M.label){case 0:return y=b.dropTargetId,y===-1||y===null||y===void 0?(s({ok:!1,message:"Cannot move assets to root level. Only one root asset (Plant) is allowed."}),[2]):[4,l.mutate({AssetIds:n.map(function(C){return C.id}),ParentAssetId:y})];case 1:return M.sent(),[2]}})})},u=function(m){r([m])},d=function(m){var b=n.map(function(M){return M.id});if(!b.includes(m.id)&&!b.some(function(M){return IP(t,M,m.id)})){var y=xi([],n,!0);y=y.filter(function(M){return!IP(t,m.id,M.id)}),y=xi(xi([],y,!0),[m],!1),r(y)}},p=function(m,b){m.ctrlKey||m.metaKey?d(b):u(b)},h=function(m){var b=n.some(function(y){return y.id===m.id});if(o(!0),!(!i&&b)){if(!i){r([m]);return}n.some(function(y){return y.id===m.id})||r(xi(xi([],n,!0),[m],!1))}},g=function(){o(!1),a(!1)};return{handleDrop:c,handleCtrlClick:p,handleDragEnd:g,handleDragStart:h}},uMi=function(e){var t=e.assetNodes,n=e.externalSearchTerm,r=e.onSearchTermChange,i=v.useState(n||""),o=i[0],a=i[1],s=v.useState([]),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=v.useState(-1),g=h[0],m=h[1],b=v.useRef(null),y=v.useRef([]),M=v.useMemo(function(){var O=[],T=new Map;t.forEach(function(P){P.id!==void 0&&P.id!==null&&T.set(P.id,P)});var R=function(P){for(var F=[],N=T.get(P);N&&N.parent!==-1;)F.unshift(N.text),N=T.get(N.parent);return N&&N.parent===-1&&F.unshift(N.text),F};return t.forEach(function(P){if(!(P.id===void 0||P.id===null||!P.text)){var F=R(P.id),N=F.join(" > "),L=t.some(function(W){return W.parent===P.id});O.push({id:P.id,name:P.text,path:N,isDroppable:P.droppable||!1,hasChildren:L,node:P})}}),O},[t]),C=function(O){var T=O.toLowerCase();return M.filter(function(R){return R.name.toLowerCase().includes(T)})};E.useEffect(function(){n!==void 0&&n!==o&&a(n)},[n]);var x=function(O){var T=O.target.value;if(a(T),r?.(T),b.current&&clearTimeout(b.current),T.trim()===""||T.length<2){c([]),p(!1),m(-1);return}b.current=setTimeout(function(){var R=C(T);c(R),p(R.length>0);var P=R.length>0?0:-1;m(P),y.current=new Array(R.length).fill(null)},250)},w=function(O){if(O.key==="Escape"){d&&(a(""),c([]),p(!1),m(-1));return}if(d&&l.length>0){if(O.key==="ArrowDown"){O.preventDefault();var T=g<l.length-1?g+1:0;m(T),setTimeout(function(){return S(T)},0)}else if(O.key==="ArrowUp"){O.preventDefault();var R=g>0?g-1:l.length-1;m(R),setTimeout(function(){return S(R)},0)}else if(O.key==="Enter"&&g>=0){O.preventDefault();var P=l[g];return P}}},S=function(O){var T;y.current[O]&&((T=y.current[O])===null||T===void 0||T.scrollIntoView({behavior:"smooth",block:"nearest"}))},A=function(){a(""),c([]),p(!1),m(-1),r?.("")},z=function(O){if(a(O),r?.(O),b.current&&clearTimeout(b.current),O.trim()===""||O.length<2){c([]),p(!1),m(-1);return}b.current=setTimeout(function(){var T=C(O);c(T),p(T.length>0);var R=T.length>0?0:-1;m(R),y.current=new Array(T.length).fill(null)},250)};return{searchTerm:o,searchResults:l,showSearchResults:d,focusedSearchIndex:g,searchResultsRefs:y,handleSearchChange:x,handleKeyDown:w,scrollFocusedItemIntoView:S,clearSearch:A,triggerSearch:z}},dMi=function(e){var t=e.assetNodes,n=e.onSearchResultClick,r=v.useRef(null),i=v.useState(null),o=i[0],a=i[1],s=uMi({assetNodes:t}),l=s.searchTerm,c=s.searchResults,u=s.showSearchResults,d=s.focusedSearchIndex,p=s.searchResultsRefs,h=s.handleSearchChange,g=s.handleKeyDown,m=s.clearSearch,b=function(x){n(x),m(),a(null)},y=function(x){var w=g(x);w&&b(w)},M=function(x){h(x),!o&&r.current&&a(r.current)},C=function(){a(null)};return E.createElement("div",{onKeyDown:y,style:{marginBottom:16}},E.createElement(je,{placeholder:"Search assets (min. 2 characters)...",variant:"outlined",size:"small",fullWidth:!0,value:l,onChange:M,inputRef:r,InputProps:{startAdornment:E.createElement(ac,{position:"start"},E.createElement(N3,{color:"action"}))}}),E.createElement(A3,{open:u&&!!o,anchorEl:o,onClose:C,disableAutoFocus:!0,disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{width:o?.offsetWidth,maxHeight:300}}},E.createElement(LMe,{dense:!0},c.map(function(x,w){return E.createElement(lr,{key:x.id,ref:function(S){p.current&&(p.current[w]=S)},selected:w===d,onClick:function(){return b(x)}},E.createElement($0,null,x.hasChildren||x.isDroppable?E.createElement(ite,{color:"primary",fontSize:"small"}):E.createElement(Vxe,{color:"primary",fontSize:"small"})),E.createElement(ia,{primary:x.name,secondary:x.path,secondaryTypographyProps:{variant:"caption",color:"textSecondary",style:{fontStyle:"italic"}}}))}))))},pMi=function(e){var t=e.reduce(function(r,i,o){return r[i.id]=o,r},{}),n;return e.forEach(function(r){if(r.parentId===null){n=r;return}var i=e[t[r.parentId]];i&&(i.children=xi(xi([],i?.children||[],!0),[r],!1))}),n},ute=function(e){var t=e.label,n=t===void 0?"Asset":t,r=e.value,i=e.onChange,o=e.disabled,a=e.fieldError,s=e.filterAssets,l=s===void 0?!1:s,c=v.useState(""),u=c[0],d=c[1],p=Pk(),h=p.data,g=p.isLoading,m=p.error,b=p.isError,y=(Array.isArray(h)?h:[]).filter(function(C){return!l||C.CanBeDefaultAsset}).map(function(C){return{id:C.AssetId,parentId:C.ParentAssetId,name:C.AssetName,isLeaf:C.IsLeaf,isActive:!0,children:[]}}),M=pMi(y||[]);return v.useEffect(function(){m&&b&&d(m.message)},[m,b]),g||M==null?E.createElement(je,{disabled:!0,label:"Code",variant:"outlined",fullWidth:!0,size:"small",InputProps:{endAdornment:E.createElement(Kt,{color:"inherit",size:20})}}):E.createElement(E.Fragment,null,E.createElement(ja,{error:!!a,fullWidth:!0},E.createElement(f3e,{inputTitle:n,title:n,dataSource:M,value:r||0,onSelect:function(C){i(C)},allowSearch:!0,selectBranch:!0,selectActive:!1,selectInternal:!1,disabled:o}),a&&E.createElement(oQ,null,a.message)),E.createElement(yt,{error:u,onHide:function(){return d("")}}))},KX={AssetId:0,AssetName:"",CanBeDefaultAsset:!1,ParentAssetId:0,IsAsset:!1,IsLeaf:null,ParentAssetName:"",IsBranch:!1},hMi=Et(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"}},checkbox:{userSelect:"none"}}}),fMi=function(e){var t=e.assetNodeSelectedInTree,n=e.show,r=e.onHide,i=e.suffixTitle,o=hMi(),a=v.useState(!1),s=a[0],l=a[1],c=v.useState(""),u=c[0],d=c[1],p=v.useState(!1),h=p[0],g=p[1],m=Pk(),b=m.data,y=m.isLoading,M=m.isError,C=m.error,x=m.isSuccess,w=jn({defaultValues:KX}),S=w.control,A=w.handleSubmit,z=w.reset,O=w.setValue,T=function(N,L){L!=="clickaway"&&l(!1)},R=ca({mutationFn:aMi,onSuccess:function(){l(!0),r(!0)},onError:function(N){d(N.message)},onSettled:function(){g(!1)}}),P=function(N){return Ct(void 0,void 0,void 0,function(){return xt(this,function(L){switch(L.label){case 0:return g(!0),[4,R.mutate({AssetName:N.AssetName,ParentAssetId:N.ParentAssetId,CanBeDefaultAsset:N.CanBeDefaultAsset})];case 1:return L.sent(),[2]}})})},F=A(P);return v.useEffect(function(){var N;if(n)if(z(KX),t?.id)O("ParentAssetId",t?.id);else{var L=(N=b?.find(function(W){return W.ParentAssetId===null}))===null||N===void 0?void 0:N.AssetId;O("ParentAssetId",L??null)}},[n,t,x]),v.useEffect(function(){C&&M&&d(C.message)},[C,M]),E.createElement(E.Fragment,null,n&&E.createElement(yn,{title:"New Asset".concat(i?" - ".concat(i):"")}),E.createElement(Qu,{fullWidth:!0,maxWidth:"sm",open:n,onClose:function(){return r(!1)},disableEnforceFocus:!0,className:o.root},y?E.createElement("div",{style:{minHeight:300,alignItems:"center",display:"flex"}},E.createElement(Wm,null)):E.createElement("form",{onSubmit:F},E.createElement(D,{container:!0,style:{padding:"15px 0 20px",height:"50%"}},E.createElement(D,{container:!0,item:!0},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(vt,{style:{padding:"0 24px 12px",fontSize:25}},"NEW ASSET"))),E.createElement(D,{container:!0,style:{alignItems:"center"}},E.createElement(ru,{dividers:!0,style:{padding:"10px 24px 0"}},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(Ue,{name:"AssetName",control:S,rules:{validate:{notEmpty:function(N){return N.trim()!==""}}},render:function(N){var L=N.field,W=L.onChange,j=L.value,V=N.fieldState.error;return E.createElement(E.Fragment,null,E.createElement(je,{label:"Asset Name",variant:"outlined",error:!!V,helperText:V?.message,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:W,value:j}))}})),E.createElement(D,{container:!0},E.createElement(D,{item:!0,md:12,xs:12,style:{marginBottom:"8px"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:0,marginTop:10}},E.createElement(Ue,{name:"ParentAssetId",control:S,render:function(N){var L=N.field,W=N.fieldState.error;return E.createElement(ute,{label:"Parent",value:L.value,onChange:L.onChange,fieldError:W})}}))),E.createElement(D,{container:!0,style:{marginTop:"10px 0",padding:"0"}},E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"CanBeDefaultAsset",control:S,defaultValue:!1,render:function(N){var L=N.field;return E.createElement(So,{className:o.checkbox,control:E.createElement(Qr,{checked:L.value,onChange:function(W){return L.onChange(W.target.checked)},name:"CanBeDefaultAsset",color:"primary"}),label:"Can be Default Asset"})}}))))),E.createElement(D,{item:!0,md:12,xs:12,style:{marginTop:"15px"}},E.createElement(Ed,{style:{padding:"0px 24px"}},E.createElement(D,{container:!0,justifyContent:"flex-end",style:{margin:0}},E.createElement(D,{container:!0,item:!0,style:{marginLeft:"auto",marginTop:5,marginBottom:0}},E.createElement(D,{item:!0,md:6,xs:12,style:{paddingLeft:"0",paddingRight:"16px"}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Ne,{fullWidth:!0,startIcon:h&&E.createElement(Kt,{size:"1rem"}),disabled:h,variant:"contained",color:"primary",type:"submit"},"Save")))))))))),E.createElement(yt,{error:u,onHide:function(){return d("")}}),E.createElement(pr,{open:s,autoHideDuration:2500,onClose:T},E.createElement(Pr,{severity:"info",onClose:T},"Document created successfully")))},gMi=Et(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"}},checkbox:{userSelect:"none"}}}),mMi=function(e){var t=e.selectedAssetId,n=e.show,r=e.onHide,i=e.suffixTitle,o=gMi(),a=v.useState(!1),s=a[0],l=a[1],c=v.useState(""),u=c[0],d=c[1],p=v.useState(!1),h=p[0],g=p[1],m=Pk(),b=m.data,y=m.isLoading,M=m.isError,C=m.error,x=m.isSuccess,w=b&&b.length>0?b.find(function(L){return L.AssetId===t}):null,S=jn({defaultValues:w||KX}),A=S.control,z=S.reset,O=S.setValue,T=S.handleSubmit,R=function(L,W){W!=="clickaway"&&l(!0)},P=ca({mutationFn:sMi,onSuccess:function(){l(!0),r(!0)},onError:function(L){d(L.message)},onSettled:function(){g(!1)}}),F=function(L){return Ct(void 0,void 0,void 0,function(){return xt(this,function(W){switch(W.label){case 0:return g(!0),[4,P.mutate({AssetId:t,AssetName:L.AssetName,ParentAssetId:L.ParentAssetId,IsAsset:L.IsAsset,CanBeDefaultAsset:L.CanBeDefaultAsset})];case 1:return W.sent(),[2]}})})},N=T(F);return v.useEffect(function(){var L,W,j,V;n&&(z(),O("AssetName",(L=w?.AssetName)!==null&&L!==void 0?L:""),O("ParentAssetId",(W=w?.ParentAssetId)!==null&&W!==void 0?W:null),O("IsBranch",(j=w?.IsBranch)!==null&&j!==void 0?j:!1),O("CanBeDefaultAsset",(V=w?.CanBeDefaultAsset)!==null&&V!==void 0?V:!1))},[n,t,x]),v.useEffect(function(){C&&M&&d(C.message)},[C,M]),E.createElement(E.Fragment,null,n&&E.createElement(yn,{title:"Edit Asset".concat(i?" - ".concat(i):"")}),E.createElement(Qu,{fullWidth:!0,maxWidth:"sm",open:n,onClose:function(){return r(!1)},disableEnforceFocus:!0,className:o.root},y?E.createElement("div",{style:{minHeight:300,alignItems:"center",display:"flex"}},E.createElement(Wm,null)):E.createElement("form",{onSubmit:N},E.createElement(D,{container:!0,style:{padding:"15px 0 20px",height:"50%"}},E.createElement(D,{container:!0,item:!0},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(vt,{style:{padding:"0 24px 12px",fontSize:25}},w?.AssetName))),E.createElement(D,{container:!0,style:{alignItems:"center"}},E.createElement(ru,{dividers:!0,style:{padding:"10px 24px 0"}},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(Ue,{name:"AssetName",control:A,render:function(L){var W=L.field,j=W.onChange,V=W.value,G=L.fieldState.error;return E.createElement(E.Fragment,null,E.createElement(je,{label:"Asset Name",variant:"outlined",error:!!G,helperText:G?.message,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:j,value:V}))}})),E.createElement(D,{container:!0},E.createElement(D,{item:!0,md:12,xs:12,style:{marginBottom:"8px"}},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(Ue,{name:"ParentAssetId",control:A,render:function(L){var W=L.field,j=L.fieldState.error;return E.createElement(ute,{label:"Parent",value:W.value,onChange:W.onChange,fieldError:j})}})),E.createElement(D,{container:!0,style:{marginTop:"10px",padding:"0px"}},E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"IsBranch",control:A,defaultValue:!1,render:function(L){var W=L.field;return E.createElement(So,{className:o.checkbox,control:E.createElement(Qr,{checked:W.value,onChange:function(j){return W.onChange(j.target.checked)},name:"IsAsset",color:"primary",disabled:!0}),label:"Has Children"})}})),E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"CanBeDefaultAsset",control:A,defaultValue:!1,render:function(L){var W=L.field;return E.createElement(So,{className:o.checkbox,control:E.createElement(Qr,{checked:W.value,onChange:function(j){return W.onChange(j.target.checked)},name:"CanBeDefaultAsset",color:"primary"}),label:"Can be Default Asset"})}})))))),E.createElement(D,{item:!0,md:12,xs:12,justifyContent:"flex-end",style:{marginTop:"15px"}},E.createElement(Ed,{style:{padding:"0px 24px"}},E.createElement(D,{container:!0,justifyContent:"flex-end",style:{margin:0}},E.createElement(D,{container:!0,item:!0,style:{marginLeft:"auto",marginTop:5,marginBottom:0}},E.createElement(D,{item:!0,md:6,xs:12,style:{paddingLeft:"0",paddingRight:"16px"}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Ne,{fullWidth:!0,startIcon:h&&E.createElement(Kt,{size:"1rem"}),disabled:h,variant:"contained",color:"primary",type:"submit"},"Save")))))))))),E.createElement(yt,{error:u,onHide:function(){return d("")}}),E.createElement(pr,{open:s,autoHideDuration:2500,onClose:R},E.createElement(Pr,{severity:"info",onClose:R},"Document created succesfully")))},vMi=Et(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0}}}}),bMi=function(e){var t=e.selectedAssetId,n=e.selectedAssetName,r=e.show,i=e.onHide,o=e.suffixTitle,a=vMi(),s=v.useState(!1),l=s[0],c=s[1],u=v.useState(""),d=u[0],p=u[1],h=v.useState(!1),g=h[0],m=h[1],b=function(){m(!1),i(!1)},y=function(x,w){w!=="clickaway"&&c(!1)},M=ca({mutationFn:lMi,onSuccess:function(){c(!0),i(!0)},onError:function(x){p(x.message)},onSettled:function(){m(!1)}}),C=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(x){switch(x.label){case 0:return m(!0),[4,M.mutate({AssetId:t,IsActive:!1})];case 1:return x.sent(),[2]}})})};return E.createElement(E.Fragment,null,r&&E.createElement(yn,{title:"Delete Asset".concat(o?" - ".concat(o):"")}),E.createElement(Qu,{fullWidth:!0,maxWidth:"sm",open:r,onClose:function(){return b()},disableEnforceFocus:!0,className:a.root},E.createElement(T0,{id:"responsive-dialog-title"},"WARNING"),E.createElement(ru,null,E.createElement(mM,{style:{padding:0,margin:0}},"Be careful, once deleted you will not be able to recover this asset"," ",E.createElement("b",null,"(",n,")"),", are you sure you want to delete?")),E.createElement(Ed,{style:{padding:"16px 24px"}},E.createElement(Ne,{onClick:function(){return i(!1)},autoFocus:!0,color:"default"},"CANCEL"),E.createElement(Ne,{autoFocus:!0,color:"secondary",startIcon:g&&E.createElement(Kt,{size:"1rem"}),onClick:C},"Delete"))),E.createElement(yt,{error:d,onHide:function(){return p("")}}),E.createElement(pr,{open:l,autoHideDuration:2500,onClose:y},E.createElement(Pr,{severity:"info",onClose:y},"Asset removed succesfully")))},yMi=Et(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"},"& .MuiDialogContent-dividers":{borderBottom:"unset"}},checkbox:{userSelect:"none"}}}),MMi=function(e){var t=e.selectedAssetId,n=e.show,r=e.onHide,i=e.suffixTitle,o=yMi(),a=v.useState(""),s=a[0],l=a[1],c=Pk(),u=c.data,d=c.isLoading,p=c.isError,h=c.error,g=c.isSuccess,m=u&&u.length>0?u.find(function(x){return x.AssetId===t}):null,b=jn({defaultValues:m||KX}),y=b.control,M=b.reset,C=b.setValue;return v.useEffect(function(){var x,w,S;if(n&&g){M(),C("ParentAssetId",(x=m?.ParentAssetId)!==null&&x!==void 0?x:null),C("AssetName",(w=m?.AssetName)!==null&&w!==void 0?w:"");var A=u?.find(function(z){return z.AssetId===m?.ParentAssetId});C("ParentAssetName",A?.AssetName),C("IsBranch",(S=m?.IsBranch)!==null&&S!==void 0?S:!1),C("CanBeDefaultAsset",m?.CanBeDefaultAsset)}},[n,t,g]),v.useEffect(function(){h&&p&&l(h.message)},[h,p]),E.createElement(E.Fragment,null,n&&E.createElement(yn,{title:"View Asset".concat(i?" - ".concat(i):"")}),E.createElement(Qu,{fullWidth:!0,maxWidth:"sm",open:n,onClose:function(){return r(!1)},disableEnforceFocus:!0,className:o.root},d?E.createElement("div",{style:{minHeight:300,alignItems:"center",display:"flex"}},E.createElement(Wm,null)):E.createElement("form",{onSubmit:function(){}},E.createElement(D,{container:!0,style:{padding:"15px 0",height:"50%"}},E.createElement(D,{container:!0,item:!0},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(vt,{style:{padding:"0 24px 12px",fontSize:25}},m?.AssetName))),E.createElement(D,{container:!0,style:{alignItems:"center"}},E.createElement(ru,{dividers:!0,style:{padding:"10px 24px 0"}},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(Ue,{name:"AssetName",control:y,render:function(x){var w=x.field,S=w.onChange,A=w.value,z=x.fieldState.error;return E.createElement(E.Fragment,null,E.createElement(je,{label:"Asset Name",variant:"outlined",error:!!z,helperText:z?.message,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:S,value:A,disabled:!0}))}})),E.createElement(D,{container:!0},E.createElement(D,{item:!0,md:12,xs:12,style:{marginBottom:"8px"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:0,marginTop:10}},E.createElement(Ue,{name:"ParentAssetName",control:y,render:function(x){var w=x.field,S=w.onChange,A=w.value,z=x.fieldState.error;return E.createElement(E.Fragment,null,A?E.createElement(je,{label:"Parent Asset",variant:"outlined",error:!!z,helperText:z?.message,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:S,value:A||"",disabled:!0}):E.createElement(E.Fragment,null))}}))),E.createElement(D,{container:!0,style:{marginTop:"5px",padding:"0 8px"}},E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"IsBranch",control:y,defaultValue:!1,render:function(x){var w=x.field;return E.createElement(So,{className:o.checkbox,control:E.createElement(Qr,{checked:w.value,onChange:function(S){return w.onChange(S.target.checked)},name:"IsBranch",color:"primary",disabled:!0}),label:"Has Children"})}})),E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"CanBeDefaultAsset",control:y,defaultValue:!1,render:function(x){var w=x.field;return E.createElement(So,{className:o.checkbox,control:E.createElement(Qr,{checked:w.value,onChange:function(S){return w.onChange(S.target.checked)},name:"CanBeDefaultAsset",color:"primary",disabled:!0}),label:"Can be Default Asset"})}}))))))))),E.createElement(yt,{error:s,onHide:function(){return l("")}}))},v3e=function(e){if(e.droppable)return E.createElement(B3,null);switch(e.fileType){case"image":return E.createElement(hOt,null);case"csv":return E.createElement(fOt,null);case"text":return E.createElement(h3e,null);default:return null}},CMi=Et(function(e){return{root:{alignItems:"center",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:" 0 12px 24px -6px rgba(0, 0, 0, .25); 0 0 0 1px rgba(0, 0, 0, .08)",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto",padding:"4px 8px",pointerEvents:"none"},icon:{alignItems:"center",display:"flex"},label:{alignItems:"center",display:"flex"}}}),xMi=function(e){var t,n=CMi(),r=e.monitorProps.item;return E.createElement("div",{className:n.root},E.createElement("div",{className:n.icon},E.createElement(v3e,{droppable:r.droppable,fileType:(t=r?.data)===null||t===void 0?void 0:t.fileType})),E.createElement("div",{className:n.label},r.text))},wMi=Et(function(e){return{root:{alignItems:"flex-start",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:"0 12px 24px -6px rgba(0, 0, 0, 0.25); 0 0 0 1px rgba(0, 0, 0, 0.08)",display:"flex",flexDirection:"column",gap:"4px",padding:"8px"},item:{alignItems:"center",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto"},icon:{alignItems:"center",display:"flex"},label:{alignItems:"center",display:"flex"},badge:{border:"solid 2px #fff"}}}),SMi=function(e){var t=wMi();return E.createElement(Qot,{classes:{badge:t.badge},color:"error",badgeContent:e.dragSources.length,anchorOrigin:{vertical:"top",horizontal:"right"}},E.createElement("div",{className:t.root,"data-testid":"custom-drag-preview"},e.dragSources.map(function(n){var r;return E.createElement("div",{className:t.item},E.createElement("div",{className:t.icon},E.createElement(v3e,{droppable:n.droppable||!1,fileType:(r=n?.data)===null||r===void 0?void 0:r.fileType})),E.createElement("div",{className:t.label},n.text))})))},AMi=function(e){var t=e.setAssetNodeSelectedInTree,n=e.setAssetId,r=e.setShowModal,i=function(o){var a=[];return a=a.concat([{name:"New Asset",key:"new_asset",onClick:function(){o||t(null),r("new")},icon:E.createElement(Jo,null)}]),o&&(a=a.concat([{name:"Edit Asset",key:"edit_asset",onClick:function(){n(o.id),r("edit")},icon:E.createElement(Fo,null)},{name:"View Asset",key:"view_asset",onClick:function(){n(o.id),r("view")},icon:E.createElement(gOt,null)}]),o.droppable||(a=a.concat([{name:"Delete Asset",key:"delete_asset",onClick:function(){n(o.id),r("delete")},icon:E.createElement(Mo,null)}]))),a};return{getMenuOptions:i}},OMi=Et(function(e){return{root:{alignItems:"center",display:"flex",height:"32px"},customNodeRoot:{listStyleType:"none",margin:0,padding:0},arrow:{alignItems:"center",cursor:"pointer",display:"flex",height:"24px",justifyContent:"center",width:"24px",transition:"transform linear 0.1s",transform:"rotate(0deg)"},"arrow > div":{alignItems:"center",display:"flex"},"arrow.is-open":{transform:"rotate(90deg)"},filetype:{display:"flex"},label:{paddingInlineStart:"8px"},selected:{backgroundColor:"#e8f0fe"},dragging:{opacity:.5}}}),zMi=`
  ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
`,TMi=function(e){var t=e.openAssets,n=e.setOpenAssets,r=e.setContextMenuOver,i=e.onDoubleClick;e.testIdPrefix;var o=e.isSelected,a=s2(e,["openAssets","setOpenAssets","setContextMenuOver","onDoubleClick","testIdPrefix","isSelected"]),s=a.node,l=s.id,c=s.droppable,u=s.data,d=a.depth*24,p=OMi(),h="".concat(p.customNodeRoot," ").concat(p.root," ").concat(o?p.selected:""),g=function(M){a.onClick(M,a.node)},m=function(M){var C;if(M.stopPropagation(),t[l]===l){var x=tt({},t);delete x[l],n(x)}else n(tt(tt({},t),(C={},C[l]=l,C)));a.onToggle()},b=v.useCallback(function(M){M.stopPropagation(),M.preventDefault(),r(a.node,M)},[l,r]),y=v.useCallback(function(M){M.stopPropagation(),M.preventDefault(),i(a.node,M),r({id:"",parent:"",text:"",droppable:!1},M)},[l,i]);return v.useEffect(function(){var M,C;return(M=a.containerRef.current)===null||M===void 0||M.addEventListener("contextmenu",b),(C=a.containerRef.current)===null||C===void 0||C.addEventListener("dblclick",y),function(){var x,w;(x=a.containerRef.current)===null||x===void 0||x.removeEventListener("contextmenu",b),(w=a.containerRef.current)===null||w===void 0||w.removeEventListener("dblclick",y)}},[]),E.createElement("div",{className:h,style:{paddingInlineStart:d},"data-node-id":l,onClick:g,title:"".concat(a.node.id," - ").concat(a.node.text)},E.createElement("style",null,zMi),a.node.droppable?E.createElement("div",{className:"".concat(p.arrow," ").concat(a.isOpen?p["arrow.is-open"]:"")},E.createElement("div",{onClick:m},E.createElement(hQ,{"data-testid":"arrow-right-icon-".concat(l)}))):null,E.createElement("div",{className:p.filetype},E.createElement(v3e,{droppable:c,fileType:u?.fileType})),E.createElement("div",{className:p.label},E.createElement(vt,{variant:"body2"},a.node.text)))},EMi=Et(function(e){return{root:{},contextMenu:{backgroundColor:"#F8F8F8",borderRadius:"4px",padding:"0",height:"auto",width:"170px",margin:"0",position:"fixed",listStyle:"none",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.15)",zIndex:1e3},menuItem:{padding:"6px 12px 6px 10px",cursor:"pointer",display:"flex",alignItems:"center",backgroundColor:"#F8F8F8",fontSize:"12px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"&:last-child":{borderBottom:"none"},"&:hover":{backgroundColor:"#d4edff"}},storyRoot:{display:"grid",height:"100%",gridTemplateRows:"auto 1fr",listStyleType:"none !important"},assetRoot:{boxSizing:"border-box",height:"100%",padding:"32px"},dropTarget:{boxShadow:"0 0 0 1px #1967d2 inset"}}}),Pk=function(){return jl({queryKey:["assets"],queryFn:function(){return tMi()}})},RMi=function(){var e,t=EMi(),n=ws(),r=n.showContextMenu,i=n.registerConfig,o=v.useState([]),a=o[0],s=o[1],l=v.useState(!1),c=l[0],u=l[1],d=v.useState(!1),p=d[0],h=d[1],g=v.useState(""),m=g[0],b=g[1],y=v.useState(null),M=y[0],C=y[1],x=v.useState({}),w=x[0],S=x[1],A=v.useState([]),z=A[0],O=A[1],T=v.useState([]),R=T[0],P=T[1],F=v.useState(null),N=F[0],L=F[1],W=v.useState(""),j=W[0],V=W[1],G=v.useState(!1),q=G[0],$=G[1],U=Pk(),X=U.data,Q=U.isLoading,re=U.isError,ee=U.error,se=U.isSuccess,pe=U.isFetching,te=U.refetch,ce=AMi({setAssetNodeSelectedInTree:L,setAssetId:C,setShowModal:b}).getMenuOptions,oe=cMi({asset:R,selectedNodes:a,setSelectedNodes:s,setIsDragging:u,isCtrlPressing:p,setIsCtrlPressing:h,onAssetUpdateEnd:function(ie){ie.ok?($(!0),te()):V(ie.message)}}),ae=oe.handleDrop,ne=oe.handleCtrlClick,le=oe.handleDragStart,he=oe.handleDragEnd,be=function(ie,ue){ue!=="clickaway"&&$(!1)},me=function(ie,ue){if(ue.preventDefault(),ue.type==="contextmenu"){s([ie]),r(ue,ie,"assetContext");var Ae=z.find(function(Ce){return Ce.id===ie.id});Ae&&L(Ae)}},Me=function(ie,ue){ue.preventDefault();var Ae=z.find(function(Ce){return Ce.id===ie.id});Ae&&(L(Ae),C(Ae.id),b("view"))},Oe=function(ie){var ue=function(Ee){var Ge=[],_e=function(Ie){var Le=R.find(function(we){return we.id===Ie});Le&&Le.parent!==-1?(Ge.unshift(Ie),_e(Le.parent)):Le&&Ge.unshift(Ie)};return _e(Ee),Ge},Ae=ue(ie.id),Ce=tt({},w);Ae.forEach(function(Ee){Ce[Ee]=Ee}),S(Ce),s([ie.node]),setTimeout(function(){var Ee=document.querySelector('[data-node-id="'.concat(ie.id,'"]'));Ee&&Ee.scrollIntoView({behavior:"smooth",block:"center"})},300)},de=v.useMemo(function(){return Object.keys(w).map(function(ie){return Number.parseInt(ie)})},[w]);return v.useEffect(function(){if(se){var ie=[],ue=X.map(function(Ae){return{id:Ae.AssetId,parent:Ae.ParentAssetId||0,text:Ae.AssetName,isAtTop:!1,isAtBottom:!1,isEditable:!0,sortOrder:0,data:{fileType:Ae.IsLeaf?"file":"folder",fileSize:"0"},droppable:!Ae.IsLeaf,isOpen:!1}});O(ue),X.forEach(function(Ae){var Ce=iMi(Ae);ie=xi(xi([],ie,!0),[Ce],!1)}),P(ie)}},[se,pe]),v.useEffect(function(){ee&&re&&V(ee.message)},[ee,re]),v.useEffect(function(){i({id:"assetContext",getOptions:ce})},[]),E.createElement(E.Fragment,null,E.createElement(yn,{title:"Assets Tree"}),E.createElement(E.Fragment,null,E.createElement("div",{onContextMenu:function(ie){return r(ie,null,"assetContext")},style:{width:"100%",height:"100%"}},E.createElement("div",null,E.createElement(D,{container:!0,justifyContent:"flex-start"},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(vt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"Assets Tree")),Q?E.createElement(D,{container:!0,style:{width:"100%",height:"100%"}},E.createElement(D,{item:!0,xs:12,md:12,style:{height:"71vh",justifyContent:"center",alignItems:"center"}},E.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Ik,null)))):E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(Pt,{elevation:2,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"}},E.createElement(dMi,{assetNodes:R,onSearchResultClick:Oe}),E.createElement(D,{container:!0,alignItems:"center"},E.createElement(D,{container:!0,style:{height:"71vh",overflowY:"auto",paddingBottom:10}},E.createElement(D,null,E.createElement(tJ,{rootId:-1,initialOpen:de,tree:R,enableAnimateExpand:!0,classes:{root:t.assetRoot,dropTarget:t.dropTarget},onDrop:ae,onDragStart:le,onDragEnd:he,canDrop:function(ie,ue){return!a.some(function(Ae){return Ae.id===ue.dropTargetId})},render:function(ie,ue){var Ae=a.some(function(Ce){return Ce.id===ie.id});return E.createElement(TMi,tt({},ue,{node:ie,openAssets:w,setOpenAssets:S,setContextMenuOver:me,isSelected:Ae,isDragging:Ae&&c,onClick:ne,onDoubleClick:Me}))},dragPreviewRender:function(ie){return a.length>1?E.createElement(SMi,{dragSources:a}):E.createElement(xMi,{monitorProps:ie})}}))))))),E.createElement(pr,{open:q,autoHideDuration:2500,onClose:be},E.createElement(Pr,{severity:"success",onClose:be},"Asset updated successfully")))),E.createElement(fMi,{assetNodeSelectedInTree:N,show:m==="new",onHide:function(ie){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ue){return b(""),ie&&te(),[2]})})},suffixTitle:"Assets Tree"}),E.createElement(mMi,{selectedAssetId:M,show:m==="edit",onHide:function(ie){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ue){switch(ue.label){case 0:return b(""),ie?[4,te()]:[3,2];case 1:ue.sent(),ue.label=2;case 2:return[2]}})})},suffixTitle:"Assets Tree"}),E.createElement(MMi,{selectedAssetId:M,show:m==="view",onHide:function(){return b("")},suffixTitle:"Assets Tree"}),E.createElement(bMi,{selectedAssetId:M,selectedAssetName:(e=N?.text)!==null&&e!==void 0?e:"",show:m==="delete",onHide:function(ie){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ue){switch(ue.label){case 0:return b(""),ie?[4,te()]:[3,2];case 1:ue.sent(),ue.label=2;case 2:return[2]}})})},suffixTitle:"Assets Tree"}),E.createElement(yt,{error:j,onHide:function(){return V("")}})))},IMi=function(){return E.createElement(E.Fragment,null,E.createElement(D,{container:!0,justifyContent:"flex-start",alignItems:"center"},E.createElement(MZ,{backend:CZ},E.createElement(RMi,null))))},PMi=function(e){return v.createElement(IMi,null)},DMi=function(e){return v.createElement(yCi,null)},OOt=(function(){function e(){var t;this.API_PROCEDURE_URL=document.getElementsByTagName("base")[0].href+"backend",this.API_AUTH_URL=document.getElementsByTagName("base")[0].href+"authentication",this.TOKEN=((t=JSON.parse(localStorage.getItem("userMESData")))===null||t===void 0?void 0:t.token)||""}return e})(),dpe,zKe=document.getElementsByTagName("base")[0].getAttribute("href")||"/";function kMi(){return Ct(this,void 0,void 0,function(){var e,t,n,r,i;return xt(this,function(o){switch(o.label){case 0:if(e=localStorage.getItem("refreshToken"),!e)throw new Error("refresh token does not exist");return t=new OOt,n=new FormData,n.append("refreshToken",e),[4,Ys.post("".concat(t.API_AUTH_URL,"/refresh"),n,{headers:{"Content-Type":"application/json"},params:{refreshToken:e}})];case 1:if(r=o.sent(),i=r.data.result,i)return[2,[i,e]];throw new Error("Token is not valid")}})})}function TKe(e){var t=e.response.status;return t===499||t===499}var p3=Ys.create({headers:{Authorization:"Bearer ".concat((dpe=localStorage.getItem("token"))!==null&&dpe!==void 0?dpe:"")}}),TG;p3.interceptors.response.use(function(e){return e},function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i,o,a,s;return xt(this,function(l){switch(l.label){case 0:if(t=e.config,t.headers.MESF_Retries===1)return localStorage.removeItem("token"),localStorage.removeItem("refreshToken"),window.location.href="".concat(zKe,"logout?message=Session%20expired&redirectTo=").concat(window.location.href),[2,Promise.reject(e)];if(n=HC(),!n||!TKe(e))return[2,Promise.reject(e)];l.label=1;case 1:return l.trys.push([1,7,8,9]),TG||(TG=kMi()),[4,TG];case 2:r=l.sent(),i=r[0],o=r[1],localStorage.setItem("token",i),localStorage.setItem("refreshToken",o),p3.defaults.headers.Authorization="Bearer ".concat(i),t.headers.Authorization="Bearer ".concat(i),t.headers.MESF_Retries=1,l.label=3;case 3:return l.trys.push([3,5,,6]),[4,Ys.request(t)];case 4:return[2,l.sent()];case 5:return a=l.sent(),TKe(a)?[2,Promise.reject(a)]:[2,Promise.reject(a)];case 6:return[3,9];case 7:return s=l.sent(),localStorage.removeItem("token"),localStorage.removeItem("refreshToken"),window.location.href="".concat(zKe,"logout?message=Session%20expired&redirectTo=").concat(window.location.href),[2,Promise.reject(s)];case 8:return TG=void 0,[7];case 9:return[2]}})})});var m5=document.getElementsByTagName("base")[0].getAttribute("href")||"/",Ye=(function(){function e(){this.config=new OOt,this.hasErrors=!1,this.error=void 0,this.TOKEN=this.config.TOKEN}return e.prototype.prepareCall=function(){this.hasErrors=!1,this.error=void 0},e.prototype.changePassword=function(t,n){return Ct(this,void 0,void 0,function(){var r,i,o=this;return xt(this,function(a){return this.prepareCall(),r={ok:!0},i={},i.userId=t,i.password=n,[2,fetch(this.config.API_AUTH_URL+"/ChangePassword",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+HC()},body:JSON.stringify(i)}).catch(function(s){throw new Yd(s.message,404,"ERR_CONNECTION_REFUSED")}).then(function(s){return r={ok:s.ok,status:s.status,statusText:s.statusText},s.json()}).then(function(s){if(!r.ok)throw new Yd(r.statusText,r.status,s);return s}).catch(function(s){return o.hasErrors=!0,o.error=s,{hasErrors:!0,error:s}})]})})},e.prototype.authenticate=function(t,n){return Ct(this,void 0,void 0,function(){var r,i,o=this;return xt(this,function(a){return this.prepareCall(),r={ok:!0},i={},i.userName=t,i.password=n,[2,fetch(this.config.API_AUTH_URL+"/Authenticate",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).catch(function(s){throw new Yd(s.message,404,"ERR_CONNECTION_REFUSED")}).then(function(s){return r={ok:s.ok,status:s.status,statusText:s.statusText},s.json()}).then(function(s){if(!r.ok)throw new Yd(r.statusText,r.status,s);return s}).catch(function(s){return o.hasErrors=!0,o.error=s,{hasErrors:!0,error:s}})]})})},e.prototype.loginWithAzureAD=function(t){return Ct(this,void 0,void 0,function(){var n,r,i=this;return xt(this,function(o){return this.prepareCall(),n={ok:!0},r={},r.AccessToken=t,[2,fetch(this.config.API_AUTH_URL+"/authenticate/azure-ad",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).catch(function(a){throw new Yd(a.message,404,"ERR_CONNECTION_REFUSED")}).then(function(a){return n={ok:a.ok,status:a.status,statusText:a.statusText},a.json()}).then(function(a){if(!n.ok)throw new Yd(n.statusText,n.status,a);return a}).catch(function(a){return i.hasErrors=!0,i.error=a,{hasErrors:!0,error:a}})]})})},e.prototype.loginWithWindowsAuthentication=function(){return Ct(this,void 0,void 0,function(){return xt(this,function(t){return[2,fetch(this.config.API_AUTH_URL+"/authenticate/windows",{method:"POST",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({})})]})})},e.prototype.uploadFiles=function(t){return Ct(this,arguments,void 0,function(n,r){var i,o,a,s,l;return r===void 0&&(r=""),xt(this,function(c){switch(c.label){case 0:for(i=new FormData,o=0,a=n;o<a.length;o++)s=a[o],i.append("files",s,s.name);return i.append("folderName",r),[4,p3.post("/backend/uploadFiles",i)];case 1:return l=c.sent(),[2,l.data]}})})},e.prototype.call=function(t,n){return Ct(this,arguments,void 0,function(r,i,o){var a,s,l,c=this;return o===void 0&&(o=""),xt(this,function(u){return a={},s=[],i.forEach(function(d){var p={};p.name=d.name,d.value===null||d.value===void 0?p.value=null:p.value=d.value,s.push(p)}),a.method=r,a.dataBaseName=o,a.parameters=s,Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},l={ok:!0},[2,fetch(this.config.API_PROCEDURE_URL+"/Execute",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+HC()},body:JSON.stringify(a)}).catch(function(d){throw new Yd(d.message,404,"ERR_CONNECTION_REFUSED")}).then(function(d){return(d.status===499||d.status===401)&&(window.location.href="".concat(m5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),l={ok:d.ok,status:d.status,statusText:d.statusText},d.json()}).then(function(d){if(!l.ok)throw new Yd(l.statusText,l.status,d);return d}).catch(function(d){c.hasErrors=!0,c.error=d})]})})},e.prototype.callV2=function(t,n,r){return Ct(this,void 0,void 0,function(){var i,o,a,s,l;return xt(this,function(c){switch(c.label){case 0:i={},o=[],n.forEach(function(u){var d={};d.name=u.name,u.value===null||u.value===void 0?d.value=null:d.value=u.value,o.push(d)}),i.method=t,i.parameters=o,Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},a=t.replace(/[\[\]]/g,""),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,p3.post("/action/".concat(a),i,{signal:r,params:i.parameters.map(function(u){var d,p,h=u.name.replace("@","");return typeof u.value=="string"&&u.value.length>100?(d={},d[h]="__truncated__",d):(p={},p[h]=u.value,p)})})];case 2:return s=c.sent(),[2,{ok:!0,data:s.data}];case 3:return l=c.sent(),this.hasErrors=!0,this.error=l,[2,{ok:!1,message:g3e(l)}];case 4:return[2]}})})},e.prototype.callJSON=function(t,n){return Ct(this,arguments,void 0,function(r,i,o){var a,s,l,c=this;return o===void 0&&(o=""),xt(this,function(u){return a={},s=[],i.forEach(function(d){var p={};p.name=d.name,d.value===null||d.value===void 0?p.value=null:p.value=d.value,s.push(p)}),a.method=r,a.dataBaseName=o,a.parameters=s,Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},l={ok:!0},[2,fetch(this.config.API_PROCEDURE_URL+"/ExecuteJSON",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+HC()},body:JSON.stringify(a)}).catch(function(d){throw new Yd(d.message,404,"ERR_CONNECTION_REFUSED")}).then(function(d){return(d.status===499||d.status===401)&&(window.location.href="".concat(m5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),l={ok:d.ok,status:d.status,statusText:d.statusText},d.json()}).then(function(d){if(!l.ok)throw new Yd(l.statusText,l.status,d);return d}).catch(function(d){c.hasErrors=!0,c.error=d})]})})},e.prototype.import=function(t,n,r,i){return Ct(this,arguments,void 0,function(o,a,s,l,c){var u,d,p,h=this;return c===void 0&&(c=""),xt(this,function(g){return u=new FormData,d=[],a.forEach(function(m){var b={};b.name=m.name,m.value===null||m.value===void 0?b.value=null:b.value=m.value,d.push(b)}),Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},p={ok:!0},s.forEach(function(m){u.append("formFiles",m)}),u.append("method",o),u.append("dataBaseName",c),u.append("processFirstFile",l),u.append("parameters",JSON.stringify(d)),[2,fetch(this.config.API_PROCEDURE_URL+"/Import",{method:"POST",mode:"cors",headers:{Authorization:"Bearer "+HC()},body:u}).catch(function(m){throw new Yd(m.message,404,"ERR_CONNECTION_REFUSED")}).then(function(m){return(m.status===499||m.status===401)&&(window.location.href="".concat(m5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),p={ok:m.ok,status:m.status,statusText:m.statusText},m.json()}).then(function(m){if(!p.ok)throw new Yd(p.statusText,p.status,m);return m}).catch(function(m){h.hasErrors=!0,h.error=m})]})})},e.prototype.export=function(t,n,r){return Ct(this,arguments,void 0,function(i,o,a,s){var l,c,u,d=this;return s===void 0&&(s=""),xt(this,function(p){return l={},c=[],o.forEach(function(h){var g={};g.name=h.name,h.value===null||h.value===void 0?g.value=null:g.value=h.value,c.push(g)}),l.method=i,l.dataBaseName=s,l.parameters=c,l.fileName=a||"Default.xlsx",Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},u={ok:!0},[2,fetch(this.config.API_PROCEDURE_URL+"/Export",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+HC()},body:JSON.stringify(l)}).catch(function(h){throw new Yd(h.message,404,"ERR_CONNECTION_REFUSED")}).then(function(h){return(h.status===499||h.status===401)&&(window.location.href="".concat(m5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),u={ok:h.ok,status:h.status,statusText:h.statusText},u.ok?h.blob():h.json()}).then(function(h){if(!u.ok)throw new Yd(u.statusText,u.status,h);var g=window.URL.createObjectURL(h),m=document.createElement("a");return m.href=g,m.download=a||"Default.xlsx",document.body.appendChild(m),m.click(),m.remove(),"ok"}).catch(function(h){d.hasErrors=!0,d.error=h})]})})},e.prototype.exportExcel=function(t,n,r,i){return Ct(this,arguments,void 0,function(o,a,s,l,c){var u,d,p,h=this;return c===void 0&&(c=""),xt(this,function(g){return u={},d=[],a.forEach(function(m){var b={};b.name=m.name,m.value===null||m.value===void 0?b.value=null:b.value=m.value,d.push(b)}),l.showAllSheets!==void 0&&l.showAllSheets!==null&&(u.showAllSheets=l.showAllSheets),l.sheets!==void 0&&l.sheets!==null&&(u.sheets=l.sheets),u.method=o,u.dataBaseName=c,u.parameters=d,u.fileName=s||"Default.xlsx",Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},p={ok:!0},[2,fetch(this.config.API_PROCEDURE_URL+"/ExportExcel",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+HC()},body:JSON.stringify(u)}).catch(function(m){throw new Yd(m.message,404,"ERR_CONNECTION_REFUSED")}).then(function(m){return(m.status===499||m.status===401)&&(window.location.href="".concat(m5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),p={ok:m.ok,status:m.status,statusText:m.statusText},p.ok?m.blob():m.json()}).then(function(m){if(!p.ok)throw new Yd(p.statusText,p.status,m);var b=window.URL.createObjectURL(m),y=document.createElement("a");return y.href=b,y.download=s||"Default.xlsx",document.body.appendChild(y),y.click(),y.remove(),"ok"}).catch(function(m){h.hasErrors=!0,h.error=m})]})})},e.prototype.checkIfWindowsAuthIsEnabled=function(){return Ct(this,void 0,void 0,function(){var t;return xt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch("".concat(this.config.API_AUTH_URL,"/is-windows-auth-enabled")).then(function(r){return r.json()})];case 1:return t=n.sent(),[2,t];case 2:return n.sent(),[2,!1];case 3:return[2]}})})},e})(),Ic=(function(){function e(){this.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setTimeZone=function(t){var n=Dvi(t);n.length?this.timeZone=n[0]:this.timeZone=t,oa.tz.setDefault(this.timeZone)},e.prototype.toUTC=function(t,n){try{return t instanceof Date?Jbe(t,n):Jbe(Evi(t,e.instance.timeZone),n)}catch(r){return console.log({datetime:t,e:r}),""}},e.prototype.toLocalServerTime=function(t,n){try{return gi(t)||!t?"":(typeof t=="string"&&(t.includes("Z")?t=new Date(t):t=new Date("".concat(t,"Z"))),Tvi(t,e.instance.timeZone,n))}catch(r){return console.log({datetime:t,e:r}),""}},e.prototype.getServerTimeZone=function(){return this.timeZone},e})(),Sn=function(){return oa};Ic.getInstance().toUTC;var Wn=Ic.getInstance().toLocalServerTime,d$=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i,o,a;return xt(this,function(s){switch(s.label){case 0:t=(a=e.productionDate)===null||a===void 0?void 0:a.toISOString(),s.label=1;case 1:return s.trys.push([1,3,,4]),n=[],n.push({name:"@ShiftId",value:e.shiftId===0?null:e.shiftId}),n.push({name:"@ProductionDate",value:t}),r=new Ye,[4,r.callV2("[MES].[GetShiftByParameters]",n)];case 2:return i=s.sent(),i.ok?[2,{ok:!0,data:At(i.data,"tables[0].rows[0]",{})}]:[2,{ok:!1,message:i.message}];case 3:return o=s.sent(),[2,{ok:!1,message:o.toString()}];case 4:return[2]}})})},LMi=function(){var e=v.useState(null),t=e[0],n=e[1],r=v.useState(!1);r[0];var i=r[1],o=v.useState("");o[0];var a=o[1],s=function(u){return Ct(void 0,void 0,void 0,function(){var d,p,h;return xt(this,function(g){switch(g.label){case 0:return gi(t)?[2]:(i(!0),d=null,u==="Next"&&t.NextShiftId!==null?d=t.NextShiftId:u==="Previous"&&t.PreviousShiftId!==null?d=t.PreviousShiftId:u==="Last"&&t.LastShiftId!==null&&(d=t.LastShiftId),d?[4,d$({productionDate:null,shiftId:d})]:[3,2]);case 1:if(p=g.sent(),p.ok)return h=tt(tt({},p.data),{CurrentProductionDate:mt.utc(p.data.CurrentProductionDate).toDate(),CurrentStart:mt.utc(p.data.CurrentStart).toDate(),CurrentEnd:mt.utc(p.data.CurrentEnd).toDate(),PreviousProductionDate:mt.utc(p.data.PreviousProductionDate).toDate(),PreviousStart:mt.utc(p.data.PreviousStart).toDate(),PreviousEnd:mt.utc(p.data.PreviousEnd).toDate(),LastProductionDate:mt.utc(p.data.LastProductionDate).toDate(),LastStart:mt.utc(p.data.LastStart).toDate(),LastEnd:mt.utc(p.data.LastEnd).toDate()}),n(h),[2,h];g.label=2;case 2:return[2]}})})},l=function(u,d){return Ct(void 0,void 0,void 0,function(){var p,h,g;return xt(this,function(m){switch(m.label){case 0:i(!0),m.label=1;case 1:return m.trys.push([1,3,,4]),[4,d$({productionDate:u,shiftId:d})];case 2:return p=m.sent(),p.ok?(h=tt(tt({},p.data),{CurrentProductionDate:mt.utc(p.data.CurrentProductionDate).toDate(),CurrentStart:mt.utc(p.data.CurrentStart).toDate(),CurrentEnd:mt.utc(p.data.CurrentEnd).toDate(),PreviousProductionDate:mt.utc(p.data.PreviousProductionDate).toDate(),PreviousStart:mt.utc(p.data.PreviousStart).toDate(),PreviousEnd:mt.utc(p.data.PreviousEnd).toDate(),LastProductionDate:mt.utc(p.data.LastProductionDate).toDate(),LastStart:mt.utc(p.data.LastStart).toDate(),LastEnd:mt.utc(p.data.LastEnd).toDate()}),n(h),[2,h]):[3,4];case 3:return g=m.sent(),a(g.toString()),[3,4];case 4:return i(!1),[2]}})})},c=function(){return Ct(void 0,void 0,void 0,function(){var u,d;return xt(this,function(p){switch(p.label){case 0:return[4,d$({productionDate:new Date,shiftId:0})];case 1:return u=p.sent(),u.ok?(d=tt(tt({},u.data),{CurrentProductionDate:mt.utc(u.data.CurrentProductionDate).toDate(),CurrentStart:mt.utc(u.data.CurrentStart).toDate(),CurrentEnd:mt.utc(u.data.CurrentEnd).toDate(),PreviousProductionDate:mt.utc(u.data.PreviousProductionDate).toDate(),PreviousStart:mt.utc(u.data.PreviousStart).toDate(),PreviousEnd:mt.utc(u.data.PreviousEnd).toDate(),LastProductionDate:mt.utc(u.data.LastProductionDate).toDate(),LastStart:mt.utc(u.data.LastStart).toDate(),LastEnd:mt.utc(u.data.LastEnd).toDate()}),n(d),[2,d]):[2]}})})};return{shiftInfo:t,moveShift:s,getShiftDataFromAPI:l,initShiftNavigator:c}},zOt=v.createContext({getShiftDataFromAPI:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(e){return[2]})})},initShiftNavigator:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(e){return[2]})})},moveShift:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(e){return[2]})})},shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:null,NextProductionDate:null,NextProductionShift:null,NextShift:null,NextCrew:null,NextStart:null,NextEnd:null,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date}}),na=function(){return v.useContext(zOt)},_Mi=function(e){var t=e.children,n=LMi();return E.createElement(zOt.Provider,{value:n},t)},qm=function(e){var t,n=e.useRouter,r=e.onShiftChange,i=e.preventInit,o=e.withPaper,a=o===void 0?!0:o,s=e.margin,l=s===void 0?"1rem 1rem 1rem 1rem":s,c=na(),u=c.shiftInfo,d=c.initShiftNavigator,p=c.moveShift,h=c.getShiftDataFromAPI,g=v.useState(u),m=g[0],b=g[1],y=v.useState("");y[0];var M=y[1],C=ds().shiftId,x=v.useRef(!0),w=function(A){var z=location.pathname.split("/");window.history.replaceState(null,"","/".concat(z[1])+"/".concat(A))};u!==null&&u.CurrentShiftId&&n&&w((t=u?.CurrentShiftId)===null||t===void 0?void 0:t.toString()),v.useEffect(function(){var A=function(){return Ct(void 0,void 0,void 0,function(){var O,T,R;return xt(this,function(P){switch(P.label){case 0:if(!(u?.CurrentEnd&&u.CurrentEnd<new Date))return[3,4];P.label=1;case 1:return P.trys.push([1,3,,4]),[4,d$({productionDate:null,shiftId:u.CurrentShiftId})];case 2:return O=P.sent(),O.ok&&(T=tt(tt({},O.data),{CurrentProductionDate:oa.utc(O.data.CurrentProductionDate).toDate(),CurrentStart:oa.utc(O.data.CurrentStart).toDate(),CurrentEnd:oa.utc(O.data.CurrentEnd).toDate(),PreviousProductionDate:oa.utc(O.data.PreviousProductionDate).toDate(),PreviousStart:oa.utc(O.data.PreviousStart).toDate(),PreviousEnd:oa.utc(O.data.PreviousEnd).toDate(),LastProductionDate:oa.utc(O.data.LastProductionDate).toDate(),LastStart:oa.utc(O.data.LastStart).toDate(),LastEnd:oa.utc(O.data.LastEnd).toDate()}),b(T)),[3,4];case 3:return R=P.sent(),M(g3e(R)),[3,4];case 4:return[2]}})})},z=setInterval(A,6e4);return function(){return clearInterval(z)}},[u]),v.useEffect(function(){b(u)},[u]),v.useEffect(function(){if(x.current){if(x.current=!1,i)return;n&&C?h(null,Number(C)).then(function(){r&&r(Number(C))}):d().then(function(){r&&r(Number(C))})}},[]);var S=E.createElement(D,{item:!0,container:!0,style:{minWidth:"0%",margin:l},direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:1},E.createElement(D,{item:!0},E.createElement(ls,{title:"Previous Shift"},E.createElement(bn,{"aria-label":"Previous Shift",color:"primary",disabled:!u?.PreviousShiftId,onClick:function(){p("Previous").then(function(){})},size:"small"},E.createElement(dQ,null)))),E.createElement(D,{item:!0},E.createElement(_f,{label:"Current Date",timezone:"UTC",format:"MM/DD/YYYY",maxDate:oa(),closeOnSelect:!0,formatDensity:"dense",value:oa(u?.CurrentProductionDate),onChange:function(A){A&&h(A.toDate(),0).then(function(){})},slots:{textField:je},slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{textAlign:"center",width:"110px"}}}}})),E.createElement(D,{item:!0,style:{maxWidth:"100px"}},E.createElement(je,{label:"Shift - Crew",value:"".concat(u?.CurrentShift||""," - ").concat(u?.CurrentCrew||""),placeholder:"Shift","aria-readonly":!0,variant:"outlined",size:"small"})),E.createElement(D,{item:!0},E.createElement(ls,{title:"Next Shift"},E.createElement(bn,{"aria-label":"next",color:"primary",disabled:!m?.NextShiftId,onClick:function(){p("Next").then(function(){})},size:"small"},E.createElement(pQ,null)))),E.createElement(D,{item:!0},E.createElement(ls,{title:"Last Shift"},E.createElement(bn,{"aria-label":"delete",color:"primary",disabled:!m?.LastShiftId||!m?.NextShiftId,onClick:function(){p("Last").then(function(){})},size:"small"},E.createElement(gQ,null)))));return a!==!1?E.createElement(Pt,null,S):S},NMi=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ct(void 0,xi([e],t,!0),void 0,function(r,i,o,a,s,l){var c,u,d;return i===void 0&&(i=null),o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),l===void 0&&(l=null),xt(this,function(p){switch(p.label){case 0:return c=new Ye,[4,c.callV2("[MES].[GetShiftsRangeByParameters]",[{name:"Period",value:r},{name:"Start",value:i?.toISOString()},{name:"End",value:o?.toISOString()},{name:"StartShiftId",value:a},{name:"EndShiftId",value:s},{name:"Action",value:l}])];case 1:return u=p.sent(),u.ok?(d=u.data,d.tables[0].rows.map(function(h){h.Start=oa.utc(h.Start).toDate(),h.End=oa.utc(h.End).toDate()}),[2,{ok:!0,data:d}]):[2,{ok:!1,message:u.message}]}})})},FMi=Et(function(e){return{container:{display:"grid",gridTemplateColumns:"auto minmax(100px, 1fr) 80px minmax(100px, 1fr) auto auto",alignItems:"center",width:"100%",margin:0,padding:"8px 0",gap:"8px"},gridItem:{display:"flex",alignItems:"center"},datePickerWrapper:{minWidth:"100px",fontSize:".8rem!important",margin:"0!important","& .MuiInputAdornment-root":{margin:"0!important"},"& .MuiInputBase-input":{fontSize:"1rem!important",padding:"4px 8px !important"}},selectWrapper:{width:"80px","& .MuiInputBase-input":{fontSize:"0.8rem !important",padding:"4px 8px !important",display:"inline-flex",alignItems:"center"}}}}),WMi=[{value:"Shift",label:"Shift"},{value:"Day",label:"Day"},{value:"4Days",label:"4 Days"},{value:"Week",label:"Week"},{value:"Month",label:"Month"}],qMi=function(e){var t,n,r,i=e.value,o=e.actualPeriod,a=e.onChange,s=e.showShiftAndCrews,l=s===void 0?!0:s,c=e.dateFormat,u=c===void 0?"MM/DD/YYYY HH:mm a":c,d=e.periodOptions,p=d===void 0?WMi:d,h=FMi(),g=v.useState(o?(n=(t=p.find(function(se){return se.value==o}))===null||t===void 0?void 0:t.value)!==null&&n!==void 0?n:null:((r=p[0])===null||r===void 0?void 0:r.value)||"Day"),m=g[0],b=g[1],y=v.useState(!1),M=y[0],C=y[1],x=v.useState("");x[0];var w=x[1],S=v.useState([]),A=S[0],z=S[1],O=v.useState(!1),T=O[0],R=O[1],P=v.useState(null),F=P[0],N=P[1],L=v.useState(null),W=L[0],j=L[1],V=function(se){return Ct(void 0,void 0,void 0,function(){var pe;return xt(this,function(te){switch(te.label){case 0:if(m==="Custom")return[2];if(!X?.Start&&!Q?.End)return[2];te.label=1;case 1:return te.trys.push([1,6,,7]),se==="prev"&&X?.Start?[4,q(m,oa(X.Start).toDate(),null,!1,"prev")]:[3,3];case 2:return te.sent(),[3,5];case 3:return se==="next"&&Q?.End?[4,q(m,null,oa(Q.End).toDate(),!1,"next")]:[3,5];case 4:te.sent(),te.label=5;case 5:return[3,7];case 6:return pe=te.sent(),w(pe),[3,7];case 7:return[2]}})})},G=function(){return Ct(void 0,void 0,void 0,function(){var se;return xt(this,function(pe){switch(pe.label){case 0:if(m==="Custom")return[2];pe.label=1;case 1:return pe.trys.push([1,3,,4]),[4,q(m,null,null,!1,"last")];case 2:return pe.sent(),[3,4];case 3:return se=pe.sent(),w(se),[3,4];case 4:return[2]}})})},q=function(se,pe,te){for(var ce=[],oe=3;oe<arguments.length;oe++)ce[oe-3]=arguments[oe];return Ct(void 0,xi([se,pe,te],ce,!0),void 0,function(ae,ne,le,he,be){var me,Me,Oe,de,ie,ue,Ae;return he===void 0&&(he=!0),be===void 0&&(be=null),xt(this,function(Ce){switch(Ce.label){case 0:if(T)return[2];R(!0),C(!0),Ce.label=1;case 1:return Ce.trys.push([1,3,4,5]),[4,NMi(ae,ne,le,he&&(ue=i?.StartShiftId)!==null&&ue!==void 0?ue:null,he&&(Ae=i?.EndShiftId)!==null&&Ae!==void 0?Ae:null,be)];case 2:return me=Ce.sent(),me.ok?(Me=At(me,"data.tables[0].rows",[]),z(Me),ae==="Custom"?Me.length>=1&&(Oe=Me[0],de=Me[Me.length-1],a({StartShiftId:Oe.ShiftId,EndShiftId:de.ShiftId},ae)):Me.length>=2?a({StartShiftId:Me[0].ShiftId,EndShiftId:Me[1].ShiftId},ae):Me.length===1&&a({StartShiftId:Me[0].ShiftId,EndShiftId:Me[0].ShiftId},ae)):w(me.message),[3,5];case 3:return ie=Ce.sent(),w(ie),[3,5];case 4:return C(!1),R(!1),[7];case 5:return[2]}})})},$=function(se,pe){return Ct(void 0,void 0,void 0,function(){var te,ce;return xt(this,function(oe){switch(oe.label){case 0:return!se||!se.isValid()?[2]:m!=="Custom"?[3,6]:pe!=="start"?[3,3]:(N(se),W?[4,q("Custom",se.toDate(),W.toDate(),!1)]:[3,2]);case 1:oe.sent(),oe.label=2;case 2:return[3,5];case 3:return j(se),F?[4,q("Custom",F.toDate(),se.toDate(),!1)]:[3,5];case 4:oe.sent(),oe.label=5;case 5:return[2];case 6:return oe.trys.push([6,11,,12]),te=se.toDate(),pe!=="start"?[3,8]:[4,q(m,te,null,!1)];case 7:return oe.sent(),[3,10];case 8:return[4,q(m,null,te,!1)];case 9:oe.sent(),oe.label=10;case 10:return[3,12];case 11:return ce=oe.sent(),w(ce),[3,12];case 12:return[2]}})})},U=function(se){return Ct(void 0,void 0,void 0,function(){var pe,te,ce;return xt(this,function(oe){switch(oe.label){case 0:return pe=se.target.value,b(pe),pe!=="Custom"?[3,2]:(te=oa(),ce=oa().subtract(1,"day"),N(ce),j(te),[4,q("Custom",ce.toDate(),te.toDate(),!1)]);case 1:return oe.sent(),[3,4];case 2:return N(null),j(null),[4,q(pe,null,Q?.Start?oa(Q.Start).toDate():null,!1)];case 3:oe.sent(),oe.label=4;case 4:return[2]}})})};v.useEffect(function(){(i?.StartShiftId||i?.EndShiftId)&&q(m,null,null,!0)},[i?.StartShiftId,i?.EndShiftId]),v.useEffect(function(){q(m,null,null,!0)},[]);var X=A[0],Q=A[1]||A[0],re=function(se){return!l||!se||m==="Custom"?null:E.createElement("span",{style:{paddingRight:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:15,fontWeight:"bold"}},se.Shift," - ",se.Crew)},ee=m==="Custom";return E.createElement("div",{className:h.container},E.createElement("div",{className:h.gridItem},E.createElement(bn,{size:"small",color:"primary",disabled:M||ee,onClick:function(){return V("prev")}},E.createElement(W6,null))),E.createElement("div",{className:"".concat(h.gridItem," ").concat(h.datePickerWrapper)},E.createElement(_f,{label:"Start",format:u,value:ee?F||oa().subtract(1,"day"):oa(X?.Start||oa().subtract(1,"day")),onChange:function(se){return $(se?oa(se):null,"start")},disabled:M,maxDate:ee?oa():void 0,enableAccessibleFieldDOMStructure:!1,slots:{textField:function(se){return E.createElement(je,tt({},se,{size:"small",variant:"outlined",fullWidth:!0,style:{width:"100%"},InputProps:tt(tt({},se.InputProps),{style:{paddingTop:"2px"}})}))},openPickerIcon:function(){return E.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%"}},re(X),E.createElement(bn,{style:{padding:"0px",flexShrink:0}},E.createElement(g9,null)))}}})),E.createElement("div",{className:"".concat(h.gridItem," ").concat(h.selectWrapper)},E.createElement(ja,{variant:"outlined",size:"small",fullWidth:!0},E.createElement(ol,{id:"period-select-label"},"Period"),E.createElement(cs,{value:m,onChange:U,disabled:M,label:"Period",labelId:"period-select-label",style:{width:"100%"}},p.map(function(se){return E.createElement(lr,{key:se.value,value:se.value},se.label)})))),E.createElement("div",{className:"".concat(h.gridItem," ").concat(h.datePickerWrapper)},E.createElement(_f,{label:"End",format:u,value:ee?W||oa():oa(Q?.End||Q?.Start||oa()),onChange:function(se){return $(se?oa(se):null,"end")},disabled:M,minDate:ee&&F?F:void 0,maxDate:ee?oa():void 0,enableAccessibleFieldDOMStructure:!1,slots:{textField:function(se){return E.createElement(je,tt({},se,{size:"small",variant:"outlined",fullWidth:!0,style:{width:"100%"},InputProps:tt(tt({},se.InputProps),{style:{paddingTop:"2px"}})}))},openPickerIcon:function(){return E.createElement("div",{style:{display:"flex",alignItems:"center",margin:"0 !important",width:"100%"}},re(Q),E.createElement(bn,{style:{padding:"0px",flexShrink:0}},E.createElement(g9,null)))}}})),E.createElement("div",{className:h.gridItem},E.createElement(bn,{size:"small",disabled:M||ee,onClick:function(){return V("next")}},E.createElement(fQ,null))),E.createElement("div",{className:h.gridItem},E.createElement(bn,{size:"small",disabled:M||ee,onClick:G},E.createElement(Kxe,null))))},BMi=Et(function(e){return{contextMenu:{backgroundColor:"#fff",borderRadius:"2px",padding:"5px 0",width:"180px",height:"auto",margin:"0",position:"fixed",zIndex:1,listStyle:"none",boxShadow:"0 0 20px 0 #ccc","& .MuiMenuItem-root":{fontSize:"14px"},"& .MuiListItemIcon-root":{minWidth:"25px",padding:"0"},"& .MuiSvgIcon-root":{fontSize:"16px"}}}}),TOt=v.createContext({show:!1,position:{x:0,y:0},options:[],showContextMenu:function(){},registerConfig:function(){},onClickOutside:function(){}}),dte=function(e){var t=e.children,n=v.useState(!1),r=n[0],i=n[1],o=v.useState({x:0,y:0}),a=o[0],s=o[1],l=v.useState([]),c=l[0],u=l[1],d=v.useState({}),p=d[0],h=d[1],g=v.useRef(null),m=v.useRef(null),b=function(x){h(function(w){var S;return tt(tt({},w),(S={},S[x.id]=x,S))})},y=function(x,w,S){x.preventDefault(),x.stopPropagation(),i(!0),s({x:x.clientX,y:x.clientY}),g.current=w,m.current=S,p[S]?u(p[S].getOptions(w)):(console.warn("No config found for id: ".concat(S)),u([]))},M=function(){i(!1)};v.useEffect(function(){var x=function(w){r&&M()};return document.addEventListener("click",x),function(){document.removeEventListener("click",x)}},[r]);var C={show:r,position:a,options:c,showContextMenu:y,registerConfig:b,onClickOutside:M};return E.createElement(TOt.Provider,{value:C},t,E.createElement(jMi,null))},ws=function(){return v.useContext(TOt)},jMi=function(){var e=ws(),t=e.show,n=e.position,r=e.options,i=BMi(),o=v.useRef(null),a=v.useState("0"),s=a[0],l=a[1],c=v.useState("0"),u=c[0],d=c[1];return v.useEffect(function(){var p=function(){if(t&&o.current){var h=o.current.getBoundingClientRect(),g=window.innerWidth,m=window.innerHeight,b=n.x,y=n.y;b+h.width>g&&(b=g-h.width),y+h.height>m&&(y=m-h.height),l("".concat(b,"px")),d("".concat(y,"px"))}else l("0"),d("0")};p()},[t,n.x,n.y]),t?v.createElement("ul",{ref:o,className:i.contextMenu,style:{position:"fixed",opacity:t?1:0,left:s,top:u}},r.map(function(p,h){return v.createElement(lr,{key:p.key+h,style:p.style,onClick:p.onClick,disabled:p.disabled},v.createElement($0,{style:{padding:0,margin:0}},p.icon),p.name)})):null},HMi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[SEC].[GetUsers]",[])];case 1:if(t=n.sent(),t.ok)return[2,At(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching users")}})})},VMi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.userId;return xt(this,function(a){switch(a.label){case 0:return n=new Ye,r=[{name:"UserId",value:o},{name:"UserName",value:null}],[4,n.callV2("[SEC].[GetUser]",r)];case 1:if(i=a.sent(),i.ok)return[2,At(i,"data.tables[0].rows",[])];throw new Error(i.message||"Error fetching user data")}})})},GMi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"UserId",value:e}],[4,t.callV2("[SEC].[DeleteUser]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when delete user");return[2]}})})},EOt=function(e,t){return Ct(void 0,void 0,void 0,function(){var n,r,i;return xt(this,function(o){switch(o.label){case 0:n=new Ye,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n.changePassword(e.toString(),t)];case 2:return r=o.sent(),[2,{ok:!0,data:r}];case 3:return i=o.sent(),[2,{ok:!1,message:i.toString()}];case 4:return[2]}})})},b3e=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"UserId",value:e.UserId},{name:"UserName",value:e.UserName},{name:"Name",value:e.FirstName},{name:"LastName",value:e.LastName},{name:"AuthTypeId",value:e.AuthTypeId},{name:"IsActive",value:e.IsActive},{name:"DefaultAssetId",value:e.DefaultAssetId}],[4,t.callV2("[SEC].[UpsertUser]",n)];case 1:if(r=i.sent(),r.ok)return[2,At(r,"data.tables[0].rows[0].UserId",0)];throw new Error(r.message||"Error when upsert user data")}})})},$Mi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[SEC].[GetAuthTypes]",[])];case 1:if(t=n.sent(),t.ok)return[2,At(t,"data.tables[0].rows",0)];throw new Error(t.message||"Error fetching auth types")}})})},ROt=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.UserId,a=t.profileIds;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"UserId",value:o},{name:"ProfileIds",value:a.join(" , ")}],[4,n.callV2("[SEC].[setProfilesToUser]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when set profiles to user");return[2]}})})},UMi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.UserId,s=a===void 0?null:a,l=t.UserName,c=l===void 0?null:l;return xt(this,function(u){switch(u.label){case 0:return n=new Ye,r=[{name:"UserId",value:s},{name:"UserName",value:c}],[4,n.callV2("SEC.GetPermissions",r)];case 1:return i=u.sent(),o=At(i,"data.tables[0].rows",[]),[2,o[0]?o[0]:null]}})})},IOt=function(e){var t=e.show,n=e.userId,r=e.onHide,i=e.suffixTitle,o=v.useState(""),a=o[0],s=o[1],l=v.useState(!1),c=l[0],u=l[1],d=v.useCallback(function(p){return Ct(void 0,void 0,void 0,function(){return xt(this,function(h){switch(h.label){case 0:return p.preventDefault(),[4,EOt(n,a)];case 1:return h.sent(),r(!0),[2]}})})},[n,a]);return v.useEffect(function(){t&&(s(""),u(!1))},[t]),n?v.createElement(v.Fragment,null,t&&v.createElement(yn,{title:"Change Password".concat(i?" - ".concat(i):"")}),v.createElement(We,{title:"Change password",open:t,handleClose:function(){return r(!1)},maxWidth:"lg"},v.createElement(D,{container:!0},v.createElement(D,{item:!0,md:12,xs:12},v.createElement(We.Content,{style:{padding:"6px 16px 16px"}},v.createElement("form",{onSubmit:d},v.createElement(D,{item:!0,md:12,xs:12},v.createElement(je,{label:"New Password",value:a,onChange:function(p){u(!0),s(p.target.value)},variant:"outlined",error:kEn(a)&&c,fullWidth:!0,autoComplete:"off"})),v.createElement(D,{item:!0,md:12,xs:12,style:{marginTop:15}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"primary",type:"submit"},"APPLY")))))))):v.createElement(v.Fragment,null)},y3e={UserId:null,UserName:"",FirstName:"",LastName:"",AuthTypeId:1,IsActive:!0,LastLogin:null,DefaultAssetId:null,ProfilesId:[],Profiles:[],Permissions:[]},XMi={areasList:[],allAssets:[],plantAssetId:1},h2e=ki({name:"__",initialState:XMi,reducers:{setAreasList:function(e,t){var n=t.payload;e.areasList=n},setAllAssets:function(e,t){var n=t.payload;e.allAssets=n},setPlantAssetId:function(e,t){var n=t.payload;e.plantAssetId=n}}}),POt=v.createContext({state:h2e.getInitialState(),actions:h2e.actions}),pte=function(){return v.useContext(POt)},YMi=function(e){var t=e.children,n=e.plantAssetId,r=n===void 0?1:n,i=Fi.useComplexState({initialState:{areasList:[],allAssets:[],plantAssetId:r},reducers:h2e.caseReducers}),o=i[0],a=i[1];return E.createElement(POt.Provider,{value:{state:o,actions:a}},t)},M3e=function(e){var t=e.value,n=e.onChange,r=e.disabled,i=r===void 0?!1:r,o=pte().state,a=o.areasList,s=o.plantAssetId,l=a&&a.length>0,c=E.useMemo(function(){return l?R9.isNil(t)?s:t:""},[t,l,s]),u=function(d){var p=d.target.value;n(p===""?null:Number(p))};return E.useEffect(function(){R9.isNil(t)&&n(s)},[t,n,s]),E.createElement(ja,{variant:"outlined",fullWidth:!0,margin:"dense",disabled:i},E.createElement(ol,null,"Default Asset"),E.createElement(cs,{value:c,onChange:u,label:"Default Asset"},l?a.map(function(d){return E.createElement(lr,{key:d?.AssetId,value:d?.AssetId},d?.AssetName)}):E.createElement(lr,{value:""},E.createElement("em",null,"None"))))},KMi=Et(function(e){return{root:{"& .MuiSelect-select":{minHeight:"40px"}},formControl:{width:"100%",marginTop:8},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2}}}),QMi=function(){return jl({queryKey:["authTypes"],queryFn:function(){return $Mi()}})},ZMi=48,JMi=8,eCi={PaperProps:{style:{maxHeight:ZMi*4.5+JMi,width:250}}},C3e=function(e){var t=e.value,n=e.onChange,r=e.disabled,i=KMi(),o=ql(),a=v.useState(""),s=a[0],l=a[1],c=QMi(),u=c.data,d=c.isLoading;c.isSuccess;var p=c.isError,h=c.error,g=function(b,y,M){return{fontWeight:y.find(function(C){return C.AuthTypeId===b})?M.typography.fontWeightRegular:M.typography.fontWeightMedium}},m=v.useMemo(function(){var b;return((b=u?.find(function(y){return y.AuthTypeId===t}))===null||b===void 0?void 0:b.Name)||"Empty"},[u,t]);return v.useEffect(function(){h&&p&&l(h.message)},[h,p]),v.createElement("div",{className:i.root},!d&&u?.length?v.createElement(ja,{className:i.formControl,disabled:r},v.createElement(ol,{id:"demo-mutiple-chip-label"},"Auth type"),v.createElement(cs,{autoWidth:!0,labelId:"demo-mutiple-chip-label",id:"demo-mutiple-chip",value:t,style:{padding:0},onChange:n,input:v.createElement(D6,{id:"select-multiple-chip"}),renderValue:function(b){return v.createElement("div",{className:i.chips},v.createElement(gM,{key:"selected-authType-".concat(b),label:m,className:i.chip}))},MenuProps:eCi},u.map(function(b){return v.createElement(lr,{key:"auth-".concat(b.AuthTypeId),value:b.AuthTypeId,style:g(b.AuthTypeId,u,o)},b.Name)}))):v.createElement(v.Fragment,null),v.createElement(yt,{error:s,onHide:function(){return l("")}}))},tCi=Et(function(e){return{root:{"& .MuiSelect-select":{height:"auto",minHeight:"40px"}},formControl:{margin:e.spacing(1),width:"100%"},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},noLabel:{marginTop:e.spacing(3)}}}),nCi=function(e,t,n){return{fontWeight:t.find(function(r){return r.ProfileId===e})?n.typography.fontWeightRegular:n.typography.fontWeightMedium}},rCi=48,iCi=8,oCi={PaperProps:{style:{maxHeight:rCi*4.5+iCi,width:250}}},x3e=function(e){var t=e.value,n=e.onChange;e.userIdForDelete,e.setprofileError;var r=e.disabled,i=tCi(),o=ql(),a=v.useState(""),s=a[0],l=a[1],c=SOt(),u=c.data,d=c.isLoading,p=c.isError,h=c.error;function g(m){var b;return((b=u?.find(function(y){return y.ProfileId===m}))===null||b===void 0?void 0:b.ProfileName.replaceAll("Profile",""))||""}return v.useEffect(function(){h&&p&&l(h.message)},[h,p]),E.createElement("div",{className:i.root},!d&&u?.length?E.createElement(ja,{className:i.formControl,disabled:r},E.createElement(ol,{id:"demo-mutiple-chip-label",style:t.length?{display:"flex",alignItems:"center"}:{display:"flex",alignItems:"center",marginTop:10}},"Profiles"),E.createElement(cs,{autoWidth:!0,labelId:"demo-mutiple-chip-label",id:"demo-mutiple-chip",multiple:!0,value:t,onChange:n,input:E.createElement(D6,{id:"select-multiple-chip"}),renderValue:function(m){return E.createElement("div",{className:i.chips},m.map(function(b){return E.createElement(gM,{key:"selected-profile-".concat(b),label:g(b),className:i.chip})}))},MenuProps:oCi},u.map(function(m){return E.createElement(lr,{key:"profile-".concat(m.ProfileId),value:m.ProfileId,style:nCi(m.ProfileId,u,o)},m.ProfileName.replaceAll("Profile",""))}))):E.createElement(E.Fragment,null),E.createElement(yt,{error:s,onHide:function(){return l("")}}))},aCi=Et(function(e){return{checkbox:{userSelect:"none"},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}}}),sCi=function(e){var t,n,r,i=e.show,o=e.onHide,a=e.suffixTitle,s=v.useState(!1),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=v.useState(""),g=h[0],m=h[1],b=v.useState(""),y=b[0],M=b[1],C=aCi(),x=jn({defaultValues:y3e}),w=x.register,S=x.control,A=x.handleSubmit,z=x.reset,O=x.watch,T=x.formState.errors,R=function(L,W){W!=="clickaway"&&c(!1)},P=O("UserName"),F=ca({mutationFn:function(L){return Ct(void 0,void 0,void 0,function(){var W,j;return xt(this,function(V){switch(V.label){case 0:return[4,b3e(L)];case 1:return W=V.sent(),[4,EOt(W,L.UserName)];case 2:if(j=V.sent(),!j.ok)throw new Error(j.message||"Error setting password");return L.ProfilesId&&Array.isArray(L.ProfilesId)?[4,ROt({UserId:W,profileIds:L.ProfilesId})]:[3,4];case 3:V.sent(),V.label=4;case 4:return[2,W]}})})},onSuccess:function(){c(!0),o(!0)},onError:function(L){m(L.message)},onSettled:function(){p(!1)}}),N=function(L){return Ct(void 0,void 0,void 0,function(){return xt(this,function(W){switch(W.label){case 0:return p(!0),[4,F.mutate(L)];case 1:return W.sent(),[2]}})})};return v.useEffect(function(){i&&z()},[i]),v.createElement(v.Fragment,null,i&&v.createElement(yn,{title:"New User".concat(a?" - ".concat(a):"")}),v.createElement(We,{title:"NEW USER",open:i,handleClose:function(){return o(!1)},id:"create-user-modal",maxWidth:"md"},v.createElement("form",{onSubmit:A(N)},v.createElement(We.Content,{style:{padding:"15px 30px"}},v.createElement(D,{container:!0,spacing:1},v.createElement(D,{item:!0,xs:12,md:6},v.createElement(je,tt({},w("UserName",{required:!0}),{label:"Username",variant:"outlined",error:!!T.UserName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((t=T.UserName)===null||t===void 0?void 0:t.type)==="required"&&v.createElement("span",{className:C.errorLabel},"User name is required")),v.createElement(D,{item:!0,xs:12,md:6},v.createElement(je,{disabled:!0,label:"Password",value:P,variant:"outlined",error:!!T.UserName,fullWidth:!0,margin:"dense",autoComplete:"off"})),v.createElement(D,{item:!0,md:6,xs:12},v.createElement(je,tt({},w("FirstName",{required:!0}),{label:"First name",variant:"outlined",error:!!T.FirstName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((n=T.FirstName)===null||n===void 0?void 0:n.type)==="required"&&v.createElement("span",{className:C.errorLabel},"First name is required")),v.createElement(D,{item:!0,md:6,xs:12},v.createElement(je,tt({},w("LastName",{required:!0}),{label:"Last name",variant:"outlined",error:!!T.FirstName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((r=T.LastName)===null||r===void 0?void 0:r.type)==="required"&&v.createElement("span",{className:C.errorLabel},"Last name is required")),v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"ProfilesId",control:S,rules:{required:!0},render:function(L){var W=L.field,j=W.onChange,V=W.value;return v.createElement(x3e,{onChange:j,value:V,userIdForDelete:null,setprofileError:M})}}),T.ProfilesId&&v.createElement("span",{className:C.errorLabel},"Select a profile(s)")),v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"AuthTypeId",control:S,render:function(L){var W=L.field,j=W.value,V=W.onChange;return v.createElement(C3e,{value:j,onChange:V})}})),v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"DefaultAssetId",control:S,render:function(L){var W=L.field,j=W.value,V=W.onChange;return v.createElement(M3e,{value:j,onChange:V})}})),v.createElement(D,{item:!0,xs:12,md:6,style:{marginTop:"5px"}},v.createElement(Ue,{name:"IsActive",control:S,render:function(L){var W=L.field;return v.createElement(So,{className:C.checkbox,control:v.createElement(Qr,{checked:W.value,onChange:W.onChange,name:"IsActive",color:"primary"}),label:"Active"})}})))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return o(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:d&&v.createElement(Kt,{size:"1rem"}),disabled:d,variant:"contained",color:"primary",type:"submit"},"Save"))))),v.createElement(yt,{error:g,onHide:function(){return m("")},title:"Error Creating User"}),v.createElement(yt,{error:y,onHide:function(){return M("")},title:"Error Choosing Profile"})),v.createElement(pr,{open:l,autoHideDuration:2500,onClose:R},v.createElement(ph,{severity:"success",onClose:R},"The user was created successfully")))},lCi=function(e){var t=e.userId,n=e.show,r=e.onHide,i=e.suffixTitle,o=v.useState(!1),a=o[0],s=o[1],l=v.useState(!1),c=l[0],u=l[1],d=v.useState(!1),p=d[0],h=d[1],g=v.useState(""),m=g[0],b=g[1],y=v.useState(""),M=y[0],C=y[1],x=fte({userId:t}),w=x.data,S=x.isLoading,A=x.isError,z=x.error,O=x.isSuccess,T=jn({defaultValues:y3e}),R=T.register,P=T.control,F=T.setValue,N=function(j,V){V!=="clickaway"&&(s(!1),h(!1))},L=ca({mutationFn:GMi,onSuccess:function(){s(!0),r(!0)},onError:function(j){b(j.message)},onSettled:function(){h(!1),u(!1)}}),W=function(j){return Ct(void 0,void 0,void 0,function(){return xt(this,function(V){switch(V.label){case 0:return u(!0),[4,L.mutate(j)];case 1:return V.sent(),[2]}})})};return v.useEffect(function(){var j;if(n&&(u(!1),O)){var V=w?w[0]:null;if(V){var G=(((j=V.ProfilesId)===null||j===void 0?void 0:j.toString())||"").split(",")||[];F("UserId",V.UserId),F("UserName",V.UserName),F("FirstName",V.FirstName),F("LastName",V.LastName),F("AuthTypeId",V.AuthTypeId),F("IsActive",V.IsActive),F("LastLogin",V.LastLogin),F("DefaultAssetId",V.DefaultAssetId),F("ProfilesId",G.map(function(q){return parseInt(q)}))}}},[n,O,w,t]),v.useEffect(function(){z&&A&&b(z.message)},[z,A]),E.createElement(E.Fragment,null,n&&E.createElement(yn,{title:"Delete User".concat(i?" - ".concat(i):"")}),E.createElement(We,{title:"DELETE USER",open:n,handleClose:function(){return r(!1)},id:"delete-user-modal",maxWidth:"md"},E.createElement("form",null,E.createElement(We.Content,{style:{padding:"15px 30px"}},S&&E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"}},E.createElement(Ik,null)),!S&&E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,xs:12},E.createElement(je,tt({},R("UserName",{required:!0}),{label:"Username",disabled:!0,variant:"outlined",fullWidth:!0,margin:"dense",autoComplete:"off"}))),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(je,tt({},R("FirstName",{required:!0}),{label:"First name",variant:"outlined",disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"}))),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(je,tt({},R("LastName",{required:!0}),{label:"Last name",variant:"outlined",disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"}))),E.createElement(D,{item:!0,container:!0,xs:12,spacing:3},E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"ProfilesId",control:P,rules:{required:!0},render:function(j){var V=j.field,G=V.onChange,q=V.value;return E.createElement(x3e,{onChange:G,value:q,userIdForDelete:null,setprofileError:C,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"AuthTypeId",control:P,render:function(j){var V=j.field,G=V.value,q=V.onChange;return E.createElement(C3e,{value:G,onChange:q,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"DefaultAssetId",control:P,render:function(j){var V=j.field,G=V.value,q=V.onChange;return E.createElement(M3e,{value:G,onChange:q,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"IsActive",control:P,render:function(j){var V=j.field;return E.createElement(So,{control:E.createElement(Qr,{checked:V.value,onChange:V.onChange,name:"IsActive",color:"primary",disabled:!0}),label:"Active"})}})))))),E.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"CANCEL")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"secondary",onClick:function(){return h(!0)}},"DELETE")))))),E.createElement(pr,{open:a,autoHideDuration:2500,onClose:N},E.createElement(ph,{severity:"warning",onClose:N},"The user was deleted successfully")),E.createElement(We,{open:p,title:"WARNING",handleClose:function(){return N()},id:"responsive-dialog-title"},E.createElement(We.Content,null,"Be careful, once deleted you will not be able to recover this user, are you sure you want to delete it?"),E.createElement(We.Actions,{style:{padding:"16px 24px"}},E.createElement(Ne,{onClick:function(){return h(!1)},variant:"contained",color:"default"},"CANCEL"),E.createElement(Ne,{startIcon:c&&E.createElement(Kt,{size:"1rem"}),variant:"contained",color:"secondary",onClick:function(){return W(t)}},"Delete"))),E.createElement(yt,{error:m,onHide:function(){return b("")},title:"Error Deleting User"}),E.createElement(yt,{error:M,onHide:function(){return C("")},title:"Error Choosing Profile"}))},hte=function(e){var t=e.onReceiveMessage;v.useEffect(function(){var n=new $Je().withUrl("/ws").withAutomaticReconnect().configureLogging(on.Information).build();return n.start().then(function(){console.log("Connection started")}).catch(function(r){console.log("Error while starting connection: "+r)}),n.on("ReceiveMessage",function(r,i){t(r,i)}),function(){n.stop().then(function(){console.log("Connection stopped")}).catch(function(r){console.log("Error while stopping connection: "+r)})}},[])},cCi={userLastName:"",userId:null,defaultAreaId:null,defaultAreaName:"",userLogged:!1,permissions:[],profiles:[]},QX=ki({name:"__",initialState:cCi,reducers:{setUserId:function(e,t){var n=t.payload;e.userId=n},setUserLastName:function(e,t){var n=t.payload;e.userLastName=n},setDefaultAreaId:function(e,t){var n=t.payload;e.defaultAreaId=n},setDefaultAreaName:function(e,t){var n=t.payload;e.defaultAreaName=n},setUserLogged:function(e,t){var n=t.payload;e.userLogged=n},setPermissions:function(e,t){var n=t.payload;e.permissions=n},setProfiles:function(e,t){var n=t.payload;e.profiles=n}}}),DOt=v.createContext({state:QX.getInitialState(),actions:QX.actions,isLoading:!0}),jw=function(){return v.useContext(DOt)},kOt=function(){var e=jw().state;return function(t){return e.permissions.some(function(n){return n===t})}},uCi=function(e){var t=e.children,n=Fi.useComplexState({initialState:QX.getInitialState(),reducers:QX.caseReducers}),r=n[0],i=n[1],o=v.useState(!1),a=o[0],s=o[1],l=v.useState(!1),c=l[0],u=l[1],d=function(){var g=localStorage.getItem("userMESData")||"{}",m=JSON.parse(g);return At(m,"id",null)},p=function(){return Ct(void 0,void 0,void 0,function(){var g,m,b,y,M;return xt(this,function(C){switch(C.label){case 0:if(g=d(),!g)return[3,4];C.label=1;case 1:return C.trys.push([1,3,,4]),[4,UMi({UserId:g})];case 2:return m=C.sent(),m&&m.Permissions&&(b=m.Permissions.split(","),i.setPermissions(b),s(!0)),m&&m.Profiles&&(y=m.Profiles.split(","),i.setProfiles(y),u(!0)),[3,4];case 3:return M=C.sent(),console.error("Failed to load permissions:",M),[3,4];case 4:return[2]}})})},h=d();return v.useEffect(function(){p()},[h]),hte({onReceiveMessage:function(g,m){m==="SEC.GetPermissions"&&p()}}),E.createElement(DOt.Provider,{value:{state:r,actions:i,isLoading:!a||!c}},t)},HC=function(){return localStorage.getItem("token")};function sT(){var e=jw().actions.setUserLogged,t=v.useState(HC()),n=t[0],r=t[1],i=function(d){localStorage.setItem("userMESData",JSON.stringify(d)),localStorage.setItem("refreshToken",d.refreshToken),localStorage.setItem("token",d.token),r(d.token),p3.defaults.headers.Authorization="Bearer ".concat(d.token),e(!0)},o=function(){localStorage.removeItem("userMESData"),localStorage.removeItem("token"),localStorage.removeItem("refreshToken"),r(""),e(!1)},a=function(){var d=localStorage.getItem("userMESData"),p=JSON.parse(d);return((p||{}).lastName||"")+", "+((p||{}).firstName||"")},s=function(){var d=localStorage.getItem("userMESData"),p=JSON.parse(d);return(p||{}).firstName||""},l=function(){var d=localStorage.getItem("userMESData"),p=JSON.parse(d);return(p||{}).lastName||""},c=function(){var d=localStorage.getItem("userMESData"),p=JSON.parse(d);return e(!0),(p||{}).id||-1},u=function(d){var p=localStorage.getItem("userMESData");if(p===void 0)return!1;var h=JSON.parse(p),g=h.permissions||[];return g.indexOf(d)>-1};return{getUserName:a,saveUserData:i,clearUserData:o,getFirstName:s,getLastName:l,getUserId:c,hasPermission:u,token:n}}var dCi=Et(function(e){return{checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}}}),pCi=function(e){var t,n,r,i=e.userId,o=e.show,a=e.onHide,s=e.suffixTitle,l=dCi(),c=v.useState(!1),u=c[0],d=c[1],p=v.useState(!1),h=p[0],g=p[1],m=v.useState(""),b=m[0],y=m[1],M=v.useState(""),C=M[0],x=M[1],w=fte({userId:i}),S=w.data,A=w.isLoading,z=w.isError,O=w.error,T=w.isSuccess,R=sT().getUserId,P=pte().state.areasList,F=jw().actions,N=F.setDefaultAreaId,L=F.setDefaultAreaName,W=jn({defaultValues:y3e}),j=W.register,V=W.control,G=W.setValue,q=W.handleSubmit,$=W.watch,U=W.formState.errors,X=$("ProfilesId"),Q=$("DefaultAssetId"),re=function(pe,te){te!=="clickaway"&&d(!1)},ee=ca({mutationFn:function(pe){return Ct(void 0,void 0,void 0,function(){var te,ce;return xt(this,function(oe){switch(oe.label){case 0:return[4,b3e(pe)];case 1:return te=oe.sent(),ce=Array.isArray(X)?X.filter(function(ae){return!isNaN(ae)&&ae>0}):[],[4,ROt({UserId:te,profileIds:ce})];case 2:return oe.sent(),[2,te]}})})},onSuccess:function(pe){return Ct(void 0,void 0,void 0,function(){var te,ce;return xt(this,function(oe){return te=R(),te===pe&&Q&&(ce=P.find(function(ae){return ae?.AssetId===Q}),ce&&(N(Q),L(ce.AssetName))),a(!0),d(!0),[2]})})},onError:function(pe){y(pe.message)},onSettled:function(){g(!1)}}),se=function(pe){return Ct(void 0,void 0,void 0,function(){return xt(this,function(te){switch(te.label){case 0:return g(!0),[4,ee.mutate(pe)];case 1:return te.sent(),[2]}})})};return v.useEffect(function(){var pe;if(o&&(g(!1),T)){var te=S?S[0]:null;if(te){var ce=((pe=te.ProfilesId)===null||pe===void 0?void 0:pe.toString())||"",oe=ce.split(",").map(function(ae){return ae.trim()}).filter(function(ae){return ae!==""}).map(function(ae){return parseInt(ae)}).filter(function(ae){return!isNaN(ae)});G("UserId",te.UserId),G("UserName",te.UserName),G("FirstName",te.FirstName),G("LastName",te.LastName),G("AuthTypeId",te.AuthTypeId),G("IsActive",te.IsActive),G("LastLogin",te.LastLogin),G("DefaultAssetId",te.DefaultAssetId),G("ProfilesId",oe)}}},[o,T,S,i]),v.useEffect(function(){O&&z&&y(O.message)},[O,z]),v.createElement(v.Fragment,null,o&&v.createElement(yn,{title:"Edit User".concat(s?" - ".concat(s):"")}),v.createElement(We,{title:"EDIT USER",open:o,handleClose:function(){return a(!1)},id:"edit-user-modal",maxWidth:"md"},v.createElement("form",{onSubmit:q(se)},v.createElement(We.Content,{className:l.modalBody,style:{padding:"15px 30px"}},A&&v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"}},v.createElement(Ik,null)),!A&&v.createElement(v.Fragment,null,v.createElement(D,{container:!0,spacing:1},v.createElement(D,{item:!0,xs:12},v.createElement(je,tt({},j("UserName",{required:!0}),{label:"Username",variant:"outlined",error:!!U.UserName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((t=U.UserName)===null||t===void 0?void 0:t.type)==="required"&&v.createElement("span",{className:l.errorLabel},"User name is required")),v.createElement(D,{item:!0,md:6,xs:12},v.createElement(je,tt({},j("FirstName",{required:!0}),{label:"First name",variant:"outlined",error:!!U.FirstName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((n=U.FirstName)===null||n===void 0?void 0:n.type)==="required"&&v.createElement("span",{className:l.errorLabel},"First name is required")),v.createElement(D,{item:!0,md:6,xs:12},v.createElement(je,tt({},j("LastName",{required:!0}),{label:"Last name",variant:"outlined",error:!!U.FirstName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((r=U.LastName)===null||r===void 0?void 0:r.type)==="required"&&v.createElement("span",{className:l.errorLabel},"Last name is required")),v.createElement(D,{item:!0,container:!0,xs:12,spacing:3,style:{margin:0}},v.createElement(D,{item:!0,xs:12,md:6,style:{padding:"0 15px 0 0"}},v.createElement(Ue,{name:"ProfilesId",control:V,rules:{required:!0},render:function(pe){var te=pe.field,ce=te.onChange,oe=te.value;return v.createElement(x3e,{onChange:ce,value:oe,userIdForDelete:null,setprofileError:x})}}),U.ProfilesId&&v.createElement("span",{className:l.errorLabel},"Select a profile(s)")),v.createElement(D,{item:!0,xs:12,md:6,style:{padding:"0 0 0 5px"}},v.createElement(Ue,{name:"AuthTypeId",control:V,render:function(pe){var te=pe.field,ce=te.value,oe=te.onChange;return v.createElement(C3e,{value:ce,onChange:oe})}})),v.createElement(D,{item:!0,xs:12,md:6,style:{padding:"0 0 0 5px"}},v.createElement(Ue,{name:"DefaultAssetId",control:V,render:function(pe){var te=pe.field,ce=te.value,oe=te.onChange;return v.createElement(M3e,{value:ce,onChange:oe})}})),v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"IsActive",control:V,render:function(pe){var te=pe.field;return v.createElement(So,{className:l.checkbox,control:v.createElement(Qr,{checked:te.value,onChange:te.onChange,name:"IsActive",color:"primary"}),label:"Active"})}})))))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return a(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:h?v.createElement(Kt,{size:"1rem"}):v.createElement(v.Fragment,null),disabled:h,variant:"contained",color:"primary",type:"submit"},"Save")))))),v.createElement(pr,{open:u,autoHideDuration:2500,onClose:re},v.createElement(ph,{severity:"info",onClose:re},"The user was edited successfully")),v.createElement(yt,{error:b,onHide:function(){return y("")},title:"Error Editing User"}),v.createElement(yt,{error:C,onHide:function(){return x("")},title:"Error Choosing Profile"}))},hCi=Et(function(e){return{buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}}}),fCi=function(e){var t=hCi(),n=e.setUserId,r=e.setOpenModalEditDataUser,i=e.setOpenModalDeleteUser,o=e.setOpenModalChangePasswordd,a=e.showContextMenu;return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:t.buttons},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Ne,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(s){return n(e.data.UserId),o(!0),[2]})})})()}},E.createElement(tdt,{style:{height:"auto"},color:"primary"})),E.createElement(Ne,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(s){return n(e.data.UserId),r(!0),[2]})})})()}},E.createElement(Fo,{style:{height:"auto"},color:"primary"})),E.createElement(Ne,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(s){return n(e.data.UserId),i(!0),[2]})})})()}},E.createElement(Mo,{style:{height:"auto"},color:"secondary"})),E.createElement(Ne,{style:{},onClick:function(s){a(s,e.data,"TableUsers")}},E.createElement(Kf,{style:{height:"auto"},color:"action"}))))},gCi=function(e){var t=e.setUserId,n=e.setOpenModalEditDataUser,r=e.setOpenModalDeleteUser,i=e.setOpenModalChangePasswordd,o=e.showContextMenu,a=[{field:"UserName",headerName:"UserName",sortable:!1,flex:1,minWidth:130,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"FirstName",headerName:"First name",sortable:!1,flex:1,minWidth:130,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"LastName",headerName:"Last name",sortable:!1,flex:1,minWidth:130,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"Profiles",headerName:"Profiles",sortable:!1,flex:2,minWidth:220,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{cellRenderer:fCi,cellRendererParams:{setUserId:t,setOpenModalEditDataUser:n,setOpenModalDeleteUser:r,setOpenModalChangePasswordd:i,showContextMenu:o},wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:" ",sortable:!1,flex:1,minWidth:260,maxWidth:260}];return{columnDefs:a}},mCi=function(e){var t=e.setUserId,n=e.setShowEditModal,r=e.setShowDeleteModal,i=e.setShowCreateModal,o=e.setShowChangePasswordModal,a=function(s){var l=[];return s?l=l.concat([{name:"New User",key:"new_user",onClick:function(){i(!0)},icon:E.createElement(Jo,null)},{name:"Edit User",key:"edit_user",onClick:function(){t(s.UserId),n(!0)},icon:E.createElement(Fo,null)},{name:"Delete User",key:"delete_user",onClick:function(){t(s.UserId),r(!0)},icon:E.createElement(Mo,null)},{name:"Change Password",key:"change_password_user",onClick:function(){t(s.UserId),o(!0)},icon:E.createElement(tdt,null)}]):l=l.concat([{name:"New User",key:"new_user",onClick:function(){i(!0)},icon:E.createElement(Jo,null)}]),l};return{getMenuOptions:a}},vCi=function(){var e=v.useState(!1),t=e[0],n=e[1],r=v.useState(!1),i=r[0],o=r[1],a=v.useState(!1),s=a[0],l=a[1],c=v.useState(!1),u=c[0],d=c[1],p=v.useState(""),h=p[0],g=p[1],m=v.useState(""),b=m[0],y=m[1],M=v.useState(null),C=M[0],x=M[1],w=v.useState(null),S=w[0],A=w[1],z=bCi(),O=z.data,T=z.isLoading,R=z.isError,P=z.error,F=z.refetch,N=O?.map(function(U){var X=U.UserId,Q=U.UserName,re=U.LastName,ee=U.FirstName,se=U.Profiles;return{UserId:X,UserName:Q,LastName:re,FirstName:ee,Profiles:se?.replaceAll("Profile",""),id:X}}),L=mCi({setUserId:x,setShowEditModal:o,setShowDeleteModal:l,setShowCreateModal:n,setShowChangePasswordModal:d}).getMenuOptions,W=ws(),j=W.showContextMenu,V=W.registerConfig,G=gCi({setUserId:x,setOpenModalEditDataUser:o,setOpenModalDeleteUser:l,setOpenModalChangePasswordd:d,showContextMenu:j}).columnDefs,q=v.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),$=function(U){var X,Q,re=(X=U.node)===null||X===void 0?void 0:X.data;return U.api.deselectAll(),(Q=U.node)===null||Q===void 0||Q.setSelected(!0),j(event,re,"TableUsers"),[]};return v.useEffect(function(){V({id:"TableUsers",getOptions:L})},[]),v.useEffect(function(){P&&R&&g(P.message)},[P,R]),v.createElement(v.Fragment,null,v.createElement(D,{container:!0,justifyContent:"flex-start"},v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},v.createElement(vt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"User Management")),v.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},v.createElement(je,{fullWidth:!0,label:"Search",variant:"outlined",size:"small",margin:"dense",value:b,onChange:function(U){y(U.target.value),S?.setGridOption("quickFilterText",U.target.value)},InputProps:{startAdornment:v.createElement(ac,{position:"start"},v.createElement(bn,{edge:"start",type:"submit"},v.createElement(N3,null)))}})),v.createElement(D,{item:!0,container:!0,justifyContent:"center",alignItems:"center",style:{padding:"2px 10px 0px"}},v.createElement(D,{item:!0,md:12,xs:12},v.createElement(Pt,{style:{height:"70vh"}},v.createElement($n,{loading:T,gridOptions:{theme:Bw},rowData:N||[],columnDefs:G,defaultColDef:q,rowHeight:34,headerHeight:34,loadingOverlayComponent:Wm,animateRows:!0,getContextMenuItems:$,getRowId:function(U){return U.data.UserId},rowSelection:"single",onRowDoubleClicked:function(U){x(U.data.UserId),o(!0)},onGridReady:function(U){return A(U.api)}}))),v.createElement(D,{container:!0,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:2,xs:12},v.createElement(Ne,{variant:"contained",color:"primary",onClick:function(){return n(!t)},fullWidth:!0,style:{marginTop:"10px"}},"New user"))))),v.createElement(sCi,{show:t,onHide:function(U){n(!1),x(null),U&&F()},suffixTitle:"User Management"}),v.createElement(pCi,{show:i,userId:C,onHide:function(U){o(!1),x(null),U&&F()},suffixTitle:"User Management"}),v.createElement(IOt,{show:u,userId:C,onHide:function(U){d(!1),x(null),U&&F()},suffixTitle:"User Management"}),v.createElement(lCi,{show:s,userId:C,onHide:function(U){l(!1),x(null),U&&F()},suffixTitle:"User Management"}),v.createElement(yt,{error:h,onHide:function(){return g("")}}))},bCi=function(){return jl({queryKey:["users"],queryFn:function(){return HMi()}})},fte=function(e){var t=e.userId;return jl({queryKey:["user",t],queryFn:function(){return t?VMi({userId:t}):[]}})},yCi=function(){return v.createElement(v.Fragment,null,v.createElement(yn,{title:"User Management"}),v.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},v.createElement(vCi,null)))},MCi=function(){var e=sT(),t=e.getUserId;e.getUserName,e.getFirstName,e.getLastName;var n=v.useState(""),r=n[0],i=n[1],o=v.useState(""),a=o[0],s=o[1],l=v.useState(""),c=l[0],u=l[1],d=v.useState(""),p=d[0],h=d[1],g=v.useState(!1),m=g[0],b=g[1],y=v.useState(!1),M=y[0],C=y[1],x=v.useState(""),w=x[0],S=x[1],A=v.useState(""),z=A[0],O=A[1],T=v.useState(""),R=T[0];T[1];var P=v.useState(""),F=P[0],N=P[1],L=v.useState(""),W=L[0],j=L[1],V=v.useState(!1),G=V[0],q=V[1],$=v.useState(!1),U=$[0],X=$[1],Q=v.useState(!1),re=Q[0],ee=Q[1],se=v.useState(""),pe=se[0],te=se[1],ce=t(),oe=fte({userId:ce}),ae=oe.data,ne=oe.isError,le=oe.error,he=oe.isSuccess,be=oe.isFetched,me=ca({mutationFn:b3e,onSuccess:function(){u(F.trim()),h(W.trim());var Ce=localStorage.getItem("userMESData");if(Ce){var Ee=JSON.parse(Ce);Ee.firstName=F.trim(),Ee.lastName=W.trim(),localStorage.setItem("userMESData",JSON.stringify(Ee))}ee(!0),te("Profile updated successfully.")},onError:function(Ce){i(Ce.message)}}),Me=function(){return F!==c||W!==p},Oe=function(){return Ct(void 0,void 0,void 0,function(){var Ce,Ee,Ge;return xt(this,function(_e){switch(_e.label){case 0:if(!Me()||!F.trim()||!W.trim())return[2];q(!0),_e.label=1;case 1:return _e.trys.push([1,3,4,5]),Ce=t(),Ee={UserId:Ce,UserName:a,FirstName:F.trim(),LastName:W.trim(),AuthTypeId:m?1:0,IsActive:M,LastLogin:null,DefaultAssetId:null,ProfilesId:"",Profiles:"",Permissions:""},[4,me.mutateAsync(Ee)];case 2:return _e.sent(),[3,5];case 3:return Ge=_e.sent(),i(Ge.toString()),[3,5];case 4:return q(!1),[7];case 5:return[2]}})})},de=function(Ce){X(!1),Ce&&(ee(!0),te("Password changed successfully."))},ie=function(Ce){Ce.key==="Enter"&&Me()&&F.trim()&&W.trim()&&!G&&Oe()},ue=function(Ce){return Ce=Ce.replace(/,/g,`
`),Ce=Ce.replace(/ *\([^)]*\) */g,""),Ce},Ae=function(){setTimeout(function(){ee(!1),te("")},2e3)};return v.useEffect(function(){re&&Ae()},[re]),v.useEffect(function(){if(he&&be){var Ce=ae?ae[0]:null;if(!Ce)return;var Ee=Ce.FirstName||"",Ge=Ce.LastName||"";s(Ce.UserName),u(Ee),h(Ge),N(Ee),j(Ge),b(!!Ce.AuthTypeId),C(Ce.IsActive),S(ue(Ce.Profiles||"")),O(ue(Ce.Permissions||""))}},[he,be]),v.useEffect(function(){le&&ne&&i(le.message)},[le,ne]),E.createElement(E.Fragment,null,E.createElement(yn,{title:"Account Configuration"}),E.createElement(Tn,{p:3,maxWidth:"100%"},re&&E.createElement(Pt,{elevation:2,style:{padding:16,marginBottom:16,backgroundColor:"#c8e6c9",color:"#1b5e20",display:"flex",alignItems:"center"}},E.createElement(vt,null,pe)),E.createElement(Tn,null,E.createElement(vt,{variant:"h5",component:"h1",gutterBottom:!0,style:{fontWeight:600,marginBottom:16}},"Account Configuration"),E.createElement(D,{container:!0,spacing:3},E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Pt,{style:{padding:24,height:"100%",minHeight:"350px"}},E.createElement(vt,{variant:"h6",gutterBottom:!0,style:{marginBottom:24,fontWeight:600}},"Account Information"),E.createElement(Tn,{mb:2},E.createElement(je,{label:"Username",value:a,variant:"outlined",fullWidth:!0,style:{pointerEvents:"none",cursor:"default"},InputProps:{readOnly:!0},tabIndex:-1})),E.createElement(Tn,{mt:3,display:"flex",flexDirection:"column",style:{gap:4}},E.createElement(So,{control:E.createElement(Qr,{checked:m,disabled:!0}),label:"Domain User"}),E.createElement(So,{control:E.createElement(Qr,{checked:M,disabled:!0}),label:"Active Account"})))),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Pt,{style:{padding:24,height:"100%",minHeight:"350px"}},E.createElement(vt,{variant:"h6",gutterBottom:!0,style:{marginBottom:24,fontWeight:600}},"Personal Details"),E.createElement(Tn,{mb:2},E.createElement(je,{label:"First Name",value:F,variant:"outlined",fullWidth:!0,onChange:function(Ce){return N(Ce.target.value)},onKeyDown:ie,error:!F.trim(),helperText:F.trim()?"":"First name is required"})),E.createElement(Tn,{mb:2},E.createElement(je,{label:"Last Name",value:W,variant:"outlined",fullWidth:!0,onChange:function(Ce){return j(Ce.target.value)},onKeyDown:ie,error:!W.trim(),helperText:W.trim()?"":"Last name is required"})),E.createElement(la,{style:{margin:"24px 0 20px"}}),E.createElement(Tn,{mt:2,display:"flex",flexDirection:"column",style:{gap:8}},E.createElement(Ne,{fullWidth:!0,startIcon:G&&E.createElement(Kt,{size:"1rem"}),disabled:!Me()||G||!F.trim()||!W.trim(),variant:"contained",color:"primary",onClick:Oe,style:{marginBottom:"8px"}},"Save Changes"),E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:function(){return X(!0)}},"Change Password"))))),E.createElement(Pt,{elevation:2,style:{padding:24,marginBottom:24,marginTop:24}},E.createElement(vt,{variant:"h6",gutterBottom:!0,style:{marginBottom:24,fontWeight:600}},"Permissions & Access"),E.createElement(D,{container:!0,spacing:3},E.createElement(D,{item:!0,xs:12,md:4},E.createElement(vt,{variant:"body1",gutterBottom:!0,color:"textSecondary"},"Assigned Profiles"),E.createElement("textarea",{style:{width:"100%",minHeight:"300px",padding:16,fontFamily:"inherit",fontSize:"14px",lineHeight:"1.5",border:"2px solid #e0e0e0",borderRadius:8,backgroundColor:"#fff",resize:"vertical",outline:"none"},placeholder:"No profiles assigned",readOnly:!0,value:w})),E.createElement(D,{item:!0,xs:12,md:4},E.createElement(vt,{variant:"body1",gutterBottom:!0,color:"textSecondary"},"System Permissions"),E.createElement("textarea",{style:{width:"100%",minHeight:"300px",padding:16,fontFamily:"inherit",fontSize:"14px",lineHeight:"1.5",border:"2px solid #e0e0e0",borderRadius:8,backgroundColor:"#fff",resize:"vertical",outline:"none"},placeholder:"No permissions assigned",readOnly:!0,value:z})),E.createElement(D,{item:!0,xs:12,md:4},E.createElement(vt,{variant:"body1",gutterBottom:!0,color:"textSecondary"},"Available Procedures"),E.createElement("textarea",{style:{width:"100%",minHeight:"300px",padding:16,fontFamily:"inherit",fontSize:"14px",lineHeight:"1.5",border:"2px solid #e0e0e0",borderRadius:8,backgroundColor:"#fff",resize:"vertical",outline:"none"},placeholder:"No procedures available",readOnly:!0,value:R})))))),E.createElement(yt,{error:r,onHide:function(){i("")}}),E.createElement(IOt,{show:U,userId:t(),onHide:de}))},lT=E.createContext({}),CCi=function(e){var t=e.children,n=e.authConfig,r=sT();return E.createElement(E.Fragment,null,E.createElement(lT.Provider,{value:r},!!r.token&&E.createElement(xCi,null,t),!r.token&&E.createElement(wCi,{authConfig:n})))},xCi=function(e){var t=e.children;return E.createElement(E.Fragment,null,t)},wCi=function(e){var t=e.authConfig,n=v.useContext(lT).clearUserData,r=v.useRef(new URL(document.location).searchParams);return v.useEffect(function(){n();var i=window.location.origin+"?"+r.current.toString();window.history.replaceState({path:i},"",i)},[]),E.createElement(_Ci,{authConfig:t})},SCi=Et(function(e){return{button:{padding:e.spacing(1.2),fontWeight:600,transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:e.shadows[4]}},icon:{marginRight:e.spacing(1)}}}),ACi=function(){var e=SCi(),t=E.useState(!1),n=t[0],r=t[1],i=E.useState(void 0),o=i[0],a=i[1],s=E.useContext(lT).saveUserData,l=new Ye,c=function(u){return Ct(void 0,void 0,void 0,function(){var d;return xt(this,function(p){switch(p.label){case 0:return u.preventDefault(),[4,l.authenticate("public","public")];case 1:return d=p.sent(),l.hasErrors?(r(!0),a(l.error)):s(d),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(RMe,{in:n},E.createElement(Pr,{severity:"error",variant:"filled",onClose:function(){r(!1),a(void 0)}},E.createElement("strong",null,"Bad credentials"),E.createElement("p",null,o===void 0?"There was an error":o.internalError.message===void 0?o.internalError:o.internalError.message))),E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"primary",className:e.button,style:{backgroundColor:"#479DC4",color:"white"},role:"button",onClick:c,startIcon:E.createElement(_vi,{className:e.icon})},"Guest Access"))},OCi=Et(function(e){return{form:{width:"100%",marginTop:e.spacing(1)},textField:{marginBottom:e.spacing(2)},submitButton:{margin:e.spacing(2,0),padding:e.spacing(1.2),fontWeight:600,transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:e.shadows[4]}},icon:{color:e.palette.text.secondary}}}),EKe=function(){var e=OCi(),t=v.useState(""),n=t[0],r=t[1],i=v.useState(""),o=i[0],a=i[1],s=E.useState(!1),l=s[0],c=s[1],u=E.useState(void 0),d=u[0],p=u[1],h=E.useContext(lT).saveUserData,g=function(b){return Ct(void 0,void 0,void 0,function(){var y,M;return xt(this,function(C){switch(C.label){case 0:return b.preventDefault(),y=new Ye,[4,y.authenticate(n,o)];case 1:return M=C.sent(),y.hasErrors?(c(!0),p(y.error)):h(M),[2]}})})},m=function(){c(!1),p(void 0)};return E.createElement(E.Fragment,null,E.createElement("form",{onSubmit:g,className:e.form},E.createElement(je,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"txtUserName",label:"Username",name:"userName",autoComplete:"username",autoFocus:!0,className:e.textField,value:n,onChange:function(b){return r(b.target.value)},InputProps:{startAdornment:E.createElement(ac,{position:"start"},E.createElement(Wvi,{className:e.icon}))}}),E.createElement(je,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,name:"password",label:"Password",type:"password",id:"txtPassword",autoComplete:"current-password",className:e.textField,value:o,onChange:function(b){return a(b.target.value)},InputProps:{startAdornment:E.createElement(ac,{position:"start"},E.createElement(CB,{className:e.icon}))}}),E.createElement(Ne,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",className:e.submitButton,disabled:o.length===0||n.length===0},"Login"),E.createElement(pr,{open:l,autoHideDuration:6e3,onClose:m,anchorOrigin:{vertical:"top",horizontal:"center"}},E.createElement(Pr,{severity:"error",variant:"filled",onClose:m,action:E.createElement(bn,{size:"small","aria-label":"close",color:"inherit",onClick:m},E.createElement(uQ,{fontSize:"small"}))},E.createElement(vt,{variant:"subtitle2",style:{fontWeight:"bold"}},"Bad credentials"),E.createElement(vt,{variant:"body2"},d===void 0?"There was an error":d.internalError.message===void 0?d.internalError:d.internalError.message)))))},zCi=function(e){var t=e.color,n=t===void 0?"white":t;return E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:50,height:50,viewBox:"0 0 30 30"},E.createElement("path",{color:n,d:"M12 16H3v7.75l9 1.238zm0-11L3 6.25V14h9zm2-.25V14h13V3zM14 16v9.25L27 27V16z"}))},TCi=Et(function(e){return{button:{padding:e.spacing(1.2),fontWeight:600,transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:e.shadows[4]}},icon:{marginRight:e.spacing(1)},alertContainer:{marginBottom:e.spacing(2)}}}),ECi=function(){var e=TCi(),t=E.useState(!1),n=t[0],r=t[1],i=E.useState(void 0),o=i[0],a=i[1],s=E.useContext(lT).saveUserData,l=v.useState(!1),c=l[0],u=l[1],d=function(){return Ct(void 0,void 0,void 0,function(){var g,m;return xt(this,function(b){switch(b.label){case 0:return g=new Ye,[4,g.checkIfWindowsAuthIsEnabled()];case 1:return m=b.sent(),g.hasErrors?(r(!0),a(g.error)):u(m??!1),[2]}})})},p=v.useCallback(function(g){return Ct(void 0,void 0,void 0,function(){var m,b,y,M;return xt(this,function(C){switch(C.label){case 0:m=new Ye,g.preventDefault(),C.label=1;case 1:return C.trys.push([1,4,,5]),[4,m.loginWithWindowsAuthentication()];case 2:return b=C.sent(),[4,b.json()];case 3:return y=C.sent(),s(y),[3,5];case 4:return M=C.sent(),r(!0),a(M.toString()),[3,5];case 5:return[2]}})})},[r,a,s]),h=function(){r(!1),a(void 0)};return v.useEffect(function(){d().then(function(){})},[]),c?E.createElement(E.Fragment,null,n&&E.createElement(Tn,{className:e.alertContainer},E.createElement(Pr,{severity:"error",variant:"filled",onClose:h,action:E.createElement(bn,{size:"small","aria-label":"close",color:"inherit",onClick:h},E.createElement(uQ,{fontSize:"small"}))},E.createElement(vt,{variant:"subtitle2",style:{fontWeight:"bold"}},"Bad credentials"),E.createElement(vt,{variant:"body2"},o))),E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"primary",className:e.button,role:"button",onClick:p,startIcon:E.createElement(zCi,{color:"red"})},"Windows Authentication")):null},RCi={auth:{clientId:"7c77d607-51e0-4e03-bd50-d7aa18a7163g",authority:"https://login.microsoftonline.com/common",redirectUri:"http://localhost:5000/"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:function(e,t,n){if(!n)switch(e){case Jl.Error:console.error(t);return;case Jl.Info:console.info(t);return;case Jl.Verbose:console.debug(t);return;case Jl.Warning:console.warn(t);return}}}}},ICi={scopes:["User.Read"]},PCi=Et(function(e){return{button:{padding:e.spacing(1.2),fontWeight:600,transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:e.shadows[4]}},icon:{marginRight:e.spacing(1)}}}),DCi=function(){var e=PCi(),t=E.useContext(lT).saveUserData,n=Qbi().instance,r=function(i){return Ct(void 0,void 0,void 0,function(){var o,a,s,l,c;return xt(this,function(u){switch(u.label){case 0:i.preventDefault(),u.label=1;case 1:return u.trys.push([1,7,,8]),[4,n.loginPopup(ICi)];case 2:o=u.sent(),a=new Ye,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,a.loginWithAzureAD(o.accessToken)];case 4:return s=u.sent(),t(s),[3,6];case 5:return l=u.sent(),console.log(l),[3,6];case 6:return[3,8];case 7:return c=u.sent(),console.log({e:c}),[3,8];case 8:return[2]}})})};return E.createElement("form",{onSubmit:r},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"primary",className:e.button,style:{backgroundColor:"#479DC4",color:"white"},type:"submit",startIcon:E.createElement(e2i,{className:e.icon})},"Login with Azure AD"))},kCi=function(e){var t=e.config,n=new Vbi(tt(tt({},RCi),{auth:tt({},t)}));return E.createElement(E.Fragment,null,E.createElement(Kbi,{instance:n},E.createElement(DCi,null)))},LCi=Et(function(e){return{root:{minHeight:"100vh",backgroundImage:"linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)",display:"flex",flexDirection:"column"},appBar:{backgroundColor:e.palette.primary.main,boxShadow:"0 4px 20px 0 rgba(0, 0, 0, 0.1)"},brand:{textDecoration:"none",color:"white",fontWeight:"bold",display:"flex",alignItems:"center"},brandText:{marginLeft:e.spacing(1),fontWeight:700,letter:"1px"},container:{padding:e.spacing(4),flex:1,display:"flex",alignItems:"center",justifyContent:"center"},loginCard:{margin:"".concat(e.spacing(5),"px auto"),maxWidth:800,borderRadius:e.spacing(1),overflow:"hidden",boxShadow:"0 10px 30px 0 rgba(0, 0, 0, 0.1)"},cardHeader:{textAlign:"center",padding:e.spacing(3),fontWeight:"bold",backgroundColor:"#f5f5f5",borderBottom:"1px solid #eaeaea"},loginPaper:{padding:e.spacing(5),margin:e.spacing(3),borderRadius:e.spacing(1),boxShadow:"0 5px 15px 0 rgba(0, 0, 0, 0.05)",transition:"all 0.3s ease","&:hover":{boxShadow:"0 8px 25px 0 rgba(0, 0, 0, 0.1)",transform:"translateY(-5px)"}},orDivider:{textAlign:"center",fontWeight:"bold",color:e.palette.text.secondary,margin:e.spacing(2,0)},rightSidePaper:{padding:e.spacing(5),margin:e.spacing(3),minHeight:248,display:"flex",flexDirection:"column",justifyContent:"space-evenly",borderRadius:e.spacing(1),boxShadow:"0 5px 15px 0 rgba(0, 0, 0, 0.05)",transition:"all 0.3s ease","&:hover":{boxShadow:"0 8px 25px 0 rgba(0, 0, 0, 0.1)",transform:"translateY(-5px)"}}}});function _Ci(e){var t=e.authConfig,n=LCi(),r=v.useRef(new URL(document.location).searchParams),i=v.useState(!1),o=i[0],a=i[1],s=v.useState(""),l=s[0],c=s[1],u=At(t,"useEmailAndPassword",!0),d=At(t,"useAzureAD",!1),p=At(t,"useWindowsAuth",!1),h=At(t,"guestIsEnabled",!1),g=function(){a(!1),r.current.delete("message");var m=window.location.origin+"?"+r.current.toString();window.history.replaceState({path:m},"",m)};return v.useEffect(function(){r.current.has("message")&&(c(r.current.get("message")),a(!0))},[r.toString()]),E.createElement("div",{className:n.root},E.createElement(eat,null),E.createElement(iQ,{position:"static",className:n.appBar},E.createElement(N6,null,E.createElement(vt,{variant:"h6"},E.createElement("a",{href:"/",className:n.brand},E.createElement(Tn,{component:"span",className:n.brandText},"MESF"))))),E.createElement(ccn,{className:n.container},E.createElement(Pt,{elevation:3,className:n.loginCard},E.createElement("div",{className:n.cardHeader},E.createElement(vt,{variant:"h5"},"Welcome Back"),E.createElement(vt,{variant:"body2",color:"textSecondary"},"Please sign in to your account")),E.createElement(D,{container:!0,justifyContent:"space-between",alignItems:"center",spacing:2},!d&&!h&&!p?E.createElement(D,{item:!0,xs:12},E.createElement(Pt,{elevation:0,className:n.loginPaper},u&&E.createElement(EKe,null))):E.createElement(E.Fragment,null,E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Pt,{elevation:0,className:n.loginPaper},u&&E.createElement(EKe,null))),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Pt,{elevation:0,className:n.rightSidePaper},E.createElement(Tn,{display:"flex",flexDirection:"column"},E.createElement(ECi,null),d&&E.createElement(kCi,{config:t.AzureConfig}),h&&E.createElement(ACi,null)))))))),E.createElement(pr,{open:o,autoHideDuration:6e3,onClose:g,anchorOrigin:{vertical:"top",horizontal:"center"}},E.createElement(Pr,{onClose:g,severity:"info",variant:"filled"},l)))}function NCi(){var e=v.useContext(lT).clearUserData,t=Oo(),n=Zu(),r=n[0],i=v.useState(""),o=i[0],a=i[1],s=function(){localStorage.removeItem("shiftAutoLogout"),e();var l=r.get("message");if(l){var c=new URLSearchParams(r);c.delete("message"),t("/?".concat(c.toString()))}else t("/?".concat(r.toString()))};return v.useEffect(function(){var l=r.get("message");l&&a(decodeURIComponent(l));var c=setTimeout(function(){s()},o?2e3:0);return function(){return clearTimeout(c)}},[]),E.createElement(E.Fragment,null,E.createElement(Tn,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh"},o&&E.createElement(Pr,{severity:"info",style:{marginBottom:20}},E.createElement(FEn,null,"Session Ended"),E.createElement(vt,null,o)),E.createElement(vt,{variant:"h6"},"Logging out...")))}var FCi=Et(function(e){return{container:{display:"flex",alignItems:"center",color:"white"},timeDisplay:{marginRight:e.spacing(2),color:"white"},userButton:{marginLeft:e.spacing(1),display:"flex",alignItems:"center",color:"white"},userIcon:{marginRight:e.spacing(1),color:"white"}}}),WCi=function(e){var t=e.className,n=FCi(),r=sT().getUserName,i=v.useState(r()),o=i[0],a=i[1],s=v.useState(new Date),l=s[0],c=s[1],u=v.useState(null),d=u[0],p=u[1],h=function(){c(new Date);var b=r();b!==o&&a(b)};v.useEffect(function(){var b=setTimeout(function(){h()},1e3);return function(){clearTimeout(b)}});var g=function(b){p(b.currentTarget)},m=function(){p(null)};return E.createElement("div",{className:"".concat(n.container," ").concat(t||"")},E.createElement(vt,{variant:"body2",className:n.timeDisplay},Wn(l,"HH:mm:ss z")),E.createElement(Ne,{className:n.userButton,onClick:g,color:"inherit"},E.createElement(oRn,{className:n.userIcon}),o),E.createElement(e9,{id:"user-menu",anchorEl:d,keepMounted:!0,open:!!d,onClose:m},E.createElement(lr,{component:"a",href:"account"},"Account"),E.createElement(lr,{component:"a",href:"logout"},"Logout")))},ka=function(e){var t=e.children,n=e.isLoading,r=s2(e,["children","isLoading"]);return E.createElement(Ne,tt({},r,{disabled:n}),n&&E.createElement(Kt,{size:"1rem"}),t)},f2e={entry:{withAssetFilter:"tree",filterAssets:void 0,canEditAsset:!0,allowAttachments:!0,canEditShift:!0,showShiftCrew:!0,exportToExcel:!0,shiftsRange:7},report:{withAssetFilter:"tree",filterAssets:void 0,showAttachments:!0,showAsset:!0,showShiftCrew:!0,exportToExcel:!0}},LOt=v.createContext(f2e),_Ot=function(){return v.useContext(LOt)},qCi=function(e){var t=e.children,n=e.logbookSettings,r=n===void 0?{}:n,i=v.useMemo(function(){return{entry:tt(tt({},f2e.entry),r.entry||{}),report:tt(tt({},f2e.report),r.report||{})}},[r]);return E.createElement(LOt.Provider,{value:i},t)},BCi=function(e){var t=e.setSettingId,n=e.setShowDeleteModal,r=e.setShowCreateModal,i=e.setShowEditModal,o=function(a){var s=[];return a?s=s.concat([{name:"New Setting",key:"new_setting",onClick:function(){r(!0)},icon:E.createElement(Jo,null)},{name:"Edit Setting",key:"edit_setting",onClick:function(){t(a),i(!0)},icon:E.createElement(Fo,null)},{name:"Delete Setting",key:"delete_setting",onClick:function(){t(a),n(!0)},icon:E.createElement(Mo,null)}]):s=s.concat([{name:"New Setting",key:"new_setting",onClick:function(){r(!0)},icon:E.createElement(Jo,null)}]),s};return{getMenuOptions:o}},jCi=Et(function(e){return{root:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}}}),HCi=function(e){var t=e.setOpenModalEditSetting,n=e.setOpenModalDeleteSetting,r=e.showContextMenu,i=e.setSettingSelected,o=jCi(),a=[{field:"SettingName",headerName:"Name",minWidth:180,flex:4},{field:"Value",headerName:"Value",minWidth:180,flex:2},{field:"Description",headerName:"Description",minWidth:150,flex:4},{cellRenderer:function(l){return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.root},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"space-evenly",alignItems:"center"}},E.createElement(bn,{size:"small",onClick:function(){i(l?.data),t(!0)}},E.createElement(Fo,{color:"primary"})),E.createElement(bn,{size:"small",onClick:function(){i(l?.data),n(!0)}},E.createElement(Mo,{color:"secondary"})),E.createElement(bn,{size:"small",onClick:function(c){return r(c,l.data,"TableSettings")}},E.createElement(Kf,{color:"action"}))))},field:"",flex:1,minWidth:240,editable:!1,autoHeight:!1,suppressNavigable:!0}],s=v.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]);return{columnDefs:a,defaultColDef:s}},w3e={SettingName:"",Value:"",Description:""},NOt=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.oldName,a=t.newName,s=t.description,l=t.value;return xt(this,function(c){switch(c.label){case 0:return n=new Ye,r=[{name:"OldName",value:o},{name:"NewName",value:a},{name:"Description",value:s},{name:"Value",value:l}],[4,n.callV2("[UTL].[SetSetting]",r)];case 1:if(i=c.sent(),!i.ok)throw new Error(i.message||"Error when upsert setting");return[2]}})})},VCi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"SettingName",value:e}],[4,t.callV2("[UTL].[DeleteSetting]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when delete setting");return[2]}})})},GCi=function(e){var t=e.settingSelected,n=e.show,r=e.onHide,i=e.suffixTitle,o=v.useState(!1),a=o[0],s=o[1],l=v.useState(!1),c=l[0],u=l[1],d=v.useState(""),p=d[0],h=d[1],g=jn({defaultValues:t||w3e}),m=g.control,b=g.handleSubmit,y=g.reset,M=ca({mutationFn:NOt,onSuccess:function(){s(!0),r(!0)},onError:function(w){h(w.message)},onSettled:function(){u(!1)}}),C=function(w){return Ct(void 0,void 0,void 0,function(){return xt(this,function(S){switch(S.label){case 0:return u(!0),[4,M.mutate({oldName:"",newName:w.SettingName,description:w.Description,value:w.Value})];case 1:return S.sent(),[2]}})})},x=function(w,S){S!=="clickaway"&&s(!1)};return v.useEffect(function(){n&&y()},[n]),v.createElement(v.Fragment,null,n&&v.createElement(yn,{title:"New Setting".concat(i?" - ".concat(i):"")}),v.createElement(D,{container:!0},v.createElement(D,{item:!0},v.createElement(We,{title:"NEW SETTING",open:n,handleClose:function(){return r(!1)},id:"create-setting-modal",maxWidth:"md"},v.createElement("form",{onSubmit:b(C)},v.createElement(We.Content,{style:{padding:"15px 30px 0"}},v.createElement(D,{container:!0,spacing:2},v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"SettingName",control:m,rules:{required:"Name is required"},render:function(w){var S=w.field,A=w.fieldState.error;return v.createElement(je,tt({},S,{label:"Name",variant:"outlined",error:!!A,helperText:A?A.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"Value",control:m,rules:{required:"Value is required",pattern:{value:/^[A-Za-z0-9]+$/,message:"Only letters and numbers are allowed"}},render:function(w){var S=w.field,A=w.fieldState.error;return v.createElement(je,tt({},S,{label:"Value",variant:"outlined",error:!!A,helperText:A?A.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),v.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},v.createElement(Ue,{name:"Description",control:m,render:function(w){var S=w.field,A=S.value,z=S.onChange;return v.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Description",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:A,onChange:function(O){O.target.value.length<=200&&z(O)}})}})))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:c&&v.createElement(Kt,{size:"1rem"}),disabled:c,variant:"contained",color:"primary",type:"submit"},"Save")))))))),v.createElement(yt,{error:p,onHide:function(){return h("")},title:"Error Creating Setting"}),v.createElement(pr,{open:a,autoHideDuration:2500,onClose:x},v.createElement(ph,{severity:"success",onClose:x},"The setting was created successfully")))},$Ci=function(e){var t=e.settingSelected,n=e.show,r=e.onHide,i=e.suffixTitle,o=v.useState(!1),a=o[0],s=o[1],l=v.useState(!1),c=l[0],u=l[1],d=v.useState(""),p=d[0],h=d[1],g=jn({defaultValues:t||w3e}),m=g.control,b=g.handleSubmit,y=g.reset,M=g.setValue,C=ca({mutationFn:VCi,onSuccess:function(){s(!0),r(!0)},onError:function(S){h(S.message)},onSettled:function(){u(!1)}}),x=function(S){return Ct(void 0,void 0,void 0,function(){return xt(this,function(A){switch(A.label){case 0:return u(!0),[4,C.mutate(S.SettingName)];case 1:return A.sent(),[2]}})})},w=function(S,A){A!=="clickaway"&&s(!1)};return v.useEffect(function(){n&&(y(),t&&(M("SettingName",t.SettingName),M("Value",t.Value),M("Description",t.Description)))},[n]),v.createElement(v.Fragment,null,n&&v.createElement(yn,{title:"Delete Setting".concat(i?" - ".concat(i):"")}),v.createElement(D,{container:!0},v.createElement(D,{item:!0},v.createElement(We,{title:"DELETE SETTING",open:n,handleClose:function(){return r(!1)},id:"delete-setting-modal",maxWidth:"md"},v.createElement("form",{onSubmit:b(x)},v.createElement(We.Content,{style:{padding:"15px 30px 0"}},v.createElement(D,{container:!0,spacing:2},v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"SettingName",control:m,rules:{required:"Name is required"},render:function(S){var A=S.field,z=S.fieldState.error;return v.createElement(je,tt({disabled:!0},A,{label:"Name",variant:"outlined",error:!!z,helperText:z?z.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"Value",control:m,rules:{required:"Value is required"},render:function(S){var A=S.field,z=S.fieldState.error;return v.createElement(je,tt({disabled:!0},A,{label:"Value",variant:"outlined",error:!!z,helperText:z?z.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),v.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},v.createElement(Ue,{name:"Description",control:m,render:function(S){var A=S.field,z=A.value,O=A.onChange;return v.createElement(je,{disabled:!0,style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Description",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:z,onChange:function(T){T.target.value.length<=200&&O(T)}})}})))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:c&&v.createElement(Kt,{size:"1rem"}),disabled:c,variant:"contained",color:"secondary",type:"submit"},"Delete")))))))),v.createElement(yt,{error:p,onHide:function(){return h("")},title:"Error deleting Setting"}),v.createElement(pr,{open:a,autoHideDuration:2500,onClose:w},v.createElement(ph,{severity:"success",onClose:w},"The setting was deleted successfully")))},UCi=function(e){var t=e.settingSelected,n=e.show,r=e.onHide,i=e.suffixTitle,o=v.useState(!1),a=o[0],s=o[1],l=v.useState(!1),c=l[0],u=l[1],d=v.useState(""),p=d[0],h=d[1],g=jn({defaultValues:t||w3e}),m=g.control,b=g.handleSubmit,y=g.reset,M=g.setValue,C=ca({mutationFn:NOt,onSuccess:function(){s(!0),r(!0)},onError:function(S){h(S.message)},onSettled:function(){u(!1)}}),x=function(S){return Ct(void 0,void 0,void 0,function(){var A;return xt(this,function(z){switch(z.label){case 0:return u(!0),[4,C.mutate({oldName:(A=t?.SettingName)!==null&&A!==void 0?A:null,newName:S.SettingName,description:S.Description,value:S.Value})];case 1:return z.sent(),[2]}})})},w=function(S,A){A!=="clickaway"&&s(!1)};return v.useEffect(function(){n&&(y(),t&&(M("SettingName",t.SettingName),M("Value",t.Value),M("Description",t.Description)))},[n]),v.createElement(v.Fragment,null,n&&v.createElement(yn,{title:"Edit Setting".concat(i?" - ".concat(i):"")}),v.createElement(D,{container:!0},v.createElement(D,{item:!0},v.createElement(We,{title:"EDIT SETTING",open:n,handleClose:function(){return r(!1)},id:"edit-setting-modal",maxWidth:"md"},v.createElement("form",{onSubmit:b(x)},v.createElement(We.Content,{style:{padding:"15px 30px 0"}},v.createElement(D,{container:!0,spacing:2},v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"SettingName",control:m,rules:{required:"Name is required"},render:function(S){var A=S.field,z=S.fieldState.error;return v.createElement(je,tt({},A,{label:"Name",variant:"outlined",error:!!z,helperText:z?z.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),v.createElement(D,{item:!0,xs:12,md:6},v.createElement(Ue,{name:"Value",control:m,rules:{required:"Value is required",pattern:{value:/^[A-Za-z0-9]+$/,message:"Only letters and numbers are allowed"}},render:function(S){var A=S.field,z=S.fieldState.error;return v.createElement(je,tt({},A,{label:"Value",variant:"outlined",error:!!z,helperText:z?z.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),v.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},v.createElement(Ue,{name:"Description",control:m,render:function(S){var A=S.field,z=A.value,O=A.onChange;return v.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Description",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:z,onChange:function(T){T.target.value.length<=200&&O(T)}})}})))),v.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},v.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),v.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},v.createElement(Ne,{fullWidth:!0,startIcon:c&&v.createElement(Kt,{size:"1rem"}),disabled:c,variant:"contained",color:"primary",type:"submit"},"Save")))))))),v.createElement(yt,{error:p,onHide:function(){return h("")},title:"Error updating Setting"}),v.createElement(pr,{open:a,autoHideDuration:2500,onClose:w},v.createElement(ph,{severity:"success",onClose:w},"The setting was edited successfully")))},XCi=function(){var e=Gf(),t=ws(),n=t.showContextMenu,r=t.registerConfig,i=v.useState(""),o=i[0],a=i[1],s=v.useState(null),l=s[0],c=s[1],u=v.useState(""),d=u[0],p=u[1],h=v.useState(null),g=h[0],m=h[1],b=v.useState(!1),y=b[0],M=b[1],C=v.useState(!1),x=C[0],w=C[1],S=v.useState(!1),A=S[0],z=S[1],O=FOt(),T=O.data,R=O.isLoading,P=O.isError,F=O.error,N=BCi({setSettingId:m,setShowDeleteModal:z,setShowCreateModal:M,setShowEditModal:w}).getMenuOptions,L=HCi({setOpenModalEditSetting:w,setOpenModalDeleteSetting:z,showContextMenu:n,setSettingSelected:m}),W=L.columnDefs,j=L.defaultColDef,V=function(G){var q,$,U=(q=G.node)===null||q===void 0?void 0:q.data;return G.api.deselectAll(),($=G.node)===null||$===void 0||$.setSelected(!0),n(event,U,"TableSettings"),[]};return v.useEffect(function(){r({id:"TableSettings",getOptions:N})},[]),v.useEffect(function(){F&&P&&a(F.message)},[F,P]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,justifyContent:"center"},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(vt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"Settings")),E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(je,{fullWidth:!0,label:"Search",variant:"outlined",size:"small",margin:"dense",value:d,onChange:function(G){p(G.target.value),l?.setGridOption("quickFilterText",G.target.value)},InputProps:{startAdornment:E.createElement(ac,{position:"start"},E.createElement(bn,{edge:"start",type:"submit"},E.createElement(N3,null)))}})),E.createElement(D,{item:!0,container:!0,md:12,xs:12,style:{padding:"2px 10px 0px"}},E.createElement(D,{item:!0,md:12,xs:12,style:{height:"70vh"}},E.createElement(Pt,{style:{height:"100%",width:"100%"}},E.createElement($n,{loading:R,gridOptions:{theme:Bw},rowData:T,columnDefs:W,defaultColDef:j,rowHeight:34,headerHeight:34,animateRows:!0,loadingOverlayComponent:Wm,getContextMenuItems:function(G){return V(G)},rowSelection:"single",onRowDoubleClicked:function(G){m(G.data),w(!0)},onGridReady:function(G){return c(G.api)}}))),E.createElement(D,{container:!0,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:2,xs:12,style:{display:"flex",justifyContent:"flex-end",marginTop:10}},E.createElement(Ne,{variant:"contained",color:"primary",onClick:function(){return M(!y)},fullWidth:!0},"NEW SETTING"))))),E.createElement(GCi,{settingSelected:g,show:y,onHide:function(G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){switch(q.label){case 0:return M(!1),G?[4,e.invalidateQueries({queryKey:["settings"]})]:[3,2];case 1:q.sent(),q.label=2;case 2:return[2]}})})},suffixTitle:"Settings"}),E.createElement(UCi,{settingSelected:g,show:x,onHide:function(G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){switch(q.label){case 0:return w(!1),G?[4,e.invalidateQueries({queryKey:["settings"]})]:[3,2];case 1:q.sent(),q.label=2;case 2:return[2]}})})},suffixTitle:"Settings"}),E.createElement($Ci,{settingSelected:g,show:A,onHide:function(G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){switch(q.label){case 0:return z(!1),G?[4,e.invalidateQueries({queryKey:["settings"]})]:[3,2];case 1:q.sent(),q.label=2;case 2:return[2]}})})},suffixTitle:"Settings"}),E.createElement(yt,{error:o,onHide:function(){return a("")}}))},FOt=function(){return jl({queryKey:["settings"],queryFn:function(){return nMi()}})},YCi=function(){return E.createElement(E.Fragment,null,E.createElement(yn,{title:"Settings"}),E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},E.createElement(XCi,null)))},KCi={serverTimeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,settings:{}},ZX=ki({name:"__",initialState:KCi,reducers:{setServerTimeZone:function(e,t){var n=t.payload;e.serverTimeZone=n},setSetting:function(e,t){var n=t.payload;e.settings[n.key]=n.value},initSettings:function(e,t){var n=t.payload;e.settings=n.reduce(function(r,i){if(i.SettingName.trim().toLowerCase()==="timezone"){var o=Ic.getInstance();o.setTimeZone(i.Value)}return r[i.SettingName.trim()]=i.Value,r},{})}}}),WOt=v.createContext({state:ZX.getInitialState(),actions:ZX.actions,isLoading:!0}),Ma=function(){return v.useContext(WOt)},QCi=function(e){var t=e.children,n=Fi.useComplexState({initialState:ZX.getInitialState(),reducers:ZX.caseReducers}),r=n[0],i=n[1],o=FOt(),a=o.data,s=o.isLoading,l=o.isError,c=o.error,u=o.isSuccess,d=o.refetch;return v.useEffect(function(){if(u){var p=a,h=p.map(function(g){return tt(tt({},g),{SettingName:g.SettingName.trim()})});i.initSettings(h)}},[u]),v.useEffect(function(){c&&l&&console.error(c.message)},[c,l]),hte({onReceiveMessage:function(p,h){h==="UTL.GetSettings"&&d()}}),E.createElement(WOt.Provider,{value:{state:r,actions:i,isLoading:s}},t)},qOt=v.createContext(function(){return E.createElement(E.Fragment,null)}),BOt=v.createContext([[],function(){return E.createElement(E.Fragment,null)}]),jOt=v.createContext(function(){return E.createElement(E.Fragment,null)}),ZCi=v.lazy(function(){return Promise.resolve().then(function(){return bSi}).then(function(e){return{default:e.AreaSelector}})}),JCi=Et(function(e){return{appBar:{backgroundColor:e.palette.primary.main},title:{flexGrow:0,marginRight:e.spacing(2),textDecoration:"none",color:"white",textWrap:"nowrap"},navContainer:{display:"flex",flexGrow:1,"& a":{color:"white"}},rightItems:{display:"flex",alignItems:"center",color:"white"},menuButton:{marginRight:e.spacing(2),color:"white"},drawer:{width:250,"& .MuiDrawer-paper":{width:250,marginTop:56,height:"calc(100% - 56px)",backgroundColor:e.palette.grey[100]}},mobileNav:{width:"100%",backgroundColor:e.palette.grey[100],"& a, & button":{width:"100%",justifyContent:"flex-start",padding:e.spacing(1,2),color:e.palette.text.primary}}}});function exi(e){var t=e.showAreaSelector,n=t===void 0?!1:t,r=e.showTrendingsIcon,i=r===void 0?!0:r,o=e.showTrendingsV2Icon,a=o===void 0?!0:o,s=e.navbarTitle,l=s===void 0?"MESF":s,c=JCi(),u=v.useState(""),d=u[0],p=u[1],h=v.useContext(jOt),g=v.useState(!1),m=g[0],b=g[1],y=kOt();jw().state.userLogged;var M=function(){b(!m)};v.useEffect(function(){var x=function(w){var S=w.target,A=S.closest(".MuiMenuItem-root");A&&b(!1)};return document.addEventListener("click",x),function(){document.removeEventListener("click",x)}},[]);var C=y("ui.navbar.settings");return E.createElement(E.Fragment,null,E.createElement(iQ,{position:"static",className:c.appBar},E.createElement(N6,null,E.createElement(aPe,{mdUp:!0},E.createElement(bn,{edge:"start",className:c.menuButton,color:"inherit","aria-label":"menu",onClick:M},E.createElement(mNn,null))),E.createElement(vt,{variant:"h6",component:Yo,to:"/home",className:c.title},l),E.createElement("div",{className:c.navContainer},E.createElement(aPe,{smDown:!0},E.createElement(h,{closeDrawer:M}))),E.createElement("div",{className:c.rightItems},i&&E.createElement(ls,{title:"Trendings",placement:"bottom",arrow:!0,enterDelay:1500},E.createElement(bn,{color:"inherit",component:Yo,to:"/trendings"},E.createElement(CNn,null))),a&&E.createElement(ls,{title:"Trendings V2 (ECharts)",placement:"bottom",arrow:!0,enterDelay:1500},E.createElement(bn,{color:"inherit",component:Yo,to:"/trendings-v2"},E.createElement(SNn,null))),C&&E.createElement(ls,{title:"Settings",placement:"bottom"},E.createElement(bn,{color:"inherit",component:Yo,to:"/configuration"},E.createElement(Vxe,null))),n&&E.createElement(v.Suspense,{fallback:E.createElement("div",null,"...")},E.createElement(ZCi,null)),E.createElement(WCi,null)))),E.createElement(iat,{variant:"temporary",anchor:"left",open:m,onClose:M,className:c.drawer,ModalProps:{keepMounted:!0}},E.createElement("div",{className:c.mobileNav},E.createElement(h,{isMobile:!0}))),E.createElement(yt,{error:d,onHide:function(){return p("")}}))}var txi=function(){return E.createElement("div",{style:{backgroundImage:'url("/home.jpg")',backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",minHeight:"100%",height:"100vh",width:"100%",position:"absolute"}})},nxi=Et(function(e){return{root:{width:"100%",maxWidth:800,margin:"0 auto",padding:e.spacing(3)},messageList:{height:400,overflow:"auto",marginBottom:e.spacing(2),padding:e.spacing(2),backgroundColor:e.palette.background.default},messageForm:{display:"flex",gap:e.spacing(2)},messageInput:{flexGrow:1},timestamp:{color:e.palette.text.secondary,fontSize:"0.8rem"},statusChip:{marginBottom:e.spacing(2)}}}),rxi=function(){var e=nxi(),t=v.useState("/ws"),n=t[0];t[1];var r=v.useState(null),i=r[0],o=r[1],a=v.useState({isConnected:!1}),s=a[0],l=a[1],c=v.useState([]),u=c[0],d=c[1],p=v.useState(""),h=p[0],g=p[1],m=v.useState(""),b=m[0],y=m[1],M=v.useRef(null),C=v.useRef([]);C.current=u;var x=function(){var A;(A=M.current)===null||A===void 0||A.scrollIntoView({behavior:"smooth"})};v.useEffect(function(){x()},[u]);var w=v.useCallback(function(){return Ct(void 0,void 0,void 0,function(){var A,z;return xt(this,function(O){switch(O.label){case 0:return O.trys.push([0,2,,3]),A=new $Je().withUrl(n).withAutomaticReconnect().configureLogging(on.Information).build(),A.on("ReceiveMessage",function(T,R){var P={user:T,message:R,timestamp:new Date};d(function(F){return xi(xi([],F,!0),[P],!1)})}),A.on("UserConnected",function(T){console.log("User connected: ".concat(T)),l(function(R){return tt(tt({},R),{isConnected:!0,connectionId:T})})}),A.on("UserDisconnected",function(T){console.log("User disconnected: ".concat(T)),T===s.connectionId&&l(function(R){return tt(tt({},R),{isConnected:!1,connectionId:void 0})})}),[4,A.start()];case 1:return O.sent(),o(A),console.log("SignalR Connected"),[3,3];case 2:return z=O.sent(),console.error("SignalR Connection Error:",z),l(function(T){return tt(tt({},T),{isConnected:!1,error:z})}),[3,3];case 3:return[2]}})})},[n]);v.useEffect(function(){return w(),function(){i?.stop()}},[w]);var S=function(A){return Ct(void 0,void 0,void 0,function(){var z;return xt(this,function(O){switch(O.label){case 0:if(A.preventDefault(),!i||!b||!h)return[2];O.label=1;case 1:return O.trys.push([1,3,,4]),[4,i.invoke("SendMessage",h,b)];case 2:return O.sent(),y(""),[3,4];case 3:return z=O.sent(),console.error("Error sending message:",z),[3,4];case 4:return[2]}})})};return E.createElement(E.Fragment,null,E.createElement(yn,{title:"Client - Real Time"}),E.createElement(Pt,{className:e.root,elevation:3},E.createElement(Tn,{mb:2},E.createElement(gM,{label:s.isConnected?"Connected":"Disconnected",color:s.isConnected?"primary":"default",className:e.statusChip}),s.error&&E.createElement(vt,{color:"error"},"Error: ",s.error.message)),E.createElement(Pt,{className:e.messageList,variant:"outlined"},E.createElement(tp,null,u.map(function(A,z){return E.createElement(ya,{key:z},E.createElement(ia,{primary:E.createElement(vt,null,E.createElement("strong",null,A.user,":")," ",A.message),secondary:E.createElement("span",{className:e.timestamp},A.timestamp.toLocaleTimeString())}))}),E.createElement("div",{ref:M}))),E.createElement("form",{onSubmit:S,className:e.messageForm},E.createElement(je,{value:h,onChange:function(A){return g(A.target.value)},label:"Your name",variant:"outlined",size:"small"}),E.createElement(je,{className:e.messageInput,value:b,onChange:function(A){return y(A.target.value)},label:"Type a message",variant:"outlined",size:"small"}),E.createElement(Ne,{type:"submit",variant:"contained",color:"primary",disabled:!s.isConnected||!h||!b,endIcon:E.createElement(L1n,null)},"Send"))))},ixi=function(){return Ct(void 0,void 0,void 0,function(){var e,t,n,r;return xt(this,function(i){switch(i.label){case 0:return e=new Ye,[4,e.callV2("[SYSTEM].[GetQueryCacheInvalidations]",[])];case 1:if(t=i.sent(),t.ok)return n=At(t,"data.tables[0].rows",[]),r=At(t,"data.tables[1].rows",[]),[2,{cacheInvalidations:n,actions:r}];throw new Error(t.message||"Error fetching query cache invalidations")}})})},oxi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i=t.actionId,o=t.targets;return xt(this,function(a){switch(a.label){case 0:return n=new Ye,[4,n.callV2("[SYSTEM].[UpsertQueryCacheInvalidations]",[{name:"SourceId",value:i},{name:"TargetsCSV",value:o.map(function(s){return s.ActionId}).join(",")}])];case 1:if(r=a.sent(),!r.ok)throw new Error(r.message||"Error when upsert query cache invalidations");return[2]}})})},axi=function(){return jl({queryKey:["queryCacheInvalidations"],queryFn:function(){return ixi()}})},sxi=function(){var e=v.useRef(null),t=v.useState([]),n=t[0],r=t[1],i=v.useState([]),o=i[0],a=i[1],s=v.useState(""),l=s[0],c=s[1],u=v.useState(null);u[0];var d=u[1],p=v.useState("");p[0];var h=p[1],g=v.useState(!1),m=g[0],b=g[1],y=jn({defaultValues:{source:null,targets:[]}}),M=y.control,C=y.reset,x=y.handleSubmit,w=v.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),S=[{field:"SourceId",headerName:"Source ID",flex:1},{field:"Source",headerName:"Source",flex:2},{field:"TargetNamesCSV",headerName:"Targets",flex:3},{headerName:"Actions",flex:1,cellRenderer:function(G){return E.createElement(Ne,{variant:"contained",color:"primary",onClick:function(){return W(G.data)},style:{width:"100%",height:"28px",minWidth:"60px"}},"EDIT")}}],A=axi(),z=A.data,O=A.isLoading,T=A.isSuccess,R=A.isError,P=A.error,F=A.isFetched,N=A.refetch,L=function(){C({source:null,targets:[]}),c("add")},W=function(G){d(G);var q=G.TargetsCSV.split(",").map(Number);C({source:o.find(function($){return $.ActionId===G.SourceId})||null,targets:o.filter(function($){return q.includes($.ActionId)})}),c("edit")},j=ca({mutationFn:oxi,onSuccess:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(G){switch(G.label){case 0:return h("Operation successful"),[4,N()];case 1:return G.sent(),[2]}})})},onError:function(G){h("Operation failed")},onSettled:function(){c(""),b(!1)}}),V=function(G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){switch(q.label){case 0:return G.source?(b(!0),[4,j.mutate({actionId:G.source.ActionId,targets:G.targets})]):[2];case 1:return q.sent(),[2]}})})};return v.useEffect(function(){T&&F&&(r(z.cacheInvalidations),a(z.actions))},[T,F,z]),v.useEffect(function(){P&&R&&(h("Failed to fetch data"),console.error("Fetch error:",P.message))},[P,R]),E.createElement(E.Fragment,null,E.createElement(yn,{title:"Query Cache Invalidations - Real Time"}),["add","edit"].includes(l)&&E.createElement(yn,{title:"".concat(l==="add"?"Add Cache Invalidation":"Edit Cache Invalidation"," - Query Cache Invalidations")}),E.createElement(D,{container:!0,justifyContent:"flex-start",alignItems:"center"},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(vt,{variant:"h5",style:{margin:"0px 0px 10px",fontWeight:600}},"Query Cache Invalidations")),E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(D,{component:Pt,item:!0,md:12,xs:12,style:{height:"70vh"}},E.createElement($n,{loading:O,gridOptions:{theme:Bw},ref:e,rowData:n,columnDefs:S,defaultColDef:w,rowHeight:34,headerHeight:34,animateRows:!0,rowSelection:"single",onRowDoubleClicked:function(G){W(G.data)}})),E.createElement(D,{container:!0,justifyContent:"flex-end",style:{marginTop:10}},E.createElement(D,{item:!0,md:2,xs:12},E.createElement(Ne,{variant:"contained",color:"primary",onClick:L,fullWidth:!0},"ADD NEW"))))),E.createElement(We,{title:l==="add"?"Add Cache Invalidation":"Edit Cache Invalidation",open:["add","edit"].includes(l),handleClose:function(){return c("")}},E.createElement("form",{onSubmit:x(V)},E.createElement(We.Content,{dividers:!0},E.createElement(D,{container:!0,spacing:3},E.createElement(D,{item:!0,xs:12},E.createElement(Ue,{control:M,name:"source",render:function(G){return E.createElement(Ki,{options:o,getOptionLabel:function(q){return"".concat(q.ActionName)},value:G.field.value,onChange:function(q,$){return G.field.onChange($)},renderInput:function(q){return E.createElement(je,tt({},q,{label:"Select Source Action",variant:"outlined"}))},style:{marginTop:16,marginBottom:16},disabled:l==="edit"})}})),E.createElement(D,{item:!0,xs:12},E.createElement(Ue,{control:M,name:"targets",render:function(G){return E.createElement(Ki,{multiple:!0,options:o.filter(function(q){var $;return q.ActionId!==(($=M._formValues.source)===null||$===void 0?void 0:$.ActionId)}),getOptionLabel:function(q){return q.ActionName},value:G.field.value,onChange:function(q,$){G.field.onChange($)},renderInput:function(q){return E.createElement(je,tt({},q,{label:"Select Target Actions",variant:"outlined"}))},style:{marginTop:16,marginBottom:16}})}})))),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return c("")}},"Cancel")),E.createElement(D,{item:!0,md:3,xs:12},E.createElement(Ne,{fullWidth:!0,startIcon:m&&E.createElement(Kt,{size:"1rem"}),disabled:m,variant:"contained",color:"primary",type:"submit"},"Save"))))))))},lxi=function(){return E.createElement(YCi,null)},cxi=function(){var e=ds().option,t=v.useContext(BOt),n=t[0],r=t[1],i=xi([{path:"/",sidebar:function(){return E.createElement("div",null,"Configuration")},main:function(){return E.createElement(VO,{to:"users"})}},{path:"shifts",sidebar:function(){return E.createElement("div",null,"Shifts")},main:function(){return E.createElement(eMi,null)}},{path:"asset",sidebar:function(){return E.createElement("div",null,"Configuration Asset")},main:function(){return E.createElement(PMi,null)}},{path:"users",sidebar:function(){return E.createElement("div",null,"Users")},main:function(){return E.createElement(DMi,null)}},{path:"profiles",sidebar:function(){return E.createElement("div",null,"profiles")},main:function(){return E.createElement(Fyi,null)}},{path:"logs",sidebar:function(){return E.createElement("div",null,"Logs")},main:function(){return E.createElement(byi,null)}},{path:"jobs",sidebar:function(){return E.createElement("div",null,"Jobs")},main:function(){return E.createElement(ryi,null)}},{path:"settings",sidebar:function(){return E.createElement("div",null,"Settings")},main:function(){return E.createElement(lxi,null)}},{path:"real-time/client",sidebar:function(){return E.createElement("div",null,"Client")},main:function(){return E.createElement(rxi,null)}},{path:"real-time/config",sidebar:function(){return E.createElement("div",null,"Config")},main:function(){return E.createElement(sxi,null)}}],n,!0),o=ql(),a=sat(o.breakpoints.down("sm")),s=v.useState(!a),l=s[0],c=s[1];E.useEffect(function(){c(!a)},[a]);var u=function(){return E.createElement(E.Fragment,null,E.createElement(vt,{variant:"h6",style:{padding:o.spacing(2,2,1),color:o.palette.primary.main}},"Configuration"),E.createElement(la,null),E.createElement(tp,{subheader:E.createElement(Bv,{style:{backgroundColor:o.palette.background.paper,color:o.palette.primary.main,fontWeight:600}},"Plant")},E.createElement(ya,{button:!0,selected:e==="shifts",component:Yo,to:"/configuration/shifts"},E.createElement($0,null,E.createElement(D1n,null)),E.createElement(ia,{primary:"Shift / Crews"})),E.createElement(ya,{button:!0,selected:e==="asset",component:Yo,to:"/configuration/asset"},E.createElement($0,null,E.createElement(N1n,null)),E.createElement(ia,{primary:"Assets Tree"}))),E.createElement(la,null),E.createElement(tp,{subheader:E.createElement(Bv,{style:{backgroundColor:o.palette.background.paper,color:o.palette.primary.main,fontWeight:600}},"Security")},E.createElement(ya,{button:!0,selected:e==="users",component:Yo,to:"/configuration/users"},E.createElement($0,null,E.createElement(I1n,null)),E.createElement(ia,{primary:"Users"})),E.createElement(ya,{button:!0,selected:e==="profiles",component:Yo,to:"/configuration/profiles"},E.createElement($0,null,E.createElement(A1n,null)),E.createElement(ia,{primary:"Profiles"}))),E.createElement(la,null),E.createElement("div",null,E.createElement(r,{option:e})),E.createElement(la,null),E.createElement(tp,{subheader:E.createElement(Bv,{style:{backgroundColor:o.palette.background.paper,color:o.palette.primary.main,fontWeight:600}},"Real Time")},E.createElement(ya,{button:!0,selected:e==="real-time/client",component:Yo,to:"/configuration/real-time/client"},E.createElement($0,null,E.createElement(T1n,null)),E.createElement(ia,{primary:"Client"})),E.createElement(ya,{button:!0,selected:e==="real-time/config",component:Yo,to:"/configuration/real-time/config"},E.createElement($0,null,E.createElement(F1n,null)),E.createElement(ia,{primary:"Config"}))),E.createElement(la,null),E.createElement(tp,{subheader:E.createElement(Bv,{style:{backgroundColor:o.palette.background.paper,color:o.palette.primary.main,fontWeight:600}},"Maintenance")},E.createElement(ya,{button:!0,selected:e==="logs",component:Yo,to:"/configuration/logs"},E.createElement($0,null,E.createElement(ist,null)),E.createElement(ia,{primary:"Logs"})),E.createElement(ya,{button:!0,selected:e==="jobs",component:Yo,to:"/configuration/jobs"},E.createElement($0,null,E.createElement(z1n,null)),E.createElement(ia,{primary:"Jobs"})),E.createElement(ya,{button:!0,selected:e==="settings",component:Yo,to:"/configuration/settings"},E.createElement($0,null,E.createElement(_1n,null)),E.createElement(ia,{primary:"Settings"}))))};return v.useEffect(function(){var d=function(p){var h=p.target,g=h.closest(".MuiListItem-root");g&&a&&c(!1)};return document.addEventListener("click",d),function(){document.removeEventListener("click",d)}},[a]),E.createElement("div",{style:{display:"flex",position:"relative"}},E.createElement(iat,{variant:a?"temporary":"permanent",open:l,onClose:function(){return a&&c(!1)},style:{width:l?240:0,flexShrink:0},PaperProps:{style:{width:240,height:"calc(100vh - 64px)",backgroundColor:o.palette.background.paper,top:64,zIndex:1200}}},u()),E.createElement("main",{style:{flexGrow:1,padding:o.spacing(3),transition:o.transitions.create(["padding-left"],{easing:o.transitions.easing.sharp,duration:o.transitions.duration.leavingScreen}),width:"100%"}},E.createElement(aZ,null,i.map(function(d){return E.createElement(ar,{key:"".concat(d.path),path:d.path,element:E.createElement(E.Fragment,null,a&&E.createElement(bn,{onClick:function(){return c(!l)},style:{position:"relative",left:0,top:-10,zIndex:1100,borderRadius:"0 4px 4px 0",color:o.palette.primary.main,backgroundColor:o.palette.background.paper}},l?E.createElement(W6,null):E.createElement(P1n,null)),E.createElement(d.main,null))})}))))},S3e=["#5eaf60","green","#62bd9c","#53a285","#add8e6","#3280ba","blue","#5293c5","#3d556f","#a362bf","#dab0d8","black","#e74b3c","red","#bf3b2c"],bC=xi([],S3e,!0),ppe=null,yj=function(){bC.length===0&&(bC=xi([],S3e,!0),ppe&&bC.length>1&&bC.splice(bC.indexOf(ppe),1));var e=Math.floor(Math.random()*bC.length),t=bC[e];return bC.splice(e,1),ppe=t,t},HOt=v.createContext(void 0),uxi=function(){var e=new Date,t=new Date(e.getTime()-480*60*1e3);return{start:t,end:e}},dxi=function(e){var t=e.children,n=uxi(),r=v.useState({}),i=r[0],o=r[1],a=v.useState(null),s=a[0],l=a[1],c=v.useState([]),u=c[0],d=c[1],p=v.useState(n.start),h=p[0],g=p[1],m=v.useState(n.end),b=m[0],y=m[1],M=v.useState("1 hour"),C=M[0],x=M[1],w=v.useState(!1),S=w[0],A=w[1],z=v.useState(null),O=z[0],T=z[1],R=v.useState({showLegend:!1,showTooltip:!0,animation:!1,theme:"light"}),P=R[0],F=R[1],N=v.useState({}),L=N[0],W=N[1],j=v.useState(null),V=j[0],G=j[1],q=v.useState(function(){var ne=n.end.getTime()-n.start.getTime();return n.start.getTime()+ne*.1}),$=q[0],U=q[1],X=v.useState(function(){var ne=n.end.getTime()-n.start.getTime();return n.start.getTime()+ne*.9}),Q=X[0],re=X[1],ee=v.useState(null),se=ee[0],pe=ee[1],te=v.useMemo(function(){return{viewTags:i,viewSelected:s,views:u,timeScopeStart:h,timeScopeEnd:b,scope:C,shouldRefetchSeries:S,cursorData:O,chartConfig:P,seriesMinMax:L,highlightedSeries:V,cursor1Time:$,cursor2Time:Q,selectedCursor:se}},[i,s,u,h,b,C,S,O,P,L,V,$,Q,se]),ce=E.useCallback(function(){var ne=b.getTime()-h.getTime(),le=h.getTime()+ne*.1,he=h.getTime()+ne*.9;U(le),re(he)},[h,b]);E.useEffect(function(){var ne=b.getTime()-h.getTime(),le=ne*.5,he=$<h.getTime()-le||$>b.getTime()+le,be=Q<h.getTime()-le||Q>b.getTime()+le;(he||be)&&ce()},[h,b,$,Q,ce]);var oe=v.useMemo(function(){return{setViewTags:o,setViewTagsAndRefetch:function(ne){o(ne),A(function(le){return!le})},setViewSelected:l,setViews:d,setTotalScope:function(ne){var le=ne.start,he=ne.end,be=ne.scope;ne.graphPan,le&&g(le),he&&y(he),be&&x(be),A(function(me){return!me})},setCursorData:T,setChartConfig:function(ne){F(function(le){return tt(tt({},le),ne)})},triggerSeriesRefetch:function(){A(function(ne){return!ne})},setSeriesMinMax:W,highlightSeries:function(ne){G(ne)},updateCursor1Time:function(ne){var le=b.getTime()-h.getTime(),he=le*.01,be=Math.max(h.getTime(),Math.min(ne,Q-he));U(be)},updateCursor2Time:function(ne){var le=b.getTime()-h.getTime(),he=le*.01,be=Math.min(b.getTime(),Math.max(ne,$+he));re(be)},setSelectedCursor:pe,resetCursors:ce}},[h,b,$,Q,ce]),ae=v.useMemo(function(){return{state:te,actions:oe}},[te,oe]);return E.createElement(HOt.Provider,{value:ae},t)},Dk=function(){var e=v.useContext(HOt);if(!e)throw new Error("useTrendingContextV2 must be used within TrendingProviderV2");return e},pxi=function(e,t){return v.useMemo(function(){var n={};return!e||e.length===0||e.forEach(function(r,i){var o=t[i];if(!(!o||!r||r.length===0)){for(var a=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,l=0,c=r;l<c.length;l++){var u=c[l];u.value!==null&&u.value!==void 0&&(u.value<a&&(a=u.value),u.value>s&&(s=u.value))}a!==Number.POSITIVE_INFINITY&&s!==Number.NEGATIVE_INFINITY?n[o]={min:a,max:s}:n[o]={min:0,max:0}}}),n},[e,t])},Bm=function(){return localStorage.getItem("ihPath")||"[mssql2022].[IH_100020].[ih]"},VOt=function(){return Ct(void 0,void 0,void 0,function(){var e,t,n;return xt(this,function(r){switch(r.label){case 0:return e=new Ye,t=[],[4,e.callV2(Bm()+".[GetTagsTree]",t)];case 1:return n=r.sent(),[2,n]}})})},hxi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i;return xt(this,function(o){switch(o.label){case 0:return t=new Ye,n=[],r=1e6,e&&e>r&&(e=e-r),n.push({name:"TagFolderId",value:e}),[4,t.callV2(Bm()+".[DeleteTagFolder]",n)];case 1:return i=o.sent(),[2,i]}})})},gte=function(e,t,n,r){return Ct(void 0,void 0,void 0,function(){var i,o,a,s;return xt(this,function(l){switch(l.label){case 0:return i=new Ye,o=[],a=1e6,e&&e>a&&(e=e-a),t&&t>a&&(t=t-a),o.push({name:"TagFolderId",value:e}),o.push({name:"ParentTagFolderId",value:t}),o.push({name:"TagFolderName",value:n}),o.push({name:"IsActive",value:r}),[4,i.callV2(Bm()+".[UpsertTagFolder]",o)];case 1:return s=l.sent(),[2,s]}})})},GOt=function(e,t){return Ct(void 0,void 0,void 0,function(){var n,r,i,o;return xt(this,function(a){switch(a.label){case 0:return n=new Ye,r=[],i=1e6,t&&t>i&&(t=t-i),r.push({name:"TagId",value:e}),r.push({name:"TagFolderId",value:t}),[4,n.callV2(Bm()+".[ChangeTagFolderToTag]",r)];case 1:return o=a.sent(),[2,o]}})})},$Ot=function(e,t,n,r,i,o){return Ct(void 0,void 0,void 0,function(){var a,s,l;return xt(this,function(c){switch(c.label){case 0:return a=new Ye,s=[],s.push({name:"TagId",value:e}),s.push({name:"Alias",value:t}),s.push({name:"Color",value:n}),s.push({name:"MinScale",value:r}),s.push({name:"MaxScale",value:i}),s.push({name:"Unit",value:o}),[4,a.callV2(Bm()+".[SaveTagDefaults]",s)];case 1:return l=c.sent(),[2,l]}})})},UOt=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"Search",value:e}),[4,t.callV2(Bm()+".[GetViews]",n)];case 1:return r=i.sent(),[2,r]}})})},Mj=function(e,t,n){return Ct(void 0,void 0,void 0,function(){var r,i,o;return xt(this,function(a){switch(a.label){case 0:return r=new Ye,i=[],i.push({name:"ViewId",value:e}),i.push({name:"ViewName",value:t}),i.push({name:"isPublic",value:n}),[4,r.callV2(Bm()+".[UpsertView]",i)];case 1:return o=a.sent(),[2,o]}})})},XOt=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"ViewId",value:e}),[4,t.callV2(Bm()+".[DeleteView]",n)];case 1:return r=i.sent(),[2,r]}})})},A3e=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"ViewId",value:e}),[4,t.callV2(Bm()+".[GetViewTags]",n)];case 1:return r=i.sent(),[2,r]}})})},aD=function(e,t,n,r,i,o,a,s){return Ct(void 0,void 0,void 0,function(){var l,c,u;return xt(this,function(d){switch(d.label){case 0:return l=new Ye,c=[],c.push({name:"ViewId",value:e}),c.push({name:"TagId",value:t}),c.push({name:"Color",value:n}),c.push({name:"MinScale",value:r}),c.push({name:"MaxScale",value:i}),c.push({name:"IsVisible",value:o}),c.push({name:"IsAutoScale",value:a}),c.push({name:"Unit",value:s}),[4,l.callV2(Bm()+".[UpsertViewTag]",c)];case 1:return u=d.sent(),[2,u]}})})},YOt=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"ViewId",value:e}),[4,t.callV2(Bm()+".[DeleteAllViewTagsFromView]",n)];case 1:return r=i.sent(),[2,r]}})})},cT=Et(function(e){return{datetimePicker:{alignItems:"center","& .MuiInputBase-root":{color:"black",backgroundColor:"white",borderRadius:e.shape.borderRadius,width:"90%",minWidth:"90%",maxWidth:"90%"},"& .MuiInputBase-input":{fontSize:"13px !important",height:"15px !important",paddingRight:"3px",paddingLeft:"3px"},"& .MuiInput-underline:before":{borderBottomColor:"rgba(0, 0, 0, 0.42)"},padding:0},select:{"& .MuiInput-root":{width:"100%"},"& .MuiInputBase-root":{color:"black",backgroundColor:"white",borderRadius:e.shape.borderRadius,minWidth:"100%"},"& .MuiInputBase-input":{fontSize:"14px !important",height:"15px !important"},"& .MuiInput-underline:before":{borderBottomColor:"rgba(0, 0, 0, 0.42)"},padding:0},labelOptions:{paddingLeft:"2rem",userSelect:"none","& > label":{display:"flex",alignItems:"center",gap:"5px"},'& input[type="checkbox"]':{zoom:1.5}},isPublicCheckbox:{userSelect:"none",paddingLeft:"1rem","& > label":{display:"flex",alignItems:"center",gap:"15px"},'& input[type="checkbox"]':{zoom:1.5}},navigatorButton:{"& .MuiSvgIcon-root":{cursor:"pointer !important",height:"24px",width:"24px","& svg":{fontSize:"1.5rem"}},color:"black"},iconContainer:{display:"flex",justifyContent:"flex-end",alignItems:"center",flex:1},optionContainer:{display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%"},optionLabel:{flexGrow:1},inputCustom:{color:"rgba(0, 0, 0, 0.87)",cursor:"text",fontSize:"0.7rem",boxSizing:"border-box",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',fontWeight:400,lineHeight:1.1876,letterSpacing:"0.00938em","& .MuiOutlinedInput-input":{padding:"10px 10px"}}}}),fxi=Et(function(e){return{checkbox:{userSelect:"none","& .MuiOutlinedInput-root":{height:"51px"},margin:"8px 0px"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},colorPicker:{border:"1px solid #c4c4c4",borderRadius:"4px",padding:"3.5px"}}}),KOt=function(e,t,n,r,i){i===void 0&&(i=!1);var o,a=t;if(i)if(a=new Date,n==="custom")o=e;else{var s=n.split(" "),l=s[0],c=s[1];o=mt(a).subtract(l,c[0]).toDate()}else if(n==="custom"){var u=mt(t).diff(mt(e));o=mt(e)[r](u).toDate()}else{var d=n.split(" "),l=d[0],c=d[1];o=mt(e)[r](l,c[0]).toDate(),a=mt(t)[r](l,c[0]).toDate()}return{newStartDate:o,newEndDate:a}},QOt=function(e){var t=e.title,n=e.message,r=e.open,i=e.onClose,o=e.suffixTitle,a=s2(e,["title","message","open","onClose","suffixTitle"]),s=function(){i("Cancel")},l=function(){i("OK")};return E.createElement(E.Fragment,null,r&&E.createElement(yn,{title:"".concat(t).concat(o?" - ".concat(o):"")}),E.createElement(Qu,tt({maxWidth:"xs",open:r},a),E.createElement(T0,null,t),E.createElement(ru,{dividers:!0},E.createElement(mM,null,n)),E.createElement(Ed,null,E.createElement(Ne,{variant:"contained",size:"small",autoFocus:!0,onClick:s},"Cancel"),E.createElement(Ne,{variant:"contained",size:"small",color:"primary",onClick:l},"Ok"))))},O3e=function(e){var t,n,r,i=e.open,o=e.mode,a=e.handleClose,s=e.view,l=fxi(),c=Gf(),u=v.useState(!1),d=u[0],p=u[1],h=v.useState(!1),g=h[0],m=h[1],b=v.useState(""),y=b[0],M=b[1],C=v.useState(""),x=C[0],w=C[1],S=v.useState(!1),A=S[0],z=S[1],O=Dk(),T=O.state,R=T.viewTags,P=T.views,F=T.viewSelected,N=O.actions.setViewSelected,L=jn({defaultValues:{ViewId:null,ViewName:"",IsPublic:!0}}),W=L.register,j=L.control,V=L.handleSubmit,G=L.reset,q=L.setValue,$=L.watch,U=L.formState.errors,X=$("ViewName"),Q=v.useMemo(function(){switch(o){case"update":return"UPDATE VIEW";case"delete":return"DELETE VIEW";case"create":default:return"SAVE VIEW AS"}},[o]),re=function(oe,ae){ae!=="clickaway"&&m(!1)},ee=ca({mutationFn:function(oe){var ae=oe.viewId,ne=oe.tagId,le=oe.color,he=oe.minScale,be=oe.maxScale,me=oe.isVisible,Me=oe.isAutoScale,Oe=oe.unit;return aD(ae,ne,le,he,be,me,Me,Oe)},onError:function(oe){w(oe.message)}}),se=ca({mutationFn:function(oe){return XOt(oe)},onSuccess:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(oe){switch(oe.label){case 0:return M("The view was deleted successfully"),m(!0),[4,c.invalidateQueries({queryKey:["views-v2"]})];case 1:return oe.sent(),a(!0),[2]}})})},onError:function(oe){w(oe.message)}}),pe=ca({mutationFn:function(oe){return Ct(void 0,[oe],void 0,function(ae){var ne,le,he,be,me,Me=ae.viewId,Oe=ae.viewName,de=ae.isPublic;return xt(this,function(ie){switch(ie.label){case 0:return[4,Mj(Me,Oe,de)];case 1:if(ne=ie.sent(),ne.ok)return le=(me=(be=(he=ne.data.tables[0].rows[0])===null||he===void 0?void 0:he.ViewId)!==null&&be!==void 0?be:Me)!==null&&me!==void 0?me:0,[2,le];throw new Error(ne.message||"Failed to save view")}})})},onSuccess:function(oe){return Ct(void 0,void 0,void 0,function(){var ae,ne;return xt(this,function(le){switch(le.label){case 0:return[4,Promise.allSettled(Object.values(R).sort(function(he,be){return he.order-be.order}).map(function(he){return Ct(void 0,[he],void 0,function(be){var me=be.viewTag;return xt(this,function(Me){switch(Me.label){case 0:return[4,ee.mutate({viewId:oe,tagId:me.TagId,color:me.Color,minScale:me.MinScale,maxScale:me.MaxScale,isVisible:me.IsVisible,isAutoScale:me.IsAutoScale,unit:me.Unit})];case 1:return Me.sent(),[2]}})})}))];case 1:return ae=le.sent(),ne=ae.filter(function(he){return he.status==="rejected"}),ne.length>0?(w("Some tags failed to save"),[3,4]):[3,2];case 2:return M(o==="update"?"The view was updated successfully":"The view was created successfully"),m(!0),[4,c.invalidateQueries({queryKey:["views-v2"]})];case 3:le.sent(),a(!0),le.label=4;case 4:return[2]}})})},onError:function(oe){w(oe.message)}}),te=function(oe){return Ct(void 0,void 0,void 0,function(){var ae;return xt(this,function(ne){switch(ne.label){case 0:return oe!=="OK"?(z(!1),[2]):(z(!1),p(!0),ae=s||F,gi(ae)?[3,2]:[4,se.mutate(ae.ViewId)]);case 1:ne.sent(),ne.label=2;case 2:return p(!1),[2]}})})},ce=function(oe){return Ct(void 0,void 0,void 0,function(){var ae,ne;return xt(this,function(le){switch(le.label){case 0:return p(!0),o!=="delete"?[3,1]:(z(!0),[3,3]);case 1:return ae=o==="update"?s||F:null,[4,pe.mutate({viewId:(ne=ae?.ViewId)!==null&&ne!==void 0?ne:null,viewName:oe.ViewName,isPublic:oe.IsPublic})];case 2:le.sent(),le.label=3;case 3:return p(!1),[2]}})})};return v.useEffect(function(){if(i)if(o==="update"||o==="delete"){var oe=s||F;oe&&G({ViewId:oe.ViewId,ViewName:oe.ViewName,IsPublic:oe.IsPublic})}else o==="create"&&G({ViewId:null,ViewName:"",IsPublic:!0})},[o,s,F,G,i]),E.createElement(E.Fragment,null,E.createElement(We,{open:i,handleClose:function(){return a(!1)},maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:Q},E.createElement("form",{onSubmit:V(ce)},E.createElement(We.Content,{dividers:!0,className:l.modalBody,style:{padding:"15px 30px"}},E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,xs:12},o==="create"&&P.length>0&&F?E.createElement(Ki,{size:"small",id:"list-of-views",options:P,defaultValue:F,getOptionLabel:function(oe){return oe.ViewName},freeSolo:!0,onChange:function(oe,ae){ae&&typeof ae!="string"&&(N(ae),q("ViewName",""))},onInputChange:function(oe,ae){var ne=P.some(function(le){return le.ViewName===ae});ne||q("ViewName",ae)},style:{width:"100%"},renderInput:function(oe){var ae,ne;return E.createElement(je,tt({},oe,W("ViewName",{required:!0,maxLength:100}),{label:"Views",variant:"outlined",error:!!U.ViewName,helperText:((ae=U.ViewName)===null||ae===void 0?void 0:ae.type)==="maxLength"?"Maximum length is 100 characters":((ne=U.ViewName)===null||ne===void 0?void 0:ne.type)==="required"?"View name is required":"",margin:"dense",autoComplete:"off"}))}}):E.createElement(je,tt({},W("ViewName",{required:!0,maxLength:100}),{label:"View Name",variant:"outlined",error:!!U.ViewName,helperText:((t=U.ViewName)===null||t===void 0?void 0:t.type)==="maxLength"?"Maximum length is 100 characters":((n=U.ViewName)===null||n===void 0?void 0:n.type)==="required"?"View name is required":"",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:o==="delete"}))),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"IsPublic",control:j,render:function(oe){var ae=oe.field;return E.createElement("div",{onClick:function(){return o!=="delete"&&ae.onChange(!ae.value)},style:{cursor:o!=="delete"?"pointer":"default"}},E.createElement(je,{fullWidth:!0,variant:"outlined",label:"Public",value:"",disabled:!0,className:l.checkbox,InputLabelProps:{style:{color:o==="delete"?"#a4a4a4":"black",fontWeight:o==="delete"?500:400}},InputProps:{endAdornment:E.createElement(ac,{position:"end"},E.createElement(Qr,{checked:!!ae.value,onChange:function(ne){return ae.onChange(ne.target.checked)},color:"primary",disabled:o==="delete",size:"small",style:{cursor:o!=="delete"?"pointer":"default"}}))}}))}})))),E.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return a(!1)}},"Cancel")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Ne,{fullWidth:!0,startIcon:d&&E.createElement(Kt,{size:"1rem"}),disabled:d||o!=="delete"&&!X?.trim(),variant:"contained",color:o==="delete"?"secondary":"primary",type:"submit"},o==="delete"?"Delete":"Save")))))),E.createElement(QOt,{title:"Confirmation",message:"Are you sure you want to delete permanently the view: ".concat((r=s||F)===null||r===void 0?void 0:r.ViewName,"?"),open:A,onClose:te}),E.createElement(pr,{open:g,autoHideDuration:2500,onClose:re},E.createElement(Pr,{elevation:6,variant:"filled",severity:"success",onClose:re},y)),E.createElement(yt,{error:x,onHide:function(){return w("")}}))},gxi=function(e){switch(e){case"10 min":return 600*1e3;case"1 hour":return 3600*1e3;case"4 hours":return 14400*1e3;case"12 hours":return 720*60*1e3;case"1 day":return 1440*60*1e3;case"10 days":return 14400*60*1e3;case"custom":return null;default:return null}},hpe=function(e,t,n){var r=gxi(n);return r===null?null:t==="start"?{start:e,end:new Date(e.getTime()+r)}:{start:new Date(e.getTime()-r),end:e}},ZOt=E.memo(function(e){var t=e.autoRefresh,n=e.setAutoRefresh,r=e.setChartOptions,i=e.chartInstance,o=Gf(),a=cT(),s=Dk(),l=s.state,c=l.timeScopeStart,u=l.timeScopeEnd,d=l.scope,p=l.viewSelected,h=l.views,g=s.actions,m=g.setTotalScope,b=g.setViewSelected,y=v.useState({showGridLines:!0,showSymbols:!1,smoothLines:!0,showLegend:!1,showTooltip:!0,combinedView:!1,showToolbox:!0,showYAxisNames:!0}),M=y[0],C=y[1],x=v.useState(null),w=x[0],S=x[1],A=v.useState(null),z=A[0],O=A[1],T=v.useState(""),R=T[0],P=T[1],F=function(U,X){X===void 0&&(X=!1);var Q=KOt(c,u,d,U,X);Q&&m({start:Q.newStartDate,end:Q.newEndDate,scope:d})},N=function(U){var X=mt(u).diff(mt(c)),Q=Math.round(X*.2),re=mt(c)[U](Q,"milliseconds").toDate(),ee=mt(u)[U](Q,"milliseconds").toDate();m({start:re,end:ee,scope:d})},L=function(U,X){var Q,re,ee=mt(U).toDate();if(d==="custom"){m((Q={},Q[X]=ee,Q));return}var se=hpe(ee,X,d);m(se?{start:se.start,end:se.end,scope:d}:(re={},re[X]=ee,re))},W=function(U){if(U==="custom"){m({scope:U});return}var X=hpe(c,"start",U);X&&m({start:X.start,end:X.end,scope:U})},j=function(U,X){return Ct(void 0,void 0,void 0,function(){return xt(this,function(Q){switch(Q.label){case 0:return X?(b(X),[4,o.invalidateQueries({queryKey:["viewTags-v2",X.ViewId]})]):[3,2];case 1:Q.sent(),Q.label=2;case 2:return[2]}})})},V=function(U,X){X.stopPropagation(),U.ViewId===p?.ViewId?P("Cannot delete current view"):(O(U),S("delete"))},G=function(U,X){X.stopPropagation(),O(U),S("update")},q=function(){!i||i._disposed||i.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!0})},$=function(){!i||i._disposed||i.dispatchAction({type:"restore"})};return v.useEffect(function(){r&&r(M)},[M,r]),E.createElement(E.Fragment,null,E.createElement(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"space-between",alignItems:"center",style:{height:"auto",minHeight:"50px"}},E.createElement(D,{md:5,item:!0,container:!0,justifyContent:"flex-start",alignItems:"center",wrap:"wrap"},E.createElement(Pt,{elevation:0,style:{padding:"8px 12px",backgroundColor:"white",display:"flex",flexWrap:"wrap",gap:"4px",alignItems:"center",width:"100%",minHeight:"80px"}},E.createElement(D,{item:!0},E.createElement(bn,{color:"primary",onClick:function(){return F("subtract")},className:a.navigatorButton},E.createElement(W6,{fontSize:"large"}))),E.createElement(D,{item:!0},E.createElement(ls,{title:"Navigate backward 20%",arrow:!0},E.createElement(bn,{color:"primary",onClick:function(){return N("subtract")},className:a.navigatorButton},E.createElement(aWn,{fontSize:"large"})))),E.createElement(D,{item:!0},E.createElement(je,{type:"datetime-local",className:a.datetimePicker,label:"Start",variant:"outlined",value:mt(c).format("YYYY-MM-DDTHH:mm:ss"),onChange:function(U){return L(U.target.value,"start")},InputLabelProps:{shrink:!0,style:{marginLeft:"10px"}},InputProps:{max:u}})),E.createElement(D,{item:!0,className:a.select},E.createElement(ja,{variant:"outlined"},E.createElement(cs,{value:d,onChange:function(U){return W(U.target.value)},displayEmpty:!0},E.createElement(lr,{value:"10 min"},"10 min"),E.createElement(lr,{value:"1 hour"},"1 hour"),E.createElement(lr,{value:"4 hours"},"4 hours"),E.createElement(lr,{value:"12 hours"},"12 hours"),E.createElement(lr,{value:"1 day"},"1 day"),E.createElement(lr,{value:"10 days"},"10 days"),E.createElement(lr,{value:"custom"},"Custom")))),E.createElement(D,{item:!0},E.createElement(je,{label:"End",variant:"outlined",className:a.datetimePicker,type:"datetime-local",value:t?"":mt(u).format("YYYY-MM-DDTHH:mm:ss"),onChange:function(U){return L(U.target.value,"end")},InputLabelProps:{shrink:!0,style:{marginLeft:"10px"}}})),E.createElement(D,{item:!0},E.createElement(ls,{title:"Navigate forward 20%",arrow:!0},E.createElement(bn,{color:"primary",onClick:function(){return N("add")},className:a.navigatorButton},E.createElement(rWn,{fontSize:"large"})))),E.createElement(D,{item:!0},E.createElement(bn,{onClick:function(){return F("add")},className:a.navigatorButton},E.createElement(fQ,{fontSize:"large"}))),E.createElement(D,{item:!0},E.createElement(bn,{onClick:function(){return F("subtract",!0)},className:a.navigatorButton},E.createElement(Kxe,{fontSize:"large"}))))),E.createElement(D,{md:4,item:!0},E.createElement(Pt,{elevation:0,style:{padding:"8px 12px",backgroundColor:"white",display:"flex",flexDirection:"column",gap:"8px",minHeight:"80px"}},E.createElement("div",{style:{display:"flex",gap:"12px",alignItems:"stretch"}},E.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",flex:1}},E.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",alignItems:"center"}},E.createElement(So,{checked:M.showGridLines,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Grid"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showGridLines:X})})}}),E.createElement(So,{checked:M.showSymbols,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Symbols"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showSymbols:X})})}}),E.createElement(So,{checked:M.smoothLines,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Smooth"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{smoothLines:X})})}}),E.createElement(So,{checked:M.showTooltip,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Tooltip"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showTooltip:X})})}})),E.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",alignItems:"center"}},E.createElement(So,{checked:M.showToolbox,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Toolbox"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showToolbox:X})})}}),E.createElement(So,{checked:M.showYAxisNames,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Y-Axis Names"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showYAxisNames:X})})}}))),E.createElement(la,{orientation:"vertical",flexItem:!0}),E.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",justifyContent:"space-between"}},E.createElement(So,{checked:M.combinedView,control:E.createElement(dP,{color:"primary",size:"small"}),label:E.createElement("span",{style:{fontSize:"0.75rem",fontWeight:600}},"Combined"),style:{margin:"0"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{combinedView:X})})}}),E.createElement(So,{checked:t,control:E.createElement(dP,{color:"primary",size:"small"}),label:E.createElement("span",{style:{fontSize:"0.75rem",fontWeight:600}},"Auto Refresh"),style:{margin:"0"},onChange:function(U,X){if(X){var Q=new Date;if(d!=="custom"){var re=hpe(Q,"end",d);re&&m({start:re.start,end:re.end,scope:d})}}n(X)}})),E.createElement(la,{orientation:"vertical",flexItem:!0}),E.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",justifyContent:"space-between"}},E.createElement(Ne,{variant:"outlined",size:"small",color:"primary",startIcon:E.createElement(gWn,null),onClick:q,style:{fontSize:"0.7rem",padding:"4px 8px"}},"Zoom"),E.createElement(Ne,{variant:"outlined",size:"small",color:"primary",startIcon:E.createElement(Yxe,null),onClick:$,style:{fontSize:"0.7rem",padding:"4px 8px"}},"Restore"))))),E.createElement(D,{md:3,item:!0,container:!0,justifyContent:"flex-end",alignItems:"center"},E.createElement(Pt,{elevation:0,style:{padding:"8px 12px",backgroundColor:"white",width:"100%",minHeight:"80px"}},E.createElement(Ki,{size:"small",id:"view-selector",options:h,getOptionLabel:function(U){return U.ViewName},value:p,onChange:j,noOptionsText:"No views available",renderOption:function(U){return E.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"}},E.createElement("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis"}},U.ViewName),E.createElement("div",{style:{display:"flex",gap:"2px"}},!U.IsPublic&&E.createElement(ls,{title:"Private",arrow:!0},E.createElement(CB,{fontSize:"small",style:{height:"16px",width:"16px",color:"rgba(0, 0, 0, 0.54)"}})),E.createElement(bn,{size:"small",onClick:function(X){return G(U,X)},style:{padding:"2px"}},E.createElement(Xxe,{fontSize:"small",color:"primary",style:{height:"16px",width:"16px"}})),E.createElement(bn,{size:"small",onClick:function(X){return V(U,X)},style:{padding:"2px"}},E.createElement(Mo,{fontSize:"small",color:"secondary",style:{height:"16px",width:"16px"}}))))},renderInput:function(U){return E.createElement(je,tt({},U,{label:"View",variant:"outlined",size:"small",style:{minWidth:"100%"}}))}})))),w&&E.createElement(O3e,{open:!0,mode:w,view:z,handleClose:function(U){return Ct(void 0,void 0,void 0,function(){return xt(this,function(X){switch(X.label){case 0:return S(null),O(null),U?[4,o.invalidateQueries({queryKey:["views-v2"]})]:[3,2];case 1:X.sent(),X.label=2;case 2:return[2]}})})}}),E.createElement(yt,{error:R,onHide:function(){return P("")}}))});ZOt.displayName="HeaderSectionV2";var mxi=["#5eaf60","green","#62bd9c","#53a285","#add8e6","#3280ba","blue","#5293c5","#3d556f","#a362bf","#dab0d8","black","#e74b3c","red","#bf3b2c"],JOt=Et({swatch:{width:"25px",height:"25px",display:"inline-block",margin:"2px",borderRadius:"4px",cursor:"pointer","&:hover":{transform:"scale(1.1)",transition:"transform 0.1s ease-in-out"}},popover:{display:"flex",flexWrap:"wrap",padding:"10px",maxWidth:"165px"}}),vxi=function(e){var t=e.color,n=e.onSelect,r=JOt();return E.createElement("div",{className:r.swatch,style:{backgroundColor:t},onClick:function(){return n(t)}})},bxi=function(e){var t=e.color,n=e.onColorChange,r=JOt(),i=v.useState(null),o=i[0],a=i[1],s=function(p){a(p.currentTarget)},l=function(){a(null)},c=function(p){n(p),l()},u=!!o,d=u?"color-picker-popover":void 0;return E.createElement("div",null,E.createElement(Ne,{"aria-describedby":d,variant:"outlined",onClick:s,style:{backgroundColor:t,width:"30px",height:"24px",minWidth:"30px",padding:0,margin:"0 auto",border:"1px solid #ccc"}}),E.createElement(A3,{id:d,open:u,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},E.createElement("div",{className:r.popover},mxi.map(function(p){return E.createElement(vxi,{key:p,color:p,onSelect:c})}))))},mte=Et(function(e){return{dataTypeOfTree:{width:"25px",height:"25px",color:"white",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",border:"1px black solid"},root:{alignItems:"center",display:"flex",height:"32px"},customNodeRoot:{listStyleType:"none",margin:0,padding:0,"&:hover":{backgroundColor:"#f2f2f2"}},arrow:{alignItems:"center",cursor:"pointer",display:"flex",height:"24px",justifyContent:"center",width:"24px",transition:"transform linear 0.1s",transform:"rotate(0deg)"},"arrow > div":{alignItems:"center",display:"flex"},"arrow.is-open":{transform:"rotate(90deg)"},filetype:{display:"flex"},label:{paddingInlineStart:"8px"},selected:{backgroundColor:"#e8f0fe"},dragging:{opacity:.5},contextMenu:{fontSize:"14px",backgroundColor:"#fff",borderRadius:"2px",padding:"5px 10px;",width:"140px",height:"auto",margin:"0",position:"fixed",boxShadow:"0 0 20px 0 #ccc",display:"flex",flexDirection:"column"},storyRoot:{display:"grid",height:"100%",gridTemplateRows:"auto 1fr",listStyleType:"none !important"},assetRoot:{boxSizing:"border-box",height:"100%",padding:"32px"},dropTarget:{boxShadow:"0 0 0 1px #1967d2 inset",borderRadius:"1px",backgroundColor:"#DAE4F2"},customDragRoot:{alignItems:"center",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:" 0 12px 24px -6px rgba(0, 0, 0, .25); 0 0 0 1px rgba(0, 0, 0, .08)",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto",padding:"4px 8px",pointerEvents:"none"},icon:{alignItems:"center",display:"flex"},customDragLabel:{alignItems:"center",display:"flex"}}}),yxi=function(e){var t=e.open,n=e.handleClose,r=e.tagNodeSelectedInTree,i=v.useState(),o=i[0],a=i[1],s=v.useState(""),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=function(g){return Ct(void 0,void 0,void 0,function(){var m,b,y,M;return xt(this,function(C){switch(C.label){case 0:return g.preventDefault(),m=Number(r?.parent)||null,b=((M=r?.data)===null||M===void 0?void 0:M.TagTypeCode)==="F"?Number(r.id):m,p(!0),o?[4,gte(null,b,o,!0)]:[3,2];case 1:y=C.sent(),y.ok||c(y.message),C.label=2;case 2:return n(!0),a(""),p(!1),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"lg","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"New folder"},E.createElement(We.Content,null,E.createElement(Tn,null,E.createElement(je,{style:{minWidth:"600px"},id:"outlined-basic",label:"Folder name",variant:"outlined",value:o,onChange:function(g){return a(g.target.value)}}))),E.createElement(We.Actions,null,E.createElement("div",null,E.createElement(Ne,{color:"secondary",variant:"outlined",onClick:function(){return n(!1)}},"Cancel")),E.createElement("div",null,E.createElement(ka,{isLoading:d,onClick:h,color:"primary",variant:"contained"},"Save")))),E.createElement(yt,{error:l,onHide:function(){return c("")}}))},Mxi=function(e){var t=e.open,n=e.handleClose,r=e.tagNodeSelectedInTree,i=v.useState(""),o=i[0],a=i[1],s=v.useState(!1),l=s[0],c=s[1],u=function(d){return Ct(void 0,void 0,void 0,function(){var p,h,g,m;return xt(this,function(b){switch(b.label){case 0:return d.preventDefault(),r?(p=Number(r?.parent)||null,h=r?.text,g=Number(r?.id),m=void 0,c(!0),p?[4,hxi(g)]:[3,2]):[3,5];case 1:return m=b.sent(),m.ok||a(m.message),[3,4];case 2:return[4,gte(g,p,h,!1)];case 3:m=b.sent(),b.label=4;case 4:m.ok||a(m.message),b.label=5;case 5:return n(!0),c(!1),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"lg","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Remove Folder"},E.createElement(We.Content,null,E.createElement(Tn,null,E.createElement(vt,null,"Are you sure you want to remove"," ",E.createElement("strong",null,r?.text)," folder?"))),E.createElement(We.Actions,null,E.createElement("div",null,E.createElement(Ne,{color:"secondary",variant:"outlined",onClick:function(){return n(!1)}},"Cancel")),E.createElement("div",null,E.createElement(ka,{isLoading:l,onClick:u,color:"primary",variant:"contained"},"Remove")))),E.createElement(yt,{error:o,onHide:function(){return a("")}}))},ezt=function(e){var t,n=e.isOpen,r=e.anchorPoint,i=e.tagNodeSelectedInTree,o=e.getTagsTreeData,a=e.setShowContextMenu,s=mte(),l=v.useState(!1),c=l[0],u=l[1],d=v.useState(!1),p=d[0],h=d[1],g=((t=i?.data)===null||t===void 0?void 0:t.TagTypeCode)==="F";return E.createElement(E.Fragment,null,n&&r?E.createElement("ul",{className:s.contextMenu,style:{top:r.y,left:r.x}},E.createElement(lr,{style:{width:"100%",justifyContent:"left"},onClick:function(){return u(!0)}},"New Folder"),i&&g&&E.createElement(lr,{style:{width:"100%",justifyContent:"left"},onClick:function(){return h(!0)}},"Remove Folder")):null,E.createElement(yxi,{open:c,handleClose:function(m){m&&o(),a(!1),u(!1)},tagNodeSelectedInTree:i}),E.createElement(Mxi,{open:p,handleClose:function(m){m&&o(),a(!1),h(!1)},tagNodeSelectedInTree:i}))},tzt=function(e){var t,n,r,i=mte(),o=e.monitorProps.item,a=((t=o.data)===null||t===void 0?void 0:t.TagTypeCode)==="F";return E.createElement("div",{className:i.customDragRoot},E.createElement("div",{className:i.icon},a?E.createElement(B3,null):E.createElement(nJ,{fontSize:"small"})),E.createElement("div",{className:i.customDragLabel},((n=o.data)===null||n===void 0?void 0:n.Alias)||((r=o.data)===null||r===void 0?void 0:r.TagName)))};function nzt(e){var t=[];return e.forEach(function(n){var r={id:n.TagId,parent:n.ParentTagId||0,text:n.TagName,data:n,droppable:n.TagTypeCode==="F"};return t.push(r)}),t}var Cxi=Et(function(e){return{customNodeRoot:{listStyleType:"none",margin:0,padding:0,"&:hover":{backgroundColor:"#f2f2f2"}},root:{alignItems:"center",display:"flex",height:"32px"},selected:{backgroundColor:"#e8f0fe"},dataTypeChip:{width:"20px",height:"20px",color:"white",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"10px",fontWeight:"bold",margin:"0 5px",borderRadius:"3px",border:"1px solid rgba(0, 0, 0, 0.2)"},analogType:{backgroundColor:"#AD48C4"},digitalType:{backgroundColor:"#C46F48"}}}),xxi=`
  ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
`,wxi=function(e){var t,n,r,i,o,a,s,l,c=e.node,u=e.options,d=u.depth,p=u.isOpen,h=u.onToggle,g=u.containerRef,m=e.options,b=e.setOpenTagFolders,y=e.openTagFolders,M=e.handleSelect,C=e.setContextMenuOver,x=e.isSelected,w=Cxi(),S="".concat(w.customNodeRoot," ").concat(w.root," ").concat(x?w.selected:""),A=function(){var O,T;if(m.hasChild||((T=c.data)===null||T===void 0?void 0:T.TagTypeCode)==="F"){if(y[c.id]){var R=tt({},y);delete R[c.id],b(R)}else b(tt(tt({},y),(O={},O[c.id]=c.id,O)));h();return}m.hasChild||M(c)},z=v.useCallback(function(O){O.stopPropagation(),O.preventDefault(),C(c,O)},[c.id,C]);return v.useEffect(function(){var O;return(O=g.current)===null||O===void 0||O.addEventListener("contextmenu",z),function(){var T;(T=g.current)===null||T===void 0||T.removeEventListener("contextmenu",z)}},[]),E.createElement("div",{className:S,onClick:A,style:{paddingLeft:d*20,cursor:"pointer"}},E.createElement("style",null,xxi),E.createElement(E.Fragment,null,m.hasChild?E.createElement("div",null,p?E.createElement(ugt,null):E.createElement(hQ,null)):null,E.createElement("div",null,m.hasChild||((t=c.data)===null||t===void 0?void 0:t.TagTypeCode)==="F"?E.createElement(B3,null):E.createElement(nJ,{fontSize:"small"}))),((n=c.data)===null||n===void 0?void 0:n.TagName)&&E.createElement(E.Fragment,null,((r=c.data)===null||r===void 0?void 0:r.TagTypeCode)&&((i=c.data)===null||i===void 0?void 0:i.TagTypeCode)!=="F"&&E.createElement("div",{className:"".concat(w.dataTypeChip," ").concat(((o=c.data)===null||o===void 0?void 0:o.TagTypeCode)==="A"?w.analogType:w.digitalType)},(a=c.data)===null||a===void 0?void 0:a.TagTypeCode),E.createElement(ls,{title:c.data.TagName,placement:"top",arrow:!0},E.createElement(vt,{variant:"body2"},((s=c.data)===null||s===void 0?void 0:s.Alias)||((l=c.data)===null||l===void 0?void 0:l.TagName)))))},Sxi=function(e){var t=e.tagNodes,n=e.externalSearchTerm,r=e.onSearchTermChange,i=v.useState(n||""),o=i[0],a=i[1],s=v.useState([]),l=s[0],c=s[1],u=v.useState(!1),d=u[0],p=u[1],h=v.useState(-1),g=h[0],m=h[1],b=v.useRef(null),y=v.useRef([]),M=v.useMemo(function(){var O=[],T=new Map;t.forEach(function(P){P.id!==void 0&&P.id!==null&&T.set(P.id,P)});var R=function(P){for(var F=[],N=T.get(P);N&&N.parent!==1e6;)F.unshift(N.text),N=T.get(N.parent);return N&&N.parent===1e6&&F.unshift(N.text),F};return t.forEach(function(P){var F,N;if(!(P.id===void 0||P.id===null||!P.text)&&((F=P.data)===null||F===void 0?void 0:F.TagTypeCode)!=="F"){var L=R(P.id),W=L.join(" > "),j=t.some(function(V){return V.parent===P.id});O.push({id:P.id,name:P.text,path:W,isDroppable:P.droppable||!1,hasChildren:j,tagTypeCode:((N=P.data)===null||N===void 0?void 0:N.TagTypeCode)||"",node:P})}}),O},[t]),C=function(O){var T=O.toLowerCase();return M.filter(function(R){return R.name.toLowerCase().includes(T)})};E.useEffect(function(){n!==void 0&&n!==o&&a(n)},[n]);var x=function(O){var T=O.target.value;if(a(T),r?.(T),b.current&&clearTimeout(b.current),T.trim()===""||T.length<2){c([]),p(!1),m(-1);return}b.current=setTimeout(function(){var R=C(T);c(R),p(R.length>0);var P=R.length>0?0:-1;m(P),y.current=new Array(R.length).fill(null)},250)},w=function(O){if(O.key==="Escape"){d&&(a(""),c([]),p(!1),m(-1));return}if(d&&l.length>0){if(O.key==="ArrowDown"){O.preventDefault();var T=g<l.length-1?g+1:0;m(T),setTimeout(function(){return S(T)},0)}else if(O.key==="ArrowUp"){O.preventDefault();var R=g>0?g-1:l.length-1;m(R),setTimeout(function(){return S(R)},0)}else if(O.key==="Enter"&&g>=0){O.preventDefault();var P=l[g];return P}}},S=function(O){var T;y.current[O]&&((T=y.current[O])===null||T===void 0||T.scrollIntoView({behavior:"smooth",block:"nearest"}))},A=function(){a(""),c([]),p(!1),m(-1),r?.("")},z=function(O){if(a(O),r?.(O),b.current&&clearTimeout(b.current),O.trim()===""||O.length<2){c([]),p(!1),m(-1);return}b.current=setTimeout(function(){var T=C(O);c(T),p(T.length>0);var R=T.length>0?0:-1;m(R),y.current=new Array(T.length).fill(null)},250)};return{searchTerm:o,searchResults:l,showSearchResults:d,focusedSearchIndex:g,searchResultsRefs:y,handleSearchChange:x,handleKeyDown:w,scrollFocusedItemIntoView:S,clearSearch:A,triggerSearch:z}},Axi=Et(function(e){return{dataTypeChip:{width:"20px",height:"20px",color:"white",display:"inline-flex",justifyContent:"center",alignItems:"center",fontSize:"10px",fontWeight:"bold",borderRadius:"3px",marginRight:"8px",border:"1px solid rgba(0, 0, 0, 0.2)"},analogType:{backgroundColor:"#AD48C4"},digitalType:{backgroundColor:"#C46F48"}}}),Oxi=function(e){var t=e.tagNodes,n=e.onSearchResultClick,r=Axi(),i=v.useRef(null),o=v.useState(null),a=o[0],s=o[1],l=Sxi({tagNodes:t}),c=l.searchTerm,u=l.searchResults,d=l.showSearchResults,p=l.focusedSearchIndex,h=l.searchResultsRefs,g=l.handleSearchChange,m=l.handleKeyDown,b=l.clearSearch,y=function(w){n(w),b(),s(null)},M=function(w){var S=m(w);S&&y(S)},C=function(w){g(w),!a&&i.current&&s(i.current)},x=function(){s(null)};return E.createElement("div",{onKeyDown:M,style:{marginBottom:16}},E.createElement(je,{placeholder:"Search tags (min. 2 characters)...",variant:"outlined",size:"small",fullWidth:!0,value:c,onChange:C,inputRef:i,InputProps:{startAdornment:E.createElement(ac,{position:"start"},E.createElement(N3,{color:"action"}))}}),E.createElement(A3,{open:d&&!!a,anchorEl:a,onClose:x,disableAutoFocus:!0,disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{width:a?.offsetWidth,maxHeight:300}}},E.createElement(LMe,{dense:!0},u.map(function(w,S){return E.createElement(lr,{key:w.id,ref:function(A){h.current&&(h.current[S]=A)},selected:S===p,onClick:function(){return y(w)}},E.createElement($0,null,w.hasChildren||w.isDroppable?E.createElement(B3,{color:"primary",fontSize:"small"}):E.createElement(nJ,{color:"primary",fontSize:"small"})),E.createElement(ia,{primary:E.createElement("div",{style:{display:"flex",alignItems:"center"}},w.tagTypeCode&&w.tagTypeCode!=="F"&&E.createElement("span",{className:"".concat(r.dataTypeChip," ").concat(w.tagTypeCode==="A"?r.analogType:r.digitalType)},w.tagTypeCode),E.createElement("span",null,w.name)),secondary:w.path,secondaryTypographyProps:{variant:"caption",color:"textSecondary",style:{fontStyle:"italic"}}}))}))))},zxi=function(){return jl({queryKey:["tagsTree-v2"],queryFn:function(){return Ct(void 0,void 0,void 0,function(){var e;return xt(this,function(t){switch(t.label){case 0:return[4,VOt()];case 1:if(e=t.sent(),e.ok)return[2,e.data.tables[0].rows];throw new Error(e.message||"Failed to fetch tags tree")}})})},enabled:!1})},Txi=Et(function(e){return{assetRoot:{boxSizing:"border-box",height:"100%",padding:"32px"},dropTarget:{boxShadow:"0 0 0 1px #1967d2 inset",borderRadius:"1px",backgroundColor:"#DAE4F2"}}}),Exi=function(e){var t=e.open,n=e.handleClose,r=e.onTagSelect,i=Txi(),o=v.useState(!1),a=o[0],s=o[1],l=v.useState(""),c=l[0],u=l[1],d=v.useState([]),p=d[0],h=d[1],g=v.useState(null),m=g[0],b=g[1],y=v.useState(null),M=y[0],C=y[1],x=v.useState(!1),w=x[0],S=x[1],A=1e6,z=v.useState({}),O=z[0],T=z[1],R=v.useState([]),P=R[0],F=R[1],N=function(ce,oe){oe.preventDefault();var ae=oe.clientY,ne=oe.clientX;C({x:ne,y:ae}),F([ce]),S(!0);var le=p.find(function(he){var be;return((be=he.data)===null||be===void 0?void 0:be.TagId)===ce.id});le&&b(le)},L=zxi(),W=L.data,j=L.isLoading,V=L.isError,G=L.error,q=L.isSuccess,$=L.isFetched,U=L.refetch,X=ca({mutationFn:function(ce){var oe=ce.tagFolderId,ae=ce.parentTagFolderId,ne=ce.tagFolderName,le=ce.isActive;return gte(oe,ae,ne,le)},onError:function(ce){u(ce.message)}}),Q=ca({mutationFn:function(ce){var oe=ce.tagId,ae=ce.tagFolderId;return GOt(oe,ae)},onError:function(ce){u(ce.message)}}),re=v.useMemo(function(){return Object.keys(O).map(function(ce){return Number.parseInt(ce)})},[O]),ee=function(ce,oe){return Ct(void 0,void 0,void 0,function(){var ae,ne,le,he;return xt(this,function(be){switch(be.label){case 0:return s(!0),oe.dragSource?(ae=Number(oe.dragSource.id),ne=Number((le=oe.dropTarget)===null||le===void 0?void 0:le.id)||null,ae===ne?(s(!1),[2]):((he=oe.dragSource.data)===null||he===void 0?void 0:he.TagTypeCode)!=="F"?[3,2]:[4,X.mutate({tagFolderId:ae,parentTagFolderId:ne,tagFolderName:oe.dragSource.text,isActive:!0})]):[3,5];case 1:return be.sent(),[3,4];case 2:return[4,Q.mutate({tagId:ae,tagFolderId:ne})];case 3:be.sent(),be.label=4;case 4:h(ce),be.label=5;case 5:return s(!1),[2]}})})},se=function(ce){ce.data&&ce.data.TagTypeCode!=="F"&&r(ce.data)},pe=function(ce){w&&S(!1)},te=function(ce){var oe=function(le){var he=[],be=function(me){var Me=p.find(function(Oe){return Oe.id===me});Me&&Me.parent!==A?(he.unshift(me),be(Me.parent)):Me&&he.unshift(me)};return be(le),he},ae=oe(ce.id),ne=tt({},O);ae.forEach(function(le){ne[le]=le}),T(ne),F([ce.node]),setTimeout(function(){var le=document.querySelector('[data-node-id="'.concat(ce.id,'"]'));le&&le.scrollIntoView({behavior:"smooth",block:"center"})},300)};return v.useEffect(function(){t&&U()},[t]),v.useEffect(function(){if(t&&W){var ce=nzt(W);ce=ce.map(function(ae){return ae.parent===0?tt(tt({},ae),{parent:A}):ae});var oe=new Set(ce.map(function(ae){return ae.id}));ce=ce.map(function(ae){return ae.parent!==A&&!oe.has(ae.parent)?tt(tt({},ae),{parent:A}):ae}),ce=ce.filter(function(ae){return ae.id!==A}),ce=ce.filter(function(ae){return ae.id!==0}),h(ce)}},[q,$,t]),v.useEffect(function(){G&&V&&u(G instanceof Error?G.message:String(G))},[G,V]),E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:n,maxWidth:"lg","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Tags"},E.createElement(We.Content,null,E.createElement("div",{style:{display:t?"block":"none",minHeight:"700px",minWidth:"800px"},onClick:pe},E.createElement(Oxi,{tagNodes:p,onSearchResultClick:te}),E.createElement("div",{style:{overflowY:"auto",maxHeight:"650px"}},a||j?E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"100px"}},E.createElement(Kt,{size:"2rem"})):E.createElement(MZ,{backend:CZ},E.createElement(tJ,{classes:{root:i.assetRoot,dropTarget:i.dropTarget},initialOpen:re,tree:p,rootId:A,onDrop:ee,canDrop:function(ce,oe){return!P.some(function(ae){return Number(ae.id)===Number(oe.dropTargetId)})},render:function(ce,oe){var ae=P.some(function(ne){return Number(ne.id)===Number(ce.id)});return E.createElement(wxi,{setContextMenuOver:N,node:ce,options:oe,isSelected:ae,openTagFolders:O,setOpenTagFolders:T,handleSelect:se})},dragPreviewRender:function(ce){return E.createElement(tzt,{monitorProps:ce})}})))),E.createElement(ezt,{anchorPoint:M,isOpen:w,setShowContextMenu:S,tagNodeSelectedInTree:m,getTagsTreeData:function(){return U()}}),E.createElement(yt,{error:c,onHide:function(){return u("")}}))))},Rxi=function(e){var t=e.open,n=e.handleClose,r=Gf(),i=Dk(),o=i.state,a=o.views,s=o.viewSelected,l=i.actions.setViewSelected,c=cT(),u=v.useState(null),d=u[0],p=u[1],h=v.useState(null),g=h[0],m=h[1],b=v.useState(null),y=b[0],M=b[1],C=v.useState(!1),x=C[0],w=C[1],S=v.useState(!1),A=S[0],z=S[1],O=v.useState(""),T=O[0],R=O[1],P=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(V){switch(V.label){case 0:return z(!0),y?(l(y),[4,r.invalidateQueries({queryKey:["viewTags-v2",y.ViewId]})]):[3,2];case 1:V.sent(),V.label=2;case 2:return z(!1),n(),[2]}})})},F=function(V,G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){return G.stopPropagation(),V.ViewId===s?.ViewId?R("Cannot delete current view"):(m(V),p("delete")),[2]})})},N=function(V,G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){return G.stopPropagation(),m(V),p("update"),[2]})})},L=function(){w(function(V){return!V})},W=v.useMemo(function(){return a.filter(function(V){return V.IsPublic===!0})},[a]),j=x?a:W;return E.createElement("div",null,E.createElement(We,{open:t,handleClose:n,maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Views"},E.createElement(We.Content,{dividers:!0},E.createElement(D,{container:!0},a.length?E.createElement(E.Fragment,null,E.createElement(D,{item:!0,md:12},E.createElement("div",{className:c.isPublicCheckbox,style:{paddingBottom:"1rem"}},E.createElement("label",{htmlFor:""},E.createElement("input",{type:"checkbox",checked:x,onChange:L}),E.createElement(vt,null,"All Views")))),E.createElement(D,{item:!0,md:12},E.createElement(Ki,{size:"small",id:"list-of-views",noOptionsText:x?"No views detected, please create a new view":"No public views detected, please create a new view",options:j,getOptionLabel:function(V){return V.ViewName},onChange:function(V,G){return M(G)},defaultValue:y||s,style:{width:"100%"},renderOption:function(V){return E.createElement("div",{className:c.optionContainer},E.createElement("div",{className:c.optionLabel},V.ViewName),E.createElement("div",{className:c.iconContainer},V.IsPublic?"":E.createElement(E.Fragment,null,E.createElement(ls,{title:"Private",arrow:!0},E.createElement(CB,{fontSize:"small",style:{color:"black",height:"18px",width:"18px",cursor:"auto"}}))),E.createElement(bn,{onClick:function(G){return N(V,G)}},E.createElement(Xxe,{fontSize:"small",color:"primary",style:{height:"18px",width:"18px",cursor:"pointer"}})),E.createElement(bn,{onClick:function(G){return F(V,G)}},E.createElement(Mo,{fontSize:"small",color:"secondary",style:{height:"18px",width:"18px",cursor:"pointer"}}))))},renderInput:function(V){return E.createElement(je,tt({},V,{label:"Views",variant:"outlined"}))}}))):E.createElement(vt,null,"No views detected, please add one"))),E.createElement(We.Actions,null,E.createElement("div",{style:{paddingTop:"1rem"}},E.createElement(Ne,{variant:"outlined",style:{marginRight:"1rem"},color:"secondary",onClick:n},"Cancel"),a.length?E.createElement(ka,{onClick:P,variant:"contained",color:"primary",isLoading:A,style:{marginRight:"1rem"},disabled:!y},"Apply"):E.createElement(Ne,{variant:"contained",style:{marginRight:"1rem"},color:"primary",onClick:n},"Ok")))),d&&E.createElement(O3e,{open:!0,mode:d,view:g,handleClose:function(V){return Ct(void 0,void 0,void 0,function(){return xt(this,function(G){switch(G.label){case 0:return p(null),m(null),V?[4,r.invalidateQueries({queryKey:["views-v2"]})]:[3,2];case 1:G.sent(),G.label=2;case 2:return[2]}})})}}),E.createElement(yt,{error:T,onHide:function(){return R("")}}))},Ixi=function(){var e=Gf(),t=ws(),n=t.registerConfig,r=t.showContextMenu,i=Dk(),o=i.state,a=o.viewTags,s=o.cursorData,l=o.viewSelected;o.views;var c=o.seriesMinMax,u=i.actions,d=u.setViewTags,p=u.setViewTagsAndRefetch;u.setViewSelected,u.setViews;var h=u.highlightSeries,g=v.useMemo(function(){return new Intl.NumberFormat("en-US",{minimumFractionDigits:1,maximumFractionDigits:1})},[]),m=v.useMemo(function(){return new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:0})},[]),b=v.useState(""),y=b[0],M=b[1],C=v.useState(!1);C[0];var x=C[1],w=v.useState(null);w[0];var S=w[1],A=v.useState(!1),z=A[0],O=A[1],T=v.useState(!1),R=T[0],P=T[1],F=v.useState(!1),N=F[0],L=F[1],W=v.useState(""),j=W[0],V=W[1],G=v.useState(null),q=G[0],$=G[1],U=v.useState(null),X=U[0],Q=U[1],re=ca({mutationFn:function(we){return YOt(we)},onError:function(we){M(we.message)}}),ee=ca({mutationFn:function(we){var ve=we.viewId,De=we.viewName,ze=we.isPublic;return Mj(ve,De,ze)},onSuccess:function(){return Ct(void 0,void 0,void 0,function(){var we,ve,De;return xt(this,function(ze){switch(ze.label){case 0:return[4,re.mutate((De=l?.ViewId)!==null&&De!==void 0?De:0)];case 1:return ze.sent(),[4,Promise.allSettled(Object.values(a).sort(function(Ve,Ke){return Ke.order-Ve.order}).map(function(Ve){var Ke,et=Ve.viewTag;return aD((Ke=l?.ViewId)!==null&&Ke!==void 0?Ke:0,et.TagId,et.Color,et.MinScale,et.MaxScale,et.IsVisible,et.IsAutoScale,et.Unit)}))];case 2:return we=ze.sent(),ve=we.filter(function(Ve){return Ve.status==="rejected"}),ve.length>0?M("Some tags failed to save"):V("View saved successfully"),[2]}})})},onError:function(we){M(we.message)}}),se=ca({mutationFn:function(we){var ve=we.viewId,De=we.tagId,ze=we.color,Ve=we.minScale,Ke=we.maxScale,et=we.isVisible,it=we.isAutoScale,Ft=we.unit;return aD(ve,De,ze,Ve,Ke,et,it,Ft)},onError:function(we){M(we.message)}}),pe=ca({mutationFn:function(we){var ve=we.tagId,De=we.alias,ze=we.color,Ve=we.minScale,Ke=we.maxScale,et=we.unit;return $Ot(ve,De,ze,Ve,Ke,et)},onSuccess:function(){V("Tag defaults saved successfully")},onError:function(we){M(we.message)}}),te=v.useCallback(function(we){if(!a[we]){M("Tag ".concat(we," not found. The view may have changed."));return}var ve=a,De=we;ve[De];var ze=s2(ve,[typeof De=="symbol"?De:De+""]);d(ze)},[a,d]),ce=v.useCallback(function(we){var ve,De,ze,Ve=Math.max.apply(Math,xi(xi([],Object.values(a).map(function(Ft){return Ft.order}),!1),[0],!1))+1,Ke=we.TagTypeCode==="A"||we.TagTypeCode==="D"?we.TagTypeCode:"A",et={TagId:we.TagId,TagName:we.TagName,TagType:Ke,Alias:we.Alias||we.TagName,Color:we.Color||yj(),MinScale:(De=we.MinScale)!==null&&De!==void 0?De:0,MaxScale:(ze=we.MaxScale)!==null&&ze!==void 0?ze:100,IsAutoScale:!0,IsVisible:!0,Unit:we.Unit||""},it=tt(tt({},a),(ve={},ve[we.TagId]={viewTag:et,order:Ve},ve));p(it)},[a,p]),oe=function(we){var ve=a[we.TagId];if(ve){M("".concat(we.TagName," is already selected"));return}ce(we)},ae=v.useCallback(function(we,ve){if(we!==ve){var De=Object.entries(a).map(function(Ft){var Dt=Ft[0],Qn=Ft[1];return tt({tagId:Number(Dt)},Qn)}).sort(function(Ft,Dt){return Ft.order-Dt.order}),ze=De.findIndex(function(Ft){return Ft.tagId===we}),Ve=De.findIndex(function(Ft){return Ft.tagId===ve});if(!(ze===-1||Ve===-1)){var Ke=xi([],De,!0),et=Ke.splice(ze,1)[0];Ke.splice(Ve,0,et);var it={};Ke.forEach(function(Ft,Dt){it[Ft.tagId]={viewTag:Ft.viewTag,order:Dt}}),d(it)}}},[a,d]),ne=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(we){switch(we.label){case 0:return l?[3,1]:(P(!0),[2]);case 1:return x(!0),l?.ViewId?[4,ee.mutate({viewId:l?.ViewId,viewName:l.ViewName,isPublic:l.IsPublic})]:[3,3];case 2:we.sent(),we.label=3;case 3:x(!1),we.label=4;case 4:return[2]}})})},le=function(we){return Ct(void 0,void 0,void 0,function(){var ve,De,ze,Ve,Ke,et,it,Ft,Dt;return xt(this,function(Qn){switch(Qn.label){case 0:return l&&we!==null?(ve=a[we].viewTag,De=ve.TagId,ze=ve.Alias,Ve=ve.Color,Ke=ve.MinScale,et=ve.MaxScale,it=ve.Unit,Ft=ve.IsVisible,Dt=ve.IsAutoScale,[4,pe.mutate({tagId:De,alias:ze,color:Ve,minScale:Ke,maxScale:et,unit:it})]):[3,3];case 1:return Qn.sent(),[4,se.mutate({viewId:l?.ViewId,tagId:De,color:Ve,minScale:Ke,maxScale:et,isVisible:Ft,isAutoScale:Dt,unit:it})];case 2:Qn.sent(),Qn.label=3;case 3:return[2]}})})},he=function(we,ve){ve!=="clickaway"&&V("")},be=function(we){var ve=[];return we&&(ve.push({key:"delete",name:"Remove Tag",onClick:function(){gi(we)||(Ae.current(we.TagId),S(null))}}),ve.push({key:"saveDefault",name:"Save Default To Tag",onClick:function(){le(we.TagId)}})),ve=ve.concat([{key:"add",name:"Tags Tree",onClick:function(){O(!0)}},{key:"saveView",name:"Save View",onClick:function(){ne()}},{key:"saveViewAs",name:"Save View as",onClick:function(){P(!0)}},{key:"loadView",name:"Load View",onClick:function(){L(!0)}}]),ve};v.useEffect(function(){n({id:"chartContextV2",getOptions:be})},[]);var me=v.useCallback(function(we){var ve;we.preventDefault();var De=we.target,ze=De.closest("[data-id]");if(ze){var Ve=ze.getAttribute("data-id");if(Ve){var Ke=Number(Ve),et=ue.current,it=(ve=et[Ke])===null||ve===void 0?void 0:ve.viewTag;if(it){S(Ke),r(we,it,"chartContextV2");return}}}r(we,null,"chartContextV2")},[r]),Me=v.useMemo(function(){var we,ve;if(!s)return{};var De={};for(var ze in s.tagValues){var Ve=s.tagValues[ze];De[ze]={y1:Ve.y1||0,y2:Ve.y2||0,y2y1:Ve.y2y1||0,min:((we=Ve.pmin)===null||we===void 0?void 0:we.y)||0,max:((ve=Ve.pmax)===null||ve===void 0?void 0:ve.y)||0}}return De},[s]),Oe=v.useMemo(function(){return Object.values(a).filter(function(we){return we&&we.viewTag}).sort(function(we,ve){return ve.order-we.order}).map(function(we){var ve=we.viewTag,De=Me[ve.TagId]||{y1:0,y2:0,y2y1:0},ze=c[ve.TagId]||{min:0,max:0};return{id:ve.TagId,visible:ve.IsVisible,type:ve.TagType,alias:ve.Alias?ve.Alias:ve.TagName,tagName:ve.TagName,color:ve.Color,minScale:ve.MinScale,maxScale:ve.MaxScale,autoScale:ve.IsAutoScale,unit:ve.Unit,y1:De.y1,y2:De.y2,y2y1:De.y2y1,min:ze.min,max:ze.max,overallMin:ze.min,overallMax:ze.max}})},[a,Me,c]),de=v.useCallback(function(we,ve){var De,ze=we.id,Ve=we.minScale!==ve.minScale,Ke=we.maxScale!==ve.maxScale,et=Ve||Ke;return d(tt(tt({},a),(De={},De[ze]=tt(tt({},a[ze]),{viewTag:tt(tt({},a[ze].viewTag),{Alias:we.alias,MinScale:we.minScale,MaxScale:we.maxScale,IsAutoScale:et?!1:we.autoScale,Unit:we.unit,IsVisible:we.visible})}),De))),et&&(we.autoScale=!1),we},[a,d]),ie=v.useCallback(function(we){var ve=we.value;return E.createElement(gM,{label:ve,size:"small",style:{backgroundColor:ve==="A"?"#AD48C4":"#C46F48",color:"white",fontWeight:"bold",fontSize:"0.7rem",height:"20px"}})},[]),ue=E.useRef(a),Ae=E.useRef(te);E.useEffect(function(){ue.current=a},[a]),E.useEffect(function(){Ae.current=te},[te]);var Ce=v.useCallback(function(we,ve){var De,ze=ue.current;ze[we]&&d(tt(tt({},ze),(De={},De[we]=tt(tt({},ze[we]),{viewTag:tt(tt({},ze[we].viewTag),{Color:ve})}),De)))},[d]),Ee=v.useCallback(function(we){var ve=Number(we.row.id);return E.createElement(bxi,{color:we.value,onColorChange:function(De){return Ce(ve,De)}})},[Ce]),Ge=v.useCallback(function(we){return E.createElement(ls,{title:we.row.tagName,placement:"top",arrow:!0},E.createElement("div",{style:{width:"100%",cursor:"pointer"}},we.value))},[]),_e=v.useCallback(function(we){var ve=Number(we.row.id),De=function(ze){var Ve,Ke=ue.current;Ke[ve]&&d(tt(tt({},Ke),(Ve={},Ve[ve]=tt(tt({},Ke[ve]),{viewTag:tt(tt({},Ke[ve].viewTag),{IsVisible:ze.target.checked})}),Ve)))};return E.createElement(Qr,{checked:we.value,onChange:De,color:"primary",size:"small",style:{cursor:"pointer"}})},[d]),Ie=v.useCallback(function(we){var ve=Number(we.row.id),De=function(ze){var Ve,Ke=ue.current;Ke[ve]&&d(tt(tt({},Ke),(Ve={},Ve[ve]=tt(tt({},Ke[ve]),{viewTag:tt(tt({},Ke[ve].viewTag),{IsAutoScale:ze.target.checked})}),Ve)))};return E.createElement(Qr,{checked:we.value,onChange:De,color:"primary",size:"small",style:{cursor:"pointer"}})},[d]),Le=v.useMemo(function(){return[{field:"addTag",headerName:"",width:50,sortable:!1,filterable:!1,disableColumnMenu:!0,renderHeader:function(){return E.createElement(ls,{title:"Add Tag",arrow:!0},E.createElement(bn,{size:"small",onClick:function(){return O(!0)},color:"primary",style:{padding:"4px",cursor:"pointer"}},E.createElement(Jo,{fontSize:"small",style:{cursor:"pointer"}})))},renderCell:function(){return E.createElement("div",{style:{cursor:"grab",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center"}},E.createElement(bWn,{fontSize:"small",style:{color:"#666"}}))}},{field:"visible",headerName:"Visible",width:70,type:"boolean",editable:!1,renderCell:_e},{field:"type",headerName:"Type",width:60,renderCell:ie},{field:"alias",headerName:"Alias/TagName",width:320,editable:!0,renderCell:Ge},{field:"color",headerName:"Color",width:80,renderCell:Ee,editable:!1},{field:"minScale",headerName:"Min Scale",width:90,editable:!0,valueFormatter:function(we){return we==null?"":m.format(Number(we))},cellClassName:function(we){return we.row.autoScale?"disabled-cell":""},preProcessEditCellProps:function(we){if(we.row.autoScale)return tt(tt({},we.props),{error:!0});var ve=String(we.props.value).trim();if(ve==="")return we.props;var De=/^-?\d+\.?\d*$|^-?\d*\.\d+$/;if(!De.test(ve))return tt(tt({},we.props),{error:!0});var ze=ve.replace(/,/g,""),Ve=Number.parseFloat(ze);return Number.isNaN(Ve)?tt(tt({},we.props),{error:!0}):we.props}},{field:"maxScale",headerName:"Max Scale",width:90,editable:!0,valueFormatter:function(we){return we==null?"":m.format(Number(we))},cellClassName:function(we){return we.row.autoScale?"disabled-cell":""},preProcessEditCellProps:function(we){if(we.row.autoScale)return tt(tt({},we.props),{error:!0});var ve=String(we.props.value).trim();if(ve==="")return we.props;var De=/^-?\d+\.?\d*$|^-?\d*\.\d+$/;if(!De.test(ve))return tt(tt({},we.props),{error:!0});var ze=ve.replace(/,/g,""),Ve=Number.parseFloat(ze);return Number.isNaN(Ve)?tt(tt({},we.props),{error:!0}):we.props}},{field:"autoScale",headerName:"Auto",width:70,type:"boolean",editable:!1,renderCell:Ie},{field:"unit",headerName:"Unit",width:70,editable:!0},{field:"y1",headerName:"Y1",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"y2",headerName:"Y2",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"y2y1",headerName:"Y2-Y1",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"min",headerName:"Min",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"max",headerName:"Max",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"actions",headerName:"",width:80,sortable:!1,filterable:!1,disableColumnMenu:!0,renderCell:function(we){return E.createElement("div",{style:{display:"flex",gap:"2px",alignItems:"center"}},E.createElement(ls,{title:"Save Default To Tag",arrow:!0},E.createElement(bn,{size:"small",onClick:function(){return le(Number(we.row.id))},color:"primary",style:{padding:"4px",cursor:"pointer"}},E.createElement(S1t,{fontSize:"small",style:{cursor:"pointer"}}))),E.createElement(ls,{title:"Remove Tag",arrow:!0},E.createElement(bn,{size:"small",onClick:function(){return te(Number(we.row.id))},color:"secondary",style:{padding:"4px",cursor:"pointer"}},E.createElement(Mo,{fontSize:"small",style:{cursor:"pointer"}}))))}}]},[_e,Ie,ie,Ee,Ge,te,le,ae,q,X,$,Q,g,m]);return E.createElement(Pt,{style:{height:"100%",width:"100%"},onContextMenu:me},E.createElement(jKn,{rows:Oe,columns:Le,disableRowSelectionOnClick:!0,density:"compact",processRowUpdate:de,onProcessRowUpdateError:function(we){M("Error updating row: ".concat(we.message))},hideFooter:!0,getRowClassName:function(we){return q===we.id?"dragging-row":X===we.id?"drag-over-row":""},slotProps:{row:{draggable:!0,onDragStart:function(we){we.stopPropagation();var ve=we.currentTarget,De=ve.getAttribute("data-id");De&&($(Number(De)),we.dataTransfer.effectAllowed="move")},onDragEnd:function(we){we.stopPropagation(),$(null),Q(null)},onDragOver:function(we){we.preventDefault(),we.stopPropagation(),we.dataTransfer.dropEffect="move";var ve=we.currentTarget,De=ve.getAttribute("data-id");De&&Number(De)!==q&&Q(Number(De))},onDragLeave:function(we){we.stopPropagation(),Q(null)},onDrop:function(we){we.preventDefault(),we.stopPropagation();var ve=we.currentTarget,De=ve.getAttribute("data-id");De&&q!==null&&Number(De)!==q&&ae(q,Number(De)),$(null),Q(null)},onMouseEnter:function(we){var ve=we.currentTarget,De=ve.getAttribute("data-id");if(De){var ze=Oe.find(function(Ve){return Ve.id===Number(De)});ze&&h(ze.alias||ze.tagName)}},onMouseLeave:function(){h(null)}}},sx:{"& .MuiDataGrid-cell":{padding:"0 8px",fontSize:"0.75rem",display:"flex",alignItems:"center"},"& .MuiDataGrid-cell--editable":{cursor:"pointer"},"& .MuiDataGrid-cell--editing input":{fontSize:"0.75rem"},"& .MuiDataGrid-cell.disabled-cell":{opacity:.4,backgroundColor:"#f5f5f5",cursor:"not-allowed",pointerEvents:"none"},"& .MuiDataGrid-columnHeader":{padding:"0 8px",fontSize:"0.75rem",fontWeight:600},"& .MuiDataGrid-row":{minHeight:"32px !important",maxHeight:"32px !important",cursor:"grab","&.dragging-row":{opacity:.5,cursor:"grabbing"},"&.drag-over-row":{backgroundColor:"#e3f2fd"}},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:600},"& .MuiDataGrid-cellContent":{display:"flex",alignItems:"center"}}}),E.createElement(Exi,{open:z,handleClose:function(){return O(!1)},onTagSelect:oe}),E.createElement(O3e,{open:R,mode:"create",handleClose:function(we){P(!1),we&&e.invalidateQueries({queryKey:["views-v2"]})}}),E.createElement(Rxi,{open:N,handleClose:function(){return L(!1)}}),E.createElement(yt,{error:y,onHide:function(){return M("")}}),E.createElement(pr,{open:!!j,autoHideDuration:3e3,onClose:he,anchorOrigin:{vertical:"bottom",horizontal:"center"}},E.createElement(Pr,{onClose:he,severity:"success"},j)))},g2e=E.memo(function(e){var t=e.initialLeft,n=e.otherLineCoord,r=e.onDragEnd,i=e.onChange,o=e.color,a=e.chartArea,s=e.minSpacing,l=s===void 0?20:s,c=e.timestamp,u=v.useState(!1),d=u[0],p=u[1],h=v.useState(t),g=h[0],m=h[1],b=v.useRef(null),y=v.useRef(t);v.useEffect(function(){m(t)},[t]);var M=v.useCallback(function(A){p(!0),y.current=g,A.stopPropagation(),A.preventDefault()},[g]),C=v.useCallback(function(A){if(!(!d||!b.current||!b.current.offsetParent)){var z=b.current.offsetParent.getBoundingClientRect(),O=A.clientX-z.left;if(O=Math.max(a.left,Math.min(O,a.right)),n!==void 0){var T=o==="red"||O<n;T&&O>n-l?O=n-l:!T&&O<n+l&&(O=n+l)}m(O),i&&i(O)}},[d,a,n,o,l,i]),x=v.useCallback(function(){d&&(p(!1),g!==y.current&&r(g))},[d,g,r]);v.useEffect(function(){if(d)return window.addEventListener("mousemove",C),window.addEventListener("mouseup",x),function(){window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",x)}},[d,C,x]);var w=a.bottom-a.top,S=function(A){if(!A)return"";var z=new Date(A),O=String(z.getMonth()+1).padStart(2,"0"),T=String(z.getDate()).padStart(2,"0"),R=z.getFullYear(),P=String(z.getHours()).padStart(2,"0"),F=String(z.getMinutes()).padStart(2,"0"),N=String(z.getSeconds()).padStart(2,"0");return"".concat(O,"/").concat(T,"/").concat(R," ").concat(P,":").concat(F,":").concat(N)};return E.createElement("div",{ref:b,onMouseDown:M,style:{position:"absolute",top:a.top-10,left:g-10,width:20,height:20,backgroundColor:o,borderRadius:"50%",cursor:d?"grabbing":"grab",zIndex:1e3,boxShadow:d?"0 4px 8px rgba(0, 0, 0, 0.3)":"0 2px 4px rgba(0, 0, 0, 0.2)",transition:d?"none":"box-shadow 0.2s ease",userSelect:"none"}},E.createElement("div",{style:{position:"absolute",top:20,left:9,width:2,height:w,backgroundColor:o,pointerEvents:"none",opacity:d?.8:1}}),c&&E.createElement("div",{style:{position:"absolute",top:20+w+4,left:"50%",transform:"translateX(-50%)",backgroundColor:"rgba(255, 255, 255, 0.95)",color:o,padding:"4px 8px",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",whiteSpace:"nowrap",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",border:"2px solid ".concat(o),pointerEvents:"none",zIndex:1001}},S(c)))});g2e.displayName="DraggableLineControlV2";var Pxi=function(e,t,n,r){return v.useMemo(function(){if(!n||n.length===0||Object.keys(r).length===0)return null;var i={},o=Object.values(r).filter(function(a){return a&&a.viewTag}).sort(function(a,s){return s.order-a.order});return o.forEach(function(a,s){var l,c,u,d,p,h=a.viewTag,g=n[s];if(!g||g.length===0){i[h.TagId]={y1:0,y2:0,y2y1:0,pmin:{x:0,y:0},pmax:{x:0,y:0}};return}for(var m=null,b=null,y={x:0,y:Number.POSITIVE_INFINITY},M={x:0,y:Number.NEGATIVE_INFINITY},C=0,x=g;C<x.length;C++){var w=x[C],S=typeof w.timestamp=="string"?new Date(w.timestamp).getTime():w.timestamp,A=(l=w.value)!==null&&l!==void 0?l:0;if(S<=e&&(m={timestamp:S,value:A}),S>e&&S<=t&&(b={timestamp:S,value:A},A<y.y&&(y={x:S,y:A}),A>M.y&&(M={x:S,y:A})),S>t)break}!b&&m&&(b=m);var z=(c=m?.value)!==null&&c!==void 0?c:0,O=(u=b?.value)!==null&&u!==void 0?u:0;y.y===Number.POSITIVE_INFINITY&&(y={x:(d=m?.timestamp)!==null&&d!==void 0?d:0,y:z}),M.y===Number.NEGATIVE_INFINITY&&(M={x:(p=b?.timestamp)!==null&&p!==void 0?p:0,y:O}),i[h.TagId]={y1:z,y2:O,y2y1:O-z,pmin:y,pmax:M}}),{x1:e,x2:t,tagValues:i}},[e,t,n,r])};function EG(e,t,n){var r=Math.max(t.left,Math.min(e,t.right)),i=t.right-t.left,o=n.end-n.start;if(i<=0)return n.start;var a=r-t.left,s=a/i,l=n.start+s*o;return Math.round(l)}function RG(e,t,n){var r=n.end-n.start,i=t.right-t.left;if(r<=0)return t.left;var o=e-n.start,a=o/r,s=Math.max(0,Math.min(a,1)),l=t.left+s*i;return l}var Dxi=function(e){return e.map(function(t){return[t.timestamp,t.value]})},kxi=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],Lxi=function(e){var t=e.series,n=t===void 0?[]:t,r=e.customOptions,i=e.isLoading,o=i===void 0?!1:i,a=e.onChartReady,s=e.dataLoadedTrigger,l=s===void 0?0:s,c=v.useRef(null),u=Dk(),d=u.state,p=d.timeScopeStart,h=d.timeScopeEnd,g=d.viewTags,m=d.highlightedSeries,b=d.cursor1Time,y=d.cursor2Time,M=d.selectedCursor,C=u.actions;C.setTotalScope;var x=C.updateCursor1Time,w=C.updateCursor2Time,S=C.setSelectedCursor,A=C.setCursorData,z=v.useRef(!1);v.useRef(null);var O=v.useState(null),T=O[0],R=O[1],P=v.useState(null),F=P[0],N=P[1],L=v.useState({start:p.getTime(),end:h.getTime()}),W=L[0],j=L[1],V=v.useState(null),G=V[0],q=V[1],$=v.useState(null),U=$[0],X=$[1];v.useEffect(function(){j({start:p.getTime(),end:h.getTime()})},[p,h]);var Q=v.useState(null),re=Q[0],ee=Q[1],se=v.useRef(""),pe=v.useRef(""),te=v.useRef(void 0),ce=v.useMemo(function(){var Ie=Object.values(g).filter(function(ze){return ze&&ze.viewTag}).sort(function(ze,Ve){return Ve.order-ze.order});if(!n||n.length===0||Ie.length===0)return{analogSeries:[],digitalSeries:[],analogTags:[],digitalTags:[]};var Le=[],we=[],ve=[],De=[];return n.forEach(function(ze,Ve){var Ke=Ie[Ve];if(Ke){var et=Ke.viewTag,it=Dxi(ze.map(function(Dt){return{timestamp:typeof Dt.timestamp=="string"?new Date(Dt.timestamp).getTime():Dt.timestamp,value:Dt.value}})),Ft={name:et.Alias||et.TagName,data:it,tagId:et.TagId,color:et.Color,visible:et.IsVisible};et.TagType==="D"?(we.push(Ft),De.push(et)):(Le.push(Ft),ve.push(et))}}),{analogSeries:Le,digitalSeries:we,analogTags:ve,digitalTags:De}},[n,g,p,h]),oe=r||{showGridLines:!0,showSymbols:!1,smoothLines:!0,showLegend:!0,showTooltip:!0,combinedView:!1,showToolbox:!0,showYAxisNames:!0};v.useEffect(function(){var Ie="".concat(p.getTime(),"-").concat(h.getTime()),Le=Ie!==pe.current&&pe.current!=="",we=te.current!==void 0&&oe.combinedView!==te.current;(Le||we)&&ee(null),pe.current=Ie,te.current=oe.combinedView},[p,h,oe.combinedView]);var ae=v.useCallback(function(Ie,Le,we,ve){ve===void 0&&(ve=0);var De={gridIndex:Le,type:"value",name:oe.showYAxisNames?Ie.Alias||Ie.TagName:"",nameLocation:"middle",nameGap:45+ve,position:we,offset:ve,splitNumber:8,nameTextStyle:{color:Ie.Color,fontSize:11,fontWeight:"bold"},axisLine:{show:!0,lineStyle:{color:Ie.Color}},axisTick:{show:!0},axisLabel:{show:!0,color:Ie.Color,fontSize:10},splitLine:{show:we==="left"&&ve===0?oe.showGridLines:!1,lineStyle:{color:"#e0e0e0",type:"solid"}}};return Ie.IsAutoScale?De.scale=!0:(Ie.MinScale!==null&&Ie.MinScale!==void 0&&(De.min=Ie.MinScale),Ie.MaxScale!==null&&Ie.MaxScale!==void 0&&(De.max=Ie.MaxScale)),Ie.TagType==="D"&&Ie.IsAutoScale&&(De.min=0,De.max=1,De.interval=.5,delete De.scale),De},[oe.showGridLines,!0,oe.showYAxisNames]),ne=!oe.combinedView&&ce.analogTags.length>0&&ce.digitalTags.length>0,le=v.useMemo(function(){return"chart-".concat(ne?"separate":"combined")},[ne]),he=Pxi(b,y,n,g),be=v.useRef("");v.useEffect(function(){var Ie=JSON.stringify(he);Ie!==be.current&&(be.current=Ie,A(he))},[he,A]);var me=v.useRef(""),Me=v.useRef(b),Oe=v.useRef(y),de=v.useRef(!1);v.useEffect(function(){if(F){if(G===null||U===null){var Ie=RG(b,F,W),Le=RG(y,F,W);q(Ie),X(Le),me.current=JSON.stringify(W),Me.current=b,Oe.current=y;return}if(!de.current){var we=JSON.stringify(W)!==me.current,ve=b!==Me.current,De=y!==Oe.current;if(we){if(G!==null&&U!==null){var ze=EG(G,F,W),Ve=EG(U,F,W);x(ze),w(Ve),me.current=JSON.stringify(W),Me.current=ze,Oe.current=Ve}}else{if(ve){var Ke=RG(b,F,W);q(Ke),Me.current=b}if(De){var et=RG(y,F,W);X(et),Oe.current=y}}}}},[F,W,b,y,G,U,x,w]);var ie=v.useCallback(function(Ie){if(!(!F||!W)){de.current=!0;var Le=EG(Ie,F,W);x(Le),q(Ie),Me.current=Le}},[F,W,x]),ue=v.useCallback(function(Ie){if(!(!F||!W)){de.current=!0;var Le=EG(Ie,F,W);w(Le),X(Ie),Oe.current=Le}},[F,W,w]),Ae=v.useCallback(function(Ie){ie(Ie),de.current=!1},[ie]),Ce=v.useCallback(function(Ie){ue(Ie),de.current=!1},[ue]),Ee=v.useMemo(function(){var Ie=function(De){if(De===0)return 60;var ze=Math.ceil(De/2);return(ze-1)*60+60},Le=Ie(ce.analogTags.length),we=Ie(ce.digitalTags.length),ve=Ie(ce.analogTags.length+ce.digitalTags.length);return{animation:!1,backgroundColor:"#fff",color:kxi,grid:ne?[{id:"analog",left:"".concat(Le,"px"),right:"".concat(Le,"px"),top:oe.showLegend?"70px":"50px",bottom:"55%",containLabel:!1},{id:"digital",left:"".concat(we,"px"),right:"".concat(we,"px"),top:"55%",bottom:"60px",containLabel:!1}]:[{id:"combined",left:"".concat(ve,"px"),right:"".concat(ve,"px"),top:oe.showLegend?"70px":"50px",bottom:"60px",containLabel:!1}],xAxis:ne?[{gridIndex:0,type:"time",show:!0,position:"top",min:p.getTime(),max:h.getTime(),axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{show:!0,color:"#333",fontSize:11,formatter:function(De,ze){var Ve=new Date(De),Ke=Ve.getHours(),et=Ve.getMinutes(),it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ft=it[Ve.getMonth()],Dt=Ve.getDate();return ze===0?"".concat(Ft," ").concat(Dt,", ").concat(Ve.getFullYear(),`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):Ke===0&&et===0?"".concat(Ft," ").concat(Dt,`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):"".concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0"))}},splitLine:{show:oe.showGridLines,lineStyle:{color:"#e0e0e0",type:"solid"}}},{gridIndex:1,type:"time",show:!0,position:"bottom",min:p.getTime(),max:h.getTime(),axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{show:!0,color:"#333",fontSize:11,formatter:function(De,ze){var Ve=new Date(De),Ke=Ve.getHours(),et=Ve.getMinutes(),it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ft=it[Ve.getMonth()],Dt=Ve.getDate();return ze===0?"".concat(Ft," ").concat(Dt,", ").concat(Ve.getFullYear(),`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):Ke===0&&et===0?"".concat(Ft," ").concat(Dt,`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):"".concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0"))}},splitLine:{show:oe.showGridLines,lineStyle:{color:"#e0e0e0",type:"solid"}}}]:[{gridIndex:0,type:"time",show:!0,position:"bottom",min:p.getTime(),max:h.getTime(),axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{show:!0,color:"#333",fontSize:11,formatter:function(De,ze){var Ve=new Date(De),Ke=Ve.getHours(),et=Ve.getMinutes(),it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ft=it[Ve.getMonth()],Dt=Ve.getDate();return ze===0?"".concat(Ft," ").concat(Dt,", ").concat(Ve.getFullYear(),`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):Ke===0&&et===0?"".concat(Ft," ").concat(Dt,`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):"".concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0"))}},splitLine:{show:oe.showGridLines,lineStyle:{color:"#e0e0e0",type:"solid"}}}],yAxis:(function(){var De=[];return ne?(ce.analogTags.forEach(function(ze,Ve){var Ke=Ve%2===0?"left":"right",et=Math.floor(Ve/2)*60;De.push(ae(ze,0,Ke,et))}),ce.digitalTags.forEach(function(ze,Ve){var Ke=Ve%2===0?"left":"right",et=Math.floor(Ve/2)*60;De.push(ae(ze,1,Ke,et))})):(ce.analogTags.forEach(function(ze,Ve){var Ke=Ve%2===0?"left":"right",et=Math.floor(Ve/2)*60;De.push(ae(ze,0,Ke,et))}),ce.digitalTags.forEach(function(ze,Ve){var Ke=Ve%2===0?"left":"right",et=Math.ceil(ce.analogTags.length/2)*60,it=et+Math.floor(Ve/2)*60;De.push(ae(ze,0,Ke,it))})),De.length===0&&De.push({gridIndex:0,type:"value",show:!1,position:"left",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}),De})(),series:(function(){var De=ce.analogTags.length;return xi(xi([],ce.analogSeries.map(function(ze,Ve){return{name:ze.name,type:"line",xAxisIndex:0,yAxisIndex:Ve,data:ze.data,smooth:oe.smoothLines,symbol:oe.showSymbols?"circle":"none",sampling:"lttb",show:ze.visible,lineStyle:{width:2,color:ze.color},itemStyle:{color:ze.color},emphasis:{focus:"series"},showSymbol:oe.showSymbols}}),!0),ce.digitalSeries.map(function(ze,Ve){return{name:ze.name,type:"line",step:"end",xAxisIndex:ne?1:0,yAxisIndex:De+Ve,data:ze.data,symbol:oe.showSymbols?"circle":"none",show:ze.visible,lineStyle:{width:2,color:ze.color},itemStyle:{color:ze.color},emphasis:{focus:"series"},showSymbol:oe.showSymbols}}),!0)})(),dataZoom:xi([tt({type:"inside",xAxisIndex:ne?[0,1]:[0],zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!1},re?{start:re.start,end:re.end}:{})],[tt({type:"slider",xAxisIndex:ne?[0,1]:[0],bottom:3,height:19,handleSize:"80%",showDetail:!0,filterMode:"none"},re?{start:re.start,end:re.end}:{})],!0),tooltip:oe.showTooltip?{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}},backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#ccc",borderWidth:1,textStyle:{color:"#333",fontSize:12},formatter:function(De){if(!De||De.length===0)return"";var ze=new Date(De[0].value[0]),Ve='<div style="font-weight: bold; margin-bottom: 5px;">'.concat(ze.toLocaleString(),"</div>");return De.forEach(function(Ke){var et='<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background-color:'.concat(Ke.color,';margin-right:5px;"></span>');Ve+="<div>".concat(et).concat(Ke.seriesName,": ").concat(Ke.value[1],"</div>")}),Ve}}:void 0,legend:{show:oe.showLegend,top:5,left:"center",textStyle:{color:"#333",fontSize:12},selected:(function(){var De={};return ce.analogSeries.forEach(function(ze){De[ze.name]=ze.visible}),ce.digitalSeries.forEach(function(ze){De[ze.name]=ze.visible}),De})()},toolbox:oe.showToolbox&&(ce.analogSeries.length>0||ce.digitalSeries.length>0)?{show:!0,right:10,top:10,feature:{dataZoom:{show:!0,title:{zoom:"Area Zoom",back:"Restore Area Zoom"},yAxisIndex:"none",xAxisIndex:ne?[0,1]:[0],icon:{zoom:"path://",back:"path://"},iconStyle:{opacity:0,borderWidth:0}},restore:{show:!0,title:"Restore",icon:"path://",iconStyle:{opacity:0,borderWidth:0}},saveAsImage:{}}}:void 0}},[oe,ce,p,h,ae,re,ne]),Ge=v.useCallback(function(Ie){var Le;if(!z.current){var we=(Le=c.current)===null||Le===void 0?void 0:Le.getEchartsInstance();if(we){if(Ie.batch&&Ie.batch.length>0){var ve=Ie.batch[0];if(typeof ve.start=="number"&&typeof ve.end=="number"){var De=ve.start<=.1&&ve.end>=99.9;ee(De?null:{start:ve.start,end:ve.end})}}if(Ie.batch&&Ie.batch.length>0){var ve=Ie.batch[0];if(typeof ve.start=="number"&&typeof ve.end=="number"){var ze=p.getTime(),Ve=h.getTime(),Ke=Ve-ze,et=ze+Ke*ve.start/100,it=ze+Ke*ve.end/100;j({start:et,end:it})}}}}},[p,h]),_e=v.useMemo(function(){return{dataZoom:Ge}},[Ge]);return v.useEffect(function(){var Ie,Le=(Ie=c.current)===null||Ie===void 0?void 0:Ie.getEchartsInstance();Le&&(m?Le.dispatchAction({type:"highlight",seriesName:m}):Le.dispatchAction({type:"downplay"}))},[m]),v.useEffect(function(){var Ie,Le=((Ie=c.current)===null||Ie===void 0?void 0:Ie.getEchartsInstance())||null;R(Le),a&&a(Le)},[a,l,Ee]),v.useEffect(function(){var Ie,Le=(Ie=c.current)===null||Ie===void 0?void 0:Ie.getEchartsInstance();if(Le){var we=function(){try{var De=Le.getOption(),ze=De.grid;if(ze&&ze.length>0){var Ve=Le.getWidth(),Ke=Le.getHeight(),et=function(ir,Hn){if(typeof ir=="string"){if(ir.includes("%"))return parseFloat(ir)/100*Hn;if(ir.includes("px"))return parseFloat(ir)}return typeof ir=="number"?ir:0},it=ze[0],Ft=ze.length>1?ze[ze.length-1]:ze[0],Dt={top:et(it.top||60,Ke),bottom:Ke-et(Ft.bottom||80,Ke),left:et(it.left||60,Ve),right:Ve-et(it.right||60,Ve)},Qn=JSON.stringify(Dt);Qn!==se.current&&(se.current=Qn,N(Dt))}}catch{}};we();var ve=function(){setTimeout(we,100)};return window.addEventListener("resize",ve),function(){return window.removeEventListener("resize",ve)}}},[T,ne]),v.useEffect(function(){if(M){var Ie=function(Le){var we=h.getTime()-p.getTime(),ve=we*.01,De=we*.05,ze=Le.shiftKey?De:ve;switch(Le.key){case"ArrowLeft":Le.preventDefault(),M==="cursor1"?x(b-ze):w(y-ze);break;case"ArrowRight":Le.preventDefault(),M==="cursor1"?x(b+ze):w(y+ze);break;case"Escape":Le.preventDefault(),S(null);break;case"Tab":Le.preventDefault(),S(M==="cursor1"?"cursor2":"cursor1");break}};return window.addEventListener("keydown",Ie),function(){return window.removeEventListener("keydown",Ie)}}},[M,b,y,p,h,x,w,S]),E.createElement(Pt,{style:{height:"100%",padding:"8px",position:"relative"}},o&&E.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:10}},E.createElement(Kt,{size:"2rem"})),E.createElement("div",{style:{height:"100%",width:"100%",position:"relative"}},E.createElement(AM,{key:le,ref:c,option:Ee,style:{height:"100%",width:"100%",opacity:o?.3:1},notMerge:!1,onEvents:_e,opts:{renderer:"canvas"}}),F&&G!==null&&U!==null&&E.createElement(E.Fragment,null,E.createElement(g2e,{color:"red",chartArea:F,initialLeft:G,onChange:ie,onDragEnd:Ae,otherLineCoord:U,minSpacing:20,timestamp:b}),E.createElement(g2e,{color:"blue",chartArea:F,initialLeft:U,onChange:ue,onDragEnd:Ce,otherLineCoord:G,minSpacing:20,timestamp:y}))))},_xi=function(e){var t=e.autoRefresh,n=t===void 0?!1:t;return jl({queryKey:["views-v2"],queryFn:function(){return Ct(void 0,void 0,void 0,function(){var r;return xt(this,function(i){switch(i.label){case 0:return[4,UOt(null)];case 1:if(r=i.sent(),r.ok)return[2,r.data.tables[0].rows];throw new Error(r.message||"Failed to fetch views")}})})},refetchInterval:n?1e4:!1})},Nxi=function(e){var t=e.viewId;return jl({queryKey:["viewTags-v2",t],queryFn:function(){return Ct(void 0,void 0,void 0,function(){var n;return xt(this,function(r){switch(r.label){case 0:return t?[4,A3e(t)]:[3,2];case 1:if(n=r.sent(),n.ok)return[2,n.data.tables[0].rows];throw new Error(n.message||"Failed to fetch view tags");case 2:return[2,[]]}})})},enabled:t!==null})},Fxi=function(e){var t=e.start,n=e.end,r=e.tagIds,i=e.autoRefresh,o=i===void 0?!1:i;return jl({queryKey:["series-v2",t,n,r],queryFn:function(a){return Ct(void 0,[a],void 0,function(s){var l,c,u=s.signal;return xt(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),!r||r.length===0?[2,[]]:[4,Ys.post("/series?nodeName=null",{start:t,end:n||new Date().getTime(),tagIds:r,sampleCount:1e3},{signal:u})];case 1:return l=d.sent(),[2,At(l,"data",[])];case 2:if(c=d.sent(),Ys.isCancel(c)||c.name==="AbortError")return[2,[]];throw new Error(g3e(c));case 3:return[2]}})})},refetchInterval:o?1e4:!1,enabled:r.length>0})},Wxi=function(){var e=v.useState(!1),t=e[0],n=e[1],r=v.useState(null),i=r[0],o=r[1],a=v.useState(""),s=a[0],l=a[1],c=v.useState(null),u=c[0],d=c[1],p=v.useState(null),h=p[0],g=p[1],m=v.useState(0),b=m[0],y=m[1],M=Dk(),C=M.state,x=C.viewSelected,w=C.viewTags,S=C.timeScopeStart,A=C.timeScopeEnd,z=M.actions,O=z.setViews,T=z.setViewTagsAndRefetch,R=z.setViewSelected,P=z.setSeriesMinMax,F=z.resetCursors,N=_xi({autoRefresh:t}),L=N.data,W=N.isLoading,j=N.isError,V=N.error,G=N.isSuccess,q=Nxi({viewId:u}),$=q.data,U=q.isLoading,X=q.isError,Q=q.error,re=q.isSuccess,ee=v.useMemo(function(){return Object.values(w).filter(function(ue){return ue&&ue.viewTag}).sort(function(ue,Ae){return Ae.order-ue.order}).map(function(ue){return ue.viewTag.TagId})},[w]),se=v.useRef([]),pe=v.useRef(""),te=v.useMemo(function(){var ue="".concat(S.getTime(),"-").concat(A.getTime()),Ae=ue!==pe.current,Ce=ee.some(function(Ee){return!se.current.includes(Ee)});return(se.current.length===0||Ce||Ae)&&(se.current=ee,pe.current=ue),se.current},[ee,S,A]),ce=Fxi({start:S.getTime(),end:A.getTime(),tagIds:te,autoRefresh:t}),oe=ce.data,ae=ce.isLoading,ne=ce.isError,le=ce.error,he=v.useMemo(function(){if(!oe)return[];if(oe.length!==te.length)return[];var ue=new Map;return te.forEach(function(Ae,Ce){oe[Ce]&&ue.set(Ae,oe[Ce])}),ee.map(function(Ae){return ue.get(Ae)}).filter(Boolean)},[oe,ee,te]),be=pxi(he,ee);v.useEffect(function(){if(!(!G||!L||!Array.isArray(L))&&(O(L),!x)){var ue=L.reduce(function(Ae,Ce){return Ae&&Ae.ViewId>Ce.ViewId?Ae:Ce},null);ue&&(d(ue.ViewId),R(ue))}},[G,L,x,O,R]),v.useEffect(function(){x&&d(x.ViewId)},[x]);var me=v.useRef(null);v.useEffect(function(){if(!(!re||!$||!Array.isArray($))&&u!==me.current){me.current=u;var ue=$.reduce(function(Ae,Ce,Ee){return gi(Ce.Color)&&(Ce.Color=yj()),Ae[Ce.TagId]={viewTag:Ce,order:Ee},Ae},{});se.current=[],T(ue)}},[re,$,T,u]);var Me=v.useRef("");v.useEffect(function(){var ue=JSON.stringify(be);ue!==Me.current&&(Me.current=ue,P(be))},[be,P]);var Oe=v.useRef(null);v.useEffect(function(){x&&x.ViewId!==Oe.current&&(Oe.current=x.ViewId,F())},[x,F]),v.useEffect(function(){F()},[S,A,F]);var de=v.useRef(!1);v.useEffect(function(){de.current&&!ae&&y(function(ue){return ue+1}),de.current=ae},[ae]),v.useEffect(function(){Q&&X&&l(Q instanceof Error?Q.message:String(Q)),V&&j&&l(V instanceof Error?V.message:String(V)),le&&ne&&l(le instanceof Error?le.message:String(le))},[V,j,Q,X,le,ne]);var ie=W||U;return E.createElement(E.Fragment,null,E.createElement(yn,{title:"Trendings V2 (ECharts)"}),E.createElement(D,{container:!0,direction:"column",wrap:"nowrap",style:{width:"98vw",height:"92vh",margin:"0 auto",padding:"8px",position:"relative"}},ie&&E.createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3}},E.createElement(Kt,{size:"3rem"})),E.createElement(D,{item:!0,style:{flexShrink:0}},E.createElement(ZOt,{autoRefresh:t,setAutoRefresh:n,setChartOptions:o,chartInstance:h})),E.createElement(D,{item:!0,style:{flexShrink:0}},E.createElement(la,{style:{margin:"3px 0"}})),E.createElement(D,{item:!0,style:{flexGrow:1,minHeight:0,overflow:"hidden"}},E.createElement(Lxi,{customOptions:i,series:he,isLoading:ae,onChartReady:g,dataLoadedTrigger:b})),E.createElement(D,{item:!0,style:{flexShrink:0,height:"160px",marginTop:"3px"}},E.createElement(Ixi,null))),E.createElement(yt,{error:s,onHide:function(){return l("")},size:"xl",title:"ERROR"}))},qxi=function(){var e=v.useState(!1),t=e[0],n=e[1];return v.useEffect(function(){var r=function(){return Ct(void 0,void 0,void 0,function(){var i;return xt(this,function(o){switch(o.label){case 0:return[4,p3.get("/backend/ih-path")];case 1:return i=o.sent(),localStorage.setItem("ihPath",i.data),n(!0),[2]}})})};r()},[]),t?E.createElement(dxi,null,E.createElement(Wxi,null)):E.createElement("div",{className:"d-flex justify-content-center align-items-center"},"Loading...")};/*!
  * chartjs-adapter-moment v1.0.1
  * https://www.chartjs.org
  * (c) 2022 chartjs-adapter-moment Contributors
  * Released under the MIT license
  */const Bxi={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};OCt._date.override(typeof mt=="function"?{_id:"moment",formats:function(){return Bxi},parse:function(e,t){return typeof e=="string"&&typeof t=="string"?e=mt(e,t):e instanceof mt||(e=mt(e)),e.isValid()?e.valueOf():null},format:function(e,t){return mt(e).format(t)},add:function(e,t,n){return mt(e).add(t,n).valueOf()},diff:function(e,t,n){return mt(e).diff(mt(t),n)},startOf:function(e,t,n){return e=mt(e),t==="isoWeek"?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return mt(e).endOf(t).valueOf()}}:{});var jxi=`/* ContextMenu.css */ .context-menu {
	position: absolute;
	z-index: 1000;
	background-color: #fff;
	border: 1px solid #ddd;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.context-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.context-menu li {
	padding: 8px 15px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
	background-color: #fff;
	color: #333;
	font-size: 14px;
}

.context-menu li:hover {
	background-color: #f5f5f5;
}
`;vOt(jxi,{});var rzt=Et({swatch:{width:"25px",height:"25px",display:"inline-block",margin:"2px",borderRadius:"4px",cursor:"pointer"},popover:{display:"flex",flexWrap:"wrap",padding:"10px",maxWidth:"165px"}}),Hxi=function(e){var t=e.color,n=e.onSelect,r=rzt();return E.createElement("div",{className:r.swatch,style:{backgroundColor:t},onClick:function(){return n(t)}})},Vxi=function(e){var t=e.onChange,n=e.color,r=e.elementId,i=rzt(),o=v.useState(null),a=o[0],s=o[1],l=function(p){s(p.currentTarget)},c=function(){s(null)},u=!!a,d=u?"simple-popover":void 0;return E.createElement("div",null,E.createElement(Ne,{"aria-describedby":d,variant:"outlined",onClick:l,style:{backgroundColor:n,width:"20px",height:"20px",minWidth:"20px",padding:0,margin:"4px"}}),E.createElement(A3,{id:d,open:u,anchorEl:a,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"left"}},E.createElement("div",{className:i.popover},S3e.map(function(p){return E.createElement(Hxi,{key:p,color:p,onSelect:function(h){t(r,h),c()}})}))))},Gxi={timeScopeStart:mt(new Date).subtract(1,"days").toDate(),timeScopeEnd:new Date,scope:"1 day",graphPan:!1,graphShouldUpdate:0,views:[{ViewId:0,ViewName:"",UserName:null,IsPublic:!1,LastModified:null,LastModifiedBy:null}],viewSelected:null,viewTags:{},shouldRefetchSeries:1},JX=ki({name:"__",initialState:Gxi,reducers:{setTotalScope:function(e,t){var n=t.payload;if(t.type,e.shouldRefetchSeries+=1,e.graphShouldUpdate+=1,!gi(n.start)&&!gi(n.end)&&!gi(n.scope)){e.timeScopeStart=n.start,e.timeScopeEnd=n.end,e.scope=n.scope;return}if(!gi(n.scope)){if(n.scope!=="custom")switch(n.scope){case"10 min":e.timeScopeStart=mt(e.timeScopeEnd).subtract(10,"minutes").toDate();break;case"1 hour":e.timeScopeStart=mt(e.timeScopeEnd).subtract(1,"hours").toDate();break;case"4 hours":e.timeScopeStart=mt(e.timeScopeEnd).subtract(4,"hours").toDate();break;case"12 hours":e.timeScopeStart=mt(e.timeScopeEnd).subtract(12,"hours").toDate();break;case"1 day":e.timeScopeStart=mt(e.timeScopeEnd).subtract(1,"days").toDate();break;case"10 days":e.timeScopeStart=mt(e.timeScopeEnd).subtract(10,"days").toDate();break}e.scope=n.scope;return}if(!gi(n.start)&&!gi(n.end)&&gi(n.graphPan)){e.timeScopeStart=n.start,e.timeScopeEnd=n.end,e.scope="custom";return}if(!gi(n.start)&&!gi(n.end)&&!gi(n.graphPan)){e.timeScopeStart=n.start,e.timeScopeEnd=n.end;return}if(!gi(n.start)){if(e.timeScopeStart=n.start,e.scope!=="custom")switch(e.scope){case"10 min":e.timeScopeEnd=mt(n.start).add(10,"minutes").toDate();break;case"1 hour":e.timeScopeEnd=mt(n.start).add(1,"hours").toDate();break;case"4 hours":e.timeScopeEnd=mt(n.start).add(4,"hours").toDate();break;case"12 hours":e.timeScopeEnd=mt(n.start).add(12,"hours").toDate();break;case"1 day":e.timeScopeEnd=mt(n.start).add(1,"days").toDate();break;case"10 days":e.timeScopeEnd=mt(n.start).add(10,"days").toDate();break}return}if(!gi(n.end)){if(e.timeScopeEnd=n.end,e.scope!=="custom")switch(e.scope){case"10 min":e.timeScopeStart=mt(n.end).subtract(10,"minutes").toDate();break;case"1 hour":e.timeScopeStart=mt(n.end).subtract(1,"hours").toDate();break;case"4 hours":e.timeScopeStart=mt(n.end).subtract(4,"hours").toDate();break;case"12 hours":e.timeScopeStart=mt(n.end).subtract(12,"hours").toDate();break;case"1 day":e.timeScopeStart=mt(n.end).subtract(1,"days").toDate();break;case"10 days":e.timeScopeStart=mt(n.end).subtract(10,"days").toDate();break}return}},setViews:function(e,t){var n=t.payload;e.views=n},setViewSelected:function(e,t){var n=t.payload;e.viewSelected=n},setViewTags:function(e,t){var n=t.payload;e.viewTags=n,e.graphShouldUpdate+=1},setViewTagsAndRefetch:function(e,t){var n=t.payload,r=structuredClone(n);xi([],Object.values(n),!0).sort(function(i,o){return o.order-i.order}).forEach(function(i,o){r[i.viewTag.TagId].order=o}),e.viewTags=r,e.shouldRefetchSeries+=1},setGraphShouldUpdate:function(e){e.graphShouldUpdate=1}}}),izt=v.createContext({state:JX.getInitialState(),actions:JX.actions}),zM=function(){return v.useContext(izt)},$xi=function(e){var t=e.children,n=Fi.useComplexState({initialState:JX.getInitialState(),reducers:JX.caseReducers}),r=n[0],i=n[1],o=v.useMemo(function(){return{state:r,actions:i}},[r,i]);return E.createElement(izt.Provider,{value:o},t)},Uxi=function(e){var t=e.open,n=e.handleClose,r=e.view,i=v.useState(!1),o=i[0],a=i[1],s=v.useState(""),l=s[0],c=s[1],u=function(){return Ct(void 0,void 0,void 0,function(){var d;return xt(this,function(p){switch(p.label){case 0:return a(!0),gi(r)?[3,2]:[4,XOt(r.ViewId)];case 1:d=p.sent(),d.ok?n(!0):c(d.message),p.label=2;case 2:return a(!1),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Delete View"},E.createElement(la,null),E.createElement(We.Content,null,gi(r)?E.createElement(vt,null,"ERROR: No view detected, please select one"):E.createElement(D,{container:!0,spacing:5,style:{padding:"2rem"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"10px",width:"100%"}},E.createElement(vt,null,"Are yu sure you want to delete"," ",E.createElement("strong",null,r?.ViewName)," ?")))),E.createElement(la,null),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:1,style:{display:"flex",alignItems:"flex-end",justifyContent:"flex-end"}},E.createElement(D,{item:!0},E.createElement(Ne,{variant:"outlined",color:"secondary",onClick:function(){return n(!1)}},"Cancel")),E.createElement(D,{item:!0},gi(r)?E.createElement(Ne,{variant:"contained",style:{marginRight:"1rem"},color:"primary",onClick:function(){return n(!1)}},"Ok"):E.createElement(ka,{variant:"contained",color:"secondary",onClick:u,isLoading:o},"Delete"))))),E.createElement(yt,{error:l,onHide:function(){return c("")}}))},Xxi=function(e){var t=e.open,n=e.handleClose,r=e.view,i=cT(),o=v.useState(""),a=o[0],s=o[1],l=v.useState(!0),c=l[0],u=l[1],d=v.useState(!1),p=d[0],h=d[1],g=v.useState(""),m=g[0],b=g[1],y=function(){return Ct(void 0,void 0,void 0,function(){var x;return xt(this,function(w){switch(w.label){case 0:return h(!0),gi(r)?[3,2]:[4,Mj(r.ViewId,a,c)];case 1:x=w.sent(),x.ok?n(!0):b(x.message),w.label=2;case 2:return h(!1),[2]}})})},M=function(x){x.preventDefault();var w=x.target.value;s(w)},C=function(){return u(!c)};return v.useEffect(function(){r&&(u(r.IsPublic),s(r.ViewName))},[r]),E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Update View"},E.createElement(la,null),E.createElement(We.Content,null,gi(r)?E.createElement(vt,null,"ERROR: No view detected, please select one"):E.createElement(D,{container:!0,spacing:5,style:{padding:"2rem"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"10px",width:"100%"}},E.createElement(je,{required:!0,className:i.inputCustom,id:"viewName",label:"Name",variant:"outlined",onChange:M,value:a})),E.createElement(D,{item:!0,md:12,xs:12,style:{paddingTop:"2rem"},className:i.isPublicCheckbox},E.createElement("label",null,E.createElement("input",{type:"checkbox",checked:c,onChange:C}),E.createElement(vt,null,"Public"))))),E.createElement(la,null),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:1,style:{display:"flex",alignItems:"flex-end",justifyContent:"flex-end"}},E.createElement(D,{item:!0},E.createElement(Ne,{variant:"outlined",color:"secondary",onClick:function(){return n(!1)}},"Cancel")),E.createElement(D,{item:!0},gi(r)?E.createElement(Ne,{variant:"contained",style:{marginRight:"1rem"},color:"primary",onClick:function(){return n(!1)}},"Ok"):E.createElement(ka,{variant:"contained",color:"primary",onClick:y,isLoading:p},"Update"))))),E.createElement(yt,{error:m,onHide:function(){return b("")}}))},Yxi=function(e){var t=e.open,n=e.handleClose,r=e.getTagsFromAPI,i=zM(),o=i.state,a=o.views,s=o.viewSelected,l=i.actions;l.setViews;var c=l.setViewTagsAndRefetch,u=l.setViewSelected,d=cT(),p=v.useState(null),h=p[0],g=p[1],m=v.useState(null),b=m[0],y=m[1],M=v.useState(!1),C=M[0],x=M[1],w=v.useState(!1),S=w[0],A=w[1],z=v.useState(!1),O=z[0],T=z[1],R=v.useState(!1),P=R[0],F=R[1],N=v.useState(""),L=N[0],W=N[1],j=function(){return Ct(void 0,void 0,void 0,function(){var U;return xt(this,function(X){switch(X.label){case 0:return s?(F(!0),[4,A3e(s.ViewId)]):[3,2];case 1:U=X.sent(),U.ok?c(U.data.tables[0].rows.reduce(function(Q,re,ee){return gi(re.Color)&&(re.Color=yj()),Q[re.TagId]={viewTag:re,order:ee},Q},{})):W(U.message),F(!1),n(!1),X.label=2;case 2:return[2]}})})},V=function(U,X){return Ct(void 0,void 0,void 0,function(){return xt(this,function(Q){return X.stopPropagation(),U.ViewId===s?.ViewId?W("Can not delete current view"):(g(U),x(!0)),[2]})})},G=function(U,X){return Ct(void 0,void 0,void 0,function(){return xt(this,function(Q){return y(U),A(!0),[2]})})},q=function(){T(function(U){return!U})},$=v.useMemo(function(){return a.filter(function(U){return U.IsPublic===!0})},[a,O]);return E.createElement("div",null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Views"},E.createElement(We.Content,null,E.createElement(D,{container:!0},a.length?E.createElement(E.Fragment,null,E.createElement(D,{item:!0,md:12},E.createElement("div",{className:d.isPublicCheckbox,style:{paddingBottom:"1rem"}},E.createElement("label",{htmlFor:""},E.createElement("input",{type:"checkbox",checked:O,onChange:q}),E.createElement(vt,null,"All Views")))),E.createElement(D,{item:!0,md:12},E.createElement(Ki,{size:"small",id:"list-of-views",noOptionsText:O?"No views detected, please create a new view":"No private views detected, please create a new view .",options:O?a:$,getOptionLabel:function(U){return U.ViewName},onChange:function(U,X){return u(X)},defaultValue:s,style:{width:"100%"},renderOption:function(U){return E.createElement("div",{className:d.optionContainer},E.createElement("div",{className:d.optionLabel},U.ViewName),E.createElement("div",{className:d.iconContainer},U.IsPublic?"":E.createElement(E.Fragment,null,E.createElement(ls,{title:"Private",arrow:!0},E.createElement(CB,{fontSize:"small",style:{color:"black",height:"18px",width:"18px",cursor:"auto"}}))),E.createElement(bn,{onClick:function(X){return G(U)}},E.createElement(Xxe,{fontSize:"small",color:"primary",style:{height:"18px",width:"18px",cursor:"pointer"}})),E.createElement(bn,{onClick:function(X){return V(U,X)}},E.createElement(Mo,{fontSize:"small",color:"secondary",style:{height:"18px",width:"18px",cursor:"pointer"}}))))},renderInput:function(U){return E.createElement(je,tt({},U,{label:"Views",variant:"outlined"}))}}))):E.createElement(vt,null,"No views detected, please add one"))),E.createElement(We.Actions,null,E.createElement("div",{style:{paddingTop:"1rem"}},E.createElement(Ne,{variant:"outlined",style:{marginRight:"1rem"},color:"secondary",onClick:function(){return n(!1)}},"Cancel"),a.length?E.createElement(ka,{onClick:j,variant:"contained",color:"primary",isLoading:P,style:{marginRight:"1rem"}},"Apply"):E.createElement(Ne,{variant:"contained",style:{marginRight:"1rem"},color:"primary",onClick:function(){return n(!1)}},"Ok")))),E.createElement(Uxi,{open:C,view:h,handleClose:function(U){x(!1),U&&r().then(function(){})}}),E.createElement(Xxi,{open:S,view:b,handleClose:function(U){A(!1),U&&r().then(function(){})}}),E.createElement(yt,{error:L,onHide:function(){return W("")}}))},Kxi=function(e){var t=e.open,n=e.handleClose,r=cT(),i=v.useState(!1),o=i[0],a=i[1],s=v.useState(""),l=s[0],c=s[1],u=zM(),d=u.state,p=d.viewTags,h=d.views,g=d.viewSelected,m=u.actions,b=m.setViewSelected;m.setViewTags;var y=v.useState(!0),M=y[0],C=y[1],x=v.useState(""),w=x[0],S=x[1],A=function(){return C(!M)},z=function(){return Ct(void 0,void 0,void 0,function(){var O,T,R;return xt(this,function(P){switch(P.label){case 0:return a(!0),[4,Mj(null,w,M)];case 1:return O=P.sent(),O.ok?(T=O.data.returnValue,R=!0,[4,Promise.allSettled(Object.values(p).map(function(F){var N=F.viewTag,L=N.TagId,W=N.Color,j=N.MinScale,V=N.MaxScale,G=N.IsAutoScale,q=N.IsVisible,$=N.Unit;aD(T,L,W,j,V,q,G,$).then(function(U){U.ok||(c(function(X){return"".concat(X,". ").concat(U.message)}),R&&(R=!1))})}))]):[3,3];case 2:return P.sent(),n(R),[3,4];case 3:c(O.message),P.label=4;case 4:return a(!1),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Save View As"},E.createElement(la,null),E.createElement(We.Content,null,E.createElement(D,{container:!0,spacing:5,style:{padding:"1rem"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"10px",width:"100%"}},h.length&&g?E.createElement(Ki,{size:"small",id:"list-of-views",options:h,defaultValue:g,getOptionLabel:function(O){return O.ViewName},freeSolo:!0,onChange:function(O,T){b(T),T&&S("")},onInputChange:function(O,T){var R=h.some(function(P){return P.ViewName===T});R||S(T)},style:{width:"100%"},renderInput:function(O){return E.createElement(je,tt({},O,{label:"Views",variant:"outlined"}))}}):E.createElement(Tn,null,E.createElement(je,{style:{minWidth:"600px"},size:"small",id:"outlined-basic",label:"View name",variant:"outlined",value:w,onChange:function(O){return S(O.target.value)}})))),E.createElement(D,{item:!0,md:12,xs:12,style:{paddingTop:"2rem"},className:r.isPublicCheckbox},E.createElement("label",null,"Public",E.createElement("input",{type:"checkbox",checked:M,onChange:A})))),E.createElement(la,null),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:1,style:{display:"flex",alignItems:"flex-end",justifyContent:"flex-end"}},E.createElement(D,{item:!0},E.createElement(Ne,{variant:"outlined",color:"secondary",onClick:function(){return n(!1)}},"Cancel")),E.createElement(D,{item:!0},E.createElement(ka,{variant:"contained",color:"primary",onClick:z,isLoading:o},"Save"))))),E.createElement(yt,{error:l,onHide:function(){return c("")}}))},Qxi=`
  ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
`,Zxi=function(e){var t,n,r,i,o,a,s,l,c=e.node,u=e.options,d=u.depth,p=u.isOpen,h=u.onToggle,g=u.containerRef,m=e.options,b=e.setOpenTagFolders,y=e.openTagFolders,M=e.handleSelect,C=e.setContextMenuOver,x=e.isSelected,w=mte(),S="".concat(w.customNodeRoot," ").concat(w.root," ").concat(x?w.selected:""),A=function(){var O,T;if(m.hasChild||((T=c.data)===null||T===void 0?void 0:T.TagTypeCode)==="F"){if(y[c.id]){var R=tt({},y);delete R[c.id],b(R)}else b(tt(tt({},y),(O={},O[c.id]=c.id,O)));h();return}m.hasChild||M(c)},z=v.useCallback(function(O){O.stopPropagation(),O.preventDefault(),C(c,O)},[c.id,C]);return v.useEffect(function(){var O;return(O=g.current)===null||O===void 0||O.addEventListener("contextmenu",z),function(){var T;(T=g.current)===null||T===void 0||T.removeEventListener("contextmenu",z)}},[]),E.createElement("div",{className:S,onClick:A,style:{paddingLeft:d*20,cursor:"pointer"}},E.createElement("style",null,Qxi),E.createElement(E.Fragment,null,m.hasChild?E.createElement("div",null,p?E.createElement(ugt,null):E.createElement(hQ,null)):null,E.createElement("div",null,m.hasChild||((t=c.data)===null||t===void 0?void 0:t.TagTypeCode)==="F"?E.createElement(B3,null):E.createElement(nJ,{fontSize:"small"}))),((n=c.data)===null||n===void 0?void 0:n.TagName)&&E.createElement(E.Fragment,null,((r=c.data)===null||r===void 0?void 0:r.TagTypeCode)&&((i=c.data)===null||i===void 0?void 0:i.TagTypeCode)!=="F"&&E.createElement("div",{className:w.dataTypeOfTree,style:{backgroundColor:((o=c.data)===null||o===void 0?void 0:o.TagTypeCode)==="A"?"#AD48C4":"#C46F48",margin:"0 5px"}},(a=c.data)===null||a===void 0?void 0:a.TagTypeCode),E.createElement(ls,{title:c.data.TagName,placement:"top",arrow:!0},E.createElement(vt,{variant:"body2"},((s=c.data)===null||s===void 0?void 0:s.Alias)||((l=c.data)===null||l===void 0?void 0:l.TagName)))))},Jxi=function(e){var t=e.isOpen;e.onClose;var n=e.onTagSelect,r=mte(),i=v.useState(!0),o=i[0],a=i[1],s=v.useState(""),l=s[0],c=s[1],u=v.useState([]),d=u[0],p=u[1],h=v.useState(null),g=h[0],m=h[1],b=v.useState(null),y=b[0],M=b[1],C=v.useState(!1),x=C[0],w=C[1],S=1e6,A=v.useState({}),z=A[0],O=A[1],T=v.useState([]),R=T[0],P=T[1];zM().state.viewTags;var F=function(G,q){q.preventDefault();var $=q.clientY,U=q.clientX;M({x:U,y:$}),P([G]),w(!0);var X=d.find(function(Q){var re;return((re=Q.data)===null||re===void 0?void 0:re.TagId)===G.id});X&&m(X)},N=function(){return Ct(void 0,void 0,void 0,function(){var G,q,$;return xt(this,function(U){switch(U.label){case 0:return t?(a(!0),[4,VOt()]):[3,2];case 1:G=U.sent(),G.ok&&(q=G.data.tables[0].rows,$=nzt(q),p($)),a(!1),U.label=2;case 2:return[2]}})})},L=v.useMemo(function(){return Object.keys(z).map(function(G){return Number.parseInt(G)})},[z]);v.useEffect(function(){N()},[t]);var W=function(G,q){return Ct(void 0,void 0,void 0,function(){var $,U,X,X,Q,re;return xt(this,function(ee){switch(ee.label){case 0:return a(!0),q.dragSource?($=Number(q.dragSource.id),U=Number((Q=q.dropTarget)===null||Q===void 0?void 0:Q.id)||null,$===U?(a(!1),[2]):((re=q.dragSource.data)===null||re===void 0?void 0:re.TagTypeCode)!=="F"?[3,2]:[4,gte($,U,q.dragSource.text,!0)]):[3,5];case 1:return X=ee.sent(),X.ok||c(X.message),[3,4];case 2:return[4,GOt($,U)];case 3:X=ee.sent(),X.ok||c(X.message),ee.label=4;case 4:p(G),ee.label=5;case 5:return a(!1),[2]}})})},j=function(G){G.data&&n(G.data)},V=function(G){x&&w(!1)};return E.createElement(E.Fragment,null,E.createElement("div",{style:{display:t?"block":"none",minHeight:"700px",minWidth:"800px"},onClick:V},E.createElement("div",{style:{overflowY:"auto",maxHeight:"700px"}},o?E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"100px"}},E.createElement(Kt,{size:"2rem"})):E.createElement(MZ,{backend:CZ},E.createElement(tJ,{classes:{root:r.assetRoot,dropTarget:r.dropTarget},initialOpen:L,tree:d,rootId:S,onDrop:W,canDrop:function(G,q){return!R.some(function($){return Number($.id)===Number(q.dropTargetId)})},render:function(G,q){var $=R.some(function(U){return Number(U.id)===Number(G.id)});return E.createElement(Zxi,{setContextMenuOver:F,node:G,options:q,isSelected:$,openTagFolders:z,setOpenTagFolders:O,handleSelect:j})},dragPreviewRender:function(G){return E.createElement(tzt,{monitorProps:G})}})))),E.createElement(ezt,{anchorPoint:y,isOpen:x,setShowContextMenu:w,tagNodeSelectedInTree:g,getTagsTreeData:N}),E.createElement(yt,{error:l,onHide:function(){return c("")}}))},ewi=function(e){var t=e.open,n=e.handleClose,r=e.onTagSelect;return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:n,maxWidth:"lg","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Tags"},E.createElement(We.Content,null,E.createElement(Tn,null,E.createElement(vt,{id:"modal-modal-description"},E.createElement(Jxi,{isOpen:t,onClose:function(){return n},onTagSelect:r}))))))},twi=function(e){var t=e.cursorData,n=e.viewTagsMap,r=e.chartData;return v.useMemo(function(){var i,o={};if(t){var a=function(l){for(var c=n[l].viewTag,u=((i=r.datasets.find(function(C){return C.tagId===c?.TagId}))===null||i===void 0?void 0:i.data)||[],d={x:new Date("1900-01-01"),y:0},p={y:0},h=!1,g={x:0,y:Number.POSITIVE_INFINITY},m={x:0,y:Number.NEGATIVE_INFINITY},b=0;b<u.length;b++){var y=u[b],M=y.x;if(h)if(M<t.x2)p=y,g.y>y.y&&(g=JSON.parse(JSON.stringify(y))),m.y<y.y&&(m=JSON.parse(JSON.stringify(y)));else break;else if(M<t.x1){d=y,p=JSON.parse(JSON.stringify(d)),g=JSON.parse(JSON.stringify(d)),m=JSON.parse(JSON.stringify(d));continue}else h=!0}o[c?.TagName]={y1:d.y,y2:p.y,y2y1:Number(p.y)-Number(d.y),pmin:g,pmax:m}};for(var s in n)a(s)}return o},[n,r,t])},nwi=Et(function(e){return{topTitles:{border:"0.0625rem solid black",borderBottom:"none",backgroundColor:"#f5f7f7",color:"#333",fontWeight:"normal",textAlign:"center",padding:"6px 0"},bottomTitlesRow:{"& th":{border:"0.0625rem solid black",backgroundColor:"#f5f7f7",color:"#333",fontWeight:"normal",textAlign:"center",padding:"6px 0"}},checkbox:{'& input[type="checkbox"]':{zoom:1.5},textAlign:"center"},rowHover:{"&:hover":{backgroundColor:"#f2f2f2"}},doubleInput:{padding:"0",'& input[type="text"] ':{width:"100%",height:"17px",display:"block",margin:"0",padding:"0"}},inputCol:{width:"11.25rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},aliasCol:{width:"18rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},viewSelected:{width:"26.125rem",padding:"0"},autoScale:{width:"7.5rem"},scale:{width:"37.5rem",padding:"0"},visible:{width:"3.75rem",fontSize:"12px"},color:{width:"4.375rem"},unit:{width:"7.5rem"},numberInput:{"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&":{"-moz-appearance":"textfield"}},xStats:{},dataType:{width:"30px",height:"30px",color:"white",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",border:"1px black solid"}}}),rwi=function(e,t){var n=t-e,r=n/1e3,i=r/60,o=i/60,a=o/24,s=a/30,l=r%60;if(s>12){var c=s/12;return"".concat(Math.floor(c)," years, ").concat(Math.floor(s%12)," months")}else return s>6?"".concat(Math.floor(s)," months, ").concat(Math.floor(a%30)," days"):a>10||a>1?"".concat(Math.floor(a)," days, ").concat(Math.floor(o%24)," hours"):o>12?"".concat(Math.floor(o)," hours, ").concat(Math.floor(i%60)," minutes, ").concat(l.toFixed(2)," seconds"):o<1?"".concat(Math.floor(i)," minutes, ").concat(l.toFixed(2)," seconds"):"".concat(Math.floor(o)," hours, ").concat(Math.floor(i%60)," minutes, ").concat(l.toFixed(2)," seconds")},iwi=function(e){var t=e.chartData,n=e.cursorData,r=e.getTagsFromAPI,i=e.viewTagForDelete,o=e.setViewTagForDelete,a=e.selectedRowTagId,s=e.setSelectedRowTagId,l=e.handleRightClick;e.setContextMenuPosition;var c=e.contextMenuPosition,u=e.openContextMenu,d=e.setOpenContextMenu,p=nwi(),h=zM(),g=h.state,m=g.viewTags,b=g.viewSelected,y=h.actions,M=y.setViewTags,C=y.setViewTagsAndRefetch,x=v.useState({});x[0],x[1];var w=v.useState(""),S=w[0],A=w[1],z=v.useState(!1);z[0];var O=z[1],T=v.useState(!1),R=T[0],P=T[1],F=v.useState(!1),N=F[0],L=F[1],W=v.useState(!1),j=W[0],V=W[1],G=v.useState(""),q=G[0],$=G[1],U=twi({viewTagsMap:m,chartData:t,cursorData:n}),X=function(ie,ue,Ae){var Ce,Ee;M(tt(tt({},m),(Ce={},Ce[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),(Ee={},Ee[Ae]=ue,Ee.IsAutoScale=!1,Ee))}),Ce)))},Q=function(ie,ue,Ae){X(Ae,ie,ue)},re=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{Alias:ue})}),Ae)))},ee=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{IsVisible:ue})}),Ae)))},se=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{Unit:ue})}),Ae)))},pe=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{IsAutoScale:!ue})}),Ae)))},te=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{Color:ue})}),Ae)))},ce=function(ie){var ue=m,Ae=ie;ue[Ae];var Ce=s2(ue,[typeof Ae=="symbol"?Ae:Ae+""]);C(Ce)},oe=function(ie){var ue;C(tt(tt({},m),(ue={},ue[ie.TagId]={viewTag:tt(tt({},ie),{IsVisible:!0,TagType:ie.TagTypeCode,Color:ie.Color||yj(),IsAutoScale:!(ie.MinScale||ie.MaxScale)}),order:Object.keys(m).length},ue)))},ae=function(ie,ue){ue&&pe(ie,ue)},ne=function(){return P(!1)},le=function(ie){var ue=ie.x,Ae=ie.y,Ce=ie.options,Ee=function(Ge){Ge.stopPropagation()};return E.createElement("div",{className:"context-menu",style:{top:Ae,left:ue},onClick:Ee},E.createElement("ul",null,Ce.map(function(Ge){return E.createElement("li",{key:Ge.id,onClick:Ge.onClick},Ge.label)})))},he=[];i&&he.push({id:"delete",label:"Remove Tag",onClick:function(){me(),d(!1)}}),he.push.apply(he,[{id:"add",label:"Tags Tree",onClick:function(){P(!0),d(!1)}},{id:"saveDefault",label:"Save Default To Tag",onClick:function(){de(),d(!1)}},{id:"saveView",label:"Save View",onClick:function(){Me(),d(!1)}},{id:"saveViewAs",label:"Save View as",onClick:function(){L(!0),d(!1)}},{id:"loadView",label:"Load View",onClick:function(){V(!0),d(!1)}}]);var be=function(ie){var ue=m[ie.TagId];ue?A("".concat(ie.TagName," is already selected")):oe(ie)},me=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ie){return gi(i)||(b?.ViewId&&ce(i.TagId),s(null),o(null)),[2]})})},Me=function(){return Ct(void 0,void 0,void 0,function(){var ie,ue,Ae;return xt(this,function(Ce){switch(Ce.label){case 0:return b?[3,1]:(L(!0),[2]);case 1:return O(!0),b?.ViewId?[4,Mj(b?.ViewId,b.ViewName,b.IsPublic)]:[3,6];case 2:return ie=Ce.sent(),ie.ok?[4,YOt(b.ViewId)]:[3,5];case 3:return ue=Ce.sent(),ue.ok||A(ue.message),[4,Promise.allSettled(Object.values(m).sort(function(Ee,Ge){return Ge.order-Ee.order}).map(function(Ee){var Ge=Ee.viewTag,_e=Ge.TagId,Ie=Ge.Color,Le=Ge.MinScale,we=Ge.MaxScale,ve=Ge.IsAutoScale,De=Ge.IsVisible,ze=Ge.Unit;aD(b?.ViewId,_e,Ie,Le,we,De,ve,ze).then(function(Ve){Ve.ok||A(Ve.message)})}))];case 4:return Ae=Ce.sent(),Ae.forEach(function(Ee,Ge){Ee.status==="rejected"?A("Tag ".concat(Ge," failed with reason: ").concat(Ee.reason)):(s(null),$("View saved successfully"))}),[3,6];case 5:A(ie.message),Ce.label=6;case 6:O(!1),Ce.label=7;case 7:return[2]}})})},Oe=function(ie,ue){ue!=="clickaway"&&$("")};v.useEffect(function(){var ie=function(Ae){a!==null&&s(null)},ue=function(Ae){Ae.key==="Escape"&&a!==null&&s(null)};return document.addEventListener("click",ie),document.addEventListener("keydown",ue),function(){document.removeEventListener("click",ie),document.removeEventListener("keydown",ue)}},[a]);var de=function(){return Ct(void 0,void 0,void 0,function(){var ie,ue,Ae,Ce,Ee,Ge,_e,Ie,Le,we,ve;return xt(this,function(De){switch(De.label){case 0:return b&&a!==null?(ie=m[a].viewTag,ue=ie.TagId,Ae=ie.Alias,Ce=ie.Color,Ee=ie.MinScale,Ge=ie.MaxScale,_e=ie.Unit,Ie=ie.IsVisible,Le=ie.IsAutoScale,[4,$Ot(ue,Ae,Ce,Ee,Ge,_e)]):[3,3];case 1:return we=De.sent(),[4,aD(b?.ViewId,ue,Ce,Ee,Ge,Ie,Le,_e)];case 2:ve=De.sent(),we.ok||A(we.message),ve.ok||A(ve.message),s(null),De.label=3;case 3:return[2]}})})};return E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:1,alignContent:"flex-start",style:{height:"100%",maxHeight:"100%",overflowY:"auto"}},E.createElement(D,{item:!0,xs:12,style:{position:"sticky",background:"white",top:0,left:0,zIndex:1e3}},E.createElement("div",{style:{overflowX:"auto",width:"100%"}},E.createElement("table",{style:{width:"100%",tableLayout:"fixed",textAlign:"center"}},E.createElement("thead",null,E.createElement("tr",null,E.createElement("th",{className:"".concat(p.topTitles," ").concat(p.viewSelected)},b?E.createElement(Ne,{variant:"text",style:{color:"#0075ff"},className:p.viewSelected,onClick:function(){return V(!0)},startIcon:b.IsPublic?E.createElement(E.Fragment,null):E.createElement(CB,{fontSize:"small"})},b?.ViewName||""):E.createElement(Ne,{variant:"text",style:{color:"#0075ff"},className:p.viewSelected,onClick:function(){return L(!0)}},E.createElement("i",null,E.createElement(S1t,null),"(Save view as)"))),E.createElement("th",{colSpan:4,className:"".concat(p.topTitles," ").concat(p.scale)},"Scale"),E.createElement("th",{className:"".concat(p.topTitles," ").concat(p.xStats)},n?(function(){var ie=new Date(n.x1),ue=new Date(n.x2),Ae=ie.toLocaleString("en-US",tt({hour12:!1,month:"short",day:"numeric"},ie.getFullYear()!==ue.getFullYear()&&{year:"numeric"})),Ce="".concat(Ae);return E.createElement(E.Fragment,null,E.createElement("span",{style:{height:"10px",width:"10px",backgroundColor:"red",borderRadius:"50%",display:"inline-block",marginRight:"5px"}}),Ce)})():null),E.createElement("th",{className:"".concat(p.topTitles," ").concat(p.xStats)},n?(function(){var ie=new Date(n.x1),ue=new Date(n.x2),Ae=ue.toLocaleString("en-US",tt({hour12:!1,month:"short",day:"numeric"},ie.getFullYear()!==ue.getFullYear()&&{year:"numeric"})),Ce="".concat(Ae);return E.createElement(E.Fragment,null,E.createElement("span",{style:{height:"10px",width:"10px",backgroundColor:"blue",borderRadius:"50%",display:"inline-block",marginRight:"5px"}}),Ce)})():null),E.createElement("th",{colSpan:3,className:"".concat(p.topTitles," ").concat(p.xStats)},n?rwi(n.x1,n.x2):null)))),E.createElement("table",{style:{width:"100%",tableLayout:"fixed",textAlign:"center"}},E.createElement("thead",null,E.createElement("tr",{className:p.bottomTitlesRow},E.createElement("th",{className:p.visible},"Visible"),E.createElement("th",{className:p.aliasCol},"Alias / Tagname"),E.createElement("th",{className:p.color},"Color"),E.createElement("th",{className:p.inputCol},"Min Scale"),E.createElement("th",{className:p.inputCol},"Max Scale"),E.createElement("th",{className:p.autoScale},"AutoScale"),E.createElement("th",{className:p.unit},"Unit"),E.createElement("th",null," ",n?(function(){var ie=new Date(n.x1),ue=ie.toLocaleString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),Ae=(ie.getMilliseconds()/1e3).toFixed(2).substring(2),Ce="".concat(ue,".").concat(Ae," hs");return E.createElement(E.Fragment,null,Ce)})():null," "),E.createElement("th",null," ",n?(function(){var ie=new Date(n.x2),ue=ie.toLocaleString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),Ae=(ie.getMilliseconds()/1e3).toFixed(2).substring(2),Ce="".concat(ue,".").concat(Ae," hs");return E.createElement(E.Fragment,null,Ce)})():null," "),E.createElement("th",null,"Y2-Y1"),E.createElement("th",null,"Min"),E.createElement("th",null,"Max")))))),E.createElement(D,{item:!0,xs:12},E.createElement("div",{style:{width:"100%",height:"100%",maxHeight:"100%"}},E.createElement("table",{cellPadding:"4px",style:{width:"100%",tableLayout:"fixed",textAlign:"center"}},E.createElement("tbody",null,Object.values(m).length?Object.values(m).map(function(ie){var ue,Ae,Ce,Ee,Ge,_e,Ie,Le=ie.viewTag;return E.createElement("tr",{key:Le.TagName,onContextMenu:function(we){return l(we,Le.TagId)},className:p.rowHover},E.createElement("td",{className:"".concat(p.visible," ").concat(p.checkbox)},E.createElement("input",{type:"checkbox",checked:Le.IsVisible,onChange:function(we){return ee(Le.TagId,we.target.checked)}})),E.createElement("td",{className:p.aliasCol},E.createElement(ls,{title:Le.TagName,placement:"top",arrow:!0,interactive:!0,enterDelay:500},E.createElement("div",{style:{display:"flex",alignItems:"center"}},Le.TagType&&E.createElement("div",{className:p.dataType,style:{backgroundColor:Le.TagType==="A"?"#AD48C4":"#C46F48"}},Le.TagType),E.createElement("input",{type:"text",style:{width:"100%"},value:Le.Alias||Le.TagName,onFocus:function(we){return we.target.select()},onChange:function(we){var ve=we.target.value;re(Le.TagId,ve)}})))),E.createElement("td",{className:p.color},E.createElement(Vxi,{onChange:te,color:Le.Color,elementId:Le.TagId})),E.createElement("td",{className:p.inputCol},E.createElement("input",{type:"number",className:p.numberInput,style:tt({width:"100%"},Le.IsAutoScale?{backgroundColor:"rgba(239, 239, 239, 0.3)",color:"rgba(84, 84, 84, 1)",border:"1px solid rgba(118, 118, 118, 0.3)"}:{}),value:Le.MinScale,onClick:function(){return ae(Le.TagId,Le.IsAutoScale)},onFocus:function(we){return we.target.select()},onChange:function(we){return Q(we.target.value,"MinScale",Le.TagId)}})),E.createElement("td",{className:p.inputCol},E.createElement("input",{type:"number",className:p.numberInput,style:tt({width:"100%",WebkitAppearance:"none"},Le.IsAutoScale?{backgroundColor:"rgba(239, 239, 239, 0.3)",color:"rgba(84, 84, 84, 1)",border:"1px solid rgba(118, 118, 118, 0.3)"}:{}),value:Le.MaxScale,onClick:function(){return ae(Le.TagId,Le.IsAutoScale)},onFocus:function(we){return we.target.select()},onChange:function(we){Q(we.target.value,"MaxScale",Le.TagId)}})),E.createElement("td",{className:"".concat(p.autoScale," ").concat(p.checkbox)},E.createElement("input",{type:"checkbox",checked:!!Le.IsAutoScale,onChange:function(we){return pe(Le.TagId,Le.IsAutoScale)}})),E.createElement("td",{className:"".concat(p.autoScale," ").concat(p.checkbox)},E.createElement("input",{type:"text",style:{width:"100%"},onClick:function(){return ae(Le.TagId,Le.IsAutoScale)},onChange:function(we){var ve=we.target.value;se(Le.TagId,ve)},value:Le.Unit==="-"?"":Le.Unit,onFocus:function(we){return we.target.select()}})),E.createElement("td",null,w4((ue=U[Le.TagName])===null||ue===void 0?void 0:ue.y1,3)||0),E.createElement("td",{className:p.doubleInput},w4((Ae=U[Le.TagName])===null||Ae===void 0?void 0:Ae.y2,3)||0),E.createElement("td",null,w4((Ce=U[Le.TagName])===null||Ce===void 0?void 0:Ce.y2y1,3)||0),E.createElement("td",null,Kfe(((Ee=U[Le.TagName])===null||Ee===void 0?void 0:Ee.pmin.y)*0)?0:w4((Ge=U[Le.TagName])===null||Ge===void 0?void 0:Ge.pmin.y,3)," "),E.createElement("td",null,Kfe(((_e=U[Le.TagName])===null||_e===void 0?void 0:_e.pmax.y)*0)?0:w4((Ie=U[Le.TagName])===null||Ie===void 0?void 0:Ie.pmax.y)," "))}):E.createElement("div",{style:{padding:"1rem"}},E.createElement("div",{style:{padding:"1rem"}},"No tag view detected."," "),E.createElement("div",{style:{padding:"1rem"}},E.createElement(Ne,{onClick:function(){return P(!0)},variant:"contained",color:"primary"}," ","Add tag")),E.createElement("div",null,E.createElement(Ne,{onClick:function(){return V(!0)},variant:"outlined",color:"primary"}," ","Load view"))))))),u&&E.createElement(le,{x:c.x,y:c.y,options:he}),E.createElement(ewi,{open:R,handleClose:ne,onTagSelect:be}),E.createElement(Kxi,{open:N,handleClose:function(ie){L(!1),ie&&r(!0).then(function(){})}}),E.createElement(Yxi,{open:j,getTagsFromAPI:r,handleClose:function(ie){V(!1)}})),E.createElement(yt,{error:S,onHide:function(){return A("")}}),E.createElement(pr,{open:!!q,autoHideDuration:800,onClose:Oe},E.createElement(Pr,{onClose:Oe,severity:"success"},q)))},eY=function(e){var t=e.getHours().toString().padStart(2,"0"),n=e.getMinutes().toString().padStart(2,"0"),r=e.getSeconds().toString().padStart(2,"0");t==="24"&&(t="00");var i=e.toLocaleDateString("en-US",{month:"short",day:"numeric"}),o="".concat(t,":").concat(n,":").concat(r);return{formattedDate:i,formattedTime:o}},owi=function(){var e=zM();e.state;var t=e.actions,n=v.useRef(null),r=v.useCallback(function(a){var s=a.chart;n.current&&clearTimeout(n.current),n.current=setTimeout(function(){var l=new Date(s.scales.x.min),c=new Date(s.scales.x.max);t.setTotalScope({start:l,end:c})},1e3)},[t]),i=v.useCallback(function(a){var s=a.chart;n.current&&clearTimeout(n.current),n.current=setTimeout(function(){var l=new Date(s.scales.x.min),c=new Date(s.scales.x.max);t.setTotalScope({start:l,end:c,graphPan:!0})},1e3)},[t]),o=v.useMemo(function(){return{animation:{duration:0},responsive:!0,maintainAspectRatio:!1,scales:{x:{type:"time",ticks:{autoSkip:!0,maxTicksLimit:20,callback:function(a,s,l){var c=new Date(a),u=eY(c).formattedTime,d=eY(c).formattedDate;return s===0?[u,d]:u}},grid:{display:!0}},y:{grid:{display:!0},afterUpdate:function(a){var s=a.chart,l=Object.keys(s.scales).filter(function(d){return d!=="x"});if(l.length>1)for(var c in s.scales){var u=s.scales[c];u.max===1&&u.min===0?(s.scales[c].display=!1,s.scales[c].options.display=!1):(s.scales[c].display=!0,s.scales[c].options.display=!0)}}}},plugins:{tooltip:{enabled:!1},legend:{display:!1},zoom:{zoom:{wheel:{enabled:!0,mode:"x"},pinch:{enabled:!0,mode:"x"},onZoom:r,mode:"x"},pan:{enabled:!0,mode:"x",onPan:i}}}}},[r,i]);return v.useState(o)},awi=function(e){var t=e.customOptions,n=e.setCustomOptions,r=cT(),i=function(a){n(function(s){return tt(tt({},s),{showGrid:a})})},o=function(a){n(function(s){return tt(tt({},s),{stepped:a})})};return E.createElement(E.Fragment,null,E.createElement(D,{item:!0,className:r.labelOptions},E.createElement("label",null,E.createElement("input",{type:"checkbox",checked:t.showGrid,onChange:function(a){return i(a.target.checked)}}),"Show Grid")),E.createElement(D,{item:!0,className:r.labelOptions},E.createElement("label",null,E.createElement("input",{type:"checkbox",checked:t.stepped,onChange:function(a){return o(a.target.checked)}}),"Stepped")))},swi=function(e){var t=e.setChartOptions,n=cT(),r=zM(),i=r.state,o=r.actions,a=v.useState({showGrid:!0,stepped:!1}),s=a[0],l=a[1],c=function(p,h){h===void 0&&(h=!1);var g=KOt(i.timeScopeStart,i.timeScopeEnd,i.scope,p,h);g&&o.setTotalScope({start:g.newStartDate,end:g.newEndDate,scope:i.scope})},u=function(p,h){var g;o.setTotalScope((g={},g[h]=mt(p).toDate(),g))},d=function(p){var h=p.target.value;o.setTotalScope({scope:h})};return v.useEffect(function(){var p=function(){t(function(h){var g=tt({},h.scales);return Object.keys(g).forEach(function(m){m&&(g[m]=tt(tt({},g[m]),{grid:tt(tt({},g[m].grid),{display:s.showGrid})}))}),tt(tt({},h),{elements:{line:{stepped:s.stepped,lineTension:.1}},scales:g})})};p()},[s]),v.useEffect(function(){t(function(p){return tt(tt({},p),{scales:tt(tt({},p.scales),{x:tt(tt({},p.scales.x),{min:i.timeScopeStart.getTime(),max:i.timeScopeEnd.getTime()})})})})},[i.timeScopeStart,i.timeScopeEnd]),E.createElement(D,{item:!0,xs:12,container:!0,justifyContent:"space-between",alignItems:"center",style:{height:"15%"}},E.createElement(D,{md:6,item:!0,container:!0,justifyContent:"flex-start",alignItems:"center",wrap:"wrap"},E.createElement(D,{item:!0},E.createElement(bn,{color:"primary",onClick:function(){return c("subtract")},className:n.navigatorButton},E.createElement(W6,{fontSize:"large"}))),E.createElement(D,{item:!0},E.createElement(je,{type:"datetime-local",className:n.datetimePicker,label:"Start",variant:"outlined",value:mt(i.timeScopeStart).format("YYYY-MM-DDTHH:mm:ss"),onChange:function(p){return u(p.target.value,"start")},InputLabelProps:{shrink:!0,style:{marginLeft:"10px"}},InputProps:{max:i.timeScopeEnd}})),E.createElement(D,{item:!0,className:n.select},E.createElement(ja,{variant:"outlined"},E.createElement(cs,{value:i.scope,onChange:d,displayEmpty:!0},E.createElement(lr,{value:"10 min"},"10 min"),E.createElement(lr,{value:"1 hour"},"1 hour"),E.createElement(lr,{value:"4 hours"},"4 hours"),E.createElement(lr,{value:"12 hours"},"12 hours"),E.createElement(lr,{value:"1 day"},"1 day"),E.createElement(lr,{value:"10 days"},"10 days"),E.createElement(lr,{value:"custom"},"Custom")))),E.createElement(D,{item:!0},E.createElement(je,{label:"End",variant:"outlined",className:n.datetimePicker,type:"datetime-local",value:mt(i.timeScopeEnd).format("YYYY-MM-DDTHH:mm:ss"),onChange:function(p){return u(p.target.value,"end")},InputLabelProps:{shrink:!0,style:{marginLeft:"10px"}}})),E.createElement(D,{item:!0},E.createElement(bn,{onClick:function(){return c("add")},className:"".concat(n.navigatorButton)},E.createElement(fQ,{fontSize:"large"}))),E.createElement(D,{item:!0},E.createElement(bn,{onClick:function(){return c("subtract",!0)},className:"".concat(n.navigatorButton)},E.createElement(Kxe,{fontSize:"large"})))),E.createElement(D,{md:6,item:!0,container:!0,justifyContent:"space-between"},E.createElement(D,{item:!0,container:!0,wrap:"nowrap",spacing:1},E.createElement(D,{item:!0,container:!0},E.createElement(awi,{customOptions:s,setCustomOptions:l})))))},m2e=E.memo(function(e){var t=e.initialLeft,n=e.otherLineCoord,r=e.onUpdate,i=e.color,o=e.chartArea,a=v.useState(!1),s=a[0],l=a[1],c=v.useState(t),u=c[0],d=c[1],p=v.useRef(null),h=function(b){l(!0),b.stopPropagation(),b.preventDefault()},g=function(b){if(!(!s||!p.current)){o.width-o.right,o.left;var y=Math.min(Math.max(b.clientX-p.current.offsetParent.getBoundingClientRect().left,o.left),o.right);i==="red"&&y>n-20?y=n-20:i==="blue"&&y<n+20&&(y=n+20),d(y),r(y)}},m=function(){l(!1)};return v.useEffect(function(){var b=function(M){return g(M)},y=function(){return m()};return s&&(window.addEventListener("mousemove",b),window.addEventListener("mouseup",y)),function(){window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",y)}},[s]),E.createElement("div",{ref:p,style:{height:20,width:20,background:i,position:"absolute",top:-10,left:u-10},onMouseDown:h},E.createElement("div",{style:{height:o.height,width:2,background:i,position:"relative",top:20,left:0,right:0,margin:"auto"}}))});m2e.displayName="DraggableLineControl";var lwi=function(e,t){var n=v.useMemo(function(){return{id:"verticalLinePlugin",afterUpdate:function(r){r.chartArea&&(r.mouseX===null&&(r.mouseX=r.chartArea.left+r.chartArea.width/10),r.secondLineX===null&&(r.secondLineX=r.chartArea.left+r.chartArea.width*.9))},beforeInit:function(r){r.mouseX=null,r.secondLineX=null},afterDatasetsDraw:function(r){var i=r.mouseX,o=r.secondLineX;e(r.chartArea),t({x1:i,x2:o})}}},[e,t]);return n},RKe=function(e,t){var n=[];return e.data.datasets.forEach(function(r){for(var i=null,o=0;o<r.data.length&&r.data[o].x.getTime()<=t;o++)i=r.data[o];i&&n.push(i.y)}),n},IKe=function(e,t){var n=e.scales.x,r=n.getValueForPixel(e.mouseX),i=n.getValueForPixel(e.secondLineX),o=RKe(e,r),a=RKe(e,i);t({x1:r,x2:i,values:xi(xi([],o,!0),a,!0)})},cwi=function(){var e=v.useMemo(function(){return{id:"xAxisDatePlugin",afterBuildTicks:function(t){var n=t.scales.x.ticks,r=[];r.push(n[0]);for(var i=1;i<n.length;i++){var o=new Date(n[i].value),a=new Date(n[i-1].value),s=eY(o).formattedTime,l=eY(o).formattedDate,c=void 0;o.getDate()!==a.getDate()?c=[s,l]:c=s,r.push({value:n[i].value,major:n[i].major,label:c})}t.scales.x.ticks=r}}},[]);return e},uwi=function(){var e=v.useMemo(function(){return{id:"yAxisPlugin"}},[]);return e},PKe=function(e,t){if(!(gi(e.MaxScale)||gi(e.MinScale)||gi(t.MaxScale)||gi(t.MinScale))){var n=e.MaxScale-e.MinScale,r=t.MaxScale-t.MinScale,i=Math.max(e.MinScale,t.MinScale),o=Math.min(e.MaxScale,t.MaxScale),a=Math.max(0,o-i),s=a/n>.5&&a/r>.5;return s}},ozt=E.memo(function(e){var t=e.series,n=e.chartOptions,r=e.setChartOptions,i=e.chartData,o=e.setCursorData,a=e.setChartData,s=zM(),l=s.state,c=s.state.viewTags;s.actions;var u=v.useState(null),d=u[0],p=u[1],h=v.useState(null),g=h[0],m=h[1],b=v.useRef(null),y=v.useRef({viewTags:c,series:t,setChartOptions:r,setChartData:a}),M=v.useRef($y(function(){b.current&&(IKe(b.current,o),b.current.update())},250));y.current={viewTags:c,series:t,setChartOptions:r,setChartData:a};var C=v.useRef($y(function(){var N=y.current,L=N.viewTags,W=N.series,j=N.setChartOptions,V=N.setChartData,G=[];if(W.length){Object.values(L).forEach(function(U,X){var Q=U.viewTag,re=G.findIndex(function(ee){return PKe(ee,Q)});re===-1?(G.push(Q),F.current[Q.TagId]=Q.TagId):F.current[Q.TagId]=G[re].TagId});var q=G.map(function(U){var X=Number(U.MinScale),Q=Number(U.MaxScale);return!X&&!Q&&(Q=1),{id:"y-axis-".concat(U.TagId),type:"linear",display:U.IsVisible,title:{display:!0,text:U.TagName},min:U.IsAutoScale?void 0:X,max:U.IsAutoScale?void 0:Q,suggestedMin:U.IsAutoScale?void 0:X,suggestedMax:U.IsAutoScale?void 0:Q,stepSize:10,grid:{display:!0},afterUpdate:function(re){var ee=re.chart,se=Object.keys(ee.scales).filter(function(oe){return oe!=="x"}),pe=0;if(se.length>1)for(var te in ee.scales){var ce=ee.scales[te];ce.max===1&&ce.min===0?(ee.scales[te].display=!1,ee.scales[te].options.display=!1,pe++):(ee.scales[te].display=!0,ee.scales[te].options.display=!0),pe===se.length&&(ee.scales[se[0]].display=!0,ee.scales[se[0]].options.display=!0)}}}});j(function(U){var X=tt(tt({},U),{scales:tt({x:tt({},U.scales.x)},q.reduce(function(Q,re){var ee;return tt(tt({},Q),(ee={},ee[re.id]=re,ee))},{}))});return X});var $=W.map(function(U,X){var Q,re=Object.values(L).sort(function(pe,te){return te.order-pe.order}),ee=(Q=re[X])===null||Q===void 0?void 0:Q.viewTag,se=F.current[ee?.TagId];return{yAxisID:"y-axis-".concat(se),data:U.map(function(pe){return{x:new Date(pe.timestamp),y:pe.value}}),tagId:ee?.TagId,borderColor:ee?.Color,hidden:!ee?.IsVisible,pointRadius:U.length<=50?3:0}});S(!0),V({labels:[],datasets:$})}},1e3)),x=v.useState(!1),w=x[0],S=x[1],A=v.useCallback(function(N){return m(N)},[]),z=v.useCallback(function(N){return p(N)},[]),O=lwi(A,z),T=cwi(),R=uwi(),P=v.useMemo(function(){return[O,T,R]},[O,T,R]),F=v.useRef({});return v.useEffect(function(){C.current()},[t]),v.useEffect(function(){w&&b.current&&(IKe(b.current,o),b.current.update())},[w,l.graphShouldUpdate]),v.useEffect(function(){a(function(N){if(!N.datasets||!N.datasets.length)return N;var L=N.datasets.map(function(W){var j=c[W.tagId];return j?tt(tt({},W),{borderColor:j.viewTag.Color,hidden:!j.viewTag.IsVisible}):W});return tt(tt({},N),{datasets:L})})},[c,a]),v.useEffect(function(){var N=[];Object.values(c).forEach(function(W){var j=W.viewTag,V=N.findIndex(function(G){return PKe(G,j)});V===-1&&N.push(j)});var L=N.map(function(W){var j=Number(W.MinScale),V=Number(W.MaxScale);return!j&&!V&&(V=1),{id:"y-axis-".concat(W.TagId),type:"linear",display:W.IsVisible,title:{display:!0,text:W.TagName},min:W.IsAutoScale?void 0:j,max:W.IsAutoScale?void 0:V,suggestedMin:W.IsAutoScale?void 0:j,suggestedMax:W.IsAutoScale?void 0:V,stepSize:10,grid:{display:!0},afterUpdate:function(G){var q=G.chart,$=Object.keys(q.scales).filter(function(re){return re!=="x"}),U=0;if($.length>1)for(var X in q.scales){var Q=q.scales[X];Q.max===1&&Q.min===0?(q.scales[X].display=!1,q.scales[X].options.display=!1,U++):(q.scales[X].display=!0,q.scales[X].options.display=!0),U===$.length&&(q.scales[$[0]].display=!0,q.scales[$[0]].options.display=!0)}}}});r(function(W){return tt(tt({},W),{scales:tt({x:tt({},W.scales.x)},L.reduce(function(j,V){var G;return tt(tt({},j),(G={},G[V.id]=V,G))},{}))})})},[c,r]),E.createElement(Pt,{style:{height:"100%",position:"relative"}},d&&g?E.createElement(m2e,{color:"red",chartArea:g,initialLeft:d?.x1,otherLineCoord:d?.x2,onUpdate:function(N){p(function(L){return L.x1=N,L}),b.current.mouseX=N,M.current()}}):null,d&&g?E.createElement(m2e,{color:"blue",initialLeft:d?.x2,otherLineCoord:d?.x1,chartArea:g,onUpdate:function(N){p(function(L){return L.x2=N,L}),b.current.secondLineX=N,M.current()}}):null,E.createElement(GOr,{ref:b,data:i,options:n,plugins:P}))});ozt.displayName="TrendingChart";YJ.register(jAr,GAr,xAr,CAr,RAr,FAr,TAr,ube,WOr);var dwi=function(e){e.title;var t=e.getTagsFromAPI,n=zM(),r=n.state,i=n.state,o=i.viewTags,a=i.shouldRefetchSeries,s=v.useState(""),l=s[0],c=s[1],u=v.useState(!0),d=u[0],p=u[1],h=v.useState([]),g=h[0],m=h[1],b=v.useState(null),y=b[0],M=b[1],C=v.useState(null),x=C[0],w=C[1],S=owi(),A=S[0],z=S[1],O=v.useState({labels:[],datasets:[]}),T=O[0],R=O[1],P=v.useState(null),F=P[0],N=P[1],L=v.useRef(null),W=v.useState({x:0,y:0}),j=W[0],V=W[1],G=v.useState(!1),q=G[0],$=G[1],U=function(X,Q){X.preventDefault(),X.stopPropagation(),ew(Q)?w(o[Q].viewTag):w(null),M(Q),$(!0),V({x:X.clientX,y:X.clientY})};return v.useEffect(function(){return L.current&&clearTimeout(L.current),L.current=setTimeout(function(){var X=function(){return Ct(void 0,void 0,void 0,function(){var Q,re,ee,se;return xt(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,3,,4]),p(!0),Q=Object.values(o).sort(function(te,ce){return ce.order-te.order}),re=Q.map(function(te){return te.viewTag.TagId}),re.length?[4,Ys.post("/series?nodeName=null",{start:r.timeScopeStart.getTime(),end:r.timeScopeEnd.getTime(),tagIds:re,sampleCount:1e3})]:[3,2];case 1:ee=pe.sent(),m(ee.data||[]),pe.label=2;case 2:return p(!1),[3,4];case 3:return se=pe.sent(),c(se.message),p(!1),[3,4];case 4:return[2]}})})};X()},800),function(){L.current&&clearTimeout(L.current)}},[a]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,style:{width:"95svw",height:"88svh",margin:0},onClick:function(){return $(!1)}},E.createElement(swi,{setChartOptions:z}),E.createElement(D,{item:!0,xs:12,style:{height:"45%"}},E.createElement(ozt,{series:g,chartData:T,setChartData:R,chartOptions:A,setChartOptions:z,setCursorData:N})),E.createElement(D,{item:!0,container:!0,xs:12,onContextMenu:function(X){return U(X,null)},style:{height:"40%",minWidth:"100%",paddingTop:"3rem",border:"4px solid #ccc",borderRadius:10,padding:10,margin:"20px 0 10px",position:d?"relative":"inherit"}},d&&E.createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:2}},E.createElement(Kt,{size:"2rem"})),E.createElement(iwi,{chartData:T,cursorData:F,getTagsFromAPI:t,openContextMenu:q,setOpenContextMenu:$,viewTagForDelete:x,setViewTagForDelete:w,selectedRowTagId:y,setSelectedRowTagId:M,handleRightClick:U,contextMenuPosition:j,setContextMenuPosition:V}))),E.createElement(yt,{error:l,onHide:function(){return c("")},title:"ERROR"}))},pwi=function(e){var t=v.useState(""),n=t[0],r=t[1],i=zM(),o=i.state.viewSelected,a=i.actions,s=a.setViews,l=a.setViewTagsAndRefetch,c=a.setViewSelected,u=function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return Ct(void 0,xi([],d,!0),void 0,function(h){var g,m,b,y;return h===void 0&&(h=!1),xt(this,function(M){switch(M.label){case 0:return[4,UOt(null)];case 1:return g=M.sent(),g.ok?(s(g.data.tables[0].rows),m=void 0,!o||h?(m=g.data.tables[0].rows.reduce(function(C,x){return C&&C.ViewId>x.ViewId?C:x},null),c(m)):m=o,m?[4,A3e(m.ViewId)]:[3,3]):[3,4];case 2:b=M.sent(),b.ok?(y=b.data.tables[0].rows.reduce(function(C,x,w){return gi(x.Color)&&(x.Color=yj()),C[x.TagId]={viewTag:x,order:w},C},{}),l(y)):r(b.message),M.label=3;case 3:return[3,5];case 4:r(g.message),M.label=5;case 5:return[2]}})})};return v.useEffect(function(){u()},[]),E.createElement(E.Fragment,null,E.createElement(yn,{title:"Trending Chart"}),E.createElement(Tn,{p:3,style:{maxWidth:"100%"}},E.createElement(Pt,null,E.createElement(D,{container:!0,spacing:3,style:{padding:"20px"}},E.createElement(D,{item:!0,xs:12},E.createElement(dwi,{title:"Trending Chart",getTagsFromAPI:u}))))),E.createElement(yt,{error:n,onHide:function(){return r("")},size:"xl",title:"ERROR"}))},hwi=function(){var e=v.useState(!1),t=e[0],n=e[1];return v.useEffect(function(){var r=function(){return Ct(void 0,void 0,void 0,function(){var i;return xt(this,function(o){switch(o.label){case 0:return[4,p3.get("/backend/ih-path")];case 1:return i=o.sent(),localStorage.setItem("ihPath",i.data),n(!0),[2]}})})};r().then(function(){console.log("ih path loaded")})},[]),t?E.createElement($xi,null,E.createElement(pwi,null)):E.createElement("div",{className:"d-flex justify-content-center align-items-center"},"Loading...")},fwi=function(){var e=v.useContext(qOt),t=kOt(),n=t("ui.navbar.settings");return E.createElement(E.Fragment,null,E.createElement(aZ,null,E.createElement(ar,{path:"/",element:E.createElement(VO,{replace:!0,to:"/home"})}),n&&E.createElement(ar,{path:"/configuration/*",element:E.createElement(cxi,null)}),E.createElement(ar,{path:"/account",element:E.createElement(MCi,null)}),E.createElement(ar,{path:"/trendings",element:E.createElement(hwi,null)}),E.createElement(ar,{path:"/trendings-v2",element:E.createElement(qxi,null)}),E.createElement(ar,{path:"/home",element:E.createElement(txi,null)})),E.createElement(e,null))},gwi=function(){return E.createElement("div",{id:"mainSection",className:"container-fluid container-fluid-main"},E.createElement(fwi,null))},mwi=function(e){var t=e.showAreaSelector,n=t===void 0?!1:t,r=e.showTrendingsIcon,i=r===void 0?!0:r,o=e.showTrendingsV2Icon,a=o===void 0?!0:o,s=e.navbarTitle,l=s===void 0?"MESF":s,c=e.byPassHeaderRoutes,u=c===void 0?[]:c,d=Zu(),p=d[0],h=v.useRef(!0),g=Dw();v.useEffect(function(){return p.has("redirectTo")&&setTimeout(function(){h.current&&(window.location.href=decodeURI(p.get("redirectTo")))},100),function(){h.current=!1}},[p.toString()]);var m=u.some(function(b){return g.pathname.startsWith(b)});return E.createElement("div",{className:"wrapper"},!m&&E.createElement(exi,{showAreaSelector:n,navbarTitle:l,showTrendingsIcon:i,showTrendingsV2Icon:a}),E.createElement(gwi,null))},vwi=function(e){var t=e.children,n=jw().isLoading,r=Ma().isLoading;return n||r?E.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"}},E.createElement(Kt,null)):E.createElement(E.Fragment,null,t)},bwi=Ic.getInstance().getServerTimeZone();oa.tz.setDefault(bwi);var ywi=document.getElementsByTagName("base")[0].getAttribute("href")||"/",Mwi=new X0n({defaultOptions:{queries:{refetchOnWindowFocus:!1,cacheTime:1e3*60}}});function Cwi(e){var t=e.authentication,n=e.routes,r=e.navbar,i=e.navbarTitle,o=i===void 0?"MESF":i,a=e.configurations,s=e.showAreaSelector,l=s===void 0?!1:s,c=e.showTrendingsIcon,u=c===void 0?!0:c,d=e.byPassHeaderRoutes,p=d===void 0?[]:d,h=e.plantAssetId,g=h===void 0?1:h,m=e.theme,b=m===void 0?F2i:m,y=e.logbookSettings,M=y===void 0?{}:y;return E.createElement(E.Fragment,null,E.createElement(eat,null),E.createElement(kut,null,E.createElement(O2i,{navbarTitle:o},E.createElement(e1n,{client:Mwi},E.createElement(Ow,{theme:b},E.createElement(CCi,{authConfig:t},E.createElement(Yst,{dateAdapter:hNn,dateLibInstance:oa},E.createElement(uCi,null,E.createElement(QCi,null,E.createElement(vwi,null,E.createElement(qCi,{logbookSettings:M},E.createElement(YMi,{plantAssetId:g},E.createElement(qOt.Provider,{value:n},E.createElement(jOt.Provider,{value:r},E.createElement(BOt.Provider,{value:a},E.createElement(_Mi,null,E.createElement(dte,null,E.createElement(Qzn,{basename:ywi},E.createElement(aZ,null,E.createElement(ar,{path:"/logout",element:E.createElement(NCi,null)})),E.createElement(mwi,{showAreaSelector:l,showTrendingsIcon:u,navbarTitle:o,byPassHeaderRoutes:p})))))))))))))))))))}var azt=function(e){var t=e.handleExportToExcel,n=e.disabled;return E.createElement(Ne,{fullWidth:!0,variant:"outlined",disabled:n,onClick:t,startIcon:E.createElement("i",{className:"far fa-file-excel"}),style:{width:"auto",height:35,display:"flex",justifyContent:"space-between",padding:"0 14px",fontSize:14,color:"".concat(n?"grey":"#217346"),border:"1px solid ".concat(n?"grey":"#217346"),backgroundColor:"#fff"}},"EXPORT TO EXCEL")},xwi=function(e){var t=e.handleNew;return E.createElement(bn,{onClick:t,color:"primary",style:{marginLeft:-15}},E.createElement(Jo,{style:{width:30,height:30}}))},szt=function(e){e.OnEdit,e.OnSend;var t={flex:1,filter:!1,floatingFilter:!1,sortable:!1,editable:!1,resizable:!1,wrapText:!1,autoHeight:!1,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}};return{defaultColDef:t}},wwi=function(e){var t=e.setSelectedRowData,n=e.setShow,r=e.setShowRemoveDialog,i=e.handleNewEntry,o=function(a){var s=[];return s=s.concat([{name:"New Entry",key:"new_logbook_entry",onClick:function(){return i()},icon:E.createElement(Jo,null)}]),a&&(s=s.concat([{name:"Edit Entry",key:"edit_logbook_entry",onClick:function(){t(a),n("edit")},icon:E.createElement(Fo,null)},{name:"Delete Entry",key:"delete_logbook_entry",onClick:function(){r(!0)},icon:E.createElement(Mo,null)}])),s};return{getMenuOptions:o}},Swi=function(e){var t=e.showContextMenu,n=e.allowAttachments,r=e.withAssetFilter,i=e.showShiftCrew,o=xi(xi(xi(xi(xi([{field:"CreateTimestamp",headerName:"Created",flex:2,valueGetter:function(a){return Wn(a.data.CreateTimestamp,"MM/dd/yy HH:mm")}}],r?[{field:"AssetName",headerName:"Asset",sortable:!0,flex:2,minWidth:70,wrapText:!0,autoHeight:!0}]:[],!0),[{field:"Title",headerName:"Title",flex:4},{field:"Author",headerName:"Created By",flex:2}],!1),i?[{field:"Shift",headerName:"Shift",sortable:!1,flex:1,minWidth:60,maxWidth:60},{field:"Crew",headerName:"Crew",sortable:!1,flex:1,minWidth:60,maxWidth:60}]:[],!0),n?[{field:"AttachmentCount",headerName:"",flex:1,headerComponent:function(){return E.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",textAlign:"center"}},E.createElement(pP,{style:{fontSize:18,color:"#666"}}))},cellRenderer:function(a){var s=a.data.AttachmentCount||0;return s===0?null:E.createElement("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"center"}},E.createElement(gM,{icon:E.createElement(pP,{style:{fontSize:16}}),label:s,size:"small",variant:"outlined",color:"primary"}))}}]:[],!0),[{field:"Content",headerName:"Content",hide:!0},{headerName:"",flex:1,wrapText:!1,autoHeight:!1,cellRenderer:function(a){return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Ne,{fullWidth:!0,onClick:function(s){return t(s,a.data,"logbookEntryContext")},size:"small"},E.createElement(Kf,{style:{height:"auto"},color:"action"}))))}}],!1);return{columnDefs:o}},tY={EntryId:0,ShiftId:0,AssetId:null,Title:"",Content:"",CreateTimestamp:new Date,UpdateTimestamp:new Date,LogEntryTypeCode:"M",Shift:null,Crew:null,Author:null,UpdatedBy:null,AttachmentCount:0},nY=Sn(),Awi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.shiftId,s=t.assetId,l=t.signal;return xt(this,function(c){switch(c.label){case 0:return n=new Ye,r=[{name:"ShiftId",value:a}],s&&r.push({name:"AssetId",value:s}),[4,n.callV2("[LB].[GetEntries]",r,l)];case 1:if(i=c.sent(),i.ok)return o=At(i,"data.tables[0].rows",[]),o=o.map(function(u){return tt(tt({},u),{CreateTimestamp:u.CreateTimestamp?nY.utc(u.CreateTimestamp).toDate():null,UpdateTimestamp:u.UpdateTimestamp?nY.utc(u.UpdateTimestamp).toDate():null})}),[2,o];throw new Error(i.message||"Error fetching entries")}})})},Owi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.assetId,a=t.entryId,s=t.shiftId,l=t.title,c=t.content,u=t.createTimestamp,d=t.author;return xt(this,function(p){switch(p.label){case 0:return n=new Ye,r=[{name:"EntryId",value:a},{name:"ShiftId",value:s},{name:"Title",value:l},{name:"Content",value:c},{name:"CreateTimestamp",value:u.toISOString()},{name:"UpdateTimestamp",value:new Date().toISOString()},{name:"Author",value:d}],(o||o===0)&&r.push({name:"AssetId",value:o}),[4,n.callV2("[LB].[UpsertEntry]",r)];case 1:if(i=p.sent(),i.ok)return[2,At(i,"data.tables[0].rows[0]",null)];throw new Error(i.message||"Error upserting entry")}})})},zwi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i,o;return xt(this,function(a){switch(a.label){case 0:t=new Ye,n=[],a.label=1;case 1:return a.trys.push([1,4,,5]),e?[4,z3e(e)]:[3,3];case 2:n=a.sent(),a.label=3;case 3:return[3,5];case 4:return r=a.sent(),console.warn("Failed to get attachments for entry deletion:",r),[3,5];case 5:return i=[{name:"EntryId",value:e}],[4,t.callV2("[LB].[DeleteEntry]",i)];case 6:if(o=a.sent(),!o.ok)throw new Error(o.message||"Error deleting entry");return n.length>0&&Twi(n),[2]}})})},Twi=function(e){return Ct(void 0,void 0,void 0,function(){return xt(this,function(t){return Promise.all(e.map(function(n){return Ct(void 0,void 0,void 0,function(){var r;return xt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,lzt(n.UploadFileId)];case 1:return i.sent(),[3,3];case 2:return r=i.sent(),console.error("Failed to delete file ".concat(n.UploadFileId,":"),r),[3,3];case 3:return[2]}})})})).catch(function(n){console.error("Background file deletion failed:",n)}),[2]})})},lzt=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"UploadFileId",value:e}],[4,t.callV2("[SYSTEM].[DeleteUploadFile]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error deleting upload file");return[2]}})})},z3e=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i;return xt(this,function(o){switch(o.label){case 0:return t=new Ye,n=[{name:"EntryId",value:e}],[4,t.callV2("[LB].[GetEntryAttachments]",n)];case 1:if(r=o.sent(),r.ok)return i=At(r,"data.tables[0].rows",[]),i=i.map(function(a){return tt(tt({},a),{CreationTime:a.CreationTime?nY.utc(a.CreationTime).toDate():new Date})}),[2,i];throw new Error(r.message||"Error fetching entry attachments")}})})},Ewi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.entryId,s=t.uploadFileId,l=t.attachmentName,c=t.attachmentURL;return xt(this,function(u){switch(u.label){case 0:return n=new Ye,r=[{name:"EntryId",value:a},{name:"UploadFileId",value:s},{name:"AttachmentName",value:l},{name:"AttachmentURL",value:c}],[4,n.callV2("[LB].[UpsertEntryAttachment]",r)];case 1:if(i=u.sent(),i.ok)return o=At(i,"data.tables[0].rows[0]",null),o?[2,tt(tt({},o),{CreationTime:o.CreationTime?nY.utc(o.CreationTime).toDate():new Date})]:[2,null];throw new Error(i.message||"Error creating entry attachment")}})})},Rwi=function(e,t){return Ct(void 0,void 0,void 0,function(){var n,r,i;return xt(this,function(o){switch(o.label){case 0:return n=new Ye,r=[{name:"EntryAttachmentId",value:e}],[4,n.callV2("[LB].[DeleteEntryAttachment]",r)];case 1:if(i=o.sent(),!i.ok)throw new Error(i.message||"Error deleting entry attachment");return t&&Iwi(t),[2]}})})},Iwi=function(e){return Ct(void 0,void 0,void 0,function(){var t;return xt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,lzt(e)];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),console.error("Failed to delete file ".concat(e,":"),t),[3,3];case 3:return[2]}})})},Pwi=Et(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0}},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"}}}),Dwi=function(e){var t=e.entry,n=e.show,r=e.onHide,i=Pwi(),o=Oo(),a=v.useState(!1),s=a[0],l=a[1],c=v.useState("");c[0];var u=c[1],d=v.useState(""),p=d[0],h=d[1],g=function(){l(!1),r(!1)},m=Gf(),b=ca(zwi,{onSuccess:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(y){switch(y.label){case 0:return[4,m.invalidateQueries({queryKey:["entries"]})];case 1:return y.sent(),o("".concat(VA),{replace:!0}),u("The entry was deleted succesfully"),r(!0),[2]}})})},onError:function(y){h(y.message)},onSettled:function(){return l(!1)}});return E.createElement(E.Fragment,null,E.createElement(Qu,{fullWidth:!0,maxWidth:"md",open:n,onClose:function(){return g()},disableEnforceFocus:!0,className:i.root},E.createElement(T0,{id:"responsive-dialog-title",style:{paddingBottom:0}},"WARNING"),E.createElement(ru,null,E.createElement(mM,{style:{padding:0,margin:0}},"Be careful, you are about to delete: ",E.createElement("b",null,t?.Title),". Once deleted you will not be able to recover this Entry. Are you sure you want to delete it?")),E.createElement(Ed,{style:{padding:"0 24px 16px"}},E.createElement(Ne,{onClick:function(){return r(!1)},autoFocus:!0,color:"default"},"CANCEL"),E.createElement(Ne,{autoFocus:!0,color:"secondary",startIcon:s&&E.createElement(Kt,{size:"1rem"}),onClick:function(){var y;return b.mutate((y=t?.EntryId)!==null&&y!==void 0?y:0)}},"Delete"))),E.createElement(yt,{error:p,onHide:function(){return h("")}}))},kwi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[MES].[GetAssets]",[])];case 1:if(t=n.sent(),t.ok)return[2,At(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching assets")}})})},czt=function(e){return jl({queryKey:["assets"],queryFn:function(){return kwi()},onError:e})},vte=function(e){var t=e.label,n=t===void 0?"Asset":t,r=e.value,i=e.onChange,o=e.filterAreaAssets,a=o===void 0?!1:o,s=e.disabled,l=s===void 0?!1:s,c=e.isFilter,u=c===void 0?!1:c,d=v.useState(""),p=d[0],h=d[1],g=czt(function(C){return h(C.message)}),m=g.data,b=g.isLoading,y=xi(xi([],u?[{label:"All",value:null,isAreaAsset:!0}]:[],!0),Array.isArray(m)?m.map(function(C){return{label:C.AssetName,value:C.AssetId,isAreaAsset:C.CanBeDefaultAsset}}):[],!0),M=y.find(function(C){return C.value===(r||null)})||y[0];return E.createElement(E.Fragment,null,E.createElement(O1t,{options:a?y.filter(function(C){return C.isAreaAsset}):y,value:M,onChange:function(C,x){var w;x&&i((w=x.value)!==null&&w!==void 0?w:null)},getOptionLabel:function(C){return C.label},isOptionEqualToValue:function(C,x){return C.value===x.value},renderOption:function(C,x){return E.createElement("li",tt({},C,{key:x.value}),x.label)},disabled:b||l,disablePortal:!0,disableClearable:!0,renderInput:function(C){return E.createElement(D3,tt({},C,{label:n,variant:"outlined",size:"small",fullWidth:!0}))}}),E.createElement(yt,{error:p,onHide:function(){return h("")}}))},B1=Sn(),Lwi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i;return xt(this,function(o){switch(o.label){case 0:return t=new Ye,n=[{name:"ShiftId",value:e??null}],[4,t.callV2("[MES].[GetShiftByParameters]",n)];case 1:if(r=o.sent(),r.ok)return i=At(r,"data.tables[0].rows",[]),i=i.map(function(a){return a.CurrentProductionDate=B1.utc(a.CurrentProductionDate).toDate(),a.CurrentStart=B1.utc(a.CurrentStart).toDate(),a.CurrentEnd=B1.utc(a.CurrentEnd).toDate(),a.PreviousProductionDate=B1.utc(a.PreviousProductionDate).toDate(),a.PreviousStart=B1.utc(a.PreviousStart).toDate(),a.PreviousEnd=B1.utc(a.PreviousEnd).toDate(),a.NextProductionDate=B1.utc(a.NextProductionDate).toDate(),a.NextStart=B1.utc(a.NextStart).toDate(),a.NextEnd=B1.utc(a.NextEnd).toDate(),a.LastProductionDate=B1.utc(a.LastProductionDate).toDate(),a.LastStart=B1.utc(a.LastStart).toDate(),a.LastEnd=B1.utc(a.LastEnd).toDate(),a}),[2,i];throw new Error(r.message||"Error fetching shifts")}})})},_wi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.currentShiftId,s=t.shiftsRange;return xt(this,function(l){switch(l.label){case 0:return n=new Ye,r=[{name:"CurrentShiftId",value:a||null}],s&&r.push({name:"ShiftsRange",value:s}),[4,n.callV2("[MES].[GetShiftsAroundCurrent]",r)];case 1:if(i=l.sent(),i.ok)return o=At(i,"data.tables[0].rows",[]),o=o.map(function(c){return tt(tt({},c),{Start:B1.utc(c.Start).toDate(),End:B1.utc(c.End).toDate()})}),[2,o];throw new Error(i.message||"Error fetching shifts")}})})},Nwi=Sn(),Fwi=function(e){var t=e.currentShiftId,n=e.shiftsRange;return jl({queryKey:["shiftsAroundCurrent",t,n],queryFn:function(r){return r.signal,_wi({currentShiftId:t,shiftsRange:n})}})},Wwi=function(e){var t=e.currentShiftId,n=e.value,r=e.onShiftSelected,i=e.disabled,o=e.shiftsRange,a=v.useState(""),s=a[0],l=a[1],c=Fwi({currentShiftId:t,shiftsRange:o}),u=c.data,d=c.isLoading,p=c.error,h=c.isError,g=u?.find(function(m){return m.ShiftId===n})||null;return v.useEffect(function(){p&&h&&l(p.message)},[p,h]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0},E.createElement(D,{item:!0,xs:12},E.createElement(Ki,{loading:d,options:u||[],getOptionLabel:function(m){return"".concat(Nwi.utc(m.ProductionDate).format("MM/DD/YYYY")," - ").concat(m.Shift," - ").concat(m.Crew)},value:g,onChange:function(m,b){b&&r(b)},disabled:i,renderInput:function(m){return E.createElement(je,tt({},m,{label:"Shift",variant:"outlined",size:"small",fullWidth:!0,InputProps:tt(tt({},m.InputProps),{endAdornment:E.createElement(E.Fragment,null,d?E.createElement(Kt,{color:"inherit",size:20}):null)})}))}}))),E.createElement(yt,{error:s,onHide:function(){return l("")}}))},qwi=function(e){return jl({queryKey:["shifts",e],queryFn:function(){return Lwi(e)}})},uzt=function(e){var t=e.label,n=t===void 0?"Shift - Crew":t,r=e.value,i=e.onChange,o=i===void 0?function(){}:i,a=e.fieldError,s=e.disabled,l=s===void 0?!1:s,c=v.useState(""),u=c[0],d=c[1],p=qwi(r),h=p.data,g=p.isLoading,m=p.isError,b=p.error,y=h?.find(function(M){return M.CurrentShiftId===r})||null;return v.useEffect(function(){m&&d(b.message)},[m,b]),E.createElement(E.Fragment,null,E.createElement(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:h||[],getOptionLabel:function(M){return"".concat(M.CurrentShift," - ").concat(M.CurrentCrew)},disabled:l,renderInput:function(M){return E.createElement(je,tt({},M,{label:n,variant:"outlined",fullWidth:!0,size:"small",error:!!a,helperText:a?.message,InputProps:tt(tt({},M.InputProps),{endAdornment:E.createElement(E.Fragment,null,g?E.createElement(Kt,{color:"inherit",size:20}):E.createElement(E.Fragment,null,M.InputProps.endAdornment))})}))},value:y,onChange:function(M,C){var x;o((x=C?.CurrentShiftId)!==null&&x!==void 0?x:null)}}),E.createElement(yt,{error:u,onHide:function(){return d("")},title:"Error loading shifts"}))},Bwi=function(e){var t=e.message,n=e.onHide,r=n===void 0?function(){}:n,i=e.severity,o=i===void 0?"success":i,a=function(u,d){d!=="clickaway"&&r()},s=v.useState(!0),l=s[0],c=s[1];return v.useEffect(function(){c(!!t)},[t]),E.createElement(pr,{open:l,autoHideDuration:2500,onClose:a},E.createElement(Pr,{elevation:6,variant:"filled",severity:o,onClose:a},t))},dzt=function(e){var t=e===void 0?{}:e,n=t.onSuccess,r=t.onError,i=t.isNewEntry,o=i===void 0?!1:i,a=t.onHide,s=a===void 0?function(){}:a,l=v.useState(!1),c=l[0],u=l[1],d=v.useState(!1),p=d[0],h=d[1],g=v.useState(null),m=g[0],b=g[1],y=ca(Owi,{onSuccess:function(x){return Ct(void 0,void 0,void 0,function(){return xt(this,function(w){return x&&x.EntryId?n?.(x):(console.error("No EntryId received from API response",x),r?.(new Error("Failed to get entry ID from server response"))),[2]})})},onError:function(x){r?.(x)},onSettled:function(){return u(!1)}}),M=function(x){return Ct(void 0,void 0,void 0,function(){var w,S;return xt(this,function(A){switch(A.label){case 0:return u(!0),w=tt({},x),o&&!w.createTimestamp&&(w.createTimestamp=new Date),!w.shiftId||w.isForOtherShift?(b(w),h(!0),u(!1),[3,3]):[3,1];case 1:return[4,y.mutate({assetId:w.assetId,shiftId:w.shiftId,entryId:w.entryId,title:w.title,content:w.content,author:(S=w.author)!==null&&S!==void 0?S:"",createTimestamp:w.createTimestamp})];case 2:A.sent(),A.label=3;case 3:return[2]}})})},C=function(x){var w;h(!1),x==="OK"&&m&&(s(),y.mutate({assetId:m.assetId,shiftId:m.shiftId,entryId:m.entryId,title:m.title,content:m.content,author:(w=m.author)!==null&&w!==void 0?w:"",createTimestamp:m.createTimestamp})),b(null)};return{submitEntry:M,isSubmitLoading:c,showConfirmationDialog:p,pendingSubmitData:m,handleConfirmationClose:C,mutation:y}},jwi=function(e){var t=e.open,n=e.attachmentName,r=e.onClose,i=e.isDeleting,o=i===void 0?!1:i,a=function(){o||r(!1)},s=function(){o||r(!0)};return E.createElement(Qu,{open:t,onClose:a,"aria-labelledby":"delete-attachment-dialog-title","aria-describedby":"delete-attachment-dialog-description"},E.createElement(T0,{id:"delete-attachment-dialog-title"},"Delete Attachment"),E.createElement(ru,null,E.createElement(mM,{id:"delete-attachment-dialog-description"},"Are you sure you want to delete ",E.createElement("b",null,n),"? This action cannot be undone.")),E.createElement(Ed,null,E.createElement(Ne,{onClick:a,color:"default",disabled:o},"Cancel"),E.createElement(Ne,{onClick:s,color:"secondary",variant:"contained",disabled:o,startIcon:o&&E.createElement(Kt,{size:"1rem"})},"Delete")))},Hwi=Et(function(e){return Mp({dropzone:{border:"2px dashed ".concat(e.palette.primary.main),borderRadius:e.shape.borderRadius,padding:e.spacing(3),textAlign:"center",cursor:"pointer",marginBottom:e.spacing(2),backgroundColor:e.palette.background.default,"&:hover":{backgroundColor:e.palette.action.hover}},dropzoneActive:{borderColor:e.palette.secondary.main,backgroundColor:e.palette.action.selected},uploadIcon:{fontSize:48,color:e.palette.primary.main,marginBottom:e.spacing(1)},attachmentList:{maxHeight:300,overflow:"auto"},attachmentItem:{border:"1px solid ".concat(e.palette.divider),borderRadius:e.shape.borderRadius,marginBottom:e.spacing(1)},loadingContainer:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:100}})}),Vwi=["jpg","jpeg","png","pdf"],Gwi=function(e){var t=e.open,n=e.onClose,r=e.entryId,i=e.isEditing,o=e.entryData,a=e.onEntrySubmitted,s=Hwi(),l=Gf(),c=new Ye,u=v.useState(null),d=u[0],p=u[1],h=v.useState([]),g=h[0],m=h[1],b=v.useState(r),y=b[0],M=b[1],C=v.useState(!1),x=C[0],w=C[1],S=v.useState(!1),A=S[0],z=S[1],O=v.useState(null),T=O[0],R=O[1],P=v.useRef([]),F=dzt({onSuccess:function(he){if(w(!1),he?.EntryId&&(M(he.EntryId),a?.(he.EntryId,he),P.current.length>0)){var be=xi([],P.current,!0);P.current=[],X(be,he.EntryId)}},onError:function(he){w(!1),p(he.message),P.current=[]},isNewEntry:!r||r<=0}),N=F.submitEntry,L=F.isSubmitLoading;v.useEffect(function(){M(r)},[r]);var W=jl({queryKey:["entryAttachments",y],queryFn:function(){return z3e(y)},enabled:!!y&&y>0}),j=W.data,V=j===void 0?[]:j,G=W.isLoading,q=W.error,$=ca(Ewi,{onSuccess:function(){l.invalidateQueries({queryKey:["entryAttachments",y]}),l.invalidateQueries({queryKey:["entries"]}),l.invalidateQueries({queryKey:["entriesReport"]})},onError:function(he){p(he.message)}}),U=ca(function(he){var be=he.entryAttachmentId,me=he.uploadFileId;return Rwi(be,me)},{onSuccess:function(){l.invalidateQueries({queryKey:["entryAttachments",y]}),l.invalidateQueries({queryKey:["entries"]}),l.invalidateQueries({queryKey:["entriesReport"]})},onError:function(he){p(he.message)}}),X=v.useCallback(function(he,be){return Ct(void 0,void 0,void 0,function(){var me,Me,Oe,de,ie,ue,Ae,Ce;return xt(this,function(Ee){switch(Ee.label){case 0:m(he),p(null),Ee.label=1;case 1:Ee.trys.push([1,7,8,9]),me=0,Me=he,Ee.label=2;case 2:return me<Me.length?(Oe=Me[me],[4,c.uploadFiles([Oe],"logbook")]):[3,6];case 3:return de=Ee.sent(),!((Ce=de?.result)===null||Ce===void 0)&&Ce[0]?(ie=de.result[0].UploadFileId,ue=de.result[0].URL,[4,$.mutateAsync({entryId:be,uploadFileId:ie,attachmentName:Oe.name,attachmentURL:ue})]):[3,5];case 4:Ee.sent(),l.invalidateQueries({queryKey:["entryAttachments",be]}),l.invalidateQueries({queryKey:["entries"]}),l.invalidateQueries({queryKey:["entriesReport"]}),Ee.label=5;case 5:return me++,[3,2];case 6:return[3,9];case 7:return Ae=Ee.sent(),p("Failed to upload files: ".concat(Ae)),[3,9];case 8:return m([]),[7];case 9:return[2]}})})},[c,$,l]),Q=v.useCallback(function(he){return Ct(void 0,void 0,void 0,function(){var be,me,Me,Oe,de,ie,ue,Ae,Ce,Ee;return xt(this,function(Ge){switch(Ge.label){case 0:if(be=y,!((!be||be<=0)&&o&&!x))return[3,4];Ge.label=1;case 1:return Ge.trys.push([1,3,,4]),p(null),w(!0),P.current=he,[4,N(o)];case 2:return Ge.sent(),[2];case 3:return me=Ge.sent(),w(!1),p("Failed to save entry before uploading files: ".concat(me)),P.current=[],[2];case 4:if(!be||be<=0)return p("Entry must be saved before adding attachments"),[2];m(he),p(null),Ge.label=5;case 5:Ge.trys.push([5,11,12,13]),Me=0,Oe=he,Ge.label=6;case 6:return Me<Oe.length?(de=Oe[Me],[4,c.uploadFiles([de],"logbook")]):[3,10];case 7:return ie=Ge.sent(),!((Ee=ie?.result)===null||Ee===void 0)&&Ee[0]?(ue=ie.result[0].UploadFileId,Ae=ie.result[0].URL,[4,$.mutateAsync({entryId:be,uploadFileId:ue,attachmentName:de.name,attachmentURL:Ae})]):[3,9];case 8:Ge.sent(),Ge.label=9;case 9:return Me++,[3,6];case 10:return[3,13];case 11:return Ce=Ge.sent(),p("Failed to upload files: ".concat(Ce)),[3,13];case 12:return m([]),[7];case 13:return[2]}})})},[y,o,c,$,N,x]),re=function(he,be,me){R({id:he,uploadFileId:be,name:me}),z(!0)},ee=function(he){z(!1),he&&T&&U.mutate({entryAttachmentId:T.id,uploadFileId:T.uploadFileId}),R(null)},se=function(he){var be=he.toLowerCase().split(".").pop()||"";return Vwi.includes(be)},pe=function(he){var be=document.createElement("a");be.href=he.URL,console.log("attachment",he),console.log("attachment.URL",he.URL),console.log("link.href",be.href),be.setAttribute("target","_blank"),be.setAttribute("download",he.AttachmentName),document.body.appendChild(be),be.click()},te=v.useCallback(function(he){i&&Q(he)},[Q,i]),ce=Uxt({onDrop:te,disabled:!i,multiple:!0}),oe=ce.getRootProps,ae=ce.getInputProps,ne=ce.isDragActive,le=g.length>0||$.isLoading||L||x;return E.createElement(E.Fragment,null,E.createElement(Qu,{open:t,onClose:n,maxWidth:"md",fullWidth:!0,"aria-labelledby":"attachment-dialog-title"},E.createElement(T0,{id:"attachment-dialog-title"},"Attachments (",V.length,")"),E.createElement(ru,{dividers:!0},i?E.createElement(Tn,{mb:2},E.createElement("div",tt({},oe(),{className:"".concat(s.dropzone," ").concat(ne?s.dropzoneActive:"")}),E.createElement("input",tt({},ae())),E.createElement(E1n,{className:s.uploadIcon}),E.createElement(vt,{variant:"h6",gutterBottom:!0},ne?"Drop files here...":"Drag & drop files here, or click to select"),E.createElement(vt,{variant:"body2",color:"textSecondary"},"All file types are supported"))):null,!y||y<=0?i&&o?E.createElement(vt,{variant:"body1",color:"textSecondary",align:"center"},L||x?"Saving entry...":"Upload files to automatically save and attach to this entry"):E.createElement(vt,{variant:"body1",color:"textSecondary",align:"center"},"Save the entry first to add attachments"):G?E.createElement("div",{className:s.loadingContainer},E.createElement(Kt,null)):V.length===0?E.createElement(vt,{variant:"body1",color:"textSecondary",align:"center"},"No attachments yet"):E.createElement(tp,{className:s.attachmentList},V.map(function(he){return E.createElement(ya,{key:he.EntryAttachmentId,className:s.attachmentItem},E.createElement($0,null,E.createElement(pP,null)),E.createElement(ia,{primary:he.AttachmentName,secondary:"Added by ".concat(he.CreatedBy," on ").concat(he.CreationTime.toLocaleDateString())}),E.createElement(Fun,null,se(he.AttachmentName)&&E.createElement(bn,{component:"a",href:he.URL,target:"_blank",rel:"noopener noreferrer",title:"Preview",size:"small",style:{marginRight:8}},E.createElement(W1n,null)),E.createElement(bn,{onClick:function(){return pe(he)},title:"Download",size:"small",style:{marginRight:i?8:0}},E.createElement(R1n,null)),i&&E.createElement(bn,{edge:"end",onClick:function(){return re(he.EntryAttachmentId,he.UploadFileId,he.AttachmentName)},title:"Delete",disabled:U.isLoading},E.createElement(Jat,null))))})),le&&E.createElement(Tn,{display:"flex",alignItems:"center",justifyContent:"center",mt:2},E.createElement(Kt,{size:20}),E.createElement(vt,{variant:"body2",style:{marginLeft:8}},"Uploading ",g.length," file(s)..."))),E.createElement(Ed,null,E.createElement(Ne,{onClick:n,color:"primary"},"Close"))),E.createElement(jwi,{open:A,attachmentName:T?.name||"",onClose:ee,isDeleting:U.isLoading}),E.createElement(yt,{error:d||q?.message,onHide:function(){return p(null)}}))},$wi=(function(e){cte(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props.config,r=n.attachmentCount,i=n.onAttachmentClick;return E.createElement("span",{className:"button button-type-attachment",title:"Attachments (".concat(r,")"),onClick:i,style:{display:"inline-flex",alignItems:"center",padding:"4px 8px",cursor:"pointer",borderRadius:"4px",backgroundColor:r>0?"#e3f2fd":"transparent",border:r>0?"1px solid #2196f3":"1px solid transparent",color:r>0?"#1976d2":"#666",fontSize:"12px",fontWeight:r>0?600:400,transition:"all 0.2s ease-in-out"},onMouseEnter:function(o){o.currentTarget.style.backgroundColor="#e3f2fd",o.currentTarget.style.borderColor="#2196f3"},onMouseLeave:function(o){r===0&&(o.currentTarget.style.backgroundColor="transparent",o.currentTarget.style.borderColor="transparent")}},E.createElement(pP,{style:{fontSize:16,marginRight:4,color:r>0?"#1976d2":"#666"}}),"Attachments (",r,")")},t.pluginName="attachment",t.align="left",t.defaultConfig={start:0,end:0},t})(Vl),Uwi=Et(function(e){return Mp({root:{height:"100%",width:"100%",overflow:"hidden",display:"flex",flexDirection:"column","& .MuiInput-underline:before":{borderBottom:"none"},"& .MuiInput-underline:after":{borderBottom:"none"},"& .MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottom:"none"}},content:{flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"},fixedTextField:{backgroundColor:e.palette.background.paper,borderTop:"0px solid ".concat(e.palette.divider),paddingLeft:10},editorWrapper:{height:"100%","& .rc-md-editor":{height:"100%"},"& .rc-md-navigation":{backgroundColor:e.palette.background.paper},"& .rc-md-editor, & .section-container":{height:"100%"}}})}),pzt=function(e){var t=e.value,n=e.onChange,r=e.isEditing,i=e.UpdateTimestamp,o=e.UpdatedBy,a=e.isNewEntry,s=e.entryId,l=e.entryData,c=e.onEntrySubmitted,u=e.allowAttachments,d=u===void 0?!1:u,p=Uwi(),h=new wai,g=new Ye,m=ds().entryId,b=v.useState(0),y=b[0],M=b[1],C=v.useState(null),x=C[0],w=C[1],S=v.useState(!1),A=S[0],z=S[1],O=s||(m&&m!=="new"?parseInt(m):null),T=jl({queryKey:["entryAttachments",O],queryFn:function(){return z3e(O)},enabled:!!O&&O>0,retry:1,onError:function(j){console.error("Failed to fetch attachments:",j)}}),R=T.data,P=R===void 0?[]:R,F=T.error,N=P.length,L=function(j){var V=j.text;n(V)},W=function(j){return Ct(void 0,void 0,void 0,function(){var V,G;return xt(this,function(q){switch(q.label){case 0:return q.trys.push([0,2,,3]),w(null),[4,g.uploadFiles(j,"logbook")];case 1:return V=q.sent(),V?[2,(G=V.result[0])===null||G===void 0?void 0:G.URL]:[3,3];case 2:return q.sent(),w("Failed to upload files"),[2,""];case 3:return[2]}})})};return v.useEffect(function(){M(function(j){return j+1})},[r,N]),v.useEffect(function(){Sl.use($wi,{attachmentCount:N,onAttachmentClick:function(){l.title&&l.author?z(!0):w("Title and Author are required")}})},[N,l.title,l.author]),E.createElement(E.Fragment,null,E.createElement("div",{className:p.root},E.createElement(D,{item:!0,xs:!0,className:p.content},E.createElement("div",{className:p.editorWrapper},E.createElement(Sl,{key:y,style:{height:"100%",width:"100%"},value:t||"",renderHTML:function(j){return h.render(j||"")},onChange:L,view:{menu:d?!0:r,md:!!r,html:!r},plugins:r?["header","font-bold","font-italic","font-underline","font-strikethrough","list-unordered","list-ordered","block-quote","block-wrap","block-code-inline","block-code-block","table","image","link","clear","logger","mode-toggle","full-screen","tab-insert",d?"attachment":""]:d?["attachment"]:[],config:{attachment:d?{attachmentCount:N,onAttachmentClick:function(){l.title&&l.author?z(!0):w("Title and Author are required")}}:null},autoFocus:!a,onImageUpload:function(j){return Ct(void 0,void 0,void 0,function(){var V;return xt(this,function(G){switch(G.label){case 0:return[4,W([j])];case 1:return V=G.sent(),[2,V]}})})}}))),o?.length>0&&E.createElement("div",{className:p.fixedTextField},E.createElement(je,{variant:"standard",disabled:!0,value:"This entry was updated on ".concat(Wn(i,"MM/dd/yy hh:mm a")," by ").concat(o),fullWidth:!0,margin:"none",autoComplete:"off",InputProps:{style:{fontSize:"0.7rem"},disableUnderline:!0},InputLabelProps:{style:{fontSize:"0.7rem"}}}))),E.createElement(Gwi,{open:A,onClose:function(){return z(!1)},entryId:O,isEditing:r,entryData:l,onEntrySubmitted:c}),E.createElement(yt,{error:x||F?.message,onHide:function(){return w("")}}))},Xwi=Et(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0},"& .MuiOutlinedInput-root.Mui-disabled":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"}},"& .MuiSelect-iconOutlined":{display:"none"}},paper:{width:"100%",height:"101.3%",display:"flex",flexDirection:"column",padding:"20px 20px 10px",overflowX:"hidden",marginTop:-8},inputEditable:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},minHeight:"100px"}}}),DKe=Sn(),Ywi=function(e){var t=e.entry,n=e.show,r=e.onChangeShow,i=e.onHide,o=e.preselectedAssetId,a=e.withAssetFilter,s=e.canEditAsset,l=e.canEditShift,c=e.filterAssets,u=e.allowAttachments,d=e.shiftsRange,p=Xwi(),h=Ma().state.settings,g=Number(At(h,"DefaultAssetId",15)),m=ds().shiftId,b=Zu()[0],y=b.get("entryId"),M=b.get("action"),C=na().shiftInfo,x=M==="new",w=v.useState(""),S=w[0],A=w[1],z=v.useState(null),O=z[0],T=z[1],R=v.useState(""),P=R[0],F=R[1],N=jn(),L=N.control,W=N.handleSubmit,j=N.reset,V=N.formState;V.isValid;var G=V.dirtyFields,q=N.watch,$=N.setValue,U=Object.keys(G).length!==0,X=q("UpdatedBy"),Q=q("UpdateTimestamp"),re=q("CreateTimestamp");q("Content");var ee=q("EntryId"),se=q("Title"),pe=q("Author"),te=q("ShiftId"),ce=q("AssetId"),oe=q("Shift"),ae=q("Crew"),ne=function(de,ie){A("Entry created successfully"),ie&&j(ie),setTimeout(function(){i(de,!0)},1e3)},le=dzt({onSuccess:function(de){A(y==="new"?"Entry created successfully":"Entry updated successfully"),de&&de.EntryId?setTimeout(function(){i(de.EntryId)},1e3):(console.error("No EntryId received from API response",de),F("Failed to get entry ID from server response"))},onError:function(de){F(de.message)},isNewEntry:x,onHide:function(){return i()}}),he=le.submitEntry,be=le.isSubmitLoading,me=le.showConfirmationDialog,Me=le.handleConfirmationClose,Oe=function(de){return Ct(void 0,void 0,void 0,function(){var ie,ue;return xt(this,function(Ae){switch(Ae.label){case 0:return F(""),ie={assetId:de.AssetId,entryId:de.EntryId,shiftId:de.ShiftId,isForOtherShift:t?.ShiftId?t.ShiftId!==de.ShiftId:C?.CurrentShiftId!==de.ShiftId,title:de.Title,content:de.Content,author:(ue=de.Author)!==null&&ue!==void 0?ue:"",createTimestamp:x?new Date:de.CreateTimestamp},[4,he(ie)];case 1:return Ae.sent(),[2]}})})};return v.useEffect(function(){var de,ie,ue;if(C||!x){var Ae=tt(tt({},tY),{ShiftId:C?.CurrentShiftId,Shift:(de=C?.CurrentShift)!==null&&de!==void 0?de:"",Crew:(ie=C?.CurrentCrew)!==null&&ie!==void 0?ie:"",CreateTimestamp:new Date,AssetId:(ue=o??g)!==null&&ue!==void 0?ue:null});j((x?Ae:t)||tY)}},[t,C,y,j,g]),v.useEffect(function(){var de;x&&$("AssetId",(de=o??g)!==null&&de!==void 0?de:null)},[o,g]),E.createElement(E.Fragment,null,x||t?.EntryId?E.createElement(yn,{title:"".concat(x?"New Entry":"'".concat(t?.Title,"' by ").concat(t?.Author)," - Logbook Entry")}):null,x||t?.EntryId?E.createElement(Pt,{elevation:1,className:p.paper},E.createElement("form",{onSubmit:W(Oe),style:{height:"100%",display:"flex",flexDirection:"column"}},E.createElement(T0,{style:{padding:"0px",marginLeft:0,width:"100%",flexBasis:"10%",minHeight:"10%"}},E.createElement(D,{item:!0,xs:12},E.createElement(Ue,{name:"Title",control:L,rules:{required:"Title is required",validate:function(de){return!!de?.trim()||"Title cannot be empty"}},render:function(de){var ie=de.field,ue=ie.value,Ae=ie.onChange,Ce=de.fieldState.error;return E.createElement(je,{label:"Title",variant:"outlined",value:ue??"",onChange:Ae,fullWidth:!0,error:!!Ce,helperText:Ce?.message,autoFocus:x,size:"medium"})}}))),E.createElement(ru,{dividers:!0,style:{padding:"10px 0 0",flexGrow:1,flexBasis:"90%",overflowY:"auto",display:"flex",flexDirection:"column",borderTop:0},className:p.root},E.createElement(D,{container:!0,spacing:2,style:{width:"100%",marginBottom:"0px",paddingLeft:0,display:"flex",justifyContent:"space-between",margin:0}},E.createElement(D,{item:!0,xs:12,md:3,style:{paddingLeft:0}},E.createElement(Ue,{name:"CreateTimestamp",control:L,render:function(de){var ie=de.field.value;return E.createElement(xd,{label:"Creation Time",timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",value:ie?DKe(ie):null,disabled:!0,slotProps:{textField:{variant:"outlined",size:"small",fullWidth:!0,InputLabelProps:{shrink:!0,style:{fontSize:".875rem",marginTop:-2}}}}})}})),l?E.createElement(D,{item:!0,xs:12,md:3},E.createElement(Ue,{name:"ShiftId",control:L,render:function(de){var ie,ue=de.field;return E.createElement(Wwi,{currentShiftId:(ie=Number(m))!==null&&ie!==void 0?ie:C?.CurrentShiftId,onShiftSelected:function(Ae){Ae?($("Shift",Ae.Shift,{shouldDirty:!0}),$("Crew",Ae.Crew,{shouldDirty:!0}),T(new Date(Ae.Start)),ue.onChange(Ae.ShiftId)):($("Shift",null,{shouldDirty:!0}),$("Crew",null,{shouldDirty:!0}),T(null),ue.onChange(null))},value:ue.value,disabled:!x&&n!=="edit",shiftsRange:d})}})):E.createElement(D,{item:!0,xs:12,md:3},E.createElement(Ue,{name:"ShiftId",control:L,render:function(de){var ie=de.field;return E.createElement(uzt,{onChange:ie.onChange,value:ie.value,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:s?2:4,style:{paddingRight:0,marginRight:"0px"}},E.createElement(Ue,{name:"Author",control:L,rules:{required:"Author is required"},render:function(de){var ie=de.field,ue=ie.value,Ae=ie.onChange,Ce=de.fieldState.error;return E.createElement(je,{label:"Author",variant:"outlined",value:ue??"",onChange:Ae,fullWidth:!0,error:!!Ce,helperText:Ce?.message,disabled:!x,size:"small"})}})),s?a==="tree"?E.createElement(D,{item:!0,md:4,xs:12,style:{marginTop:-8}},E.createElement(Ue,{name:"AssetId",control:L,render:function(de){var ie=de.field;return E.createElement(ute,{label:"Asset",value:ie.value||0,onChange:ie.onChange})}})):a==="selector"?E.createElement(D,{item:!0,md:4,xs:12},E.createElement(Ue,{name:"AssetId",control:L,render:function(de){var ie=de.field;return E.createElement(vte,{value:ie.value,onChange:ie.onChange,filterAreaAssets:c==="area"})}})):null:null),E.createElement(D,{container:!0,item:!0,xs:12,className:x?"":p.inputEditable,style:{flexGrow:1,height:"calc(100% - 200px)",marginTop:"16px"}},E.createElement(D,{item:!0,xs:12,style:{padding:0,height:"100%"}},E.createElement(Ue,{name:"Content",control:L,render:function(de){var ie=de.field,ue=ie.value,Ae=ie.onChange;return E.createElement(pzt,{UpdatedBy:X,UpdateTimestamp:Q,onChange:function(Ce){return Ae(Ce)},value:ue,isEditing:n==="edit",isNewEntry:x,entryId:ee,entryData:{assetId:ce,entryId:ee,shiftId:te,title:se,content:ue,author:pe,createTimestamp:x?new Date:re},onEntrySubmitted:ne,allowAttachments:u})}})))),E.createElement(D,{container:!0,style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:0,marginTop:"10px"}},E.createElement(D,{item:!0,container:!0,md:6,xs:12,spacing:2},E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return i()}},"Close")),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:function(){return r()}},n==="edit"?"Preview":"Edit"))),E.createElement(D,{item:!0,container:!0,md:6,xs:12,style:{display:"flex",justifyContent:"flex-end"}},E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Ne,{fullWidth:!0,startIcon:be&&E.createElement(Kt,{size:"1rem"}),disabled:be||!U,variant:"contained",color:"primary",type:"submit"},x?"Create":"Save")))))):null,E.createElement(Bwi,{message:S,onHide:function(){return A("")}}),E.createElement(QOt,{open:me,onClose:Me,title:"Shift Submission Confirmation",message:"You are about to ".concat(x?"create":"save"," an entry for ").concat(DKe(O).format("MM/DD/YYYY")," ").concat(oe," - ").concat(ae,". Are you sure you want to proceed?"),suffixTitle:"Logbook Entry"}),E.createElement(yt,{error:P,onHide:function(){return F("")}}))},Kwi=function(e){var t=e.withAssetFilter,n=e.filterAssets,r=e.assetId,i=e.setAssetId,o=i===void 0?function(){}:i,a=e.quickFilter,s=e.onQuickFilterChange;return hte({onReceiveMessage:function(l,c){c.replaceAll("[","").replaceAll("]","")=="LB.GetEntries"}}),E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",component:Pt,spacing:2,style:{display:"flex",width:"100%",boxSizing:"border-box",marginLeft:1}},E.createElement(D,{item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(qm,{preventInit:!0,withPaper:!1,margin:"0.5rem 1rem 0rem"})),t==="tree"&&E.createElement(D,{item:!0,xs:12,md:4,style:{alignItems:"center",justifyContent:"center",marginTop:6}},E.createElement(ute,{label:"Asset",value:r||0,onChange:function(l){return o(l??null)},filterAssets:n==="area"})),t==="selector"&&E.createElement(D,{item:!0,xs:12,md:4,style:{alignItems:"center",justifyContent:"center",marginTop:6}},E.createElement(vte,{value:r??null,onChange:function(l){o(l??null)},filterAreaAssets:n==="area",isFilter:!0})),E.createElement(D,{item:!0,xs:12,style:{marginTop:"-0.5rem"}},E.createElement(je,{fullWidth:!0,label:"Search",variant:"outlined",size:"small",margin:"dense",value:a,onChange:function(l){s(l?.target.value)},InputProps:{startAdornment:E.createElement(ac,{position:"start"},E.createElement(bn,{edge:"start",type:"submit"},E.createElement(N3,null)))}})))},Qwi=Sn(),Zwi=function(){var e=_Ot().entry,t=e.withAssetFilter,n=e.filterAssets,r=e.canEditAsset,i=e.presetAssetId,o=e.allowAttachments,a=e.canEditShift,s=e.showShiftCrew,l=e.exportToExcel,c=e.shiftsRange,u=Oo(),d=Zu()[0],p=d.get("entryId"),h=d.get("action"),g=ds().shiftId,m=na(),b=m.shiftInfo,y=m.getShiftDataFromAPI,M=h==="edit",C=v.useRef(null),x=v.useRef(null),w=v.useState(""),S=w[0],A=w[1],z=v.useState(""),O=z[0],T=z[1],R=v.useState(""),P=R[0],F=R[1],N=v.useState(i??null),L=N[0],W=N[1],j=v.useState(null),V=j[0],G=j[1],q=v.useState(!1),$=q[0],U=q[1],X=ws(),Q=X.registerConfig,re=X.showContextMenu,ee=Jwi({shiftId:b?.CurrentShiftId,assetId:t?L:void 0}),se=ee.data,pe=ee.isLoading,te=ee.error,ce=ee.isError,oe=ee.refetch,ae=Swi({showContextMenu:re,allowAttachments:o,withAssetFilter:t,showShiftCrew:s}).columnDefs,ne=szt({}).defaultColDef,le=function(ie){var ue;F(ie),(ue=x.current)===null||ue===void 0||ue.setGridOption("quickFilterText",ie)},he=function(){var ie;(ie=x.current)===null||ie===void 0||ie.deselectAll(),G(tt({},tY)),u("".concat(VA,"/").concat(C.current,"?action=new"),{replace:!0}),T("edit")},be=function(ie){var ue,Ae=g||b?.CurrentShiftId;G(ie?.data),u("".concat(VA,"/").concat(Ae,"?entryId=").concat((ue=ie?.data)===null||ue===void 0?void 0:ue.EntryId,"&action=view")),T("view")},me=v.useCallback(function(ie){var ue=ie.api,Ae=ie.node,Ce=ie.event;if(Ce){var Ee=Ce.key;if(Ee==="ArrowUp"||Ee==="ArrowDown"){Ce.preventDefault();var Ge=Ae.rowIndex!==null?Ae.rowIndex:-1,_e=Ee==="ArrowUp"?Ge-1:Ge+1,Ie=ue.getDisplayedRowAtIndex(_e);if(Ie){var Le=g||b?.CurrentShiftId;Ie.setSelected(!0),ue.ensureIndexVisible(_e),G(Ie.data),u("".concat(VA,"/").concat(Le,"/?entryId=").concat(Ie.data.EntryId,"&action=view"))}}}},[G,g,b?.CurrentShiftId]),Me=v.useCallback(function(ie){var ue,Ae,Ce=(ue=ie.node)===null||ue===void 0?void 0:ue.data;return re(event,Ce,"logbookEntryContext"),Ce&&(ie.api.deselectAll(),(Ae=ie.node)===null||Ae===void 0||Ae.setSelected(!0)),[]},[se]),Oe=wwi({setSelectedRowData:G,setShow:T,setShowRemoveDialog:U,handleNewEntry:he}).getMenuOptions,de=function(){if(x.current){var ie={fileName:"Logbook_Entries_Export.xlsx",columnKeys:["AssetName","CreateTimestamp","Shift","Crew","Title","CreatedBy","Author","Content"],processCellCallback:function(ue){return ue.column.colId==="CreateTimestamp"?Qwi(ue.value).format("MM/DD/yy - HH:mm"):ue.value}};x.current.exportDataAsExcel(ie)}};return v.useEffect(function(){var ie,ue;if(!pe&&p&&p!=="new"&&x.current){var Ae=(ie=x.current)===null||ie===void 0?void 0:ie.getRowNode(p);Ae?((ue=x.current)===null||ue===void 0||ue.ensureNodeVisible(Ae),Ae.setSelected(!0),G(Ae.data),T(M?"edit":"view")):setTimeout(function(){return Ct(void 0,void 0,void 0,function(){var Ce,Ee,Ge;return xt(this,function(_e){switch(_e.label){case 0:return[4,oe()];case 1:return _e.sent(),Ce=(Ee=x.current)===null||Ee===void 0?void 0:Ee.getRowNode(p),Ce&&((Ge=x.current)===null||Ge===void 0||Ge.ensureNodeVisible(Ce),Ce.setSelected(!0),G(Ce.data),T(M?"edit":"view")),[2]}})})},500)}},[x.current,pe,p,M,oe]),v.useEffect(function(){Q({id:"logbookEntryContext",getOptions:Oe})},[]),v.useEffect(function(){ce&&A(te.message)},[ce,te]),v.useEffect(function(){b&&(T(""),G(null),p&&(C.current==null||C.current===b?.CurrentShiftId)?u("".concat(VA,"/").concat(b.CurrentShiftId,"?entryId=").concat(p,"&action=").concat(h)):u("".concat(VA,"/").concat(b.CurrentShiftId)),C.current=b?.CurrentShiftId,(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ie){switch(ie.label){case 0:return[4,oe()];case 1:return ie.sent(),[2]}})})})())},[b]),v.useEffect(function(){g?(function(){return Ct(void 0,void 0,void 0,function(){var ie;return xt(this,function(ue){switch(ue.label){case 0:return ie=Number(g),[4,y(null,ie)];case 1:return ue.sent(),[2]}})})})():(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ie){switch(ie.label){case 0:return[4,y(null,0)];case 1:return ie.sent(),[2]}})})})()},[]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-start"},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(vt,{variant:"h5",style:{fontWeight:600,userSelect:"none"}},"LOGBOOK")),E.createElement(D,{item:!0,container:!0,xs:12,md:5,spacing:2},E.createElement(D,{item:!0,xs:12},E.createElement(Kwi,{withAssetFilter:t,filterAssets:n,quickFilter:P,onQuickFilterChange:le,assetId:L,setAssetId:W})),E.createElement(D,{item:!0,xs:12},E.createElement(Pt,{elevation:1,style:{height:"62vh",width:"100%"}},E.createElement($n,{loading:pe,rowData:se,columnDefs:ae,defaultColDef:ne,rowHeight:38,headerHeight:42,loadingOverlayComponent:Wm,animateRows:!0,getContextMenuItems:Me,onRowClicked:be,onCellKeyDown:me,onGridReady:function(ie){return x.current=ie.api},getRowId:function(ie){return"".concat(ie.data.EntryId)},gridOptions:{rowSelection:{mode:"singleRow",checkboxes:!1,enableClickSelection:!0},statusBar:{statusPanels:[l?{statusPanel:function(ie){return E.createElement("div",{style:{marginTop:8,display:"flex"}},E.createElement(azt,{handleExportToExcel:de}))},align:"right"}:{},{statusPanel:function(ie){return E.createElement(xwi,{handleNew:he})},align:"left"}]}}})))),E.createElement(D,{item:!0,xs:12,md:7},E.createElement(Ywi,{entry:V,show:O,onChangeShow:function(){var ie=O==="view"?"edit":"view";if(T(ie),p&&p!=="new"){var ue=ie==="edit"?"/logbook/entry/".concat(g||b?.CurrentShiftId,"?entryId=").concat(p,"&action=edit"):"/logbook/entry/".concat(g||b?.CurrentShiftId,"?entryId=").concat(p,"&action=view");u(ue)}},preselectedAssetId:L,withAssetFilter:t,canEditAsset:r,canEditShift:a,filterAssets:n,allowAttachments:o,shiftsRange:c,onHide:function(ie,ue){return Ct(void 0,void 0,void 0,function(){var Ae,Ce;return xt(this,function(Ee){switch(Ee.label){case 0:return ie?[4,oe()]:[3,2];case 1:return Ee.sent(),Ae=ue?"/logbook/entry/".concat(g||b?.CurrentShiftId,"?entryId=").concat(ie,"&action=edit"):"/logbook/entry/".concat(g||b?.CurrentShiftId,"?entryId=").concat(ie,"&action=view"),u(Ae),T(ue?"edit":"view"),setTimeout(function(){var Ge,_e,Ie=(Ge=x.current)===null||Ge===void 0?void 0:Ge.getRowNode(ie.toString());Ie?((_e=x.current)===null||_e===void 0||_e.ensureNodeVisible(Ie),Ie.setSelected(!0),G(Ie.data)):setTimeout(function(){return Ct(void 0,void 0,void 0,function(){var Le,we,ve,De;return xt(this,function(ze){switch(ze.label){case 0:return[4,oe()];case 1:return ze.sent(),Le=(we=x.current)===null||we===void 0?void 0:we.getRowNode(ie.toString()),Le?((ve=x.current)===null||ve===void 0||ve.ensureNodeVisible(Le),Le.setSelected(!0),G(Le.data)):(T(""),G(null),(De=x.current)===null||De===void 0||De.deselectAll()),[2]}})})},500)},200),[3,3];case 2:T(""),G(null),(Ce=x.current)===null||Ce===void 0||Ce.deselectAll(),u("".concat(VA,"/").concat(g||b?.CurrentShiftId)),Ee.label=3;case 3:return[2]}})})}}))),E.createElement(Dwi,{entry:V,show:$,onHide:function(ie){ie&&oe(),U(!1),G(null),T("")}}),E.createElement(yt,{error:S,onHide:function(){return A("")}}))},Jwi=function(e){var t=e.shiftId,n=e.assetId;return jl({queryKey:["entries",t,n],queryFn:function(r){var i=r.signal;return Awi({shiftId:t,assetId:n,signal:i})}})},VA="/logbook/entry",eSi=function(){return E.createElement(E.Fragment,null,E.createElement(yn,{title:"Logbook Entry"}),E.createElement(D,{container:!0,style:{padding:20},onContextMenu:function(e){return e.preventDefault()}},E.createElement(Zwi,null)))},kKe=function(){return E.createElement(eSi,null)},tSi=function(e){var t=e.showAttachments,n=e.showAsset,r=e.showShiftCrew,i=xi(xi(xi(xi(xi([{field:"CreateTimestamp",headerName:"Created",flex:2,valueGetter:function(o){return Wn(o.data.CreateTimestamp,"MM/dd/yy HH:mm")}}],n?[{field:"AssetName",headerName:"Asset",sortable:!0,flex:2,minWidth:70,wrapText:!0,autoHeight:!0}]:[],!0),[{field:"Title",headerName:"Title",flex:4},{field:"Author",headerName:"Created By",flex:2}],!1),r?[{field:"Shift",headerName:"Shift",sortable:!1,flex:1,minWidth:60,maxWidth:60},{field:"Crew",headerName:"Crew",sortable:!1,flex:1,minWidth:60,maxWidth:60}]:[],!0),t?[{field:"AttachmentCount",headerName:"",flex:1,headerComponent:function(){return E.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",textAlign:"center"}},E.createElement(pP,{style:{fontSize:18,color:"#666"}}))},cellRenderer:function(o){var a=o.data.AttachmentCount||0;return a===0?null:E.createElement("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"center"}},E.createElement(gM,{icon:E.createElement(pP,{style:{fontSize:16}}),label:a,size:"small",variant:"outlined",color:"primary"}))}}]:[],!0),[{field:"Content",headerName:"Content",hide:!0}],!1);return{columnDefs:i}},nSi=Et(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0},"& .MuiOutlinedInput-root.Mui-disabled":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"}},"& .MuiSelect-iconOutlined":{display:"none"}},paper:{width:"100%",height:"100%",display:"flex",flexDirection:"column",padding:"20px 20px 10px",overflowX:"hidden"},inputEditable:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},minHeight:"100px"}}}),rSi=Sn(),iSi=function(e){var t=e.entry,n=e.show,r=e.onHide,i=e.filterAssets,o=e.showAsset,a=e.showAttachments,s=a===void 0?!1:a,l=nSi(),c=v.useState(""),u=c[0],d=c[1],p=jn(),h=p.control,g=p.setValue,m=p.reset,b=p.watch;p.getValues;var y=b("Content"),M=b("UpdatedBy"),C=b("UpdateTimestamp"),x=b("EntryId"),w=b("Title"),S=b("Author"),A=b("ShiftId"),z=b("AssetId"),O=b("CreateTimestamp");return v.useEffect(function(){m(t||tY)},[t,n]),E.createElement(E.Fragment,null,t?.EntryId&&E.createElement(yn,{title:"'".concat(t?.Title,"' by ").concat(t.Author," - Logbook Report")}),t?.EntryId?E.createElement(Pt,{elevation:1,className:l.paper},E.createElement("form",{style:{height:"100%",display:"flex",flexDirection:"column"}},E.createElement(T0,{style:{padding:"0px",marginLeft:0,width:"100%",flexBasis:"10%",minHeight:"10%"}},E.createElement(D,{item:!0,xs:12},E.createElement(Ue,{name:"Title",control:h,render:function(T){var R=T.field.value;return E.createElement(je,{label:"Title",variant:"outlined",value:R??"",fullWidth:!0,size:"medium",disabled:!0})}}))),E.createElement(ru,{dividers:!0,style:{padding:"10px 0 0",flexGrow:1,flexBasis:"90%",overflowY:"auto",display:"flex",flexDirection:"column",borderTop:0},className:l.root},E.createElement(D,{container:!0,spacing:2,style:{width:"100%",marginBottom:"0px",paddingLeft:0,display:"flex",justifyContent:"space-between",margin:0}},E.createElement(D,{item:!0,xs:12,md:4,style:{paddingLeft:0}},E.createElement(Ue,{name:"CreateTimestamp",control:h,render:function(T){var R=T.field.value;return E.createElement(xd,{label:"Creation Time",timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",value:R?rSi(R):null,disabled:!0,slotProps:{textField:{variant:"outlined",size:"small",fullWidth:!0}}})}})),E.createElement(D,{item:!0,xs:12,md:3},E.createElement(Ue,{name:"ShiftId",control:h,render:function(T){var R=T.field;return E.createElement(uzt,{onChange:R.onChange,value:R.value,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:o?3:5,style:{paddingRight:0,marginRight:"0px"}},E.createElement(Ue,{name:"Author",control:h,render:function(T){var R=T.field.value;return E.createElement(je,{label:"Author",variant:"outlined",value:R??"",fullWidth:!0,disabled:!0,size:"small"})}})),o&&E.createElement(D,{item:!0,md:2,xs:12},E.createElement(Ue,{name:"AssetId",control:h,rules:{required:"Asset is required"},render:function(T){var R=T.field;return E.createElement(vte,{value:R.value,onChange:R.onChange,filterAreaAssets:i==="area",disabled:!0})}}))),E.createElement(D,{container:!0,item:!0,xs:12,style:{flexGrow:1,height:"calc(100% - 200px)",marginTop:"16px"}},E.createElement(D,{item:!0,xs:12,style:{padding:0,height:"100%"}},E.createElement(pzt,{UpdatedBy:M,UpdateTimestamp:C,onChange:function(T){return g("Content",T)},value:y,isEditing:!1,isNewEntry:!1,entryId:x,entryData:{assetId:z,entryId:x,shiftId:A,title:w,content:y,author:S,createTimestamp:O},onEntrySubmitted:void 0,allowAttachments:s})))),E.createElement(D,{container:!0,style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:0,marginTop:"10px"}},E.createElement(D,{item:!0,container:!0,md:6,xs:12,spacing:2},E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r()}},"Close")))))):null,E.createElement(yt,{error:u,onHide:function(){return d("")}}))},oSi=[{value:"Day",label:"Day"},{value:"4Days",label:"4 Days"},{value:"Week",label:"Week"},{value:"Month",label:"Month"},{value:"Custom",label:"Custom"}],aSi=function(e){if(e!==void 0){var t=e.reduce(function(r,i,o){return r[i?.id]=o,r},{}),n;return e.forEach(function(r){if(r?.parentId===null){n=r;return}var i=e[t[r.parentId]];i&&(i.children=xi(xi([],i?.children||[],!0),[r],!1))}),n}},sSi=function(e){var t=e.withAssetFilter,n=e.filterAssets,r=e.quickFilter,i=e.onQuickFilterChange,o=e.assetId,a=e.setAssetId,s=e.shiftPeriod,l=e.onChangeShiftPeriod,c=e.actualPeriod,u=function(m,b){l(m,b)};hte({onReceiveMessage:function(m,b){b.replaceAll("[","").replaceAll("]","")=="LB.GetEntries"}});var d=czt(),p=d.data;d.isLoading;var h=(Array.isArray(p)?p:[]).filter(function(m){return n!=="area"||m.CanBeDefaultAsset}).map(function(m){return{id:m.AssetId,name:m.AssetName,parentId:m.ParentAssetId,isLeaf:m.IsLeaf,isActive:!0}}),g=aSi(h||[]);return E.createElement(Pt,{elevation:1,style:{padding:8}},E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,xs:12,alignItems:"center",justifyContent:"center"},E.createElement(qMi,{onChange:u,value:s,actualPeriod:c,showShiftAndCrews:!1,dateFormat:"MM/DD/YYYY",periodOptions:oSi})),E.createElement(D,{item:!0,xs:12,md:t?6:12},E.createElement(je,{fullWidth:!0,label:"Search",variant:"outlined",size:"small",margin:"dense",value:r,onChange:function(m){i(m?.target.value)},InputProps:{startAdornment:E.createElement(ac,{position:"start"},E.createElement(bn,{edge:"start",type:"submit"},E.createElement(N3,null)))}})),t==="tree"&&g&&E.createElement(D,{item:!0,xs:12,md:6,style:{alignItems:"center",justifyContent:"center"}},E.createElement(f3e,{inputTitle:"Asset",title:"Choose Asset",dataSource:g,value:o||0,description:"",onSelect:function(m){return a(m??null)},selectBranch:!0,selectActive:!1,selectInternal:!1,showPath:!0,allowSearch:!0})),t==="selector"&&E.createElement(D,{item:!0,xs:12,md:6,style:{alignItems:"center",justifyContent:"center",marginTop:6}},E.createElement(vte,{value:o??null,onChange:function(m){a(m??null)},filterAreaAssets:n==="area",isFilter:!0}))))},lSi=Sn(),cSi=function(){var e=_Ot().report,t=e.withAssetFilter,n=e.filterAssets,r=e.showAttachments,i=e.showAsset,o=e.showShiftCrew,a=e.exportToExcel,s=Zu(),l=s[0],c=s[1],u=l.get("entryId"),d=v.useRef(null),p=v.useState(""),h=p[0],g=p[1],m=v.useState(""),b=m[0],y=m[1],M=v.useState(null),C=M[0],x=M[1],w=v.useState(function(){var se=l.get("startShiftId"),pe=l.get("endShiftId");return{StartShiftId:se?Number(se):null,EndShiftId:pe?Number(pe):null}}),S=w[0],A=w[1],z=v.useState(""),O=z[0],T=z[1],R=v.useState(null),P=R[0],F=R[1],N=function(se){var pe=se.startShiftId,te=se.endShiftId,ce=se.period,oe=se.entryId,ae=new URLSearchParams(l);pe?ae.set("startShiftId",pe.toString()):pe===null&&ae.delete("startShiftId"),te?ae.set("endShiftId",te.toString()):te===null&&ae.delete("endShiftId"),ce?ae.set("period",ce):ce===null&&ae.delete("period"),oe?ae.set("entryId",oe):oe===null&&ae.delete("entryId"),c(ae)},L=dSi({startShiftId:S.StartShiftId,endShiftId:S.EndShiftId,assetId:C}),W=L.data,j=L.isLoading,V=L.error,G=L.isError,q=L.refetch,$=tSi({showAttachments:r,showAsset:i,showShiftCrew:o}).columnDefs,U=szt({}).defaultColDef,X=function(se){var pe;T(se),(pe=d.current)===null||pe===void 0||pe.setGridOption("quickFilterText",se)},Q=function(se){var pe,te;F(se?.data),N({entryId:(te=(pe=se.data)===null||pe===void 0?void 0:pe.EntryId)===null||te===void 0?void 0:te.toString()}),y("view")},re=v.useCallback(function(se){var pe,te,ce=se.api,oe=se.node,ae=se.event;if(ae){var ne=ae.key;if(ne==="ArrowUp"||ne==="ArrowDown"){ae.preventDefault();var le=oe.rowIndex!==null?oe.rowIndex:-1,he=ne==="ArrowUp"?le-1:le+1,be=ce.getDisplayedRowAtIndex(he);be&&(be.setSelected(!0),ce.ensureIndexVisible(he),F(be.data),N({entryId:(te=(pe=be.data)===null||pe===void 0?void 0:pe.EntryId)===null||te===void 0?void 0:te.toString()}))}}},[F]),ee=function(){if(d.current){var se={fileName:"Logbook_Report_Export.xlsx",columnKeys:["AssetName","CreateTimestamp","Shift","Crew","Title","CreatedBy","Author","Content"],processCellCallback:function(pe){return pe.column.colId==="CreateTimestamp"?lSi(pe.value).format("MM/DD/yy - HH:mm"):pe.value}};d.current.exportDataAsExcel(se)}};return v.useEffect(function(){var se,pe,te;if(!j&&u&&d.current){var ce=(se=d.current)===null||se===void 0?void 0:se.getRowNode(u);ce&&((pe=d.current)===null||pe===void 0||pe.ensureNodeVisible(ce),ce.setSelected(!0),F(ce.data),y("view"))}else u||(y(""),F(null),(te=d.current)===null||te===void 0||te.deselectAll())},[d.current,j,u]),v.useEffect(function(){G&&g(V.message)},[G,V]),v.useEffect(function(){var se,pe=l.get("startShiftId"),te=l.get("endShiftId"),ce=l.get("entryId");if((pe||te)&&A({StartShiftId:pe?Number(pe):null,EndShiftId:te?Number(te):null}),ce&&d.current){var oe=(se=d.current)===null||se===void 0?void 0:se.getRowNode(ce);oe&&(oe.setSelected(!0),F(oe.data),y("view"))}},[]),v.useEffect(function(){(S.StartShiftId!==null||S.EndShiftId!==null)&&(y(""),F(null),(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(se){switch(se.label){case 0:return[4,q()];case 1:return se.sent(),[2]}})})})())},[S.StartShiftId,S.EndShiftId]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(vt,{variant:"h5",style:{fontWeight:600,userSelect:"none"}},"LOGBOOK REPORT")),E.createElement(D,{item:!0,container:!0,xs:12,md:5,spacing:2},E.createElement(D,{item:!0,container:!0,xs:12},E.createElement(sSi,{withAssetFilter:t,filterAssets:n,quickFilter:O,onQuickFilterChange:X,assetId:C,setAssetId:function(se){return x(se)},shiftPeriod:S,onChangeShiftPeriod:function(se,pe){A(se),N({startShiftId:se.StartShiftId,endShiftId:se.EndShiftId,period:pe,entryId:l.get("entryId")})},actualPeriod:l.get("period")})),E.createElement(D,{item:!0,xs:12},E.createElement(Pt,{elevation:1,style:{height:"70vh",width:"100%"}},E.createElement($n,{loading:j,rowData:W,columnDefs:$,defaultColDef:U,rowHeight:38,headerHeight:42,loadingOverlayComponent:Wm,animateRows:!0,onRowClicked:Q,onCellKeyDown:re,onGridReady:function(se){return d.current=se.api},getRowId:function(se){return"".concat(se.data.EntryId)},gridOptions:{rowSelection:{mode:"singleRow",checkboxes:!1,enableClickSelection:!0},statusBar:{statusPanels:[a?{statusPanel:function(se){return E.createElement("div",{style:{padding:10}},E.createElement(azt,{handleExportToExcel:ee}))},align:"right"}:{}]}}})))),E.createElement(D,{item:!0,xs:12,md:7},E.createElement(iSi,{entry:P,show:b,onChangeShow:function(){return y(b==="view"?"edit":"view")},onHide:function(){var se;y(""),F(null),(se=d.current)===null||se===void 0||se.deselectAll(),N({entryId:null})},filterAssets:n,showAsset:i,showAttachments:r}))),E.createElement(yt,{error:h,onHide:function(){return g("")}}))},LKe=Sn(),uSi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.startShiftId,s=t.endShiftId,l=t.assetId;return xt(this,function(c){switch(c.label){case 0:return n=new Ye,r=[{name:"StartShiftId",value:a},{name:"EndShiftId",value:s}],l&&r.push({name:"AssetId",value:l}),[4,n.callV2("[LB].[GetEntries]",r)];case 1:if(i=c.sent(),i.ok)return o=At(i,"data.tables[0].rows",[]),o=o.map(function(u){return tt(tt({},u),{CreateTimestamp:u.CreateTimestamp?LKe.utc(u.CreateTimestamp).toDate():null,UpdateTimestamp:u.UpdateTimestamp?LKe.utc(u.UpdateTimestamp).toDate():null})}),[2,o];throw new Error(i.message||"Error fetching entries")}})})},dSi=function(e){var t=e.startShiftId,n=e.endShiftId,r=e.assetId;return jl({queryKey:["entriesReport",t,n,r],queryFn:function(){return uSi({startShiftId:t,endShiftId:n,assetId:r})}})},pSi=function(){return E.createElement(E.Fragment,null,E.createElement(yn,{title:"Logbook Report"}),E.createElement(D,{container:!0,style:{padding:20},onContextMenu:function(e){return e.preventDefault()}},E.createElement(cSi,null)))},hSi=function(){return E.createElement(pSi,null)},fSi=[{path:"/logbook/entry",element:E.createElement(kKe)},{path:"/logbook/entry/:shiftId",element:E.createElement(kKe)},{path:"/logbook/report",element:E.createElement(hSi)}],_Ke=[{id:"logbook",label:"Logbook",items:[{label:"Logbook Entry",to:"/logbook/entry"},{label:"Logbook Report",to:"/logbook/report"}]}],gSi=function(e){var t=jw(),n=t.state.userId,r=t.actions.setDefaultAreaId,i=fte({userId:n}),o=i.data,a=i.isError,s=i.error;return v.useEffect(function(){s&&a&&e(s.message)},[s,a]),function(){if(n&&o){var l=At(o,"[0]",null);l&&r(l)}}},mSi=Et(function(e){return Mp({root:{"& .MuiInputBase-input":{color:"#000 !important"},"& .MuiPaper-root":{height:"80vh"}},title:{fontSize:15},areaLink:{paddingLeft:0,color:"#FFF",cursor:"pointer",maxWidth:"100px",fontSize:".8rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center"},areaIcon:{marginLeft:"-5px"},listContainer:{height:"45vh",border:"1px solid rgba(0, 0, 0, 0.26)",borderRadius:"2px",overflowY:"scroll"}})}),vSi=function(){var e=v.useState(!1),t=e[0],n=e[1],r=v.useState(""),i=r[0],o=r[1],a=sT().getUserId,s=jw(),l=s.state,c=l.userId,u=l.defaultAreaId,d=l.defaultAreaName,p=s.actions,h=p.setDefaultAreaId,g=p.setDefaultAreaName,m=p.setUserId,b=Pk(),y=b.data;b.isLoading;var M=b.isError,C=b.error,x=y?.filter(function(U){return U.CanBeDefaultAsset}),w=E.useState(!0)[0],S=E.useState("sm"),A=S[0];S[1];var z=mSi(),O=v.useState(u),T=O[0],R=O[1],P=v.useState(d),F=P[0],N=P[1],L=gSi(o),W=function(U){return n(U)},j=function(){n(!0)},V=function(){R(u),N(d),W(!1)},G=function(){R(u),N(d),n(!1)},q=function(U,X){R(U),N(X)},$=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(U){return rMi(c,T).then(function(X){X.ok?(h(T),g(F),n(!1)):o(X.message)}),[2]})})};return v.useEffect(function(){m(a())},[]),v.useEffect(function(){L()},[c]),v.useEffect(function(){C&&M&&o(C.message)},[C,M]),v.useEffect(function(){if(u&&x){var U=x.find(function(X){return X?.AssetId===u});g(U?.AssetName),N(U?.AssetName)}else h(0),g("Plant"),N("Plant")},[u,x]),E.createElement(E.Fragment,null,E.createElement(Tn,{mx:2},E.createElement(bn,{color:"inherit",onClick:j,size:"small"},E.createElement("div",{className:z.areaLink},E.createElement(Ksi,{className:z.areaIcon}),d))),t&&E.createElement(yn,{title:"Change Default Area"}),E.createElement(Qu,{fullWidth:w,maxWidth:A,onClose:G,"aria-labelledby":"confirmation-dialog-title",open:t,className:z.root},E.createElement(T0,{id:"confirmation-dialog-title"},"AREA"),E.createElement(ru,{dividers:!0},E.createElement(vt,{className:z.title,variant:"subtitle1",style:{marginBottom:0}},"Current Area"),E.createElement(D,{container:!0},E.createElement(D,{item:!0,xs:12,style:{marginTop:5}},E.createElement(je,{variant:"outlined",disabled:!0,value:F,fullWidth:!0,margin:"dense",autoComplete:"off",style:{color:"#000 !important"}}),E.createElement(vt,{className:z.title,variant:"subtitle1",style:{marginBottom:0,marginTop:5}},"Change Default Area"),E.createElement(D,{item:!0,xs:12,style:{marginTop:10}},E.createElement(D,{item:!0,xs:12,className:z.listContainer},E.createElement(tp,{dense:!0,style:{padding:0}},x?.map(function(U){return E.createElement(ya,{button:!0,key:"Area-".concat(U?.AssetId),onClick:function(){return q(U?.AssetId,U?.AssetName)},style:{cursor:"pointer",width:"100%"}},E.createElement(ia,{primary:U?.AssetName}))}))))))),E.createElement(Ed,null,E.createElement(Ne,{autoFocus:!0,onClick:V,color:"primary"},"Cancel"),E.createElement(Ne,{variant:"contained",onClick:$,color:"primary"},"Change Area"))),E.createElement(yt,{error:i,onHide:function(){return o("")}}))},bSi=Object.freeze({__proto__:null,AreaSelector:vSi});const ySi=Wl({css:`
	  .max-limit {
		color: var(--ag-warning-cell-foreground-color);
		font-weight: var(--ag-warning-cell-font-weight);
		background-color: var(--ag-warning-cell-background-color);
	  }
	`,params:{warningCellForegroundColor:" #CC0000",warningCellFontWeight:600,warningCellBackgroundColor:"transparent"}}),MSi=Wl({css:`
	  .info-limit {
		color: var(--ag-info-cell-foreground-color);
		background-color: var(--ag-info-cell-background-color);
		font-weight: var(--ag-info-cell-font-weight);
	  }
	`,params:{infoCellForegroundColor:" #000",infoCellBackgroundColor:" #b2e5ed",infoCellFontWeight:600}}),CSi=Wl({css:`
	  .month-report {
		background-color: var(--ag-info-cell-background-color);
	  }
	  
	  .month-report:hover {
		background-color: #DAE5EA;
	  }
	`,params:{infoCellBackgroundColor:" #E9F2F7"}}),xSi=Wl({css:`
    .custom-chip {
      display: inline-flex;
      align-items: center;
      padding: 4px 12px;
      border-radius: 16px;
      font-size: 0.8125rem;
      font-family: "Roboto", "Helvetica", "Arial", sans-serif;
      line-height: 1.5;
      cursor: default;
    }

    .ag-cell.eaf-11 .custom-chip {
      font-weight: 500;
      color: #192a4d;
      background-color: #dae8fc;
      border: 1px solid #a6c8f7;
    }

    .ag-cell.eaf-12 .custom-chip {
      font-weight: 500;
      color: #273d25;
      background-color: #d5e8d4;
      border: 1px solid #a3d3a1;
    }
  `,params:{}}),wSi=Wl({css:`
	  .cell-below-min {
		background-color: #ffa500;
		font-weight: bold;
	  }

	  .cell-above-max {
		background-color: #f26b6b;
		font-weight: bold;
	  }

	  .ag-header-cell-label {
		display: flex;
		justify-content: center;
		align-items: center;
	  }
	`,params:{}}),SSi=Wl({css:`
    .custom-chip {
      display: inline-flex;
      align-items: center;
      padding: 2px 12px;
      border-radius: 16px;
      font-size: 0.8125rem;
      font-family: "Roboto", "Helvetica", "Arial", sans-serif;
      line-height: 1.5;
      cursor: default;
    }

    .ag-cell.shift-chip-D .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
      background-color: #DDD116;
      border: 1px solid rgb(224, 208, 101);
    }

    .ag-cell.shift-chip-N .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
	  background-color:rgb(161, 66, 221);
      border: 1px solid rgb(183, 102, 233);
    }
  `,params:{}}),ASi=Wl({css:`
    .custom-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 0.8125rem;
      font-family: "Roboto", "Helvetica", "Arial", sans-serif;
      line-height: 1.5;
      cursor: default;
      min-width: 24px;
      height: 24px;
    }

    .ag-cell.crew-chip-A .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
      background-color: #B2E08A;
      border: 1px solid #B2E08A;
    }

    .ag-cell.crew-chip-B .custom-chip {
      font-weight: 800;
      color:rgb(236, 236, 236);
	  background-color: #E83011;
      border: 1px solid #E83011;
    }

    .ag-cell.crew-chip-C .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
      background-color: #3878B4;
      border: 1px solid #3878B4;
    }

    .ag-cell.crew-chip-D .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
      background-color: #F3A506;
      border: 1px solid #F3A506;
    }
  `,params:{}}),OSi="CompanyName=Dexteel,LicensedApplication=MESF,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=1,LicensedProductionInstancesCount=0,AssetReference=AG-032923,SupportServicesEnd=14_September_2023_[v2]_MTY5NDY0NjAwMDAwMA==25593f20edf9c6754b7254f6a450e88c";yrt.setLicenseKey(OSi);const zSi=Bye.withPart(ySi).withPart(MSi).withPart(CSi).withPart(xSi).withPart(wSi).withPart(SSi).withPart(ASi).withParams({spacing:4});i4t.registerModules([Frn]);Fnt({theme:zSi,defaultColDef:{suppressHeaderMenuButton:!0,filter:!1,floatingFilter:!1,editable:!1,cellStyle:{textAlign:"center"}}});const TSi={guestIsEnabled:!1,useEmailAndPassword:!0,useAzureAD:!1,AzureConfig:{clientId:"7c77d607-51e0-4e03-bd50-d7aa18a7163f",authority:"https://login.microsoftonline.com/common",redirectUri:"http://localhost:5000/"},useWindowsAuth:!0},gu=Sn(),ESi=async({ProcessId:e=null})=>{const n=await new Ye().callV2("[EAF].[DEGetProcess]",[{name:"ProcessId",value:e}]);if(n.ok){const r=n.data,i=r.tables[0].rows[0];return r.tables[0].rows[0]={...r.tables[0].rows[0],Start:gu.utc(i.Start).toDate(),End:i.End?gu.utc(i.End).toDate():null,StartTap:i.StartTap?gu.utc(i.StartTap).toDate():null,ProductionDate:i.ProductionDate?gu.utc(i.ProductionDate).toDate():null,TrimProbeTime:i.TrimProbeTime?gu.utc(i.TrimProbeTime).toDate():null},r.tables[1].rows=r.tables[1].rows.map(o=>(o.Timestamp=gu.utc(o.Timestamp).toDate(),o)),r.tables[2].rows=r.tables[2].rows.map(o=>(o.Start=gu.utc(o.Start).toDate(),o.End=gu.utc(o.End).toDate(),o)),r.tables[3].rows=r.tables[3].rows.map(o=>(o.Timestamp=gu.utc(o.Timestamp).toDate(),o)),r.tables[4].rows=r.tables[4].rows.map(o=>(o.Timestamp=gu.utc(o.Timestamp).toDate(),o)),r.tables[5].rows=r.tables[5].rows.map(o=>(o.Start=gu.utc(o.Start).toDate(),o.End=gu.utc(o.End).toDate(),o)),r.tables[6].rows=r.tables[6].rows.map(o=>(o.Timestamp=gu.utc(o.Timestamp).toDate(),o)),r.tables[7].rows=r.tables[7].rows.map(o=>(o.Start=gu.utc(o.Start).toDate(),o.End=o.End?gu.utc(o.End).toDate():null,o)),{ok:!0,data:r}}else return{ok:!1,message:n.message}},RSi=async()=>{const t=await new Ye().callV2("[MS].[GetLadles]",[]);return t.ok?{ok:!0,data:t.data.tables[0].rows}:{ok:!1,message:t.message}},ISi=async()=>await new Ye().callV2("[EAF].[GetPhaseEventTypes]",[]),PSi=async()=>await new Ye().callV2("[EAF].[GetCatalogPhasesEventTypes]",[]),DSi=async e=>{const t=new Ye,n=[{name:"PhaseEventTypeId",value:e.PhaseEventTypeId},{name:"EventDescription",value:e.EventDescription},{name:"IsActive",value:e.IsActive}];return await t.callV2("[EAF].[UpsertPhaseEventType]",n)},kSi=async()=>{const t=await new Ye().callV2("[STEEL].[GetGrades]",[]);return t.ok?{ok:!0,data:t.data.tables[0].rows}:{ok:!1,message:t.message}},LSi=async({ProcessId:e,Start:t,End:n,AssetId:r})=>{const i=new Ye,o=[{name:"ProcessId",value:e},{name:"Start",value:t},{name:"End",value:n},{name:"IsProcessManual",value:!0},{name:"AssetId",value:r}];return await i.callV2("[EAF].[UpsertProcess]",o)},_Si=async({processId:e,field:t,value:n})=>{n instanceof Date&&(n=n.toISOString());const r=new Ye,i=[{name:"ProcessId",value:e},{name:t,value:n},{name:"IsManual",value:!0}];return await r.callV2("[EAF].[UpdateProcessData]",i)},NSi=async({processId:e,TrimProbeTime:t,TrimProbeTemperature:n})=>{const r=new Ye,i=[{name:"ProcessId",value:e},{name:"TrimProbeTime",value:t.toISOString()},{name:"TrimProbeTemperature",value:n},{name:"IsManual",value:!0}];return await r.callV2("[EAF].[UpdateProcessData]",i)},FSi=async({ChargeId:e,ProcessId:t,Timestamp:n,Charge:r,ChargeCode:i,Weight:o,BucketId:a})=>{const s=new Ye,l=[{name:"ChargeId",value:e},{name:"ProcessId",value:t},{name:"Timestamp",value:n},{name:"Weight",value:o},{name:"BucketId",value:a},{name:"IsChargeManual",value:!0}];return await s.callV2("[EAF].[UpsertCharge]",l)},WSi=async({ProbeId:e,ProcessId:t,Timestamp:n,Temperature:r,Oxygen:i,IsProbeManual:o})=>{const a=new Ye,s=[{name:"ProbeId",value:e},{name:"ProcessId",value:t},{name:"Timestamp",value:n},{name:"Temperature",value:r},{name:"Oxygen",value:i},{name:"IsProbeManual",value:o}];return await a.callV2("[EAF].[UpsertProbe]",s)},qSi=async({ElectrodeEventId:e,ProcessId:t,Phase:n,PhaseEventTypeId:r,Timestamp:i,IsManual:o})=>{const a=new Ye,s=[{name:"ElectrodeEventId",value:e},{name:"ProcessId",value:t},{name:"Phase",value:n},{name:"PhaseEventTypeId",value:r},{name:"Timestamp",value:i},{name:"IsManual",value:!0}];return await a.callV2("[EAF].[UpsertElectrodeEvent]",s)},BSi=async({HeatId:e,field:t,value:n})=>{const r=new Ye,i=[{name:"HeatId",value:e},{name:t,value:n}];return await r.callV2("[MS].[UpsertHeat]",i)},jSi=async({AdditionId:e,ProcessId:t,Timestamp:n,Weight:r,MaterialId:i})=>{const o=new Ye,a=[{name:"AdditionId",value:e},{name:"ProcessId",value:t},{name:"Timestamp",value:n},{name:"Weight",value:r},{name:"MaterialId",value:i},{name:"IsAdditionManual",value:!0}];return await o.callV2("[EAF].[UpsertAddition]",a)},HSi=async({WireAdditionId:e,ProcessId:t,Start:n,End:r,Line:i,RequestedValue:o,InjectedValue:a,MaterialId:s})=>{const l=new Ye,c=[{name:"WireAdditionId",value:e},{name:"ProcessId",value:t},{name:"Start",value:n},{name:"End",value:r},{name:"Line",value:i},{name:"RequestedValue",value:o},{name:"InjectedValue",value:a},{name:"MaterialId",value:s},{name:"IsManual",value:!0}];return await l.callV2("[EAF].[UpsertWireAddition]",c)},VSi=async({HeatingId:e,ProcessId:t,Start:n,End:r,MWH:i})=>{const o=new Ye,a=[{name:"HeatingId",value:e},{name:"ProcessId",value:t},{name:"Start",value:n},{name:"End",value:r},{name:"MWH",value:i},{name:"IsHeatingManual",value:!0}];return await o.callV2("[EAF].[UpsertHeating]",a)},NKe=async({PourbackId:e,HeatId:t,RemainingWeight:n,DestinationProcessId:r,ChargedTime:i,ChargedWeight:o,Comments:a})=>{const s=new Ye,l=[{name:"PourbackId",value:e},{name:"HeatId",value:t},{name:"RemainingWeight",value:n},{name:"DestinationProcessId",value:r},{name:"ChargedTime",value:i},{name:"ChargedWeight",value:o},{name:"Comments",value:a}];return await s.callV2("[MS].[UpsertPourback]",l)},GSi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFProbesFromPLC]",n)},$Si=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFChargesFromPLC]",n)},USi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadAdditionsFromHMI]",n)},XSi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFWireAdditionsFromPLC]",n)},YSi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFHeatingsFromPLC]",n)},KSi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFProcessPhasesFromPLC]",n)},QSi=async({ProbeId:e})=>{const t=new Ye,n=[{name:"ProbeId",value:e}];return await t.callV2("[EAF].[DeleteProbe]",n)},ZSi=async({ChargeId:e})=>{const t=new Ye,n=[{name:"ChargeId",value:e}];return await t.callV2("[EAF].[DeleteCharge]",n)},JSi=async({AdditionId:e})=>{const t=new Ye,n=[{name:"AdditionId",value:e}];return await t.callV2("[EAF].[DeleteAddition]",n)},eAi=async({WireAdditionId:e})=>{const t=new Ye,n=[{name:"WireAdditionId",value:e}];return await t.callV2("[EAF].[DeleteWireAddition]",n)},tAi=async({HeatingId:e})=>{const t=new Ye,n=[{name:"HeatingId",value:e}];return await t.callV2("[EAF].[DeleteHeating]",n)},nAi=async({ElectrodeEventId:e})=>{const t=new Ye,n=[{name:"ElectrodeEventId",value:e}];return await t.callV2("[EAF].[DeleteElectrodeEvent]",n)},rAi=async({PourbackId:e})=>{const t=new Ye,n=[{name:"PourbackId",value:e}];return await t.callV2("[MS].[DeletePourbackCharge]",n)},iAi=async({ProcessId:e=null})=>{const n=await new Ye().callV2("[MS].[GetPourbackCharges]",[{name:"ProcessId",value:e}]);if(n.ok){const r=n.data;return r.tables[0].rows.map(i=>{i.SourceTime=gu.utc(i.SourceTime).toDate(),i.ChargedTime=i.ChargedTime?gu.utc(i.ChargedTime).toDate():null}),{ok:!0,data:r}}else return{ok:!1,message:n.message}},oAi=async()=>{const e=new Ye,t=[];return await e.callV2("[SWV].[GetLastestNProcesses]",t)},aAi=async e=>{const t=new Ye,n=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100}];return await t.callV2("[SWV].[SearchProcesses]",n)},sAi=async({AssetId:e,ShiftId:t})=>{const n=new Ye,r=[{name:"AssetId",value:e},{name:"ShiftId",value:t}],i=await n.callV2("[DEL].[GetUnjustifiedDelaysByAsset]",r);return i.ok&&i.data.tables[0].rows.map(o=>{o.Start=gu.utc(o.Start).toDate(),o.End=o.End?gu.utc(o.End).toDate():null}),i},lAi={phaseEvents:null},rY=ki({name:"__",initialState:lAi,reducers:{setPhaseEvents(e,{payload:t}){e.phaseEvents=t}}}),hzt=v.createContext({state:rY.getInitialState(),actions:rY.actions}),fzt=()=>v.useContext(hzt),cAi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:rY.getInitialState(),reducers:rY.caseReducers});return f.jsx(hzt.Provider,{value:{state:t,actions:n},children:e})};var v5={},FKe;function uAi(){if(FKe)return v5;FKe=1;var e=ri(),t=ii();Object.defineProperty(v5,"__esModule",{value:!0}),v5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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"}),"CheckBox");return v5.default=i,v5}var dAi=uAi();const pAi=qn(dAi);var b5={},WKe;function hAi(){if(WKe)return b5;WKe=1;var e=ri(),t=ii();Object.defineProperty(b5,"__esModule",{value:!0}),b5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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"}),"CheckBoxOutlineBlank");return b5.default=i,b5}var fAi=hAi();const gAi=qn(fAi);var y5={},qKe;function mAi(){if(qKe)return y5;qKe=1;var e=ri(),t=ii();Object.defineProperty(y5,"__esModule",{value:!0}),y5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),"Comment");return y5.default=i,y5}var vAi=mAi();const bAi=qn(vAi);var M5={},BKe;function yAi(){if(BKe)return M5;BKe=1;var e=ri(),t=ii();Object.defineProperty(M5,"__esModule",{value:!0}),M5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("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.1zM8 13h8v-2H8v2zm9-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-5z"}),"Link");return M5.default=i,M5}var MAi=yAi();const uT=qn(MAi);var C5={},jKe;function CAi(){if(jKe)return C5;jKe=1;var e=ri(),t=ii();Object.defineProperty(C5,"__esModule",{value:!0}),C5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"}),"LinkOff");return C5.default=i,C5}var xAi=CAi();const dT=qn(xAi);var x5={},HKe;function wAi(){if(HKe)return x5;HKe=1;var e=ri(),t=ii();Object.defineProperty(x5,"__esModule",{value:!0}),x5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"List");return x5.default=i,x5}var SAi=wAi();const Cj=qn(SAi);var p$={exports:{}};/*! @preserve
 * numeral.js
 * version : 2.0.6
 * author : Adam Draper
 * license : MIT
 * http://adamwdraper.github.com/Numeral-js/
 */var AAi=p$.exports,VKe;function OAi(){return VKe||(VKe=1,(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(AAi,function(){var t,n,r="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function l(c,u){this._input=c,this._value=u}return t=function(c){var u,d,p,h;if(t.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||n.isNaN(c))u=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)u=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=null;else{for(d in i)if(h=typeof i[d].regexps.unformat=="function"?i[d].regexps.unformat():i[d].regexps.unformat,h&&c.match(h)){p=i[d].unformat;break}p=p||t._.stringToNumber,u=p(c)}else u=Number(c)||null;return new l(c,u)},t.version=r,t.isNumeral=function(c){return c instanceof l},t._=n={numberToFormat:function(c,u,d){var p=o[t.options.currentLocale],h=!1,g=!1,m=0,b="",y=1e12,M=1e9,C=1e6,x=1e3,w="",S=!1,A,z,O,T,R,P,F;if(c=c||0,z=Math.abs(c),t._.includes(u,"(")?(h=!0,u=u.replace(/[\(|\)]/g,"")):(t._.includes(u,"+")||t._.includes(u,"-"))&&(R=t._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),t._.includes(u,"a")&&(A=u.match(/a(k|m|b|t)?/),A=A?A[1]:!1,t._.includes(u," a")&&(b=" "),u=u.replace(new RegExp(b+"a[kmbt]?"),""),z>=y&&!A||A==="t"?(b+=p.abbreviations.trillion,c=c/y):z<y&&z>=M&&!A||A==="b"?(b+=p.abbreviations.billion,c=c/M):z<M&&z>=C&&!A||A==="m"?(b+=p.abbreviations.million,c=c/C):(z<C&&z>=x&&!A||A==="k")&&(b+=p.abbreviations.thousand,c=c/x)),t._.includes(u,"[.]")&&(g=!0,u=u.replace("[.]",".")),O=c.toString().split(".")[0],T=u.split(".")[1],P=u.indexOf(","),m=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,T?(t._.includes(T,"[")?(T=T.replace("]",""),T=T.split("["),w=t._.toFixed(c,T[0].length+T[1].length,d,T[1].length)):w=t._.toFixed(c,T.length,d),O=w.split(".")[0],t._.includes(w,".")?w=p.delimiters.decimal+w.split(".")[1]:w="",g&&Number(w.slice(1))===0&&(w="")):O=t._.toFixed(c,0,d),b&&!A&&Number(O)>=1e3&&b!==p.abbreviations.trillion)switch(O=String(Number(O)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(O,"-")&&(O=O.slice(1),S=!0),O.length<m)for(var N=m-O.length;N>0;N--)O="0"+O;return P>-1&&(O=O.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),u.indexOf(".")===0&&(O=""),F=O+w+(b||""),h?F=(h&&S?"(":"")+F+(h&&S?")":""):R>=0?F=R===0?(S?"-":"+")+F:F+(S?"-":"+"):S&&(F="-"+F),F},stringToNumber:function(c){var u=o[s.currentLocale],d=c,p={thousand:3,million:6,billion:9,trillion:12},h,g,m;if(s.zeroFormat&&c===s.zeroFormat)g=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)g=null;else{g=1,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(h in p)if(m=new RegExp("[^a-zA-Z]"+u.abbreviations[h]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),d.match(m)){g*=Math.pow(10,p[h]);break}g*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),g*=Number(c)}return g},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,u){return c.indexOf(u)!==-1},insert:function(c,u,d){return c.slice(0,d)+u+c.slice(d)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var d=Object(c),p=d.length>>>0,h=0,g;if(arguments.length===3)g=arguments[2];else{for(;h<p&&!(h in d);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");g=d[h++]}for(;h<p;h++)h in d&&(g=u(g,d[h],h,d));return g},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,d){var p=n.multiplier(d);return u>p?u:p},1)},toFixed:function(c,u,d,p){var h=c.toString().split("."),g=u-(p||0),m,b,y,M;return h.length===2?m=Math.min(Math.max(h[1].length,g),u):m=g,y=Math.pow(10,m),M=(d(c+"e+"+m)/y).toFixed(m),p>u-m&&(b=new RegExp("\\.?0{1,"+(p-(u-m))+"}$"),M=M.replace(b,"")),M}},t.options=s,t.formats=i,t.locales=o,t.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},t.localeData=function(c){if(!c)return o[s.currentLocale];if(c=c.toLowerCase(),!o[c])throw new Error("Unknown locale : "+c);return o[c]},t.reset=function(){for(var c in a)s[c]=a[c]},t.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,u,d){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=d,d},t.validate=function(c,u){var d,p,h,g,m,b,y,M;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{y=t.localeData(u)}catch{y=t.localeData(t.locale())}return h=y.currency.symbol,m=y.abbreviations,d=y.delimiters.decimal,y.delimiters.thousands==="."?p="\\.":p=y.delimiters.thousands,M=c.match(/^[^\d]+/),M!==null&&(c=c.substr(1),M[0]!==h)||(M=c.match(/[^\d]+$/),M!==null&&(c=c.slice(0,-1),M[0]!==m.thousand&&M[0]!==m.million&&M[0]!==m.billion&&M[0]!==m.trillion))?!1:(b=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(g=c.split(d),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(b):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(b)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(b)&&!!g[1].match(/^\d+$/)))},t.fn=l.prototype={clone:function(){return t(this)},format:function(c,u){var d=this._value,p=c||s.defaultFormat,h,g,m;if(u=u||Math.round,d===0&&s.zeroFormat!==null)g=s.zeroFormat;else if(d===null&&s.nullFormat!==null)g=s.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){m=i[h].format;break}m=m||t._.numberToFormat,g=m(d,p,u)}return g},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var u=n.correctionFactor.call(null,this._value,c);function d(p,h,g,m){return p+Math.round(u*h)}return this._value=n.reduce([this._value,c],d,0)/u,this},subtract:function(c){var u=n.correctionFactor.call(null,this._value,c);function d(p,h,g,m){return p-Math.round(u*h)}return this._value=n.reduce([c],d,Math.round(this._value*u))/u,this},multiply:function(c){function u(d,p,h,g){var m=n.correctionFactor(d,p);return Math.round(d*m)*Math.round(p*m)/Math.round(m*m)}return this._value=n.reduce([this._value,c],u,1),this},divide:function(c){function u(d,p,h,g){var m=n.correctionFactor(d,p);return Math.round(d*m)/Math.round(p*m)}return this._value=n.reduce([this._value,c],u),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,d){var p=t._.includes(u," BPS")?" ":"",h;return c=c*1e4,u=u.replace(/\s?BPS/,""),h=t._.numberToFormat(c,u,d),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})})(),(function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},d=c.suffixes.concat(u.suffixes.filter(function(h){return c.suffixes.indexOf(h)<0})),p=d.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,g,m){var b,y=t._.includes(g,"ib")?u:c,M=t._.includes(g," b")||t._.includes(g," ib")?" ":"",C,x,w;for(g=g.replace(/\s?i?b/,""),C=0;C<=y.suffixes.length;C++)if(x=Math.pow(y.base,C),w=Math.pow(y.base,C+1),h===null||h===0||h>=x&&h<w){M+=y.suffixes[C],x>0&&(h=h/x);break}return b=t._.numberToFormat(h,g,m),b+M},unformat:function(h){var g=t._.stringToNumber(h),m,b;if(g){for(m=c.suffixes.length-1;m>=0;m--){if(t._.includes(h,c.suffixes[m])){b=Math.pow(c.base,m);break}if(t._.includes(h,u.suffixes[m])){b=Math.pow(u.base,m);break}}g*=b||1}return g}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,d){var p=t.locales[t.options.currentLocale],h={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},g,m,b;for(u=u.replace(/\s?\$\s?/,""),g=t._.numberToFormat(c,u,d),c>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),b=0;b<h.before.length;b++)switch(m=h.before[b],m){case"$":g=t._.insert(g,p.currency.symbol,b);break;case" ":g=t._.insert(g," ",b+p.currency.symbol.length-1);break}for(b=h.after.length-1;b>=0;b--)switch(m=h.after[b],m){case"$":g=b===h.after.length-1?g+p.currency.symbol:t._.insert(g,p.currency.symbol,-(h.after.length-(1+b)));break;case" ":g=b===h.after.length-1?g+" ":t._.insert(g," ",-(h.after.length-(1+b)+p.currency.symbol.length-1));break}return g}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,u,d){var p,h=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",g=h.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(g[0]),u,d),p+"e"+g[1]},unformat:function(c){var u=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),d=Number(u[0]),p=Number(u[1]);p=t._.includes(c,"e-")?p*=-1:p;function h(g,m,b,y){var M=t._.correctionFactor(g,m),C=g*M*(m*M)/(M*M);return C}return t._.reduce([d,Math.pow(10,p)],h,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,d){var p=t.locales[t.options.currentLocale],h,g=t._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),g+=p.ordinal(c),h=t._.numberToFormat(c,u,d),h+g}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,d){var p=t._.includes(u," %")?" ":"",h;return t.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),h=t._.numberToFormat(c,u,d),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(c){var u=t._.stringToNumber(c);return t.options.scalePercentBy100?u*.01:u}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,d){var p=Math.floor(c/60/60),h=Math.floor((c-p*60*60)/60),g=Math.round(c-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(g<10?"0"+g:g)},unformat:function(c){var u=c.split(":"),d=0;return u.length===3?(d=d+Number(u[0])*60*60,d=d+Number(u[1])*60,d=d+Number(u[2])):u.length===2&&(d=d+Number(u[0])*60,d=d+Number(u[1])),Number(d)}})})(),t})})(p$)),p$.exports}var zAi=OAi();const gzt=qn(zAi),bte=Et(e=>({contextMenu:{fontSize:"14px",backgroundColor:"#fff",borderRadius:"2px",padding:"5px 0 5px 0",width:"170px",height:"auto",margin:"0",position:"absolute",listStyle:"none",boxShadow:"0 0 20px 0 #ccc"},fixedBottom:{position:"fixed",bottom:0,right:0,padding:"0px 1.5rem",textAlign:"right"},labelNormalClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",border:"none",backgroundColor:"#ced2cc",borderTopLeftRadius:"0.25rem !important",borderBottomLeftRadius:"0.25rem !important"},labelNormalButtonClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",border:"none",backgroundColor:"#ced2cc",cursor:"pointer"},labelCheckboxClass:{fontSize:"0.75rem",padding:"0.275rem 0.50rem",border:"none",backgroundColor:"#ced2cc",borderTopLeftRadius:"0.25rem !important",borderBottomLeftRadius:"0.25rem !important"},labelScheduledClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#B1C381 !important",border:"none",borderTopLeftRadius:"0!important",borderBottomLeftRadius:"0!important"},labelMeltingClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#AFC8AD !important",border:"none"},labelTappedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#F2D3A2 !important",border:"none"},labelOpenedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#BEADFA !important",border:"none"},labelClosedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#FF8080 !important",border:"none"},labelReturnedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#82A0D8 !important",border:"none"},labelFinishedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#7C9D96 !important",border:"none"},inputHeatNavigator:{textAlign:"center",fontSize:"22px",maxWidth:"130px"},inputShiftNavigator:{cursor:"pointer",textDecoration:"underline",textDecorationColor:"blue",color:"blue"},inputNormalClass:{fontSize:"0.60rem",borderTopLeftRadius:"0!important",borderBottomLeftRadius:"0!important"},inputForTundishClass:{fontSize:"0.60rem",borderTopLeftRadius:"0!important",borderBottomLeftRadius:"0!important",backgroundColor:"green"},styleLabel:{width:"150px",maxWidth:"150px"},normalItem:{padding:"4px 0px"},groupCheckBoxItem:{backgroundColor:"transparent !important",position:"relative",flex:"1 1 auto",width:"1%",minWidth:"0",marginBottom:"0"},checkBoxItem:{display:"flex",justifyContent:"center",alignItems:"center",borderTopRightRadius:"0.25rem !important",borderBottomRightRadius:"0.25rem !important",borderTopLeftRadius:"0!important",borderBottomLeftRadius:"0!important",backgroundColor:"#fff !important",margin:"auto",padding:" 0",border:"1px solid #ced4da"},simpleCellHeader:{padding:"0.275rem 0.45rem",fontSize:"0.75rem",backgroundColor:"#ced2cc   !important",border:"1px solid #ced4da",color:"#495057",textAlign:"center"},simpleCellText:{padding:"0.275rem 0.45rem",fontSize:"0.75rem",borderRadius:"0px",height:"35px"},simpleCellCheckBox:{border:"1px solid #ced4da",textAlign:"center",margin:"auto",height:"2.7rem"},simpleCellNumeric:{fontSize:"0.75rem",borderRadius:"0px",padding:"0px 0.6rem",height:"35px",minWidth:"30px",textAlign:"right"},simpleButton:{borderRadius:"0.25rem",backgroundColor:"white",width:" 25px",fontSize:"14px",minWidth:" 25px",height:"25px",cursor:"pointer !important",border:"1px solid black","&:hover":{backgroundColor:"white"},margin:"0px 2px",color:"black"},manualButton:{backgroundColor:"#3f51b5","&:hover":{backgroundColor:"#3f51b5"},color:"white"},automaticButton:{backgroundColor:"#008A00","&:hover":{backgroundColor:"#008A00"},color:"white"},historicButton:{backgroundColor:"blue",width:" 30px",height:"30px",color:"white"},lockButton:{borderRadius:"0px",backgroundColor:"#efefef",width:" 20px",height:"20px",cursor:"pointer !important",border:"1px solid #000","&:hover":{backgroundColor:"#efefef"},margin:"0px 2px"},deleteButton:{borderRadius:"0px",width:" 20px",height:"20px",cursor:"pointer !important","&:hover":{backgroundColor:"#efefef"},color:"red",margin:"0px 2px"},dateTimePicker:{"& *":{font:"none",fontSize:"0.65rem !important"},"& .MuiInputBase-input":{padding:"0 !important",paddingLeft:"10px !important",width:"187px!important ",border:0}},dateTimePickerX:{"& .MuiInputBase-root":{height:"35px",width:"100%","& .MuiInputBase-input":{padding:"6px 10px",font:"none",fontSize:"0.65rem !important",borderRadius:"4px"}}},dateToTableTimePicker:{"& *":{font:"none",fontSize:"0.65rem !important"},"& .MuiInputBase-input":{padding:"0 !important",paddingLeft:"10px !important",width:"110px!important ",border:0},"& .MuiOutlinedInput-root":{borderRadius:0,height:35}},iconButton:{color:"white",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"14px",borderRadius:"0.25rem"},customInput:{width:"100%","& .MuiInputBase-input":{fontSize:"1.2rem"}},labelNormalForDatesClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",border:"none",backgroundColor:"#ced2cc",borderTopLeftRadius:"0.25rem !important",borderBottomLeftRadius:"0.25rem !important",width:"100px",maxWidth:"120px"},listbox:{width:115,margin:0,padding:0,position:"absolute",listStyle:"none",backgroundColor:e.palette.background.paper,overflow:"auto",maxHeight:200,border:"1px solid rgba(0,0,0,.25)",'& li[data-focus="true"]':{backgroundColor:"#4a8df6",color:"white",cursor:"pointer"},"& li:active":{backgroundColor:"#2977f5",color:"white"}}})),TAi=e=>e.data[e.isEnabled]===!0?f.jsx(f.Fragment,{children:f.jsx(vzt,{...e})}):f.jsx(f.Fragment,{children:f.jsx(bzt,{...e})}),mzt=e=>e.value===!0?f.jsx(f.Fragment,{children:f.jsx(vzt,{...e})}):f.jsx(f.Fragment,{children:f.jsx(bzt,{...e})}),EAi=e=>{function t(){(async()=>await e.clicked(e.data))()}return f.jsx(f.Fragment,{children:f.jsx(bn,{"aria-label":"edit",size:"small",title:"Edit",color:"primary",style:{cursor:"pointer"},onClick:t,children:f.jsx(Fo,{fontSize:"inherit",style:{cursor:"pointer"}})})})},vzt=e=>{function t(){(async()=>e.clicked!==void 0&&await e.clicked(e.data))()}return f.jsx(f.Fragment,{children:f.jsx(bn,{"aria-label":"delete",size:"small",title:"Delete",style:{cursor:"pointer"},onClick:t,children:f.jsx(Mo,{fontSize:"inherit",color:"secondary",style:{cursor:"pointer"}})})})},bzt=e=>{function t(){e.clicked!==void 0&&e.clicked(e.data)}return f.jsx(f.Fragment,{children:f.jsx(bn,{"aria-label":"active",title:"Active",size:"small",style:{cursor:"pointer"},onClick:t,children:f.jsx(Yxe,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})})})},RAi=e=>{function t(){(async()=>await e.clicked(e.data))()}return f.jsx(f.Fragment,{children:f.jsx(bn,{"aria-label":"link",size:"small",title:"Link",color:"primary",style:{cursor:"pointer"},onClick:t,children:f.jsx(uT,{fontSize:"inherit",style:{cursor:"pointer"}})})})},iY=e=>e.value===!0?f.jsx(f.Fragment,{children:f.jsx(pAi,{fontSize:"small",color:"primary"})}):f.jsx(f.Fragment,{children:f.jsx(gAi,{fontSize:"small",color:"primary"})}),yte=e=>{const t=e.data.IsManual||e.data.IsProcessManual,n=bte();return f.jsx(f.Fragment,{children:t?f.jsx("div",{children:f.jsx(Ne,{"aria-label":"Manual",title:"Manual",variant:"text",size:"small",className:`${n.simpleButton} ${n.manualButton}`,style:{cursor:"auto"},children:"M"})}):f.jsx(f.Fragment,{})})},IAi=({comments:e,onClick:t})=>{bte();const n=e;return f.jsx(f.Fragment,{children:f.jsx(bn,{"aria-label":"comments",size:"small",title:"See comments",color:"primary",style:{cursor:"pointer"},disabled:!n,onClick:()=>t(),children:f.jsx(bAi,{fontSize:"inherit",style:{cursor:"pointer"}})})})},PAi=e=>{function t(){(async()=>await e.clicked(e.data))()}return f.jsx(f.Fragment,{children:f.jsx(bn,{"aria-label":"unlink",size:"small",title:"Unlink",color:"primary",style:{cursor:"pointer"},onClick:t,children:f.jsx(dT,{fontSize:"inherit",style:{cursor:"pointer"}})})})},EO=e=>{if(e.value===null||e.value===void 0)return f.jsx(f.Fragment,{});const t=gzt(e.value),n=e.numericFormat===""?"0.00":e.numericFormat,r=Number.isNaN(t.value)?"NaN":t.format(n);return f.jsx("span",{children:r})},Td=e=>{if(e.value===null||e.value===void 0)return f.jsx(f.Fragment,{});if(e.link)return f.jsx(f.Fragment,{children:f.jsx("a",{href:e.link,target:"_self",rel:"noopener noreferrer",children:e.value})});const t=e.data[e.linkProperty??""]??"";return f.jsx(f.Fragment,{children:f.jsx("a",{href:t,target:"_self",rel:"noopener noreferrer",children:e.value})})},ku=({OnEdit:e,OnSend:t})=>({columnDefaults:{minWidth:20,flex:1,filter:!0,floatingFilter:!0,sortable:!0,resizable:!0,editable:!1,suppressHeaderMenuButton:!0},columnSimpleDefaults:{minWidth:20,flex:1,filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0},columnTypes:{nonEditableColumn:{editable:!1},nonSorteable:{sortable:!1},nonFilterable:{filter:!1},numericWidth:{width:80},centerAligned:{headerClass:"ag-center-aligned-header",cellClass:"ag-center-aligned-cell"},editButton:{field:"Edit",cellRenderer:EAi,cellRendererParams:{clicked:a=>{e&&e(a)}},cellClass:"ag-button-cell"},statusButton:{field:"Enabled",cellRenderer:TAi,cellRendererParams:{isEnabled:"Enabled",clicked:a=>{alert(`${a.Decimals} was clicked`)}},cellClass:"ag-button-cell"},IsActive:{field:"IsActive",cellRenderer:iY,cellRendererParams:{isEnabled:"IsActive"},cellClass:"ag-button-cell"},booleanCheckbox:{field:"Boolean",cellRenderer:iY,cellRendererParams:{checked:!0},cellClass:"ag-button-cell"}},columnGenericDefaults:{minWidth:20,filter:!0,floatingFilter:!1,sortable:!0,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),M1=({value:e,onChange:t,label:n})=>f.jsx(je,{fullWidth:!0,variant:"outlined",placeholder:n,value:e,onChange:r=>t(r.target.value),size:"small",InputProps:{startAdornment:f.jsx(ac,{position:"start",children:f.jsx(k1n,{})})}}),Pd=Et(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-cell":{color:"black"},"& .ag-header-group-cell-label ":{textAlign:"center !important",justifyContent:"center",fontSize:".8rem !important",color:"black"},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center",fontSize:".8rem !important",padding:2},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-header-cell, .ag-header-cell-group-cell, .ag-header-group-text":{padding:2,color:"black"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600},"& .first-column-cell":{fontSize:".8rem !important",fontWeight:"bold",color:"black"},"& .ag-status-bar":{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,padding:e.spacing(.5,1),fontSize:13,fontWeight:"bold",border:"none"}},btnModal:{display:"flex",justifyContent:"flex-end"},gridContainer:{height:"61vh",border:"4px solid #ccc",borderRadius:10,padding:10,margin:"20px 10px"},borderAgGridTable:{border:"1px solid #ccc",borderRadius:"4px",padding:"px "}})),DAi=Et(e=>({root:{"& .ag-icon-menu":{display:"none"},"& .ag-header-group-cell":{padding:"0px !important",color:"#fff !important"},"& .ag-header-group-cell-label":{margin:"auto !important"},"& .ag-header":{backgroundColor:"#479dc4 !important"},"& .ag-header-cell":{padding:"0px !important",color:"#fff !important"},"& .ag-cell-label-container":{padding:"0px !important"},"& .ag-header-cell-text":{margin:"auto !important"},"& .ag-cell":{fontSize:"12px !important",padding:"8px !important"},"& .error-limit":{color:"#fff",backgroundColor:"#f07171",fontWeight:600},"& .stripe-header ":{color:"#fff",background:"repeating-linear-gradient(45deg,#65c2ec,#65c2ec 5px,#479dc4 5px,#479dc4 10px)"},"& .ag-drag-handle":{},"& .ag-right-aligned-cell":{},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .custom-tooltip":{width:"150px",minHeight:"70px",border:"1px solid cornflowerblue",overflow:"hidden"},"& .custom-tooltip p":{margin:"5px",whiteSpace:"pre-line",wordWrap:"break-word"},"& .custom-tooltip span:first-of-type":{fontWeight:"bold"}},btnModal:{display:"flex",justifyContent:"flex-end"},footerTitle:{width:220,padding:"8px 0",textAlign:"center",backgroundColor:"#eee",borderBottom:"solid 1px #babfc7",borderLeft:"solid 1px #babfc7"},footerContainer:{backgroundColor:"#fff",height:"45px"},footerItem:{width:70,padding:"8px 0",textAlign:"center",backgroundColor:"#eee",borderBottom:"solid 1px #babfc7"},footerTextItem:{fontSize:12,verticalAlign:"middle"},footerTextTitle:{fontSize:12,verticalAlign:"middle",fontWeight:700}})),Ra=({checkboxValue:e,label:t,className:n,disabled:r=!1,onCheckboxChange:i,onFocus:o,onBlur:a})=>f.jsx("div",{onClick:()=>i(!e),style:{cursor:"pointer"},children:f.jsx(je,{fullWidth:!0,variant:"outlined",label:t,value:"",disabled:!0,onFocus:o,onBlur:a,className:n,InputLabelProps:{style:{color:r?"#a4a4a4":"black",fontWeight:r?500:400}},InputProps:{endAdornment:f.jsx(ac,{position:"end",children:f.jsx(Qr,{checked:e,onChange:s=>i(s.target.checked),color:"primary",disabled:r,size:"small",style:{cursor:"pointer"}})})}})}),iu=Et(e=>Mp({checkbox:{userSelect:"none","& .MuiOutlinedInput-root":{height:"51px"},margin:"8px 0px"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},colorPicker:{border:"1px solid #c4c4c4",borderRadius:"4px",padding:"3.5px"}})),kAi=({show:e,onHide:t,refreshData:n,phaseEvent:r})=>{const i=iu(),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(""),{register:d,control:p,handleSubmit:h,reset:g,formState:{errors:m}}=jn({defaultValues:{PhaseEventTypeId:0,EventDescription:"",IsActive:!0}}),b=(M,C)=>{C!=="clickaway"&&l(!1)},y=async M=>{a(!0);const C=await DSi(M);C.ok?(a(!1),l(!0),t(),n()):u(C.message),a(!1)};return v.useEffect(()=>{e&&g(r||{PhaseEventTypeId:0,EventDescription:"",IsActive:!0})},[e,r,g]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:`${r?"EDIT":"NEW"} PHASE EVENT`,children:f.jsxs("form",{onSubmit:h(y),children:[f.jsx(We.Content,{dividers:!0,className:i.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...d("EventDescription",{required:!0}),label:"Event Description",variant:"outlined",error:!!m.EventDescription,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:p,render:({field:M})=>f.jsx(Ra,{checkboxValue:!!M.value,onCheckboxChange:M.onChange,label:"Enabled",className:i.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:o&&f.jsx(Kt,{size:"1rem"}),disabled:o,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:s,autoHideDuration:2500,onClose:b,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:b,children:r?"The element was updated successfully":"The element was created successfully"})}),f.jsx(yt,{error:c,onHide:()=>u("")})]})},LAi=({})=>{const{state:e}=fzt();return{rows:e.phaseEvents?.map(r=>({...r}))||[],columns:[{field:"EventDescription",headerName:"Event Description",minWidth:63,flex:4,wrapText:!0,autoHeight:!0},{field:"IsActive",headerName:"Enabled",cellRenderer:r=>f.jsx(Qr,{checked:r.value,disabled:!0}),flex:4,minWidth:86},{field:"Actions",headerName:"",type:["editButton"],flex:1,minWidth:50}]}},_Ai=({getPhaseEventsFromAPI:e,isLoading:t})=>{const n=Pd(),[r,i]=v.useState(!1),[o,a]=v.useState(!1),[s,l]=v.useState(null),[c,u]=v.useState(""),{rows:d,columns:p}=LAi({}),{columnTypes:h}=ku({OnEdit:g=>{a(!o),l(g)}});return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Phase Events"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:c,onChange:g=>u(g),label:"Search phase events"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:n.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:d||[],columnDefs:p,getRowId:g=>g.data.PhaseEventTypeId,columnTypes:h,suppressContextMenu:!0,onRowDoubleClicked:g=>{l(g.data),a(!0)},rowSelection:"single",quickFilterText:c})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>i(!r),children:"NEW PHASE EVENT"})})]})]}),f.jsx(kAi,{show:r||o,onHide:()=>{a(!1),i(!1),l(null),e()},refreshData:e,phaseEvent:s})]})},NAi=e=>{const{state:t,actions:n}=fzt(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await PSi();l.ok?(n.setPhaseEvents(l.data.tables[0].rows),i(!1)):a(l.message)};return v.useEffect(()=>{s()},[]),t.phaseEvents?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(_Ai,{isLoading:r,getPhaseEventsFromAPI:s})})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},FAi=()=>f.jsx(cAi,{children:f.jsx(NAi,{})}),WAi={showLoading:!1,alertConfigurations:[],selectedAlertConfiguration:null,error:void 0,success:void 0},oY=ki({name:"__",initialState:WAi,reducers:{setShowLoading(e,{payload:t}){e.showLoading=t},setAlertConfigurations(e,{payload:t}){e.alertConfigurations=t},setSelectedAlertConfiguration(e,{payload:t}){e.selectedAlertConfiguration=t},setError(e,{payload:t}){e.error=t},setSuccess(e,{payload:t}){e.success=t}}}),qAi=v.createContext({state:oY.getInitialState(),actions:oY.actions}),BAi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:oY.getInitialState(),reducers:oY.caseReducers});return f.jsx(qAi.Provider,{value:{state:t,actions:n},children:e})},jAi=e=>f.jsx(BAi,{children:f.jsx("div",{})}),nl=Sn(),HAi=async e=>{try{const t=[];t.push({name:"@StartDate",value:JSON.parse(JSON.stringify(e.startDate))}),t.push({name:"@EndDate",value:JSON.parse(JSON.stringify(e.endDate))}),t.push({name:"@BilletSizeId",value:e.billetSizeId===0?null:e.billetSizeId}),t.push({name:"@GradeId",value:e.gradeId===0?null:e.gradeId}),t.push({name:"@ShiftId",value:e.shiftId===0?null:e.shiftId}),t.push({name:"@ToJSON",value:!1});const n=new Ye,r={showAllSheets:!0,sheets:[{order:1,resultSetIndex:0,sheetName:"Caster Production",showAllColumns:!1,columns:[{columnName:"HeatName.Value",caption:"Heat",order:1},{columnName:"Grade.Value",caption:"Grade",order:2},{columnName:"BilletSizeName",caption:"Billet Size",order:3},{columnName:"Open.Free.Value",caption:"Open Free",order:4},{columnName:"Open.Burn.Value",caption:"Open Burn",order:5},{columnName:"NozzleSize",caption:"Nozzle",order:6},{columnName:"Trim.Temperature",caption:"Ladle Trim Temp",order:7},{columnName:"Trim.SuperHeat.Value",caption:"Ladle Trim SHeat",order:8},{columnName:"Tundish.Number",caption:"Tundish Num",order:9},{columnName:"Tundish.Sequence",caption:"Tundish Seq",order:10},{columnName:"Temperatures.Liquidus",caption:"Temperatures Liquidus",order:11},{columnName:"Temperatures.Minimum",caption:"Temperatures Minimum",order:12},{columnName:"Temperatures.Maximum",caption:"Temperatures Maximum",order:13},{columnName:"Temperatures.MinSH.Value",caption:"Temperatures MinSH",order:14},{columnName:"LadleOpen",caption:"Times Open",order:15},{columnName:"LadleClose",caption:"Times Close",order:16},{columnName:"Duration.Value",caption:"Times Duration",order:17},{columnName:"AvgSpeed.S1.Value",caption:"Avg Speed S1",order:18},{columnName:"AvgSpeed.S2.Value",caption:"Avg Speed S2",order:19},{columnName:"AvgSpeed.S3.Value",caption:"Avg Speed S3",order:20},{columnName:"Products.Pieces",caption:"Products Pieces",order:21},{columnName:"Products.Tons",caption:"Products Tons",order:22},{columnName:"Scrap.Pieces",caption:"Scrap Pieces",order:23},{columnName:"Scrap.Length",caption:"Scrap Length",order:24},{columnName:"Comments",caption:"Comments",order:25}]}]};return{ok:!0,data:await n.exportExcel("[CAS].[GetProductionGridJSON]",t,"Caster Production.xlsx",r)}}catch(t){return{ok:!1,message:t.toString()}}},v2e=async e=>{const t=[];t.push({name:"@StartDate",value:JSON.parse(JSON.stringify(e.startDate))}),t.push({name:"@EndDate",value:JSON.parse(JSON.stringify(e.endDate))}),t.push({name:"@BilletSizeId",value:e.billetSizeId===0?null:e.billetSizeId}),t.push({name:"@GradeId",value:e.gradeId===0?null:e.gradeId}),t.push({name:"@ShiftId",value:e.shiftId===0?null:e.shiftId});const r=await new Ye().callV2("[CAS].[GetProductionGrid]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,LadleOpen:i.LadleOpen?nl.utc(i.LadleOpen).toDate():null,LadleClose:i.LadleClose?nl.utc(i.LadleClose).toDate():null}))),r},yzt=async e=>{const t=[];t.push({name:"@StartDate",value:JSON.parse(JSON.stringify(e.startDate))}),t.push({name:"@EndDate",value:JSON.parse(JSON.stringify(e.endDate))}),t.push({name:"@BilletSizeId",value:e.billetSizeId===0?null:e.billetSizeId}),t.push({name:"@GradeId",value:e.gradeId===0?null:e.gradeId}),t.push({name:"@ShiftId",value:e.shiftId===0?null:e.shiftId}),t.push({name:"@IncludeExternalHeats",value:EEn(e.includeExternalHeats)?e.includeExternalHeats:null});const r=await new Ye().callV2("[LAB].[GetMissedChemistriesGrid]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,ResultsTime:i.ResultsTime?nl.utc(i.ResultsTime).toDate():null}))),r},VAi=async e=>{const t=new Ye,n=[];n.push({name:"HeatId",value:e});const r=await t.callV2("[LAB].[GetHeatReport]",n);if(r.ok){if(r.data.tables[0]&&r.data.tables[0].rows[0]){const i=r.data.tables[0].rows[0];i.ProductionDate=i.ProductionDate?nl.utc(i.ProductionDate).toDate():null}r.data.tables[1]&&(r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,Reception:i.Reception?nl.utc(i.Reception).toDate():null})))}return r},GAi=async e=>await new Ye().callV2("[CAS].[GetSectionsPerMoldSize]",[{name:"@MoldSizeId",value:e}]),$Ai=async(e,t)=>{const n=[];n.push({name:"@ShiftId",value:e}),n.push({name:"@GetDeleted",value:t});const i=await new Ye().callV2("[CAS].[GetProcessesByShift]",n);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,LadleOpen:o.LadleOpen?nl.utc(o.LadleOpen).toDate():null,LadleClose:o.LadleClose?nl.utc(o.LadleClose).toDate():null}))),i},T3e=async(e,t,n)=>{try{const r=new Ye,i=[];return i.push({name:"ProcessId",value:e}),i.push({name:"Start",value:t===null?null:t.toISOString()}),i.push({name:"End",value:n===null?null:n.toISOString()}),i.push({name:"IsProcessManual",value:!0}),await r.callV2("[CAS].[UpsertProcess]",i)}catch(r){return{ok:!1,message:r.toString()}}},Mzt=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[CAS].[DeleteProcess]",n)}catch(r){return{ok:!1,message:r.toString()}}},UAi=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[CAS].[UnDeleteProcess]",n)}catch(r){return{ok:!1,message:r.toString()}}},E3e=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[CAS].[UnlinkProcessToHeat]",n)}catch(r){return{ok:!1,message:r.toString()}}},R3e=async(e,t)=>{const n=new Ye,r=[];r.push({name:"ProcessId",value:e}),r.push({name:"HeatId",value:t}),r.push({name:"IsHeatIdManual",value:!0});try{return await n.callV2("[CAS].[ManualLinkProcessToHeat]",r)}catch(i){return{ok:!1,message:i.toString()}}},aY=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"SearchText",value:e}),r.push({name:"LadleOpen",value:t}),await n.callV2("[CAS].[SearchUnlinkedHeats]",r)},Czt=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});const r=await t.callV2("[CAS].[DEGetProcess]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,LadleOpen:i.LadleOpen?nl.utc(i.LadleOpen).toDate():null,LadleClose:i.LadleClose?nl.utc(i.LadleClose).toDate():null,TapTime:i.TapTime?nl.utc(i.TapTime).toDate():null,TrimProbeTime:i.TrimProbeTime?nl.utc(i.TrimProbeTime).toDate():null})),r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,StartTime:i.StartTime?nl.utc(i.StartTime).toDate():null,EndTime:i.EndTime?nl.utc(i.EndTime).toDate():null})),r.data.tables[2].rows=r.data.tables[2].rows.map(i=>({...i,Timestamp:i.Timestamp?nl.utc(i.Timestamp).toDate():null}))),r},XAi=async()=>{const e=new Ye,t=[];return await e.callV2("[CAS].[GetLastestNProcesses]",t)},YAi=async e=>{const t=new Ye,n=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100}];return await t.callV2("[CAS].[SearchProcesses]",n)},KAi=async e=>{const t=new Ye,n=[];n.push({name:"HeatId",value:e});const r=await t.callV2("[LAB].[GetChemistrySampleByHeatId]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,Reception:i.Reception?nl.utc(i.Reception).toDate():null}))),r},xzt=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});const r=await t.callV2("[SWV].[GetStrandSpeedsByProcessId]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,Datetime:i.Datetime?nl.utc(i.Datetime).toDate():null}))),r},wzt=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});const r=await t.callV2("[SWV].[GetMoldLevelByProcessId]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,Datetime:i.Datetime?nl.utc(i.Datetime).toDate():null}))),r},Szt=async(e,t=0)=>{const n=new Ye,r=[];r.push({name:"ProcessId",value:e}),r.push({name:"OffsetMinutes",value:t});const i=await n.callV2("[SWV].[GetBilletTempByProcessId]",r);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,Datetime:o.Datetime?nl.utc(o.Datetime).toDate():null}))),i},b2e=async(e,t)=>{const n=new Ye,r=[];return(!nl.isDate(e)||isNaN(e.getTime()))&&(e=null),(!nl.isDate(t)||isNaN(t.getTime()))&&(t=null),r.push({name:"Start",value:e?e.toISOString():null}),r.push({name:"End",value:t?t.toISOString():null}),await n.callV2("[SWV].[GetGanttData]",r)},Azt=async e=>{const t=new Ye,n=[];return n.push({name:"DelayId",value:e}),await t.callV2("[DEL].[GetDelay]",n)},QAi=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});const r=await t.callV2("[SWV].[GetDeliveryTicket]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,CastDate:i.CastDate?nl.utc(i.CastDate).toDate():null,TapTime:i.TapTime?nl.utc(i.TapTime).toDate():null})),r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,Timestamp:i.Timestamp?nl.utc(i.Timestamp).toDate():null}))),r},ZAi=async e=>{const t=new Ye,n=[];return n.push({name:"ProcessId",value:e}),await t.callV2("[CAS].[ReadProductBatches]",n)},Ozt=async()=>{const e=new Ye,t=[];return await e.callV2("[CAS].[GetMoldSizes]",t)},JAi=async e=>{const t=new Ye,n=[];return n.push({name:"@ShiftId",value:e}),await t.callV2("[SWV].[GetFacts]",n)},y2e=async({productBatchId:e,processId:t,length:n,sectionId:r,pieces:i,weight:o,isManualSaved:a,lowWeightConfirmed:s=!1})=>{const l=new Ye,c=[];return e!==null&&e<0&&(e=null),t?(c.push({name:"ProductBatchId",value:e},{name:"ProcessId",value:t},{name:"Length",value:n},{name:"SectionId",value:r},{name:"Pieces",value:i},{name:"Weight",value:o},{name:"isManualSaved",value:a},{name:"LowWeightConfirmed",value:s}),await l.callV2("[CAS].[UpsertProductBatch]",c)):{ok:!1,message:"Process is required to product batch changes."}},zzt=async()=>await new Ye().callV2("[CAS].[DEGetCatalogs]",[]),h$=async(e,t,n)=>{const r=new Ye,i=[];i.push({name:"ProcessId",value:e}),i.push({name:t,value:n}),i.push({name:"IsProcessDataManual",value:!0});try{return await r.callV2("[CAS].[UpdateProcessData]",i)}catch(o){return{ok:!1,message:o.toString()}}},Tzt=async(e,t,n,r,i,o)=>{const a=new Ye,s=[];return s.push({name:"PourbackId",value:e}),s.push({name:"HeatId",value:t}),s.push({name:"SourceProcessId",value:n}),s.push({name:"PourbackWeight",value:r}),s.push({name:"PourbackReasonId",value:i}),s.push({name:"SourceTime",value:o.toISOString()}),await a.callV2("[MS].[UpsertPourback]",s)},eOi=async e=>{const t=new Ye,n=[];return n.push({name:"PourbackId",value:e}),await t.callV2("[MS].[DeletePourback]",n)},tOi=async(e,t,n)=>{const r=new Ye,i=[];i.push({name:"ProcessId",value:e}),i.push({name:t,value:n}),i.push({name:"IsTrimDataManual",value:!0});try{return await r.callV2("[CAS].[UpdateTrimData]",i)}catch(o){return{ok:!1,message:o.toString()}}},nOi=async(e,t,n,r)=>{const i=new Ye,o=[];return o.push({name:"ProcessId",value:e}),o.push({name:"Strand",value:t}),o.push({name:n,value:r}),o.push({name:"IsStrandDataManual",value:!0}),await i.callV2("[CAS].[UpdateStrandData]",o)},rOi=async(e,t,n)=>{const r=new Ye,i=[];return i.push({name:"ProcessId",value:e}),i.push({name:t,value:n}),i.push({name:"IsStrandDataManual",value:!0}),await r.callV2("[CAS].[UpdateStrandsData]",i)},iOi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"HeatId",value:e}),r.push({name:"Technician",value:t}),await n.callV2("[LAB].[UpdateLabTechnician]",r)},oOi=async e=>{const t=new Ye,n=[];return n.push({name:"ScrapId",value:e.ScrapId}),n.push({name:"ProcessId",value:e.ProcessId}),n.push({name:"Pieces",value:e.Pieces}),n.push({name:"Length",value:e.Length}),n.push({name:"ScrapReasonId",value:e.ScrapReasonId}),n.push({name:"Weight",value:e.Weight}),n.push({name:"Strand",value:e.Strand}),await t.callV2("[CAS].[UpsertScrapData]",n)},aOi=async e=>{const t=new Ye,n=[];return n.push({name:"ScrapId",value:e}),await t.callV2("[CAS].[DeleteScrapData]",n)},sOi=async({ProbeId:e,ProcessId:t,Temperature:n,Timestamp:r,Oxygen:i,IsProbeManual:o})=>{const a=new Ye,s=[];return s.push({name:"ProbeId",value:e}),s.push({name:"ProcessId",value:t}),s.push({name:"Temperature",value:n}),s.push({name:"Timestamp",value:r.toISOString()}),i&&s.push({name:"Oxygen",value:i}),o&&s.push({name:"IsProbeManual",value:o}),await a.callV2("[CAS].[UpsertProbe]",s)},lOi=async e=>{const t=new Ye,n=[];n.push({name:"ProbeId",value:e});try{return await t.callV2("[CAS].[DeleteProbe]",n)}catch(r){return{ok:!1,message:r.toString()}}},cOi=async(e,t,n)=>{const r=new Ye,i=[];i.push({name:"ProcessId",value:e}),i.push({name:"Strand",value:t}),i.push({name:"Force",value:n});try{return await r.callV2("[SWV].[ReadCASStrandDataFromPLC]",i)}catch(o){return{ok:!1,message:o.toString()}}},uOi=async e=>{const t=new Ye,n=[];return n.push({name:"ProcessId",value:e}),await t.callV2("[SWV].[ReadCASProbesFromPLC]",n)},dOi=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[CAS].[CalculateProcessData]",n)}catch(r){return{ok:!1,message:r.toString()}}},pOi=async(e,t)=>{const n=[];n.push({name:"@ShiftId",value:e}),n.push({name:"@GetDeleted",value:t});const i=await new Ye().callV2("[CAS].[GetCountersByShift]",n);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,LadleOpen:o.LadleOpen?nl.utc(o.LadleOpen).toDate():null}))),i},hOi=async({processId:e})=>await new Ye().callV2("[SWV].[ReadCASTrimDataFromPLC]",[{name:"ProcessId",value:e}]),fOi=async({fromDate:e,toDate:t,shift:n,crew:r})=>{const i=Sn(),o=new Ye,a=[];a.push({name:"@FromDate",value:e.toISOString()}),a.push({name:"@ToDate",value:t.toISOString()}),a.push({name:"@Shift",value:n||null}),a.push({name:"@Crew",value:r||null});const s=await o.callV2("[CAS].[GetFailedStartup]",a);return s.ok&&(s.data.tables[0].rows=s.data.tables[0].rows.map(l=>({...l,LastEnd:i.utc(l.LastEnd).toDate(),Start:i.utc(l.Start).toDate(),End:i.utc(l.End).toDate(),NextStart:i.utc(l.NextStart).toDate()}))),s},gOi=async()=>await new Ye().callV2("[CAS].[GetCatalogLostStrandTypes]",[]),mOi=async e=>await new Ye().callV2("[CAS].[UpsertLostStrandType]",[{name:"LostStrandTypeId",value:e.LostStrandTypeId},{name:"Description",value:e.Description},{name:"IsActive",value:e.IsActive}]),vOi=async()=>await new Ye().callV2("[CAS].[GetLostStrandTypes]",[]),bOi=async({LostStrandId:e,ProcessId:t,StrandId:n,LostStrandTypeId:r,Comment:i,Timestamp:o,Author:a})=>{const s=new Ye,l=[];return l.push({name:"LostStrandId",value:e}),l.push({name:"ProcessId",value:t}),l.push({name:"StrandId",value:n}),l.push({name:"LostStrandTypeId",value:r}),l.push({name:"Comment",value:i}),l.push({name:"Timestamp",value:o?o.toISOString():null}),await s.callV2("[CAS].[UpsertLostStrand]",l)},yOi=async e=>await new Ye().callV2("[CAS].[DeleteLostStrand]",[{name:"LostStrandId",value:e}]),MOi=async e=>await new Ye().callV2("[CAS].[DeleteLostStrandType]",[{name:"LostStrandTypeId",value:e}]),COi=async e=>await new Ye().callV2("[SWV].[TrackCASStrandEventsJob]",[{name:"ProcessId",value:e}]),xOi=async e=>{const t=new Ye,n=[{name:"OffsetTimeInMinutes",value:e}],r=await t.callV2("[CAS].[GetProcessesWithoutDeliveryTicket]",n);return r.ok&&r.data.tables[0]&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,LadleClose:i.LadleClose?nl.utc(i.LadleClose).toDate():null}))),r},wOi={lostStrandTypes:null},sY=ki({name:"__",initialState:wOi,reducers:{setLostStrandTypes(e,{payload:t}){e.lostStrandTypes=t}}}),Ezt=v.createContext({state:sY.getInitialState(),actions:sY.actions}),I3e=()=>v.useContext(Ezt),SOi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:sY.getInitialState(),reducers:sY.caseReducers});return f.jsx(Ezt.Provider,{value:{state:t,actions:n},children:e})},il=({title:e,message:t,open:n,onClose:r,...i})=>{const o=()=>{r("Cancel")},a=()=>{r("OK")};return f.jsxs(Qu,{maxWidth:"xs",open:n,...i,children:[f.jsx(T0,{children:e}),f.jsx(ru,{dividers:!0,children:f.jsx(mM,{children:t})}),f.jsxs(Ed,{children:[f.jsx(Ne,{variant:"contained",size:"small",autoFocus:!0,onClick:o,children:"Cancel"}),f.jsx(Ne,{variant:"contained",size:"small",color:"primary",onClick:a,children:"Ok"})]})]})},AOi=({show:e,onHide:t,lostStrandType:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(!1),[p,h]=v.useState(""),{register:g,control:m,handleSubmit:b,reset:y,formState:{errors:M}}=jn({defaultValues:{LostStrandTypeId:0,Description:"",IsActive:!0}}),C=v.useMemo(()=>{if(e==="edit")return"EDIT LOST STRAND TYPE";if(e==="delete")return"DELETE LOST STRAND TYPE";if(e==="create")return"NEW LOST STRAND TYPE"},[e]),x=(A,z)=>{z!=="clickaway"&&s(!1)},w=async A=>{if(A!=="OK"){d(!1);return}d(!1),o(!0);const z=await MOi(n?.LostStrandTypeId||0);z.ok?(h("The element was deleted successfully"),s(!0),t()):c(z.message),o(!1)},S=async A=>{if(o(!0),e==="delete")d(!0);else{const z=await mOi(A);z.ok?(o(!1),h(e==="edit"?"The element was updated successfully":"The element was created successfully"),s(!0),t()):c(z.message)}o(!1)};return v.useEffect(()=>{(e==="edit"||e==="create")&&(n?y(n):e==="create"&&y({LostStrandTypeId:0,Description:"",IsActive:!0}))},[e,n,y]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:!!e,handleClose:t,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:C,children:f.jsxs("form",{onSubmit:b(S),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...g("Description",{required:!0}),label:"Description",variant:"outlined",error:!!M.Description,fullWidth:!0,margin:"dense",autoComplete:"off",disabled:e==="delete"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:m,render:({field:A})=>f.jsx(Ra,{checkboxValue:!!A.value,onCheckboxChange:A.onChange,label:"Enabled",className:r.checkbox,disabled:e==="delete"})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:e==="delete"?"secondary":"primary",type:"submit",children:e==="delete"?"Delete":"Save"})})]})})]})}),f.jsx(il,{title:"Confirmation",message:`Are you sure you want to delete permanently the lost strand type: ${n?.Description}?`,open:u,onClose:w}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:x,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:x,children:p})}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},TM=({deleteItem:e,edit:t,id:n})=>f.jsx(f.Fragment,{children:f.jsxs(Iz,{children:[f.jsx(bn,{color:"primary",onClick:()=>{t(n)},title:"Edit",children:f.jsx(Fo,{style:{cursor:"pointer"},fontSize:"small"})}),e&&f.jsx(bn,{color:"secondary",onClick:()=>{e(n)},title:"Delete",children:f.jsx(Mo,{style:{cursor:"pointer"},fontSize:"small"})})]})}),OOi=({onDeleteButtonClick:e,onEditButtonClick:t})=>{const{state:n}=I3e();return{rows:n.lostStrandTypes?.map(o=>({...o}))||[],columns:[{field:"Description",headerName:"Description",minWidth:63,flex:4,wrapText:!0,autoHeight:!0},{field:"IsActive",headerName:"Enabled",cellRenderer:o=>f.jsx(Qr,{checked:o.value,disabled:!0}),flex:4,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:TM,cellRendererParams:o=>({deleteItem:e,edit:t,id:o.data.LostStrandTypeId}),flex:1,minWidth:50}]}},zOi=({getLostStrandTypesFromAPI:e,isLoading:t})=>{const{state:{lostStrandTypes:n}}=I3e(),r=Pd(),[i,o]=v.useState(null),[a,s]=v.useState(null),[l,c]=v.useState(""),{rows:u,columns:d}=OOi({onDeleteButtonClick:p=>{o("delete");const h=n?.find(g=>g.LostStrandTypeId===p);h&&s(h)},onEditButtonClick:p=>{o("edit");const h=n?.find(g=>g.LostStrandTypeId===p);h&&s(h)}});return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Lost Strand Types"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:p=>c(p),label:"Search lost strand types"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:r.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:u||[],columnDefs:d,getRowId:p=>p.data.LostStrandTypeId,suppressContextMenu:!0,onRowDoubleClicked:p=>{s(p.data),o("edit")},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>{s(null),o("create")},children:"NEW LOST STRAND TYPE"})})]})]}),f.jsx(AOi,{show:i,onHide:()=>{o(null),s(null),e()},lostStrandType:a})]})},TOi=e=>{const{state:t,actions:n}=I3e(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await gOi();l.ok?(n.setLostStrandTypes(l.data.tables[0].rows),i(!1)):a(l.message)};return v.useEffect(()=>{s()},[]),t.lostStrandTypes?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(zOi,{isLoading:r,getLostStrandTypesFromAPI:s})})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},EOi=()=>f.jsx(SOi,{children:f.jsx(TOi,{})}),ROi=async()=>await new Ye().callV2("[CAS].[GetCatalogLowTonnageReasons]",[]),IOi=async e=>await new Ye().callV2("[CAS].[UpsertLowTonnageReason]",[{name:"LowTonnageReasonId",value:e.LowTonnageReasonId||null},{name:"LowTonnageReasonName",value:e.LowTonnageReasonName},{name:"IsActive",value:e.IsActive}]),POi=async e=>await new Ye().callV2("[CAS].[DeleteLowTonnageReason]",[{name:"LowTonnageReasonId",value:e}]),DOi=({open:e,mode:t,lowTonnageReason:n,onClose:r,onSuccess:i})=>{const o=iu(),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(!1),[g,m]=v.useState(""),{register:b,control:y,handleSubmit:M,reset:C,formState:{errors:x}}=jn({defaultValues:{LowTonnageReasonId:0,LowTonnageReasonName:"",IsActive:!0}}),w=v.useMemo(()=>{if(t==="edit")return"EDIT LOW TONNAGE REASON";if(t==="delete")return"DELETE LOW TONNAGE REASON";if(t==="create")return"NEW LOW TONNAGE REASON"},[t]),S=(O,T)=>{T!=="clickaway"&&c(!1)},A=async O=>{if(O!=="OK"){h(!1);return}h(!1),s(!0);const T=await POi(n?.LowTonnageReasonId||0);T.ok?(m("The low tonnage reason was deleted successfully"),c(!0),i(),r()):d(T.message),s(!1)},z=async O=>{if(s(!0),t==="delete")h(!0);else{const T=await IOi(O);T.ok?(m(t==="edit"?"The low tonnage reason was updated successfully":"The low tonnage reason was created successfully"),c(!0),i(),r()):d(T.message)}s(!1)};return v.useEffect(()=>{(t==="edit"||t==="create"||t==="delete")&&(n?C(n):t==="create"&&C({LowTonnageReasonId:0,LowTonnageReasonName:"",IsActive:!0}))},[t,n,C]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:r,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:w,children:f.jsxs("form",{onSubmit:M(z),children:[f.jsx(We.Content,{dividers:!0,className:o.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...b("LowTonnageReasonName",{required:!0,maxLength:100}),label:"Low Tonnage Reason Name",variant:"outlined",error:!!x.LowTonnageReasonName,helperText:x.LowTonnageReasonName?.type==="maxLength"?"Maximum length is 100 characters":"",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:t==="delete"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:y,render:({field:O})=>f.jsx(Ra,{checkboxValue:!!O.value,onCheckboxChange:O.onChange,label:"Enabled",className:o.checkbox,disabled:t==="delete"})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:r,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:t==="delete"?"secondary":"primary",type:"submit",children:t==="delete"?"Delete":"Save"})})]})})]})}),f.jsx(il,{title:"Confirmation",message:`Are you sure you want to delete permanently the low tonnage reason: ${n?.LowTonnageReasonName}?`,open:p,onClose:A}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:g})}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},kOi=({onDeleteButtonClick:e,onEditButtonClick:t})=>({columns:[{field:"LowTonnageReasonName",headerName:"Low Tonnage Reason Name",minWidth:63,flex:4,wrapText:!0,autoHeight:!0},{field:"IsActive",headerName:"Enabled",cellRenderer:r=>f.jsx(Qr,{checked:r.value,disabled:!0}),flex:4,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:TM,cellRendererParams:r=>({deleteItem:e,edit:t,id:r.data.LowTonnageReasonId}),flex:1,minWidth:50}]}),LOi=({lowTonnageReasons:e,isLoading:t,onRefresh:n})=>{const r=Pd(),[i,o]=v.useState(""),a=v.useRef(null),[s,l]=v.useState(null),[c,u]=v.useState(null),d=()=>{u(null),l("create")},p=y=>{const M=e.find(C=>C.LowTonnageReasonId===y);M&&(u(M),l("edit"))},h=y=>{const M=e.find(C=>C.LowTonnageReasonId===y);M&&(u(M),l("delete"))},g=()=>{l(null),u(null)},m=()=>{n(),g()},{columns:b}=kOi({onDeleteButtonClick:h,onEditButtonClick:p});return E.useEffect(()=>{a.current&&(t?a.current.api?.showLoadingOverlay():a.current.api?.hideOverlay())},[t]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Low Tonnage Reasons"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:i,onChange:y=>o(y),label:"Search low tonnage reasons"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:r.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{ref:a,rowData:e,columnDefs:b,getRowId:y=>y.data.LowTonnageReasonId,suppressContextMenu:!0,onRowDoubleClicked:y=>{p(y.data.LowTonnageReasonId)},rowSelection:"single",quickFilterText:i})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:d,children:"NEW LOW TONNAGE REASON"})})]})]}),s&&f.jsx(DOi,{open:s!==null,mode:s,lowTonnageReason:c,onClose:g,onSuccess:m})]})},_Oi=()=>{const[e,t]=v.useState([]),[n,r]=v.useState(!0),[i,o]=v.useState(""),a=async()=>{r(!0);const l=await ROi();l.ok?t(l.data.tables[0].rows):o(l.message),r(!1)};v.useEffect(()=>{a()},[]);const s=()=>{a()};return e?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(LOi,{lowTonnageReasons:e,isLoading:n,onRefresh:s})})})}),f.jsx(yt,{error:i,onHide:()=>o("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},NOi={moldSizes:null},lY=ki({name:"__",initialState:NOi,reducers:{setMoldSizes(e,{payload:t}){e.moldSizes=t}}}),Rzt=v.createContext({state:lY.getInitialState(),actions:lY.actions}),EM=()=>v.useContext(Rzt),Izt=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:lY.getInitialState(),reducers:lY.caseReducers});return f.jsx(Rzt.Provider,{value:{state:t,actions:n},children:e})},P3e=async()=>await new Ye().callV2("[CAS].[GetMoldSizes]",[]),Pzt=async e=>{const t=new Ye,n=[{name:"MoldSizeId",value:e.MoldSizeId},{name:"MoldSizeName",value:e.MoldSizeName},{name:"MinSpeedLimit",value:e.MinSpeedLimit},{name:"LbsPerFoot",value:e.LbsPerFoot},{name:"Section",value:e.Section}];return await t.callV2("[CAS].[UpsertMoldSize]",n)},FOi=async e=>{const t=new Ye,n=[{name:"MoldSizeId",value:e}];return await t.callV2("[CAS].[DeleteMoldSize]",n)},Dzt=async e=>{const t=new Ye,n=[{name:"MoldSizeId",value:e}];return await t.callV2("[CAS].[GetMoldSize]",n)},WOi=({rows:e,selectedRowId:t,setSelectedRowId:n,showContextMenu:r})=>({getContextMenuItems:E.useCallback(o=>{const a=o.node?.data;if(r(event,a,"moldSizeContext"),t){const s=document.querySelector(`.ag-row[row-id="${t}"]`);s&&s.classList.remove("custom-selected")}if(o&&o.node&&o.node.id){n(o.node.id);const s=document.querySelector(`.ag-row[row-id="${o.node.id}"]`);s&&s.classList.add("custom-selected")}return[]},[e])}),qOi=({setMoldSizeId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return a=a.concat([{name:"New Mold Size",key:"new_mold_size",onClick:()=>{r(!0)},icon:f.jsx(Jo,{})}]),o&&(a=a.concat([{name:"Edit Mold Size",key:"edit_mold_size",onClick:()=>{e(o.MoldSizeId),t(!0)},icon:f.jsx(Fo,{})},{name:"Delete Mold Size",key:"delete_mold_size",onClick:()=>{e(o.MoldSizeId),n(!0)},icon:f.jsx(Mo,{})}])),a}}),BOi=Et(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),kzt=({setId:e,id:t,setShowEditModal:n,setShowDeleteModal:r,showContextMenu:i})=>{const o=BOi();return f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(Ne,{onClick:()=>{(async()=>(e(t),n(!0)))()},title:"Edit",children:f.jsx(Fo,{style:{height:"auto"},color:"primary"})}),f.jsx(Ne,{onClick:()=>{(async()=>(e(t),r(!0)))()},title:"Delete",children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Ne,{style:{},onClick:i,title:"Options",children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})})},jOi=({setMoldSizeId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=EM();return{rows:i.moldSizes?.map(l=>({...l}))||[],columnDefs:[{field:"MoldSizeName",headerName:"Name",minWidth:20,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"MinSpeedLimit",headerName:"Min Speed",minWidth:20,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"LbsPerFoot",headerName:"Lbs Per Foot",minWidth:20,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"Section",headerName:"Section",minWidth:20,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{cellStyle:{display:"flex",justifyContent:"flex-end"},cellRenderer:kzt,cellRendererParams:l=>({setId:e,id:l.data.MoldSizeId,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:()=>r(event,l.data,"moldSizeContext")}),flex:1,minWidth:330}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},l2=({isSubmitLoading:e,onHide:t,buttonColor:n="primary",buttonLabel:r="Save",className:i})=>f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),className:i,size:"small",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:e&&f.jsx(Kt,{size:"1rem"}),disabled:e,variant:"contained",color:n,type:"submit",className:i,size:"small",children:r})})]}),Mte=({label:e,show:t,onHide:n,existingName:r})=>f.jsx(f.Fragment,{children:f.jsxs(We,{title:"CONFIRM",open:t,id:"confirm-modal",handleClose:()=>n(!1),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx("p",{children:`A ${e} with the name '${r}' already exists. Do you want to proceed?`})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"No"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,onClick:()=>n(!0),variant:"contained",color:"primary",type:"submit",children:"Yes"})})]})})]})}),D3e={MoldSizeId:null,MoldSizeName:"",MinSpeedLimit:0,LbsPerFoot:0,Section:0,Enabled:!0},c2=Et(e=>Mp({checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},noPrint:{"@media print":{display:"none !important"}},modalContent:{"@media print":{width:"100%"},overflowY:"auto"},pageBreakAvoid:{"@media print":{pageBreakInside:"avoid",pageBreakAfter:"auto"}},addButton:{minWidth:"35px",maxWidth:"35px",maxHeight:"35px",minHeight:"35px",fontSize:"1.5rem",margin:"8px"},textFieldMUI:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"1px solid #ced4da",fontSize:"20px",width:"100%",padding:"25px 5px",transition:e.transitions.create(["border-color","box-shadow"]),fontFamily:e.typography.fontFamily}})),Lzt=e=>/^[a-zA-Z0-9 _-]*$/.test(e)||"No special characters",HOi=({show:e,onHide:t})=>{const{state:n}=EM(),r=c2(),[i,o]=v.useState(!1),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(!1),[p,h]=v.useState(""),{register:g,getValues:m,handleSubmit:b,reset:y,formState:{errors:M}}=jn({defaultValues:D3e}),C=(A,z)=>{z!=="clickaway"&&c(!1)},x=async A=>{o(!0),(n.moldSizes||[]).some(O=>O.MoldSizeName===A.MoldSizeName)?(h(A.MoldSizeName),d(!0)):await w(A)},w=async A=>{const z=await Pzt(A);z.ok?(t(!0),c(!0)):(s(z.message),t(!1)),o(!1)},S=async A=>{d(!1),A&&await w(m())};return v.useEffect(()=>{e&&(y(),d(!1))},[e]),f.jsxs(f.Fragment,{children:[f.jsx(Mte,{show:u,onHide:S,existingName:p,label:"Mold Size"}),f.jsx(We,{title:"NEW MOLD SIZE",open:e,handleClose:()=>t(!1),id:"create-mold-size-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:b(x),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,md:12,children:[f.jsx(je,{...g("MoldSizeName",{required:"Name is required",validate:Lzt}),label:"Name",variant:"outlined",error:!!M.MoldSizeName,fullWidth:!0,margin:"dense",autoComplete:"off"}),M.MoldSizeName&&f.jsx("span",{className:r.errorLabel,children:M.MoldSizeName.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...g("MinSpeedLimit"),label:"Min Speed",variant:"outlined",error:!!M.MinSpeedLimit,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",onFocus:A=>A.target.select(),inputProps:{min:0}}),M.MinSpeedLimit&&f.jsx("span",{className:r.errorLabel,children:M.MinSpeedLimit.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...g("LbsPerFoot"),label:"Lbs Per Foot",variant:"outlined",error:!!M.LbsPerFoot,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",onFocus:A=>A.target.select(),inputProps:{min:0}}),M.LbsPerFoot&&f.jsx("span",{className:r.errorLabel,children:M.LbsPerFoot.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...g("Section"),label:"Section",variant:"outlined",error:!!M.Section,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",onFocus:A=>A.target.select(),inputProps:{min:0}}),M.Section&&f.jsx("span",{className:r.errorLabel,children:M.Section.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:i,onHide:t})})]})}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:C,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:C,children:"The mold size was created successfully"})}),f.jsx(yt,{error:a,onHide:()=>s(""),title:"Error Creating Mold Size"})]})},VOi=({moldSizeId:e,show:t,onHide:n})=>{const{state:r}=EM(),i=c2(),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(""),[h,g]=v.useState(!1),[m,b]=v.useState(""),{register:y,getValues:M,setValue:C,handleSubmit:x,formState:{errors:w}}=jn({defaultValues:D3e}),S=(T,R)=>{R!=="clickaway"&&a(!1)},A=async T=>{u(!0),(r.moldSizes||[]).some(P=>P.MoldSizeName===T.MoldSizeName&&P.MoldSizeId!==e)?(b(T.MoldSizeName),g(!0)):await z(T)},z=async T=>{const R=await Pzt(T);R.ok?(a(!0),n(!0)):(p(R.message),n(!1)),u(!1)},O=async T=>{g(!1),T&&await z(M())};return v.useEffect(()=>{t&&(u(!1),(async()=>{l(!0);const T=await Dzt(e);if(T.ok){const R=T.data.tables[0].rows[0];R&&(C("MoldSizeId",R.MoldSizeId),C("MoldSizeName",R.MoldSizeName),C("MinSpeedLimit",R.MinSpeedLimit),C("LbsPerFoot",R.LbsPerFoot),C("Section",R.Section),C("Enabled",R.IsActive),l(!1))}else p(T.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(Mte,{show:h,onHide:O,existingName:m,label:"Mold Size"}),f.jsx(We,{title:"EDIT MOLD SIZE",open:t,handleClose:()=>n(!1),maxWidth:"sm",id:"edit-mold-size-modal",children:f.jsxs("form",{onSubmit:x(A),children:[f.jsxs(We.Content,{className:i.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[s&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"200px"},children:f.jsx(Kt,{})}),!s&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsx(je,{...y("MoldSizeName",{required:"Name is required",validate:Lzt}),label:"Name",variant:"outlined",error:!!w.MoldSizeName,fullWidth:!0,margin:"dense",autoComplete:"off"}),w.MoldSizeName&&f.jsx("span",{className:i.errorLabel,children:w.MoldSizeName.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...y("MinSpeedLimit"),label:"Min Speed",variant:"outlined",error:!!w.MinSpeedLimit,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",onFocus:T=>T.target.select(),inputProps:{min:0}}),w.MinSpeedLimit&&f.jsx("span",{className:i.errorLabel,children:w.MinSpeedLimit.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...y("LbsPerFoot"),label:"Lbs Per Foot",variant:"outlined",error:!!w.LbsPerFoot,type:"number",fullWidth:!0,margin:"dense",onFocus:T=>T.target.select(),autoComplete:"off",inputProps:{min:0}}),w.LbsPerFoot&&f.jsx("span",{className:i.errorLabel,children:w.LbsPerFoot.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...y("Section"),label:"Section",variant:"outlined",error:!!w.Section,type:"number",fullWidth:!0,margin:"dense",onFocus:T=>T.target.select(),autoComplete:"off",inputProps:{min:0}}),w.Section&&f.jsx("span",{className:i.errorLabel,children:w.Section.message})]})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:c,onHide:n})})]})}),f.jsx(pr,{open:o,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:"The mold size was edited successfully"})}),f.jsx(yt,{error:d,onHide:()=>p(""),title:"Error Editing Mold Size"})]})},GOi=({moldSizeId:e,show:t,onHide:n})=>{const r=c2(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(),{register:g,setValue:m,handleSubmit:b,formState:{errors:y}}=jn({defaultValues:D3e}),M=(x,w)=>{w!=="clickaway"&&o(!1)},C=async()=>{c(!0);const x=await FOi(e);x.ok?(n(!0),o(!0),c(!1)):(d(x.message),c(!1))};return v.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const x=await Dzt(e);if(x.ok){const w=x.data.tables[0].rows[0];w&&(m("MoldSizeId",w.MoldSizeId),m("MoldSizeName",w.MoldSizeName),m("MinSpeedLimit",w.MinSpeedLimit),m("LbsPerFoot",w.LbsPerFoot),m("Section",w.Section),m("Enabled",w.IsActive),s(!1))}else{d(x.message);return}})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"DELETE MOLD SIZE",open:t,handleClose:()=>n(!1),id:"delete-mold-size-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:b(C),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"200px"},children:f.jsx(Kt,{})}),!a&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...g("MoldSizeName"),label:"Name",variant:"outlined",error:!!y.MoldSizeName,fullWidth:!0,value:p?.MoldSizeName,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(je,{...g("MinSpeedLimit"),label:"Min Speed",variant:"outlined",error:!!y.MinSpeedLimit,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(je,{...g("LbsPerFoot"),label:"Lbs Per Foot",variant:"outlined",error:!!y.LbsPerFoot,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(je,{...g("Section"),label:"Section",variant:"outlined",error:!!y.Section,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:!0})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:l,onHide:n,buttonColor:"secondary",buttonLabel:"Delete"})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:M,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:M,children:"The mold size was deleted successfully"})}),f.jsx(yt,{error:u,onHide:()=>d(""),title:"Error Deleting Mold Size"})]})},$Oi=({getCatalogMoldSizesFromAPI:e,isLoading:t})=>{const n=Pd(),[r,i]=v.useState(""),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(null),[h,g]=v.useState(null),[m,b]=v.useState(""),{getMenuOptions:y}=qOi({setMoldSizeId:p,setShowEditModal:l,setShowDeleteModal:u,setShowCreateModal:a}),{showContextMenu:M,registerConfig:C}=ws(),{rows:x,columnDefs:w}=jOi({setMoldSizeId:p,setShowEditModal:l,setShowDeleteModal:u,showContextMenu:M}),{columnDefaults:S}=ku({OnEdit:O=>{l(!s),p(O.MoldSizeId)}}),{getContextMenuItems:A}=WOi({rows:x,selectedRowId:r,setSelectedRowId:i,showContextMenu:M});S.floatingFilter=!1;const z=O=>{p(O.data.MoldSizeId),l(!0)};return v.useEffect(()=>{t?h?.showLoadingOverlay():h?.hideOverlay()},[t,x,h]),v.useEffect(()=>{C({id:"moldSizeContext",getOptions:y})},[]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Mold Sizes"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:m,onChange:O=>b(O),label:"Search mold sizes"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:n.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:x||[],columnDefs:w,getContextMenuItems:A,onRowDoubleClicked:z,getRowId:O=>String(O.data.MoldSizeId),onGridReady:O=>g(O.api),enableCellTextSelection:!0,suppressContextMenu:!1,allowContextMenuWithControlKey:!1,rowSelection:"single",quickFilterText:m})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>a(!o),children:"NEW MOLD SIZE"})})]})]}),f.jsx(HOi,{show:o,onHide:O=>{a(!1),setTimeout(()=>{h&&O&&(h.paginationGoToLastPage(),e())},100)}}),f.jsx(VOi,{show:s,onHide:O=>{l(!1),p(null),O&&e()},moldSizeId:d}),f.jsx(GOi,{show:c,onHide:O=>{u(!1),p(null),O&&e()},moldSizeId:d})]})},UOi=e=>{const{state:t,actions:n}=EM(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await P3e();l.ok?n.setMoldSizes(l.data.tables[0].rows):a(l.message),i(!1)};return v.useEffect(()=>{s()},[]),t.moldSizes?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx($Oi,{isLoading:r,getCatalogMoldSizesFromAPI:s})})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},XOi=e=>f.jsx(Izt,{children:f.jsx(UOi,{})}),YOi={molds:null},cY=ki({name:"__",initialState:YOi,reducers:{setMolds(e,{payload:t}){e.molds=t}}}),_zt=v.createContext({state:cY.getInitialState(),actions:cY.actions}),Cte=()=>v.useContext(_zt),KOi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:cY.getInitialState(),reducers:cY.caseReducers});return f.jsx(_zt.Provider,{value:{state:t,actions:n},children:e})},QOi=async()=>await new Ye().callV2("[CAS].[GetMolds]",[]),Nzt=async e=>{const t=new Ye,n=[{name:"MoldId",value:e.MoldId},{name:"MoldName",value:e.MoldName},{name:"MoldSizeId",value:e.MoldSizeId}];return await t.callV2("[CAS].[UpsertMold]",n)},ZOi=async e=>{const t=new Ye,n=[{name:"MoldId",value:e}];return await t.callV2("[CAS].[DeleteMold]",n)},Fzt=async e=>{const t=new Ye,n=[{name:"MoldId",value:e}];return await t.callV2("[CAS].[GetMold]",n)},JOi=({rows:e,selectedRowId:t,setSelectedRowId:n,showContextMenu:r})=>E.useCallback(o=>{const a=o.node?.data;if(r(event,a,"moldContext"),t){const s=document.querySelector(`.ag-row[row-id="${t}"]`);s&&s.classList.remove("custom-selected")}if(o&&o.node&&o.node.id){n(o.node.id);const s=document.querySelector(`.ag-row[row-id="${o.node.id}"]`);s&&s.classList.add("custom-selected")}return[]},[e]),ezi=({setMoldId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return a=a.concat([{name:"New Mold",key:"new_mold",onClick:()=>{r(!0)},icon:f.jsx(Jo,{})}]),o&&(a=a.concat([{name:"Edit Mold",key:"edit_mold",onClick:()=>{e(o.MoldId),t(!0)},icon:f.jsx(Fo,{})},{name:"Delete Mold",key:"delete_mold",onClick:()=>{e(o.MoldId),n(!0)},icon:f.jsx(Mo,{})}])),a}}),tzi=({setMoldId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=Cte(),{state:{moldSizes:o}}=EM();return{rows:i.molds?.map(l=>({...l,MoldSize:o?.find(c=>c.MoldSizeId===l.MoldSizeId)?.MoldSizeName}))||[],columnDefs:[{field:"MoldName",headerName:"Name",minWidth:20,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"MoldSize",headerName:"Mold Size",minWidth:20,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{cellRenderer:kzt,cellRendererParams:l=>({setId:e,id:l.data.MoldId,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:()=>r(event,l.data,"moldContext")}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,minWidth:330,maxWidth:200,filter:!1,autoHeaderHeight:!0,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}}]}},k3e={MoldId:null,MoldName:"",MoldSizeId:null,Enabled:!0},nzi=({show:e,onHide:t})=>{const{state:n}=Cte();c2();const[r,i]=v.useState(!1),[o,a]=v.useState(""),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(""),{state:{moldSizes:h}}=EM(),{control:g,getValues:m,handleSubmit:b,reset:y}=jn({defaultValues:k3e}),M=(S,A)=>{A!=="clickaway"&&l(!1)},C=async S=>{i(!0),(n.molds||[]).some(z=>z.MoldName===S.MoldName)?(p(S.MoldName),u(!0)):await x(S)},x=async S=>{const A=await Nzt(S);A.ok?(t(!0),l(!0)):(a(A.message),t(!1)),i(!1)},w=async S=>{u(!1),S&&await x(m())};return v.useEffect(()=>{e&&(y(),u(!1))},[e]),f.jsxs(f.Fragment,{children:[f.jsx(Mte,{show:c,onHide:w,existingName:d,label:"Mold"}),f.jsx(We,{title:"NEW MOLD",open:e,handleClose:()=>t(!1),id:"create-mold-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:b(C),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"MoldName",control:g,rules:{required:"Name is required"},render:({field:S,fieldState:{error:A}})=>f.jsx(je,{...S,label:"Name",variant:"outlined",error:!!A,helperText:A?A.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"MoldSizeId",control:g,rules:{required:"Mold Size is required"},render:({field:{onChange:S,value:A,...z},fieldState:{error:O}})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:h??[],getOptionLabel:T=>T.MoldSizeName,onChange:(T,R)=>{S(R?R.MoldSizeId:null)},renderInput:T=>f.jsx(f.Fragment,{children:f.jsx(je,{...T,label:"Mold Size",variant:"outlined",error:!!O,helperText:O?O.message:null,size:"small",fullWidth:!0})}),value:h?.find(T=>T.MoldSizeId===A)||null})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:r,onHide:t})})]})}),f.jsx(pr,{open:s,autoHideDuration:2500,onClose:M,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:M,children:"The mold was created successfully"})}),f.jsx(yt,{error:o,onHide:()=>a(""),title:"Error Creating Mold"})]})},Cn=()=>f.jsx("div",{children:"Loading Please Wait.."}),Op=e=>f.jsx(I6,{open:e.open,style:{color:"#fff",zIndex:1e5},children:f.jsx(Kt,{color:"inherit"})}),rzi=({moldId:e,show:t,onHide:n})=>{const{state:r}=Cte(),i=c2(),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(""),[h,g]=v.useState(!1),[m,b]=v.useState(""),{state:{moldSizes:y}}=EM(),{control:M,getValues:C,setValue:x,handleSubmit:w}=jn({defaultValues:k3e}),S=(T,R)=>{R!=="clickaway"&&a(!1)},A=async T=>{u(!0),(r.molds||[]).some(P=>P.MoldName===T.MoldName&&P.MoldId!==e)?(b(T.MoldName),g(!0)):await z(T)},z=async T=>{const R=await Nzt(T);R.ok?(a(!0),n(!0)):(p(R.message),n(!1)),u(!1)},O=async T=>{g(!1),T&&await z(C())};return v.useEffect(()=>{t&&(u(!1),(async()=>{l(!0);const T=await Fzt(e);if(T.ok){const R=T.data.tables[0].rows[0];R&&(x("MoldId",R.MoldId),x("MoldName",R.MoldName),x("MoldSizeId",R.MoldSizeId),x("Enabled",R.IsActive))}else{p(T.message);return}l(!1)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(Mte,{show:h,onHide:O,existingName:m,label:"Mold"}),f.jsx(We,{title:"EDIT MOLD",open:t,handleClose:()=>n(!1),maxWidth:"sm",id:"edit-mold-modal",children:f.jsxs("form",{onSubmit:w(A),children:[f.jsxs(We.Content,{className:i.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[s&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!s&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"MoldName",control:M,rules:{required:"Name is required"},render:({field:T,fieldState:{error:R}})=>f.jsx(je,{...T,label:"Name",variant:"outlined",error:!!R,helperText:R?R.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"MoldSizeId",control:M,rules:{required:"Mold Size is required"},render:({field:{onChange:T,value:R,...P},fieldState:{error:F}})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:y??[],getOptionLabel:N=>N.MoldSizeName,onChange:(N,L)=>{T(L?L.MoldSizeId:null)},renderInput:N=>f.jsx(f.Fragment,{children:f.jsx(je,{...N,label:"Mold Size",variant:"outlined",error:!!F,helperText:F?F.message:null,size:"small",fullWidth:!0})}),value:y?.find(N=>N.MoldSizeId===R)||null})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:c,onHide:n})})]})}),f.jsx(pr,{open:o,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:"The mold was edited successfully"})}),f.jsx(yt,{error:d,onHide:()=>p(""),title:"Error Editing Mold"})]})},izi=({moldId:e,show:t,onHide:n})=>{const r=c2(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),{state:{moldSizes:p}}=EM(),{control:h,setValue:g,handleSubmit:m}=jn({defaultValues:k3e}),b=(M,C)=>{C!=="clickaway"&&o(!1)},y=async()=>{c(!0);const M=await ZOi(e);M.ok?(n(!0),o(!0),c(!1)):(d(M.message),c(!1))};return v.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const M=await Fzt(e);if(M.ok){const C=M.data.tables[0].rows[0];C&&(g("MoldId",C.MoldId),g("MoldName",C.MoldName),g("MoldSizeId",C.MoldSizeId))}else{d(M.message);return}s(!1)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"DELETE MOLD",open:t,handleClose:()=>n(!1),id:"delete-mold-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:m(y),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"MoldName",control:h,rules:{required:"Name is required"},render:({field:M})=>f.jsx(je,{...M,label:"Name",variant:"outlined",error:!!u,value:M.value,fullWidth:!0,margin:"dense",autoComplete:"off",disabled:!0})})}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"MoldSizeId",control:h,rules:{required:"Mold Size is required"},render:({field:{onChange:M,value:C,...x}})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,disabled:!0,options:p??[],getOptionLabel:w=>w.MoldSizeName,onChange:(w,S)=>{M(S?S.MoldSizeId:null)},renderInput:w=>f.jsx(f.Fragment,{children:f.jsx(je,{...w,label:"Mold Size",variant:"outlined",error:!!u,value:C,size:"small",fullWidth:!0})}),value:p?.find(w=>w.MoldSizeId===C)||null})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:l,onHide:n,buttonColor:"secondary",buttonLabel:"Delete"})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:b,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:b,children:"The mold was deleted successfully"})}),f.jsx(yt,{error:u,onHide:()=>d(""),title:"Error Deleting Mold"})]})},ozi=({getCatalogMoldsFromAPI:e,isLoading:t})=>{const n=Pd(),[r,i]=v.useState(""),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(null),[h,g]=v.useState(null),[m,b]=v.useState(""),{getMenuOptions:y}=ezi({setMoldId:p,setShowEditModal:l,setShowDeleteModal:u,setShowCreateModal:a}),{showContextMenu:M,registerConfig:C}=ws(),{rows:x,columnDefs:w}=tzi({setMoldId:p,setShowEditModal:l,setShowDeleteModal:u,showContextMenu:M}),{columnDefaults:S}=ku({OnEdit:O=>{l(!s),p(O.MoldId)}}),A=JOi({rows:x,selectedRowId:r,setSelectedRowId:i,showContextMenu:M});S.floatingFilter=!1;const z=O=>{p(O.data.MoldId),l(!0)};return v.useEffect(()=>{t?h?.showLoadingOverlay():h?.hideOverlay()},[t,x,h]),v.useEffect(()=>{C({id:"moldContext",getOptions:y})},[]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Molds"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:m,onChange:O=>b(O),label:"Search molds"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:n.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:x||[],columnDefs:w,getContextMenuItems:A,onRowDoubleClicked:z,getRowId:O=>O.data.MoldId,onGridReady:O=>g(O.api),enableCellTextSelection:!0,suppressContextMenu:!1,allowContextMenuWithControlKey:!1,rowSelection:"single",quickFilterText:m})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>a(!o),children:"New Mold"})})]})]}),f.jsx(nzi,{show:o,onHide:O=>{a(!1),setTimeout(()=>{h&&O&&(h.paginationGoToLastPage(),e())},100)}}),f.jsx(rzi,{show:s,onHide:O=>{l(!1),p(null),O&&e()},moldId:d}),f.jsx(izi,{show:c,onHide:O=>{u(!1),p(null),O&&e()},moldId:d})]})},azi=e=>{const{state:t,actions:n}=Cte(),{actions:{setMoldSizes:r}}=EM(),[i,o]=v.useState(!0),[a,s]=v.useState(""),l=async()=>{o(!0);const u=await P3e();u.ok?r(u.data.tables[0].rows):s(u.message),o(!1)},c=async()=>{o(!0);const u=await QOi();u.ok?n.setMolds(u.data.tables[0].rows):s(u.message),o(!1)};return v.useEffect(()=>{c(),l()},[]),t.molds?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(ozi,{isLoading:i,getCatalogMoldsFromAPI:c})})})}),f.jsx(yt,{error:a,onHide:()=>s("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},szi=e=>f.jsx(Izt,{children:f.jsx(KOi,{children:f.jsx(azi,{})})}),Wzt=async()=>await new Ye().callV2("[STEEL].[GetCatalogPourbackReasons]",[]),lzi=async e=>await new Ye().callV2("[STEEL].[UpsertPourbackReason]",[{name:"PourbackReasonId",value:e.PourbackReasonId||null},{name:"PourbackReasonName",value:e.PourbackReasonName},{name:"IsActive",value:e.IsActive}]),czi=async e=>await new Ye().callV2("[STEEL].[DeletePourbackReason]",[{name:"PourbackReasonId",value:e}]),uzi=({open:e,mode:t,pourbackReason:n,onClose:r,onSuccess:i})=>{const o=iu(),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(!1),[g,m]=v.useState(""),{register:b,control:y,handleSubmit:M,reset:C,formState:{errors:x}}=jn({defaultValues:{PourbackReasonId:0,PourbackReasonName:"",IsActive:!0}}),w=v.useMemo(()=>{if(t==="edit")return"EDIT POURBACK REASON";if(t==="delete")return"DELETE POURBACK REASON";if(t==="create")return"NEW POURBACK REASON"},[t]),S=(O,T)=>{T!=="clickaway"&&c(!1)},A=async O=>{if(O!=="OK"){h(!1);return}h(!1),s(!0);const T=await czi(n?.PourbackReasonId||0);T.ok?(m("The pourback reason was deleted successfully"),c(!0),i(),r()):d(T.message),s(!1)},z=async O=>{if(s(!0),t==="delete")h(!0);else{const T=await lzi(O);T.ok?(m(t==="edit"?"The pourback reason was updated successfully":"The pourback reason was created successfully"),c(!0),i(),r()):d(T.message)}s(!1)};return v.useEffect(()=>{(t==="edit"||t==="create"||t==="delete")&&(n?C(n):t==="create"&&C({PourbackReasonId:0,PourbackReasonName:"",IsActive:!0}))},[t,n,C]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:r,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:w,children:f.jsxs("form",{onSubmit:M(z),children:[f.jsx(We.Content,{dividers:!0,className:o.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...b("PourbackReasonName",{required:!0}),label:"Pourback Reason Name",variant:"outlined",error:!!x.PourbackReasonName,fullWidth:!0,margin:"dense",autoComplete:"off",disabled:t==="delete"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:y,render:({field:O})=>f.jsx(Ra,{checkboxValue:!!O.value,onCheckboxChange:O.onChange,label:"Enabled",className:o.checkbox,disabled:t==="delete"})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:r,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:t==="delete"?"secondary":"primary",type:"submit",children:t==="delete"?"Delete":"Save"})})]})})]})}),f.jsx(il,{title:"Confirmation",message:`Are you sure you want to delete permanently the pourback reason: ${n?.PourbackReasonName}?`,open:p,onClose:A}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:g})}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},dzi=({onDeleteButtonClick:e,onEditButtonClick:t})=>({columns:[{field:"PourbackReasonName",headerName:"Pourback Reason Name",minWidth:63,flex:4,wrapText:!0,autoHeight:!0},{field:"IsActive",headerName:"Enabled",cellRenderer:r=>f.jsx(Qr,{checked:r.value,disabled:!0}),flex:4,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:TM,cellRendererParams:r=>({deleteItem:e,edit:t,id:r.data.PourbackReasonId}),flex:1,minWidth:50}]}),pzi=({pourbackReasons:e,isLoading:t,onRefresh:n})=>{const r=Pd(),[i,o]=v.useState(""),a=v.useRef(null),[s,l]=v.useState(null),[c,u]=v.useState(null),d=()=>{u(null),l("create")},p=y=>{const M=e.find(C=>C.PourbackReasonId===y);M&&(u(M),l("edit"))},h=y=>{const M=e.find(C=>C.PourbackReasonId===y);M&&(u(M),l("delete"))},g=()=>{l(null),u(null)},m=()=>{n(),g()},{columns:b}=dzi({onDeleteButtonClick:h,onEditButtonClick:p});return E.useEffect(()=>{a.current&&(t?a.current.api?.showLoadingOverlay():a.current.api?.hideOverlay())},[t]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Pourback Reasons"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:i,onChange:y=>o(y),label:"Search pourback reasons"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:r.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{ref:a,rowData:e,columnDefs:b,getRowId:y=>y.data.PourbackReasonId,suppressContextMenu:!0,onRowDoubleClicked:y=>{p(y.data.PourbackReasonId)},rowSelection:"single",quickFilterText:i})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:d,children:"NEW POURBACK REASON"})})]})]}),s&&f.jsx(uzi,{open:s!==null,mode:s,pourbackReason:c,onClose:g,onSuccess:m})]})},hzi=()=>{const[e,t]=v.useState([]),[n,r]=v.useState(!0),[i,o]=v.useState(""),a=async()=>{r(!0);const l=await Wzt();l.ok?t(l.data.tables[0].rows):o(l.message),r(!1)};v.useEffect(()=>{a()},[]);const s=()=>{a()};return e?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(pzi,{pourbackReasons:e,isLoading:n,onRefresh:s})})})}),f.jsx(yt,{error:i,onHide:()=>o("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},fzi={categories:null,assetCodes:null,assetIdToFilter:0,firstTime:!1},uY=ki({name:"__",initialState:fzi,reducers:{setCategories(e,{payload:t}){e.categories=t},setAssetCodes(e,{payload:t}){e.assetCodes=t},setAssetIdToFilter(e,{payload:t}){e.assetIdToFilter=t},setFirstTime(e,{payload:t}){e.firstTime=t}}}),qzt=v.createContext({state:uY.getInitialState(),actions:uY.actions}),RM=()=>v.useContext(qzt),xj=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:uY.getInitialState(),reducers:uY.caseReducers});return f.jsx(qzt.Provider,{value:{state:t,actions:n},children:e})},gzi=({setCategoryId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return o?a=a.concat([{name:"New Category",key:"new_category",onClick:()=>{r(!0)},icon:f.jsx(Jo,{})},{name:"Edit Category",key:"edit_category",onClick:()=>{e(o.DelayCategoryId),t(!0)},icon:f.jsx(Fo,{})},{name:"Delete Category",key:"delete_category",onClick:()=>{e(o.DelayCategoryId),n(!0)},icon:f.jsx(Mo,{})}]):a=a.concat([{name:"New Category",key:"new_category",onClick:()=>{r(!0)},icon:f.jsx(Jo,{})}]),a}}),mzi=Et({colorCircle:{width:"20px",height:"20px",borderRadius:"50%",display:"inline-block"}}),vzi=({value:e})=>{const t=mzi();return f.jsx("div",{className:t.colorCircle,style:{backgroundColor:e.toLowerCase()}})},bzi=Et(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),yzi=({setCategoryId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=RM(),o=bzi();return{rows:i.categories?.map(c=>({...c}))||[],columnDefs:[{field:"DelayCategoryName",headerName:"Name",flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"},minWidth:130},{field:"AssetName",headerName:"Asset",flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"},minWidth:130},{field:"DelayCategoryColor",headerName:"Color",sortable:!1,flex:1,cellRenderer:vzi,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"},minWidth:130},{cellRenderer:c=>f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},className:o.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},children:[f.jsx(Ne,{onClick:()=>{(async()=>(e(c.data.DelayCategoryId),t(!0)))()},children:f.jsx(Fo,{style:{height:"auto"},color:"primary"})}),f.jsx(Ne,{onClick:()=>{(async()=>(e(c.data.DelayCategoryId),n(!0)))()},children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Ne,{style:{},onClick:u=>r(u,c.data,"categoriesContext"),children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,minWidth:330,filter:!1,autoHeaderHeight:!0}],defaultColDef:{flex:1,minWidth:130,sortable:!0,suppressMovable:!0}}},L3e={DelayCategoryId:null,AssetId:null,DelayCategoryName:"",Color:"",IsActive:!0,DelayCategoryColor:""},wj=async(e,t)=>{const n=new Ye,r=[];return e&&r.push({name:"DelayAreaAssetId",value:e}),t&&r.push({name:"IncludeAncestor",value:t}),await n.callV2("[DEL].[GetDelayCategories]",r)},Bzt=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCategoryId",value:e}),await t.callV2("[DEL].[GetDelayCategory]",n)},Mzi=async()=>{const e=new Ye,t=[];return t.push({name:"DelayAreaAssetId",value:null}),await e.callV2("[DEL].[GetAssetsFordelayArea]",t)},Czi=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCategoryId",value:e}),await t.callV2("[DEL].[DeleteDelayCategory]",n)},dY=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCategoryId",value:e.DelayCategoryId}),n.push({name:"DelayAreaAssetId",value:e.AssetId}),n.push({name:"DelayCategoryName",value:e.DelayCategoryName}),n.push({name:"DelayCategoryColor",value:e.Color}),n.push({name:"IsActive",value:e.IsActive}),await t.callV2("[DEL].[UpsertDelayCategory]",n)},jzt=Et({swatch:{width:"25px",height:"25px",display:"inline-block",margin:"2px",borderRadius:"4px",cursor:"pointer"},popover:{display:"flex",flexWrap:"wrap",padding:"10px",maxWidth:"165px"}}),xzi=["#5eaf60","green","#62bd9c","#53a285","#add8e6","#5293c5","#3280ba","blue","#3d556f","#dab0d8","#a362bf","#e74b3c","red","#bf3b2c","#000000"],wzi=({color:e,onSelect:t})=>{const n=jzt();return f.jsx("div",{className:n.swatch,style:{backgroundColor:e},onClick:()=>t(e)})},_3e=({onChange:e,color:t,elementId:n,disabled:r=!1,label:i})=>{const o=jzt(),[a,s]=v.useState(null),l=p=>{s(p.currentTarget)},c=()=>{s(null)},u=!!a,d=u?"simple-popover":void 0;return f.jsxs("div",{children:[f.jsx(Ne,{"aria-describedby":d,variant:"outlined",onClick:l,style:{backgroundColor:t,width:"24px",height:"24px",minWidth:"24px",padding:0,marginBottom:"6px"},disabled:r}),i&&f.jsx("span",{style:{marginLeft:"8px"},children:i}),f.jsx(A3,{id:d,open:u,anchorEl:a,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:f.jsx("div",{className:o.popover,children:xzi.map(p=>f.jsx(wzi,{color:p,onSelect:h=>{e(n,h),c()}},p))})})]})},N3e=({show:e,onHide:t,title:n,message:r,isLoading:i,color:o="primary"})=>f.jsx(f.Fragment,{children:f.jsxs(We,{title:n,open:e,id:"confirm-modal",handleClose:()=>t(!1),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx("p",{children:r})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"NO"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,onClick:()=>t(!0),variant:"contained",color:o,type:"submit",disabled:i,children:"YES"})})]})})]})}),Szi=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(!1),[p,h]=v.useState(!1),[g,m]=v.useState(""),{state:{assetCodes:b,assetIdToFilter:y}}=RM(),{register:M,control:C,handleSubmit:x,reset:w,getValues:S,setValue:A,formState:{errors:z}}=jn({defaultValues:{...L3e,AssetId:y}}),O=(N,L)=>{L!=="clickaway"&&d(!1)},T=N=>/^[a-zA-Z0-9 _-]*$/.test(N)||"No special characters",R=async N=>{o(!0);try{s(!0);const L=await wj();if(!L.ok){c(L.message);return}if(L.data.tables[0].rows.some(G=>G.DelayCategoryName===N.DelayCategoryName&&G.AssetId===N.AssetId)){m(N.DelayCategoryName),h(!0),o(!1),s(!1);return}const V=await dY(N);V.ok?(d(!0),t(!0)):c(V.message)}catch(L){console.error("Error submitting category:",L),c(L.message||"An unexpected error occurred")}finally{o(!1),s(!1)}},P=N=>{h(!1),N&&F()},F=async()=>{const N=S();o(!0);try{const L=await dY(N);L.ok?(d(!0),t(!0)):c(L.message)}catch(L){console.error("Error confirming submission:",L),c(L.message||"An unexpected error occurred")}finally{o(!1)}};return v.useEffect(()=>{e&&y&&A("AssetId",y)},[e,y,A]),v.useEffect(()=>{e&&w()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{id:"create-category",title:"NEW CATEGORY",open:e,handleClose:()=>t(!1),maxWidth:"sm",children:f.jsxs("form",{onSubmit:x(R),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,md:12,children:[f.jsx(je,{...M("DelayCategoryName",{required:"Name is required",validate:T}),label:"Name",variant:"outlined",error:!!z.DelayCategoryName,fullWidth:!0,margin:"dense",autoComplete:"off"}),z.DelayCategoryName&&f.jsx("span",{className:r.errorLabel,children:z.DelayCategoryName.message})]})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:3,md:3,children:f.jsx(Ue,{name:"IsActive",control:C,render:({field:N})=>f.jsx(Ra,{checkboxValue:N.value,onCheckboxChange:N.onChange,label:"Is Active",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"AssetId",control:C,rules:{required:"Asset is required"},render:({field:N})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:b??[],getOptionLabel:L=>L.AssetName,onChange:(L,W)=>{N.onChange(W?W.AssetId:null)},renderInput:L=>f.jsxs(f.Fragment,{children:[f.jsx(je,{...L,label:"Asset",variant:"outlined",error:!!z.AssetId,size:"small",fullWidth:!0}),z.AssetId&&f.jsx("span",{className:r.errorLabel,children:z.AssetId.message})]}),value:b?.find(L=>L.AssetId===N.value)})})}),f.jsx(D,{item:!0,xs:3,md:3,className:r.colorPicker,children:f.jsx(Ue,{name:"Color",control:C,rules:{required:"Color is required"},render:({field:N})=>f.jsxs(ja,{fullWidth:!0,margin:"dense",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(_3e,{onChange:(L,W)=>N.onChange(W),color:N.value,disabled:!1,label:"Color"}),z.Color&&f.jsx("span",{className:r.errorLabel,children:z.Color.message})]})})})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"CANCEL"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"SAVE"})})]})})]})}),f.jsx(pr,{open:u,autoHideDuration:2500,onClose:O,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:O,children:"The category was created successfully"})})]})}),f.jsx(N3e,{show:p,onHide:P,title:"WARNING",message:`The category "${g}" already exists. Do you want to proceed?`,isLoading:i}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},Azi=({DelayCategoryId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(),[g,m]=v.useState(!1),[b,y]=v.useState(""),{state:{allAssets:M}}=pte(),{control:C,setValue:x,handleSubmit:w}=jn({defaultValues:L3e}),S=(O,T)=>{T!=="clickaway"&&o(!1)},A=async()=>{m(!0)},z=async O=>{if(O){c(!0);try{const T=await Czi(e);T.ok?(n(!0),o(!0)):d(T.message)}catch(T){d(T.message)}finally{c(!1)}}m(!1)};return v.useEffect(()=>{if(t&&e){s(!0),c(!1);const O=M.find(T=>T.AssetId===p?.AssetId);O&&y(O.AssetName),(async()=>{try{const T=await Bzt(e);if(T.ok){const R=T.data.tables[0].rows[0];R?(x("DelayCategoryId",R.DelayCategoryId),x("AssetId",R.AssetId),x("DelayCategoryName",R.DelayCategoryName),x("Color",R.DelayCategoryColor),h(R)):d("Category not found")}else d(T.message)}catch(T){d(T.message)}finally{s(!1)}})()}},[t,p?.AssetId]),f.jsxs(f.Fragment,{children:[f.jsx(We,{id:"delete-category",title:"DELETE CATEGORY",open:t,handleClose:()=>n(!1),maxWidth:"sm",children:f.jsxs("form",{onSubmit:w(A),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{label:"Name",disabled:!0,variant:"outlined",fullWidth:!0,value:p?.DelayCategoryName||"",margin:"dense",autoComplete:"off"})})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:3,md:3,children:f.jsx(Ue,{name:"IsActive",control:C,render:({field:O})=>f.jsx(Ra,{checkboxValue:O.value,onCheckboxChange:O.onChange,label:"Is Active",className:r.checkbox,disabled:!0})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(je,{label:"Asset",disabled:!0,variant:"outlined",fullWidth:!0,value:b,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:3,md:3,className:r.colorPicker,children:f.jsx(Ue,{name:"Color",control:C,rules:{required:"Color is required"},render:({field:O})=>f.jsx(ja,{fullWidth:!0,margin:"dense",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(_3e,{onChange:(T,R)=>O.onChange(R),color:O.value,disabled:!0,label:"Color"})})})})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"CANCEL"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:l&&f.jsx(Kt,{size:"1rem"}),variant:"contained",color:"secondary",onClick:w(A),disabled:l,children:"DELETE"})})]})})]})}),f.jsx(N3e,{show:g,onHide:z,title:"WARNING",message:`Be careful, once deleted you will not be able to recover the category "${p?.DelayCategoryName}". Are you sure you want to delete it?`,isLoading:l,color:"secondary"}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:"The category was deleted successfully"})}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},Ozi=({DelayCategoryId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(),[g,m]=v.useState(!1),[b,y]=v.useState(""),{state:{assetCodes:M}}=RM(),{register:C,control:x,setValue:w,handleSubmit:S,getValues:A,formState:{errors:z}}=jn({defaultValues:L3e}),O=(N,L)=>{L!=="clickaway"&&o(!1)},T=N=>/^[a-zA-Z0-9 _-]*$/.test(N)||"No special characters",R=async N=>{c(!0);try{s(!0);const L=await wj();if(!L.ok){d(L.message);return}if(L.data.tables[0].rows.some(G=>G.DelayCategoryName===N.DelayCategoryName&&G.AssetId===N.AssetId&&G.DelayCategoryId!==N.DelayCategoryId)){y(N.DelayCategoryName),m(!0),c(!1),s(!1);return}const V=await dY(N);V.ok?(o(!0),n(!0)):d(V.message)}catch(L){console.error("Error submitting category:",L),d(L.message||"An unexpected error occurred")}finally{c(!1),s(!1)}},P=N=>{m(!1),N&&F()},F=async()=>{const N=A();try{const L=await dY(N);L.ok?(o(!0),n(!0)):d(L.message)}catch(L){console.error("Error confirming submission:",L),d(L.message||"An unexpected error occurred")}finally{c(!1)}};return v.useEffect(()=>{t&&e&&(c(!1),(async()=>{try{s(!0);const N=await Bzt(e);if(N.ok){const L=N.data.tables[0].rows[0];L?(w("DelayCategoryId",L.DelayCategoryId),w("AssetId",L.DelayAreaAssetId),w("DelayCategoryName",L.DelayCategoryName),w("Color",L.DelayCategoryColor),h(L)):d("Category not found")}else d(N.message)}catch(N){d(N.message)}finally{s(!1)}})())},[t,e]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{id:"edit-category",title:"EDIT CATEGORY",open:t,handleClose:()=>n(!1),maxWidth:"sm",children:f.jsxs("form",{onSubmit:S(R),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx("input",{type:"hidden",...C("DelayCategoryId"),value:p?.DelayCategoryId}),f.jsxs(D,{item:!0,xs:12,md:12,children:[f.jsx(je,{...C("DelayCategoryName",{required:"Name is required",validate:T}),label:"Name",variant:"outlined",error:!!z.DelayCategoryName,fullWidth:!0,margin:"dense",autoComplete:"off"}),z.DelayCategoryName&&f.jsx("span",{className:r.errorLabel,children:z.DelayCategoryName.message})]})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:3,md:3,children:f.jsx(Ue,{name:"IsActive",control:x,render:({field:N})=>f.jsx(Ra,{checkboxValue:N.value,onCheckboxChange:N.onChange,label:"Is Active",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"AssetId",control:x,rules:{required:"Asset is required"},render:({field:N})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:M??[],getOptionLabel:L=>L.AssetName,onChange:(L,W)=>{N.onChange(W?W.AssetId:null)},renderInput:L=>f.jsxs(f.Fragment,{children:[f.jsx(je,{...L,label:"Asset",variant:"outlined",error:!!z.AssetId,size:"small",fullWidth:!0}),z.AssetId&&f.jsx("span",{className:r.errorLabel,children:z.AssetId.message})]}),value:M?.find(L=>L.AssetId===N.value)})})}),f.jsx(D,{item:!0,xs:3,md:3,className:r.colorPicker,children:f.jsx(Ue,{name:"Color",control:x,rules:{required:"Color is required"},render:({field:N})=>f.jsxs(ja,{fullWidth:!0,margin:"dense",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(_3e,{onChange:(L,W)=>N.onChange(W),color:N.value,disabled:!1,label:"Color"}),z.Color&&f.jsx("span",{className:r.errorLabel,children:z.Color.message})]})})})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"CANCEL"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,startIcon:l&&f.jsx(Kt,{size:"1rem"}),disabled:l,variant:"contained",color:"primary",type:"submit",children:"SAVE"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:O,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:O,children:"The category was edited successfully"})})]})}),f.jsx(N3e,{show:g,onHide:P,title:"WARNING",message:`The category "${b}" already exists. Do you want to proceed?`,isLoading:l}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},zzi=Et(e=>({root:{"& .MuiSelect-root":{backgroundColor:"#FFF"}},inputLabel:{position:"absolute",top:-6,left:8,fontSize:11.3,backgroundColor:"#FFF",color:"#0000008A",width:"auto",height:"auto",zIndex:100,padding:"0 3px",borderRadius:3,fontWeight:400,lineHeight:"1.1876em",letterSpacing:"0.04208em",fontFamily:"'Roboto', 'Helvetica', 'Arial', sans-serif",textAlign:"center",margin:"0 auto"}})),Tzi=()=>{const e=zzi(),{state:{assetCodes:t,assetIdToFilter:n},actions:{setAssetIdToFilter:r}}=RM(),i=o=>{const a=o.target.value;r(a)};return f.jsxs("div",{className:e.root,style:{position:"relative"},children:[f.jsx("p",{className:e.inputLabel,children:"Assets"}),f.jsxs(cs,{variant:"outlined",margin:"dense",labelId:"demo-simple-select-label",id:"demo-simple-select",value:n,onChange:i,style:{minWidth:"100%"},children:[f.jsx(lr,{style:{fontWeight:"bold"},value:0,children:f.jsx("em",{children:"All"})}),t?.map(o=>f.jsx(lr,{value:o.AssetId,children:f.jsx(D,{container:!0,alignItems:"center",children:o.AssetName})},`logId-${o.AssetId}`))]})]})},Ezi=()=>f.jsx(D,{container:!0,item:!0,md:10,xs:12,spacing:2,justifyContent:"flex-start",alignItems:"center",style:{padding:"8px 8px 8px 0"},children:f.jsx(D,{item:!0,md:2,xs:6,children:f.jsx(Tzi,{})})}),Rzi=({getCatalogCategoriesFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(null),[u,d]=v.useState(null),{getMenuOptions:p}=gzi({setCategoryId:c,setShowEditModal:o,setShowDeleteModal:s,setShowCreateModal:r}),{showContextMenu:h,registerConfig:g}=ws(),{rows:m,columnDefs:b}=yzi({setCategoryId:c,setShowEditModal:o,setShowDeleteModal:s,showContextMenu:h}),{state:{assetIdToFilter:y}}=RM(),M=w=>{c(w.data.DelayCategoryId),o(!0)},C=v.useCallback(w=>{const S=w.node?.data;return h(event,S,"categoriesContext"),[]},[m]);v.useEffect(()=>{t?u?.showLoadingOverlay():u?.hideOverlay()},[t,m,u]),v.useEffect(()=>{g({id:"categoriesContext",getOptions:p})},[]);const x=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsxs(D,{item:!0,md:12,xs:12,children:[f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Delays Categories"}),f.jsx(Ezi,{})]}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:x.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:m||[],columnDefs:b,getRowId:w=>w.data.DelayCategoryId,animateRows:!0,rowSelection:"single",getContextMenuItems:C,onRowDoubleClicked:M,onGridReady:w=>d(w.api)})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW CATEGORY"})})]})]}),f.jsx(Szi,{show:n,onHide:w=>{r(!1),w&&e(y)},refreshData:e}),f.jsx(Ozi,{show:i,onHide:w=>{o(!1),w&&e(y)},DelayCategoryId:l}),f.jsx(Azi,{show:a,onHide:w=>{s(!1),w&&e(y)},DelayCategoryId:l})]})},Izi=e=>{const{state:t,state:{assetIdToFilter:n},actions:{setAssetCodes:r,setCategories:i}}=RM(),[o,a]=v.useState(!0),[s,l]=v.useState(!1),[c,u]=v.useState(""),d=async(h=null)=>{l(!0);const m=await wj(h,h!==0);m.ok?i(m.data.tables[0].rows):u(m.message),l(!1)},p=async()=>{a(!0);const h=await Mzi();h.ok?r(h.data.tables[0].rows):u(h.message),a(!1)};return v.useEffect(()=>{p()},[]),v.useEffect(()=>{!o&&n!==null&&d(n)},[o,n]),o||s?f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})}):t.categories?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(Rzi,{isLoading:s,setIsLoading:l,getCatalogCategoriesFromAPI:d})})})}):f.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[f.jsx(yt,{error:c,onHide:()=>u("")}),f.jsx(Cn,{})]})},Pzi={AssetId:null,ParentAssetId:1,AssetName:"",IsAsset:!1,CanBeDefaultAsset:!1,ParentAssetName:"",IsBranch:null},Dzi={openAssets:{},allAssetNodes:[],allNodesLoading:!1,anchorPoint:{x:0,y:0},assetCodes:{},assetTreeId:1,assetTreeName:null,assetNodeSelectedInTree:Pzi},pY=ki({name:"__",initialState:Dzi,reducers:{setOpenAssets(e,{payload:t}){e.openAssets=t},setAllAssetNodes(e,{payload:t}){e.allAssetNodes=t},seAllNodesLoading(e,{payload:t}){e.allNodesLoading=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t},setAssetTreeId(e,{payload:t}){e.assetTreeId=t},setAssetTreeName(e,{payload:t}){e.assetTreeName=t},setAssetCodes(e,{payload:t}){e.assetCodes=t},setAssetNodeSelectedInTree(e,{payload:t}){e.assetNodeSelectedInTree=t},setParentAssetNameInNodeSelectedInTree(e,{payload:t}){e.assetNodeSelectedInTree.ParentAssetName=t}}}),kzi=v.createContext({state:pY.getInitialState(),actions:pY.actions}),Lzi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:pY.getInitialState(),reducers:pY.caseReducers});return f.jsx(kzi.Provider,{value:{state:t,actions:n},children:e})},_zi=e=>f.jsx(Lzi,{children:f.jsx(xj,{children:f.jsx(Izi,{})})}),c6={DelayAreaAssetId:0,DelayCodeId:null,DelayCodeName:"",DelayCategoryId:0,DelayCategoryName:"",ParentDelayCodeId:0,ParentDelayCodeName:"",DelayCategoryColor:"",IsDelayManual:!1,IsBranch:!1,IsActive:!0},Nzi={openDelays:{},allDelayNodes:[],allNodesLoading:!1,anchorPoint:{x:0,y:0},dataToCreateDelay:c6,menuContextDelayId:void 0,showContextMenu:!1,showCreateNewContextMenu:!1,allDelayCodes:{},delayCodes:{},delayTreeId:1,delayTreeName:null,delayNodeSelectedInTree:c6},hY=ki({name:"__",initialState:Nzi,reducers:{setOpenDelays(e,{payload:t}){e.openDelays=t},setDelayAreaAsset(e,{payload:t}){e.delayAreaAsset=t},setAllDelayNodes(e,{payload:t}){e.allDelayNodes=t},seAllNodesLoading(e,{payload:t}){e.allNodesLoading=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t},setMenuContextDelayId(e,{payload:t}){e.menuContextDelayId=t},setShowContextMenu(e,{payload:t}){e.showContextMenu=t},setShowCreateNewContextMenu(e,{payload:t}){e.showCreateNewContextMenu=t},setDataToCreateDelay(e,{payload:t}){e.dataToCreateDelay=t},setDelayNameToCreateDelay(e,{payload:t}){e.dataToCreateDelay.DelayCodeName=t},setDelayParentDelayIdToCreateDelay(e,{payload:t}){e.dataToCreateDelay.ParentDelayCodeId=t},setDelayTreeId(e,{payload:t}){e.delayTreeId=t},setDelayTreeName(e,{payload:t}){e.delayTreeName=t},setDelayCodes(e,{payload:t}){e.delayCodes=t},setAllDelayCodes(e,{payload:t}){e.allDelayCodes=t},setDelayNodeSelectedInTree(e,{payload:t}){e.delayNodeSelectedInTree=t},setDelayParentNameToCreateDelay(e,{payload:t}){e.dataToCreateDelay.ParentDelayCodeName=t},setDelayCategoryToCreateDelay(e,{payload:t}){e.dataToCreateDelay.DelayCategoryId=t}}}),Hzt=v.createContext({state:hY.getInitialState(),actions:hY.actions}),Hb=()=>v.useContext(Hzt),xte=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:hY.getInitialState(),reducers:hY.caseReducers});return f.jsx(Hzt.Provider,{value:{state:t,actions:n},children:e})},Vzt=async e=>{const t=new Ye,n=[];return n.push({name:"DelayAreaAssetId",value:e.DelayAreaAssetId}),n.push({name:"DelayCodeId",value:e.DelayCodeId}),n.push({name:"DelayCodeName",value:e.DelayCodeName}),n.push({name:"ParentDelayCodeId",value:e.ParentDelayCodeId===0?null:e.ParentDelayCodeId}),n.push({name:"DefaultDelayCategoryId",value:e.DelayCategoryId}),n.push({name:"IsActive",value:e.IsActive}),await t.callV2("[DEL].[UpsertDelayCode]",n)},Fzi=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCodeId",value:e}),await t.callV2("[DEL].[DeleteDelayCode]",n)},Gzt=async e=>{const t=new Ye,n=[];return e&&n.push({name:"DelayAreaAssetId",value:e}),await t.callV2("[DEL].[GetDelayCodes]",n)},$zt=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCodeId",value:e}),await t.callV2("[DEL].[GetDelayCode]",n)},Wzi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"DelayCodeId",value:e.join(",")}),r.push({name:"AboveDelayCodeId",value:t}),await n.callV2("[Del].[ReorderDelayCode]",r)},Uzt=e=>({id:e.DelayCodeId,parent:e.ParentDelayCodeId?e.ParentDelayCodeId:0,text:e.DelayCodeName,data:{fileType:"csv",fileSize:""},droppable:e.IsBranch}),F3e=({setSearchError:e,setAllDelayLoading:t})=>{const{actions:{setAllDelayNodes:n,setAllDelayCodes:r}}=Hb();return{searchDelays:o=>{Gzt(o).then(a=>{if(a.ok){let s=[];const l=At(a,"data.tables[0].rows",[]);l.forEach(c=>{const u=Uzt(c);s=[...s,u]}),r(l),n(s),t(!1)}else e(a.message)})}}},W3e=e=>{if(e.droppable)return f.jsx(B3,{});switch(e.fileType){case"image":return f.jsx(hOt,{});case"csv":return f.jsx(fOt,{});case"text":return f.jsx(h3e,{});default:return null}},qzi=Et(e=>({root:{alignItems:"center",display:"flex",height:"32px"},customNodeRoot:{listStyleType:"none",margin:0,padding:0},arrow:{alignItems:"center",cursor:"pointer",display:"flex",height:"24px",justifyContent:"center",width:"24px",transition:"transform linear 0.1s",transform:"rotate(0deg)"},"arrow > div":{alignItems:"center",display:"flex"},"arrow.is-open":{transform:"rotate(90deg)"},filetype:{display:"flex"},label:{paddingInlineStart:"8px"},selected:{backgroundColor:"#e8f0fe"},dragging:{opacity:.5}})),Bzi=`
  ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
`,jzi=({setContextMenuOver:e,onDoubleClick:t,testIdPrefix:n="",isSelected:r,...i})=>{const{state:{openDelays:o},actions:{setOpenDelays:a}}=Hb(),{id:s,droppable:l,data:c}=i.node,u=i.depth*24,d=qzi(),p=`${d.customNodeRoot} ${d.root} ${r?d.selected:""}`,h=y=>{i.onClick(y,i.node)},g=y=>{if(y.stopPropagation(),o[s]){const M={...o};delete M[s],a(M)}else a({...o,[s]:s});i.onToggle()},m=v.useCallback(y=>{y.stopPropagation(),y.preventDefault(),e(i.node,y)},[s,e]),b=v.useCallback(y=>{y.stopPropagation(),y.preventDefault(),t(i.node,y),e({id:"",parent:"",text:"",droppable:!1},y)},[s,t]);return v.useEffect(()=>(a({...o,[s]:s}),i.containerRef.current?.addEventListener("contextmenu",m),i.containerRef.current?.addEventListener("dblclick",b),()=>{i.containerRef.current?.removeEventListener("contextmenu",m),i.containerRef.current?.removeEventListener("dblclick",b)}),[]),f.jsxs("div",{className:p,style:{paddingInlineStart:u},"data-node-id":s,onClick:h,title:`${i.node.id} - ${i.node.text}`,children:[f.jsx("style",{children:Bzi}),i.node.droppable?f.jsx("div",{className:`${d.arrow} ${i.isOpen?d["arrow.is-open"]:""}`,children:f.jsx("div",{onClick:g,children:f.jsx(hQ,{"data-testid":`arrow-right-icon-${s}`})})}):null,f.jsx("div",{className:d.filetype,children:f.jsx(W3e,{droppable:l,fileType:c?.fileType})}),f.jsx("div",{className:d.label,children:f.jsx(vt,{variant:"body2",children:i.node.text})})]})},Hzi=Et(e=>({root:{alignItems:"center",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:" 0 12px 24px -6px rgba(0, 0, 0, .25); 0 0 0 1px rgba(0, 0, 0, .08)",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto",padding:"4px 8px",pointerEvents:"none"},icon:{alignItems:"center",display:"flex"},label:{alignItems:"center",display:"flex"}})),Vzi=e=>{const t=Hzi(),n=e.monitorProps.item;return f.jsxs("div",{className:t.root,children:[f.jsx("div",{className:t.icon,children:f.jsx(W3e,{droppable:n.droppable,fileType:n?.data?.fileType})}),f.jsx("div",{className:t.label,children:n.text})]})},Gzi=Et(e=>({root:{alignItems:"flex-start",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:"0 12px 24px -6px rgba(0, 0, 0, 0.25); 0 0 0 1px rgba(0, 0, 0, 0.08)",display:"flex",flexDirection:"column",gap:"4px",padding:"8px"},item:{alignItems:"center",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto"},icon:{alignItems:"center",display:"flex"},label:{alignItems:"center",display:"flex"},badge:{border:"solid 2px #fff"}})),$zi=e=>{const t=Gzi();return f.jsx(Qot,{classes:{badge:t.badge},color:"error",badgeContent:e.dragSources.length,anchorOrigin:{vertical:"top",horizontal:"right"},children:f.jsx("div",{className:t.root,"data-testid":"custom-drag-preview",children:e.dragSources.map(n=>f.jsxs("div",{className:t.item,children:[f.jsx("div",{className:t.icon,children:f.jsx(W3e,{droppable:n.droppable||!1,fileType:n?.data?.fileType})}),f.jsx("div",{className:t.label,children:n.text})]}))})})},Uzi=({delay:e,selectedNodes:t,setSelectedNodes:n,isCtrlPressing:r,setIsDragging:i,setIsCtrlPressing:o,onDelayUpdateEnd:a,onDelayUpdateStart:s=()=>{}})=>{v.useEffect(()=>{const g=b=>{b.key.toLowerCase()==="escape"?n([]):(b.ctrlKey||b.metaKey)&&o(!0)},m=b=>{(b.key.toLowerCase()==="control"||b.key.toLowerCase()==="meta")&&o(!1)};return window.addEventListener("keydown",g),window.addEventListener("keyup",m),()=>{window.removeEventListener("keydown",g),window.removeEventListener("keyup",m)}},[]);const l=async(g,m)=>{let{dropTargetId:b}=m;b==0&&(b=1),s();const y=await Wzi(t.map(M=>M.id),b);y.ok&&n([]),a(y)},c=g=>{n([g])},u=g=>{const m=t.map(y=>y.id);if(m.includes(g.id)||m.some(y=>IP(e,y,g.id)))return;let b=[...t];b=b.filter(y=>!IP(e,g.id,y.id)),b=[...b,g],n(b)};return{handleDrop:l,handleCtrlClick:(g,m)=>{g.ctrlKey||g.metaKey?u(m):c(m)},handleDragEnd:()=>{i(!1),o(!1)},handleDragStart:g=>{const m=t.some(b=>b.id===g.id);if(i(!0),!(!r&&m)){if(!r){n([g]);return}t.some(b=>b.id===g.id)||n([...t,g])}}}},q3e=Et(()=>({inputBase:{"& .MuiOutlinedInput-root":{height:"54px","& .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"}}}})),Xzi=Et(()=>({colorBadge:{width:"26px",height:"26px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold",marginRight:"8px",marginLeft:"8px"},optionContainer:{display:"flex",alignItems:"center"}})),uM=({value:e,onChange:t,disabled:n=!1,assetId:r,error:i=""})=>{const[o,a]=v.useState([]),[s,l]=v.useState(""),[c,u]=v.useState(!1),d=Xzi(),p=q3e();return v.useEffect(()=>{u(!0),wj(r,!0).then(h=>{h.ok?a(At(h.data,"tables[0].rows",[])):l(h.message),u(!1)}).catch(h=>{l(h.message),u(!1)})},[r]),f.jsxs(f.Fragment,{children:[f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:o??[],getOptionSelected:(h,g)=>h.DelayCategoryId===g.DelayCategoryId,getOptionLabel:h=>h.DelayCategoryName,onChange:(h,g)=>{t(g?g.DelayCategoryId:null)},renderOption:h=>f.jsxs("div",{className:d.optionContainer,children:[f.jsx("span",{className:d.colorBadge,style:{backgroundColor:h.DelayCategoryColor},children:h.DelayCategoryName.charAt(0).toUpperCase()}),h.DelayCategoryName]}),disabled:n,renderInput:h=>f.jsx(je,{...h,label:"Category",variant:"outlined",error:!!i,size:"small",fullWidth:!0,helperText:i,className:p.inputBase,InputProps:{...h.InputProps,startAdornment:e?f.jsx("span",{className:d.colorBadge,style:{backgroundColor:o.find(g=>g.DelayCategoryId===e)?.DelayCategoryColor||"#ccc"},children:o.find(g=>g.DelayCategoryId===e)?.DelayCategoryName.charAt(0).toUpperCase()}):null,endAdornment:f.jsx(f.Fragment,{children:c?f.jsx(Kt,{color:"inherit",size:20}):h.InputProps.endAdornment})}}),value:o.find(h=>h.DelayCategoryId===e)??null}),f.jsx(yt,{error:s,onHide:()=>l("")})]})},wte=()=>{const{state:{allDelayCodes:e}}=Hb(),{actions:{setDelayCodes:t}}=Hb(),n=i=>{if(i===void 0)return;const o=i.reduce((s,l,c)=>(s[l.id]=c,s),{});let a;i.forEach(s=>{if(s.parentId===null){a=s;return}const l=i[o[s.parentId]];if(!l){console.log(s);return}l.children||(l.children=[]),l.children=[...l.children||[],s]}),t(a)};return{loadFilterDelays:()=>{const i=e.map(o=>({id:o.DelayCodeId,parentId:o.ParentDelayCodeId,name:o.DelayCodeName,isLeaf:!!o.IsLeaf,isActive:!0,children:[]}));n(i)}}},Yzi=Et(e=>({root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"}},checkbox:{userSelect:"none"},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"},modalTitleCloseWO:{backgroundColor:"#28a745",color:"white",textAlign:"center"},modalWarning:{color:"white",backgroundColor:"#dc3545",textAlign:"center"},messageTitle:{fontSize:15,fontWeight:"bold",color:"#0000008A"},formControl:{margin:e.spacing(2),minWidth:120},errorLabel:{fontSize:12,color:"#F44336"}})),Kzi=({show:e,onHide:t})=>{const n=Yzi(),[r,i]=v.useState("sm"),[o,a]=v.useState(""),[s,l]=v.useState(!1),{state:{categories:c}}=RM(),{state:{dataToCreateDelay:u,delayNodeSelectedInTree:d,delayCodes:p,allDelayCodes:h,delayAreaAsset:g},actions:{setDelayParentDelayIdToCreateDelay:m,setDelayParentNameToCreateDelay:b,setDelayNameToCreateDelay:y}}=Hb(),{loadFilterDelays:M}=wte(),{control:C,handleSubmit:x,reset:w,setValue:S,formState:{errors:A}}=jn({defaultValues:c6}),z=()=>{t(!1)},O=async R=>{l(!0);const P=await Vzt(R);P.ok?t(!0):(a(P.message),t(!1)),l(!1)},T=(R,P)=>{S("ParentDelayCodeId",parseInt(R)),m(parseInt(R)),b(P)};return v.useEffect(()=>{if(e)if(w(),M(),d?.DelayCategoryId){const R=h.find(P=>P.DelayCodeId===d?.DelayCodeId);b(R.DelayCodeName),S("ParentDelayCodeId",R.DelayCodeId),S("DelayCategoryId",d.DelayCategoryId),S("DelayAreaAssetId",g?g.AssetId:0)}else{const R=h.find(P=>P.ParentDelayCodeId===null);R&&(m(R.DelayCodeId),b(R.DelayCodeName),S("ParentDelayCodeId",R.DelayCodeId)),y(""),S("DelayCategoryId",c?c[0].DelayCategoryId:0),S("DelayAreaAssetId",g?g.AssetId:0)}},[e]),f.jsxs("div",{className:n.root,children:[f.jsx(We,{title:"NEW DELAY CODE",maxWidth:r,open:e,handleClose:()=>z(),children:f.jsx("form",{onSubmit:x(O),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"10px 30px"},children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:3,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayAreaAssetId",control:C,render:()=>f.jsx(f.Fragment,{children:f.jsx(je,{label:"Asset",variant:"outlined",value:g?.AssetName,disabled:!0,margin:"dense",size:"small",fullWidth:!0})})})}),f.jsx(D,{item:!0,md:9,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayCodeName",control:C,rules:{required:"Name is required"},render:({field:{onChange:R,value:P}})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Delay Code Name",variant:"outlined",error:!!A.DelayCodeName,fullWidth:!0,margin:"dense",size:"small",autoComplete:"off",onChange:R,value:P}),A.DelayCodeName&&f.jsx("span",{className:n.errorLabel,children:A.DelayCodeName.message})]})})})]}),f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:12,sm:12,xs:10,children:f.jsx(Ue,{name:"ParentDelayCodeId",control:C,rules:{required:"Parent is required"},render:({field:R})=>f.jsxs(f.Fragment,{children:[f.jsx(oD,{inputTitle:"Parent",title:"Delay Code Parent",dataSource:p,value:R.value,description:u?.ParentDelayCodeName,onSelect:(P,F)=>{R.onChange(P),T(P,F)},selectBranch:!0,selectActive:!1,selectInternal:!1}),A.ParentDelayCodeId&&f.jsx("span",{className:n.errorLabel,children:A.ParentDelayCodeId.message})]})})}),f.jsx(D,{item:!0,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayCategoryId",control:C,rules:{required:"Category is required"},render:({field:R})=>f.jsx(uM,{value:R.value,onChange:R.onChange,assetId:g?g.AssetId:null,error:A.DelayCategoryId?.message||""})})})]})]}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(D,{container:!0,justifyContent:"flex-end",style:{margin:0},children:f.jsxs(D,{container:!0,item:!0,style:{marginLeft:"auto",marginTop:5,marginBottom:0},children:[f.jsx(D,{item:!0,md:6,xs:12,style:{paddingLeft:"0",paddingRight:"16px"},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>z(),children:"Cancel"})}),f.jsx(D,{item:!0,md:6,xs:12,children:f.jsx(Ne,{fullWidth:!0,startIcon:s&&f.jsx(Kt,{size:"1rem"}),disabled:s,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})})})]})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]})},Qzi=Et(e=>({root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0}},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"},modalTitleCloseWO:{backgroundColor:"#28a745",color:"white",textAlign:"center"},modalWarning:{color:"white",backgroundColor:"#dc3545",textAlign:"center"},messageTitle:{fontSize:15,fontWeight:"bold",color:"#0000008A"},formControl:{margin:e.spacing(2),minWidth:120},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"}})),Zzi=({show:e,onHide:t})=>{const n=Qzi(),[r,i]=v.useState(!0),[o,a]=v.useState("sm"),[s,l]=v.useState(!1),[c,u]=v.useState(""),[d,p]=v.useState(!1),{state:{delayNodeSelectedInTree:h}}=Hb(),g=()=>{p(!1),t(!1)},m=(y,M)=>{M!=="clickaway"&&l(!1)},b=async()=>{p(!0);const y=await Fzi(h.DelayCodeId);y.ok?(l(!0),p(!1),t(!0)):(p(!1),u(y.message))};return f.jsxs(f.Fragment,{children:[f.jsxs(Qu,{fullWidth:r,maxWidth:o,open:e,onClose:()=>g(),disableEnforceFocus:!0,className:n.root,children:[f.jsx(T0,{id:"responsive-dialog-title",children:"WARNING"}),f.jsx(ru,{children:f.jsxs(mM,{style:{padding:0,margin:0},children:["Be careful, once deleted you will not be able to recover this delay code ",f.jsx("b",{children:h?.DelayCodeName}),", are you sure you want to delete?"]})}),f.jsxs(Ed,{style:{padding:"16px 24px"},children:[f.jsx(Ne,{onClick:()=>t(!1),autoFocus:!0,color:"default",children:"CANCEL"}),f.jsx(Ne,{autoFocus:!0,color:"secondary",startIcon:d&&f.jsx(Kt,{size:"1rem"}),onClick:b,children:"Delete"})]})]}),f.jsx(yt,{error:c,onHide:()=>u("")}),f.jsx(pr,{open:s,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{severity:"info",onClose:m,children:"Asset removed succesfully"})})]})},Jzi=Et(e=>({root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"}},customDialog:{"& .MuiDivider-root:last-child":{display:"none"}},checkbox:{userSelect:"none","& .MuiOutlinedInput-root":{height:"51px"},margin:"8px 0px"},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"},modalTitleCloseWO:{backgroundColor:"#28a745",color:"white",textAlign:"center"},modalWarning:{color:"white",backgroundColor:"#dc3545",textAlign:"center"},messageTitle:{fontSize:15,fontWeight:"bold",color:"#0000008A"},formControl:{margin:e.spacing(2),minWidth:120},errorLabel:{fontSize:12,color:"#F44336"}})),e3i=({show:e,onHide:t})=>{const n=Jzi(),[r,i]=v.useState("sm"),[o,a]=v.useState(""),[s,l]=v.useState(!1),[c,u]=v.useState(!1),{state:{delayAreaAsset:d,delayNodeSelectedInTree:p,delayCodes:h,allDelayCodes:g,dataToCreateDelay:m},actions:{setDelayParentDelayIdToCreateDelay:b,setDelayParentNameToCreateDelay:y,setDelayNameToCreateDelay:M}}=Hb(),{loadFilterDelays:C}=wte(),{control:x,reset:w,setValue:S,handleSubmit:A,getValues:z,formState:{errors:O}}=jn({defaultValues:p||c6}),T=()=>{t(!1)},R=(N,L)=>{S("ParentDelayCodeId",parseInt(N)),b(parseInt(N)),y(L)},F=A(async N=>{u(!0);const L=await Vzt(N);L.ok?(u(!1),t(!0)):(u(!1),a(L.message))});return v.useEffect(()=>{e&&(l(!0),w(),C(),p.DelayCodeId&&(async()=>{const N=await $zt(p.DelayCodeId??0);if(N.ok){if(N===void 0||N.data===void 0||N.data.tables===void 0||N.data.tables[0].rows===void 0||N.data.tables[0].rows[0]===void 0)return;const L=N.data.tables[0].rows[0];if(L){S("ParentDelayCodeId",L.ParentDelayCodeId);const W=g.find(j=>j.DelayCodeId===p?.ParentDelayCodeId);S("DelayAreaAssetId",L.DelayAreaAssetId),S("ParentDelayCodeName",W?.DelayCodeName),S("DelayCodeId",L.DelayCodeId),S("DelayCodeName",L.DelayCodeName),S("DelayCategoryId",L.DelayCategoryId),S("IsBranch",L?.IsBranch),l(!1)}}})())},[e]),s?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:f.jsx(Cn,{})}):f.jsx("div",{className:n.root,children:f.jsx(We,{maxWidth:r,title:"EDIT DELAY CODE",open:e,handleClose:()=>T(),children:f.jsx("form",{onSubmit:F,children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"10px 30px"},children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:3,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayAreaAssetId",control:x,render:()=>f.jsx(f.Fragment,{children:f.jsx(je,{label:"Asset",variant:"outlined",value:d?.AssetName,disabled:!0,margin:"dense",size:"small",fullWidth:!0})})})}),f.jsx(D,{item:!0,md:9,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayCodeName",control:x,rules:{required:"Name is required"},render:({field:{onChange:N,value:L}})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Delay Code Name",variant:"outlined",error:!!O.DelayCodeName,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:N,value:L}),O.DelayCodeName&&f.jsx("span",{className:n.errorLabel,children:O.DelayCodeName.message})]})})})]}),f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(Ue,{name:"ParentDelayCodeName",control:x,render:({field:N})=>f.jsx(f.Fragment,{children:p?.ParentDelayCodeId&&f.jsx(oD,{inputTitle:"Parent",title:"Delay Code Parent",dataSource:h,value:p?.ParentDelayCodeId||1,description:m?.ParentDelayCodeName,onSelect:(L,W)=>{N.onChange(L),R(L,W)},selectBranch:!0,selectActive:!1,selectInternal:!1})})})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(Ue,{name:"DelayCategoryId",control:x,rules:{required:"Category is required"},render:({field:N})=>f.jsx(uM,{value:N.value,onChange:N.onChange,assetId:z("DelayAreaAssetId")||null,error:O.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"IsBranch",control:x,defaultValue:!1,render:({field:N})=>f.jsx(Ue,{name:"IsBranch",control:x,defaultValue:!1,render:({field:L})=>f.jsx(Ra,{label:"Has Children",checkboxValue:L.value||!1,onCheckboxChange:L.onChange,className:n.checkbox})})})})]})]}),f.jsxs(D,{item:!0,md:12,xs:12,children:[f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(D,{container:!0,justifyContent:"flex-end",style:{margin:0},children:f.jsxs(D,{container:!0,item:!0,style:{marginLeft:"auto",marginTop:5,marginBottom:0},children:[f.jsx(D,{item:!0,md:6,xs:12,style:{paddingLeft:"0",paddingRight:"16px"},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>T(),children:"Cancel"})}),f.jsx(D,{item:!0,md:6,xs:12,children:f.jsx(Ne,{fullWidth:!0,startIcon:c&&f.jsx(Kt,{size:"1rem"}),disabled:c,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]})]})})})})},t3i=Et(e=>({root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"},"& .MuiDialogContent-dividers":{borderBottom:"unset"}},customDialog:{"& .MuiDivider-root:last-child":{display:"none"}},checkbox:{userSelect:"none","& .MuiOutlinedInput-root":{height:"51px"},margin:"8px 0px"},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"},modalTitleCloseWO:{backgroundColor:"#28a745",color:"white",textAlign:"center"},modalWarning:{color:"white",backgroundColor:"#dc3545",textAlign:"center"},messageTitle:{fontSize:15,fontWeight:"bold",color:"#0000008A"},formControl:{margin:e.spacing(2),minWidth:120},errorLabel:{fontSize:12,color:"#F44336"}})),n3i=({show:e,onHide:t})=>{const n=t3i(),[r,i]=v.useState("sm"),{state:{dataToCreateDelay:o,delayNodeSelectedInTree:a,delayAreaAsset:s,allDelayCodes:l}}=Hb(),{control:c,reset:u,setValue:d,formState:{errors:p}}=jn({defaultValues:o||c6}),h=()=>{t(!1)};return v.useEffect(()=>{e&&(u(),a.DelayCodeId&&(async()=>{const g=await $zt(a.DelayCodeId??0);if(g.ok){if(g===void 0||g.data===void 0||g.data.tables===void 0||g.data.tables[0].rows===void 0||g.data.tables[0].rows[0]===void 0)return;const m=g.data.tables[0].rows[0];if(m){d("ParentDelayCodeId",m.ParentDelayCodeId);const b=l.find(y=>y.DelayCodeId===a?.ParentDelayCodeId);d("ParentDelayCodeName",b?.DelayCodeName),d("DelayCodeId",m.DelayCodeId),d("DelayCodeName",m.DelayCodeName),d("DelayCategoryName",m.DelayCategoryName),d("IsBranch",m?.IsBranch)}}})())},[e]),f.jsx("div",{className:n.root,children:f.jsx(We,{maxWidth:r,title:"VIEW DELAY CODE",open:e,handleClose:()=>h(),children:f.jsx("form",{onSubmit:()=>{},children:f.jsx(D,{container:!0,style:{alignItems:"center"},children:f.jsxs(We.Content,{dividers:!0,style:{padding:"10px 30px"},children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:3,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayAreaAssetId",control:c,render:()=>f.jsx(f.Fragment,{children:f.jsx(je,{label:"Asset",variant:"outlined",value:s?.AssetName,disabled:!0,margin:"dense",size:"small",fullWidth:!0})})})}),f.jsx(D,{item:!0,md:9,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayCodeName",control:c,rules:{required:"Name is required"},render:({field:{onChange:g,value:m}})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Delay Code Name",variant:"outlined",error:!!p.DelayCodeName,fullWidth:!0,disabled:!0,margin:"dense",autoComplete:"off",onChange:g,value:m}),p.DelayCodeName&&f.jsx("span",{className:n.errorLabel,children:p.DelayCodeName.message})]})})})]}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(Ue,{name:"ParentDelayCodeName",control:c,render:({field:{onChange:g,value:m}})=>f.jsx(f.Fragment,{children:a.ParentDelayCodeId&&f.jsx(je,{label:"Parent",variant:"outlined",error:!!p.ParentDelayCodeName,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:g,value:m||"Delay Charge",disabled:!0})})})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(Ue,{name:"DelayCategoryName",control:c,render:({field:{onChange:g,value:m}})=>f.jsx(f.Fragment,{children:f.jsx(je,{label:"Default Category",variant:"outlined",error:!!p.DelayCategoryName,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:g,value:m,disabled:!0})})})}),f.jsx(D,{item:!0,xs:6,md:12,children:f.jsx(Ue,{name:"IsBranch",control:c,defaultValue:!1,render:({field:g})=>f.jsx(Ra,{label:"Has Children",checkboxValue:g.value||!1,onCheckboxChange:g.onChange,className:n.checkbox,disabled:!0})})})]})})})})})},r3i=Et(e=>({root:{},contextMenu:{backgroundColor:"#F8F8F8",borderRadius:"4px",padding:"0",height:"auto",width:"170px",margin:"0",position:"fixed",listStyle:"none",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.15)",zIndex:1e3},menuItem:{padding:"6px 12px 6px 10px",cursor:"pointer",display:"flex",alignItems:"center",backgroundColor:"#F8F8F8",fontSize:"12px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"&:last-child":{borderBottom:"none"},"&:hover":{backgroundColor:"#d4edff"}},storyRoot:{display:"grid",height:"100%",gridTemplateRows:"auto 1fr",listStyleType:"none !important"},assetRoot:{boxSizing:"border-box",height:"100%",padding:"32px"},btnModal:{display:"flex",justifyContent:"flex-end",marginTop:20},dropTarget:{boxShadow:"0 0 0 1px #1967d2 inset"}})),i3i=({delayAreaAssetId:e,delayAreaAssetName:t})=>{const[n,r]=v.useState([]),i=r3i(),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(!1),[h,g]=v.useState(!1),[m,b]=v.useState(!1),[y,M]=v.useState(!1),[C,x]=v.useState(""),[w,S]=v.useState(""),[A,z]=v.useState(!1),[O,T]=v.useState(""),[R,P]=v.useState(!1),{state:{allDelayCodes:F,allDelayNodes:N,openDelays:L,showContextMenu:W,showCreateNewContextMenu:j,delayNodeSelectedInTree:V,anchorPoint:{x:G,y:q}},actions:{setShowContextMenu:$,setShowCreateNewContextMenu:U,setMenuContextDelayId:X,setAnchorPointX:Q,setAnchorPointY:re,setDelayNodeSelectedInTree:ee,setDelayAreaAsset:se}}=Hb(),{searchDelays:pe}=F3e({setSearchError:S,setAllDelayLoading:z}),{handleDrop:te,handleCtrlClick:ce,handleDragStart:oe,handleDragEnd:ae}=Uzi({delay:N,selectedNodes:n,setSelectedNodes:r,setIsDragging:a,isCtrlPressing:s,setIsCtrlPressing:l,onDelayUpdateStart:()=>{z(!0)},onDelayUpdateEnd:de=>{de.ok?(P(!0),pe(e)):x(de.message)}}),ne=(de,ie)=>{ie!=="clickaway"&&P(!1)},le=de=>{W&&($(!1),X(void 0)),j&&(U(!1),X(void 0))},he=de=>{de.preventDefault(),$(!1);const ie=de.clientY,ue=de.clientX;Q(ue),re(ie),U(!0),ee(void 0)},be=(de,ie)=>{ie.preventDefault(),U(!1);const ue=ie.clientY,Ae=ie.clientX;Q(Ae),re(ue),r([de]),$(!0);const Ce=F.find(Ee=>Ee.DelayCodeId===de.id);Ce&&ee(Ce)},me=(de,ie)=>{ie.preventDefault(),u(!0);const ue=F.find(Ae=>Ae.DelayCodeId===de.id);ue&&(ee(ue),g(!0))},Me=()=>{g(!1),u(!1),U(!1),$(!1)};v.useEffect(()=>{se({AssetId:e,AssetName:t}),pe(e)},[]);const Oe=v.useMemo(()=>Object.keys(L).map(de=>parseInt(de)),[L]);return A?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:f.jsx(Cn,{})}):f.jsxs("div",{style:{width:"100%",height:"100%"},children:[f.jsx("div",{onClick:le,children:f.jsxs("div",{onContextMenu:he,children:[f.jsxs("div",{children:[f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"flex-start",className:i.root,children:[f.jsxs(vt,{variant:"h5",style:{margin:"20px 0 20px",fontWeight:600},children:["Delay Codes Tree"," ",t?`- ${t}`:""]}),A?f.jsx(D,{container:!0,style:{width:"100%",height:"100%"},children:f.jsx("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(Cn,{})})}):f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",border:"1px solid #ccc"},children:f.jsx(D,{container:!0,alignItems:"center",children:f.jsx(D,{container:!0,style:{height:"60vh",overflowY:"auto",paddingBottom:10},children:f.jsx(D,{children:f.jsx(tJ,{rootId:0,initialOpen:Oe,tree:N,enableAnimateExpand:!0,sort:!1,classes:{root:i.assetRoot,dropTarget:i.dropTarget},onDrop:te,onDragStart:oe,onDragEnd:ae,canDrop:(de,ie)=>!n.some(ue=>ue.id===ie.dropTargetId),render:(de,ie)=>{const ue=n.some(Ae=>Ae.id===de.id);return f.jsx(jzi,{setContextMenuOver:be,node:de,...ie,isSelected:ue,isDragging:ue&&o,onClick:ce,onDoubleClick:me})},dragPreviewRender:de=>n.length>1?f.jsx($zi,{dragSources:n}):f.jsx(Vzi,{monitorProps:de})})})})})}),f.jsx(Kzi,{show:d,onHide:de=>{p(!1),de&&pe(e)}}),f.jsx(e3i,{show:y,onHide:de=>{M(!1),de&&pe(e)}}),f.jsx(n3i,{show:h,onHide:()=>Me()}),f.jsx(Zzi,{show:m,onHide:de=>{b(!1),de&&pe(e)}}),f.jsx(D,{container:!0,justifyContent:"flex-end",children:f.jsx(D,{item:!0,md:3,sm:4,xs:12,className:i.btnModal,children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{margin:"0px 15px"},onClick:()=>p(!d),children:"NEW DELAY CODE"})})})]}),f.jsx(pr,{open:R,autoHideDuration:2500,onClose:ne,children:f.jsx(Pr,{severity:"success",onClose:ne,children:"Delay updated successfully"})})]}),W&&!c?f.jsxs("ul",{className:i.contextMenu,style:{top:q,left:G,padding:"6px 0"},children:[f.jsx(lr,{className:i.menuItem,onClick:()=>g(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(gOt,{style:{width:18}})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"View Delay Code"})})]})}),f.jsx(lr,{className:i.menuItem,onClick:()=>M(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(Fo,{style:{width:18}})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"Edit Delay Code"})})]})}),f.jsx(lr,{className:i.menuItem,onClick:()=>p(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(Jo,{style:{width:18}})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"New Delay Code"})})]})}),V?.IsBranch==!1&&f.jsx(lr,{className:i.menuItem,onClick:()=>b(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(Mo,{})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"Delete Delay Code"})})]})})]}):"",j?f.jsx("ul",{className:i.contextMenu,style:{top:q,left:G},children:f.jsx(lr,{className:i.menuItem,onClick:()=>p(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(Jo,{style:{width:18}})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"New Delay Code"})})]})})}):""]})}),f.jsx(yt,{error:C,onHide:()=>x("")}),f.jsx(yt,{error:O,onHide:()=>T("")}),f.jsx(yt,{error:w,onHide:()=>S("")})]})},o3i=({delayAreaAssetId:e,delayAreaAssetName:t})=>f.jsx(f.Fragment,{children:f.jsx(MZ,{backend:CZ,children:f.jsx(i3i,{delayAreaAssetId:e,delayAreaAssetName:t})})}),a3i=({delayAreaAssetId:e,delayAreaAssetName:t})=>f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(o3i,{delayAreaAssetId:e,delayAreaAssetName:t})})}),s3i=async()=>await new Ye().callV2("[MES].[GetAssets]",[]),GKe=e=>{const[t,n]=v.useState([]),[r,i]=v.useState(null),[o,a]=v.useState(!0),[s,l]=v.useState(null),c=async()=>{try{a(!0);const u=await s3i();if(u.ok){const d=At(u,"data.tables[0].rows",[]);n(d)}else l("Error fetching assets")}catch{l("Error fetching assets")}finally{a(!1)}};return v.useEffect(()=>{if(t.length>0){const u=t.find(d=>d.AssetName===e.delayAreaAssetName)?.AssetId??null;i(u)}},[t,e.delayAreaAssetName]),v.useEffect(()=>{c()},[]),!r||o?null:s?f.jsx("div",{children:s}):f.jsx(xte,{children:f.jsx(xj,{children:f.jsx(a3i,{delayAreaAssetId:r,delayAreaAssetName:e.delayAreaAssetName})})})},Xzt=async()=>await new Ye().callV2("[LAB].[GetCatElements]",[]),Yzt=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.ElementId}),n.push({name:"Name",value:e.ElementName}),n.push({name:"Decimals",value:e.Decimals}),n.push({name:"Order",value:e.Order}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[LAB].[UpsertCatElement]",n)},l3i=async e=>{const t=new Ye,n=[];return n.push({name:"ElementId",value:e}),await t.callV2("[LAB].[GetCatElement]",n)},c3i={elements:null},fY=ki({name:"__",initialState:c3i,reducers:{setElements(e,{payload:t}){e.elements=t}}}),Kzt=v.createContext({state:fY.getInitialState(),actions:fY.actions}),Qzt=()=>v.useContext(Kzt),u3i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:fY.getInitialState(),reducers:fY.caseReducers});return f.jsx(Kzt.Provider,{value:{state:t,actions:n},children:e})},Zzt={ElementId:null,ElementName:"",Decimals:4,Order:0,IsActive:!0},d3i=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(""),{register:u,control:d,handleSubmit:p,reset:h,formState:{errors:g}}=jn({defaultValues:Zzt}),m=(y,M)=>{M!=="clickaway"&&s(!1)},b=async y=>{o(!0);const M=await Yzt(y);M.ok?(M.data.tables[0].rows[0].Id,o(!1),s(!0),t(),n()):c(M.message),o(!1)};return v.useEffect(()=>{e&&h()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:"	NEW ELEMENT",children:f.jsxs("form",{onSubmit:p(b),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("ElementName",{required:!0}),label:"Name",variant:"outlined",error:!!g.ElementName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("Decimals",{required:!0}),label:"# Decimals",variant:"outlined",error:!!g.Decimals,fullWidth:!0,margin:"dense",type:"number",autoComplete:"off",onFocus:y=>y.target.select()})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("Order",{required:!0}),label:"Order",variant:"outlined",error:!!g.Order,fullWidth:!0,margin:"dense",type:"number",autoComplete:"off",onFocus:y=>y.target.select()})}),f.jsx(D,{item:!0,xs:12,md:6,alignContent:"center",children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:y})=>f.jsx(Ra,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:m,children:"The element was created successfully"})}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},p3i=({elementId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,formState:{errors:b}}=jn({defaultValues:Zzt}),y=(C,x)=>{x!=="clickaway"&&o(!1)},M=async C=>{d(!0);const x=await Yzt(C);x.ok?(x.data.tables[0].rows[0].UserId,n(!0),o(!0)):s(x.message),d(!1)};return v.useEffect(()=>{t&&(d(!1),(async()=>{c(!0);const C=await l3i(e);if(C.ok){const x=C.data.tables[0].rows[0];x&&(g("ElementId",x.ElementId),g("ElementName",x.ElementName),g("Decimals",x.Decimals),g("Order",x.Order),g("IsActive",x.IsActive),c(!1))}else s(C.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"md","aria-labelledby":"contained-modal-title-center",title:"	EDIT ELEMENT",children:f.jsxs("form",{onSubmit:m(M),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Kt,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("ElementName",{required:!0}),label:"Name",variant:"outlined",error:!!b.ElementName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("Decimals",{required:!0}),label:"# Decimals",variant:"outlined",error:!!b.Decimals,fullWidth:!0,margin:"dense",type:"number",autoComplete:"off",onFocus:C=>C.target.select()})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("Order",{required:!0}),label:"Order",variant:"outlined",error:!!b.Order,fullWidth:!0,margin:"dense",type:"number",autoComplete:"off",onFocus:C=>C.target.select()})}),f.jsx(D,{item:!0,xs:12,md:6,alignContent:"center",children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:C})=>f.jsx(Ra,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:y,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:y,children:"The element was edited successfully"})}),f.jsx(yt,{error:a,onHide:()=>s("")})]})},h3i=({})=>{const{state:e}=Qzt();return{rows:e.elements?.map(i=>({...i}))||[],columns:[{field:"ElementName",headerName:"Name",minWidth:63,flex:1},{field:"Decimals",headerName:"Decimals",flex:1,minWidth:86},{field:"Order",headerName:"Order",flex:1,minWidth:63},{field:"IsActive",headerName:"Enabled",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",type:["editButton"],flex:1,minWidth:80,maxWidth:80}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},f3i=({getCatalogElementsFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(null),[l,c]=v.useState(""),{rows:u,columns:d}=h3i({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.ElementId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Elements"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search elements"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.ElementId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.ElementId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW ELEMENT"})})]})]}),f.jsx(d3i,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(p3i,{show:i,onHide:g=>{o(!1),s(null),g&&e()},elementId:a})]})},g3i=e=>{const{state:t,actions:n}=Qzt(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await Xzt();l.ok?(n.setElements(l.data.tables[0].rows),i(!1)):a(l.message)};return v.useEffect(()=>{s()},[]),t.elements?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(f3i,{isLoading:r,getCatalogElementsFromAPI:s})})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},m3i=e=>f.jsx(u3i,{children:f.jsx(g3i,{})}),v3i={mechanicalTests:null},gY=ki({name:"__",initialState:v3i,reducers:{setMechanicalTests(e,{payload:t}){e.mechanicalTests=t}}}),Jzt=v.createContext({state:gY.getInitialState(),actions:gY.actions}),e3t=()=>v.useContext(Jzt),b3i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:gY.getInitialState(),reducers:gY.caseReducers});return f.jsx(Jzt.Provider,{value:{state:t,actions:n},children:e})},B3e=async()=>await new Ye().callV2("[LAB].[GetCatMechanicalTests]",[]),t3t=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.MechanicatTestId}),n.push({name:"Name",value:e.MechanicalTestName}),n.push({name:"Decimals",value:e.Decimals}),n.push({name:"Order",value:e.Order}),n.push({name:"UseInCircular",value:e.UseInCircular}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[LAB].[UpsertCatMechanicalTest]",n)},y3i=async e=>{const t=new Ye,n=[];return n.push({name:"MechanicalTestId",value:e}),await t.callV2("[LAB].[GetCatMechanicalTest]",n)},n3t={MechanicatTestId:null,MechanicalTestName:"",Decimals:4,Order:0,UseInCircular:!1,IsActive:!0},M3i=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(""),{register:u,control:d,handleSubmit:p,reset:h,formState:{errors:g}}=jn({defaultValues:n3t}),m=(y,M)=>{M!=="clickaway"&&s(!1)},b=async y=>{o(!0);const M=await t3t(y);M.ok?(M.data.tables[0].rows[0].Id,o(!1),s(!0),t(),n()):c(M.message),o(!1)};return v.useEffect(()=>{e&&h()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"NEW MECHANICAL TEST",children:f.jsxs("form",{onSubmit:p(b),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...u("MechanicalTestName",{required:!0}),label:"Name",variant:"outlined",error:!!g.MechanicalTestName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("Decimals",{required:!0}),label:"# Decimals",variant:"outlined",error:!!g.Decimals,fullWidth:!0,margin:"dense",type:"number",onFocus:y=>y.target.select(),autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("Order",{required:!0}),label:"Order",variant:"outlined",error:!!g.Order,fullWidth:!0,margin:"dense",type:"number",onFocus:y=>y.target.select(),autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"UseInCircular",control:d,render:({field:y})=>f.jsx(Ra,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Use In Circular",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:y})=>f.jsx(Ra,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:m,children:"The mechanical test was created successfully"})}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},C3i=({mechanicalTestId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,formState:{errors:b}}=jn({defaultValues:n3t}),y=(C,x)=>{x!=="clickaway"&&o(!1)},M=async C=>{d(!0);try{const x=await t3t(C);n(!0),o(!0)}catch(x){console.log(x)}};return v.useEffect(()=>{t&&(d(!1),(async()=>{c(!0);const C=await y3i(e);if(C.ok){const x=C.data.tables[0].rows[0];x&&(g("MechanicatTestId",x.MechanicatTestId),g("MechanicalTestName",x.MechanicalTestName),g("Decimals",x.Decimals),g("Order",x.Order),g("UseInCircular",x.UseInCircular),g("IsActive",x.IsActive),c(!1))}else s(C.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"EDIT MECHANICAL TEST",children:f.jsxs("form",{onSubmit:m(M),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...p("MechanicalTestName",{required:!0}),label:"Name",variant:"outlined",error:!!b.MechanicalTestName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("Decimals",{required:!0}),label:"# Decimals",variant:"outlined",error:!!b.Decimals,fullWidth:!0,margin:"dense",type:"number",onFocus:C=>C.target.select(),autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("Order",{required:!0}),label:"Order",variant:"outlined",error:!!b.Order,fullWidth:!0,margin:"dense",type:"number",onFocus:C=>C.target.select(),autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"UseInCircular",control:h,render:({field:C})=>f.jsx(Ra,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Use In Circular",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:C})=>f.jsx(Ra,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:y,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:y,children:"The mechanical test was edited successfully"})}),f.jsx(yt,{error:a,onHide:()=>s("")})]})},x3i=({})=>{const{state:e}=e3t();return{rows:e.mechanicalTests?.map(i=>({...i}))||[],columns:[{field:"MechanicalTestName",headerName:"Name",minWidth:20,flex:1},{field:"Decimals",headerName:"Decimals",flex:2,minWidth:86},{field:"Order",headerName:"Order",flex:1,minWidth:63},{field:"UseInCircular",headerName:"Use In Circular",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,maxWidth:120,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"IsActive",headerName:"Enabled",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",type:["editButton"],flex:1,minWidth:80,maxWidth:80}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},w3i=({getCatalogMechanicalTestsFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(null),[l,c]=v.useState(""),{rows:u,columns:d}=x3i({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.MechanicatTestId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Mechanical Tests"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search mechanical test"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.MechanicatTestId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.MechanicatTestId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW MECHANICAL TEST"})})]})]}),f.jsx(M3i,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(C3i,{show:i,onHide:g=>{o(!1),s(null),g&&e()},mechanicalTestId:a})]})},S3i=e=>{const{state:t,actions:n}=e3t(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await B3e();l.ok?(n.setMechanicalTests(l.data.tables[0].rows),i(!1)):a(l.message)};return v.useEffect(()=>{s()},[]),t.mechanicalTests?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(w3i,{isLoading:r,getCatalogMechanicalTestsFromAPI:s})})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},A3i=e=>f.jsx(b3i,{children:f.jsx(S3i,{})}),j3e=async()=>await new Ye().callV2("[LAB].[GetCatResultSources]",[]),r3t=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.ResultSourceId}),n.push({name:"Name",value:e.ResultSourceName}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[LAB].[UpsertCatResultSource]",n)},O3i=async e=>{const t=new Ye,n=[];return n.push({name:"ResultSourceId",value:e}),await t.callV2("[LAB].[GetCatResultSource]",n)},z3i={resultSources:null},mY=ki({name:"__",initialState:z3i,reducers:{setResultSources(e,{payload:t}){e.resultSources=t}}}),i3t=v.createContext({state:mY.getInitialState(),actions:mY.actions}),o3t=()=>v.useContext(i3t),T3i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:mY.getInitialState(),reducers:mY.caseReducers});return f.jsx(i3t.Provider,{value:{state:t,actions:n},children:e})},a3t={ResultSourceId:null,ResultSourceName:"",IsActive:!0},E3i=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(""),{register:u,control:d,handleSubmit:p,reset:h,formState:{errors:g}}=jn({defaultValues:a3t}),m=(y,M)=>{M!=="clickaway"&&s(!1)},b=async y=>{o(!0);const M=await r3t(y);M.ok?(M.data.tables[0].rows[0].Id,o(!1),s(!0),t(),n()):c(M.message),o(!1)};return v.useEffect(()=>{e&&h()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"NEW RESULT SOURCE",children:f.jsxs("form",{onSubmit:p(b),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...u("ResultSourceName",{required:!0}),label:"Name",variant:"outlined",error:!!g.ResultSourceName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:y})=>f.jsx(Ra,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:m,children:"The result source was created successfully"})}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},R3i=({resultSourceId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,formState:{errors:b}}=jn({defaultValues:a3t}),y=(C,x)=>{x!=="clickaway"&&o(!1)},M=async C=>{d(!0);const x=await r3t(C);x.ok?(x.data.tables[0].rows[0].Id,n(!0),o(!0)):s(x.message),d(!1)};return v.useEffect(()=>{t&&(d(!1),(async()=>{c(!0);const C=await O3i(e);if(C.ok){const x=C.data.tables[0].rows[0];x&&(g("ResultSourceId",x.ResultSourceId),g("ResultSourceName",x.ResultSourceName),g("IsActive",x.IsActive),c(!1))}else s(C.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"EDIT RESULT SOURCE",children:f.jsxs("form",{onSubmit:m(M),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...p("ResultSourceName",{required:!0}),label:"Name",variant:"outlined",error:!!b.ResultSourceName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:C})=>f.jsx(Ra,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:y,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:y,children:"The result source was edited successfully"})}),f.jsx(yt,{error:a,onHide:()=>s("")})]})},I3i=({})=>{const{state:e}=o3t();return{rows:e.resultSources?.map(i=>({...i}))||[],columns:[{field:"ResultSourceName",headerName:"Name",minWidth:20,flex:1},{field:"IsActive",headerName:"Enabled",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,minWidth:100,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",type:["editButton"],flex:1,minWidth:80,maxWidth:80}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},P3i=({getCatalogResultSourcesFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(null),[l,c]=v.useState(""),{rows:u,columns:d}=I3i({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.ResultSourceId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Result Sources"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search result sources"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.ResultSourceId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.ResultSourceId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW RESULT SOURCE"})})]})]}),f.jsx(E3i,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(R3i,{show:i,onHide:g=>{o(!1),s(null),g&&e()},resultSourceId:a})]})},D3i=e=>{const{state:t,actions:n}=o3t(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await j3e();l.ok?(n.setResultSources(l.data.tables[0].rows),i(!1)):a(l.message)};return v.useEffect(()=>{s()},[]),t.resultSources?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(P3i,{isLoading:r,getCatalogResultSourcesFromAPI:s})})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},k3i=e=>f.jsx(T3i,{children:f.jsx(D3i,{})}),L3i={sampleTypes:null},vY=ki({name:"__",initialState:L3i,reducers:{setSampleTypes(e,{payload:t}){e.sampleTypes=t}}}),s3t=v.createContext({state:vY.getInitialState(),actions:vY.actions}),l3t=()=>v.useContext(s3t),_3i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:vY.getInitialState(),reducers:vY.caseReducers});return f.jsx(s3t.Provider,{value:{state:t,actions:n},children:e})},c3t=async()=>await new Ye().callV2("[LAB].[GetCatSampleTypes]",[]),u3t=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.SampleTypeId}),n.push({name:"Name",value:e.SampleTypeName}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[LAB].[UpsertCatSampleType]",n)},N3i=async e=>{const t=new Ye,n=[];return n.push({name:"SampleTypeId",value:e}),await t.callV2("[LAB].[GetCatSampleType]",n)},d3t={SampleTypeId:null,SampleTypeName:"",IsActive:!0},F3i=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(""),{register:u,control:d,handleSubmit:p,reset:h,formState:{errors:g}}=jn({defaultValues:d3t}),m=(y,M)=>{M!=="clickaway"&&s(!1)},b=async y=>{o(!0);const M=await u3t(y);M.ok?(M.data.tables[0].rows[0].Id,s(!0),t(),n()):c(M.message),o(!1)};return v.useEffect(()=>{e&&h()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"NEW SAMPLE TYPE",children:f.jsxs("form",{onSubmit:p(b),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...u("SampleTypeName",{required:!0}),label:"Name",variant:"outlined",error:!!g.SampleTypeName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:y})=>f.jsx(Ra,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:m,children:"The sample type was created successfully"})}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},W3i=({sampleTypeId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,formState:{errors:b}}=jn({defaultValues:d3t}),y=(C,x)=>{x!=="clickaway"&&o(!1)},M=async C=>{d(!0);const x=await u3t(C);x.ok?(x.data.tables[0].rows[0].UserId,n(!0),o(!0)):s(x.message),d(!1)};return v.useEffect(()=>{t&&(d(!1),(async()=>{c(!0);const C=await N3i(e);if(C.ok){const x=C.data.tables[0].rows[0];x&&(g("SampleTypeId",x.SampleTypeId),g("SampleTypeName",x.SampleTypeName),g("IsActive",x.IsActive))}else s(C.message);c(!1)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"EDIT SAMPLE TYPE",children:f.jsxs("form",{onSubmit:m(M),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...p("SampleTypeName",{required:!0}),label:"Name",variant:"outlined",error:!!b.SampleTypeName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:C})=>f.jsx(Ra,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:y,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:y,children:"The sample type was edited successfully"})}),f.jsx(yt,{error:a,onHide:()=>s("")})]})},q3i=({})=>{const{state:e}=l3t();return{rows:e.sampleTypes?.map(i=>({...i}))||[],columns:[{field:"SampleTypeName",headerName:"Name",flex:1,minWidth:60},{field:"IsActive",headerName:"Enabled",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,minWidth:60,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"actions",headerName:"",type:["nonSorteable","nonFilterable","editButton"],maxWidth:100}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},B3i=({getCatalogSampleTypesFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(null),[l,c]=v.useState(""),{rows:u,columns:d}=q3i({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.SampleTypeId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Sample Types"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search sample types"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.SampleTypeId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.SampleTypeId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW SAMPLE TYPE"})})]})]}),f.jsx(F3i,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(W3i,{show:i,onHide:g=>{o(!1),s(null),g&&e()},sampleTypeId:a})]})},j3i=e=>{const{state:t,actions:n}=l3t(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await c3t();l.ok?(n.setSampleTypes(l.data.tables[0].rows),i(!1)):a(l.message)};return v.useEffect(()=>{s()},[]),t.sampleTypes?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(B3i,{isLoading:r,getCatalogSampleTypesFromAPI:s})})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},H3i=e=>f.jsx(_3i,{children:f.jsx(j3i,{})}),V3i={buckets:null},bY=ki({name:"__",initialState:V3i,reducers:{setBuckets(e,{payload:t}){e.buckets=t}}}),p3t=v.createContext({state:bY.getInitialState(),actions:bY.actions}),h3t=()=>v.useContext(p3t),G3i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:bY.getInitialState(),reducers:bY.caseReducers});return f.jsx(p3t.Provider,{value:{state:t,actions:n},children:e})},Ste=async()=>await new Ye().callV2("[MS].[GetBuckets]",[]),f3t=async e=>{const t=new Ye,n=[];return n.push({name:"BucketId",value:e}),await t.callV2("[MS].[GetBucket]",n)},g3t=async e=>{const t=new Ye,n=[];return n.push({name:"BucketId",value:e.BucketId}),n.push({name:"BucketName",value:e.BucketName}),n.push({name:"Capacity",value:e.Capacity}),n.push({name:"IsActive",value:e.IsActive}),await t.callV2("[MS].[UpsertBucket]",n)},$3i=async e=>{const t=new Ye,n=[];return n.push({name:"BucketId",value:e}),await t.callV2("[MS].[DeleteBucket]",n)},U3i=({setBucketId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return o?a=a.concat([{name:"New Bucket",key:"new_bucket",onClick:()=>{r(!0)},icon:f.jsx(Jo,{})},{name:"Edit Bucket",key:"edit_bucket",onClick:()=>{o.BucketId&&(e(o.BucketId),t(!0))},icon:f.jsx(Fo,{})},{name:"Delete Bucket",key:"delete_bucket",onClick:()=>{o.BucketId&&(e(o.BucketId),n(!0))},icon:f.jsx(Mo,{})}]):a=a.concat([{name:"New Bucket",key:"new_bucket",onClick:()=>{r(!0)},icon:f.jsx(Jo,{})}]),a}}),X3i=Et(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),$Ke={display:"flex",alignItems:"center",justifyContent:"center"},Y3i=({setBucketId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=h3t(),o=X3i(),a=i.buckets?.map(c=>({...c}))||[],[s]=v.useState([{field:"BucketName",headerName:"Name",minWidth:20,flex:3,cellStyle:$Ke},{field:"Capacity",headerName:"Capacity",minWidth:20,flex:2,cellStyle:$Ke},{cellRenderer:c=>f.jsx(D,{container:!0,justifyContent:"flex-end",alignItems:"flex-end",className:o.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},children:[f.jsx(Ne,{onClick:()=>{(async()=>(e(c.data.BucketId),t(!0)))()},children:f.jsx(Fo,{style:{height:"auto"},color:"primary"})}),f.jsx(Ne,{onClick:()=>{(async()=>(e(c.data.BucketId),n(!0)))()},children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Ne,{style:{},onClick:u=>r(u,c.data,"bucketsContext"),title:"Options",children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,minWidth:330,maxWidth:380,filter:!1,autoHeaderHeight:!0,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}}]);return{rows:a,columnDefs:s,defaultColDef:{sortable:!0}}},H3e={BucketId:null,BucketName:"",Capacity:null,IsActive:!0},V3e=Et(e=>Mp({checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}})),K3i=({show:e,onHide:t,refreshData:n})=>{const r=V3e(),[i,o]=v.useState(!1),[a,s]=v.useState(""),[l,c]=v.useState(!1),{register:u,handleSubmit:d,reset:p,formState:{errors:h}}=jn({defaultValues:H3e}),g=(M,C)=>{C!=="clickaway"&&c(!1)},m=M=>/^[a-zA-Z0-9 _-]*$/.test(M)||"No special characters",b=async M=>{o(!0);const C=await Ste();C.ok?C.data.tables[0].rows.some(w=>w.BucketName===M.BucketName)?s("A bucket with this name already exists"):await y(M):s(C.message),o(!1)},y=async M=>{const C=await g3t(M);C.ok?(t(!0),c(!0),n()):(s(C.message),t(!1))};return v.useEffect(()=>{e&&p()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"NEW BUCKET",open:e,handleClose:()=>t(!1),id:"create-bucket-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:d(b),children:[f.jsx(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsx(je,{...u("BucketName",{required:"Name is required",validate:m}),label:"Name",variant:"outlined",error:!!h.BucketName,fullWidth:!0,margin:"dense",autoComplete:"off"}),h.BucketName&&f.jsx("span",{className:r.errorLabel,children:h.BucketName.message})]}),f.jsxs(D,{item:!0,xs:12,children:[f.jsx(je,{...u("Capacity",{required:"Capacity is required",min:{value:0,message:"Capacity must be positive"}}),label:"Capacity",type:"number",variant:"outlined",error:!!h.Capacity,fullWidth:!0,margin:"dense",autoComplete:"off"}),h.Capacity&&f.jsx("span",{className:r.errorLabel,children:h.Capacity.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:g,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:g,children:"The bucket was created successfully"})})]})}),f.jsx(yt,{error:a,onHide:()=>s(""),title:"Error Creating Bucket"})]})},Q3i=({BucketId:e,show:t,onHide:n})=>{const r=V3e(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(),{register:g,setValue:m,handleSubmit:b,formState:{errors:y}}=jn({defaultValues:H3e}),M=(x,w)=>{w!=="clickaway"&&o(!1)},C=async()=>{c(!0);const x=await $3i(e);x.ok?(n(!0),o(!0)):d(x.message),c(!1)};return v.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const x=await f3t(e);if(x.ok&&x.data&&x.data.tables&&x.data.tables[0].rows&&x.data.tables[0].rows[0]){const w=x.data.tables[0].rows[0];m("BucketId",w.BucketId),m("BucketName",w.BucketName),m("Capacity",w.Capacity),m("IsActive",w.IsActive),s(!1),h(w)}})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"DELETE BUCKET",open:t,handleClose:()=>n(!1),id:"delete-bucket-modal",maxWidth:"lg",children:f.jsxs("form",{onSubmit:b(C),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...g("BucketName"),label:"Name",variant:"outlined",fullWidth:!0,value:p?.BucketName,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...g("Capacity"),label:"Capacity",type:"number",variant:"outlined",fullWidth:!0,value:p?.Capacity,margin:"dense",autoComplete:"off",disabled:!0})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:l?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:l,variant:"contained",color:"secondary",type:"submit",children:"Delete"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:M,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:M,children:"The bucket was deleted successfully"})}),f.jsx(yt,{error:u,onHide:()=>d(""),title:"Error Deleting Bucket"})]})},Z3i=({BucketId:e,show:t,onHide:n})=>{const r=V3e(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),{control:p,handleSubmit:h,reset:g,formState:{errors:m}}=jn({defaultValues:H3e}),b=(M,C)=>{C!=="clickaway"&&o(!1)},y=async M=>{c(!0);const C=await g3t({...M,BucketId:e});C.ok?(o(!0),n(!0)):d(C.message),c(!1)};return v.useEffect(()=>{t&&(c(!1),s(!0),f3t(e).then(M=>{if(M.ok){const C=M.data.tables[0].rows[0];C&&g(C)}s(!1)}))},[t,e,g]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"EDIT BUCKET",open:t,handleClose:()=>n(!1),id:"edit-bucket-modal",maxWidth:"lg",children:f.jsxs("form",{onSubmit:h(y),children:[f.jsx(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}):f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"BucketName",control:p,rules:{required:"Name is required"},render:({field:M})=>f.jsx(je,{...M,label:"Name",variant:"outlined",error:!!m.BucketName,helperText:m.BucketName?.message,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"Capacity",control:p,rules:{required:"Capacity is required",min:{value:0,message:"Capacity must be positive"}},render:({field:M})=>f.jsx(je,{...M,label:"Capacity",type:"number",variant:"outlined",error:!!m.Capacity,helperText:m.Capacity?.message,fullWidth:!0,margin:"dense",autoComplete:"off"})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:l?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:l,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:b,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:b,children:"The bucket was edited successfully"})}),f.jsx(yt,{error:u,onHide:()=>d(""),title:"Error Editing Bucket"})]})},J3i=({getBucketsFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(null),[u,d]=v.useState(null),[p,h]=v.useState(""),{getMenuOptions:g}=U3i({setBucketId:c,setShowEditModal:o,setShowDeleteModal:s,setShowCreateModal:r}),{showContextMenu:m,registerConfig:b,show:y}=ws(),{rows:M,columnDefs:C}=Y3i({setBucketId:c,setShowEditModal:o,setShowDeleteModal:s,showContextMenu:m}),x=A=>{c(A.data.BucketId),o(!0)},w=E.useCallback(A=>{const z=A.node?.data;return m(event,z,"bucketsContext"),[]},[M]);v.useEffect(()=>{b({id:"bucketsContext",getOptions:g})},[]);const S=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Buckets"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:p,onChange:A=>h(A),label:"Search buckets"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:S.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:M||[],columnDefs:C,onGridReady:A=>d(A.api),loading:t,getContextMenuItems:w,onRowDoubleClicked:x,quickFilterText:p,getRowId:A=>A.data.BucketId,rowSelection:"single"})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW BUCKET"})})]})]}),f.jsx(K3i,{show:n,onHide:A=>{r(!1),A&&e()},refreshData:e}),f.jsx(Z3i,{show:i,onHide:A=>{o(!1),c(null),A&&e()},BucketId:l}),f.jsx(Q3i,{show:a,onHide:A=>{s(!1),c(null),A&&e()},BucketId:l})]})},eTi=e=>{const{state:t,actions:n}=h3t(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await Ste();l.ok?n.setBuckets(l.data.tables[0].rows):a(l.message),i(!1)};return v.useEffect(()=>{s()},[]),t.buckets?f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(J3i,{isLoading:r,getBucketsFromAPI:s})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},tTi=e=>f.jsx(G3i,{children:f.jsx(eTi,{})}),nTi={grades:null},yY=ki({name:"__",initialState:nTi,reducers:{setGrades(e,{payload:t}){e.grades=t}}}),m3t=v.createContext({state:yY.getInitialState(),actions:yY.actions}),v3t=()=>v.useContext(m3t),rTi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:yY.getInitialState(),reducers:yY.caseReducers});return f.jsx(m3t.Provider,{value:{state:t,actions:n},children:e})},b3t=()=>f.jsx("div",{style:{display:"flex",minHeight:"300px",justifyContent:"center",alignItems:"center"},children:f.jsx(Kt,{})}),y3t=async()=>await new Ye().callV2("[STEEL].[GetGrades]",[]),iTi=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.GradeId}),n.push({name:"Name",value:e.GradeName}),n.push({name:"Enabled",value:e.IsActive}),n.push({name:"Comments",value:e.Comments}),await t.callV2("[STEEL].[UpsertCatGrade]",n)},oTi=async e=>{const t=new Ye,n=[{name:"GradeId",value:e}];return await t.callV2("[STEEL].[DeleteGrade]",n)},M3t=async({gradeId:e,elementId:t,minValue:n,maxValue:r,aimValue:i})=>{const o=new Ye,a=[{name:"GradeId",value:e},{name:"ElementId",value:t},{name:"MinValue",value:n??null},{name:"MaxValue",value:r??null},{name:"AimValue",value:i??null}];return await o.callV2("[LAB].[UpsertGradeChemistryLimit]",a)},C3t=async({source:e,target:t})=>{const n=new Ye,r=[{name:"SourceGradeId",value:e},{name:"TargetGradeId",value:t}];return await n.callV2("[LAB].[CopyGradeChemistryLimits]",r)},aTi=async e=>{const t=new Ye,n=[{name:"GradeId",value:e}];return await t.callV2("[LAB].[GetCatGradeChemistryLimitsDE]",n)},sTi=async(e,t)=>{const n=new Ye,r=[{name:"GradeId",value:e},{name:"ElementId",value:t}];return await n.callV2("[LAB].[DeleteGradeChemistryLimit]",r)};var w5={},UKe;function lTi(){if(UKe)return w5;UKe=1;var e=ri(),t=ii();Object.defineProperty(w5,"__esModule",{value:!0}),w5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");return w5.default=i,w5}var cTi=lTi();const uTi=qn(cTi),dTi=({setSelectedRowData:e,setShowModal:t,handleNewGrade:n})=>({getMenuOptions:i=>{let o=[];return o=o.concat([{name:"New Grade",key:"new_grade",onClick:()=>{n()},icon:f.jsx(Jo,{})}]),i&&(o=o.concat([{name:"Edit Grade",key:"edit_grade",onClick:()=>{e(i),t("update")},icon:f.jsx(Fo,{})},{name:"Delete Grade",key:"delete_grade",onClick:()=>{e(i),t("delete")},icon:f.jsx(Mo,{})},{name:"Duplicate Grade",key:"duplicate_grade",onClick:()=>{e({...i,GradeName:`${i.GradeName} (Copy)`,IsDuplicate:!0}),t("create")},icon:f.jsx(uTi,{})}])),o}}),pTi=Et(()=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),hTi=({setSelectedRowData:e,setShowModal:t,showContextMenu:n})=>{const{state:r}=v3t(),i=pTi(),o={display:"flex",alignItems:"center",justifyContent:"center"};return{rows:r.grades?.map(l=>({...l}))||[],columnDefs:[{field:"GradeName",headerName:"Name",minWidth:20,flex:1,cellStyle:o,sortable:!0},{field:"-",cellRenderer:l=>f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:i.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(Ne,{onClick:()=>{(async()=>(e(l.data),t("update")))()},title:"Edit",children:f.jsx(Fo,{style:{height:"auto"},color:"primary"})}),f.jsx(Ne,{onClick:()=>{e(l.data),t("delete")},title:"Delete",children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Ne,{onClick:()=>n(event,l.data,"gradeContext"),title:"Options",children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,maxWidth:180,filter:!1,autoHeaderHeight:!0}]}},fTi=({show:e,onHide:t,selectedRowData:n})=>{const[r,i]=v.useState(!1),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await oTi(n?.GradeId);l.ok||a(l.message),t(!0),i(!1)};return f.jsxs(f.Fragment,{children:[f.jsxs(We,{title:"DELETE GRADE",open:e==="delete",handleClose:()=>t(!1),maxWidth:"md",children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:[r&&f.jsx(b3t,{}),!r&&f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(vt,{children:["Are you sure you want to delete"," ",f.jsx("strong",{children:n?.GradeName})," grade?"]})})})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"secondary",onClick:s,children:"DELETE"})})]})})]}),f.jsx(yt,{error:o,onHide:()=>a("")})]})};var S5={},XKe;function gTi(){if(XKe)return S5;XKe=1;var e=ri(),t=ii();Object.defineProperty(S5,"__esModule",{value:!0}),S5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutlineOutlined");return S5.default=i,S5}var mTi=gTi();const G3e=qn(mTi),jm=({message:e,onHide:t=()=>{}})=>{const n=(o,a)=>{a!=="clickaway"&&t()},[r,i]=v.useState(!0);return v.useEffect(()=>{i(e!==""&&e!==null)},[e]),f.jsx(pr,{open:r,autoHideDuration:2500,onClose:n,children:f.jsx(Pr,{elevation:6,severity:"success",onClose:n,children:e})})},M2e={GradeId:null,GradeName:"",IsDuplicate:!0,IsActive:!0,Comments:""},vTi=Et(e=>({root:{"& .ag-icon-menu":{display:"none"},"& .ag-header-cell-label":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2vh"},"& .ag-header-cell-text":{textAlign:"center !important"},"& .ag-checkbox-input-wrapper":{margin:"0 10px"},"& .ag-cell":{alignItems:"center",padding:"0 !important",border:"unset !important",textAlign:"center"},"& .ag-header-cell":{padding:"0px !important",textAlign:"center !important",fontSize:10,display:"flex",alignItems:"center",justifyContent:"center"},"& .ag-cell-wrapper":{textAlign:"center"},"& .ag-menu-option":{cursor:"pointer"},"& .MuiDataGrid-row":{cursor:"pointer"},"& .MuiDataGrid-columnHeaderTitle, & .MuiTablePagination-caption":{fontWeight:"bold",fontSize:"12px"},"& .MuiDataGrid-columnHeaderTitleContainer":{padding:"0"},"& .MuiDataGrid-cell--textLeft":{fontSize:"12px"}},table:{height:"61vh",border:"4px solid #ccc",borderRadius:10,padding:10,margin:"20px 0 10px"}})),bTi=({gradeId:e,onSelectionChanged:t,elementsSelected:n,elementsOfGrade:r,show:i,onHide:o,setError:a,setNotificationMessage:s})=>{vTi();const[l,c]=v.useState(""),[u,d]=v.useState([]),[p,h]=v.useState(!1),[g,m]=v.useState(null),{handleSubmit:b}=jn({mode:"onChange"}),y=async T=>{if(h(!0),g){const R=n.filter(F=>!r.some(L=>L.ElementId===F.ElementId)),P=r.filter(F=>!n.some(L=>L.ElementId===F.ElementId));R.map(async F=>{const N=await M3t({gradeId:e,elementId:F.ElementId});N.ok||(o(!1),a(N.message))}),P.map(async F=>{const N=await sTi(e,F.ElementId);N.ok||(o(!1),a(N.message))})}s("The elements were modified succesfully."),o(!0),h(!1)},M=async()=>{h(!0),a("");const T=await Xzt();if(T.ok){const R=At(T,"data.tables[0].rows",[]);d(R)}else a(T.message);h(!1)},C=T=>{c(T.target.value)},x=T=>{T.api.applyColumnState({state:[{colId:"ElementName",sort:"asc",sortIndex:0}]})},w=v.useMemo(()=>u.map(({ElementId:T,ElementName:R})=>({ElementId:T,ElementName:R})),[u]),S=[{field:"",flex:1,maxWidth:100,checkboxSelection:!0,showDisabledCheckboxes:!0,sortIndex:1,sortable:!1},{field:"ElementName",headerName:"Element",flex:2,sortIndex:0,comparator:(T,R,P,F)=>{const N=P.isSelected(),L=F.isSelected();return N&&!L?-1:!N&&L?1:P.data.ElementName?.localeCompare(F.data.ElementName)}}];v.useMemo(()=>({resizable:!1,filter:!1,sortable:!0}),[]);const A=T=>{x(T);const R=T.api.getSelectedRows();t(R),T.api.onSortChanged()},z=v.useCallback(T=>{T.api.forEachNode(R=>{R.setSelected(!!R.data&&!gi(r.find(P=>P.ElementId===R.data.ElementId)))}),x(T)},[x]),O=v.useCallback(T=>{m(T.api)},[m]);return v.useEffect(()=>{g?.setGridOption("quickFilterText",l.trim())},[l,g]),v.useEffect(()=>{M().then(()=>{})},[]),f.jsx(f.Fragment,{children:f.jsx(We,{title:"COPY CHEMISTRIES LIMITS",open:i,handleClose:()=>o(!1),maxWidth:"sm",id:"ladle-modal",children:f.jsxs("form",{onSubmit:b(y),children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"20px 30px"},children:[f.jsx(D,{container:!0,md:12,xs:12,style:{padding:"0 0 10px",justifyContent:"space-between"},children:f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(je,{id:"outlined-basic",label:"Search",variant:"outlined",value:l,onChange:C,margin:"dense",style:{width:"100%"}})})}),f.jsx("div",{children:f.jsx("div",{style:{width:"100%",height:"40vh",border:"1px solid #e0e0e0",borderRadius:"5px"},children:f.jsx($n,{getRowId:T=>T.data.ElementId,onGridReady:O,rowData:w,columnDefs:S,onFirstDataRendered:z,rowSelection:"multiple",animateRows:!0,rowMultiSelectWithClick:!0,onSelectionChanged:A})})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 20px"},children:f.jsx(l2,{isSubmitLoading:!1,onHide:()=>o(!1)})})]})})})},x3t=({label:e,value:t,onChange:n=()=>{},fieldError:r,disabled:i=!1})=>{const[o,a]=v.useState([]),[s,l]=v.useState(!1),[c,u]=v.useState(""),d=async()=>{l(!0),u("");const p=await y3t();if(p.ok){const h=At(p,"data.tables[0].rows",[]);a(h)}else u(p.message);l(!1)};return v.useEffect(()=>{d().then(()=>{})},[]),f.jsxs(f.Fragment,{children:[f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:o||[],getOptionLabel:p=>p.GradeName,getOptionSelected:(p,h)=>p.GradeId===h.GradeId,disabled:i,renderInput:p=>f.jsx(je,{...p,label:e,variant:"outlined",fullWidth:!0,size:"small",error:!!r,helperText:r?.message,InputProps:{...p.InputProps,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(Kt,{color:"inherit",size:20}):p.InputProps.endAdornment})}}),value:o.find(p=>p.GradeId==t)||null,onChange:(p,h)=>{n(h?.GradeId)}}),f.jsx(yt,{error:c,onHide:()=>u(""),title:"Error loading grades"})]})},yTi=({gradeId:e,show:t,onHide:n,setError:r,setNotificationMessage:i})=>{const[o,a]=v.useState(!1),s=Oo(),{control:l,handleSubmit:c}=jn({mode:"onChange",defaultValues:M2e}),u=async d=>{a(!0);const p=await C3t({source:d.GradeId,target:e});p.ok?(i("The chemistry limits were succesfully copied."),n(d.GradeId),s(`/configuration/steel-grade/${e}`)):r(p.message),a(!1)};return f.jsx(f.Fragment,{children:f.jsx(We,{title:"COPY CHEMISTRIES LIMITS",open:t,handleClose:()=>n(),maxWidth:"sm",id:"ladle-modal",children:f.jsxs("form",{onSubmit:c(u),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"20px 30px"},children:f.jsxs(D,{container:!0,style:{display:"flex",alignItems:"center"},children:[f.jsx(D,{item:!0,xs:5,children:f.jsx(vt,{variant:"h6",children:"Copy from Grade: "})}),f.jsx(D,{item:!0,xs:7,children:f.jsx(Ue,{name:"GradeId",control:l,rules:{required:"You have to select a grade"},render:({field:{onChange:d,value:p},fieldState:h})=>f.jsx(x3t,{label:"Grade",value:p,fieldError:h.error,onChange:d})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 20px"},children:f.jsx(l2,{isSubmitLoading:!1,onHide:()=>n()})})]})})})};var A5={},YKe;function MTi(){if(YKe)return A5;YKe=1;var e=ri(),t=ii();Object.defineProperty(A5,"__esModule",{value:!0}),A5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");return A5.default=i,A5}var CTi=MTi();const xTi=qn(CTi),w3t=Et({input:{"& .MuiInputBase-root":{padding:"1px 0px 1px 2px !important"},"& .MuiOutlinedInput-input":{padding:"1px 0px 1px 4px !important",fontSize:"clamp(.7rem, 0.8rem, 1rem) !important"},"& label":{fontSize:"0.75rem !important"}}}),wTi=({label:e="C",element:t,disabled:n,refreshData:r,setError:i,setNotificationMessage:o})=>{const[a,s]=v.useState(!1),[l,c]=v.useState(!1),{control:u,handleSubmit:d,reset:p,watch:h}=jn({mode:"onChange"}),g=w3t(),m=async b=>{if(c(!0),i(""),b.MinValue<0||b.MinValue>100){i("MinValue must be between 0 and 100."),c(!1);return}if(b.MaxValue<0||b.MaxValue>100){i("MaxValue must be between 0 and 100."),c(!1);return}if(b.MinValue>b.MaxValue){i("MinValue must be less than or equal to MaxValue."),c(!1);return}if(b.AimValue!==null&&(b.AimValue<b.MinValue||b.AimValue>b.MaxValue)){i("AimValue must be between MinValue and MaxValue."),c(!1);return}const y=await M3t({gradeId:b?.GradeId,elementId:b.ElementId,minValue:b.MinValue,maxValue:b.MaxValue,aimValue:b.AimValue});c(!1),y.ok?(o("Chemistry limit saved successfully"),await r()):i(y.message),s(!1)};return v.useEffect(()=>{p(t)},[t]),f.jsxs(D,{container:!0,md:12,spacing:1,children:[f.jsx(D,{item:!0,md:4,children:f.jsx(Ue,{name:"ElementName",control:u,render:()=>f.jsx(je,{variant:"outlined",value:t.ElementName,size:"small",fullWidth:!0,disabled:!0,className:g.input})})}),f.jsx(D,{item:!0,md:2,children:f.jsx(Ue,{name:"MinValue",control:u,render:({field:b,fieldState:{error:y}})=>f.jsx(je,{variant:"outlined",value:b.value,onChange:b.onChange,size:"small",fullWidth:!0,disabled:!a,error:!!y,helperText:y?.message,className:g.input})})}),f.jsx(D,{item:!0,md:2,children:f.jsx(Ue,{name:"MaxValue",control:u,render:({field:b,fieldState:{error:y}})=>f.jsx(je,{variant:"outlined",value:b.value,onChange:b.onChange,size:"small",fullWidth:!0,disabled:!a,error:!!y,helperText:y?.message,className:g.input})})}),f.jsx(D,{item:!0,md:2,children:f.jsx(Ue,{name:"AimValue",control:u,render:({field:b,fieldState:{error:y}})=>f.jsx(je,{variant:"outlined",value:b.value,onChange:b.onChange,size:"small",fullWidth:!0,disabled:!a,error:!!y,helperText:y?.message,className:g.input})})}),f.jsx(D,{item:!0,md:2,children:a?f.jsxs(f.Fragment,{children:[f.jsx(bn,{onClick:()=>s(!1),color:"secondary",size:"small",children:f.jsx(uQ,{style:{width:20,height:20}})}),f.jsx(bn,{onClick:d(m),type:"submit",size:"small",children:f.jsx(xTi,{style:{width:20,height:20,color:"green"}})})]}):f.jsx(bn,{onClick:()=>s(!0),title:`Edit '${e}'`,color:"primary",disabled:n,size:"small",children:f.jsx(Fo,{style:{width:20,height:20}})})})]})},STi=({grade:e,modal:t,refreshData:n,onHide:r})=>{const[i,o]=v.useState(""),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(!1),p=w3t(),[h,g]=v.useState(!1),[m,b]=v.useState([]),[y,M]=v.useState([]),C=async()=>{c(!0),s("");const T=await aTi(e?.GradeId);if(T.ok){const R=sr(T,"data.tables[0].rows",[]);b(R),M(R)}else s(T.message);c(!1)},{reset:x,handleSubmit:w,control:S,formState:{dirtyFields:A},watch:z}=jn({mode:"onChange"});Object.keys(A).length!==0||t=="create";const O=async T=>{if(c(!0),t!=="delete"){const R=await iTi({...T,GradeId:T.IsDuplicate?null:T.GradeId});if(R.ok){const P=sr(R,"data.tables[0].rows[0].Id",0);P&&await C3t({source:T.GradeId,target:P}),o("The grade was saved succesfully."),await n(),r({shouldUpdate:!0,close:!1,entityId:P})}else s(R.message)}c(!1)};return v.useEffect(()=>{t!==""&&(x(e||M2e),C().then(()=>{}),c(!1))},[t,e]),f.jsxs(f.Fragment,{children:[e===null&&t!=="create"?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},children:f.jsx(vt,{children:"Select a grade or create a new one"})}):f.jsx("form",{onSubmit:w(O),children:f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,children:f.jsxs(D,{item:!0,container:!0,spacing:2,style:{margin:0},children:[f.jsxs(D,{item:!0,container:!0,spacing:2,alignItems:"center",children:[f.jsx(D,{item:!0,md:4,children:f.jsx(Ue,{name:"GradeName",control:S,render:({field:T})=>f.jsx(je,{variant:"outlined",value:T.value||"",onChange:T.onChange,size:"small",fullWidth:!0,className:p.input,label:"Grade Name"})})}),f.jsx(D,{item:!0,md:8,children:f.jsx(Ue,{name:"Comments",control:S,render:({field:T})=>f.jsx(je,{variant:"outlined",value:T.value||"",onChange:T.onChange,size:"small",fullWidth:!0,multiline:!0,rows:1,className:p.input,label:"Comments"})})})]}),f.jsxs(D,{item:!0,container:!0,spacing:2,alignItems:"center",justifyContent:"center",children:[f.jsx(D,{item:!0,md:4}),f.jsx(D,{item:!0,md:2,children:f.jsx(vt,{align:"center",style:{fontWeight:600},children:"MIN"})}),f.jsx(D,{item:!0,md:2,children:f.jsx(vt,{align:"center",style:{fontWeight:600},children:"MAX"})}),f.jsx(D,{item:!0,md:2,children:f.jsx(vt,{align:"center",style:{fontWeight:600},children:"AIM"})}),f.jsx(D,{item:!0,md:2})]}),f.jsx(D,{item:!0,container:!0,spacing:1,alignItems:"center",justifyContent:"center",style:{overflowY:"auto",height:"55vh",borderTop:"1px solid #dae3e8"},children:m.map((T,R)=>f.jsx(D,{item:!0,container:!0,children:f.jsx(wTi,{element:T,disabled:t!=="update",refreshData:()=>{n(),C()},setError:s,setNotificationMessage:o})},R))}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,md:1,xs:12,children:f.jsx(bn,{color:"primary",onClick:()=>g(!0),title:"Add new element",size:"small",children:f.jsx(G3e,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,md:5,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"outlined",color:"primary",size:"small",onClick:()=>{const T=z("GradeName");O({...M2e,GradeName:T}),d(!0)},children:"Copy Chemistries Limits"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",size:"small",onClick:()=>r({shouldUpdate:!1,close:!0}),children:"Close"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,startIcon:l&&f.jsx(Kt,{size:"1rem"}),disabled:l,variant:"contained",color:"primary",type:"submit",size:"small",children:"Save"})})]})]})})}),f.jsx(jm,{message:i,onHide:()=>o("")}),f.jsx(yt,{error:a,onHide:()=>s("")}),f.jsx(yTi,{gradeId:e?.GradeId,show:u,onHide:T=>{T&&n(),d(!1)},setNotificationMessage:o,setError:s}),f.jsx(bTi,{gradeId:e?.GradeId,show:h,onHide:T=>{T&&n(),g(!1)},onSelectionChanged:M,elementsOfGrade:m,elementsSelected:y,setNotificationMessage:o,setError:s})]})},ATi=({isLoading:e,getCatalogGradesFromAPI:t,gradeId:n})=>{const r=Pd(),i=Oo(),[o,a]=v.useState(""),[s,l]=v.useState(""),[c,u]=v.useState(null),[d,p]=v.useState(null),[h,g]=v.useState(""),{showContextMenu:m,registerConfig:b}=ws(),y=()=>{d&&d.deselectAll(),g("create"),u(null),i("/configuration/steel-grade/new")},{getMenuOptions:M}=dTi({setSelectedRowData:u,setShowModal:g,handleNewGrade:y}),{rows:C,columnDefs:x}=hTi({setSelectedRowData:u,setShowModal:g,showContextMenu:m}),{columnSimpleDefaults:w}=ku({OnEdit:O=>{g("update"),u(O)}}),S=O=>{d?.getFocusedCell()?.column.getColId()!=="-"&&O.node.isSelected()&&(u(O.data),g("update"),i(`/configuration/steel-grade/${O.data.GradeId}`))},A=E.useCallback(O=>{const T=O.node?.data;return m(event,T,"gradeContext"),T&&(O.api.deselectAll(),O.node?.setSelected(!0)),[]},[C]),z=({shouldUpdate:O,close:T,entityId:R})=>{if(T){g(""),u(null),d&&d?.deselectAll();return}R&&O&&setTimeout(()=>{const P=d?.getRowNode(String(R)),F=d?.paginationGetPageSize(),N=Math.floor((P?.rowIndex??0)/F);d?.paginationGoToPage(N),P?.setSelected(!0),u(P?.data)},0)};return v.useEffect(()=>{if(e)d?.showLoadingOverlay();else if(d?.hideOverlay(),n)if(n==="new")y();else{let O;if(d?.forEachNode(T=>{if(T.data.GradeId===Number(n))return O=T,!0}),O){const T=d?.paginationGetPageSize(),R=Math.floor((O.rowIndex??0)/T);d?.paginationGoToPage(R),O.setSelected(!0),u(O.data),g("update")}}},[e,d]),v.useEffect(()=>{b({id:"gradeContext",getOptions:M})},[]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,container:!0,justifyContent:"flex-start",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:o,onChange:O=>a(O),label:"Search grades"})}),f.jsxs(D,{item:!0,md:4,xs:12,justifyContent:"flex-end",className:r.root,container:!0,style:{height:"68vh"},children:[f.jsx(D,{item:!0,xs:12,style:{height:"92%"},className:r.borderAgGridTable,children:f.jsx($n,{rowData:C||[],columnDefs:x,defaultColDef:w,rowHeight:35,headerHeight:35,animateRows:!0,rowSelection:"single",paginationAutoPageSize:!0,getContextMenuItems:A,onGridReady:O=>p(O.api),getRowId:O=>String(O.data.GradeId),loading:e,onRowSelected:S,quickFilterText:o})}),f.jsx(D,{item:!0,md:12,xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:y,endIcon:f.jsx(Jo,{}),children:"NEW GRADE"})})]}),f.jsx(D,{item:!0,container:!0,md:7,xs:12,className:r.borderAgGridTable,style:{marginLeft:"20px"},children:f.jsx(STi,{grade:c,modal:h,refreshData:t,onHide:z})})]}),f.jsx(yt,{error:s,onHide:()=>l("")}),f.jsx(fTi,{show:h,onHide:O=>{O&&t(),u(null),g("")},selectedRowData:c})]})},OTi=e=>{const{state:t,actions:n}=v3t(),{gradeId:r}=ds(),[i,o]=v.useState(!0),[a,s]=v.useState(""),l=async()=>{o(!0);const c=await y3t();c.ok?(n.setGrades(c.data.tables[0].rows),o(!1)):s(c.message)};return v.useEffect(()=>{l()},[]),t.grades?f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{padding:"0 15px"},children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Grades"})}),f.jsx(D,{item:!0,container:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(ATi,{gradeId:r,isLoading:i,getCatalogGradesFromAPI:l})})})]}),f.jsx(yt,{error:a,onHide:()=>s("")})]}):f.jsx(b3t,{})},KKe=e=>f.jsx(rTi,{children:f.jsx(OTi,{})}),zTi={ladles:null},MY=ki({name:"__",initialState:zTi,reducers:{setLadles(e,{payload:t}){e.ladles=t}}}),S3t=v.createContext({state:MY.getInitialState(),actions:MY.actions}),A3t=()=>v.useContext(S3t),TTi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:MY.getInitialState(),reducers:MY.caseReducers});return f.jsx(S3t.Provider,{value:{state:t,actions:n},children:e})},ETi=async()=>await new Ye().callV2("[MS].[GetLadles]",[]),RTi=async e=>{const t=new Ye,n=[];return n.push({name:"LadleId",value:e.LadleId}),n.push({name:"LadleName",value:e.LadleName}),n.push({name:"IsActive",value:e.Active}),await t.callV2("[MS].[UpsertLadle]",n)},ITi=async e=>{const t=new Ye,n=[];return n.push({name:"LadleId",value:e}),await t.callV2("[MS].[DeleteLadle]",n)},PTi=async e=>{const t=new Ye,n=[];return n.push({name:"LadleId",value:e}),await t.callV2("[MS].[GetLadle]",n)},DTi=({setLadleId:e,setShowModal:t})=>({getMenuOptions:r=>{let i=[];return r?i=i.concat([{name:"New Ladle",key:"new_ladle",onClick:()=>{t("create")},icon:f.jsx(Jo,{})},{name:"Edit Ladle",key:"edit_ladle",onClick:()=>{e(r.LadleId),t("update")},icon:f.jsx(Fo,{})},{name:"Delete Ladle",key:"delete_ladle",onClick:()=>{e(r.LadleId),t("delete")},icon:f.jsx(Mo,{})}]):i=i.concat([{name:"New Ladle",key:"new_ladle",onClick:()=>{t("create")},icon:f.jsx(Jo,{})}]),i}}),kTi=Et(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),LTi=({setLadleId:e,setShowModal:t,showContextMenu:n})=>{const{state:r}=A3t(),i=kTi();return{rows:r.ladles?.map(s=>({...s}))||[],columnDefs:[{field:"LadleName",headerName:"Name",flex:1,minWidth:63,filter:!1,autoHeaderHeight:!0},{cellRenderer:s=>f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:i.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(Ne,{onClick:()=>{(async()=>(e(s.data.LadleId),t("update")))()},title:"Edit",children:f.jsx(Fo,{style:{height:"auto"},color:"primary"})}),f.jsx(Ne,{onClick:()=>{(async()=>(e(s.data.LadleId),t("delete")))()},title:"Delete",children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Ne,{style:{},onClick:l=>n(l,s.data,"ladleContext"),title:"Options",children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,maxWidth:200,filter:!1,autoHeaderHeight:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}]}},_Ti={LadleId:null,LadleName:"",Active:!0},NTi=({LadleId:e,modal:t,onHide:n})=>{const[r,i]=v.useState("CREATE"),[o,a]=v.useState(""),[s,l]=v.useState(""),[c,u]=v.useState(!1),[d,p]=v.useState(!1),h=`The ladle was ${t}d successfully`,{control:g,setValue:m,reset:b,handleSubmit:y}=jn({defaultValues:_Ti,mode:"onChange"}),M=async C=>{if(p(!0),t==="delete"){const x=await ITi(C.LadleId);x.ok?(a(h),n(!0)):l(x.message)}else{const x=await RTi(C);x.ok?(a(h),n(!0)):l(x.message)}p(!1)};return v.useEffect(()=>{t!==""&&(p(!1),b(),i(t==="create"?"CREATE":t==="update"?"EDIT":"DELETE"),t!=="create"&&(async()=>{u(!0);const C=await PTi(e);if(C.ok){const x=At(C,"data.tables[0].rows[0]",null);x&&(m("LadleId",x.LadleId),m("LadleName",x.LadleName))}else{l(C.message);return}u(!1)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:`${r} LADLE`,open:t!=="",handleClose:()=>n(!1),maxWidth:"sm",id:"ladle-modal",children:f.jsxs("form",{onSubmit:y(M),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"10px 30px"},children:!c&&f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"LadleName",control:g,rules:{required:"Name is required"},render:({field:C,fieldState:{error:x}})=>f.jsx(je,{...C,label:"Name",variant:"outlined",fullWidth:!0,size:"small",error:!!x,helperText:x?.message,disabled:t==="delete"})})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:d,onHide:n,buttonLabel:t==="delete"?"Delete":"Save",buttonColor:t==="delete"?"secondary":"primary"})})]})}),f.jsx(jm,{message:o,onHide:()=>a("")}),f.jsx(yt,{error:s,onHide:()=>l(""),title:"Error In Ladle"})]})},FTi=({getCatalogLadlesFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(""),[i,o]=v.useState(null),[a,s]=v.useState(null),[l,c]=v.useState(""),{getMenuOptions:u}=DTi({setLadleId:o,setShowModal:r}),{showContextMenu:d,registerConfig:p}=ws(),{rows:h,columnDefs:g}=LTi({setLadleId:o,setShowModal:r,showContextMenu:d}),{columnDefaults:m}=ku({OnEdit:x=>{r("update"),o(x.Id)}});m.floatingFilter=!1;const b=x=>{o(x.data.LadleId),r("update")},y=E.useCallback(x=>{const w=x.node?.data;return d(event,w,"ladleContext"),[]},[h]),M=x=>{x&&e().then(()=>{a?.paginationGoToLastPage()}),r("")};v.useEffect(()=>{t?a?.showLoadingOverlay():a?.hideOverlay()},[t,h,a]),v.useEffect(()=>{p({id:"ladleContext",getOptions:u})},[]);const C=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Ladles"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:x=>c(x),label:"Search ladles"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:C.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:h||[],columnDefs:g,getContextMenuItems:y,onRowDoubleClicked:b,getRowId:x=>String(x.data.LadleId),onGridReady:x=>s(x.api),enableCellTextSelection:!0,suppressContextMenu:!1,allowContextMenuWithControlKey:!1,rowSelection:"single",quickFilterText:l,loading:t})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r("create"),children:"NEW LADLE"})})]})]}),f.jsx(NTi,{LadleId:i,onHide:M,modal:n})]})},WTi=e=>{const{state:t,actions:n}=A3t(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await ETi();l.ok?n.setLadles(l.data.tables[0].rows):a(l.message),i(!1)};return v.useEffect(()=>{s()},[]),t.ladles?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(FTi,{isLoading:r,getCatalogLadlesFromAPI:s})})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},qTi=e=>f.jsx(TTi,{children:f.jsx(WTi,{})}),BTi={materials:null},CY=ki({name:"__",initialState:BTi,reducers:{setMaterials(e,{payload:t}){e.materials=t}}}),O3t=v.createContext({state:CY.getInitialState(),actions:CY.actions}),$3e=()=>v.useContext(O3t),jTi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:CY.getInitialState(),reducers:CY.caseReducers});return f.jsx(O3t.Provider,{value:{state:t,actions:n},children:e})},U3e=async()=>await new Ye().callV2("[STEEL].[GetMaterials]",[]),z3t=async e=>{const t=new Ye,n=[];return n.push({name:"MaterialId",value:e}),await t.callV2("[STEEL].[GetMaterial]",n)},T3t=async e=>{const t=new Ye,n=[];return n.push({name:"MaterialId",value:e.MaterialId}),n.push({name:"L1MaterialId",value:e.L1MaterialId}),n.push({name:"MaterialName",value:e.MaterialName}),n.push({name:"IsAlloy",value:e.IsAlloy}),n.push({name:"UseInEAF",value:e.UseInEAF}),n.push({name:"UseInTrim",value:e.UseInTrim}),n.push({name:"Enabled",value:e.Enabled}),await t.callV2("[STEEL].[UpsertMaterial]",n)},HTi=async e=>{const t=new Ye,n=[];return n.push({name:"MaterialId",value:e}),await t.callV2("[STEEL].[DeleteMaterial]",n)},VTi=({setMaterialId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return o?a=a.concat([{name:"New Material",key:"new_material",onClick:()=>{r(!0)},icon:f.jsx(Jo,{})},{name:"Edit Material",key:"edit_material",onClick:()=>{e(o.MaterialId),t(!0)},icon:f.jsx(Fo,{})},{name:"Delete Material",key:"delete_material",onClick:()=>{e(o.MaterialId),n(!0)},icon:f.jsx(Mo,{})}]):a=a.concat([{name:"New Material",key:"new_material",onClick:()=>{r(!0)},icon:f.jsx(Jo,{})}]),a}}),GTi=Et(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),fpe=e=>f.jsx(Qr,{checked:e.value,disabled:!0}),O5={display:"flex",alignItems:"center",justifyContent:"center"},$Ti=({setMaterialId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=$3e(),o=GTi(),a=i.materials?.map(l=>({...l}))||[],[s]=v.useState([{field:"MaterialName",headerName:"Name",minWidth:20,flex:3,cellStyle:O5},{field:"L1MaterialId",headerName:"L1 Material ID",minWidth:20,flex:1,cellStyle:O5},{field:"IsAlloy",headerName:"Is Alloy",minWidth:20,flex:1,cellRenderer:fpe,cellStyle:O5},{field:"UseInEAF",headerName:"Use in EAF",minWidth:20,flex:1,cellRenderer:fpe,cellStyle:O5},{field:"UseInTrim",headerName:"Use in Trim",minWidth:20,flex:1,cellRenderer:fpe,cellStyle:O5},{cellRenderer:l=>f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"flex-end",alignItems:"center"},children:[f.jsx(Ne,{onClick:()=>{(async()=>(e(l.data.MaterialId),t(!0)))()},children:f.jsx(Fo,{style:{height:"auto"},color:"primary"})}),f.jsx(Ne,{onClick:()=>{(async()=>(e(l.data.MaterialId),n(!0)))()},children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Ne,{style:{},onClick:c=>r(c,l.data,"catMaterialsTable"),children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,minWidth:330,maxWidth:380,filter:!1,autoHeaderHeight:!0}]);return{rows:a,columnDefs:s}},Ate={MaterialId:null,L1MaterialId:null,MaterialName:"",IsAlloy:!1,UseInEAF:!1,UseInTrim:!1,Enabled:!0},UTi=({show:e,onHide:t,materialName:n})=>{const{reset:r}=jn({defaultValues:Ate});return v.useEffect(()=>{e&&r()},[e]),f.jsx(f.Fragment,{children:f.jsxs(We,{title:"CONFIRM",open:e,id:"confirm-material-modal",handleClose:()=>t(!1),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx("p",{children:`A material with the name '${n}' already exists . Do you want to proceed?`})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"No"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,onClick:()=>t(!0),variant:"contained",color:"primary",type:"submit",children:"Yes"})})]})})]})})},XTi=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(!1),[p,h]=v.useState(!1),{state:g}=$3e(),[m,b]=v.useState(""),{register:y,control:M,getValues:C,handleSubmit:x,reset:w,formState:{errors:S}}=jn({defaultValues:Ate}),A=(P,F)=>{F!=="clickaway"&&c(!1)},z=P=>/^[a-zA-Z0-9 _-]*$/.test(P)||"No special characters",O=P=>{const F=Number(P);return P===null?"Value cannot be null":g.materials?.some(N=>N.L1MaterialId===F)?"ID already exists in materials":!isNaN(P)||"Only numbers are allowed"},T=async P=>{o(!0);const F=await U3e();F.ok?F.data.tables[0].rows.some(L=>L.MaterialName===P.Name)?(b(P.Name),d(!0)):await R(P):s(F.message)},R=async P=>{const F=await T3t(P);F.ok?(t(!0),c(!0),n()):(s(F.message),t(!1)),o(!1)};return v.useEffect(()=>{u&&p?(d(!1),R(C()),t(!0)):t(!1),o(!1)},[u,p]),v.useEffect(()=>{e&&w()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(UTi,{show:u,onHide:P=>{d(P),h(P)},materialName:m}),f.jsx(We,{title:"NEW MATERIAL",open:e,handleClose:()=>t(!1),id:"create-material-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:x(T),children:[f.jsx(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,xs:12,spacing:1,children:[f.jsxs(D,{item:!0,xs:8,children:[f.jsx(je,{...y("MaterialName",{required:"Name is required",validate:z}),label:"Name",variant:"outlined",error:!!S.MaterialName,fullWidth:!0,margin:"dense",autoComplete:"off"}),S.MaterialName&&f.jsx("span",{className:r.errorLabel,children:S.MaterialName.message})]}),f.jsxs(D,{item:!0,xs:4,children:[f.jsx(je,{...y("L1MaterialId",{required:"Material Id is required",validate:O}),label:"L1 MaterialId",variant:"outlined",error:!!S.L1MaterialId,fullWidth:!0,margin:"dense",autoComplete:"off"}),S.L1MaterialId&&f.jsx("span",{className:r.errorLabel,children:S.L1MaterialId.message})]})]}),f.jsxs(D,{item:!0,container:!0,xs:12,spacing:1,children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"IsAlloy",control:M,render:({field:P})=>f.jsx(Ra,{checkboxValue:P.value,onCheckboxChange:P.onChange,label:"Is Alloy",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"UseInEAF",control:M,render:({field:P})=>f.jsx(Ra,{checkboxValue:P.value,onCheckboxChange:P.onChange,label:"Use in EAF",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"UseInTrim",control:M,render:({field:P})=>f.jsx(Ra,{checkboxValue:P.value,onCheckboxChange:P.onChange,label:"Use in Trim",className:r.checkbox})})})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:A,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:A,children:"The material was created successfully"})})]})}),f.jsx(yt,{error:a,onHide:()=>s(""),title:"Error Creating Material"})]})},YTi=({MaterialId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(),{register:g,control:m,setValue:b,handleSubmit:y,formState:{errors:M}}=jn({defaultValues:Ate}),C=(w,S)=>{S!=="clickaway"&&o(!1)},x=async()=>{c(!0);const w=await HTi(e);w.ok?(n(!0),o(!0)):d(w.message),c(!1)};return v.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const w=await z3t(e);if(w.ok){if(w===void 0||w.data===void 0||w.data.tables===void 0||w.data.tables[0].rows===void 0||w.data.tables[0].rows[0]===void 0)return;const S=w.data.tables[0].rows[0];S&&(b("MaterialId",S.MaterialId),b("L1MaterialId",S.L1MaterialId),b("MaterialName",S.MaterialName),b("IsAlloy",S.IsAlloy),b("UseInEAF",S.UseInEAF),b("UseInTrim",S.UseInTrim),b("Enabled",S.isActive),s(!1),h(S))}})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"DELETE MATERIAL",open:t,handleClose:()=>n(!1),id:"delete-material-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:y(x),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,xs:12,spacing:1,children:[f.jsx(D,{item:!0,xs:9,children:f.jsx(je,{...g("MaterialName"),label:"Name",variant:"outlined",error:!!M.MaterialName,fullWidth:!0,value:p?.MaterialName,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{...g("L1MaterialId"),label:"L1MaterialId",variant:"outlined",error:!!M.L1MaterialId,fullWidth:!0,value:p?.L1MaterialId,margin:"dense",autoComplete:"off",disabled:!0})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(Ue,{name:"IsAlloy",control:m,render:({field:w})=>f.jsx(Ra,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Is Alloy",className:r.checkbox,disabled:!0})})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(Ue,{name:"UseInEAF",control:m,render:({field:w})=>f.jsx(Ra,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Use in EAF",className:r.checkbox,disabled:!0})})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(Ue,{name:"UseInTrim",control:m,render:({field:w})=>f.jsx(Ra,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Use in Trim",className:r.checkbox,disabled:!0})})})]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:l?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:l,variant:"contained",color:"secondary",type:"submit",children:"Delete"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:C,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:C,children:"The material was deleted successfully"})}),f.jsx(yt,{error:u,onHide:()=>d(""),title:"Error Deleting Material"})]})},KTi=({MaterialId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(),{register:g,control:m,setValue:b,handleSubmit:y,formState:{errors:M}}=jn({defaultValues:Ate}),C=(w,S)=>{S!=="clickaway"&&o(!1)},x=async w=>{c(!0);const S=await T3t(w);S.ok?(o(!0),n(!0)):d(S.message),c(!1)};return v.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const w=await z3t(e);if(w.ok){if(w===void 0||w.data===void 0||w.data.tables===void 0||w.data.tables[0].rows===void 0||w.data.tables[0].rows[0]===void 0)return;const S=w.data.tables[0].rows[0];S&&(b("MaterialId",S.MaterialId),b("L1MaterialId",S.L1MaterialId),b("MaterialName",S.MaterialName),b("IsAlloy",S.IsAlloy),b("UseInEAF",S.UseInEAF),b("UseInTrim",S.UseInTrim),b("Enabled",S.isActive),s(!1),h(S))}})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"EDIT MATERIAL",open:t,handleClose:()=>n(!1),id:"edit-material-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:y(x),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:8,children:f.jsx(je,{...g("MaterialName"),label:"Name",variant:"outlined",error:!!M.MaterialName,fullWidth:!0,value:p?.MaterialName,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(je,{...g("L1MaterialId"),label:"L1MaterialId",variant:"outlined",error:!!M.L1MaterialId,fullWidth:!0,value:p?.L1MaterialId,margin:"dense",autoComplete:"off",disabled:!0})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,spacing:1,children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"IsAlloy",control:m,render:({field:w})=>f.jsx(Ra,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Is Alloy",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"UseInEAF",control:m,render:({field:w})=>f.jsx(Ra,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Use in EAF",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"UseInTrim",control:m,render:({field:w})=>f.jsx(Ra,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Use in Trim",className:r.checkbox})})})]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:l?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:l,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:C,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:C,children:"The material was edited successfully"})}),f.jsx(yt,{error:u,onHide:()=>d(""),title:"Error Editing Material"})]})},QTi=({getCatalogMaterialFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(null),[u,d]=v.useState(null),[p,h]=v.useState(""),{getMenuOptions:g}=VTi({setMaterialId:c,setShowEditModal:o,setShowDeleteModal:s,setShowCreateModal:r}),{showContextMenu:m,registerConfig:b}=ws(),{rows:y,columnDefs:M}=$Ti({setMaterialId:c,setShowEditModal:o,setShowDeleteModal:s,showContextMenu:m}),{columnDefaults:C}=ku({OnEdit:A=>{o(!i),c(A.Id)}});C.floatingFilter=!1;const x=A=>{c(A.data.MaterialId),o(!0)},w=E.useCallback(A=>{const z=A.node?.data;return m(event,z,"catMaterialsTable"),[]},[y]);v.useEffect(()=>{b({id:"catMaterialsTable",getOptions:g})},[]);const S=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Materials"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:p,onChange:A=>h(A),label:"Search materials"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:S.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:y||[],columnDefs:M,onGridReady:A=>d(A.api),loading:t,getContextMenuItems:w,onRowDoubleClicked:x,quickFilterText:p,getRowId:A=>A.data.MaterialId,suppressContextMenu:!0,rowSelection:"single"})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW MATERIAL"})})]})]}),f.jsx(XTi,{show:n,onHide:A=>{r(!1),setTimeout(()=>{u&&A&&u.paginationGoToLastPage()},100)},refreshData:e}),f.jsx(KTi,{show:i,onHide:A=>{o(!1),c(null),A&&e()},MaterialId:l}),f.jsx(YTi,{show:a,onHide:A=>{s(!1),c(null),A&&e()},MaterialId:l})]})},ZTi=e=>{const{state:t,actions:n}=$3e(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await U3e();l.ok?n.setMaterials(l.data.tables[0].rows):a(l.message),i(!1)};return v.useEffect(()=>{s()},[]),t.materials?f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(QTi,{isLoading:r,getCatalogMaterialFromAPI:s})})}),f.jsx(yt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},JTi=e=>f.jsx(jTi,{children:f.jsx(ZTi,{})}),eEi={sections:null},xY=ki({name:"__",initialState:eEi,reducers:{setSections(e,{payload:t}){e.sections=t}}}),E3t=v.createContext({state:xY.getInitialState(),actions:xY.actions}),R3t=()=>v.useContext(E3t),tEi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:xY.getInitialState(),reducers:xY.caseReducers});return f.jsx(E3t.Provider,{value:{state:t,actions:n},children:e})},nEi=async()=>await new Ye().callV2("[STEEL].[GetCatSections]",[]),I3t=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.SectionId}),n.push({name:"Name",value:e.SectionName}),n.push({name:"IsCircular",value:e.IsCircular}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[STEEL].[UpsertCatSection]",n)},rEi=async e=>{const t=new Ye,n=[];return n.push({name:"SectionId",value:e}),await t.callV2("[STEEL].[GetCatSection]",n)},P3t={SectionId:null,SectionName:"",IsCircular:!1,IsActive:!0},iEi=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(""),{register:u,control:d,handleSubmit:p,reset:h,clearErrors:g,formState:{errors:m}}=jn({defaultValues:P3t}),b=(M,C)=>{C!=="clickaway"&&s(!1)},y=async M=>{o(!0);const C=await I3t(M);C.ok?(C.data.tables[0].rows[0].Id,s(!0),t(),n()):c(C.message),o(!1)};return v.useEffect(()=>{e&&(h(),g())},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"NEW SECTION",children:f.jsxs("form",{onSubmit:p(y),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...u("SectionName",{required:!0}),label:"Name",variant:"outlined",error:!!m.SectionName,helperText:m.SectionName?.message,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsCircular",control:d,render:({field:M})=>f.jsx(Ra,{checkboxValue:M.value,onCheckboxChange:M.onChange,label:"Is Circular",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:M})=>f.jsx(Ra,{checkboxValue:M.value,onCheckboxChange:M.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:b,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:b,children:"The section was created successfully"})}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},oEi=({SectionId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=v.useState(""),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,clearErrors:b,formState:{errors:y}}=jn({defaultValues:P3t}),M=(x,w)=>{w!=="clickaway"&&o("")},C=async x=>{d(!0);const w=await I3t(x);w.ok?(w.data.tables[0].rows[0].Id,n(!0),o("success")):s(w.message),d(!1)};return v.useEffect(()=>{t&&(b(),d(!1),(async()=>{c(!0);const x=await rEi(e);if(x.ok){const w=x.data.tables[0].rows[0];w&&(g("SectionId",w.SectionId),g("SectionName",w.SectionName),g("IsCircular",w.IsCircular),g("IsActive",w.IsActive),c(!1))}else s(x.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"EDIT SECTION",children:f.jsxs("form",{onSubmit:m(C),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Kt,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...p("SectionName",{required:!0}),label:"Name",variant:"outlined",error:!!y.SectionName,helperText:y.SectionName?.message,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsCircular",control:h,render:({field:x})=>f.jsx(Ra,{checkboxValue:x.value,onCheckboxChange:x.onChange,label:"Is Circular",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:x})=>f.jsx(Ra,{checkboxValue:x.value,onCheckboxChange:x.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:u&&f.jsx(Kt,{size:"1rem"}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i==="success",autoHideDuration:2500,onClose:M,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:M,children:"The section was updated successfully"})}),f.jsx(yt,{error:a,onHide:()=>s("")})]})},aEi=({})=>{const{state:e}=R3t();return{rows:e.sections?.map(i=>({...i}))||[],columns:[{field:"SectionName",headerName:"Name",minWidth:20,flex:1},{field:"IsCircular",headerName:"Is Circular",flex:1,cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),minWidth:80,maxWidth:150,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"IsActive",headerName:"Enabled",flex:1,cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),minWidth:80,maxWidth:150,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"actions",headerName:"",flex:1,minWidth:80,maxWidth:80,type:["editButton"]}],defaultColDef:{flex:1,minWidth:100,sortable:!0,filter:!1}}},sEi=({getCatalogSectionsFromAPI:e,isLoading:t})=>{const[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(null),[l,c]=v.useState(""),{rows:u,columns:d}=aEi({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.SectionId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Sections"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search sections"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.SectionId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.SectionId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW SECTION"})})]})]}),f.jsx(iEi,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(oEi,{show:i,onHide:g=>{o(!1),s(null),g&&e()},SectionId:a})]})},lEi=e=>{const{state:t,actions:n}=R3t(),[r,i]=v.useState(!0),[o,a]=v.useState(""),s=async()=>{i(!0);const l=await nEi();l.ok?(n.setSections(l.data.tables[0].rows),i(!1)):a(l.message)};return v.useEffect(()=>{s()},[]),t.sections?f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(sEi,{isLoading:r,getCatalogSectionsFromAPI:s})})})})}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},cEi=e=>f.jsx(tEi,{children:f.jsx(lEi,{})}),uEi=[{path:"alerts",sidebar:()=>f.jsx("div",{children:"alerts"}),main:()=>f.jsx(jAi,{})},{path:"lab-element",sidebar:()=>f.jsx("div",{children:"elements"}),main:()=>f.jsx(m3i,{})},{path:"lab-mechanical-test",sidebar:()=>f.jsx("div",{children:"mechanical tests"}),main:()=>f.jsx(A3i,{})},{path:"lab-result-source",sidebar:()=>f.jsx("div",{children:"result sources"}),main:()=>f.jsx(k3i,{})},{path:"lab-sample-type",sidebar:()=>f.jsx("div",{children:"sample types"}),main:()=>f.jsx(H3i,{})},{path:"caster-molds",sidebar:()=>f.jsx("div",{children:"Molds"}),main:()=>f.jsx(szi,{})},{path:"caster-mold-sizes",sidebar:()=>f.jsx("div",{children:"Mold Sizes"}),main:()=>f.jsx(XOi,{})},{path:"caster-lost-strand-types",sidebar:()=>f.jsx("div",{children:"Lost Strand Types"}),main:()=>f.jsx(EOi,{})},{path:"caster-pourback-reasons",sidebar:()=>f.jsx("div",{children:"Pourback Reasons"}),main:()=>f.jsx(hzi,{})},{path:"caster-low-tonnage-reasons",sidebar:()=>f.jsx("div",{children:"Low Tonnage Reasons"}),main:()=>f.jsx(_Oi,{})},{path:"eaf-phase-events",sidebar:()=>f.jsx("div",{children:"Phase Events"}),main:()=>f.jsx(FAi,{})},{path:"steel-grade",sidebar:()=>f.jsx("div",{children:"grades"}),main:()=>f.jsx(KKe,{})},{path:"steel-grade/:gradeId",sidebar:()=>f.jsx("div",{children:"grades"}),main:()=>f.jsx(KKe,{})},{path:"steel-ladle",sidebar:()=>f.jsx("div",{children:"ladles"}),main:()=>f.jsx(qTi,{})},{path:"steel-section",sidebar:()=>f.jsx("div",{children:"sections"}),main:()=>f.jsx(cEi,{})},{path:"steel-material",sidebar:()=>f.jsx("div",{children:"materials"}),main:()=>f.jsx(JTi,{})},{path:"steel-buckets",sidebar:()=>f.jsx("div",{children:"buckets"}),main:()=>f.jsx(tTi,{})},{path:"delay-categories",sidebar:()=>f.jsx("div",{children:"Delay Categories"}),main:()=>f.jsx(_zi,{})},{path:"delay-codes-eaf",sidebar:()=>f.jsx("div",{children:"EAF Delay Codes"}),main:()=>f.jsx(GKe,{delayAreaAssetName:"EAF"})},{path:"delay-codes-caster",sidebar:()=>f.jsx("div",{children:"CASTER Delay Codes"}),main:()=>f.jsx(GKe,{delayAreaAssetName:"Caster"})}],dEi=({option:e})=>{const t=ql(),n={backgroundColor:t.palette.background.paper,color:t.palette.primary.main,fontWeight:600};return f.jsxs(f.Fragment,{children:[f.jsxs(tp,{subheader:f.jsx(Bv,{style:n,children:"Laboratory"}),children:[f.jsx(ya,{button:!0,selected:e==="lab-element",component:Yo,to:"/configuration/lab-element",children:f.jsx(ia,{primary:"Elements"})}),f.jsx(ya,{button:!0,selected:e==="lab-mechanical-test",component:Yo,to:"/configuration/lab-mechanical-test",children:f.jsx(ia,{primary:"Mechanical Tests"})}),f.jsx(ya,{button:!0,selected:e==="lab-result-source",component:Yo,to:"/configuration/lab-result-source",children:f.jsx(ia,{primary:"Result Sources"})}),f.jsx(ya,{button:!0,selected:e==="lab-sample-type",component:Yo,to:"/configuration/lab-sample-type",children:f.jsx(ia,{primary:"Sample Types"})})]}),f.jsx(la,{}),f.jsxs(tp,{subheader:f.jsx(Bv,{style:n,children:"Caster"}),children:[f.jsx(ya,{button:!0,selected:e==="caster-molds",component:Yo,to:"/configuration/caster-molds",children:f.jsx(ia,{primary:"Molds"})}),f.jsx(ya,{button:!0,selected:e==="caster-mold-sizes",component:Yo,to:"/configuration/caster-mold-sizes",children:f.jsx(ia,{primary:"Mold Sizes"})}),f.jsx(ya,{button:!0,selected:e==="caster-lost-strand-types",component:Yo,to:"/configuration/caster-lost-strand-types",children:f.jsx(ia,{primary:"Lost Strand Types"})}),f.jsx(ya,{button:!0,selected:e==="caster-pourback-reasons",component:Yo,to:"/configuration/caster-pourback-reasons",children:f.jsx(ia,{primary:"Pourback Reasons"})}),f.jsx(ya,{button:!0,selected:e==="caster-low-tonnage-reasons",component:Yo,to:"/configuration/caster-low-tonnage-reasons",children:f.jsx(ia,{primary:"Low Tonnage Reasons"})})]}),f.jsx(la,{}),f.jsxs(tp,{subheader:f.jsx(Bv,{style:n,children:"Steel"}),children:[f.jsx(ya,{button:!0,selected:e==="steel-grade",component:Yo,to:"/configuration/steel-grade",children:f.jsx(ia,{primary:"Grades"})}),f.jsx(ya,{button:!0,selected:e==="steel-ladle",component:Yo,to:"/configuration/steel-ladle",children:f.jsx(ia,{primary:"Ladles"})}),f.jsx(ya,{button:!0,selected:e==="steel-section",component:Yo,to:"/configuration/steel-section",children:f.jsx(ia,{primary:"Sections"})}),f.jsx(ya,{button:!0,selected:e==="steel-material",component:Yo,to:"/configuration/steel-material",children:f.jsx(ia,{primary:"Materials"})}),f.jsx(ya,{button:!0,component:Yo,to:"/configuration/eaf-phase-events",selected:e==="eaf-phase-events",children:f.jsx(ia,{primary:"Phase Events"})}),f.jsx(ya,{button:!0,selected:e==="steel-buckets",component:Yo,to:"/configuration/steel-buckets",children:f.jsx(ia,{primary:"Buckets"})})]}),f.jsx(la,{}),f.jsx(tp,{subheader:f.jsx(Bv,{style:n,children:"Settings"}),children:f.jsx(ya,{button:!0,selected:e==="alerts",component:Yo,to:"/configuration/alerts",children:f.jsx(ia,{primary:"Alerts"})})}),f.jsx(la,{}),f.jsxs(tp,{subheader:f.jsx(Bv,{style:n,children:"Delays"}),children:[f.jsx(ya,{button:!0,selected:e==="delay-categories",component:Yo,to:"/configuration/delay-categories",children:f.jsx(ia,{primary:"Categories"})}),f.jsx(ya,{button:!0,selected:e==="delay-codes-eaf",component:Yo,to:"/configuration/delay-codes-eaf",children:f.jsx(ia,{primary:"EAF Codes"})}),f.jsx(ya,{button:!0,selected:e==="delay-codes-caster",component:Yo,to:"/configuration/delay-codes-caster",children:f.jsx(ia,{primary:"Caster Codes"})})]})]})},pEi=[uEi,dEi];function hEi(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true"||e==="1"||e==="True"||e==="TRUE"||e==="yes")return!0;if(e==="false"||e==="0")return!1}else if(typeof e=="number")return!!e;return!1}const fEi=Et(e=>({menuButton:{marginRight:e.spacing(2),color:"inherit",display:"flex",alignItems:"center",textTransform:"none"},link:{textDecoration:"none",color:"inherit",display:"block",width:"100%"},menuItemText:{},iconMargin:{marginLeft:e.spacing(.5)}})),gEi=[{id:"meltshop",label:"MELTSHOP",items:[{label:"Heats",to:"/meltshop-heats"},{label:"Heat Report",to:"/heat-report/latest/eaf"},{label:"Month Report",to:"/month-report"},{label:"Ladle Status",to:"/ladle-status"}]},{id:"eaf",label:"EAF",items:[{label:"Data Entry",to:"/eaf-data-entry"},{label:"Processes",to:"/eaf-processes"},{label:"Processes Data Report",to:"/eaf-processes-data-report"}]},{id:"caster",label:"CASTER",items:[{label:"Data Entry",to:"/caster-data-entry"},{label:"Processes",to:"/caster-processes"},{label:"Production Management",to:"/production-management"},{label:"Caster Counters",to:"/caster-counters"},{label:"Failed Startups",to:"/failed-startups"}]},{id:"lab",label:"LAB",items:[{label:"Heat Report",to:"/heat-report/chemistry"},{label:"L3 Chemistries",to:"/lab-l3/chemistry"},{label:"L3 Mechanical",to:"/lab-l3/mechanical"}]},{id:"lab-reports",label:"LAB REPORTS",items:[{label:"Chemistry Lab Activity",to:"/report/mes-lab-activity"},{label:"Chemistries By Date",to:"/report/mes-report-chemistry"},{label:"Mechanical Lab Activity",to:"/report/mes-lab-mechanical-activity"},{label:"Mechanical By Date",to:"/report/mes-report-mechanical"},{label:"Mechanical by Heat",to:"/lab-mechanical-by-heat"},{label:"Melter Report",to:"/report/mes-report-melter"},{label:"Report Nuno Chemistries",to:"/report/mes-lab-nuno-chemistries"},{label:"Predictor Report",to:"/report/mes-report-predictor"},{label:"HRR Report",to:"/report/mes-lab-hrr"},{label:"Missed Heats Report",to:"/report/mes-lab-missed-heats"},{label:"Last 20 Chemistries",to:"/report/mes-report-last-chemistries"},{label:"Last EAF Samples",to:"/report/mes-lab-last-eaf-samples"},{label:"Slag Samples",to:"/report/mes-lab-slag-samples"},{label:"Kentucky Mechanical Activity",to:"/report/kentucky-mechanical-activity"},{label:"Kentucky Mechanical Samples By Date",to:"/report/kentucky-mechanical-sample-by-date"},{label:"Kentucky Mechanical Samples By Heat",to:"/report/kentucky-mechanical-sample-by-heat"}]},{id:"delays",label:"DELAYS",items:[{label:"Caster Manager",to:{pathname:"/caster-delays-manager"}},{label:"Caster Report",to:{pathname:"/caster-delays-report"}},{label:"Caster Pareto",to:{pathname:"/caster-delays-pareto"}},{label:"EAF Manager",to:{pathname:"/eaf-delays-manager"}},{label:"EAF Report",to:{pathname:"/eaf-delays-report"}},{label:"EAF Pareto",to:{pathname:"/eaf-delays-pareto"}}]}],mEi={id:_Ke[0].id,label:"LOGBOOK",items:_Ke[0].items.map(e=>({label:e.label,to:e.to}))},vEi=()=>{const e=fEi(),{state:{settings:t}}=Ma(),[n,r]=v.useState({}),i=hEi(At(t,"FF_LOGBOOK_ENABLED",!1)),o=(s,l)=>{r(c=>({...c,[l]:s.currentTarget}))},a=s=>{r(l=>({...l,[s]:null}))};return f.jsxs(f.Fragment,{children:[f.jsx(Ne,{component:Yo,to:"/meltshop-dashboard",className:e.menuButton,children:"HOME"}),gEi.map(s=>{const l=n[s.id]||null,c=!!l;return f.jsxs(E.Fragment,{children:[f.jsxs(Ne,{"aria-controls":`${s.id}-menu`,"aria-haspopup":"true",onClick:u=>o(u,s.id),className:e.menuButton,children:[s.label,c?f.jsx(VPe,{className:e.iconMargin}):f.jsx(GPe,{className:e.iconMargin})]}),f.jsx(e9,{id:`${s.id}-menu`,anchorEl:l,keepMounted:!0,open:c,onClose:()=>a(s.id),getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:s.items.map((u,d)=>f.jsx(lr,{component:Yo,to:u.to,onClick:()=>a(s.id),className:e.link,children:f.jsx(vt,{className:e.menuItemText,children:u.label})},`${s.id}-item-${u.label}-${d}`))})]},s.id)}),f.jsx(Ne,{component:Yo,to:"/shift-report",className:e.menuButton,children:"SHIFT REPORT"}),i&&(()=>{const s=mEi,l=n[s.id]||null,c=!!l;return f.jsxs(E.Fragment,{children:[f.jsxs(Ne,{"aria-controls":`${s.id}-menu`,"aria-haspopup":"true",onClick:u=>o(u,s.id),className:e.menuButton,children:[s.label,c?f.jsx(VPe,{className:e.iconMargin}):f.jsx(GPe,{className:e.iconMargin})]}),f.jsx(e9,{id:`${s.id}-menu`,anchorEl:l,keepMounted:!0,open:c,onClose:()=>a(s.id),getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:s.items.map((u,d)=>f.jsx(lr,{component:Yo,to:u.to,onClick:()=>a(s.id),className:e.link,children:f.jsx(vt,{className:e.menuItemText,children:u.label})},`${s.id}-item-${u.label}-${d}`))})]},s.id)})()]})},bEi={acquisitionStats:{columns:[],rows:[]}},wY=ki({name:"__",initialState:bEi,reducers:{setAcquisitionStats(e,{payload:t}){e.acquisitionStats=t}}}),D3t=v.createContext({state:wY.getInitialState(),actions:wY.actions}),k3t=()=>v.useContext(D3t),yEi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:wY.getInitialState(),reducers:wY.caseReducers});return f.jsx(D3t.Provider,{value:{state:t,actions:n},children:e})},MEi=e=>Wn(e,"MM/dd/yy HH:mm"),CEi=Sn(),xEi=e=>{const t=v.useMemo(()=>e.columns.map(i=>({headerName:i,field:i,valueGetter:o=>{const a=o.data[i];if(gi(a)||!Kfe(Number(a)))return a;const s=new Date(a);return s.toString()!=="Invalid Date"&&CEi.isDate(s)?MEi(`${a}z`):a}})),[e]),n={flex:1,autoHeight:!0,wrapText:!0,sortable:!0};return{rowData:v.useMemo(()=>e.rows,[e]),columnData:t,defaultColDef:n}},wEi=Et(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell":{textAlign:"center !important",fontSize:10},"& .ag-font-size":{fontSize:0},"& .ag-header-cell-label":{justifyContent:"center"}}})),SEi=({isLoading:e})=>{const t=wEi(),{state:n}=k3t(),[r,i]=v.useState(""),[o,a]=v.useState(null),{rowData:s,columnData:l,defaultColDef:c}=xEi(n.acquisitionStats),u=d=>{a(d.api)};return v.useEffect(()=>{o&&o.setGridOption("quickFilterText",r)},[r,o]),v.useEffect(()=>{o&&(e?o.showLoadingOverlay():o.hideOverlay())},[o,e]),f.jsxs(D,{container:!0,className:t.root,children:[f.jsx(je,{variant:"outlined",fullWidth:!0,placeholder:"Filter...",value:r,onChange:d=>i(d.target.value),size:"small"}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"80vh",minHeight:"30vh",border:"4px solid #ccc",borderRadius:10,padding:10,margin:"20px 0 10px"},className:"ag-theme-balham",children:f.jsx($n,{defaultColDef:c,onGridReady:u,rowData:s,columnDefs:l,overlayLoadingTemplate:"Loading..."})})]})},AEi=async()=>await new Ye().callV2("[SWV].[GetHeatAcquisitionStats]",[]),OEi=()=>{const[e,t]=v.useState(!0),[n,r]=v.useState(""),{state:i,actions:o}=k3t(),a=async()=>{t(!0);const s=await AEi();s.ok?o.setAcquisitionStats(s.data.tables[0]):r(s.message),t(!1)};return v.useEffect(()=>{a()},[]),f.jsxs(f.Fragment,{children:[f.jsx(Pt,{elevation:1,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",minHeight:"93vh"},children:f.jsx(SEi,{isLoading:e})}),f.jsx(yt,{error:n,onHide:()=>{r("")}})]})},zEi=()=>f.jsx(yEi,{children:f.jsx(OEi,{})}),pT=({onClick:e,disabled:t})=>f.jsx(Ne,{fullWidth:!0,variant:"outlined",disabled:t,onClick:e,startIcon:f.jsx("i",{className:"far fa-file-excel"}),style:{width:"auto",height:35,display:"flex",justifyContent:"space-between",padding:"0 14px",fontSize:14,color:`${t?"grey":"#217346"}`,border:`1px solid ${t?"grey":"#217346"}`,backgroundColor:"#fff"},children:"EXPORT TO EXCEL"}),TEi=()=>({columnData:[{headerName:"Heat",field:"HeatName",flex:1,minWidth:70,maxWidth:70,sortable:!0,cellRenderer:n=>Td({...n,link:`/caster-data-entry/${n.data.ProcessId}`})},{headerName:"Last End",field:"LastEnd",minWidth:100,valueGetter:n=>n.data.LastEnd?Wn(n.data.LastEnd,"MMM dd - HH:mm:ss"):"",flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Prev Interval [min]",field:"PrevInterval",minWidth:120,valueGetter:n=>{if(n.data.LastEnd&&n.data.Start){const r=new Date(n.data.LastEnd),o=new Date(n.data.Start).getTime()-r.getTime();return Math.round(o/(1e3*60))}return""},flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Start",field:"Start",minWidth:100,valueGetter:n=>n.data.Start?Wn(n.data.Start,"MMM dd - HH:mm:ss"):"",flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Duration [min]",field:"Duration",minWidth:120,valueGetter:n=>{if(n.data.Start&&n.data.End){const r=new Date(n.data.Start),o=new Date(n.data.End).getTime()-r.getTime();return Math.round(o/(1e3*60))}return""},flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"End",field:"End",minWidth:100,valueGetter:n=>n.data.End?Wn(n.data.End,"MMM dd - HH:mm:ss"):"",flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Next Interval [min]",field:"NextInterval",minWidth:120,valueGetter:n=>{if(n.data.End&&n.data.NextStart){const r=new Date(n.data.End),o=new Date(n.data.NextStart).getTime()-r.getTime();return Math.round(o/(1e3*60))}return""},flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Next Start",field:"NextStart",minWidth:100,valueGetter:n=>n.data.NextStart?Wn(n.data.NextStart,"MMM dd - HH:mm:ss"):"",flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Shift",field:"Shift",minWidth:80,maxWidth:80,cellStyle:{textAlign:"center"},cellRenderer:n=>f.jsx("div",{className:`custom-chip shift-chip-${n.value}`,children:n.value}),cellClass:n=>`shift-chip-${n.value}`,flex:1,sortable:!0},{headerName:"Crew",field:"Crew",minWidth:80,maxWidth:80,cellStyle:{textAlign:"center"},cellRenderer:n=>f.jsx("div",{className:`custom-chip crew-chip-${n.value}`,children:n.value}),cellClass:n=>`crew-chip-${n.value}`,flex:1,sortable:!0}],defaultColDef:{flex:1,resizable:!0}}),EEi=()=>({columnData:[{headerName:"Year",field:"Year",minWidth:80,flex:1,cellStyle:{textAlign:"center",fontWeight:"bold"},sortable:!0},{headerName:"Month",field:"MonthName",minWidth:100,flex:1,cellStyle:{textAlign:"center",fontWeight:"bold"},sortable:!0},{headerName:"Shift D",field:"ShiftD",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Shift N",field:"ShiftN",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Crew A",field:"CrewA",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Crew B",field:"CrewB",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Crew C",field:"CrewC",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Crew D",field:"CrewD",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Total",field:"TotalFailedStartups",minWidth:80,flex:1,cellStyle:{textAlign:"center",fontWeight:"bold",backgroundColor:"#f0f8ff"},sortable:!0}],defaultColDef:{flex:1,resizable:!0}}),REi=({isLoading:e,gridRef:t,rows:n})=>{const[r,i]=v.useState(null),{columnData:o}=EEi(),a=s=>{i(s.api)};return v.useEffect(()=>{r&&(e?r.showLoadingOverlay():(r.hideOverlay(),r.setGridOption("rowData",n)))},[r,e,n]),f.jsx("div",{style:{height:"70vh",width:"100%"},children:f.jsx(D,{item:!0,xs:12,style:{borderRadius:"0 0 10px 10px",height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0",borderTop:"none"},children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{onGridReady:a,rowData:n,columnDefs:o,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:s=>`${s.data.Year}-${s.data.Month}`,ref:t})})})})},kk=Et(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-header-group-cell-label ":{textAlign:"center !important",justifyContent:"center"},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center"},"& .ag-header-cell-comp-wrapper":{justifyContent:"center",alignItems:"center"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600}},relative:{position:"relative"},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},alwaysVisible:{justifyContent:"center",alignItems:"center",display:"flex"},btnModal:{display:"flex",justifyContent:"flex-end"}})),IEi=({isLoading:e,gridRef:t,rows:n})=>{const[r,i]=v.useState(null);kk();const{columnData:o}=TEi(),a=s=>{i(s.api)};return v.useEffect(()=>{r&&(e?r.showLoadingOverlay():(r.hideOverlay(),r.setGridOption("rowData",n)))},[r,e,n]),f.jsx("div",{style:{height:"70vh",width:"100%"},children:f.jsx(D,{item:!0,xs:12,style:{height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx($n,{onGridReady:a,rowData:n,columnDefs:o,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:s=>s.data.HeatName,ref:t})})})})},X3e=({shift:e,size:t="medium"})=>{const r={display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',lineHeight:"1.5",cursor:"default",fontWeight:800,color:"rgb(255, 255, 255)",...(()=>{switch(t){case"small":return{padding:"2px 6px",fontSize:"0.75rem",minWidth:"20px",height:"20px"};case"large":return{padding:"4px 12px",fontSize:"0.875rem",minWidth:"32px",height:"32px"};default:return{padding:"4px 8px",fontSize:"0.8125rem",minWidth:"24px",height:"24px"}}})()},i=o=>{switch(o){case"D":return{backgroundColor:"#DDD116",border:"1px solid rgb(224, 208, 101)"};case"N":return{backgroundColor:"rgb(161, 66, 221)",border:"1px solid rgb(183, 102, 233)"};default:return{backgroundColor:"#6c757d",border:"1px solid #6c757d"}}};return f.jsx("div",{style:{...r,...i(e)},children:e})},Y3e=({crew:e,size:t="medium"})=>{const r={display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',lineHeight:"1.5",cursor:"default",fontWeight:800,...(()=>{switch(t){case"small":return{padding:"2px 6px",fontSize:"0.75rem",minWidth:"20px",height:"20px"};case"large":return{padding:"4px 12px",fontSize:"0.875rem",minWidth:"32px",height:"32px"};default:return{padding:"4px 8px",fontSize:"0.8125rem",minWidth:"24px",height:"24px"}}})()},i=o=>{switch(o){case"A":return{color:"rgb(255, 255, 255)",backgroundColor:"#B2E08A",border:"1px solid #B2E08A"};case"B":return{color:"rgb(236, 236, 236)",backgroundColor:"#E83011",border:"1px solid #E83011"};case"C":return{color:"rgb(255, 255, 255)",backgroundColor:"#3878B4",border:"1px solid #3878B4"};case"D":return{color:"rgb(255, 255, 255)",backgroundColor:"#F3A506",border:"1px solid #F3A506"};default:return{color:"rgb(255, 255, 255)",backgroundColor:"#6c757d",border:"1px solid #6c757d"}}};return f.jsx("div",{style:{...r,...i(e)},children:e})},QKe=({size:e="medium"})=>{const n={display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',lineHeight:"1.5",cursor:"default",fontWeight:800,color:"rgb(255, 255, 255)",backgroundColor:"#6c757d",border:"1px solid #6c757d",...(()=>{switch(e){case"small":return{padding:"2px 6px",fontSize:"0.75rem",minWidth:"20px",height:"20px"};case"large":return{padding:"4px 12px",fontSize:"0.875rem",minWidth:"32px",height:"32px"};default:return{padding:"4px 8px",fontSize:"0.8125rem",minWidth:"24px",height:"24px"}}})()};return f.jsx("div",{style:n,children:"All"})},PEi=async(e,t,n,r,i,o=!1)=>{const a=new Ye,s=[];return s.push({name:"StartDate",value:e.toISOString()}),s.push({name:"EndDate",value:t.toISOString()}),s.push({name:"DelayAreaAssetId",value:n||null}),s.push({name:"Shift",value:null}),s.push({name:"Crew",value:null}),s.push({name:"IncludeMicrodelays",value:o}),await a.callV2("[DEL].[GetDelays]",s)},Ote=async()=>{const e=new Ye,t=[];return await e.callV2("[DEL].[GetDelayAssets]",t)},L3t=async()=>{const e=new Ye,t=[];return await e.callV2("[MES].[GetShiftsAndCrews]",t)},_3t=async()=>{const e=new Ye,t=[];return await e.callV2("[DEL].[GetUpsetConditionLists]",t)},ZKe=Sn(),DEi=({onFilterChange:e,initialFromDate:t,initialToDate:n,filterShift:r,onFilterShiftChange:i,filterCrew:o,onFilterCrewChange:a})=>{const[s,l]=v.useState(t),[c,u]=v.useState(n),[d,p]=v.useState([]),[h,g]=v.useState([]);v.useEffect(()=>{(async()=>{const x=await L3t();if(x.ok){const w=At(x,"data",[]),S=w?.tables[0].rows,A=w?.tables[1].rows;p(S),g(A)}})()},[]);const m=C=>{if(C){const x=C.toDate();l(x),e(x,c,r,o)}},b=C=>{if(C){const x=C.toDate();u(x),e(s,x,r,o)}},y=C=>{const x=C.target.value,w=x===""?null:x;i(w),e(s,c,w,o)},M=C=>{const x=C.target.value,w=x===""?null:x;a(w),e(s,c,r,w)};return f.jsx(Pt,{style:{minWidth:"650px",margin:"20px 0px",padding:"20px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsxs(D,{container:!0,alignItems:"center",spacing:2,children:[f.jsx(D,{item:!0,children:f.jsx(_f,{label:"From",format:"MM/DD/YYYY",value:ZKe(s),onChange:m,slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px",padding:10}}}}})}),f.jsx(D,{item:!0,children:f.jsx(_f,{label:"To",format:"MM/DD/YYYY",value:ZKe(c),onChange:b,disableFuture:!0,slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px",padding:10}}}}})}),f.jsx(D,{item:!0,children:f.jsxs(ja,{variant:"outlined",size:"small",style:{width:110},children:[f.jsx(ol,{id:"shift-select-label",children:"Shift"}),f.jsxs(cs,{labelId:"shift-select-label",id:"shift-select",value:r??"",onChange:y,label:"Shift",children:[f.jsx(lr,{value:"All",children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(QKe,{size:"small"}),f.jsx("span",{children:"All"})]})},"shift-all"),d.map(C=>f.jsx(lr,{value:C.Shift,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(X3e,{shift:C.Shift,size:"small"}),f.jsx("span",{children:C.Shift})]})},`shift-${C.Shift}`))]})]})}),f.jsx(D,{item:!0,children:f.jsxs(ja,{variant:"outlined",size:"small",style:{width:110},children:[f.jsx(ol,{id:"crew-select-label",children:"Crew"}),f.jsxs(cs,{labelId:"crew-select-label",id:"crew-select",value:o??"",onChange:M,label:"Crew",children:[f.jsx(lr,{value:"All",children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(QKe,{size:"small"}),f.jsx("span",{children:"All"})]})},"crew-all"),h.map(C=>f.jsx(lr,{value:C.Crew,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(Y3e,{crew:C.Crew,size:"small"}),f.jsx("span",{children:C.Crew})]})},`crew-${C.Crew}`))]})]})})]})})},kEi=Et(e=>({tabsContainer:{display:"flex",justifyContent:"center",marginBottom:0,position:"relative"},tabs:{minHeight:42,"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:2}},tab:{minHeight:42,textTransform:"none",fontWeight:500,fontSize:14,marginRight:2,backgroundColor:"#f8f9fa",color:"#6c757d",border:"1px solid #E0E0E0",borderBottom:"1px solid #E0E0E0",borderRadius:"8px 8px 0 0",padding:"10px 20px",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:"#e9ecef",opacity:1},"&.Mui-selected":{backgroundColor:"#ffffff",color:"#1976d2",borderColor:"#E0E0E0",borderBottom:"1px solid #ffffff",transform:"translateY(1px)"},"&:last-child":{marginRight:0}}})),LEi=({viewMode:e,onViewModeChange:t})=>{const n=kEi(),r=(i,o)=>{t(o)};return f.jsx(Tn,{className:n.tabsContainer,children:f.jsxs(_at,{value:e,onChange:r,className:n.tabs,variant:"standard",children:[f.jsx(KN,{value:"detailed",label:"Detailed View",icon:f.jsx(ist,{}),className:n.tab}),f.jsx(KN,{value:"grouped",label:"Grouped View",icon:f.jsx(O1n,{}),className:n.tab})]})})},gpe=Sn(),_Ei=()=>{const e=v.useRef(null),{shiftInfo:t}=na(),n=gpe(t?.CurrentStart).format("MM-DD-YYYY"),[r,i]=v.useState([]),[o,a]=v.useState([]),[s,l]=v.useState("detailed"),[c,u]=v.useState({fromDate:gpe.utc().subtract(1,"month").toDate(),toDate:gpe.utc().toDate(),shift:"All",crew:"All"}),[d,p]=v.useState(""),h=async()=>{const m=await fOi({...c,shift:c.shift==="All"?null:c.shift,crew:c.crew==="All"?null:c.crew});m.ok?(i(m.data.tables[0].rows),m.data.tables.length>1&&a(m.data.tables[1].rows)):p(m.message)};v.useEffect(()=>{h()},[c]);const g=()=>{if(e.current&&e.current.api){const m={skipHeader:!1,skipFooters:!0,skipGroups:!0,fileName:`Failed-Startup-${s==="grouped"?"Grouped":"Detailed"}-${n}.xlsx`,sheetName:s==="grouped"?"Failed Startup Grouped":"Failed Startup",processCellCallback:b=>b.value??""};e.current.api.exportDataAsExcel(m)}else p("Unable to export data. Please try again.")};return f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:`Failed Startup ${"- "+s[0].toUpperCase()+s.slice(1)}`}),f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"20px 20px",height:"93vh",backgroundColor:"#f2f4f7"},children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,container:!0,spacing:2,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Failed Startups"})})}),f.jsx(D,{item:!0,md:"auto",xs:"auto",children:f.jsx(D,{item:!0,container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2,children:f.jsx(D,{item:!0,children:f.jsx(DEi,{onFilterChange:(m,b,y,M)=>u({fromDate:m,toDate:b,shift:y,crew:M}),initialFromDate:c.fromDate,initialToDate:c.toDate,filterShift:c.shift,onFilterShiftChange:m=>u(b=>({...b,shift:m})),filterCrew:c.crew,onFilterCrewChange:m=>u(b=>({...b,crew:m}))})})})}),f.jsx(D,{item:!0,xs:"auto",style:{marginLeft:"auto"},children:f.jsx(pT,{onClick:g})}),f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"center",children:f.jsx(LEi,{viewMode:s,onViewModeChange:l})}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,children:s==="detailed"?f.jsx(IEi,{rows:r,isLoading:!1,gridRef:e}):f.jsx(REi,{rows:o,isLoading:!1,gridRef:e})})]})}),f.jsx(yt,{error:d,onHide:()=>p("")})]})},NEi=()=>f.jsx(_Ei,{}),K3e=()=>f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"},children:f.jsx(Kt,{size:"3rem"})}),FEi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,errorMessage:"",notificationMessage:"",selectedHeat:null,selectedOption:null,searchHeatName:null,heatResults:[],heatOptions:[],heatReport:null,chemistryHeatReport:null,showExternalsHeats:!1},SY=ki({name:"__",initialState:FEi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setHeatResults(e,{payload:t}){e.heatResults=t},setHeatReport(e,{payload:t}){e.heatReport=t},setChemistryHeatReport(e,{payload:t}){e.chemistryHeatReport=t},setSelectedHeat(e,{payload:t}){e.selectedHeat=t},setSearchHeatName(e,{payload:t}){e.searchHeatName=t},setHeatItems(e,{payload:t}){e.heatOptions=t},setSelectedOption(e,{payload:t}){e.selectedOption=t},setShowExternalsHeats(e,{payload:t}){e.showExternalsHeats=t},nextHeat(e){e.selectedHeat!==null&&e.selectedHeat.NextHeatName!==null&&(e.searchHeatName=e.selectedHeat.NextHeatName)},previousHeat(e){e.selectedHeat!==null&&e.selectedHeat.PreviousHeatName!==null&&(e.searchHeatName=e.selectedHeat.PreviousHeatName)}}}),N3t=v.createContext({state:SY.getInitialState(),actions:SY.actions}),F3t=()=>v.useContext(N3t),WEi=()=>{const[e,t]=Fi.useComplexState({initialState:SY.getInitialState(),reducers:SY.caseReducers});return f.jsx(N3t.Provider,{value:{state:e,actions:t},children:f.jsx(jzn,{})})},qEi=Sn(),BEi=async(e,t,n)=>{const r=new Ye,i=[];return i.push({name:"ShiftId",value:e}),i.push({name:"HeatId",value:parseInt(t)}),i.push({name:"IncludeIsExternal",value:n||null}),await r.callV2("[SWV].[GetHeatsByShift]",i)},jEi=async e=>{const t=new Ye,n=[];return n.push({name:"IsExternal",value:e}),await t.callV2("[MS].[GetLastestHeats]",n)},HEi=async(e,t)=>{const n=new Ye,r=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100},{name:"IsExternal",value:t}];return await n.callV2("[MS].[SearchHeats]",r)},C2e=async(e,t)=>{const n=new Ye,r=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100},{name:"IsExternal",value:t}];return await n.callV2("[MS].[SearchHeatsWithProcessId]",r)},W3t=async()=>{const e=new Ye,t=[],n=await e.callV2("[STEEL].[GetGrades]",t);return n.ok&&(n.data.tables[0].rows=n.data.tables[0].rows.map(r=>({...r,DateTimeModified:r.DateTimeModified?qEi.utc(r.DateTimeModified).toDate():null}))),n},VEi=async()=>{const e=new Ye,t=[];return await e.callV2("[MS].[GetLadles]",t)},dz=async e=>{const t=new Ye,n=[];return Object.keys(e).forEach(i=>n.push({name:i,value:e[i]})),await t.callV2("[MS].[UpsertHeat]",n)},GEi=async e=>{const t=new Ye,n=[];return n.push({name:"HeatId",value:e}),await t.callV2("[MS].[DeleteHeat]",n)},$Ei=({show:e,onClose:t,gradeId:n,heatId:r})=>{const[i,o]=v.useState(n),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(""),[p,h]=v.useState(!1),g=async()=>{n!==null?s(!0):await m()},m=async()=>{h(!0);const b=await dz({HeatId:r,GradeId:i});b.ok?(d("Grade updated successfully"),t(!0)):c(b.message),h(!1)};return v.useEffect(()=>{e&&o(n)},[e]),f.jsxs(f.Fragment,{children:[f.jsxs(We,{title:"Modify Cast Grade",open:e,id:"confirm-modal",handleClose:()=>t(!1),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(x3t,{value:i,onChange:o,disabled:!1,label:"Select a Grade"})})})}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:3,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>{t()},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:3,children:f.jsx(ka,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",onClick:g,isLoading:p,children:"Save"})})]})})]}),f.jsx(il,{title:"Confirm change",message:"Are you sure you want to change the Cast Grade?",open:a,onClose:b=>{b==="OK"&&m(),s(!1)}}),f.jsx(jm,{message:u,onHide:()=>d("")}),f.jsx(yt,{error:l,onHide:()=>c(""),title:"Error"})]})};Et(e=>({defaultButton:{padding:"6px 16px",fontSize:"0.875rem",lineHeight:1.75,borderRadius:"4px"}}));const q3t=C3({overrides:{MuiButton:{root:{padding:"6px 12px !important",fontSize:"0.7rem !important",borderRadius:4,lineHeight:1.5}},MuiButtonGroup:{grouped:{minWidth:30,padding:"4px 4px !important"}},MuiTextField:{root:{fontSize:"clamp(.7rem, 0.8rem, 1rem)","& .MuiInputBase-root":{minHeight:"35px !important",padding:"4px 0px 4px 2px !important"},"& .MuiOutlinedInput-input":{padding:"4px 0px 4px 4px !important",fontSize:"clamp(.7rem, 0.8rem, 1rem) !important"},"& label":{fontSize:"0.75rem !important"},"& .MuiOutlinedInput-multiline":{padding:"8px 14px !important"},"& .MuiOutlinedInput-root:not(.Mui-disabled)":{"&:hover":{cursor:"default","&:not(.Mui-focused) .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)"}},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)",borderWidth:"1px"},"& .MuiOutlinedInput-input":{cursor:"default !important",caretColor:"transparent !important",userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",msUserSelect:"none"}}}},MuiTable:{root:{minWidth:300}},MuiTableCell:{root:{padding:4,"&.narrow":{whiteSpace:"nowrap",maxWidth:"80px"}},head:{fontWeight:"bold"}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:"#f5f5f5 !important"}}},MuiFormControl:{root:{margin:"2px 0",width:"100%"}},MuiInputLabel:{outlined:{transform:"translate(14px, 12px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}},MuiOutlinedInput:{root:{height:"35px"},input:{padding:"8px 14px !important",height:"19px !important",fontSize:"clamp(.7rem, 0.8rem, 1rem) !important"}},MuiSelect:{select:{height:"35px !important",lineHeight:"35px !important",paddingTop:0,paddingBottom:0},outlined:{paddingRight:"32px !important"}},MuiMenuItem:{root:{fontSize:"0.7rem",minHeight:"35px",lineHeight:"35px !important"}}}}),UEi=C3({overrides:{MuiTextField:{root:{"& .MuiOutlinedInput-root":{height:"60px !important"},"& .MuiInputLabel-outlined":{fontSize:"24px !important",transform:"translate(14px, 18px) scale(1) !important"},"& .MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.5) !important",backgroundColor:"white",padding:"10 4px !important"},"& .MuiOutlinedInput-input":{fontSize:"24px !important",padding:"18px 14px !important"}}}}}),B3t=({iconButton:e,showNext:t,showPrevious:n,value:r,isProcessLoading:i=!1,secondValue:o,onButtonClick:a,onNext:s,onPrevious:l,onLast:c,onChange:u,onBlur:d,onFocus:p})=>{Oo();const[h,g]=v.useState(""),[m,b]=v.useState(!1),[y,M]=v.useState([]),[C,x]=v.useState({Name:r.HeatName,Id:r.HeatId}),[w,S]=v.useState(!1),[A,z]=v.useState(""),O=v.useRef(A);O.current=A;const T=v.useCallback(aB(async F=>{b(!0);try{if(F.length>=2){const N=await C2e(F,!1);if(N.ok){const L=N.data.tables[0].rows;O.current===F&&M(L)}else g(N.message)}if(F.length===0){const N=await C2e(F,!1);N.ok?O.current===F&&M(N.data.tables[0].rows):g(N.message)}}catch{g("An error occurred while searching"),M([])}finally{b(!1)}},1500),[]),R=(F,N)=>{N?N.Id!==r.HeatId&&(x(N),u&&u(N.Id),setTimeout(()=>{document.getElementById("dummyDiv")?.focus()},500)):x(null)};v.useEffect(()=>(T(A),()=>{T.cancel()}),[A,T]);const P=v.useMemo(()=>C&&!y.some(F=>F.Id===C.Id)?[C,...y]:y,[y,C]);return v.useEffect(()=>{!w&&!m&&!i&&A!==r.HeatName&&x({Name:r.HeatName,Id:r.HeatId})},[w,A,r,m,i]),f.jsx(Ow,{theme:UEi,children:f.jsxs(f.Fragment,{children:[f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,direction:"row",alignItems:"center",justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(bn,{"aria-label":"previous",color:"primary",disabled:!n,onClick:()=>{l?.(r.PreviousHeatId)},children:f.jsx(dQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,style:{minWidth:"129px"},children:f.jsx(Ki,{autoHighlight:!0,blurOnSelect:!0,clearOnEscape:!0,selectOnFocus:!0,popupIcon:null,options:P,getOptionLabel:F=>F?.Name||"Unlinked",getOptionSelected:(F,N)=>F.Id===N.Id,value:C,onChange:R,inputValue:A,onInputChange:(F,N)=>{z(N)},onFocus:F=>{S(!0),p&&p()},onBlur:F=>{S(!1),d&&d()},loading:m,renderInput:F=>f.jsx(je,{...F,label:"Heat name",variant:"outlined",size:"medium",InputProps:{...F.InputProps,style:{padding:"0 3px 0px 8px"},endAdornment:f.jsx(ac,{position:"end",children:f.jsx(bn,{size:"small",title:r.HeatId?"Unlink":"Link",onClick:a,style:{color:r.HeatId?"red":"#3f51b5"},children:m?f.jsx(Kt,{size:"1rem"}):e})})}})})}),f.jsx(D,{item:!0,children:f.jsx(bn,{"aria-label":"next",color:"primary",disabled:!t,onClick:()=>{s?.(r.NextHeatId)},children:f.jsx(pQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,children:f.jsx(bn,{color:"primary",onClick:c,disabled:!t,title:"Last process",children:f.jsx(gQ,{style:{cursor:"pointer"}})})})]})})}),f.jsx(yt,{error:h,onHide:()=>g("")})]})})},Gl=Et(e=>({materialTable:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-cell":{color:"black"},"& .ag-header-group-cell-label ":{textAlign:"center !important",justifyContent:"center",fontSize:".8rem !important",color:"black"},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center",fontSize:".8rem !important",padding:2},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-header-cell, .ag-header-cell-group-cell, .ag-header-group-text":{padding:2,color:"black"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600},"& .first-column-cell":{fontSize:".8rem !important",fontWeight:"bold",color:"black"},"& .ag-status-bar":{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,padding:e.spacing(.5,1),fontSize:13,fontWeight:"bold",border:"none"},height:"20.5rem"},strandTable:{"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}},dynamicHeight:{height:t=>{const n=t?.rowCount??4;return`${Math.min(350+(n-4)*50,550)}px`}},borderAgGridTable:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px "},manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"},fileTabsRoot:{background:"transparent",minHeight:0,borderBottom:"none"},fileTabsIndicator:{display:"none"},fileTabRoot:{backgroundColor:e.palette.background.default,border:`1px solid ${e.palette.divider}`,borderBottom:"none",borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,textTransform:"none",minHeight:60,fontSize:20,padding:e.spacing(1,2),marginRight:e.spacing(1),"&:hover":{backgroundColor:e.palette.action.hover},"&$fileTabSelected":{backgroundColor:e.palette.background.paper,fontWeight:e.typography.fontWeightMedium}},fileTabSelected:{},container:{display:"flex",flexWrap:"nowrap",width:"100%"},field:{flex:1,minWidth:0},field2:{flex:2,minWidth:0},leftField:{"& .MuiOutlinedInput-root":{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"none"}},rightField:{"& .MuiOutlinedInput-root":{borderTopLeftRadius:0,borderBottomLeftRadius:0}},checkbox:{padding:0,margin:0},inputAdornment:{margin:0},input:{paddingRight:e.spacing(1)},outlinedTextarea:{width:"100%",padding:"10px 12px",border:`1px solid ${e.palette.grey[400]}`,borderRadius:e.shape.borderRadius,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,transition:e.transitions.create(["border-color","box-shadow"]),"&:hover":{borderColor:e.palette.text.primary},"&:focus":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 2px ${e.palette.primary.light}`,outline:"none"},"&::placeholder":{color:e.palette.text.secondary,opacity:1}},assetTitle:{display:"flex",justifyContent:"center",alignItems:"center",userSelect:"none",height:"100%"}}));Et(e=>({manualAutoButton:{minWidth:"5px",width:"25px",height:"25px",padding:"6px 8px",cursor:"auto"}}));const AY=e=>{switch(e){case"S":return{name:"Scheduled",color:"#0288D1",letter:"S"};case"M":return{name:"Melting",color:"#FF7043",letter:"M"};case"T":return{name:"Tapped",color:"#FFD600",letter:"T"};case"O":return{name:"Opened",color:"#43A047",letter:"O"};case"C":return{name:"Closed",color:"#607D8B",letter:"C"};case"R":return{name:"Returned",color:"#8D6E63",letter:"R"};case"F":return{name:"Finished",color:"#3F51B5",letter:"F"};default:return{name:"Unknown",color:"#484848",letter:"X"}}},XEi=Sn(),YEi=Et(e=>({infoCardContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",[e.breakpoints.down("sm")]:{justifyContent:"flex-start"}},infoCard:{maxWidth:"200px",minWidth:"170px",width:"100%"}})),KEi=({getStringValue:e,setShowGradeModal:t,getDataFromAPI:n,onNext:r,onPrevious:i})=>{YEi(),Gl();const o=ql(),a=Oo(),{state:s,actions:l}=F3t(),c=s.chemistryHeatReport,u=c?{HeatId:c.HiddenHeatId||0,HeatName:c.HeatName||"",NextHeatId:c.NextHeatId||null,PreviousHeatId:c.PreviousHeatId||null,NextHeatName:c.NextHeatName||null,PreviousHeatName:c.PreviousHeatName||null,LadleName:c.Ladle||null,HeatsOnLadle:c.HeatCountLadle||null,TapDate:c.ProductionDate||null,TapShift:c.Shift||null,TapCrew:c.Crew||null,OpenDate:null,OpenShift:null,OpenCrew:null,FinalStatus:c.HeatStatusCode||null,SteelWeight:null,EAFProcessId:null,CASProcessId:null,Grade:c.Grade||""}:null;return f.jsx(Pt,{elevation:0,style:{border:"1px solid #ccc"},children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,md:4,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,alignContent:"center",children:u&&f.jsx(B3t,{value:u,onChange:d=>{n(d)},onBlur:()=>{},showNext:!!c?.NextHeatId,showPrevious:!!c?.PreviousHeatId,onNext:r,onPrevious:i,onLast:()=>{n(null)}})},"heat-navigator")},"col-heat-navigator"),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Heat Status",value:AY(c?.HeatStatusCode??"").name,variant:"outlined",fullWidth:!0,disabled:!0,InputProps:{endAdornment:f.jsx(ac,{position:"start",children:f.jsx("div",{style:{width:"26px",height:"26px",borderRadius:4,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold",backgroundColor:c?.HeatStatusCode?AY(c.HeatStatusCode).color:"#ccc"},children:c?.HeatStatusCode})})}})},"heat-status"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Production Date",value:c?.ProductionDate?`${XEi(c?.ProductionDate).format("MM/DD/YYYY")} - Shift ${c?.Shift} - Crew ${c?.Crew}`:"",variant:"outlined",fullWidth:!0,disabled:!0})},"date-shift-crew")]})},"col-main-data-1"),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Programmed Grade",value:e(c?.ProgrammedGrade),variant:"outlined",fullWidth:!0,disabled:!0})},"programmed-grade"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Cast Grade",value:e(c?.Grade),variant:"outlined",fullWidth:!0,disabled:c?.HeatStatusCode!=="F"&&c?.HeatStatusCode!=="O",onClick:()=>{t(!0)},InputProps:{style:{cursor:"pointer"}}})},"cast-grade")]})},"col-main-data-2"),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Sections",value:e(c?.Sections),variant:"outlined",fullWidth:!0,disabled:!0})},"sections")})},"col-main-data-3"),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",justifyContent:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",size:"large",disabled:!s.selectedHeat?.HeatId,style:{backgroundColor:o.palette.info.main,color:o.palette.info.contrastText},onClick:()=>{const d=s.selectedHeat?.HeatId;d&&a(`/heat-report/${d}/lab`)},children:"Heat Report"})},"heat-report-button")})},"col-heat-report")]})})})},QEi=e=>{const{coloringEnabled:t,onToggleColoring:n}=e;return f.jsxs(D,{container:!0,alignItems:"center",spacing:2,style:{padding:"10px 10px",justifyContent:"space-between"},children:[f.jsxs(D,{item:!0,style:{display:"flex",alignItems:"center",gap:"16px"},children:[f.jsxs(D,{container:!0,spacing:1,alignItems:"center",style:{width:"auto"},children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:20,height:20,backgroundColor:"#ffa500",border:"1px solid rgba(0,0,0,0.2)"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Below minimum limit"})})]}),f.jsxs(D,{container:!0,spacing:1,alignItems:"center",style:{width:"auto"},children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:20,height:20,backgroundColor:"#f26b6b",border:"1px solid rgba(0,0,0,0.2)"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Above maximum limit"})})]})]}),f.jsx(D,{item:!0,children:f.jsx(So,{control:f.jsx(dP,{checked:t,onChange:r=>n(r.target.checked),color:"primary",size:"small"}),label:f.jsx("span",{style:{fontSize:"inherit"},children:"Enable Coloring"}),labelPlacement:"start",style:{marginRight:0}})})]})},ZEi=Sn(),JEi=({elementList:e,coloringEnabled:t,onToggleColoring:n})=>{const{rowData:r,chemistryGroupCol:i}=v.useMemo(()=>{const u={},d={},p={},h={},g={};e&&e.length>0&&e.forEach(x=>{const w=`${x.SampleTypeName||"?"}${x.SampleSequence??""}`,S=x.ElementName;S&&(u[S]||(u[S]={order:x.Order??1/0,decimals:x.Decimals??4},p[S]=null,h[S]=null,g[S]=!1),x.Value!==null&&x.Value<0&&(g[S]=!0),x.MinValue!==null&&(p[S]===null||x.MinValue<p[S])&&(p[S]=x.MinValue),x.MaxValue!==null&&(h[S]===null||x.MaxValue>h[S])&&(h[S]=x.MaxValue),d[w]||(d[w]={id:w,SampleTypeName:x.SampleTypeName||"",SampleSequence:x.SampleSequence??null,Reception:x.Reception||null}),d[w][S]={value:x.Value,status:x.Status,minValue:x.MinValue,maxValue:x.MaxValue,decimals:u[S].decimals})});const m=Object.keys(u).sort((x,w)=>{const S=u[x].order,A=u[w].order;return S!==A?S-A:x.localeCompare(w)}),b=[{headerName:"Sample",valueGetter:x=>x.data?x.data.id:"",minWidth:69,maxWidth:69,flex:1},{headerName:"Time",minWidth:62,maxWidth:62,resizable:!0,valueGetter:x=>!x.data||x.data.id==="MIN"||x.data.id==="MAX"?"":x.data.Reception?ZEi(x.data.Reception).format("HH:mm"):"",flex:1}],y=m.map(x=>{const w=u[x].decimals,A=g[x]||p[x]!==null&&p[x]<0||h[x]!==null&&h[x]<0?7:0,z=43+w*7+A;return{headerName:x,minWidth:z,flex:1,valueGetter:O=>{if(!O.data)return null;const T=O.data[x];return T&&typeof T=="object"?T.value:null},valueFormatter:O=>{if(O.value===null||O.value===void 0)return"-";let T=w;if(O.data){const R=O.data[x];R&&typeof R=="object"&&(T=R.decimals??w)}return typeof O.value=="number"?O.value.toFixed(T):"-"},cellClassRules:{"cell-below-min":O=>{if(!t||O.rowIndex!==O.api.getDisplayedRowCount()-3||!O.data||O.data.id==="MIN"||O.data.id==="MAX")return!1;const T=O.data[x];return!!(T&&typeof T=="object"&&T.status==="Below")},"cell-above-max":O=>{if(!t||O.rowIndex!==O.api.getDisplayedRowCount()-3||!O.data||O.data.id==="MIN"||O.data.id==="MAX")return!1;const T=O.data[x];return!!(T&&typeof T=="object"&&T.status==="Above")}},type:"numericColumn"}}),M={headerName:"Chemistry",children:[...b,...y]},C=Object.values(d);if(m.length>0){const x={id:"MIN",SampleTypeName:"MIN",SampleSequence:null,Reception:null},w={id:"MAX",SampleTypeName:"MAX",SampleSequence:null,Reception:null};m.forEach(S=>{const A=u[S].decimals;x[S]={value:p[S],decimals:A},w[S]={value:h[S],decimals:A}}),C.push(x,w)}return{rowData:C,chemistryGroupCol:M}},[e,t]),o=u=>u.data&&(u.data.id==="MIN"||u.data.id==="MAX")?{backgroundColor:"#f0f0f0"}:{},a=v.useMemo(()=>i?i.children||[]:[],[i]),s=v.useMemo(()=>({sortable:!1,editable:!1,suppressMenu:!0,flex:1}),[]),l=v.useMemo(()=>({statusBarReference:QEi}),[]),c=v.useMemo(()=>({statusPanels:[{statusPanel:"statusBarReference",align:"left",statusPanelParams:{coloringEnabled:t,onToggleColoring:n}}]}),[t,n]);return{columns:a,defaultColDef:s,rowData:r,getRowStyle:o,frameworkComponents:l,statusBar:c}},eRi=Et(e=>({gridWrapper:{"& .ag-cell.cell-below-min":{backgroundColor:" #ffa500",fontWeight:"bold"},"& .ag-cell.cell-above-max":{backgroundColor:" #f26b6b",fontWeight:"bold"},"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}}})),tRi=({elementList:e,coloringEnabled:t,onToggleColoring:n})=>{const r=Gl(),i=eRi(),{columns:o,rowData:a,getRowStyle:s,frameworkComponents:l,statusBar:c}=JEi({elementList:e,coloringEnabled:t,onToggleColoring:n}),u=73+a.length*35+2;return f.jsx(f.Fragment,{children:f.jsx(Pt,{className:r.borderAgGridTable,elevation:0,style:{margin:"10px 0px"},children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:i.gridWrapper,style:{height:`${Math.max(u,100)}px`,minWidth:"100%"},children:f.jsx($n,{rowData:a,columnDefs:o,suppressRowClickSelection:!0,suppressPaginationPanel:!0,suppressContextMenu:!0,getRowId:p=>p.data.id,getRowStyle:s,noRowsOverlayComponent:()=>"No chemistry data available",components:l,statusBar:c})})})})})},nRi=Et(e=>({infoCardContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",[e.breakpoints.down("sm")]:{justifyContent:"flex-start"}},infoCard:{maxWidth:"200px",minWidth:"170px",width:"100%"}})),JKe=e=>{nRi();const t=Oo(),{state:n,actions:r}=F3t(),{heatName:i}=ds(),[o,a]=v.useState(i||null),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState([]),[h,g]=v.useState(!0);v.useEffect(()=>{a(i??null)},[i]);const m=x=>x==null?"":String(x),b=async x=>{const w=await C2e(x,!1);if(w.ok&&w.data&&w.data.tables[0]?.rows.length>0){const S=w.data.tables[0].rows,z=S.find(O=>O.Name===x)||S[0];if(z){const O={HeatId:z.Id,HeatName:z.Name,IsExternal:!1,NextHeatId:null,PreviousHeatId:null,NextHeatName:null,PreviousHeatName:null,ProcessId:null};r.setSelectedHeat(O)}}},y=async x=>{l(!0);const w=await VAi(x);if(w.ok&&w.data&&w.data.tables.length>1){const S=w.data.tables[0].rows[0],A=w.data.tables[1].rows;r.setChemistryHeatReport(S),p(A||[])}else r.setChemistryHeatReport(null),p([]),w.ok||console.error(w.message);l(!1)},M=()=>{const x=n.chemistryHeatReport;if(x?.NextHeatId&&x?.NextHeatName){const w={HeatId:x.NextHeatId,HeatName:x.NextHeatName,IsExternal:x.IsExternal||!1,NextHeatId:null,PreviousHeatId:null,NextHeatName:null,PreviousHeatName:null,ProcessId:null};r.setSelectedHeat(w),t(`/heat-report/chemistry/${x.NextHeatName}`)}},C=()=>{const x=n.chemistryHeatReport;if(x?.PreviousHeatId&&x?.PreviousHeatName){const w={HeatId:x.PreviousHeatId,HeatName:x.PreviousHeatName,IsExternal:x.IsExternal||!1,NextHeatId:null,PreviousHeatId:null,NextHeatName:null,PreviousHeatName:null,ProcessId:null};r.setSelectedHeat(w),t(`/heat-report/chemistry/${x.PreviousHeatName}`)}};return v.useEffect(()=>{const x=n.selectedHeat?.HeatId??null;y(x)},[n.selectedHeat?.HeatId]),v.useEffect(()=>{i&&i!==n.selectedHeat?.HeatName?b(i):!i&&!n.selectedHeat?.HeatId&&y(null)},[i,n.selectedHeat?.HeatName]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:`${n.chemistryHeatReport?.HeatName?n.chemistryHeatReport?.HeatName+" - ":""} Chemistry Heat Report`}),f.jsx(I6,{open:n.isLoadingBackground,style:{zIndex:1e3},children:f.jsx(Kt,{color:"inherit"})}),f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:" #F2F4F7"},children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Chemistry Heat Report"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center"})}),n.chemistryHeatReport!==void 0&&n.chemistryHeatReport!==null&&f.jsx(Ow,{theme:q3t,children:f.jsx(KEi,{getStringValue:m,setShowGradeModal:u,getDataFromAPI:y,onNext:M,onPrevious:C})}),n.chemistryHeatReport!==void 0&&n.chemistryHeatReport!==null&&f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,xs:12,children:s?f.jsx("div",{style:{padding:"20px"},children:f.jsx(K3e,{})}):f.jsx(tRi,{elementList:d,coloringEnabled:h,onToggleColoring:g})})})})]})})}),f.jsx($Ei,{show:c,onClose:x=>{u(!1),x&&y(n.selectedHeat?.HeatId??null)},gradeId:n.chemistryHeatReport?.CastedGradeId||null,heatId:n.selectedHeat?.HeatId||null})]})},rRi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:new Date,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:new Date,NextEnd:new Date,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date},counters:[],errorMessage:"",notificationMessage:"",shiftId:!1},OY=ki({name:"__",initialState:rRi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setCounters(e,{payload:t}){e.counters=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t}}}),j3t=v.createContext({state:OY.getInitialState(),actions:OY.actions}),iRi=()=>v.useContext(j3t),oRi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:OY.getInitialState(),reducers:OY.caseReducers});return f.jsx(j3t.Provider,{value:{state:t,actions:n},children:e})};var z5={},eQe;function aRi(){if(eQe)return z5;eQe=1;var e=ri(),t=ii();Object.defineProperty(z5,"__esModule",{value:!0}),z5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H7V7h10v10z"}),"Memory");return z5.default=i,z5}var sRi=aRi();const dM=qn(sRi),lRi=()=>{const e=Oo(),{shiftInfo:t}=na(),n=o=>{let a=[];return o.HeatNameLink&&a.push({name:"See in Data Entry",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>r(o.HeatNameLink),icon:f.jsx(dM,{})}),o.HeatId&&(a=a.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>i(o.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),a},r=o=>{o!==null&&e(o)},i=o=>{o&&e(`/meltshop-heats/${t?.CurrentShiftId}?heatId=${o}`)};return{getMenuOptions:n,goToHeats:i,goToDataEntry:r}},cRi=Sn(),uRi=({})=>{const e=n=>n?"info-limit":"info-limit2";return{columns:[{field:"HeatName",headerName:"Heat",flex:1,minWidth:55},{field:"LadleOpen",headerName:"Open",flex:1,minWidth:57,cellRenderer:Td,cellRendererParams:{linkProperty:"HeatNameLink"},valueGetter:n=>n.data.LadleOpen?cRi(n.data?.LadleOpen).format("HH:mm"):""},{headerName:"Nozzle",children:[{field:"NozzleSize",headerName:"Size",minWidth:50,flex:1},{field:"NozzleHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.NozzleFirst)}]},{headerName:"Ladle",children:[{field:"LadleName",headerName:"#",minWidth:50,flex:1},{field:"HeatsOnLadle",headerName:"Heats",minWidth:60,flex:1},{field:"ContactTimeOnLadle",headerName:"Contact Time",minWidth:72,wrapHeaderText:!0,flex:1}]},{headerName:"Tundish",children:[{field:"TundishName",headerName:"#",minWidth:50,flex:1},{field:"TundishHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.TundishFirst)}]},{headerName:"Shroud",children:[{field:"TundishShroudName",headerName:"#",minWidth:50,flex:1},{field:"TundishShroudHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.TundishShroudFirst)}]},{headerName:"S1",children:[{headerName:"Housing",children:[{field:"S1HousingName",headerName:"Name",minWidth:60,flex:1},{field:"S1HousingHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.S1HousingFirst)}]},{headerName:"Mold",children:[{field:"S1MoldName",headerName:"Name",minWidth:60,flex:1},{field:"S1MoldHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.S1MoldFirst)}]}]},{headerName:"S2",children:[{headerName:"Housing",children:[{field:"S2HousingName",headerName:"Name",minWidth:60,flex:1},{field:"S2HousingHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.S2HousingFirst)}]},{headerName:"Mold",children:[{field:"S2MoldName",headerName:"Name",minWidth:60,flex:1},{field:"S2MoldHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.S2MoldFirst)}]}]},{headerName:"S3",type:["centerAligned"],children:[{headerName:"Housing",type:["centerAligned"],children:[{field:"S3HousingName",headerName:"Name",type:["numericColumn","numericWidth"],minWidth:58,maxWidth:90},{field:"S3HousingHeats",headerName:"Heats",type:["numericColumn","numericWidth"],minWidth:58,maxWidth:80,cellClass:n=>e(n.data.S3HousingFirst)}]},{headerName:"Mold",type:["centerAligned"],children:[{field:"S3MoldName",headerName:"Name",type:["numericColumn","numericWidth"],minWidth:58,maxWidth:90},{field:"S3MoldHeats",headerName:"Heats",type:["numericColumn","numericWidth"],minWidth:58,maxWidth:60,cellClass:n=>e(n.data.S3MoldFirst)}]}]}]}},dRi=({showDeletedProcesses:e,loadingGrid:t,rows:n})=>{const r=kk(),i=v.useRef(null),{columns:o}=uRi({}),{shiftInfo:a}=na(),{goToDataEntry:s,getMenuOptions:l}=lRi(),{showContextMenu:c,registerConfig:u}=ws(),{columnTypes:d}=ku({OnEdit:()=>{}}),p=h=>{h.preventDefault()};return v.useMemo(()=>{t&&i.current!==null&&i.current.api!==void 0?i.current.api.showLoadingOverlay():i.current!==null&&i.current.api!==void 0&&i.current.api.hideOverlay()},[t]),v.useEffect(()=>{u({id:"casterCounters",getOptions:l})},[a?.CurrentShiftId]),f.jsx("div",{onContextMenu:p,children:f.jsx(D,{container:!0,className:r.root,children:f.jsx(D,{item:!0,md:12,xs:12,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx($n,{ref:i,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:n,columnDefs:o,columnTypes:d,suppressContextMenu:!0,onRowDoubleClicked:h=>{h.data.HeatNameLink&&s(h.data.HeatNameLink)},onCellContextMenu:h=>{h.api.deselectAll(),h.node.setSelected(!0),h.event&&!e&&c(h.event,h.data,"casterCounters")}})})})})},pRi=e=>{const{state:t,actions:n}=iRi(),[r,i]=v.useState(!1),{shiftInfo:o}=na(),a=async()=>{n.setIsLoadingGrid(!0);const s=await pOi(o?.CurrentShiftId||0,r);s.ok&&s.data.tables.length>0?n.setCounters(s.data.tables[0].rows):console.log("something happened 2"),n.setIsLoadingGrid(!1)};return v.useEffect(()=>{(async()=>await a())()},[o,r]),t.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Caster Counters"}),f.jsxs(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:t.isLoadingBackground}),f.jsxs(D,{container:!0,children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:"10px"},children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Caster Counters"})}),f.jsx(qm,{}),f.jsx(D,{item:!0,xs:12,style:{marginTop:"10px"},children:f.jsx(dRi,{loadingGrid:t.isLoadingGrid,rows:t.counters||[],showDeletedProcesses:r})})]}),f.jsx(yt,{error:t.errorMessage,onHide:()=>n.setErrorMessage("")}),f.jsx(jm,{message:t.notificationMessage,onHide:()=>n.setNotificationMessage("")})]})]})},tQe=e=>f.jsx(oRi,{children:f.jsx(pRi,{})}),hRi={isLoadingPage:!1,isLoadingBackground:!1,errorMessage:"",notificationMessage:"",refreshStatus:"",lazyStart:null,processId:!1,processData:null,canRefresh:!0,refreshInPause:!1,tundishes:[],strands:null,scraps:null,elements:[],strandSpeeds:[],moldLevels:[],billetTemp:[],probes:null,lostStrands:null,pourBacks:null,moldSizes:null,tundishShrouds:null,tonnageReasons:null,scrapReasons:null,housings:null,ladles:null,grades:null,processesWithoutDeliveryTicket:[],entityEditting:null},zY=ki({name:"__",initialState:hRi,reducers:{setRefreshInPause(e,{payload:t}){typeof t=="function"?e.refreshInPause=t(e.refreshInPause):e.refreshInPause=t},setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setProcessId(e,{payload:t}){e.processId=t},setProcess(e,{payload:t}){const{processData:n,strands:r,probes:i,elements:o,lostStrands:a,strandSpeeds:s,moldLevels:l,billetTemp:c,scraps:u}=t;e.processData=n,e.strands=r,e.probes=i,e.elements=o,e.lostStrands=a,e.strandSpeeds=s,e.moldLevels=l,e.billetTemp=c,e.scraps=u},setProbes(e,{payload:t}){e.probes=t},setCatalogs(e,{payload:t}){const{tundishes:n,pourBacks:r,moldSizes:i,tundishShrouds:o,tonnageReasons:a,scrapReasons:s,housings:l,ladles:c,grades:u}=t;e.tundishes=n,e.pourBacks=r,e.moldSizes=i,e.tundishShrouds=o,e.tonnageReasons=a,e.scrapReasons=s,e.housings=l,e.ladles=c,e.grades=u},addRefreshStatus(e,{payload:t}){e.refreshStatus=t},mergeProcess(e,t){const{processData:n,strands:r,probes:i,elements:o,lostStrands:a,strandSpeeds:s,moldLevels:l,billetTemp:c,scraps:u}=t.payload;if(e.entityEditting===null)e.processData=n,e.strands=r,e.probes=i,e.elements=o,e.lostStrands=a,e.strandSpeeds=s,e.moldLevels=l,e.billetTemp=c,e.scraps=u;else{const{entity:d,index:p,field:h}=e.entityEditting;if(e.processData!=null&&d==="PROCESS"&&h!==""?e.processData={...n,[h]:e.processData[h]}:e.processData=n,e.strands!==null&&d==="STRAND"&&p>-1){const g=e.strands[p][h],m=[...r];m[p]={...e.strands[p],[h]:g},e.strands=m}else e.strands=r;if(e.probes!==null&&d==="PROBE"&&p>-1){const g=[...i];if(e.probes[p]?.ProbeId!==0){const m=e.probes[p][h];g[p]={...e.probes[p],[h]:m}}e.probes=g}else e.probes=i;e.elements=o,e.lostStrands=a,e.strandSpeeds=s,e.moldLevels=l,e.billetTemp=c,e.scraps=u}},setFocusField(e,t){const{entity:n,index:r,field:i}=t.payload;n==="PROCESS"&&e.processData===null||n==="STRAND"&&(e.strands===null||e.strands[r]===void 0||!e.strands[r].IsStrandDataManual)||n==="PROBE"&&(e.probes===null||e.probes[r]===void 0||!e.probes[r].IsProbeManual)||(e.canRefresh=!1,e.entityEditting={entity:n,index:r,field:i},e.lazyStart=new Date)},clearFocusField(e){e.entityEditting=null,e.canRefresh=!0,e.lazyStart=null},updateProcessData(e,t){const{field:n,value:r,clear:i=!1}=t.payload;if(e.processData===null)return;let o=e.processData.LadleSuperHeat||0;n==="TrimProbeTemperature"&&(o=(e.processData.F1LiquidusTemperature||0)-Number(r).valueOf()),e.processData={...e.processData,[n]:r,LadleSuperHeat:o},i&&(e.entityEditting=null,e.canRefresh=!0,e.lazyStart=null)},setProcessesWithoutDeliveryTicket(e,{payload:t}){e.processesWithoutDeliveryTicket=t||[]}}}),H3t=v.createContext({state:zY.getInitialState(),actions:zY.actions}),Wo=()=>v.useContext(H3t),fRi=({children:e})=>{const t=ds(),[n]=v.useState(t.processId===void 0?null:t.processId),[r,i]=Fi.useComplexState({initialState:zY.getInitialState(),reducers:zY.caseReducers});return v.useEffect(()=>{const o=Number(n);n==null||isNaN(o)?i.setProcessId(null):i.setProcessId(o)},[n]),f.jsx(H3t.Provider,{value:{state:r,actions:i},children:e})},gRi=({title:e,message:t,open:n,onClose:r,...i})=>{const o=()=>{r("OK")};return f.jsxs(Qu,{maxWidth:"xs",open:n,...i,children:[f.jsx(T0,{children:e}),f.jsx(ru,{dividers:!0,children:f.jsx(mM,{children:t})}),f.jsx(Ed,{children:f.jsx(Ne,{onClick:o,children:"Ok"})})]})},V3t=" #f9f871",G3t=" #000000",$3t=" #eaebec",mRi=" #f2f4f7",vRi=" #fff3cd",bRi=" #e0e0e0",yRi=" #9c27b0",MRi=" #f3e5f5",CRi=" #4caf50",xRi=" #e8f5e9",wRi=" #ff8000",nQe=" #3f51b5",U3t=({show:e,onHide:t,process:n})=>{const[r,i]=v.useState(!1),[o,a]=v.useState(""),[s,l]=v.useState([]),[c,u]=v.useState(null),[d,p]=v.useState(""),[h,g]=v.useState(""),[m,b]=v.useState(!1),y=async()=>{try{if(c===null){g("Please select a heat");return}if(gi(n))return;c.IsLinked===1?b(!0):await M()}catch(A){g(A.message)}},M=async()=>{try{i(!0);const A=await R3e(n?.ProcessId,c.HeatId);A.ok?t(!0):g(A.message)}catch(A){g(A.message)}finally{i(!1),b(!1)}},C=async()=>{if(!n)return;const A=await aY(d,n.LadleOpen);A.ok&&A.data?.tables?.[0]?.rows&&l(A.data.tables[0].rows)},x=(A,z)=>{p(z)},w=async A=>{A.key==="Enter"&&(A.preventDefault(),await C())},S=(A,z)=>{u(z)};return v.useEffect(()=>{e&&(i(!1),(async()=>{if(u(null),n==null)return;a(`Link Caster Process / Ladle Open: ${Wn(`${n.LadleOpen}`,"HH:mm")}
					 Heat: ${n.HeatName?n.HeatName:""}`);const A=await aY("",n.LadleOpen);A.ok&&A.data&&A.data.tables&&A.data.tables[0].rows&&l(A.data.tables[0].rows)})())},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Link Heat"}),f.jsxs(We,{maxWidth:"xl",open:e,handleClose:()=>{t(!0)},id:"linkCasterProcess",title:o,children:[f.jsx(We.Content,{style:{padding:"15px 30px",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:f.jsx(D,{container:!0,spacing:1,alignItems:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ki,{options:s,getOptionLabel:A=>A.HeatName,value:c,onChange:S,inputValue:d,onInputChange:x,renderOption:A=>f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("span",{children:A.HeatName}),A.IsLinked===1&&f.jsx("span",{style:{color:"red",marginLeft:"10px"},children:"(linked)"})]}),renderInput:A=>f.jsx(je,{...A,label:d?"Heat":"Search Heat",placeholder:"Search Heat",variant:"outlined",fullWidth:!0,onKeyDown:w,InputLabelProps:{style:{height:"auto",marginTop:5,display:"flex",alignItems:"center"}}})})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(ka,{fullWidth:!0,isLoading:r,disabled:r,variant:"contained",color:"primary",onClick:y,children:"Save"})})]})})]}),f.jsxs(We,{open:m,handleClose:()=>b(!1),title:"Warning",id:"warningModal",children:[f.jsx(We.Content,{children:f.jsx("p",{style:{textAlign:"center"},children:"This heat is already linked in another process. Do you want to proceed?"})}),f.jsxs(We.Actions,{children:[f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>b(!1),children:"Cancel"}),f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:M,children:"Proceed"})]})]}),f.jsx(yt,{error:h,onHide:()=>g("")})]})},SRi=({processes:e,onDeclareClick:t})=>{const n=Oo(),r=()=>{if(e.length===1)t(e[0].ProcessId);else{const i=e[0];n(`/production-management/${i.ShiftId}?processId=${i.ProcessId}&openModal=deliveryTicket`)}};return f.jsx(iQ,{position:"static",style:{backgroundColor:V3t},children:f.jsx(N6,{children:f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsxs(vt,{variant:"h6",style:{color:G3t},children:["You have ",e.length," heat",e.length>1?"s":""," without DELIVERY TICKET declared"]})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(Ne,{onClick:r,variant:"contained",color:"primary",size:"large",children:"Declare Now!"})})]})})},`delivery-ticket-alert-${e.length}`)},og=Et(e=>({materialTable:{"& .ag-status-bar":{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,padding:e.spacing(.5,1),fontSize:13,fontWeight:"bold",border:"none"},height:"20.5rem"},strandTable:{"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}},dynamicHeight:{height:t=>{const n=t?.rowCount??4;return`${Math.min(350+(n-4)*50,550)}px`}},borderAgGridTable:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px "},manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"},outlinedTextarea:{width:"100%",padding:"10px 12px",border:`1px solid ${e.palette.grey[400]}`,borderRadius:e.shape.borderRadius,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,transition:e.transitions.create(["border-color","box-shadow"]),"&:hover":{borderColor:e.palette.text.primary},"&:focus":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 2px ${e.palette.primary.light}`,outline:"none"},"&::placeholder":{color:e.palette.text.secondary,opacity:1}}})),ARi=Et(e=>({manualAutoButton:{minWidth:"5px",width:"25px",height:"25px",padding:"6px 8px",cursor:"auto"}})),hT=Et(e=>({chartHeader:{backgroundColor:e.palette.common.white,borderBottom:`1px solid ${e.palette.divider}`,padding:e.spacing(1),paddingLeft:e.spacing(3),textAlign:"left",fontSize:14,fontWeight:"bold",color:"black",fontFamily:'"Open Sans", "Lucida Grande", Arial, Verdana, Helvetica, sans-serif'}})),rW=[" #E41A1C"," #377EB8"," #4DAF4A","rgb(196, 174, 209)"],rQe=Sn(),iQe={S1:rW[0],S2:rW[1],S3:rW[2]},ORi=({billetTemp:e,processData:t})=>v.useMemo(()=>{const r=(e||[]).map(g=>({Datetime:g.Datetime,Value:g.Value??0,TagId:g.TagId?.toString()||"",TagName:g.TagName||""})).filter(g=>g.Datetime&&g.TagId&&g.TagName);if(r.length===0)return{title:{text:"No data available",left:"center",top:"center"},series:[]};const i=r.map(g=>g.Value),o=Math.min(...i).toFixed(0),a=Math.max(...i).toFixed(0),s=Math.ceil((Number(a)-Number(o))*.05),l=Math.max(0,Math.floor(Number(o))-s),c=Math.ceil(Number(a)+s),u=Math.ceil((c-l)/5),d=r.reduce((g,m)=>(g[m.TagId]||(g[m.TagId]=[]),g[m.TagId].push(m),g),{}),p={};let h=0;return Object.entries(d).forEach(([g,m])=>{const y=(m[0]?.TagName||"").substring(0,2);iQe[y]?p[g]=iQe[y]:(p[g]=rW[h%rW.length],h++)}),{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t?.HeatName} - Strand Speeds`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:g=>{const m=rQe(g[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),b=g.map(y=>`${y.seriesName}: ${y.value[1].toFixed(1)}`).join("<br>");return`Time: ${m}<br>${b}`}},legend:{data:Object.keys(d).map(g=>d[g][0].TagName).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:g=>rQe(g).format("HH:mm")}},yAxis:{type:"value",name:"°F",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:l,max:c,interval:u},series:Object.entries(d).map(([g,m])=>({name:m[0].TagName,type:"line",smooth:!0,symbol:"none",sampling:"lttb",itemStyle:{color:p[g]},data:m.map(b=>[b.Datetime.getTime(),b.Value])}))}},[e,t]),zRi=()=>{const{state:{billetTemp:e,processData:t}}=Wo(),n=og(),r=hT(),i=v.useRef(null),o=ORi({billetTemp:e,processData:t});return v.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(Pt,{className:n.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsxs("div",{className:n.materialTable,children:[f.jsx("div",{className:r.chartHeader,children:"Billet Temperature"}),f.jsx(AM,{ref:i,option:o,notMerge:!1})]})})})},IG=[" #E41A1C"," #377EB8"," #4DAF4A","rgb(196, 174, 209)"],oQe=Sn(),mpe={S1:IG[0],S2:IG[1],S3:IG[2],"Tundish Level":IG[3]},TRi=({moldLevels:e,processData:t})=>v.useMemo(()=>{const r=(e||[]).map(l=>({Datetime:l.Datetime,Value:l.Value??0,TagId:l.TagId?.toString()||"",TagName:l.TagName||""})).filter(l=>l.Datetime&&l.TagId&&l.TagName);if(r.length===0)return{title:{text:"No data available",left:"center",top:"center"},series:[]};const i=r.filter(l=>l.TagName!=="Tundish Level"),o=r.filter(l=>l.TagName==="Tundish Level"),a=[],s=[];if(i.length>0){const l=i.map(b=>b.Value),c=Math.min(...l).toFixed(0),u=Math.max(...l).toFixed(0),d=Math.ceil((Number(u)-Number(c))*.05),p=Math.max(0,Math.floor(Number(c))-d),h=Math.ceil(Number(u)+d),g=Math.ceil((h-p)/5);a.push({type:"value",name:"Mold Level (%)",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:p,max:h,interval:g});const m=i.reduce((b,y)=>(b[y.TagId]||(b[y.TagId]=[]),b[y.TagId].push(y),b),{});Object.entries(m).forEach(([b,y])=>{const M=y[0].TagName;s.push({name:M,type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:0,itemStyle:{color:mpe[M.substring(0,2)]||mpe.S1},data:y.map(C=>[C.Datetime.getTime(),C.Value])})})}if(o.length>0){const l=o.map(m=>m.Value),c=Math.min(...l).toFixed(0),u=Math.max(...l).toFixed(0),d=Math.ceil((Number(u)-Number(c))*.05),p=Math.max(0,Math.floor(Number(c))-d),h=Math.ceil(Number(u)+d),g=Math.ceil((h-p)/5);a.push({type:"value",name:"Tundish Level (FT)",position:"right",nameTextStyle:{fontSize:14,align:"right"},nameLocation:"end",min:p,max:h,interval:g}),s.push({name:"Tundish Level",type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:a.length-1,areaStyle:{},itemStyle:{color:mpe["Tundish Level"]},data:o.map(m=>[m.Datetime.getTime(),m.Value])})}return{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t?.HeatName} - Mold Level`,pixelRatio:2}}},grid:{right:o.length>0?"8%":"5%"},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:l=>{const c=oQe(l[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),u=l.map(d=>`${d.seriesName}: ${d.value[1].toFixed(1)}`).join("<br>");return`Time: ${c}<br>${u}`}},legend:{data:s.map(l=>l.name).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:l=>oQe(l).format("HH:mm")}},yAxis:a,series:s}},[e,t]),ERi=()=>{const{state:{moldLevels:e,processData:t}}=Wo(),n=og(),r=hT(),i=v.useRef(null),o=TRi({moldLevels:e,processData:t});return v.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(Pt,{className:n.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsxs("div",{className:n.materialTable,children:[f.jsx("div",{className:r.chartHeader,children:"Mold Level"}),f.jsx(AM,{ref:i,option:o,notMerge:!1})]})})})},iW=[" #E41A1C"," #377EB8"," #4DAF4A","rgb(196, 174, 209)"],aQe=Sn(),sQe={S1:iW[0],S2:iW[1],S3:iW[2]},RRi=({strandSpeeds:e,processData:t})=>v.useMemo(()=>{const r=(e||[]).map(g=>({Datetime:g.Datetime,Value:g.Value??0,TagId:g.TagId?.toString()||"",TagName:g.TagName||""})).filter(g=>g.Datetime&&g.TagId&&g.TagName);if(r.length===0)return{title:{text:"No data available",left:"center",top:"center"},series:[]};const i=r.map(g=>g.Value),o=Math.min(...i).toFixed(0),a=Math.max(...i).toFixed(0),s=Math.ceil((Number(a)-Number(o))*.05),l=Math.max(0,Math.floor(Number(o))-s),c=Math.ceil(Number(a)+s),u=Math.ceil((c-l)/5),d=r.reduce((g,m)=>(g[m.TagId]||(g[m.TagId]=[]),g[m.TagId].push(m),g),{}),p={};let h=0;return Object.entries(d).forEach(([g,m])=>{const y=(m[0]?.TagName||"").substring(0,2);sQe[y]?p[g]=sQe[y]:(p[g]=iW[h%iW.length],h++)}),{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t?.HeatName} - Strand Speeds`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:g=>{const m=aQe(g[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),b=g.map(y=>`${y.seriesName}: ${y.value[1].toFixed(1)}`).join("<br>");return`Time: ${m}<br>${b}`}},legend:{data:Object.keys(d).map(g=>d[g][0].TagName).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:g=>aQe(g).format("HH:mm")}},yAxis:{type:"value",name:"IPM",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:l,max:c,interval:u},series:Object.entries(d).map(([g,m])=>({name:m[0].TagName,type:"line",smooth:!0,symbol:"none",sampling:"lttb",itemStyle:{color:p[g]},data:m.map(b=>[b.Datetime.getTime(),b.Value])}))}},[e,t]),IRi=()=>{const{state:{strandSpeeds:e,processData:t}}=Wo(),n=og(),r=hT(),i=v.useRef(null),o=RRi({strandSpeeds:e,processData:t});return v.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(Pt,{className:n.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsxs("div",{className:n.materialTable,children:[f.jsx("div",{className:r.chartHeader,children:"Strand Casting Speed"}),f.jsx(AM,{ref:i,option:o,notMerge:!1})]})})})};var T5={},lQe;function PRi(){if(lQe)return T5;lQe=1;var e=ri(),t=ii();Object.defineProperty(T5,"__esModule",{value:!0}),T5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 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 2v20z"}),"Receipt");return T5.default=i,T5}var DRi=PRi();const X3t=qn(DRi),kRi=({children:e,isLoading:t,...n})=>f.jsxs(Ne,{...n,disabled:t,children:[t&&f.jsx(Kt,{size:"1rem"}),e]}),LRi=async()=>await new Ye().callV2("[CAS].[GetTappedHeats]",[]),RR=async({heatId:e,status:t})=>await new Ye().callV2("[CAS].[ChangeHeatStatusCommand]",[{name:"HeatId",value:e},{name:"HeatStatusCode",value:t.charAt(0)},{name:"IsManual",value:!0}]),_Ri=({show:e,onHide:t,refreshData:n,heats:r})=>{const[i,o]=v.useState(!1),[a,s]=v.useState(""),{actions:l}=Wo(),[c,u]=v.useState(null),{handleSubmit:d,control:p,reset:h}=jn({}),g=async(b,y)=>{o(!0);const M=await RR({heatId:b,status:y});if(M.ok){const C=M.data;return await n(),u(M.data.returnValue),C}else s(M.message);o(!1)},m=async b=>{o(!0);const y=await g(b?.HeatId,"O");l.setRefreshInPause(!1),y.ok?u(y.data.returnValue):s(y.message),o(!1),t(!0)};return v.useEffect(()=>{o(!1),e&&l.setRefreshInPause(!0),h()},[e]),v.useEffect(()=>{c&&n().then(window.location.href=`/caster-data-entry/${c}`)},[c]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"SELECT HEAT",open:e,handleClose:()=>t(!1),id:"select-heat-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:d(m),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"HeatId",control:p,rules:{required:"Heat is required"},render:({field:b,fieldState:{error:y}})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:r??[],getOptionLabel:M=>M.HeatName,renderInput:M=>f.jsx(je,{...M,label:"Heat",variant:"outlined",fullWidth:!0,error:!!y,size:"small",helperText:y?y.message:null}),value:r.find(M=>M.HeatId===b.value)||null,onChange:(M,C)=>{b.onChange(C?C.HeatId:null)}})})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:i,onHide:t})})]})}),f.jsx(yt,{error:a,onHide:()=>s("")})]})},NRi=({refreshData:e,process:t})=>{const{state:n,actions:r}=Wo(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(!1),[p,h]=v.useState([]),[g,m]=v.useState(null),b=t.HeatStatusCode,y=t.NextProcessId===null;t.NextProcessId;const[M,C]=v.useState(!1),[x,w]=v.useState(!1),[S,A]=v.useState(!1),[z,O]=v.useState(!1),[T,R]=v.useState(!1),[P,F]=v.useState(""),N=async()=>{const G=await LRi();if(o(!0),G.ok){const q=G.data.tables[0].rows??[];if(h(q),q.length===0&&w(!0),q.length>1)R(!0);else if(q.length===1){const $=await RR({heatId:q[0].HeatId,status:"O"});$.ok?(r.setNotificationMessage("Heat was opened successfully"),m($.data.returnValue)):F($.message)}}o(!1)},L=async G=>{if(w(!1),G!=="OK")return;const q=await RR({heatId:null,status:"O"});q.ok?(r.setNotificationMessage("Heat was opened successfully"),m(q.data.returnValue)):F(q.message),e()},W=async()=>{if(c(!0),t.HeatId){const G=await RR({heatId:t.HeatId,status:"F"});G.ok?e():F(G.message)}else F("Heat not provided");c(!1)},j=async G=>{if(O(!1),G==="OK"){if(s(!0),t.HeatId){const q=await RR({heatId:t.HeatId,status:"T"});q.ok?(window.location.href="/caster-data-entry/",e()):F(q.message)}else F("Heat not provided");s(!1)}},V=async G=>{if(A(!1),G==="OK"){if(d(!0),t.HeatId){const q=await RR({heatId:t.HeatId,status:"O"});q.ok?e():F(q.message)}else F("Heat not provided");d(!1)}};return v.useEffect(()=>{g&&e().then(window.location.href=`/caster-data-entry/${g}`)},[g]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:b==="O"?f.jsx(Ne,{fullWidth:!0,color:"primary",variant:"contained",style:{backgroundColor:!y||a?"#dcdcdd":"#ff7f00"},startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:!y||a,onClick:()=>O(!0),children:"Undo Open"}):f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:!y||b!=="F"||i,onClick:N,children:"Open"})}),f.jsx(D,{item:!0,md:12,xs:12,children:b==="F"?f.jsx(Ne,{fullWidth:!0,color:"primary",variant:"contained",style:{backgroundColor:!y||u?"#dcdcdd":"#ff7f00"},startIcon:u&&f.jsx(Kt,{size:"1rem"}),disabled:!y||u,onClick:()=>A(!0),children:"Undo Close"}):f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",startIcon:l&&f.jsx(Kt,{size:"1rem"}),disabled:!y||b!=="O"||l,onClick:W,children:"Close"})})]}),f.jsx(il,{open:x,onClose:L,title:"Warning",message:"No tapped heat is available. Do you want to create an Unlinked process?"},"open-confirmation"),f.jsx(il,{open:z,onClose:j,title:"Warning",message:"Are you sure you want to undo the open?"},"undo-open-confirmation"),f.jsx(il,{open:S,onClose:V,title:"Warning",message:"Are you sure you want to undo the close?"},"undo-close-confirmation"),f.jsx(_Ri,{refreshData:e,show:T,heats:p,onHide:()=>{C(!1),R(!1)}}),f.jsx(yt,{error:P,onHide:()=>F("")})]})},FRi=Et(e=>({heatStatus:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"4px",minWidth:"24px",height:"24px"},heatStatusContainer:{display:"flex",justifyContent:"center",alignItems:"center",gap:"8px"}})),WRi={S:{name:"Scheduled",color:" #0288D1",letter:"S"},M:{name:"Melting",color:" #FF7043",letter:"M"},T:{name:"Tapped",color:" #D2AF00",letter:"T"},O:{name:"Opened",color:" #43A047",letter:"O"},C:{name:"Closed",color:" #607D8B",letter:"C"},R:{name:"Returned",color:" #8D6E63",letter:"R"},F:{name:"Finished",color:" #3F90B5",letter:"F"}},qRi=({heatStatus:e})=>{const t=FRi(),n=" #D6D6D6",r=e?WRi[e]:null;return f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx("div",{className:t.heatStatusContainer,children:r?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:t.heatStatus,style:{backgroundColor:r.color||n,color:"white"},children:f.jsx(vt,{variant:"body2",children:r.letter})}),f.jsx(vt,{children:r.name})]}):f.jsx(vt,{style:{color:"red"},children:"Unlinked"})})})})})},BRi=({process:e,onButtonClick:t,loading:n})=>f.jsx(f.Fragment,{children:f.jsx(bn,{size:"small",title:e.HeatId?"Unlink":"Link",onClick:t,style:{color:e.HeatId?"red":"#3f51b5"},children:n?f.jsx(Kt,{size:"1.5rem"}):e?.HeatId===null?f.jsx(est,{style:{cursor:"pointer"}}):f.jsx(tst,{style:{cursor:"pointer"}})})}),jRi=Et(e=>({container:{display:"flex",flexWrap:"nowrap",width:"100%"},field:{flex:1,minWidth:0},field2:{flex:2,minWidth:0},leftField:{"& .MuiOutlinedInput-root":{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"none"}},rightField:{"& .MuiOutlinedInput-root":{borderTopLeftRadius:0,borderBottomLeftRadius:0}},checkbox:{padding:0,margin:0},inputAdornment:{margin:0},input:{paddingRight:e.spacing(1)}})),HRi=({ladleLife:e,disabled:t,isSubmitLoading:n})=>{const r=jRi();return f.jsxs("div",{className:r.container,children:[f.jsx(je,{className:`${r.field} ${r.leftField}`,label:"Ladle Life",variant:"outlined",disabled:t||n,size:"small",value:e.HeatsOnLadle||"",InputProps:{style:{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"}}}),f.jsx(je,{className:`${r.field} ${r.rightField}`,variant:"outlined",disabled:t||n,size:"small",value:e.ContactTimeOnLadle,InputProps:{style:{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}}})]})},UI=({checkboxValue:e,label:t,disabled:n=!1,onCheckboxChange:r,onFocus:i,onBlur:o})=>f.jsx(je,{fullWidth:!0,size:"small",variant:"outlined",label:t,value:"",disabled:!0,onFocus:i,onBlur:o,InputLabelProps:{style:{color:"black"}},InputProps:{endAdornment:f.jsx(ac,{position:"end",children:f.jsx(Qr,{checked:e,onChange:a=>r(a.target.checked),color:"primary",disabled:n,size:"small"})})}}),VRi=Sn(),f$=({value:e,format:t,label:n,onChange:r,onBlur:i,disabled:o=!1,disableOpenPicker:a=!1,error:s="",pause:l,resume:c})=>{const u={};t&&(u.format=t);const d=()=>{l()};return f.jsx(xd,{ampm:!1,disableFuture:!0,disableOpenPicker:a,disabled:o,timezone:Ic.getInstance().getServerTimeZone(),label:n,value:VRi(e),onChange:p=>{r(p?.toDate()||null)},onAccept:p=>{r(p?.toDate()||null),i(p?.toDate()||null)},openTo:t?.includes("HH:mm")&&!t?.includes("DD/MM/YYYY")?"hours":"day",views:t?.includes("HH:mm")&&!t?.includes("DD/MM/YYYY")?["hours","minutes"]:["year","month","day","hours","minutes"],timeSteps:{minutes:1},slotProps:{textField:{variant:"outlined",fullWidth:!0,onFocus:d,onBlur:()=>{c(),i(e||null)},error:!!s,helperText:s,size:"small",sx:{fontSize:"10px !important"},InputLabelProps:{sx:{fontSize:"14px"}},InputProps:{sx:{height:"35px",maxWidth:"100%",fontSize:"10px !important"}},inputProps:{sx:{fontSize:"14px !important"}}}},...u})},GRi=(e,t)=>{if(e===null)return"";let n;switch(t){case"hours":n=e*3600;break;case"minutes":n=e*60;break;case"seconds":n=e;break;default:return""}const r=Math.floor(n/3600),i=Math.floor(n%3600/60),o=Math.round(n%60);return`${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(o).padStart(2,"0")}`},$Ri=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1,unit:o})=>{const a=GRi(e,o);return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:a,type:"text",InputProps:{readOnly:!0},style:{minWidth:"50px"},inputProps:{style:{padding:"10px 10px"}}})},El=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1,pause:o,resume:a,maxDecimals:s,error:l})=>{const c=()=>{o()},u=d=>{const p=d.target.value;if(p===""){n(null);return}let h;s==null||s<0?h=/^(0|[1-9]\d*)(\.\d*)?$/:s===0?h=/^(0|[1-9]\d*)$/:h=new RegExp(`^(0|[1-9]\\d*)(\\.\\d{0,${s}})?$`),h.test(p)&&(p.endsWith(".")&&s!==void 0&&s>0?n(Number(p.slice(0,-1))):n(Number(p)))};return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:e===null?"":e,type:"number",error:!!l,helperText:l,onFocus:c,onChange:u,onKeyDown:d=>{(d.key.toLowerCase()==="e"||d.key==="-"||d.key==="+")&&d.preventDefault(),d.key==="."&&(s===0||e!==null&&String(e).includes("."))&&d.preventDefault(),d.key==="Enter"&&(a(),r())},onBlur:()=>{a(),r()},style:{minWidth:"50px"},inputProps:{style:{padding:"10px"},step:s&&s>0?`0.${"0".repeat(s-1)}1`:"1"}})},fT=Et(e=>({processNavigator:{"& .MuiInputAdornment-root":{padding:"8px 0px",margin:"0px",width:"20px"}},linkedHeat:{"& .MuiOutlinedInput-input":{paddingLeft:"11px",width:"10px",fontSize:"1.5rem !important"},"& .MuiOutlinedInput-notchedOutline":{minHeight:"40px",height:"45px"}},unlinkedHeat:{"& .MuiOutlinedInput-input":{paddingLeft:"11px",width:"10px",fontSize:"1rem !important"}},inputLabel:{fontSize:"0.8rem","&.MuiInputLabel-shrink":{fontSize:"0.8rem"}},checkbox:{padding:0,margin:0},inputAdornment:{margin:"4px"},input:{paddingRight:e.spacing(1)}})),cQe=({textFieldValue:e,checkboxValue:t,label:n,onNumberFieldChange:r,onCheckboxChange:i,onBlur:o,textFieldDisabled:a=!0,checkboxDisabled:s=!1,isSubmitLoading:l=!1,pause:c,resume:u})=>{const d=fT(),p=()=>{c()};return f.jsx(f.Fragment,{children:f.jsx(je,{fullWidth:!0,disabled:a,label:n,size:"small",variant:"outlined",value:e||"",type:"number",onFocus:p,onChange:h=>{(h.target.value===""||/^(0|[1-9]\d*)(\.\d*)?$/.test(h.target.value))&&r(Number(h.target.value))},onKeyDown:h=>{h.key==="Enter"&&(u(),o())},onBlur:()=>{u(),o()},style:{minWidth:"50px"},InputProps:{classes:{input:d.input},endAdornment:f.jsx(ac,{position:"end",className:d.inputAdornment,children:f.jsx(Qr,{color:"primary",size:"small",disabled:s||l,className:d.checkbox,checked:!!t,onChange:h=>{i(h.target.checked)}})})}})})},URi=Et(e=>({select:{"& .MuiSelect-select":{padding:"10px",display:"flex",alignItems:"center"}}})),RN=({label:e,options:t,value:n,onChange:r,onBlur:i,onFocus:o,nullable:a=!1,disabled:s=!1})=>{const l=URi(),c=u=>{const d=u.target.value;r(d)};return f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(ol,{id:`${e}-selector`,children:e}),f.jsxs(cs,{fullWidth:!0,disabled:s,labelId:`${e}-selector`,id:`${e}-selector`,value:n||"",onChange:c,label:e,inputProps:{style:{padding:"10px"}},className:l.select,onBlur:i,onFocus:o,children:[a&&f.jsx(lr,{value:"",children:"None"},`${e}-null`),t.map(u=>f.jsx(lr,{value:u.value,children:u.label},`${e}-${u.label}`))]})]}),f.jsx(yt,{error:"",onHide:()=>{}})]})},uQe=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1,pause:o,resume:a})=>{const s=()=>{o()};return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:e||"",onFocus:s,onChange:l=>{n(l.target.value)},onKeyDown:l=>{l.key==="Enter"&&(a(),r(e))},onBlur:()=>{a(),r(e)},style:{minWidth:"50px"}})},XRi=({reloadProcess:e})=>{const{state:t,actions:n}=Wo(),r=t.processData||{},i=Oo();return{handleOnNextProcess:()=>{r===null||r.NextProcessId===null||(n.clearFocusField(),(async()=>await e(r.NextProcessId))())},handleOnPreviousProcess:()=>{r===null||r.PrevProcessId===null||(n.clearFocusField(),(async()=>await e(r.PrevProcessId))())},handleOnLastProcess:()=>{n.clearFocusField(),(async()=>await e(null))()},handleGoToProcessesByShiftId:p=>{p!==null&&(window.location.href="/caster-processes/"+p+"?processId="+r.ProcessId)},handleGoToProcess:p=>{(async()=>await e(p))()},handleGotToHeatReport:p=>{p!==null&&(window.location.href="/heat-report/chemistry/"+p)},handleGoToHeatsPage:(p,h)=>{p!==null&&i(`/meltshop-heats/${p}?heatId=${h}`)}}};function vpe(e){return e.endsWith(".")&&(e=e.replace(".","")),!isNaN(Number(e))}const Q3e=()=>{const{state:e,actions:t}=Wo();return{saveProcessData:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||e.processData.HeatId===null&&l!=="TundishShroudId"||c===null&&l!=="ForceHeatsOnNozzle"&&l!=="ForceHeatsOnTundish"&&l!=="ForceHeatsOnTundishShroud"&&l!=="Scrap1Pieces"&&l!=="Scrap2Pieces"&&l!=="Scrap1Length"&&l!=="Scrap2Length"&&l!=="Scrap1CodeId"&&l!=="Scrap2CodeId")return;t.setIsLoadingBackground(!0);const u=await h$(e.processData.ProcessId,l,c);t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)},saveProcess:async(l,c,u)=>{if(t.setIsLoadingBackground(!0),!ew(l))return!1;const d=await T3e(l,c,u);return t.setIsLoadingBackground(!1),d.ok?t.setNotificationMessage("Ladle Open and Close were saved successfully"):t.setErrorMessage(d.message),d.ok},saveHeat:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||c===null)return;t.setIsLoadingBackground(!0);const u=await dz({HeatName:e.processData.HeatName,ShiftId:e.processData.ShiftId,GradeId:null,SteelWeight:e.processData.SteelWeight,LadleId:e.processData.LadleId,IsExternal:null,[l]:c,HeatId:e.processData.HeatId});t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)},saveLadleHeat:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||c===null)return;t.setIsLoadingBackground(!0);const u=await dz({HeatName:e.processData.HeatName,ShiftId:e.processData.ShiftId,GradeId:null,SteelWeight:e.processData.SteelWeight,LadleId:c,IsExternal:null,HeatId:e.processData.HeatId});t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)},saveGradeHeat:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||c===null)return;t.setIsLoadingBackground(!0);const u=await dz({HeatName:e.processData.HeatName,ShiftId:e.processData.ShiftId,GradeId:c,SteelWeight:e.processData.SteelWeight,LadleId:e.processData.LadleId,IsExternal:null,HeatId:e.processData.HeatId});t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)},saveTrimData:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||c===null)return;t.setIsLoadingBackground(!0);const u=await tOi(e.processData.ProcessId,l,c);t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)}}},dQe=Sn(),Z3e=({reloadProcess:e,refreshData:t})=>{const{state:n,actions:r}=Wo(),i=n.processData||{},{saveProcessData:o,saveHeat:a,saveLadleHeat:s,saveProcess:l,saveGradeHeat:c}=Q3e();return{handleBooleanValueChanged:(A,z)=>{r.updateProcessData({field:A,value:z,clear:!0}),o(A,z)},handleBooleanCountersChanged:(A,z)=>{r.updateProcessData({field:A,value:z,clear:!0}),o(A,z?1:null).then(async()=>{await t()})},handleOptionValueChanged:(A,z)=>{r.updateProcessData({field:A,value:z,clear:!0}),o(A,z)},handleLadleValueChanged:(A,z)=>{r.updateProcessData({field:A,value:Number(z).valueOf(),clear:!0}),s(A,z)},handleGradeValueChanged:(A,z)=>{r.updateProcessData({field:A,value:Number(z).valueOf(),clear:!0}),c(A,z)},handleNumericValueChanged:(A,z)=>{vpe(z)&&r.updateProcessData({field:A,value:Number(z).valueOf()})},handleOnBlurTextValue:(A,z)=>{z.trim()!==""&&(r.clearFocusField(),o(A,z))},handleOnBlurNumericValueForProcess:(A,z)=>{vpe(z)&&(r.clearFocusField(),o(A,z))},handleOnBlurNumericValueForHeat:(A,z)=>{vpe(z)&&(r.clearFocusField(),a(A,z))},handleOnBlurBooleanValueForHeat:(A,z)=>{r.clearFocusField(),a(A,!!z).then(async()=>{await t()})},handleProcessUpdate:async()=>{r.clearFocusField();const A=dQe.utc(i.LadleOpen);let z=i.LadleClose?dQe.utc(i.LadleClose):null;z&&(z.set("year",A.get("year")),z.set("month",A.get("month")),z.set("date",A.get("date")),z<A&&z.add(1,"days"));const O=z?.toDate()||null;await l(i.ProcessId,A.toDate(),O),await e(i.ProcessId)},handleOnFocus:A=>r.setFocusField({entity:"PROCESS",index:-1,field:A}),handleValueChanged:(A,z)=>r.updateProcessData({field:A,value:z})}},YRi=Et(e=>({inputRoot:{"& .MuiInputLabel-outlined":{fontSize:14,transform:"translate(14px, 14px) scale(1)"},"& .MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:"translate(12px, -6px) scale(0.75)"},"& .MuiOutlinedInput-input":{padding:"27px 14px 10px",fontSize:"1rem !important"}}})),KRi=({iconButton:e,showNext:t,showPrevious:n,value:r,isProcessLoading:i=!1,secondValue:o,onButtonClick:a,onNext:s,onPrevious:l,onLast:c,onChange:u,onBlur:d,onFocus:p})=>{const h=Oo(),[g,m]=v.useState(""),[b,y]=v.useState(!1),[M,C]=v.useState([]),[x,w]=v.useState({HeatName:r.HeatName,ProcessId:r.ProcessId}),[S,A]=v.useState(!1),[z,O]=v.useState(""),T=YRi(),R=v.useRef(z);R.current=z;const P=v.useCallback(aB(async L=>{y(!0);try{if(L.length>=2){const W=await YAi(L);if(W.ok){const j=W.data.tables[0].rows;R.current===L&&C(j)}else m(W.message)}if(L.length===0){const W=await XAi();W.ok?R.current===L&&C(W.data.tables[0].rows):m(W.message)}}catch{m("An error occurred while searching"),C([])}finally{y(!1)}},1500),[]),F=(L,W)=>{W?W.ProcessId!==r.ProcessId&&(w(W),h(`/caster-data-entry/${W.ProcessId}`),u&&u(W.ProcessId),setTimeout(()=>{document.getElementById("dummyDiv")?.focus()},500)):w(null)};v.useEffect(()=>(P(z),()=>{P.cancel()}),[z,P]);const N=v.useMemo(()=>x&&!M.some(L=>L.ProcessId===x.ProcessId)?[x,...M]:M,[M,x]);return v.useEffect(()=>{!S&&!b&&!i&&z!==r.HeatName&&w({HeatName:r.HeatName,ProcessId:r.ProcessId})},[S,z,r,b,i]),f.jsxs(f.Fragment,{children:[f.jsx(Pt,{children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"center",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(bn,{size:"small","aria-label":"previous",color:"primary",disabled:!n,onClick:l,children:f.jsx(dQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,style:{minWidth:"110px"},children:f.jsx(Ki,{autoHighlight:!0,blurOnSelect:!0,clearOnEscape:!0,selectOnFocus:!0,popupIcon:null,options:N,getOptionLabel:L=>L?.HeatName||"Unlinked",value:x,onChange:F,getOptionSelected:(L,W)=>L.ProcessId===W.ProcessId,inputValue:z,onInputChange:(L,W)=>{O(W)},onFocus:L=>{A(!0),p&&p()},onBlur:L=>{A(!1),d&&d()},loading:b,renderInput:({InputProps:L,inputProps:W,...j})=>f.jsx(je,{...j,InputProps:{...L,style:{padding:"0 3px 0px 8px",height:"35px",maxWidth:"100%"}},inputProps:{...W,style:{fontSize:"18px !important"}},label:"Heat name",variant:"outlined",size:"small",className:T.inputRoot,InputLabelProps:{style:{fontSize:"14px"}}})})}),f.jsx(D,{item:!0,children:f.jsx(bn,{"aria-label":"next",color:"primary",disabled:!t,onClick:s,size:"small",children:f.jsx(pQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,children:f.jsx(bn,{color:"primary",onClick:c,disabled:!t,size:"small",title:"Last process",children:f.jsx(gQ,{style:{cursor:"pointer"}})})})]})})}),f.jsx(yt,{error:g,onHide:()=>m("")})]})},QRi=Sn(),ZRi=({process:e,ladles:t,grades:n,tundishes:r,tundishShrouds:i,reloadProcess:o,calculateProcess:a,refreshData:s,onProcessClicked:l,setDeliveryTicketModalOpen:c})=>{bte();const u=ql(),d=Oo(),{state:p,actions:h}=Wo(),{handleOnNextProcess:g,handleOnPreviousProcess:m,handleOnLastProcess:b,handleGoToProcessesByShiftId:y,handleGoToProcess:M,handleGoToHeatsPage:C}=XRi({reloadProcess:o}),{handleBooleanValueChanged:x,handleOptionValueChanged:w,handleLadleValueChanged:S,handleGradeValueChanged:A,handleNumericValueChanged:z,handleOnBlurTextValue:O,handleOnBlurNumericValueForProcess:T,handleOnBlurNumericValueForHeat:R,handleBooleanCountersChanged:P,handleProcessUpdate:F,handleOnFocus:N,handleValueChanged:L}=Z3e({reloadProcess:o,refreshData:s}),W=(j,V,G)=>V===null?`${j} ${G}`:`${QRi(V).format("MM/DD/yyyy")} ${j} ${G}`;return f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{padding:2,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(KRi,{isProcessLoading:p.isLoadingPage||p.isLoadingBackground,value:e,secondValue:e.ProductionYear?.toString(),iconButton:e.HeatId?f.jsx(dT,{style:{cursor:"pointer"}}):f.jsx(uT,{style:{cursor:"pointer"},color:"primary"}),showNext:e.NextProcessId!==null,showPrevious:e.PrevProcessId!==null,onChange:j=>M(j),onNext:g,onPrevious:m,onLast:b,onFocus:()=>{h.setRefreshInPause(!0)},onBlur:()=>{h.clearFocusField(),h.setRefreshInPause(!1)},onButtonClick:l})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,xs:8,children:f.jsx(qRi,{heatStatus:e.HeatStatusCode})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(BRi,{process:e,onButtonClick:l,loading:p.isLoadingBackground})})]}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(NRi,{refreshData:s,process:e})})]}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(uQe,{label:"Shift",value:W(e.Shift,e.ProductionDate,e.Crew||""),disabled:!0,onChange:j=>{},onBlur:j=>{},pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(f$,{label:"Ladle Open",value:e.LadleOpen,format:"HH:mm - DD/MM/YYYY",disabled:!1,onChange:j=>{L("LadleOpen",j)},onBlur:j=>{h.setRefreshInPause(!1),F()},pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(f$,{label:"Ladle Close",value:e.LadleClose,format:"HH:mm - DD/MM/YYYY",disabled:!1,onChange:j=>{L("LadleClose",j)},onBlur:j=>{h.setRefreshInPause(!1),F()},pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx($Ri,{label:"Duration [hh:mm:ss]",unit:"seconds",value:e.Duration?e.Duration:null,disabled:!0,onChange:()=>{}})})]})},`first-${e?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(f$,{label:"Tap Time",value:e.TapTime,format:"HH:mm - DD/MM/YYYY",disabled:!0,disableOpenPicker:!0,onChange:j=>{},onBlur:j=>{},pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(El,{label:"Steel Weight [tons]",value:e.SteelWeight?parseFloat(e.SteelWeight.toFixed(1)):null,disabled:!e.HeatId,onChange:j=>{L("SteelWeight",j)},onBlur:()=>{R("SteelWeight",e.SteelWeight?.toString()||"")},pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(RN,{label:"Grade",value:e.GradeId||"",options:n.map(({GradeId:j,GradeName:V})=>({value:j,label:V})),onChange:j=>A("GradeId",Number(j)),disabled:!e.HeatId,nullable:!1})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(uQe,{label:"Foreman",value:e.Foreman||"",disabled:!1,onChange:j=>L("Foreman",j),onBlur:j=>O("Foreman",j),pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1)})})]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(RN,{label:"Ladle",value:e.LadleId||"",options:t.map(({LadleId:j,LadleName:V})=>({value:j,label:V})),onChange:j=>S("LadleId",Number(j)),disabled:!e.HeatId,nullable:!1})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(HRi,{ladleLife:{HeatsOnLadle:e.HeatsOnLadle||null,ContactTimeOnLadle:e.ContactTimeOnLadle||null},isSubmitLoading:p.isLoadingBackground,disabled:!0})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(UI,{label:"Did Ladle Open",checkboxValue:!!e.IsFreeOpen,disabled:!1,onCheckboxChange:j=>x("IsFreeOpen",j),onFocus:()=>N("IsFreeOpen"),onBlur:()=>O("IsFreeOpen",e.IsFreeOpen?"true":"false")})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(UI,{label:"First Heat",checkboxValue:!!e.IsFirstHeat,disabled:!1,onCheckboxChange:j=>x("IsFirstHeat",j),onFocus:()=>N("IsFirstHeat"),onBlur:()=>O("IsFirstHeat",e.IsFirstHeat?"true":"false")})})]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(RN,{label:"Tundish",value:e.TundishId||"",options:r.map(({TundishId:j,TundishName:V})=>({value:j,label:V})),onChange:j=>w("TundishId",Number(j)),disabled:!1,nullable:!1})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(cQe,{label:"Heats on Tundish",textFieldValue:e.HeatsOnTundish??0,checkboxValue:!!e.ForceHeatsOnTundish,textFieldDisabled:!0,checkboxDisabled:!1,onNumberFieldChange:j=>z("HeatsOnTundish",j!==null?j.toString():"0"),onCheckboxChange:j=>P("ForceHeatsOnTundish",j),onBlur:()=>T("HeatsOnTundish",e.HeatsOnTundish?.toString()||"0"),pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1),isSubmitLoading:p.isLoadingBackground})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(El,{label:"Nozzle",value:e.NozzleSize!==null&&e.NozzleSize!==void 0?Number(e.NozzleSize):null,onChange:j=>{z("NozzleSize",j!==null?j.toString():"0")},onBlur:()=>{h.setRefreshInPause(!1),T("NozzleSize",e.NozzleSize?.toString()||"0")},disabled:!1,pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(cQe,{label:"Heats on Nozzle",textFieldValue:e.HeatsOnNozzle??0,checkboxValue:!!e.ForceHeatsOnNozzle,textFieldDisabled:!0,checkboxDisabled:!1,onNumberFieldChange:j=>z("HeatsOnNozzle",j!==null?j.toString():"0"),onCheckboxChange:j=>P("ForceHeatsOnNozzle",j),onBlur:()=>T("HeatsOnNozzle",e.HeatsOnNozzle?.toString()||"0"),pause:()=>h.setRefreshInPause(!0),resume:()=>h.setRefreshInPause(!1),isSubmitLoading:p.isLoadingBackground})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(RN,{label:"Tundish Shroud",value:e.TundishShroudId||"",options:i.map(({TundishShroudId:j,TundishShroudName:V})=>({value:j,label:V})),onChange:j=>w("TundishShroudId",Number(j)),disabled:!1,nullable:!1})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(UI,{label:"Burn",checkboxValue:!!e.IsBurnOpen,disabled:!1,onCheckboxChange:j=>x("IsBurnOpen",j),onFocus:()=>N("IsBurnOpen"),onBlur:()=>O("IsBurnOpen",e.IsBurnOpen?"true":"false")})})]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Ne,{style:{backgroundColor:u.palette.info.main,color:u.palette.info.contrastText},variant:"contained",onClick:()=>y(e.ShiftId),fullWidth:!0,children:"PROCESSES"})}),f.jsx(D,{item:!0,xs:12,children:f.jsxs(Iz,{fullWidth:!0,variant:"contained",children:[f.jsx(Ne,{disabled:!e.HeatShiftId||!e.HeatId,style:{backgroundColor:u.palette.info.main,color:u.palette.info.contrastText},onClick:()=>{e.HeatShiftId&&e.HeatId&&C(e.HeatShiftId,e.HeatId)},children:"HEATS PAGE"}),f.jsx(Ne,{disabled:!e.HeatId,style:{backgroundColor:u.palette.info.main,color:u.palette.info.contrastText},onClick:()=>{const j=e.HeatId;j&&d(`/heat-report/${j}/caster`)},children:"HEAT REPORT"})]})}),f.jsx(D,{item:!0,xs:12,children:f.jsxs(Iz,{fullWidth:!0,children:[f.jsxs(kRi,{variant:"contained",color:"primary",size:"small",onClick:()=>a(),isLoading:p.isLoadingBackground,style:{textTransform:"none",minWidth:"220px",maxWidth:"220px"},children:[p.entityEditting!==null?f.jsx("span",{children:"REFRESH"}):f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"REFRESHING"}),f.jsx("span",{style:{margin:"0 8px"},children:"- "+p.refreshStatus+"s "})]}),f.jsx("span",{children:f.jsx(Yxe,{fontSize:"small"})})]}),f.jsx(Ne,{onClick:()=>h.setRefreshInPause(j=>!j),variant:"outlined",size:"small",children:p.refreshInPause?f.jsx(rst,{}):f.jsx(nst,{})})]})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ne,{variant:"contained",style:{backgroundColor:u.palette.success.main,color:"white"},fullWidth:!0,onClick:()=>{c(!0),h.setRefreshInPause(!0)},startIcon:f.jsx(X3t,{}),children:"Delivery Ticket"})})]})})]})})})},JRi=Sn(),eIi=({refreshData:e,setHelmetTitle:t})=>{const{state:n,actions:r}=Wo(),i=n.processData||{},[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState({show:!1,message:""}),d=()=>{if(!(i===null||i.ProcessId===null))if(i.HeatId===null)l(!0);else{t("Unlink Heat");const m=JRi.utc(i.LadleOpen).local().format("YYYY/MM/DD HH:mm");u({show:!0,message:"The heat "+i.HeatName+" from "+m+" will be unlinked.  Do you want to continue?"})}},p=async m=>{if(u({show:!1,message:""}),m!=="OK"){t("");return}t(""),await h()},h=async()=>{try{if(n.processData===null||n.processData.ProcessId===null||n.processData.HeatId===null)return;r.setIsLoadingBackground(!0);const m=await E3e(n.processData.ProcessId);r.setIsLoadingBackground(!1),m.ok?(r.setNotificationMessage("Process unlinked successfully"),await e()):r.setErrorMessage(m.message)}catch(m){r.setIsLoadingBackground(!1),r.setErrorMessage(m.message)}};return{onProcessClicked:d,unlinkCasterProcess:p,unLinkProcessData:h,linkProcessData:async m=>{try{if(n.processData===null||n.processData.ProcessId===null||n.processData.HeatId!==null)return;r.setIsLoadingBackground(!0);const b=await R3e(n.processData.ProcessId,m);r.setIsLoadingBackground(!1),b.ok?(r.setNotificationMessage("Process linked successfully"),await e()):r.setErrorMessage(b.message)}catch(b){r.setIsLoadingBackground(!1),r.setErrorMessage(b.message)}},showChangeModal:o,showLinkModal:s,showUnlinkModal:c,setShowChangeModal:a,setShowLinkModal:l}},tIi=Et(()=>({autocomplete:{'& input[type="text"]':{padding:"0px 14px !important"}},numberInput:{"& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},"& input[type=number]":{"-moz-appearance":"textfield"}}})),nIi=({processId:e,heatId:t,pourbackId:n,tapTime:r,initialPourbackWeight:i,initialPourbackReasonId:o,pourbackReasons:a,onSaveSuccess:s,onPourbackChange:l})=>{const c=tIi(),[u,d]=v.useState(""),[p,h]=v.useState(!1),{control:g,handleSubmit:m,reset:b,formState:{errors:y}}=jn({mode:"onChange",defaultValues:{pourbackWeight:null,selectedReason:null}}),M=rge({control:g,name:"pourbackWeight"}),C=rge({control:g,name:"selectedReason"});v.useEffect(()=>{const w=a.find(S=>S.PourbackReasonId===o);b({pourbackWeight:i,selectedReason:w||null})},[i,o,a,b]),v.useEffect(()=>{l(M,C?.PourbackReasonId||null)},[M,C,l]);const x=async()=>{if(h(!0),d(""),n){const w=await eOi(n);if(w.ok)await s();else{d(w.message),h(!1);return}}b({pourbackWeight:null,selectedReason:null}),h(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(vt,{variant:"h6",style:{fontWeight:"bold"},children:"Pourback Declaration"})}),f.jsxs(D,{item:!0,xs:12,md:12,container:!0,justifyContent:"center",alignItems:"center",spacing:2,children:[f.jsx(D,{item:!0,xs:9,md:3,children:f.jsx(Ue,{name:"pourbackWeight",control:g,rules:{min:{value:0,message:"Minimum Weight is 0"},max:{value:200,message:"Maximum Weight is 200"}},render:({field:w})=>f.jsx(je,{...w,type:"number",label:"Pourback Weight [tons]",variant:"outlined",size:"small",fullWidth:!0,error:!!y.pourbackWeight,helperText:y.pourbackWeight?.message,onFocus:S=>S.target.select(),inputProps:{min:0,max:200,step:.01},className:c.numberInput})})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Ue,{name:"selectedReason",control:g,render:({field:w})=>f.jsx(Ki,{...w,options:a,getOptionLabel:S=>S.PourbackReasonName,renderInput:S=>f.jsx(je,{...S,label:"Pourback Reason",variant:"outlined",size:"small",className:c.autocomplete}),onChange:(S,A)=>w.onChange(A),openOnFocus:!0,autoHighlight:!0,fullWidth:!0,size:"small"})})}),f.jsx(D,{item:!0,xs:6,md:1,container:!0,alignItems:"center",justifyContent:"center",children:f.jsx(ls,{title:"Delete pourback declaration",children:f.jsx(bn,{onClick:x,disabled:p,color:"secondary",size:"medium",children:f.jsx(Jat,{})})})})]}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},rIi=Et({autocompleteInput:{padding:"0px 10px !important"}}),Y3t=({onChange:e,value:t,label:n,initialValue:r,className:i,inputError:o})=>{const a=rIi(),[s,l]=v.useState([]),[c,u]=v.useState(""),[d,p]=v.useState(!0),h=[r||{GradeId:0,GradeName:"ALL"},...s],g=h.find(y=>y.GradeId===t),m=(y,M,C,x)=>{e(M?.GradeId||null)},b=async()=>{p(!0);try{const y=await W3t();y.ok?l(y.data.tables[0].rows):u(y.message),p(!1)}catch(y){u(y)}};return v.useEffect(()=>{b()},[]),d?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Ki,{id:"",value:g,onChange:m,options:h,getOptionLabel:y=>y.GradeName,renderInput:y=>f.jsx(je,{...y,label:n?"Grade":"",variant:"outlined",className:i,error:!!o,helperText:o,size:"small",InputProps:{...y.InputProps,classes:{input:a.autocompleteInput}}}),style:{minWidth:200},size:"small"}),f.jsx(yt,{error:c,onHide:()=>u("")})]})},iIi=Et({autocompleteInput:{padding:"0px 10px !important"}}),oIi=({onChange:e,value:t,label:n,className:r})=>{const i=iIi(),[o,a]=v.useState([]),[s,l]=v.useState(""),[c,u]=v.useState(!0),[d,p]=v.useState(),h=(b,y,M,C)=>{y&&y.MoldSizeId&&e(y.MoldSizeId)},g=async()=>{u(!0);const b=await Ozt();b.ok?(a(b.data.tables[0].rows),p(m.find(y=>y.MoldSizeId===t))):l(b.message),u(!1)},m=[{MoldSizeId:null,MoldSizeName:""},...o];return v.useEffect(()=>{if(t){const b=m.find(y=>y.MoldSizeId===t);p(b)}},[t,o]),v.useEffect(()=>{g()},[]),c?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Ki,{id:"mold-size-selector",value:d,onChange:h,options:m,getOptionLabel:b=>b.MoldSizeName,renderInput:b=>f.jsx(je,{...b,label:n?"MoldSize":"",variant:"outlined",className:r,InputProps:{...b.InputProps,classes:{input:i.autocompleteInput}}}),style:{minWidth:200},size:"small"}),f.jsx(yt,{error:s,onHide:()=>l("")})]})},K3t=Et(e=>({input:{"& .MuiInputBase-input":{fontSize:"17px !important",color:e.palette.text.primary},"& .MuiOutlinedInput-root":{"& fieldset":{},"&:hover fieldset":{borderColor:e.palette.primary.dark}}},disabledInput:{"& .MuiInputBase-input":{backgroundColor:" #e9ecef"},"& .MuiOutlinedInput-root":{"& fieldset":{},"&:hover fieldset":{borderColor:"#ced4da"}}},textFieldMUI:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"1px solid #ced4da",width:"100%",padding:"19px",transition:e.transitions.create(["border-color","box-shadow"]),fontFamily:e.typography.fontFamily,fontSize:"18px !important",color:e.palette.text.primary,height:"20px!important"},addButton:{minWidth:"35px",width:"35px",height:"35px",padding:"25px",fontSize:"1.5rem"}})),aIi=({deliveryTicket:e,handleHeatInputChange:t,dateTimeFormatted:n,errors:r,setErrors:i,setPendingChanges:o})=>{const{state:a,actions:s}=Wo();Q3e();const l=K3t(),[c,u]=v.useState(""),[d,p]=v.useState(e?.heatData.CasterForeman??null),[h,g]=v.useState(e?.heatData.Melter??null),[m,b]=v.useState(e?.heatData.LabTech??null),[y,M]=v.useState(e?.heatData.Sequence??null),C=O=>{t("GradeId",O),o(T=>({...T,gradeId:O})),i(O===null?T=>{const R=new Map(T);return R.set("GradeId","Please select a grade"),R}:T=>{const R=new Map(T);return R.delete("GradeId"),R})},x=O=>{t("MoldSizeId",O),o(T=>({...T,moldSizeId:O}))},w=()=>{t("CasterForeman",d),o(O=>({...O,casterForeman:d}))},S=()=>{t("Melter",h),o(O=>({...O,melter:h}))},A=()=>{t("LabTech",m),o(O=>({...O,labTech:m}))},z=()=>{t("Sequence",y),o(O=>({...O,sequence:y}))};return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,container:!0,xs:8,spacing:1,style:{marginBottom:"30px"},children:[f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"HEAT No:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:e?.heatData.HeatName??"",onChange:O=>t("HeatName",O.target.value),fullWidth:!0,variant:"outlined",size:"small",InputProps:{readOnly:!0},className:l.disabledInput+" "+l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"GRADE:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(Y3t,{value:e?.heatData.GradeId??null,initialValue:{GradeId:null,GradeName:""},onChange:O=>{C(O)},className:l.input,inputError:r.get("GradeId")})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"MOLD SIZE:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(oIi,{value:e?.heatData.MoldSizeId??null,onChange:O=>{x(O)},className:l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"CASTER FOREMAN:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:d,onBlur:O=>w(),onChange:O=>p(O.target.value),fullWidth:!0,variant:"outlined",size:"small",className:l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"CAST DATE:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{type:"date",value:n?.castDateFormatted??"",onChange:O=>t("CastDate",O.target.value),InputLabelProps:{shrink:!0},InputProps:{readOnly:!0},fullWidth:!0,variant:"outlined",size:"small",className:l.disabledInput+" "+l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"TAP TIME:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{type:"time",value:n?.tapTime??"",onChange:O=>t("TapTime",O.target.value),InputLabelProps:{shrink:!0},InputProps:{readOnly:!0},fullWidth:!0,variant:"outlined",size:"small",className:l.disabledInput+" "+l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"MELTER:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:h,onChange:O=>g(O.target.value),onBlur:O=>{S()},fullWidth:!0,variant:"outlined",size:"small",className:l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"LAB TECH:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:m,onChange:O=>b(O.target.value),onBlur:O=>{A()},fullWidth:!0,variant:"outlined",size:"small",className:l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(vt,{style:{fontWeight:"bold"},children:"SEQUENCE:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:y,onChange:O=>M(O.target.value),onBlur:O=>{z()},fullWidth:!0,variant:"outlined",size:"small",className:l.input})})]})]}),f.jsx(yt,{error:c||a.errorMessage,onHide:()=>{c&&u(""),a.errorMessage&&s.setErrorMessage("")}})]})},sIi=(e,t)=>(typeof e=="string"&&(e=parseFloat(e)),typeof t=="string"&&(t=parseFloat(t)),!isNaN(e)&&!isNaN(t)&&t!==0?(e/t).toFixed(2):""),J3e=({feet:e,inches:t,onChange:n,error:r,helperText:i,className:o,disabled:a})=>{const s=c=>{if(c.target.value===""){n(0,t),setTimeout(()=>c.target.select(),0);return}const u=parseInt(c.target.value,10);!isNaN(u)&&u>=0&&n(u,t)},l=c=>{if(c.target.value===""){n(e,0),setTimeout(()=>c.target.select(),0);return}const u=parseInt(c.target.value,10);!isNaN(u)&&u>=0&&u<12&&n(e,u)};return f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(je,{onFocus:c=>c.target.select(),className:o,label:"Ft",type:"tel",value:e,onChange:s,error:r,helperText:r?i:"",fullWidth:!0,variant:"outlined",size:"small",disabled:a,inputProps:{min:0}})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(je,{onFocus:c=>c.target.select(),className:o,label:"In",type:"tel",value:t,onChange:l,error:r,helperText:r?i:"",fullWidth:!0,variant:"outlined",size:"small",disabled:a,inputProps:{min:0,max:11}})})]})},Q3t=e=>/^\d*\.?\d*$/.test(e),lIi=({value:e,onChange:t,error:n,helperText:r,className:i})=>f.jsx(je,{className:i,error:n,helperText:r,value:e,onChange:o=>{Q3t(o.target.value)&&t(o.target.value)},variant:"outlined",size:"small",onFocus:o=>o.target.select()}),cIi=Et({autocompleteInput:{padding:"0px 10px !important"}}),Z3t=({value:e,onChange:t,onFocus:n,moldSizeId:r,readonly:i,required:o,className:a,label:s,inputError:l,inputStyles:c})=>{const u=cIi(),[d,p]=v.useState(!1),[h,g]=v.useState([]),[m,b]=v.useState(""),y=async()=>{p(!0);const M=await GAi(r);if(M.ok){const C=M.data.tables[0].rows;g(C)}else b(M.message);p(!1)};return v.useEffect(()=>{y().then(()=>{})},[r]),f.jsxs(f.Fragment,{children:[f.jsx(Ki,{options:h,getOptionLabel:M=>M.SectionName,value:h.find(M=>M.SectionId.toString()===(e!==null?e.toString():""))||null,onChange:(M,C)=>{t(C?C.SectionId.toString():null)},disabled:i||d,loading:d,className:a,renderInput:M=>f.jsx(je,{...M,label:s,variant:"outlined",size:"small",fullWidth:!0,onFocus:n,error:!!l,helperText:l,InputLabelProps:{...M.InputLabelProps,shrink:!0},InputProps:{...M.InputProps,style:{...c},classes:{input:u.autocompleteInput},endAdornment:f.jsx(f.Fragment,{children:d?f.jsx(Kt,{color:"inherit",size:20}):M.InputProps.endAdornment})}})}),f.jsx(yt,{error:m,onHide:()=>b("")})]})},uIi=({value:e,onChange:t,className:n,helperText:r})=>f.jsx(Z3t,{moldSizeId:null,value:e,onChange:i=>{i&&t(i)},className:n,onFocus:()=>{},required:!0,inputError:r}),dIi=({value:e,onChange:t,error:n,helperText:r,className:i})=>{const o=s=>{const l=s.target.value;Q3t(l)&&t(l)},a=s=>{const l=s.target.value;(!l||l.trim()===""||parseFloat(l)<=0)&&t("")};return f.jsx(je,{error:n,helperText:r,value:e,onChange:o,onBlur:a,label:"lbs",fullWidth:!0,variant:"outlined",size:"small",onFocus:s=>s.target.select(),className:i,required:!0})},pIi=({value:e,error:t,helperText:n,className:r})=>f.jsx(je,{error:t,helperText:n,value:e,InputProps:{readOnly:!0},fullWidth:!0,variant:"outlined",size:"small",className:r}),hIi=Sn(),fIi=({errors:e,setErrors:t,deliveryTicket:n,moldSizes:r,handleProductBatchChange:i,refreshProductBatches:o,isLoading:a,ladleClose:s})=>{const l=K3t(),c=["Length","Pieces","Section","Weight","Weight/Pc"],[u,d]=v.useState(""),{state:p,actions:h}=Wo(),g=()=>s!==void 0?s!=null:p.processData?.LadleClose!=null,m=()=>{if(!n?.productBatches||n.productBatches.length===0)return null;const w=n.productBatches.reduce((A,z)=>{const O=A.Timestamp;return z.Timestamp>O?z:A});return{dateTime:hIi(w.Timestamp).format("MM/DD/YYYY - HH:mm:ss"),user:w.ReportedBy||"System"}},b=(w,S=null)=>{if(w&&w.preventDefault(),n&&n.productBatches.length<8){const z={ProductBatchId:-Math.floor(Math.random()*1e6)-1,Length:"0",Pieces:1,SectionName:"",SectionId:0,Weight:S||0,WeightPerPiece:""},O=[...n.productBatches,z];i(-1,"updateAllBatches",JSON.stringify(O))}},y=async w=>{if(n&&p.processId){const S=n.productBatches.find(z=>z.ProductBatchId===w.ProductBatchId);if(S?.ProductBatchId&&S?.ProductBatchId>0){const z=await y2e({productBatchId:S?.ProductBatchId,sectionId:S?.SectionId,processId:p.processId,weight:0,pieces:0,length:S?.Length,isManualSaved:!0});if(!z.ok){d(z.message);return}}const A=n.productBatches.filter(z=>z.ProductBatchId!==w.ProductBatchId);i(-1,"updateAllBatches",JSON.stringify(A)),t(z=>{const O=new Map(z);for(const T of O.keys())T.endsWith(`-${w.ProductBatchId}`)&&O.delete(T);return O})}},M=(w,S,A,z)=>{const O=S*12+A;i(w,"Length",O.toString()),t(T=>{const R=new Map(T);return R.delete(`Length-${z}`),R})},C=(w,S,A)=>{i(S,"SectionId",w),t(z=>{const O=new Map(z);return O.delete(`Section-${A}`),O})},x=(w,S,A)=>{i(S,"Weight",w),t(z=>{const O=new Map(z);return O.delete(`Weight-${A}`),O})};return f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{container:!0,item:!0,xs:12,spacing:2,alignItems:"center",children:[f.jsx(D,{item:!0,xs:1}),c.map((w,S)=>{const A=w==="Pieces"?1:w==="Section"?3:2;return f.jsx(D,{item:!0,xs:A,children:f.jsx(vt,{align:"center",style:{fontWeight:"bold",marginRight:S===c.length-1?"24px":"0"},children:w})},w)}),f.jsx(D,{item:!0,xs:1,children:f.jsx(ls,{title:g()?"Get from strands":"Get from strands will be enabled when the ladle is closed",arrow:!0,placement:"top",children:f.jsx("span",{children:f.jsx(Ne,{startIcon:a&&f.jsx(Kt,{size:"1rem"}),fullWidth:!0,variant:"outlined",color:"primary",disabled:!g()||a,onClick:()=>{g()&&o()},children:f.jsx(ote,{})})})})})]}),n?.productBatches.map((w,S)=>f.jsxs(D,{container:!0,item:!0,xs:12,spacing:2,alignItems:"center",children:[f.jsx(D,{item:!0,xs:1}),f.jsx(D,{item:!0,xs:2,children:f.jsx(J3e,{feet:Math.floor(Number(w.Length)/12)||0,inches:Number(w.Length)%12||0,onChange:(A,z)=>M(S,A,z,w.ProductBatchId),error:e.has(`Length-${w.ProductBatchId}`),helperText:e.get(`Length-${w.ProductBatchId}`),className:l.input})}),f.jsx(D,{item:!0,xs:1,children:f.jsx(lIi,{value:w.Pieces,onChange:A=>i(S,"Pieces",A),error:e.has(`Pieces-${w.ProductBatchId}`),helperText:e.get(`Pieces-${w.ProductBatchId}`),className:l.input})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(uIi,{value:w.SectionId,onChange:A=>C(A,S,w.ProductBatchId),className:`${l.input}`,error:e.has(`Section-${w.ProductBatchId}`),helperText:e.get(`Section-${w.ProductBatchId}`)})}),f.jsx(D,{item:!0,xs:2,children:f.jsx(dIi,{value:w.Weight,onChange:A=>x(A,S,w.ProductBatchId),error:e.has(`Weight-${w.ProductBatchId}`),helperText:e.get(`Weight-${w.ProductBatchId}`),className:l.input})}),f.jsx(D,{item:!0,xs:2,children:f.jsx(pIi,{value:w.WeightPerPiece||(w.Weight&&w.Pieces?sIi(w.Weight,w.Pieces):""),error:e.has(`WeightPerPiece-${w.ProductBatchId}`),helperText:e.get(`WeightPerPiece-${w.ProductBatchId}`),className:l.disabledInput+" "+l.input})}),f.jsx(D,{item:!0,xs:1,container:!0,justifyContent:"center",children:S>0&&f.jsx(bn,{onClick:()=>y(w),size:"small",color:"secondary",title:"Delete",children:f.jsx(Mo,{style:{cursor:"pointer"}})})})]},S)),f.jsx(D,{item:!0,xs:1}),n&&n.productBatches.length<8&&f.jsx(D,{item:!0,xs:2,children:f.jsx(bn,{color:"primary",className:`${l.addButton}`,size:"medium",onClick:w=>b(w),title:"Add new line",children:f.jsx(G3e,{fontSize:"medium",style:{cursor:"pointer"}})})}),(()=>{const w=m();return w?f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",children:f.jsxs(vt,{variant:"caption",style:{color:"#6c757d",fontSize:"0.75rem",fontStyle:"italic",marginRight:"20px"},children:["Last updated: ",w.dateTime," by"," ",w.user]})}):null})()]}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},pQe=Sn(),x2e=async(e,t)=>{const n=[];n.push({name:"ShiftId",value:e}),n.push({name:"GetDeleted",value:t});const i=await new Ye().callV2("[EAF].[GetProcessesByShift]",n);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,Start:o.Start?pQe.utc(o.Start).toDate():null,End:o.End?pQe.utc(o.End).toDate():null}))),i},J3t=async(e,t,n,r,i)=>{try{const o=new Ye,a=[];return a.push({name:"ProcessId",value:e}),a.push({name:"AssetId",value:i||null}),a.push({name:"Start",value:t===null?null:new Date(t).toISOString()}),a.push({name:"End",value:n===null?null:new Date(n).toISOString()}),a.push({name:"IsProcessManual",value:r}),await o.callV2("[EAF].[UpsertProcess]",a)}catch(o){return{ok:!1,message:o.toString()}}},gIi=async e=>{const t=new Ye,n=[];return n.push({name:"ProcessId",value:e}),await t.callV2("[EAF].[DeleteProcess]",n)},mIi=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[MS].[UnDeleteProcess]",n)}catch(r){return{ok:!1,message:r.toString()}}},vIi=async(e,t,n)=>{const r=new Ye,i=[];i.push({name:"ProcessId",value:e}),i.push({name:t,value:n}),i.push({name:"IsProcessDataManual",value:!0});try{return await r.callV2("[EAF].[UpdateProcessData]",i)}catch(o){return{ok:!1,message:o.toString()}}},eTe=async(e,t)=>{const n=new Ye,r=[];r.push({name:"ProcessId",value:e}),r.push({name:"HeatId",value:t}),r.push({name:"IsHeatIdManual",value:!0});try{return await n.callV2("[EAF].[ManualLinkProcessToHeat]",r)}catch(i){return{ok:!1,message:i.toString()}}},tTe=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[EAF].[UnlinkProcessToHeat]",n)}catch(r){return{ok:!1,message:r.toString()}}},sD=async(e,t,n)=>{const r=new Ye,i=[];return i.push({name:"SearchText",value:e}),i.push({name:"Start",value:t}),i.push({name:"AssetId",value:n??null}),await r.callV2("[EAF].[SearchUnlinkedHeats]",i)},eTt=(e,t,n)=>{const r=n?.find(s=>s.MoldSizeId===t)?.LbsPerFoot||0,o=(Number(e.Length)||0)/12*r,a=o*(Number(e.Pieces)||0);return{...e,Weight:Number(a.toFixed(2)),WeightPerPiece:Number(o.toFixed(2))}},bIi=(e,t,n)=>e.map(r=>eTt(r,t,n)),E5=Sn(),yIi=(e,t)=>{const[n,r]=v.useState(!1),[i,o]=v.useState(""),[a,s]=v.useState(null),[l,c]=v.useState(null),[u,d]=v.useState({}),[p,h]=v.useState(new Map),[g,m]=v.useState(!1),[b,y]=v.useState(""),[M,C]=v.useState([]),{state:{settings:x}}=Ma(),w=Number(At(x,"MIN_DELIVERY_TICKET_WEIGHT_IN_LBS",1e5)),S=async()=>{if(r(!0),!e)o("No process id provided.");else{const j=await QAi(e);if(j.ok){const[q,$]=j.data.tables;s({heatData:q.rows[0],productBatches:$.rows})}else o(j.message);const V=await Ozt();V.ok?c(V.data.tables[0].rows):o(V.message);const G=await Wzt();G.ok?C(G.data.tables[0].rows):o(G.message)}r(!1)},A=async()=>{if(r(!0),!e)o("No process id provided.");else{u&&Object.keys(u).length>0&&await R();const j=await ZAi(e);j.ok||o(j.message)}await S(),r(!1)},z=(j,V)=>{s(G=>{if(!G)return null;const q={...G.heatData,[j]:V};if(j==="MoldSizeId"){const $=G.productBatches.some(U=>U.isManualSaved===!0);return{...G,heatData:q,productBatches:$?G.productBatches:bIi(G.productBatches,V,l)}}return{...G,heatData:q}})},O=(j,V,G)=>{s(q=>{if(!q)return null;if(V==="updateAllBatches")return{...q,productBatches:JSON.parse(G)};const $=[...q.productBatches];if(j>=0){let U={...$[j],[V]:V==="Length"?Number(G):G};(V==="Length"||V==="Pieces")&&(U=eTt(U,q.heatData.MoldSizeId,l)),$[j]=U}return{...q,productBatches:$}})},T=v.useMemo(()=>{let j,V;return a?.heatData.CastDate&&(j=E5(a.heatData.CastDate).format("YYYY-MM-DD")),E5(a?.heatData.TapTime).isValid()?V=Wn(E5(a?.heatData.TapTime).toDate(),"HH:mm"):V=a?.heatData.TapTime,{castDateFormatted:j,tapTime:V}},[a?.heatData.TapTime,a?.heatData.CastDate]),R=async()=>{if(!(!a||!e))try{const j=[];u.gradeId!==void 0&&j.push(dz({GradeId:u.gradeId,HeatId:a.heatData.HeatId})),u.moldSizeId!==void 0&&e&&j.push(h$(e,"MoldSizeId",u.moldSizeId)),u.casterForeman!==void 0&&e&&j.push(h$(e,"Foreman",u.casterForeman)),u.melter!==void 0&&a.heatData.EAFProcessId&&j.push(vIi(a.heatData.EAFProcessId,"Foreman",u.melter)),u.labTech!==void 0&&j.push(iOi(a.heatData.HeatId,u.labTech)),u.sequence!==void 0&&e&&j.push(h$(e,"Sequence",u.sequence));const G=(await Promise.all(j)).filter(q=>!q.ok).map(q=>q.ok?"":q.message);G.length>0?o(G.join(", ")):d({})}catch{o("An unexpected error occurred while saving changes")}},P=async(j,V)=>{if(!j&&!V)return{ok:!0,message:""};if(!j||!V)return{ok:!1,message:"Both pourback weight and reason must be filled"};const G=a?.heatData.TapTime?E5(a.heatData.TapTime).toDate():E5.utc().toDate();return await Tzt(a?.heatData.PourbackId||null,a?.heatData.HeatId||0,e,j,V,G)},F=async(j,V=!1)=>{if(p.size>0){o("Please check all the fields");return}if(a&&a.productBatches.length&&!a.productBatches.reduce((q,$)=>q+$.Pieces,0)){o("Please add at least one piece of each");return}if(r(!0),await R(),a&&a.productBatches&&e)try{const G=a.productBatches.map((U,X)=>{if(!e){o("No process provided to save delivery ticket.");return}return y2e({productBatchId:U.ProductBatchId,sectionId:U.SectionId,processId:e,weight:U.Weight,pieces:U.Pieces,length:U.Length,isManualSaved:!0,lowWeightConfirmed:V&&X===0})}),$=(await Promise.all(G)).filter(U=>!U?.ok).map(U=>U&&!U.ok?U.message:"");if($.length>0){o($.join(", ")),r(!1);return}if(j){const U=await P(j.weight,j.reasonId);if(!U.ok){o(U.message),r(!1);return}}await S()}catch{o("An unexpected error occurred")}r(!1)},N=async(j,V=!1)=>{if(p.size>0){o("Please check all the fields");return}if(a&&a.productBatches.length&&!a.productBatches.reduce((q,$)=>q+$.Pieces,0)){o("Please add at least one piece of each");return}if(r(!0),await R(),a&&a.productBatches&&e)try{const G=a.productBatches.map((U,X)=>{if(!e){o("No process provided to print delivery ticket.");return}return y2e({productBatchId:U.ProductBatchId,sectionId:U.SectionId,processId:e,weight:U.Weight,pieces:U.Pieces,length:U.Length,isManualSaved:!0,lowWeightConfirmed:V&&X===0})}),$=(await Promise.all(G)).filter(U=>!U?.ok).map(U=>U&&!U.ok?U.message:"");if($.length>0){o($.join(", ")),r(!1);return}if(j){const U=await P(j.weight,j.reasonId);if(!U.ok){o(U.message),r(!1);return}}await S(),window.open(`/delivery-ticket/${e}`,"_blank","noopener,noreferrer")}catch{o("An unexpected error occurred")}r(!1)};return{isLoading:n,error:i,deliveryTicket:a,moldSizes:l,pendingChanges:u,errors:p,dateTimeFormatted:T,handleHeatInputChange:z,handleProductBatchChange:O,handleClickPrint:async j=>{let V=!1,G=!1;if(a?.productBatches.forEach($=>{$.SectionId===0&&(h(U=>{const X=new Map(U);return X.set(`Section-${$.ProductBatchId}`,"Please select one"),X}),V=!0),(!$.Weight||$.Weight<=0)&&(h(U=>{const X=new Map(U);return X.set(`Weight-${$.ProductBatchId}`,"Weight is required and must be greater than 0"),X}),G=!0)}),V||G)return;if(a?.productBatches.some($=>$.Weight>0&&$.Weight<w)){const $=(w/2e3).toFixed(2);y(`The weight you are sending is less than ${w} lbs (${$} tons). Are you sure you want to send this?`),m(!0)}else await N(j)},saveAll:F,refreshProductBatches:A,loadData:S,setError:o,setErrors:h,setPendingChanges:d,confirmationDialogOpen:g,confirmationDialogMessage:b,handleConfirmationDialogClose:async(j,V)=>{m(!1),j==="OK"&&await N(V||null,!0)},pourbackReasons:M,reloadData:S}},tTt=({show:e,onHide:t,processId:n,ladleClose:r})=>{const i=c2(),{actions:o}=Wo(),{isLoading:a,error:s,setError:l,deliveryTicket:c,moldSizes:u,errors:d,dateTimeFormatted:p,handleHeatInputChange:h,handleProductBatchChange:g,handleClickPrint:m,saveAll:b,refreshProductBatches:y,setErrors:M,setPendingChanges:C,loadData:x,confirmationDialogOpen:w,confirmationDialogMessage:S,handleConfirmationDialogClose:A,pourbackReasons:z}=yIi(n),[O,T]=v.useState(null),R=v.useCallback((P,F)=>{T({weight:P,reasonId:F})},[]);return v.useEffect(()=>{e&&x()},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Delivery Ticket"}),f.jsx(We,{open:e,handleClose:()=>{t(!0)},id:"delivery-ticket-modal",maxWidth:"md",children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{padding:"560px 450px"},children:f.jsx(Kt,{size:"5rem"})}):f.jsxs(f.Fragment,{children:[f.jsxs(We.Content,{className:`${i.modalContent} ${i.pageBreakAvoid}`,style:{border:"4px solid #ccc",borderRadius:10,margin:"10px 20px"},children:[f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",direction:"column",spacing:1,style:{marginBottom:"30px"},children:[f.jsx(D,{item:!0,children:f.jsx(vt,{variant:"h6",align:"center",style:{fontWeight:"bold"},children:"STEEL OF WEST VIRGINIA"})}),f.jsx(D,{item:!0,children:f.jsx(vt,{variant:"h6",align:"center",style:{fontWeight:"bold"},children:"MELTSHOP DELIVERY TICKET"})})]}),f.jsx("form",{noValidate:!0,autoComplete:"off",children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"center",children:[f.jsx(aIi,{dateTimeFormatted:p,setPendingChanges:C,deliveryTicket:c,handleHeatInputChange:h,errors:d,setErrors:M}),f.jsx(fIi,{errors:d,setErrors:M,deliveryTicket:c,moldSizes:u,handleProductBatchChange:g,refreshProductBatches:y,isLoading:a,ladleClose:r}),f.jsx(la,{style:{margin:"10px 0",width:"90%"}}),f.jsx(nIi,{processId:n,heatId:c?.heatData.HeatId??0,pourbackId:c?.heatData.PourbackId??null,tapTime:c?.heatData.TapTime??null,initialPourbackWeight:c?.heatData.PourbackWeight??null,initialPourbackReasonId:c?.heatData.PourbackReasonId??null,pourbackReasons:z,onSaveSuccess:x,onPourbackChange:R})]})})]}),f.jsx(We.Actions,{className:i.noPrint,style:{padding:"1rem 3rem"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>{o.setRefreshInPause(!1),d.clear(),t(!0)},children:"Close"})}),f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:()=>b(O),disabled:!n||a,children:"Save"})}),f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:()=>m(O),disabled:!n||a,children:"Save & print"})})]})})]})}),f.jsx(yt,{error:s,onHide:()=>{l("")}}),f.jsx(il,{open:w,onClose:P=>A(P,O),title:"Confirm Weight",message:S})]})},MIi=Sn(),CIi=Et(()=>({autocomplete:{'& input[type="text"]':{padding:"0px 14px !important"}}})),xIi=({show:e,onHide:t,process:n})=>{const r=CIi(),{state:i,actions:o}=Wo(),{state:{settings:a}}=Ma(),s=At(a,"MinPourbackWeight",0),l=At(a,"MaxPourbackWeight",200),c=i.pourBacks||[],[u,d]=v.useState(""),[p,h]=v.useState(!1),{control:g,handleSubmit:m,setValue:b,formState:{errors:y},reset:M}=jn({mode:"onChange",defaultValues:{pourbackWeight:null,selectedReason:null}}),C=async x=>{if(h(!0),x.pourbackWeight!==null&&x.selectedReason){const w=await Tzt(n.PourbackId,n.HeatId,n.ProcessId,x.pourbackWeight,x.selectedReason.PourbackReasonId,n.LadleOpen||MIi.utc().toDate());w.ok?(o.setRefreshInPause(!1),t(!0)):d(w.message)}else d("Please fill all the fields");h(!1)};return v.useEffect(()=>{if(e){const x=c.find(w=>w.PourbackReasonId===n.PourbackReasonId);M({pourbackWeight:n.PourbackWeight,selectedReason:x||null})}},[e,n,c,M]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Pourback Declaration"}),f.jsx(We,{open:e,handleClose:t,title:"Pourback Declaration",maxWidth:"md",children:f.jsxs("form",{onSubmit:m(C),children:[f.jsx(We.Content,{dividers:!0,children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(Ue,{name:"pourbackWeight",control:g,rules:{required:"Pourback Weight is required",min:{value:s,message:`Minimum Weight is ${s}`},max:{value:l,message:`Maximum Weight is ${l}`}},render:({field:x})=>f.jsx(je,{...x,type:"number",label:"Pourback Weight [tons]",variant:"outlined",size:"small",error:!!y.pourbackWeight,helperText:y.pourbackWeight?.message,onFocus:w=>w.target.select(),fullWidth:!0})})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(Ue,{name:"selectedReason",control:g,rules:{required:"Pourback Reason is required"},render:({field:x})=>f.jsx(Ki,{...x,id:"pourback-reason-selector",options:c,getOptionLabel:w=>w.PourbackReasonName,renderInput:w=>f.jsx(je,{...w,label:"Pourback Reason",variant:"outlined",error:!!y.selectedReason,helperText:y.selectedReason?.message,className:r.autocomplete}),onChange:(w,S)=>x.onChange(S),style:{minWidth:200},size:"small"})})})]})}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:3,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>{o.setRefreshInPause(!1),t()},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:3,children:f.jsx(ka,{isLoading:p,fullWidth:!0,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},wIi=Sn(),SIi=({elementList:e})=>{const{rowData:t,chemistryGroupCol:n}=v.useMemo(()=>{const a={},s={},l={},c={};e&&e.length>0&&e.forEach(m=>{const b=`${m.SampleTypeName||"?"}${m.SampleSequence??""}`,y=m.ElementName;y&&(a[y]||(a[y]={order:m.Order??1/0,decimals:m.Decimals??4},l[y]=null,c[y]=null),m.MinValue!==null&&(l[y]===null||m.MinValue<l[y])&&(l[y]=m.MinValue),m.MaxValue!==null&&(c[y]===null||m.MaxValue>c[y])&&(c[y]=m.MaxValue),s[b]||(s[b]={id:b,SampleTypeName:m.SampleTypeName||"",SampleSequence:m.SampleSequence??null,Reception:m.Reception||null}),s[b][y]={value:m.Value,status:m.Status,minValue:m.MinValue,maxValue:m.MaxValue,decimals:a[y].decimals})});const u=Object.keys(a).sort((m,b)=>{const y=a[m].order,M=a[b].order;return y!==M?y-M:m.localeCompare(b)}),d=[{headerName:"Sample",valueGetter:m=>m.data?m.data.id:"",minWidth:100,flex:1},{headerName:"Time",minWidth:81,resizable:!0,valueGetter:m=>!m.data||m.data.id==="MIN"||m.data.id==="MAX"?"":m.data.Reception?wIi(m.data.Reception).format("HH:mm"):"",flex:1}],p=u.map(m=>{const b=a[m].decimals;return{headerName:m,minWidth:60,valueGetter:y=>{if(!y.data)return null;const M=y.data[m];return M&&typeof M=="object"?M.value:null},valueFormatter:y=>{if(y.value===null||y.value===void 0)return"-";let M=b;if(y.data){const C=y.data[m];C&&typeof C=="object"&&(M=C.decimals??b)}return typeof y.value=="number"?y.value.toFixed(M):"-"},cellClassRules:{"cell-below-min":y=>{if(y.rowIndex!==0||!y.data||y.data.id==="MIN"||y.data.id==="MAX")return!1;const M=y.data[m];return!!(M&&typeof M=="object"&&M.status==="Below")},"cell-above-max":y=>{if(y.rowIndex!==0||!y.data||y.data.id==="MIN"||y.data.id==="MAX")return!1;const M=y.data[m];return!!(M&&typeof M=="object"&&M.status==="Above")}},type:"numericColumn",flex:1}}),h={headerName:"Chemistry",children:[...d,...p]},g=Object.values(s);if(u.length>0){const m={id:"MIN",SampleTypeName:"MIN",SampleSequence:null,Reception:null},b={id:"MAX",SampleTypeName:"MAX",SampleSequence:null,Reception:null};u.forEach(y=>{const M=a[y].decimals;m[y]={value:l[y],decimals:M},b[y]={value:c[y],decimals:M}}),g.push(m,b)}return{rowData:g,chemistryGroupCol:h}},[e]),r=a=>a.data&&(a.data.id==="MIN"||a.data.id==="MAX")?{backgroundColor:"#f0f0f0"}:{},i=v.useMemo(()=>n?n.children||[]:[],[n]),o=v.useMemo(()=>({sortable:!1,editable:!1,suppressMenu:!0,flex:1}),[]);return{columns:i,defaultColDef:o,rowData:t,getRowStyle:r}},AIi=Et(e=>({gridWrapper:{"& .ag-cell.cell-below-min":{backgroundColor:" #ffa500",fontWeight:"bold"},"& .ag-cell.cell-above-max":{backgroundColor:" #f26b6b",fontWeight:"bold"},"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}}})),OIi=()=>{const e=og();AIi();const{state:t}=Wo(),n=t.elements||[],{columns:r,rowData:i,getRowStyle:o}=SIi({elementList:n}),a=20+i.length*41+2;return f.jsx(f.Fragment,{children:f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:`${e.materialTable}`,style:{height:`${Math.max(a,227)}px`,minWidth:"100%"},children:f.jsx($n,{rowData:i,columnDefs:r,suppressPaginationPanel:!0,suppressContextMenu:!0,cellSelection:!0,copyHeadersToClipboard:!0,enableCellTextSelection:!0,getRowId:l=>l.data.id,getRowStyle:o,noRowsOverlayComponent:()=>"No chemistry data available"})})})})})},bpe=e=>{const{displayName:t,editCallback:n,column:r}=e;return f.jsxs(D,{container:!0,alignItems:"center",spacing:0,children:[f.jsx(D,{item:!0,children:f.jsx("span",{children:t})}),f.jsx(D,{item:!0,children:f.jsx(bn,{color:"primary",onClick:()=>n(r.getColId()),title:`Edit ${t}`,size:"medium",children:f.jsx(Fo,{style:{cursor:"pointer"},fontSize:"small"})})})]})},zIi=(e,t)=>{const n=[{property:"Housing",field:"HousingName",type:"listbox"},{property:"Housing First",field:"ForceHeatsOnHousing",type:"checkbox"},{property:"Housing Heats",field:"HeatsOnHousing",type:"input",readOnly:!0},{property:"Mold",field:"MoldName",type:"autocomplete"},{property:"Size",field:"MoldSizeName",type:"input",readOnly:!0},{property:"Mold First",field:"ForceHeatsOnMold",type:"checkbox"},{property:"Mold Heats",field:"HeatsOnMold",type:"input",readOnly:!0}],r=e.reduce((l,c)=>(l[c.Strand?.toString()]=c,l),{}),i=n.map(l=>({id:l.property,Property:l.property,s1:r[1]?r[1][l.field]:null,s2:r[2]?r[2][l.field]:null,s3:r[3]?r[3][l.field]:null,type:l.type,field:l.field,readOnly:l.readOnly||!1})),o=l=>l.data.type==="checkbox"?f.jsx(Qr,{color:"primary",checked:!!l.value,disabled:!0}):f.jsx("span",{children:l.value!=null?l.value:""});return{columns:[{field:"Property",headerName:"",flex:1,minWidth:115},{field:"s1",headerName:"S1",flex:1,minWidth:84,headerComponent:bpe,headerComponentParams:{editCallback:l=>{t(l)}},cellRenderer:o,cellStyle:{display:"flex",justifyContent:"center"}},{field:"s2",headerName:"S2",flex:1,minWidth:84,headerComponent:bpe,headerComponentParams:{editCallback:l=>{t(l)}},cellRenderer:o,cellStyle:{display:"flex",justifyContent:"center"}},{field:"s3",headerName:"S3",flex:1,minWidth:85,headerComponent:bpe,headerComponentParams:{editCallback:l=>{t(l)}},cellRenderer:o,cellStyle:{display:"flex",justifyContent:"center"}}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:i}},nTe=()=>{const[e,t]=v.useState(),[n,r]=v.useState(null),{state:i,actions:o}=Wo(),a=async(l,c,u)=>{if(i.processData===null||i.processData.ProcessId===null||u===null&&c!=="ForceHeatsOnHousing"&&c!=="ForceHeatsOnMold"&&c!=="Pieces")return;o.setIsLoadingBackground(!0);let d;d=await nOi(i.processData.ProcessId,l,c,u),o.setIsLoadingBackground(!1),d?.ok?r(c+" was saved successfully"):t(d?.message)},s=async(l,c)=>{if(i.processData===null||i.processData.ProcessId===null||c===null&&l!=="ForceHeatsOnHousing"&&l!=="ForceHeatsOnMold"&&l!=="Pieces")return;o.setIsLoadingBackground(!0);let u;u=await rOi(i.processData.ProcessId,l,c),o.setIsLoadingBackground(!1),u?.ok?r(l+" was saved successfully for all strands"):t(u?.message)};return v.useEffect(()=>{n&&(o.setNotificationMessage(n),r("")),e&&(o.setErrorMessage(e),t(null))},[n,e]),{save:a,saveAllStrands:s,error:e,sucess:n}},TIi=({show:e,onHide:t,strandId:n})=>{const{state:r}=Wo(),i=c2(),{save:o}=nTe(),[a,s]=v.useState(!1),[l,c]=v.useState(""),u=r.housings||[],d=r.moldSizes||[],p=r.strands||[],h=n.startsWith("s")?n.substring(1):n,g=p.find(x=>x.Strand?.toString()===h),{control:m,handleSubmit:b,reset:y,formState:{errors:M}}=jn({defaultValues:{HousingId:g&&g.HousingId||"",ForceHeatsOnHousing:g?!!g.ForceHeatsOnHousing:!1,MoldId:g&&g.MoldId||"",ForceHeatsOnMold:g?!!g.ForceHeatsOnMold:!1}});v.useEffect(()=>{e&&g&&y({HousingId:g.HousingId||"",ForceHeatsOnHousing:!!g.ForceHeatsOnHousing,MoldId:g.MoldId||"",ForceHeatsOnMold:!!g.ForceHeatsOnMold})},[e,y,g]);const C=async x=>{if(p.length){s(!0);try{await o(g?.Strand||0,"HousingId",x.HousingId),await o(g?.Strand||0,"ForceHeatsOnHousing",x.ForceHeatsOnHousing?1:null),await o(g?.Strand||0,"MoldId",x.MoldId),await o(g?.Strand||0,"ForceHeatsOnMold",x.ForceHeatsOnMold?1:null),s(!1),t(!0)}catch(w){c(w.message||"Error saving strand"),s(!1)}}};return f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`Edit Strand ${g?.Strand?g?.Strand:""}`}),f.jsx(We,{title:`Edit Strand ${g?.Strand?g?.Strand:""}`,open:e,handleClose:()=>t(!1),id:"edit-strand-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:b(C),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",children:[f.jsx(ol,{id:"housing-label",children:"Housing"}),f.jsx(Ue,{name:"HousingId",control:m,rules:{required:"Housing is required"},render:({field:x})=>f.jsx(cs,{...x,labelId:"housing-label",label:"Housing",children:u.map(w=>f.jsx(lr,{value:w.HousingId,children:w.HousingName},w.HousingId))})}),M.HousingId&&f.jsx("span",{className:i.errorLabel,children:M.HousingId.message})]})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"ForceHeatsOnHousing",control:m,render:({field:x})=>f.jsx(UI,{label:"Housing First",checkboxValue:!!x.value,disabled:!1,onCheckboxChange:w=>x.onChange(w)})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",children:[f.jsx(ol,{id:"mold-label",children:"Mold"}),f.jsx(Ue,{name:"MoldId",control:m,rules:{required:"Mold is required"},render:({field:x})=>f.jsx(cs,{...x,labelId:"mold-label",label:"Mold",children:d.map(w=>f.jsx(lr,{value:w.MoldId,children:`${w.MoldName} - ${w.MoldSizeName}`},w.MoldId))})}),M.MoldId&&f.jsx("span",{className:i.errorLabel,children:M.MoldId.message})]})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"ForceHeatsOnMold",control:m,render:({field:x})=>f.jsx(UI,{label:"Mold First",checkboxValue:!!x.value,disabled:!1,onCheckboxChange:w=>x.onChange(w)})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(ka,{fullWidth:!0,isLoading:a,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(yt,{error:l,onHide:()=>c(""),title:"Error Editing Strand"})]})},EIi=({refreshData:e})=>{const{state:t,actions:n}=Wo(),r=og(),i=t.strands||[],[o,a]=v.useState(""),s=d=>{n.setRefreshInPause(!0),a(d)},{columns:l,rowData:c}=zIi(i,s),u=l.map((d,p)=>p!==0&&p%2===0?{...d,cellStyle:{...d.cellStyle,backgroundColor:"rgba(245, 245, 245, 0.67)"}}:d);return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{className:r.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:`${r.materialTable}`,children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:c,columnDefs:u,domLayout:"normal",getRowId:d=>d.data.id})})})}),f.jsx(TIi,{show:!!o,onHide:d=>{a(""),d&&e(),n.setRefreshInPause(!1)},strandId:o})]})},RIi={errorMessage:"",notificationMessage:"",isDataLoading:!1,isSubmitLoading:!1,isProcessTimesLoading:!1,deProcess:null,pourbacks:[],unjustifiedDelays:[]},TY=ki({name:"__",initialState:RIi,reducers:{setIsDataLoading(e,{payload:t}){e.isDataLoading=t},setIsSubmitLoading(e,{payload:t}){e.isSubmitLoading=t},setIsProcessTimesLoading(e,{payload:t}){e.isProcessTimesLoading=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setDEProcess(e,{payload:t}){e.deProcess=t},setPourbacks(e,{payload:t}){e.pourbacks=t},setProcess(e,{payload:t}){e.deProcess&&(e.deProcess.process=t)},setUnjustifiedDelays(e,{payload:t}){e.unjustifiedDelays=t}}}),nTt=v.createContext({state:TY.getInitialState(),actions:TY.actions}),_s=()=>v.useContext(nTt),IIi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:TY.getInitialState(),reducers:TY.caseReducers});return f.jsx(nTt.Provider,{value:{state:t,actions:n},children:e})},rTe=()=>{const{state:{settings:e}}=Ma(),{getFirstName:t}=sT(),n=t(),r=At(e,"FF_EAF_DELAY_NOTIFICATION_ENABLED",0),i=At(e,"EAF_DELAY_NOTIFICATION_TIME_IN_MINUTES",60),o=n.trim(),a=!!Number(r)&&(o==="EAF1"||o==="EAF2"||o==="Admin"),s=v.useCallback(()=>{const c=localStorage.getItem("dismiss_timestamp");if(!c)return!1;const u=Date.now(),d=new Date(c);return u-d.getTime()<i*60*1e3},[i]),l=v.useCallback(()=>{localStorage.setItem("dismiss_timestamp",new Date().toISOString())},[]);return{hasAccess:a,dismissDelayJustification:l,EAF_DELAY_NOTIFICATION_TIME_IN_MINUTES:i,delayJustificationDismissed:s}},Ss=()=>{const{state:e,actions:{setDEProcess:t,setErrorMessage:n,setIsDataLoading:r,setIsSubmitLoading:i,setIsProcessTimesLoading:o,setNotificationMessage:a,setPourbacks:s,setUnjustifiedDelays:l}}=_s(),{restart:c}=I0(),{hasAccess:u}=rTe(),d=async G=>{r(!0);const q=await ESi({ProcessId:G});if(q.ok){const $=q.data;if(t({process:$.tables[0].rows[0],probes:$.tables[1].rows,heatings:$.tables[2].rows,charges:$.tables[3].rows,additions:$.tables[4].rows,wireAdditions:$.tables[5].rows,electrodeEvents:$.tables[6].rows,phases:$.tables[7].rows}),await h(G),u){const U=$.tables[0].rows[0].AssetId,X=$.tables[0].rows[0].ShiftId;await p(U,X)}}else n(q.message);return r(!1),q.data?.tables[0].rows[0]},p=async(G,q)=>{const $=G||e.deProcess?.process?.AssetId,U=q||e.deProcess?.process?.ShiftId;if(u&&$&&U){const X=await sAi({AssetId:$,ShiftId:U});X.ok?l(X.data.tables[0].rows):n(X.message)}},h=async G=>{r(!0);const q=await iAi({ProcessId:G});if(q.ok){const $=q.data;s($.tables[0].rows)}else n(q.message);r(!1)},g=v.useCallback(async()=>{e.deProcess?.process?.ProcessId?d(e.deProcess.process.ProcessId).then(()=>{c()}):d(null).then(()=>{c()})},[e.deProcess?.process?.ProcessId]);return{saveProcess:async G=>{i(!0),o(!0),n("");const q=await LSi({ProcessId:G.ProcessId,Start:G.Start.toISOString(),End:G.End?.toISOString()||null,AssetId:G.AssetId});i(!1),q.ok?(a("Process saved successfully"),await g(),o(!1)):(n(q.message),o(!1))},loadData:d,loadUnjustifiedDelays:p,refreshData:g,loadPourbacks:h,UpsertPourbackCharge:NKe,saveProcessData:async({processId:G,field:q,value:$})=>{i(!0),n("");const U=await _Si({processId:G,field:q,value:$});i(!1),U.ok?(a("Process saved successfully"),await g()):n(U.message)},saveProbe:async G=>{i(!0),n("");const q=await WSi({ProcessId:e.deProcess?.process.ProcessId,ProbeId:G.ProbeId,IsProbeManual:!0,Timestamp:G.Timestamp.toISOString(),Temperature:G.Temperature,Carbon:G.Carbon,Oxygen:G.Oxygen});i(!1),q.ok?(a("Process saved successfully"),await g()):n(q.message)},saveElectrodeEvent:async G=>{i(!0),n("");const q=await qSi({ProcessId:e.deProcess?.process.ProcessId,ElectrodeEventId:G.ElectrodeEventId,Phase:G.Phase,PhaseEventTypeId:G.PhaseEventTypeId,Timestamp:G.Timestamp.toISOString(),IsManual:G.IsManual});i(!1),q.ok?(a("Process saved successfully"),await g()):n(q.message)},saveHeat:async(G,q)=>{i(!0),n("");const $=await BSi({HeatId:e.deProcess?.process.HeatId,field:G,value:q});i(!1),$.ok?(a("Process saved successfully"),await g()):n($.message)},saveCharge:async G=>{i(!0),n("");const q=await FSi({ProcessId:e.deProcess?.process.ProcessId,ChargeId:G.ChargeId,Charge:G.Charge,Timestamp:G.Timestamp.toISOString(),ChargeCode:G.ChargeCode,Weight:G.Weight,BucketId:G.BucketId});i(!1),q.ok?(a("Charge saved successfully"),await g()):n(q.message)},saveTrim:async G=>{i(!0),n("");const q=await NSi({processId:e.deProcess?.process.ProcessId,TrimProbeTemperature:G.TrimProbeTemperature,TrimProbeTime:G.TrimProbeTimestamp});i(!1),q.ok?(a("Process saved successfully"),await g()):n(q.message)},saveAddition:async G=>{i(!0),n("");const q=await jSi({ProcessId:e.deProcess?.process.ProcessId,AdditionId:G?.AdditionId,Timestamp:G?.Timestamp.toISOString(),Weight:G?.Weight,MaterialId:G?.MaterialId});i(!1),q.ok?(a("Addition saved successfully"),await g()):n(q.message)},saveWireAddition:async G=>{i(!0),n("");const q=await HSi({ProcessId:e.deProcess?.process.ProcessId,WireAdditionId:G.WireAdditionId,Line:G.Line,MaterialId:G.MaterialId,RequestedValue:G.RequestedValue,InjectedValue:G.InjectedValue,Start:G.Start?.toISOString()||null,End:G.End?.toISOString()||null});i(!1),q.ok?(a("Wire addition saved successfully"),await g()):n(q.message)},saveHeating:async G=>{i(!0),n("");const q=await VSi({ProcessId:e.deProcess?.process.ProcessId,HeatingId:G.HeatingId,Start:G.Start.toISOString(),End:G.End.toISOString(),MWH:G.MWH});i(!1),q.ok?(a("Heating saved successfully"),await g()):n(q.message)},savePourbackCharge:async G=>{i(!0),n("");const q=await NKe({PourbackId:G?.PourbackId,HeatId:G?.HeatId,DestinationProcessId:e.deProcess?.process.ProcessId,ChargedWeight:G?.PourbackWeight,ChargedTime:G?.ChargedTime?.toISOString(),RemainingWeight:G?.ChargedWeight===0?null:G?.ChargedWeight,Comments:G?.Comments});i(!1),q.ok?(a("Pourback saved successfully"),await g()):n(q.message)},deleteProbe:async G=>{i(!0),n("");const q=await QSi({ProbeId:G});i(!1),q.ok?(a("Probe deleted successfully"),await g()):n(q.message)},deleteCharge:async G=>{i(!0),n("");const q=await ZSi({ChargeId:G});i(!1),q.ok?(a("Charge deleted successfully"),await g()):n(q.message)},deleteAddition:async G=>{i(!0),n("");const q=await JSi({AdditionId:G});i(!1),q.ok?(a("Addition deleted successfully"),await g()):n(q.message)},deleteWireAddition:async G=>{i(!0),n("");const q=await eAi({WireAdditionId:G});i(!1),q.ok?(a("Wire addition deleted successfully"),await g()):n(q.message)},deleteHeating:async G=>{i(!0),n("");const q=await tAi({HeatingId:G});i(!1),q.ok?(a("Heating deleted successfully"),await g()):n(q.message)},deleteElectrodeEvent:async G=>{i(!0),n("");const q=await nAi({ElectrodeEventId:G});i(!1),q.ok?(a("Electrode event deleted successfully"),await g()):n(q.message)},deletePourbackCharge:async G=>{i(!0),n("");const q=await rAi({PourbackId:G});i(!1),q.ok?(a("Pourback deleted successfully"),await g()):n(q.message)},getMaterials:async()=>{r(!0),n("");const G=await U3e();if(G.ok)return G.data.tables[0].rows;n(G.message),r(!1)},getBuckets:async()=>{r(!0),n("");const G=await Ste();if(G.ok)return G.data.tables[0].rows;n(G.message),r(!1)}}},PIi=({initialSeconds:e,onTimeUp:t})=>{const[n,r]=v.useState(e),[i,o]=v.useState(!0),a=v.useRef(null),s=v.useRef(!1),l=v.useCallback(()=>{r(p=>p<=1?(!s.current&&t&&(t(),s.current=!0),e):p-1)},[e,t]),c=v.useCallback(()=>{o(!1),a.current&&clearInterval(a.current)},[]),u=v.useCallback(()=>{o(!0),s.current=!1},[]),d=v.useCallback(()=>{r(e),s.current=!1,i||o(!0)},[e,i]);return v.useEffect(()=>(i?a.current=setInterval(l,1e3):a.current&&clearInterval(a.current),()=>{a.current&&clearInterval(a.current)}),[i,l]),v.useEffect(()=>{s.current=!1},[n]),{seconds:n,isRunning:i,pause:c,resume:u,restart:d}},rTt=v.createContext({isRunning:!1,restart:()=>{},pause:()=>{},resume:()=>{},seconds:10}),I0=()=>v.useContext(rTt),DIi=({children:e})=>{const{refreshData:t}=Ss(),{seconds:n,isRunning:r,pause:i,resume:o,restart:a}=PIi({initialSeconds:10,onTimeUp:t});return f.jsx(rTt.Provider,{value:{seconds:n,isRunning:r,pause:i,resume:o,restart:a},children:e})},u2=({showCreateModal:e,setShowCreateModal:t,hasMaxItems:n,readFromPLC:r,table:i})=>{const[o,a]=v.useState(!1),[s,l]=v.useState(""),{pause:c}=I0(),u=async()=>{if(a(!0),r){const d=await r();d.ok||l(d.message)}a(!1)};return f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,justifyContent:"space-between",alignItems:"center",style:{minHeight:"50px"},children:[f.jsx(D,{item:!0,md:6,children:t&&f.jsx(bn,{color:"primary",onClick:()=>{c(),t(!e)},disabled:n,title:`Add ${i}`,children:f.jsx(G3e,{style:{cursor:"pointer"}})})}),r&&f.jsx(D,{item:!0,md:6,style:{display:"flex",justifyContent:"flex-end"},children:f.jsx(ka,{isLoading:o,fullWidth:!0,variant:"outlined",color:"primary",onClick:()=>{u()},title:`Get from ${i==="additions"?"HMI":"PLC"}`,size:"small",style:{width:"20%"},children:f.jsx(ote,{})})})]}),f.jsx(yt,{error:s,onHide:()=>l("")})]})},kIi=({setLostStrandSelected:e,setModalMode:t,refreshData:n,setError:r})=>{const{state:i,actions:o}=Wo();return{onEditButtonClick:u=>{const d=i.lostStrands?.find(p=>p.LostStrandId===u);e(d),t("edit"),o.setRefreshInPause(!0)},onDeleteButtonClick:u=>{const d=i.lostStrands?.find(p=>p.LostStrandId===u);e(d),t("delete"),o.setRefreshInPause(!0)},onCreateButtonClick:()=>{e(null),t("create"),o.setRefreshInPause(!0)},readFromPLC:async()=>{const u=i?.processData?.ProcessId;if(u){const d=await COi(u);return d.ok?(n(),{ok:!0}):(r(d.message),{ok:!1,message:d.message})}else return r("Process not found"),{ok:!1,message:"Process not found"}}}},iTe=({isManual:e})=>{const t=ARi();return f.jsx(D,{container:!0,justifyContent:"center",children:f.jsx(D,{item:!0,md:12,children:f.jsx(Ne,{title:e?"Manual":"Automatic",variant:"contained",color:"primary",className:t.manualAutoButton,style:{cursor:"auto",backgroundColor:e?"primary":"green"},children:e?"M":"A"})})})},LIi=({onDeleteButtonClick:e,onEditButtonClick:t})=>({columns:[{headerName:"Lost Strands",children:[{field:"isManual",headerName:" ",flex:1,minWidth:50,maxWidth:50,cellRenderer:r=>f.jsx(iTe,{isManual:r.data.IsManual})},{field:"StrandId",headerName:"Strand",flex:1,minWidth:70},{field:"Timestamp",headerName:"Time",flex:1,minWidth:59,valueGetter:r=>{if(r.data.Timestamp)return Wn(r.data.Timestamp,"HH:mm")}},{field:"LostStrandTypeName",headerName:"Comment",flex:3,minWidth:50,wrapText:!0,autoHeight:!0},{field:"actions",headerName:" ",flex:1,minWidth:50,maxWidth:50,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:TM,cellRendererParams:r=>({deleteItem:e,edit:t,id:r.data.LostStrandId})}]}]}),_Ii=Sn(),Hm=({value:e,format:t,label:n,onChange:r,onBlur:i,disabled:o=!1,disableOpenPicker:a=!1,error:s=""})=>{const l={};t&&(l.format=t);const{pause:c,resume:u}=I0(),d=()=>{c()};return f.jsx(xd,{ampm:!1,disableFuture:!0,disableOpenPicker:a,disabled:o,timezone:Ic.getInstance().getServerTimeZone(),label:n,value:_Ii(e),onChange:p=>{r(p?.toDate()||null)},onAccept:p=>{r(p?.toDate()||null),i(p?.toDate()||null)},openTo:t?.includes("HH:mm")&&!t?.includes("DD/MM/YYYY")?"hours":"day",views:t?.includes("HH:mm")&&!t?.includes("DD/MM/YYYY")?["hours","minutes"]:["year","month","day","hours","minutes"],timeSteps:{minutes:1},slotProps:{textField:{variant:"outlined",fullWidth:!0,onFocus:d,onBlur:()=>{u(),i(e||null)},error:!!s,helperText:s,InputLabelProps:{style:{fontSize:"14px"}},InputProps:{style:{height:"35px",maxWidth:"100%"}},inputProps:{sx:{fontSize:"16px !important"}}}},...l})},NIi=({value:e,onChange:t,disabled:n,error:r,helperText:i})=>{const o=v.useRef(!0),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState([]),[p,h]=v.useState(),g=fT(),m=async()=>{s(!0);const b=await vOi();if(b.ok){const y=At(b,"data.tables[0].rows",[]);d(y)}else c(b.message);s(!1)};return v.useEffect(()=>{if(o.current){o.current=!1,m().then(()=>{});return}},[]),f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(ol,{id:"lostStrandTypeSelector",className:g.inputLabel,children:"Lost Strand Type"}),f.jsx(cs,{fullWidth:!0,disabled:a||n,labelId:"lostStrandTypeSelector",id:"lostStrandTypeSelector",value:e||"",error:!!r,onChange:b=>{const y=b.target.value;t(y),h(y)},label:"Lost Strand Type",children:u.map(b=>f.jsx(lr,{value:b.LostStrandTypeId,children:b.Description},`lost-strand-type-${b.LostStrandTypeId}`))}),r&&f.jsx(oQ,{error:!0,children:r})]}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},FIi=Sn(),WIi=({show:e,onHide:t,date:n,limitDates:r,lostStrand:i,processId:o})=>{const[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(!1),p=c2(),h=v.useMemo(()=>{if(e==="edit")return"Edit Lost Strand";if(e==="delete")return"Delete Lost Strand";if(e==="create")return"New Lost Strand"},[e]),g=v.useMemo(()=>{if(e==="edit")return"EDIT LOST STRAND";if(e==="delete")return"DELETE LOST STRAND";if(e==="create")return"NEW LOST STRAND"},[e]),{getValues:m,handleSubmit:b,setValue:y,control:M,reset:C,formState:{errors:x}}=jn({}),w=async S=>{if(s(!0),e==="delete"){const A=await yOi(S.LostStrandId);A.ok?(d(!0),t()):c(A.message)}else{const A=await bOi(S);A.ok?(d(!0),t()):c(A.message)}s(!1)};return v.useEffect(()=>{e&&((e==="edit"||e==="delete")&&i?C({...i,Timestamp:i.Timestamp?FIi.utc(i.Timestamp).toDate():n}):e==="create"&&C({ProcessId:o,Timestamp:n,LostStrandId:0,StrandId:void 0,LostStrandTypeId:void 0,Comment:"",Author:""}))},[e,i,o,n,C]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`${h}`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{title:g,open:!!e,handleClose:()=>t(),id:"upsert-electrode-event-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:b(w),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"StrandId",control:M,rules:{required:"Strand is required"},render:({field:S})=>f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(ol,{id:"strandSelector",children:"Strand"}),f.jsxs(cs,{fullWidth:!0,labelId:"strandSelector",id:"strandSelector",value:S.value,onChange:S.onChange,label:"Strand",disabled:e==="delete",children:[f.jsx(lr,{value:1,children:"Strand 1"}),f.jsx(lr,{value:2,children:"Strand 2"}),f.jsx(lr,{value:3,children:"Strand 3"})]})]})}),x.StrandId&&f.jsx("span",{className:p.errorLabel,children:x.StrandId.message})]}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:"2px"},children:f.jsx(Ue,{name:"Timestamp",control:M,defaultValue:n,rules:{required:"Timestamp is required",validate:S=>r?.start&&S<r.start?"Timestamp must be between the start and end of the process":r?.end&&S>r.end?"Timestamp must be less than the end of the process":!0},render:({field:S})=>f.jsx(Hm,{...S,format:"HH:mm - MM/DD/YYYY",value:S.value,label:"Time",error:x.Timestamp?.message,onChange:A=>{A&&y("Timestamp",A,{shouldValidate:!0})},onBlur:()=>{},disabled:e==="delete"})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"LostStrandTypeId",control:M,rules:{required:"Lost Strand Type is required",validate:S=>!S||S===0?"Lost Strand Type is required":!0},render:({field:S})=>f.jsx(NIi,{value:S.value,onChange:S.onChange,error:x.LostStrandTypeId?.message,disabled:e==="delete",helperText:x.LostStrandTypeId?.message})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(ka,{fullWidth:!0,isLoading:a,variant:"contained",color:e==="delete"?"secondary":"primary",type:"submit",size:"large",children:e==="delete"?"Delete":"Save"})})]})})]})})})}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},qIi=({refreshData:e})=>{const{state:{processData:t,lostStrands:n},actions:r}=Wo(),[i,o]=v.useState(null),[a,s]=v.useState(null),[l,c]=v.useState(),u=og(),{onEditButtonClick:d,onDeleteButtonClick:p,readFromPLC:h}=kIi({setLostStrandSelected:c,setModalMode:s,refreshData:e,setError:o}),{columns:g}=LIi({onEditButtonClick:d,onDeleteButtonClick:p});return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{elevation:0,children:f.jsxs(Tn,{className:` ${u.borderAgGridTable} `,children:[f.jsx("div",{className:`${u.materialTable}`,style:{height:"11rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:n,columnDefs:g,domLayout:"normal"})}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:!1,showCreateModal:a==="create",setShowCreateModal:()=>{s("create"),r.setRefreshInPause(!0)},table:"lost-strands",readFromPLC:h})]})}),f.jsx(WIi,{show:a,onHide:()=>{r.setRefreshInPause(!1),s(null),c(null),e()},date:t?.LadleOpen??new Date,lostStrand:l,limitDates:t?.LadleOpen?{start:t.LadleOpen,end:t.LadleClose??new Date}:void 0,processId:t?.ProcessId??void 0}),f.jsx(yt,{error:i,onHide:()=>o("")})]})},iTt=()=>{const[e,t]=v.useState(),[n,r]=v.useState(null),{actions:i}=Wo();return{readStrand:async(s,l)=>{if(s===null||l<=0)return;r(null),t(null),i.setIsLoadingBackground(!0);const c=await cOi(s,l,!0);i.setIsLoadingBackground(!1),c.ok?i.setNotificationMessage(`PLC was read successfully for strand ${l}`):i.setErrorMessage(c.message)},readProbe:async s=>{if(s===null)return;r(null),t(null),i.setIsLoadingBackground(!0);const l=await uOi(s);i.setIsLoadingBackground(!1),l.ok?i.setNotificationMessage("PLC was read successfully"):i.setErrorMessage(l.message)},error:e,sucess:n}},BIi=({refreshData:e,setProbeSelected:t,setModalMode:n})=>{const{state:r,actions:i}=Wo(),{readProbe:o}=iTt(),a=p=>{t(p),n("edit"),i.setRefreshInPause(!0)},s=p=>{t(p),n("delete"),i.setRefreshInPause(!0)},l=()=>{t(null),n("create"),i.setRefreshInPause(!0)},c=p=>{i.setRefreshInPause(!0),p.id==="ladle"&&u(),i.setRefreshInPause(!1)},u=async()=>{const p=r?.processData?.ProcessId;if(p){const h=await hOi({processId:p});return h.ok?await e():i.setErrorMessage(h.message),h}else return i.setErrorMessage("Process not found"),{ok:!1,message:"Process not found"}};return{onEditButtonClick:a,onDeleteButtonClick:s,onCreateButtonClick:l,onDownloadButtonClick:c,readProbesFromPLC:async()=>{const p=r?.processData?.ProcessId;return p?(await o(p),e(),{ok:!0}):(i.setErrorMessage("Process not found"),{ok:!1,message:"Process not found"})}}},lD=({deleteItem:e,editItem:t,downloadItem:n,downloadLabel:r,deleteLabel:i,editLabel:o,loading:a})=>f.jsx(f.Fragment,{children:f.jsxs(Iz,{children:[t&&f.jsx(bn,{color:"primary",onClick:()=>{t()},title:o||"Edit",children:f.jsx(Fo,{style:{cursor:"pointer"},fontSize:"small"})}),e&&f.jsx(bn,{color:"secondary",onClick:()=>{e()},title:i||"Delete",children:f.jsx(Mo,{style:{cursor:"pointer"},fontSize:"small"})}),n&&f.jsxs(bn,{color:"primary",onClick:()=>{n()},title:r||"Get data",disabled:a,children:[f.jsx(ote,{style:{cursor:"pointer"},fontSize:"small"}),a&&f.jsx(Kt,{size:16,color:"inherit"})]})]})}),jIi=Sn(),HIi=({processData:e,onEditButtonClick:t,onDeleteButtonClick:n,onDownloadButtonClick:r})=>{const{state:i}=Wo(),o=i.probes||[],a=[];return a.push({id:"liquidus",type:"liquidus",label:"Liquidus",timestamp:null,temperature:e?e.F1LiquidusTemperature:null,superHeat:"--",isManual:!1}),a.push({id:"ladle",type:"ladle",label:"Ladle",timestamp:e?e.TrimProbeTime:null,temperature:e?e.TrimProbeTemperature:null,trimProbeOxygen:e?e.TrimProbeOxygen:null,superHeat:e&&e.LadleSuperHeat!==null?String(e.LadleSuperHeat):"--",isManual:e?!!e.IsTrimDataManual:!1}),o.forEach(c=>{a.push({id:c.ProbeId?.toString(),type:"probe",label:"",timestamp:c.Timestamp,temperature:c.Temperature,superHeat:c.SuperHeat!==null?String(c.SuperHeat):"--",isManual:!!c.IsProbeManual})}),{columns:[{headerName:"Probes",children:[{field:"manual-auto",headerName:" ",flex:1,minWidth:50,maxWidth:50,cellRenderer:c=>f.jsx(iTe,{isManual:c.data.isManual})},{field:"label",headerName:"",flex:1,minWidth:77,cellStyle:{textAlign:"left"}},{field:"timestamp",headerName:"Time",flex:1,minWidth:62,valueGetter:c=>c.data.timestamp?jIi(c.data.timestamp).format("HH:mm"):"--"},{field:"temperature",headerName:"Temp",flex:1,minWidth:58},{field:"superHeat",headerName:"SH",flex:1,minWidth:55,cellStyle:{textAlign:"right"}},{field:"trimProbeOxygen",headerName:"O2",flex:1,minWidth:55,cellStyle:{textAlign:"right"}},{field:"actions",headerName:" ",flex:1,minWidth:65,maxWidth:65,cellRenderer:c=>c.data.type==="liquidus"?null:c.data.type==="ladle"?f.jsx(lD,{editItem:()=>t(c.data),downloadItem:()=>r(c.data),downloadLabel:"Get From PLC"}):f.jsx(lD,{editItem:()=>t(c.data),deleteItem:()=>n(c.data),downloadLabel:"Get From PLC"})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:a}},VIi=()=>{const[e,t]=v.useState(),[n,r]=v.useState(null),{state:i,actions:o}=Wo(),a=async l=>{if(!i.processData||!i.processData.ProcessId)return;o.setIsLoadingBackground(!0);const c=await sOi({ProbeId:l.ProbeId,Timestamp:l.Timestamp,Temperature:l.Temperature,Oxygen:l.Oxygen,ProcessId:i.processData.ProcessId,IsProbeManual:l.IsProbeManual});o.setIsLoadingBackground(!1),c.ok?r("Probe was saved successfully"):t(c.message)},s=async l=>{o.setIsLoadingBackground(!0);const c=await lOi(l);c.ok?r("Probe was deleted"):t(c.message),o.setIsLoadingBackground(!1)};return v.useEffect(()=>{n&&(o.setNotificationMessage(n),r("")),e&&(o.setErrorMessage(e),t(null))},[n,e]),{saveProbe:a,removeProbe:s,error:e,sucess:n}},Tm=(e,t,n,r)=>e<t||e>n?`${r} must be between ${t} and ${n}.`:!0,GIi=Sn(),$Ii=({show:e,onHide:t,mode:n,row:r,limitDates:i})=>{const{state:o}=Wo(),{state:{settings:a}}=Ma(),s=At(a,"MAX_TEMP_PROBE",2500),l=At(a,"MIN_TEMP_PROBE",3500),c=c2(),{saveProbe:u,removeProbe:d}=VIi(),{saveTrimData:p}=Q3e(),[h,g]=v.useState(!1),[m,b]=v.useState(""),y=v.useMemo(()=>n==="create"?o.processData?.LadleOpen?new Date(o.processData.LadleOpen):new Date:r&&r.timestamp?new Date(r.timestamp):new Date,[n,o.processData?.LadleOpen,r?.timestamp]),M=v.useMemo(()=>n==="create"?0:r&&r.temperature||0,[n,r?.temperature]),C=v.useMemo(()=>n==="create"?0:r&&r.trimProbeOxygen||0,[n,r?.trimProbeOxygen]),{control:x,handleSubmit:w,reset:S,formState:{errors:A}}=jn({defaultValues:{Timestamp:y,Temperature:M,TrimProbeOxygen:C}});v.useEffect(()=>{e&&S({Timestamp:y,Temperature:M,TrimProbeOxygen:C})},[e,S,y,M,C]);const z=async N=>{g(!0);try{if(n==="delete")await d(Number(r.id));else if(r&&r.id==="ladle")await p("TrimProbeTime",GIi.utc(N.Timestamp)),await p("TrimProbeTemperature",N.Temperature),await p("TrimProbeOxygen",Number(N.TrimProbeOxygen));else{const L=n==="create"?0:Number(r.id);await u({ProbeId:L,Timestamp:N.Timestamp,Temperature:Number(N.Temperature),Oxygen:null,ProcessId:o.processData?.ProcessId||0,IsProbeManual:!0})}g(!1),t(!0)}catch(L){b(L.message||`Error ${n==="delete"?"deleting":"saving"} probe`),g(!1)}},O=n==="delete",T=`${n.toUpperCase()} PROBE`,R=n==="delete",P=n==="delete"?"Delete":"Save",F=n==="delete"?"secondary":"primary";return f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`${n[0].toUpperCase()+n.slice(1)} Probe`}),f.jsx(We,{title:T,open:e,handleClose:()=>t(!1),id:"upsert-delete-probe-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:w(z),children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:[f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:r&&r.id==="ladle"?4:6,children:f.jsx(Ue,{name:"Timestamp",control:x,rules:{required:"Timestamp is required",validate:N=>r&&r.id==="ladle"?i?.start&&N>=i.start?"Ladle probe timestamp must be before the process start":!0:i?.start&&N<i.start?"Timestamp must be between the start and end of the process":i?.end&&N>i.end?"Timestamp must be less than the end of the process":!0},render:({field:N})=>f.jsx(f$,{value:N.value,format:"HH:mm - MM/DD/YYYY",label:"Time",onChange:L=>N.onChange(L),onBlur:()=>{},error:A.Timestamp?A.Timestamp.message:"",pause:()=>{},resume:()=>{},disabled:R,disableOpenPicker:!0})})}),f.jsx(D,{item:!0,xs:r&&r.id==="ladle"?4:6,children:f.jsx(Ue,{name:"Temperature",control:x,rules:{required:"Temperature is required",validate:N=>Tm(N,s,l,"Temperature")},render:({field:N})=>f.jsx(El,{...N,value:parseInt(N.value?.toFixed(0)),onChange:N.onChange,onBlur:()=>{},label:"Temperature (F)",disabled:O,pause:()=>{},resume:()=>{},error:A.Temperature?A.Temperature.message:""})})}),r&&r.id==="ladle"&&f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"TrimProbeOxygen",control:x,render:({field:N})=>f.jsx(El,{...N,value:parseInt(N.value?.toFixed(0)),onChange:N.onChange,onBlur:()=>{},label:"Trim O2",pause:()=>{},resume:()=>{},error:A.TrimProbeOxygen?A.TrimProbeOxygen.message:""})})})]}),m&&f.jsx("div",{className:c.errorLabel,style:{marginTop:"10px"},children:m})]}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(ka,{fullWidth:!0,isLoading:h,variant:"contained",color:F,type:"submit",children:P})})]})})]})}),f.jsx(yt,{error:m,onHide:()=>b(""),title:`Error ${n==="delete"?"Deleting":"Saving"} Probe`})]})},UIi=({refreshData:e})=>{const t=og(),{state:n,actions:r}=Wo(),i=n.processData,[o,a]=v.useState(""),[s,l]=v.useState(null),{onCreateButtonClick:c,onDeleteButtonClick:u,onDownloadButtonClick:d,onEditButtonClick:p,readProbesFromPLC:h}=BIi({refreshData:e,setProbeSelected:l,setModalMode:a}),{columns:g,rowData:m}=HIi({processData:i,onEditButtonClick:p,onDeleteButtonClick:u,onDownloadButtonClick:d});return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{className:t.borderAgGridTable,elevation:0,children:f.jsxs(Tn,{p:0,children:[f.jsx("div",{className:`${t.materialTable}`,style:{height:"19.25rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:m,columnDefs:g,domLayout:"normal",getRowId:b=>b.data.id})}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:!1,showCreateModal:o==="create",readFromPLC:h,setShowCreateModal:c,table:"probes"})]})}),o!==""&&n.processData?.LadleOpen&&f.jsx($Ii,{show:!0,onHide:b=>{b&&e(),r.setRefreshInPause(!1),a(""),l(null)},row:s,mode:o,limitDates:{start:n.processData?.LadleOpen,end:n.processData?.LadleClose||null}})]})};var R5={},hQe;function XIi(){if(hQe)return R5;hQe=1;var e=ri(),t=ii();Object.defineProperty(R5,"__esModule",{value:!0}),R5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"}),"ClearAll");return R5.default=i,R5}var YIi=XIi();const KIi=qn(YIi),QIi=({deleteItem:e,editItem:t,editAllItems:n,downloadItem:r,downloadLabel:i,deleteLabel:o,editLabel:a,editAllLabel:s})=>f.jsx(f.Fragment,{children:f.jsxs(Iz,{children:[t&&f.jsx(Ne,{color:"primary",onClick:()=>{t()},title:a||"Edit",style:{padding:"2px"},children:f.jsx(Fo,{style:{cursor:"pointer"},fontSize:"small"})}),n&&f.jsxs(Ne,{color:"primary",variant:"outlined",onClick:()=>{n()},title:s||"Edit All",style:{padding:"2px"},children:[f.jsx(KIi,{style:{cursor:"pointer"},fontSize:"small"}),f.jsx(Fo,{style:{cursor:"pointer"},fontSize:"small"})]}),e&&f.jsx(Ne,{color:"secondary",onClick:()=>{e()},title:o||"Delete",style:{padding:"2px"},children:f.jsx(Mo,{style:{cursor:"pointer"},fontSize:"small"})}),r&&f.jsx(Ne,{color:"primary",onClick:()=>{r()},title:i||"Get data",style:{padding:"2px"},children:f.jsx(ote,{style:{cursor:"pointer"},fontSize:"small"})})]})}),ZIi=Et(e=>({"@global":{".ag-row .actions-container":{opacity:0,transition:"opacity 0.2s ease-in-out",minWidth:"24px",display:"flex",alignItems:"center",justifyContent:"center"},".ag-row:hover .actions-container":{opacity:1}},actionsCell:{display:"flex",alignItems:"center",height:"100%"}})),JIi=({strands:e,processData:t,editCallback:n,readonly:r})=>{ZIi();const i=c=>{if(c==null)return"";const u=Math.floor(c/12),d=c%12;return`${u} ft ${d} in`};return{columns:[{headerName:"Production",children:[{field:"Strand",headerName:"",flex:1,minWidth:78,valueGetter:c=>`Strand ${c.data.Strand}`,cellClass:"first-column-cell"},{field:"PieceLength",headerName:"Length",flex:1,minWidth:83,valueFormatter:c=>i(c.value)},{field:"Pieces",headerName:"Pieces",flex:1,minWidth:64},{field:"SectionName",headerName:"Section",flex:1,minWidth:70},{field:"actions",headerComponent:r?void 0:c=>f.jsx(QIi,{editAllLabel:"Edit all strands",editAllItems:()=>n(null)}),hide:r,flex:1,minWidth:65,maxWidth:65,cellRenderer:r?void 0:c=>f.jsx(lD,{editItem:()=>n(c.data.Strand)})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0},rowData:e,statusBar:{statusPanels:[{statusPanel:"agAggregationComponent",statusPanelParams:{aggFuncs:["sum"]}},{statusPanel:()=>f.jsxs("div",{style:{textAlign:"center",width:"100%"},children:["Tons Cast:"," ",t?.CastTons!==null&&t?.CastTons!==void 0?t.CastTons.toFixed(1):""]}),align:"center"}]}}},ePi=({show:e,onHide:t,strandId:n})=>{const[r,i]=v.useState(!1),[o,a]=v.useState(!1),[s,l]=v.useState(null),{state:c}=Wo(),{save:u,saveAllStrands:d}=nTe(),{control:p,handleSubmit:h,reset:g,formState:{errors:m}}=jn({defaultValues:{PieceLength:0,Pieces:0,SectionId:0}}),b=c.strands,y=c.strands?.find(S=>S.Strand===n),M=n?`Strand ${n}`:"All Strands",C=S=>{a(!1),S==="OK"&&s&&x(s)},x=async S=>{i(!0),await d("PieceLength",S.PieceLength),await d("Pieces",S.Pieces),await d("SectionId",S.SectionId),i(!1),t(!0)},w=async S=>{n?(i(!0),await u(n,"PieceLength",S.PieceLength),await u(n,"Pieces",S.Pieces||null),await u(n,"SectionId",S.SectionId),i(!1),t(!0)):(l(S),a(!0))};return v.useEffect(()=>{if(e&&(n&&y&&g({PieceLength:y.PieceLength,Pieces:y.Pieces,SectionId:y.SectionId}),n===null&&b)){const S=b[0];g({PieceLength:S.PieceLength,Pieces:S.Pieces,SectionId:S.SectionId})}},[e,g,n]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`Edit ${M}`}),f.jsx(We,{open:e,handleClose:()=>t(!1),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",maxWidth:"sm",title:`Edit ${M}`,children:f.jsxs("form",{onSubmit:h(w),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"space-between",children:[f.jsx(D,{item:!0,xs:6,md:4,children:f.jsx(Ue,{name:"PieceLength",control:p,render:({field:S})=>f.jsx(J3e,{feet:Math.floor((S.value||0)/12),inches:(S.value||0)%12,onChange:(A,z)=>S.onChange(A*12+z),error:!!m.PieceLength,helperText:m.PieceLength?.message})})}),f.jsx(D,{item:!0,xs:6,md:4,children:f.jsx(Ue,{name:"Pieces",control:p,render:({field:S})=>f.jsx(je,{...S,type:"number",label:"Pieces",size:"small",variant:"outlined",InputProps:{inputProps:{min:0}},error:!!m.Pieces,helperText:m.Pieces?.message})})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(ja,{variant:"outlined",fullWidth:!0,size:"small",children:f.jsx(Ue,{name:"SectionId",control:p,render:({field:S})=>f.jsx(Z3t,{value:S.value,onChange:S.onChange,onFocus:()=>{},moldSizeId:S.value,label:"Section"})})})})]})}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(ka,{fullWidth:!0,isLoading:r,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(il,{title:"Confirm Changes",message:"You are about to apply these changes to all 3 strands. Do you want to proceed?",open:o,onClose:C})]})},tPi=({refresh:e,readonly:t})=>{const{state:n,actions:r}=Wo(),[i,o]=v.useState(null),[a,s]=v.useState(!1),l=og(),c=n.strands||[],u=n.processData||null,d=m=>{r.setRefreshInPause(!0),o(m),s(!0)},{columns:p,rowData:h,statusBar:g}=JIi({strands:c,processData:u,editCallback:d,readonly:t||!u?.HeatId});return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{className:l.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:`${l.materialTable}`,style:{height:"14rem"},children:f.jsx($n,{rowData:h,columnDefs:p,domLayout:"normal",suppressRowClickSelection:!0,suppressPaginationPanel:!0,getRowId:m=>m.data.Strand,statusBar:g})})})}),f.jsx(ePi,{show:a,onHide:m=>{m&&e(),o(null),s(!1),r.setRefreshInPause(!1)},strandId:i})]})},nPi=e=>{e==null&&(e=0);const t=Math.floor(e/12),n=e%12;return`${t} ft ${n} in`},rPi=({scrapReasons:e,editCallback:t,deleteCallback:n})=>{const r=new Map(e.map(a=>[a.ScrapReasonId,a.ScrapReasonName]));return{columns:[{headerName:"Scrapped Pieces",children:[{field:"Length",headerName:"Length",flex:1,minWidth:78,valueFormatter:a=>nPi(a.value)},{field:"Pieces",headerName:"Pieces",flex:1,minWidth:64},{field:"Strand",headerName:"Strand",flex:1,minWidth:60,valueFormatter:a=>a.value?`S${a.value}`:""},{headerName:"Code",flex:1,minWidth:110,valueGetter:a=>{const s=a.data.ScrapReasonId;return s&&r.get(s)||""}},{field:"Weight",headerName:"Weight [lbs]",flex:1,minWidth:98},{field:"actions",headerName:"",sortable:!1,filter:!1,flex:1,minWidth:70,maxWidth:70,cellRenderer:a=>{const s=a.data;return s?f.jsx(lD,{editItem:()=>t(s),deleteItem:()=>n(s)}):null}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}},iPi=({value:e,onChange:t,disabled:n})=>{const{state:r}=Wo(),i=r.scrapReasons||[];return f.jsxs(cs,{labelId:"scrap-code-label",label:"Code",value:e===null?"":e,onChange:o=>t(o.target.value===""?null:Number(o.target.value)),disabled:n,children:[f.jsx(lr,{value:"",children:f.jsx("em",{children:"None"})}),i.map(o=>f.jsx(lr,{value:o.ScrapReasonId,children:o.ScrapReasonName},o.ScrapReasonId))]})},oPi=({show:e,onHide:t,scrap:n,mode:r})=>{const[i,o]=v.useState(!1),[a,s]=v.useState(""),[l,c]=v.useState(null),[u,d]=v.useState(!1),{state:{processData:p},actions:h}=Wo(),{control:g,handleSubmit:m,reset:b,watch:y,setValue:M,formState:{errors:C}}=jn({defaultValues:{ScrapId:0,ProcessId:0,Pieces:null,Length:null,Weight:null,ScrapReasonId:null,Strand:null}}),x=y("Length"),w=y("Pieces");v.useEffect(()=>{e&&r==="create"&&(async()=>{const P=await P3e();if(P.ok){const F=At(P,"data.tables[0].rows",[]);c(F)}else s("Could not load mold sizes.")})()},[e,r]),v.useEffect(()=>{if(r!=="create"||u||!l||!p)return;const R=p.MoldSizeId,P=l.find(W=>W.MoldSizeId===R);if(!P||w===null||w<=0||x===null||x<=0){M("Weight",null);return}const F=P.LbsPerFoot,L=(x||0)/12*F*w;L>0?M("Weight",Number(L.toFixed(2)),{shouldValidate:!0}):M("Weight",null)},[x,w,r,u,l,p,M]),v.useEffect(()=>{e&&(d(!1),r==="create"?b({ScrapId:null,ProcessId:p?.ProcessId||0,Pieces:null,Length:null,Weight:null,ScrapReasonId:null,Strand:null}):n&&b({ScrapId:n.ScrapId,ProcessId:n.ProcessId,Pieces:n.Pieces,Length:n.Length,Weight:n.Weight,ScrapReasonId:n.ScrapReasonId,Strand:n.Strand}))},[e,n,r,b,p]);const S=async R=>{if(o(!0),s(""),r==="delete"){if(n){const P=await aOi(n.ScrapId||0);if(P.ok)h.setNotificationMessage("Scrap data deleted successfully");else{s(P.message||"Error deleting scrap data"),o(!1);return}}}else{const P=await oOi(R);if(P.ok)h.setNotificationMessage("Scrap data saved successfully");else{s(P.message||"Error saving scrap data"),o(!1);return}}t(!0),o(!1)},A=`${r.charAt(0).toUpperCase()+r.slice(1)} Scrap`,z=r==="delete",O=r==="delete"?"Delete":"Save",T=r==="delete"?"secondary":"primary";return f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:()=>t(!1),"aria-labelledby":"upsert-delete-scrap-modal-title",maxWidth:"sm",title:A,children:f.jsxs("form",{onSubmit:m(S),children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:[f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Length",control:g,rules:{min:0},render:({field:R})=>{const P=R.value||0,F=Math.floor(P/12),N=P%12;return f.jsx(J3e,{feet:F,inches:N,onChange:(L,W)=>{const j=L*12+W;R.onChange(j)},disabled:z,error:!!C.Length,helperText:C.Length?.message})}})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Pieces",control:g,rules:{min:0},render:({field:R})=>f.jsx(El,{...R,value:R.value,onChange:P=>R.onChange(P===null?null:Number(P)),label:"Pieces",disabled:z,error:C.Pieces?C.Pieces.message:"",onBlur:()=>{},pause:()=>{},resume:()=>{}})})})]}),f.jsxs(D,{container:!0,spacing:2,style:{marginTop:"1rem"},children:[f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",error:!!C.Strand,disabled:z,children:[f.jsx(ol,{id:"strand-label",children:"Strand"}),f.jsx(Ue,{name:"Strand",control:g,render:({field:R})=>f.jsxs(cs,{...R,labelId:"strand-label",label:"Strand",value:R.value||"",onChange:P=>R.onChange(P.target.value?Number(P.target.value):null),children:[f.jsx(lr,{value:"",children:f.jsx("em",{children:"None"})}),f.jsx(lr,{value:1,children:"1"}),f.jsx(lr,{value:2,children:"2"}),f.jsx(lr,{value:3,children:"3"})]})})]})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",error:!!C.ScrapReasonId,disabled:z,children:[f.jsx(ol,{id:"scrap-code-label",children:"Code"}),f.jsx(Ue,{name:"ScrapReasonId",control:g,defaultValue:null,render:({field:R})=>f.jsx(iPi,{value:R.value,onChange:P=>R.onChange(P),disabled:z})})]})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(Ue,{name:"Weight",control:g,rules:{required:"Weight is required",validate:R=>R===null||R==0?"Weight is required and must be greater than 0":!0},render:({field:R})=>f.jsx(El,{...R,value:R.value,onChange:P=>{R.onChange(P===null?null:Number(P)),r==="create"&&d(!0)},label:"Weight *",disabled:z,error:C.Weight?C.Weight.message:"",onBlur:()=>{},pause:()=>{},resume:()=>{}})})})]}),a&&f.jsx("div",{style:{color:"red"},children:a})]}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(ka,{fullWidth:!0,isLoading:i,variant:"contained",color:T,type:"submit",disabled:!n&&r!=="create",children:O})})]})})]})}),f.jsx(yt,{error:a,onHide:()=>s(""),title:`Error ${r} Scrap`})]})},aPi=({refreshData:e})=>{const t=og(),{state:n,actions:r}=Wo(),i=n.scrapReasons||[],o=n.scraps||[],a=n.processData?.ScrapTons,[s,l]=v.useState(!1),[c,u]=v.useState("create"),[d,p]=v.useState(null),h=b=>{p(b),u("edit"),l(!0),r.setRefreshInPause(!0)},g=b=>{p(b),u("delete"),l(!0),r.setRefreshInPause(!0)},{columns:m}=rPi({scrapReasons:i,editCallback:h,deleteCallback:g});return f.jsxs(f.Fragment,{children:[s&&f.jsx(yn,{title:`${c==="create"?"New":"Edit"} Scrap`}),f.jsxs(Pt,{className:t.borderAgGridTable,elevation:0,children:[f.jsx(Tn,{p:0,children:f.jsxs("div",{className:`${t.materialTable}`,style:{height:"11.6rem",position:"relative"},children:[f.jsx($n,{rowData:o,columnDefs:m,domLayout:"normal",suppressRowClickSelection:!0,suppressPaginationPanel:!0,getRowId:b=>b.data.ScrapId,suppressContextMenu:!0}),f.jsx(Tn,{display:"flex",justifyContent:"center",width:"100%",mt:3,style:{position:"absolute",right:"4%"},children:f.jsxs(vt,{style:{cursor:"default",userSelect:"none",fontSize:"0.8rem"},children:["Scrap Weight:"," ",f.jsx("strong",{children:a!=null?`${a} lbs`:""})]},`scrap-weight-${n.processData?.ProcessId}`)})]})}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:!1,showCreateModal:c==="create",setShowCreateModal:()=>{p(null),u("create"),l(!0),r.setRefreshInPause(!0)},table:"scraps"})]}),s&&f.jsx(oPi,{show:s,onHide:b=>{l(!1),b&&e(),r.setRefreshInPause(!1)},scrap:d,mode:c})]})},oTt=(e,t)=>{if(gi(e))return;let n=(t.match(/X/g)||[]).length,r=(t.match(/\./g)||[]).length?t.split(".")[1].length:0,o=Number(e).toFixed(r).split("."),a=o[0],s=o[1]||"";return a.length>n&&(a=a.substr(a.length-n)),r>0?`${a}.${s}`:`${a}`},fQe=e=>{const{value:t,data:n}=e,r=n?.numberFormat;return t==null||typeof t=="string"?null:f.jsx(f.Fragment,{children:oTt(t,r||"")})},sPi=(e,t,n,r)=>{const i=[{name:"Mold Water T in",startField:"MWTempInStart",endField:"MWTempInEnd",numberFormat:"XXX.X"},{name:"Mold Water T out",startField:"MWTempOutStart",endField:"MWTempOutEnd",numberFormat:"XXX.X"},{name:"Mold Water DT",startField:"MWDTStart",endField:"MWDTEnd",numberFormat:"XXX.X"},{name:"Mold Water Flow [GPM]",startField:"MWGPMStart",endField:"MWGPMEnd",numberFormat:"XXX.X"},{name:"Spray Pres N",startField:"NSprayStart",endField:"NSprayEnd",numberFormat:"XX"},{name:"Spray Pres E",startField:"ESprayStart",endField:"ESprayEnd",numberFormat:"XX"},{name:"Spray Pres S",startField:"SSprayStart",endField:"SSprayEnd",numberFormat:"XX"},{name:"Spray Pres W",startField:"WSprayStart",endField:"WSprayEnd",numberFormat:"XX"},{name:"Billet Temp",startField:"BilletTempStart",endField:"BilletTempEnd",numberFormat:"XXXX.X"},{name:"Strand Speed",startField:"SpeedStart",endField:"SpeedEnd",numberFormat:"XXX.X"}],o=e.reduce((c,u)=>(u.Strand!=null&&(c[u.Strand.toString()]=u),c),{}),a=i.map(c=>({id:c.name,Property:c.name,s1_start:c.startField?o[1]?.[c.startField]:null,s1_end:c.endField?o[1]?.[c.endField]:null,s2_start:c.startField?o[2]?.[c.startField]:null,s2_end:c.endField?o[2]?.[c.endField]:null,s3_start:c.startField?o[3]?.[c.startField]:null,s3_end:c.endField?o[3]?.[c.endField]:null,numberFormat:c.numberFormat}));return a.push({id:"actions-row",Property:"",s1_start:"EDIT",s1_end:"DOWNLOAD",s2_start:"EDIT",s2_end:"DOWNLOAD",s3_start:"EDIT",s3_end:"DOWNLOAD",numberFormat:null}),{columns:[{field:"Property",headerName:"",minWidth:100,cellClass:"first-column-cell",suppressMovable:!0},...[1,2,3].map((c,u)=>{const d=e.find(m=>m.Strand===c)?.IsStrandDataManual,p=`s${c}_start`,h=`s${c}_end`,g=u%2!==0?{backgroundColor:"rgba(245, 245, 245, 0.67)"}:{};return{headerName:`Strand ${c}`,headerGroupComponent:()=>f.jsxs(D,{container:!0,alignItems:"center",spacing:1,children:[f.jsx(D,{item:!0,xs:5,children:f.jsxs("span",{children:["Strand ",c]})}),f.jsx(D,{item:!0,xs:7,children:f.jsx(iTe,{isManual:d||!1})})]}),children:[{headerName:"Start",field:p,minWidth:70,flex:1,cellRendererSelector:m=>m.value==="EDIT"?{component:lD,params:{editItem:()=>{t(c)},editLabel:`Edit strand ${c}`}}:{component:fQe},cellStyle:m=>{const b={...g,textAlign:"center"};return m.data?.id==="actions-row"?{...b,textAlign:"center"}:b}},{headerName:"End",field:h,minWidth:70,flex:1,cellRendererSelector:m=>m.value==="DOWNLOAD"?{component:lD,params:{downloadItem:()=>{n(c)},downloadLabel:"Download from PLC",loading:r}}:{component:fQe},cellStyle:m=>{const b={...g,textAlign:"center"};return m.data?.id==="actions-row"?{...b,textAlign:"center"}:b}}]}})],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,flex:1},rowData:a}},Kd=(e,t)=>e==null?null:parseFloat(e.toFixed(t)),Oa={MWTempInStart:1,MWTempInEnd:1,MWDTStart:1,MWDTEnd:1,BilletTempStart:0,BilletTempEnd:0,NSprayStart:0,NSprayEnd:0,ESprayStart:0,ESprayEnd:0,SSprayStart:0,SSprayEnd:0,WSprayStart:0,WSprayEnd:0,SpeedStart:2,SpeedEnd:2},lPi=({show:e,onHide:t,strandNum:n})=>{const{state:r,actions:i}=Wo(),{save:o}=nTe(),[a,s]=v.useState(!1),c=(r.strands||[]).find(g=>g.Strand===n),{control:u,handleSubmit:d,reset:p}=jn({defaultValues:{MWTempInStart:null,MWTempInEnd:null,MWDTStart:null,MWDTEnd:null,NSprayStart:null,NSprayEnd:null,ESprayStart:null,ESprayEnd:null,SSprayStart:null,SSprayEnd:null,WSprayStart:null,WSprayEnd:null,SpeedStart:null,SpeedEnd:null}});v.useEffect(()=>{e&&c&&p({MWTempInStart:Kd(c.MWTempInStart,Oa.MWTempInStart),MWTempInEnd:Kd(c.MWTempInEnd,Oa.MWTempInEnd),MWDTStart:Kd(c.MWDTStart,Oa.MWDTStart),MWDTEnd:Kd(c.MWDTEnd,Oa.MWDTEnd),BilletTempStart:Kd(c.BilletTempStart,Oa.BilletTempStart),BilletTempEnd:Kd(c.BilletTempEnd,Oa.BilletTempEnd),NSprayStart:Kd(c.NSprayStart,Oa.NSprayStart),NSprayEnd:Kd(c.NSprayEnd,Oa.NSprayEnd),ESprayStart:Kd(c.ESprayStart,Oa.ESprayStart),ESprayEnd:Kd(c.ESprayEnd,Oa.ESprayEnd),SSprayStart:Kd(c.SSprayStart,Oa.SSprayStart),SSprayEnd:Kd(c.SSprayEnd,Oa.SSprayEnd),WSprayStart:Kd(c.WSprayStart,Oa.WSprayStart),WSprayEnd:Kd(c.WSprayEnd,Oa.WSprayEnd),SpeedStart:Kd(c.SpeedStart,Oa.SpeedStart),SpeedEnd:Kd(c.SpeedEnd,Oa.SpeedEnd)})},[e,p,c]);const h=async g=>{if(!c||n===null)return;s(!0);const m=Object.entries(g).map(([b,y])=>c[b]!==y?o(n,b,y):Promise.resolve());await Promise.all(m),s(!1),r.errorMessage||t(!0)};return f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`Edit Strand ${n}`}),f.jsx(We,{title:`Edit Strand ${n}`,open:e,handleClose:()=>{t(!1)},id:"edit-strand-values-modal",maxWidth:"md",children:f.jsxs("form",{onSubmit:d(h),children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:[f.jsxs(D,{container:!0,spacing:3,children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsx(vt,{variant:"h6",align:"center",gutterBottom:!0,children:"Mold Water"}),f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"MWTempInStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Temp In Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.MWTempInStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"MWTempInEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Temp In End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.MWTempInEnd})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"MWDTStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"DT Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.MWDTStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"MWDTEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"DT End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.MWDTEnd})})})]})]}),f.jsx(D,{item:!0,xs:12,style:{margin:"4px 0"},children:f.jsx(la,{})}),f.jsxs(D,{item:!0,xs:12,children:[f.jsx(vt,{variant:"h6",align:"center",gutterBottom:!0,children:"Spray Pressure"}),f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"NSprayStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"N Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.NSprayStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"NSprayEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"N End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.NSprayEnd})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"SSprayStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"S Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.SSprayStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"SSprayEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"S End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.SSprayEnd})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"ESprayStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"E Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.ESprayStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"ESprayEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"E End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.ESprayEnd})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"WSprayStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"W Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.WSprayStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"WSprayEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"W End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.WSprayEnd})})})]})]}),f.jsx(D,{item:!0,xs:12,style:{margin:"4px"},children:f.jsx(la,{})}),f.jsx(D,{item:!0,xs:12,children:f.jsxs(D,{container:!0,spacing:2,alignItems:"flex-start",justifyContent:"center",children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(vt,{variant:"h6",align:"center",gutterBottom:!0,children:"Billet"}),f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,children:f.jsx(Ue,{name:"BilletTempStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Temp Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.BilletTempStart})})}),f.jsx(D,{item:!0,xs:12,sm:6,children:f.jsx(Ue,{name:"BilletTempEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Temp End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.BilletTempEnd})})})]})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(vt,{variant:"h6",align:"center",gutterBottom:!0,children:"Speed"}),f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,children:f.jsx(Ue,{name:"SpeedStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.SpeedStart})})}),f.jsx(D,{item:!0,xs:12,sm:6,children:f.jsx(Ue,{name:"SpeedEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Oa.SpeedEnd})})})]})]})]})})]}),r.errorMessage&&f.jsx(vt,{color:"error",style:{marginTop:"10px"},children:r.errorMessage})]}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>{t(!1)},children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(ka,{fullWidth:!0,isLoading:a,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})})]})},cPi=({refreshData:e})=>{const t=og(),{state:n,actions:r}=Wo(),i=n.strands||[],o=v.useRef(null),[a,s]=v.useState(!1),[l,c]=v.useState(null),[u,d]=v.useState(!1),{readStrand:p}=iTt(),h=async C=>{d(!0),n.processData?.ProcessId!=null?(await p(n.processData.ProcessId,C),e()):r.setErrorMessage("Cannot read PLC data: Process ID is missing."),d(!1)},g=C=>{c(C),s(!0),r.setRefreshInPause(!0)},m=()=>{s(!1),c(null),r.setRefreshInPause(!1),r.setErrorMessage(null)},{columns:b,rowData:y}=sPi(i,g,h,u),M=C=>{o.current=C.api};return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{elevation:0,className:t.borderAgGridTable,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:`${t.materialTable}`,style:{height:"30.67rem"},children:f.jsx($n,{suppressRowClickSelection:!0,pagination:!1,stopEditingWhenCellsLoseFocus:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,suppressPropertyNamesCheck:!0,rowData:y,columnDefs:b,domLayout:"normal",onGridReady:M,suppressContextMenu:!0,getRowId:C=>C.data.id})})})}),f.jsx(lPi,{show:a,onHide:C=>{C&&e(),m()},strandNum:l})]})},uPi=({reloadProcess:e,refreshData:t})=>{const n=og(),{state:r}=Wo(),i=r.processData,[o,a]=v.useState(i?.Comments||""),{handleOnFocus:s,handleOnBlurTextValue:l}=Z3e({reloadProcess:e,refreshData:t});return f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{padding:2,children:f.jsx(PMe,{className:n.outlinedTextarea,placeholder:"Comments",minRows:4,style:{width:"100%"},value:o,onFocus:()=>s("Comments"),onChange:c=>a(c.target.value),onBlur:()=>l("Comments",o)})})})},dPi=({reloadProcess:e,refreshData:t,setPourbackModalOpen:n})=>{const{state:r,actions:i}=Wo(),o=r.processData,a=r.tonnageReasons,s=og(),{handleOptionValueChanged:l}=Z3e({reloadProcess:e,refreshData:t});return f.jsx(Pt,{elevation:0,className:s.borderAgGridTable,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(El,{label:"Pourback Weight [tons]",value:o?.PourbackWeight??0,disabled:!0,onChange:c=>{},onBlur:()=>{},pause:()=>i.setRefreshInPause(!0),resume:()=>i.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(Ne,{variant:"contained",color:"primary",style:{height:"33px"},disabled:!o?.HeatId,fullWidth:!0,onClick:()=>{n(!0),i.setRefreshInPause(!0)},children:"Declare Pourback"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(RN,{label:"Low Tonnage Reason",value:o?.LowTonnageReasonId||"",options:a?a.map(({LowTonnageReasonId:c,LowTonnageReasonName:u})=>({value:c,label:u})):[],onChange:c=>{i.setRefreshInPause(!1),l("LowTonnageReasonId",c)},disabled:!1,nullable:!0,onBlur:()=>i.setRefreshInPause(!0),onFocus:()=>i.setRefreshInPause(!1)})})]})})})},pPi=({reloadProcess:e,calculateProcess:t,refreshData:n})=>{const{state:r,actions:i}=Wo(),o=Oo(),[a,s]=v.useState(""),l=r.processData||{},c=r.tundishShrouds||[],u=r.ladles||[],d=r.grades||[],p=r.tundishes||[],h=r.tonnageReasons||[],[g,m]=v.useState(!1),[b,y]=v.useState(!1),[M,C]=v.useState(null),x=r.processesWithoutDeliveryTicket||[],{onProcessClicked:w,unlinkCasterProcess:S,showChangeModal:A,showLinkModal:z,showUnlinkModal:O,setShowChangeModal:T,setShowLinkModal:R}=eIi({refreshData:n,setHelmetTitle:s}),P=v.useMemo(()=>x.length>0,[x]),F=N=>{if(N===l.ProcessId)C(N),m(!0);else{const L=x.find(W=>W.ProcessId===N);L&&o(`/production-management/${L.ShiftId}?processId=${L.ProcessId}&openModal=deliveryTicket`)}};return f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:`${l.HeatName?`${l.HeatName} - `:""}Caster Data Entry`}),a&&f.jsx(yn,{title:`${a}`}),P&&x.length>0&&f.jsx(SRi,{processes:x,onDeclareClick:F}),f.jsx(Tn,{padding:1,style:{backgroundColor:$3t},children:f.jsxs(D,{container:!0,spacing:1,direction:"column",children:[f.jsx(D,{item:!0,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Caster Data Entry"})}),f.jsx(D,{item:!0,children:f.jsx(ZRi,{process:l,ladles:u,grades:d,tundishes:p,tundishShrouds:c,tonnageReasons:h,reloadProcess:e,calculateProcess:t,refreshData:n,onProcessClicked:w,setDeliveryTicketModalOpen:m})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:0,justifyContent:"space-around",alignItems:"flex-start",children:[f.jsxs(D,{item:!0,xs:12,md:3,container:!0,spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(EIi,{refreshData:n})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(tPi,{refresh:n,readonly:!l.HeatId},l.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(aPi,{refreshData:n})})]}),f.jsxs(D,{item:!0,xs:12,md:3,container:!0,spacing:1,alignContent:"flex-start",justifyContent:"center",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(IRi,{},l.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(UIi,{refreshData:n})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(dPi,{reloadProcess:e,refreshData:n,setPourbackModalOpen:y})})]}),f.jsxs(D,{item:!0,xs:12,md:6,container:!0,spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(ERi,{},l.ProcessId)}),f.jsx(D,{item:!0,xs:6,children:f.jsx(zRi,{},l.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(cPi,{refreshData:n})})]})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:8,children:f.jsx(OIi,{},l.ProcessId)}),f.jsx(D,{item:!0,xs:4,children:f.jsx(qIi,{refreshData:n},l.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(uPi,{reloadProcess:e,refreshData:n},l.ProcessId)})]})]})}),f.jsx(gRi,{title:"Change Modal",message:"",open:A,onClose:()=>T(!1)}),f.jsx(xIi,{show:b,onHide:N=>{y(!1),N&&n()},process:l}),(l.ProcessId||M)&&f.jsx(tTt,{show:g,onHide:N=>{m(!1),C(null),N&&n()},processId:M||l.ProcessId}),f.jsx(il,{title:"Confirmation",message:O.message,open:O.show,onClose:S}),f.jsx(U3t,{show:z,onHide:N=>{R(!1),N&&e()},process:l})]})},hPi=()=>{const{state:{settings:e}}=Ma(),{getFirstName:t}=sT(),n=t(),r=At(e,"FF_CASTER_DE_DELIVERY_TICKET_ALERT",0),i=At(e,"CASTER_DE_DELIVERY_TICKET_ALERT_OFFSET_TIME_IN_MINUTES",120),o=n.trim();return{hasAccess:!!Number(r)&&(o==="Caster1"||o==="Caster2"||o==="Admin"),CASTER_DE_DELIVERY_TICKET_ALERT_OFFSET_TIME_IN_MINUTES:i}},fPi=({onTimeUp:e})=>{const{state:t,actions:n}=Wo(),[r,i]=v.useState(0),[o,a]=v.useState(0),s=10,l=15;return v.useEffect(()=>{(async()=>{if(a(c=>c+1),t.lazyStart!==null){const c=new Date,u=t.lazyStart.getTime();(c.getTime()-u)/1e3>l&&(document.getElementById("dummyDiv")?.focus(),n.clearFocusField())}})()},[r]),v.useEffect(()=>{(async()=>(o>0&&o%s===0&&(await e(),a(0)),n.addRefreshStatus(s-o%s)))()},[o]),v.useEffect(()=>{let c;return t.refreshInPause||(c=setInterval(()=>{i(u=>u+1)},1e3)),()=>{c&&clearInterval(c)}},[t.refreshInPause]),{restartTime:()=>a(0)}},gPi=()=>{const{state:e,actions:t}=Wo(),{state:n}=Ma(),r=Number(At(n.settings,"CAS_DE_BILLET_TEMP_CHART_OFFSET_MINUTES",20)),{hasAccess:i,CASTER_DE_DELIVERY_TICKET_ALERT_OFFSET_TIME_IN_MINUTES:o}=hPi(),a=async(p=!1)=>{if(e.processId===!1)return;t.setIsLoadingBackground(!0);const h=await Czt(e.processId);if(t.setIsLoadingBackground(!1),h.ok){const g=At(h,"data.tables[0].rows[0]",{}),m=At(h,"data.tables[1].rows",[]),b=At(h,"data.tables[2].rows",[]),y=At(h,"data.tables[3].rows",[]),M=At(h,"data.tables[4].rows",[]),C={processData:g,strands:m,probes:b,lostStrands:y,scraps:M,elements:[],strandSpeeds:[],moldLevels:[],billetTemp:[]};t.setIsLoadingBackground(!0);const x=await KAi(C.processData.HeatId),w=await xzt(C.processData.ProcessId),S=await wzt(C.processData.ProcessId),A=await Szt(C.processData.ProcessId,r);t.setIsLoadingBackground(!1),x.ok?C.elements=x.data.tables[0].rows:t.setErrorMessage(x.message),w.ok?C.strandSpeeds=w.data.tables[0].rows:t.setErrorMessage(w.message),S.ok?C.moldLevels=S.data.tables[0].rows:t.setErrorMessage(S.message),A.ok?C.billetTemp=A.data.tables[0].rows:t.setErrorMessage(A.message),e.processId!==C.processData.ProcessId?(t.setProcess(C),t.setProcessId(C.processData.ProcessId)):t.mergeProcess(C)}else t.setErrorMessage(h.message);if(i){const g=await xOi(o);if(g.ok){const m=At(g,"data.tables[0].rows",[]);t.setProcessesWithoutDeliveryTicket(m)}}},s=async()=>{t.setIsLoadingBackground(!0);const p=await zzt();p.ok?t.setCatalogs({tundishes:p.data.tables[0].rows,pourBacks:p.data.tables[1].rows,moldSizes:p.data.tables[2].rows,tundishShrouds:p.data.tables[3].rows,scrapReasons:p.data.tables[4].rows,tonnageReasons:p.data.tables[5].rows,housings:p.data.tables[6].rows,ladles:p.data.tables[7].rows,grades:p.data.tables[8].rows}):t.setErrorMessage(p.message),t.setIsLoadingBackground(!1)},l=async p=>{p!==e.processId&&t.setProcessId(p)},c=async()=>{if(e.processData===null)return;t.clearFocusField(),t.setIsLoadingBackground(!0);const p=await dOi(e.processData.ProcessId??0);t.setIsLoadingBackground(!1),p.ok?(t.setNotificationMessage("Process data was calculated successfully"),await a()):(t.setIsLoadingBackground(!1),t.setErrorMessage(p.message))},u=p=>{const h=location.pathname.split("/");window.history.replaceState(null,"",`/${h[1]}/${p}`)};v.useEffect(()=>{e.processData?.ProcessId!==null&&e.processData?.ProcessId===e.processId||((async()=>await a())(),u(e.processId?e.processId?.toString():""))},[e.processId]),v.useEffect(()=>{(async()=>await s())()},[]);const{restartTime:d}=fPi({onTimeUp:a});return e.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx("button",{id:"dummyDiv",style:{width:"0px",height:"0px",opacity:"0",position:"absolute"}}),e.processData!==null&&f.jsx(pPi,{reloadProcess:l,calculateProcess:c,refreshData:async()=>{await a(),d()}}),f.jsx(yt,{error:e.errorMessage,onHide:()=>t.setErrorMessage("")}),f.jsx(jm,{message:e.notificationMessage,onHide:()=>t.setNotificationMessage("")})]})};Et(e=>({defaultButton:{padding:"6px 16px",fontSize:"0.875rem",lineHeight:1.75,borderRadius:"4px"}}));const aTt=C3({overrides:{MuiButton:{root:{padding:"6px 12px !important",fontSize:"0.7rem !important",borderRadius:4,lineHeight:1.5}},MuiButtonGroup:{grouped:{minWidth:30,padding:"6px 12px !important"}},MuiTextField:{root:{fontSize:"clamp(.7rem, 0.8rem, 1rem)","& .MuiInputBase-root":{minHeight:"35px !important",padding:"4px 0px 4px 2px !important"},"& .MuiOutlinedInput-input":{padding:"4px 0px 4px 4px !important",fontSize:"clamp(.7rem, 0.8rem, 1rem) !important"},"& label":{fontSize:"0.75rem !important"},"& .MuiOutlinedInput-multiline":{padding:"8px 14px !important"}}},MuiTable:{root:{minWidth:300}},MuiTableCell:{root:{padding:4,"&.narrow":{whiteSpace:"nowrap",maxWidth:"80px"}},head:{fontWeight:"bold"}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:"#f5f5f5 !important"}}},MuiFormControl:{root:{margin:"2px 0",width:"100%"}},MuiInputLabel:{outlined:{transform:"translate(14px, 12px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}},MuiOutlinedInput:{root:{height:"35px"},input:{padding:"8px 14px !important",height:"19px !important",fontSize:"0.9rem !important"}},MuiSelect:{select:{height:"35px !important",lineHeight:"35px !important",paddingTop:0,paddingBottom:0},outlined:{paddingRight:"32px !important"}},MuiMenuItem:{root:{fontSize:"0.8rem",minHeight:"30px",lineHeight:"30px !important"}}}}),gQe=e=>f.jsx(fRi,{children:f.jsx(Ow,{theme:aTt,children:f.jsx(gPi,{})})}),mPi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,processes:[],selectedProcess:null,errorMessage:"",notificationMessage:"",anchorPoint:{x:0,y:0}},EY=ki({name:"__",initialState:mPi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setProcesses(e,{payload:t}){e.processes=t},setSelectedProcess(e,{payload:t}){e.selectedProcess=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t}}}),sTt=v.createContext({state:EY.getInitialState(),actions:EY.actions}),zte=()=>v.useContext(sTt),vPi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:EY.getInitialState(),reducers:EY.caseReducers});return f.jsx(sTt.Provider,{value:{state:t,actions:n},children:e})};var I5={},mQe;function bPi(){if(mQe)return I5;mQe=1;var e=ri(),t=ii();Object.defineProperty(I5,"__esModule",{value:!0}),I5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");return I5.default=i,I5}var yPi=bPi();const Tte=qn(yPi),vQe=Sn(),MPi=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(""),[g,m]=v.useState(""),{actions:{setSelectedProcess:b}}=zte(),{shiftInfo:y}=na(),M=Oo(),C=At(y,"CurrentStart",null),x=v.useCallback(()=>{b({ProcessId:0,LadleOpen:vQe.utc(C).toDate(),LadleClose:vQe.utc(C).add(180,"minutes").toDate(),LadleOpenString:"",LadleCloseString:"",HeatId:0,HeatName:"",IsActive:!0,Link:"",Unlink:""}),t(!0)},[y?.CurrentProductionDate,b]),w=N=>{b(N),t(!0)},S=N=>{b(N),r(!0)},A=N=>{b(N);const L=Wn(`${N.LadleOpen}Z`,"YYYY/MM/dd HH:mm");m(`The heat ${N.HeatName} from ${L} will be unlinked.  Do you want to continue?`),o(!0)},z=N=>{b(N);const L=Wn(`${N.LadleOpen}Z`,"YYYY/MM/dd HH:mm");h("The heat "+N.HeatName+" from "+L+" will be activated.  Do you want to continue?"),c(!0)},O=N=>{b(N),d(` The Process starting at ${Wn(`${N.Start}`,"HH:mm")} associated with heat ${N.HeatName} will be deleted. Do you want to continue?`),s(!0)},T=N=>{N.IsActive?O(N):z(N)},R=N=>{N&&M(`/meltshop-heats/${y?.CurrentShiftId}?heatId=${N}`)},P=N=>{N!==null&&M(`/caster-data-entry/${N}`)};return{createData:x,editData:w,linkData:S,unlinkData:A,toggleStatusData:T,getMenuOptions:N=>{let L=[];return N.ProcessId&&N.IsActive&&L.push({name:"See in Data Entry",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>P(N.ProcessId),icon:f.jsx(dM,{})}),N.HeatId&&N.IsActive&&(L=L.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>R(N.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),N.HeatId&&N.IsActive&&(L=L.concat([{name:"Unlink Process",key:"unlink",onClick:()=>A(N),icon:f.jsx(dT,{})}])),!N.HeatId&&N.IsActive&&(L=L.concat([{name:"Link Process",key:"link",onClick:()=>S(N),icon:f.jsx(uT,{})}])),L.push({name:"Edit Process",key:"toggle_status",onClick:()=>w(N),icon:f.jsx(Fo,{})},{name:N.IsActive?"Delete Process":"Undelete Process",key:"toggle_status",onClick:()=>T(N),icon:N.IsActive?f.jsx(Mo,{}):f.jsx(Tte,{})},{name:"New Process",key:"create_new_process",onClick:()=>x(),icon:f.jsx(Jo,{})}),L},goToHeats:R,goToDataEntry:P,showActiveModal:l,showDeleteModal:a,showEditModal:e,showLinkModal:n,showUnlinkModal:i,messageActiveModal:p,messageDeleteModal:u,messageUnlinkModal:g,setShowActiveModal:c,setShowDeleteModal:s,setShowEditModal:t,setShowLinkModal:r,setShowUnlinkModal:o,setMessageActiveModal:h,setMessageDeleteModal:d,setMessageUnlinkModal:m}},kg=Sn(),CPi=({show:e,onHide:t,refreshData:n})=>{const[r,i]=v.useState(!1),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(""),{state:h,actions:g}=zte(),[m,b]=v.useState(!1),[y,M]=v.useState(!1),{shiftInfo:C}=na(),{register:x,setValue:w,control:S,handleSubmit:A,reset:z,watch:O,formState:{errors:T}}=jn({defaultValues:{}}),R=At(C,"CurrentStart",null),P=W=>j=>{const V=kg.utc(R),G=kg.utc(j);W(j),G.isSame(V)?b(!1):b(!0)},F=async W=>{i(!0);const j=W.LadleOpen,V=W.LadleClose,G=await T3e(W.ProcessId===0?null:W.ProcessId,j,V);G.ok?(g.setNotificationMessage("Process was "+(s?"created":"edited")+" successfully"),await n()):g.setErrorMessage(G.message),i(!1),t(!0)},N=O("LadleOpen"),L=O("LadleClose");return v.useEffect(()=>{Math.abs(kg(N).diff(kg(L),"hours"))>3?M(!0):M(!1)},[N,L]),v.useEffect(()=>{b(!1),e?(i(!1),(async()=>{a(!0);const W=h.selectedProcess;W!=null&&(W.ProcessId===0?(p("New Caster Process"),l(!0)):(p("Edit Caster Process"),l(!1)),w("ProcessId",W.ProcessId),w("LadleOpen",W.LadleOpen?kg.utc(W.LadleOpen).toDate():kg.utc(R).toDate()),w("LadleClose",W.LadleClose?kg.utc(W.LadleClose).toDate():kg.utc(R).add(180,"minutes").toDate()),W.LadleClose===null&&u(!0),a(!1))})()):(z(),u(!1))},[e]),v.useEffect(()=>{c&&w("LadleClose",null)},[c]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:d}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{maxWidth:"md",open:e,handleClose:()=>{t(!0)},id:"upsertCasterProcess",title:d.toUpperCase(),children:f.jsxs("form",{onSubmit:A(F),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:[o&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!o&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"LadleOpen",control:S,rules:{required:!0},render:({field:W})=>f.jsx(xd,{label:"Ladle Open",timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",timeSteps:{minutes:1},value:kg(W.value),onChange:P(W.onChange),inputRef:W.ref,slotProps:{textField:{variant:"outlined",error:!!T.LadleOpen,size:"small"}}})}),T.LadleOpen&&f.jsx("p",{style:{color:"red"},children:"Invalid Ladle Open Date"}),m&&f.jsx("p",{style:{color:"red",fontSize:12},children:"You are changing the date from the Current Start"})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"LadleClose",control:S,rules:{required:!c},render:({field:W})=>f.jsx(xd,{label:"Ladle Close",timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",timeSteps:{minutes:1},value:kg(W.value),onChange:W.onChange,inputRef:W.ref,slotProps:{textField:{variant:"outlined",error:!!T.LadleClose,size:"small"}}})}),T.LadleClose&&f.jsx("p",{style:{color:"red"},children:"Invalid Ladle Closed Date"})]})]}),f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,style:{marginTop:10},children:f.jsx(So,{control:f.jsx(Qr,{...x("IsOpen"),color:"primary",checked:c,onChange:W=>{u(W.target.checked),W.target.checked?w("LadleClose",null):w("LadleClose",kg.utc(R).add(180,"minutes").toDate())}}),label:"Ladle is not Closed"})})}),f.jsx(D,{item:!0,xs:6,md:6,children:y&&f.jsx("p",{style:{color:"red",fontSize:12},children:"Open and Close must be within 3 hours of each other"})})]})]}),f.jsx(We.Actions,{style:{padding:"10px 20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",size:"small",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:r&&f.jsx(Kt,{size:"1rem"}),disabled:r,variant:"contained",size:"small",color:"primary",type:"submit",children:"Save"})})]})})]})})})})]})},xPi=({onNewProcess:e})=>f.jsx(Ne,{variant:"contained",color:"primary",onClick:e,children:"NEW PROCESS"}),bQe=Sn(),wPi=({})=>{const{shiftInfo:e}=na(),t=At(e,"CurrentShiftId",null);return{columns:[{field:"HeatName",headerName:"Heat",cellRenderer:r=>Td({...r,link:`/meltshop-heats/${t}?heatId=${r.data.HeatId}`}),flex:1,minWidth:66},{field:"GradeName",headerName:"Grade",flex:1,minWidth:80},{field:"LadleName",headerName:"Ladle",flex:1,minWidth:57},{field:"HeatOrder",headerName:"Order",flex:1,minWidth:59},{field:"MoldSizeName",headerName:"Mold Size",flex:1,minWidth:60,wrapHeaderText:!0},{field:"LadleOpen",headerName:"Open",cellRenderer:Td,cellRendererParams:{linkProperty:"HeatNameLink"},flex:1,minWidth:61,valueGetter:r=>r.data.LadleOpen?bQe(r.data?.LadleOpen).format("HH:mm"):""},{field:"LadleClose",headerName:"Close",flex:1,minWidth:61,valueGetter:r=>r.data.LadleClose?bQe(r.data?.LadleClose).format("HH:mm"):""},{field:"Duration",headerName:"Duration",flex:1,minWidth:76,cellRenderer:EO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}},{field:"CastTons",headerName:"Tons",flex:1,minWidth:53,cellRenderer:EO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}},{field:"ScrapTons",headerName:"Scrap [lbs]",flex:1,minWidth:60,cellRenderer:EO,cellRendererParams:{numericFormat:"0"}},{field:"LostStrands",headerName:"Lost Strands",flex:1,minWidth:80,cellRenderer:EO,cellRendererParams:{numericFormat:"0"},wrapHeaderText:!0},{field:"TrimProbeTemperature",headerName:"Trim Temp",wrapHeaderText:!0,flex:1,minWidth:60},{field:"TrimProbeOxygen",headerName:"Trim O2",flex:1,minWidth:80},{field:"FirstProbeTemperature",headerName:"First Temp",flex:1,minWidth:60,wrapHeaderText:!0},{field:"LastProbeTemperature",headerName:"Last Temp",flex:1,minWidth:60,wrapHeaderText:!0},{field:"LastSuperheat",headerName:"Last SH",flex:1,minWidth:73,cellStyle:{textAlign:"right"}},{field:"IsProcessManual",headerName:"",flex:1,minWidth:34,maxWidth:34,cellRenderer:yte,cellClass:"ag-button-cell",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",type:["nonSorteable","nonFilterable","optionsButton"],flex:1,minWidth:150,editable:!1}]}},SPi=({loadingGrid:e,rows:t,refreshData:n})=>{const r=kk();bte();const i=v.useRef(null),[o,a]=v.useState(null),[s,l]=v.useState(null),[c,u]=Zu(),[d,p]=v.useState([]),{createData:h,editData:g,linkData:m,unlinkData:b,toggleStatusData:y,getMenuOptions:M,goToDataEntry:C,showActiveModal:x,showDeleteModal:w,showEditModal:S,showLinkModal:A,showUnlinkModal:z,messageActiveModal:O,messageDeleteModal:T,messageUnlinkModal:R,setShowActiveModal:P,setShowDeleteModal:F,setShowEditModal:N,setShowLinkModal:L,setShowUnlinkModal:W,setMessageActiveModal:j,setMessageDeleteModal:V,setMessageUnlinkModal:G}=MPi(),{showContextMenu:q,registerConfig:$}=ws(),{shiftInfo:U}=na(),{columns:X}=wPi({}),{state:{selectedProcess:Q,anchorPoint:{x:re,y:ee}},actions:{setSelectedProcess:se,setIsLoadingBackground:pe,setNotificationMessage:te,setErrorMessage:ce}}=zte(),oe=ie=>{ie.preventDefault()},ae=ie=>{l(ie.api)},ne=()=>{if(!s)return;const ie=s.getSelectedRows();ie.length>0?(a(ie[0]),u({processId:ie[0].ProcessId},{replace:!0})):(a(null),u({},{replace:!0}))},le=ie=>{if(!ie.data.IsActive)return{background:"#E8EBEB"}},he=async ie=>{if(F(!1),V(""),ie!=="OK"||Q===null)return;pe(!0);const ue=await Mzt(Q.ProcessId);ue.ok?(pe(!1),te("Process deleted successfully"),await n()):(pe(!1),ce(ue.message))},be=async ie=>{if(P(!1),j(""),ie!=="OK"||Q===null)return;pe(!0);const ue=await UAi(Q.ProcessId);ue.ok?(pe(!1),te("Process activated successfully"),await n()):(pe(!1),ce(ue.message))},me=async ie=>{if(W(!1),G(""),ie!=="OK"||Q===null)return;pe(!0);const ue=await E3e(Q.ProcessId);ue.ok?(pe(!1),te("Process unlinked successfully"),await n()):(pe(!1),ce(ue.message))},{columnTypes:Me}=ku({OnEdit:g});Me.linkButton={field:"Link",cellRenderer:RAi,cellRendererParams:{clicked:m},cellClass:"ag-button-cell"},Me.unlinkButton={field:"Unlink",cellRenderer:PAi,cellRendererParams:{clicked:b},cellClass:"ag-button-cell"},Me.activeButton={field:"IsActive",headerName:"",cellRenderer:mzt,cellRendererParams:{clicked:y},cellClass:"ag-button-cell"},Me.optionsButton={field:"Options",headerName:"",cellRenderer:ie=>f.jsxs("div",{className:r.buttons,children:[f.jsx(bn,{"aria-label":"link/unlink",title:ie.data.HeatName?"Unlink":"Link",style:{cursor:"pointer"},onClick:()=>{ie.data.HeatName?b(ie.data):m(ie.data)},children:ie.data.HeatName?f.jsx(dT,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}}):f.jsx(uT,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(bn,{"aria-label":"delete-icon",title:ie.data.IsActive?"Delete":"Activate",style:{cursor:"pointer"},onClick:()=>y(ie.data),children:ie.data.IsActive?f.jsx(Mo,{fontSize:"inherit",color:"secondary",style:{cursor:"pointer"}}):f.jsx(Tte,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(bn,{"aria-label":"Options",title:"Options",style:{cursor:"pointer"},onClick:ue=>q(ue,ie.data,"casterProcesses"),children:f.jsx(Cj,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})})]}),cellClass:r.buttons};const Oe={newProcessStatusBar:xPi},de={statusPanels:[{statusPanel:"newProcessStatusBar",align:"right",statusPanelParams:{onNewProcess:h}}]};return v.useEffect(()=>{e&&i.current!==null&&i.current.api!==void 0?i.current.api.showLoadingOverlay():i.current!==null&&i.current.api!==void 0&&i.current.api.hideOverlay()},[e]),v.useEffect(()=>{if(!e&&s&&t&&t.length>0){const ie=c.get("processId");if(ie){const ue=s.getRowNode(ie);ue&&(s.deselectAll(),ue?.setSelected(!0,!0),a(ue.data))}}},[s,e,t]),v.useEffect(()=>{$({id:"casterProcesses",getOptions:M})},[U?.CurrentShiftId]),f.jsxs(f.Fragment,{children:[o&&!S&&!w&&!A&&!z&&!x&&f.jsx(yn,{title:`${o.HeatName?`${o.HeatName} - `:""}Caster Processes`}),w&&f.jsx(yn,{title:"Delete Process"}),z&&f.jsx(yn,{title:"Unlink Process"}),x&&f.jsx(yn,{title:"Activate Process"}),f.jsxs("div",{onContextMenu:oe,children:[f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx($n,{ref:i,onGridReady:ae,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:X,columnTypes:Me,getRowStyle:le,getRowId:ie=>String(ie.data.ProcessId),suppressContextMenu:!0,onRowDoubleClicked:ie=>{ie.data.ProcessId&&C(ie.data.ProcessId)},onCellContextMenu:ie=>{ie.api.deselectAll(),ie.node.setSelected(!0),se(ie?.data),ie.event&&q(ie.event,ie.data,"casterProcesses")},onSelectionChanged:ne,statusBar:de,components:Oe})})}),f.jsx(il,{title:"Confirmation",message:T,open:w,onClose:he}),f.jsx(il,{title:"Confirmation",message:O,open:x,onClose:be}),f.jsx(il,{title:"Confirmation",message:R,open:z,onClose:me}),f.jsx(CPi,{show:S,onHide:()=>N(!1),refreshData:n}),f.jsx(U3t,{show:A,onHide:async()=>{L(!1),te("Process linked successfully"),await n()},process:Q})]})]})},APi=e=>{const t=Oo(),{state:n,actions:r}=zte(),[i,o]=v.useState(!1),[a]=Zu(),[s,l]=v.useState(!0),{shiftInfo:c,getShiftDataFromAPI:u}=na(),{shiftId:d}=ds(),p=async h=>{r.setIsLoadingGrid(!0);const g=At(h||c,"CurrentShiftId",null);if(g){const m=await $Ai(Number(g),i);m.ok&&m.data.tables.length>0?r.setProcesses(m.data.tables[0].rows):console.log("something happened 2"),r.setIsLoadingGrid(!1)}};return v.useEffect(()=>{if(c&&!s){const h=At(c,"CurrentShiftId",null),g=new URLSearchParams(a.toString());t(`/caster-processes/${h}?${g.toString()}`),(async()=>await p())()}},[c,i]),v.useEffect(()=>{d?(async()=>{const h=Number(d);u(null,h).then(async g=>{g&&(await p(g),l(!1))})})():(async()=>u(null,0).then(async h=>{h&&(await p(h),l(!1))}))()},[]),n.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Caster Processes"}),f.jsxs(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:n.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Caster Processes"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(qm,{preventInit:!0}),f.jsx(Pt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(OD,{children:f.jsx(So,{control:f.jsx(Qr,{checked:i,color:"primary",onChange:h=>o(h.target.checked)}),label:"Show deleted processes"})})})})})]})}),f.jsx(SPi,{loadingGrid:n.isLoadingGrid,rows:n.processes||[],refreshData:p})]})}),f.jsx(yt,{error:n.errorMessage,onHide:()=>r.setErrorMessage("")}),f.jsx(jm,{message:n.notificationMessage,onHide:()=>r.setNotificationMessage("")})]})]})},yQe=e=>f.jsx(vPi,{children:f.jsx(APi,{})}),lTt=({heats:e,className:t,onBlur:n,onChange:r,onFocus:i,loading:o,getHeats:a})=>{const[s,l]=v.useState(""),[c,u]=v.useState(null),[d,p]=v.useState(e||[]),[h,g]=v.useState(!1),m=v.useMemo(()=>aB(async b=>{g(!0);const y=await a(b);p(y),g(!1)},300),[a]);return v.useEffect(()=>{s.length>=3?m(s):p(e||[])},[s,e]),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ki,{className:t,clearOnEscape:!0,popupIcon:null,options:d||[],getOptionLabel:b=>b?.Name||"Unlinked",renderOption:(b,{selected:y})=>f.jsx(vt,{style:{color:b.IsExternal?"blue":"inherit"},title:b.IsExternal?"External heat":"",children:b.Name||"Unlinked"}),renderInput:b=>f.jsx(je,{...b,label:"Search by heat",variant:"outlined",size:"medium",style:{width:"100%",minWidth:"180px",maxWidth:"180px"},value:s,onChange:y=>l(y.target.value),InputProps:{...b.InputProps,style:{padding:"3px 10px"},endAdornment:f.jsx(f.Fragment,{children:o||h?f.jsx(Kt,{color:"inherit",size:25}):b.InputProps.endAdornment})}}),value:c,onChange:(b,y)=>{y&&(u(y),r(y))},onFocus:i,loading:o||h,onBlur:()=>{s===""&&c&&(u(null),a("")),n()}})})},OPi=({onDeclareClick:e})=>{const t=Oo(),n=o=>{t(`/caster-data-entry/${o}`)},r=o=>{t(`/heat-report/${o}/caster`)};return{getMenuOptions:o=>{const a=[];return o&&(a.push({name:o.Declared?"Re-declare":"Declare",key:"declare_product_batch",style:{fontWeight:"bold"},onClick:()=>e(o.ProcessId,o.LadleClose),icon:f.jsx(X3t,{})}),a.push({name:"See in Data Entry",key:"go_to_caster_data_entry",onClick:()=>n(o.ProcessId),icon:f.jsx(dM,{})}),a.push({name:"See in Heat Report",key:"go_to_heat_report",onClick:()=>r(o.HeatId),icon:f.jsx(h3e,{})})),a},goToCasterDataEntry:n,goToHeatReport:r}},MQe=Sn(),PG=new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:0}),zPi=({onDeclareClick:e})=>{const t=kk(),{showContextMenu:n,registerConfig:r}=ws(),{getMenuOptions:i,goToCasterDataEntry:o,goToHeatReport:a}=OPi({onDeclareClick:e});return v.useEffect(()=>{r({id:"production-management",getOptions:i})},[]),{columnData:[{headerName:"Heat",field:"HeatName",flex:1,minWidth:64},{headerName:"Grade",field:"GradeName",flex:1,minWidth:78},{headerName:"Mold Size",field:"MoldSizeName",flex:1,minWidth:84},{headerName:"Foreman",field:"CasterForeman",flex:1,minWidth:77},{headerName:"Production Date",field:"CastDate",flex:1,minWidth:123,valueGetter:l=>l.data.CastDate?MQe(l.data.CastDate).format("MM/DD/YYYY"):""},{headerName:"Tap Time",field:"TapTime",flex:1,minWidth:80,valueGetter:l=>l.data.TapTime?MQe(l.data.TapTime).format("HH:mm"):""},{headerName:"Melter",field:"Melter",flex:1,minWidth:63},{headerName:"Lab Tech",field:"LabTech",flex:1,minWidth:80},{headerName:"Sequence",field:"Sequence",flex:1,minWidth:84},{headerName:"Total Length",field:"TotalLength",flex:1,minWidth:120,wrapHeaderText:!0,headerStyle:{textAlign:"center"},valueGetter:l=>{if(!l.data.TotalLength||l.data.TotalLength===0)return"";const c=l.data.TotalLength,u=Math.floor(c/12),d=c%12;return`${PG.format(u)} ft ${d} in`}},{headerName:"Total Pieces",field:"TotalPieces",flex:1,wrapHeaderText:!0,headerStyle:{textAlign:"center"},minWidth:66,valueGetter:l=>!l.data.TotalPieces||l.data.TotalPieces===0?"":PG.format(l.data.TotalPieces)},{headerName:"Section",field:"Sections",flex:1,minWidth:90,wrapHeaderText:!0,headerStyle:{textAlign:"center"},valueGetter:l=>l.data.Sections||""},{headerName:"Total Weight [lbs]",field:"TotalWeight",flex:1,wrapHeaderText:!0,headerStyle:{textAlign:"center"},minWidth:100,valueGetter:l=>!l.data.TotalWeight||l.data.TotalWeight===0?"":PG.format(l.data.TotalWeight)},{headerName:"Pourback [tons]",field:"PourbackWeight",flex:1,wrapHeaderText:!0,headerStyle:{textAlign:"center"},minWidth:110,valueGetter:l=>!l.data.PourbackWeight||l.data.PourbackWeight===0?"":PG.format(l.data.PourbackWeight)},{headerName:"Status",field:"Declared",flex:1,minWidth:130,valueGetter:l=>l.data.HasPourback?"Pourback":l.data.Declared?"Declared":"Pending",cellStyle:l=>l.data.HasPourback?{color:yRi,fontWeight:"bold",backgroundColor:MRi}:l.data.Declared?{color:CRi,fontWeight:"bold",backgroundColor:xRi}:{color:wRi,fontWeight:"bold",backgroundColor:""}},{headerName:"",field:"Actions",flex:1,minWidth:120,maxWidth:120,sortable:!1,cellRenderer:l=>{const c=!!l.data.Declared,u=!!l.data.HasPourback;let d="Declare",p="contained",h="Declare product batch";return(c||u)&&(d="View",p="outlined",h="Product batch already declared"),f.jsx("div",{className:t.alwaysVisible,children:f.jsx(ls,{title:h,arrow:!0,children:f.jsx(Ne,{fullWidth:!0,variant:p,color:"primary",size:"small",onClick:()=>e(l.data.ProcessId,l.data.LadleClose),style:{fontSize:"0.75rem",padding:"3px 8px",minWidth:"93px"},children:d})})})}},{headerName:"",flex:1,minWidth:180,maxWidth:180,field:"links",sortable:!1,cellRenderer:l=>f.jsx("div",{className:t.buttons,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(ls,{title:"See in Caster Data Entry",arrow:!0,children:f.jsx(Ne,{fullWidth:!0,"aria-label":"Caster Data Entry",onClick:()=>{o(l.data.ProcessId)},children:f.jsx("span",{className:"material-icons",style:{color:nQe},children:"memory"})})})}),f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(ls,{title:"See Heat Report",arrow:!0,children:f.jsx(Ne,{fullWidth:!0,"aria-label":"Heat Report",onClick:()=>{a(l.data.HeatId)},children:f.jsx("span",{className:"material-icons",style:{color:nQe},children:"description"})})})}),f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(Ne,{fullWidth:!0,"aria-label":"Options",title:"Options",style:{cursor:"pointer"},size:"large",onClick:c=>n(c,l.data,"production-management"),children:f.jsx(Cj,{fontSize:"inherit",color:"primary",style:{cursor:"pointer",height:"20px",width:"20px"}})})})]})})}],showContextMenu:n}},TPi=({isLoading:e,getProductionData:t,gridRef:n,rows:r})=>{const[i,o]=v.useState(!1),[a,s]=v.useState(null),[l,c]=v.useState(null),[u,d]=v.useState(null),[p,h]=v.useState(null),[g,m]=Zu(),b=(O,T)=>{s(O),d(T||null),o(!0)},{columnData:y,showContextMenu:M}=zPi({onDeclareClick:b}),C=O=>{O.preventDefault()},x=O=>{if(!O.data.Declared&&!O.data.HasPourback)return{background:vRi}},w=O=>{h(O.api)},S=()=>{if(!p)return;const O=p.getSelectedRows();O.length>0?(c(O[0]),m({processId:O[0].ProcessId},{replace:!0})):(c(null),m({},{replace:!0}))},A=g.get("processId"),z=g.get("openModal");return v.useEffect(()=>{p&&(e?p.showLoadingOverlay():p.hideOverlay())},[p,e]),v.useEffect(()=>{if(!e&&p&&r&&r.length>0){const O=A;if(O){const T=p.getRowNode(O);T&&(p.deselectAll(),T?.setSelected(!0,!0),c(T.data),z==="deliveryTicket"&&(s(Number(O)),d(T.data.LadleClose||null),o(!0),g.delete("openModal"),m(g,{replace:!0})))}}},[p,e,r,z]),f.jsxs(f.Fragment,{children:[l&&!i&&f.jsx(yn,{title:`${l.HeatName} - Production Management`}),f.jsx("div",{onContextMenu:C,children:f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,md:12,xs:12,style:{border:`1px solid ${bRi}`,minHeight:"65vh",height:"65vh"},className:"ag-theme-material",children:[f.jsx(Ow,{theme:aTt,children:f.jsx(tTt,{show:i,onHide:O=>{o(!1),O&&t().then(()=>{})},processId:a,ladleClose:u})}),f.jsx($n,{onGridReady:w,rowData:r,columnDefs:y,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:O=>O.data.ProcessId,getRowStyle:x,onRowDoubleClicked:O=>{b(O.data.ProcessId,O.data.LadleClose)},onCellContextMenu:O=>{O.api.deselectAll(),O.node.setSelected(!0),c(O.data),O.event&&M(O.event,O.data,"production-management")},onSelectionChanged:S,ref:n})]})})})]})},EPi={productionData:[],lastestHeats:[],isLoading:!1,error:""},RY=ki({name:"__",initialState:EPi,reducers:{setProductionData(e,{payload:t}){e.productionData=t||[]},setLastestHeats(e,{payload:t}){e.lastestHeats=t||[]},setIsLoading(e,{payload:t}){e.isLoading=t},setError(e,{payload:t}){e.error=t}}}),cTt=v.createContext({state:RY.getInitialState(),actions:RY.actions}),RPi=()=>v.useContext(cTt),IPi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:RY.getInitialState(),reducers:RY.caseReducers});return f.jsx(cTt.Provider,{value:{state:t,actions:n},children:e})},DG=Sn(),PPi=async e=>{const t=new Ye,n=[];n.push({name:"ShiftId",value:e}),n.push({name:"GetDeleted",value:!1});const r=await t.callV2("[CAS].[GetProductionData]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,TapTime:i.TapTime?DG.utc(i.TapTime).toDate():null,LadleClose:i.LadleClose?DG.utc(i.LadleClose).toDate():null})),r.data.tables[1]&&(r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,StartTime:i.StartTime?DG.utc(i.StartTime).toDate():null,EndTime:i.EndTime?DG.utc(i.EndTime).toDate():null})))),r},DPi=async e=>{const t=new Ye,n=[];return n.push({name:"SearchTerm",value:null}),n.push({name:"IsExternal",value:e}),await t.callV2("[CAS].[SearchHeatsWithLadleClose]",n)},kPi=async(e,t)=>{const n=new Ye,r=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100},{name:"IsExternal",value:t}];return await n.callV2("[CAS].[SearchHeatsWithLadleClose]",r)},LPi=Sn(),_Pi=()=>{const e=Oo(),{state:{lastestHeats:t},actions:{setLastestHeats:n,setIsLoading:r,setError:i,setStrandDataByProcessId:o}}=RPi(),{shiftInfo:a,getShiftDataFromAPI:s}=na(),l=LPi(a?.CurrentStart).format("MM-DD-YYYY"),[c,u]=v.useState([]),[d,p]=v.useState(""),[h,g]=v.useState(!0),[m,b]=v.useState(!0),{shiftId:y}=ds(),M=v.useRef(null),C=z=>{z.preventDefault()},x=async z=>{g(!0),r(!0);const O=At(z||a,"CurrentShiftId",null),T=await PPi(Number(O));T.ok?u(T.data.tables[0].rows):(p(T.message),i(T.message)),g(!1),r(!1)},w=async()=>{const z=await DPi(!1);if(z.ok){const O=At(z,"data.tables[0].rows",null);n(O)}else p(z.message),i(z.message)},S=async z=>{if(z.length>=3){const O=await kPi(z,!1);return O.ok?At(O,"data.tables[0].rows",null):(p(O.message),i(O.message),[])}else return t},A=()=>{if(M.current&&M.current.api){const z={skipHeader:!1,skipFooters:!0,skipGroups:!0,fileName:`Production-Management-${l}.xlsx`,sheetName:"Production Management",processCellCallback:O=>O.value??""};M.current.api.exportDataAsExcel(z)}else p("Unable to export data. Please try again."),i("Unable to export data. Please try again.")};return v.useEffect(()=>{if(a&&!m){const z=At(a,"CurrentShiftId",null);e(`/production-management/${z}`),(async()=>(await x(),await w()))()}},[a]),v.useEffect(()=>{y?(async()=>{const z=Number(y);s(null,z).then(async O=>{O&&x(O).then(()=>{w(),b(!1)})})})():(async()=>s(null,0).then(async z=>{z&&x(z).then(()=>{w(),b(!1)})}))()},[]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Production Management"}),f.jsxs("div",{onContextMenu:C,children:[f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:mRi},children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Production Management"})})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(qm,{preventInit:!0}),f.jsx(Pt,{style:{minWidth:"220px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,justifyContent:"flex-start",alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(lTt,{heats:t,getHeats:S,loading:h,onBlur:()=>{},onChange:z=>{const O=new URLSearchParams;z.ProcessId&&O.set("processId",z.ProcessId.toString());const T=O.toString();window.location.href=`/production-management/${z.ShiftId}?${T}`}})})})}),f.jsx(D,{item:!0,xs:"auto",style:{marginLeft:"auto"},children:f.jsx(pT,{onClick:A})})]})}),f.jsx(TPi,{isLoading:h,getProductionData:x,gridRef:M,rows:c})]})})}),f.jsx(yt,{error:d,onHide:()=>p("")})]})]})},CQe=()=>f.jsx(IPi,{children:f.jsx(_Pi,{})}),IY=new Date;IY.setDate(IY.getDate()-5);IY.setHours(0,0,0,0);const uTt=new Date;uTt.setHours(23,59,59,0);const NPi={casterProductions:null,billetSizes:[],grades:[],casterProductionFilter:{startDate:IY,endDate:uTt,billetSizeId:0,gradeId:0,shiftId:0},showLoading:!1},PY=ki({name:"__",initialState:NPi,reducers:{setCasterProductions(e,{payload:t}){e.casterProductions=t},setBilletSizes(e,{payload:t}){e.billetSizes=t},setGrades(e,{payload:t}){e.grades=t},setCasterProductionFilters(e,{payload:t}){e.casterProductionFilter=t},setShowLoading(e,{payload:t}){e.showLoading=t}}}),dTt=v.createContext({state:PY.getInitialState(),actions:PY.actions}),FPi=()=>v.useContext(dTt),WPi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:PY.getInitialState(),reducers:PY.caseReducers});return f.jsx(dTt.Provider,{value:{state:t,actions:n},children:e})};function ur(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ete(e){return ur(1,arguments),e instanceof Date||p1(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Er(e){ur(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||p1(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function u6(e){if(ur(1,arguments),!Ete(e)&&typeof e!="number")return!1;var t=Er(e);return!isNaN(Number(t))}function Eo(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function oTe(e,t){ur(2,arguments);var n=Er(e).getTime(),r=Eo(t);return new Date(n+r)}function pTt(e,t){ur(2,arguments);var n=Eo(t);return oTe(e,-n)}var qPi=864e5;function BPi(e){ur(1,arguments);var t=Er(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/qPi)+1}function cD(e){ur(1,arguments);var t=1,n=Er(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function hTt(e){ur(1,arguments);var t=Er(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=cD(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=cD(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function jPi(e){ur(1,arguments);var t=hTt(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=cD(n);return r}var HPi=6048e5;function fTt(e){ur(1,arguments);var t=Er(e),n=cD(t).getTime()-jPi(t).getTime();return Math.round(n/HPi)+1}var VPi={};function gT(){return VPi}function h3(e,t){var n,r,i,o,a,s,l,c;ur(1,arguments);var u=gT(),d=Eo((n=(r=(i=(o=t?.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Er(e),h=p.getUTCDay(),g=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function aTe(e,t){var n,r,i,o,a,s,l,c;ur(1,arguments);var u=Er(e),d=u.getUTCFullYear(),p=gT(),h=Eo((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,h),g.setUTCHours(0,0,0,0);var m=h3(g,t),b=new Date(0);b.setUTCFullYear(d,0,h),b.setUTCHours(0,0,0,0);var y=h3(b,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=y.getTime()?d:d-1}function GPi(e,t){var n,r,i,o,a,s,l,c;ur(1,arguments);var u=gT(),d=Eo((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=aTe(e,t),h=new Date(0);h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0);var g=h3(h,t);return g}var $Pi=6048e5;function gTt(e,t){ur(1,arguments);var n=Er(e),r=h3(n,t).getTime()-GPi(n,t).getTime();return Math.round(r/$Pi)+1}function as(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var yC={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return as(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):as(r+1,2)},d:function(t,n){return as(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return as(t.getUTCHours()%12||12,n.length)},H:function(t,n){return as(t.getUTCHours(),n.length)},m:function(t,n){return as(t.getUTCMinutes(),n.length)},s:function(t,n){return as(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return as(o,n.length)}},dR={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},UPi={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return yC.y(t,n)},Y:function(t,n,r,i){var o=aTe(t,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return as(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):as(a,n.length)},R:function(t,n){var r=hTt(t);return as(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return as(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return as(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return as(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return yC.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return as(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=gTt(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):as(o,n.length)},I:function(t,n,r){var i=fTt(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):as(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):yC.d(t,n)},D:function(t,n,r){var i=BPi(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):as(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return as(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return as(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return as(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=dR.noon:i===0?o=dR.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=dR.evening:i>=12?o=dR.afternoon:i>=4?o=dR.morning:o=dR.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return yC.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):yC.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):as(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):as(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):yC.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):yC.s(t,n)},S:function(t,n){return yC.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return wQe(a);case"XXXX":case"XX":return GA(a);case"XXXXX":case"XXX":default:return GA(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return wQe(a);case"xxxx":case"xx":return GA(a);case"xxxxx":case"xxx":default:return GA(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+xQe(a,":");case"OOOO":default:return"GMT"+GA(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+xQe(a,":");case"zzzz":default:return"GMT"+GA(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return as(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return as(a,n.length)}};function xQe(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t;return n+String(i)+a+as(o,2)}function wQe(e,t){if(e%60===0){var n=e>0?"-":"+";return n+as(Math.abs(e)/60,2)}return GA(e,t)}function GA(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=as(Math.floor(i/60),2),a=as(i%60,2);return r+o+n+a}var SQe=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},mTt=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},XPi=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return SQe(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",SQe(i,n)).replace("{{time}}",mTt(o,n))},w2e={p:mTt,P:XPi};function DY(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var YPi=["D","DD"],KPi=["YY","YYYY"];function vTt(e){return YPi.indexOf(e)!==-1}function bTt(e){return KPi.indexOf(e)!==-1}function kY(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var QPi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ZPi=function(t,n,r){var i,o=QPi[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function ype(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var JPi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},eDi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tDi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nDi={date:ype({formats:JPi,defaultWidth:"full"}),time:ype({formats:eDi,defaultWidth:"full"}),dateTime:ype({formats:tDi,defaultWidth:"full"})},rDi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},iDi=function(t,n,r,i){return rDi[t]};function P5(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var oDi={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},aDi={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sDi={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},lDi={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},cDi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uDi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dDi=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},pDi={ordinalNumber:dDi,era:P5({values:oDi,defaultWidth:"wide"}),quarter:P5({values:aDi,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:P5({values:sDi,defaultWidth:"wide"}),day:P5({values:lDi,defaultWidth:"wide"}),dayPeriod:P5({values:cDi,defaultWidth:"wide",formattingValues:uDi,defaultFormattingWidth:"wide"})};function D5(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?fDi(s,function(d){return d.test(a)}):hDi(s,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function hDi(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function fDi(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function gDi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var mDi=/^(\d+)(th|st|nd|rd)?/i,vDi=/\d+/i,bDi={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yDi={any:[/^b/i,/^(a|c)/i]},MDi={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},CDi={any:[/1/i,/2/i,/3/i,/4/i]},xDi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},wDi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},SDi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ADi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ODi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},zDi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},TDi={ordinalNumber:gDi({matchPattern:mDi,parsePattern:vDi,valueCallback:function(t){return parseInt(t,10)}}),era:D5({matchPatterns:bDi,defaultMatchWidth:"wide",parsePatterns:yDi,defaultParseWidth:"any"}),quarter:D5({matchPatterns:MDi,defaultMatchWidth:"wide",parsePatterns:CDi,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:D5({matchPatterns:xDi,defaultMatchWidth:"wide",parsePatterns:wDi,defaultParseWidth:"any"}),day:D5({matchPatterns:SDi,defaultMatchWidth:"wide",parsePatterns:ADi,defaultParseWidth:"any"}),dayPeriod:D5({matchPatterns:ODi,defaultMatchWidth:"any",parsePatterns:zDi,defaultParseWidth:"any"})},yTt={code:"en-US",formatDistance:ZPi,formatLong:nDi,formatRelative:iDi,localize:pDi,match:TDi,options:{weekStartsOn:0,firstWeekContainsDate:1}},EDi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RDi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IDi=/^'([^]*?)'?$/,PDi=/''/g,DDi=/[a-zA-Z]/;function AQe(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,g,m,b,y,M,C,x;ur(2,arguments);var w=String(t),S=gT(),A=(r=(i=n?.locale)!==null&&i!==void 0?i:S.locale)!==null&&r!==void 0?r:yTt,z=Eo((o=(a=(s=(l=n?.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&s!==void 0?s:S.firstWeekContainsDate)!==null&&a!==void 0?a:(d=S.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=Eo((h=(g=(m=(b=n?.weekStartsOn)!==null&&b!==void 0?b:n==null||(y=n.locale)===null||y===void 0||(M=y.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&m!==void 0?m:S.weekStartsOn)!==null&&g!==void 0?g:(C=S.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var T=Er(e);if(!u6(T))throw new RangeError("Invalid time value");var R=DY(T),P=pTt(T,R),F={firstWeekContainsDate:z,weekStartsOn:O,locale:A,_originalDate:T},N=w.match(RDi).map(function(L){var W=L[0];if(W==="p"||W==="P"){var j=w2e[W];return j(L,A.formatLong)}return L}).join("").match(EDi).map(function(L){if(L==="''")return"'";var W=L[0];if(W==="'")return kDi(L);var j=UPi[W];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&bTt(L)&&kY(L,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&vTt(L)&&kY(L,t,String(e)),j(P,L,A.localize,F);if(W.match(DDi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return L}).join("");return N}function kDi(e){var t=e.match(IDi);return t?t[1].replace(PDi,"'"):e}var LDi=6e4;function S2e(e,t){ur(2,arguments);var n=Eo(t);return oTe(e,n*LDi)}var _Di=36e5;function NDi(e,t){ur(2,arguments);var n=Eo(t);return oTe(e,n*_Di)}function Lk(e,t){ur(2,arguments);var n=Er(e),r=Eo(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function LY(e,t){ur(2,arguments);var n=Eo(t),r=n*7;return Lk(e,r)}function Em(e,t){ur(2,arguments);var n=Er(e),r=Eo(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function MTt(e,t){ur(2,arguments);var n=Eo(t),r=n*3;return Em(e,r)}function uD(e,t){ur(2,arguments);var n=Eo(t);return Em(e,n*12)}function FDi(e,t){ur(2,arguments);var n=Eo(t);return Lk(e,-n)}function OQe(e,t){ur(2,arguments);var n=Eo(t);return LY(e,-n)}function dD(e,t){ur(2,arguments);var n=Eo(t);return Em(e,-n)}function WDi(e,t){ur(2,arguments);var n=Eo(t);return MTt(e,-n)}function d6(e,t){ur(2,arguments);var n=Eo(t);return uD(e,-n)}function zQe(e){ur(1,arguments);var t=Er(e),n=t.getSeconds();return n}function Sb(e){ur(1,arguments);var t=Er(e),n=t.getMinutes();return n}function Ab(e){ur(1,arguments);var t=Er(e),n=t.getHours();return n}function qDi(e){ur(1,arguments);var t=Er(e),n=t.getDay();return n}function TQe(e){ur(1,arguments);var t=Er(e),n=t.getDate();return n}function CTt(e,t){var n,r,i,o,a,s,l,c;ur(1,arguments);var u=gT(),d=Eo((n=(r=(i=(o=t?.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Er(e),h=p.getDay(),g=(h<d?7:0)+h-d;return p.setDate(p.getDate()-g),p.setHours(0,0,0,0),p}function _Y(e){return ur(1,arguments),CTt(e,{weekStartsOn:1})}function BDi(e){ur(1,arguments);var t=Er(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=_Y(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=_Y(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function jDi(e){ur(1,arguments);var t=BDi(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=_Y(n);return r}var HDi=6048e5;function VDi(e){ur(1,arguments);var t=Er(e),n=_Y(t).getTime()-jDi(t).getTime();return Math.round(n/HDi)+1}function d0(e){ur(1,arguments);var t=Er(e),n=t.getMonth();return n}function tI(e){ur(1,arguments);var t=Er(e),n=Math.floor(t.getMonth()/3)+1;return n}function Do(e){return ur(1,arguments),Er(e).getFullYear()}function A2e(e){ur(1,arguments);var t=Er(e),n=t.getTime();return n}function GDi(e,t){ur(2,arguments);var n=Er(e),r=Eo(t);return n.setSeconds(r),n}function g$(e,t){ur(2,arguments);var n=Er(e),r=Eo(t);return n.setMinutes(r),n}function m$(e,t){ur(2,arguments);var n=Er(e),r=Eo(t);return n.setHours(r),n}function $Di(e){ur(1,arguments);var t=Er(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function U0(e,t){ur(2,arguments);var n=Er(e),r=Eo(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=$Di(a);return n.setMonth(r,Math.min(o,s)),n}function pR(e,t){ur(2,arguments);var n=Er(e),r=Eo(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return U0(n,n.getMonth()+o*3)}function uy(e,t){ur(2,arguments);var n=Er(e),r=Eo(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function EQe(e){ur(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(p1(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Er(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function RQe(e){ur(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(p1(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Er(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function Ob(e){ur(1,arguments);var t=Er(e);return t.setHours(0,0,0,0),t}var UDi=864e5;function NY(e,t){ur(2,arguments);var n=Ob(e),r=Ob(t),i=n.getTime()-DY(n),o=r.getTime()-DY(r);return Math.round((i-o)/UDi)}function FY(e,t){ur(2,arguments);var n=Er(e),r=Er(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function WY(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getFullYear()-r.getFullYear()}function xTt(e){ur(1,arguments);var t=Er(e);return t.setDate(1),t.setHours(0,0,0,0),t}function O2e(e){ur(1,arguments);var t=Er(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function wTt(e){ur(1,arguments);var t=Er(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function z2e(e){ur(1,arguments);var t=Er(e);return t.setHours(23,59,59,999),t}function XDi(e){ur(1,arguments);var t=Er(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function YDi(e){ur(1,arguments);var t=Er(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function KDi(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getTime()===r.getTime()}function QDi(e,t){ur(2,arguments);var n=Ob(e),r=Ob(t);return n.getTime()===r.getTime()}function ZDi(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function JDi(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getFullYear()===r.getFullYear()}function eki(e,t){ur(2,arguments);var n=O2e(e),r=O2e(t);return n.getTime()===r.getTime()}function bw(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getTime()>r.getTime()}function Mx(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getTime()<r.getTime()}function p6(e,t){ur(2,arguments);var n=Er(e).getTime(),r=Er(t.start).getTime(),i=Er(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function IQe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=bMe(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function tki(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function STt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(STt=function(){return!!e})()}function Ca(e){var t=STt();return function(){var n,r=Pz(e);if(t){var i=Pz(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return lQ(this,n)}}var nki=10,ATt=(function(){function e(){Io(this,e),tn(this,"priority",void 0),tn(this,"subPriority",0)}return so(e,[{key:"validate",value:function(n,r){return!0}}]),e})(),rki=(function(e){ea(n,e);var t=Ca(n);function n(r,i,o,a,s){var l;return Io(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return so(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),n})(ATt),iki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",nki),tn(xn(r),"subPriority",-1),r}return so(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),n})(ATt),Ha=(function(){function e(){Io(this,e),tn(this,"incompatibleTokens",void 0),tn(this,"priority",void 0),tn(this,"subPriority",void 0)}return so(e,[{key:"run",value:function(n,r,i,o){var a=this.parse(n,r,i,o);return a?{setter:new rki(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e})(),oki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",140),tn(xn(r),"incompatibleTokens",["R","u","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),sTe=6e4,lTe=36e5,aki=1e3,Oc={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Xv={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function zc(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ll(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Yv(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*lTe+o*sTe+a*aki),rest:t.slice(n[0].length)}}function OTt(e){return Ll(Oc.anyDigitsSigned,e)}function lc(e,t){switch(e){case 1:return Ll(Oc.singleDigit,t);case 2:return Ll(Oc.twoDigits,t);case 3:return Ll(Oc.threeDigits,t);case 4:return Ll(Oc.fourDigits,t);default:return Ll(new RegExp("^\\d{1,"+e+"}"),t)}}function qY(e,t){switch(e){case 1:return Ll(Oc.singleDigitSigned,t);case 2:return Ll(Oc.twoDigitsSigned,t);case 3:return Ll(Oc.threeDigitsSigned,t);case 4:return Ll(Oc.fourDigitsSigned,t);default:return Ll(new RegExp("^-?\\d{1,"+e+"}"),t)}}function cTe(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function zTt(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function TTt(e){return e%400===0||e%4===0&&e%100!==0}var ski=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",130),tn(xn(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return{year:c,isTwoDigitYear:o==="yy"}};switch(o){case"y":return zc(lc(4,i),s);case"yo":return zc(a.ordinalNumber(i,{unit:"year"}),s);default:return zc(lc(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var l=zTt(a.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),lki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",130),tn(xn(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return{year:c,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return zc(lc(4,i),s);case"Yo":return zc(a.ordinalNumber(i,{unit:"year"}),s);default:return zc(lc(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var l=aTe(i,s);if(a.isTwoDigitYear){var c=zTt(a.year,l);return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),h3(i,s)}var u=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(u,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),h3(i,s)}}]),n})(Ha),cki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",130),tn(xn(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o){return qY(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),cD(s)}}]),n})(Ha),uki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",130),tn(xn(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o){return qY(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),dki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",120),tn(xn(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return lc(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),pki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",120),tn(xn(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return lc(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),hki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),tn(xn(r),"priority",110),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c-1};switch(o){case"M":return zc(Ll(Oc.month,i),s);case"MM":return zc(lc(2,i),s);case"Mo":return zc(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),fki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",110),tn(xn(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c-1};switch(o){case"L":return zc(Ll(Oc.month,i),s);case"LL":return zc(lc(2,i),s);case"Lo":return zc(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha);function gki(e,t,n){ur(2,arguments);var r=Er(e),i=Eo(t),o=gTt(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var mki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",100),tn(xn(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"w":return Ll(Oc.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return h3(gki(i,a,s),s)}}]),n})(Ha);function vki(e,t){ur(2,arguments);var n=Er(e),r=Eo(t),i=fTt(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var bki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",100),tn(xn(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"I":return Ll(Oc.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return cD(vki(i,a))}}]),n})(Ha),yki=[31,28,31,30,31,30,31,31,30,31,30,31],Mki=[31,29,31,30,31,30,31,31,30,31,30,31],Cki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"subPriority",1),tn(xn(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"d":return Ll(Oc.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=TTt(a),l=i.getUTCMonth();return s?o>=1&&o<=Mki[l]:o>=1&&o<=yki[l]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),xki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"subpriority",1),tn(xn(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return Ll(Oc.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=TTt(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),n})(Ha);function uTe(e,t,n){var r,i,o,a,s,l,c,u;ur(2,arguments);var d=gT(),p=Eo((r=(i=(o=(a=n?.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&i!==void 0?i:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Er(e),g=Eo(t),m=h.getUTCDay(),b=g%7,y=(b+7)%7,M=(y<p?7:0)+g-m;return h.setUTCDate(h.getUTCDate()+M),h}var wki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=uTe(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),Ski=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a,s){var l=function(u){var d=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+d};switch(o){case"e":case"ee":return zc(lc(o.length,i),l);case"eo":return zc(a.ordinalNumber(i,{unit:"day"}),l);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=uTe(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),Aki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a,s){var l=function(u){var d=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+d};switch(o){case"c":case"cc":return zc(lc(o.length,i),l);case"co":return zc(a.ordinalNumber(i,{unit:"day"}),l);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=uTe(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n})(Ha);function Oki(e,t){ur(2,arguments);var n=Eo(t);n%7===0&&(n=n-7);var r=1,i=Er(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}var zki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c===0?7:c};switch(o){case"i":case"ii":return lc(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return zc(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return zc(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return zc(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return zc(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=Oki(i,a),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),Tki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",80),tn(xn(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(cTe(a),0,0,0),i}}]),n})(Ha),Eki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",80),tn(xn(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(cTe(a),0,0,0),i}}]),n})(Ha),Rki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",80),tn(xn(r),"incompatibleTokens",["a","b","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(cTe(a),0,0,0),i}}]),n})(Ha),Iki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",70),tn(xn(r),"incompatibleTokens",["H","K","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"h":return Ll(Oc.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n})(Ha),Pki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",70),tn(xn(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"H":return Ll(Oc.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),n})(Ha),Dki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",70),tn(xn(r),"incompatibleTokens",["h","H","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"K":return Ll(Oc.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n})(Ha),kki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",70),tn(xn(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"k":return Ll(Oc.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),n})(Ha),Lki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",60),tn(xn(r),"incompatibleTokens",["t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"m":return Ll(Oc.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),n})(Ha),_ki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",50),tn(xn(r),"incompatibleTokens",["t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"s":return Ll(Oc.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return lc(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),n})(Ha),Nki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",30),tn(xn(r),"incompatibleTokens",["t","T"]),r}return so(n,[{key:"parse",value:function(i,o){var a=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return zc(lc(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),n})(Ha),Fki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",10),tn(xn(r),"incompatibleTokens",["t","T","x"]),r}return so(n,[{key:"parse",value:function(i,o){switch(o){case"X":return Yv(Xv.basicOptionalMinutes,i);case"XX":return Yv(Xv.basic,i);case"XXXX":return Yv(Xv.basicOptionalSeconds,i);case"XXXXX":return Yv(Xv.extendedOptionalSeconds,i);case"XXX":default:return Yv(Xv.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n})(Ha),Wki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",10),tn(xn(r),"incompatibleTokens",["t","T","X"]),r}return so(n,[{key:"parse",value:function(i,o){switch(o){case"x":return Yv(Xv.basicOptionalMinutes,i);case"xx":return Yv(Xv.basic,i);case"xxxx":return Yv(Xv.basicOptionalSeconds,i);case"xxxxx":return Yv(Xv.extendedOptionalSeconds,i);case"xxx":default:return Yv(Xv.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n})(Ha),qki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",40),tn(xn(r),"incompatibleTokens","*"),r}return so(n,[{key:"parse",value:function(i){return OTt(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n})(Ha),Bki=(function(e){ea(n,e);var t=Ca(n);function n(){var r;Io(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",20),tn(xn(r),"incompatibleTokens","*"),r}return so(n,[{key:"parse",value:function(i){return OTt(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),n})(Ha),jki={G:new oki,y:new ski,Y:new lki,R:new cki,u:new uki,Q:new dki,q:new pki,M:new hki,L:new fki,w:new mki,I:new bki,d:new Cki,D:new xki,E:new wki,e:new Ski,c:new Aki,i:new zki,a:new Tki,b:new Eki,B:new Rki,h:new Iki,H:new Pki,K:new Dki,k:new kki,m:new Lki,s:new _ki,S:new Nki,X:new Fki,x:new Wki,t:new qki,T:new Bki},Hki=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vki=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gki=/^'([^]*?)'?$/,$ki=/''/g,Uki=/\S/,Xki=/[a-zA-Z]/;function Mpe(e,t,n,r){var i,o,a,s,l,c,u,d,p,h,g,m,b,y,M,C,x,w;ur(3,arguments);var S=String(e),A=String(t),z=gT(),O=(i=(o=r?.locale)!==null&&o!==void 0?o:z.locale)!==null&&i!==void 0?i:yTt;if(!O.match)throw new RangeError("locale must contain match property");var T=Eo((a=(s=(l=(c=r?.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(u=r.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:z.firstWeekContainsDate)!==null&&s!==void 0?s:(p=z.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=Eo((g=(m=(b=(y=r?.weekStartsOn)!==null&&y!==void 0?y:r==null||(M=r.locale)===null||M===void 0||(C=M.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&b!==void 0?b:z.weekStartsOn)!==null&&m!==void 0?m:(x=z.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&g!==void 0?g:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(A==="")return S===""?Er(n):new Date(NaN);var P={firstWeekContainsDate:T,weekStartsOn:R,locale:O},F=[new iki],N=A.match(Vki).map(function(pe){var te=pe[0];if(te in w2e){var ce=w2e[te];return ce(pe,O.formatLong)}return pe}).join("").match(Hki),L=[],W=IQe(N),j;try{var V=function(){var te=j.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&bTt(te)&&kY(te,A,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&vTt(te)&&kY(te,A,e);var ce=te[0],oe=jki[ce];if(oe){var ae=oe.incompatibleTokens;if(Array.isArray(ae)){var ne=L.find(function(he){return ae.includes(he.token)||he.token===ce});if(ne)throw new RangeError("The format string mustn't contain `".concat(ne.fullToken,"` and `").concat(te,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&L.length>0)throw new RangeError("The format string mustn't contain `".concat(te,"` and any other token at the same time"));L.push({token:ce,fullToken:te});var le=oe.run(S,te,O.match,P);if(!le)return{v:new Date(NaN)};F.push(le.setter),S=le.rest}else{if(ce.match(Xki))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ce+"`");if(te==="''"?te="'":ce==="'"&&(te=Yki(te)),S.indexOf(te)===0)S=S.slice(te.length);else return{v:new Date(NaN)}}};for(W.s();!(j=W.n()).done;){var G=V();if(p1(G)==="object")return G.v}}catch(pe){W.e(pe)}finally{W.f()}if(S.length>0&&Uki.test(S))return new Date(NaN);var q=F.map(function(pe){return pe.priority}).sort(function(pe,te){return te-pe}).filter(function(pe,te,ce){return ce.indexOf(pe)===te}).map(function(pe){return F.filter(function(te){return te.priority===pe}).sort(function(te,ce){return ce.subPriority-te.subPriority})}).map(function(pe){return pe[0]}),$=Er(n);if(isNaN($.getTime()))return new Date(NaN);var U=pTt($,DY($)),X={},Q=IQe(q),re;try{for(Q.s();!(re=Q.n()).done;){var ee=re.value;if(!ee.validate(U,P))return new Date(NaN);var se=ee.set(U,X,P);Array.isArray(se)?(U=se[0],tki(X,se[1])):U=se}}catch(pe){Q.e(pe)}finally{Q.f()}return U}function Yki(e){return e.match(Gki)[1].replace($ki,"'")}function Kki(e,t){var n;ur(1,arguments);var r=Eo((n=void 0)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=eLi(e),o;if(i.date){var a=tLi(i.date,r);o=nLi(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,c;if(i.time&&(l=rLi(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=iLi(i.timezone),isNaN(c))return new Date(NaN)}else{var u=new Date(s+l),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return new Date(s+l+c)}var kG={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Qki=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zki=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Jki=/^([+-])(\d{2})(?::?(\d{2}))?$/;function eLi(e){var t={},n=e.split(kG.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kG.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kG.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=kG.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function tLi(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function nLi(e,t){if(t===null)return new Date(NaN);var n=e.match(Qki);if(!n)return new Date(NaN);var r=!!n[4],i=k5(n[1]),o=k5(n[2])-1,a=k5(n[3]),s=k5(n[4]),l=k5(n[5])-1;if(r)return cLi(t,s,l)?oLi(t,s,l):new Date(NaN);var c=new Date(0);return!sLi(t,o,a)||!lLi(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}function k5(e){return e?parseInt(e):1}function rLi(e){var t=e.match(Zki);if(!t)return NaN;var n=Cpe(t[1]),r=Cpe(t[2]),i=Cpe(t[3]);return uLi(n,r,i)?n*lTe+r*sTe+i*1e3:NaN}function Cpe(e){return e&&parseFloat(e.replace(",","."))||0}function iLi(e){if(e==="Z")return 0;var t=e.match(Jki);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return dLi(r,i)?n*(r*lTe+i*sTe):NaN}function oLi(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var aLi=[31,null,31,30,31,30,31,31,30,31,30,31];function ETt(e){return e%400===0||e%4===0&&e%100!==0}function sLi(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(aLi[t]||(ETt(e)?29:28))}function lLi(e,t){return t>=1&&t<=(ETt(e)?366:365)}function cLi(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function uLi(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function dLi(e,t){return t>=0&&t<=59}function pLi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,T2e(e,t)}function T2e(e,t){return T2e=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},T2e(e,t)}function hLi(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function PQe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fLi(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function gLi(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&fLi(e,t,n))return!0;e=e.parentNode||e.host}return e}function mLi(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var vLi=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function bLi(e){return e===void 0&&(e=0),function(){return++e}}var yLi=bLi(),E2e,LG={},xpe={},MLi=["touchstart","touchmove"],CLi="ignore-react-onclickoutside";function DQe(e,t){var n={},r=MLi.indexOf(t)!==-1;return r&&E2e&&(n.passive=!e.props.preventDefault),n}function Rte(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=(function(o){pLi(a,o);function a(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(u){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(u);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var u=c.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():Bl.findDOMNode(u)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||xpe[c._uid])){typeof E2e>"u"&&(E2e=vLi()),xpe[c._uid]=!0;var u=c.props.eventTypes;u.forEach||(u=[u]),LG[c._uid]=function(d){if(c.componentNode!==null&&!(c.initTimeStamp>d.timeStamp)&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&mLi(d)))){var p=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;gLi(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,LG[c._uid],DQe(PQe(c),d))})}},c.disableOnClickOutside=function(){delete xpe[c._uid];var u=LG[c._uid];if(u&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(p){return document.removeEventListener(p,u,DQe(PQe(c),p))}),delete LG[c._uid]}},c.getRef=function(u){return c.instanceRef=u},c._uid=yLi(),c.initTimeStamp=performance.now(),c}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var u=hLi(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,v.createElement(e,u)},a})(v.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:CLi,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var RTt=v.createContext(),ITt=v.createContext();function xLi(e){var t=e.children,n=v.useState(null),r=n[0],i=n[1],o=v.useRef(!1);v.useEffect(function(){return function(){o.current=!0}},[]);var a=v.useCallback(function(s){o.current||i(s)},[]);return v.createElement(RTt.Provider,{value:r},v.createElement(ITt.Provider,{value:a},t))}var PTt=function(t){return Array.isArray(t)?t[0]:t},DTt=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},R2e=function(t,n){if(typeof t=="function")return DTt(t,n);t!=null&&(t.current=n)},kQe=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},LQe=typeof window<"u"&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,wLi=[],SLi=function(t,n,r){r===void 0&&(r={});var i=v.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||wLi},a=v.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=v.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var g=h.state,m=Object.keys(g.elements);Bl.flushSync(function(){l({styles:kQe(m.map(function(b){return[b,g.styles[b]||{}]})),attributes:kQe(m.map(function(b){return[b,g.attributes[b]]}))})})},requires:["computeStyles"]}},[]),u=v.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return zut(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),d=v.useRef();return LQe(function(){d.current&&d.current.setOptions(u)},[u]),LQe(function(){if(!(t==null||n==null)){var p=r.createPopper||mlt,h=p(t,n,u);return d.current=h,function(){h.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},ALi=function(){},OLi=function(){return Promise.resolve(null)},zLi=[];function TLi(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?zLi:o,s=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,u=e.children,d=v.useContext(RTt),p=v.useState(null),h=p[0],g=p[1],m=v.useState(null),b=m[0],y=m[1];v.useEffect(function(){R2e(c,h)},[c,h]);var M=v.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:b!=null,options:{element:b}}])}},[n,i,l,a,b]),C=SLi(s||d,h,M),x=C.state,w=C.styles,S=C.forceUpdate,A=C.update,z=v.useMemo(function(){return{ref:g,style:w.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:w.arrow,ref:y},forceUpdate:S||ALi,update:A||OLi}},[g,y,n,x,w,A,S]);return PTt(u)(z)}var wpe,_Qe;function ELi(){if(_Qe)return wpe;_Qe=1;var e=function(){};return wpe=e,wpe}var RLi=ELi();const ILi=qn(RLi);function PLi(e){var t=e.children,n=e.innerRef,r=v.useContext(ITt),i=v.useCallback(function(o){R2e(n,o),DTt(r,o)},[n,r]);return v.useEffect(function(){return function(){return R2e(n,null)}},[]),v.useEffect(function(){ILi(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),PTt(t)({ref:i})}function DLi(e,t){if(ur(2,arguments),p1(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Er(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=U0(n,t.month)),t.date!=null&&n.setDate(Eo(t.date)),t.hours!=null&&n.setHours(Eo(t.hours)),t.minutes!=null&&n.setMinutes(Eo(t.minutes)),t.seconds!=null&&n.setSeconds(Eo(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Eo(t.milliseconds)),n)}function NQe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,r)}return n}function BY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NQe(Object(n),!0).forEach((function(r){Ze(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NQe(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function I2e(e){return I2e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I2e(e)}function nd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FQe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kTt(r.key),r)}}function rd(e,t,n){return t&&FQe(e.prototype,t),n&&FQe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ze(e,t,n){return(t=kTt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pD(){return pD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pD.apply(this,arguments)}function id(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P2e(e,t)}function jY(e){return jY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jY(e)}function P2e(e,t){return P2e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},P2e(e,t)}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function od(e){var t=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var n,r=jY(e);if(t){var i=jY(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nt(o)})(this,n)}}function h6(e){return(function(t){if(Array.isArray(t))return Spe(t)})(e)||(function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return Spe(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Spe(t,n)}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Spe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kTt(e){var t=(function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)})(e,"string");return typeof t=="symbol"?t:String(t)}var WQe=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qQe=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},kLi={p:qQe,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return WQe(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",WQe(i,t)).replace("{{time}}",qQe(o,t))}},oW=12,LLi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Rs(e){var t=e?typeof e=="string"||e instanceof String?Kki(e):Er(e):new Date;return VC(t)?t:null}function VC(e,t){return t=t||new Date("1/1/1000"),u6(e)&&!Mx(e,t)}function yl(e,t,n){if(n==="en")return AQe(e,t,{awareOfUnicodeTokens:!0});var r=hz(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&pz()&&hz(pz())&&(r=hz(pz())),AQe(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function wv(e,t){var n=t.dateFormat,r=t.locale;return e&&yl(e,Array.isArray(n)?n[0]:n,r)||""}function BQe(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,a=t.second;return m$(g$(GDi(e,a===void 0?0:a),o),r)}function zb(e,t,n){var r=hz(t||pz());return CTt(e,{locale:r,weekStartsOn:n})}function Hx(e){return xTt(e)}function IN(e){return wTt(e)}function jQe(e){return O2e(e)}function HQe(){return Ob(Rs())}function Cx(e,t){return e&&t?JDi(e,t):!e&&!t}function Xg(e,t){return e&&t?ZDi(e,t):!e&&!t}function HY(e,t){return e&&t?eki(e,t):!e&&!t}function js(e,t){return e&&t?QDi(e,t):!e&&!t}function RO(e,t){return e&&t?KDi(e,t):!e&&!t}function v$(e,t,n){var r,i=Ob(t),o=z2e(n);try{r=p6(e,{start:i,end:o})}catch{r=!1}return r}function pz(){return(typeof window<"u"?window:globalThis).__localeId__}function hz(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function dTe(e,t){return yl(U0(Rs(),e),"LLLL",t)}function LTt(e,t){return yl(U0(Rs(),e),"LLL",t)}function Ite(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return Pte(e,{minDate:n,maxDate:r})||i&&i.some((function(c){return js(e,c)}))||o&&o.some((function(c){var u=c.start,d=c.end;return p6(e,{start:u,end:d})}))||a&&!a.some((function(c){return js(e,c)}))||s&&!s.some((function(c){var u=c.start,d=c.end;return p6(e,{start:u,end:d})}))||l&&!l(Rs(e))||!1}function pTe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(i){var o=i.start,a=i.end;return p6(e,{start:o,end:a})})):n&&n.some((function(i){return js(e,i)}))||!1}function _Tt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return Pte(e,{minDate:xTt(n),maxDate:XDi(r)})||i&&i.some((function(s){return Xg(e,s)}))||o&&!o.some((function(s){return Xg(e,s)}))||a&&!a(Rs(e))||!1}function Ape(e,t,n,r){var i=Do(e),o=d0(e),a=Do(t),s=d0(t),l=Do(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function _Li(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return Pte(e,{minDate:n,maxDate:r})||i&&i.some((function(s){return HY(e,s)}))||o&&!o.some((function(s){return HY(e,s)}))||a&&!a(Rs(e))||!1}function Ope(e,t,n){if(!u6(t)||!u6(n))return!1;var r=Do(t),i=Do(n);return r<=e&&i>=e}function NTt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return Pte(s,{minDate:wTt(n),maxDate:YDi(r)})||i&&i.some((function(l){return Cx(s,l)}))||o&&!o.some((function(l){return Cx(s,l)}))||a&&!a(Rs(s))||!1}function zpe(e,t,n,r){var i=Do(e),o=tI(e),a=Do(t),s=tI(t),l=Do(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function Pte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&NY(e,n)<0||r&&NY(e,r)>0}function VQe(e,t){return t.some((function(n){return Ab(n)===Ab(e)&&Sb(n)===Sb(e)}))}function GQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&VQe(e,n)||r&&!VQe(e,r)||i&&!i(e)||!1}function $Qe(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Rs(),a=m$(g$(o,Sb(e)),Ab(e)),s=m$(g$(o,Sb(n)),Ab(n)),l=m$(g$(o,Sb(r)),Ab(r));try{i=!p6(a,{start:s,end:l})}catch{i=!1}return i}function UQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=dD(e,1);return n&&FY(n,i)>0||r&&r.every((function(o){return FY(o,i)>0}))||!1}function XQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Em(e,1);return n&&FY(i,n)>0||r&&r.every((function(o){return FY(i,o)>0}))||!1}function YQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=d6(e,1);return n&&WY(n,i)>0||r&&r.every((function(o){return WY(o,i)>0}))||!1}function KQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=uD(e,1);return n&&WY(i,n)>0||r&&r.every((function(o){return WY(i,o)>0}))||!1}function FTt(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(i){return NY(i,t)>=0}));return EQe(r)}return n?EQe(n):t}function WTt(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(i){return NY(i,t)<=0}));return RQe(r)}return n?RQe(n):t}function QQe(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(Ete(o)){var a=yl(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if(I2e(o)==="object"){var l=Object.keys(o),c=l[0],u=o[l[0]];if(typeof c=="string"&&u.constructor===Array)for(var d=0,p=u.length;d<p;d++){var h=yl(u[d],"MM.dd.yyyy"),g=n.get(h)||[];g.includes(c)||(g.push(c),n.set(h,g))}}}return n}function NLi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach((function(r){var i=r.date,o=r.holidayName;if(Ete(i)){var a=yl(i,"MM.dd.yyyy"),s=n.get(a)||{};if(!("className"in s)||s.className!==t||(l=s.holidayNames,c=[o],l.length!==c.length||!l.every((function(d,p){return d===c[p]})))){var l,c;s.className=t;var u=s.holidayNames;s.holidayNames=u?[].concat(h6(u),[o]):[o],n.set(a,s)}}})),n}function FLi(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=S2e(NDi(e,Ab(i[s])),Sb(i[s])),c=S2e(e,(n+1)*r);bw(l,t)&&Mx(l,c)&&a.push(i[s])}return a}function ZQe(e){return e<10?"0".concat(e):"".concat(e)}function nI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oW,n=Math.ceil(Do(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function JQe(e){var t=e.getSeconds(),n=e.getMilliseconds();return Er(e.getTime()-1e3*t-n)}function WLi(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=Do(n)<=a),r&&s&&(s=Do(r)>=a),s&&i.push(a)}return i}var qLi=Rte((function(e){id(n,E.Component);var t=od(n);function n(r){var i;nd(this,n),Ze(nt(i=t.call(this,r)),"renderOptions",(function(){var l=i.props.year,c=i.state.yearsList.map((function(p){return E.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(nt(i),p),"aria-selected":l===p?"true":void 0},l===p?E.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)})),u=i.props.minDate?Do(i.props.minDate):null,d=i.props.maxDate?Do(i.props.maxDate):null;return d&&i.state.yearsList.find((function(p){return p===d}))||c.unshift(E.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},E.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),u&&i.state.yearsList.find((function(p){return p===u}))||c.push(E.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},E.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c})),Ze(nt(i),"onChange",(function(l){i.props.onChange(l)})),Ze(nt(i),"handleClickOutside",(function(){i.props.onCancel()})),Ze(nt(i),"shiftYears",(function(l){var c=i.state.yearsList.map((function(u){return u+l}));i.setState({yearsList:c})})),Ze(nt(i),"incrementYears",(function(){return i.shiftYears(1)})),Ze(nt(i),"decrementYears",(function(){return i.shiftYears(-1)}));var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:WLi(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=v.createRef(),i}return rd(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find((function(a){return a.ariaSelected})):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=wd({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return E.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n})()),BLi=(function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Ze(nt(r),"renderSelectOptions",(function(){for(var s=r.props.minDate?Do(r.props.minDate):1900,l=r.props.maxDate?Do(r.props.maxDate):2100,c=[],u=s;u<=l;u++)c.push(E.createElement("option",{key:u,value:u},u));return c})),Ze(nt(r),"onSelectChange",(function(s){r.onChange(s.target.value)})),Ze(nt(r),"renderSelectMode",(function(){return E.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())})),Ze(nt(r),"renderReadView",(function(s){return E.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},E.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),E.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))})),Ze(nt(r),"renderDropdown",(function(){return E.createElement(qLi,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),Ze(nt(r),"renderScrollMode",(function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l})),Ze(nt(r),"onChange",(function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)})),Ze(nt(r),"toggleDropdown",(function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},(function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)}))})),Ze(nt(r),"handleYearChange",(function(s,l){r.onSelect(s,l),r.setOpen()})),Ze(nt(r),"onSelect",(function(s,l){r.props.onSelect&&r.props.onSelect(s,l)})),Ze(nt(r),"setOpen",(function(){r.props.setOpen&&r.props.setOpen(!0)})),r}return rd(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return E.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n})(),jLi=Rte((function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",(function(s){return r.props.month===s})),Ze(nt(r),"renderOptions",(function(){return r.props.monthNames.map((function(s,l){return E.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:r.onChange.bind(nt(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?E.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)}))})),Ze(nt(r),"onChange",(function(s){return r.props.onChange(s)})),Ze(nt(r),"handleClickOutside",(function(){return r.props.onCancel()})),r}return rd(n,[{key:"render",value:function(){return E.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n})()),HLi=(function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Ze(nt(r),"renderSelectOptions",(function(s){return s.map((function(l,c){return E.createElement("option",{key:c,value:c},l)}))})),Ze(nt(r),"renderSelectMode",(function(s){return E.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(s))})),Ze(nt(r),"renderReadView",(function(s,l){return E.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},E.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),E.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))})),Ze(nt(r),"renderDropdown",(function(s){return E.createElement(jLi,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})})),Ze(nt(r),"renderScrollMode",(function(s){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,s)];return l&&c.unshift(r.renderDropdown(s)),c})),Ze(nt(r),"onChange",(function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)})),Ze(nt(r),"toggleDropdown",(function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})})),r}return rd(n,[{key:"render",value:function(){var r,i=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return LTt(a,i.props.locale)}:function(a){return dTe(a,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return E.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n})();function VLi(e,t){for(var n=[],r=Hx(e),i=Hx(t);!bw(r,i);)n.push(Rs(r)),r=Em(r,1);return n}var GLi=Rte((function(e){id(n,E.Component);var t=od(n);function n(r){var i;return nd(this,n),Ze(nt(i=t.call(this,r)),"renderOptions",(function(){return i.state.monthYearsList.map((function(o){var a=A2e(o),s=Cx(i.props.date,o)&&Xg(i.props.date,o);return E.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:i.onChange.bind(nt(i),a),"aria-selected":s?"true":void 0},s?E.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",yl(o,i.props.dateFormat,i.props.locale))}))})),Ze(nt(i),"onChange",(function(o){return i.props.onChange(o)})),Ze(nt(i),"handleClickOutside",(function(){i.props.onCancel()})),i.state={monthYearsList:VLi(i.props.minDate,i.props.maxDate)},i}return rd(n,[{key:"render",value:function(){var r=wd({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return E.createElement("div",{className:r},this.renderOptions())}}]),n})()),$Li=(function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Ze(nt(r),"renderSelectOptions",(function(){for(var s=Hx(r.props.minDate),l=Hx(r.props.maxDate),c=[];!bw(s,l);){var u=A2e(s);c.push(E.createElement("option",{key:u,value:u},yl(s,r.props.dateFormat,r.props.locale))),s=Em(s,1)}return c})),Ze(nt(r),"onSelectChange",(function(s){r.onChange(s.target.value)})),Ze(nt(r),"renderSelectMode",(function(){return E.createElement("select",{value:A2e(Hx(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())})),Ze(nt(r),"renderReadView",(function(s){var l=yl(r.props.date,r.props.dateFormat,r.props.locale);return E.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},E.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),E.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))})),Ze(nt(r),"renderDropdown",(function(){return E.createElement(GLi,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})})),Ze(nt(r),"renderScrollMode",(function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l})),Ze(nt(r),"onChange",(function(s){r.toggleDropdown();var l=Rs(parseInt(s));Cx(r.props.date,l)&&Xg(r.props.date,l)||r.props.onChange(l)})),Ze(nt(r),"toggleDropdown",(function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})})),r}return rd(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return E.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n})(),ULi=(function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"dayEl",E.createRef()),Ze(nt(r),"handleClick",(function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)})),Ze(nt(r),"handleMouseEnter",(function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)})),Ze(nt(r),"handleOnKeyDown",(function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)})),Ze(nt(r),"isSameDay",(function(s){return js(r.props.day,s)})),Ze(nt(r),"isKeyboardSelected",(function(){return!r.props.disabledKeyboardNavigation&&!(r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected))&&(r.isSameDay(r.props.preSelection)||r.isSameWeek(r.props.preSelection))})),Ze(nt(r),"isDisabled",(function(){return Ite(r.props.day,r.props)})),Ze(nt(r),"isExcluded",(function(){return pTe(r.props.day,r.props)})),Ze(nt(r),"isStartOfWeek",(function(){return js(r.props.day,zb(r.props.day,r.props.locale,r.props.calendarStartDay))})),Ze(nt(r),"isSameWeek",(function(s){return r.props.showWeekPicker&&js(s,zb(r.props.day,r.props.locale,r.props.calendarStartDay))})),Ze(nt(r),"getHighLightedClass",(function(){var s=r.props,l=s.day,c=s.highlightDates;if(!c)return!1;var u=yl(l,"MM.dd.yyyy");return c.get(u)})),Ze(nt(r),"getHolidaysClass",(function(){var s=r.props,l=s.day,c=s.holidays;if(!c)return!1;var u=yl(l,"MM.dd.yyyy");return c.has(u)?[c.get(u).className]:void 0})),Ze(nt(r),"isInRange",(function(){var s=r.props,l=s.day,c=s.startDate,u=s.endDate;return!(!c||!u)&&v$(l,c,u)})),Ze(nt(r),"isInSelectingRange",(function(){var s,l=r.props,c=l.day,u=l.selectsStart,d=l.selectsEnd,p=l.selectsRange,h=l.selectsDisabledDaysInRange,g=l.startDate,m=l.endDate,b=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(u||d||p)||!b||!h&&r.isDisabled())&&(u&&m&&(Mx(b,m)||RO(b,m))?v$(c,b,m):(d&&g&&(bw(b,g)||RO(b,g))||!(!p||!g||m||!bw(b,g)&&!RO(b,g)))&&v$(c,g,b))})),Ze(nt(r),"isSelectingRangeStart",(function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,u=l.startDate,d=l.selectsStart,p=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return js(c,d?p:u)})),Ze(nt(r),"isSelectingRangeEnd",(function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,u=l.endDate,d=l.selectsEnd,p=l.selectsRange,h=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return js(c,d||p?h:u)})),Ze(nt(r),"isRangeStart",(function(){var s=r.props,l=s.day,c=s.startDate,u=s.endDate;return!(!c||!u)&&js(c,l)})),Ze(nt(r),"isRangeEnd",(function(){var s=r.props,l=s.day,c=s.startDate,u=s.endDate;return!(!c||!u)&&js(u,l)})),Ze(nt(r),"isWeekend",(function(){var s=qDi(r.props.day);return s===0||s===6})),Ze(nt(r),"isAfterMonth",(function(){return r.props.month!==void 0&&(r.props.month+1)%12===d0(r.props.day)})),Ze(nt(r),"isBeforeMonth",(function(){return r.props.month!==void 0&&(d0(r.props.day)+1)%12===r.props.month})),Ze(nt(r),"isCurrentDay",(function(){return r.isSameDay(Rs())})),Ze(nt(r),"isSelected",(function(){return r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected)})),Ze(nt(r),"getClassNames",(function(s){var l,c=r.props.dayClassName?r.props.dayClassName(s):void 0;return wd("react-datepicker__day",c,"react-datepicker__day--"+yl(r.props.day,"ddd",l),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"),r.getHolidaysClass())})),Ze(nt(r),"getAriaLabel",(function(){var s=r.props,l=s.day,c=s.ariaLabelPrefixWhenEnabled,u=c===void 0?"Choose":c,d=s.ariaLabelPrefixWhenDisabled,p=d===void 0?"Not available":d,h=r.isDisabled()||r.isExcluded()?p:u;return"".concat(h," ").concat(yl(l,"PPPP",r.props.locale))})),Ze(nt(r),"getTitle",(function(){var s=r.props,l=s.day,c=s.holidays,u=c===void 0?new Map:c,d=yl(l,"MM.dd.yyyy");return u.has(d)&&u.get(d).holidayNames.length>0?u.get(d).holidayNames.join(", "):""})),Ze(nt(r),"getTabIndex",(function(s,l){var c=s||r.props.selected,u=l||r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(c)&&js(u,c))?0:-1})),Ze(nt(r),"handleFocusDay",(function(){var s,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=!1;r.getTabIndex()===0&&!l.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(c=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(c=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(c=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(c=!1)),c&&((s=r.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))})),Ze(nt(r),"renderDayContents",(function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(TQe(r.props.day),r.props.day):TQe(r.props.day)})),Ze(nt(r),"render",(function(){return E.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&E.createElement("span",{className:"holiday-overlay"},r.getTitle()))})),r}return rd(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n})(),XLi=(function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"weekNumberEl",E.createRef()),Ze(nt(r),"handleClick",(function(s){r.props.onClick&&r.props.onClick(s)})),Ze(nt(r),"handleOnKeyDown",(function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)})),Ze(nt(r),"isKeyboardSelected",(function(){return!r.props.disabledKeyboardNavigation&&!js(r.props.date,r.props.selected)&&js(r.props.date,r.props.preSelection)})),Ze(nt(r),"getTabIndex",(function(){return r.props.showWeekPicker&&r.props.showWeekNumber&&(r.isKeyboardSelected()||js(r.props.date,r.props.selected)&&js(r.props.preSelection,r.props.selected))?0:-1})),Ze(nt(r),"handleFocusWeekNumber",(function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.isInputFocused&&js(r.props.date,r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(l=!0)),l&&r.weekNumberEl.current&&r.weekNumberEl.current.focus({preventScroll:!0})})),r}return rd(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(r){this.handleFocusWeekNumber(r)}},{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,a=o===void 0?"week ":o,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick,"react-datepicker__week-number--selected":js(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return E.createElement("div",{ref:this.weekNumberEl,className:wd(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},i)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n})(),YLi=(function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"handleDayClick",(function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l)})),Ze(nt(r),"handleDayMouseEnter",(function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)})),Ze(nt(r),"handleWeekClick",(function(s,l,c){if(typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,l,c),r.props.showWeekPicker){var u=zb(s,r.props.locale,r.props.calendarStartDay);r.handleDayClick(u,c)}r.props.shouldCloseOnSelect&&r.props.setOpen(!1)})),Ze(nt(r),"formatWeekNumber",(function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):(function(l,c){var u=pz()&&hz(pz());return VDi(l,u?{locale:u}:null)})(s)})),Ze(nt(r),"renderDays",(function(){var s=zb(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],c=r.formatWeekNumber(s);if(r.props.showWeekNumber){var u=r.props.onWeekSelect||r.props.showWeekPicker?r.handleWeekClick.bind(nt(r),s,c):void 0;l.push(E.createElement(XLi,{key:"W",weekNumber:c,date:s,onClick:u,selected:r.props.selected,preSelection:r.props.preSelection,ariaLabelPrefix:r.props.ariaLabelPrefix,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef}))}return l.concat([0,1,2,3,4,5,6].map((function(d){var p=Lk(s,d);return E.createElement(ULi,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(nt(r),p),onMouseEnter:r.handleDayMouseEnter.bind(nt(r),p),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})})))})),Ze(nt(r),"startOfWeek",(function(){return zb(r.props.day,r.props.locale,r.props.calendarStartDay)})),Ze(nt(r),"isKeyboardSelected",(function(){return!r.props.disabledKeyboardNavigation&&!js(r.startOfWeek(),r.props.selected)&&js(r.startOfWeek(),r.props.preSelection)})),r}return rd(n,[{key:"render",value:function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":js(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return E.createElement("div",{className:wd(r)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n})(),qTt="two_columns",BTt="three_columns",jTt="four_columns",Tpe=Ze(Ze(Ze({},qTt,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),BTt,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),jTt,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function eZe(e,t){return e?jTt:t?qTt:BTt}var KLi=(function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",h6(Array(12)).map((function(){return E.createRef()}))),Ze(nt(r),"QUARTER_REFS",h6(Array(4)).map((function(){return E.createRef()}))),Ze(nt(r),"isDisabled",(function(s){return Ite(s,r.props)})),Ze(nt(r),"isExcluded",(function(s){return pTe(s,r.props)})),Ze(nt(r),"handleDayClick",(function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l,r.props.orderInDisplay)})),Ze(nt(r),"handleDayMouseEnter",(function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)})),Ze(nt(r),"handleMouseLeave",(function(){r.props.onMouseLeave&&r.props.onMouseLeave()})),Ze(nt(r),"isRangeStartMonth",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&Xg(U0(c,s),u)})),Ze(nt(r),"isRangeStartQuarter",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&HY(pR(c,s),u)})),Ze(nt(r),"isRangeEndMonth",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&Xg(U0(c,s),d)})),Ze(nt(r),"isRangeEndQuarter",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&HY(pR(c,s),d)})),Ze(nt(r),"isInSelectingRangeMonth",(function(s){var l,c=r.props,u=c.day,d=c.selectsStart,p=c.selectsEnd,h=c.selectsRange,g=c.startDate,m=c.endDate,b=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||p||h)||!b)&&(d&&m?Ape(b,m,s,u):(p&&g||!(!h||!g||m))&&Ape(g,b,s,u))})),Ze(nt(r),"isSelectingMonthRangeStart",(function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var c=r.props,u=c.day,d=c.startDate,p=c.selectsStart,h=U0(u,s),g=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Xg(h,p?g:d)})),Ze(nt(r),"isSelectingMonthRangeEnd",(function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var c=r.props,u=c.day,d=c.endDate,p=c.selectsEnd,h=c.selectsRange,g=U0(u,s),m=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Xg(g,p||h?m:d)})),Ze(nt(r),"isInSelectingRangeQuarter",(function(s){var l,c=r.props,u=c.day,d=c.selectsStart,p=c.selectsEnd,h=c.selectsRange,g=c.startDate,m=c.endDate,b=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||p||h)||!b)&&(d&&m?zpe(b,m,s,u):(p&&g||!(!h||!g||m))&&zpe(g,b,s,u))})),Ze(nt(r),"isWeekInMonth",(function(s){var l=r.props.day,c=Lk(s,6);return Xg(s,l)||Xg(c,l)})),Ze(nt(r),"isCurrentMonth",(function(s,l){return Do(s)===Do(Rs())&&l===d0(Rs())})),Ze(nt(r),"isCurrentQuarter",(function(s,l){return Do(s)===Do(Rs())&&l===tI(Rs())})),Ze(nt(r),"isSelectedMonth",(function(s,l,c){return d0(c)===l&&Do(s)===Do(c)})),Ze(nt(r),"isSelectedQuarter",(function(s,l,c){return tI(s)===l&&Do(s)===Do(c)})),Ze(nt(r),"renderWeeks",(function(){for(var s=[],l=r.props.fixedHeight,c=0,u=!1,d=zb(Hx(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(E.createElement(YLi,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:d,month:d0(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,showWeekPicker:r.props.showWeekPicker,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!u;){c++,d=LY(d,1);var p=l&&c>=6,h=!l&&!r.isWeekInMonth(d);if(p||h){if(!r.props.peekNextMonth)break;u=!0}}return s})),Ze(nt(r),"onMonthClick",(function(s,l){r.handleDayClick(Hx(U0(r.props.day,l)),s)})),Ze(nt(r),"onMonthMouseEnter",(function(s){r.handleDayMouseEnter(Hx(U0(r.props.day,s)))})),Ze(nt(r),"handleMonthNavigation",(function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())})),Ze(nt(r),"onMonthKeyDown",(function(s,l){var c=r.props,u=c.selected,d=c.preSelection,p=c.disabledKeyboardNavigation,h=c.showTwoColumnMonthYearPicker,g=c.showFourColumnMonthYearPicker,m=c.setPreSelection,b=s.key;if(b!=="Tab"&&s.preventDefault(),!p){var y=eZe(g,h),M=Tpe[y].verticalNavigationOffset,C=Tpe[y].grid;switch(b){case"Enter":r.onMonthClick(s,l),m(u);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,Em(d,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,dD(d,1));break;case"ArrowUp":r.handleMonthNavigation(C[0].includes(l)?l+12-M:l-M,dD(d,M));break;case"ArrowDown":r.handleMonthNavigation(C[C.length-1].includes(l)?l-12+M:l+M,Em(d,M))}}})),Ze(nt(r),"onQuarterClick",(function(s,l){r.handleDayClick(jQe(pR(r.props.day,l)),s)})),Ze(nt(r),"onQuarterMouseEnter",(function(s){r.handleDayMouseEnter(jQe(pR(r.props.day,s)))})),Ze(nt(r),"handleQuarterNavigation",(function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())})),Ze(nt(r),"onQuarterKeyDown",(function(s,l){var c=s.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onQuarterClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(l===4?1:l+1,MTt(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,WDi(r.props.preSelection,1))}})),Ze(nt(r),"getMonthClassNames",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate,p=l.selected,h=l.minDate,g=l.maxDate,m=l.preSelection,b=l.monthClassName,y=l.excludeDates,M=l.includeDates,C=b?b(U0(c,s)):void 0,x=U0(c,s);return wd("react-datepicker__month-text","react-datepicker__month-".concat(s),C,{"react-datepicker__month-text--disabled":(h||g||y||M)&&_Tt(x,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(c,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&d0(m)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":Ape(u,d,s,c),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(c,s)})})),Ze(nt(r),"getTabIndex",(function(s){var l=d0(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"})),Ze(nt(r),"getQuarterTabIndex",(function(s){var l=tI(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"})),Ze(nt(r),"getAriaLabel",(function(s){var l=r.props,c=l.chooseDayAriaLabelPrefix,u=c===void 0?"Choose":c,d=l.disabledDayAriaLabelPrefix,p=d===void 0?"Not available":d,h=l.day,g=U0(h,s),m=r.isDisabled(g)||r.isExcluded(g)?p:u;return"".concat(m," ").concat(yl(g,"MMMM yyyy"))})),Ze(nt(r),"getQuarterClassNames",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate,p=l.selected,h=l.minDate,g=l.maxDate,m=l.preSelection,b=l.disabledKeyboardNavigation;return wd("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(h||g)&&_Li(pR(c,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(c,s,p),"react-datepicker__quarter-text--keyboard-selected":!b&&tI(m)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":zpe(u,d,s,c),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})})),Ze(nt(r),"getMonthContent",(function(s){var l=r.props,c=l.showFullMonthYearPicker,u=l.renderMonthContent,d=l.locale,p=l.day,h=LTt(s,d),g=dTe(s,d);return u?u(s,h,g,p):c?g:h})),Ze(nt(r),"getQuarterContent",(function(s){var l=r.props,c=l.renderQuarterContent,u=(function(d,p){return yl(pR(Rs(),d),"QQQ",p)})(s,l.locale);return c?c(s,u):u})),Ze(nt(r),"renderMonths",(function(){var s=r.props,l=s.showTwoColumnMonthYearPicker,c=s.showFourColumnMonthYearPicker,u=s.day,d=s.selected;return Tpe[eZe(c,l)].grid.map((function(p,h){return E.createElement("div",{className:"react-datepicker__month-wrapper",key:h},p.map((function(g,m){return E.createElement("div",{ref:r.MONTH_REFS[g],key:m,onClick:function(b){r.onMonthClick(b,g)},onKeyDown:function(b){r.onMonthKeyDown(b,g)},onMouseEnter:function(){return r.onMonthMouseEnter(g)},tabIndex:r.getTabIndex(g),className:r.getMonthClassNames(g),role:"option","aria-label":r.getAriaLabel(g),"aria-current":r.isCurrentMonth(u,g)?"date":void 0,"aria-selected":r.isSelectedMonth(u,g,d)},r.getMonthContent(g))})))}))})),Ze(nt(r),"renderQuarters",(function(){var s=r.props,l=s.day,c=s.selected;return E.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(u,d){return E.createElement("div",{key:d,ref:r.QUARTER_REFS[d],role:"option",onClick:function(p){r.onQuarterClick(p,u)},onKeyDown:function(p){r.onQuarterKeyDown(p,u)},onMouseEnter:function(){return r.onQuarterMouseEnter(u)},className:r.getQuarterClassNames(u),"aria-selected":r.isSelectedQuarter(l,u,c),tabIndex:r.getQuarterTabIndex(u),"aria-current":r.isCurrentQuarter(l,u)?"date":void 0},r.getQuarterContent(u))})))})),Ze(nt(r),"getClassNames",(function(){var s=r.props,l=s.selectingDate,c=s.selectsStart,u=s.selectsEnd,d=s.showMonthYearPicker,p=s.showQuarterYearPicker,h=s.showWeekPicker;return wd("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||u)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":p},{"react-datepicker__weekPicker":h})})),r}return rd(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return E.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(yl(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n})(),HTt=(function(e){id(n,E.Component);var t=od(n);function n(){var r;nd(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),Ze(nt(r),"scrollToTheSelectedTime",(function(){requestAnimationFrame((function(){r.list&&(r.list.scrollTop=r.centerLi&&n.calcCenterPosition(r.props.monthRef?r.props.monthRef.clientHeight-r.header.clientHeight:r.list.clientHeight,r.centerLi))}))})),Ze(nt(r),"handleClick",(function(s){(r.props.minTime||r.props.maxTime)&&$Qe(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&GQe(s,r.props)||r.props.onChange(s)})),Ze(nt(r),"isSelectedTime",(function(s){return r.props.selected&&(l=r.props.selected,c=s,JQe(l).getTime()===JQe(c).getTime());var l,c})),Ze(nt(r),"isDisabledTime",(function(s){return(r.props.minTime||r.props.maxTime)&&$Qe(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&GQe(s,r.props)})),Ze(nt(r),"liClasses",(function(s){var l=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(s):void 0];return r.isSelectedTime(s)&&l.push("react-datepicker__time-list-item--selected"),r.isDisabledTime(s)&&l.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Ab(s)+Sb(s))%r.props.intervals!=0&&l.push("react-datepicker__time-list-item--injected"),l.join(" ")})),Ze(nt(r),"handleOnKeyDown",(function(s,l){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key!=="ArrowUp"&&s.key!=="ArrowLeft"||!s.target.previousSibling||(s.preventDefault(),s.target.previousSibling.focus()),s.key!=="ArrowDown"&&s.key!=="ArrowRight"||!s.target.nextSibling||(s.preventDefault(),s.target.nextSibling.focus()),s.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(s)})),Ze(nt(r),"renderTimes",(function(){for(var s=[],l=r.props.format?r.props.format:"p",c=r.props.intervals,u=r.props.selected||r.props.openToDate||Rs(),d=Ob(u),p=r.props.injectTimes&&r.props.injectTimes.sort((function(C,x){return C-x})),h=60*(function(C){var x=new Date(C.getFullYear(),C.getMonth(),C.getDate()),w=new Date(C.getFullYear(),C.getMonth(),C.getDate(),24);return Math.round((+w-+x)/36e5)})(u),g=h/c,m=0;m<g;m++){var b=S2e(d,m*c);if(s.push(b),p){var y=FLi(d,b,m,c,p);s=s.concat(y)}}var M=s.reduce((function(C,x){return x.getTime()<=u.getTime()?x:C}),s[0]);return s.map((function(C,x){return E.createElement("li",{key:x,onClick:r.handleClick.bind(nt(r),C),className:r.liClasses(C),ref:function(w){C===M&&(r.centerLi=w)},onKeyDown:function(w){r.handleOnKeyDown(w,C)},tabIndex:C===M?0:-1,role:"option","aria-selected":r.isSelectedTime(C)?"true":void 0,"aria-disabled":r.isDisabledTime(C)?"true":void 0},yl(C,l,r.props.locale))}))})),r}return rd(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,i=this.state.height;return E.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},E.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){r.header=o}},E.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),E.createElement("div",{className:"react-datepicker__time"},E.createElement("div",{className:"react-datepicker__time-box"},E.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n})();Ze(HTt,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var QLi=(function(e){id(n,E.Component);var t=od(n);function n(r){var i;return nd(this,n),Ze(nt(i=t.call(this,r)),"YEAR_REFS",h6(Array(i.props.yearItemNumber)).map((function(){return E.createRef()}))),Ze(nt(i),"isDisabled",(function(o){return Ite(o,i.props)})),Ze(nt(i),"isExcluded",(function(o){return pTe(o,i.props)})),Ze(nt(i),"selectingDate",(function(){var o;return(o=i.props.selectingDate)!==null&&o!==void 0?o:i.props.preSelection})),Ze(nt(i),"updateFocusOnPaginate",(function(o){var a=(function(){this.YEAR_REFS[o].current.focus()}).bind(nt(i));window.requestAnimationFrame(a)})),Ze(nt(i),"handleYearClick",(function(o,a){i.props.onDayClick&&i.props.onDayClick(o,a)})),Ze(nt(i),"handleYearNavigation",(function(o,a){var s=i.props,l=s.date,c=s.yearItemNumber,u=nI(l,c).startPeriod;i.isDisabled(a)||i.isExcluded(a)||(i.props.setPreSelection(a),o-u==-1?i.updateFocusOnPaginate(c-1):o-u===c?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-u].current.focus())})),Ze(nt(i),"isSameDay",(function(o,a){return js(o,a)})),Ze(nt(i),"isCurrentYear",(function(o){return o===Do(Rs())})),Ze(nt(i),"isRangeStart",(function(o){return i.props.startDate&&i.props.endDate&&Cx(uy(Rs(),o),i.props.startDate)})),Ze(nt(i),"isRangeEnd",(function(o){return i.props.startDate&&i.props.endDate&&Cx(uy(Rs(),o),i.props.endDate)})),Ze(nt(i),"isInRange",(function(o){return Ope(o,i.props.startDate,i.props.endDate)})),Ze(nt(i),"isInSelectingRange",(function(o){var a=i.props,s=a.selectsStart,l=a.selectsEnd,c=a.selectsRange,u=a.startDate,d=a.endDate;return!(!(s||l||c)||!i.selectingDate())&&(s&&d?Ope(o,i.selectingDate(),d):(l&&u||!(!c||!u||d))&&Ope(o,u,i.selectingDate()))})),Ze(nt(i),"isSelectingRangeStart",(function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.startDate,l=a.selectsStart,c=uy(Rs(),o);return Cx(c,l?i.selectingDate():s)})),Ze(nt(i),"isSelectingRangeEnd",(function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.endDate,l=a.selectsEnd,c=a.selectsRange,u=uy(Rs(),o);return Cx(u,l||c?i.selectingDate():s)})),Ze(nt(i),"isKeyboardSelected",(function(o){var a=IN(uy(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!js(a,IN(i.props.selected))&&js(a,IN(i.props.preSelection))})),Ze(nt(i),"onYearClick",(function(o,a){var s=i.props.date;i.handleYearClick(IN(uy(s,a)),o)})),Ze(nt(i),"onYearKeyDown",(function(o,a){var s=o.key;if(!i.props.disabledKeyboardNavigation)switch(s){case"Enter":i.onYearClick(o,a),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(a+1,uD(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(a-1,d6(i.props.preSelection,1))}})),Ze(nt(i),"getYearClassNames",(function(o){var a=i.props,s=a.minDate,l=a.maxDate,c=a.selected,u=a.excludeDates,d=a.includeDates,p=a.filterDate;return wd("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===Do(c),"react-datepicker__year-text--disabled":(s||l||u||d||p)&&NTt(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--range-start":i.isRangeStart(o),"react-datepicker__year-text--range-end":i.isRangeEnd(o),"react-datepicker__year-text--in-range":i.isInRange(o),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})})),Ze(nt(i),"getYearTabIndex",(function(o){return i.props.disabledKeyboardNavigation?"-1":o===Do(i.props.preSelection)?"0":"-1"})),Ze(nt(i),"getYearContainerClassNames",(function(){var o=i.props,a=o.selectingDate,s=o.selectsStart,l=o.selectsEnd,c=o.selectsRange;return wd("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(s||l||c)})})),Ze(nt(i),"getYearContent",(function(o){return i.props.renderYearContent?i.props.renderYearContent(o):o})),i}return rd(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,a=o.date,s=o.yearItemNumber,l=o.onYearMouseEnter,c=o.onYearMouseLeave,u=nI(a,s),d=u.startPeriod,p=u.endPeriod,h=function(m){i.push(E.createElement("div",{ref:r.YEAR_REFS[m-d],onClick:function(b){r.onYearClick(b,m)},onKeyDown:function(b){r.onYearKeyDown(b,m)},tabIndex:r.getYearTabIndex(m),className:r.getYearClassNames(m),onMouseEnter:function(b){return l(b,m)},onMouseLeave:function(b){return c(b,m)},key:m,"aria-current":r.isCurrentYear(m)?"date":void 0},r.getYearContent(m)))},g=d;g<=p;g++)h(g);return E.createElement("div",{className:this.getYearContainerClassNames()},E.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},i))}}]),n})(),ZLi=(function(e){id(n,E.Component);var t=od(n);function n(r){var i;return nd(this,n),Ze(nt(i=t.call(this,r)),"onTimeChange",(function(o){i.setState({time:o});var a=i.props.date,s=a instanceof Date&&!isNaN(a)?a:new Date;s.setHours(o.split(":")[0]),s.setMinutes(o.split(":")[1]),i.props.onChange(s)})),Ze(nt(i),"renderTimeInput",(function(){var o=i.state.time,a=i.props,s=a.date,l=a.timeString,c=a.customTimeInput;return c?E.cloneElement(c,{date:s,value:o,onChange:i.onTimeChange}):E.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(u){i.onTimeChange(u.target.value||l)}})})),i.state={time:i.props.timeString},i}return rd(n,[{key:"render",value:function(){return E.createElement("div",{className:"react-datepicker__input-time-container"},E.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),E.createElement("div",{className:"react-datepicker-time__input-container"},E.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.timeString!==i.time?{time:r.timeString}:null}}]),n})();function JLi(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return E.createElement("div",{className:t},r&&E.createElement("div",pD({className:"react-datepicker__triangle"},o)),n)}var e4i=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],t4i=(function(e){id(n,E.Component);var t=od(n);function n(r){var i;return nd(this,n),Ze(nt(i=t.call(this,r)),"handleClickOutside",(function(o){i.props.onClickOutside(o)})),Ze(nt(i),"setClickOutsideRef",(function(){return i.containerRef.current})),Ze(nt(i),"handleDropdownFocus",(function(o){(function(){var a=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return e4i.some((function(s){return a.indexOf(s)>=0}))})(o.target)&&i.props.onDropdownFocus()})),Ze(nt(i),"getDateInView",(function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,c=FTt(i.props),u=WTt(i.props),d=Rs(),p=l||s||a;return p||(c&&Mx(d,c)?c:u&&bw(d,u)?u:d)})),Ze(nt(i),"increaseMonth",(function(){i.setState((function(o){var a=o.date;return{date:Em(a,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),Ze(nt(i),"decreaseMonth",(function(){i.setState((function(o){var a=o.date;return{date:dD(a,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),Ze(nt(i),"handleDayClick",(function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)})),Ze(nt(i),"handleDayMouseEnter",(function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)})),Ze(nt(i),"handleMonthMouseLeave",(function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()})),Ze(nt(i),"handleYearMouseEnter",(function(o,a){i.setState({selectingDate:uy(Rs(),a)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,a)})),Ze(nt(i),"handleYearMouseLeave",(function(o,a){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,a)})),Ze(nt(i),"handleYearChange",(function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)})),Ze(nt(i),"handleMonthChange",(function(o){i.handleCustomMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)})),Ze(nt(i),"handleCustomMonthChange",(function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))})),Ze(nt(i),"handleMonthYearChange",(function(o){i.handleYearChange(o),i.handleMonthChange(o)})),Ze(nt(i),"changeYear",(function(o){i.setState((function(a){var s=a.date;return{date:uy(s,o)}}),(function(){return i.handleYearChange(i.state.date)}))})),Ze(nt(i),"changeMonth",(function(o){i.setState((function(a){var s=a.date;return{date:U0(s,o)}}),(function(){return i.handleMonthChange(i.state.date)}))})),Ze(nt(i),"changeMonthYear",(function(o){i.setState((function(a){var s=a.date;return{date:uy(U0(s,d0(o)),Do(o))}}),(function(){return i.handleMonthYearChange(i.state.date)}))})),Ze(nt(i),"header",(function(){var o=zb(arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(E.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map((function(s){var l=Lk(o,s),c=i.formatWeekday(l,i.props.locale),u=i.props.weekDayClassName?i.props.weekDayClassName(l):void 0;return E.createElement("div",{key:s,className:wd("react-datepicker__day-name",u)},c)})))})),Ze(nt(i),"formatWeekday",(function(o,a){return i.props.formatWeekDay?(function(s,l,c){return l(yl(s,"EEEE",c))})(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?(function(s,l){return yl(s,"EEE",l)})(o,a):(function(s,l){return yl(s,"EEEEEE",l)})(o,a)})),Ze(nt(i),"decreaseYear",(function(){i.setState((function(o){var a=o.date;return{date:d6(a,i.props.showYearPicker?i.props.yearItemNumber:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),Ze(nt(i),"clearSelectingDate",(function(){i.setState({selectingDate:null})})),Ze(nt(i),"renderPreviousButton",(function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=YQe(i.state.date,i.props);break;case i.props.showYearPicker:o=(function(y){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=M.minDate,x=M.yearItemNumber,w=x===void 0?oW:x,S=nI(IN(d6(y,w)),w).endPeriod,A=C&&Do(C);return A&&A>S||!1})(i.state.date,i.props);break;default:o=UQe(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,u=c.previousMonthButtonLabel,d=c.previousYearButtonLabel,p=i.props,h=p.previousMonthAriaLabel,g=h===void 0?typeof u=="string"?u:"Previous Month":h,m=p.previousYearAriaLabel,b=m===void 0?typeof d=="string"?d:"Previous Year":m;return E.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?b:g},E.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}})),Ze(nt(i),"increaseYear",(function(){i.setState((function(o){var a=o.date;return{date:uD(a,i.props.showYearPicker?i.props.yearItemNumber:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),Ze(nt(i),"renderNextButton",(function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=KQe(i.state.date,i.props);break;case i.props.showYearPicker:o=(function(y){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=M.maxDate,x=M.yearItemNumber,w=x===void 0?oW:x,S=nI(uD(y,w),w).startPeriod,A=C&&Do(C);return A&&A<S||!1})(i.state.date,i.props);break;default:o=XQe(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var s=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,u=c.nextMonthButtonLabel,d=c.nextYearButtonLabel,p=i.props,h=p.nextMonthAriaLabel,g=h===void 0?typeof u=="string"?u:"Next Month":h,m=p.nextYearAriaLabel,b=m===void 0?typeof d=="string"?d:"Next Year":m;return E.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?b:g},E.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}})),Ze(nt(i),"renderCurrentMonth",(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),E.createElement("div",{className:a.join(" ")},yl(o,i.props.dateFormat,i.props.locale))})),Ze(nt(i),"renderYearDropdown",(function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return E.createElement(BLi,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:Do(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})})),Ze(nt(i),"renderMonthDropdown",(function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return E.createElement(HLi,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:d0(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})})),Ze(nt(i),"renderMonthYearDropdown",(function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return E.createElement($Li,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})})),Ze(nt(i),"handleTodayButtonClick",(function(o){i.props.onSelect(HQe(),o),i.props.setPreSelection&&i.props.setPreSelection(HQe())})),Ze(nt(i),"renderTodayButton",(function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return E.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)}},i.props.todayButton)})),Ze(nt(i),"renderDefaultHeader",(function(o){var a=o.monthDate,s=o.i;return E.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(a),E.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),E.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))})),Ze(nt(i),"renderCustomHeader",(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,s=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=UQe(i.state.date,i.props),c=XQe(i.state.date,i.props),u=YQe(i.state.date,i.props),d=KQe(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return E.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(BY(BY({},i.state),{},{customHeaderCount:s,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:u,nextYearButtonDisabled:d})),p&&E.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))})),Ze(nt(i),"renderYearHeader",(function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=nI(o,a.yearItemNumber),c=l.startPeriod,u=l.endPeriod;return E.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(u):Do(o))})),Ze(nt(i),"renderHeader",(function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}})),Ze(nt(i),"renderMonths",(function(){var o;if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var a=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,l=dD(i.state.date,s),c=(o=i.props.monthSelectedIn)!==null&&o!==void 0?o:s,u=0;u<i.props.monthsShown;++u){var d=Em(l,u-c+s),p="month-".concat(u),h=u<i.props.monthsShown-1,g=u>0;a.push(E.createElement("div",{key:p,ref:function(m){i.monthContainer=m},className:"react-datepicker__month-container"},i.renderHeader({monthDate:d,i:u}),E.createElement(KLi,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:d,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:u,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,holidays:i.props.holidays,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showWeekPicker:i.props.showWeekPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:h,monthShowsDuplicateDaysStart:g})))}return a}})),Ze(nt(i),"renderYears",(function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?E.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),E.createElement(QLi,pD({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0})),Ze(nt(i),"renderTimeSection",(function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return E.createElement(HTt,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})})),Ze(nt(i),"renderInputTimeSection",(function(){var o=new Date(i.props.selected),a=VC(o)&&i.props.selected?"".concat(ZQe(o.getHours()),":").concat(ZQe(o.getMinutes())):"";if(i.props.showTimeInput)return E.createElement(ZLi,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})})),Ze(nt(i),"renderAriaLiveRegion",(function(){var o,a=nI(i.state.date,i.props.yearItemNumber),s=a.startPeriod,l=a.endPeriod;return o=i.props.showYearPicker?"".concat(s," - ").concat(l):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?Do(i.state.date):"".concat(dTe(d0(i.state.date),i.props.locale)," ").concat(Do(i.state.date)),E.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)})),Ze(nt(i),"renderChildren",(function(){if(i.props.children)return E.createElement("div",{className:"react-datepicker__children-container"},i.props.children)})),i.containerRef=E.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return rd(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var i=this;if(!this.props.preSelection||js(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!js(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!Xg(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return o&&i.handleCustomMonthChange(i.state.date)}))}}},{key:"render",value:function(){var r=this.props.container||JLi;return E.createElement("div",{style:{display:"contents"},ref:this.containerRef},E.createElement(r,{className:wd("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:oW}}}]),n})(),n4i=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return E.isValidElement(t)?E.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(a){typeof t.props.onClick=="function"&&t.props.onClick(a),typeof i=="function"&&i(a)}}):typeof t=="string"?E.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):E.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},E.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},VTt=(function(e){id(n,E.Component);var t=od(n);function n(r){var i;return nd(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return rd(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return kR.createPortal(this.props.children,this.el)}}]),n})(),r4i=function(e){return!e.disabled&&e.tabIndex!==-1},GTt=(function(e){id(n,E.Component);var t=od(n);function n(r){var i;return nd(this,n),Ze(nt(i=t.call(this,r)),"getTabChildren",(function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(r4i)})),Ze(nt(i),"handleFocusStart",(function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()})),Ze(nt(i),"handleFocusEnd",(function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()})),i.tabLoopRef=E.createRef(),i}return rd(n,[{key:"render",value:function(){return this.props.enableTabLoop?E.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},E.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,E.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n})(),i4i=(function(e){id(n,E.Component);var t=od(n);function n(){return nd(this,n),t.apply(this,arguments)}return rd(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,u=i.popperPlacement,d=i.popperProps,p=i.targetComponent,h=i.enableTabLoop,g=i.popperOnKeyDown,m=i.portalId,b=i.portalHost;if(!s){var y=wd("react-datepicker-popper",o);r=E.createElement(TLi,pD({modifiers:c,placement:u},d),(function(C){var x=C.ref,w=C.style,S=C.placement,A=C.arrowProps;return E.createElement(GTt,{enableTabLoop:h},E.createElement("div",{ref:x,style:w,className:y,"data-placement":S,onKeyDown:g},E.cloneElement(l,{arrowProps:A})))}))}this.props.popperContainer&&(r=E.createElement(this.props.popperContainer,{},r)),m&&!s&&(r=E.createElement(VTt,{portalId:m,portalHost:b},r));var M=wd("react-datepicker-wrapper",a);return E.createElement(xLi,{className:"react-datepicker-manager"},E.createElement(PLi,null,(function(C){var x=C.ref;return E.createElement("div",{ref:x,className:M},p)})),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n})(),tZe="react-datepicker-ignore-onclickoutside",o4i=Rte(t4i),Epe="Date input not valid.",a4i=(function(e){id(n,E.Component);var t=od(n);function n(r){var i;return nd(this,n),Ze(nt(i=t.call(this,r)),"getPreSelection",(function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:Rs()})),Ze(nt(i),"modifyHolidays",(function(){var o;return(o=i.props.holidays)===null||o===void 0?void 0:o.reduce((function(a,s){var l=new Date(s.date);return u6(l)?[].concat(h6(a),[BY(BY({},s),{},{date:l})]):a}),[])})),Ze(nt(i),"calcInitialState",(function(){var o,a=i.getPreSelection(),s=FTt(i.props),l=WTt(i.props),c=s&&Mx(a,Ob(s))?s:l&&bw(a,z2e(l))?l:a;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:QQe(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),Ze(nt(i),"clearPreventFocusTimeout",(function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)})),Ze(nt(i),"setFocus",(function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})})),Ze(nt(i),"setBlur",(function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()})),Ze(nt(i),"setOpen",(function(o){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:Rpe},(function(){o||i.setState((function(s){return{focused:!!a&&s.focused}}),(function(){!a&&i.setBlur(),i.setState({inputValue:null})}))}))})),Ze(nt(i),"inputOk",(function(){return Ete(i.state.preSelection)})),Ze(nt(i),"isCalendarOpen",(function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open})),Ze(nt(i),"handleFocus",(function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})})),Ze(nt(i),"sendFocusBackToInput",(function(){i.preventFocusTimeout&&i.clearPreventFocusTimeout(),i.setState({preventFocus:!0},(function(){i.preventFocusTimeout=setTimeout((function(){i.setFocus(),i.setState({preventFocus:!1})}))}))})),Ze(nt(i),"cancelFocusInput",(function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null})),Ze(nt(i),"deferFocusInput",(function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout((function(){return i.setFocus()}),1)})),Ze(nt(i),"handleDropdownFocus",(function(){i.cancelFocusInput()})),Ze(nt(i),"handleBlur",(function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})})),Ze(nt(i),"handleCalendarClickOutside",(function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()})),Ze(nt(i),"handleChange",(function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(nt(i),a),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:s4i});var c,u,d,p,h,g,m,b,y=(c=l.target.value,u=i.props.dateFormat,d=i.props.locale,p=i.props.strictParsing,h=i.props.minDate,g=null,m=hz(d)||hz(pz()),b=!0,Array.isArray(u)?(u.forEach((function(M){var C=Mpe(c,M,new Date,{locale:m});p&&(b=VC(C,h)&&c===yl(C,M,d)),VC(C,h)&&b&&(g=C)})),g):(g=Mpe(c,u,new Date,{locale:m}),p?b=VC(g)&&c===yl(g,u,d):VC(g)||(u=u.match(LLi).map((function(M){var C=M[0];return C==="p"||C==="P"?m?(0,kLi[C])(M,m.formatLong):C:M})).join(""),c.length>0&&(g=Mpe(c,u.slice(0,c.length),new Date)),VC(g)||(g=new Date(c))),VC(g)&&b?g:null));i.props.showTimeSelectOnly&&i.props.selected&&y&&!js(y,i.props.selected)&&(y=DLi(i.props.selected,{hours:Ab(y),minutes:Sb(y),seconds:zQe(y)})),!y&&l.target.value||(i.props.showWeekPicker&&(y=zb(y,i.props.locale,i.props.calendarStartDay)),i.setSelected(y,l,!0))}})),Ze(nt(i),"handleSelect",(function(o,a,s){if(i.props.shouldCloseOnSelect&&!i.props.showTimeSelect&&i.sendFocusBackToInput(),i.props.onChangeRaw&&i.props.onChangeRaw(a),i.props.showWeekPicker&&(o=zb(o,i.props.locale,i.props.calendarStartDay)),i.setSelected(o,a,!1,s),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,c=l.startDate,u=l.endDate;!c||u||Mx(o,c)||i.setOpen(!1)}})),Ze(nt(i),"setSelected",(function(o,a,s,l){var c=o;if(i.props.showYearPicker){if(c!==null&&NTt(Do(c),i.props))return}else if(i.props.showMonthYearPicker){if(c!==null&&_Tt(c,i.props))return}else if(c!==null&&Ite(c,i.props))return;var u=i.props,d=u.onChange,p=u.selectsRange,h=u.startDate,g=u.endDate;if(!RO(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||s&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=BQe(c,{hour:Ab(i.props.selected),minute:Sb(i.props.selected),second:zQe(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var m=h&&!g,b=h&&g;!h&&!g?d([c,null],a):m&&(Mx(c,h)?d([c,null],a):d([h,c],a)),b&&d([c,null],a)}else d(c,a);s||(i.props.onSelect(c,a),i.setState({inputValue:null}))})),Ze(nt(i),"setPreSelection",(function(o){var a=i.props.minDate!==void 0,s=i.props.maxDate!==void 0,l=!0;if(o){i.props.showWeekPicker&&(o=zb(o,i.props.locale,i.props.calendarStartDay));var c=Ob(o);if(a&&s)l=v$(o,i.props.minDate,i.props.maxDate);else if(a){var u=Ob(i.props.minDate);l=bw(o,u)||RO(c,u)}else if(s){var d=z2e(i.props.maxDate);l=Mx(o,d)||RO(c,d)}}l&&i.setState({preSelection:o})})),Ze(nt(i),"toggleCalendar",(function(){i.setOpen(!i.state.open)})),Ze(nt(i),"handleTimeChange",(function(o){var a=i.props.selected?i.props.selected:i.getPreSelection(),s=i.props.selected?o:BQe(a,{hour:Ab(o),minute:Sb(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&(i.sendFocusBackToInput(),i.setOpen(!1)),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})})),Ze(nt(i),"onInputClick",(function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()})),Ze(nt(i),"onInputKeyDown",(function(o){i.props.onKeyDown(o);var a=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(a==="ArrowDown"||a==="ArrowUp"){o.preventDefault();var s=i.props.showWeekPicker&&i.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',l=i.calendar.componentNode&&i.calendar.componentNode.querySelector(s);return void(l&&l.focus({preventScroll:!0}))}var c=Rs(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===Rpe?(i.handleSelect(c,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(c)):i.setOpen(!1)):a==="Escape"?(o.preventDefault(),i.sendFocusBackToInput(),i.setOpen(!1)):a==="Tab"&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:Epe})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()})),Ze(nt(i),"onPortalKeyDown",(function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},(function(){i.setOpen(!1),setTimeout((function(){i.setFocus(),i.setState({preventFocus:!1})}))})))})),Ze(nt(i),"onDayKeyDown",(function(o){i.props.onKeyDown(o);var a=o.key,s=Rs(i.state.preSelection);if(a==="Enter")o.preventDefault(),i.handleSelect(s,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(s);else if(a==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:Epe});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=i.props.showWeekPicker?OQe(s,1):FDi(s,1);break;case"ArrowRight":l=i.props.showWeekPicker?LY(s,1):Lk(s,1);break;case"ArrowUp":l=OQe(s,1);break;case"ArrowDown":l=LY(s,1);break;case"PageUp":l=dD(s,1);break;case"PageDown":l=Em(s,1);break;case"Home":l=d6(s,1);break;case"End":l=uD(s,1);break;default:l=null}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:Epe}));if(o.preventDefault(),i.setState({lastPreSelectChange:Rpe}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=d0(s),u=d0(l),d=Do(s),p=Do(l);c!==u||d!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}})),Ze(nt(i),"onPopperKeyDown",(function(o){o.key==="Escape"&&(o.preventDefault(),i.sendFocusBackToInput())})),Ze(nt(i),"onClearClick",(function(o){o&&o.preventDefault&&o.preventDefault(),i.sendFocusBackToInput(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})})),Ze(nt(i),"clear",(function(){i.onClearClick()})),Ze(nt(i),"onScroll",(function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)})),Ze(nt(i),"renderCalendar",(function(){return i.props.inline||i.isCalendarOpen()?E.createElement(o4i,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,holidays:NLi(i.modifyHolidays()),includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:tZe,fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showDateSelect:i.props.showDateSelect,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showWeekPicker:i.props.showWeekPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null})),Ze(nt(i),"renderAriaLiveRegion",(function(){var o,a=i.props,s=a.dateFormat,l=a.locale,c=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return o=i.props.selectsRange?"Selected start date: ".concat(wv(i.props.startDate,{dateFormat:c,locale:l}),". ").concat(i.props.endDate?"End date: "+wv(i.props.endDate,{dateFormat:c,locale:l}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(wv(i.props.selected,{dateFormat:s,locale:l})):i.props.showYearPicker?"Selected year: ".concat(wv(i.props.selected,{dateFormat:"yyyy",locale:l})):i.props.showMonthYearPicker?"Selected month: ".concat(wv(i.props.selected,{dateFormat:"MMMM yyyy",locale:l})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(wv(i.props.selected,{dateFormat:"yyyy, QQQ",locale:l})):"Selected date: ".concat(wv(i.props.selected,{dateFormat:c,locale:l})),E.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)})),Ze(nt(i),"renderDateInput",(function(){var o,a=wd(i.props.className,Ze({},tZe,i.state.open)),s=i.props.customInput||E.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",c=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?(function(u,d,p){if(!u)return"";var h=wv(u,p),g=d?wv(d,p):"";return"".concat(h," - ").concat(g)})(i.props.startDate,i.props.endDate,i.props):wv(i.props.selected,i.props);return E.cloneElement(s,(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(o={},l,(function(u){i.input=u})),"value",c),"onBlur",i.handleBlur),"onChange",i.handleChange),"onClick",i.onInputClick),"onFocus",i.handleFocus),"onKeyDown",i.onInputKeyDown),"id",i.props.id),"name",i.props.name),"form",i.props.form),Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(o,"autoFocus",i.props.autoFocus),"placeholder",i.props.placeholderText),"disabled",i.props.disabled),"autoComplete",i.props.autoComplete),"className",wd(s.props.className,a)),"title",i.props.title),"readOnly",i.props.readOnly),"required",i.props.required),"tabIndex",i.props.tabIndex),"aria-describedby",i.props.ariaDescribedBy),Ze(Ze(Ze(o,"aria-invalid",i.props.ariaInvalid),"aria-labelledby",i.props.ariaLabelledBy),"aria-required",i.props.ariaRequired)))})),Ze(nt(i),"renderClearButton",(function(){var o=i.props,a=o.isClearable,s=o.disabled,l=o.selected,c=o.startDate,u=o.endDate,d=o.clearButtonTitle,p=o.clearButtonClassName,h=p===void 0?"":p,g=o.ariaLabelClose,m=g===void 0?"Close":g;return!a||l==null&&c==null&&u==null?null:E.createElement("button",{type:"button",className:wd("react-datepicker__close-icon",h,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":m,onClick:i.onClearClick,title:d,tabIndex:-1})})),i.state=i.calcInitialState(),i.preventFocusTimeout=null,i}return rd(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,a;r.inline&&(o=r.selected,a=this.props.selected,o&&a?d0(o)!==d0(a)||Do(o)!==Do(a):o!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:QQe(this.props.highlightDates)}),i.focused||RO(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props,i=r.showIcon,o=r.icon,a=r.calendarIconClassname,s=r.toggleCalendarOnIconClick,l=this.state.open;return E.createElement("div",{className:"react-datepicker__input-container".concat(i?" react-datepicker__view-calendar-icon":"")},i&&E.createElement(n4i,pD({icon:o,className:"".concat(a," ").concat(l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?E.createElement(GTt,{enableTabLoop:this.props.enableTabLoop},E.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=E.createElement(VTt,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),E.createElement("div",null,this.renderInputContainer(),i)}return E.createElement(i4i,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:oW,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n})(),s4i="input",Rpe="navigate";const l4i=Et({container:{backgroundColor:"#fff"},select:{"& ul":{backgroundColor:"#fff"},"& li":{fontSize:"1rem"}},selectDisplay:{fontSize:"1rem",paddingLeft:"20px",width:"100%"}}),nZe=e=>{const t=e.dataSource.map((r,i)=>f.jsx(lr,{value:r[e.idValue].toString(),children:f.jsx("span",{children:r[e.nameValue]})},i)),n=l4i();return f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",style:e.styleLabel||{},children:e.title})}),f.jsxs(cs,{MenuProps:{classes:{paper:n.select}},SelectDisplayProps:{className:n.selectDisplay},className:"custom-select mes-custom-select",onChange:r=>e.onChange(r.target.value==="DEFAULT"?"":r.target.value),value:e.selectedValue||"DEFAULT",style:{backgroundColor:"#fff"},children:[e.hasChoose&&f.jsx(lr,{value:"DEFAULT",children:"Choose "+e.title}),t]})]})},rZe=e=>f.jsx(E.Fragment,{children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",style:e.styleLabel||{},children:e.title})}),f.jsx(a4i,{className:"form-control mes-filter-datepicker",wrapperClassName:"mes-core-filter-datepicker",selected:e.value,onChange:t=>e.onChange(t)})]})}),c4i=e=>{let t={};return e.paddingWrapper!==void 0&&(t={...t,padding:e.paddingWrapper}),f.jsxs("div",{className:"content-wrapper",style:t,children:[f.jsx("div",{className:"row",children:f.jsx("div",{className:"col-lg-12"})}),f.jsxs("div",{className:"row",children:[f.jsx("div",{className:"col-lg-9 ",children:f.jsxs("h3",{style:{userSelect:"none"},children:[e.title,f.jsx("small",{children:e.description})]})}),f.jsx("div",{className:"col-lg-3"})]}),e.children]})};class u4i extends v.Component{onClickGo;onClickReset;onClickExport;constructor(t){super(t),this.state={},this.onClickGo=this.GetFilterValues.bind(this),this.onClickReset=this.ResetFilterValues.bind(this),this.onClickExport=this.ExportData.bind(this)}ExportData(){this.props.onClickExport!==void 0&&this.props.onClickExport()}ResetFilterValues(){this.props.onClickReset!==void 0&&this.props.onClickReset()}GetFilterValues(){this.props.OnClickGo!==void 0&&this.props.OnClickGo()}render(){const n=(this.props.extraButtons===void 0?[]:this.props.extraButtons).map((r,i)=>f.jsx("button",{type:"button",className:"btn btn-primary btn-sm mr-2",onClick:r.onClick,children:r.name},i));return f.jsx("div",{className:"container-fluid",children:f.jsx("div",{className:"row",children:f.jsx("div",{className:"col-md-12",children:f.jsxs("div",{className:"row mb-3 mt-3 ",children:[this.props.children,f.jsx("div",{className:"col-md-2",children:this.props.showButtons&&f.jsx("div",{className:"container-fluid",children:f.jsx("div",{className:"col-md-12",children:f.jsxs("div",{className:"pt-2",children:[f.jsx("button",{type:"button",className:"btn btn-primary  btn mr-2",onClick:this.onClickGo,children:"Go"}),f.jsx("button",{type:"button",className:"btn btn-danger btn-sm mr-2",onClick:this.onClickReset,children:"Reset"}),this.props.showExport&&f.jsxs("button",{type:"button",className:"btn btn-success",onClick:this.onClickExport,children:[f.jsx("i",{className:"fa fa-download"}),"Excel"]}),n]})})})})]})})})})}}var df=(e=>(e.String="string",e.Number="number",e.Boolean="boolean",e.DateTime="datetime",e.Date="date",e))(df||{}),Ey=(e=>(e.Style="Style",e.Title="Title",e.Link="Link",e.Value="Value",e))(Ey||{});const d4i=Sn(),hD=e=>gi(e);function p4i(e,t){const n=Object.keys(e).filter(r=>e[r]==t);return n.length>0?n[0]:null}const iZe=(e,t="")=>{if(e===""||e===null||e===void 0)return"";const n=d4i(e);return n.isValid()?(t=t===""?"MM-DD-YYYY":t,n.format(t)):"NaD"},h4i=(e,t="")=>{if(e===""||e===null||e===void 0)return"";const n=gzt(e);return Number.isNaN(n.value)?"NaN":(t=t===""?"0.00":t,n.format(t))},f4i=(e,t="")=>{if(e===""||e===null||e===void 0)return"";if(t==="")return String(e);const n=t.split("/");return e===!0&&n.length>0?n[0]:e===!1&&n.length>1?n[1]:String(e)},g4i=(e,t="")=>t===""?String(e):t.replace("{value}",e),m4i=e=>{const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")},Ipe=e=>{const t={};return e.split(";").forEach(n=>{const[r,i]=n.split(":");if(!r)return;const o=m4i(r.trim());t[o]=i===void 0?"":i.trim()}),t},oZe=e=>{let t="";return e.split(".").forEach(n=>{t+=n}),t},v4i=(e,t)=>{const n=[];return e.forEach(r=>{const i={Name:"",Type:df.String,Field:"",Width:"",Format:"",CellStyle:""};r[t]!==void 0&&(i.Name=String(r[t])),n.push(i)}),n},b4i=e=>{const t=[];if(e.length===0)return t;let n="";return e.forEach(r=>{const i={Name:r.HeaderName,Type:r.Type,Field:r.Field,Width:r.Width,Format:r.Format,CellStyle:hD(r.CellStyle)?"":r.CellStyle};if(hD(r.ParentName))t.push(i);else{const o=t.find(a=>a.Name===r.ParentName);o===void 0?t.push({Name:r.ParentName||"",children:[i]}):n!==r.ParentName?t.push({Name:r.ParentName||"",children:[i]}):o.children?.push(i)}n=r.ParentName||""}),t},f6=e=>{let t=0;return!gi(e)&&e.length>0&&e.forEach(n=>{const r=f6(n.children||[])+1;t=r>t?r:t}),t},$Tt=e=>{let t=0;return!hD(e)&&e.length>0&&e.forEach(n=>{const r=$Tt(n.children||[])+e.length;t=r>t?r:t}),t},UTt=(e,t,n)=>{let r=[];return!hD(e)&&e.length>0&&(n===t?r=r.concat(e):n<t&&e.forEach(i=>{r=r.concat(UTt(i.children||[],t,n+1))})),r},y4i=(e,t,n)=>{let r=[];const i=[];return t===null||(YTt(t,i),!n&&e.length>0?KTt(e,i,r):r=i),r},_G=(e,t)=>e[t]===void 0?null:e[t],XTt=(e,t)=>{const n=e.split(".");let r=t;for(let i=0;i<n.length;i++){const o=r[n[i]];if(o===void 0){r="";break}r=o}return r},YTt=(e,t,n,r)=>{r=r===void 0||r===""?"":r+".";const i={name:`${n}`,field:`${r}${n}`,type:df.String,format:"",cellStyle:""};if(typeof e!="object"||hD(e)){t.push(i);return}const a=Object.keys(e).filter(M4i);a.length===0?(C4i(e,i),t.push(i)):a.forEach(s=>{YTt(e[s],t,s,n||"")})},KTt=(e,t,n)=>{e.forEach(r=>{if(hD(r.children)){const i=t.find(o=>o.field===r.Field);if(i!==void 0)i.format=r.Format,i.cellStyle=r.CellStyle,i.type=r.Type||df.String,n.push(i);else{const o={name:r.Name,type:r.Type||df.String,field:r.Field||"",format:r.Format,cellStyle:r.CellStyle||"",properties:[]};n.push(o)}}else KTt(r.children||[],t,n)})},M4i=e=>e!=="Value"&&e!=="Style"&&e!=="Title"&&e!=="Link",C4i=(e,t)=>{t.properties=[],Object.values(Ey).forEach(n=>{if(e[n]!==void 0){const r=p4i(Ey,n);r!==null&&n!==Ey.Value&&t.properties?.push({property:Ey[r],value:""})}})},x4i=e=>f.jsx(Qr,{checked:e.value,size:"small",color:"primary"}),aZe=({value:e="",colSpan:t=1,rowSpan:n=1,isRowHeader:r=!1,isFirstCell:i=!1})=>{const o=[""];return r&&o.push("cell-header"),i&&o.push("cell-first"),f.jsx("th",{colSpan:t,rowSpan:n,className:o.join(" "),children:f.jsxs("span",{children:[e," "]})})},QTt=({cell:e,data:t,cellClass:n})=>{const i=Et(()=>({tooltip:{margin:0}}))(),o=Oo(),a=()=>{g&&o(m)},s=[n,"cell-table"];let l="",c=t,u="",d="",p=!1,h=f.jsx(f.Fragment,{}),g=!1,m="",b=[];switch(t!==null&&typeof t=="object"&&(c=_G(t,Ey.Value),u=_G(t,Ey.Style)||"",d=_G(t,Ey.Title)||"",m=_G(t,Ey.Link)||"",g=m!==""),c==null&&(c=""),e.type){case df.DateTime:l=iZe(c,e.format);break;case df.Date:l=iZe(c,e.format);break;case df.Number:l=h4i(c,e.format);break;case df.Boolean:e.format==="checkbox"?(h=f.jsx(x4i,{value:!!c}),p=!0):l=f4i(c,e.format);break;case df.String:l=g4i(c,e.format);break;default:l=String(c);break}switch(e.type){case df.Number:s.push("text-right");break}let y=!1;return(e.cellStyle||"").startsWith(".")?s.push(oZe(e.cellStyle||"")):(e.cellStyle||"")!==""&&(b=Ipe(e.cellStyle||""),y=!0),u.startsWith(".")?s.push(oZe(u)):u!==""&&(b=Ipe(y?e.cellStyle+";"+u:u)),g&&s.push("cell-link"),p?f.jsx("td",{children:f.jsx("div",{className:s.join(" "),children:h})}):f.jsx("td",{children:f.jsx(ls,{title:d,arrow:!0,classes:i,children:f.jsxs("div",{className:s.join(" "),onClick:a,style:b,children:[" ",l," "]})})})},w4i=({cells:e,row:t,cellClass:n,onRowClick:r})=>{const i=(s,l)=>{r!==void 0&&r(l)};let o="";r!==void 0&&(o="selectableRow");const a=e.map((s,l)=>{const c=XTt(s.field,t),u={cell:s,data:c,cellClass:n};return f.jsx(QTt,{...u},l)});return f.jsx("tr",{onClick:s=>{i(s,t)},className:o,children:a})},S4i=({header:e,rows:t,rowSpan:n,colSpan:r,level:i,bodyCells:o})=>{const a=[],s=(l,c,u)=>{const d={value:l.Name,colSpan:r,rowSpan:n-u,isRowHeader:!0,isFirstCell:i===1&&u===0};c.push([v.createElement(aZe,{...d,key:"cell0"})]),(l.children||[]).length===0?t.forEach((p,h)=>{const g=o.find(m=>m.field===l.Field);if(g===void 0)c.push(f.jsx(aZe,{},h));else{const m=XTt(g.field,p),b={cell:g,data:m,cellClass:""};c.push(f.jsx(QTt,{...b},h))}}):(l.children||[])[i-1]!==void 0&&(u++,s((l.children||[])[i-1],c,u))};return s(e,a,0),f.jsx("tr",{children:a})},A4i=({headers:e,cells:t,rows:n,transposed:r,cellClass:i,onRowClick:o})=>{const a=(s,l,c,u)=>{c++,s.forEach(d=>{const p=f6(d.children||[]),h=l-c-p+1;let g=$Tt(d.children||[]);g=g===0?1:g,u.push(f.jsx(S4i,{header:d,rows:n,rowSpan:g,colSpan:h,level:c,bodyCells:t},u.length+1));const m=[];for(let b=c;b<(d.children||[]).length;b++)m.push((d.children||[])[b]);m.length>0&&a(m,l,c,u)})};if(r){const s=[],l=f6(e);return a(e,l,0,s),f.jsx("tbody",{children:s})}else{const s=n.map((l,c)=>{const u={cells:t,row:l,cellClass:i,onRowClick:o};return f.jsx(w4i,{...u},c)});return f.jsx("tbody",{children:s})}},sZe=({cell:e,colSpan:t,rowSpan:n,autoAlignNumber:r})=>{const i=[],o={};switch(e.Type){case df.Number:r?i.push("text-right"):i.push("text-center");break;default:i.push("text-center");break}return e.Width!==""&&(o.minWidth=e.Width),f.jsx("th",{colSpan:t,rowSpan:n,className:t>1?"text-center":i.join(" "),style:o,children:f.jsx("span",{onClick:()=>{},children:e.Name})})},O4i=({cells:e,level:t,totalLevel:n,transposed:r,autoAlignHeaderNumber:i})=>{const a=UTt(e,t,1).map((l,c)=>{const u=n-t-f6(l.children||[])+1;return f.jsx(sZe,{colSpan:(l.children||[]).length===0?1:(l.children||[]).length,rowSpan:u,cell:l,autoAlignNumber:i},`index-${c}`)}),s={Name:""};return f.jsxs("tr",{children:[r&&f.jsx(sZe,{colSpan:n+1,rowSpan:1,cell:s,autoAlignNumber:i}),a]})},z4i=({cells:e,transposed:t,autoAlignHeaderNumber:n})=>{const r=v.useMemo(()=>f6(e),[e]);return f.jsx("thead",{children:[...Array(r)].map((i,o)=>f.jsx(O4i,{cells:e,level:o+1,totalLevel:r,transposed:t,autoAlignHeaderNumber:n},`level-${o}`))})},T4i=({name:e,columns:t,rows:n,autoGeneratedColumns:r=!1,showPaging:i=!1,autoPaging:o=!1,transposed:a=!1,transposeBy:s="id",pageSize:l=20,pageIndex:c=0,autoAlignHeaderNumber:u=!1,containerClass:d="",tableClass:p="",cellClass:h="",onRowClick:g})=>{const[m,b]=v.useState([]),[y,M]=v.useState([]),[C,x]=v.useState([]);v.useEffect(()=>{const z=b4i(t);b(z);const O=n.length===0?null:n[0];x(y4i(z,O,r)),a&&M(v4i(n,s))},[t,n,r,a]),v.useEffect(()=>{},[C]);const w={cells:a?y:m,transposed:a,transposeBy:s,autoAlignHeaderNumber:u},S={headers:m,cells:C,rows:n,transposed:a,cellClass:h,onRowClick:g},A=["report-table",p];return a&&A.push("table-transposed"),f.jsx("div",{className:"container-fluid my-3",children:f.jsxs("table",{className:A.join(" "),children:[f.jsx(z4i,{...w}),f.jsx(A4i,{...S})]})})},E4i=e=>{const{state:t,actions:n}=FPi(),[r,i]=v.useState([]),[o,a]=v.useState([]),s=async()=>{n.setShowLoading(!0);const c=await v2e(t.casterProductionFilter);if(n.setShowLoading(!1),c.ok){const u=c.data===null?[]:c.data.rows||[];u.forEach((d,p)=>{d.id=p}),a(u),i(c.data===null?[]:c.data.columns||[]),n.setCasterProductions(o)}else console.log("something happened")},l=async()=>{await HAi(t.casterProductionFilter)};return v.useEffect(()=>{(async()=>{const c=await zzt();c.ok?(n.setBilletSizes(c.data.tables[2].rows),n.setGrades([]),await s()):console.log("something happened")})()},[]),f.jsxs(f.Fragment,{children:[f.jsx(I6,{open:t.showLoading,style:{zIndex:1e3},children:f.jsx(Kt,{color:"inherit"})}),f.jsxs(c4i,{title:"Caster Production",children:[f.jsx(u4i,{showButtons:!0,onClickReset:()=>{},OnClickGo:async()=>{await s()},onClickExport:l,showExport:!0,children:f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"col-md-2 ",children:f.jsx(rZe,{value:t.casterProductionFilter.startDate,onChange:c=>{n.setCasterProductionFilters({...t.casterProductionFilter,startDate:c})},title:"Start",styleGeneral:{style:"flex"}})}),f.jsx("div",{className:"col-md-2",children:f.jsx(rZe,{value:t.casterProductionFilter.endDate,onChange:c=>{n.setCasterProductionFilters({...t.casterProductionFilter,endDate:c})},title:"End",styleGeneral:{style:"flex"}})}),f.jsx("div",{className:"col-md-3",children:f.jsx(nZe,{title:"Billet Size",dataSource:t.billetSizes,selectedValue:t.casterProductionFilter.billetSizeId,onChange:c=>{n.setCasterProductionFilters({...t.casterProductionFilter,billetSizeId:c})},styleList:{maxWidth:"60%"},idValue:"MoldSizeId",nameValue:"MoldSizeName",hasChoose:!0})}),f.jsx("div",{className:"col-md-3",children:f.jsx(nZe,{title:"Grade",dataSource:t.grades,selectedValue:t.casterProductionFilter.gradeId,onChange:c=>{n.setCasterProductionFilters({...t.casterProductionFilter,gradeId:c})},styleList:{maxWidth:"60%"},idValue:"GradeId",nameValue:"GradeName",hasChoose:!0})})]})}),f.jsx("div",{className:"row",style:{overflow:"auto"},children:f.jsx(T4i,{name:"tblProductions",columns:r,rows:o,showPaging:!0,autoPaging:!0})})]})]})},R4i=e=>f.jsx(WPi,{children:f.jsx(E4i,{})}),I4i=[f.jsx(ar,{path:"/caster-data-entry",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(gQe,{})})}),f.jsx(ar,{path:"/caster-data-entry/:processId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(gQe,{})}),children:" "}),f.jsx(ar,{path:"/caster-production",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(R4i,{})})}),f.jsx(ar,{path:"/caster-processes",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(yQe,{})})}),f.jsx(ar,{path:"/caster-processes/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(yQe,{})})}),f.jsx(ar,{path:"/caster-counters",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(tQe,{})})}),f.jsx(ar,{path:"/caster-counters/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(tQe,{})})}),f.jsx(ar,{path:"/failed-startups",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(NEi,{})})}),f.jsx(ar,{path:"/production-management",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(CQe,{})})}),f.jsx(ar,{path:"/production-management/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(CQe,{})})}),f.jsxs(ar,{path:"/heat-report",element:f.jsx(WEi,{}),children:[f.jsx(ar,{path:"chemistry",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(JKe,{})})}),f.jsx(ar,{path:"chemistry/:heatName",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(JKe,{})})})]})],P4i={delaysListForPareto:[],shiftId:!1},VY=ki({name:"__",initialState:P4i,reducers:{setDelaysListForPareto(e,{payload:t}){e.delaysListForPareto=t},setShiftId(e,{payload:t}){e.shiftId=t}}}),ZTt=v.createContext({state:VY.getInitialState(),actions:VY.actions}),JTt=()=>v.useContext(ZTt),D4i=({children:e})=>{const{shiftId:t}=ds(),[n,r]=Fi.useComplexState({initialState:VY.getInitialState(),reducers:VY.caseReducers});return v.useEffect(()=>{const i=Number(t);gi(t)||isNaN(i)?r.setShiftId(null):r.setShiftId(i)},[t]),f.jsx(ZTt.Provider,{value:{state:n,actions:r},children:e})},k4i=Et(e=>({tableContainer:{width:"100%",height:"calc(100% - 20px)"},gridWrapper:{border:"1px solid #ccc",borderRadius:"4px",padding:10,backgroundColor:"#fff",height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)"}})),L4i=()=>{const e=k4i(),{state:{delaysListForPareto:t}}=JTt(),n=i=>new Intl.NumberFormat("en-US").format(i),r=()=>{const i=t.filter(a=>a.DelayCodeName!==null&&a.DelayCodeName!==void 0).map(a=>({...a,DelayCodeName:a.DelayCodeName||"",DelayCategoryName:a.DelayCategoryName||"",DelayCategoryColor:a.DelayCategoryColor||"#1890ff"}));return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:a=>{const s=a[0],l=i[s.dataIndex],c=l.DelayCategoryName?`<br/>Category: ${l.DelayCategoryName}`:"";return`${l.DelayCodeName}<br/>
                  Total Minutes: ${n(s.value)} min${c}`}},grid:{left:"5%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:i.map(a=>a.DelayCodeName),axisTick:{alignWithLabel:!0},axisLabel:{rotate:45,interval:0}}],yAxis:[{type:"value",name:"Minutes",nameLocation:"middle",nameGap:50,splitLine:{show:!0},axisLine:{show:!0},axisTick:{show:!0},axisLabel:{show:!0,formatter:a=>n(a)}}],series:[{name:"Delay Minutes",type:"bar",barWidth:"60%",data:i.map(a=>a.TotalDelayMinutes)||0,itemStyle:{color:a=>{const s=i[a.dataIndex];return s.DelayCodeName==="Undeclared Delays"?" #CE0000":s.DelayCodeName.toLowerCase().includes("microdelay")?" #D100DA":s.DelayCategoryColor}},label:{show:!0,position:"top",formatter:a=>n(a.value)}}]}};return f.jsx("div",{onContextMenu:i=>i.preventDefault(),children:f.jsx("div",{className:e.gridWrapper,children:f.jsx(AM,{option:r(),style:{height:"100%",width:"100%"},opts:{renderer:"svg"}})})})},_4i=rt(Iw)({width:"80%","& .MuiInputBase-root":{height:"40px",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.23)","&:hover":{borderColor:"rgba(0, 0, 0, 0.87)"},"&:before, &:after":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},"& .MuiInputLabel-root":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",backgroundColor:"white",padding:"0 4px"}},"& .MuiSelect-select":{paddingTop:"0",paddingBottom:"0",height:"100%",display:"flex",alignItems:"center"}}),N4i=({delayAreas:e,selectedDelayArea:t,onChange:n})=>f.jsxs(_4i,{variant:"outlined",children:[f.jsx(Rw,{id:"delay-area-label",children:"Delay Area"}),f.jsx(vM,{labelId:"delay-area-label",value:t===null?"all":t,label:"Delay Area",onChange:r=>{const i=r.target.value;n(i==="all"?null:i)},children:e.map(r=>f.jsx(Zb,{value:r.AssetId,children:r.AssetName},r.AssetId))})]}),F4i=rt(D3)({"& .MuiInputBase-input":{textAlign:"center",padding:"8px 14px"},"& .MuiInputBase-root":{width:"100%",height:"40px"},"& .MuiInputLabel-root":{transform:"translate(14px, 9px) scale(1)"},"& .MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}),W4i=({value:e,onChange:t})=>f.jsx(_f,{label:"End",format:"MM/DD/YYYY",value:e,onChange:n=>{t(n)},slots:{textField:n=>f.jsx(F4i,{...n})}}),q4i=rt(D3)({"& .MuiInputBase-input":{textAlign:"center",padding:"8px 14px"},"& .MuiInputBase-root":{width:"100%",height:"40px"},"& .MuiInputLabel-root":{transform:"translate(14px, 9px) scale(1)"},"& .MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}),B4i=({value:e,onChange:t})=>f.jsx(_f,{label:"Start",format:"MM/DD/YYYY",value:e,onChange:n=>{t(n)},slots:{textField:n=>f.jsx(q4i,{...n})}}),j4i=Et(e=>({filtersContainer:{gap:e.spacing(2),alignItems:"center",marginLeft:10},filterItem:{maxWidth:"250px",minWidth:"150px"}})),H4i=({onFilterChange:e,initialStartDate:t,initialEndDate:n,includeMicroDelays:r,includeUndeclared:i,onIncludeMicroDelaysChange:o,onIncludeUndeclaredChange:a,delayAreas:s,selectedDelayArea:l,onDelayAreaChange:c})=>{const u=j4i(),d=h=>{h&&e(h,n)},p=h=>{h&&e(t,h)};return f.jsxs(D,{container:!0,className:u.filtersContainer,spacing:2,alignItems:"flex-end",wrap:"nowrap",children:[f.jsx(D,{item:!0,xs:"auto",className:u.filterItem,children:f.jsx(B4i,{value:t,onChange:d})}),f.jsx(D,{item:!0,xs:"auto",className:u.filterItem,children:f.jsx(W4i,{value:n,onChange:p})}),s&&f.jsx(D,{item:!0,xs:12,md:"auto",style:{minWidth:150},children:f.jsx(N4i,{delayAreas:s,selectedDelayArea:l,onChange:c})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(So,{control:f.jsx(Qr,{color:"primary",checked:r,onChange:h=>o(h.target.checked)}),label:"Microdelays"})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(So,{control:f.jsx(Qr,{color:"primary",checked:i,onChange:h=>a(h.target.checked)}),label:"Undeclared delays"})})]})},V4i=async(e,t,n,r,i,o,a,s=!1,l=!1,c=!1)=>{const u=new Ye,d=[];return d.push({name:"Start",value:e||null}),d.push({name:"End",value:t||null}),d.push({name:"DelayCodeId",value:null}),d.push({name:"DelayCategoryId",value:null}),d.push({name:"IncludeMicrodelays",value:s}),d.push({name:"IncludeUndeclared",value:l}),d.push({name:"ShiftId",value:null}),d.push({name:"Crew",value:null}),d.push({name:"DelayAreaAssetId",value:a||null}),d.push({name:"IncludeInactives",value:c}),await u.callV2("[DEL].[GetDelaysForPareto]",d)},G4i=async()=>await new Ye().callV2("[DEL].[GetDelayAssets]",[]),$4i=({setIsLoading:e,setError:t})=>{const{actions:{setDelaysListForPareto:n}}=JTt();return async(r,i,o,a,s)=>{e(!0);const l=await V4i(r,i,void 0,void 0,void 0,void 0,o,a,s);if(l.ok){const c=sr(l,"data.tables[0].rows",[]);n(c),e(!1)}else e(!1),t(l.message)}},U4i=Et(e=>({root:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",height:"91vh",display:"flex",flexDirection:"column",backgroundColor:"#f2f4f7"},header:{marginBottom:e.spacing(2)},filterContainer:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:e.spacing(2)},filterGroup:{display:"flex",alignItems:"flex-end"},buttonGroup:{display:"flex",gap:e.spacing(2)},button:{whiteSpace:"nowrap"},divider:{margin:`${e.spacing(2)}px 0`,width:"100%"},tableContainer:{width:"100%",height:"calc(100% - 20px)",padding:"2px","& .ag-root-wrapper":{border:"none"},"& .ag-header":{borderTop:"1px solid #e0e0e0"}}})),X4i=({asset:e})=>{const t=U4i(),[n,r]=v.useState(!1),[i,o]=v.useState(""),a=e==="caster"?13:e==="eaf"?14:null,s=e==="caster"?"Caster":e==="eaf"?"EAF":null,[l,c]=v.useState(a),u=mt().endOf("day"),d=u.clone().subtract(1,"month").startOf("day"),[p,h]=v.useState(d),[g,m]=v.useState(u),[b,y]=v.useState(!1),[M,C]=v.useState(!1),[x,w]=v.useState([]),S=$4i({setIsLoading:r,setError:o}),A=async()=>{const R=await G4i();R.ok&&R.data.tables.length>0?w(R.data.tables[0].rows):o("An error occurred while fetching delay areas.")},z=(R,P)=>{h(R),m(P),S(R.toDate(),P.toDate(),l)},O=R=>{c(R),S(p.toDate(),g.toDate(),R)},T=()=>{if(e==="eaf"){const R=x.filter(P=>P.AssetName&&P.AssetName.includes("EAF "));if(a)return[{AssetId:a,AssetName:"All"},...R]}return x};return v.useEffect(()=>{A()},[]),v.useEffect(()=>{c(a)},[a]),v.useEffect(()=>{S(p.toDate(),g.toDate(),l,b,M)},[e,l,p,g,b,M]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:`${s} Pareto Report`}),f.jsxs(Pt,{elevation:1,className:t.root,children:[f.jsx(Op,{open:n}),f.jsxs(vt,{variant:"h5",className:t.header,style:{fontWeight:600},children:[s," Pareto Report"]}),f.jsx("div",{className:t.filterContainer,children:f.jsx("div",{className:t.filterGroup,children:f.jsx(Pt,{style:{display:"flex",alignItems:"center",height:"80px"},children:f.jsx(H4i,{onFilterChange:z,initialStartDate:p,initialEndDate:g,includeMicroDelays:b,includeUndeclared:M,onIncludeMicroDelaysChange:y,onIncludeUndeclaredChange:C,delayAreas:e==="eaf"?T():null,selectedDelayArea:l,onDelayAreaChange:O})})})}),f.jsx(L4i,{}),f.jsx(la,{style:{marginBottom:10}}),f.jsx("div",{className:t.tableContainer,children:f.jsx(yt,{error:i,onHide:()=>{o("")}})})]})]})},NG=({asset:e})=>f.jsx(dte,{children:f.jsx(xte,{children:f.jsx(xj,{children:f.jsx(D4i,{children:f.jsx(X4i,{asset:e})})})})}),Y4i=Et(e=>({contextMenu:{backgroundColor:"#fff",borderRadius:"2px",padding:"5px 0",width:"180px",height:"auto",margin:"0",position:"fixed",listStyle:"none",boxShadow:"0 0 20px 0 #ccc","& .MuiMenuItem-root":{fontSize:"14px"},"& .MuiListItemIcon-root":{minWidth:"25px",padding:"0"},"& .MuiSvgIcon-root":{fontSize:"16px"}}})),K4i=()=>{const{show:e,position:t,options:n}=Z4i(),r=Y4i(),i=v.useRef(null),[o,a]=v.useState("0"),[s,l]=v.useState("0");return v.useEffect(()=>{(()=>{if(e&&i.current){const u=i.current.getBoundingClientRect(),d=window.innerWidth,p=window.innerHeight;let h=t.x,g=t.y;h+u.width>d&&(h=d-u.width),g+u.height>p&&(g=p-u.height),a(`${h}px`),l(`${g}px`)}else a("0"),l("0")})()},[e,t.x,t.y]),e?f.jsx("ul",{ref:i,className:r.contextMenu,style:{position:"fixed",opacity:e?1:0,left:o,top:s},children:n.map((c,u)=>f.jsxs(lr,{style:c.style,onClick:c.onClick,disabled:c.disabled,children:[f.jsx($0,{style:{padding:0,margin:0},children:c.icon}),c.name]},c.key+u))}):null},Q4i=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState({x:0,y:0}),[i,o]=v.useState([]),a=v.useRef(()=>[]);return{show:e,setShow:t,position:n,setPosition:r,onClickOutside:()=>{t(!1)},showContextMenu:(u,d)=>{u.preventDefault(),u.stopPropagation(),t(!0),r({x:u.clientX,y:u.clientY}),o(a.current(d))},options:i,setOptions:o,setOptionsGetter:u=>{a.current=u}}},Z4i=e=>v.useContext(eEt),eEt=v.createContext({show:!1,setShow:()=>{},position:{x:0,y:0},setPosition:()=>{},onClickOutside:()=>{},showContextMenu:()=>{},options:[],setOptions:()=>{},setOptionsGetter:()=>{}}),J4i=({children:e})=>{const t=Q4i();return f.jsxs(eEt.Provider,{value:t,children:[f.jsx("div",{onKeyDown:()=>t.onClickOutside(),onClick:()=>t.onClickOutside(),children:e}),f.jsx(K4i,{})]})},e_i=rt(Iw)({width:"100%","& .MuiInputBase-root":{height:"40px",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.23)","&:hover":{borderColor:"rgba(0, 0, 0, 0.87)"},"&:before, &:after":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},"& .MuiInputLabel-root":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",backgroundColor:"white",padding:"0 4px"}},"& .MuiSelect-select":{paddingTop:"0",paddingBottom:"0",height:"100%",display:"flex",alignItems:"center"}}),t_i=({delayAreas:e,selectedDelayArea:t,onChange:n,isLoading:r})=>f.jsxs(e_i,{variant:"outlined",style:{minWidth:120},children:[f.jsx(Rw,{id:"delay-area-label",children:"Delay Area"}),f.jsx(vM,{labelId:"delay-area-label",value:t===null?"all":t,label:"Delay Area",onChange:i=>{const o=i.target.value;n(o==="all"?null:o)},children:e.map(i=>f.jsx(Zb,{value:i.AssetId,children:i.AssetName},i.AssetId))})]});var L5={},lZe;function n_i(){if(lZe)return L5;lZe=1;var e=ri(),t=ii();Object.defineProperty(L5,"__esModule",{value:!0}),L5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");return L5.default=i,L5}var r_i=n_i();const i_i=qn(r_i);var Ppe={exports:{}},SA={};/** @license React v17.0.2
 * react-dom-server.browser.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 cZe;function o_i(){if(cZe)return SA;cZe=1;var e=fK(),t=Wr();function n(Fe){for(var He="https://reactjs.org/docs/error-decoder.html?invariant="+Fe,Xe=1;Xe<arguments.length;Xe++)He+="&args[]="+encodeURIComponent(arguments[Xe]);return"Minified React error #"+Fe+"; visit "+He+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,g=60121,m=60117,b=60119,y=60129,M=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;r=C("react.portal"),i=C("react.fragment"),o=C("react.strict_mode"),a=C("react.profiler"),s=C("react.provider"),l=C("react.context"),c=C("react.forward_ref"),u=C("react.suspense"),d=C("react.suspense_list"),p=C("react.memo"),h=C("react.lazy"),g=C("react.block"),m=C("react.fundamental"),b=C("react.scope"),y=C("react.debug_trace_mode"),M=C("react.legacy_hidden")}function x(Fe){if(Fe==null)return null;if(typeof Fe=="function")return Fe.displayName||Fe.name||null;if(typeof Fe=="string")return Fe;switch(Fe){case i:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof Fe=="object")switch(Fe.$$typeof){case l:return(Fe.displayName||"Context")+".Consumer";case s:return(Fe._context.displayName||"Context")+".Provider";case c:var He=Fe.render;return He=He.displayName||He.name||"",Fe.displayName||(He!==""?"ForwardRef("+He+")":"ForwardRef");case p:return x(Fe.type);case g:return x(Fe._render);case h:He=Fe._payload,Fe=Fe._init;try{return x(Fe(He))}catch{}}return null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S={};function A(Fe,He){for(var Xe=Fe._threadCount|0;Xe<=He;Xe++)Fe[Xe]=Fe._currentValue2,Fe._threadCount=Xe+1}function z(Fe,He,Xe,ct){if(ct&&(ct=Fe.contextType,typeof ct=="object"&&ct!==null))return A(ct,Xe),ct[Xe];if(Fe=Fe.contextTypes){Xe={};for(var lt in Fe)Xe[lt]=He[lt];He=Xe}else He=S;return He}for(var O=new Uint16Array(16),T=0;15>T;T++)O[T]=T+1;O[15]=0;var R=/^[: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]*$/,P=Object.prototype.hasOwnProperty,F={},N={};function L(Fe){return P.call(N,Fe)?!0:P.call(F,Fe)?!1:R.test(Fe)?N[Fe]=!0:(F[Fe]=!0,!1)}function W(Fe,He,Xe,ct){if(Xe!==null&&Xe.type===0)return!1;switch(typeof He){case"function":case"symbol":return!0;case"boolean":return Xe!==null?!Xe.acceptsBooleans:(Fe=Fe.toLowerCase().slice(0,5),Fe!=="data-"&&Fe!=="aria-");default:return!1}}function j(Fe,He,Xe,ct){if(He===null||typeof He>"u"||W(Fe,He,Xe))return!0;if(Xe!==null)switch(Xe.type){case 3:return!He;case 4:return He===!1;case 5:return isNaN(He);case 6:return isNaN(He)||1>He}return!1}function V(Fe,He,Xe,ct,lt,Je,ft){this.acceptsBooleans=He===2||He===3||He===4,this.attributeName=ct,this.attributeNamespace=lt,this.mustUseProperty=Xe,this.propertyName=Fe,this.type=He,this.sanitizeURL=Je,this.removeEmptyString=ft}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(Fe){G[Fe]=new V(Fe,0,!1,Fe,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(Fe){var He=Fe[0];G[He]=new V(He,1,!1,Fe[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(Fe){G[Fe]=new V(Fe,2,!1,Fe.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(Fe){G[Fe]=new V(Fe,2,!1,Fe,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(Fe){G[Fe]=new V(Fe,3,!1,Fe.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(Fe){G[Fe]=new V(Fe,3,!0,Fe,null,!1,!1)}),["capture","download"].forEach(function(Fe){G[Fe]=new V(Fe,4,!1,Fe,null,!1,!1)}),["cols","rows","size","span"].forEach(function(Fe){G[Fe]=new V(Fe,6,!1,Fe,null,!1,!1)}),["rowSpan","start"].forEach(function(Fe){G[Fe]=new V(Fe,5,!1,Fe.toLowerCase(),null,!1,!1)});var q=/[\-:]([a-z])/g;function $(Fe){return Fe[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(Fe){var He=Fe.replace(q,$);G[He]=new V(He,1,!1,Fe,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(Fe){var He=Fe.replace(q,$);G[He]=new V(He,1,!1,Fe,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(Fe){var He=Fe.replace(q,$);G[He]=new V(He,1,!1,Fe,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(Fe){G[Fe]=new V(Fe,1,!1,Fe.toLowerCase(),null,!1,!1)}),G.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(Fe){G[Fe]=new V(Fe,1,!1,Fe.toLowerCase(),null,!0,!0)});var U=/["'&<>]/;function X(Fe){if(typeof Fe=="boolean"||typeof Fe=="number")return""+Fe;Fe=""+Fe;var He=U.exec(Fe);if(He){var Xe="",ct,lt=0;for(ct=He.index;ct<Fe.length;ct++){switch(Fe.charCodeAt(ct)){case 34:He="&quot;";break;case 38:He="&amp;";break;case 39:He="&#x27;";break;case 60:He="&lt;";break;case 62:He="&gt;";break;default:continue}lt!==ct&&(Xe+=Fe.substring(lt,ct)),lt=ct+1,Xe+=He}Fe=lt!==ct?Xe+Fe.substring(lt,ct):Xe}return Fe}function Q(Fe,He){var Xe=G.hasOwnProperty(Fe)?G[Fe]:null,ct;return(ct=Fe!=="style")&&(ct=Xe!==null?Xe.type===0:!(!(2<Fe.length)||Fe[0]!=="o"&&Fe[0]!=="O"||Fe[1]!=="n"&&Fe[1]!=="N")),ct||j(Fe,He,Xe)?"":Xe!==null?(Fe=Xe.attributeName,ct=Xe.type,ct===3||ct===4&&He===!0?Fe+'=""':(Xe.sanitizeURL&&(He=""+He),Fe+'="'+(X(He)+'"'))):L(Fe)?Fe+'="'+(X(He)+'"'):""}function re(Fe,He){return Fe===He&&(Fe!==0||1/Fe===1/He)||Fe!==Fe&&He!==He}var ee=typeof Object.is=="function"?Object.is:re,se=null,pe=null,te=null,ce=!1,oe=!1,ae=null,ne=0;function le(){if(se===null)throw Error(n(321));return se}function he(){if(0<ne)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function be(){return te===null?pe===null?(ce=!1,pe=te=he()):(ce=!0,te=pe):te.next===null?(ce=!1,te=te.next=he()):(ce=!0,te=te.next),te}function me(Fe,He,Xe,ct){for(;oe;)oe=!1,ne+=1,te=null,Xe=Fe(He,ct);return Me(),Xe}function Me(){se=null,oe=!1,pe=null,ne=0,te=ae=null}function Oe(Fe,He){return typeof He=="function"?He(Fe):He}function de(Fe,He,Xe){if(se=le(),te=be(),ce){var ct=te.queue;if(He=ct.dispatch,ae!==null&&(Xe=ae.get(ct),Xe!==void 0)){ae.delete(ct),ct=te.memoizedState;do ct=Fe(ct,Xe.action),Xe=Xe.next;while(Xe!==null);return te.memoizedState=ct,[ct,He]}return[te.memoizedState,He]}return Fe=Fe===Oe?typeof He=="function"?He():He:Xe!==void 0?Xe(He):He,te.memoizedState=Fe,Fe=te.queue={last:null,dispatch:null},Fe=Fe.dispatch=ue.bind(null,se,Fe),[te.memoizedState,Fe]}function ie(Fe,He){if(se=le(),te=be(),He=He===void 0?null:He,te!==null){var Xe=te.memoizedState;if(Xe!==null&&He!==null){var ct=Xe[1];e:if(ct===null)ct=!1;else{for(var lt=0;lt<ct.length&&lt<He.length;lt++)if(!ee(He[lt],ct[lt])){ct=!1;break e}ct=!0}if(ct)return Xe[0]}}return Fe=Fe(),te.memoizedState=[Fe,He],Fe}function ue(Fe,He,Xe){if(!(25>ne))throw Error(n(301));if(Fe===se)if(oe=!0,Fe={action:Xe,next:null},ae===null&&(ae=new Map),Xe=ae.get(He),Xe===void 0)ae.set(He,Fe);else{for(He=Xe;He.next!==null;)He=He.next;He.next=Fe}}function Ae(){}var Ce=null,Ee={readContext:function(Fe){var He=Ce.threadID;return A(Fe,He),Fe[He]},useContext:function(Fe){le();var He=Ce.threadID;return A(Fe,He),Fe[He]},useMemo:ie,useReducer:de,useRef:function(Fe){se=le(),te=be();var He=te.memoizedState;return He===null?(Fe={current:Fe},te.memoizedState=Fe):He},useState:function(Fe){return de(Oe,Fe)},useLayoutEffect:function(){},useCallback:function(Fe,He){return ie(function(){return Fe},He)},useImperativeHandle:Ae,useEffect:Ae,useDebugValue:Ae,useDeferredValue:function(Fe){return le(),Fe},useTransition:function(){return le(),[function(Fe){Fe()},!1]},useOpaqueIdentifier:function(){return(Ce.identifierPrefix||"")+"R:"+(Ce.uniqueID++).toString(36)},useMutableSource:function(Fe,He){return le(),He(Fe._source)}},Ge={html:"http://www.w3.org/1999/xhtml"};function _e(Fe){switch(Fe){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Ie={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Le=e({menuitem:!0},Ie),we={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","ms","Moz","O"];Object.keys(we).forEach(function(Fe){ve.forEach(function(He){He=He+Fe.charAt(0).toUpperCase()+Fe.substring(1),we[He]=we[Fe]})});var De=/([A-Z])/g,ze=/^ms-/,Ve=t.Children.toArray,Ke=w.ReactCurrentDispatcher,et={listing:!0,pre:!0,textarea:!0},it=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ft={},Dt={};function Qn(Fe){if(Fe==null)return Fe;var He="";return t.Children.forEach(Fe,function(Xe){Xe!=null&&(He+=Xe)}),He}var ir=Object.prototype.hasOwnProperty,Hn={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Zn(Fe,He){if(Fe===void 0)throw Error(n(152,x(He)||"Component"))}function Br(Fe,He,Xe){function ct(ft,Tt){var St=Tt.prototype&&Tt.prototype.isReactComponent,un=z(Tt,He,Xe,St),Un=[],Yr=!1,yr={isMounted:function(){return!1},enqueueForceUpdate:function(){if(Un===null)return null},enqueueReplaceState:function(kt,It){Yr=!0,Un=[It]},enqueueSetState:function(kt,It){if(Un===null)return null;Un.push(It)}};if(St){if(St=new Tt(ft.props,un,yr),typeof Tt.getDerivedStateFromProps=="function"){var dr=Tt.getDerivedStateFromProps.call(null,ft.props,St.state);dr!=null&&(St.state=e({},St.state,dr))}}else if(se={},St=Tt(ft.props,un,yr),St=me(Tt,ft.props,St,un),St==null||St.render==null){Fe=St,Zn(Fe,Tt);return}if(St.props=ft.props,St.context=un,St.updater=yr,yr=St.state,yr===void 0&&(St.state=yr=null),typeof St.UNSAFE_componentWillMount=="function"||typeof St.componentWillMount=="function")if(typeof St.componentWillMount=="function"&&typeof Tt.getDerivedStateFromProps!="function"&&St.componentWillMount(),typeof St.UNSAFE_componentWillMount=="function"&&typeof Tt.getDerivedStateFromProps!="function"&&St.UNSAFE_componentWillMount(),Un.length){yr=Un;var si=Yr;if(Un=null,Yr=!1,si&&yr.length===1)St.state=yr[0];else{dr=si?yr[0]:St.state;var $o=!0;for(si=si?1:0;si<yr.length;si++){var Uo=yr[si];Uo=typeof Uo=="function"?Uo.call(St,dr,ft.props,un):Uo,Uo!=null&&($o?($o=!1,dr=e({},dr,Uo)):e(dr,Uo))}St.state=dr}}else Un=null;if(Fe=St.render(),Zn(Fe,Tt),typeof St.getChildContext=="function"&&(ft=Tt.childContextTypes,typeof ft=="object")){var Qi=St.getChildContext();for(var di in Qi)if(!(di in ft))throw Error(n(108,x(Tt)||"Unknown",di))}Qi&&(He=e({},He,Qi))}for(;t.isValidElement(Fe);){var lt=Fe,Je=lt.type;if(typeof Je!="function")break;ct(lt,Je)}return{child:Fe,context:He}}var vr=(function(){function Fe(Xe,ct,lt){t.isValidElement(Xe)?Xe.type!==i?Xe=[Xe]:(Xe=Xe.props.children,Xe=t.isValidElement(Xe)?[Xe]:Ve(Xe)):Xe=Ve(Xe),Xe={type:null,domNamespace:Ge.html,children:Xe,childIndex:0,context:S,footer:""};var Je=O[0];if(Je===0){var ft=O;Je=ft.length;var Tt=2*Je;if(!(65536>=Tt))throw Error(n(304));var St=new Uint16Array(Tt);for(St.set(ft),O=St,O[0]=Je+1,ft=Je;ft<Tt-1;ft++)O[ft]=ft+1;O[Tt-1]=0}else O[0]=O[Je];this.threadID=Je,this.stack=[Xe],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=ct,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=lt&&lt.identifierPrefix||""}var He=Fe.prototype;return He.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var Xe=this.threadID;O[Xe]=O[0],O[0]=Xe}},He.pushProvider=function(Xe){var ct=++this.contextIndex,lt=Xe.type._context,Je=this.threadID;A(lt,Je);var ft=lt[Je];this.contextStack[ct]=lt,this.contextValueStack[ct]=ft,lt[Je]=Xe.props.value},He.popProvider=function(){var Xe=this.contextIndex,ct=this.contextStack[Xe],lt=this.contextValueStack[Xe];this.contextStack[Xe]=null,this.contextValueStack[Xe]=null,this.contextIndex--,ct[this.threadID]=lt},He.clearProviders=function(){for(var Xe=this.contextIndex;0<=Xe;Xe--)this.contextStack[Xe][this.threadID]=this.contextValueStack[Xe]},He.read=function(Xe){if(this.exhausted)return null;var ct=Ce;Ce=this;var lt=Ke.current;Ke.current=Ee;try{for(var Je=[""],ft=!1;Je[0].length<Xe;){if(this.stack.length===0){this.exhausted=!0;var Tt=this.threadID;O[Tt]=O[0],O[0]=Tt;break}var St=this.stack[this.stack.length-1];if(ft||St.childIndex>=St.children.length){var un=St.footer;if(un!==""&&(this.previousWasTextNode=!1),this.stack.pop(),St.type==="select")this.currentSelectValue=null;else if(St.type!=null&&St.type.type!=null&&St.type.type.$$typeof===s)this.popProvider(St.type);else if(St.type===u){this.suspenseDepth--;var Un=Je.pop();if(ft){ft=!1;var Yr=St.fallbackFrame;if(!Yr)throw Error(n(303));this.stack.push(Yr),Je[this.suspenseDepth]+="<!--$!-->";continue}else Je[this.suspenseDepth]+=Un}Je[this.suspenseDepth]+=un}else{var yr=St.children[St.childIndex++],dr="";try{dr+=this.render(yr,St.context,St.domNamespace)}catch(si){throw si!=null&&typeof si.then=="function"?Error(n(294)):si}finally{}Je.length<=this.suspenseDepth&&Je.push(""),Je[this.suspenseDepth]+=dr}}return Je[0]}finally{Ke.current=lt,Ce=ct,Me()}},He.render=function(Xe,ct,lt){if(typeof Xe=="string"||typeof Xe=="number")return lt=""+Xe,lt===""?"":this.makeStaticMarkup?X(lt):this.previousWasTextNode?"<!-- -->"+X(lt):(this.previousWasTextNode=!0,X(lt));if(ct=Br(Xe,ct,this.threadID),Xe=ct.child,ct=ct.context,Xe===null||Xe===!1)return"";if(!t.isValidElement(Xe)){if(Xe!=null&&Xe.$$typeof!=null)throw lt=Xe.$$typeof,Error(lt===r?n(257):n(258,lt.toString()));return Xe=Ve(Xe),this.stack.push({type:null,domNamespace:lt,children:Xe,childIndex:0,context:ct,footer:""}),""}var Je=Xe.type;if(typeof Je=="string")return this.renderDOM(Xe,ct,lt);switch(Je){case M:case y:case o:case a:case d:case i:return Xe=Ve(Xe.props.children),this.stack.push({type:null,domNamespace:lt,children:Xe,childIndex:0,context:ct,footer:""}),"";case u:throw Error(n(294));case b:throw Error(n(343))}if(typeof Je=="object"&&Je!==null)switch(Je.$$typeof){case c:se={};var ft=Je.render(Xe.props,Xe.ref);return ft=me(Je.render,Xe.props,ft,Xe.ref),ft=Ve(ft),this.stack.push({type:null,domNamespace:lt,children:ft,childIndex:0,context:ct,footer:""}),"";case p:return Xe=[t.createElement(Je.type,e({ref:Xe.ref},Xe.props))],this.stack.push({type:null,domNamespace:lt,children:Xe,childIndex:0,context:ct,footer:""}),"";case s:return Je=Ve(Xe.props.children),lt={type:Xe,domNamespace:lt,children:Je,childIndex:0,context:ct,footer:""},this.pushProvider(Xe),this.stack.push(lt),"";case l:Je=Xe.type,ft=Xe.props;var Tt=this.threadID;return A(Je,Tt),Je=Ve(ft.children(Je[Tt])),this.stack.push({type:Xe,domNamespace:lt,children:Je,childIndex:0,context:ct,footer:""}),"";case m:throw Error(n(338));case h:return Je=Xe.type,ft=Je._init,Je=ft(Je._payload),Xe=[t.createElement(Je,e({ref:Xe.ref},Xe.props))],this.stack.push({type:null,domNamespace:lt,children:Xe,childIndex:0,context:ct,footer:""}),""}throw Error(n(130,Je==null?Je:typeof Je,""))},He.renderDOM=function(Xe,ct,lt){var Je=Xe.type.toLowerCase();if(!Ft.hasOwnProperty(Je)){if(!it.test(Je))throw Error(n(65,Je));Ft[Je]=!0}var ft=Xe.props;if(Je==="input")ft=e({type:void 0},ft,{defaultChecked:void 0,defaultValue:void 0,value:ft.value!=null?ft.value:ft.defaultValue,checked:ft.checked!=null?ft.checked:ft.defaultChecked});else if(Je==="textarea"){var Tt=ft.value;if(Tt==null){Tt=ft.defaultValue;var St=ft.children;if(St!=null){if(Tt!=null)throw Error(n(92));if(Array.isArray(St)){if(!(1>=St.length))throw Error(n(93));St=St[0]}Tt=""+St}Tt==null&&(Tt="")}ft=e({},ft,{value:void 0,children:""+Tt})}else if(Je==="select")this.currentSelectValue=ft.value!=null?ft.value:ft.defaultValue,ft=e({},ft,{value:void 0});else if(Je==="option"){St=this.currentSelectValue;var un=Qn(ft.children);if(St!=null){var Un=ft.value!=null?ft.value+"":un;if(Tt=!1,Array.isArray(St)){for(var Yr=0;Yr<St.length;Yr++)if(""+St[Yr]===Un){Tt=!0;break}}else Tt=""+St===Un;ft=e({selected:void 0,children:void 0},ft,{selected:Tt,children:un})}}if(Tt=ft){if(Le[Je]&&(Tt.children!=null||Tt.dangerouslySetInnerHTML!=null))throw Error(n(137,Je));if(Tt.dangerouslySetInnerHTML!=null){if(Tt.children!=null)throw Error(n(60));if(!(typeof Tt.dangerouslySetInnerHTML=="object"&&"__html"in Tt.dangerouslySetInnerHTML))throw Error(n(61))}if(Tt.style!=null&&typeof Tt.style!="object")throw Error(n(62))}Tt=ft,St=this.makeStaticMarkup,un=this.stack.length===1,Un="<"+Xe.type;e:if(Je.indexOf("-")===-1)Yr=typeof Tt.is=="string";else switch(Je){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":Yr=!1;break e;default:Yr=!0}for(It in Tt)if(ir.call(Tt,It)){var yr=Tt[It];if(yr!=null){if(It==="style"){var dr=void 0,si="",$o="";for(dr in yr)if(yr.hasOwnProperty(dr)){var Uo=dr.indexOf("--")===0,Qi=yr[dr];if(Qi!=null){if(Uo)var di=dr;else if(di=dr,Dt.hasOwnProperty(di))di=Dt[di];else{var kt=di.replace(De,"-$1").toLowerCase().replace(ze,"-ms-");di=Dt[di]=kt}si+=$o+di+":",$o=dr,Uo=Qi==null||typeof Qi=="boolean"||Qi===""?"":Uo||typeof Qi!="number"||Qi===0||we.hasOwnProperty($o)&&we[$o]?(""+Qi).trim():Qi+"px",si+=Uo,$o=";"}}yr=si||null}dr=null,Yr?Hn.hasOwnProperty(It)||(dr=It,dr=L(dr)&&yr!=null?dr+'="'+(X(yr)+'"'):""):dr=Q(It,yr),dr&&(Un+=" "+dr)}}St||un&&(Un+=' data-reactroot=""');var It=Un;Tt="",Ie.hasOwnProperty(Je)?It+="/>":(It+=">",Tt="</"+Xe.type+">");e:{if(St=ft.dangerouslySetInnerHTML,St!=null){if(St.__html!=null){St=St.__html;break e}}else if(St=ft.children,typeof St=="string"||typeof St=="number"){St=X(St);break e}St=null}return St!=null?(ft=[],et.hasOwnProperty(Je)&&St.charAt(0)===`
`&&(It+=`
`),It+=St):ft=Ve(ft.children),Xe=Xe.type,lt=lt==null||lt==="http://www.w3.org/1999/xhtml"?_e(Xe):lt==="http://www.w3.org/2000/svg"&&Xe==="foreignObject"?"http://www.w3.org/1999/xhtml":lt,this.stack.push({domNamespace:lt,type:Je,children:ft,childIndex:0,context:ct,footer:Tt}),this.previousWasTextNode=!1,It},Fe})();return SA.renderToNodeStream=function(){throw Error(n(207))},SA.renderToStaticMarkup=function(Fe,He){Fe=new vr(Fe,!0,He);try{return Fe.read(1/0)}finally{Fe.destroy()}},SA.renderToStaticNodeStream=function(){throw Error(n(208))},SA.renderToString=function(Fe,He){Fe=new vr(Fe,!1,He);try{return Fe.read(1/0)}finally{Fe.destroy()}},SA.version="17.0.2",SA}var uZe;function a_i(){return uZe||(uZe=1,Ppe.exports=o_i()),Ppe.exports}var s_i=a_i();const l_i=e=>e.toTimeString().split(" ")[0],c_i=(e,t,n)=>{const r=e*t;return new Date(n.getTime()+r*1e3)},dZe=e=>e.split(" ")[0];Et(e=>({sliderContainer:{position:"relative",height:40,marginBottom:e.spacing(4)},currentLabel:{position:"absolute",top:20,transform:"translateX(-50%)",textAlign:"center",fontSize:"0.875rem"}}));const tEt=({startTime:e,endTime:t,initialValue:n,onTimeChange:r})=>{const[i,o]=v.useState(1),a=v.useMemo(()=>_on({overrides:{MuiSlider:{root:{height:8},thumb:{color:"#3f51b5",height:20,width:20,marginTop:-7},track:{color:"#3f51b5",height:8},rail:{color:"green",height:8}}}}),[]),s=v.useMemo(()=>Math.floor((t.getTime()-e.getTime())/1e3)-i*2,[e,t]),l=v.useMemo(()=>Math.floor(s/i),[s,i]),[c,u]=v.useState(()=>Math.floor(l/2)),d=v.useCallback((g,m)=>{const b=Array.isArray(m)?m[0]:m;u(b);const y=c_i(b,i,e);r(y,l_i(y))},[r,i,e]),p=()=>(e.setSeconds(e.getSeconds()+i),[{value:0,label:dZe(Wn(e,"HH:mm:ss"))},{value:l,label:dZe(Wn(t,"HH:mm:ss"))}]),h=v.useMemo(()=>p(),[p]);return f.jsx(Ow,{theme:a,children:f.jsx(D,{container:!0,spacing:2,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(e0n,{defaultValue:c,onChange:d,step:1,marks:h,min:0,max:l})})})})},u_i=async(e,t,n=!1)=>{const r=new Ye,i=[];return i.push({name:"ShiftId",value:e}),i.push({name:"DelayAreaAssetId",value:t}),i.push({name:"IncludeMicrodelays",value:n}),await r.callV2("[DEL].[GetDelaysByShift]",i)},nEt=async(e,t,n,r,i,o,a,s,l,c)=>{const u=new Ye,d=[];return d.push({name:"DelayId",value:e}),d.push({name:"AssetId",value:t}),d.push({name:"Start",value:n?n.toISOString():null}),d.push({name:"End",value:r?r.toISOString():null}),d.push({name:"DelayCodeId",value:i}),d.push({name:"DelayCategoryId",value:o}),d.push({name:"Comments",value:a}),d.push({name:"WhatDescription",value:s}),d.push({name:"WhyDescription",value:l}),d.push({name:"SolutionDescription",value:c}),await u.callV2("[DEL].[UpsertManualDelay]",d)},hTe=async(e,t,n,r,i,o,a)=>{const s=new Ye,l=[];return l.push({name:"DelayId",value:e}),l.push({name:"DelayCodeId",value:t}),l.push({name:"DelayCategoryId",value:n}),l.push({name:"Comments",value:r}),l.push({name:"WhatDescription",value:i}),l.push({name:"WhyDescription",value:o}),l.push({name:"SolutionDescription",value:a}),await s.callV2("[DEL].[JustifyDelay]",l)},d_i=async e=>{const t=new Ye,n=[];return n.push({name:"DelayAreaAssetId",value:e}),await t.callV2("[DEL].[GetDelayCodes]",n)},p_i=async e=>{const t=new Ye,n=[];return n.push({name:"DelayId",value:e}),await t.callV2("[DEL].[GetDelay]",n)},h_i=async e=>{const t=new Ye,n=[];return n.push({name:"DelayId",value:e}),await t.callV2("[DEL].[DeleteManualDelay]",n)},rEt=async(e,t)=>{const n=new Ye,r=e.End?.toISOString(),i=[{name:"DelayId",value:e.DelayId},{name:"SplitTime",value:r},{name:"DelayCodeId1",value:e.DelayCodeId},{name:"DelayCodeId2",value:t.DelayCodeId},{name:"DelayCategoryId1",value:e.DelayCategoryId},{name:"DelayCategoryId2",value:t.DelayCategoryId},{name:"Comments1",value:e.Comments},{name:"Comments2",value:t.Comments}];return await n.callV2("[DEL].[SplitDelay]",i)},f_i=Et(e=>({sliderContainer:{position:"relative",marginBottom:e.spacing(4),paddingTop:e.spacing(3)},durationLabel:{position:"absolute",top:0,transform:"translateX(-50%)",textAlign:"center",fontSize:"0.75rem",backgroundColor:"rgba(255, 255, 255, 0.7)",padding:"2px 4px",borderRadius:"4px",fontWeight:"bold"},infoLabel:{fontSize:12,color:"#757575"},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"& .MuiOutlinedInput-input":{height:"100px !important"}}})),pZe=e=>{const t=Math.floor(e/36e5),n=Math.floor(e%(1e3*60*60)/(1e3*60)),r=Math.floor(e%(1e3*60)/1e3);return`${t} hs ${n} min ${r} sec`},g_i=({show:e,onHide:t,delay:n,refreshData:r})=>{const o=f_i(),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(null),[p,h]=v.useState(!1),[g,m]=v.useState(!1),b=new Date,y=new Date;b.setMinutes(y.getMinutes()-30);const M=n?.Start?mt.utc(n.Start).toDate():new Date,C=n?.End?mt.utc(n.End).toDate():new Date,x=async q=>{const $=q.delay1.End.getTime()-q.delay1.Start.getTime(),U=q.delay2.End.getTime()-q.delay2.Start.getTime();if($<=10*1e3||U<=10*1e3){m(!0);return}const X=await rEt(q.delay1,q.delay2);X.ok?(h(!0),await r()):c(X.message),t()},{searchDelays:w}=F3e({setSearchError:c,setAllDelayLoading:s}),{loadFilterDelays:S}=wte(),{state:{allDelayCodes:A,delayCodes:z}}=Hb(),{state:{categories:O}}=RM(),{control:T,handleSubmit:R,setValue:P,getValues:F,reset:N,formState:{errors:L}}=jn({});v.useEffect(()=>{e&&n&&(N(),(async()=>{s(!0);const q=new Date((M.getTime()+C.getTime())/2);P("delay1.DelayId",n.DelayId),P("delay1.Start",M),P("delay1.End",q),P("delay2.Start",q),P("delay2.End",C),P("delay1.DelayCategoryId",n.DelayCategoryId),P("delay1.Comments",n.Comments),P("delay1.DelayCodeId",n.DelayCodeId),d(q),w(n.AssetId?n.AssetId:0),s(!1)})())},[e,n]);const W=pZe((F("delay1.End")?.getTime()??M.getTime())-(F("delay1.Start")?.getTime()??M.getTime())),j=pZe((F("delay2.End")?.getTime()??M.getTime())-(F("delay2.Start")?.getTime()??M.getTime()));v.useEffect(()=>{if(A.length>0){S();const q=A.find($=>$.DelayCodeId===n?.DelayCodeId);q&&P("delay1.DelayCodeName",q.DelayCodeName)}},[A]);const[V,G]=v.useState(n?.Start);return f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Split Delay"}),f.jsx(We,{title:"SPLIT DELAY",open:e,handleClose:()=>t(),id:"create-grade-modal",maxWidth:"lg",children:f.jsxs("form",{onSubmit:R(x),children:[f.jsx(We.Content,{dividers:!0,children:f.jsxs(D,{container:!0,justifyContent:"center",children:[f.jsxs(D,{md:10,style:{marginBottom:10},className:o.sliderContainer,children:[f.jsx(vt,{className:o.durationLabel,style:{left:"25%",color:"#3f51b5"},children:W}),f.jsx(vt,{className:o.durationLabel,style:{left:"75%",color:"green"},children:j}),f.jsx(tEt,{startTime:M,endTime:C,initialValue:u,onTimeChange:q=>{G(q),P("delay1.End",q),P("delay2.Start",q)}})]}),f.jsxs(D,{container:!0,md:5,children:[f.jsx(vt,{children:"Delay 1"}),f.jsxs(D,{container:!0,md:12,spacing:1,style:{marginTop:10},children:[f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.Start",control:T,rules:{required:"Delay code is required"},render:({field:q})=>f.jsx(je,{label:"Start",variant:"outlined",value:Wn(q?.value,"HH:mm:ss"),error:!!L.delay1?.Start,onChange:()=>{},disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.DelayCodeName",control:T,render:({field:q})=>f.jsxs(f.Fragment,{children:[f.jsx(oD,{inputTitle:"Delay",title:"Delay",dataSource:z,value:n?.DelayCodeId||0,description:q.value?q?.value:"",onSelect:($,U)=>{P("delay1.DelayCodeId",$),P("delay1.DelayCodeName",U),P("delay1.DelayCategoryId",A.find(X=>$===X.DelayCodeId)?.DelayCategoryId||null)},selectBranch:!0,selectActive:!1,selectInternal:!1}),L.delay1?.DelayCodeId&&f.jsx("span",{children:L.delay1?.DelayCodeId.message})]})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.End",control:T,render:({field:q})=>f.jsx(je,{label:"End",variant:"outlined",value:Wn(q?.value,"HH:mm:ss"),disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"delay1.DelayCategoryId",control:T,render:({field:q})=>f.jsx(uM,{value:q.value,onChange:q.onChange,assetId:n?.AssetId||null,error:L.delay1?.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,md:12,children:f.jsx(Ue,{name:"delay1.Comments",control:T,render:({field:q})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",error:!!L.delay1?.Comments,value:q?.value,fullWidth:!0,maxRows:5,multiline:!0,margin:"dense",autoComplete:"off",onChange:$=>{$.target.value.length<=200&&P("delay1.Comments",$.target.value)}}),F("delay1.Comments")?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${F("delay1.Comments")?.length??0}/200 max.`}),F("delay1.Comments")?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})})]})]}),f.jsx(D,{md:1}),f.jsxs(D,{container:!0,md:5,children:[f.jsx(vt,{children:"Delay 2"}),f.jsxs(D,{container:!0,md:12,spacing:1,style:{marginTop:10},children:[f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.Start",control:T,render:({field:q})=>f.jsx(je,{label:"Start",variant:"outlined",value:Wn(q?.value,"HH:mm:ss"),error:!!L.delay2?.Start,disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.DelayCodeName",control:T,render:({field:q})=>f.jsxs(f.Fragment,{children:[f.jsx(oD,{inputTitle:"Delay",title:"Delay",dataSource:z,value:n?.DelayCodeId||0,description:q.value?q?.value:"",onSelect:($,U)=>{P("delay2.DelayCodeId",$),P("delay2.DelayCodeName",U),P("delay2.DelayCategoryId",A.find(X=>$===X.DelayCodeId).DelayCategoryId)},selectBranch:!0,selectActive:!1,selectInternal:!1}),L.delay2?.DelayCodeId&&f.jsx("span",{children:L.delay2?.DelayCodeId.message})]})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.End",control:T,render:({field:q})=>f.jsx(je,{label:"End",variant:"outlined",value:Wn(q?.value,"HH:mm:ss"),disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"delay2.DelayCategoryId",control:T,render:({field:q})=>f.jsx(uM,{value:q.value,onChange:q.onChange,assetId:n?.AssetId||null,error:L.delay2?.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,md:12,children:f.jsx(Ue,{name:"delay2.Comments",control:T,render:({field:q})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",error:!!L.delay1?.Comments,value:q?.value,fullWidth:!0,minRows:5,multiline:!0,margin:"dense",autoComplete:"off",onChange:$=>{$.target.value.length<=200&&P("delay2.Comments",$.target.value)}}),F("delay2.Comments")?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${F("delay2.Comments")?.length??0}/200 max.`}),F("delay2.Comments")?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})})]})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 90px 30px"},children:f.jsxs(D,{container:!0,spacing:1,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:2,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"medium",children:"Cancel"})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsx(Ne,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:"primary",type:"submit",size:"medium",children:"Split"})})]})})]})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:()=>m(!1),children:f.jsxs(Pr,{elevation:6,variant:"filled",severity:"error",onClose:()=>m(!1),children:["The minimum duration allowed is ",10," seconds"]})}),f.jsx(pr,{open:p,autoHideDuration:2500,onClose:()=>h(!1),children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:()=>h(!1),children:"The operation was completed successfully"})}),f.jsx(yt,{error:l,onHide:()=>c(""),title:"Error Creating Grade"})]})},m_i={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:null,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:null,NextEnd:null,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date},delays:[],assetForDelayArea:null,selectedDelay:null,errorMessage:"",notificationMessage:"",shiftId:!1,anchorPoint:{x:0,y:0}},GY=ki({name:"__",initialState:m_i,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setDelays(e,{payload:t}){e.delays=t},setAssetForDelayArea(e,{payload:t}){e.assetForDelayArea=t},setSelectedDelay(e,{payload:t}){e.selectedDelay=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t}}}),iEt=v.createContext({state:GY.getInitialState(),actions:GY.actions}),g6=()=>v.useContext(iEt),v_i=({children:e})=>{const{shiftId:t}=ds(),[n,r]=Fi.useComplexState({initialState:GY.getInitialState(),reducers:GY.caseReducers});return v.useEffect(()=>{const i=Number(t);gi(t)||isNaN(i)?r.setShiftId(null):r.setShiftId(i)},[t]),f.jsx(iEt.Provider,{value:{state:n,actions:r},children:e})},b_i=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(""),{actions:{setSelectedDelay:u}}=g6(),{shiftInfo:d}=na(),p=v.useCallback(()=>{u({DelayId:0,eafOpen:d?.CurrentProductionDate??new Date,eafClose:d?.CurrentProductionDate??new Date,eafOpenString:"",eafCloseString:"",IsActive:!0}),t(!0)},[d?.CurrentProductionDate,u]),h=M=>{u(M),M.IsManual&&t(!0)},g=M=>{u(M),o(!0)},m=M=>{u(M),s(!0)},b=M=>{u(M);const C=Wn(M.Start,"HH:mm:ss");c(`The delay at ${C} will be deleted. Do you want to continue?`),r(!0)};return{createData:p,editData:h,deleteData:b,justifyData:g,getMenuOptions:M=>{let C=[];return M?C=C.concat([{name:"Justify Delay",key:"justify_delay",onClick:()=>g(M),icon:f.jsx(GMe,{})},{name:"Edit Delay",key:"edit_delay",onClick:()=>h(M),icon:f.jsx(Fo,{}),disabled:!M.IsManual},{name:"Delete Delay",key:"delete_delay",onClick:()=>b(M),icon:f.jsx(Mo,{}),disabled:!M.IsManual},{name:"Split Delay",key:"split_delay",onClick:()=>m(M),icon:f.jsx(Zat,{})},{name:"New Delay",key:"create_new_delay",onClick:()=>p(),icon:f.jsx(Jo,{})}]):C=C.concat([{name:"New Delay",key:"create_new_delay",onClick:()=>p(),icon:f.jsx(Jo,{})}]),C},showDeleteModal:n,showEditModal:e,showJustifyModal:i,showSplitModal:a,messageDeleteModal:l,setShowDeleteModal:r,setShowEditModal:t,setShowJustifyModal:o,setShowSplitModal:s,setMessageDeleteModal:c}},y_i=Et(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center",fontSize:12},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600}},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),M_i=$ot(ja)({width:"100%","& .MuiInputBase-root":{height:"40px",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.23)","&:before, &:after":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},"& .MuiInputLabel-root":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",backgroundColor:"white",padding:"0 4px"}},"& .MuiSelect-select":{paddingTop:"0",paddingBottom:"0",height:"100%",display:"flex",alignItems:"center"}}),Dpe="__ASSET_FILTER_NULL_VALUE__",C_i=({value:e,onChange:t,title:n="Assets",nullValue:r="All",onlyAssets:i=!1,customStyles:o={},disabled:a=!1})=>{const[s,l]=v.useState(!1),[c,u]=v.useState(""),[d,p]=v.useState([]),h=async()=>{l(!0);const m=await Ote();if(m.ok){const b=m.data.tables[0].rows||[];if(i){const y=b.filter(M=>M.AssetName!=="EAF");p(y)}else p(b)}else u(m.message||"Failed to load assets");l(!1)};v.useEffect(()=>{(async()=>await h())()},[]);const g=E.useMemo(()=>{const m=[{value:Dpe,label:r}];return d.forEach(b=>{m.push({value:b.AssetId,label:b.AssetName})}),m},[d,r]);return f.jsxs(f.Fragment,{children:[f.jsxs(M_i,{variant:"outlined",children:[f.jsx(ol,{id:"delay-area-label",style:{paddingTop:4},children:n}),f.jsx(cs,{disabled:a,labelId:"delay-area-label",value:e===null?Dpe:e,endAdornment:s&&f.jsx(Kt,{size:20}),label:n,style:o,onChange:m=>{const b=m.target.value;t(b===Dpe?null:Number(b))},children:g.map(m=>f.jsx(lr,{value:m.value,children:m.label},m.value))})]}),f.jsx(yt,{error:c,onHide:()=>u("")})]})},XI=({options:e,value:t,onChange:n,label:r="",className:i=""})=>{const[o,a]=v.useState(t||""),s=Aut();v.useEffect(()=>{a(t||"")},[t]);const l=(c,u)=>{const d=s(c,u),p=u.inputValue;return p&&d.indexOf(p)===-1&&d.unshift(p),d};return f.jsx(Ki,{freeSolo:!0,options:e,value:t,inputValue:o,filterOptions:l,onInputChange:(c,u,d)=>{a(u),d==="clear"&&n(null)},onChange:(c,u)=>{n(!u||u===""?null:u)},autoHighlight:!0,clearOnEscape:!0,renderInput:c=>{const{InputProps:u,inputProps:d,...p}=c,h=d;return f.jsx(je,{...p,InputProps:u,inputProps:{...h,onBlur:g=>{h.onBlur?.(g),o?o!==t&&n(o):n(null)}},label:r,variant:"outlined",fullWidth:!0,size:"small",className:i})}})},x_i=Et(()=>({treePickerWrapper:{"& .MuiGrid-root.MuiGrid-container":{"& .MuiGrid-item":{"& .MuiFormControl-root":{"& .MuiInputBase-root":{"& .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5",height:"59px"}}}}}}})),w_i=e=>{const t=e.reduce((r,i,o)=>(r[i.id]=o,r),{});let n;return e.forEach(r=>{if(r.parentId===null){n=r;return}const i=e[t[r.parentId]];i&&(i.children=[...i?.children||[],r])}),n},fTe=({value:e,onChange:t,disabled:n,error:r,assetId:i})=>{const[o,a]=v.useState([]),[s,l]=v.useState(null),[c,u]=v.useState(!1),[d,p]=v.useState(null),h=x_i(),g=q3e(),m=async()=>{u(!0);try{const b=await d_i(i);if(b&&b.ok){const y=At(b,"data.tables[0].rows",[]);a(y);const M=w_i(y.map(C=>({id:C.DelayCodeId,parentId:C.ParentDelayCodeId,name:C.DelayCodeName,isLeaf:!!C.IsLeaf,isActive:!0,children:[],delayCategoryId:C.DelayCategoryId})));l(M)}else p("Failed to fetch delay codes.")}catch{p("An error occurred while fetching delay codes.")}finally{u(!1)}};return v.useEffect(()=>{i&&m()},[i]),f.jsxs("div",{className:h.treePickerWrapper,children:[s&&!c?f.jsx(f3e,{inputTitle:"Code",title:"Code",dataSource:s,value:e||0,onSelect:(b,y)=>t(b,o.find(M=>M.DelayCodeId===b)),selectBranch:!0,selectActive:!1,selectInternal:!1}):f.jsx(je,{disabled:!0,value:e,InputProps:{endAdornment:c?f.jsx(Kt,{size:20}):null},label:"Code",variant:"outlined",style:{cursor:"progress"},className:g.inputBase}),r&&f.jsx("span",{style:{color:"red"},children:r})]})};var _5={},hZe;function S_i(){if(hZe)return _5;hZe=1;var e=ri(),t=ii();Object.defineProperty(_5,"__esModule",{value:!0}),_5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");return _5.default=i,_5}var A_i=S_i();const oEt=qn(A_i);var N5={},fZe;function O_i(){if(fZe)return N5;fZe=1;var e=ri(),t=ii();Object.defineProperty(N5,"__esModule",{value:!0}),N5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");return N5.default=i,N5}var z_i=O_i();const aEt=qn(z_i),T_i=Et(()=>({dateTimePicker:{},"@global":{"*::-webkit-scrollbar":{width:"10px",background:"#fff"},"*::-webkit-scrollbar-thumb":{backgroundColor:"	#C8C8C8"},"*::-webkit-scrollbar-track":{borderRadius:"10px"},"*::-webkit-scrollbar:horizontal":{height:"10px"}},infoLabel:{fontSize:12,color:"#757575"},inputEditable:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}},treePickerWrapper:{"& .MuiGrid-root.MuiGrid-container":{"& .MuiGrid-item":{"& .MuiFormControl-root":{"& .MuiInputBase-root":{"& .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}}}}}},autocompleteWithSuggestions:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"& .MuiOutlinedInput-input":{height:"60px !important"}}})),E_i=({show:e,onHide:t,refreshData:n,delay:r,ifJustified:i})=>{const o=T_i();q3e();const[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(null),[p,h]=v.useState(!1),[g,m]=v.useState(""),[b,y]=v.useState(""),[M,C]=v.useState(!1),[x,w]=v.useState([]),[S,A]=v.useState([]),[z,O]=v.useState([]),{state:{settings:T}}=Ma(),{state:{defaultAreaId:R}}=jw(),{actions:{setNotificationMessage:P,setErrorMessage:F,setSelectedDelay:N}}=g6(),{loadFilterDelays:L}=wte(),W=At(T,"DELAYS_JUSTIFY_DURATION_TOLERANCE_IN_MINUTES",30),j=v.useMemo(()=>r?.Duration&&W?r.Duration>Number(W)*60:!0,[r?.Duration,W]),[V,G]=v.useState(j),q=async()=>{const le=await _3t();if(le.ok){const he=le.data;w(he.tables[0].rows.map(be=>be.Value)),A(he.tables[1].rows.map(be=>be.Value)),O(he.tables[2].rows.map(be=>be.Value))}else F(le.message)},{register:$,setValue:U,control:X,handleSubmit:Q,reset:re,watch:ee,formState:{errors:se}}=jn({defaultValues:{AssetId:r?.AssetId}}),pe=ee("Comments"),te=ee("Start"),ce=ee("End"),oe=ee("AssetId"),ae=(le,he)=>{U("DelayCodeId",le),U("DelayCategoryId",he.DelayCategoryId)},ne=async le=>{if(s(!0),i){const he=await hTe(le.DelayId,le.DelayCodeId??null,le.DelayCategoryId??null,le.Comments??null,le.WhatDescription,le.WhyDescription,le.SolutionDescription);he.ok?(P("Delay was justified successfully"),N(null),await n()):F(he.message)}else{const he=await nEt(le.DelayId===0?null:le.DelayId,le.AssetId,le.Start,le.End,le.DelayCodeId,le.DelayCategoryId,le.Comments,le.WhatDescription,le.WhyDescription,le.SolutionDescription);he.ok?(P("Delay was "+(p?"created":"edited")+" successfully"),N(null),await n()):F(he.message)}s(!1),t(!0)};return v.useEffect(()=>{e&&(c(!0),s(!1),(async()=>(L(),r&&(r?.DelayId===0?(re(),h(!0)):h(!1),m(i?"Justify Delay":r.DelayId===0?"New Delay":"Edit Delay"),re({AssetId:r.AssetId??(R&&R!=10?Number(R):null),DelayCodeId:r.DelayCodeId,DelayId:r.DelayId,Start:r.Start===null?null:mt.utc(r.Start).toDate(),End:r.End===null?null:mt.utc(r.End).toDate(),DelayCategoryId:r.DelayCategoryId,Comments:r.Comments,IsManual:r.IsManual,DelayCodeName:r.DelayCodeName,WhatDescription:r.WhatDescription,WhyDescription:r.WhyDescription,SolutionDescription:r.SolutionDescription}))))(),q(),c(!1))},[e,r]),v.useEffect(()=>{G(j)},[j,r]),v.useEffect(()=>{if(te&&ce){const le=mt.duration(mt(ce).diff(mt(te))),he=Math.floor(le.asMinutes()),be=le.seconds();y(`${he}m ${be}s`)}else y("")},[te,ce]),M?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:g}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,className:o.dateTimePicker,children:f.jsx(We,{maxWidth:"md",open:e,handleClose:()=>{t(!0)},id:"upsertDelay",title:g.toUpperCase(),children:f.jsxs("form",{onSubmit:Q(ne),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,style:{alignItems:"center"},children:[f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"Start",control:X,rules:{required:"Start date is required",validate:{notAfterEnd:le=>{const he=ee("End");return le&&he&&le>he?"Start date cannot be after End date.":!0},notInFuture:le=>le&&le>new Date?"Start date cannot be in the future.":!0}},render:({field:le})=>f.jsx(xd,{disabled:i,label:"Delay Start",timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm:ss",ampm:!1,value:mt(le.value),onChange:le.onChange,inputRef:le.ref,slotProps:{textField:{variant:"outlined",size:"small",error:!!se.Start}}})}),se.Start&&f.jsx("p",{style:{color:"red"},children:se.Start.message})]}),f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"End",control:X,rules:{validate:{notBeforeStart:le=>{const he=ee("Start");return le&&he&&le<he?"End date cannot be before Start date.":!0},notInFuture:le=>le&&le>new Date?"End date cannot be in the future.":!0,notSameAsStart:le=>{const he=ee("Start");return le&&he&&mt(le).isSame(mt(he))?"End date cannot be the same as Start date.":!0}}},render:({field:le})=>f.jsx(xd,{disabled:i,label:"Delay End",format:"MM/DD/YYYY HH:mm:ss",ampm:!1,timezone:Ic.getInstance().getServerTimeZone(),value:mt(le.value),onChange:le.onChange,inputRef:le.ref,slotProps:{textField:{variant:"outlined",size:"small",error:!!se.End}}})}),se.End&&f.jsx("p",{style:{color:"red"},children:se.End.message})]}),f.jsx(D,{item:!0,xs:4,md:4,style:{marginBottom:"3px"},children:f.jsx(je,{label:"Duration (min)",disabled:!0,variant:"outlined",fullWidth:!0,value:b,margin:"dense",autoComplete:"off"})})]}),f.jsxs(D,{container:!0,spacing:1,style:{alignItems:"center",marginTop:"12px"},children:[f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"AssetId",control:X,rules:{validate:le=>le==14?"Choose an option to continue":le?!0:"Asset is required"},render:({field:le})=>f.jsx(C_i,{value:le.value,onChange:le.onChange,onlyAssets:!0,title:"Asset",nullValue:"",disabled:i,customStyles:{height:"52px",border:i?"":`2px solid ${se.AssetId?"red":"#3F51B5"}`}})}),se.AssetId&&f.jsx("span",{style:{color:"red"},children:se.AssetId.message})]}),f.jsx(D,{item:!0,xs:4,md:4,style:{marginBottom:"3px"},children:f.jsx(Ue,{name:"DelayCodeId",control:X,render:({field:le})=>f.jsx(fTe,{assetId:oe,value:le.value,disabled:!oe,onChange:(he,be)=>{ae(he,be)}},`DelayCodeId-${oe}`)})}),f.jsx(D,{item:!0,xs:4,md:4,children:f.jsx(Ue,{name:"DelayCategoryId",control:X,render:({field:le})=>f.jsx(uM,{value:le.value,onChange:le.onChange,assetId:oe,error:se.DelayCategoryId?.message||""})})})]}),f.jsxs(D,{item:!0,md:12,xs:12,style:{marginTop:"12px"},children:[f.jsx(Ue,{name:"Comments",control:X,render:({field:{value:le,onChange:he}})=>f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",style:{margin:"8px 0"},maxRows:4,fullWidth:!0,margin:"dense",multiline:!0,autoComplete:"off",value:le??"",onChange:be=>{be.target.value.length<=200&&he(be)}})}),f.jsx(D,{container:!0,style:{marginBottom:18},spacing:1,children:f.jsxs(D,{item:!0,children:[pe?.length>=1&&pe?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${pe?.length}/200 max.`}),pe?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(So,{control:f.jsx(Qr,{...$("IsManual"),color:"primary",checked:p||r?.IsManual,disabled:!0}),label:"Manual Delay"})})]}),f.jsxs(D,{item:!0,xs:12,md:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Ne,{onClick:()=>G(le=>!le),color:"primary",startIcon:V?f.jsx(oEt,{}):f.jsx(aEt,{}),children:"Upset Conditions"})}),V&&f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"WhatDescription",control:X,render:({field:le})=>f.jsx(XI,{options:x,value:le.value,onChange:le.onChange,label:"What",className:o.autocompleteWithSuggestions})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"WhyDescription",control:X,render:({field:le})=>f.jsx(XI,{options:S,value:le.value,onChange:le.onChange,label:"Why",className:o.autocompleteWithSuggestions})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"SolutionDescription",control:X,render:({field:le})=>f.jsx(XI,{options:z,value:le.value,onChange:le.onChange,label:"Solution",className:o.autocompleteWithSuggestions})})})]})," "]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})})})}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},R_i=Et(e=>({textField:{"& .MuiOutlinedInput-input":{height:"60px !important"}}})),I_i=({delay:e,onHide:t,open:n})=>{const r=R_i();return f.jsx(f.Fragment,{children:f.jsxs(We,{open:n,handleClose:t,id:"upset-condition-modal",title:"Upset Conditions",maxWidth:"md",children:[f.jsx(We.Content,{children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{variant:"outlined",fullWidth:!0,size:"small",label:"What",value:e?.WhatDescription,disabled:!0,multiline:!0,className:r.textField})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{variant:"outlined",fullWidth:!0,size:"small",multiline:!0,label:"Why",value:e?.WhyDescription,disabled:!0,className:r.textField})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{variant:"outlined",fullWidth:!0,size:"small",multiline:!0,label:"Solution",value:e?.SolutionDescription,disabled:!0,className:r.textField})})]})}),f.jsx(We.Actions,{children:f.jsx(D,{container:!0,spacing:2,justifyContent:"flex-end",children:f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:t,size:"small",children:"Close"})})})})]})})},P_i=Et({container:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%"},colorCircle:{width:"26px",height:"26px",borderRadius:4,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold",marginRight:"8px"}}),Dte=({value:e})=>{const t=P_i();return!e||!e.name||!e.color?null:f.jsxs(D,{container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,md:2,children:f.jsx("div",{title:e.name,className:t.colorCircle,style:{backgroundColor:e.color},children:e.name.charAt(0).toUpperCase()})}),f.jsx(D,{item:!0,justifyContent:"center",md:10,children:e.name})]})},D_i=({})=>({columns:[{field:"AssetName",headerName:"Asset",maxWidth:95,minWidth:95,editable:!1,flex:1},{field:"Start",headerName:"Start",valueGetter:t=>Wn(`${t.data?.Start}`,"HH:mm:ss")||"",minWidth:80,flex:1},{field:"End",headerName:"End",valueGetter:t=>Wn(`${t.data?.End}`,"HH:mm:ss")||"",minWidth:80,flex:1},{field:"Duration",headerName:"Duration",valueFormatter:t=>{if(t.value){const n=mt.duration(t.value,"seconds"),r=Math.floor(n.asMinutes()),i=n.seconds();return`${r}m ${i}s`}return""},minWidth:110,flex:1},{field:"DelayCategory",headerName:"Category",valueGetter:t=>{const n=t.data?.DelayCategoryName,r=t.data?.DelayCategoryColor;return{name:n,color:r}},cellRenderer:Dte,maxWidth:150,minWidth:150,editable:!1,flex:1},{field:"DelayCodeName",headerName:"Code",valueGetter:t=>t.data?.DelayCodeName||"No Classified",minWidth:150,editable:!1,flex:1},{field:"Comments",headerName:"Comments",minWidth:118,flex:5},{field:"JustifiedByUser",headerName:"User",minWidth:100,editable:!1,flex:1},{field:"JustifiedDatetime",headerName:"Justification Date",valueGetter:t=>Wn(t.data?.JustifiedDatetime,"MM/dd - HH:mm"),minWidth:180,flex:1},{field:"IsManual",headerName:"",type:["nonSorteable","nonFilterable","centerAligned"],cellRenderer:yte,cellClass:"ag-button-cell",flex:1,maxWidth:60},{field:"Name",headerName:"",type:["nonSorteable","nonFilterable","optionsButton"],maxWidth:150,minWidth:150,editable:!1,flex:1}]}),k_i=Et(e=>({unclassifiedRow:{"&.ag-row":{backgroundColor:"#E8C8C8 !important"},"&.ag-row:hover":{backgroundColor:"#E0B0B0 !important"},"&.ag-row-selected":{backgroundColor:"#D8A8A8 !important"}}})),L_i=({loadingGrid:e,rows:t,refreshData:n})=>{const r=y_i(),i=k_i(),o=v.useRef(null),{columns:a}=D_i({}),[s,l]=v.useState(!1),[c,u]=v.useState(null),[d,p]=Zu(),{state:h,actions:g}=g6(),{state:{selectedDelay:m,anchorPoint:{x:b,y},errorMessage:M},actions:{setSelectedDelay:C,setIsLoadingBackground:x,setNotificationMessage:w,setErrorMessage:S}}=g6(),[A,z]=v.useState(""),[O,T]=v.useState(!1),[R,P]=v.useState(null),{createData:F,editData:N,deleteData:L,justifyData:W,getMenuOptions:j,showDeleteModal:V,showEditModal:G,showJustifyModal:q,messageDeleteModal:$,setShowDeleteModal:U,setShowEditModal:X,setMessageDeleteModal:Q,setShowJustifyModal:re,showSplitModal:ee,setShowSplitModal:se}=b_i(),{searchDelays:pe}=F3e({setSearchError:z,setAllDelayLoading:T}),{actions:{setCategories:te}}=RM(),ce=async ie=>{l(!0);const ue=await wj(ie);ue.ok?te(ue.data.tables[0].rows):z(ue.message),l(!1)},{showContextMenu:oe,registerConfig:ae}=ws(),ne=ie=>{if(!ie.data.IsActive||ie.data.IsMicroDelay)return{background:"#E8EBEB"};if(!ie.data.DelayCodeName||!ie.data.DelayCategoryName)return{background:"#E8C8C8"}},le=ie=>!ie.data.DelayCodeName||!ie.data.DelayCategoryName?i.unclassifiedRow:"",he=ie=>{P(ie.api)},be=ie=>{ie.node.selected&&p({delayId:ie.data.DelayId},{replace:!0})},me=async ie=>{if(U(!1),Q(""),ie!=="OK"||m===null)return;x(!0);const ue=await h_i(m.DelayId);ue.ok?(x(!1),w("Delay deleted successfully"),C(null),await n()):(x(!1),S(ue.message))},{columnTypes:Me}=ku({OnEdit:N});Me.optionsButton={field:"options",headerName:"",cellRenderer:ie=>f.jsxs("div",{className:r.buttons,children:[f.jsx(bn,{"aria-label":"justify-icon",title:"Justify",style:{cursor:"pointer"},onClick:()=>W(ie.data),children:f.jsx(GMe,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(bn,{"aria-label":"Upset Conditions",title:"Upset Conditions",disabled:!ie.data.WhatDescription&&!ie.data.WhyDescription&&!ie.data.SolutionDescription,style:{cursor:"pointer"},children:f.jsx(i_i,{fontSize:"inherit",color:!ie.data.WhatDescription&&!ie.data.WhyDescription&&!ie.data.SolutionDescription?"disabled":"primary",style:{cursor:"pointer"},onClick:()=>{u(ie.data)}})}),ie.data.IsManual&&f.jsx(bn,{"aria-label":"delete-icon",style:{cursor:"pointer"},title:"Delete",onClick:()=>{L(ie.data)},children:f.jsx(Mo,{fontSize:"inherit",color:"secondary",style:{cursor:"pointer"}})}),f.jsx(bn,{"aria-label":"Options",title:"Options",style:{cursor:"pointer"},onClick:ue=>oe(ue,ie.data,"delaysManagerContext"),children:f.jsx(Cj,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})})]}),cellClass:r.buttons},v.useEffect(()=>{e&&o.current!==null&&o.current.api!==void 0?o.current.api.showLoadingOverlay():o.current!==null&&o.current.api!==void 0&&o.current.api.hideOverlay(),pe(11),ce(11)},[e]);const Oe=ie=>{const ue=ie.node?.data;ue&&(ie.api.deselectAll(),ie.node?.setSelected(!0),C(ue),oe(event,ue,"delaysManagerContext"));const Ae=[];return ue||Ae.push({name:"New Manual Delay",icon:s_i.renderToStaticMarkup(f.jsx(Jo,{})),action:()=>X(!0)}),Ae};v.useEffect(()=>{ae({id:"delaysManagerContext",getOptions:j})},[]);const de=d.get("delayId");return v.useEffect(()=>{if(R&&!h.isLoadingGrid&&t.length>0&&de){const ie=R?.getRowNode(de);ie?(ie.setSelected(!0,!0),R.ensureNodeVisible(ie,"top")):p({},{replace:!0})}},[R,h.isLoadingGrid,t,de]),f.jsxs("div",{onContextMenu:ie=>ie.preventDefault(),children:[f.jsx("div",{children:f.jsx(D,{container:!0,className:r.root,children:f.jsxs(D,{item:!0,md:12,xs:12,style:{border:"1px solid #ccc",borderRadius:"4px",minHeight:"60vh"},children:[f.jsx(il,{title:"Confirmation",message:$,open:V,onClose:me}),f.jsx(E_i,{show:G||q,onHide:()=>{X(!1),re(!1)},refreshData:n,delay:m,ifJustified:q}),f.jsx(g_i,{show:ee,onHide:()=>se(!1),refreshData:n,delay:m}),f.jsx($n,{ref:o,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,onCellDoubleClicked:ie=>W(ie.data),tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:a,columnTypes:Me,getRowClass:le,getRowStyle:ne,getRowId:ie=>ie.data.DelayId,getContextMenuItems:Oe,onRowSelected:be,onGridReady:he}),f.jsx(D,{container:!0,justifyContent:"flex-end",children:f.jsx(D,{item:!0,md:2,xs:12,className:r.btnModal,children:f.jsx(Ne,{variant:"contained",color:"primary",fullWidth:!0,style:{margin:"1.5rem 0px 0px"},onClick:()=>{F()},children:"NEW DELAY"})})})]})})}),f.jsx(yt,{error:M,onHide:()=>S("")}),f.jsx(I_i,{delay:c,onHide:()=>u(null),open:!!c})]})},__i=({asset:e})=>{const t=e==="caster"?13:e==="eaf"?14:null,n=e==="caster"?"Caster":e==="eaf"?"EAF":null,{state:r,actions:i}=g6(),{shiftInfo:o,getShiftDataFromAPI:a}=na(),[s,l]=v.useState(t),[c,u]=v.useState(!1),[d,p]=v.useState(!1),{shiftId:h}=ds(),[g]=Zu(),[m,b]=v.useState(!0),y=Oo(),M=async x=>{try{if(i.setIsLoadingGrid(!0),p(!0),!r.assetForDelayArea||r.assetForDelayArea.length===0){const A=await Ote();if(A.ok)i.setAssetForDelayArea(A.data.tables[0].rows);else{i.setErrorMessage("Error loading delay areas");return}}const w=At(x||o,"CurrentShiftId",0),S=await u_i(w||0,s,c);S.ok&&S.data.tables.length>0?i.setDelays(S.data.tables[0].rows):i.setErrorMessage("Error loading delays")}catch{i.setErrorMessage("An unexpected error occurred")}finally{i.setIsLoadingGrid(!1),p(!1)}};v.useEffect(()=>{l(t)},[e,t]),v.useEffect(()=>{if(o&&!m){const x=At(o,"CurrentShiftId",null),w=g.get("delayId"),S=[];w&&S.push(`delayId=${w}`);const A=S.length?`?${S.join("&")}`:"",z=`/${e}-delays-manager`;y(`${z}/${x}${A}`),(async()=>await M())()}},[o,s,c]),v.useEffect(()=>{h?(async()=>a(null,Number(h)).then(async x=>{x&&M(x).then(()=>{b(!1)})}))():(async()=>a(null,0).then(async x=>{x&&M(x).then(()=>{b(!1)})}))()},[]);const C=()=>{if(e==="eaf"){const w=(r.assetForDelayArea||[]).filter(S=>S.AssetName&&S.AssetName.includes("EAF "));if(t)return[{AssetId:t,AssetName:"All"},...w]}return r.assetForDelayArea||[]};return!r.isLoadingPage&&t?f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:`${n} Delays Manager`}),f.jsxs(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:r.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(vt,{variant:"h5",style:{fontWeight:600},children:[n," Delays Manager"]})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(qm,{preventInit:!0}),f.jsx(Pt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsxs(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},direction:"row",children:[e==="eaf"&&f.jsx(D,{item:!0,children:f.jsx(t_i,{delayAreas:C(),selectedDelayArea:s,isLoading:d,onChange:x=>{l(x)}})}),f.jsx(D,{item:!0,children:f.jsx(OD,{children:f.jsx(So,{control:f.jsx(Qr,{checked:c,color:"primary",onChange:x=>u(x.target.checked)}),label:"Microdelays"})})})]})})]})}),f.jsx(yt,{error:r.errorMessage,onHide:()=>i.setErrorMessage("")}),f.jsx(jm,{message:r.notificationMessage,onHide:()=>i.setNotificationMessage("")}),f.jsx(L_i,{loadingGrid:r.isLoadingGrid,rows:r.delays||[],refreshData:M})]})})]})]}):f.jsx(Cn,{})},FG=({asset:e})=>f.jsx(J4i,{children:f.jsx(xte,{children:f.jsx(xj,{children:f.jsx(v_i,{children:f.jsx(__i,{asset:e})})})})}),N_i={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,isLoadingShifts:!1,isLoadingCrews:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:null,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:null,NextEnd:null,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date},delays:[],filteredDelays:[],assetForDelayArea:null,selectedDelay:null,errorMessage:"",notificationMessage:"",shiftId:!1,anchorPoint:{x:0,y:0},shiftsList:[],crewsList:[]},$Y=ki({name:"__",initialState:N_i,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setIsLoadingShifts(e,{payload:t}){e.isLoadingShifts=t},setIsLoadingCrews(e,{payload:t}){e.isLoadingCrews=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setDelays(e,{payload:t}){e.delays=t,e.filteredDelays=t},setFilteredDelays(e,{payload:t}){e.filteredDelays=t},setAssetForDelayArea(e,{payload:t}){e.assetForDelayArea=t},setSelectedDelay(e,{payload:t}){e.selectedDelay=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t},setShiftsList(e,{payload:t}){e.shiftsList=t},setCrewsList(e,{payload:t}){e.crewsList=t}}}),sEt=v.createContext({state:$Y.getInitialState(),actions:$Y.actions}),Sj=()=>v.useContext(sEt),F_i=({children:e})=>{const{shiftId:t}=ds(),[n,r]=Fi.useComplexState({initialState:$Y.getInitialState(),reducers:$Y.caseReducers});return v.useEffect(()=>{const i=Number(t);gi(t)||isNaN(i)?r.setShiftId(null):r.setShiftId(i)},[t]),f.jsx(sEt.Provider,{value:{state:n,actions:r},children:e})},W_i=Et(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center",fontSize:12},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600}},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),Bh=e=>({...e,sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0}),q_i=()=>({columns:[Bh({field:"Start",headerName:"Date",valueGetter:t=>Wn(`${t.data?.Start}`,"MM/dd")||"",minWidth:73,maxWidth:73,flex:1}),Bh({field:"Shift",headerName:"Shift",valueGetter:t=>t.data?.Shift||"",minWidth:75,maxWidth:76,flex:1,cellRenderer:t=>f.jsx(X3e,{shift:t.value,size:"small"}),cellClass:t=>`shift-chip-${t.value}`}),Bh({field:"Crew",headerName:"Crew",valueGetter:t=>t.data?.Crew||"",minWidth:76,maxWidth:76,flex:1,cellRenderer:t=>f.jsx(Y3e,{crew:t.value,size:"small"}),cellClass:t=>`crew-chip-${t.value}`}),Bh({field:"Start",headerName:"Start",valueGetter:t=>Wn(`${t.data?.Start}`,"HH:mm:ss")||"",minWidth:75,maxWidth:100,flex:1}),Bh({field:"End",headerName:"End",valueGetter:t=>Wn(`${t.data?.End}`,"HH:mm:ss")||"",minWidth:75,maxWidth:100,flex:1}),Bh({field:"Duration",headerName:"Duration",valueFormatter:t=>{if(t.value){const n=mt.duration(t.value,"seconds"),r=Math.floor(n.asMinutes()),i=n.seconds();return`${r}m ${i}s`}return""},minWidth:95,maxWidth:100,flex:1}),Bh({field:"AssetName",headerName:"Asset",minWidth:80,maxWidth:100,editable:!1,flex:1}),Bh({field:"DelayCategory",headerName:"Category",valueGetter:t=>{const n=t.data?.DelayCategoryName,r=t.data?.DelayCategoryColor;return{name:n,color:r}},cellRenderer:Dte,maxWidth:190,minWidth:190,editable:!1,flex:1}),Bh({field:"DelayCodeName",headerName:"Code",valueGetter:t=>t.data?.DelayCodeName||"No Classified",minWidth:150,editable:!1,flex:1}),Bh({field:"Comments",headerName:"Comments",minWidth:180,flex:1,cellStyle:{justifyContent:"flex-start"}}),Bh({field:"JustifiedByUser",headerName:"User",minWidth:80,editable:!1,flex:1}),Bh({field:"JustifiedDateTime",headerName:"Justification",valueGetter:t=>Wn(t.data?.JustifiedDatetime,"MM-dd HH:mm")||"",minWidth:180,flex:1})]}),B_i=({loadingGrid:e,rows:t,gridRef:n})=>{const r=W_i(),{columns:i}=q_i(),{state:{anchorPoint:{x:o,y:a},errorMessage:s},actions:{setErrorMessage:l}}=Sj(),c=d=>{if(!d.data.IsActive||d.data.IsMicroDelay)return{background:"#E8EBEB"};if(!d.data.DelayCodeName||!d.data.DelayCategoryName)return{background:"#E8C8C8"}};v.useEffect(()=>{e&&n.current!==null&&n.current.api!==void 0?n.current.api.showLoadingOverlay():n.current!==null&&n.current.api!==void 0&&n.current.api.hideOverlay()},[e]);const u=d=>(d.node?.data,[]);return f.jsxs("div",{onContextMenu:d=>d.preventDefault(),children:[f.jsx("div",{children:f.jsx(D,{container:!0,className:r.root,children:f.jsx(D,{item:!0,md:12,xs:12,style:{border:"1px solid #ccc",borderRadius:"4px",minHeight:"75vh"},children:f.jsx($n,{ref:n,rowSelection:"single",pagination:!1,animateRows:!0,rowHeight:35,headerHeight:35,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:i,getContextMenuItems:u,getRowStyle:c})})})}),f.jsx(yt,{error:s,onHide:()=>l("")})]})},j_i=()=>{const{actions:{setShiftsList:e,setCrewsList:t,setIsLoadingShifts:n,setIsLoadingCrews:r}}=Sj();return async()=>{n(!0),r(!0),e([]),t([]);const i=await L3t();if(i.ok){const o=At(i,"data",[]),a=o?.tables[0].rows,s=o?.tables[1].rows,l=[{Shift:"All"},...a],c=[{Crew:"All"},...s];e(l),t(c)}n(!1),r(!1)}},H_i=Et(()=>({formControl:{minWidth:"100%"},select:{height:40,paddingTop:5,backgroundColor:"#FFF","& .MuiOutlinedInput-input":{paddingTop:10,paddingBottom:10}}})),V_i=({filterCrew:e,onFilterCrewChange:t})=>{const n=H_i(),{state:{crewsList:r,isLoadingCrews:i}}=Sj();v.useEffect(()=>{!e&&r.length>0&&t("All")},[r,e,t]);const o=a=>{t(a.target.value)};return f.jsxs(Iw,{variant:"outlined",className:n.formControl,children:[f.jsx(Rw,{id:"crew-select-label",children:"Crew"}),f.jsx(vM,{labelId:"crew-select-label",id:"crew-select",value:e,onChange:o,label:"Crew",className:n.select,disabled:i,endAdornment:i?f.jsx(K6,{size:20}):null,children:r.map(a=>f.jsx(Zb,{value:a.Crew,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(Y3e,{crew:a.Crew,size:"small"}),f.jsx("span",{children:a.Crew})]})},`crew-${a.Crew}`))})]})},G_i=rt(Iw)({width:"100%","& .MuiInputBase-root":{height:"40px",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.23)","&:hover":{borderColor:"rgba(0, 0, 0, 0.87)"},"&:before, &:after":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},"& .MuiInputLabel-root":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",backgroundColor:"white",padding:"0 4px"}},"& .MuiSelect-select":{paddingTop:"0",paddingBottom:"0",height:"100%",display:"flex",alignItems:"center"}}),$_i=({delayAreas:e,selectedDelayArea:t,onChange:n})=>f.jsxs(G_i,{variant:"outlined",children:[f.jsx(Rw,{id:"delay-area-label",children:"Delay Area"}),f.jsx(vM,{labelId:"delay-area-label",value:t===null?"all":t,label:"Delay Area",onChange:r=>{const i=r.target.value;n(i==="all"?null:i)},children:e.map(r=>f.jsx(Zb,{value:r.AssetId,children:r.AssetName},r.AssetId))})]}),U_i=Sn(),X_i=({value:e,onChange:t})=>f.jsx(_f,{label:"End",format:"MM/DD/YYYY",value:U_i(e),onChange:n=>{t(n?n.toDate():null)},slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px",padding:10}}}}}),Y_i=Et(()=>({select:{height:40,paddingTop:5,backgroundColor:"#FFF","& .MuiOutlinedInput-input":{paddingTop:10,paddingBottom:10}}})),K_i=({filterShift:e,onFilterShiftChange:t})=>{const n=Y_i(),{state:{shiftsList:r,isLoadingShifts:i}}=Sj();v.useEffect(()=>{!e&&r.length>0&&t("All")},[r,e,t]);const o=a=>{t(a.target.value)};return f.jsxs(Iw,{variant:"outlined",children:[f.jsx(Rw,{id:"shift-select-label",children:"Shift"}),f.jsx(vM,{labelId:"shift-select-label",id:"shift-select",value:e,onChange:o,label:"Shift",className:n.select,disabled:i,endAdornment:i?f.jsx(K6,{size:20}):null,children:r.map(a=>f.jsx(Zb,{value:a.Shift,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(X3e,{shift:a.Shift,size:"small"}),f.jsx("span",{children:a.Shift})]})},`shift-${a.Shift}`))})]})},Q_i=Sn(),Z_i=({value:e,onChange:t})=>f.jsx(_f,{label:"Start",format:"MM/DD/YYYY",value:Q_i(e),onChange:n=>{t(n?n.toDate():null)},slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px",padding:10}}}}}),J_i=({onFilterChange:e,delayAreas:t,selectedDelayArea:n,onDelayAreaChange:r,initialStartDate:i,initialEndDate:o,includeMicrodelays:a,onIncludeMicrodelaysChange:s,filterCrew:l,onFilterCrewChange:c,onFilterShiftChange:u,filterShift:d})=>{const[p,h]=v.useState(i),[g,m]=v.useState(o),b=j_i();v.useEffect(()=>{h(i),m(o)},[i,o]);const y=C=>{C&&(h(C),e(C,g))},M=C=>{C&&(m(C),e(p,C))};return v.useEffect(()=>{b()},[]),f.jsxs(D,{container:!0,style:{alignItems:"center",marginLeft:10},spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(Z_i,{value:p,onChange:y})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(X_i,{value:g,onChange:M})}),t&&f.jsx(D,{item:!0,xs:12,md:"auto",style:{minWidth:150},children:f.jsx($_i,{delayAreas:t,selectedDelayArea:n,onChange:r})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(K_i,{filterShift:d,onFilterShiftChange:u})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(V_i,{filterCrew:l,onFilterCrewChange:c})}),f.jsx(D,{item:!0,xs:12,md:"auto",style:{marginLeft:50},children:f.jsx(E1t,{control:f.jsx(T1t,{checked:a,onChange:C=>s(C.target.checked)}),label:"Microdelays",style:{marginBottom:0,marginLeft:1}})})]})},e5i=Et(e=>({root:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",height:"92vh",backgroundColor:"#f2f4f7"},header:{marginBottom:e.spacing(2)},filterContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(2)},button:{whiteSpace:"nowrap"}})),WG=Sn(),t5i=({asset:e})=>{const t=e5i(),{state:n,actions:r}=Sj(),[i,o]=v.useState(""),[a,s]=v.useState(()=>{const $=WG().subtract(1,"day").set({hour:0,minute:0,second:0}).toDate();return new Date($)}),[l,c]=v.useState(()=>{const $=WG().set({hour:23,minute:59,second:59}).toDate();return new Date($)}),[u,d]=v.useState("All"),[p,h]=v.useState("All"),g=e==="caster"?13:e==="eaf"?14:null,m=e==="caster"?"Caster":e==="eaf"?"EAF":null,[b,y]=v.useState(g),[M,C]=v.useState([]),[x,w]=v.useState(!1),[S,A]=v.useState(!1),[z,O]=v.useState(!0),T=v.useRef(null),R=async()=>{const $=await Ote();if($.ok&&$.data.tables.length>0){const U=$.data.tables[0].rows;C(U)}else o("An error occurred while fetching delay areas.")},P=async()=>{r.setIsLoadingGrid(!0);const $=await PEi(a,l,b,"All","All",x);if($.ok){const U=At($,"data.tables[0].rows",[]);r.setDelays(U)}else o($.message);r.setIsLoadingGrid(!1),O(!1)},F=()=>{let $=n.delays||[];p&&p!=="All"&&($=$.filter(U=>U.Shift===p)),u&&u!=="All"&&($=$.filter(U=>U.Crew===u)),r.setFilteredDelays($)},N=($,U)=>{const X=WG($).set({hour:0,minute:0,second:0}).toDate(),Q=WG(U).set({hour:23,minute:59,second:59}).toDate();s(X),c(Q)},L=$=>{y($)},W=$=>{w($)},j=$=>{h($)},V=$=>{d($)},G=()=>{if(T.current&&T.current.api){const $={skipHeader:!1,skipFooters:!0,skipGroups:!0,fileName:"delays_report.xlsx",sheetName:"Delays Report",processCellCallback:U=>{const X=U.column.getColId(),Q=U.value;return X==="DelayCategory"?Q?.name??"":Q??""}};T.current.api.exportDataAsExcel($)}else o("Unable to export data. Please try again.")};v.useEffect(()=>{e==="eaf"&&R()},[]),v.useEffect(()=>{A(!0)},[M]),v.useEffect(()=>{y(g)},[g]),v.useEffect(()=>{S&&P()},[g,S,a,l,b,x]),v.useEffect(()=>{F()},[p,u,n.delays]);const q=()=>{if(e==="eaf"){const $=M.filter(U=>U.AssetName&&U.AssetName.includes("EAF "));if(g)return[{AssetId:g,AssetName:"All"},...$]}return M};return n.isLoadingPage?f.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[f.jsx(yt,{error:i,onHide:()=>o("")}),f.jsx(Cn,{})]}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:`${m} Delays Report`}),f.jsxs(Pt,{elevation:1,className:t.root,children:[f.jsx(Op,{open:n.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,xs:12,children:[f.jsx(D,{container:!0,justifyContent:"space-between",alignItems:"center",children:f.jsxs(vt,{variant:"h5",className:t.header,style:{fontWeight:600},children:[m," Delays Report"]})}),f.jsxs(D,{item:!0,container:!0,md:12,className:t.filterContainer,children:[f.jsx(D,{item:!0,container:!0,xs:12,md:8,children:f.jsx(Pt,{style:{display:"flex",alignItems:"center",height:"80px"},children:f.jsx(J_i,{onFilterChange:N,delayAreas:e==="eaf"?q():null,selectedDelayArea:b,onDelayAreaChange:L,initialStartDate:a,initialEndDate:l,onFilterCrewChange:V,filterCrew:u,includeMicrodelays:x,onIncludeMicrodelaysChange:W,filterShift:p,onFilterShiftChange:j})})}),f.jsx(D,{item:!0,xs:"auto",style:{marginLeft:"auto"},children:f.jsx(pT,{onClick:G,disabled:!n.filteredDelays||n.filteredDelays.length===0})})]}),f.jsx(jm,{message:n.notificationMessage,onHide:()=>r.setNotificationMessage("")}),f.jsx(D,{item:!0,xs:12,children:f.jsx(B_i,{loadingGrid:n.isLoadingGrid||z,rows:n.filteredDelays||[],refreshData:P,gridRef:T})})]})})]}),f.jsx(yt,{error:i,onHide:()=>o("")})]})},qG=({asset:e})=>f.jsx(dte,{children:f.jsx(xte,{children:f.jsx(xj,{children:f.jsx(F_i,{children:f.jsx(t5i,{asset:e})})})})}),n5i=[f.jsx(ar,{path:"/caster-delays-manager",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(FG,{asset:"caster"})})}),f.jsx(ar,{path:"/caster-delays-manager/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(FG,{asset:"caster"})}),children:" "}),f.jsx(ar,{path:"/eaf-delays-manager",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(FG,{asset:"eaf"})})}),f.jsx(ar,{path:"/eaf-delays-manager/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(FG,{asset:"eaf"})}),children:" "}),f.jsx(ar,{path:"/caster-delays-report",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(qG,{asset:"caster"})})}),f.jsx(ar,{path:"/caster-delays-report/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(qG,{asset:"caster"})})}),f.jsx(ar,{path:"/eaf-delays-report",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(qG,{asset:"eaf"})})}),f.jsx(ar,{path:"/eaf-delays-report/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(qG,{asset:"eaf"})})}),f.jsx(ar,{path:"/caster-delays-pareto",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(NG,{asset:"caster"})})}),f.jsx(ar,{path:"/caster-delays-pareto/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(NG,{asset:"caster"})})}),f.jsx(ar,{path:"/eaf-delays-pareto",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(NG,{asset:"eaf"})})}),f.jsx(ar,{path:"/eaf-delays-pareto/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(NG,{asset:"eaf"})})})],r5i=Et({root:{display:"flex",justifyContent:"center",alignItems:"center",userSelect:"none",height:"40px"}}),i5i={S:{name:"Scheduled",color:" #0288D1",letter:"S"},M:{name:"Melting",color:" #FF7043",letter:"M"},T:{name:"Tapped",color:" #D2AF00",letter:"T"},O:{name:"Opened",color:" #43A047",letter:"O"},C:{name:"Closed",color:" #607D8B",letter:"C"},R:{name:"Returned",color:" #8D6E63",letter:"R"},F:{name:"Finished",color:" #3F90B5",letter:"F"}},o5i=({assetId:e,assetName:t,heatStatus:n})=>{const r=r5i(),i="#D6D6D6",o={11:"#dae8fc",12:"#d5e8d4"},a=i5i[n];return f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(wD,{className:r.root,style:{backgroundColor:o[e]},variant:"outlined",children:f.jsx(SD,{children:f.jsx(vt,{children:t})})})}),n&&f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx("div",{style:{backgroundColor:a?.color||i,color:"#fff",borderRadius:"4px",padding:"4px",textAlign:"center"},children:f.jsx(vt,{children:a?.name})})})]})})},a5i=({value:e,onChange:t,disabled:n})=>{const{state:{deProcess:r}}=_s(),{saveHeat:i}=Ss(),o=v.useRef(!0),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState([]),[p,h]=v.useState(),g=fT(),m=y=>{const M=y.target.value;t(M),M&&i("GradeId",M).then(()=>{}),h(M)},b=async()=>{s(!0);const y=await kSi();d(y.data),s(!1)};return v.useEffect(()=>{if(o.current){o.current=!1,b().then(()=>{});return}},[]),f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(ol,{id:"ladleSelector",className:g.inputLabel,children:"Grade"}),f.jsx(cs,{fullWidth:!0,disabled:a||n,labelId:"ladleSelector",id:"ladleSelector",value:e||"",onChange:m,label:"Grade",children:u.map(y=>f.jsx(lr,{value:y.GradeId,children:y.GradeName},`grade-${y.GradeId}`))})]}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},s5i=Et(e=>({container:{display:"flex",flexWrap:"nowrap",width:"100%"},field:{flex:1,minWidth:0},field2:{flex:2,minWidth:0},leftField:{"& .MuiOutlinedInput-root":{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"none"}},rightField:{"& .MuiOutlinedInput-root":{borderTopLeftRadius:0,borderBottomLeftRadius:0}},checkbox:{padding:0,margin:0},inputAdornment:{margin:0},input:{paddingRight:e.spacing(1)}})),l5i=({ladleLife:e,onChange:t,value:n,disabled:r})=>{const i=s5i(),{state:{isSubmitLoading:o}}=_s(),a=s=>{const l=s.target.checked?1:null;t(l)};return f.jsxs("div",{className:i.container,children:[f.jsx(je,{className:`${i.field} ${i.leftField}`,label:"Ladle Life",variant:"outlined",disabled:!0,size:"small",value:e.HeatsOnLadle||""}),f.jsx(je,{className:`${i.field} ${i.rightField}`,variant:"outlined",disabled:!0,size:"small",value:e.ContactTimeOnLadle,InputProps:{classes:{input:i.input},endAdornment:f.jsx(ac,{position:"end",className:i.inputAdornment,children:f.jsx(Qr,{color:"primary",size:"small",className:i.checkbox,checked:!!n,disabled:o||r,onChange:a})})}})]})},c5i=({value:e,onChange:t,disabled:n})=>{const{state:{deProcess:r}}=_s(),{saveHeat:i}=Ss(),o=v.useRef(!0),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState([]),[p,h]=v.useState(),g=fT(),m=y=>{const M=y.target.value;t(M),M&&i("LadleId",M).then(()=>{}),h(M)},b=async()=>{s(!0);const y=await RSi();d(y.data),s(!1)};return v.useEffect(()=>{if(o.current){o.current=!1,b().then(()=>{});return}},[]),f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(ol,{id:"ladleSelector",className:g.inputLabel,children:"Ladle"}),f.jsx(cs,{fullWidth:!0,disabled:a||n,labelId:"ladleSelector",id:"ladleSelector",value:e||"",onChange:m,label:"Ladle",children:u.map(y=>f.jsx(lr,{value:y.LadleId,children:y.LadleName},`ladle-${y.LadleId}`))})]}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},u5i=()=>{const{state:{notificationMessage:e,errorMessage:t},actions:{setNotificationMessage:n,setErrorMessage:r}}=_s();return f.jsxs(f.Fragment,{children:[f.jsx(pr,{open:!!e,color:"primary",autoHideDuration:4e3,onClose:()=>n(""),children:f.jsx(Pr,{children:e})}),f.jsx(yt,{error:t,onHide:()=>r("")})]})},d5i=Sn(),p5i=e=>{const{state:t,actions:n}=_s(),{refreshData:r}=Ss(),{resume:i}=I0(),[o,a]=v.useState(!1),[s,l]=v.useState({show:!1,message:""}),c=(h,g)=>{n.setDEProcess({...t.deProcess,process:g}),a(!0)},u=async()=>{const h=d5i(e.Start).format("YYYY/MM/DD HH:mm");l({show:!0,message:"The heat "+e.HeatName+" from "+h+" will be unlinked.  Do you want to continue?"})},d=async h=>{l({show:!1,message:""}),h==="OK"&&(await p(),i())},p=async()=>{if(gi(e)||gi(e.ProcessId)||gi(e.HeatId))n.setErrorMessage("Process not found");else{n.setIsDataLoading(!0);const h=await tTe(e?.ProcessId);n.setIsDataLoading(!1),h.ok?(n.setNotificationMessage("Process unlinked successfully"),await r()):n.setErrorMessage(h.message),n.setIsDataLoading(!1)}};return{unlinkProcess:u,handleLinkHeat:c,handleUnlinkHeat:d,showLinkModal:o,showUnlinkModal:s,setShowLinkModal:a,setShowUnlinkModal:l}},h5i=Sn(),f5i=({show:e,onHide:t})=>{const{refreshData:n}=Ss(),{state:r,actions:i}=_s(),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState([]),[d,p]=v.useState(null),[h,g]=v.useState(""),[m,b]=v.useState(""),[y,M]=v.useState(!1),C=r.deProcess?.process,x=`Link EAF Process / Start: ${Wn(`${h5i.utc(C?.Start)}`,"HH:mm")}`,w=async(T=!1)=>{if(C){if(!d){b("Please select a heat");return}if(gi(C))return;if(!T&&d?.IsLinked){M(!0);return}const R=await eTe(C.ProcessId,d.HeatId);R.ok?(i.setNotificationMessage("Process linked successfully"),await n()):b(R.message)}else b("Process not found");t(!0)},S=async()=>{if(!C)return;const T=await sD(h,C.Start,C.AssetId);T.ok&&T.data?.tables?.[0]?.rows&&u(T.data.tables[0].rows)},A=(T,R)=>{g(R)},z=T=>{T.key==="Enter"&&(T.preventDefault(),S())},O=(T,R)=>{p(R)};return v.useEffect(()=>{e&&C&&(a(!1),(async()=>{p(null),l(!0);const T=await sD("",C.Start,C.AssetId);T.ok&&T.data&&T.data.tables&&T.data.tables[0].rows&&u(T.data.tables[0].rows),l(!1)})())},[e,C]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{maxWidth:"xl",open:e,handleClose:()=>{t(!0)},id:"linkEAFProcess",title:x,children:s?f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,style:{padding:"60px 280px"},justifyContent:"center",alignContent:"center",children:f.jsx(D,{item:!0,children:f.jsx(Kt,{})})})}):f.jsxs("form",{children:[f.jsx(We.Content,{style:{padding:"15px 30px",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,md:2,children:f.jsx(vt,{style:{margin:0,padding:0,display:"flex",alignItems:"center",height:"56px"},variant:"h6",children:"To Heat"})}),f.jsx(D,{item:!0,md:10,children:f.jsx(Ki,{options:c,getOptionLabel:T=>T.HeatName,value:d,onChange:O,inputValue:h,onInputChange:A,renderOption:T=>f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("span",{children:T.HeatName}),T.IsLinked===1&&f.jsx("span",{style:{color:"red",marginLeft:"10px"},children:"(linked)"})]}),renderInput:T=>f.jsx(je,{...T,placeholder:"Search Heat",variant:"outlined",fullWidth:!0,onKeyDown:z,InputProps:{...T.InputProps,style:{height:"100%",minWidth:"400px"}}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px "},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(ka,{fullWidth:!0,isLoading:o,variant:"contained",color:"primary",onClick:()=>w(!1),size:"large",children:"Save"})})]})})]})})})}),f.jsxs(We,{open:y,handleClose:()=>M(!1),title:"Warning",id:"warningModal",children:[f.jsx(We.Content,{children:f.jsx("p",{children:"This heat is already linked in another process. Do you want to proceed?"})}),f.jsxs(We.Actions,{children:[f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>M(!1),children:"Cancel"}),f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:async()=>{M(!1),w(!0)},children:"Proceed"})]})]}),f.jsx(yt,{error:m,onHide:()=>b("")})]})},g5i=()=>{const e=Oo(),t=ds(),{state:{deProcess:n},actions:{setErrorMessage:r}}=_s(),i=n?.process,[o,a]=v.useState([]),[s,l]=v.useState(""),[c,u]=v.useState(!1),[d,p]=v.useState(!1),[h,g]=v.useState({Name:c?"":i?.HeatName??"",Id:i?.ProcessId}),[m,b]=v.useState(!1),y=fT(),{pause:M,resume:C,restart:x}=I0(),{loadData:w,loadUnjustifiedDelays:S}=Ss(),{handleLinkHeat:A,handleUnlinkHeat:z,showLinkModal:O,showUnlinkModal:T,unlinkProcess:R,setShowLinkModal:P}=p5i(i||{}),F=`${y.processNavigator} ${i?.HeatName?y.linkedHeat:y.unlinkedHeat}`,N=v.useRef(s);N.current=s;const L=v.useCallback(aB(async j=>{u(!0);try{if(j.length>=2){const V=await aAi(j);if(V.ok){const G=V.data.tables[0].rows;N.current===j&&a(G)}else r(V.message),a([])}if(j.length===0){const V=await oAi();V.ok?N.current===j&&a(V.data.tables[0].rows):(r(V.message),a([]))}}catch(V){console.error("Error in search:",V),r("An error occurred while searching"),a([])}finally{u(!1)}},1500),[]),W=(j,V)=>{V?V.Id!==i?.ProcessId&&(g(V),e(`/eaf-data-entry/${V.Id}`),V.Id&&w(V.Id),setTimeout(()=>{document.getElementById("dummyDiv")?.focus()},500)):g(null)};return v.useEffect(()=>(L(s),()=>{L.cancel()}),[s]),v.useEffect(()=>{!m&&!c&&s!==i?.HeatName&&g({Name:i?.HeatName||"",Id:i?.ProcessId})},[m,s,i,c]),v.useEffect(()=>{t.processId?w(Number(t.processId)).then(()=>{}):w(null).then(()=>{}),L("")},[]),f.jsxs(f.Fragment,{children:[f.jsx(Pt,{children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"center",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(bn,{size:"small","aria-label":"previous",color:"primary",disabled:!i?.PrevProcessId,onClick:()=>{w(i?.PrevProcessId).then(j=>{S(j.AssetId,j.ShiftId)})},children:f.jsx(dQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,style:{minWidth:"126px"},children:f.jsx(Ki,{className:F,autoHighlight:!0,blurOnSelect:!0,clearOnEscape:!0,selectOnFocus:!0,popupIcon:null,options:o||[],getOptionSelected:(j,V)=>j.Id===V.Id,getOptionLabel:j=>j?.Name||"Unlinked",inputValue:s,onInputChange:(j,V)=>{l(V)},value:h,onChange:(j,V)=>{W(j,V)},onFocus:j=>{b(!0),M()},loading:c,onBlur:j=>{b(!1),d||C()},renderInput:j=>f.jsx(je,{...j,label:"Heat Name",variant:"outlined",size:"small",style:{minWidth:"126px"},InputProps:{...j.InputProps,style:{padding:"0 8px 20px 6px",minWidth:"126px"},endAdornment:f.jsx(ac,{position:"end",children:f.jsx(bn,{size:"small",title:i?.HeatName?"Unlink":"Link",onClick:V=>(M(),p(!0),i&&(i?.HeatName?R():A(V,i))),style:{color:i?.HeatName?"red":"#3f51b5"},children:i?.HeatName?f.jsx(tst,{style:{cursor:"pointer"}}):f.jsx(est,{style:{cursor:"pointer"}})})})}})})}),f.jsx(D,{item:!0,children:f.jsx(bn,{"aria-label":"delete",color:"primary",disabled:!i?.NextProcessId,onClick:()=>{w(i?.NextProcessId).then(j=>{S(j.AssetId,j.ShiftId)})},size:"small",children:f.jsx(pQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,children:f.jsx(bn,{"aria-label":"delete",color:"primary",disabled:!i?.NextProcessId,onClick:()=>{w(null).then(j=>{S(j.AssetId,j.ShiftId)})},size:"small",title:"Last process",children:f.jsx(gQ,{style:{cursor:"pointer"}})})})]})})}),f.jsx(il,{title:"Confirmation",message:T.message,open:T.show,onClose:z}),f.jsx(f5i,{show:O,onHide:()=>{P(!1),p(!1),x(),setTimeout(()=>{document.getElementById("dummy")?.focus()},1)}})]})},m5i=()=>{const{state:{isDataLoading:e,deProcess:t}}=_s(),{refreshData:n}=Ss(),{seconds:r,isRunning:i,pause:o,restart:a,resume:s}=I0();return v.useEffect(()=>{a()},[t?.process?.ProcessId]),f.jsx(D,{item:!0,container:!0,direction:"column",spacing:1,style:{width:"100%"},children:f.jsx(D,{item:!0,style:{width:"100%"},children:f.jsxs(Iz,{fullWidth:!0,children:[f.jsxs(ka,{onClick:()=>{o(),n().then(()=>{a(),s()})},fullWidth:!0,variant:"contained",color:"primary",isLoading:e,style:{fontSize:"0.9rem"},children:["Refresh in ",r]}),f.jsx(Ne,{style:{maxWidth:"40px"},onClick:()=>{i?o():s()},children:i?f.jsx(nst,{}):f.jsx(rst,{})})]})})})},v5i=(e,t)=>{if(e===null)return"";let n;switch(t){case"hours":n=e*3600;break;case"minutes":n=e*60;break;case"seconds":n=e;break;default:return""}const r=Math.floor(n/3600),i=Math.floor(n%3600/60),o=Math.round(n%60);return`${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(o).padStart(2,"0")}`},gTe=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1,unit:o})=>{const a=v5i(e,o);return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:a,type:"text",InputProps:{readOnly:!0},style:{minWidth:"50px"}})},D2e=e=>{const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`},b5i=e=>{let t="",n=!1,r="";const i=e.replace(/[^0-9]/g,"");if(i===""||/^0+$/.test(i))t="00:00";else if(C5i(e)){const[o,a]=e.split(":"),s=parseInt(o,10),l=parseInt(a,10);isNaN(s)||isNaN(l)?(n=!0,r="Invalid time format"):t=`${s.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`}else n=!0,r="Invalid duration";return{formattedTime:t,error:n,helperText:r}},y5i=(e,t)=>{let n=e;return n.length===2&&t.length!==3&&!n.includes(":")&&(n=n+":"),n.length===2&&t.length===3&&t[2]===":"&&(n=n.slice(0,1)),n.length>5&&(n=t),n},M5i=e=>e===""?!0:/^(\d{1,2})(:)?(\d{0,2})?$/.test(e),C5i=e=>/^\d{1,2}:\d{2}$/.test(e),x5i=({initMinutes:e=0,disabled:t=!1,mountFocus:n=!1,onTimeChange:r,type:i,label:o,onFocusHandler:a,placeholder:s=" ",className:l,name:c,onBlurHandler:u})=>{const[d,p]=v.useState(""),[h,g]=v.useState(!1),[m,b]=v.useState(""),y=v.useRef(null),[M,C]=v.useState(""),{state:{isSubmitLoading:x}}=_s();v.useEffect(()=>{const z=D2e(e);p(z)},[e]),v.useEffect(()=>{!t&&n&&setTimeout(()=>{y.current?.focus()},0)},[t,n]);const w=z=>{if(z!==d&&M5i(z)){const O=y5i(z,M);C(O),p(O),g(!1),b("")}},S=z=>{const{formattedTime:O,error:T,helperText:R}=b5i(d);p(O||d),g(T),b(R),!T&&O&&r(O),u&&u(z)},A=()=>i||"tel";return f.jsx(je,{name:c,label:o,className:l,type:A(),disabled:t||x,placeholder:s,value:d,onChange:z=>w(z.target.value),onFocus:a,onBlur:S,inputRef:y,variant:"outlined",fullWidth:!0,error:h,helperText:m})},hh=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1})=>{const{pause:o,resume:a}=I0(),s=()=>{o()};return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:e||"",type:"number",onFocus:s,onChange:l=>{if(l.target.value===""||l.target.value==="-")n(0);else{const c=Number(l.target.value);n(c)}},onKeyDown:l=>{(l.key.toLowerCase()==="e"||l.key==="-"||l.key==="+")&&l.preventDefault(),l.key==="Enter"&&(a(),r())},onBlur:()=>{a(),r()},style:{minWidth:"50px"}})},IO=({field:e,label:t,decimals:n=null})=>{const{state:{deProcess:r},actions:i}=_s(),{saveProcessData:o}=Ss(),a=r?.process,s=a&&a[e]!==void 0&&a[e]!==null?ew(n)?Number(Number(a[e]).toFixed(n)):Number(a[e]):null,l=()=>{o({processId:a?.ProcessId,field:e,value:a[e]})};return f.jsx(hh,{label:t||e,value:s,onChange:c=>{i.setProcess({...a,[e]:c})},onBlur:()=>{l()}})},w5i=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1})=>{const{pause:o,resume:a}=I0(),s=()=>{o()};return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:e||"",onFocus:s,onChange:l=>{n(l.target.value)},onKeyDown:l=>{l.key==="Enter"&&(a(),r(e))},onBlur:()=>{a(),r(e)},style:{minWidth:"50px"}})},S5i=({field:e,label:t})=>{const{state:{deProcess:n},actions:r}=_s(),{saveProcessData:i}=Ss(),o=n?.process,a=()=>{i({processId:o?.ProcessId,field:e,value:o[e]})};return f.jsx(w5i,{label:t||e,value:o&&o[e]||"",onChange:s=>{r.setProcess({...o,[e]:s})},onBlur:()=>{a()}})},gZe=({field:e,label:t,format:n="HH:mm - DD/MM/YYYY",disabled:r=!1,disableOpenPicker:i=!1})=>{const{state:{deProcess:o},actions:a}=_s(),{saveProcess:s}=Ss(),l=o?.process,c=()=>{s(l)};return f.jsx(Hm,{disableOpenPicker:i,disabled:r,format:n,label:t||e,value:l?l[e]:null,onChange:u=>{a.setProcess({...l,[e]:u})},onBlur:()=>{c()}})},A5i=Et(e=>({consistentFieldWrapper:{marginTop:e.spacing(.5),"& .MuiInputBase-root":{minHeight:"57px",height:"57px",alignItems:"center"},"& .MuiInputLabel-outlined":{transform:"translate(14px, 19px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}},"& .MuiIconButton-root":{padding:e.spacing(1.5)}},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}}})),mZe=Sn(),O5i=e=>{if(e==null||e<0)return"00:00:00";const t=mt.duration(e,"seconds"),n=Math.floor(t.asHours()),r=t.minutes(),i=t.seconds();return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}`},z5i=({open:e,onHide:t,assetId:n,refreshData:r,delay:i})=>{const o=A5i(),{pause:a}=I0(),{dismissDelayJustification:s}=rTe(),[l,c]=v.useState(!1),[u,d]=v.useState(null),{control:p,handleSubmit:h,reset:g,watch:m,setValue:b,formState:{errors:y}}=jn({defaultValues:{DelayCodeId:null,DelayCategoryId:null,Comments:null}}),M=m("Comments");v.useEffect(()=>{e&&(a(),g({DelayCodeId:i?.DelayCodeId??null,DelayCategoryId:i?.DelayCategoryId??null,Comments:i?.Comments??null}),d(null))},[e,i,g]);const C=()=>{s(),t()},x=async z=>{if(!i?.DelayId){d("Delay not found.");return}c(!0),d(null);try{const O=await hTe(i?.DelayId,z.DelayCodeId,z.DelayCategoryId,z.Comments,null,null,null);O.ok?(await r(),t(!0)):d(O.message||"Failed to justify delay.")}catch(O){d(O.message||"An unexpected error occurred.")}finally{c(!1)}},w=v.useMemo(()=>i?.Start?mZe(i.Start).format("MM/DD/YYYY HH:mm:ss"):"N/A",[i?.Start]),S=v.useMemo(()=>i?.End?mZe(i.End).format("MM/DD/YYYY HH:mm:ss"):"N/A",[i?.End]),A=v.useMemo(()=>O5i(i?.Duration),[i?.Duration]);return f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Justify Delay"}),f.jsx(We,{open:e,handleClose:()=>{C(),t()},title:"Justify Delay",maxWidth:"md",id:"justify-delay-modal",children:f.jsxs("form",{onSubmit:h(x),children:[f.jsx(We.Content,{dividers:!0,children:!i||!n?f.jsx(D,{item:!0,xs:12,children:f.jsx(vt,{color:"error",children:"Missing Delay Information. Cannot justify."})}):f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(vt,{children:"Please justify the delay to continue."})}),f.jsx(D,{item:!0,xs:12,sm:4,children:f.jsx(je,{label:"Duration (hh:mm:ss)",value:A,variant:"outlined",size:"small",fullWidth:!0,disabled:!0})}),f.jsx(D,{item:!0,xs:12,sm:4,children:f.jsx(je,{label:"Delay Start",value:w,variant:"outlined",size:"small",fullWidth:!0,disabled:!0})}),f.jsx(D,{item:!0,xs:12,sm:4,children:f.jsx(je,{label:"Delay End",value:S,variant:"outlined",size:"small",fullWidth:!0,disabled:!0})}),f.jsx(D,{item:!0,xs:12,sm:4,children:f.jsx(je,{label:"Asset Name",value:i.AssetName??"N/A",variant:"outlined",size:"medium",fullWidth:!0,disabled:!0,style:{marginTop:"13px"},InputProps:{style:{height:"53px"}}})}),f.jsx(D,{item:!0,xs:12,sm:4,className:o.consistentFieldWrapper,children:f.jsx(Ue,{name:"DelayCodeId",control:p,render:({field:z})=>f.jsx(fTe,{assetId:n,value:z.value,onChange:(O,T)=>{z.onChange(O),T&&T.DelayCategoryId&&b("DelayCategoryId",T.DelayCategoryId,{shouldValidate:!0})}},`DelayCodeId-${n}`)})}),f.jsx(D,{item:!0,xs:12,sm:4,style:{marginTop:"8px"},children:f.jsx(Ue,{name:"DelayCategoryId",control:p,render:({field:z})=>f.jsx(uM,{value:z.value??null,onChange:z.onChange,assetId:n})})}),f.jsxs(D,{item:!0,xs:12,children:[f.jsx(Ue,{name:"Comments",control:p,render:({field:z})=>f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",maxRows:4,minRows:4,fullWidth:!0,margin:"dense",multiline:!0,autoComplete:"off",value:z.value??"",onChange:O=>{O.target.value.length<=200&&z.onChange(O)},InputProps:{style:{height:"90px",padding:"0px",fontSize:"12px"}}})}),f.jsx(D,{container:!0,justifyContent:"flex-end",children:f.jsx(D,{item:!0,children:f.jsx("span",{children:`${M?.length??0}/200`})})})]})]})}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,justifyContent:"flex-end",spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:3,children:f.jsx(Ne,{variant:"contained",color:"secondary",onClick:C,disabled:l,size:"large",fullWidth:!0,children:"Remind Me Later "})}),f.jsx(D,{item:!0,xs:12,sm:3,children:f.jsx(Ne,{variant:"contained",color:"primary",type:"submit",size:"large",fullWidth:!0,disabled:l||m("DelayCodeId")===null,startIcon:l?f.jsx(Kt,{size:20}):null,children:"Justify"})})]})})]})}),f.jsx(yt,{error:u,onHide:()=>d(null)})]})},T5i=({textFieldValue:e,checkboxValue:t,label:n,onNumberFieldChange:r,onCheckboxChange:i,onBlur:o,textFieldDisabled:a=!0,checkboxDisabled:s=!1})=>{const l=fT(),{state:{isSubmitLoading:c}}=_s(),{pause:u,resume:d}=I0(),p=()=>{u()};return f.jsx(f.Fragment,{children:f.jsx(je,{fullWidth:!0,disabled:a,label:n,variant:"outlined",value:e||"",type:"number",onFocus:p,onChange:h=>{(h.target.value===""||/^(0|[1-9]\d*)(\.\d*)?$/.test(h.target.value))&&r(Number(h.target.value))},onKeyDown:h=>{h.key==="Enter"&&(d(),o())},onBlur:()=>{d(),o()},style:{minWidth:"50px"},InputProps:{classes:{input:l.input},endAdornment:f.jsx(ac,{position:"end",className:l.inputAdornment,children:f.jsx(Qr,{color:"primary",size:"small",disabled:s||c,className:l.checkbox,checked:!!t,onChange:h=>{i(h.target.checked)}})})}})})},BG=({numberField:e,checkboxField:t,label:n,textFieldDisabled:r,checkboxDisabled:i})=>{const{state:{deProcess:o},actions:a}=_s(),{saveProcessData:s}=Ss(),l=o?.process,c=()=>{s({processId:l?.ProcessId,field:e,value:l[e]})};return f.jsx(T5i,{label:n||e,textFieldValue:l?l[e]:null,checkboxValue:l&&!!l[t]||null,textFieldDisabled:r,checkboxDisabled:i,onNumberFieldChange:u=>{a.setProcess({...l,[e]:u})},onCheckboxChange:u=>{a.setProcess({...l,[t]:u?1:null}),s({processId:l?.ProcessId,field:t,value:u?1:null})},onBlur:()=>{c()}})},E5i=()=>f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,spacing:1,direction:"column",children:[f.jsx(D,{item:!0,children:f.jsx(BG,{numberField:"HeatsOnRoof",checkboxField:"ForceHeatsOnRoof",label:"Heats On Roof"})}),f.jsx(D,{item:!0,children:f.jsx(BG,{numberField:"HeatsOnRunnerSpout",checkboxField:"ForceHeatsOnRunnerSpout",label:"Heats On Runner Spout"})}),f.jsx(D,{item:!0,children:f.jsx(BG,{numberField:"HeatsOnTapHole",checkboxField:"ForceHeatsOnTapHole",label:"Heats On Tap Hole"})}),f.jsx(D,{item:!0,children:f.jsx(BG,{numberField:"HeatsOnLining",checkboxField:"ForceHeatsOnLining",label:"Heats On Lining"})})]})}),R5i=()=>f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,container:!0,spacing:1,direction:"column",justifyContent:"space-around",children:[f.jsx(D,{item:!0,children:f.jsx(IO,{field:"MWH"})}),f.jsx(D,{item:!0,children:f.jsx(IO,{field:"ElectrodeConsumption",label:"Elec Consumption"})}),f.jsx(D,{item:!0,children:f.jsx(IO,{field:"ArcStability",label:"Arc Stability"})}),f.jsx(D,{item:!0,children:f.jsx(IO,{field:"OxygenVolume",label:"O2 Volume",decimals:1})})]})}),Hw=Et(e=>({agGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",minHeight:"349px",maxHeight:"349px"},upperAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 10px 50px 10px",minHeight:"578px",maxHeight:"578px"},middleTextfields:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 6px 10px 6px",minHeight:"230px",maxHeight:"230px"},dynamicHeight:{height:t=>{const n=t?.rowCount??4;return`${Math.min(350+(n-4)*50,550)}px`}},readonlyAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px ",height:"400px",minHeight:"400px"},electrodeEventsAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"230px",minHeight:"230px"},lowerAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"468px",minHeight:"468px"},probesAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"295px",minHeight:"295px"},additionsAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"257px",minHeight:"250px"},wireAdditionsAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"195px",minHeight:"195px"},heatingsAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"524px",minHeight:"524px"},chargesAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"260px",minHeight:"260px"},phasesAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"325px",minHeight:"325px"},electrodesAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"165px",minHeight:"165px"},manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"},smAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 10px 10px 10px",height:"281px",minHeight:"350px"},headerTableStyles:{fontSize:"1rem"},outlinedTextarea:{width:"100%",padding:"10px 12px",border:`1px solid ${e.palette.grey[400]}`,borderRadius:e.shape.borderRadius,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,transition:e.transitions.create(["border-color","box-shadow"]),"&:hover":{borderColor:e.palette.text.primary},"&:focus":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 2px ${e.palette.primary.light}`,outline:"none"},"&::placeholder":{color:e.palette.text.secondary,opacity:1}}})),I5i=Et(e=>({manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"}})),d2=Et(e=>Mp({checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"},autocompleteField:{display:"flex",alignItems:"center",paddingTop:0,paddingBottom:0}})),kte=(e,t,n)=>(!t||!e||(e.year(t.year()),e.month(t.month()),e.date(t.date()),e.isBefore(t)&&n&&n.isBefore(t)&&e.add(1,"day")),e),Aj=(e,t,n)=>!t||!e?!1:n?(n.getTime()<t.getTime()&&(n=new Date(n.getTime()+1440*60*1e3)),e.getTime()>=t.getTime()&&e.getTime()<=n.getTime()):e.getTime()>=t.getTime(),hR=Sn(),P5i=({show:e,onHide:t,date:n})=>{const{state:r}=Ma(),i=At(r.settings,"MIN_WEIGHT_ADDITION",0),o=At(r.settings,"MAX_WEIGHT_ADDITION",5e3),{state:{deProcess:a}}=_s(),{saveAddition:s,getMaterials:l}=Ss(),[c,u]=v.useState(!1),[d,p]=v.useState(""),[h,g]=v.useState(!1),[m,b]=v.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=jn({}),z=(R,P)=>{P!=="clickaway"&&g(!1)},O=async R=>{u(!0),await s(R),u(!1),t()},T=R=>{if(!R)return;const P=hR.utc(R),F=hR.utc(a?.process.Start),N=a?.process.End?hR.utc(a.process.End):null,L=kte(P,F,N);x("Timestamp",L.toDate())};return v.useEffect(()=>{e&&(S(),(async()=>{const P=await l();b(P.filter(F=>F.UseInEAF===!0))})(),n.setSeconds(0),x("Timestamp",n))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"New Manual Addition"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"NEW MANUAL ADDITION",open:e,handleClose:()=>t(),id:"create-addition-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(O),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Weight",control:w,rules:{required:"Weight is required",validate:R=>Tm(R,i,o,"Weight")},render:({field:R})=>f.jsx(hh,{...R,value:M("Weight"),label:"Weight [kg]",onChange:P=>x("Weight",P),onBlur:()=>{}})}),A.Weight&&f.jsx("span",{className:y.errorLabel,children:A.Weight.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"MaterialId",control:w,rules:{required:"Material is required"},render:({field:R})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:m??[],getOptionLabel:P=>P.MaterialName,renderInput:P=>f.jsx(je,{...P,label:"Material",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...P.InputProps,className:y.autocompleteField}}),value:m.find(P=>P.MaterialId===R.value)||null,onChange:(P,F)=>{R.onChange(F?F.MaterialId:null)}})}),A.MaterialId&&f.jsx("span",{className:y.errorLabel,children:A.MaterialId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Timestamp",control:w,rules:{required:"Timestamp is required",validate:R=>{const P=hR.utc(a?.process.Start).toDate(),F=a?.process.End?hR.utc(a?.process.End).toDate():null;return Aj(hR.utc(R).toDate(),P,F)?!0:F?"Timestamp must be between Start and End date time":"Timestamp must be greater than the start date"}},render:({field:R})=>f.jsx(Hm,{...R,format:"HH:mm - MM/DD/YYYY",value:M("Timestamp"),label:"Time",onChange:T,onBlur:()=>{}})}),A.Timestamp&&f.jsx("span",{className:y.errorLabel,children:A.Timestamp.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(ka,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The addition was created successfully"})})]})}),f.jsx(yt,{error:d,onHide:()=>p(""),title:"Error Creating Manual Probe"})]})},fR=Sn(),D5i=({show:e,onHide:t,addition:n})=>{const{state:r}=Ma(),i=At(r.settings,"MAX_WEIGHT_ADDITION",0),o=At(r.settings,"MIN_WEIGHT_ADDITION",5e3),{state:{deProcess:a}}=_s(),{saveAddition:s,getMaterials:l}=Ss(),[c,u]=v.useState(!1),[d,p]=v.useState(""),[h,g]=v.useState(!1),[m,b]=v.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=jn({}),z=(R,P)=>{P!=="clickaway"&&g(!1)},O=R=>{if(!R)return;const P=fR.utc(R),F=fR.utc(a?.process.Start),N=a?.process.End?fR.utc(a.process.End):null,L=kte(P,F,N);x("Timestamp",L.toDate())},T=async R=>{u(!0),await s({...R,AdditionId:n.AdditionId}),u(!1),t()};return v.useEffect(()=>{e&&(S(),(async()=>{const R=await l();b(R.filter(P=>P.UseInEAF===!0))})(),x("Timestamp",n?.Timestamp),x("MaterialId",n?.MaterialId),x("Weight",n?.Weight))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Edit Manual Addition"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"EDIT MANUAL ADDITION",open:e,handleClose:()=>t(),id:"edit-addition-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(T),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Weight",control:w,rules:{required:"Weight is required",validate:R=>Tm(R,i,o,"Weight")},render:({field:R})=>f.jsx(hh,{...R,value:M("Weight"),label:"Weight [kg]",onChange:P=>x("Weight",P),onBlur:()=>{}})}),A.Weight&&f.jsx("span",{className:y.errorLabel,children:A.Weight.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"MaterialId",control:w,rules:{required:"Material is required"},render:({field:R})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:m??[],disabled:!n.IsAdditionManual,getOptionLabel:P=>P.MaterialName,renderInput:P=>f.jsx(je,{...P,label:"Material",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...P.InputProps,className:y.autocompleteField}}),value:m.find(P=>P.MaterialId===R.value)||null,onChange:(P,F)=>{R.onChange(F?F.MaterialId:null)}})}),A.MaterialId&&f.jsx("span",{className:y.errorLabel,children:A.MaterialId.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:w,rules:{required:"Timestamp is required",validate:R=>{const P=fR.utc(a?.process.Start).toDate(),F=a?.process.End?fR.utc(a?.process.End).toDate():null;return Aj(fR.utc(R).toDate(),P,F)?!0:F?"Timestamp must be between Start and End date time":"Timestamp must be greater than the start date"}},render:({field:R})=>f.jsx(Hm,{...R,format:"HH:mm - MM/DD/YYYY",disabled:!n.IsAdditionManual,value:M("Timestamp"),label:"Time",onChange:O,onBlur:()=>{},error:A.Timestamp?.message})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(ka,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The addition was edited successfully"})})]})}),f.jsx(yt,{error:d,onHide:()=>p(""),title:"Error Creating Manual Probe"})]})},Lte=({isManual:e})=>{const t=I5i();return f.jsx(D,{container:!0,justifyContent:"center",children:f.jsx(D,{item:!0,md:12,children:f.jsx(Ne,{title:e?"Manual":"Automatic",variant:"contained",color:"primary",className:t.manualAutoButton,style:{cursor:"auto",backgroundColor:e?"primary":"green"},children:e?"M":"A"})})})},k5i=({deleteAddition:e,editAddition:t})=>({columns:[{headerName:"Material Additions",headerStyle:{fontSize:"0.9rem"},children:[{field:"manual-auto",headerName:" ",flex:1,minWidth:25,maxWidth:40,cellRenderer:Lte,cellRendererParams:i=>({isManual:i.data.IsAdditionManual})},{field:"Timestamp",headerName:"Time",flex:1,minWidth:62,valueGetter:i=>{if(i.data.Timestamp)return Wn(i.data.Timestamp,"HH:mm")}},{field:"MaterialName",headerName:"Material",flex:1,minWidth:100},{field:"Weight",headerName:"Weight [kg]",flex:1,minWidth:102,cellStyle:{textAlign:"right"},valueGetter:i=>{if(i.data.Weight)return Math.floor(i.data.Weight)}},{field:"actions",headerName:" ",flex:1,minWidth:60,maxWidth:80,cellRenderer:TM,cellRendererParams:i=>({deleteItem:e,edit:t,id:i.data.AdditionId})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),L5i=Sn(),_5i=()=>{const{state:e}=Ma(),t=At(e.settings,"MAX_ADDITIONS",10),{state:{deProcess:n,isProcessTimesLoading:r},actions:{setErrorMessage:i}}=_s(),{deleteAddition:o,refreshData:a}=Ss(),{pause:s,resume:l}=I0(),[c,u]=v.useState(!1),[d,p]=v.useState(!1),[h,g]=v.useState(),m=n?.additions,b=m?m.length:0,y=Hw({rowCount:b}),M=m&&m.length>=t||!1,C=S=>{s();const A=m?.find(z=>z.AdditionId===S);g(A),p(!0)},x=async()=>{const S=n?.process?.ProcessId;if(S){const A=await USi({ProcessId:S});return A.ok?await a():i(A.message),A}else return i("Process not found"),{ok:!1,message:"Process not found"}},{columns:w}=k5i({deleteAddition:o,editAddition:C});return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{children:f.jsxs(Tn,{padding:1,className:`${y.additionsAgGridBox}`,children:[f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:m,columnDefs:w,domLayout:"normal",suppressContextMenu:!0,loading:r,onRowDoubleClicked:S=>{C(S.data.AdditionId)}}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:M,showCreateModal:c,setShowCreateModal:u,readFromPLC:x,table:"additions"})]})}),f.jsx(P5i,{show:c,onHide:()=>{l(),u(!1)},date:n?L5i(n.process.Start).add(1,"minute").toDate():new Date}),f.jsx(D5i,{show:d,onHide:()=>{l(),p(!1)},addition:h})]})},lEt=({value:e,onChange:t})=>{const[n,r]=v.useState([]),[i,o]=v.useState(""),[a,s]=v.useState(!1),l=d2(),c=async()=>{s(!0),o("");const u=await Ste();u.ok?r(u.data.tables[0].rows):o(u.message),s(!1)};return v.useEffect(()=>{(async()=>await c())()},[]),f.jsxs(f.Fragment,{children:[f.jsx(Ki,{id:"bucket-list",clearOnEscape:!0,options:n,getOptionLabel:u=>u.BucketName,renderInput:u=>f.jsx(je,{...u,label:"Buckets",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...u.InputProps,className:l.autocompleteField}}),value:n.find(u=>u.BucketId===e)||null,onChange:(u,d)=>{d&&d.BucketId?t(d.BucketId):t(null)}}),f.jsx(yt,{error:i,onHide:()=>o("")})]})},N5i=Sn(),F5i=({show:e,onHide:t,date:n,limitDates:r})=>{const{state:i}=Ma(),o=At(i.settings,"MAX_WEIGHT_CHARGE",0),a=At(i.settings,"MIN_WEIGHT_CHARGE",2e5),{saveCharge:s}=Ss(),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(!1),g=d2(),{getValues:m,handleSubmit:b,setValue:y,control:M,reset:C,formState:{errors:x}}=jn({}),w=(A,z)=>{z!=="clickaway"&&h(!1)},S=async A=>{c(!0),await s(A),c(!1),t()};return v.useEffect(()=>{if(e){C();const A=N5i(n).add(1,"minutes").toDate();A.setSeconds(0),y("Timestamp",A)}},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"New Manual Charge"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"NEW MANUAL CHARGE",open:e,handleClose:()=>t(),id:"create-charge-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:b(S),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"BucketId",control:M,render:({field:A})=>f.jsx(lEt,{value:A.value||null,onChange:A.onChange})}),x.BucketId&&f.jsx("span",{className:g.errorLabel,children:x.BucketId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Weight",control:M,rules:{required:"Weight is required",validate:A=>Tm(A,o,a,"Weight")},render:({field:A})=>f.jsx(hh,{...A,value:m("Weight"),label:"Scrap Weight [lbs]",onChange:z=>y("Weight",z),onBlur:()=>{}})}),x.Weight&&f.jsx("span",{className:g.errorLabel,children:x.Weight.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:M,rules:{required:"Timestamp is required",validate:A=>r?.start&&A<r.start?"Timestamp must be between the start and end of the Process":r?.end&&A>r.end?"Timestamp must be less than the end of the process":!0},render:({field:A})=>f.jsx(Hm,{...A,format:"HH:mm - MM/DD/YYYY",value:m("Timestamp"),label:"Time",error:x.Timestamp?.message,onChange:z=>{z&&y("Timestamp",z)},onBlur:()=>{}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(ka,{fullWidth:!0,isLoading:l,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:p,autoHideDuration:2500,onClose:w,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:w,children:"The charge was created successfully"})})]})}),f.jsx(yt,{error:u,onHide:()=>d(""),title:"Error Creating Manual Probe"})]})},W5i=({show:e,onHide:t,charge:n,limitDates:r})=>{const{state:i}=Ma(),o=At(i.settings,"MAX_WEIGHT",0),a=At(i.settings,"MIN_WEIGHT",2e5),{saveCharge:s,getBuckets:l}=Ss(),[c,u]=v.useState(!1),[d,p]=v.useState(""),[h,g]=v.useState(!1),[m,b]=v.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=jn({}),z=(T,R)=>{R!=="clickaway"&&g(!1)},O=async T=>{u(!0),await s({...T,ChargeId:n.ChargeId}),u(!1),t()};return v.useEffect(()=>{e&&(S(),(async()=>{const T=await l();b(T)})(),x("Timestamp",n?.Timestamp),x("Weight",n?.Weight),x("BucketId",n?.BucketId||null))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Edit Manual Charge"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"EDIT MANUAL CHARGE",open:e,handleClose:()=>t(),id:"edit-charge-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(O),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"BucketId",control:w,render:({field:T})=>f.jsx(lEt,{value:T.value||null,onChange:R=>{x("BucketId",R,{shouldValidate:!0})},onBlur:T.onBlur})}),A.BucketId&&f.jsx("span",{className:y.errorLabel,children:A.BucketId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Weight",control:w,defaultValue:n?.Weight,rules:{required:"Weight is required",validate:T=>Tm(T,o,a,"Weight")},render:({field:T})=>f.jsx(hh,{...T,value:M("Weight"),label:"Scrap Weight [lbs]",onChange:R=>x("Weight",R),onBlur:()=>{}})}),A.Weight&&f.jsx("span",{className:y.errorLabel,children:A.Weight.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:w,defaultValue:n?.Timestamp,rules:{required:"Timestamp is required",validate:T=>r?.start&&T<r.start?"Timestamp must be between the start and end of the process":r?.end&&T>r.end?"Timestamp must be less than the end of the process":!0},render:({field:T})=>f.jsx(Hm,{...T,format:"HH:mm - MM/DD/YYYY",value:M("Timestamp"),label:"Time",onChange:R=>{R&&x("Timestamp",R)},onBlur:()=>{},error:A.Timestamp?.message})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(ka,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The charge was edited successfully"})})]})}),f.jsx(yt,{error:d,onHide:()=>p(""),title:"Error Editing Manual Probe"})]})},q5i=({deleteCharge:e,editCharge:t,processStart:n,processEnd:r})=>({columns:[{headerName:"Charges",headerStyle:{fontSize:"0.9rem"},children:[{field:"manual-auto",headerName:" ",flex:1,minWidth:25,maxWidth:40,cellRenderer:Lte,cellRendererParams:a=>({isManual:a.data.IsChargeManual})},{field:"Timestamp",headerName:"Time",flex:1,minWidth:61,valueGetter:a=>{if(a.data.Timestamp)return Wn(a.data.Timestamp,"HH:mm")},cellStyle:a=>{const s=a.data,l=s.IsChargeManual,c=new Date(s.Timestamp);return l&&n&&!Aj(c,n,r)?{backgroundColor:"#ffebee",border:"1px solid #f44336",color:"#c62828"}:null}},{field:"BucketName",headerName:"Bucket",flex:1,minWidth:77},{field:"Weight",headerName:"Scrap Weight [lbs]",flex:1,minWidth:137,cellStyle:{textAlign:"right"}},{field:"actions",headerName:" ",flex:1,minWidth:60,maxWidth:80,cellRenderer:TM,cellRendererParams:a=>({deleteItem:e,edit:t,id:a.data.ChargeId})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),B5i=()=>{const{state:e}=Ma(),t=At(e.settings,"MAX_CHARGES",10),{state:{deProcess:n,isProcessTimesLoading:r},actions:{setErrorMessage:i}}=_s(),{deleteCharge:o,refreshData:a}=Ss(),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(),h=n?.charges,g=h?h.length:0,m=Hw({rowCount:g}),{pause:b,resume:y}=I0(),M=h&&h.length>=t||!1,C=A=>{b();const z=h?.find(O=>O.ChargeId===A);p(z),u(!0)},x=async()=>{const A=n?.process?.ProcessId;if(A){const z=await $Si({ProcessId:A});return z.ok?await a():i(z.message),z}else return i("Process not found"),{ok:!1,message:"Process not found"}},{columns:w}=q5i({deleteCharge:o,editCharge:C,processStart:n?.process?.Start,processEnd:n?.process?.End}),S=v.useMemo(()=>h?.reduce((A,z)=>A+(z.Weight||0),0)||0,[h]);return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{elevation:0,children:f.jsxs(Tn,{padding:1,className:`${m.chargesAgGridBox}`,style:{position:"relative"},children:[f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:h,columnDefs:w,domLayout:"normal",suppressContextMenu:!0,loading:r,onRowDoubleClicked:A=>{C(A.data.ChargeId)}}),f.jsxs("div",{children:[f.jsx(Tn,{display:"flex",justifyContent:"center",width:"100%",mt:2,style:{position:"absolute",right:"4%"},children:f.jsxs(vt,{style:{cursor:"default",userSelect:"none"},children:["Total Scrap: ",f.jsxs("strong",{children:[" ",S]})," lbs"]})}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:M,showCreateModal:s,setShowCreateModal:l,readFromPLC:x,table:"charges"})]})]})}),n?.process.Start?f.jsxs(f.Fragment,{children:[f.jsx(F5i,{show:s,onHide:()=>{y(),l(!1)},date:h&&h[0]?h[0].Timestamp:n?.process.Start,limitDates:{start:n?.process.Start,end:n?.process.End}}),f.jsx(W5i,{show:c,onHide:()=>{y(),u(!1)},charge:d,limitDates:{start:n?.process.Start,end:n?.process.End||null}})]}):null]})},j5i=({value:e,onChange:t,disabled:n,error:r,helperText:i})=>{const o=v.useRef(!0),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState([]),[p,h]=v.useState(),g=fT(),m=async()=>{s(!0);const b=await ISi();if(b.ok){const y=At(b,"data.tables[0].rows",[]);d(y)}else c(b.message);s(!1)};return v.useEffect(()=>{if(o.current){o.current=!1,m().then(()=>{});return}},[]),f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(ol,{id:"phaseEventSelector",className:g.inputLabel,children:"Phase Event"}),f.jsx(cs,{fullWidth:!0,disabled:a||n,labelId:"phaseEventSelector",id:"phaseEventSelector",value:e||"",error:!!r,onChange:b=>{const y=b.target.value;t(y),h(y)},label:"Phase Event",children:u.map(b=>f.jsx(lr,{value:b.PhaseEventTypeId,children:b.EventDescription},`phase-event-${b.PhaseEventTypeId}`))}),r&&f.jsx(oQ,{error:!0,children:r})]}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},H5i=({show:e,onHide:t,date:n,limitDates:r,electrodeEvent:i})=>{const{saveElectrodeEvent:o}=Ss(),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(!1),p=d2(),{getValues:h,handleSubmit:g,setValue:m,control:b,reset:y,formState:{errors:M}}=jn({}),C=async x=>{s(!0);try{await o(x),d(!0),t()}catch(w){c(At(w,"message","An unexpected error has occurred"))}s(!1)};return v.useEffect(()=>{e&&(i?y(i):(y(),m("Timestamp",n),m("PhaseEventTypeId",0),m("Phase","A")))},[e,i]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`${i?"Edit":"New"} Manual Electrode Event`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{title:i?"EDIT ELECTRODE EVENT":"NEW ELECTRODE EVENT",open:e,handleClose:()=>t(),id:"upsert-electrode-event-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:g(C),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Phase",control:b,rules:{required:"Phase is required"},render:({field:x})=>f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(ol,{id:"phaseSelector",children:"Phase"}),f.jsxs(cs,{fullWidth:!0,labelId:"phaseSelector",id:"phaseSelector",value:x.value,onChange:x.onChange,label:"Phase",children:[f.jsx(lr,{value:"A",children:"A"}),f.jsx(lr,{value:"B",children:"B"}),f.jsx(lr,{value:"C",children:"C"})]})]})}),M.Phase&&f.jsx("span",{className:p.errorLabel,children:M.Phase.message})]}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:"4px"},children:f.jsx(Ue,{name:"Timestamp",control:b,defaultValue:new Date,rules:{required:"Timestamp is required",validate:x=>r?.start&&x<r.start?"Timestamp must be between the start and end of the process":r?.end&&x>r.end?"Timestamp must be less than the end of the process":!0},render:({field:x})=>f.jsx(Hm,{...x,format:"HH:mm - MM/DD/YYYY",value:h("Timestamp"),label:"Time",error:M.Timestamp?.message,onChange:w=>{w&&m("Timestamp",w)},onBlur:()=>{}})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"PhaseEventTypeId",control:b,rules:{required:"Phase Event Type is required",validate:x=>x===0?"Phase Event Type is required":!0},render:({field:x})=>f.jsx(j5i,{value:x.value,onChange:x.onChange,disabled:!1,error:M.PhaseEventTypeId?.message,helperText:M.PhaseEventTypeId?.message})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(ka,{fullWidth:!0,isLoading:a,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})})})}),f.jsx(yt,{error:l,onHide:()=>c(""),title:`Error ${i?"Updating":"Creating"} Electrode Event`})]})},V5i=({deleteElectrodeEvent:e,editElectrodeEvent:t,processStart:n,processEnd:r})=>({columns:[{headerName:"Electrodes",headerStyle:{fontSize:"0.9rem"},children:[{field:"Phase",headerName:"Phase",flex:1,minWidth:61},{field:"Timestamp",headerName:"Time",flex:1,minWidth:59,valueGetter:o=>{if(o.data.Timestamp)return Wn(o.data.Timestamp,"HH:mm")},cellStyle:o=>{const a=o.data,s=a.IsManual,l=new Date(a.Timestamp);return s&&n&&!Aj(l,n,r)?{backgroundColor:"#ffebee",border:"1px solid #f44336",color:"#c62828"}:null}},{field:"PhaseEventType",headerName:"Event",flex:3,minWidth:50,wrapText:!0,autoHeight:!0},{field:"actions",headerName:" ",flex:1,minWidth:80,maxWidth:80,cellRenderer:TM,cellRendererParams:o=>({deleteItem:e,edit:t,id:o.data.ElectrodeEventId})}]}]}),G5i=()=>{const{state:{deProcess:e,isProcessTimesLoading:t}}=_s(),{deleteElectrodeEvent:n}=Ss(),[r,i]=v.useState(!1),[o,a]=v.useState(!1),[s,l]=v.useState(),{pause:c,resume:u}=I0(),d=e?.electrodeEvents,p=d?d.length:0,h=Hw({rowCount:p}),g=b=>{c();const y=d?.find(M=>M.ElectrodeEventId===b);l(y),a(!0)},{columns:m}=V5i({deleteElectrodeEvent:n,editElectrodeEvent:g,processStart:e?.process?.Start,processEnd:e?.process?.End});return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{elevation:0,children:f.jsxs(Tn,{className:` ${h.electrodesAgGridBox}`,children:[f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:d,columnDefs:m,domLayout:"normal",suppressContextMenu:!0,loading:t,onRowDoubleClicked:b=>{g(b.data.ElectrodeEventId)}}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:!1,showCreateModal:r,setShowCreateModal:i,table:"electrode-events"})]})}),f.jsx(H5i,{show:r||o,onHide:()=>{u(),i(!1),a(!1),l(null)},date:e?.process?.End?e.process.Start:new Date,electrodeEvent:s})]})},vZe=Sn(),$5i=()=>({columns:[{headerName:"Heatings",headerStyle:{fontSize:"0.9rem"},children:[{field:"Start",headerName:"Start",flex:1,minWidth:81,valueGetter:n=>{if(n.data.Start)return Wn(n.data.Start,"HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:81,valueGetter:n=>{if(n.data.End)return Wn(n.data.End,"HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:85,valueGetter:n=>{const{Start:r,End:i}=n.data;if(i&&r){const o=vZe(i).diff(vZe(r),"seconds"),a=Math.floor(o/60),s=o%60;return`${a.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}}},{field:"MWH",headerName:"Energy [kwh]",flex:1,minWidth:113,cellStyle:{textAlign:"right"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),U5i=()=>{const{state:e}=Ma(),t=At(e.settings,"MAX_HEATINGS",10),{state:{deProcess:n,isProcessTimesLoading:r},actions:{setNotificationMessage:i,setErrorMessage:o}}=_s(),{refreshData:a}=Ss(),s=n?.heatings,l=s?s.length:0,c=s&&s.length>=t||!1,u=Hw({rowCount:l}),d=async()=>{const h=n?.process?.ProcessId;if(h){const g=await YSi({ProcessId:h});return g.ok?await a():o(g.message),g}else return i("Process not found"),{ok:!1,message:"Process not found"}},{columns:p}=$5i();return f.jsx(f.Fragment,{children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:1,className:`${u.heatingsAgGridBox}`,children:[f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:s,columnDefs:p,domLayout:"normal",suppressContextMenu:!0,loading:r}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:c,readFromPLC:d,table:"heatings"})]})})})},bZe=Sn(),X5i=()=>({columns:[{headerName:"Phases",headerStyle:{fontSize:"0.9rem"},children:[{field:"PhaseName",headerName:"Phase Name",flex:2,minWidth:120,valueGetter:t=>t.data.PhaseName},{field:"Start",headerName:"Start",flex:1,minWidth:81,valueGetter:t=>{if(t.data.Start)return Wn(t.data.Start,"HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:81,valueGetter:t=>{if(t.data.End)return Wn(t.data.End,"HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:85,valueGetter:t=>{const{Start:n,End:r}=t.data;if(r&&n){const i=bZe(r).diff(bZe(n),"seconds"),o=Math.floor(i/60),a=i%60;return`${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}}},{field:"Energy",headerName:"Energy [kwh]",flex:1,minWidth:60,wrapHeaderText:!0,headerStyle:{textAlign:"center"},valueGetter:t=>t.data.Energy||" "}]}]}),Y5i=()=>{const{state:{deProcess:e,isProcessTimesLoading:t},actions:{setNotificationMessage:n,setErrorMessage:r}}=_s(),{refreshData:i}=Ss(),o=e?.phases,a=o?o.length:0,s=Hw({rowCount:a}),l=async()=>{const u=e?.process?.ProcessId;if(u){const d=await KSi({ProcessId:u});return d.ok?await i():r(d.message),d}else return n("Process not found"),{ok:!1,message:"Process not found"}},{columns:c}=X5i();return f.jsx(f.Fragment,{children:f.jsx(Pt,{elevation:0,children:f.jsxs(Tn,{padding:1,className:`${s.phasesAgGridBox}`,children:[f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:o,columnDefs:c,domLayout:"normal",suppressContextMenu:!0,loading:t}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:!1,readFromPLC:l,table:"phases"})]})})})},K5i=({show:e,onHide:t,date:n,limitDates:r})=>{const{state:i}=Ma(),o=At(i.settings,"MAX_TEMP_PROBE",2500),a=At(i.settings,"MIN_TEMP_PROBE",3500),s=At(i.settings,"MAX_02_PROBE",0),l=At(i.settings,"MIN_02_PROBE",2e3),{saveProbe:c}=Ss(),[u,d]=v.useState(!1),[p,h]=v.useState(""),[g,m]=v.useState(!1),b=d2(),{getValues:y,handleSubmit:M,setValue:C,control:x,reset:w,formState:{errors:S}}=jn({}),A=(O,T)=>{T!=="clickaway"&&m(!1)},z=async O=>{d(!0),await c(O),d(!1),t()};return v.useEffect(()=>{e&&(w(),C("Timestamp",n),C("Temperature",0),C("Oxygen",0))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"New Manual Probe"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"NEW MANUAL PROBE",open:e,handleClose:()=>t(),id:"create-probe-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:M(z),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Temperature",control:x,defaultValue:0,rules:{required:"Temperature is required",validate:O=>Tm(O,o,a,"Temperature")},render:({field:O})=>f.jsx(hh,{...O,value:parseInt(y("Temperature").toFixed(0)),label:"Temperature [F]",onChange:T=>C("Temperature",T),onBlur:()=>{}})}),S.Temperature&&f.jsx("span",{className:b.errorLabel,children:S.Temperature.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Oxygen",control:x,defaultValue:0,rules:{validate:O=>Tm(O,s,l,"Oxygen")},render:({field:O})=>f.jsx(hh,{...O,value:y("Oxygen"),label:"Oxygen",onChange:T=>C("Oxygen",T),onBlur:()=>{}})}),S.Oxygen&&f.jsx("span",{className:b.errorLabel,children:S.Oxygen.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:x,defaultValue:new Date,rules:{required:"Timestamp is required",validate:O=>r?.start&&O<r.start?"Timestamp must be between the start and end of the process":r?.end&&O>r.end?"Timestamp must be less than the end of the process":!0},render:({field:O})=>f.jsx(Hm,{...O,format:"HH:mm - MM/DD/YYYY",value:y("Timestamp"),label:"Time",error:S.Timestamp?.message,onChange:T=>{T&&C("Timestamp",T)},onBlur:()=>{}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(ka,{fullWidth:!0,isLoading:u,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:A,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:A,children:"The probe was created successfully"})})]})}),f.jsx(yt,{error:p,onHide:()=>h(""),title:"Error Creating Manual Probe"})]})},Q5i=({show:e,onHide:t,probe:n,limitDates:r})=>{const{state:i}=Ma(),o=At(i.settings,"MAX_TEMP_PROBE",2500),a=At(i.settings,"MIN_TEMP_PROBE",3500),s=At(i.settings,"MAX_02_PROBE",0),l=At(i.settings,"MIN_02_PROBE",2e3),{saveProbe:c}=Ss(),[u,d]=v.useState(!1),[p,h]=v.useState(""),[g,m]=v.useState(!1),b=d2(),{getValues:y,handleSubmit:M,setValue:C,control:x,reset:w,formState:{errors:S}}=jn({}),A=(O,T)=>{T!=="clickaway"&&m(!1)},z=async O=>{d(!0),await c({...O,ProbeId:n.ProbeId}),d(!1),t()};return v.useEffect(()=>{e&&(w(),C("Timestamp",n?.Timestamp),C("Temperature",n?.Temperature),C("Oxygen",n?.Oxygen))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Edit Probe"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"EDIT MANUAL PROBE",open:e,handleClose:()=>t(),id:"edit-probe-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:M(z),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Temperature",control:x,defaultValue:n?.Temperature?parseInt(n?.Temperature.toFixed(0)):0,rules:{required:"Temperature is required",validate:O=>Tm(O,o,a,"Temperature")},render:({field:O})=>f.jsx(hh,{...O,value:parseInt(y("Temperature").toFixed(0)),label:"Temperature [F]",onChange:T=>C("Temperature",T),onBlur:()=>{}})}),S.Temperature&&f.jsx("span",{className:b.errorLabel,children:S.Temperature.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Oxygen",control:x,rules:{validate:O=>Tm(O,s,l,"Oxygen")},defaultValue:n?.Oxygen,render:({field:O})=>f.jsx(hh,{...O,value:y("Oxygen"),label:"Oxygen",onChange:T=>C("Oxygen",T),onBlur:()=>{}})}),S.Oxygen&&f.jsx("span",{className:b.errorLabel,children:S.Oxygen.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:x,defaultValue:n?.Timestamp,rules:{required:"Timestamp is required",validate:O=>r?.start&&O<r.start?"Timestamp must be between the start and end of the process":r?.end&&O>r.end?"Timestamp must be less than the end of the process":!0},render:({field:O})=>f.jsx(Hm,{...O,format:"HH:mm - MM/DD/YYYY",value:y("Timestamp"),label:"Time",error:S.Timestamp?.message,onChange:T=>{T&&C("Timestamp",T)},onBlur:()=>{}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",size:"large",onClick:()=>t(),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(ka,{fullWidth:!0,isLoading:u,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:A,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:A,children:"The probe was edited successfully"})})]})}),f.jsx(yt,{error:p,onHide:()=>h(""),title:"Error Editing Manual Probe"})]})},Z5i=({deleteProbe:e,editProbe:t,processStart:n,processEnd:r})=>({columns:[{headerName:"Probes",headerStyle:{fontSize:"0.9rem"},children:[{field:"manual-auto",headerName:" ",flex:1,minWidth:20,maxWidth:40,cellRenderer:Lte,cellRendererParams:a=>({isManual:a.data.IsProbeManual})},{field:"Timestamp",headerName:"Time",flex:1,minWidth:60,valueGetter:a=>{if(a.data.Timestamp)return Wn(a.data.Timestamp,"HH:mm")},cellStyle:a=>{const s=a.data,l=s.IsProbeManual,c=new Date(s.Timestamp);return l&&n&&!Aj(c,n,r)?{backgroundColor:"#ffebee",border:"1px solid #f44336",color:"#c62828"}:null}},{field:"Temperature",headerName:"Temp",flex:1,minWidth:60},{field:"Oxygen",headerName:"O2",flex:1,minWidth:50},{field:"actions",headerName:" ",flex:1,minWidth:60,maxWidth:80,cellRenderer:TM,cellRendererParams:a=>({deleteItem:e,edit:t,id:a.data.ProbeId})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),J5i=()=>{const{state:e}=Ma(),t=At(e.settings,"MAX_PROBES",8),{state:{deProcess:n,isProcessTimesLoading:r},actions:{setDEProcess:i,setNotificationMessage:o,setErrorMessage:a}}=_s(),{deleteProbe:s,refreshData:l}=Ss(),[c,u]=v.useState(!1),[d,p]=v.useState(!1),[h,g]=v.useState(),{pause:m,resume:b}=I0(),y=n?.probes,M=y?y.length:0,C=Hw({rowCount:M}),x=y&&y.length>=t||!1,w=z=>{m();const O=y?.find(T=>T.ProbeId===z);g(O),p(!0)},S=async()=>{const z=n?.process?.ProcessId;if(z){const O=await GSi({ProcessId:z});return O.ok?await l():a(O.message),O}else return o("Process not found"),{ok:!1,message:"Process not found"}},{columns:A}=Z5i({deleteProbe:s,editProbe:w,processStart:n?.process?.Start,processEnd:n?.process?.End});return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{elevation:0,children:f.jsxs(Tn,{className:` ${C.probesAgGridBox}`,children:[f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:y,columnDefs:A,suppressContextMenu:!0,domLayout:"normal",loading:r,onRowDoubleClicked:z=>{w(z.data.ProbeId)}}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:x,showCreateModal:c,setShowCreateModal:u,readFromPLC:S,table:"probes"})]})}),f.jsx(K5i,{show:c,onHide:()=>{b(),u(!1)},date:n?n.process.Start:new Date,limitDates:{start:n?n.process.Start:new Date,end:n?n.process.End:null}}),f.jsx(Q5i,{show:d,onHide:()=>{b(),p(!1)},probe:h,limitDates:{start:n?n.process.Start:new Date,end:n?n.process.End:null}})]})},kpe=Sn(),eNi=({show:e,onHide:t,date:n})=>{const{state:r}=Ma(),i=At(r.settings,"EAF_DE_MIN_FT_WIRE_ADDITION",0),o=At(r.settings,"EAF_DE_MAX_FT_WIRE_ADDITION",2e3),{state:{deProcess:a}}=_s(),{saveWireAddition:s,getMaterials:l}=Ss(),[c,u]=v.useState(!1),[d,p]=v.useState(""),[h,g]=v.useState(!1),[m,b]=v.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=jn({}),z=(R,P)=>{P!=="clickaway"&&g(!1)},O=R=>{if(!R)return;const P=kpe.utc(R),F=kpe.utc(a?.process.Start),N=a?.process.End?kpe.utc(a.process.End):null,L=kte(P,F,N);x("Start",L.toDate()),x("End",L.toDate())},T=async R=>{u(!0),await s(R),u(!1),t()};return v.useEffect(()=>{e&&(u(!1),S(),(async()=>{const R=await l();b(R.filter(P=>P.UseInTrim===!0))})(),x("Line",1),x("MaterialId",null),x("Start",n),x("End",n),x("InjectedValue",1))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"New Manual Wire Addition"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"CREATE WIRE ADDITION",open:e,handleClose:()=>t(),id:"create-wire-addition-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(T),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Line",control:w,rules:{required:"Line is required",validate:R=>[1,2,3].includes(R)||"Line must be 1, 2 or 3"},render:({field:R})=>f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",children:[f.jsx(ol,{id:"line-select-label",children:"Line"}),f.jsxs(cs,{...R,labelId:"line-select-label",id:"line-select",value:R.value||"",onChange:P=>R.onChange(P.target.value),label:"Line",children:[f.jsx(lr,{value:1,children:"1"}),f.jsx(lr,{value:2,children:"2"}),f.jsx(lr,{value:3,children:"3"})]})]})}),A.Line&&f.jsx("span",{className:y.errorLabel,children:A.Line.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"MaterialId",control:w,rules:{required:"Material is required"},render:({field:R})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:m??[],getOptionLabel:P=>P.MaterialName,renderInput:P=>f.jsx(je,{...P,label:"Material",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...P.InputProps,className:y.autocompleteField}}),value:m.find(P=>P.MaterialId===R.value)||null,onChange:(P,F)=>{R.onChange(F?F.MaterialId:null)}})}),A.MaterialId&&f.jsx("span",{className:y.errorLabel,children:A.MaterialId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,alignContent:"center",children:[f.jsx(Ue,{name:"End",control:w,rules:{required:"Time is required"},render:({field:R})=>f.jsx(Hm,{...R,format:"HH:mm - MM/DD/YYYY",value:M("End"),label:"Time",onChange:O,onBlur:()=>{}})}),A.End&&f.jsx("span",{className:y.errorLabel,children:A.End.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"InjectedValue",control:w,rules:{required:"Injected value is required",validate:R=>Tm(R,i,o,"Injected")},render:({field:R})=>f.jsx(hh,{...R,value:M("InjectedValue"),label:"Injected [ft]",onChange:P=>x("InjectedValue",P),onBlur:()=>{}})}),A.InjectedValue&&f.jsx("span",{className:y.errorLabel,children:A.InjectedValue.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(ka,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The wire addition was created successfully"})})]})}),f.jsx(yt,{error:d,onHide:()=>p(""),title:"Error Creating Wire Addition"})]})},Lpe=Sn(),tNi=({show:e,onHide:t,wireAddition:n})=>{const{state:r}=Ma(),{state:{deProcess:i}}=_s(),o=At(r.settings,"EAF_DE_MIN_FT_WIRE_ADDITION",0),a=At(r.settings,"EAF_DE_MAX_FT_WIRE_ADDITION",2e3),{saveWireAddition:s,getMaterials:l}=Ss(),[c,u]=v.useState(!1),[d,p]=v.useState(""),[h,g]=v.useState(!1),[m,b]=v.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=jn({}),z=(R,P)=>{P!=="clickaway"&&g(!1)},O=async R=>{u(!0),await s({...R,WireAdditionId:n.WireAdditionId}),u(!1),t()},T=R=>{if(!R)return;const P=Lpe.utc(R),F=Lpe.utc(i?.process.Start),N=i?.process.End?Lpe.utc(i.process.End):null,L=kte(P,F,N);x("End",L.toDate())};return v.useEffect(()=>{e&&(u(!1),S(),(async()=>{const R=await l();b(R.filter(P=>P.UseInTrim===!0))})(),x("Line",n?.Line),x("MaterialId",n?.MaterialId),x("Start",n?.Start),x("End",n?.End),x("InjectedValue",n?.InjectedValue),x("RequestedValue",n?.RequestedValue))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Edit Manual Wire Addition"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"EDIT WIRE ADDITION",open:e,handleClose:()=>t(),id:"edit-wire-addition-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(O),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Line",control:w,rules:{required:"Line is required",validate:R=>[1,2,3].includes(R)||"Line must be 1, 2, or 3"},render:({field:R})=>f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",children:[f.jsx(ol,{id:"line-select-label",children:"Line"}),f.jsxs(cs,{...R,labelId:"line-select-label",id:"line-select",value:R.value||"",onChange:P=>R.onChange(P.target.value),label:"Line",disabled:!0,children:[f.jsx(lr,{value:1,children:"1"}),f.jsx(lr,{value:2,children:"2"}),f.jsx(lr,{value:3,children:"3"})]})]})}),A.Line&&f.jsx("span",{className:y.errorLabel,children:A.Line.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"MaterialId",control:w,rules:{required:"Material is required"},render:({field:R})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:m??[],disabled:!n.IsManual,getOptionLabel:P=>P.MaterialName,renderInput:P=>f.jsx(je,{...P,label:"Material",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...P.InputProps,className:y.autocompleteField}}),value:m.find(P=>P.MaterialId===R.value)||null,onChange:(P,F)=>{R.onChange(F?F.MaterialId:null)}})}),A.MaterialId&&f.jsx("span",{className:y.errorLabel,children:A.MaterialId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,alignContent:"center",children:[f.jsx(Ue,{name:"End",control:w,rules:{required:"Time is required"},render:({field:R})=>f.jsx(Hm,{...R,format:"HH:mm - MM/DD/YYYY",value:M("End"),label:"Time",onChange:T,onBlur:()=>{},disabled:!0})}),A.End&&f.jsx("span",{className:y.errorLabel,children:A.End.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"InjectedValue",control:w,rules:{required:"Injected value is required",validate:R=>Tm(R,o,a,"Injected")},render:({field:R})=>f.jsx(hh,{...R,value:M("InjectedValue"),label:"Injected [ft]",onChange:P=>x("InjectedValue",P),onBlur:()=>{}})}),A.InjectedValue&&f.jsx("span",{className:y.errorLabel,children:A.InjectedValue.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(ka,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The wire addition was edited successfully"})})]})}),f.jsx(yt,{error:d,onHide:()=>p(""),title:"Error Editing Wire Addition"})]})},nNi=({deleteWireAddition:e,editWireAddition:t})=>({columns:[{headerName:"Wire Additions",headerStyle:{fontSize:"0.9rem"},children:[{field:"IsManual",headerName:" ",flex:1,minWidth:38,maxWidth:40,cellRenderer:Lte,cellRendererParams:i=>({isManual:i.data.IsManual})},{field:"Line",headerName:"Line",flex:1,minWidth:52,maxWidth:52},{field:"End",headerName:"Time",flex:1,minWidth:61,valueGetter:i=>{if(i.data.End)return Wn(i.data.End,"HH:mm")}},{field:"MaterialName",headerName:"Material",flex:1,minWidth:78},{field:"RequestedValue",headerName:"Requested [ft]",wrapHeaderText:!0,flex:1,minWidth:90,cellStyle:{textAlign:"right"}},{field:"InjectedValue",headerName:"Injected [ft]",wrapHeaderText:!0,flex:1,minWidth:90,cellStyle:{textAlign:"right"},valueGetter:i=>{if(ew(i.data.InjectedValue)){const o=i.data.InjectedValue;return o%1===0?o:o.toFixed(2)}}},{field:"actions",headerName:" ",flex:1,minWidth:80,maxWidth:80,cellRenderer:TM,cellRendererParams:i=>({deleteItem:e,edit:t,id:i.data.WireAdditionId})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),rNi=Sn(),iNi=()=>{const{state:e}=Ma(),t=At(e.settings,"EAF_DE_MAX_WIRE_ADDITIONS",10),{state:{deProcess:n,isProcessTimesLoading:r},actions:{setErrorMessage:i}}=_s(),{deleteWireAddition:o,refreshData:a}=Ss(),{pause:s,resume:l}=I0(),[c,u]=v.useState(!1),[d,p]=v.useState(!1),[h,g]=v.useState(),m=n?.wireAdditions,b=m?m.length:0,y=Hw({rowCount:b}),M=m&&m.length>=t||!1,C=S=>{s();const A=m?.find(z=>z.WireAdditionId===S);g(A),p(!0)},x=async()=>{const S=n?.process?.ProcessId;if(S){const A=await XSi({ProcessId:S});return A.ok?await a():i(A.message),A}else return i("Process not found"),{ok:!1,message:"Process not found"}},{columns:w}=nNi({deleteWireAddition:o,editWireAddition:C});return f.jsxs(f.Fragment,{children:[f.jsx(Pt,{children:f.jsxs(Tn,{padding:1,className:`${y.wireAdditionsAgGridBox}`,children:[f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:m,columnDefs:w,domLayout:"normal",suppressContextMenu:!0,loading:r,onRowDoubleClicked:S=>{C(S.data.WireAdditionId)}}),f.jsx(la,{}),f.jsx(u2,{hasMaxItems:M,showCreateModal:c,setShowCreateModal:u,readFromPLC:x,table:"wireAdditions"})]})}),f.jsx(eNi,{show:c,onHide:()=>{l(),u(!1)},date:n?.process.End?rNi(n.process.End).add(10,"minute").toDate():new Date}),f.jsx(tNi,{show:d,onHide:()=>{l(),p(!1)},wireAddition:h})]})};function oNi(e){const t=/^(\d{1,2}):(\d{2})$/,n=e.match(t);if(!n)throw new Error('Invalid time format. Expected "hh:mm".');const r=parseInt(n[1],10),i=parseInt(n[2],10);if(r<0||r>23)throw new Error("Hours must be between 0 and 23.");if(i<0||i>59)throw new Error("Minutes must be between 0 and 59.");return r*60+i}function aNi(e){const t=Math.floor(e??0),n=Math.round(((e??0)-t)*60),r=String(t).padStart(2,"0"),i=String(n).padStart(2,"0");return`${r}:${i}`}const sNi=()=>{const e=Hw(),t=ql(),n=Oo(),{pause:r,resume:i}=I0(),{state:{deProcess:o,unjustifiedDelays:a},actions:{setProcess:s,setNotificationMessage:l}}=_s(),{saveHeat:c,saveProcessData:u,refreshData:d}=Ss(),{hasAccess:p,delayJustificationDismissed:h}=rTe(),g=o?.process,[m,b]=v.useState(!1),y=v.useMemo(()=>p?h()||a.length>0:!1,[p,h,a,g?.ProcessId]),M=()=>{a.length===1?b(!0):n(`/eaf-delays-manager/${a[0].ShiftId}`)};return v.useEffect(()=>{const C=a.length>0,x=h();p&&C&&!x&&b(!0)},[p,a,h,g?.ProcessId]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:`${g?`${g.HeatName} - `:""}EAF Data Entry`}),y&&a.length>0&&f.jsx(iQ,{position:"static",style:{backgroundColor:V3t},children:f.jsx(N6,{children:f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsxs(vt,{variant:"h6",style:{color:G3t},children:["You have ",a.length," unjustified delays pending"," ",g?.AssetName?`- ${g.AssetName}`:""]})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(Ne,{onClick:M,variant:"contained",color:"primary",size:"large",children:"Justify Now!"})})]})})},`Asset ${g?.AssetId} - Process ${g?.ProcessId} - Delays ${a.length}`),f.jsx(Tn,{padding:1,style:{backgroundColor:$3t},children:f.jsxs(D,{container:!0,spacing:1,direction:"column",children:[f.jsx(D,{item:!0,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"EAF Data Entry"})}),f.jsx(D,{item:!0,children:f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,container:!0,justifyContent:"space-between",alignItems:"flex-start",spacing:3,children:[f.jsxs(D,{container:!0,item:!0,direction:"column",xs:12,md:2,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(g5i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:g?.AssetName&&g?.AssetId?f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(o5i,{assetName:g.AssetName,assetId:g.AssetId,heatStatus:g.HeatStatusCode})}):null})]}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,children:f.jsxs(D,{container:!0,direction:"column",spacing:2,children:[f.jsx(D,{item:!0,style:{marginBottom:-4},children:f.jsx(je,{InputLabelProps:{style:{fontSize:"14px"}},fullWidth:!0,label:"Shift",variant:"outlined",disabled:!0,value:`${Wn(g?.ProductionDate,"MM/dd/yy")} ${g?.Shift} - ${g?.Crew}`})}),f.jsx(D,{item:!0,children:f.jsx(gZe,{field:"Start"})}),f.jsx(D,{item:!0,children:f.jsx(gZe,{field:"End"})})]})},`first-${g?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,children:f.jsxs(D,{container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(c5i,{disabled:!g?.HeatId,value:g?.LadleId||null,onChange:C=>{s({...g,LadleId:C})}})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(hh,{label:"Steel Weight [tons]",value:g?.SteelWeight?parseFloat(g.SteelWeight.toFixed(1)):null,disabled:!g?.HeatId,onChange:C=>{s({...g,SteelWeight:C})},onBlur:()=>{c("SteelWeight",g?.SteelWeight).then(()=>{})}})})]})}),f.jsx(D,{item:!0,children:f.jsx(l5i,{ladleLife:{HeatsOnLadle:g?.HeatsOnLadle||null,ContactTimeOnLadle:g?.ContactTimeOnLadle||null},value:g?.ForceHeatsOnLadle||null,onChange:C=>{c("ForceHeatsOnLadle",C)},disabled:!(g?.HeatId||g?.LadleId)})}),f.jsx(D,{item:!0,children:f.jsx(a5i,{disabled:!g?.HeatId,value:g?.GradeId||null,onChange:C=>{s({...g,GradeId:C})}})})]})},`sec-${g?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,children:f.jsxs(D,{item:!0,container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(gTe,{label:"Tap To Tap [hh:mm:ss]",value:g?.TapToTap?g?.TapToTap:null,unit:"minutes",disabled:!0,onChange:C=>{s({...g,TapTime:Number(C)})}})}),f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(x5i,{label:"Power On [hh:mm]",disabled:gi(g?.End),initMinutes:g?.PowerOn||0,onFocusHandler:r,onBlurHandler:C=>{const x=oNi(C.target.value||"00:00");u({processId:g?.ProcessId,field:"PowerOn",value:x||0}),i()},onTimeChange:C=>{s({...g,PowerOn:Number(C)})}})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{fullWidth:!0,disabled:!0,label:"Power Off [hh:mm]",variant:"outlined",value:g?.PowerOff?aNi(g?.PowerOff/60):0,onChange:C=>{s({...g,PowerOn:Number(C.target.value)})}})})]})}),f.jsx(D,{item:!0,children:f.jsx(hh,{label:"Kwh / tons",value:g?.KWHPerTon?parseFloat(g.KWHPerTon.toFixed(1)):null,onChange:C=>{s({...g,KWHPerTon:Number(C)})},onBlur:()=>{u({processId:g?.ProcessId,field:"KWHPerTon",value:g?.KWHPerTon?g?.KWHPerTon:0})}})})]})},`third-${g?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,children:f.jsxs(D,{item:!0,container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(S5i,{field:"Foreman"})}),f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(IO,{field:"Heel",label:"Heel [tons]"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(IO,{field:"Lime",label:"Lime [lbs]"})})]})}),f.jsx(D,{item:!0,children:f.jsx(IO,{field:"InjectedCarbon",label:"Inj Carbon [lbs]"})})]})},`foreman-etc-${g?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:12,md:2,style:{marginTop:5},children:f.jsxs(D,{item:!0,container:!0,direction:"column",spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:12,md:12,children:f.jsx(m5i,{})}),f.jsx(D,{item:!0,xs:12,sm:12,md:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",style:{backgroundColor:t.palette.info.main,color:t.palette.info.contrastText},size:"large",onClick:()=>{const C=g?.ShiftId;C&&n(`/eaf-processes/${C}?processId=${g?.ProcessId}`)},children:"EAF Processes"})}),f.jsx(D,{item:!0,xs:12,sm:12,md:12,children:f.jsxs(Iz,{fullWidth:!0,variant:"contained",size:"large",children:[f.jsx(Ne,{disabled:!g?.HeatShiftId||!g?.HeatId,size:"large",style:{backgroundColor:t.palette.info.main,color:t.palette.info.contrastText,padding:"8px 16px"},onClick:()=>{const C=g?.HeatId,x=g?.HeatShiftId;C&&n(`/meltshop-heats/${x}?heatId=${C}`)},children:"Heats Page"}),f.jsx(Ne,{disabled:!g?.HeatId,size:"large",style:{backgroundColor:t.palette.info.main,color:t.palette.info.contrastText,padding:"8px 16px"},onClick:()=>{const C=g?.HeatId;C&&n(`/heat-report/${C}/eaf`)},children:"Heat Report"})]})})]})},`fourth-${g?.ProcessId}`)]})})})}),f.jsxs(D,{item:!0,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(D,{container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(J5i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(_5i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(iNi,{})})]})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(D,{container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{padding:1,className:`${e.middleTextfields}`,children:f.jsxs(D,{container:!0,spacing:1,style:{justifyContent:"center"},children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(E5i,{})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(R5i,{})})]})})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(U5i,{})})]})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(D,{container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(B5i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Y5i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(G5i,{})})]})})]}),f.jsx(D,{item:!0,children:f.jsx(Pt,{children:f.jsx(Tn,{padding:1,children:f.jsx(ja,{children:f.jsx(PMe,{className:e.outlinedTextarea,placeholder:"Notes",minRows:4,style:{width:"100%"},value:g?.Comments??"",onChange:C=>{s({...g,Comments:C.target.value})},onBlur:()=>{u({processId:g?.ProcessId,field:"Comments",value:g?.Comments??""}).then(()=>{})},onFocus:()=>r()})})})})})]})}),f.jsx(u5i,{}),a.length===1&&g?.AssetId&&f.jsx(z5i,{open:m,onHide:C=>{b(!1),i(),C&&l("Delay justified successfully.")},delay:a[0],assetId:g?.AssetId,refreshData:d})]})};Et(e=>({defaultButton:{padding:"6px 16px",fontSize:"0.875rem",lineHeight:1.75,borderRadius:"4px"}}));const lNi=C3({overrides:{MuiButton:{root:{padding:"6px 12px",fontSize:"0.7rem",lineHeight:1,borderRadius:4}},MuiButtonGroup:{grouped:{minWidth:30,padding:"4px 8px"}},MuiTextField:{root:{fontSize:"0.7rem","& .MuiInputBase-root":{minHeight:"35px"},"& .MuiOutlinedInput-input":{padding:"8px 14px"},"& label":{fontSize:"0.75rem"},"& .MuiOutlinedInput-multiline":{padding:"8px 14px"}}},MuiTable:{root:{minWidth:300}},MuiTableCell:{root:{padding:4,"&.narrow":{whiteSpace:"nowrap",maxWidth:"80px"}},head:{fontWeight:"bold"}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:"#f5f5f5"}}},MuiFormControl:{root:{margin:"4px 0",minWidth:120,width:"100%"}},MuiInputLabel:{outlined:{transform:"translate(14px, 12px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}},MuiOutlinedInput:{root:{height:"35px"},input:{padding:"8px 14px",height:"19px"}},MuiSelect:{select:{height:"35px",lineHeight:"35px",paddingTop:0,paddingBottom:0},outlined:{paddingRight:"32px"}},MuiMenuItem:{root:{fontSize:"0.8rem",minHeight:"30px",lineHeight:"30px"}}}}),yZe=e=>(v.useEffect(()=>{const[t]=performance.getEntriesByType("navigation");(t?.type==="reload"||t?.type==="navigate")&&localStorage.removeItem("dismiss_timestamp")},[]),f.jsx(IIi,{children:f.jsxs(DIi,{children:[f.jsx("div",{id:"dummy",style:{height:"0",width:"0"},tabIndex:-1}),f.jsx(Ow,{theme:lNi,children:f.jsx(sNi,{})})]})})),cNi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:new Date,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:new Date,NextEnd:new Date,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastShiftId:0,LastCrew:"",LastStart:new Date,LastEnd:new Date},processes:[],selectedProcess:null,errorMessage:"",notificationMessage:"",shiftId:!1,anchorPoint:{x:0,y:0}},UY=ki({name:"__",initialState:cNi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setProcesses(e,{payload:t}){e.processes=t},setSelectedProcess(e,{payload:t}){e.selectedProcess=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t}}}),cEt=v.createContext({state:UY.getInitialState(),actions:UY.actions}),Oj=()=>v.useContext(cEt),uNi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:UY.getInitialState(),reducers:UY.caseReducers});return f.jsx(cEt.Provider,{value:{state:t,actions:n},children:e})},MZe=Sn(),dNi=({setHelmet:e})=>{const[t,n]=v.useState(!1),[r,i]=v.useState(!1),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(""),[h,g]=v.useState(""),[m,b]=v.useState(""),{actions:{setSelectedProcess:y}}=Oj(),{shiftInfo:M}=na(),C=Oo(),x=At(M,"CurrentStart",null),w=v.useCallback(()=>{y({ProcessId:0,eafOpen:MZe.utc(x).toDate(),eafClose:MZe.utc(x).add(180,"minutes").toDate(),eafOpenString:"",eafCloseString:"",HeatId:0,HeatName:"",IsActive:!0}),n(!0)},[M?.CurrentProductionDate,y]),S=L=>{y(L),n(!0)},A=L=>{y(L),l(!0)},z=L=>{y(L);const W=Wn(`${L.IsOpen}Z`,"YYYY/MM/dd HH:mm");b(`The heat ${L.HeatName} from ${W} will be unlinked.  Do you want to continue?`),e("Unlink EAF Process"),u(!0)},O=L=>{y(L);const W=Wn(`${L.IsOpen}Z`,"YYYY/MM/dd HH:mm");g("The heat "+L.HeatName+" from "+W+" will be activated.  Do you want to continue?"),a(!0)},T=L=>{y(L);const W=Wn(L.Start,"yyyy/MM/dd HH:mm");p("The heat "+L.HeatName+" from "+W+" will be deleted.  Do you want to continue?"),e("Delete EAF Process"),i(!0)},R=L=>{L.IsActive?T(L):O(L)},P=L=>{L&&C(`/meltshop-heats/${M?.CurrentShiftId}?heatId=${L}`)},F=L=>{L!==null&&C(`/eaf-data-entry/${L}`)};return{createData:w,editData:S,linkData:A,unlinkData:z,toggleStatusData:R,getMenuOptions:L=>{let W=[];return L.ProcessId&&L.IsActive&&W.push({name:"See in Data Entry",key:"go_to_eaf",onClick:()=>{F(L.ProcessId)},style:{fontWeight:"bold"},icon:f.jsx(dM,{})}),L.HeatId&&L.IsActive&&(W=W.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>P(L.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})},{name:"Unlink Process",key:"unlink",onClick:()=>z(L),icon:f.jsx(dT,{})}])),!L.HeatId&&L.IsActive&&(W=W.concat([{name:"Link Process",key:"link",onClick:()=>A(L),icon:f.jsx(uT,{})}])),W.push({name:"Edit Process",key:"toggle_status",onClick:()=>S(L),icon:f.jsx(Fo,{})},{name:L.IsActive?"Delete Process":"Undelete Process",key:"toggle_status",onClick:()=>R(L),icon:L.IsActive?f.jsx(Mo,{}):f.jsx(Tte,{})},{name:"New Process",key:"create_new_process",onClick:()=>w(),icon:f.jsx(Jo,{})}),W},goToHeats:P,goToDataEntry:F,showActiveModal:o,showDeleteModal:r,showEditModal:t,showLinkModal:s,showUnlinkModal:c,messageActiveModal:h,messageDeleteModal:d,messageUnlinkModal:m,setShowActiveModal:a,setShowDeleteModal:i,setShowEditModal:n,setShowLinkModal:l,setShowUnlinkModal:u,setMessageActiveModal:g,setMessageDeleteModal:p,setMessageUnlinkModal:b}},pNi=Et(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600}},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),hNi=({show:e,onHide:t,refreshData:n})=>{const{state:r,actions:i}=Oj(),[o,a]=v.useState(!1),[s,l]=v.useState(""),[c,u]=v.useState([]),[d,p]=v.useState(null),[h,g]=v.useState(""),[m,b]=v.useState(""),[y,M]=v.useState(!1),C=r.selectedProcess,x=async T=>{if(C)try{if(d===null){b("Please select a heat");return}if(gi(C))return;d.IsLinked===1?M(!0):await w()}catch(R){b(R.message)}},w=async()=>{try{a(!0);const T=await eTe(C?.ProcessId,d.HeatId);T.ok?(i.setNotificationMessage("Process linked successfully"),await n()):b(T.message)}catch(T){b(T.message)}finally{a(!1),M(!1),t(!0)}},S=async()=>{if(!C)return;const T=await sD(h,C.Start,C.AssetId);T.ok&&T.data?.tables?.[0]?.rows&&u(T.data.tables[0].rows)},A=(T,R)=>{g(R)},z=T=>{T.key==="Enter"&&(T.preventDefault(),S())},O=(T,R)=>{p(R)};return v.useEffect(()=>{e&&C&&(a(!1),(async()=>{p(null),l(`Link EAF Process / Start: ${Wn(`${C.Start}`,"HH:mm")}
					 Heat: ${C.HeatName?C.HeatName:""}`);const T=await sD("",C.Start,C.AssetId);T.ok&&T.data&&T.data.tables&&T.data.tables[0].rows&&u(T.data.tables[0].rows)})())},[e,C]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`${s}`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{maxWidth:"xl",open:e,handleClose:()=>{t(!0)},id:"linkCasterProcess",title:s,children:f.jsxs("form",{children:[f.jsx(We.Content,{style:{padding:"15px 30px",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,md:2,children:f.jsx(vt,{style:{margin:0,padding:0,display:"flex",alignItems:"center",height:"56px"},variant:"h6",children:"To Heat"})}),f.jsx(D,{item:!0,md:10,children:f.jsx(Ki,{options:c,getOptionLabel:T=>T.HeatName,value:d,onChange:O,inputValue:h,onInputChange:A,renderOption:T=>f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("span",{children:T.HeatName}),T.IsLinked===1&&f.jsx("span",{style:{color:"red",marginLeft:"10px"},children:"(linked)"})]}),renderInput:T=>f.jsx(je,{...T,label:h?"Heat":"Search Heat",placeholder:"Search Heat",variant:"outlined",fullWidth:!0,onKeyDown:z,InputLabelProps:{style:{height:"auto",marginTop:5,display:"flex",alignItems:"center"}}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(ka,{fullWidth:!0,isLoading:o,disabled:o,variant:"contained",color:"primary",onClick:x,children:"Save"})})]})})]})})})}),f.jsxs(We,{open:y,handleClose:()=>M(!1),title:"Warning",id:"warningModal",children:[f.jsx(We.Content,{children:f.jsx("p",{children:"This heat is already linked in another process. Do you want to proceed?"})}),f.jsxs(We.Actions,{children:[f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>M(!1),children:"Cancel"}),f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:w,children:"Proceed"})]})]}),f.jsx(yt,{error:m,onHide:()=>b("")})]})},fNi=({value:e,onChange:t,disabled:n=!1,type:r,error:i=!1})=>{const{state:{allAssets:o}}=pte(),a=o.filter(l=>l.AssetName.includes(r)),s=l=>{t(l.target.value)};return f.jsxs(ja,{error:i,variant:"outlined",fullWidth:!0,disabled:n,children:[f.jsx(ol,{children:"Asset"}),f.jsx(cs,{disabled:n,value:e,label:"Asset",onChange:s,children:a.map(l=>f.jsx(lr,{value:l.AssetId,children:l.AssetName},l.AssetId))})]})},Fp=Sn(),gNi=Et(()=>({dateTimePicker:{},"@global":{"*::-webkit-scrollbar":{width:"10px",background:"#fff"},"*::-webkit-scrollbar-thumb":{backgroundColor:"	#C8C8C8"},"*::-webkit-scrollbar-track":{borderRadius:"10px"},"*::-webkit-scrollbar:horizontal":{height:"10px"}}})),mNi=({show:e,onHide:t,refreshData:n})=>{const r=gNi(),{shiftInfo:i}=na(),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(!1),[h,g]=v.useState(""),[m,b]=v.useState(""),{state:{selectedProcess:y},actions:{setNotificationMessage:M,setErrorMessage:C,setSelectedProcess:x}}=Oj(),{register:w,setValue:S,control:A,handleSubmit:z,reset:O,getValues:T,formState:{errors:R}}=jn({defaultValues:{}}),P=At(i,"CurrentStart",null),F=Fp.utc(P).add(180,"minutes").isAfter(Fp.utc())?Fp.utc():Fp.utc(P).add(180,"minutes"),N=async L=>{a(!0);const W=L.Start,j=L.End,V=await J3t(L.ProcessId===0?null:L.ProcessId,W,j,!0,L.AssetId);V.ok?(M("Process was "+(c?"created":"edited")+" successfully"),x(null),await n()):C(V.message),a(!1),t(!0)};return v.useEffect(()=>{e?(a(!1),(async()=>{l(!0);const L=y;if(gi(L)){l(!1);return}if(L.ProcessId===0)g("NEW EAF PROCESS"),b("New EAF Process"),u(!0);else{const W=y?.HeatName?` - Heat ${y.HeatName}`:"";g(`EDIT EAF PROCESS${W}`),b("Edit EAF Process"),u(!1)}S("ProcessId",L.ProcessId),S("Start",L.Start?Fp.utc(L.Start).toDate():Fp.utc(P).toDate()),S("End",L.End?Fp.utc(L.End).toDate():F.toDate()),S("AssetId",L.AssetId),L.End===null&&p(!0),l(!1)})()):(O(),p(!1))},[e]),v.useEffect(()=>{d&&S("End",null)},[d]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`${m}`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,className:r.dateTimePicker,children:f.jsx(We,{maxWidth:"lg",open:e,handleClose:()=>{t(!0)},id:"upsertEAFProcess",title:h,children:f.jsxs("form",{onSubmit:z(N),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:[s&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!s&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsx(Ue,{name:"AssetId",control:A,rules:{required:!0},render:({field:L})=>f.jsx(fNi,{error:!!R.AssetId,type:"EAF ",disabled:ew(y?.AssetId),value:L.value,onChange:L.onChange})}),R.AssetId&&f.jsx("p",{style:{color:"red"},children:"Select a valid asset"})]}),f.jsxs(D,{item:!0,container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Start",control:A,rules:{required:!0},render:({field:L})=>f.jsx(xd,{label:"Start",timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",timeSteps:{minutes:1},value:Fp(L.value),onChange:L.onChange,inputRef:L.ref,slotProps:{textField:{size:"small",fullWidth:!0,variant:"outlined",error:!!R.Start}}})}),R.Start&&f.jsx("p",{style:{color:"red"},children:"Invalid Ladle Open Date"})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"End",control:A,rules:{required:!d,validate:L=>{if(Fp.utc(L).isAfter(Fp.utc()))return"End date cannot be in the future";if(Fp.utc(L).isBefore(Fp.utc(T("Start"))))return"End date cannot be before the Start"}},render:({field:L})=>f.jsx(xd,{label:"End",format:"MM/DD/YYYY  HH:mm",timezone:Ic.getInstance().getServerTimeZone(),value:Fp(L.value),onChange:L.onChange,disabled:d,inputRef:L.ref,slotProps:{textField:{size:"small",fullWidth:!0,variant:"outlined",error:!!R.End}}})}),R.End&&f.jsx("p",{style:{color:"red"},children:R.End.message})]})]})]}),f.jsx(D,{item:!0,xs:12,children:f.jsx(So,{control:f.jsx(Qr,{...w("IsOpen"),color:"primary",checked:d,onChange:L=>p(L.target.checked)}),label:"Process not finished"})})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:o&&f.jsx(Kt,{size:"1rem"}),disabled:o,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})})})})]})},vNi=e=>f.jsx("div",{style:{padding:"5px"},children:f.jsx(Ne,{variant:"contained",color:"primary",onClick:e.onNewProcess,children:"NEW PROCESS"})}),_te=e=>e.value?f.jsx("span",{className:"custom-chip",children:e.value}):null,CZe=Sn(),bNi=({})=>{const{shiftInfo:e}=na(),t=At(e,"CurrentShiftId",null);return{columns:[{field:"AssetName",headerName:"EAF",cellRenderer:_te,cellClass:r=>r.data.AssetId?`eaf-${r.data.AssetId}`:"",minWidth:88,flex:1},{field:"HeatName",headerName:"Heat",cellRenderer:r=>Td({...r,link:`/meltshop-heats/${t}?heatId=${r.data.HeatId}`}),minWidth:70,flex:1},{field:"GradeName",headerName:"Grade",minWidth:79,flex:1},{field:"LadleName",headerName:"Ladle",minWidth:60,flex:1},{field:"Start",headerName:"Start",cellRenderer:r=>Td({...r,link:`/eaf-data-entry/${r.data.ProcessId}`}),minWidth:62,valueGetter:r=>r.data.Start?CZe(r.data?.Start).format("HH:mm"):"",flex:1},{field:"End",headerName:"End",valueGetter:r=>r.data.End?CZe(r.data?.End).format("HH:mm"):"",minWidth:62,flex:1},{field:"TapToTap",headerName:"Tap To Tap",minWidth:85,wrapHeaderText:!0,cellStyle:{textAlign:"right"},flex:1},{field:"PowerOn",headerName:"Power On",wrapHeaderText:!0,cellStyle:{textAlign:"right"},minWidth:80,flex:1},{field:"MWH",headerName:"MWH",valueGetter:r=>r.data.MWH?r.data.MWH.toFixed(1):"",minWidth:60,cellStyle:{textAlign:"right"},flex:1},{field:"OxygenVolume",headerName:"O2 Vol [scf]",valueGetter:r=>r.data.OxygenVolume?r.data.OxygenVolume.toFixed(1):"",minWidth:100,cellStyle:{textAlign:"right"},flex:1},{field:"Charges",headerName:"Charges",minWidth:76,cellStyle:{textAlign:"right"},flex:1},{field:"ScrapTons",headerName:"Scrap [lbs]",minWidth:95,cellStyle:{textAlign:"right"},flex:1},{field:"LastTemperature",headerName:"Last Temp",minWidth:90,cellStyle:{textAlign:"right"},flex:1},{field:"TrimProbeTemperature",headerName:"Trim Temp",minWidth:88,cellStyle:{textAlign:"right"},flex:1},{field:"DeltaT",headerName:"Delta T",minWidth:68,cellStyle:{textAlign:"right"},flex:1},{field:"SteelWeight",headerName:"Steel Weight",minWidth:102,cellStyle:{textAlign:"right"},flex:1},{field:"IsProcessManual",headerName:"",cellRenderer:yte,minWidth:50,maxWidth:50,flex:1},{field:"Name",headerName:"",type:["nonSorteable","nonFilterable","optionsButton"],maxWidth:150,minWidth:150,editable:!1}]}},yNi=({loadingGrid:e,rows:t,refreshData:n})=>{const r=pNi(),i=v.useRef(null),[o,a]=v.useState(null),[s,l]=v.useState(null),[c,u]=Zu(),[d,p]=v.useState(""),{columns:h}=bNi({}),{state:{selectedProcess:g,errorMessage:m},actions:{setSelectedProcess:b,setIsLoadingBackground:y,setNotificationMessage:M,setErrorMessage:C}}=Oj(),{createData:x,editData:w,linkData:S,unlinkData:A,getMenuOptions:z,toggleStatusData:O,goToDataEntry:T,showActiveModal:R,showDeleteModal:P,showEditModal:F,showLinkModal:N,showUnlinkModal:L,messageActiveModal:W,messageDeleteModal:j,setShowActiveModal:V,setShowDeleteModal:G,setShowEditModal:q,setShowLinkModal:$,setShowUnlinkModal:U,setMessageActiveModal:X,setMessageDeleteModal:Q}=dNi({setHelmet:p}),{showContextMenu:re,registerConfig:ee}=ws(),{shiftInfo:se}=na(),pe=`The Heat ${g?.HeatName} from ${Wn(g?.Start,"YYYY/MM/DD HH:mm")} will be unlinked.  Do you want to continue?`,te=Oe=>{if(!Oe.data.IsActive)return{background:"#E8EBEB"}},ce=Oe=>{Oe.preventDefault()},oe=()=>{if(!s)return;const Oe=s.getSelectedRows();Oe.length>0?(a(Oe[0]),u({processId:Oe[0].ProcessId},{replace:!0})):(a(null),u({},{replace:!0}))},ae=async Oe=>{if(U(!1),Oe!=="OK"){p("");return}await tTe(g.ProcessId),await n(),p("")},ne=async Oe=>{if(G(!1),Q(""),Oe!=="OK"){p("");return}if(g===null)return;y(!0);const de=await gIi(g.ProcessId);de.ok?(y(!1),M("Process deleted successfully"),b(null),await n()):(y(!1),C(de.message)),p("")},le=async Oe=>{if(V(!1),X(""),Oe!=="OK"){p("");return}if(g===null)return;y(!0);const de=await mIi(g.ProcessId);de.ok?(y(!1),M("Process activated successfully"),b(null),await n()):(y(!1),C(de.message)),p("")},{columnTypes:he}=ku({OnEdit:w});he.activeButton={field:"IsActive",headerName:"",cellRenderer:mzt,cellRendererParams:{clicked:O},cellClass:"ag-button-cell"},he.optionsButton={field:"options",headerName:"",cellRenderer:Oe=>f.jsxs("div",{className:r.buttons,children:[f.jsx(bn,{"aria-label":"link/unlink",title:Oe.data.HeatName?"Unlink":"Link",style:{cursor:"pointer"},onClick:()=>{Oe.data.HeatName?A(Oe.data):S(Oe.data)},children:Oe.data.HeatName?f.jsx(dT,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}}):f.jsx(uT,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(bn,{"aria-label":"delete-icon",title:Oe.data.IsActive?"Delete":"Activate",style:{cursor:"pointer"},onClick:()=>O(Oe.data),children:Oe.data.IsActive?f.jsx(Mo,{fontSize:"inherit",color:"secondary",style:{cursor:"pointer"}}):f.jsx(Tte,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(bn,{"aria-label":"Options",title:"Options",style:{cursor:"pointer"},onClick:de=>re(de,Oe.data,"eafProcesses"),children:f.jsx(Cj,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})})]}),cellClass:r.buttons};const be={newProcessStatusBar:vNi},me={statusPanels:[{statusPanel:"newProcessStatusBar",align:"right",statusPanelParams:{onNewProcess:x}}]};v.useEffect(()=>{e&&i.current!==null&&i.current.api!==void 0?i.current.api.showLoadingOverlay():i.current!==null&&i.current.api!==void 0&&i.current.api.hideOverlay()},[e]);const Me=Oe=>{l(Oe.api)};return v.useEffect(()=>{if(!e&&s&&t&&t.length>0){const Oe=c.get("processId");if(Oe){const de=s.getRowNode(Oe);de&&(s.deselectAll(),de?.setSelected(!0,!0),a(de.data))}}},[s,e,t]),v.useEffect(()=>{ee({id:"eafProcesses",getOptions:z})},[se?.CurrentShiftId]),f.jsxs(f.Fragment,{children:[o&&!F&&!P&&!N&&!L&&!R&&f.jsx(yn,{title:`${o.HeatName?`${o.HeatName} - `:""} EAF Processes`}),d&&f.jsx(yn,{title:`${d}`}),f.jsxs("div",{onContextMenu:ce,children:[f.jsx("div",{children:f.jsx(D,{item:!0,container:!0,md:12,xs:12,children:f.jsx(D,{item:!0,md:12,xs:12,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx($n,{ref:i,onGridReady:Me,rowSelection:"single",pagination:!1,animateRows:!0,rowHeight:35,headerHeight:35,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:h,columnTypes:he,getRowStyle:te,getRowId:Oe=>String(Oe.data.ProcessId),suppressContextMenu:!0,onRowDoubleClicked:Oe=>{Oe.data.IsActive&&T(Oe.data.ProcessId)},onCellContextMenu:Oe=>{Oe.api.deselectAll(),Oe.node.setSelected(!0),b(Oe?.data),Oe.event&&re(Oe.event,Oe.data,"eafProcesses")},onSelectionChanged:oe,statusBar:me,components:be})})})}),f.jsx(yt,{error:m,onHide:()=>C("")}),f.jsx(il,{title:"Confirmation",message:j,open:P,onClose:ne}),f.jsx(il,{title:"Confirmation",message:W,open:R,onClose:le}),f.jsx(il,{title:"Confirmation",message:pe,open:L,onClose:ae}),f.jsx(mNi,{show:F,onHide:()=>q(!1),refreshData:n}),f.jsx(hNi,{show:N,onHide:()=>$(!1),refreshData:n})]})]})},MNi=()=>{const e=Oo(),{state:t,actions:n}=Oj(),[r,i]=v.useState(!1),[o]=Zu(),[a,s]=v.useState(!0),{shiftInfo:l,getShiftDataFromAPI:c}=na(),{shiftId:u}=ds(),d=async p=>{n.setIsLoadingGrid(!0);const h=At(p||l,"CurrentShiftId",null),g=await x2e(Number(h),r);g.ok&&g.data.tables.length>0?n.setProcesses(g.data.tables[0].rows):n.setErrorMessage("Error fetching processes data"),n.setIsLoadingGrid(!1)};return v.useEffect(()=>{if(l&&!a){const p=At(l,"CurrentShiftId",null),h=new URLSearchParams(o.toString());e(`/eaf-processes/${p}?${h.toString()}`),(async()=>await d())()}},[l,r]),v.useEffect(()=>{u?(async()=>{const p=Number(u);c(null,p).then(async h=>{h&&(await d(h),s(!1))})})():(async()=>c(null,0).then(async p=>{p&&(await d(p),s(!1))}))()},[]),t.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"EAF Processes"}),f.jsxs(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:t.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"EAF Processes"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(qm,{preventInit:!0}),f.jsx(Pt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(OD,{children:f.jsx(So,{control:f.jsx(Qr,{checked:r,color:"primary",onChange:p=>i(p.target.checked)}),label:"Show deleted processes"})})})})})]})}),f.jsx(yNi,{loadingGrid:t.isLoadingGrid,rows:t.processes||[],refreshData:d})]})}),f.jsx(yt,{error:t.errorMessage,onHide:()=>n.setErrorMessage("")}),f.jsx(jm,{message:t.notificationMessage,onHide:()=>n.setNotificationMessage("")})]})]})},xZe=e=>f.jsx(uNi,{children:f.jsx(MNi,{})}),CNi={isLoadingBackground:!1,isLoadingGrid:!0,processes:[],errorMessage:"",notificationMessage:"",shiftId:!1},XY=ki({name:"__",initialState:CNi,reducers:{setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setProcesses(e,{payload:t}){e.processes=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t}}}),uEt=v.createContext({state:XY.getInitialState(),actions:XY.actions}),dEt=()=>v.useContext(uEt),xNi=({children:e})=>{const{shiftId:t}=ds(),[n,r]=Fi.useComplexState({initialState:XY.getInitialState(),reducers:XY.caseReducers});return v.useEffect(()=>{const i=Number(t);gi(t)||isNaN(i)?r.setShiftId(null):r.setShiftId(i)},[t]),f.jsx(uEt.Provider,{value:{state:n,actions:r},children:e})},wNi=Et(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell":{padding:2},"& .ag-header-cell-label":{justifyContent:"center",fontSize:"1.5vh"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600},"& .eaf-11":{fontWeight:500,"& .MuiChip-outlined":{backgroundColor:" #dae8fc"}},"& .eaf-12":{fontWeight:500,"& .MuiChip-outlined":{backgroundColor:"#d5e8d4"}},"& .warning-limit":{color:"#CC0000",fontWeight:800}},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),Js=e=>({...e,sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0}),SNi=()=>({columns:[Js({field:"ProcessId",headerName:"Process Id",minWidth:60,hide:!0}),Js({field:"ProductionDate",headerName:"Production Date",valueGetter:t=>mt(t?.data?.ProductionDate).format("MM/DD/YYYY"),minWidth:112,flex:1,valueFormatter:t=>mt(t?.data?.ProductionDate).format("MM/DD/YYYY")}),Js({field:"Shift",headerName:"Shift",minWidth:53,maxWidth:53,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1}),Js({field:"Crew",headerName:"Crew",minWidth:56,maxWidth:56,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1}),Js({field:"HeatId",headerName:"Heat Id",minWidth:60,hide:!0}),Js({field:"Heat",headerName:"Heat",minWidth:70,maxWidth:70,flex:1}),Js({field:"AssetId",headerName:"Asset Id",minWidth:60,hide:!0}),Js({field:"Asset",headerName:"Asset",cellClass:t=>t.data.AssetId?`eaf-${t.data.AssetId}`:"",cellRenderer:_te,minWidth:87,flex:1}),Js({field:"Grade",headerName:"Grade",minWidth:96,flex:1}),Js({field:"Ladle",headerName:"Ladle",minWidth:57,maxWidth:57,flex:1}),Js({field:"EafStart",headerName:"Start",valueGetter:t=>Wn(`${t.data?.EafStart}`,"HH:mm:ss"),minWidth:82,flex:1,valueFormatter:t=>Wn(`${t.data?.EafStart}`,"HH:mm:ss")}),Js({field:"EafEnd",headerName:"End",valueGetter:t=>Wn(`${t.data?.EafEnd}`,"HH:mm:ss"),minWidth:82,flex:1,valueFormatter:t=>Wn(`${t.data?.EafEnd}`,"HH:mm:ss")}),Js({field:"TapToTap",headerName:"Tap To Tap",valueFormatter:t=>t.value?`${t.value} min`:"",cellClass:t=>t.value>200?"warning-limit":"",minWidth:75,flex:1}),Js({field:"PowerOn",headerName:"Power On",valueFormatter:t=>t.value?`${t.value} min`:"",minWidth:75,flex:1}),Js({field:"PowerOff",headerName:"Power Off",valueFormatter:t=>t.value?`${t.value} min`:"",minWidth:75,flex:1}),Js({field:"Delays",headerName:"Delays",valueFormatter:t=>t.value?`${t.value} min`:"",minWidth:75,flex:1}),Js({field:"MicroDelays",headerName:"Micro Delays",valueFormatter:t=>t.value?`${t.value} min`:"",minWidth:75,flex:1}),Js({field:"MWH",headerName:"MWH",minWidth:57,cellStyle:{display:"flex",justifyContent:"flex-end"},flex:1}),Js({field:"OxygenVolume",headerName:"O2 Vol [scf]",valueFormatter:t=>t.value?t.value.toFixed(1):"",minWidth:78,cellStyle:{display:"flex",justifyContent:"flex-end"},flex:1}),Js({field:"Charges",headerName:"Charges",minWidth:60,maxWidth:60,flex:1}),Js({field:"Scrap",headerName:"Scrap",minWidth:80,flex:1}),Js({field:"LastTemperature",headerName:"Last Temperature",minWidth:122,flex:1}),Js({field:"ShiftStart",headerName:"Shift Start",valueGetter:t=>Wn(`${t.data?.ShiftStart}`,"HH:mm:ss"),minWidth:82,flex:1,valueFormatter:t=>Wn(`${t.data?.ShiftStart}`,"HH:mm:ss")}),Js({field:"ShiftEnd",headerName:"Shift End",valueGetter:t=>Wn(`${t.data?.ShiftEnd}`,"HH:mm:ss"),minWidth:82,flex:1,valueFormatter:t=>Wn(`${t.data?.ShiftEnd}`,"HH:mm:ss")}),Js({field:"manual",headerName:"Manual",minWidth:68,maxWidth:68,valueGetter:t=>t.data?.manual?"Yes":"No",valueFormatter:t=>t.value?"Yes":"No",cellRenderer:t=>t.data?.manual?f.jsx(D,{container:!0,justifyContent:"center",style:{width:"100%",height:"100%"},children:f.jsx(D,{item:!0,md:12,children:f.jsx(Ne,{title:t.data?.manual?"Manual":"Automatic",variant:"contained",color:"primary",style:{cursor:"auto",backgroundColor:t.data?.manual?"primary":"green",minWidth:"1px",padding:"1px 7px"},children:t.data?.manual?"M":"A"})})}):null,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}})]}),ANi=({loadingGrid:e,rows:t,gridRef:n})=>{wNi();const{columns:r}=SNi(),{state:{errorMessage:i},actions:{setErrorMessage:o}}=dEt(),a=v.useMemo(()=>Cn,[]);return v.useEffect(()=>{e?n.current?.api?.showLoadingOverlay():n.current?.api?.hideOverlay()},[e]),f.jsxs("div",{onContextMenu:s=>s.preventDefault(),children:[f.jsx("div",{children:f.jsx(D,{item:!0,container:!0,md:12,xs:12,children:f.jsx(D,{item:!0,md:12,xs:12,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx($n,{ref:n,rowSelection:"single",pagination:!1,animateRows:!0,loadingOverlayComponent:a,singleClickEdit:!0,rowData:t,columnDefs:r,suppressContextMenu:!0,getRowId:s=>s.data.ProcessId})})})}),f.jsx(yt,{error:i,onHide:()=>o("")})]})},wZe=Sn(),ONi=({label:e,value:t,onChange:n})=>{const r=new Date;return f.jsx(_f,{openTo:"month",views:["year","month"],label:e,format:"MMMM YYYY",value:wZe(t),onChange:i=>n(i?i.toDate():null),maxDate:wZe(r),slotProps:{textField:{variant:"outlined",InputProps:{style:{height:"45px",fontSize:"14px"}},sx:{"& .MuiInputBase-root":{height:"45px"}}}},showDaysOutsideCurrentMonth:!1})},zNi=Et(e=>({formControl:{width:"100%",minWidth:200,backgroundColor:"#FFFFFF !important","& .MuiOutlinedInput-root":{height:45,paddingTop:"10px","&.Mui-focused":{outline:"none","& .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)",borderWidth:1}}},"& .MuiSelect-select:focus":{backgroundColor:"transparent"},"& .MuiInputLabel-outlined":{transform:"translate(14px, 12px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}},monthPicker:{minWidth:150}})),TNi=[{id:null,name:"ALL"},{id:11,name:"EAF 1"},{id:12,name:"EAF 2"}],ENi=({onMonthChange:e,onAssetChange:t,selectedMonth:n,selectedAsset:r})=>{const i=zNi(),o=s=>{e(s)},a=s=>{const l=s.target.value,c=l==="null"?null:Number(l);t(c)};return f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,children:f.jsx("div",{className:i.monthPicker,children:f.jsx(ONi,{label:"Month",value:n,onChange:o})})}),f.jsx(D,{item:!0,children:f.jsxs(ja,{variant:"outlined",className:i.formControl,children:[f.jsx(ol,{children:"Asset"}),f.jsx(cs,{value:r===null?"null":r,label:"Asset",onChange:a,children:TNi.map(s=>f.jsx(lr,{value:s.id===null?"null":s.id,children:s.name},s.id??"all"))})]})})]})},RNi=e=>{const t=new Date(e);return t.setDate(1),t.setHours(0,0,0,0),t},INi=async(e,t)=>{const n=new Ye,r=[],i=QAt(RNi(e),"yyyy-MM-dd");return r.push({name:"Month",value:i}),r.push({name:"AssetId",value:t||null}),await n.callV2("[EAF].[GetProcessDataMonthlyReport]",r)},gR=Sn(),PNi=()=>{const{state:{processes:e,isLoadingGrid:t,notificationMessage:n,isLoadingBackground:r},actions:{setProcesses:i,setIsLoadingGrid:o,setNotificationMessage:a}}=dEt(),[s,l]=v.useState(""),c=v.useRef(!0),[u,d]=v.useState(!0),p=v.useRef(null),[h,g]=Zu(),[m,b]=v.useState(()=>{const z=h.get("month");if(z){const O=gR(z);return O.isValid()?O.toDate():gR().startOf("month").toDate()}return gR().startOf("month").toDate()}),[y,M]=v.useState(()=>{const z=h.get("asset");return z?Number(z):null}),C=z=>{if(!z)return;const O=gR(z).startOf("month").toDate();b(O),x(O,y),S(O,y)},x=(z,O)=>{const T={};T.month=z.toISOString(),O!==null&&(T.asset=O.toString()),g(T)},w=z=>{M(z),x(m,z),S(m,z)},S=async(z,O)=>{o(!0);try{const T=await INi(z,O);if(T.ok){const R=At(T,"data.tables[0].rows",[]);i(R)}else l(T.message)}catch{l("Error fetching data")}finally{o(!1),c.current&&(d(!1),c.current=!1)}},A=()=>{if(p.current?.api){const z=p.current.api.getColumnDefs();if(z){const O={skipHeader:!1,skipFooters:!0,skipGroups:!0,columnWidth:100,sheetName:"Process Data Report",headerRowHeight:30,rowHeight:25,suppressTextAround:!0,fileName:`swv-ms_heat-report_${gR(m).format("YYYY-MM")}${y===11?"-EAF1":y===12?"-EAF2":""}.xlsx`,allColumns:!0};p.current.api.exportDataAsExcel(O),p.current.api.setGridOption("columnDefs",z)}}};return v.useEffect(()=>{S(m,y)},[]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:`Process Data Report - ${gR(m).format("MMMM YYYY")}`}),f.jsxs(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:r}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Process Data Report"})}),f.jsx(D,{item:!0,md:12,children:f.jsxs(D,{container:!0,direction:"row",alignItems:"stretch",justifyContent:"space-between",spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(Pt,{elevation:1,style:{height:"100%",display:"flex",alignItems:"center",padding:"18px 24px",backgroundColor:"#fff"},children:f.jsx(ENi,{onMonthChange:C,selectedAsset:y,onAssetChange:w,selectedMonth:m})})}),f.jsx(D,{item:!0,xs:"auto",style:{display:"flex",alignItems:"center",marginLeft:16},children:f.jsx("div",{children:f.jsx(pT,{onClick:A,disabled:!e||e.length===0})})})]})}),f.jsx(jm,{message:n,onHide:()=>a("")}),f.jsx(D,{item:!0,xs:12,children:u?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"400px"},children:f.jsx(Kt,{})}):f.jsx(ANi,{loadingGrid:t,rows:e,refreshData:()=>S(m,y),gridRef:p})})]})})]}),f.jsx(yt,{error:s,onHide:()=>l("")})]})},SZe=e=>f.jsx(dte,{children:f.jsx(xNi,{children:f.jsx(PNi,{})})}),DNi=[f.jsx(ar,{path:"/eaf-data-entry",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(yZe,{})})}),f.jsx(ar,{path:"/eaf-data-entry/:processId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(yZe,{})}),children:" "}),f.jsx(ar,{path:"/eaf-processes-data-report",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SZe,{})})}),f.jsx(ar,{path:"/eaf-processes-data-report/:processId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SZe,{})})}),f.jsx(ar,{path:"/eaf-processes",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(xZe,{})})}),f.jsx(ar,{path:"/eaf-processes/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(xZe,{})})})],AZe=Sn(),kNi=({heat:e,getDataFromAPI:t})=>{const n=Gl();return f.jsx(Pt,{elevation:0,style:{border:"1px solid #ccc"},children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,alignContent:"center",children:f.jsx(B3t,{value:e,onChange:r=>{t(r)},onBlur:()=>{},showNext:!!e.NextHeatId,showPrevious:!!e.PreviousHeatId,onNext:r=>{t(r)},onPrevious:r=>{t(r)},onLast:()=>{t(null)}})},"heat-number")},"col-heat-number"),f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Tap Time",value:e.TapDate?`${AZe(e.TapDate).format("HH:mm - MM/DD/YYYY ")} - Shift ${e.TapShift} - Crew ${e.TapCrew}`:"",variant:"outlined",fullWidth:!0,onChange:()=>{}})},"tap-time"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Open",value:e.OpenDate?`${AZe(e.OpenDate).format("HH:mm - MM/DD/YYYY")} - Shift ${e.OpenShift} - Crew ${e.OpenCrew}`:"",variant:"outlined",fullWidth:!0,onChange:()=>{}})},"open-time")]})},"col-main-data-1"),f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:n.container,children:[f.jsx(je,{className:`${n.field} ${n.leftField}`,label:"Ladle",variant:"outlined",size:"small",value:e.LadleName||""}),f.jsx(je,{className:`${n.field} ${n.rightField}`,label:"Ladle Life",variant:"outlined",size:"small",value:e.HeatsOnLadle||""})]})},"ladle"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Grade",value:e.Grade??"",variant:"outlined",fullWidth:!0,onChange:()=>{}})},"grade")]})},"col-main-data-2"),f.jsx(D,{item:!0,xs:3,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Final Status",value:AY(e.FinalStatus??"").name,variant:"outlined",fullWidth:!0,onChange:()=>{},InputProps:{endAdornment:f.jsx(ac,{position:"start",children:f.jsx("div",{style:{width:"26px",height:"26px",borderRadius:4,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold",backgroundColor:e.FinalStatus?AY(e.FinalStatus).color:"#ccc"},children:e.FinalStatus})})}})},"final-status")},"final-status")]})})})},LNi={isDataLoading:!1,heat:{HeatName:"",HeatId:0,Grade:"",LadleName:null,HeatsOnLadle:null,TapDate:null,TapShift:null,TapCrew:null,OpenDate:null,OpenShift:null,OpenCrew:null,FinalStatus:null,SteelWeight:null,EAFProcessId:null,CASProcessId:null,NextHeatId:null,PreviousHeatId:null,NextHeatName:null,PreviousHeatName:null},eafProcessData:{ProcessId:0,Start:new Date,End:null,StartTap:null,TapToTap:0,PowerOn:0,PowerOff:0,ScrapCharged:null,Energy:0,KWHPerTon:null,Foreman:null,Lime:0,OxygenVolume:null,HeatsOnRoof:null,HeatsOnLining:null,HeatsOnTapHole:null,HeatsOnRunnerSpout:null,ElectrodeConsumption:null,ArcStability:null,Comments:null,DelayTime:null,PrevHeatId:null,NextHeatId:null,PrevHeatName:null,NextHeatName:null,AssetId:0,AssetName:""},casProcessData:{ProcessId:0,AssetId:0,AssetName:"",IsFreeOpen:!1,LadleOpen:null,LadleClose:null,Duration:0,NozzleSize:null,HeatsOnNozzle:null,TundishName:null,HeatsOnTundish:null,TundishShroudName:null,HeatsOnTundishShroud:null,Foreman:null,PourbackWeight:null,CastTons:null,Comments:null},heatLabData:null,elementData:[],productionData:[],strandData:[],scrapData:[],probes:[],charges:[],additions:[],heatings:[],phases:[],delays:[],logbook:[],strandSpeeds:[],moldLevels:[],eafValues:[],billetTemp:[],mechanicalTests:null,mechanicalSamples:null,mechanicalGradeLimits:null,mechanicalResultSources:null,isMechanicalDataLoading:!1,eafChartOffsetMinutes:40},YY=ki({name:"__",initialState:LNi,reducers:{setIsDataLoading(e,{payload:t}){e.isDataLoading=t},setHeat(e,{payload:t}){e.heat=t},setEAFProcessData(e,{payload:t}){e.eafProcessData=t},setCASProcessData(e,{payload:t}){e.casProcessData=t},setHeatLabData(e,{payload:t}){e.heatLabData=t},setElementData(e,{payload:t}){e.elementData=t},setProductionData(e,{payload:t}){e.productionData=t},setStrandData(e,{payload:t}){e.strandData=t},setScrapData(e,{payload:t}){e.scrapData=t},setProbes(e,{payload:t}){e.probes=t},setCharges(e,{payload:t}){e.charges=t},setAdditions(e,{payload:t}){e.additions=t},setHeatings(e,{payload:t}){e.heatings=t},setPhases(e,{payload:t}){e.phases=t},setDelays(e,{payload:t}){e.delays=t},setLogbook(e,{payload:t}){e.logbook=t},setStrandSpeeds(e,{payload:t}){e.strandSpeeds=t},setMoldLevels(e,{payload:t}){e.moldLevels=t},setEAFValues(e,{payload:t}){e.eafValues=t},setBilletTemp(e,{payload:t}){e.billetTemp=t},setMechanicalTests(e,{payload:t}){e.mechanicalTests=t},setMechanicalSamples(e,{payload:t}){e.mechanicalSamples=t},setMechanicalGradeLimits(e,{payload:t}){e.mechanicalGradeLimits=t},setMechanicalResultSources(e,{payload:t}){e.mechanicalResultSources=t},setIsMechanicalDataLoading(e,{payload:t}){e.isMechanicalDataLoading=t},setEafChartOffsetMinutes(e,{payload:t}){e.eafChartOffsetMinutes=t}}}),pEt=v.createContext({state:YY.getInitialState(),actions:YY.actions}),$l=()=>v.useContext(pEt),_Ni=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:YY.getInitialState(),reducers:YY.caseReducers});return f.jsx(pEt.Provider,{value:{state:t,actions:n},children:e})},mTe=({assetId:e,assetName:t})=>{const n=Gl(),r={15:"#479dc4",11:"#dae8fc",12:"#d5e8d4",13:"#f4d2d2"};return f.jsx(f.Fragment,{children:f.jsx(wD,{className:n.assetTitle,style:{backgroundColor:e?r[e]:" #e0e0e0",color:e===15?"white":"black"},variant:"outlined",children:f.jsx(SD,{children:e&&t?f.jsx(vt,{variant:"h3",children:t}):f.jsx(Kt,{})})})})},OZe=Sn(),NNi=()=>{const{state:{casProcessData:e}}=$l(),t=Gl();return f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(Pt,{className:t.borderAgGridTable,style:{marginLeft:"4px",marginRight:"-4px"},elevation:0,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(mTe,{assetId:e.AssetId||13,assetName:e.AssetName||"Caster"})},`${e.ProcessId}-asset`)},`${e.ProcessId}-column-1`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Ladle Open",value:e?.LadleOpen?OZe(e.LadleOpen).format("HH:mm - MM/DD/YYYY"):" ",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-ladle-open-time`),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Ladle Close",value:e?.LadleClose?OZe(e.LadleClose).format("HH:mm - MM/DD/YYYY"):"",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-ladle-close-time`)]})},`${e.ProcessId}-column-2`),f.jsxs(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(gTe,{label:"Duration [hh:mm:ss]",value:e?.Duration?Number(e?.Duration):null,unit:"seconds",onChange:()=>{}})},`${e.ProcessId}-duration-time`),f.jsx(D,{item:!0,xs:12,children:f.jsx(UI,{label:"Did Ladle Open",checkboxValue:!!e?.IsFreeOpen,onCheckboxChange:()=>{},disabled:!0})},`${e.ProcessId}-did-ladle-open`)]},`${e.ProcessId}-column-3`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Foreman",value:e?.Foreman??"",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-foreman`),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Cast Tons",value:e?.CastTons?.toFixed(1)??"",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-cast-tons`)]})},`${e.ProcessId}-column-4`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:t.container,children:[f.jsx(je,{className:`${t.field} ${t.leftField}`,label:"Nozzle",variant:"outlined",size:"small",value:e?.NozzleSize||""}),f.jsx(je,{className:`${t.field} ${t.rightField}`,label:"Heats On Nozzle",variant:"outlined",size:"small",value:e?.HeatsOnNozzle||""})]})},`${e.ProcessId}-nozzle`),f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:t.container,children:[f.jsx(je,{className:`${t.field} ${t.leftField}`,label:"Tundish",variant:"outlined",size:"small",value:e?.NozzleSize||""}),f.jsx(je,{className:`${t.field} ${t.rightField}`,label:"Heats On Tundish",variant:"outlined",size:"small",value:e?.HeatsOnTundish||""})]})},`${e.ProcessId}-tundish`)]})},`${e.ProcessId}-column-5`),f.jsxs(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:t.container,children:[f.jsx(je,{className:`${t.field} ${t.leftField}`,label:"Shroud",variant:"outlined",size:"small",value:e?.TundishShroudName||""}),f.jsx(je,{className:`${t.field} ${t.rightField}`,label:"Heats On Shroud",variant:"outlined",size:"small",value:e?.HeatsOnTundishShroud||""})]})},`${e.ProcessId}-tundish-shroud`),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Pourback",value:e?.PourbackWeight?.toFixed(1)??"",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-pourback-weight`)]},`${e.ProcessId}-column-6`)]},`${e.ProcessId}`)})})})},aW=[" #E41A1C"," #377EB8"," #4DAF4A","rgb(196, 174, 209)"],zZe=Sn(),TZe={S1:aW[0],S2:aW[1],S3:aW[2]},FNi=({billetTemp:e,heatName:t})=>v.useMemo(()=>{const r=(e||[]).map(g=>({Datetime:g.Datetime,Value:g.Value??0,TagId:g.TagId?.toString()||"",TagName:g.TagName||""})).filter(g=>g.Datetime&&g.TagId&&g.TagName);if(r.length===0)return{title:{left:"center",top:"center"},series:[]};const i=r.map(g=>g.Value),o=Math.min(...i).toFixed(0),a=Math.max(...i).toFixed(0),s=Math.ceil((Number(a)-Number(o))*.05),l=Math.max(0,Math.floor(Number(o))-s),c=Math.ceil(Number(a)+s),u=Math.ceil((c-l)/5),d=r.reduce((g,m)=>(g[m.TagId]||(g[m.TagId]=[]),g[m.TagId].push(m),g),{}),p={};let h=0;return Object.entries(d).forEach(([g,m])=>{const y=(m[0]?.TagName||"").substring(0,2);TZe[y]?p[g]=TZe[y]:(p[g]=aW[h%aW.length],h++)}),{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t} - Billet Temp`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:g=>{const m=zZe(g[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),b=g.map(y=>`${y.seriesName}: ${y.value[1].toFixed(1)}`).join("<br>");return`Time: ${m}<br>${b}`}},legend:{data:Object.keys(d).map(g=>d[g][0].TagName).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:g=>zZe(g).format("HH:mm")}},yAxis:{type:"value",name:"°F",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:l,max:c,interval:u},series:Object.entries(d).map(([g,m])=>({name:m[0].TagName,type:"line",smooth:!0,symbol:"none",sampling:"lttb",itemStyle:{color:p[g]},data:m.map(b=>[b.Datetime.getTime(),b.Value])}))}},[e,t]),WNi=()=>{const{state:{billetTemp:e,heat:{HeatName:t}}}=$l(),n=Gl(),r=hT(),i=v.useRef(null),o=FNi({billetTemp:e,heatName:t});return v.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(Pt,{className:n.borderAgGridTable,elevation:0,children:f.jsxs(Tn,{p:0,children:[f.jsx("div",{className:r.chartHeader,children:"Billet Temperature"}),f.jsx(AM,{ref:i,option:o,notMerge:!1})]})})},jG=["#E41A1C","#377EB8","#4DAF4A","rgb(196, 174, 209)"],EZe=Sn(),_pe={S1:jG[0],S2:jG[1],S3:jG[2],"Tundish Level":jG[3]},qNi=({moldLevels:e,heatName:t})=>v.useMemo(()=>{const r=(e||[]).map(l=>({Datetime:l.Datetime,Value:l.Value??0,TagId:l.TagId?.toString()||"",TagName:l.TagName||""})).filter(l=>l.Datetime&&l.TagId&&l.TagName);if(r.length===0)return{title:{text:"No data available",left:"center",top:"center"},series:[]};const i=r.filter(l=>l.TagName!=="Tundish Level"),o=r.filter(l=>l.TagName==="Tundish Level"),a=[],s=[];if(i.length>0){const l=i.map(b=>b.Value),c=Math.min(...l).toFixed(0),u=Math.max(...l).toFixed(0),d=Math.ceil((Number(u)-Number(c))*.05),p=Math.max(0,Math.floor(Number(c))-d),h=Math.ceil(Number(u)+d),g=Math.ceil((h-p)/5);a.push({type:"value",name:"Mold Level (%)",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:p,max:h,interval:g});const m=i.reduce((b,y)=>(b[y.TagId]||(b[y.TagId]=[]),b[y.TagId].push(y),b),{});Object.entries(m).forEach(([b,y])=>{const M=y[0].TagName;s.push({name:M,type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:0,itemStyle:{color:_pe[M.substring(0,2)]||_pe.S1},data:y.map(C=>[C.Datetime.getTime(),C.Value])})})}if(o.length>0){const l=o.map(m=>m.Value),c=Math.min(...l).toFixed(0),u=Math.max(...l).toFixed(0),d=Math.ceil((Number(u)-Number(c))*.05),p=Math.max(0,Math.floor(Number(c))-d),h=Math.ceil(Number(u)+d),g=Math.ceil((h-p)/5);a.push({type:"value",name:"Tundish Level (FT)",position:"right",nameTextStyle:{fontSize:14,align:"right"},nameLocation:"end",min:p,max:h,interval:g}),s.push({name:"Tundish Level",type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:a.length-1,areaStyle:{},itemStyle:{color:_pe["Tundish Level"]},data:o.map(m=>[m.Datetime.getTime(),m.Value])})}return{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t} - Mold Level`,pixelRatio:2}}},grid:{right:o.length>0?"8%":"5%"},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:l=>{const c=EZe(l[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),u=l.map(d=>`${d.seriesName}: ${d.value[1].toFixed(1)}`).join("<br>");return`Time: ${c}<br>${u}`}},legend:{data:s.map(l=>l.name).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:l=>EZe(l).format("HH:mm")}},yAxis:a,series:s}},[e,t]),BNi=()=>{const{state:{moldLevels:e,heat:{HeatName:t}}}=$l(),n=Gl(),r=hT(),i=v.useRef(null),o=qNi({moldLevels:e,heatName:t});return v.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(Pt,{className:n.borderAgGridTable,elevation:0,children:f.jsxs(Tn,{p:0,children:[f.jsx("div",{className:r.chartHeader,children:"Mold Level"}),f.jsx(AM,{ref:i,option:o,notMerge:!1})]})})},V0={LUST_RED:"#E41A1C",STEEL_BLUE:"#377EB8",APPLE_GREEN:"#4DAF4A",MIDDLE_BLUE_PURPLE:"#9467bd",ORANGE:"#ff7f00"},RZe=Sn(),IZe={S1:V0.LUST_RED,S2:V0.STEEL_BLUE,S3:V0.APPLE_GREEN,Probe_Temp:V0.MIDDLE_BLUE_PURPLE},PZe={strand_speed:0,probe_temp:1},jNi=({strandSpeeds:e,probes:t,heatName:n})=>v.useMemo(()=>{const i=(e||[]).map(M=>({Datetime:M.Datetime,Value:M.Value??0,TagId:M.TagId?.toString()||"",TagName:M.TagName||""})).filter(M=>M.Datetime&&M.TagId&&M.TagName);if(i.length===0)return{title:{left:"center",top:"center"},series:[]};const o=i.map(M=>M.Value),a=Math.min(...o).toFixed(0),s=Math.max(...o).toFixed(0),l=Math.ceil((Number(s)-Number(a))*.05);let c=Math.max(0,Math.floor(Number(a))-l),u=Math.ceil(Number(s)+l);const d={start:Math.min(...i.map(M=>M.Datetime.getTime())),end:Math.max(...i.map(M=>M.Datetime.getTime()))},p=(t||[]).filter(M=>{const C=M.Timestamp.getTime();return C>=d.start&&C<=d.end}),h={min:2400,max:3600,interval:240},g=Math.ceil((u-c)/5),m=i.reduce((M,C)=>(M[C.TagId]||(M[C.TagId]=[]),M[C.TagId].push(C),M),{}),b={};let y=0;return Object.entries(m).forEach(([M,C])=>{const w=(C[0]?.TagName||"").substring(0,2);if(IZe[w])b[M]=IZe[w];else{const S=[V0.LUST_RED,V0.STEEL_BLUE,V0.APPLE_GREEN,V0.MIDDLE_BLUE_PURPLE,V0.ORANGE];b[M]=S[y%S.length],y++}}),{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${n} - Strand Speeds`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:M=>{const C=RZe(M[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),x=M.map(w=>`${w.seriesName}: ${w.value[1].toFixed(1)}`).join("<br>");return`Time: ${C}<br>${x}`}},legend:{data:[...Object.keys(m).map(M=>m[M][0].TagName).sort(),...p.length>0?["Probe Temp"]:[]],top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:M=>RZe(M).format("HH:mm")}},yAxis:[{type:"value",name:"IPM",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",position:"left",min:c,max:u,interval:g},...p.length>0?[{type:"value",name:"°F",nameTextStyle:{fontSize:14,color:V0.MIDDLE_BLUE_PURPLE,align:"right"},nameLocation:"end",position:"right",axisLabel:{color:V0.MIDDLE_BLUE_PURPLE},axisLine:{lineStyle:{color:V0.MIDDLE_BLUE_PURPLE}},...h}]:[]],series:[...Object.entries(m).map(([M,C])=>({name:C[0].TagName,type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:PZe.strand_speed,itemStyle:{color:b[M]},data:C.map(x=>[x.Datetime.getTime(),x.Value])})),...p.length>0?[{name:"Probe Temp",type:"scatter",yAxisIndex:PZe.probe_temp,symbol:"circle",symbolSize:8,itemStyle:{color:V0.MIDDLE_BLUE_PURPLE,borderColor:"#fff",borderWidth:2},label:{show:!0,position:"top",formatter:M=>{const C=p.find(x=>x.Timestamp.getTime()===M.value[0]);return C?`${C.Temperature.toFixed(0)}°F`:""},fontSize:11,fontWeight:"bold",color:V0.MIDDLE_BLUE_PURPLE},emphasis:{itemStyle:{shadowBlur:15,shadowColor:V0.MIDDLE_BLUE_PURPLE}},data:p.map(M=>[M.Timestamp.getTime(),M.Temperature])}]:[]]}},[e,t,n]),HNi=()=>{const{state:{strandSpeeds:e,probes:t,heat:{HeatName:n}}}=$l(),r=Gl(),i=hT(),o=v.useRef(null),a=jNi({strandSpeeds:e,probes:t,heatName:n});return v.useEffect(()=>{o.current&&o.current.getEchartsInstance().setOption(a,{replaceMerge:["series"],lazyUpdate:!0})},[a]),f.jsx(Pt,{className:r.borderAgGridTable,elevation:0,children:f.jsxs(Tn,{p:0,children:[f.jsx("div",{className:i.chartHeader,children:"Strand Casting Speed"}),f.jsx(AM,{ref:o,option:a,notMerge:!1})]})})},VNi=Sn(),GNi=()=>({columns:[{headerName:"Lost Strands",children:[{field:"StrandId",headerName:"Strand",flex:1,minWidth:70},{field:"Timestamp",headerName:"Time",flex:1,minWidth:70,valueGetter:t=>t.data?.Timestamp?VNi(t.data.Timestamp).format("HH:mm"):"",cellStyle:{textAlign:"center"}},{field:"LostStrandTypeName",headerName:"Comment",flex:2,minWidth:100,wrapText:!0,autoHeight:!0}]}]}),$Ni=Sn(),UNi=()=>{const{state:{casProcessData:e}}=$l(),[t,n]=v.useState(null),[r,i]=v.useState([]);v.useEffect(()=>{(async()=>{try{const a=e?.ProcessId;if(!a){i([]);return}const s=await Czt(a);if(s.ok){const c=(s.data?.tables?.[3]?.rows||[]).map(u=>({...u,Timestamp:u.Timestamp?$Ni.utc(u.Timestamp).toDate():null}));i(c)}else n(s.message)}catch(a){n(a.message||String(a))}})()},[e]);const{columns:o}=GNi();return f.jsxs(Pt,{elevation:0,style:{height:"100%"},children:[f.jsx(Tn,{style:{height:"11rem",border:"1px solid #e0e0e0"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:r,columnDefs:o,domLayout:"normal",suppressContextMenu:!0})}),f.jsx(yt,{error:t,onHide:()=>n(null)})]})},XNi=Sn(),YNi=()=>({columns:[{headerName:"Probes",children:[{field:"Timestamp",headerName:"Time",flex:1,minWidth:55,cellStyle:{textAlign:"center"},valueGetter:n=>{if(n.data.Timestamp)return XNi(n.data.Timestamp).format("HH:mm")}},{field:"Temperature",headerName:"Temp",flex:1,minWidth:64,cellStyle:{textAlign:"center"}},{field:"SuperHeat",headerName:"SH",flex:1,minWidth:30,cellStyle:{textAlign:"center"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),KNi=()=>{const e=Gl(),{state:{probes:t,casProcessData:n}}=$l(),{columns:r}=YNi();return f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25.6rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.ProbeId})},`${t.length}-${n.ProcessId}`)})})},QNi=()=>{const e=r=>{if(r==null)return"";const i=Math.floor(r/12),o=r%12;return`${i} ft ${o} in`};return{columns:[{headerName:"Production",children:[{field:"Length",headerName:"Length",flex:1,minWidth:75,valueFormatter:r=>e(r.value),cellStyle:{textAlign:"center"}},{field:"Pieces",headerName:"Pieces",flex:1,minWidth:70,cellStyle:{textAlign:"center"}},{field:"SectionName",headerName:"Section",flex:1,minWidth:96,cellStyle:{textAlign:"right"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}},ZNi=()=>{const e=Gl(),{state:{productionData:t}}=$l(),{columns:n}=QNi();return f.jsx(f.Fragment,{children:f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"13rem"},children:f.jsx($n,{rowData:t,columnDefs:n,domLayout:"normal",suppressRowClickSelection:!0,suppressPaginationPanel:!0,getRowId:r=>r.data.ProductBatchId})})})})})},JNi=e=>{e==null&&(e=0);const t=Math.floor(e/12),n=e%12;return`${t} ft ${n} in`},eFi=()=>({columns:[{headerName:"Scrap",children:[{field:"Length",headerName:"Length",flex:1,minWidth:79,valueFormatter:n=>JNi(n.value),cellStyle:{textAlign:"center"}},{field:"Pieces",headerName:"Pieces",flex:1,minWidth:65,cellStyle:{textAlign:"center"}},{field:"ScrapReasonName",headerName:"Code",flex:1,minWidth:110,cellStyle:{textAlign:"right"}},{field:"Weight",headerName:"Weight",flex:1,minWidth:96,cellStyle:{textAlign:"right"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),tFi=()=>{const e=Gl(),{state:{scrapData:t}}=$l(),{columns:n}=eFi();return f.jsx(f.Fragment,{children:f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"11.5rem"},children:f.jsx($n,{rowData:t,columnDefs:n,domLayout:"normal",suppressRowClickSelection:!0,suppressPaginationPanel:!0,getRowId:r=>r.data.ScrapId,suppressContextMenu:!0})})})})})},DZe=e=>{const{value:t,data:n}=e,r=n?.numberFormat;return t==null||typeof t=="string"?null:f.jsx(f.Fragment,{children:oTt(t,r||"")})},nFi=e=>{const t=[{name:"Mold Water T in",startField:"MWTempInStart",endField:"MWTempInEnd",numberFormat:"XXX.X"},{name:"Mold Water T out",startField:"MWTempOutStart",endField:"MWTempOutEnd",numberFormat:"XXX.X"},{name:"Mold Water DT",startField:"MWDTStart",endField:"MWDTEnd",numberFormat:"XXX.X"},{name:"Mold Water Flow [GPM]",startField:"MWGPMStart",endField:"MWGPMEnd",numberFormat:"XXX.X"},{name:"Spray Pres N",startField:"NSprayStart",endField:"NSprayEnd",numberFormat:"XX"},{name:"Spray Pres E",startField:"ESprayStart",endField:"ESprayEnd",numberFormat:"XX"},{name:"Spray Pres S",startField:"SSprayStart",endField:"SSprayEnd",numberFormat:"XX"},{name:"Spray Pres W",startField:"WSprayStart",endField:"WSprayEnd",numberFormat:"XX"},{name:"Billet Temp",startField:"BilletTempStart",endField:"BilletTempEnd",numberFormat:"XXX.X"},{name:"Strand Speed",startField:"SpeedStart",endField:"SpeedEnd",numberFormat:"XXX.X"}],n=e.reduce((a,s)=>(s.Strand!=null&&(a[s.Strand.toString()]=s),a),{}),r=t.map(a=>({id:a.name,Property:a.name,s1_start:a.startField?n[1]?.[a.startField]:null,s1_end:a.endField?n[1]?.[a.endField]:null,s2_start:a.startField?n[2]?.[a.startField]:null,s2_end:a.endField?n[2]?.[a.endField]:null,s3_start:a.startField?n[3]?.[a.startField]:null,s3_end:a.endField?n[3]?.[a.endField]:null,numberFormat:a.numberFormat}));return{columns:[{field:"Property",headerName:"",minWidth:100,cellClass:"first-column-cell",suppressMovable:!0},...[1,2,3].map((a,s)=>{const l=`s${a}_start`,c=`s${a}_end`,u=s%2!==0?{backgroundColor:"rgba(245, 245, 245, 0.67)"}:{};return{headerName:`Strand ${a}`,headerGroupComponent:()=>f.jsx(D,{container:!0,alignItems:"center",spacing:1,children:f.jsx(D,{item:!0,xs:5,children:f.jsxs("span",{children:["Strand ",a]})})}),children:[{headerName:"Start",field:l,minWidth:98,cellRendererSelector:d=>({component:DZe}),cellStyle:{...u,textAlign:"center"},flex:1},{headerName:"End",field:c,minWidth:90,cellRendererSelector:d=>({component:DZe}),cellStyle:{...u,textAlign:"center"},flex:1}]}})],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,flex:1},rowData:r}},rFi=()=>{const e=Gl(),{state:{strandData:t}}=$l(),{columns:n,rowData:r}=nFi(t);return f.jsx(f.Fragment,{children:f.jsx(Pt,{elevation:0,className:e.borderAgGridTable,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25.6rem"},children:f.jsx($n,{suppressRowClickSelection:!0,pagination:!1,stopEditingWhenCellsLoseFocus:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,suppressPropertyNamesCheck:!0,rowData:r,columnDefs:n,domLayout:"normal",suppressContextMenu:!0,getRowId:i=>i.data.id})})})})})},iFi=()=>{const{state:{casProcessData:e}}=$l();return f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",children:f.jsx(NNi,{},e.ProcessId)}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",children:[f.jsx(D,{item:!0,xs:3,children:f.jsx(KNi,{},e.ProcessId)}),f.jsxs(D,{item:!0,xs:3,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(ZNi,{},e.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(tFi,{},e.ProcessId)})]}),f.jsx(D,{item:!0,xs:6,children:f.jsx(rFi,{},e.ProcessId)}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:3,style:{paddingRight:"8px"},children:f.jsx(HNi,{},e.ProcessId)}),f.jsx(D,{item:!0,xs:3,style:{marginLeft:"-4px"},children:f.jsx(BNi,{},e.ProcessId)}),f.jsx(D,{item:!0,xs:3,children:f.jsx(WNi,{},e.ProcessId)}),f.jsx(D,{item:!0,xs:3,children:f.jsx(UNi,{},e.ProcessId)})]})]})]})},kZe=Sn(),Npe=e=>{if(e==null||e==="")return"";const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"":Math.abs(t)>9999?t.toLocaleString("en-US"):t.toString()},oFi=()=>{const{state:{eafProcessData:e,heat:t}}=$l(),n=Gl();return f.jsx(Pt,{className:n.borderAgGridTable,elevation:0,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(mTe,{assetId:e.AssetId,assetName:e.AssetName})},`${t.HeatId}-asset`)},`${e.ProcessId}-column-1`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Start Time",value:e?.Start?kZe(e.Start).format("HH:mm - MM/DD/YYYY"):"",variant:"outlined",fullWidth:!0,InputProps:{readOnly:!0}})},"start-time"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Tap Time",value:e?.End?kZe(e.End).format("HH:mm - MM/DD/YYYY"):"",variant:"outlined",fullWidth:!0})},"tap-time")]})},`${e.ProcessId}-column-2`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(gTe,{label:"Tap To Tap [hh:mm:ss]",value:e?.TapToTap??"",unit:"minutes",onChange:()=>{}})},"tap-to-tap"),f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:n.container,children:[f.jsx(je,{label:"Power On [minutes]",value:e?.PowerOn?`${e.PowerOn} min`:"",variant:"outlined",fullWidth:!0,InputProps:{readOnly:!0}}),f.jsx(je,{label:"Power Off [minutes]",value:e?.PowerOff?`${e.PowerOff} min`:"",variant:"outlined",fullWidth:!0,InputProps:{readOnly:!0}})]})},"power-on-off")]})},`${e.ProcessId}-column-3`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Delay Time [min]",value:e?.DelayTime??"",variant:"outlined",fullWidth:!0})},"delay-time"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Foreman",value:e?.Foreman??"",variant:"outlined",fullWidth:!0})},"foreman")]})},`${e.ProcessId}-column-4`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"MWH",value:Npe(e?.Energy),variant:"outlined",fullWidth:!0})},"mwh"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"KWH/Ton",value:e?.KWHPerTon?parseFloat(e.KWHPerTon.toFixed(1)):"",variant:"outlined",fullWidth:!0})},"kwh-per-ton")]})},`${e.ProcessId}-column-5`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Scrap Charged [lbs]",value:Npe(e?.ScrapCharged),variant:"outlined",fullWidth:!0})},"scrap-charged"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"O2 Volume",value:Npe(e?.OxygenVolume?.toFixed(1)),variant:"outlined",fullWidth:!0})},"oxygen-volume")]})},`${e.ProcessId}-column-6`)]})})})},H0={GREEN_BLUE:"#1f77b4",ORANGE:"#ff7f0e",WAGENINGEN_GREEN:"#2ca02c",AMARANTH_RED:"#d62728",MIDDLE_BLUE_PURPLE:"#9467bd"},LZe=Sn(),Wp={KWH_Per_Ton:H0.GREEN_BLUE,Power_MW:H0.ORANGE,Steel_Temp:H0.MIDDLE_BLUE_PURPLE},_Ze={KWH_Per_Ton:0,Power_MW:1,Steel_Temp:2},NZe={KWH_Per_Ton:"KWH/Ton",Power_MW:"Power",Steel_Temp:"Probe temp"},aFi=({eafValues:e,heatName:t,eafProcessData:n,charges:r,additions:i,offsetMinutes:o=40})=>v.useMemo(()=>{const s=(e||[]).map(M=>({Datetime:M.Datetime,Value:M.Value??0,TagId:M.TagId?.toString()||"",TagName:M.TagName||""})).filter(M=>M.Datetime&&M.TagId&&M.TagName);if(s.length===0)return{title:{left:"center",top:"center"},series:[]};const l=s.reduce((M,C)=>(M[C.TagName]||(M[C.TagName]=[]),M[C.TagName].push(C),M),{}),u=M=>{switch(M){case"KWH_Per_Ton":return{min:0,max:600,interval:120};case"Power_MW":return{min:0,max:23e3,interval:4600};case"Steel_Temp":return{min:0,max:3600,interval:720};default:return{min:0,max:100,interval:20}}},d=(M,C,x,w,S)=>{const A=(M-w)/(S-w);return C+A*(x-C)},p=M=>d(M,2160,3600,2600,3600),h=(M,C)=>M%2===0?0:720,g=(M,C)=>{const S=1440/Math.max(C,1);return 720+M*S},m=M=>{if(M.length===0)return[];const C=5,x=[];x.push(M[0]);let w=M[0].Value;for(let S=1;S<M.length;S++){const A=M[S],z=A.Value;(Math.abs(z-w)>=C||S===M.length-1)&&(x.push(A),w=z)}return x.sort((S,A)=>S.Datetime.getTime()-A.Datetime.getTime()),x},y=(()=>{if(!n?.Start)return;const M=n.Start.getTime(),C=n.End?.getTime()||Date.now(),x=M-o*60*1e3,S=C+o*60*1e3-x,A=(M-x)/S*100,z=(C-x)/S*100;return{start:Math.max(0,A),end:Math.min(100,z)}})();return{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t} - EAF Process Data`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0,start:y?.start||0,end:y?.end||100}],tooltip:{trigger:"axis",formatter:M=>{const C=M.find(S=>S.seriesName==="Probe temp"),x=M.find(S=>S.seriesName==="Additions"),w=LZe(M[0].value[0]).format("HH:mm:ss");if(C){const S=M.find(z=>z.seriesName==="Power");let A=`Probe temp: ${C.value[1].toFixed(1)}°F`;return S&&(A+=`<br>Power: ${S.value[1].toFixed(1)} MW`),`Time: ${w}<br>${A}`}else if(x){const S=M.find(O=>O.seriesName==="Power"),A=i?.find(O=>O.Timestamp.getTime()===x.value[0]);let z="";if(A){const O=A.MaterialName||"",T=Math.floor(A.Quantity);z=O?`${O}: ${T} kg`:`Addition: ${T} kg`}else z="Addition";return S&&(z+=`<br>Power: ${S.value[1].toFixed(1)} MW`),`Time: ${w}<br>${z}`}else{const S=M.map(A=>{let z="";const O=A.seriesName;return O==="Power"?z=" MW":O==="KWH/Ton"&&(z=" kWh/ton"),`${O}: ${A.value[1].toFixed(1)}${z}`}).join("<br>");return`Time: ${w}<br>${S}`}}},legend:{data:[...Object.keys(l).map(M=>NZe[M]||M).sort(),"Scrap Charges","Additions"],top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:M=>LZe(M).format("HH:mm")}},yAxis:[{type:"value",name:"kWh/ton",nameTextStyle:{fontSize:12,color:Wp.KWH_Per_Ton,align:"left"},nameLocation:"end",position:"left",axisLabel:{color:Wp.KWH_Per_Ton},axisLine:{lineStyle:{color:Wp.KWH_Per_Ton}},...u("KWH_Per_Ton")},{type:"value",name:"MW",nameTextStyle:{fontSize:12,color:Wp.Power_MW,align:"right"},nameLocation:"end",position:"right",axisLabel:{color:Wp.Power_MW},axisLine:{lineStyle:{color:Wp.Power_MW}},...u("Power_MW")},{type:"value",name:"°F",nameTextStyle:{fontSize:12,color:Wp.Steel_Temp,align:"left"},nameLocation:"end",position:"left",offset:80,axisLabel:{color:Wp.Steel_Temp},axisLine:{lineStyle:{color:Wp.Steel_Temp}},...u("Steel_Temp")}],series:[...Object.entries(l).map(([M,C])=>{const x=NZe[M]||M;if(M==="Steel_Temp"){const S=m(C);return{name:x,type:"scatter",yAxisIndex:_Ze[M]||0,symbol:"circle",symbolSize:10,itemStyle:{color:Wp[M]||H0.GREEN_BLUE,borderColor:"#fff",borderWidth:2},label:{show:!1},emphasis:{itemStyle:{shadowBlur:15,shadowColor:Wp[M]||H0.GREEN_BLUE},label:{show:!0,position:"top",formatter:A=>`${A.value[1].toFixed(0)}°F`,fontSize:11,fontWeight:"bold",color:Wp[M]||H0.GREEN_BLUE}},data:S.map(A=>[A.Datetime.getTime(),p(A.Value)])}}else return{name:x,type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:_Ze[M]||0,itemStyle:{color:Wp[M]||H0.GREEN_BLUE},lineStyle:{width:1.5},data:C.map(S=>[S.Datetime.getTime(),S.Value])}}),{name:"Scrap Charges",type:"scatter",yAxisIndex:2,symbol:"triangle",symbolSize:12,itemStyle:{color:H0.AMARANTH_RED,borderColor:"#fff",borderWidth:2},label:{show:!0,position:"top",formatter:M=>{const C=r?.find(x=>x.Timestamp.getTime()===M.value[0]);if(C){const x=C.BucketName||"";return x?`${x}
${C.Weight} lbs`:`${C.Weight} lbs`}return""},fontSize:10,fontWeight:"bold",color:H0.AMARANTH_RED,backgroundColor:"rgba(255, 255, 255, 0.8)",borderColor:H0.AMARANTH_RED,borderWidth:1,borderRadius:3,padding:[2,4]},emphasis:{itemStyle:{shadowBlur:15,shadowColor:H0.AMARANTH_RED}},data:(r||[]).filter(M=>M.ChargeCode==="B").map((M,C,x)=>[M.Timestamp.getTime(),h(C,x.length)])},{name:"Additions",type:"scatter",yAxisIndex:2,symbol:"diamond",symbolSize:10,itemStyle:{color:H0.WAGENINGEN_GREEN,borderColor:"#fff",borderWidth:2},label:{show:!1},emphasis:{itemStyle:{shadowBlur:15,shadowColor:H0.WAGENINGEN_GREEN},label:{show:!0,position:"top",formatter:M=>{const C=i?.find(x=>x.Timestamp.getTime()===M.value[0]);if(C){const x=C.MaterialName||"",w=Math.floor(C.Quantity);return x?`${x}
${w} kg`:`${w} kg`}return""},fontSize:9,fontWeight:"bold",color:H0.WAGENINGEN_GREEN,backgroundColor:"rgba(255, 255, 255, 0.8)",borderColor:H0.WAGENINGEN_GREEN,borderWidth:1,borderRadius:3,padding:[2,4]}},data:(i||[]).map((M,C,x)=>[M.Timestamp.getTime(),g(C,x.length)])}]}},[e,t,n,r,i,o]),sFi=()=>{const{state:{eafValues:e,eafProcessData:t,charges:n,additions:r,eafChartOffsetMinutes:i,heat:{HeatName:o}}}=$l(),a=Gl();hT();const s=v.useRef(null),l=aFi({eafValues:e,heatName:o,eafProcessData:t,charges:n,additions:r,offsetMinutes:i});return v.useEffect(()=>{s.current&&s.current.getEchartsInstance().setOption(l,{replaceMerge:["series"],lazyUpdate:!0})},[l]),f.jsx(Pt,{className:a.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{children:f.jsx(AM,{ref:s,option:l,notMerge:!1})})})})},lFi=Sn(),cFi=()=>{const e=r=>{switch(r){case"E":return"EAF";case"L":return"Ladle";case"T":return"Trim";case"F":return"Flux";case"W":return"Wire";default:return r}};return{columns:[{headerName:"Additions",children:[{field:"Timestamp",headerName:"Time",flex:1,minWidth:61,cellStyle:{textAlign:"center"},valueGetter:r=>{if(r.data.Timestamp)return lFi(r.data.Timestamp).format("HH:mm")}},{field:"MaterialName",headerName:"Material",flex:1,minWidth:96},{field:"Quantity",headerName:"Weight [kg]",flex:1,minWidth:68,wrapHeaderText:!0,headerStyle:{textAlign:"center"},cellStyle:{textAlign:"center"},valueGetter:r=>{if(r.data.Quantity)return Math.floor(r.data.Quantity)}},{field:"AdditionTypeCode",headerName:"Type",flex:1,minWidth:54,cellStyle:{textAlign:"center"},valueGetter:r=>{if(r.data.AdditionTypeCode)return e(r.data.AdditionTypeCode)}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}},uFi=()=>{const e=Gl(),{state:{additions:t,eafProcessData:n}}=$l(),{columns:r}=cFi();return f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.AdditionId})},`${t.length}-${n.ProcessId}`)})})},dFi=Sn(),pFi=()=>({columns:[{headerName:"Charges",children:[{field:"Timestamp",headerName:"Time",flex:1,minWidth:61,cellStyle:{textAlign:"center"},valueGetter:n=>{if(n.data.Timestamp)return dFi(n.data.Timestamp).format("HH:mm")}},{field:"ChargeCode",headerName:"Code",flex:1,minWidth:66,cellStyle:{textAlign:"center"},valueGetter:n=>{if(n.data.ChargeCode)return n.data.ChargeCode==="B"?"Bucket":n.data.ChargeCode==="P"?"Pourback":"Unknown"}},{field:"Weight",headerName:"Scrap [lbs]",flex:1,minWidth:70,wrapHeaderText:!0,headerStyle:{textAlign:"center"},cellStyle:{textAlign:"right"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),hFi=()=>{const e=Gl(),{state:{charges:t,eafProcessData:n}}=$l(),{columns:r}=pFi();return f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.ChargeId})},`${t.length}-${n.ProcessId}`)})})},Fpe=Sn(),fFi=()=>({columns:[{headerName:"Delays",children:[{field:"Start",headerName:"Start",flex:1,minWidth:55,valueGetter:n=>{if(n.data.Start)return Fpe(n.data.Start).format("HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:76,valueGetter:n=>{if(n.data.End)return Fpe(n.data.End).format("HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:64,valueFormatter:n=>{if(n.value){const r=Fpe.duration(n.value,"seconds"),i=Math.floor(r.asMinutes()),o=r.seconds();return`${i}m ${o}s`}return""}},{field:"DelayCategory",headerName:"Category",valueGetter:n=>{const r=n.data?.DelayCategoryName,i=n.data?.DelayCategoryColor;return{name:r,color:i}},cellRenderer:Dte,minWidth:180,maxWidth:200,editable:!1,cellStyle:{justifyContent:"flex-start"},flex:1},{field:"DelayCodeName",headerName:"Code",valueGetter:n=>n.data?.DelayCodeName||"No Classified",minWidth:130,editable:!1,flex:1,cellStyle:{justifyContent:"center"}},{field:"Comments",headerName:"Comments",minWidth:117,flex:3}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),gFi=()=>{const e=Gl(),{state:{delays:t,eafProcessData:n}}=$l(),{columns:r}=fFi();return f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,rowHeight:41,headerHeight:35,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.DelayId,suppressContextMenu:!0})},`${t.length}-${n.ProcessId}`)})})},HG=Sn(),mFi=()=>({columns:[{headerName:"Heatings",children:[{field:"Start",headerName:"Start",flex:1,minWidth:81,valueGetter:t=>{if(t.data.Start)return HG(t.data.Start).format("HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:81,valueGetter:t=>{if(t.data.End)return HG(t.data.End).format("HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:76,valueGetter:t=>{const{Start:n,End:r}=t.data;if(r&&n){const i=HG(r).diff(HG(n),"seconds"),o=Math.floor(i/60),a=i%60;return`${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}}},{field:"MWH",headerName:"Energy [kwh]",flex:1,minWidth:70,wrapHeaderText:!0,headerStyle:{textAlign:"center"},cellStyle:{textAlign:"right"}}]}]}),vFi=()=>{const e=Gl(),{state:{heatings:t,eafProcessData:n}}=$l(),{columns:r}=mFi();return f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.HeatingId})},`${t.length}-${n.ProcessId}`)})})},VG=Sn(),bFi=()=>({columns:[{headerName:"Phases",children:[{field:"PhaseName",headerName:"Phase Name",flex:2,minWidth:125},{field:"Start",headerName:"Start",flex:1,minWidth:82,valueGetter:t=>{if(t.data.Start)return VG(t.data.Start).format("HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:82,valueGetter:t=>{if(t.data.End)return VG(t.data.End).format("HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:76,valueGetter:t=>{const{Start:n,End:r}=t.data;if(r&&n){const i=VG(r).diff(VG(n),"seconds"),o=Math.floor(i/60),a=i%60;return`${o.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}}},{field:"Energy",headerName:"Energy [kwh]",flex:1,wrapHeaderText:!0,headerStyle:{textAlign:"center"},minWidth:60,valueGetter:t=>t.data.Energy||" "}]}]}),yFi=()=>{const e=Gl(),{state:{phases:t,eafProcessData:n}}=$l(),{columns:r}=bFi();return f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.ProcessPhaseId})},`${t.length}-${n.ProcessId}`)})})},MFi=Sn(),CFi=()=>({columns:[{headerName:"Probes",children:[{field:"Timestamp",headerName:"Time",flex:1,minWidth:61,valueGetter:n=>{if(n.data.Timestamp)return MFi(n.data.Timestamp).format("HH:mm")}},{field:"Temperature",headerName:"Temp",flex:1,minWidth:57},{field:"Oxygen",headerName:"Oxygen",flex:1,minWidth:70}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),xFi=()=>{const e=Gl(),{state:{probes:t,eafProcessData:n}}=$l(),{columns:r}=CFi();return f.jsx(Pt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.ProbeId})},`${t.length}-${n.ProcessId}`)})})},wFi=()=>f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",children:f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(oFi,{})})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",children:[f.jsx(D,{item:!0,xs:2,children:f.jsx(uFi,{})}),f.jsx(D,{item:!0,xs:2,children:f.jsx(xFi,{})}),f.jsx(D,{item:!0,xs:2,children:f.jsx(hFi,{})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(yFi,{})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(vFi,{})})]}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(sFi,{})})}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(gFi,{})})})]}),SFi=Sn(),AFi=({onExport:e})=>{const{state:{heatLabData:t,elementData:n}}=$l(),r=Gl();return f.jsx(Pt,{className:r.borderAgGridTable,elevation:0,style:{minWidth:"100%"},children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,alignItems:"center",children:[f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(mTe,{assetId:15,assetName:"Lab"})})}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Production Date",value:t?.ProductionDate?`${SFi(t?.ProductionDate).format("MM/DD/YYYY")} - Shift ${t?.Shift} - Crew ${t?.Crew}`:"",variant:"outlined",fullWidth:!0})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Sections",value:t?.Sections??"",variant:"outlined",fullWidth:!0})})]})},"col-main-data-2"),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Programmed Grade",value:t?.ProgrammedGrade??"",variant:"outlined",fullWidth:!0})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Cast Grade",value:t?.Grade??"",variant:"outlined",fullWidth:!0,InputProps:{style:{color:t?.Grade&&t?.Grade!==t?.ProgrammedGrade?"red":"black"}}})})]})},"col-main-data-3"),f.jsx(D,{item:!0,xs:!0,container:!0,justifyContent:"flex-end",style:{alignSelf:"center"},children:f.jsx(pT,{onClick:e,disabled:!n||n.length===0})})]})})})},p2=Et(e=>({root:{},heatsTable:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:14,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-header-cell":{fontSize:14},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center"},"& .max-limit":{color:"#CC0000",fontWeight:800}},agGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 10px 50px 10px",minHeight:"350px",maxHeight:"350px"},middleTextfields:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 10px 50px 10px",minHeight:"473px",maxHeight:"475px"},dynamicHeight:{height:t=>{const n=t?.rowCount??4;return`${Math.min(300+(n-4)*50,550)}px`}},readonlyAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px ",height:"330px",minWidth:"100%",minHeight:"330px"},manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"},smAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"5px",height:"281px",minHeight:"350px"},EAFAgGridBox:{borderRadius:"4px",padding:"10px",height:"226px",minHeight:"226px",border:"1px solid #ccc"},assetCard:{display:"flex",justifyContent:"center",alignItems:"center",userSelect:"none",height:"50px",marginTop:"20px"},unclassifiedDelayRow:{"&.ag-row":{backgroundColor:"#FFECEC !important"},"&.ag-row:hover":{backgroundColor:"#E0B0B0 !important"},"&.ag-row-selected":{backgroundColor:"#D8A8A8 !important"}},outlinedTextarea:{width:"100%",padding:"10px 12px",border:`1px solid ${e.palette.grey[400]}`,borderRadius:e.shape.borderRadius,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,transition:e.transitions.create(["border-color","box-shadow"]),"&:hover":{borderColor:e.palette.text.primary},"&:focus":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 2px ${e.palette.primary.light}`,outline:"none"},"&::placeholder":{color:e.palette.text.secondary,opacity:1}}})),OFi=({mechanicalSamples:e,mechanicalTests:t,mechanicalGradeLimits:n,mechanicalResultSources:r})=>{const i=(g,m)=>g.value===null||isNaN(g.value)?"":parseFloat(g.value).toFixed(m),o=(g,m)=>{const b=typeof m=="string"?isNaN(parseInt(m))?0:parseInt(m):m;return g.find(M=>M.ResultSourceId===b)?.ResultSourceName||""},a=g=>{if(g.value===null||isNaN(g.value))return"error-limit";const m=g.data;if(!m?.Limits)return"error-limit";const b=m.Limits.find(C=>C.MechanicalTestId===parseInt(g.colDef.field??"0"));if(!b)return"error-limit2";const{MinValue:y,MaxValue:M}=b;return y!==null&&parseFloat(g.value)<y||M!==null&&parseFloat(g.value)>M?"error-limit":"error-limit2"},s=v.useMemo(()=>({headerName:"Sample",children:[{field:"HeatName",headerName:"Heat",minWidth:78,flex:1},{field:"SampleSequence",headerName:"Seq",minWidth:50,flex:1},{field:"GradeId",headerName:"Grade",minWidth:86,flex:1},{field:"SectionId",headerName:"Section",minWidth:96,flex:1},{field:"Width",headerName:"Width",minWidth:85,type:["numericColumn"],valueFormatter:g=>i(g,4),headerClass:"stripe-header",flex:1},{field:"Thickness",headerName:"Thickness",minWidth:113,type:["numericColumn"],valueFormatter:g=>i(g,4),headerClass:"stripe-header",flex:1},{field:"ResultSourceId",headerName:"Source",minWidth:93,flex:1,valueFormatter:g=>o(r,g.value)},{field:"Method",headerName:"Method",minWidth:97,flex:1}]}),[r]),l=v.useMemo(()=>({headerName:"Tests",children:t.filter(m=>m.IsActive&&m.MechanicatTestId!==4).map(m=>({field:m.MechanicatTestId?.toString(),headerName:zFi(m.MechanicalTestName),minWidth:80,flex:1,type:["numericColumn"],headerClass:m.UseInCircular?"stripe-header":"",valueFormatter:b=>i(b,m.Decimals),cellClass:a}))}),[t]),c=v.useMemo(()=>({headerName:"Results",children:[{field:"DateTimeResults",headerName:"Result",valueGetter:g=>Wn(`${g.data.DateTimeResults}`,"MM/dd/yyyy - HH:mm")||"",minWidth:150,flex:1},{field:"Technician",headerName:"Technician",minWidth:117,flex:1}]}),[]),u=v.useMemo(()=>e.map(g=>{const m={...g,elementParams:[],sampleParams:["SampleSequence","DateTimeResults","StatusCode","ResultSourceId","Comments","Technician","Method","HeatId","Width","Thickness","Diameter"],testParams:[]},b=(g.SamplesId??"").split(","),y=(g.SamplesValue??"").split(",");return(g.ResultsId??"").split(","),m.Limits=n.filter(M=>M.GradeId===g.GradeId),t.forEach(M=>{m[String(M.MechanicatTestId).trim()]=null}),b.forEach((M,C)=>{const x=y[C];m[M.trim()]=isNaN(parseFloat(x))?null:parseFloat(x)}),m}),[e,t,n]),d=v.useMemo(()=>({headerName:"Mechanical",children:[s,l,c]}),[s,l,c]),p=v.useMemo(()=>[d],[d]),h=v.useMemo(()=>({flex:1,resizable:!0,sortable:!0,filter:!0,editable:!1,tooltipComponent:"customTooltip",tooltipComponentParams:{color:"#ececec"}}),[]);return{columns:p,rows:u,defaultColDef:h}},zFi=e=>({"Yield Strength":"Yield","Tensile Strength":"Tensile",Elongation:"Elongation","Reduction of Area":"RA"})[e]||e,TFi=({loadingGrid:e,heat:t,mechanicalSamples:n,mechanicalTests:r,mechanicalGradeLimits:i,mechanicalResultSources:o})=>{const a=p2(),s=v.useRef(null),{columns:l,rows:c}=OFi({mechanicalSamples:n||[],mechanicalTests:r||[],mechanicalGradeLimits:i||[],mechanicalResultSources:o||[]}),u=v.useMemo(()=>({height:"auto"}),[]);return v.useMemo(()=>{e&&s.current?.api?s.current.api.showLoadingOverlay():s.current?.api&&s.current.api.hideOverlay()},[e]),f.jsx(D,{item:!0,container:!0,className:a.root,style:{...u},xs:12,md:12,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Pt,{elevation:1,children:f.jsx($n,{ref:s,rowSelection:"single",pagination:!1,animateRows:!0,domLayout:"autoHeight",tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:c,columnDefs:l,suppressContextMenu:!0,enableRangeSelection:!0,enableCharts:!1})})})})},EFi=e=>{const{coloringEnabled:t,onToggleColoring:n}=e;return f.jsxs(D,{container:!0,alignItems:"center",spacing:2,style:{padding:"10px 10px",justifyContent:"space-between"},children:[f.jsxs(D,{item:!0,style:{display:"flex",alignItems:"center",gap:"16px"},children:[f.jsxs(D,{container:!0,spacing:1,alignItems:"center",style:{width:"auto"},children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:20,height:20,backgroundColor:"#ffa500",border:"1px solid #000000"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Below minimum limit"})})]}),f.jsxs(D,{container:!0,spacing:1,alignItems:"center",style:{width:"auto"},children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:20,height:20,backgroundColor:"#f26b6b",border:"1px solid #000000"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Above maximum limit"})})]})]}),f.jsx(D,{item:!0,children:f.jsx(So,{control:f.jsx(dP,{checked:t,onChange:r=>n(r.target.checked),color:"primary",size:"small"}),label:f.jsx("span",{style:{fontSize:"inherit"},children:"Enable Coloring"}),labelPlacement:"start",style:{marginRight:0}})})]})},RFi=Sn(),IFi=({elementList:e,coloringEnabled:t,onToggleColoring:n})=>{const{rowData:r,chemistryGroupCol:i}=v.useMemo(()=>{const u={},d={},p={},h={};e&&e.length>0&&e.forEach(C=>{const x=`${C.SampleTypeName||"?"}${C.SampleSequence??""}`,w=C.ElementName;w&&(u[w]||(u[w]={order:C.Order??1/0,decimals:C.Decimals??4},p[w]=null,h[w]=null),C.MinValue!==null&&(p[w]===null||C.MinValue<p[w])&&(p[w]=C.MinValue),C.MaxValue!==null&&(h[w]===null||C.MaxValue>h[w])&&(h[w]=C.MaxValue),d[x]||(d[x]={id:x,SampleTypeName:C.SampleTypeName||"",SampleSequence:C.SampleSequence??null,Reception:C.Reception||null}),d[x][w]={value:C.Value,status:C.Status,minValue:C.MinValue,maxValue:C.MaxValue,decimals:u[w].decimals})});const g=Object.keys(u).sort((C,x)=>{const w=u[C].order,S=u[x].order;return w!==S?w-S:C.localeCompare(x)}),m=[{headerName:"Sample",valueGetter:C=>C.data?C.data.id:"",minWidth:100,flex:1},{headerName:"Time",minWidth:81,resizable:!0,valueGetter:C=>!C.data||C.data.id==="MIN"||C.data.id==="MAX"?"":C.data.Reception?RFi(C.data.Reception).format("HH:mm"):"",flex:1,cellStyle:{textAlign:"center"}}],b=g.map(C=>{const x=u[C].decimals;return{headerName:C,minWidth:80,flex:1,valueGetter:w=>{if(!w.data)return null;const S=w.data[C];return S&&typeof S=="object"?S.value:null},valueFormatter:w=>{if(w.value===null||w.value===void 0)return"-";let S=x;if(w.data){const A=w.data[C];A&&typeof A=="object"&&(S=A.decimals??x)}return typeof w.value=="number"?w.value.toFixed(S):"-"},cellClassRules:{"cell-below-min":w=>{if(!t||w.rowIndex!==w.api.getDisplayedRowCount()-3||!w.data||w.data.id==="MIN"||w.data.id==="MAX")return!1;const S=w.data[C];return!!(S&&typeof S=="object"&&S.status==="Below")},"cell-above-max":w=>{if(!t||w.rowIndex!==w.api.getDisplayedRowCount()-3||!w.data||w.data.id==="MIN"||w.data.id==="MAX")return!1;const S=w.data[C];return!!(S&&typeof S=="object"&&S.status==="Above")}},type:"numericColumn"}}),y={headerName:"Chemistry",children:[...m,...b]},M=Object.values(d);if(g.length>0){const C={id:"MIN",SampleTypeName:"MIN",SampleSequence:null,Reception:null},x={id:"MAX",SampleTypeName:"MAX",SampleSequence:null,Reception:null};g.forEach(w=>{const S=u[w].decimals;C[w]={value:p[w],decimals:S},x[w]={value:h[w],decimals:S}}),M.push(C,x)}return{rowData:M,chemistryGroupCol:y}},[e,t]),o=u=>u.data&&(u.data.id==="MIN"||u.data.id==="MAX")?{backgroundColor:"#f0f0f0"}:{},a=v.useMemo(()=>i?[i]:[],[i]),s=v.useMemo(()=>({sortable:!1,editable:!1,suppressMenu:!0,flex:1,suppressHeaderMenuButton:!0}),[]),l=v.useMemo(()=>({statusBarReference:EFi}),[]),c=v.useMemo(()=>({statusPanels:[{statusPanel:"statusBarReference",align:"left",statusPanelParams:{coloringEnabled:t,onToggleColoring:n}}]}),[t,n]);return{columns:a,defaultColDef:s,rowData:r,getRowStyle:o,frameworkComponents:l,statusBar:c}},PFi=Et(e=>({gridWrapper:{"& .ag-cell.cell-below-min":{backgroundColor:" #ffa500",fontWeight:"bold"},"& .ag-cell.cell-above-max":{backgroundColor:" #f26b6b",fontWeight:"bold"},"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}}})),DFi=({gridRef:e,coloringEnabled:t,onToggleColoring:n})=>{const r=Gl(),i=PFi(),{state:{elementData:o}}=$l(),{columns:a,rowData:s,getRowStyle:l,frameworkComponents:c,statusBar:u}=IFi({elementList:o,coloringEnabled:t,onToggleColoring:n}),d=105+(s?.length??0)*35+2;return f.jsx(f.Fragment,{children:f.jsx(Pt,{className:r.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:i.gridWrapper,style:{height:`${Math.max(d,190)}px`,minWidth:"100%"},children:f.jsx($n,{ref:e,rowData:s,columnDefs:a,suppressRowClickSelection:!0,suppressPaginationPanel:!0,suppressContextMenu:!0,getRowId:h=>h.data.id,getRowStyle:l,noRowsOverlayComponent:()=>"No chemistry data available",components:c,statusBar:u})})})})})},hEt=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"HeatId",value:e}),r.push({name:"StatusCode",value:t}),await n.callV2("[LAB].[GetMechanicalSamples]",r)},ec=Sn(),kFi=async({HeatId:e})=>{const t=[];t.push({name:"HeatId",value:e});const r=await new Ye().callV2("[SWV].[GetHeatReport]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,TapDate:i.TapDate?ec.utc(i.TapDate).toDate():null,OpenDate:i.OpenDate?ec.utc(i.OpenDate).toDate():null}))),r},LFi=async({ProcessId:e})=>{const t=[];t.push({name:"ProcessId",value:e});const r=await new Ye().callV2("[EAF].[GetProcessHeatReport]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,Start:i.Start?ec.utc(i.Start).toDate():null,End:i.End?ec.utc(i.End).toDate():null,StartTap:i.StartTap?ec.utc(i.StartTap).toDate():null})),r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,Timestamp:i.Timestamp?ec.utc(i.Timestamp).toDate():null})),r.data.tables[2].rows=r.data.tables[2].rows.map(i=>({...i,Timestamp:i.Timestamp?ec.utc(i.Timestamp).toDate():null})),r.data.tables[3].rows=r.data.tables[3].rows.map(i=>({...i,Timestamp:i.Timestamp?ec.utc(i.Timestamp).toDate():null})),r.data.tables[4].rows=r.data.tables[4].rows.map(i=>({...i,Start:i.Start?ec.utc(i.Start).toDate():null,End:i.End?ec.utc(i.End).toDate():null})),r.data.tables[5].rows=r.data.tables[5].rows.map(i=>({...i,Start:i.Start?ec.utc(i.Start).toDate():null,End:i.End?ec.utc(i.End).toDate():null})),r.data.tables[6].rows=r.data.tables[6].rows.map(i=>({...i,Start:i.Start?ec.utc(i.Start).toDate():null,End:i.End?ec.utc(i.End).toDate():null})),r.data.tables[7].rows=r.data.tables[7].rows.map(i=>({...i,CreateTimestamp:i.CreateTimestamp?ec.utc(i.CreateTimestamp).toDate():null,UpdateTimestamp:i.UpdateTimestamp?ec.utc(i.UpdateTimestamp).toDate():null}))),r},_Fi=async({ProcessId:e})=>{const t=[];t.push({name:"ProcessId",value:e});const r=await new Ye().callV2("[CAS].[GetProcessHeatReport]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,LadleOpen:i.LadleOpen?ec.utc(i.LadleOpen).toDate():null,LadleClose:i.LadleClose?ec.utc(i.LadleClose).toDate():null})),r.data.tables[2].rows=r.data.tables[2].rows.map(i=>({...i,Timestamp:i.Timestamp?ec.utc(i.Timestamp).toDate():null})),r.data.tables[5].rows=r.data.tables[5].rows.map(i=>({...i,CreateTimestamp:i.CreateTimestamp?ec.utc(i.CreateTimestamp).toDate():null}))),r},NFi=async({heatId:e})=>{const t=new Ye,n=[];n.push({name:"HeatId",value:e});const r=await t.callV2("[LAB].[GetHeatReportChemistrySample]",n);return r.ok&&(r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,Reception:i.Reception?ec.utc(i.Reception).toDate():null}))),r},FFi=async({ProcessId:e,OffsetMinutes:t=40})=>{const n=new Ye,r=[];r.push({name:"ProcessId",value:e}),r.push({name:"OffsetMinutes",value:t});const i=await n.callV2("[SWV].[GetEAFValuesByProcessId]",r);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,Datetime:o.Datetime?ec.utc(o.Datetime).toDate():null}))),i},WFi=async({heatId:e})=>{const t=await hEt(e,"V"),[n,r]=await Promise.all([B3e(),j3e()]);return{samples:t,tests:n,sources:r}},qFi=()=>{const{state:e,actions:t}=$l();return{loadMechanicalTestData:async r=>{if(!r){t.setMechanicalTests(null),t.setMechanicalSamples(null),t.setMechanicalGradeLimits(null),t.setMechanicalResultSources(null);return}t.setIsMechanicalDataLoading(!0);try{const{samples:i,tests:o,sources:a}=await WFi({heatId:r});o.ok&&t.setMechanicalTests(o.data.tables[0].rows),a.ok&&t.setMechanicalResultSources(a.data.tables[0].rows),i.ok&&(t.setMechanicalSamples(i.data.tables[0].rows),i.data.tables[1]&&t.setMechanicalGradeLimits(i.data.tables[1].rows))}catch(i){console.error("Error loading mechanical test data:",i),t.setMechanicalTests(null),t.setMechanicalSamples(null),t.setMechanicalGradeLimits(null),t.setMechanicalResultSources(null)}finally{t.setIsMechanicalDataLoading(!1)}},mechanicalTests:e.mechanicalTests,mechanicalSamples:e.mechanicalSamples,mechanicalGradeLimits:e.mechanicalGradeLimits,mechanicalResultSources:e.mechanicalResultSources,isMechanicalDataLoading:e.isMechanicalDataLoading}},BFi=()=>{const{state:{heatLabData:e,heat:t,mechanicalTests:n,mechanicalSamples:r,mechanicalGradeLimits:i,mechanicalResultSources:o,isMechanicalDataLoading:a}}=$l(),s=v.useRef(null),{loadMechanicalTestData:l}=qFi(),[c,u]=v.useState(!0);v.useEffect(()=>{t?.HeatId&&l(t.HeatId)},[t?.HeatId]);const d=()=>{s.current?.api.exportDataAsExcel({fileName:`LabReport_${e?.HeatName??"data"}.xlsx`,sheetName:"Lab Report of "+e?.HeatName})};return f.jsx(f.Fragment,{children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(AFi,{onExport:d})}),f.jsx(D,{item:!0,xs:12,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(DFi,{gridRef:s,coloringEnabled:c,onToggleColoring:u},e?.HeatId)})}),f.jsx(D,{item:!0,xs:12,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(TFi,{loadingGrid:a,heat:t,mechanicalSamples:r,mechanicalTests:n,mechanicalGradeLimits:i,mechanicalResultSources:o},t?.HeatId)})})]})})},jFi=()=>{const e=Gl(),{heatId:t,stage:n}=ds(),r=Oo(),[i,o]=v.useState(n||"eaf");v.useEffect(()=>{n&&o(n)},[n]);const a=(s,l)=>{o(l),t&&r(`/heat-report/${t}/${l}`)};return f.jsxs(f.Fragment,{children:[f.jsxs(_at,{value:i,onChange:a,classes:{root:e.fileTabsRoot,indicator:e.fileTabsIndicator},children:[f.jsx(KN,{label:"EAF",value:"eaf",classes:{root:e.fileTabRoot,selected:e.fileTabSelected}}),f.jsx(KN,{label:"Caster",value:"caster",classes:{root:e.fileTabRoot,selected:e.fileTabSelected}}),f.jsx(KN,{label:"Lab",value:"lab",classes:{root:e.fileTabRoot,selected:e.fileTabSelected}})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[n==="eaf"&&f.jsx(wFi,{}),n==="caster"&&f.jsx(iFi,{}),n==="lab"&&f.jsx(BFi,{})]})]})},HFi=()=>{const{heatId:e,stage:t}=ds(),n=Oo(),{state:r}=Ma(),{state:i,state:{heat:o},actions:{setHeat:a,setEAFProcessData:s,setCASProcessData:l,setHeatLabData:c,setElementData:u,setAdditions:d,setCharges:p,setDelays:h,setLogbook:g,setProbes:m,setHeatings:b,setPhases:y,setProductionData:M,setScrapData:C,setStrandData:x,setIsDataLoading:w,setStrandSpeeds:S,setMoldLevels:A,setEAFValues:z,setBilletTemp:O,setEafChartOffsetMinutes:T}}=$l(),R=Number(At(r.settings,"HEAT_REPORT_EAF_CHART_OFFSET_MINUTES",40)),[P,F]=v.useState("");v.useEffect(()=>{T(R)},[R,T]);const N=async(W,j=!0)=>{w(!0);const V=await kFi({HeatId:W});if(V.ok){const G=At(V.data,"tables[0].rows[0]",{});a(G),j&&G.HeatId&&t&&n(`/heat-report/${G.HeatId}/${t}`,{replace:!0})}else F(V.message);w(!1)},L=async()=>{w(!0);const W=t==="eaf"?o.EAFProcessId:o.CASProcessId;if(t==="eaf"&&W){const j=await LFi({ProcessId:W});if(j.ok){const G=At(j.data,"tables[0].rows[0]",{}),q=At(j.data,"tables[1].rows",[]),$=At(j.data,"tables[2].rows",[]),U=At(j.data,"tables[3].rows",[]),X=At(j.data,"tables[4].rows",[]),Q=At(j.data,"tables[5].rows",[]),re=At(j.data,"tables[6].rows",[]),ee=At(j.data,"tables[7].rows",[]);s(G),d(q),m($),p(U),b(X),y(Q),h(re),g(ee)}else F(j.message);const V=await FFi({ProcessId:W,OffsetMinutes:R});if(V.ok){const G=V.data.tables[0].rows;z(G)}else F(V.message)}if(t==="caster"&&W){const j=await _Fi({ProcessId:W});if(j.ok){const $=At(j.data,"tables[0].rows[0]",{}),U=At(j.data,"tables[1].rows",[]),X=At(j.data,"tables[2].rows",[]),Q=At(j.data,"tables[3].rows",[]),re=At(j.data,"tables[4].rows",[]),ee=At(j.data,"tables[5].rows",[]);l($),x(U),C(re),M(Q),m(X),g(ee)}else F(j.message);const V=await xzt(W),G=await wzt(W),q=await Szt(W);if(V.ok){const $=V.data.tables[0].rows;S($)}else F(V.message);if(G.ok){const $=G.data.tables[0].rows;A($)}else F(G.message);if(q.ok){const $=q.data.tables[0].rows;O($)}else F(q.message)}if(t==="lab"&&o.HeatId){const j=await NFi({heatId:o.HeatId});j.ok?(c(j.data.tables[0].rows[0]),u(j.data.tables[1].rows)):F(j.message)}w(!1)};return v.useEffect(()=>{(async()=>{if(e==="latest"||!e)await N(null,!0);else{const W=Number.parseInt(e,10);Number.isNaN(W)||await N(W,!1)}})()},[e]),v.useEffect(()=>{!o.HeatId||o.HeatId===0||!t||(async()=>await L())()},[t,o.HeatId]),f.jsxs(f.Fragment,{children:[o&&f.jsx(yn,{title:`${o.HeatName} - Heat Report`}),f.jsxs(Pt,{style:{backgroundColor:" #F2F4F7",border:"1px solid  #ccc"},children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{margin:"15px 0px 0 20px"},children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Heat Report"})}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:3,children:f.jsx(D,{item:!0,xs:12,children:o&&o.HeatId>0&&f.jsx(kNi,{heat:o,getDataFromAPI:N})})}),o.HeatId>0?f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"center",alignContent:"center",children:f.jsx(jFi,{})}):f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"center",style:{padding:"40px"},children:f.jsx(vt,{variant:"body1",color:"textSecondary",children:i.isDataLoading?"Loading heat data...":"No heat loaded. Please select a heat."})})]}),f.jsx(yt,{error:P,onHide:()=>F("")})]})]})},VFi=()=>f.jsx(_Ni,{children:f.jsx(Ow,{theme:q3t,children:f.jsx(HFi,{})})}),GFi=()=>{const{heatId:e}=ds();return f.jsx(VO,{to:`/heat-report/${e}/eaf`,replace:!0})},$Fi=[f.jsx(ar,{path:"/heat-process-report",element:f.jsx(VO,{to:"/heat-report/latest/eaf",replace:!0})},"heat-process-report-redirect"),f.jsx(ar,{path:"/heat-process-report/:asset",element:f.jsx(VO,{to:"/heat-report/latest/eaf",replace:!0})},"heat-process-report-asset"),f.jsx(ar,{path:"/heat-report",element:f.jsx(VO,{to:"/heat-report/latest/eaf",replace:!0})},"heat-report-base"),f.jsx(ar,{path:"/heat-report/:heatId",element:f.jsx(GFi,{})},"heat-report-id"),f.jsx(ar,{path:"/heat-report/:heatId/:stage",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(VFi,{})})},"heat-report-full")],UFi=({items:e,minSearchTextLength:t=2,defaultText:n="Select an option",noOptionsText:r="No options",autoHighlight:i=!0,width:o=300,color:a="black",containerPadding:s="0px",onTextSearch:l,onChangeValue:c})=>{const[u,d]=v.useState(""),[p,h]=v.useState(null),[g,m]=v.useState(!1);return v.useEffect(()=>{},[]),v.useEffect(()=>{u.length<=t||l&&(l(u),m(!0))},[u]),v.useEffect(()=>{c&&c(p),m(!1)},[p]),v.useEffect(()=>{!g&&e.length>0&&h(e[0]),e.length===0&&(h(null),d(""))},[e]),f.jsx("div",{style:{padding:s},children:f.jsx(Ki,{renderOption:b=>f.jsx(vt,{noWrap:!0,style:{color:a},children:b.name}),getOptionLabel:b=>`${b.name}`,renderInput:b=>f.jsx(je,{...b,variant:"outlined",size:"small",value:u,label:n,onChange:y=>d(y.target.value),InputProps:{...b.InputProps,style:{color:a}},InputLabelProps:{...b.InputLabelProps,style:{userSelect:"none"}}}),options:e,noOptionsText:r,value:p,onChange:(b,y)=>h(y),style:{width:o},autoHighlight:i})})},XFi=({heats:e,title:t="Heat",defaultText:n="Enter a Heat Number",onValueChanged:r,onTextChanged:i,onNextClicked:o,onPreviousClicked:a,textColor:s="black",heatStatus:l=null})=>{const c=async u=>{i&&i(u)};return f.jsx(D,{item:!0,container:!0,alignItems:"center",spacing:2,children:f.jsx(D,{item:!0,xs:12,md:6,style:{marginLeft:"15px"},children:f.jsxs("div",{className:"input-group",children:[f.jsxs("div",{className:"input-group-prepend",children:[f.jsx("span",{className:"input-group-text",children:t}),f.jsx("button",{className:"btn btn-secondary",type:"button",onClick:a,children:f.jsx("i",{className:"fas fa-chevron-left"})})]}),f.jsx(UFi,{items:e,defaultText:n,noOptionsText:"No heats to show",width:200,containerPadding:"0 0.5rem",onTextSearch:c,onChangeValue:r,color:s}),f.jsx("div",{className:"input-group-append",children:f.jsx("button",{className:"btn btn-secondary",type:"button",onClick:o,children:f.jsx("i",{className:"fas fa-chevron-right"})})}),l&&f.jsx("div",{style:{backgroundColor:l?.color||"grey",color:"#fff",borderRadius:"4px",padding:"10px",textAlign:"center",marginLeft:"10px",minWidth:"100px"},children:f.jsx(vt,{children:l?.name})})]})})})},vTe=async e=>{const t=new Ye,n=[];return n.push({name:"HeatId",value:e}),await t.callV2("[SWV].[GetHeat]",n)},YFi=async()=>await new Ye().callV2("[MS].[GetLastHeat]",[]),KY=async({searchText:e="",IncludeIsExternal:t=null})=>{const n=[];return n.push({name:"@SearchText",value:e.trim()}),n.push({name:"@ShowExternalHeats",value:t}),await new Ye().callV2("[MS].[SearchHeatNames]",n)},KFi=async e=>{const t=new Ye,n=[];return n.push({name:"GradeId",value:e}),await t.callV2("[LAB].[GetCatGradeChemistryLimits]",n)},QFi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"HeatId",value:e}),r.push({name:"StatusCode",value:t}),await n.callV2("[LAB].[GetChemistrySamples]",r)},ZFi=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.Id}),n.push({name:"SampleTypeId",value:e.SampleTypeId}),n.push({name:"SampleSequence",value:e.SampleSequence}),n.push({name:"DateTimeResults",value:e.DateTimeResults}),n.push({name:"StatusCode",value:e.StatusCode}),n.push({name:"ResultSourceId",value:e.ResultSourceId}),n.push({name:"Comments",value:e.Comments}),n.push({name:"HeatId",value:e.HeatId}),n.push({name:"Technician",value:e.Technician}),n.push({name:"Melter",value:e.Melter}),await t.callV2("[LAB].[UpsertChemistrySample]",n)},JFi=async e=>{const t=new Ye,n=[];return n.push({name:"ChemistrySampleId",value:e.ChemistrySampleId}),n.push({name:"ElementId",value:e.ElementId}),n.push({name:"Value",value:e.Value}),await t.callV2("[LAB].[UpsertChemistryResult]",n)},eWi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,searchHeatNameText:null,resultHeats:null,heatOptions:[],heat:null,grades:null,chemistrySamples:null,sampleTypes:null,showOnlyValid:!0},QY=ki({name:"__",initialState:eWi,reducers:{setShowOnlyValid(e,{payload:t}){e.showOnlyValid=t},setSearchHeatNameText(e,{payload:t}){e.searchHeatNameText=t},setResultHeats(e,{payload:t}){e.resultHeats=t},setHeatOptions(e,{payload:t}){e.heatOptions=t},setHeat(e,{payload:t}){e.heat=t},setGrades(e,{payload:t}){e.grades=t},setChemistrySamples(e,{payload:t}){e.chemistrySamples=t},setSampleTypes(e,{payload:t}){e.sampleTypes=t},setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t}}}),fEt=v.createContext({state:QY.getInitialState(),actions:QY.actions}),tWi=()=>v.useContext(fEt),nWi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:QY.getInitialState(),reducers:QY.caseReducers,name:"ChemistryByHeat"}),r=async()=>{const s=await YFi();if(s.ok){const l=At(s,"data.tables[0].rows[0].Name","");l&&n.setSearchHeatNameText(l)}else console.log("something happened!")},i=ds(),[o]=v.useState(i.heatName===void 0?"":i.heatName),[a]=v.useState(i.valid===void 0?!0:i.valid==="true");return v.useEffect(()=>{(async()=>(t.heat===null&&o===""?await r():(t.heat===null||t.heat?.Name!==o)&&n.setSearchHeatNameText(o),t.showOnlyValid!==a&&n.setShowOnlyValid(a)))()},[o,a]),f.jsx(fEt.Provider,{value:{state:t,actions:n},children:e})},rWi=e=>e.ChemistrySampleId===void 0||e.ChemistrySampleId===null||e.ElementId===void 0||e.ElementId===null?!1:!(e.Value===void 0||e.Value===null||isNaN(Number(e.Value))),iWi={Id:null,SampleTypeId:null,SampleSequence:null,SampleName:"",StatusCode:"V",ResultSourceId:null,isNew:!0,HeatId:null,Comments:"",DateTimeResults:new Date,DateTimeReceived:new Date,DateResults:null,Technician:"",Melter:"",DateError:!1,DateString:"",ElementsId:null,ElementsValue:null,sampleParams:[],elementParams:[],ResultsId:null},oWi=e=>!(e.SampleTypeId===void 0||e.SampleTypeId===null||e.ResultSourceId===void 0||e.ResultSourceId===null||e.HeatId===void 0||e.HeatId===null),aWi=({title:e,text:t,open:n,onClose:r,...i})=>{const[o,a]=E.useState(t),s=()=>{r("Cancel")},l=()=>{r("OK",o)};return v.useEffect(()=>{n||a(t)},[t,n]),f.jsxs(Qu,{maxWidth:"sm",fullWidth:!0,open:n,...i,children:[f.jsx(T0,{children:e}),f.jsx(ru,{dividers:!0,children:f.jsx(je,{autoFocus:!0,margin:"dense",type:"text",fullWidth:!0,variant:"filled",multiline:!0,maxRows:4,value:o,onChange:c=>a(c.target.value)})}),f.jsxs(Ed,{children:[f.jsx(Ne,{autoFocus:!0,onClick:s,children:"Cancel"}),f.jsx(Ne,{onClick:l,children:"Ok"})]})]})},mR=e=>{const t=v.useMemo(()=>e.api.getDisplayedRowAtIndex(e.rowIndex).data,[]);return t.Comments.length===0?f.jsx(f.Fragment,{}):f.jsx("div",{className:"custom-tooltip",style:{backgroundColor:e.color||"white"},children:f.jsxs("p",{children:[f.jsx("span",{children:"Comments: "})," ",t.Comments]})})},sWi=({loadingGrid:e,heat:t,chemistrySamples:n,gradeLimits:r,sampleTypes:i,updateEditing:o})=>{const a=DAi(),s=v.useRef(null),{columnSimpleDefaults:l,columnTypes:c}=ku({OnEdit:me=>{}}),[u,d]=v.useState([]),[p,h]=v.useState(null),g=[{headerName:"Sample",type:["centerAligned"],children:[{field:"StatusCode",headerName:"St",minWidth:40,maxWidth:40,tooltipComponent:mR,tooltipField:"StatusCode",tooltipComponentParams:{color:"#ececec"}},{field:"SampleTypeId",headerName:"Type",minWidth:60,maxWidth:60,editable:!0,cellEditor:"agSelectCellEditor",cellEditorParams:{values:u},filterParams:{valueFormatter:me=>G(i,me.value)},valueFormatter:me=>G(i,me.value),tooltipComponent:mR,tooltipField:"SampleTypeId",tooltipComponentParams:{color:"#ececec"}},{field:"SampleSequence",headerName:"Sq",minWidth:50,maxWidth:50,type:["numericColumn"],editable:!0,tooltipComponent:mR,tooltipField:"SampleSequence",tooltipComponentParams:{color:"#ececec"}},{field:"Melter",headerName:"Melter",minWidth:70,maxWidth:70,editable:!0,tooltipComponent:mR,tooltipField:"Melter",tooltipComponentParams:{color:"#ececec"}}]}],m=[{headerName:"Results",children:[{field:"DateString",headerName:"Date",minWidth:120,tooltipComponent:mR,tooltipField:"DateString",tooltipComponentParams:{color:"#ececec"}},{field:"DateTimeResults",headerName:"Result",minWidth:80,editable:!0},{field:"Technician",headerName:"Technician",minWidth:100,editable:!0,tooltipComponent:mR,tooltipField:"Technician",tooltipComponentParams:{color:"#ececec"}}]}],[b,y]=v.useState(g.concat(m)),[M,C]=v.useState([]),[x,w]=v.useState(!1),[S,A]=v.useState(null),[z,O]=v.useState(!1),[T,R]=v.useState(null),[P,F]=v.useState(""),[N,L]=v.useState(!1),[W,j]=v.useState(null),V=(me=>{const Me=[],Oe=me.node?.data??null;return Oe==null?Me:Oe.isNew===!0?(Me.push({name:"Cancel",action:()=>{ee()}}),Me):(Oe.StatusCode==="V"&&(Me.push({name:"Invalidate Sample",action:()=>{X(me.node?.data)}}),Me.push({name:"Change Heat",action:()=>{window.alert("Alerting about "+me.value)}})),Oe.Comments===null||Oe.Comments===void 0||Oe.Comments===""?Me.push({name:"Add Comment",action:()=>{se(me.node?.data)}}):Me.push({name:"Change Comment",action:()=>{se(me.node?.data)}}),Me.push("separator"),M.find(ie=>ie.isNew===!0)===void 0&&Me.push({name:"Add Sample",action:()=>{re()}}),Me.push({name:"Delete Sample",action:()=>{Q(me.node?.data)}}),Me)}),G=(me,Me)=>{const Oe=isNaN(parseInt(Me))?0:parseInt(Me),de=me.find(ie=>ie.SampleTypeId===Oe);return de===void 0?"":de.SampleTypeName},q=(me,Me)=>me.value===null||isNaN(me.value)?"":parseFloat(me.value).toFixed(Me),$=(me,Me,Oe)=>me.value===null||isNaN(me.value)||parseFloat(me.value)<Me||parseFloat(me.value)>Oe?"error-limit":"error-limit2",U=async(me,Me,Oe)=>{if(me==null)return;const de=me.elementParams.find(ue=>ue===Me),ie=me.sampleParams.find(ue=>ue===Me);if(de!==void 0){const ue={Id:null,ElementId:Number(de),ChemistrySampleId:me.Id,Value:Oe===null?null:Number(Oe)};if(!rWi(ue))return;try{const Ae=await JFi(ue);if(!Ae.ok)throw new Error(Ae.message);o(!1)}catch{o(!1)}}else if(ie!==void 0){if(!oWi(me))return;try{const ue=await ZFi(me);if(!ue.ok)throw new Error(ue.message);if(o(!1),me.StatusCode==="I"&&A(null),me.StatusCode==="D"){R(null);const Ae=M.filter(Ce=>Ce.StatusCode!=="D");C(Ae)}ie==="Comments"&&j(null)}catch{o(!1)}}},X=async me=>{me!=null&&me.StatusCode!=="I"&&(A(me.Id),w(!0))},Q=async me=>{me!=null&&me.StatusCode!=="D"&&(R(me.Id),O(!0))},re=async()=>{if(p===null)return;const me=iWi;o(!0),C([...M,me])},ee=async()=>{const me=M.filter(Me=>Me.isNew!==!0);C(me),o(!1)},se=async me=>{me!=null&&(j(me.Id),F(me.Comments),L(!0))},pe=async me=>{if(w(!1),me!=="OK"||S===null)return;const Me=M.find(Oe=>Oe.Id===S);Me!==void 0&&(Me.StatusCode="I",o(!0),await U(Me,"StatusCode","I"))},te=async me=>{if(O(!1),me!=="OK"||T===null)return;const Me=M.find(Oe=>Oe.Id===T);Me!==void 0&&(Me.StatusCode="D",o(!0),await U(Me,"StatusCode","D"))},ce=async(me,Me)=>{if(F(""),L(!1),me!=="OK"||W===null)return;const Oe=M.find(de=>de.Id===W);Oe!==void 0&&Oe.Comments!==(Me??"")&&(Oe.Comments=Me??"",o(!0),await U(Oe,"Comments",Me??""))},oe=me=>o(!0),ae=me=>o(!1),ne=me=>{U(me.data,me.column.getColId(),me.value)},le=v.useMemo(()=>({width:"100%",padding:"0px 15px 0px 0px",height:"auto"}),[n]),he=v.useMemo(()=>r.filter(me=>me.Enabled===!0).map(me=>f.jsx(D,{item:!0,className:a.footerItem,children:f.jsx(vt,{className:a.footerTextItem,children:me.MinValue===null?"":me.MinValue.toFixed(me.Decimals)})},"Min"+me.ElementId)),[r]),be=v.useMemo(()=>r.filter(me=>me.Enabled===!0).map(me=>f.jsx(D,{item:!0,className:a.footerItem,children:f.jsx(vt,{className:a.footerTextItem,children:me.MaxValue===null?"":me.MaxValue.toFixed(me.Decimals)})},"Min"+me.ElementId)),[r]);return v.useMemo(()=>{const me=[];r.filter(Oe=>Oe.Enabled==!0).forEach(Oe=>{const de={field:Oe.ElementId.toString(),headerName:Oe.ElementName,minWidth:70,maxWidth:70,type:["numericColumn"],valueFormatter:ie=>q(ie,Oe.Decimals),cellClass:ie=>$(ie,Oe.MinValue??0,Oe.MaxValue??0),editable:!0};me.push(de)});const Me=[{headerName:"Elements",children:me}];y(g.concat(Me,m))},[r]),v.useMemo(()=>{const me=[];n.forEach(Me=>{const Oe={...Me},de=(Me.ElementsId??"").split(","),ie=(Me.ElementsValue??"").split(","),ue=(Me.ResultsId??"").split(",");Oe.elementParams=[],Oe.sampleParams=["SampleTypeId","SampleSequence","DateTimeResults","StatusCode","ResultSourceId","Comments","Technician","Melter"];let Ae;for(Ae=0;Ae<ue.length;Ae++)Oe.elementParams.push(String(de[Ae]).trim()),isNaN(parseFloat(ie[Ae]))?Oe[String(de[Ae]).trim()]=null:Oe[String(de[Ae]).trim()]=parseFloat(ie[Ae]);me.push(Oe)}),C(me)},[n]),v.useMemo(()=>{const me=[];i.filter(Me=>Me.IsActive).forEach(Me=>{me.push(Me.SampleTypeId??0)}),d(me)},[i]),v.useMemo(()=>{h(t)},[t]),v.useMemo(()=>{e&&s.current!==null?s.current.api.showLoadingOverlay():s.current!==null&&s.current.api.hideOverlay()},[e]),f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"stretch",className:a.root,children:[f.jsxs(D,{item:!0,style:le,xs:12,md:12,children:[f.jsx(il,{title:"Confirmation",message:"The item will be invalidated.  Do you want to continue?",open:x,onClose:pe}),f.jsx(il,{title:"Confirmation",message:"The item will be deleted.  Do you want to continue?",open:z,onClose:te}),f.jsx(aWi,{title:"Comment",text:P,open:N,onClose:ce}),f.jsx($n,{ref:s,className:"ag-theme-alpine",rowSelection:"single",pagination:!1,animateRows:!0,rowHeight:45,headerHeight:45,domLayout:"autoHeight",singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:M,columnDefs:b,columnTypes:c,getContextMenuItems:V,defaultColDef:l,onCellEditingStarted:oe,onCellEditingStopped:ae,onCellValueChanged:ne})]}),f.jsx(D,{item:!0,xs:12,md:12,className:a.footerContainer,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"stretch",style:{height:"100%"},children:[f.jsx(D,{item:!0,className:a.footerTitle,children:f.jsx(vt,{className:a.footerTextTitle,children:"Grade Min"})}),he]})}),f.jsx(D,{item:!0,xs:12,md:12,className:a.footerContainer,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"stretch",style:{height:"100%"},children:[f.jsx(D,{item:!0,className:a.footerTitle,children:f.jsx(vt,{className:a.footerTextTitle,children:"Grade Max"})}),be]})})]})},lWi=e=>{const{state:t,actions:n}=tWi(),[r,i]=v.useState(!1),[o,a]=v.useState(0),[s,l]=v.useState(null),[c,u]=v.useState(null),d=Dw(),p=(O,T)=>{const R=d.pathname.split("/"),P=(R[0]!==void 0&&R[0]!=="/"?`${R[0]}`:"")+(R[1]!==void 0&&R[1]!=="/"?`${R[1]}`:"")+(R[2]!==void 0&&R[2]!=="/"?`${R[2]}`:"")+`/${O}/${T}`;window.history.replaceState(null,"",P)},h=O=>{i(O)},g=()=>{n.setChemistrySamples([]),n.setGrades([])},m=()=>{c!==null&&c.NextHeatName!==null&&(g(),n.setSearchHeatNameText(c.NextHeatName))},b=()=>{c!==null&&c.PreviousHeatName!==null&&(g(),n.setSearchHeatNameText(c.PreviousHeatName))},y=O=>{n.setShowOnlyValid(O.target.checked)},M=async()=>{if(p(t.heat===null?"":t.heat?.Name??"",t.showOnlyValid),t.heat===null||t.heat.HeatId===null){g();return}await S()},C=async O=>{const T=await KY({searchText:O});T.ok?(T.data,n.setResultHeats(T.data.tables[0].rows)):console.log("something happened 1!")},x=async O=>{if(O===0){n.setHeat(null);return}n.setIsLoadingBackground(!0);const T=await vTe(O);T.ok&&T.data!==null&&T.data!==void 0&&T.data.tables!=null&&T.data.tables[0].rows.length>0?n.setHeat(T.data.tables[0].rows[0]):console.log("something happened 3!"),n.setIsLoadingBackground(!1)},w=async()=>{n.setIsLoadingPage(!0);const O=await c3t();O.ok?n.setSampleTypes(O.data.tables[0].rows):console.log("something happened 2!"),n.setIsLoadingPage(!1)},S=async()=>{n.setIsLoadingGrid(!0);const O=await KFi(t.heat?.GradeId??0);O.ok?n.setGrades(O.data.tables[0].rows):console.log("something happened 4!"),n.setIsLoadingGrid(!1)},A=async()=>{n.setIsLoadingGrid(!0);const O=await QFi(t.heat?.HeatId??0,t.showOnlyValid?"V":null);O.ok?n.setChemistrySamples(O.data.tables[0].rows):console.log("something happened 5!"),n.setIsLoadingGrid(!1)},z=v.useMemo(()=>t.heat==null?"":Wn(t.heat?.CreationDate,"yyyy-MM-dd HH:mm"),[t.heat]);return v.useEffect(()=>{w();const O=setInterval(()=>{a(T=>T+1)},2e4);return()=>{clearInterval(O)}},[]),v.useEffect(()=>{(async()=>t.searchHeatNameText!==""&&t.searchHeatNameText!==null?await C(t.searchHeatNameText):n.setResultHeats([]))()},[t.searchHeatNameText]),v.useEffect(()=>{const O=[];(t.resultHeats??[]).forEach(T=>{const R={id:T.HeatId.toString(),name:T.HeatName};O.push(R)}),n.setHeatOptions(O)},[t.resultHeats]),v.useEffect(()=>{let O=null;if(s!==null){const T=s.id,R=(t.resultHeats??[]).find(P=>P.HeatId===Number(T));O=R===void 0?null:R}u(O)},[s]),v.useEffect(()=>{(async()=>(c===null&&n.setHeat(null),await x(c?.HeatId??0)))()},[c]),v.useEffect(()=>{(async()=>await M())()},[t.heat]),v.useEffect(()=>{(async()=>await M())()},[t.showOnlyValid]),v.useEffect(()=>{(async()=>await M())()},[t.heat]),v.useEffect(()=>{(async()=>await A())()},[t.grades]),v.useEffect(()=>{(async()=>o>0&&!r&&await M())()},[o]),t.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Op,{open:t.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0,padding:"15px"},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Chemistries"})}),f.jsxs(D,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(XFi,{onTextChanged:n.setSearchHeatNameText,onValueChanged:l,heats:t.heatOptions,onNextClicked:m,onPreviousClicked:b,defaultText:""})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(So,{control:f.jsx(Qr,{color:"primary",checked:t.showOnlyValid,onChange:y}),label:"Show valid samples"})})]}),f.jsxs(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",style:{marginTop:"15px",marginBottom:"15px"},children:[f.jsx(D,{item:!0,md:2,xs:12,children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",children:"Heat Start"})}),f.jsx("input",{type:"text",className:"form-control",readOnly:!0,value:z})]})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",children:"Grade"})}),f.jsx("input",{type:"text",className:"form-control",readOnly:!0,value:t.heat?.GradeName??""})]})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",children:"Melted Grade"})}),f.jsx("input",{type:"text",className:"form-control",readOnly:!0,value:t.heat?.MeltedGradeName??""})]})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",children:"Status"})}),f.jsx("input",{type:"text",className:"form-control",readOnly:!0,value:t.heat?.StatusCode??""})]})})]}),f.jsx(la,{}),f.jsx(sWi,{loadingGrid:t.isLoadingGrid,heat:t.heat,chemistrySamples:t.chemistrySamples??[],gradeLimits:t.grades??[],sampleTypes:t.sampleTypes??[],updateEditing:h})]})})]})},FZe=e=>f.jsx(nWi,{children:f.jsx(lWi,{})}),cWi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,chemistries:null,showAck:!1},ZY=ki({name:"__",initialState:cWi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setChemistries(e,{payload:t}){e.chemistries=t},setShowAck(e,{payload:t}){e.showAck=t}}}),gEt=v.createContext({state:ZY.getInitialState(),actions:ZY.actions}),uWi=()=>v.useContext(gEt),dWi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:ZY.getInitialState(),reducers:ZY.caseReducers});return f.jsx(gEt.Provider,{value:{state:t,actions:n},children:e})},pWi=async(e,t=!1)=>{const n=new Ye,r=[];return r.push({name:"ShiftId",value:e}),r.push({name:"ShowAck",value:t}),await n.callV2("[SWV].[GetChemistriesForL3]",r)},hWi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"ChemistrySampleId",value:e}),r.push({name:"Forced",value:t}),await n.callV2("[SWV].[SendChemistryToL3]",r)},fWi=async(e,t=!1)=>{const n=new Ye,r=[];return r.push({name:"ShiftId",value:e}),r.push({name:"ShowAck",value:t}),await n.callV2("[SWV].[GetMechanicalsForL3]",r)},gWi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"MechanicalSampleId",value:e}),r.push({name:"Forced",value:t}),await n.callV2("[SWV].[SendMechanicalToL3]",r)},mEt=({showAck:e,setShowAck:t})=>f.jsx(f.Fragment,{children:f.jsx(OD,{children:f.jsx(So,{control:f.jsx(Qr,{checked:e,color:"primary",onChange:n=>t(n.target.checked)}),label:"Show Acknowledged"})})}),Wpe=e=>{if(e.type==="force")return f.jsx(Ne,{variant:"contained",color:"primary",size:"small",style:{minWidth:"60px",cursor:"default"},children:"SEND"});const t=()=>{const n={display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"24px",borderRadius:"4px",fontWeight:"bold"};return e.value?{...n,backgroundColor:"#4caf50",color:"white"}:e.type==="check"?{...n,backgroundColor:"#f44336",color:"white"}:{...n,backgroundColor:"#9e9e9e",color:"white"}};return f.jsx("div",{style:t(),onClick:()=>{const n=!e.value,r=e.column.colId;e.node.setDataValue(r,n)},title:e.value?"Yes":"No",children:e.value?"Y":"N"})},mWi=({onSend:e})=>({columns:[{field:"Heat",headerName:"Heat",flex:1,minWidth:65},{field:"SampleType",headerName:"Sample",flex:1,minWidth:69},{field:"Grade",headerName:"Grade",flex:1,minWidth:80,wrapText:!0},{field:"LabDateTime",headerName:"Date",flex:1,minWidth:136},{field:"Technician",headerName:"Technician",flex:1,minWidth:89},{field:"ChecksPassed",headerName:"Check",flex:1,minWidth:62,maxWidth:62,cellRenderer:Wpe,cellRendererParams:{type:"check"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"ChecksResults",headerName:"Results",flex:4,minWidth:250,wrapText:!0},{field:"Sent",headerName:"Sent",flex:1,minWidth:62,maxWidth:62,cellRenderer:Wpe,cellRendererParams:{type:"sent"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Ack",headerName:"Ack by L3",flex:1,minWidth:90,wrapHeaderText:!0,valueGetter:n=>n.data.Ack===1,cellRenderer:Wpe,cellRendererParams:{type:"ack"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Name",headerName:"Force",type:["nonSorteable","nonFilterable"],flex:1,minWidth:90,cellRenderer:n=>f.jsx(Ne,{variant:"contained",color:"primary",size:"small",style:{minWidth:"60px"},onClick:()=>e(n.data),disabled:n.data?.Sent,children:"SEND"}),cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"SentBy",headerName:"Sent by",flex:1,minWidth:90}]}),vWi=({rows:e,loadingGrid:t,OnSend:n})=>{const[r,i]=v.useState(),o=l=>{n&&n(l)},{columns:a}=mWi({onSend:o}),s=l=>{i(l.api)};return v.useEffect(()=>{t&&r?r.showLoadingOverlay():r?.hideOverlay()},[t,r]),f.jsx("div",{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},xs:12,md:12,children:f.jsx($n,{onGridReady:s,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:e,columnDefs:a,loadingOverlayComponent:K3e})})})})},bWi=e=>{const t=Oo(),{shiftId:n}=ds(),[r]=Zu(),{state:i,actions:o}=uWi(),{shiftInfo:a,getShiftDataFromAPI:s}=na(),[l,c]=v.useState(""),[u,d]=v.useState(""),[p,h]=v.useState(!1),[g,m]=v.useState(null),b=async()=>{o.setIsLoadingGrid(!0);const C=At(a,"CurrentShiftId",null),x=await pWi(C,i.showAck);x.ok?o.setChemistries(x.data.tables[0].rows):d(x.message),o.setIsLoadingGrid(!1)},y=C=>{C.Sent||(c("Send Chemistry Sample"),m(C),h(!0))},M=async C=>{if(h(!1),C!=="OK"){c("");return}if(c(""),g===null)return;const x=g.ChecksPassed!==!0;if(g.ChemistrySampleId!==null&&g.ChemistrySampleId>0){o.setIsLoadingBackground(!0);const w=await hWi(g.ChemistrySampleId,x);w.ok?await b():d(w.message),o.setIsLoadingBackground(!1)}};return v.useEffect(()=>{if(a){const C=At(a,"CurrentShiftId",null);t(`/lab-l3/chemistry/${C}?ack=${i.showAck}`),(async()=>await b())()}},[a,i.showAck]),v.useEffect(()=>{n?(async()=>{const C=Number(n);await s(null,C)})():(async()=>await s(null,0))(),r.get("ack")==="true"&&o.setShowAck(!0)},[]),i.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:l||"L3 Chemistry"}),f.jsxs(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:i.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"L3 Chemistry"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(qm,{useRouter:!0}),f.jsx(Pt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(mEt,{showAck:i.showAck,setShowAck:o.setShowAck})})})})]})}),f.jsx(il,{title:"Confirmation",message:"The sample will be sent.  Do you want to continue?",open:p,onClose:M}),f.jsx(vWi,{loadingGrid:i.isLoadingGrid,rows:i.chemistries||[],OnSend:y})]})})]}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},WZe=e=>f.jsx(dWi,{children:f.jsx(bWi,{})}),yWi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,mechanicales:null,showAck:!1},JY=ki({name:"__",initialState:yWi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setMechanicales(e,{payload:t}){e.mechanicales=t},setShowAck(e,{payload:t}){e.showAck=t}}}),vEt=v.createContext({state:JY.getInitialState(),actions:JY.actions}),MWi=()=>v.useContext(vEt),CWi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:JY.getInitialState(),reducers:JY.caseReducers});return f.jsx(vEt.Provider,{value:{state:t,actions:n},children:e})},qpe=e=>{if(e.type==="force")return f.jsx(Ne,{variant:"contained",color:"primary",size:"small",style:{minWidth:"60px",cursor:"default"},children:"SEND"});const t=()=>{const n={display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"24px",borderRadius:"4px",fontWeight:"bold",cursor:"default"};return e.value?{...n,backgroundColor:"#4caf50",color:"white"}:e.type==="check"?{...n,backgroundColor:"#f44336",color:"white"}:{...n,backgroundColor:"#9e9e9e",color:"white"}};return f.jsx("div",{style:t(),onClick:()=>{const n=!e.value,r=e.column.colId;e.node.setDataValue(r,n)},title:e.value?"Yes":"No",children:e.value?"Y":"N"})},xWi=({onSend:e})=>({columns:[{field:"Heat",headerName:"Heat",flex:1,minWidth:65},{field:"Sample",headerName:"Sample",flex:1,minWidth:69},{field:"Grade",headerName:"Grade",flex:1,minWidth:80,wrapText:!0},{field:"LabDateTime",headerName:"Date",flex:1,minWidth:136},{field:"Technician",headerName:"Technician",flex:1,minWidth:89},{field:"ChecksPassed",headerName:"Check",flex:1,minWidth:62,maxWidth:62,cellRenderer:qpe,cellRendererParams:{type:"check"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"ChecksResults",headerName:"Results",flex:4,minWidth:250,wrapText:!0},{field:"Sent",headerName:"Sent",flex:1,minWidth:62,maxWidth:62,cellRenderer:qpe,cellRendererParams:{type:"sent"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Ack",headerName:"Ack by L3",flex:1,minWidth:90,wrapHeaderText:!0,valueGetter:n=>n.data.Ack===1,cellRenderer:qpe,cellRendererParams:{type:"ack"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Name",headerName:"Force",type:["nonSorteable","nonFilterable"],flex:1,minWidth:90,cellRenderer:n=>f.jsx(Ne,{variant:"contained",color:"primary",size:"small",style:{minWidth:"60px"},onClick:()=>e(n.data),disabled:n.data?.Sent,children:"SEND"}),cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"SentBy",headerName:"Sent by",flex:1,minWidth:80}]}),wWi=({rows:e,loadingGrid:t,OnSend:n})=>{const[r,i]=v.useState();Pd();const o=l=>{n&&n(l)},{columns:a}=xWi({onSend:o}),s=l=>{i(l.api)};return v.useEffect(()=>{t&&r?r.showLoadingOverlay():r?.hideOverlay()},[t,r]),f.jsx("div",{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},xs:12,md:12,children:f.jsx($n,{onGridReady:s,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:e,columnDefs:a,loadingOverlayComponent:K3e})})})})},SWi=e=>{const t=Oo(),{shiftId:n}=ds(),[r]=Zu(),{shiftInfo:i,getShiftDataFromAPI:o}=na(),{state:a,actions:s}=MWi(),[l,c]=v.useState(""),[u,d]=v.useState(""),[p,h]=v.useState(!1),[g,m]=v.useState(null),b=async()=>{s.setIsLoadingGrid(!0);const C=At(i,"CurrentShiftId",null),x=await fWi(C,a.showAck);x.ok?s.setMechanicales(x.data.tables[0].rows):c(x.message),s.setIsLoadingGrid(!1)},y=C=>{C.Sent||(d("Send Mechanical Sample"),m(C),h(!0))},M=async C=>{if(h(!1),C!=="OK"){d("");return}if(d(""),g===null)return;const x=g.ChecksPassed!==!0;if(g.MechanicalSampleId!==null&&g.MechanicalSampleId>0){s.setIsLoadingBackground(!0);const w=await gWi(g.MechanicalSampleId,x);w.ok?await b():c(w.message),s.setIsLoadingBackground(!1)}};return v.useEffect(()=>{if(i){const C=At(i,"CurrentShiftId",null);t(`/lab-l3/mechanical/${C}?ack=${a.showAck}`),(async()=>await b())()}},[i,a.showAck]),v.useEffect(()=>{n?(async()=>{const C=Number(n);await o(null,C)})():(async()=>await o(null,0))(),r.get("ack")==="true"&&s.setShowAck(!0)},[]),a.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:u||"L3 Mechanical"}),f.jsxs(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:a.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"L3 Mechanical"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(qm,{preventInit:!0}),f.jsx(Pt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(mEt,{showAck:a.showAck,setShowAck:s.setShowAck})})})})]})}),f.jsx(il,{title:"Confirmation",message:"The sample will be sent.  Do you want to continue?",open:p,onClose:M}),f.jsx(wWi,{loadingGrid:a.isLoadingGrid,rows:a.mechanicales||[],OnSend:y})]})})]}),f.jsx(yt,{error:l,onHide:()=>c("")})]})},qZe=e=>f.jsx(CWi,{children:f.jsx(SWi,{})}),AWi=Et(e=>({paper:{padding:e.spacing(2),display:"flex",alignItems:"center",maxWidth:"fit-content",minWidth:320},container:{display:"flex",alignItems:"center","& > *:not(:last-child)":{marginRight:e.spacing(1)}},title:{height:40,display:"flex",alignItems:"center",padding:e.spacing(0,2),borderRadius:6,fontWeight:500,minWidth:60,textAlign:"center",textTransform:"uppercase"},iconButton:{height:"100%",width:40,backgroundColor:"#4051b5",color:"#fff",borderRadius:6,boxShadow:"0 2px 4px rgba(0,0,0,0.1)",transition:"background-color 0.2s ease",cursor:"pointer","&:hover":{backgroundColor:e.palette.primary.dark,cursor:"pointer"}},statusContainer:{color:"#fff",borderRadius:4,padding:e.spacing(1,2),textAlign:"center",marginLeft:e.spacing(1),minWidth:100}})),OWi=({value:e,onChange:t,isExternal:n,heatStatus:r=null})=>{const i=AWi(),o=v.useRef(!0),[a,s]=v.useState([]),[l,c]=v.useState(""),[u,d]=v.useState(!1),[p,h]=v.useState(""),[g,m]=v.useState(!1),[b,y]=v.useState(null),M=v.useRef(p);M.current=p;const C=v.useCallback(aB(async S=>{d(!0);try{if(S.length>=2){const A=await KY({searchText:S,IncludeIsExternal:n===void 0?null:n});if(A.ok){const z=A.data.tables[0].rows;M.current===S&&(s(z),g||y(z.find(O=>O.HeatName===e)||null))}else c(A.message)}if(S.length===0){const A=await KY({searchText:"",IncludeIsExternal:n===void 0?null:n});A.ok?M.current===S&&s(A.data.tables[0].rows):c(A.message)}}catch{c("An error occurred while searching"),s([])}finally{d(!1)}},300),[e,n,g]);v.useEffect(()=>(C(p),()=>{C.cancel()}),[p,C]);const x=v.useMemo(()=>b&&!a.some(S=>S.HeatId===b.HeatId)?[b,...a]:a,[a,b]);v.useEffect(()=>{if(!g&&!u){if((!e||e==="")&&o.current&&a.length>0){const S=a[0];y(S),h(S.HeatName),t(S),o.current=!1}if(e&&p!==e){const S=a.find(A=>A.HeatName===e)||null;y(S),h(e)}}},[g,u,e,a,p,t]);const w=(S,A)=>{A?(!b||A.HeatId!==b.HeatId)&&(y(A),t(A)):y(null)};return f.jsx(Pt,{className:i.paper,children:f.jsxs(D,{container:!0,item:!0,xs:12,md:12,className:i.container,children:[f.jsx(bn,{onClick:()=>{if(b?.PreviousHeatId){const S={...b,HeatId:b.PreviousHeatId,HeatName:b.PreviousHeatName};t(S)}},disabled:!b?.PreviousHeatName,className:i.iconButton,children:f.jsx(W6,{style:{cursor:"pointer"}})}),f.jsx(Ki,{autoHighlight:!0,blurOnSelect:!0,clearOnEscape:!0,selectOnFocus:!0,options:x,getOptionLabel:S=>S.HeatName,value:b,inputValue:p,onInputChange:(S,A)=>{h(A)},onChange:w,onFocus:()=>{m(!0)},onBlur:()=>{m(!1)},loading:u,renderInput:S=>f.jsx(je,{...S,variant:"outlined",label:"Heat",size:"small",error:!!l,helperText:l,InputProps:{...S.InputProps,endAdornment:f.jsx(f.Fragment,{children:u?f.jsx(Kt,{color:"inherit",size:20}):S.InputProps.endAdornment})}}),renderOption:S=>f.jsx(vt,{style:{color:S.IsExternal?"blue":"black"},noWrap:!0,children:S.HeatName}),style:{width:200}}),f.jsx(bn,{onClick:()=>{if(b?.NextHeatId){const S={...b,HeatId:b.NextHeatId,HeatName:b.NextHeatName};t(S)}},disabled:!b?.NextHeatName,className:i.iconButton,children:f.jsx(fQ,{style:{cursor:"pointer"}})}),r&&f.jsx("div",{className:i.statusContainer,style:{backgroundColor:r.color??"grey"},children:f.jsx(vt,{variant:"body2",children:r.name})})]})})},zWi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,searchHeatNameText:null,resultHeats:null,heatOptions:[],selectedOption:null,showExternalsHeats:!1,heat:null,showOnlyValid:!0,mechanicalTests:null,mechanicalSamples:null,grades:null,sources:null},eK=ki({name:"__",initialState:zWi,reducers:{setShowOnlyValid(e,{payload:t}){e.showOnlyValid=t},setSearchHeatNameText(e,{payload:t}){e.searchHeatNameText=t},setResultHeats(e,{payload:t}){e.resultHeats=t},setHeatOptions(e,{payload:t}){e.heatOptions=t},setHeat(e,{payload:t}){e.heat=t},setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setMechanicalTests(e,{payload:t}){e.mechanicalTests=t},setMechanicalSamples(e,{payload:t}){e.mechanicalSamples=t},setGrades(e,{payload:t}){e.grades=t},setSources(e,{payload:t}){e.sources=t},setSelectedOption(e,{payload:t}){e.selectedOption=t},setShowExternalsHeats(e,{payload:t}){e.showExternalsHeats=t}}}),bEt=v.createContext({state:eK.getInitialState(),actions:eK.actions}),bTe=()=>v.useContext(bEt),TWi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:eK.getInitialState(),reducers:eK.caseReducers});return f.jsx(bEt.Provider,{value:{state:t,actions:n},children:e})},EWi=({resultSources:e,mechanicalTests:t})=>{const n=(u,d)=>u.value===null||isNaN(u.value)?"":parseFloat(u.value).toFixed(d),r=(u,d)=>{const p=isNaN(parseInt(d))?0:parseInt(d);return u.find(g=>g.ResultSourceId===p)?.ResultSourceName||""},i=u=>{if(u.value===null||isNaN(u.value))return"error-limit";const d=u.data;if(!d?.Limits)return"error-limit";const p=d.Limits.find(m=>m.MechanicalTestId===parseInt(u.colDef.field??"0"));if(!p)return"error-limit2";const{MinValue:h,MaxValue:g}=p;return h!==null&&parseFloat(u.value)<h||g!==null&&parseFloat(u.value)>g?"error-limit":"error-limit2"},o=v.useMemo(()=>[{headerName:"Sample",type:["centerAligned"],children:[{field:"HeatName",headerName:"Heat",minWidth:78,flex:1},{field:"SampleSequence",headerName:"Seq",minWidth:50,flex:1},{field:"GradeName",headerName:"Grade",minWidth:86,flex:1},{field:"SectionName",headerName:"Section",minWidth:96,flex:1},{field:"Width",headerName:"Width",minWidth:85,type:["numericColumn"],valueFormatter:u=>n(u,4),headerClass:"stripe-header",flex:1},{field:"Thickness",headerName:"Thickness",minWidth:113,type:["numericColumn"],valueFormatter:u=>n(u,4),headerClass:"stripe-header",flex:1},{field:"ResultSourceId",headerName:"Source",minWidth:93,flex:1,valueFormatter:u=>r(e,u.value)},{field:"Method",headerName:"Method",minWidth:97,flex:1}]}],[e]),a=v.useMemo(()=>[{headerName:"Results",children:[{field:"DateTimeResults",headerName:"Result",valueGetter:u=>Wn(`${u.data.DateTimeResults}`,"MM/dd/yyyy - HH:mm")||"",minWidth:150,flex:1},{field:"Technician",headerName:"Technician",minWidth:117,flex:1}]}],[]),s=v.useMemo(()=>[{headerName:"Mechanical Tests",children:t.filter(d=>d.IsActive&&d.MechanicatTestId!==4).map(d=>({field:d.MechanicatTestId?.toString(),headerName:d.MechanicalTestName,minWidth:116,flex:1,headerClass:d.UseInCircular?"stripe-header":"",valueFormatter:p=>n(p,d.Decimals),cellClass:i}))}],[t]),l=v.useMemo(()=>[...o,...s,...a],[o,s,a]),c=v.useMemo(()=>({flex:1,resizable:!0,sortable:!0,filter:!0,editable:!1,tooltipComponent:"customTooltip",tooltipComponentParams:{color:"#ececec"}}),[]);return{columns:l,defaultColDef:c}},RWi=({loadingGrid:e,heat:t,mechanicalSamples:n,gradeLimits:r,resultSources:i,mechanicalTests:o})=>{const a=p2(),s=v.useRef(null),{columns:l}=EWi({resultSources:i,mechanicalTests:o}),c=v.useMemo(()=>n.map(d=>{const p={...d,elementParams:[],sampleParams:["SampleSequence","DateTimeResults","StatusCode","ResultSourceId","Comments","Technician","Method","HeatId","Width","Thickness","Diameter"],testParams:[]},h=(d.SamplesId??"").split(","),g=(d.SamplesValue??"").split(",");return(d.ResultsId??"").split(","),p.Limits=r.filter(m=>m.GradeId===d.GradeId),o.forEach(m=>{p[String(m.MechanicatTestId).trim()]=null}),h.forEach((m,b)=>{const y=g[b];p[m.trim()]=isNaN(parseFloat(y))?null:parseFloat(y)}),p}),[n,r,o]),u=v.useMemo(()=>({height:"auto"}),[]);return v.useMemo(()=>{e&&s.current?.api?s.current.api.showLoadingOverlay():s.current?.api&&s.current.api.hideOverlay()},[e]),f.jsx(D,{item:!0,container:!0,className:a.root,style:u,xs:12,md:12,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Pt,{elevation:1,children:f.jsx($n,{ref:s,rowSelection:"single",pagination:!1,animateRows:!0,domLayout:"autoHeight",tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:c,columnDefs:l,suppressContextMenu:!0})})})})},IWi=()=>{const{state:e,actions:t}=bTe(),n=Oo(),{heatName:r}=ds(),[i]=Zu(),o=i.get("valid")??"false";return{handleValidSamples:c=>{t.setShowOnlyValid(c),n(`/lab-mechanical-by-heat/${r??""}?valid=${c}`)},nextHeat:()=>{if(!e.heat)return;const c=e.resultHeats?.find(u=>u.HeatId===e.heat.HeatId);c?.NextHeatId&&c?.NextHeatName&&(t.setSearchHeatNameText(c.NextHeatName),t.setHeat({Id:c.NextHeatId,Name:c.NextHeatName}),n(`/lab-mechanical-by-heat/${c.NextHeatName}?valid=${o}`))},previousHeat:()=>{if(!e.heat)return;const c=e.resultHeats?.find(u=>u.HeatId===e.heat.HeatId);c?.PreviousHeatId&&c?.PreviousHeatName&&(t.setSearchHeatNameText(c.PreviousHeatName),t.setHeat({Id:c.PreviousHeatId,Name:c.PreviousHeatName}),n(`/lab-mechanical-by-heat/${c.PreviousHeatName}?valid=${o}`))}}},PWi=()=>{const{state:e,actions:t}=bTe();return{getCatalogData:async()=>{t.setIsLoadingPage(!0);const[i,o]=await Promise.all([B3e(),j3e()]);i.ok&&t.setMechanicalTests(i.data.tables[0].rows),o.ok&&t.setSources(o.data.tables[0].rows),t.setIsLoadingPage(!1)},getSampleData:async()=>{if(!e.heat?.HeatId){t.setMechanicalSamples([]),t.setGrades([]);return}t.setIsLoadingGrid(!0);const i=await hEt(e.heat.HeatId,e.showOnlyValid?"V":null);i?.ok&&(t.setMechanicalSamples(i.data.tables[0].rows),i.data.tables[1]&&t.setGrades(i.data.tables[1].rows)),t.setIsLoadingGrid(!1)},isLoading:e.isLoadingPage||e.isLoadingGrid||e.isLoadingBackground}},DWi=()=>{const{state:e,actions:t}=bTe(),n=Oo(),{heatName:r}=ds(),[i,o]=v.useState(r||null),[a,s]=v.useState(null),{handleValidSamples:l}=IWi(),{getCatalogData:c,getSampleData:u}=PWi();return v.useEffect(()=>{c()},[i]),v.useEffect(()=>{u()},[i,e.showOnlyValid,e.heat]),v.useEffect(()=>{(async()=>{if(!e.heat&&i)try{const p=await KY({searchText:i,IncludeIsExternal:null});if(p.ok){const h=p.data.tables[0].rows.find(g=>g.HeatName===i);h&&t.setHeat(h)}}catch(p){s("Error buscando el heat: "+p)}})()},[e.heat,i]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Mechanical Test"}),f.jsxs(Pt,{elevation:1,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",height:"93vh",backgroundColor:"#F2F4F7"},children:[f.jsx(Op,{open:e.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,container:!0,md:12,xs:12,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600,userSelect:"none"},children:"Mechanical Test"})}),f.jsxs(D,{container:!0,direction:"row",alignItems:"center",spacing:2,children:[f.jsx(D,{item:!0,xs:"auto",children:f.jsx(OWi,{value:i||null,onChange:d=>{d&&(t.setHeat(d),o(String(d.HeatName)),n(`/lab-mechanical-by-heat/${d.HeatName}`))}})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(So,{control:f.jsx(Qr,{color:"primary",checked:e.showOnlyValid,onChange:d=>l(d.target.checked)}),label:"Show valid samples"})})]}),f.jsx(la,{style:{paddingTop:"100px"}}),f.jsx(RWi,{loadingGrid:e.isLoadingGrid,heat:e.heat,mechanicalTests:e.mechanicalTests??[],mechanicalSamples:e.mechanicalSamples??[],gradeLimits:e.grades??[],resultSources:e.sources??[]})]})})]}),f.jsx(yt,{error:a,onHide:()=>s(null)})]})},BZe=e=>f.jsx(TWi,{children:f.jsx(DWi,{})}),kWi=[f.jsx(ar,{path:"/lab-chemistry-by-heat",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(FZe,{})}),children:" "}),f.jsx(ar,{path:"/lab-chemistry-by-heat/:heatName/:valid",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(FZe,{})}),children:" "}),f.jsx(ar,{path:"/lab-mechanical-by-heat",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(BZe,{})})}),f.jsx(ar,{path:"/lab-mechanical-by-heat/:heatName",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(BZe,{})})}),f.jsx(ar,{path:"/lab-l3/chemistry",element:f.jsxs(v.Suspense,{fallback:f.jsx(Cn,{}),children:[" ",f.jsx(WZe,{})]})}),f.jsx(ar,{path:"/lab-l3/chemistry/:shiftId",element:f.jsxs(v.Suspense,{fallback:f.jsx(Cn,{}),children:[" ",f.jsx(WZe,{})]})}),f.jsx(ar,{path:"/lab-l3/mechanical",element:f.jsxs(v.Suspense,{fallback:f.jsx(Cn,{}),children:[" ",f.jsx(qZe,{})]})}),f.jsx(ar,{path:"/lab-l3/mechanical/:shiftId",element:f.jsxs(v.Suspense,{fallback:f.jsx(Cn,{}),children:[" ",f.jsx(qZe,{})]})})],LWi=fSi.map((e,t)=>f.jsx(ar,{path:e.path,element:e.element},`logbook-${e.path}-${t}`)),_Wi={variable:null,isLoadingPage:!1,isLoadingBackground:!1,isLoadingProductionGrid:!1,isLoadingChemistryGrid:!1,errorMessage:"",notificationMessage:"",showLoading:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:null,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:null,NextEnd:null,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date},casterProductions:[],eafProcesses:[],processGanttChart:[],casterChemistries:[],selectedProcess:null,selectedAsset:null,ganttData:{Processes:[],ProcessesEvents:[]}},tK=ki({name:"__",initialState:_Wi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingProductionGrid(e,{payload:t}){e.isLoadingProductionGrid=t},setIsLoadingChemistryGrid(e,{payload:t}){e.isLoadingChemistryGrid=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setVariable(e,{payload:t}){e.variable=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setProcessGanttChart(e,{payload:t}){e.processGanttChart=t},setShowLoading(e,{payload:t}){e.showLoading=t},setEAFProcesses(e,{payload:t}){e.eafProcesses=t},setCasterProductions(e,{payload:t}){e.casterProductions=t},setCasterChemistries(e,{payload:t}){e.casterChemistries=t},setSelectedProcess(e,{payload:t}){e.selectedProcess=t},setSelectedAsset(e,{payload:t}){e.selectedAsset=t},setGanttProcesses(e,{payload:t}){e.ganttData.Processes=t},setGanttProcessEvents(e,{payload:t}){e.ganttData.ProcessesEvents=t}}}),yEt=v.createContext({state:tK.getInitialState(),actions:tK.actions}),mT=()=>v.useContext(yEt),MEt=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:tK.getInitialState(),reducers:tK.caseReducers});return f.jsx(yEt.Provider,{value:{state:t,actions:n},children:e})},jZe=()=>({width:window.innerWidth,height:window.innerHeight});function CEt(){const[e,t]=v.useState(jZe()),n=v.useCallback(()=>{let r=!1;r||(window.requestAnimationFrame(()=>{t(jZe()),r=!1}),r=!0)},[]);return v.useEffect(()=>(window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)),[]),e}const HZe=Sn(),NWi=({casterProductions:e,setComment:t,setShowCommentModal:n})=>({columnData:[{headerName:"Heat",type:["centerAligned"],children:[{field:"HeatNameValue",headerName:"",minWidth:66,type:["numericColumn","numericWidth"],cellRenderer:o=>Td({...o,link:`/meltshop-heats/${o.data.ShiftId}?heatId=${o.data.HeatId}`})}]},{headerName:"Grade",children:[{field:"GradeValue",headerName:"",minWidth:79}]},{headerName:"Billet Size",children:[{field:"BilletSizeName",headerName:"",minWidth:84}]},{headerName:"Open",type:["centerAligned"],children:[{field:"OpenFreeValue",headerName:"Free",minWidth:55,cellRenderer:iY,type:["nonSorteable","nonFilterable","centerAligned"],cellStyle:{padding:"0px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center"}},{field:"OpenBurnValue",headerName:"Burn",minWidth:55,cellRenderer:iY,type:["nonSorteable","nonFilterable","centerAligned"],cellStyle:{padding:"0px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center"}}]},{headerName:"Nozzle",children:[{field:"NozzleSize",headerName:"Billet Size Children",minWidth:76,cellStyle:{textAlign:"right"}}]},{headerName:"Ladle Trim",children:[{field:"TrimTemperature",headerName:"Temp",minWidth:60,cellStyle:{textAlign:"right"}},{field:"TrimSuperHeatValue",headerName:"SHeat",minWidth:62,cellStyle:{textAlign:"right"}},{field:"TrimProbeOxygen",headerName:"Trim O2",minWidth:57,type:["numericColumn","numericWidth"]}]},{headerName:"Tundish",children:[{field:"TundishNumber",headerName:"Num",minWidth:72,type:["numericColumn","numericWidth"]}]},{headerName:"Temperatures",children:[{field:"TemperaturesLiquidus",headerName:"Liquidus",minWidth:76,type:["numericColumn","numericWidth"]},{field:"TemperaturesFirst",headerName:"First",minWidth:60,type:["numericColumn","numericWidth"]},{field:"TemperaturesLast",headerName:"Last",minWidth:60,type:["numericColumn","numericWidth"]},{field:"TemperaturesMinSHValue",headerName:"MinSH",minWidth:66,type:["numericColumn","numericWidth"]}]},{headerName:"Times",children:[{field:"LadleOpen",headerName:"Open",minWidth:62,valueGetter:o=>o.data.LadleOpen?HZe(o.data.LadleOpen).format("HH:mm"):"",cellRenderer:o=>Td({...o,link:`/caster-data-entry/${o.data.ProcessId}`})},{field:"LadleClose",headerName:"Close",minWidth:62,valueGetter:o=>o.data.LadleClose?HZe(o.data.LadleClose).format("HH:mm"):""},{field:"DurationValue",headerName:"Duration",minWidth:76,valueFormatter:o=>o.data.DurationValue?.toFixed(1)}]},{headerName:"Avg Speed",children:[{field:"AvgSpeedS1Value",headerName:"S1",minWidth:62,cellRenderer:EO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}},{field:"AvgSpeedS2Value",headerName:"S2",minWidth:62,cellRenderer:EO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}},{field:"AvgSpeedS3Value",headerName:"S3",minWidth:62,cellRenderer:EO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}}]},{headerName:"Products",children:[{field:"ProductsPieces",headerName:"Pieces",minWidth:64,type:["numericColumn","numericWidth"]},{field:"ProductsTons",headerName:"Tons",minWidth:55,type:["numericColumn","numericWidth"],valueGetter:o=>ew(o.data.ProductsTons)&&o.data.ProductsTons>0?Number.parseFloat(o.data.ProductsTons).toFixed(1):0}]},{headerName:"Lost Strands",field:"LostStrands",minWidth:72,headerStyle:{textAlign:"center"},cellStyle:{textAlign:"center"}},{field:"ScrapTons",headerName:"Scrap [lbs]",minWidth:69,valueGetter:o=>ew(o.data.ScrapTons)&&o.data.ScrapTons>0?Number.parseFloat(o.data.ScrapTons).toFixed(0):0},{headerName:"Comments",children:[{field:"Comments",headerName:"",minWidth:89,cellRenderer:o=>f.jsx(IAi,{comments:o.data.Comments,onClick:()=>{t(o.data.Comments),n(!0)}})}]}],defaultColDef:{flex:1,resizable:!0,suppressHeaderMenuButton:!0,wrapHeaderText:!0,autoHeaderHeight:!0,filter:!1,floatingFilter:!1,sortable:!1,editable:!1}}),FWi=Et(e=>({commentBox:{border:"1px solid #ced4da",borderRadius:4,padding:e.spacing(2),backgroundColor:"#fff",minHeight:100,overflowY:"auto",pointerEvents:"none"}})),WWi=({comments:e,onHide:t,open:n})=>{const r=FWi();return f.jsx(f.Fragment,{children:f.jsxs(We,{open:n,handleClose:t,id:"comments-modal",title:"Comment",maxWidth:"sm",children:[f.jsx(We.Content,{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx("div",{className:r.commentBox,children:f.jsx(vt,{children:e})})})})}),f.jsx(We.Actions,{children:f.jsx(D,{container:!0,spacing:2,justifyContent:"flex-end",children:f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:t,size:"small",children:"Ok"})})})})]})})},qWi=()=>{const e=Oo(),{shiftInfo:t}=na(),n=o=>{o!==null&&e(`/caster-data-entry/${o}`)},r=o=>{o&&e(`/meltshop-heats/${t?.CurrentShiftId}?heatId=${o}`)};return{getMenuOptions:o=>{let a=[];return o.ProcessId&&a.push({name:"See in Data Entry",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>n(o.ProcessId),icon:f.jsx(dM,{})}),o.HeatId&&(a=a.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>r(o.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),a},goToDataEntry:n}},BWi=()=>{const e=v.useRef(null),{shiftInfo:t}=na(),{state:{casterProductions:n,isLoadingProductionGrid:r}}=mT(),[i,o]=v.useState(null),[a,s]=v.useState(null),[l,c]=v.useState(!1),{columnTypes:u}=ku({OnEdit:()=>{}}),{columnData:d,defaultColDef:p}=NWi({casterProductions:n,setComment:s,setShowCommentModal:c}),{getMenuOptions:h,goToDataEntry:g}=qWi(),{showContextMenu:m,registerConfig:b}=ws(),y=M=>{o(M.api)};return v.useMemo(()=>{r&&i?i.showLoadingOverlay():i&&i.hideOverlay()},[r,i]),v.useEffect(()=>{b({id:"casterProductionTable",getOptions:h})},[t?.CurrentShiftId]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{border:"1px solid #e0e0e0",height:"50vh",minHeight:"30vh",margin:"20px 0 10px"},children:f.jsx($n,{ref:e,rowSelection:"single",defaultColDef:p,onGridReady:y,rowData:n,columnDefs:d,columnTypes:u,suppressContextMenu:!0,onRowDoubleClicked:M=>{g(M.data.ProcessId)},onCellContextMenu:M=>{M.event&&m(M.event,M.data,"casterProductionTable")}})})}),f.jsx(WWi,{comments:a,onHide:()=>c(!1),open:l})]})},jWi=(e,t,n,r,i,o,a,s,l,c,u,d,p,h,g)=>{const m=t[1].getTime()-t[0].getTime()-t[1].getTimezoneOffset()*60*1e3+t[0].getTimezoneOffset()*60*1e3;return e.map((y,M)=>HWi(y,M,t,m,n,r,i,o,a,s,l,c,u,d,p,h,g))},HWi=(e,t,n,r,i,o,a,s,l,c,u,d,p,h,g,m,b)=>{const y={...e,index:t,barTasks:[]};let M=0;y.barTasks=(e.processes||[]).map(A=>VZe({ganttObject:A,index:M++,indexAsset:y.index,indexLine:0,totalLines:0,dates:n,dateDelta:r,columnWidth:i,rowHeight:o,processHeight:a,lineSectionHeight:s,lineHeight:l,barCornerRadius:c,handleWidth:u,barProgressColor:d,barProgressSelectedColor:p,barBackgroundColor:h,barBackgroundSelectedColor:g,barBorderColor:m,borderWidth:b}));const C=(A,z)=>{if(e.id==="11"||e.id==="12"){const R=N=>N==="H"||N==="C"?1:N==="D"?2:3,P=R(A),F=R(z);return P!==F?P-F:A.localeCompare(z)}const O=parseInt(A,10),T=parseInt(z,10);return!isNaN(O)&&!isNaN(T)?O-T:A.localeCompare(z)},x=new Set;e.processes.forEach(A=>{A.processLines.forEach(z=>{x.add(z.eventCode)})});const w=Array.from(x).sort(C),S=w.length;return e.processes.forEach(A=>{A.processLines.forEach(z=>{const O=w.indexOf(z.eventCode),T={processStart:A.start,source:z,type:z.type,start:z.start,end:z.end,id:z.id,name:z.name,processLines:[],progress:100,styles:z.styles},R=VZe({ganttObject:T,index:M++,indexAsset:y.index,indexLine:O,totalLines:S,dates:n,dateDelta:r,columnWidth:i,rowHeight:o,processHeight:a,lineSectionHeight:s,lineHeight:l,barCornerRadius:c,handleWidth:u,barProgressColor:d,barProgressSelectedColor:p,barBackgroundColor:h,barBackgroundSelectedColor:g,barBorderColor:m,borderWidth:b});y.barTasks.push(R)})}),y.barTasks=(y.barTasks||[]).map(A=>{const z=A.dependencies||[];for(let O=0;O<z.length;O++){const T=(y.barTasks||[]).findIndex(R=>R.id===z[O]);T!==-1&&(y.barTasks||[])[T].barChildren.push(A)}return A}),y},VZe=({ganttObject:e,index:t,indexAsset:n,indexLine:r,totalLines:i,dates:o,dateDelta:a,columnWidth:s,rowHeight:l,processHeight:c,lineSectionHeight:u,lineHeight:d,barCornerRadius:p,handleWidth:h,barProgressColor:g,barProgressSelectedColor:m,barBackgroundColor:b,barBackgroundSelectedColor:y,barBorderColor:M,borderWidth:C})=>{let x;switch(e.type){case"taskLine":x=GWi({asset:e,index:t,indexAsset:n,indexLine:r,totalLines:i,dates:o,dateDelta:a,columnWidth:s,rowHeight:l,processHeight:c,lineSectionHeight:u,lineHeight:d,barCornerRadius:p,handleWidth:h,barProgressColor:g,barProgressSelectedColor:m,barBackgroundColor:b,barBackgroundSelectedColor:y,barBorderColor:M,borderWidth:C});break;default:x=VWi(e,t,n,o,a,s,l,c,u,p,h,g,m,b,y,M,C);break}return x},VWi=(e,t,n,r,i,o,a,s,l,c,u,d,p,h,g,m,b)=>{let y,M;y=nK(e.start,r,i,o),M=nK(e.end,r,i,o);let C=e.type;C==="task"&&M-y<u*2&&(C="smalltask",M=y+u*2);const[x,w]=xEt(y,M,e.progress),S=UWi(n,a,s,l),A={backgroundColor:h,backgroundSelectedColor:g,progressColor:d,progressSelectedColor:p,borderColor:m,borderWidth:b,...e.styles};return{...e,typeInternal:C,x1:y,x2:M,y:S,index:t,progressX:w,progressWidth:x,barCornerRadius:c,handleWidth:u,height:s,barChildren:[],styles:A,key:`bar-${t}`}},GWi=({asset:e,index:t,indexAsset:n,indexLine:r,totalLines:i,dates:o,dateDelta:a,columnWidth:s,rowHeight:l,processHeight:c,lineSectionHeight:u,lineHeight:d,barCornerRadius:p,handleWidth:h,barProgressColor:g,barProgressSelectedColor:m,barBackgroundColor:b,barBackgroundSelectedColor:y,barBorderColor:M,borderWidth:C})=>{let x,w;x=nK(e.start,o,a,s),w=nK(e.end,o,a,s);const S=e.start.getTime()===e.end.getTime();let A=e.type;A==="task"&&w-x<h*2&&(A="smalltask",w=x+h*2);const[z,O]=xEt(x,w,e.progress),T=XWi(n,l,c,u,d,r,i),R={backgroundColor:"blue",backgroundSelectedColor:"blue",progressColor:"blue",progressSelectedColor:"blue",borderColor:"blue",borderWidth:C,...e.styles};return{...e,typeInternal:A,x1:x,x2:w,y:T,index:t,progressX:O,progressWidth:z,barCornerRadius:p,handleWidth:h,height:d,barChildren:[],isPointInTime:S,styles:R,key:`line-${t}`}},$Wi=(e,t,n)=>{const r=t[1].getTime()-t[0].getTime()-t[1].getTimezoneOffset()*60*1e3+t[0].getTimezoneOffset()*60*1e3;let i=Math.floor(e/n);i<0&&(i=0),i>=t.length&&(i=t.length-1);const a=(e-i*n)/n*r,s=t[i];return new Date(s.getTime()+a+(s.getTimezoneOffset()-new Date().getTimezoneOffset())*60*1e3)},nK=(e,t,n,r)=>{let i=~~((e.getTime()-t[0].getTime()+e.getTimezoneOffset()-t[0].getTimezoneOffset())/n);return i<0&&(i=0),i>=t.length&&(i=t.length-1),Math.round((i+(e.getTime()-t[i].getTime()-e.getTimezoneOffset()*60*1e3+t[i].getTimezoneOffset()*60*1e3)/n)*r)},UWi=(e,t,n,r)=>e*t+(t-n-r)/2,XWi=(e,t,n,r,i,o,a)=>{const s=e*t+n+(t-n-r)/2;let l=r/a;return a===1?s+i:s+l*o+(l-i)},xEt=(e,t,n)=>{const r=(t-e)*n*.01;let i;return i=e,[r,i]};var wc=(e=>(e.Hour="Hour",e.QuarterDay="Quarter Day",e.HalfDay="Half Day",e.Day="Day",e.Week="Week",e.Month="Month",e))(wc||{});const GZe={},yTe=(e,t={})=>{const n=JSON.stringify([e,t]);let r=GZe[n];return r||(r=new Intl.DateTimeFormat(e,t),GZe[n]=r),r},vu=(e,t,n)=>new Date(e.getFullYear()+(n==="year"?t:0),e.getMonth()+(n==="month"?t:0),e.getDate()+(n==="day"?t:0),e.getHours()+(n==="hour"?t:0),e.getMinutes()+(n==="minute"?t:0),e.getSeconds()+(n==="second"?t:0),e.getMilliseconds()+(n==="millisecond"?t:0)),jh=(e,t)=>{const n=["millisecond","second","minute","hour","day","month","year"],r=o=>{const a=n.indexOf(t);return n.indexOf(o)<=a};return new Date(e.getFullYear(),r("year")?0:e.getMonth(),r("month")?1:e.getDate(),r("day")?0:e.getHours(),r("hour")?0:e.getMinutes(),r("minute")?0:e.getSeconds(),r("second")?0:e.getMilliseconds())},$Ze=(e,t)=>{let n=e.length===0?new Date:e[0].start,r=e.length===0?new Date:e[0].start;for(const i of e)i.start<n&&(n=i.start),i.end>r&&(r=i.end);switch(t){case wc.Month:n=vu(n,-1,"month"),n=jh(n,"month"),r=vu(r,1,"year"),r=jh(r,"year");break;case wc.Week:n=jh(n,"day"),r=jh(r,"day"),n=vu(YWi(n),-7,"day"),r=vu(r,1.5,"month");break;case wc.Day:n=jh(n,"day"),r=jh(r,"day"),n=vu(n,-1,"day"),r=vu(r,19,"day");break;case wc.QuarterDay:n=jh(n,"day"),r=jh(r,"day"),n=vu(n,-1,"day"),r=vu(r,66,"hour");break;case wc.HalfDay:n=jh(n,"day"),r=jh(r,"day"),n=vu(n,-1,"day"),r=vu(r,108,"hour");break;case wc.Hour:n=jh(n,"hour"),r=jh(r,"day"),n=vu(n,-1,"hour"),r=vu(r,1,"day");break}return[n,r]},UZe=(e,t,n)=>{let r=new Date(e);t=new Date(t);const i=[r];for(;r<t;){switch(n){case wc.Month:r=vu(r,1,"month");break;case wc.Week:r=vu(r,7,"day");break;case wc.Day:r=vu(r,1,"day");break;case wc.HalfDay:r=vu(r,12,"hour");break;case wc.QuarterDay:r=vu(r,6,"hour");break;case wc.Hour:r=vu(r,1,"hour");break}i.push(r)}return i},F5=(e,t)=>{let n=yTe(t,{month:"long"}).format(e);return n=n.replace(n[0],n[0].toLocaleUpperCase()),n},Bpe=(e,t,n)=>{let r=yTe(t,{weekday:n}).format(e);return r=r.replace(r[0],r[0].toLocaleUpperCase()),r},YWi=e=>{const t=e.getDay(),n=e.getDate()-t+(t===0?-6:1);return new Date(e.setDate(n))},KWi=e=>{const t=new Date(e.valueOf()),n=(t.getDay()+6)%7;t.setDate(t.getDate()-n+3);const r=t.valueOf();t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7);const i=(1+Math.ceil((r-t.valueOf())/6048e5)).toString();return i.length===1?`0${i}`:i},QWi=(e,t)=>new Date(t,e+1,0).getDate(),ZWi=(e,t)=>{const n=e.displayOrder||Number.MAX_VALUE,r=t.displayOrder||Number.MAX_VALUE;return n>r?1:n<r?-1:0},XZe=e=>{const t=[];return e.forEach(n=>{n.processes.forEach(r=>{t.push(r)})}),t},JWi=e=>{const t=[];return e.forEach(n=>{n.barTasks.forEach(r=>{t.push(r)})}),t},eqi=({headerHeight:e,fontFamily:t,fontSize:n,rowWidth:r,rowHeight:i,scrollY:o,assets:a,selectedAsset:s,setSelectedAsset:l,locale:c,ganttHeight:u,assetListRef:d,horizontalContainerClass:p,AssetListHeader:h,AssetListTable:g})=>{const m=v.useRef(null);v.useEffect(()=>{m.current&&(m.current.scrollTop=o)},[o]);const b={headerHeight:e,fontFamily:t,fontSize:n,rowWidth:r},y=s?s.id:"",M={rowHeight:i,rowWidth:r,fontFamily:t,fontSize:n,assets:a,locale:c,selectedAssetId:y,setSelectedAsset:l},C="0 0 "+M.rowWidth+" "+b.headerHeight,x="0 0 "+M.rowWidth+" "+M.assets.length*M.rowHeight;return f.jsxs("div",{ref:d,style:{width:M.rowWidth},children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fontFamily:M.fontFamily,viewBox:C,children:f.jsx(h,{...b})}),f.jsx("div",{ref:m,className:p,style:u?{height:u,width:"100%"}:{width:"100%"},children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fontFamily:M.fontFamily,viewBox:x,children:f.jsx(g,{...M})})})]})},tqi="_headerLabel_1rf99_1",nqi="_header_1rf99_1",YZe={headerLabel:tqi,header:nqi},rqi=({headerHeight:e,fontFamily:t,fontSize:n,rowWidth:r})=>{const a=()=>0+r*.5;return f.jsx("g",{children:f.jsxs("g",{children:[f.jsx("rect",{x:0,width:r,y:0,height:e,className:YZe.header}),f.jsx("text",{x:a(),y:0+e*.5,className:YZe.headerLabel,style:{fontFamily:t,fontSize:n}})]})})},iqi="_graphicWrapper_lop7e_1",oqi="_graphicRow_lop7e_6",aqi="_graphicRowAlt_lop7e_9",sqi="_graphicCell_lop7e_12",lqi="_graphicLabel_lop7e_15",W5={graphicWrapper:iqi,graphicRow:oqi,graphicRowAlt:aqi,graphicCell:sqi,graphicLabel:lqi},cqi=({rowHeight:e,rowWidth:t,fontFamily:n,fontSize:r,assets:i})=>f.jsxs("g",{children:[f.jsx("rect",{x:0,y:0,width:t,height:e*i.length,className:W5.graphicWrapper}),i.map((s,l)=>f.jsxs("g",{children:[f.jsx("rect",{x:0,y:l*e,width:t,height:e,className:l%2===0?W5.graphicRow:W5.graphicRowAlt},`${s.id}row`),f.jsx("rect",{x:0+.1*t,y:l*e+.1*e,width:t*(1-.1*2),height:e*(1-.1*2),className:W5.graphicCell,style:{fill:s.color}},`${s.id}cell`),f.jsx("text",{x:0+t*.5,y:l*e+e*.5,className:W5.graphicLabel,style:{fontFamily:n,fontSize:20,fill:"black"},children:s.name},`${s.id}text`)]},`${s.id}g`))]}),uqi=()=>{const[e,t]=v.useState({x:0,y:0});return v.useEffect(()=>{let n;const r=i=>{n&&clearTimeout(n),n=setTimeout(()=>{t({x:i.clientX,y:i.clientY})},300)};return window.addEventListener("mousemove",r),()=>{window.removeEventListener("mousemove",r),n&&clearTimeout(n)}},[]),e},dqi="_tooltipDefaultContainer_fyry5_1",pqi="_tooltipDefaultContainerParagraph_fyry5_7",hqi="_tooltipDetailsContainer_fyry5_13",fqi="_tooltipDetailsContainerHidden_fyry5_25",rK={tooltipDefaultContainer:dqi,tooltipDefaultContainerParagraph:pqi,tooltipDetailsContainer:hqi,tooltipDetailsContainerHidden:fqi},gqi=({task:e,rowHeight:t,svgContainerHeight:n,svgContainerWidth:r,arrowIndent:i,fontSize:o,fontFamily:a,headerHeight:s,taskListWidth:l,TooltipContent:c})=>{const u=v.useRef(null),[d,p]=v.useState(0),[h,g]=v.useState(0),m=uqi();return v.useEffect(()=>{if(u.current){const b=u.current.offsetHeight*1.1,y=u.current.offsetWidth*1.1;let M=m.x,C=m.y;const x=M+y,w=C+b,S=l+r,A=n;x>S&&(M=S-y),w>A&&(C=A-b),g(M),p(C)}},[m,u.current]),f.jsx(f.Fragment,{children:f.jsx("div",{ref:u,className:h?rK.tooltipDetailsContainer:rK.tooltipDetailsContainerHidden,style:{left:m.x,top:m.y,position:"fixed",opacity:m.x&&m.y?1:0},children:f.jsx(c,{task:e,fontSize:o,fontFamily:a})})})},mqi=({task:e,fontSize:t,fontFamily:n})=>{const r={fontSize:t,fontFamily:n};return f.jsx("div",{className:rK.tooltipDefaultContainer,style:r,children:e.type==="taskLine"?f.jsx(f.Fragment,{children:e.source.comments}):f.jsxs(f.Fragment,{children:[f.jsx("p",{children:e.name?f.jsxs("b",{style:{fontSize:parseInt(t)+6},children:[`Heat: ${e.name}`," "]}):null}),f.jsxs("p",{children:[f.jsx("b",{children:"Grade: "}),e.source.GradeName]}),f.jsxs("p",{children:[f.jsx("b",{children:"Ladle: "})," ",e.source.LadleName]}),f.jsx("p",{children:e.source.Comments}),f.jsx("p",{className:rK.tooltipDefaultContainerParagraph,children:`From: ${Wn(e.start,"MM/dd HH:mm")} to: ${Wn(e.end,"MM/dd HH:mm")}`})]})})},vqi="_calendarBottomText_16n01_1",bqi="_calendarTopTick_16n01_12",yqi="_calendarTopText_16n01_16",Mqi="_calendarHeader_16n01_27",GC={calendarBottomText:vqi,calendarTopTick:bqi,calendarTopText:yqi,calendarHeader:Mqi},q5=({value:e,x1Line:t,y1Line:n,y2Line:r,xText:i,yText:o})=>f.jsxs("g",{className:"calendarTop",children:[f.jsx("line",{x1:t,y1:n,x2:t,y2:r,className:GC.calendarTopTick},e+"line"),f.jsx("text",{filter:"url(#solid)",y:o,x:i,className:GC.calendarTopText,style:{fontWeight:"normal"},children:e},e+"text")]}),Cqi=({dateSetup:e,locale:t,viewMode:n,headerHeight:r,columnWidth:i,fontFamily:o,fontSize:a})=>{const s=()=>{const g=[],m=[],b=r*.5;for(let y=0;y<e.dates.length;y++){const M=e.dates[y],C=F5(M,t);if(m.push(f.jsx("text",{y:r*.8,x:i*y+i*.5,className:GC.calendarBottomText,children:C},C+M.getFullYear())),y===0||M.getFullYear()!==e.dates[y-1].getFullYear()){const x=M.getFullYear().toString();let w;w=(6+y-M.getMonth())*i,g.push(f.jsx(q5,{value:x,x1Line:i*y,y1Line:0,y2Line:b,xText:w,yText:b*.9},x))}}return[g,m]},l=()=>{const g=[],m=[];let b=1;const y=r*.5,M=e.dates;for(let C=M.length-1;C>=0;C--){const x=M[C];let w="";(C===0||x.getMonth()!==M[C-1].getMonth())&&(w=`${F5(x,t)}, ${x.getFullYear()}`);const S=`W${KWi(x)}`;m.push(f.jsx("text",{y:r*.8,x:i*C,className:GC.calendarBottomText,children:S},x.getTime())),w&&(C!==M.length-1&&g.push(f.jsx(q5,{value:w,x1Line:i*C+b*i,y1Line:0,y2Line:y,xText:i*C+i*b*.5,yText:y*.9},w)),b=0),b++}return[g,m]},c=()=>{const g=[],m=[],b=r*.5,y=e.dates;for(let M=0;M<y.length;M++){const C=y[M],x=`${Bpe(C,t,"short")}, ${C.getDate().toString()}`;if(m.push(f.jsx("text",{y:r*.8,x:i*M+i*.5,className:GC.calendarBottomText,children:x},C.getTime())),M+1!==y.length&&C.getMonth()!==y[M+1].getMonth()){const w=F5(C,t);g.push(f.jsx(q5,{value:w,x1Line:i*(M+1),y1Line:0,y2Line:b,xText:i*(M+1)-QWi(C.getMonth(),C.getFullYear())*i*.5,yText:b*.9},w+C.getFullYear()))}}return[g,m]},u=()=>{const g=[],m=[],b=n===wc.HalfDay?2:4,y=r*.5,M=e.dates;for(let C=0;C<M.length;C++){const x=M[C],w=yTe(t,{hour:"numeric"}).format(x);if(m.push(f.jsx("text",{y:r*.8,x:i*C,className:GC.calendarBottomText,fontFamily:o,children:w},x.getTime())),C===0||x.getDate()!==M[C-1].getDate()){const S=`${Bpe(x,t,"short")}, ${x.getDate()} ${F5(x,t)}`;g.push(f.jsx(q5,{value:S,x1Line:i*C+b*i,y1Line:0,y2Line:y,xText:i*C+b*i*.5,yText:y*.9},S+x.getFullYear()))}}return[g,m]},d=()=>{const g=[],m=[],b=r*.3,y=e.dates;for(let M=0;M<y.length;M++){const C=y[M],x=Wn(C,"HH:mm");if(m.push(f.jsx("text",{y:r*.8,x:i*M+(M===0?20:0),className:GC.calendarBottomText,fontFamily:o,children:x},C.getTime())),M===0||Wn(C,"dd")!==Wn(y[M-1],"dd")){const w=`${Bpe(C,t,"long")}, ${C.getDate()} ${F5(C,t)}`;g.push(f.jsx(q5,{value:w,x1Line:i*M,y1Line:0,y2Line:b,xText:i*M,yText:b*.9},w+C.getFullYear()))}}return[g,m]};let p=[],h=[];switch(e.viewMode){case wc.Month:[p,h]=s();break;case wc.Week:[p,h]=l();break;case wc.Day:[p,h]=c();break;case wc.QuarterDay:case wc.HalfDay:[p,h]=u();break;case wc.Hour:[p,h]=d()}return f.jsxs("g",{className:"calendar",fontSize:a,fontFamily:o,children:[f.jsx("rect",{x:0,y:0,width:i*e.dates.length,height:r,className:GC.calendarHeader}),h,p]})},xqi="_gridRow_2ody0_1",wqi="_gridRowLine_2ody0_9",Sqi="_gridTick_2ody0_13",GG={gridRow:xqi,gridRowLine:wqi,gridTick:Sqi},Aqi=({assets:e,dates:t,rowHeight:n,svgWidth:r,columnWidth:i,todayColor:o})=>{let a=0;const s=[],l=[f.jsx("line",{x:"0",y1:0,x2:r,y2:0,className:GG.gridRowLine},"RowLineFirst")];for(const h of e)s.push(f.jsx("rect",{"data-asset-id":h.id,x:"0",y:a,width:r,height:n,className:GG.gridRow},"Row"+h.id)),l.push(f.jsx("line",{x:"0",y1:a+n,x2:r,y2:a+n,className:GG.gridRowLine},"RowLine"+h.id)),a+=n;const c=new Date;let u=0;const d=[];let p=f.jsx("rect",{});for(let h=0;h<t.length;h++){const g=t[h];d.push(f.jsx("line",{x1:u,y1:0,x2:u,y2:a,className:GG.gridTick},g.getTime())),(h+1!==t.length&&g.getTime()<c.getTime()&&t[h+1].getTime()>=c.getTime()||h!==0&&h+1===t.length&&g.getTime()<c.getTime()&&vu(g,g.getTime()-t[h-1].getTime(),"millisecond").getTime()>=c.getTime())&&(p=f.jsx("rect",{x:u,y:0,width:i,height:a,fill:o})),u+=i}return f.jsxs("g",{className:"gridBody",children:[f.jsx("g",{className:"rows",children:s}),f.jsx("g",{className:"rowLines",children:l}),f.jsx("g",{className:"ticks",children:d}),f.jsx("g",{className:"today",children:p})]})},Oqi=e=>f.jsx("g",{className:"grid",children:f.jsx(Aqi,{...e})}),zqi="_barLabel_1259p_1",Tqi="_barSubLabel_1259p_13",Eqi="_barSubLabelRight_1259p_25",Rqi="_barLabelOutside_1259p_30",MC={barLabel:zqi,barSubLabel:Tqi,barSubLabelRight:Eqi,barLabelOutside:Rqi},Iqi="_barWrapper_1m218_1",Pqi="_barBackground_1m218_18",Nte={barWrapper:Iqi,barBackground:Pqi},wEt=({id:e,x:t,y:n,width:r,height:i,isSelected:o,progressX:a,progressWidth:s,barCornerRadius:l,styles:c,isHighlighted:u})=>{const d=()=>u?"#FFD54F":o?c.progressSelectedColor:c.progressColor,p=()=>o?c.backgroundSelectedColor:c.backgroundColor;return f.jsxs("g",{children:[f.jsx("rect",{"data-id":`id-${e}-background`,x:t,width:r,y:n,height:i,ry:l,rx:l,fill:p(),className:Nte.barBackground,stroke:c.borderColor}),f.jsx("rect",{"data-id":e+"-progress",x:a,width:s,y:n,height:i,ry:l,rx:l,fill:d(),stroke:c.borderColor,strokeWidth:c.borderWidth})]})},Dqi=({id:e,x:t,y:n,height:r,isSelected:i,styles:o})=>{const a=Math.min(r/1,6),s=n+r/2,l=()=>i?o.backgroundSelectedColor:o.backgroundColor;return f.jsx("g",{children:f.jsx("circle",{"data-id":`id-${e}-point`,cx:t,cy:s,r:a,fill:l(),className:Nte.barBackground,stroke:o.borderColor,strokeWidth:Math.max(o.borderWidth,1)})})},kqi=({asset:e,onEventStart:t,isSelected:n,processLinesRef:r,isHighlighted:i})=>{const o=e.type=="taskLine"&&e.source.eventCode!=="D",a=o?0:e.barCornerRadius,s=o?9:e.height,l=o?e.y+e.height-11:e.y,c=e.isPointInTime===!0;return f.jsxs("g",{className:Nte.barWrapper,tabIndex:0,children:[Bl.createPortal(f.jsx(f.Fragment,{children:e.drawLine?f.jsx("line",{x1:0,y1:e.y+e.height/2,x2:"100%",y2:e.y+e.height/2,stroke:"black",strokeOpacity:"1",strokeWidth:"0.4",pointerEvents:"none"}):null}),r.current||document.body),c?f.jsx(Dqi,{id:`${e.name}-${e.id}`,x:e.x1,y:l,height:s,styles:e.styles,isSelected:n}):f.jsx(wEt,{id:`${e.name}-${e.id}`,x:e.x1,y:l,width:e.x2-e.x1,height:s,progressX:e.progressX,progressWidth:e.progressWidth,barCornerRadius:a,styles:e.styles,isSelected:n,isHighlighted:e.type==="task"&&i}),f.jsx("g",{className:"handleGroup"})]})},Lqi=({asset:e,onEventStart:t,isSelected:n})=>f.jsxs("g",{className:Nte.barWrapper,tabIndex:0,children:[f.jsx(wEt,{id:`bar-${e.id}`,x:e.x1,y:e.y,width:e.x2-e.x1,height:e.height,progressX:e.progressX,progressWidth:e.progressWidth,barCornerRadius:e.barCornerRadius,styles:e.styles,isSelected:n}),f.jsx("g",{className:"handleGroup"})]}),_qi=e=>{const{asset:t,arrowIndent:n,assetHeight:r,isSelected:i,onEventStart:o,svgWidth:a,isHighlighted:s}={...e},l=v.useRef(null),[c,u]=v.useState(f.jsx("div",{})),[d,p]=v.useState(!0);let h=t.x1<0?0:t.x1,m=(t.x2>a?a:t.x2)-h>50;v.useEffect(()=>{switch(t.typeInternal){case"smalltask":u(f.jsx(Lqi,{...e}));break;default:u(f.jsx(kqi,{...e,isHighlighted:s}));break}},[t,i,s]),v.useEffect(()=>{l.current&&p(l.current.getBBox().width<t.x2-t.x1)},[l,t]);const b=()=>{if(t.x1<0)return t.x2<a?t.x2/2:a/2;if(t.x2>a)return t.x1>0?t.x1+(a-t.x1)/2:a/2;const x=t.x2-t.x1,w=t.barChildren.length>0;return d?t.x1+x*.5:t.x1+x+n*+w+n*.2},y=.2,M=.05,C=x=>{let w=t.x1,S=t.x2;return t.x1<0&&(w=0,t.x2<a?S=t.x2:S=a),t.x2>a&&(S=a,t.x1>0?w=t.x1:w=0),x?w+(S-w)*M:w+(S-w)*(1-M)};return f.jsxs("g",{onMouseEnter:x=>{o("mouseenter",t,x)},onMouseLeave:x=>{o("mouseleave",t,x)},onDoubleClick:x=>{o("dblclick",t,x)},onFocus:()=>{o("select",t)},onContextMenu:x=>{o("contextMenu",t,x)},children:[c,f.jsx("text",{x:b(),y:t.y+r*.5,className:d?MC.barLabel:MC.barLabelOutside,ref:l,children:t.name}),m?f.jsxs(f.Fragment,{children:[f.jsx("text",{x:C(!0),y:t.y+r*y,className:MC.barSubLabel,ref:l,children:t.textLeftTop}),f.jsx("text",{x:C(!1),y:t.y+r*y,className:[MC.barSubLabel,MC.barSubLabelRight].join(" "),ref:l,children:t.textRightTop}),f.jsx("text",{x:C(!0),y:t.y+r*(1-y),className:MC.barSubLabel,ref:l,children:t.textLeftBottom}),f.jsx("text",{x:C(!1),y:t.y+r*(1-y),className:[MC.barSubLabel,MC.barSubLabelRight].join(" "),ref:l,children:t.textRightBottom})]}):""]})},Nqi=({assets:e,selectedAsset:t,ganttEvent:n,rowHeight:r,taskHeight:i,arrowColor:o,showArrowTriangle:a,svgWidth:s,arrowIndent:l,fontFamily:c,fontSize:u,setGanttEvent:d,setSelectedAsset:p,onDoubleClick:h,onContextMenu:g})=>{const m=v.useRef(null),b=v.useRef({}),[y,M]=v.useState(null),C=async(x,w,S)=>{S?x==="mouseenter"?(M(w.name),d({action:x,changedAsset:w,originalSelectedTask:w})):x==="mouseleave"?(M(null),d({action:""})):x==="dblclick"?h&&h(w):x==="contextMenu"?g&&g(S,w.source):d({action:x,changedAsset:w,originalSelectedTask:w}):x==="select"&&p(w.id)};return f.jsx("g",{className:"content",children:f.jsxs("g",{className:"bar",fontFamily:c,fontSize:u,children:[f.jsx("g",{ref:m,id:"processLines"}),e.map(x=>(b.current[x.id]={},x.barTasks.map(w=>{const S=y===w.name;return!b.current[x.id][w.source.eventCode]&&w.type==="taskLine"&&(b.current[x.id][w.source.eventCode]=!0,w={...w,drawLine:!0}),f.jsx(_qi,{asset:w,arrowIndent:l,assetHeight:i,onEventStart:C,isSelected:!1,isHighlighted:S,processLinesRef:m,svgWidth:s},w.key)})))]})})},Fqi="_ganttVerticalContainer_1g9l0_1",Wqi="_horizontalContainer_1g9l0_8",qqi="_wrapper_1g9l0_14",iK={ganttVerticalContainer:Fqi,horizontalContainer:Wqi,wrapper:qqi},Bqi=({gridProps:e,calendarProps:t,barProps:n,ganttHeight:r,scrollX:i,scrollY:o})=>{const a=v.useRef(null),s=v.useRef(null),l=v.useRef(null),c={...n,svg:a},u=h=>{let g=h.target;for(;g;){if(g.hasAttribute("data-asset-id"))return g.getAttribute("data-asset-id");g=g.parentElement}return null},d="0 0 "+e.svgWidth+" "+t.headerHeight,p="0 0 "+e.svgWidth+" "+n.rowHeight*n.assets.length;return v.useEffect(()=>{s.current&&(s.current.scrollTop=o)},[o]),v.useEffect(()=>{l.current&&(l.current.scrollLeft=i)},[i]),f.jsxs("div",{className:iK.ganttVerticalContainer,ref:l,style:{width:e.svgWidth},dir:"ltr",onContextMenu:h=>{h.preventDefault();const g=u(h),b=a.current?.getScreenCTM(),M=new DOMPoint(h.clientX,h.clientY).matrixTransform(b?.inverse());if(g){const C=n.assets.find(x=>x.id===g);n.onContextMenu&&n.onContextMenu(h,{type:"asset",asset:C,timestamp:$Wi(M.x,t.dateSetup.dates,t.columnWidth)})}},children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fontFamily:n.fontFamily,viewBox:d,children:f.jsx(Cqi,{...t})}),f.jsx("div",{ref:s,className:iK.horizontalContainer,style:r?{height:r,width:"100%"}:{width:"100%"},children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fontFamily:n.fontFamily,viewBox:p,ref:a,children:[f.jsx(Oqi,{...e}),f.jsx(Nqi,{...c})]})})]})},jqi=({rowHeight:e,columnWidth:t,svgWidth:n,setScrollX:r,setScrollY:i,ganttFullHeight:o,ganttHeight:a,setIgnoreScrollEvent:s})=>({handleKeyDown:c=>{c.preventDefault();let u=scrollY,d=scrollX,p=!0;switch(c.key){case"Down":case"ArrowDown":u+=e,p=!1;break;case"Up":case"ArrowUp":u-=e,p=!1;break;case"Left":case"ArrowLeft":d-=t;break;case"Right":case"ArrowRight":d+=t;break}p?(d<0?d=0:d>n&&(d=n),r(d)):(u<0?u=0:u>o-a&&(u=o-a),i(u)),s(!0)}}),Hqi=({wrapperRef:e,scrollX:t,setScrollX:n,scrollY:r,setScrollY:i,ganttHeight:o,ganttFullHeight:a,svgWidth:s,setIgnoreScrollEvent:l})=>(v.useEffect(()=>{const c=u=>{if(u.shiftKey||u.deltaX){const d=u.deltaX?u.deltaX:u.deltaY;let p=t+d;p<0?p=0:p>s&&(p=s),n(p),u.preventDefault()}else if(o){let d=r+u.deltaY;d<0?d=0:d>a-o&&(d=a-o),d!==r&&(i(d),u.preventDefault())}l(!0)};return e.current&&e.current.addEventListener("wheel",c,{passive:!1}),()=>{e.current&&e.current.removeEventListener("wheel",c)}},[e.current,r,t,o,s]),{scrollX:t,ganttHeight:o,scrollY:r,ganttFullHeight:a,svgWidth:s}),Vqi=({assets:e,headerHeight:t=50,columnWidth:n=100,showAssetList:r=!0,assetCellWidth:i=160,rowHeight:o=50,ganttHeight:a=0,viewMode:s=wc.Hour,startCalendarDate:l,endCalendarDate:c,locale:u="en-US",barFill:d=50,barCornerRadius:p=3,barProgressColor:h="#FF8080",barProgressSelectedColor:g="#FF8080",barBackgroundColor:m="#FF8080",barBackgroundSelectedColor:b="#FF8080",barBorderColor:y="#802020",borderWidth:M=1,lineSectionFill:C=30,lineFill:x=30,handleWidth:w=8,arrowColor:S="grey",showArrowTriangle:A=!0,fontFamily:z="Arial, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue",fontSize:O="14px",arrowIndent:T=20,todayColor:R="rgba(252, 248, 227, 0.5)",TooltipContent:P=mqi,AssetListHeader:F=rqi,AssetListTable:N=cqi,onDoubleClick:L,onSelect:W,onContextMenu:j})=>{const V=v.useRef(null),G=v.useRef(null),[q,$]=v.useState(()=>{const ve=XZe(e),[De,ze]=$Ze(ve,s);return{viewMode:s,dates:UZe(De,ze,s)}}),[U,X]=v.useState(0),[Q,re]=v.useState(a),[ee,se]=v.useState(0),[pe,te]=v.useState([]),[ce,oe]=v.useState({action:""}),ae=v.useMemo(()=>o*d/150,[o,d]),ne=v.useMemo(()=>o*C/80,[o,C]),le=v.useMemo(()=>o*C*x/2e4,[o,C,x]),[he,be]=v.useState(),me=q.dates.length*n,Me=pe.length*o,[Oe,de]=v.useState(0),[ie,ue]=v.useState(-1),[Ae,Ce]=v.useState(!1);v.useEffect(()=>{let ve,De;if(l!==void 0&&c!==void 0&&c>l)[ve,De]=[l,c];else{const Ke=XZe(e);let et;et=Ke,et=et.sort(ZWi),[ve,De]=$Ze(et,s)}let ze=UZe(ve,De,s);$({dates:ze,viewMode:s});const Ve=jWi(e,ze,n,o,ae,ne,le,p,w,h,g,m,b,y,M);te(Ve)},[e,s,o,p,n,ae,w,h,g,m,b,y,M,ie]),v.useEffect(()=>{r&&se(0),G.current&&se(G.current.offsetWidth)},[G,i,r]),v.useEffect(()=>{re(a?a+t:e.length*o+t)},[a,e]),Hqi({wrapperRef:V,scrollX:ie,setScrollX:ue,scrollY:Oe,setScrollY:de,ganttHeight:a,ganttFullHeight:Me,svgWidth:me,setIgnoreScrollEvent:Ce});const{handleKeyDown:Ee}=jqi({rowHeight:o,columnWidth:n,svgWidth:me,setScrollX:ue,setScrollY:de,ganttFullHeight:Me,ganttHeight:a,setIgnoreScrollEvent:Ce}),Ge=ve=>{const De=JWi(pe),ze=De.find(Ke=>Ke.id===ve),Ve=De.find(Ke=>!!he&&Ke.id===he.id);W&&(Ve&&W(Ve,!1),ze&&W(ze,!0)),be(ze)},_e={columnWidth:n,svgWidth:me,assets:e,rowHeight:o,dates:q.dates,todayColor:R},Ie={dateSetup:q,locale:u,viewMode:s,headerHeight:t,columnWidth:n,fontFamily:z,fontSize:O},Le={assets:pe,ganttEvent:ce,selectedAsset:he,rowHeight:o,taskHeight:ae,arrowColor:S,showArrowTriangle:A,fontFamily:z,fontSize:O,arrowIndent:T,svgWidth:me,setSelectedAsset:Ge,onDoubleClick:L,setGanttEvent:oe,onContextMenu:j},we={rowHeight:o,rowWidth:i,fontFamily:z,fontSize:O,assets:pe,locale:u,headerHeight:t,scrollY:Oe,ganttHeight:a,horizontalContainerClass:iK.horizontalContainer,selectedAsset:he,assetListRef:G,setSelectedAsset:Ge,AssetListHeader:F,AssetListTable:N};return f.jsx("div",{children:f.jsxs("div",{className:iK.wrapper,onKeyDown:Ee,tabIndex:0,ref:V,children:[r&&f.jsx(eqi,{...we}),f.jsx(Bqi,{gridProps:_e,calendarProps:Ie,barProps:Le,ganttHeight:a,scrollX:ie,scrollY:Oe}),ce.changedAsset&&f.jsx(gqi,{arrowIndent:T,rowHeight:o,svgContainerHeight:Q,svgContainerWidth:U,fontFamily:z,fontSize:O,task:ce.changedAsset,headerHeight:t,taskListWidth:ee,TooltipContent:P,svgWidth:me})]})})},jpe=Sn(),Gqi=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(!1),[p,h]=v.useState(!1),[g,m]=v.useState(""),[b,y]=v.useState(""),[M,C]=v.useState(""),{state:{selectedAsset:x},actions:{setSelectedProcess:w}}=mT(),{shiftInfo:S}=na(),A=Oo(),z=v.useCallback(q=>{w({ProcessId:0,AssetId:Number(q),ProcessCode:"",AssetName:"",Start:S?.CurrentProductionDate??new Date,End:S?.CurrentProductionDate??new Date,HeatName:null,LadleName:null,GradeName:null,Comments:null}),t(!0)},[S?.CurrentProductionDate,w]),O=q=>{w(q),t(!0)},T=q=>{q.HeatName?y(`The process is already linked to a heat ${q.HeatName}.  If you proceed you will unlink it from this heat in order to link it to another heat.`):r(!0),w(q)},R=q=>{d(!0)},P=q=>{h(!0)},F=q=>{w(q);const $=jpe(q.Start).format("YYYY/MM/DD HH:mm");C(`The heat ${q.HeatName} from ${$} will be unlinked.  Do you want to continue?`),o(!0)},N=q=>{w(q),q.HeatName?m(` The Process starting at ${jpe(q.Start).format("YYYY/MM/DD HH:mm")} associated with heat ${q.HeatName} will be deleted. Do you want to continue?`):m(` The Process starting at ${jpe(q.Start).format("YYYY/MM/DD HH:mm")} and not assigned to any heat will be deleted. Do you want to continue?`),s(!0)},L=q=>{q&&A(`/meltshop-heats/${S?.CurrentShiftId}?heatId=${q}`)},W=q=>{q.ProcessId!==null&&(q.ProcessCode==="C"&&A(`/caster-data-entry/${q.ProcessId}`),q.ProcessCode==="E"&&A(`/eaf-data-entry/${q.ProcessId}`))},j=async q=>{const $=await p_i(q.DelayId);if($.ok){const U=$.data.tables[0].rows[0],X=U.AssetId&&U.AssetId===13?"caster":"eaf";A(`/${X}-delays-manager/${U.ShiftId}?delayId=${U.DelayId}`)}};return{createData:z,editData:O,linkData:T,unlinkData:F,getGanttMenuOptions:q=>{let $=[];return q.ProcessId&&$.push({name:"See in Data Entry",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>W(q),icon:f.jsx(dM,{})}),q.HeatId&&($=$.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>L(q.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),q.HeatName&&($=$.concat([{name:"Unlink Process",key:"unlink",onClick:()=>F(q),icon:f.jsx(dT,{})}])),q.ProcessId&&($=$.concat([{name:"Link Process",key:"link",onClick:()=>T(q),icon:f.jsx(uT,{})}])),q.ProcessId?$.push({name:"Edit Process",key:"toggle_status",onClick:()=>O(q),icon:f.jsx(Fo,{})},{name:"Delete Process",key:"toggle_status",onClick:()=>N(q),icon:f.jsx(Mo,{})}):$.push({name:"New Process",key:"toggle_status",onClick:()=>z(Number(x?.id)),icon:f.jsx(Fo,{})}),$},getGanttDelaysMenuOptions:q=>{let $=[];return $.push({name:"Justify Delay",key:"justify_delay",onClick:()=>R(),icon:f.jsx(GMe,{})}),$.push({name:"Split Delay",key:"split_delay",onClick:()=>P(),icon:f.jsx(Zat,{})}),$.push({name:"See in Manager",key:"delays_manager",onClick:()=>j(q),icon:f.jsx(dM,{}),disabled:!q.DelayId}),$},goToHeats:L,goToDataEntry:W,showActiveModal:l,showDeleteModal:a,showEditModal:e,showLinkModal:n,showUnlinkModal:i,showJustifyModal:u,showSplitModal:p,messageLinkConfirmation:b,messageDeleteModal:g,messageUnlinkModal:M,setShowActiveModal:c,setShowDeleteModal:s,setShowEditModal:t,setShowLinkModal:r,setShowUnlinkModal:o,setShowJustifyModal:d,setShowSplitModal:h,setMessageLinkConfirmation:y,setMessageDeleteModal:m,setMessageUnlinkModal:C}},$qi=Sn(),Uqi=({show:e,onHide:t,process:n})=>{const[r,i]=v.useState(!1),[o,a]=v.useState([]),[s,l]=v.useState(null),[c,u]=v.useState(""),[d,p]=v.useState(""),[h,g]=v.useState(!1),m=n?.ProcessCode==="C",b=`Link ${m?"Caster":"EAF"} Process`,y=async()=>{try{i(!0);const z=await(m?R3e:eTe)(n?.ProcessId,s.HeatId);z.ok?t(!0):p(z.message)}catch(A){p(A.message)}finally{i(!1),g(!1)}},M=async()=>{if(s===null){p("Please select a heat");return}n&&(s.IsLinked===1?g(!0):await y())},C=async()=>{if(!n)return;const z=await(m?aY:(O,T,R)=>sD(O,T,R))(c,n.Start,n.AssetId);z.ok&&z.data?.tables?.[0]?.rows&&a(z.data.tables[0].rows)},x=(A,z)=>{u(z)},w=async A=>{A.key==="Enter"&&(A.preventDefault(),await C())},S=(A,z)=>{l(z)};return v.useEffect(()=>{e&&(i(!1),(async()=>{if(l(null),n==null)return;const z=await(m?aY:(O,T,R)=>sD(O,T,R))("",n.Start,n.AssetId);z.ok&&z.data&&z.data.tables&&z.data.tables[0].rows&&a(z.data.tables[0].rows)})())},[e,n]),f.jsxs(f.Fragment,{children:[f.jsxs(We,{maxWidth:"xl",open:e,handleClose:()=>{t(!0)},id:"linkCasterProcess",title:b,children:[f.jsx(We.Content,{style:{padding:"15px 30px",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsxs(vt,{children:[f.jsx("strong",{children:m?" Ladle Open":"Start"}),":"," ",$qi(n?.Start).format("YYYY/MM/DD HH:mm")]}),f.jsx(vt,{children:n&&n.HeatName?"Heat: "+n?.HeatName:" "})]}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ki,{options:o,getOptionLabel:A=>A.HeatName,value:s,onChange:S,inputValue:c,onInputChange:x,renderOption:A=>f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("span",{children:A.HeatName}),A.IsLinked===1&&f.jsx("span",{style:{color:"red",marginLeft:"10px"},children:"(linked)"})]}),renderInput:A=>f.jsx(je,{...A,label:c?"Heat":"Search Heat",placeholder:"Search Heat",variant:"outlined",fullWidth:!0,onKeyDown:w,InputLabelProps:{style:{height:"auto",marginTop:5,display:"flex",alignItems:"center"}}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(ka,{fullWidth:!0,isLoading:r,disabled:r,variant:"contained",color:"primary",onClick:M,children:"Save"})})]})})]}),f.jsxs(We,{open:h,handleClose:()=>g(!1),title:"Warning",id:"warningModal",children:[f.jsx(We.Content,{children:f.jsx("p",{children:"This heat is already linked in another process. Do you want to proceed?"})}),f.jsxs(We.Actions,{children:[f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>g(!1),children:"Cancel"}),f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",onClick:y,children:"Proceed"})]})]}),f.jsx(yt,{error:d,onHide:()=>p("")})]})},Xqi=({allDelayCodes:e})=>{const[t,n]=v.useState(null),r=o=>{if(o===void 0)return;const a=o.reduce((l,c,u)=>(l[c.id]=u,l),{});let s;o.forEach(l=>{if(l.parentId===null){s=l;return}const c=o[a[l.parentId]];c&&(c.children||(c.children=[]),c.children.push(l))}),n(s||null)};return{loadFilterDelays:()=>{const o=e.map(a=>({id:a.DelayCodeId,parentId:a.ParentDelayCodeId,name:a.DelayCodeName,isLeaf:!!a.IsLeaf,isActive:!0,children:[]}));r(o)},delayCodes:t}},Yqi=Et(e=>({sliderContainer:{position:"relative",marginBottom:e.spacing(4),paddingTop:e.spacing(3)},durationLabel:{position:"absolute",top:0,transform:"translateX(-50%)",textAlign:"center",fontSize:"0.75rem",backgroundColor:"rgba(255, 255, 255, 0.7)",padding:"2px 4px",borderRadius:"4px",fontWeight:"bold"},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"& .MuiOutlinedInput-input":{height:"100px !important"}},infoLabel:{fontSize:12,color:"#757575"}})),KZe=e=>{const t=Math.floor(e/36e5),n=Math.floor(e%(1e3*60*60)/(1e3*60)),r=Math.floor(e%(1e3*60)/1e3);return`${t} hs ${n} min ${r} sec`},Kqi=({show:e,onHide:t,delayId:n,refreshData:r})=>{const o=Yqi(),[a,s]=v.useState(!1),[l,c]=v.useState(""),[u,d]=v.useState(null),[p,h]=v.useState(!1),[g,m]=v.useState(!1),[b,y]=v.useState(null),[M,C]=v.useState([]),{loadFilterDelays:x,delayCodes:w}=Xqi({allDelayCodes:M}),S=b?.Start?mt.utc(b.Start).toDate():new Date,A=b?.End?mt.utc(b.End).toDate():new Date,{control:z,handleSubmit:O,setValue:T,getValues:R,reset:P,formState:{errors:F}}=jn({}),N=async()=>{s(!0),y(null);try{const $=await Azt(Number(n));if($&&$.ok){const U=At($,"data.tables[0].rows[0]",null);U?y(U):c("Delay not found.")}else c("Failed to fetch delay details.")}catch{c("An error occurred while fetching the delay.")}finally{s(!1)}},L=async $=>{s(!0);try{const U=await Gzt($);if(U.ok){let X=[];const Q=At(U,"data.tables[0].rows",[]);Q.forEach(re=>{const ee=Uzt(re);X=[...X,ee]}),C(Q),s(!1)}else c(U.message||"Failed to fetch delays data.")}catch{c("An unexpected error occurred while fetching delays.")}finally{s(!1)}},W=async $=>{const U=$.delay1.End.getTime()-$.delay1.Start.getTime(),X=$.delay2.End.getTime()-$.delay2.Start.getTime();if(U<=10*1e3||X<=10*1e3){m(!0);return}const Q=await rEt($.delay1,$.delay2);Q.ok?(h(!0),await r()):c(Q.message),t()};v.useEffect(()=>{e&&n&&N()},[e,n]),v.useEffect(()=>{e&&b&&(P(),(async()=>{s(!0);const $=new Date((S.getTime()+A.getTime())/2);T("delay1.DelayId",b.DelayId),T("delay1.Start",S),T("delay1.End",$),T("delay2.Start",$),T("delay2.End",A),T("delay1.DelayCategoryId",b.DelayCategoryId),T("delay1.Comments",b.Comments),T("delay1.DelayCodeId",b.DelayCodeId),L(b?.AssetId?b.AssetId:void 0),d($),s(!1)})())},[e,b,n]),v.useEffect(()=>{if(M.length>0){x();const $=M.find(U=>U.DelayCodeId===b?.DelayCodeId);$&&T("delay1.DelayCodeName",$.DelayCodeName)}},[M]);const[j,V]=v.useState(b?.Start),G=KZe((R("delay1.End")?.getTime()??S.getTime())-(R("delay1.Start")?.getTime()??S.getTime())),q=KZe((R("delay2.End")?.getTime()??S.getTime())-(R("delay2.Start")?.getTime()??S.getTime()));return!b||!w?null:f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Split Delay"}),f.jsx(We,{title:"SPLIT DELAY",open:e,handleClose:()=>t(),id:"create-grade-modal",maxWidth:"lg",children:f.jsxs("form",{onSubmit:O(W),children:[f.jsx(We.Content,{dividers:!0,children:f.jsxs(D,{container:!0,justifyContent:"center",children:[f.jsxs(D,{md:10,style:{marginBottom:10},className:o.sliderContainer,children:[f.jsx(vt,{className:o.durationLabel,style:{left:"25%",color:"#3f51b5"},children:G}),f.jsx(vt,{className:o.durationLabel,style:{left:"75%",color:"green"},children:q}),f.jsx(tEt,{startTime:S,endTime:A,initialValue:u,onTimeChange:$=>{V($),T("delay1.End",$),T("delay2.Start",$)}})]}),f.jsxs(D,{container:!0,md:5,children:[f.jsx(vt,{children:"Delay 1"}),f.jsxs(D,{container:!0,md:12,spacing:1,style:{marginTop:10},children:[f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.Start",control:z,rules:{required:"Delay code is required"},render:({field:$})=>f.jsx(je,{label:"Start",variant:"outlined",value:Wn($?.value,"HH:mm:ss"),error:!!F.delay1?.Start,onChange:()=>{},disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.DelayCodeName",control:z,render:({field:$})=>f.jsxs(f.Fragment,{children:[f.jsx(oD,{inputTitle:"Delay",title:"Delay",dataSource:w,value:b?.DelayCodeId||0,description:$.value?$?.value:"",onSelect:(U,X)=>{T("delay1.DelayCodeId",U),T("delay1.DelayCodeName",X),T("delay1.DelayCategoryId",M.find(Q=>U===Q.DelayCodeId)?.DelayCategoryId||null)},selectBranch:!0,selectActive:!1,selectInternal:!1}),F.delay1?.DelayCodeId&&f.jsx("span",{children:F.delay1?.DelayCodeId.message})]})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.End",control:z,render:({field:$})=>f.jsx(je,{label:"End",variant:"outlined",value:Wn($?.value,"HH:mm:ss"),disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"delay1.DelayCategoryId",control:z,render:({field:$})=>f.jsx(uM,{value:$.value,onChange:$.onChange,assetId:b?.AssetId||null,error:F.delay1?.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,md:12,children:f.jsx(Ue,{name:"delay1.Comments",control:z,render:({field:$})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",error:!!F.delay1?.Comments,value:$?.value,fullWidth:!0,maxRows:5,multiline:!0,margin:"dense",autoComplete:"off",onChange:U=>{U.target.value.length<=200&&T("delay1.Comments",U.target.value)}}),R("delay1.Comments")?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${R("delay1.Comments")?.length??0}/200 max.`}),R("delay1.Comments")?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})})]})]}),f.jsx(D,{md:1}),f.jsxs(D,{container:!0,md:5,children:[f.jsx(vt,{children:"Delay 2"}),f.jsxs(D,{container:!0,md:12,spacing:1,style:{marginTop:10},children:[f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.Start",control:z,render:({field:$})=>f.jsx(je,{label:"Start",variant:"outlined",value:Wn($?.value,"HH:mm:ss"),error:!!F.delay2?.Start,disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.DelayCodeName",control:z,render:({field:$})=>f.jsxs(f.Fragment,{children:[f.jsx(oD,{inputTitle:"Delay",title:"Delay",dataSource:w,value:b?.DelayCodeId||0,description:$.value?$?.value:"",onSelect:(U,X)=>{T("delay2.DelayCodeId",U),T("delay2.DelayCodeName",X),T("delay2.DelayCategoryId",M.find(Q=>U===Q.DelayCodeId)?.DelayCategoryId||null)},selectBranch:!0,selectActive:!1,selectInternal:!1}),F.delay2?.DelayCodeId&&f.jsx("span",{children:F.delay2?.DelayCodeId.message})]})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.End",control:z,render:({field:$})=>f.jsx(je,{label:"End",variant:"outlined",value:Wn($?.value,"HH:mm:ss"),disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"delay2.DelayCategoryId",control:z,render:({field:$})=>f.jsx(uM,{value:$.value,onChange:$.onChange,assetId:b?.AssetId||null,error:F.delay2?.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,md:12,children:f.jsx(Ue,{name:"delay2.Comments",control:z,render:({field:$})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",error:!!F.delay2?.Comments,value:$?.value,fullWidth:!0,maxRows:5,multiline:!0,margin:"dense",autoComplete:"off",onChange:U=>{U.target.value.length<=200&&T("delay2.Comments",U.target.value)}}),R("delay2.Comments")?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${R("delay2.Comments")?.length??0}/200 max.`}),R("delay2.Comments")?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})})]})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 90px 30px"},children:f.jsxs(D,{container:!0,spacing:1,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:2,xs:12,children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"medium",children:"Cancel"})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsx(Ne,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:"primary",type:"submit",size:"medium",children:"Split"})})]})})]})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:()=>m(!1),children:f.jsxs(Pr,{elevation:6,variant:"filled",severity:"error",onClose:()=>m(!1),children:["The minimum duration allowed is ",10," seconds"]})}),f.jsx(pr,{open:p,autoHideDuration:2500,onClose:()=>h(!1),children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:()=>h(!1),children:"The operation was completed successfully"})}),f.jsx(yt,{error:l,onHide:()=>c(""),title:"Error Creating Grade"})]})},Qqi=({value:e,onChange:t,disabled:n=!1,error:r=""})=>{const[i,o]=v.useState([]),[a,s]=v.useState(""),[l,c]=v.useState(!1),[u,d]=v.useState(null),p=async()=>{c(!0);try{const h=await Ote();h&&h.ok?o(h.data.tables[0].rows):d("Failed to fetch assets.")}catch{d("An error occurred while fetching assets.")}finally{c(!1)}};return v.useEffect(()=>{p()},[]),f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:i,getOptionSelected:(h,g)=>h.AssetId===g.AssetId,getOptionLabel:h=>h.AssetName,onChange:(h,g)=>{t(g?.AssetId??null)},disabled:n,renderInput:h=>f.jsx(f.Fragment,{children:f.jsx(je,{...h,label:"Asset",variant:"outlined",error:!!r,size:"small",fullWidth:!0,helperText:r,InputProps:{...h.InputProps,endAdornment:f.jsx(f.Fragment,{children:l?f.jsx(Kt,{}):h.InputProps.endAdornment})}})}),value:i?.find(h=>h.AssetId===e)??null})},Zqi=Et(()=>({dateTimePicker:{},"@global":{"*::-webkit-scrollbar":{width:"10px",background:"#fff"},"*::-webkit-scrollbar-thumb":{backgroundColor:"	#C8C8C8"},"*::-webkit-scrollbar-track":{borderRadius:"10px"},"*::-webkit-scrollbar:horizontal":{height:"10px"}},infoLabel:{fontSize:12,color:"#757575"},inputEditable:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"& .MuiOutlinedInput-input":{height:"60px !important"}},autocompleteWithSuggestions:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}}})),Jqi=({show:e,onHide:t,refreshData:n,delayId:r,ifJustified:i})=>{const o=Zqi(),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(null),[p,h]=v.useState(""),[g,m]=v.useState(!1),[b,y]=v.useState(!1),[M,C]=v.useState(""),[x,w]=v.useState([]),[S,A]=v.useState([]),[z,O]=v.useState([]),{state:{settings:T}}=Ma(),R=At(T,"DELAYS_JUSTIFY_DURATION_TOLERANCE_IN_MINUTES",30),{control:P,handleSubmit:F,getValues:N,reset:L,watch:W,setValue:j,formState:{errors:V}}=jn({defaultValues:{}}),G=W("Comments"),q=W("Start"),$=W("End"),U=W("AssetId"),X=mt($).diff(mt(q),"seconds"),Q=v.useMemo(()=>X&&R?X>Number(R)*60:!0,[X,R]),[re,ee]=v.useState(Q),se=async()=>{c(!0);try{const oe=await Azt(r);if(oe&&oe.ok){let ae=At(oe,"data.tables[0].rows[0]",null);ae?(y(!1),C(i?"JUSTIFY DELAY":"EDIT DELAY"),L({DelayId:ae.DelayId,AssetId:ae.AssetId,DelayCodeId:ae.DelayCodeId,Start:ae.Start?mt.utc(ae.Start).toDate():null,End:ae.End?mt.utc(ae.End).toDate():null,DelayCategoryId:ae.DelayCategoryId,IsManual:ae.IsManual,Comments:ae.Comments,Duration:ae.Duration,WhatDescription:ae.WhatDescription,WhyDescription:ae.WhyDescription,SolutionDescription:ae.SolutionDescription})):d("Delay not found.")}else d("Failed to fetch delay details.")}catch{d("An error occurred while fetching the delay.")}finally{c(!1)}},pe=async()=>{const oe=await _3t();if(oe.ok){const ae=oe.data;w(ae.tables[0].rows.map(ne=>ne.Value)),A(ae.tables[1].rows.map(ne=>ne.Value)),O(ae.tables[2].rows.map(ne=>ne.Value))}else d(oe.message)},te=async oe=>{if(s(!0),i){const ae=await hTe(oe.DelayId,oe.DelayCodeId??null,oe.DelayCategoryId??null,oe.Comments??null,oe.WhatDescription??null,oe.WhyDescription??null,oe.SolutionDescription??null);ae.ok?await n():d(ae.message)}else{const ae=await nEt(oe.DelayId===0?null:oe.DelayId,oe.AssetId,oe.Start,oe.End,oe.DelayCodeId,oe.DelayCategoryId,oe.Comments,oe.WhatDescription,oe.WhyDescription,oe.SolutionDescription);ae.ok?await n():d(ae.message)}s(!1),h("Delay saved successfully."),m(!0),t(!0)};v.useEffect(()=>{ee(Q)},[Q,r]),v.useEffect(()=>{e&&r&&(se().then(()=>{}),pe())},[e,r]);const ce=v.useMemo(()=>{if(q&&$){const oe=mt.duration(mt($).diff(mt(q))),ae=Math.floor(oe.asMinutes()),ne=oe.seconds();return`${ae}m ${ne}s`}else return""},[q,$]);return l?f.jsx(Kt,{style:{position:"absolute",top:"50%",left:"50%"}}):f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Justify Delay"}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,className:o.dateTimePicker,children:f.jsx(We,{maxWidth:"md",open:e,handleClose:()=>{t(!0)},id:"upsertDelay",title:M,children:f.jsxs("form",{onSubmit:F(te),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,style:{alignItems:"center"},children:[f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"Start",control:P,rules:{required:"Start date is required",validate:{notAfterEnd:oe=>{const ae=W("End");return oe&&ae&&oe>ae?"Start date cannot be after End date.":!0},notInFuture:oe=>oe&&oe>new Date?"Start date cannot be in the future.":!0}},render:({field:oe})=>f.jsx(xd,{disabled:i,label:"Delay Start",timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm:ss",ampm:!1,value:mt(oe.value),onChange:oe.onChange,inputRef:oe.ref,slotProps:{textField:{variant:"outlined",size:"small",error:!!V.Start}}})}),V.Start&&f.jsx("p",{style:{color:"red"},children:V.Start.message})]}),f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"End",control:P,rules:{validate:{notBeforeStart:oe=>{const ae=W("Start");return oe&&ae&&oe<ae?"End date cannot be before Start date.":!0},notInFuture:oe=>oe&&oe>new Date?"End date cannot be in the future.":!0,notSameAsStart:oe=>{const ae=W("Start");return oe&&ae&&mt(oe).isSame(mt(ae))?"End date cannot be the same as Start date.":!0}}},render:({field:oe})=>f.jsx(xd,{disabled:i,label:"Delay End",format:"MM/DD/YYYY HH:mm:ss",ampm:!1,timezone:Ic.getInstance().getServerTimeZone(),value:mt(oe.value),onChange:oe.onChange,inputRef:oe.ref,slotProps:{textField:{variant:"outlined",size:"small",error:!!V.End}}})}),V.End&&f.jsx("p",{style:{color:"red"},children:V.End.message})]}),f.jsx(D,{item:!0,xs:4,md:4,style:{marginBottom:"3px"},children:f.jsx(je,{label:"Duration (min)",disabled:!0,variant:"outlined",fullWidth:!0,value:ce,margin:"dense",autoComplete:"off"})})]}),f.jsxs(D,{container:!0,spacing:1,style:{alignItems:"center",marginTop:"12px"},children:[f.jsx(D,{item:!0,xs:4,md:4,children:f.jsx(Ue,{name:"AssetId",control:P,rules:{required:"Asset is required"},render:({field:oe})=>f.jsx(Qqi,{value:oe.value??0,onChange:oe.onChange,error:V.AssetId?.message,disabled:i})})}),f.jsx(D,{item:!0,xs:4,md:4,style:{marginBottom:"3px"},children:f.jsx(Ue,{name:"DelayCodeId",control:P,render:({field:oe})=>f.jsx(fTe,{assetId:U,value:oe.value,onChange:(ae,ne)=>{oe.onChange(ae),j("DelayCategoryId",ne.DelayCategoryId)}},`DelayCodeId-${U}`)})}),f.jsx(D,{item:!0,xs:4,md:4,children:f.jsx(Ue,{name:"DelayCategoryId",control:P,render:({field:oe})=>f.jsx(uM,{value:oe.value??null,onChange:oe.onChange,assetId:U,error:V.DelayCategoryId?.message||""})})})]}),f.jsxs(D,{item:!0,md:12,xs:12,style:{marginTop:"12px"},children:[f.jsx(Ue,{name:"Comments",control:P,render:({field:{value:oe,onChange:ae}})=>f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",style:{margin:"8px 0"},maxRows:4,fullWidth:!0,margin:"dense",multiline:!0,autoComplete:"off",value:oe??"",onChange:ne=>{ne.target.value.length<=200&&ae(ne)}})}),f.jsx(D,{container:!0,style:{marginBottom:18},children:f.jsxs(D,{item:!0,children:[G?.length>=1&&G?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${G?.length}/200 max.`}),G?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})]}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"IsManual",control:P,render:({field:oe})=>f.jsx(So,{control:f.jsx(Qr,{color:"primary",checked:b||oe.value,disabled:!0}),label:"Manual Delay"})})}),f.jsxs(D,{item:!0,xs:12,md:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Ne,{onClick:()=>ee(oe=>!oe),color:"primary",startIcon:re?f.jsx(oEt,{}):f.jsx(aEt,{}),children:"Upset Conditions"})}),re&&f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"WhatDescription",control:P,render:({field:oe})=>f.jsx(XI,{options:x,value:oe.value,onChange:oe.onChange,label:"What",className:o.autocompleteWithSuggestions})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"WhyDescription",control:P,render:({field:oe})=>f.jsx(XI,{options:S,value:oe.value,onChange:oe.onChange,label:"Why",className:o.autocompleteWithSuggestions})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"SolutionDescription",control:P,render:({field:oe})=>f.jsx(XI,{options:z,value:oe.value,onChange:oe.onChange,label:"Solution",className:o.autocompleteWithSuggestions})})})]})," "]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})})})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:()=>m(!1),children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:()=>m(!1),children:"Delay was saved successfully"})}),f.jsx(yt,{error:u,onHide:()=>d("")})]})},Tl=Sn(),e6i=({show:e,onHide:t,refreshData:n,comparisonDate:r})=>{const[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(!1),[p,h]=v.useState(""),[g,m]=v.useState(""),{state:b,actions:y}=mT(),[M,C]=v.useState(!1),[x,w]=v.useState(!1),{shiftInfo:S}=na(),[A,z]=v.useState(null),[O,T]=v.useState(null),[R,P]=v.useState(""),F=b.selectedAsset?.id&&Number(b.selectedAsset?.id)==13,N=F?"Ladle Open":"Start",L=F?"Ladle Close":"End",W=(te,ce,oe)=>{let ae=null,ne=null;for(const he of te)oe&&he.ProcessId===oe||he.End&&he.End<=ce&&(!ae||he.End>ae.End)&&(ae=he);const le=ae?ae.End:ce;for(const he of te)oe&&he.ProcessId===oe||he.Start>le&&(!ne||he.Start<ne.Start)&&(ne=he);return{previousProcess:ae,nextProcess:ne}},{setValue:j,control:V,handleSubmit:G,reset:q,watch:$,formState:{errors:U}}=jn({defaultValues:{},mode:"onChange"}),X=At(S,"CurrentStart",null),Q=At(S,"CurrentEnd",null),re=te=>ce=>{const oe=Tl.utc(X).local(),ae=Tl.utc(ce).local();te(ce),ae.isSame(oe)?C(!1):C(!0)},ee=async te=>{o(!0);const ce=te.Start,oe=te.End,{selectedProcess:ae,selectedAsset:ne}=b,le=te.ProcessId===0?null:te.ProcessId,he=ae&&ae.ProcessId!==0?ae.AssetId:Number(ne?.id);if(!he){y.setErrorMessage("Asset ID is not defined."),o(!1);return}const me=he===13?await T3e(le,ce,oe):await J3t(le,ce,oe,!0,he);me.ok?(y.setNotificationMessage(`Process was ${l?"created":"edited"} successfully`),await n()):y.setErrorMessage(me?.message),o(!1),t(!0)},se=$("Start"),pe=$("End");return v.useEffect(()=>{Math.abs(Tl(se).diff(Tl(pe),"hours"))>3?w(!0):w(!1)},[se,pe]),v.useEffect(()=>{C(!1),e?(o(!1),(async()=>{s(!0),P("");const te=b.selectedProcess;if(te!=null){if(te.ProcessId===0){if(h(`NEW
						${b.selectedAsset?.name.toUpperCase()}
						 PROCESS`),m(`New
						${b.selectedAsset?.name.toUpperCase()}
						 Process`),c(!0),b.selectedAsset&&r){const ce=b.ganttData.Processes.filter(he=>he.AssetId===Number(b.selectedAsset?.id)),{previousProcess:oe,nextProcess:ae}=W(ce,r);z(oe),T(ae);let ne,le;if(oe&&oe.End?ne=Tl(oe.End).add(2,"minutes").toDate():ne=X||Tl().toDate(),ae&&ae.ProcessStart?le=Tl(ae.ProcessStart).subtract(2,"minutes").toDate():le=Q?Tl(Q).add(1,"hour").toDate():Tl().toDate(),oe&&oe.End&&ae&&ae.ProcessStart&&Tl(ae.ProcessStart).diff(Tl(oe.End),"minutes")<4){P("The space between processes is too small to create a new process in the selected position."),j("Start",oe.End),j("End",ae.ProcessStart),s(!1);return}j("ProcessId",0),j("Start",ne),j("End",le)}}else{if(h(`EDIT 
							${b.selectedProcess?.AssetId==13?"CASTER":"EAF"}
							PROCESS`),m(`Edit
						${b.selectedProcess?.AssetId==13?"CASTER":"EAF"}
						 Process`),c(!1),te.ProcessStart){const ce=b.ganttData.Processes.filter(ne=>ne.AssetId===te.AssetId),{previousProcess:oe,nextProcess:ae}=W(ce,te.ProcessStart,te.ProcessId);z(oe),T(ae)}j("ProcessId",te.ProcessId),j("Start",te.ProcessStart),j("End",te.End)}te.End===null&&d(!0),s(!1)}})()):(q(),d(!1))},[e]),v.useEffect(()=>{u&&j("End",null)},[u]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:`${g}`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{maxWidth:"md",open:e,handleClose:()=>{t(!0)},id:"upsertProcess",title:p,children:f.jsxs("form",{onSubmit:G(ee),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Start",control:V,rules:{required:"The Start field is required",validate:{notAfterEnd:te=>{const ce=$("End");return ce?Tl(te).isBefore(Tl(ce))||"Start must be before End":!0},notBeforePreviousEnd:te=>{const ce=A?.End;return ce?Tl(te).isSameOrAfter(Tl(ce))||"Start cannot be less than the End of the Previous Process":!0},notAfterNextStart:te=>O?.Start?Tl(te).isSameOrBefore(Tl(O.Start))||"Start cannot be greater than the Start of the Next Process":!0}},render:({field:te})=>f.jsx(xd,{label:N,timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",disabled:!!R,timeSteps:{minutes:1},value:Tl(te.value),onChange:re(te.onChange),inputRef:te.ref,slotProps:{textField:{variant:"outlined",error:!!U.Start}}})}),U.Start&&f.jsx("p",{style:{color:"red",fontSize:12},children:U.Start?.message})]})}),f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,md:6,style:{marginTop:10},children:[f.jsx(Ue,{name:"End",control:V,rules:{required:u?!1:"The End field is required",validate:{notBeforeStart:te=>{const ce=$("Start");return ce?Tl(te).isAfter(Tl(ce))||u||"End must be after Start":!0},notAfterNextStart:te=>O?.ProcessStart?Tl(te).isSameOrBefore(Tl(O.ProcessStart))||"End cannot be greater than the Start of the Next Process":!0}},render:({field:te})=>f.jsx(xd,{label:L,timezone:Ic.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",disabled:!!R||u,timeSteps:{minutes:1},value:Tl(te.value),onChange:te.onChange,inputRef:te.ref,slotProps:{textField:{variant:"outlined",error:!!U.End}}})}),U.End&&f.jsx("p",{style:{color:"red",fontSize:12},children:U.End?.message})]}),R&&f.jsx("p",{style:{color:"red",fontSize:18},children:R}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:20},children:f.jsx(So,{control:f.jsx(Qr,{color:"primary",checked:u,onChange:te=>{d(te.target.checked),te.target.checked?j("End",null):j("End",new Date)}}),label:"Process not finished"})})]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:R?f.jsx(Ne,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",disabled:!!R,children:"Save"}):f.jsx(ka,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",isLoading:i,children:"Save"})})]})})]})})})})]})},SEt=({columnWidth:e,assets:t,showArrowTriangle:n,startCalendarDate:r,endCalendarDate:i,rowHeight:o,barFill:a,lineSectionFill:s,lineFill:l,refreshData:c,withoutContextMenu:u=!1})=>{const{state:d,actions:p}=mT(),[h,g]=v.useState(null),[m,b]=v.useState(null),y=Oo(),{shiftInfo:M}=na(),{getGanttMenuOptions:C,getGanttDelaysMenuOptions:x,showEditModal:w,setShowEditModal:S,showLinkModal:A,setShowLinkModal:z,showJustifyModal:O,setShowJustifyModal:T,showSplitModal:R,setShowSplitModal:P,showDeleteModal:F,messageDeleteModal:N,setShowDeleteModal:L,setMessageDeleteModal:W,messageLinkConfirmation:j,setMessageLinkConfirmation:V,showUnlinkModal:G,messageUnlinkModal:q,setShowUnlinkModal:$,setMessageUnlinkModal:U}=Gqi(),{showContextMenu:X,registerConfig:Q}=ws(),re=pe=>{pe.source.ProcessCode==="C"&&y(`/caster-data-entry/${pe.source.ProcessId}`),pe.source.ProcessCode==="E"&&y(`/eaf-data-entry/${pe.source.ProcessId}`)},ee=async pe=>{if($(!1),U(""),pe!=="OK"||d.selectedProcess===null)return;p.setIsLoadingBackground(!0);const ce=await(d.selectedProcess.ProcessCode==="C"?E3e:tTe)(d.selectedProcess.ProcessId);ce.ok?(p.setIsLoadingBackground(!1),p.setNotificationMessage("Process unlinked successfully"),await c()):(p.setIsLoadingBackground(!1),p.setErrorMessage(ce.message))},se=async pe=>{if(L(!1),W(""),pe!=="OK"||d.selectedProcess===null)return;p.setIsLoadingBackground(!0);const te=await Mzt(d.selectedProcess.ProcessId);te.ok?(p.setIsLoadingBackground(!1),p.setNotificationMessage("Process deleted successfully"),await c()):(p.setIsLoadingBackground(!1),p.setErrorMessage(te.message))};return v.useEffect(()=>{Q({id:"ganttSection",getOptions:C})},[M?.CurrentShiftId]),v.useEffect(()=>{Q({id:"ganttSectionDelaysMenu",getOptions:x})},[M?.CurrentShiftId]),f.jsxs(f.Fragment,{children:[G&&f.jsx(yn,{title:"Unlink Process"}),F&&f.jsx(yn,{title:"Delete Process"}),f.jsx(Vqi,{columnWidth:e,assets:t,showArrowTriangle:n,startCalendarDate:r,endCalendarDate:i,rowHeight:o,barFill:a,lineSectionFill:s,lineFill:l,onDoubleClick:pe=>re(pe),onContextMenu:(pe,te)=>{u||(te.timestamp&&g(te.timestamp),te.type==="asset"&&p.setSelectedAsset(te.asset),te.type!=="taskLine"&&X(pe,te,"ganttSection"),te.type==="taskLine"&&te.eventCode==="D"&&(b(te.DelayId),X(pe,te,"ganttSectionDelaysMenu")))}}),f.jsx(il,{title:"Warning!",message:j,open:!!j,onClose:pe=>{pe==="OK"&&z(!0),V("")}}),f.jsx(il,{title:"Confirmation",message:q,open:G,onClose:ee}),f.jsx(il,{title:"Confirmation",message:N,open:F,onClose:se}),f.jsx(Uqi,{show:A,onHide:async()=>{z(!1),p.setNotificationMessage("Process linked successfully"),await c()},process:d.selectedProcess}),f.jsx(e6i,{show:w,onHide:()=>S(!1),refreshData:c,comparisonDate:h}),f.jsx(Jqi,{show:O,onHide:()=>T(!1),refreshData:c,ifJustified:!0,delayId:m}),f.jsx(Kqi,{show:R,onHide:()=>P(!1),refreshData:c,delayId:m})]})},t6i=Sn(),n6i=()=>({columnData:[{headerName:"Heat",field:"HeatNameValue",minWidth:65,cellRenderer:Td,cellRendererParams:{linkProperty:"HeatNameLink"},flex:1},{headerName:"Grade",field:"Grade",minWidth:80,flex:1},{headerName:"Sample",field:"Sample",minWidth:69,flex:1},{headerName:"Elements",field:"Elements",minWidth:80,wrapText:!0,autoHeight:!0,flex:4},{headerName:"Compatible Grades",field:"CompatibleGrades",minWidth:140,flex:2},{headerName:"Results Time",field:"ResultsTime",minWidth:110,valueGetter:n=>t6i(n.data?.ResultsTime).format("MM/DD HH:mm")||"",flex:1},{headerName:"Technician",field:"LabTechnician",minWidth:90,flex:1},{headerName:"Comments",field:"Comments",minWidth:100,flex:1}],defaultColDef:{flex:1,resizable:!0,suppressHeaderMenuButton:!0,autoHeight:!0,wrapText:!0}}),r6i=()=>{const e=Oo(),t=r=>{r!==null&&e(r)};return{getMissedChemistriesMenuOptions:r=>{let i=[];return r.HeatNameLink&&i.push({name:"See in Heat Report",key:"go_to_heat_report",style:{fontWeight:"bold"},onClick:()=>t(r.HeatNameLink)}),i},goToHeatReport:t}},i6i=()=>{const e=v.useRef(null),{state:{casterChemistries:t,isLoadingChemistryGrid:n}}=mT(),[r,i]=v.useState(null);kk();const{columnData:o}=n6i(),{getMissedChemistriesMenuOptions:a,goToHeatReport:s}=r6i(),{showContextMenu:l,registerConfig:c}=ws(),u=d=>{i(d.api)};return v.useMemo(()=>{n&&e.current!==null&&e.current.api!==void 0?e.current.api.showLoadingOverlay():e.current!==null&&e.current.api!==void 0&&e.current.api.hideOverlay()},[n]),v.useEffect(()=>{c({id:"missedChemistries",getOptions:a})},[]),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{height:"40vh",minHeight:"30vh",border:"1px solid #e0e0e0",margin:"20px 0 10px"},children:f.jsx($n,{ref:e,rowSelection:"single",rowHeight:35,onGridReady:u,rowData:t,columnDefs:o,suppressContextMenu:!0,onRowDoubleClicked:d=>{s(d.data.HeatNameLink)},onCellContextMenu:d=>{d.event&&l(d.event,d.data,"missedChemistries")}})})})},o6i=Et(e=>Mp({card:{width:250,height:91},row:{marginBottom:e.spacing(2)},label:{fontWeight:"bold",userSelect:"none"},value:{}})),a6i=()=>{const e=o6i(),[t,n]=v.useState(""),{shiftInfo:r}=na(),[i,o]=v.useState(null),a=async()=>{if(r){const s=await JAi(r.CurrentShiftId);s.ok?o(s.data.tables[0].rows[0]):n(s.message)}};return v.useEffect(()=>{if(!r)return;a();let s;return r.CurrentShiftId===r.LastShiftId&&(s=setInterval(()=>{a()},12e4)),()=>{s&&clearInterval(s)}},[r]),f.jsxs(f.Fragment,{children:[f.jsx(wD,{className:e.card,elevation:1,children:f.jsx(SD,{children:f.jsxs(D,{container:!0,direction:"column",children:[f.jsxs(D,{item:!0,container:!0,justify:"space-between",className:e.row,children:[f.jsx(vt,{className:e.label,children:"Cast Tons/hour"}),f.jsx(vt,{className:e.value,children:i?i.CASTonsPerHour?.toFixed(2):"-"})]}),f.jsxs(D,{item:!0,container:!0,justify:"space-between",className:e.row,children:[f.jsx(vt,{className:e.label,children:"Cast Tons"}),f.jsx(vt,{className:e.value,children:i?i.CASTons?.toFixed(2):"-"})]})]})})}),f.jsx(yt,{error:t,onHide:()=>n("")})]})},QZe=Sn(),s6i=({})=>{const{shiftInfo:e}=na(),{state:t}=Ma(),n=At(t?.settings,"maxTTT",180),r=At(e,"CurrentShiftId",null);return{columns:[{field:"AssetName",headerName:"EAF",cellRenderer:_te,cellClass:o=>o.data.AssetId?`eaf-${o.data.AssetId}`:"",minWidth:88,flex:1},{field:"HeatName",headerName:"Heat",cellRenderer:o=>Td({...o,link:`/meltshop-heats/${r}?heatId=${o.data.HeatId}`}),minWidth:65,flex:1},{field:"GradeName",headerName:"Grade",minWidth:80,flex:1},{field:"LadleName",headerName:"Ladle",minWidth:60,flex:1},{field:"Start",headerName:"Start",cellRenderer:o=>Td({...o,link:`/eaf-data-entry/${o.data.ProcessId}`}),minWidth:62,valueGetter:o=>o.data.Start?QZe(o.data.Start).format("HH:mm"):"",flex:1},{field:"End",headerName:"End",valueGetter:o=>o.data.End?QZe(o.data.End).format("HH:mm"):"",minWidth:62,flex:1},{field:"TapToTap",headerName:"Tap To Tap",minWidth:90,cellRenderer:o=>{const a=o.value,s=Number(a)>n,l=f.jsx("span",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",textAlign:"right"},children:a});return s?f.jsx(ls,{title:`Maximum limit: ${n} minutes`,placement:"top",children:l}):l},cellClassRules:{"max-limit":o=>Number(o.value)>n},flex:1},{field:"PowerOn",headerName:"Power On",type:["numericColumn","numericWidth"],minWidth:84,flex:1},{field:"MWH",headerName:"MWH",valueGetter:o=>o.data.MWH?o.data.MWH.toFixed(1):"",minWidth:55,cellStyle:{textAlign:"right"},flex:1},{field:"OxygenVolume",headerName:"O2 Vol [scf]",valueGetter:o=>o.data.OxygenVolume?o.data.OxygenVolume.toFixed(1):"",cellStyle:{textAlign:"right"},minWidth:100,flex:1},{field:"Charges",headerName:"Charges",type:["numericColumn","numericWidth"],minWidth:76,flex:1},{field:"ScrapTons",headerName:"Scrap [lbs]",type:["numericColumn","numericWidth"],minWidth:92,flex:1},{field:"LastTemperature",headerName:"Last Temp",type:["numericColumn","numericWidth"],minWidth:92,cellStyle:{textAlign:"right"},flex:1},{field:"TrimProbeTemperature",headerName:"Trim Temp",minWidth:89,cellStyle:{textAlign:"right"},flex:1},{field:"DeltaT",headerName:"Delta T",minWidth:68,cellStyle:{textAlign:"right"},flex:1},{field:"SteelWeight",headerName:"Steel Weight",minWidth:102,cellStyle:{textAlign:"right"},flex:1},{field:"IsProcessManual",headerName:"",type:["nonSorteable","nonFilterable","centerAligned"],cellRenderer:yte,cellClass:"ag-button-cell",minWidth:80,flex:1}]}},l6i=()=>{const{shiftInfo:e}=na(),t=Oo(),n=o=>{o&&t(`/meltshop-heats/${e?.CurrentShiftId}?heatId=${o}`)},r=o=>{o!==null&&t(`/eaf-data-entry/${o}`)};return{getMenuOptions:o=>{let a=[];return o.ProcessId&&o.IsActive&&a.push({name:"See in Data Entry",key:"go_to_eaf",onClick:()=>{r(o.ProcessId)},style:{fontWeight:"bold"},icon:f.jsx(dM,{})}),o.HeatId&&o.IsActive&&(a=a.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>n(o.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),a},goToDataEntry:r}},c6i=({loadingGrid:e,rows:t})=>{const n=v.useRef(null),{columns:r}=s6i({}),{getMenuOptions:i,goToDataEntry:o}=l6i(),{showContextMenu:a,registerConfig:s}=ws(),{shiftInfo:l}=na(),c=p=>{p.preventDefault()},u=p=>{if(!p.data.IsActive)return{background:"#E8EBEB"}},{columnTypes:d}=ku({});return v.useEffect(()=>{e&&n.current!==null&&n.current.api!==void 0?n.current.api.showLoadingOverlay():n.current!==null&&n.current.api!==void 0&&n.current.api.hideOverlay()},[e]),v.useEffect(()=>{s({id:"eafProcesses",getOptions:i})},[l?.CurrentShiftId]),f.jsx("div",{onContextMenu:c,children:f.jsx("div",{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{height:"50vh",minHeight:"38vh",border:"1px solid #e0e0e0",margin:"20px 0 10px"},children:f.jsx($n,{ref:n,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,columnTypes:d,getRowStyle:u,suppressContextMenu:!0,onRowDoubleClicked:p=>{p.data.IsActive&&o(p.data.ProcessId)},onCellContextMenu:p=>{p.api.deselectAll(),p.node.setSelected(!0),p.event&&a(p.event,p.data,"eafProcesses")}})})})})})},YI=new Map,ZZe=new Map,oK=["#dae8fc","#d5e8d4","#f8cfcc","#d17238","orange","yellow"];let JZe=0;const u6i=e=>{if(e){if(!YI.has(e)){const t=e.charAt(0),n=parseInt(t,10)-1;if(isNaN(n)||n<0||n>=oK.length)return"#f8cfcc";const r=oK[n];YI.set(e,r)}return YI.get(e)}else return"#f8cfcc"},Hpe=e=>{if(!YI.has(e)){const t=oK[JZe%oK.length];YI.set(e,t),JZe++}return YI.get(e)},vR=Sn(),B5={EAF1:11,EAF2:12,CASTER:13},d6i="#e9ecef",AEt=e=>{const[t,n]=v.useState([]),{actions:r}=mT(),i=At(e,"CurrentStart",null),o=v.useMemo(()=>[{id:B5.EAF1.toString(),name:"EAF 1",processes:[],color:Hpe("EAF 1")},{id:B5.EAF2.toString(),name:"EAF 2",processes:[],color:Hpe("EAF 2")},{id:B5.CASTER.toString(),name:"Caster",processes:[],color:Hpe("CASTER")}],[]),a=(h,g)=>({id:`${h.AssetId} - ${h.HeatName}`,start:h.Start,end:h.End,processStart:h.ProcessStart,type:"task",progress:100,name:h.HeatName??"unlinked",processLines:[],source:h,styles:{backgroundColor:g,progressColor:g,borderColor:"black"},textLeftBottom:Wn(h.Start,"HH:mm"),textRightBottom:Wn(h.End,"HH:mm"),textLeftTop:h.LadleName??"",textRightTop:h.GradeName??""}),s=h=>{const[g,m]=h.split("m ");return`${g}min ${m}`},l=(h,g)=>({id:g?`${h.AssetId}-${g}`:h.AssetId.toString(),DelayId:h.DelayId,name:"",eventCode:h.EventCode,DelayCodeName:h.DelayCodeName,start:h.Start,end:h.End,type:"taskLine",comments:f.jsxs(f.Fragment,{children:[h.EventCode==="H"&&f.jsx("p",{children:f.jsxs("strong",{children:["Energy Cons.: ",h.Comments]})}),h.EventCode==="D"&&f.jsxs(f.Fragment,{children:[f.jsx("p",{children:f.jsxs("strong",{children:["Delay: ",s(h.Comments)]})}),f.jsxs("p",{children:["Delay Code: ",h.DelayCodeName||"(Not specified)"]})]}),h.EventCode==="C"&&f.jsx("p",{children:f.jsx("strong",{children:h.Comments})}),h.EventCode!=="H"&&h.EventCode!=="D"&&h.EventCode!=="C"&&f.jsx("p",{children:f.jsxs("strong",{children:["Speed: ",h.Comments.replace(/[^\d.]/g,"")," ipm"]})}),f.jsx("p",{children:h.EventCode==="C"?`Time: ${Wn(h.Start,"HH:mm:ss")}`:`From: ${Wn(h.Start,"HH:mm:ss")} to: ${Wn(h.End,"HH:mm:ss")}`})]}),styles:{backgroundColor:h.Color||"blue",progressColor:h.Color||"blue",borderWidth:1,borderColor:"#707175"}}),c=(h,g)=>({id:`${h}-${g}-default`,name:"",eventCode:g,start:i||new Date,end:vR(i).add(1,"second").toDate(),type:"taskLine",comments:"",styles:{backgroundColor:"rgba(0, 0, 0, 0)",progressColor:"rgba(0, 0, 0, 0)",borderWidth:1,borderColor:"#707175"}}),u=(h,g)=>{["1","2","3","D"].forEach(m=>{const b=g.filter(y=>y.EventCode===m);b.length>0?b.forEach(y=>h.processLines.push(l(y,m))):h.processLines.push(c(B5.CASTER,m))})},d=(h,g)=>{["Heatings","Delays","Charges"].forEach(m=>{const b=g.filter(y=>y.EventCode===m[0]);b.length>0?b.forEach(y=>h.processLines.push(l(y))):h.processLines.push(c(Number(h.id.split("-")[0]),m[0]))})},p=v.useCallback(h=>{const g=h.tables[0].rows.map(y=>({...y,ProcessStart:vR.utc(y.ProcessStart).toDate(),Start:vR.utc(y.Start).toDate(),End:vR.utc(y.End).toDate()})),m=h.tables[1].rows.map(y=>({...y,Start:vR.utc(y.Start).toDate(),End:vR.utc(y.End).toDate()}));r.setGanttProcesses(g),r.setGanttProcessEvents(m);const b=o.map(y=>({...y,processes:[]}));g.forEach(y=>{const M=b.findIndex(S=>Number(S.id)===y.AssetId);if(M===-1)return;const C=y.HeatName?ZZe.get(y.HeatName)||u6i(y.HeatName):d6i;y.HeatName&&ZZe.set(y.HeatName,C);const x=a(y,C),w=m.filter(S=>S.AssetId===y.AssetId);y.AssetId===B5.CASTER?u(x,w):d(x,w),b[M].processes.push(x)}),n(b)},[e]);return{assets:t,updateGantt:p}},p6i=e=>{const{shiftId:t}=ds(),{state:n}=Ma(),{state:r,actions:i}=mT(),{width:o}=CEt(),a=At(n.settings,"MELTSHOP_GANTT_REFRESH_TIME_IN_SECONDS",null),s=o*.9/12,l=b=>{b.preventDefault()},{shiftInfo:c,getShiftDataFromAPI:u}=na(),{assets:d,updateGantt:p}=AEt(c),h=async()=>{if(c===null||c.CurrentShiftId===0){i.setCasterProductions([]),i.setCasterChemistries([]),i.setProcessGanttChart([]);return}i.setShowLoading(!0),i.setIsLoadingProductionGrid(!0),i.setIsLoadingChemistryGrid(!0),i.setIsLoadingBackground(!0);const b=[x2e(c.CurrentShiftId,!1),v2e({startDate:null,endDate:null,shiftId:c.CurrentShiftId,gradeId:0,billetSizeId:0}),yzt({startDate:null,endDate:null,shiftId:c.CurrentShiftId,gradeId:0,billetSizeId:0,includeExternalHeats:!0}),b2e(c.CurrentStart,c.CurrentEnd)],[y,M,C,x]=await Promise.all(b);y.ok?i.setEAFProcesses(y.data?.tables[0]?.rows||[]):i.setErrorMessage(y.message),M.ok?i.setCasterProductions(M.data?.tables[0]?.rows||[]):i.setErrorMessage(M.message),C.ok?i.setCasterChemistries(C.data?.tables[0]?.rows||[]):i.setErrorMessage(C.message),x.ok?p(x.data):i.setErrorMessage(x.message),i.setIsLoadingProductionGrid(!1),i.setIsLoadingChemistryGrid(!1),i.setIsLoadingBackground(!1),i.setShowLoading(!1)},[g,m]=v.useState(!1);return v.useEffect(()=>{c&&g&&h()},[c]),v.useEffect(()=>{(async()=>g||(t?(m(!0),await u(null,Number(t))):(m(!0),await u(null,0))))()},[]),v.useEffect(()=>{let b=null;const y=async()=>{if(!c||c.CurrentShiftId===0)return;i.setShowLoading(!0);const M=[x2e(c.CurrentShiftId,!1),v2e({startDate:null,endDate:null,shiftId:c.CurrentShiftId,gradeId:0,billetSizeId:0}),b2e(c.CurrentStart,c.CurrentEnd)],[C,x,w]=await Promise.all(M);C.ok?i.setEAFProcesses(C.data?.tables[0]?.rows||[]):i.setErrorMessage(C.message),x.ok?i.setCasterProductions(x.data?.tables[0]?.rows||[]):i.setErrorMessage(x.message),w.ok?p(w.data):i.setErrorMessage(w.message),i.setShowLoading(!1)};if(c&&a!==null&&a>=60){const M=a*1e3;b=setInterval(y,M)}return()=>{b&&clearInterval(b)}},[c,a,i,p]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Melt Shop Dashboard"}),r.isLoadingPage?f.jsx(Cn,{}):f.jsx("div",{onContextMenu:l,children:f.jsxs(Pt,{elevation:1,style:{width:"100%",padding:"15px 20px 10px",backgroundColor:" #F2F4F7",borderRadius:"0.75rem"},children:[f.jsxs(D,{container:!0,justifyContent:"space-between",alignItems:"center",style:{marginBottom:"8px"},children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Melt Shop Dashboard"})}),f.jsx(Pt,{elevation:1,children:f.jsx(D,{item:!0,xs:"auto",children:f.jsx(qm,{preventInit:!0,withPaper:!1})})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(a6i,{})}),f.jsx(yt,{error:r.errorMessage,onHide:()=>i.setErrorMessage("")}),f.jsx(jm,{message:r.notificationMessage,onHide:()=>i.setNotificationMessage("")})]}),f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:2,style:{position:"relative"},children:[f.jsx(vt,{variant:"h5",children:"Gantt"}),c&&d.length>0&&f.jsx(SEt,{columnWidth:s,assets:d,showArrowTriangle:!1,startCalendarDate:c?.CurrentStart,endCalendarDate:c?.CurrentEnd,rowHeight:150,barFill:50,lineSectionFill:40,lineFill:40,refreshData:h},`shift-${c.CurrentShiftId}`),r.showLoading&&f.jsx(Kt,{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})]})})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(vt,{variant:"h5",children:"EAF Production"}),f.jsx(c6i,{loadingGrid:r.isLoadingPage,rows:r.eafProcesses})]})})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(vt,{variant:"h5",children:"Caster Production"}),f.jsx("div",{className:"row",children:f.jsx(BWi,{})})]})})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(vt,{variant:"h5",children:"Missed Chemistries"}),f.jsx("div",{className:"row",children:f.jsx(i6i,{})})]})})})]})]})})]})},eJe=e=>f.jsx(MEt,{children:f.jsx(p6i,{})}),MTe=Et(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center"},"& .max-limit":{color:"#CC0000",fontWeight:800},marginTop:"10px "},btnModal:{display:"flex",justifyContent:"flex-end"}})),CTe=Et(e=>Mp({formControlLabel:{border:"1px solid #c4c4c4",margin:"1px 0px 0px 0px",padding:"2px 25.5rem 2px 0px",borderRadius:"4px","& .MuiTypography-body1":{fontSize:"1.2rem"}},checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}})),h6i={grades:[]},aK=ki({name:"__",initialState:h6i,reducers:{setGrades(e,{payload:t}){e.grades=t}}}),OEt=v.createContext({state:aK.getInitialState(),actions:aK.actions}),Fte=()=>v.useContext(OEt),f6i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:aK.getInitialState(),reducers:aK.caseReducers});return f.jsx(OEt.Provider,{value:{state:t,actions:n},children:e})},g6i={ladles:[]},sK=ki({name:"__",initialState:g6i,reducers:{setLadles(e,{payload:t}){e.ladles=t}}}),zEt=v.createContext({state:sK.getInitialState(),actions:sK.actions}),zj=()=>v.useContext(zEt),m6i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:sK.getInitialState(),reducers:sK.caseReducers});return f.jsx(zEt.Provider,{value:{state:t,actions:n},children:e})},xTe={HeatName:"",ShiftId:0,GradeId:null,SteelWeight:null,LadleId:null,IsExternal:!1},v6i=({show:e,onHide:t})=>{const n=CTe(),{state:r}=Ma(),i=At(r.settings,"MIN_STEEL_WEIGHT",0),o=At(r.settings,"MAX_STEEL_WEIGHT",120),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(!1),[p,h]=v.useState(""),[g,m]=v.useState(void 0),[b,y]=v.useState(!1),[M,C]=v.useState(null),[x,w]=v.useState(null),{shiftInfo:S}=na(),{state:{ladles:A}}=zj(),{state:{grades:z}}=Fte(),{control:O,setValue:T,handleSubmit:R,reset:P,formState:{errors:F}}=jn({defaultValues:xTe}),N=async L=>{d(!0);const W=At(S,"CurrentShiftId",null);if(W){const j=await dz({...L,ShiftId:W});j.ok?(h("The heat was created successfully"),m("success"),t(!0)):(h("Error, please try again"),m("error"),w(j.message))}else h("Error, please try again"),m("error"),w("Go to valid shift");d(!1),y(!0)};return v.useEffect(()=>{e&&P()},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Create Heat"}),f.jsx(f.Fragment,{children:f.jsx(We,{open:e,handleClose:()=>{t(!0)},id:"editHeat",title:"Create a heat",maxWidth:"sm",children:f.jsxs("form",{onSubmit:R(N),noValidate:!0,children:[f.jsxs(We.Content,{className:n.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"},children:f.jsx(Kt,{size:"5rem"})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,xs:12,children:[f.jsx(Ue,{name:"HeatName",rules:{required:!0},control:O,render:({field:L})=>f.jsx(je,{label:"Name",value:L.value,onChange:L.onChange,variant:"outlined",error:!!F.HeatName,fullWidth:!0,margin:"dense"})}),F.HeatName?.type==="required"&&f.jsx("span",{className:n.errorLabel,children:"Name is required"})]})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"GradeId",control:O,render:({field:L})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:z,getOptionLabel:W=>W.GradeName,onChange:(W,j)=>{L.onChange(j?j.GradeId:null)},renderInput:W=>f.jsx(je,{...W,label:"Grade",variant:"outlined",fullWidth:!0,size:"small"}),value:z.find(W=>W.GradeId===L.value)||null})})}),f.jsx(D,{item:!0,xs:4,style:{paddingTop:"4px"},children:f.jsx(Ue,{name:"SteelWeight",control:O,rules:{min:{value:Number(i),message:`Steel Weight must be at least ${i}`},max:{value:Number(o),message:`Steel Weight must be at most ${o}`}},render:({field:L})=>f.jsx(je,{type:"number",label:"Steel Weight",value:L.value,onChange:L.onChange,variant:"outlined",fullWidth:!0,margin:"dense",size:"small",error:!!F.SteelWeight,helperText:F.SteelWeight?.message})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"LadleId",control:O,render:({field:L})=>f.jsx(Ki,{options:A,getOptionLabel:W=>W.LadleName,onChange:(W,j)=>{L.onChange(j?j.LadleId:null)},renderInput:W=>f.jsx(je,{...W,label:"Ladle",variant:"outlined",fullWidth:!0,size:"small"}),value:A.find(W=>W.LadleId===L.value)||null})})})]}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsExternal",control:O,render:({field:L})=>f.jsx(So,{className:n.formControlLabel,control:f.jsx(Qr,{defaultChecked:!1,checked:L.value,onChange:W=>L.onChange(W.target.checked),color:"primary"}),label:"External"})})})})]})})]}),!l&&f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,size:"small",variant:"contained",color:"default",onClick:()=>{t(!1)},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,size:"small",startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Create"})})]})})]})})}),f.jsx(yt,{onHide:()=>w(null),error:x})]})},b6i=({show:e,onHide:t,heatIdForDelete:n})=>{const r=CTe(),[i,o]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(""),[p,h]=v.useState(void 0),[g,m]=v.useState(null),[b,y]=v.useState(null),{state:{ladles:M}}=zj(),{state:{grades:C}}=Fte(),{control:x,setValue:w}=jn({defaultValues:xTe}),S=(z,O)=>{O!=="clickaway"&&c(!1)},A=async()=>{if(s(!0),n){const z=await GEi(n);z.ok?(d("The heat was deleted successfully"),h("success"),t(!0),y(null)):(d("Error, please try again"),h("error"),m(z.message)),s(!1),c(!0)}};return v.useEffect(()=>{e&&(async()=>{if(o(!0),n){const z=await vTe(n);if(z.ok){const O=At(z,"data.tables[0].rows[0]",null);O?y(O):(t(!0),d("Error, heat not found. Try again"),c(!0),y(null))}else m(z.message)}o(!1)})()},[e]),v.useEffect(()=>{if(e&&b){const{HeatId:z,Name:O,GradeId:T,LadleId:R,IsExternal:P,SteelWeight:F,ProductionYear:N}=b;w("HeatId",z),w("HeatName",O),w("GradeId",T),w("SteelWeight",F),w("LadleId",R),w("IsExternal",P),w("ProductionYear",N)}},[b]),f.jsxs(f.Fragment,{children:[e&&f.jsx(yn,{title:"Delete Heat"}),f.jsxs(We,{open:e,handleClose:()=>{t(!0)},id:"deleteHeat",title:"Delete a heat",maxWidth:"sm",children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[i&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"},children:f.jsx(Kt,{size:"5rem"})}),!i&&b&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:8,xs:12,children:f.jsx(Ue,{name:"HeatName",control:x,render:({field:z})=>f.jsx(je,{disabled:!0,label:"Name",value:z.value,variant:"outlined",fullWidth:!0,margin:"dense"})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"ProductionYear",control:x,render:({field:z})=>f.jsx(je,{disabled:!0,label:"Year",value:z.value,variant:"outlined",fullWidth:!0,margin:"dense"})})})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"GradeId",control:x,render:({field:z})=>f.jsx(Ki,{disabled:!0,id:"clear-on-escape",clearOnEscape:!0,options:C,getOptionLabel:O=>O.GradeName,renderInput:O=>f.jsx(je,{...O,label:"Grade",variant:"outlined",fullWidth:!0,size:"small"}),value:C.find(O=>O.GradeId===z.value)||null})})}),f.jsx(D,{item:!0,xs:4,style:{paddingTop:"4px"},children:f.jsx(Ue,{name:"SteelWeight",control:x,render:({field:z})=>f.jsx(je,{disabled:!0,type:"number",label:"Steel Weight",value:z.value,variant:"outlined",fullWidth:!0,margin:"dense",size:"small"})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"LadleId",control:x,render:({field:z})=>f.jsx(Ki,{disabled:!0,options:M,getOptionLabel:O=>O.LadleName,renderInput:O=>f.jsx(je,{...O,label:"Ladle",variant:"outlined",fullWidth:!0,size:"small"}),value:M.find(O=>O.LadleId===z.value)||null})})})]}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsExternal",control:x,render:({field:z})=>f.jsx(So,{className:r.formControlLabel,control:f.jsx(Qr,{disabled:!0,checked:z.value===!0,color:"primary",style:{width:"100% !important"}}),label:"External"})})})})]})})]}),!i&&f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,size:"small",variant:"contained",color:"default",onClick:()=>{t(!1),y(null)},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,size:"small",startIcon:a?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:a,variant:"contained",color:"secondary",onClick:A,children:"Delete"})})]})})]}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{severity:p,onClose:S,children:u})}),f.jsx(yt,{onHide:()=>m(null),error:g})]})},y6i=({heatIdForEdit:e,show:t,onHide:n})=>{const r=CTe(),{state:i}=Ma(),o=At(i.settings,"MIN_STEEL_WEIGHT",0),a=At(i.settings,"MAX_STEEL_WEIGHT",120),[s,l]=v.useState(!1),[c,u]=v.useState(!1),[d,p]=v.useState(!1),[h,g]=v.useState(""),[m,b]=v.useState(void 0),[y,M]=v.useState(null),[C,x]=v.useState(null),{shiftInfo:w}=na(),{state:{ladles:S}}=zj(),{state:{grades:A}}=Fte(),{control:z,setValue:O,handleSubmit:T,reset:R,formState:{errors:P}}=jn({defaultValues:xTe}),F=(L,W)=>{W!=="clickaway"&&l(!1)},N=async L=>{if(p(!0),e){const W=await dz({...L,HeatId:e});W.ok?(g("The heat was updated successfully"),b("success"),n(!0)):(g("Error, please try again"),b("error"),p(!1),x(W.message))}p(!1),l(!0)};return v.useEffect(()=>{t&&(async()=>{if(u(!0),e){const L=await vTe(e);if(L.ok){const W=At(L,"data.tables[0].rows[0]",null);W?M(W):(n(!0),g("Error, heat not found. Try again"),l(!0),M(null))}else x(L.message)}u(!1)})()},[t]),v.useEffect(()=>{if(t&&y){const{HeatId:L,Name:W,GradeId:j,LadleId:V,IsExternal:G,Shift:q,SteelWeight:$,ProductionYear:U}=y;O("HeatId",L),O("HeatName",W),O("ShiftId",At(w,"CurrentShiftId",null)),O("GradeId",j),O("SteelWeight",$),O("LadleId",V),O("IsExternal",G),O("ProductionYear",U)}},[y]),f.jsxs(f.Fragment,{children:[t&&f.jsx(yn,{title:"Edit Heat"}),f.jsx(We,{open:t,handleClose:()=>{n(!0)},id:"editHeat",title:"Update a heat",maxWidth:"sm",children:f.jsxs("form",{onSubmit:T(N),noValidate:!0,children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[c&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"},children:f.jsx(Kt,{size:"5rem"})}),!c&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsxs(D,{item:!0,md:8,xs:12,children:[f.jsx(Ue,{name:"HeatName",rules:{required:!0},control:z,render:({field:L})=>f.jsx(je,{label:"Name",value:L.value,onChange:L.onChange,variant:"outlined",error:!!P.HeatName,fullWidth:!0,margin:"dense"})}),P.HeatName?.type==="required"&&f.jsx("span",{className:r.errorLabel,children:"Name is required"})]}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"ProductionYear",control:z,render:({field:L})=>f.jsx(je,{disabled:!0,label:"Year",value:L.value,onChange:L.onChange,variant:"outlined",error:!!P.HeatName,fullWidth:!0,margin:"dense"})})})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"GradeId",control:z,render:({field:L})=>f.jsx(Ki,{id:"clear-on-escape",clearOnEscape:!0,options:A,getOptionLabel:W=>W.GradeName,onChange:(W,j)=>{L.onChange(j?j.GradeId:null)},renderInput:W=>f.jsx(je,{...W,label:"Grade",variant:"outlined",fullWidth:!0,size:"small"}),value:A.find(W=>W.GradeId===L.value)||null})})}),f.jsx(D,{item:!0,xs:4,style:{paddingTop:"4px"},children:f.jsx(Ue,{name:"SteelWeight",control:z,rules:{min:{value:Number(o),message:`Steel Weight must be at least ${o}`},max:{value:Number(a),message:`Steel Weight must be at most ${a}`}},render:({field:L})=>f.jsx(je,{type:"number",label:"Steel Weight",value:L.value,onChange:L.onChange,variant:"outlined",fullWidth:!0,margin:"dense",size:"small",error:!!P.SteelWeight,helperText:P.SteelWeight?.message})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"LadleId",control:z,render:({field:L})=>f.jsx(Ki,{options:S,getOptionLabel:W=>W.LadleName,onChange:(W,j)=>{L.onChange(j?j.LadleId:null)},renderInput:W=>f.jsx(je,{...W,label:"Ladle",variant:"outlined",fullWidth:!0,size:"small"}),value:S.find(W=>W.LadleId===L.value)||null})})})]}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsExternal",control:z,render:({field:L})=>f.jsx(So,{className:r.formControlLabel,control:f.jsx(Qr,{checked:L.value===!0,onChange:W=>L.onChange(W.target.checked),color:"primary",style:{width:"100% !important"}}),label:"External"})})})})]})})]}),!c&&f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,size:"small",variant:"contained",color:"default",onClick:()=>{n(!1)},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Ne,{fullWidth:!0,size:"small",startIcon:d?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:d,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:s,autoHideDuration:2500,onClose:F,children:f.jsx(Pr,{severity:m,onClose:F,children:h})}),f.jsx(yt,{onHide:()=>x(""),error:C})]})},M6i=e=>{const{onNewHeat:t}=e;return f.jsx("div",{style:{padding:"5px"},children:f.jsx(Ne,{variant:"contained",color:"primary",onClick:t,children:"New Heat"})})},TEt=({setHeatIdForEdit:e,setModalEditHeat:t,setHeatIdForDelete:n,setModalDeleteHeat:r,setModalCreateHeat:i})=>{const o=Oo(),a=u=>{gi(u)||o(u)},s=u=>{gi(u)||o(u)},l=u=>{gi(u)||o(u)};return{getMenuOptions:u=>{let d=[];return u?(u.HeatEAFDELink&&d.push({name:"See in EAF",key:"go_to_eaf",onClick:()=>s(u.HeatEAFDELink),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}),u.HeatNameLink&&d.push({name:"See in Caster",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>a(u.HeatNameLink),icon:f.jsx(dM,{})}),u.HeatLABLink&&d.push({name:"See in Lab",key:"go_to_heat_report",onClick:()=>l(u.HeatLABLink),icon:f.jsx("span",{className:"material-icons",style:{fontSize:"1.5em",marginLeft:"-3px"},children:"science"})}),u.HeatId&&(d=d.concat([{name:"Delete Heat",key:"delete_heat",onClick:()=>{n(u.HeatId),r(!0)},icon:f.jsx(Mo,{})},{name:"Edit Heat",key:"edit_heat",onClick:()=>{e(u.HeatId),t(!0)},icon:f.jsx(Fo,{})},{name:"New Heat",key:"new_heat",onClick:()=>{i(!0)},icon:f.jsx(Jo,{})}])),d):[{name:"New Heat",key:"new_heat",onClick:()=>i(!0),icon:f.jsx(Jo,{})}]},goToDataEntry:a,goToEAFDataEntry:s,goToHeatReport:l}},C6i=e=>{if(R9.isNil(e))return" ";switch(e){case"S":return"Scheduled";case"M":return"Melting";case"T":return"Tapped";case"O":return"OpenInCaster";case"C":return"InCaster";case"R":return"Returned";case"F":return"Finished";case"E":return"EAF";case"P":return"Closed";case"U":return"ReadyToCaster";case"X":return"External";default:return" "}},x6i={heats:[],lastestHeats:[]},lK=ki({name:"__",initialState:x6i,reducers:{setHeatsByShift(e,{payload:t}){e.heats=t},setLastestHeats(e,{payload:t}){e.lastestHeats=t}}}),EEt=v.createContext({state:lK.getInitialState(),actions:lK.actions}),REt=()=>v.useContext(EEt),w6i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:lK.getInitialState(),reducers:lK.caseReducers});return f.jsx(EEt.Provider,{value:{state:t,actions:n},children:e})},S6i=Et({colorTag:{width:"26px",height:"26px",borderRadius:4,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold"}}),A6i={Scheduled:{name:"Scheduled",color:"#0288D1",letter:"S"},Tapped:{name:"Tapped",color:"#FFD600",letter:"T"},Melting:{name:"Melting",color:"#FF7043",letter:"M"},OpenInCaster:{name:"Open in Caster",color:"#43A047",letter:"O"},InCaster:{name:"In Caster",color:"#607D8B",letter:"C"},Returned:{name:"Returned",color:"#8D6E63",letter:"R"},Finished:{name:"Finished",color:"#3F51B5",letter:"F"},EAF:{name:"In EAF",color:"#FF7043",letter:"E"},Closed:{name:"Closed but still in Caster",color:"#FF7043",letter:"P"},ReadyToCaster:{name:"Ready to Caster",color:"#FF7043",letter:"U"},External:{name:"External",color:"#484848",letter:"X"}},O6i=({status:e})=>{const t=S6i(),n=A6i[e];return n?f.jsxs(D,{container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,md:2,children:f.jsx(ls,{title:n.name,arrow:!0,children:f.jsx("div",{className:t.colorTag,style:{backgroundColor:n.color},children:n.letter})})}),f.jsx(D,{item:!0,justifyContent:"center",md:10,children:n.name})]}):null},z6i=({setHeatIdForEdit:e,setModalEditHeat:t,setHeatIdForDelete:n,setModalDeleteHeat:r,setModalCreateHeat:i,goToDataEntry:o,goToEAFDataEntry:a,goToHeatReport:s})=>{const{state:{heats:l}}=REt(),{state:{ladles:c}}=zj(),u=kk(),{showContextMenu:d,registerConfig:p}=ws(),{getMenuOptions:h}=TEt({setHeatIdForEdit:e,setModalEditHeat:t,setHeatIdForDelete:n,setModalDeleteHeat:r,setModalCreateHeat:i});v.useEffect(()=>{p({id:"meltshop-heats",getOptions:h})},[]);const g=[{headerName:"Heat",field:"HeatName",flex:1,minWidth:74},{headerName:"Status",field:"Status",flex:1,minWidth:150,maxWidth:150,cellRenderer:y=>f.jsx(O6i,{status:y.value})},{headerName:"Start",flex:1,minWidth:70,valueGetter:y=>Wn(`${y.data.Start}`,"HH:mm"),cellRenderer:y=>y.data.HeatEAFDELink?f.jsx(Td,{...y,linkProperty:"HeatEAFDELink"}):f.jsx("span",{style:{color:"black"},children:y.value})},{headerName:"Tap Time",flex:1,minWidth:80,valueGetter:y=>Wn(`${y.data.TapTime}`,"HH:mm")},{headerName:"Ladle",field:"Ladle",flex:1,minWidth:70},{headerName:"Ladle Open",flex:1,minWidth:94,valueGetter:y=>Wn(`${y.data.LadleOpen}`,"HH:mm"),cellRenderer:y=>y.data.HeatNameLink?f.jsx(Td,{...y,linkProperty:"HeatNameLink"}):f.jsx("span",{style:{color:"black"},children:y.value})},{headerName:"Ladle Close",flex:1,minWidth:96,valueGetter:y=>Wn(`${y.data.LadleClose}`,"HH:mm")},{headerName:"Grade",field:"Grade",flex:1,minWidth:79},{headerName:"Last Sample",field:"LastSample",flex:1,minWidth:90,wrapHeaderText:!0},{headerName:"EAF Time",flex:1,minWidth:90,field:"EAFTime"},{headerName:"Cast Time",flex:1,minWidth:90,field:"CastTime"},{headerName:"Mold Size",field:"MoldSizeName",flex:1,minWidth:102},{headerName:"Order",field:"HeatOrder",flex:1,minWidth:79},{headerName:"Tons",field:"CastTons",flex:1,minWidth:74,valueGetter:y=>y.data.CastTons?y.data.CastTons.toFixed(1):""},{headerName:"",flex:1,minWidth:180,field:"links",cellRenderer:y=>f.jsx("div",{className:u.buttons,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(ls,{title:"See in EAF Data Entry",arrow:!0,children:f.jsx(Ne,{fullWidth:!0,"aria-label":"EAF Page",disabled:!y.data.HeatEAFDELink,onClick:()=>{a(y.data.HeatEAFDELink)},children:f.jsx("span",{className:"material-icons",style:{color:y.data.HeatEAFDELink?"#3f51b5":"#bababa"},children:"thermostat"})})})}),f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(ls,{title:"See in Caster Data Entry",arrow:!0,children:f.jsx(Ne,{fullWidth:!0,"aria-label":"Caster Data Entry",disabled:!y.data.HeatNameLink,onClick:()=>{o(y.data.HeatNameLink)},children:f.jsx("span",{className:"material-icons",style:{color:y.data.HeatNameLink?"#3f51b5":"#bababa"},children:"memory"})})})}),f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(ls,{title:"See in Lab Report",arrow:!0,children:f.jsx(Ne,{fullWidth:!0,disabled:!y.data.HeatLABLink,"aria-label":"Lab Page",onClick:()=>{s(y.data.HeatLABLink)},children:f.jsx("span",{className:"material-icons",style:{color:y.data.HeatLABLink?"#3f51b5":"#bababa"},children:"science"})})})})]})})},{field:"Actions",flex:2,minWidth:60,maxWidth:60,cellRenderer:y=>f.jsx("div",{className:u.buttons,children:f.jsx(D,{item:!0,container:!0,justifyContent:"center",alignItems:"center",md:6,xs:6,style:{padding:"0"},children:f.jsx(Ne,{fullWidth:!0,"aria-label":"Options",title:"Options",style:{cursor:"pointer"},size:"large",onClick:M=>d(M,y.data,"meltshop-heats"),children:f.jsx(Cj,{fontSize:"inherit",color:"primary",style:{cursor:"pointer",height:"20px",width:"20px"}})})})}),headerName:" ",sortable:!1}],m={flex:1,resizable:!0,suppressHeaderMenuButton:!0};return{rowData:v.useMemo(()=>l.map(({ProcessId:y,HeatId:M,HeatName:C,Start:x,StartTap:w,HeatNameLink:S,HeatEAFDELink:A,HeatLABLink:z,LadleId:O,LadleOpen:T,LadleClose:R,GradeName:P,HeatStatusCode:F,LastSample:N,MoldSizeName:L,EAFTime:W,CastTime:j,HeatOrder:V,CastTons:G})=>{const q=c.find($=>$.LadleId===O);return{ProcessId:y,HeatName:C,HeatNameLink:S,HeatEAFDELink:A,HeatLABLink:z,Start:x,TapTime:w,Ladle:q?.LadleName,LadleOpen:T,LadleClose:R,Grade:P,Status:C6i(F),HeatId:M,LastSample:N,MoldSizeName:L,EAFTime:W?D2e(W):null,CastTime:j?D2e(j):null,HeatOrder:V,CastTons:G,Id:M}}),[l]),columnData:g,defaultColDef:m}},T6i=({isLoading:e,getHeatsByShift:t,gridRef:n})=>{const[r,i]=v.useState(!1),[o,a]=v.useState(!1),[s,l]=v.useState(!1),[c,u]=v.useState(null),[d,p]=v.useState(null),[h,g]=v.useState(null),[m,b]=v.useState(null),[y,M]=Zu();MTe();const{getMenuOptions:C,goToDataEntry:x,goToEAFDataEntry:w,goToHeatReport:S}=TEt({setHeatIdForEdit:u,setModalEditHeat:i,setHeatIdForDelete:p,setModalDeleteHeat:a,setModalCreateHeat:l}),{showContextMenu:A,registerConfig:z}=ws(),{rowData:O,columnData:T}=z6i({setHeatIdForEdit:u,setModalEditHeat:i,setHeatIdForDelete:p,setModalDeleteHeat:a,setModalCreateHeat:l,goToDataEntry:x,goToEAFDataEntry:w,goToHeatReport:S}),R=W=>{b(W.api)},P=()=>{if(!m)return;const W=m.getSelectedRows();W.length>0?(g(W[0]),M({heatId:W[0].HeatId},{replace:!0})):(g(null),M({},{replace:!0}))},F=y.get("heatId");v.useEffect(()=>{m&&(e?m.showLoadingOverlay():m.hideOverlay())},[m,e]),v.useEffect(()=>{if(!e&&m&&O&&O.length>0){const W=F;if(W){const j=m.getRowNode(W);j&&(m.deselectAll(),j?.setSelected(!0,!0),g(j.data))}}},[m,e,O]);const N={newHeatStatusBar:M6i},L={statusPanels:[{statusPanel:"newHeatStatusBar",align:"right",statusPanelParams:{onNewHeat:()=>l(!0)}}]};return v.useEffect(()=>{z({id:"heatsByShiftTable",getOptions:C})},[]),f.jsxs(f.Fragment,{children:[h&&!r&&!o&&!s&&f.jsx(yn,{title:`${h.HeatName} - Heats`}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,md:12,xs:12,style:{border:"1px solid #e0e0e0",minHeight:"65vh"},onContextMenu:W=>{W.preventDefault(),A(W,null,"heatsByShiftTable")},children:[f.jsx(b6i,{heatIdForDelete:d,show:o,onHide:W=>{a(!1),W&&t().then(()=>{})}})," ",f.jsx(y6i,{heatIdForEdit:c,show:r,onHide:W=>{i(!1),W&&t().then(()=>{})}}),f.jsx(v6i,{show:s,onHide:W=>{l(!1),W&&t().then(()=>{})}}),f.jsx($n,{onGridReady:R,rowData:O,columnDefs:T,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:W=>W.data.HeatId,onRowDoubleClicked:W=>{x(W.data.HeatNameLink)},onCellContextMenu:W=>{W.event&&A(W.event,W.data,"heatsByShiftTable")},onSelectionChanged:P,ref:n,statusBar:L,components:N})]})})]})},E6i=Et(e=>({label:{fontSize:"14px"}})),R6i=Sn(),I6i=()=>{const e=Oo(),t=E6i(),{state:{heats:n,lastestHeats:r},actions:{setHeatsByShift:i,setLastestHeats:o}}=REt(),{actions:{setLadles:a}}=zj(),{actions:{setGrades:s}}=Fte(),{shiftInfo:l,moveShift:c,getShiftDataFromAPI:u,initShiftNavigator:d}=na(),p=R6i(l?.CurrentStart).format("MM-DD-YYYY"),[h,g]=v.useState(""),[m,b]=v.useState(!0),[y,M]=Zu(),x=y.get("externalHeats")==="true",[w,S]=v.useState(x),[A,z]=v.useState(!0),{shiftId:O}=ds(),T=v.useRef(null),R=V=>{V.preventDefault()},P=async V=>{b(!0);const G=At(V||l,"CurrentShiftId",null),q=await BEi(Number(G),null,w);q.ok?i(q.data.tables[0].rows):g(q.message),b(!1)},F=async()=>{b(!0);const V=await jEi(w);if(V.ok){const G=At(V,"data.tables[0].rows",null);o(G)}else g(V.message);b(!1)},N=V=>{const G=V.target.checked;S(G);const q=new URLSearchParams(y.toString());G?q.set("externalHeats","true"):q.delete("externalHeats"),M(q)},L=async V=>{if(V.length>=3){const G=await HEi(V,w);return G.ok?At(G,"data.tables[0].rows",null):(g(G.message),[])}else return r},W=async()=>{const[V,G]=await Promise.all([VEi(),W3t()]);V.ok?a(V.data?.tables[0].rows):g(V.message),G.ok?s(G.data.tables[0].rows):g(G.message)},j=()=>{if(T.current&&T.current.api){const V={skipHeader:!1,skipFooters:!0,skipGroups:!0,fileName:`Heats-${p}.xlsx`,sheetName:"Heats by shift",processCellCallback:G=>G.value??""};T.current.api.exportDataAsExcel(V)}else g("Unable to export data. Please try again.")};return v.useEffect(()=>{if(l&&!A){const V=At(l,"CurrentShiftId",null),G=new URLSearchParams(y.toString());w?G.set("externalHeats","true"):G.delete("externalHeats"),e(`/meltshop-heats/${V}?${G.toString()}`),(async()=>(await P(),await F()))()}},[l,w]),v.useEffect(()=>{O?(async()=>{const V=Number(O);u(null,V).then(async G=>{G&&W().then(()=>{P(G).then(()=>{F(),z(!1)})})})})():(async()=>u(null,0).then(async V=>{V&&W().then(()=>{P(V).then(()=>{F(),z(!1)})})}))()},[]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Heats"}),f.jsxs("div",{onContextMenu:R,children:[f.jsx(Pt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Heats"})})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(qm,{preventInit:!0}),f.jsx(Pt,{style:{minWidth:"550px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsxs(D,{item:!0,container:!0,xs:12,spacing:2,justifyContent:"flex-start",alignItems:"center",style:{marginLeft:"10px"},children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(lTt,{heats:r,getHeats:L,loading:m,onBlur:()=>{},onChange:V=>{const G=new URLSearchParams;V.Id&&G.set("heatId",V.Id.toString()),w&&G.set("externalHeats","true");const q=G.toString();window.location.href=`/meltshop-heats/${V.ShiftId}?${q}`}})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(OD,{children:f.jsx(So,{control:f.jsx(Qr,{checked:w,color:"primary",onChange:N}),label:"Show external heats",classes:{label:t.label}})})})]})}),f.jsx(D,{item:!0,xs:"auto",style:{marginLeft:"auto"},children:f.jsx(pT,{onClick:j})})]})}),f.jsx(T6i,{isLoading:m,getHeatsByShift:P,gridRef:T})]})})}),f.jsx(yt,{error:h,onHide:()=>g("")})]})]})},tJe=()=>f.jsx(w6i,{children:f.jsx(m6i,{children:f.jsx(f6i,{children:f.jsx(I6i,{})})})}),P6i=async()=>await new Ye().callV2("[MS].[GetLadleStatus]",[]),D6i=()=>f.jsxs(D,{container:!0,alignItems:"center",spacing:2,style:{padding:"10px 10px"},children:[f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:15,height:15,borderRadius:"50%",backgroundColor:"#4caf50",border:"1px solid rgba(0,0,0,0.2)"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Used in 2 days"})})]})}),f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:15,height:15,borderRadius:"50%",backgroundColor:"#ffd700",border:"1px solid rgba(0,0,0,0.2)"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Used in 5 days"})})]})}),f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:15,height:15,borderRadius:"50%",backgroundColor:"#a0a0a0",border:"1px solid rgba(0,0,0,0.2)"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Not used in 5 days"})})]})})]}),k6i=e=>{const t=()=>{if(!e.value?.lastTappedDate)return"#a0a0a0";const r=e.value.diffDays;return r<=2?"#4caf50":r<=5?"#ffd700":"#a0a0a0"},n=()=>{if(!e.value?.lastTappedDate)return"Ladle not used in the last 5 days";const r=e.value.diffDays;return r<=2?"Ladle used in the last 2 days":r<=5?"Ladle used in the last 5 days":"Ladle not used in the last 5 days"};return f.jsx("div",{title:n(),style:{width:"15px",height:"15px",borderRadius:"50%",backgroundColor:t(),margin:"auto",border:"1px solid  rgb(144, 144, 144)"}})},L6i=({ladleStatus:e})=>{const t=v.useRef(null),[n,r]=v.useState([]);MTe();const{state:i}=Ma(),o=At(i,"LADLE_STATUS_MAX_HEAT_COUNTS",100),a=At(i,"LADLE_STATUS_MAX_CONTACT_TIME",1e4),s=p=>{if(!p.data.LastTappedDateTime)return{lastTappedDate:null};const h=Sn()(),g=Sn()(p.data.LastTappedDateTime),m=h.diff(g,"days");return{lastTappedDate:p.data.LastTappedDateTime,diffDays:m}},l=p=>{if(!p.value||p.value===null)return"";const h=Number(p.value);if(isNaN(h))return"";const g=Math.floor(h/60),m=h%60;return`${g}:${m.toString().padStart(2,"0")}`},c=p=>{const{FirstHeatDateTime:h,LastTappedDateTime:g}=p.data;if(!h||!g)return"";const m=Sn()(h),b=Sn()(g);if(!m.isValid()||!b.isValid())return"";const y=b.diff(m,"days");return y>=0?y.toString():""},u={statusBarReference:D6i},d={statusPanels:[{statusPanel:"statusBarReference",align:"left"}]};return v.useMemo(()=>({sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0}),[]),v.useEffect(()=>{r([{field:"status",headerName:"Status",minWidth:70,maxWidth:70,cellRenderer:k6i,valueGetter:s,cellStyle:{padding:"0px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center"}},{field:"LadleName",headerName:"Ladle",minWidth:100,maxWidth:100,flex:1},{field:"HeatCount",headerName:"Total Heats",cellClassRules:{"max-limit":p=>Number(p.value)>o},minWidth:100,flex:1},{field:"TotalContactTime",headerName:"Total Contact [hhh:mm]",minWidth:180,flex:1,wrapHeaderText:!0,valueFormatter:l,cellClassRules:{"max-limit":p=>Number(p.value)>a},headerStyle:{textAlign:"center"}},{field:"FirstHeatName",headerName:"First Heat Number",minWidth:140,flex:1},{field:"LastTappedHeatName",headerName:"Last Tapped Heat Number",minWidth:200,flex:1},{field:"FirstHeatDateTime",headerName:"First Heat Date",minWidth:140,flex:1,valueFormatter:p=>Wn(p.value,"MM/dd/yy HH:mm:ss")},{field:"LastTappedDateTime",headerName:"Last Tap Date",minWidth:140,flex:1,valueFormatter:p=>Wn(p.value,"MM/dd/yy HH:mm:ss")},{field:"days",headerName:"Days",minWidth:80,flex:1,valueGetter:c,cellStyle:{textAlign:"center"}}])},[]),f.jsx(D,{container:!0,style:{width:"100%",display:"flex"},children:f.jsx(D,{item:!0,md:12,xs:12,style:{height:"78vh",minHeight:"37vh",width:"100%",border:"1px solid #e0e0e0",margin:"20px 0 10px"},children:f.jsx($n,{ref:t,rowData:e,columnDefs:n,rowHeight:33,headerHeight:32,animateRows:!0,suppressContextMenu:!0,suppressRowHoverHighlight:!0,statusBar:d,components:u})})})},_6i=()=>{const[e,t]=v.useState(!0),[n,r]=v.useState(""),[i,o]=v.useState(),a=async()=>{t(!0);try{const s=await P6i();if(s.ok){const l=s.data.tables[0];o(l.rows),t(!1)}else t(!1),r(s.message)}catch(s){r(s)}};return v.useEffect(()=>{a()},[]),e?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Ladle Status"}),f.jsx(Op,{open:e}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{backgroundColor:"#F2F4F7"},children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0,padding:"15px"},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Ladle Status"})})}),f.jsx(D,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",item:!0,md:12,xs:12,children:f.jsx(L6i,{ladleStatus:i})})]})}),f.jsx(yt,{error:n,onHide:()=>r("")})]})},N6i=e=>f.jsx(_6i,{}),F6i=async e=>{const t=[];return e&&t.push({name:"GradeId",value:e}),await new Ye().callV2("[SWV].[GetMonthlyReport]",t)},W6i=({rows:e,columnDefs:t,defaultColDef:n})=>{const[r,i]=v.useState(null),{columnDefaults:o,columnTypes:a}=ku({OnEdit:s=>{}});return o.floatingFilter=!1,MTe(),f.jsx(D,{container:!0,style:{width:"100%",display:"flex"},children:f.jsx(D,{item:!0,md:12,xs:12,style:{height:"37vh",minHeight:"37vh",border:"1px solid #e0e0e0",width:"100%",borderRadius:10},children:f.jsx($n,{rowSelection:"single",defaultColDef:n,rowData:e||[],columnDefs:t,columnTypes:a,onGridReady:s=>i(s.api),rowHeight:35})})})},bR=e=>[1,2,3].includes(e.node.rowIndex)?(e.value/2e3).toLocaleString("en-US",{minimumFractionDigits:1,maximumFractionDigits:1}):e.value,q6i=e=>{const t=new Date,n=t.toLocaleString("en-US",{month:"long"}),i=new Date(t.getFullYear(),t.getMonth()-1).toLocaleString("en-US",{month:"long"}),o={CurrentMonth:{Year:t.getFullYear().toString(),Month:(t.getMonth()+1).toString(),Assets:{},Total:{Heats:0,ScrapsUsage:0,CastedTons:0,ScrapGenerated:0}},PreviousMonth:{Year:t.getFullYear().toString(),Month:t.getMonth().toString(),Assets:{},Total:{Heats:0,ScrapsUsage:0,CastedTons:0,ScrapGenerated:0}},YearToDate:{Year:t.getFullYear().toString(),Assets:{},Total:{Heats:0,ScrapsUsage:0,CastedTons:0,ScrapGenerated:0}}};e.forEach(c=>{const{EAF:u,Year:d,Month:p}=c;d===t.getFullYear()&&p===t.getMonth()+1&&u!==null&&(o.CurrentMonth.Assets[u]={Heats:c?.Heats??0,ScrapsUsage:c?.ScrapUsage??0,CastedTons:c?.CastTons??0,ScrapGenerated:c?.CastScrap??0},o.CurrentMonth.Total.Heats+=o.CurrentMonth.Assets[u].Heats,o.CurrentMonth.Total.ScrapsUsage+=o.CurrentMonth.Assets[u].ScrapsUsage,o.CurrentMonth.Total.CastedTons+=o.CurrentMonth.Assets[u].CastedTons,o.CurrentMonth.Total.ScrapGenerated+=o.CurrentMonth.Assets[u].ScrapGenerated),d===t.getFullYear()&&p===t.getMonth()&&u!==null&&(o.PreviousMonth.Assets[u]={Heats:c?.Heats??0,ScrapsUsage:c?.ScrapUsage??0,CastedTons:c?.CastTons??0,ScrapGenerated:c?.CastScrap??0},o.PreviousMonth.Total.Heats+=o.PreviousMonth.Assets[u].Heats,o.PreviousMonth.Total.ScrapsUsage+=o.PreviousMonth.Assets[u].ScrapsUsage,o.PreviousMonth.Total.CastedTons+=o.PreviousMonth.Assets[u].CastedTons,o.PreviousMonth.Total.ScrapGenerated+=o.PreviousMonth.Assets[u].ScrapGenerated),u!==null&&(o.YearToDate.Assets[u]||(o.YearToDate.Assets[u]={Heats:0,ScrapsUsage:0,CastedTons:0,ScrapGenerated:0}),o.YearToDate.Assets[u].Heats+=c?.Heats??0,o.YearToDate.Assets[u].ScrapsUsage+=c?.ScrapUsage??0,o.YearToDate.Assets[u].CastedTons+=c?.CastTons??0,o.YearToDate.Assets[u].ScrapGenerated+=c?.CastScrap??0,o.YearToDate.Total.Heats+=c?.Heats??0,o.YearToDate.Total.ScrapsUsage+=c?.ScrapUsage??0,o.YearToDate.Total.CastedTons+=c?.CastTons??0,o.YearToDate.Total.ScrapGenerated+=c?.CastScrap??0)});const a=[{headerName:"",flex:2,field:"rowDef"},{headerName:`Current Month - ${n} ${t.getFullYear()}`,children:[...Object.keys(o.YearToDate.Assets).map(c=>({field:`${c}-CM`,headerName:c,flex:1,type:["numericColumn","numericWidth"],valueFormatter:bR,cellClass:"month-report"})),{field:"Total-CM",headerName:"Total",flex:1,type:["numericColumn","numericWidth"],cellClass:"month-report",valueFormatter:bR}]},{headerName:`Previous Month - ${i} ${t.getFullYear()}`,children:[...Object.keys(o.YearToDate.Assets).map(c=>({field:`${c}-PM`,headerName:c,flex:1,type:["numericColumn","numericWidth"],valueFormatter:bR})),{field:"Total-PM",headerName:"Total",flex:1,type:["numericColumn","numericWidth"],valueFormatter:bR}]},{headerName:`Year To Date - ${t.getFullYear()}`,children:[...Object.keys(o.YearToDate.Assets).map(c=>({field:`${c}-YD`,headerName:c,flex:1,type:["numericColumn","numericWidth"],valueFormatter:bR})),{field:"Total-YD",headerName:"Total",flex:1,type:["numericColumn","numericWidth"],valueFormatter:bR}]}],s=[{rowDef:"Heat Count","EAF1-CM":o.CurrentMonth.Assets.EAF1?.Heats??0,"EAF2-CM":o.CurrentMonth.Assets.EAF2?.Heats??0,"Total-CM":o.CurrentMonth.Total.Heats,"EAF1-PM":o.PreviousMonth.Assets.EAF1?.Heats??0,"EAF2-PM":o.PreviousMonth.Assets.EAF2?.Heats??0,"Total-PM":o.PreviousMonth.Total.Heats,"EAF1-YD":o.YearToDate.Assets.EAF1?.Heats??0,"EAF2-YD":o.YearToDate.Assets.EAF2?.Heats??0,"Total-YD":o.YearToDate.Total.Heats},{rowDef:"EAF Charged Scrap","EAF1-CM":o.CurrentMonth.Assets.EAF1?.ScrapsUsage??0,"EAF2-CM":o.CurrentMonth.Assets.EAF2?.ScrapsUsage??0,"Total-CM":o.CurrentMonth.Total.ScrapsUsage,"EAF1-PM":o.PreviousMonth.Assets.EAF1?.ScrapsUsage??0,"EAF2-PM":o.PreviousMonth.Assets.EAF2?.ScrapsUsage??0,"Total-PM":o.PreviousMonth.Total.ScrapsUsage,"EAF1-YD":o.YearToDate.Assets.EAF1?.ScrapsUsage??0,"EAF2-YD":o.YearToDate.Assets.EAF2?.ScrapsUsage??0,"Total-YD":o.YearToDate.Total.ScrapsUsage},{rowDef:"Total Cast Tons","EAF1-CM":o.CurrentMonth.Assets.EAF1?.CastedTons??0,"EAF2-CM":o.CurrentMonth.Assets.EAF2?.CastedTons??0,"Total-CM":o.CurrentMonth.Total.CastedTons,"EAF1-PM":o.PreviousMonth.Assets.EAF1?.CastedTons??0,"EAF2-PM":o.PreviousMonth.Assets.EAF2?.CastedTons??0,"Total-PM":o.PreviousMonth.Total.CastedTons,"EAF1-YD":o.YearToDate.Assets.EAF1?.CastedTons??0,"EAF2-YD":o.YearToDate.Assets.EAF2?.CastedTons??0,"Total-YD":o.YearToDate.Total.CastedTons},{rowDef:"Caster Scrap Tons","EAF1-CM":o.CurrentMonth.Assets.EAF1?.ScrapGenerated??0,"EAF2-CM":o.CurrentMonth.Assets.EAF2?.ScrapGenerated??0,"Total-CM":o.CurrentMonth.Total.ScrapGenerated,"EAF1-PM":o.PreviousMonth.Assets.EAF1?.ScrapGenerated??0,"EAF2-PM":o.PreviousMonth.Assets.EAF2?.ScrapGenerated??0,"Total-PM":o.PreviousMonth.Total.ScrapGenerated,"EAF1-YD":o.YearToDate.Assets.EAF1?.ScrapGenerated??0,"EAF2-YD":o.YearToDate.Assets.EAF2?.ScrapGenerated??0,"Total-YD":o.YearToDate.Total.ScrapGenerated}],l={wrapText:!0,resizable:!0,wrapHeaderText:!0,autoHeaderHeight:!0,minWidth:50,filter:!1,floatingFilter:!1,sortable:!1,editable:!1,suppressHeaderMenuButton:!0};return Object.keys(o.YearToDate.Assets).length===0?{columnDefs:[{headerName:"",flex:1,field:"rowDef"}],rowsForTable:[{rowDef:"No data to show"}],defaultColDef:l}:{columnDefs:a,rowsForTable:s,defaultColDef:l}},B6i=Et(e=>({root:{"& .ag-theme-balham .ag-row .ag-cell:nth-of-type(2)":{backgroundColor:"#5e9bc021"},"& .ag-theme-balham .ag-row .ag-cell:nth-of-type(3)":{backgroundColor:"#5e9bc021"},"& .ag-theme-balham .ag-row .ag-cell:nth-of-type(4)":{backgroundColor:"#5e9bc021"},"& .ag-theme-balham .ag-row .ag-cell":{borderBottom:"0.5px solid #bdc3c7 !important"}}})),j6i=()=>{const[e,t]=v.useState(!0),[n,r]=v.useState(0),[i,o]=v.useState(""),[a,s]=v.useState(),[l,c]=v.useState(),[u,d]=v.useState({}),p=async()=>{t(!0);try{const g=await F6i(n);if(g.ok){const m=g.data.tables[0].rows,{columnDefs:b,rowsForTable:y,defaultColDef:M}=q6i(m);d(M),c(b),s(y),t(!1)}else t(!1),o(g.message)}catch(g){o(g)}};v.useEffect(()=>{p()},[n]);const h=B6i();return e?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Month Report"}),f.jsx(Op,{open:e}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{backgroundColor:" #F2F4F7"},children:f.jsxs(D,{item:!0,container:!0,md:12,xs:12,style:{margin:0,padding:"15px"},spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Month Report"})}),f.jsx(D,{item:!0,xs:2,children:f.jsx(Pt,{children:f.jsx(Tn,{padding:1,children:f.jsx(Y3t,{onChange:g=>{r(g||0)},value:n,label:!0})})})}),f.jsx(D,{container:!0,className:h.root,item:!0,md:12,xs:12,children:f.jsx(W6i,{rows:a,columnDefs:l,defaultColDef:u})})]})}),f.jsx(yt,{error:i,onHide:()=>o("")})]})},H6i=e=>f.jsx(j6i,{}),V6i=[f.jsx(ar,{path:"/meltshop-dashboard",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(eJe,{})})}),f.jsx(ar,{path:"/meltshop-dashboard/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(eJe,{})})}),f.jsx(ar,{path:"/meltshop-heats",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(tJe,{})})}),f.jsx(ar,{path:"/meltshop-heats/:shiftId",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(tJe,{})})}),f.jsx(ar,{path:"/month-report",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(H6i,{})})}),f.jsx(ar,{path:"/ladle-status",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(N6i,{})})})],G6i="modulepreload",$6i=function(e,t){return new URL(e,t).href},nJe={},wTe=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=c(n.map(u=>{if(u=$6i(u,r),u in nJe)return;nJe[u]=!0;const d=u.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const b=a[m];if(b.href===u&&(!d||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${p}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":G6i,d||(g.as="script"),g.crossOrigin="",g.href=u,l&&g.setAttribute("nonce",l),document.head.appendChild(g),d)return new Promise((m,b)=>{g.addEventListener("load",m),g.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},U6i={isLoadingPage:!1,isLoadingBackground:!1,errorMessage:"",notificationMessage:"",details:[]},cK=ki({name:"__",initialState:U6i,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setDetails(e,{payload:t}){e.details=t}}}),IEt=v.createContext({state:cK.getInitialState(),actions:cK.actions}),PEt=()=>v.useContext(IEt),X6i=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:cK.getInitialState(),reducers:cK.caseReducers});return f.jsx(IEt.Provider,{value:{state:t,actions:n},children:e})},Y6i=async()=>{const e=new Ye,t=[];return await e.callV2("[SWV].[GetHealthStatus]",t)},K6i=Et(e=>({tableContainer:{maxHeight:"300px",overflowY:"auto",display:"block",width:"100%",borderCollapse:"collapse"},simpleCellHeader:{padding:"0.275rem 0.45rem",fontSize:"0.75rem",backgroundColor:"#ced2cc   !important",border:"1px solid #ced4da",color:"#495057",textAlign:"center"},simpleCellText:{padding:"0.275rem 0.45rem",fontSize:"0.75rem",borderRadius:"0px",height:"35px",whiteSpace:"nowrap"},simpleCellCheckBox:{border:"1px solid #ced4da",textAlign:"center",margin:"auto",height:"2.7rem"},simpleCellNumeric:{fontSize:"0.75rem",borderRadius:"0px",padding:"0px 0.6rem",height:"35px",minWidth:"30px",textAlign:"right"}})),Q2=({columns:e,headers:t,widths:n=[],data:r})=>{const i=K6i();return f.jsxs("table",{cellPadding:0,cellSpacing:0,className:i.tableContainer,children:[f.jsx("thead",{children:f.jsx("tr",{children:t.map((o,a)=>f.jsx("th",{className:i.simpleCellHeader,style:{width:n[a]??"100%"},children:o},a))})}),f.jsx("tbody",{children:r.map((o,a)=>f.jsx("tr",{children:e.map((s,l)=>f.jsx("td",{children:f.jsx("input",{type:"text",readOnly:!0,className:"form-control "+i.simpleCellText,value:o[s]||""})},l))},a))})]})},Q6i=()=>{const{state:e}=PEt();return f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"flex-start",spacing:3,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[0]??[]).columns||[],data:(e.details[0]??[]).rows||[],headers:["Grade","Count","Examples"],widths:["20%","10%","70%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[1]??[]).columns||[],data:(e.details[1]??[]).rows||[],headers:["Section","Count","Examples"],widths:["20%","10%","70%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[2]??[]).columns||[],data:(e.details[2]??[]).rows||[],headers:["Heat","Count","Examples"],widths:["20%","10%","70%"]})})]})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"flex-start",spacing:3,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,xs:12,sm:12,md:8,lg:8,children:f.jsx(Q2,{columns:(e.details[3]??[]).columns||[],data:(e.details[3]??[]).rows||[],headers:["Source","Count","Examples"],widths:["10%","5%","85%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[4]??[]).columns||[],data:(e.details[4]??[]).rows||[],headers:["Grade","Count","Examples"],widths:["20%","10%","70%"]})})]})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"flex-start",spacing:3,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[5]??[]).columns||[],data:(e.details[5]??[]).rows||[],headers:["Section","Count","Examples"],widths:["20%","10%","70%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:8,lg:8,children:f.jsx(Q2,{columns:(e.details[6]??[]).columns||[],data:(e.details[6]??[]).rows||[],headers:["Heat","Sample","Count","Examples"],widths:["10%","10%","5%","75%"]})})]})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"flex-start",spacing:3,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,xs:12,sm:12,md:8,lg:8,children:f.jsx(Q2,{columns:(e.details[7]??[]).columns||[],data:(e.details[7]??[]).rows||[],headers:["Heat","Sample","Date","Start","End"],widths:["10%","10%","20%","20%","20%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[8]??[]).columns||[],data:(e.details[8]??[]).rows||[],headers:["Heat","Section","Seq.","Date","Count","Examples"],widths:["10%","10%","10%","20%","10%","40%"]})})]})})]})},Z6i=e=>{const{state:t,actions:n}=PEt(),r=async()=>{n.setIsLoadingBackground(!0);const i=await Y6i();if(i.ok){if(i.data.errorMessage){n.setErrorMessage(i.data.errorMessage);return}n.setDetails(i.data?.tables||{})}else n.setErrorMessage(i.message);n.setIsLoadingBackground(!1)};return v.useEffect(()=>{console.log(t.details)},[t.details]),v.useEffect(()=>{r()},[]),t.isLoadingPage?f.jsx(Cn,{}):f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0,padding:"15px 15px 15px 5px"},container:!0,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"flex-start",spacing:1,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,md:10,xs:8,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:"Health Status"})}),f.jsx(Q6i,{})]})}),f.jsx(yt,{error:t.errorMessage,onHide:()=>n.setErrorMessage("")})]})})},J6i=e=>f.jsx(X6i,{children:f.jsx(Z6i,{})}),eBi=async e=>{const t=new Ye,n=[];return n.push({name:"Code",value:e}),await t.callV2("[MES].[GetReport]",n)},tBi=async(e,t)=>{const n=new Ye,r=[];return e.showStartDate&&r.push({name:"StartDate",value:e.startDate}),e.showEndDate&&r.push({name:"EndDate",value:e.endDate}),Object.keys(e).forEach(i=>{i!=="startDate"&&i!=="endDate"&&i!=="showStartDate"&&i!=="showEndDate"&&r.push({name:i,value:e[i]===""?null:e[i]})}),await n.callV2(t,r)},nBi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,reportParameters:[],reportCode:null,reportInfo:null,reportMetadataFilters:null,filterSources:null},uK=ki({name:"__",initialState:nBi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setReportParameters(e,{payload:t}){e.reportParameters=t},setReportCode(e,{payload:t}){e.reportCode=t},setReportInfo(e,{payload:t}){e.reportInfo=t},setReportMetadataFilters(e,{payload:t}){e.reportMetadataFilters=t},setFilterSources(e,{payload:t}){e.filterSources=t}}}),DEt=v.createContext({state:uK.getInitialState(),actions:uK.actions}),STe=()=>v.useContext(DEt),rBi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:uK.getInitialState(),reducers:uK.caseReducers}),r=ds(),i=()=>{const a=[];for(const[s,l]of Object.entries(r))l!==void 0&&a.push(l);return a},[o]=v.useState(i());return v.useEffect(()=>{(async()=>n.setReportParameters(o))()},[o]),v.useEffect(()=>{(async()=>t.reportParameters[0]!==void 0&&t.reportParameters[0]!==null&&t.reportParameters[0]!==""&&n.setReportCode(t.reportParameters[0]))()},[t.reportParameters]),f.jsx(DEt.Provider,{value:{state:t,actions:n},children:e})},iBi=({settings:e})=>f.jsx(D,{item:!0,container:!0,xs:6,alignItems:"center",justifyContent:"center",children:f.jsx(Pt,{style:{display:"flex",justifyContent:"center",padding:"9px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{fullWidth:!0,size:"small",disabled:!0,label:"B3ratio",variant:"outlined",value:`${e.SLAG_REPORT_B3RATIO_MIN} – ${e.SLAG_REPORT_B3RATIO_MAX}`,style:{minWidth:"50px"}})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{fullWidth:!0,size:"small",disabled:!0,label:"%MgO",variant:"outlined",value:`${e.SLAG_REPORT_MGO_MIN} – ${e.SLAG_REPORT_MGO_MAX}`,style:{minWidth:"50px"}})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{fullWidth:!0,size:"small",disabled:!0,label:"%FeO",variant:"outlined",value:`≤ ${e.SLAG_REPORT_FEO_MAX}`,style:{minWidth:"50px"}})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{fullWidth:!0,size:"small",disabled:!0,label:"%Total",variant:"outlined",value:`≥ ${e.SLAG_REPORT_TOTAL_MIN}`,style:{minWidth:"50px"}})})]})})}),oBi=Et(e=>({selectorAlignment:{"& .MuiSelect-root":{display:"flex",alignItems:"center"}}})),j5=Sn(),aBi=({metadataFilters:e,filters:t,filterSources:n,updateFilters:r,onExcelExport:i})=>{const o=oBi(),{state:{settings:a}}=Ma(),{state:s}=STe(),l=s.reportCode==="mes-lab-slag-samples",c=e.filter(m=>m.Parameter!=="IncludeExternal"),u=c.length===1?12:6,d=c.length===1?2:3,p=j5(t.startDate).isAfter(t.endDate),h=m=>{const b=[];return n[m]?.forEach(y=>{b.push({id:y.Id,description:y.Name})}),b},g=(m,b)=>{const y={...t};y[b]=m,r(y)};return f.jsx(D,{container:!0,spacing:2,style:{margin:"10px 0px 3px 0px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsxs(D,{container:!0,spacing:2,alignItems:"center",children:[t.showStartDate&&t.showEndDate&&f.jsx(Pt,{style:{display:"flex",justifyContent:"center",padding:"10px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(_f,{label:"Start",format:"MM/DD/YYYY",value:j5(t.startDate),onChange:m=>{m&&g(m.toDate(),"startDate")},disableFuture:!0,maxDate:j5(t.endDate),slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px"}},error:p,helperText:p?"Start must be before end":""}}})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(_f,{label:"End",format:"MM/DD/YYYY",value:j5(t.endDate),onChange:m=>{m&&g(m.toDate(),"endDate")},disableFuture:!0,minDate:j5(t.startDate),slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px"}}}}})})]})}),e.some(m=>m.Parameter==="IncludeExternal")&&f.jsx(D,{item:!0,children:f.jsx(OD,{children:f.jsx(So,{control:f.jsx(Qr,{checked:!!t.IncludeExternal,color:"primary",onChange:m=>{g(m.target.checked,"IncludeExternal")}}),label:"Include external tests"})})}),l?f.jsx(iBi,{settings:a}):!l&&e.filter(m=>m.Parameter!=="IncludeExternal").length>0&&f.jsx(D,{item:!0,xs:12,md:d,children:f.jsx(Pt,{style:{padding:"8px"},className:o.selectorAlignment,children:f.jsx(D,{container:!0,spacing:2,alignItems:"center",children:c.map((m,b)=>f.jsx(D,{item:!0,xs:12,md:u,children:f.jsx(L2i,{title:m.FilterName,dataSource:h(b),onChange:y=>g(y,m.Parameter),selectedValue:t[m.Parameter],styleList:{width:"100%"}})},`grid_${b}`))})})}),f.jsx(D,{item:!0,style:{marginLeft:"auto",marginRight:"20px"},children:f.jsx(pT,{onClick:i})})]})})})},sBi=Et(e=>({root:{"& .ag-header":{},"& .ag-header-cell":{},"& .ag-cell-label-container":{padding:"0px !important"},"& .ag-header-cell-text":{margin:"auto !important"},"& .ag-menu":{},"& .cell-number":{textAlign:"right !important"},"& .cell-string":{textAlign:"left !important"},"& .red":{color:"red"},"& .ag-cell":{fontSize:"12px !important",padding:"0.5rem !important"},"& .error-limit":{color:"#fff",backgroundColor:"#f07171",fontWeight:600},"& .stripe-header ":{color:"#fff"},"& .ag-drag-handle":{},"& .ag-right-aligned-cell":{},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .custom-tooltip":{width:"170px",minHeight:"50px",border:"1px solid cornflowerblue",overflow:"hidden"},"& .custom-tooltip p":{margin:"5px",whiteSpace:"pre-line",wordWrap:"break-word"},"& .custom-tooltip span:first-of-type":{fontWeight:"bold"},"& .cell-alert":{backgroundColor:"#FF0000 !important",color:"#ffffff !important"},"& .cell-success":{backgroundColor:"#00B050 !important",color:"#ffffff !important"}},btnModal:{display:"flex",justifyContent:"flex-end"},footerTitle:{width:220,padding:"8px 0",textAlign:"center",backgroundColor:"#eee",borderBottom:"solid 1px #babfc7",borderLeft:"solid 1px #babfc7"},footerContainer:{backgroundColor:"#fff",height:"45px"},footerItem:{width:70,padding:"8px 0",textAlign:"center",backgroundColor:"#eee",borderBottom:"solid 1px #babfc7"},footerTextItem:{fontSize:12,verticalAlign:"middle"},footerTextTitle:{fontSize:12,verticalAlign:"middle",fontWeight:700}})),yR=Sn(),lBi=({headers:e,rows:t,gridRef:n,refreshData:r,loading:i})=>{sBi();const{state:o}=STe(),a=o.reportCode==="mes-lab-slag-samples",s=o.reportCode==="mes-lab-mechanical-activity",[l,c]=v.useState([]),[u,d]=v.useState(null),p=M=>{if(M.value===null||M.value===void 0)return"";if(o.reportCode==="mes-report-predictor"&&M.colDef?.field==="value"){const x=M.data;if(x&&typeof x.decimals=="number"){const w=parseFloat(M.value),S=x.decimals;if(!isNaN(w)&&!isNaN(S))return w.toFixed(S).replace(/\.?0+$/,"")}}const C=M.value.toString().split("%%%");return C.length>0?C[0]:""},h=(M,C)=>{let x=C+" ag-cell-center";if(!M.value)return x;const w=M.value.toString().split("%%%");if(w.length>2){const S=w[2].trim();return`${x} ${S}`}return x},g=({value:M,showTooltip:C,color:x})=>C?f.jsx("div",{style:{backgroundColor:x},children:M}):null,m=M=>{const C=M.indexOf("pixel-");if(C===-1)return 0;let x=M.indexOf(" ",C);x===-1&&(x=M.length);const w=M.substring(C+6,x);return parseInt(w)},b=async M=>{await r(),d(M.api),M.api.sizeColumnsToFit()},y=v.useMemo(()=>({width:"100%",padding:"0px",height:"75vh",border:"1px solid #ccc",borderRadius:"4px"}),[]);return v.useEffect(()=>{u&&u.sizeColumnsToFit()},[u,l]),v.useMemo(()=>{const M=[];e.slice().sort((C,x)=>C.Order-x.Order).forEach(C=>{const x={field:C.ColumnData,headerName:C.ColumnName,headerClass:C.HeaderClass,minWidth:m(C.HeaderClass),resizable:!0,...a&&{cellClassRules:{"cell-alert":w=>w.value?.includes("cell-alert"),"cell-success":w=>w.value?.includes("cell-success")}},valueFormatter:w=>p(w),valueGetter:w=>{const S=At(w.data,C.ColumnData,"_");return C.Type===10&&yR.utc(S).isValid()?Wn(yR(S).toDate(),"MM/dd/yyyy"):C.Type===11&&yR.utc(S).isValid()?Wn(yR.utc(S).toDate(),"HH:mm:ss"):C.Type===12&&yR.utc(S).isValid()?Wn(yR.utc(S).toDate(),"HH:mm:ss - MM/dd/yyyy"):w.data[C.ColumnData]},cellClass:w=>h(w,C.CellClass),tooltipComponent:g,tooltipField:C.ColumnData,tooltipComponentParams:{color:"#ececec"}};C.ColumnData==="StatusCode"&&(x.cellRenderer=w=>{{const{value:S}=w,A=()=>{const z={display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"4px",fontWeight:"bold",cursor:"pointer"};return S==="V"?{...z,backgroundColor:"#4caf50",color:"white"}:S==="I"?{...z,backgroundColor:"#f44336",color:"white"}:{...z,backgroundColor:"#9e9e9e",color:"white"}};return f.jsx("div",{style:A(),title:S==="V"?"Valid":"Invalid",children:S})}}),C.ColumnData==="Heat"&&(x.cellRenderer=w=>s?Td({...w,link:`/lab-mechanical-by-heat/${w.data.Heat}`}):w.value),C.ColumnData==="Asset"&&(x.cellRenderer=w=>(w.value,f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(_te,{value:w.value})})),x.cellClass=w=>w.data.Asset?`eaf-1${w.data.Asset[w.data.Asset.length-1]}`:""),M.push(x)}),c(M)},[e,a]),n.current=u,f.jsx(D,{container:!0,justifyContent:"flex-start",alignItems:"stretch",children:f.jsx(D,{item:!0,style:y,xs:12,md:12,children:f.jsx($n,{onGridReady:b,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,loading:i,columnDefs:l,onGridSizeChanged:M=>{M.api.sizeColumnsToFit()}})})})},PN=Sn(),rJe=(e,t)=>{const n=PN(e).startOf("day");return t||n.endOf("day"),n.toDate()},cBi=()=>{const{state:e,actions:t}=STe(),{state:{settings:n}}=Ma(),[r,i]=v.useState(null),o=v.useRef(null),[a,s]=v.useState(null),l=e.reportCode==="mes-lab-slag-samples",c=e.reportCode==="mes-lab-last-eaf-samples",u=At(n,"LAST_EAF_SAMPLES_NUMBER_OF_HEATS",20),[d,p]=v.useState([]),[h,g]=v.useState(!1),[m,b]=v.useState(""),[y,M]=v.useState({startDate:PN.utc().subtract(1,"days").toDate(),endDate:PN.utc().toDate(),showStartDate:!1,showEndDate:!1,IncludeExternal:!1,onLoad:!1}),C=O=>{M(O)},x=()=>{const O=location.pathname.split("/");let T=(O[0]!==void 0&&O[0]!=="/"?`${O[0]}`:"")+(O[1]!==void 0&&O[1]!=="/"?`/${O[1]}`:"");T+=`/${e.reportCode}`,y.showStartDate&&(T+=`/${Wn(y.startDate,"yyyyMMdd")}`),y.showEndDate&&(T+=`/${Wn(y.endDate,"yyyyMMdd")}`),Object.keys(y).forEach(R=>{R!=="startDate"&&R!=="endDate"&&R!=="showStartDate"&&R!=="showEndDate"&&R!=="IncludeExternal"&&R!=="onLoad"&&(T+=`/${y[R]===""||y[R]===null||y[R]===void 0?"0":y[R]}`)}),window.history.replaceState(null,"",T)},w=async()=>{x(),await z()},S=async()=>{t.setIsLoadingPage(!0);const O=await eBi(e.reportCode===null?"":e.reportCode);if(O.ok&&O.data.tables.length>0&&O.data.tables[0].rows.length>0){const T=At(O,"data.tables[0].rows[0]",{});if(t.setReportInfo(T),O.ok&&O.data.tables.length>1){const P=At(O,"data.tables[1].rows",[]);t.setReportMetadataFilters(P)}else t.setReportMetadataFilters([]);const R=[];for(let P=2;P<O.data.tables.length;P++)R.push(O.data.tables[P].rows);t.setFilterSources(R)}else console.log("something happened 1");t.setIsLoadingPage(!1)},A=O=>l?O.map(T=>{const R={...T};return Object.keys(R).forEach(P=>{R[P]&&typeof R[P]=="string"&&R[P].includes("%%%")&&(R[P]=R[P].split("%%%")[0])}),R}):O,z=async()=>{t.setIsLoadingGrid(!0),c&&(y.NumberOfHeats=u);const O=await tBi({...y,startDate:rJe(y.startDate,!0),endDate:rJe(y.endDate,!1)},e.reportInfo?.DataSource??"");if(O.ok&&O.data.tables.length>0){const R=At(O,"data.tables[0].rows",[]).map(P=>Object.keys(P).reduce((F,N)=>(F[N.toLowerCase()]=P[N],F),{}));p(R)}if(O.ok&&O.data.tables.length>1){const R=At(O,"data.tables[1].rows",[]).map(P=>({...P,ColumnData:P.ColumnData.toLowerCase()}));s(R)}else s([]);O.ok||b(O.message),t.setIsLoadingGrid(!1)};return v.useEffect(()=>{(async()=>e.reportCode!==""&&e.reportCode!==null&&await S())()},[e.reportCode]),v.useEffect(()=>{const O={...y,showStartDate:e.reportInfo?.HasStartDate??!1,showEndDate:e.reportInfo?.HasEndDate??!1,onLoad:!1};M(O)},[e.reportInfo]),v.useEffect(()=>{if(e.reportMetadataFilters===null)return;const O={...y,onLoad:!0};e.reportMetadataFilters?.forEach(T=>{T.Parameter==="IncludeExternal"?O[T.Parameter]=!1:O[T.Parameter]=""}),M(O)},[e.reportMetadataFilters]),v.useEffect(()=>{if(y.onLoad===!0){const O={...y,onLoad:!1};let T=1;Object.keys(O).forEach(R=>{if(!(R==="showStartDate"||R==="showEndDate"||R==="IncludeExternal"||R==="onLoad"||R==="refreshData"))if(R==="startDate"&&O.showStartDate&&e.reportParameters[T]!==void 0){const P=PN(e.reportParameters[T],"YYYYMMDD");P.isValid()&&(O[R]=P.toDate()),T++}else if(R==="endDate"&&O.showEndDate&&e.reportParameters[T]!==void 0){const P=PN(e.reportParameters[T],"YYYYMMDD");P.isValid()&&(O[R]=P.toDate()),T++}else e.reportParameters[T]!==void 0?(O[R]=e.reportParameters[T],T++):R==="IncludeExternal"?(O[R]=!1,T++):R!=="startDate"&&R!=="endDate"&&(O[R]="0",T++)}),M(O),g(!0)}},[y]),v.useEffect(()=>{(async()=>h&&o.current&&(t.setIsLoadingBackground(!0),o.current.showLoadingOverlay(),await w(),t.setIsLoadingBackground(!1),o.current.hideOverlay()))()},[y,h,r]),e.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:e.reportInfo?.Title||"LAB Report"}),f.jsx(Op,{open:e.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{backgroundColor:"#f2f4f7"},children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0,padding:"20px"},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:f.jsx(vt,{variant:"h5",style:{fontWeight:600},children:e.reportInfo?.Title})})}),f.jsx(aBi,{metadataFilters:e.reportMetadataFilters??[],filters:y,filterSources:e.filterSources??[],updateFilters:C,refreshData:w,onExcelExport:()=>{if(o.current){const O=A(d);o.current.setGridOption("rowData",O),o.current.exportDataAsExcel({fileName:e.reportInfo?.Title,sheetName:e.reportInfo?.Title}),o.current.setGridOption("rowData",d)}}}),f.jsx(lBi,{headers:a??[],rows:d,refreshData:w,gridRef:o,loading:e.isLoadingGrid})]})}),f.jsx(yt,{error:m,onHide:()=>b("")})]})},AA=e=>{const{reportCode:t}=ds();return f.jsx(rBi,{children:f.jsx(cBi,{})},t)},iJe=v.lazy(()=>wTe(()=>import("./index-BP4mQk25.js"),__vite__mapDeps([0,1]),import.meta.url)),oJe=v.lazy(()=>wTe(()=>import("./index-CI0-_fUp.js"),__vite__mapDeps([2,1]),import.meta.url)),aJe=v.lazy(()=>wTe(()=>import("./index-D4tJut5w.js"),__vite__mapDeps([3,1]),import.meta.url)),uBi=[f.jsx(ar,{path:"/report",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(AA,{})})}),f.jsx(ar,{path:"/report/health-status",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(J6i,{})})}),f.jsx(ar,{path:"/report/:reportCode",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(AA,{})})}),f.jsx(ar,{path:"/report/:reportCode/:param1",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(AA,{})})}),f.jsx(ar,{path:"/report/:reportCode/:param1/:param2",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(AA,{})})}),f.jsx(ar,{path:"/report/:reportCode/:param1/:param2/:param3",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(AA,{})})}),f.jsx(ar,{path:"/report/:reportCode/:param1/:param2/:param3/:param4",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(AA,{})})}),f.jsx(ar,{path:"/report/:reportCode/:param1/:param2/:param3/:param4/:param5",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(AA,{})})}),f.jsx(ar,{path:"/report/kentucky-mechanical-activity/:startDate/:endDate",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(iJe,{})})}),f.jsx(ar,{path:"/report/kentucky-mechanical-activity",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(iJe,{})})}),f.jsx(ar,{path:"/report/kentucky-mechanical-sample-by-date/:startDate/:endDate/:grade",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(oJe,{})})}),f.jsx(ar,{path:"/report/kentucky-mechanical-sample-by-date",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(oJe,{})})}),f.jsx(ar,{path:"/report/kentucky-mechanical-sample-by-heat/:heatId/:status/:validFlag",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(aJe,{})})}),f.jsx(ar,{path:"/report/kentucky-mechanical-sample-by-heat",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(aJe,{})})})],dBi=e=>{const t=e.reduce((l,c)=>(l[c.Strand]=c,l),{}),r=[{property:"Heats",field:"Heats"},{property:"Product Tons",field:"ProductTons"},{property:"Yield",field:"Yield"},{property:"Tons/Hour",field:"TonsPerHour"},{property:"Run Time",field:"RunTime"},{property:"Lost Strand",field:"LostStrand"},{property:"Scrap Billets",field:"ScrapBillets"}].map(l=>({Property:l.property,s1:t[1]?t[1][l.field]:null,s2:t[2]?t[2][l.field]:null,s3:t[3]?t[3][l.field]:null,Total:t.Total?t.Total[l.field]:null})),i=l=>c=>{const u=c.data[l];return u==null?null:c.data.Property==="Run Time"||c.data.Property==="Yield"?`${Number(u).toFixed(2)}%`:Number.isInteger(u)?u:Number(u).toFixed(2)},o={"null-value-cell":l=>l.data.Property=="Heats"||l.data.Property=="Liq Weight"||l.data.Property=="Lost Strand"};return{columns:[{headerName:"CAS Summary",children:[{field:"Property",headerName:"",flex:1,minWidth:106,cellClass:"first-column-cell"},{field:"1",headerName:"S1",flex:1,minWidth:73,valueGetter:i("s1"),cellClassRules:o},{field:"2",headerName:"S2",flex:1,minWidth:73,valueGetter:i("s2"),cellClassRules:o},{field:"3",headerName:"S3",flex:1,minWidth:73,valueGetter:i("s3"),cellClassRules:o},{field:"Total",headerName:"Total",flex:1,minWidth:73,valueGetter:i("Total")}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:r}},pBi=({rows:e,isLoading:t})=>{const n=p2(),{columns:r,rowData:i}=dBi(e),[o,a]=v.useState(null),s=l=>{a(l.api)};return v.useEffect(()=>{o&&(t?o.showLoadingOverlay():o.hideOverlay())},[o,t]),f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{className:`${n.readonlyAgGridBox} ${n.dynamicHeight}`,children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:r,domLayout:"autoHeight",onGridReady:s})})})},H5=e=>({...e,sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0}),hBi=({})=>({columns:[H5({field:"Start",headerName:"Start",valueGetter:n=>Wn(`${n.data?.Start}`,"HH:mm:ss")||"",minWidth:80,flex:1}),H5({field:"End",headerName:"End",valueGetter:n=>Wn(`${n.data?.End}`,"HH:mm:ss")||"",minWidth:80,flex:1}),H5({field:"Duration",headerName:"Duration",valueFormatter:n=>{if(n.value){const r=mt.duration(n.value,"seconds"),i=Math.floor(r.asMinutes()),o=r.seconds();return`${i}m ${o}s`}return""},minWidth:102,flex:1}),{field:"DelayCategory",headerName:"Category",valueGetter:n=>{const r=n.data?.DelayCategoryName,i=n.data?.DelayCategoryColor;return{name:r,color:i}},cellRenderer:Dte,minWidth:180,maxWidth:180,editable:!1,cellStyle:{justifyContent:""},flex:1},H5({field:"DelayCodeName",headerName:"Code",valueGetter:n=>n.data?.DelayCodeName||"No Classified",minWidth:130,editable:!1,flex:2,cellStyle:{justifyContent:"center"}}),H5({field:"Comments",headerName:"Comments",minWidth:117,flex:4,cellStyle:{justifyContent:"flex-start"}})],defaultColDef:{flex:1,resizable:!0}}),fBi=({rows:e,isLoading:t})=>{const n=p2(),{columns:r}=hBi(e),[i,o]=v.useState(null),a={"EAF 1":"#dae8fc","EAF 2":"#d5e8d4",Caster:"#f8cfcc"},s=d=>!d.data.DelayCodeName||!d.data.DelayCategoryName?n.unclassifiedDelayRow:"",l=d=>{o(d.api)};v.useEffect(()=>{i&&(t?i.showLoadingOverlay():i.hideOverlay())},[i,t]);const c=["EAF 1","EAF 2","Caster"],u=e.reduce((d,p)=>{const h=p.AssetName||"Unknown Asset";return d[h]||(d[h]=[]),d[h].push(p),d},{});return f.jsx(Pt,{elevation:0,children:c.map(d=>{const p=u[d]||[];return f.jsxs("div",{children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(wD,{className:n.assetCard,style:{backgroundColor:a[d]},variant:"outlined",children:f.jsx(SD,{children:f.jsx(vt,{variant:"h5",children:d})})})}),f.jsx(Tn,{className:`${n.EAFAgGridBox}`,children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:p,columnDefs:r,onGridReady:l,getRowClass:s})})]},d)})})},gBi=e=>{const t=e.reduce((s,l)=>(s[l.AssetName]=l,s),{}),r=[{property:"Heats",field:"Heats"},{property:"Scrap Tons",field:"ScrapTons"},{property:"Energy",field:"Energy"},{property:"KWH/Ton  [avg]",field:"KWHPerTon"},{property:"Tap To Tap [avg]",field:"TapToTap"},{property:"Power On  [avg]",field:"PowerOn"},{property:"Total Delay [min]",field:"DelayTimeInMinutes"}].map(s=>({Property:s.property,EAF1:t["EAF 1"]?t["EAF 1"][s.field]:null,EAF2:t["EAF 2"]?t["EAF 2"][s.field]:null,Total:t.Total?t.Total[s.field]:null})),i=s=>l=>{const c=l.data[s];return c==null?null:l.data.Property==="Yield"?`${Number(c).toFixed(2)}%`:Number.isInteger(c)?c:Number(c).toFixed(2)};return{columns:[{headerName:"EAF Summary",children:[{field:"Property",headerName:"",flex:1,minWidth:130,cellClass:"first-column-cell"},{field:"EAF1",headerName:"EAF 1",flex:1,minWidth:63,valueGetter:i("EAF1")},{field:"EAF2",headerName:"EAF 2",flex:1,minWidth:63,valueGetter:i("EAF2")},{field:"Total",headerName:"Total",flex:1,minWidth:55,valueGetter:i("Total")}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:r}},mBi=({rows:e,isLoading:t})=>{const n=p2(),{columns:r,rowData:i}=gBi(e),[o,a]=v.useState(null),s=l=>{a(l.api)};return v.useEffect(()=>{o&&(t?o.showLoadingOverlay():o.hideOverlay())},[o,t]),f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{className:` ${n.readonlyAgGridBox} ${n.dynamicHeight}`,children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:r,domLayout:"autoHeight",onGridReady:s,loading:t})})})},vBi=({heats:e})=>{const{state:{settings:t}}=Ma(),n=Number(At(t,"SHIFTREPORT_MAX_TTT",180)),r=Number(At(t,"SHIFTREPORT_MAX_POWER_ON",140)),i=Number(At(t,"SHIFTREPORT_MAX_DURATION",120)),o=Number(At(t,"SHIFTREPORT_MAX_TAPTEMP",3900)),a=Number(At(t,"SHIFTREPORT_MAX_TRIMTEMP",3300)),s=Number(At(t,"SHIFTREPORT_MIN_SUPERHEAT",30));return{columnData:[{headerName:"Heat",field:"Heat",minWidth:65,flex:1},{headerName:"Grade",field:"Grade",minWidth:98,cellClassRules:{"max-limit":u=>u.data.Grade!==u.data.ProgrammedGrade},flex:1},{headerName:"Ladle",field:"Ladle",minWidth:57,flex:1},{headerName:"EAF Tap",field:"EAFTap",minWidth:73,valueGetter:u=>Wn(`${u.data.EAFTap}`,"HH:mm"),cellRenderer:u=>u.data.HeatEAFDELink?f.jsx(Td,{...u,linkProperty:"HeatEAFDELink"}):f.jsx("span",{style:{color:"black"},children:u.value}),flex:1},{headerName:"TTT",field:"TTT",minWidth:50,valueGetter:u=>u.data.TTT?u.data.TTT.toString():"",cellClassRules:{"max-limit":u=>Number(u.value)>n},flex:1},{headerName:"Power On",field:"PowerOn",minWidth:82,cellClassRules:{"max-limit":u=>Number(u.value)>r},flex:1},{headerName:"Tap Temp",field:"TapTemp",minWidth:82,cellClassRules:{"max-limit":u=>Number(u.value)>o},flex:1},{headerName:"Trim Temp",field:"TrimTemp",minWidth:88,cellClassRules:{"max-limit":u=>Number(u.value)>a},flex:1},{headerName:"Ladle Open",field:"LadleOpen",minWidth:61,wrapHeaderText:!0,valueGetter:u=>Wn(`${u.data.LadleOpen}`,"HH:mm"),cellRenderer:u=>u.data.HeatCASDELink?f.jsx(Td,{...u,linkProperty:"HeatCASDELink"}):f.jsx("span",{style:{color:"black"},children:u.value}),flex:1},{headerName:"Ladle Close",field:"LadleClose",minWidth:61,wrapHeaderText:!0,valueGetter:u=>Wn(`${u.data.LadleClose}`,"HH:mm"),flex:1},{headerName:"Duration",field:"Duration",minWidth:76,valueGetter:u=>u.data.Duration?u.data.Duration.toFixed(2):"",cellClassRules:{"max-limit":u=>Number(u.value)>i},flex:1},{headerName:"Section",field:"Sections",minWidth:70,wrapText:!0,flex:1},{headerName:"Length",field:"Length",minWidth:66,flex:1},{headerName:"Seq",field:"Sequence",minWidth:48,flex:1},{headerName:"Last SH",field:"LastSuperheat",minWidth:71,cellClassRules:{"max-limit":u=>u.value!==null&&Number(u.value)<s},flex:1},{headerName:"Tons",field:"Tons",minWidth:53,valueGetter:u=>u.data.Tons?u.data.Tons.toFixed(1):"",flex:1},{headerName:"Scrap [tons]",field:"Scrap",minWidth:60,valueGetter:u=>u.data.Scrap?u.data.Scrap.toFixed(1):"",flex:1}],defaultColDef:{flex:1,resizable:!0}}},bBi=({isLoading:e,heats:t})=>{const n=p2(),{columnData:r}=vBi({heats:t}),[i,o]=v.useState(null),a=s=>{o(s.api)};return v.useEffect(()=>{i&&(e?i.showLoadingOverlay():i.hideOverlay())},[i,e]),f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{className:`${n.smAgGridBox}`,children:f.jsx($n,{rowData:t,columnDefs:r,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:s=>s.data.Heat,onGridReady:a})})})},sJe=["http","https","mailto","tel"];function yBi(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<sJe.length;){const o=sJe[i];if(r===o.length&&t.slice(0,o.length).toLowerCase()===o)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var Vpe,lJe;function MBi(){return lJe||(lJe=1,Vpe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}),Vpe}var CBi=MBi();const kEt=qn(CBi);function sW(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cJe(e.position):"start"in e||"end"in e?cJe(e):"line"in e||"column"in e?k2e(e):""}function k2e(e){return uJe(e&&e.line)+":"+uJe(e&&e.column)}function cJe(e){return k2e(e&&e.start)+"-"+k2e(e&&e.end)}function uJe(e){return e&&typeof e=="number"?e:1}class ag extends Error{constructor(t,n,r){const i=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?i[1]=r:(i[0]=r.slice(0,a),i[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=sW(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}ag.prototype.file="";ag.prototype.name="";ag.prototype.reason="";ag.prototype.message="";ag.prototype.stack="";ag.prototype.fatal=null;ag.prototype.column=null;ag.prototype.line=null;ag.prototype.source=null;ag.prototype.ruleId=null;ag.prototype.position=null;const Pv={basename:xBi,dirname:wBi,extname:SBi,join:ABi,sep:"/"};function xBi(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Tj(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function wBi(e){if(Tj(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function SBi(e){Tj(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ABi(...e){let t=-1,n;for(;++t<e.length;)Tj(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":OBi(n)}function OBi(e){Tj(e);const t=e.charCodeAt(0)===47;let n=zBi(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function zBi(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function Tj(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TBi={cwd:EBi};function EBi(){return"/"}function L2e(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function RBi(e){if(typeof e=="string")e=new URL(e);else if(!L2e(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return IBi(e)}function IBi(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Gpe=["history","path","basename","stem","extname","dirname"];class LEt{constructor(t){let n;t?typeof t=="string"||PBi(t)?n={value:t}:L2e(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=TBi.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Gpe.length;){const o=Gpe[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Gpe.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){L2e(t)&&(t=RBi(t)),Upe(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?Pv.dirname(this.path):void 0}set dirname(t){dJe(this.basename,"dirname"),this.path=Pv.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?Pv.basename(this.path):void 0}set basename(t){Upe(t,"basename"),$pe(t,"basename"),this.path=Pv.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?Pv.extname(this.path):void 0}set extname(t){if($pe(t,"extname"),dJe(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Pv.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?Pv.basename(this.path,this.extname):void 0}set stem(t){Upe(t,"stem"),$pe(t,"stem"),this.path=Pv.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new ag(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function $pe(e,t){if(e&&e.includes(Pv.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Pv.sep+"`")}function Upe(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function dJe(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function PBi(e){return kEt(e)}function pJe(e){if(e)throw e}var Xpe,hJe;function DBi(){if(hJe)return Xpe;hJe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},o=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var u=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!d)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},a=function(c,u){n&&u.name==="__proto__"?n(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},s=function(c,u){if(u==="__proto__")if(e.call(c,u)){if(r)return r(c,u).value}else return;return c[u]};return Xpe=function l(){var c,u,d,p,h,g,m=arguments[0],b=1,y=arguments.length,M=!1;for(typeof m=="boolean"&&(M=m,m=arguments[1]||{},b=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});b<y;++b)if(c=arguments[b],c!=null)for(u in c)d=s(m,u),p=s(c,u),m!==p&&(M&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=d&&i(d)?d:[]):g=d&&o(d)?d:{},a(m,{name:u,newValue:l(M,g,p)})):typeof p<"u"&&a(m,{name:u,newValue:p}));return m},Xpe}var kBi=DBi();const fJe=qn(kBi);function _2e(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 LBi(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){const u=e[++o];let d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?_Bi(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function _Bi(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const NBi=NEt().freeze(),_Et={}.hasOwnProperty;function NEt(){const e=LBi(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=t,o.use=l,o.parse=c,o.stringify=u,o.run=d,o.runSync=p,o.process=h,o.processSync=g,o;function o(){const m=NEt();let b=-1;for(;++b<t.length;)m.use(...t[b]);return m.data(fJe(!0,{},n)),m}function a(m,b){return typeof m=="string"?arguments.length===2?(Qpe("data",r),n[m]=b,o):_Et.call(n,m)&&n[m]||null:m?(Qpe("data",r),n=m,o):n}function s(){if(r)return o;for(;++i<t.length;){const[m,...b]=t[i];if(b[0]===!1)continue;b[0]===!0&&(b[0]=void 0);const y=m.call(o,...b);typeof y=="function"&&e.use(y)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(m,...b){let y;if(Qpe("use",r),m!=null)if(typeof m=="function")w(m,...b);else if(typeof m=="object")Array.isArray(m)?x(m):C(m);else throw new TypeError("Expected usable value, not `"+m+"`");return y&&(n.settings=Object.assign(n.settings||{},y)),o;function M(S){if(typeof S=="function")w(S);else if(typeof S=="object")if(Array.isArray(S)){const[A,...z]=S;w(A,...z)}else C(S);else throw new TypeError("Expected usable value, not `"+S+"`")}function C(S){x(S.plugins),S.settings&&(y=Object.assign(y||{},S.settings))}function x(S){let A=-1;if(S!=null)if(Array.isArray(S))for(;++A<S.length;){const z=S[A];M(z)}else throw new TypeError("Expected a list of plugins, not `"+S+"`")}function w(S,A){let z=-1,O;for(;++z<t.length;)if(t[z][0]===S){O=t[z];break}O?(_2e(O[1])&&_2e(A)&&(A=fJe(!0,O[1],A)),O[1]=A):t.push([...arguments])}}function c(m){o.freeze();const b=V5(m),y=o.Parser;return Ype("parse",y),gJe(y,"parse")?new y(String(b),b).parse():y(String(b),b)}function u(m,b){o.freeze();const y=V5(b),M=o.Compiler;return Kpe("stringify",M),mJe(m),gJe(M,"compile")?new M(m,y).compile():M(m,y)}function d(m,b,y){if(mJe(m),o.freeze(),!y&&typeof b=="function"&&(y=b,b=void 0),!y)return new Promise(M);M(null,y);function M(C,x){e.run(m,V5(b),w);function w(S,A,z){A=A||m,S?x(S):C?C(A):y(null,A,z)}}}function p(m,b){let y,M;return o.run(m,b,C),vJe("runSync","run",M),y;function C(x,w){pJe(x),y=w,M=!0}}function h(m,b){if(o.freeze(),Ype("process",o.Parser),Kpe("process",o.Compiler),!b)return new Promise(y);y(null,b);function y(M,C){const x=V5(m);o.run(o.parse(x),x,(S,A,z)=>{if(S||!A||!z)w(S);else{const O=o.stringify(A,z);O==null||(qBi(O)?z.value=O:z.result=O),w(S,z)}});function w(S,A){S||!A?C(S):M?M(A):b(null,A)}}}function g(m){let b;o.freeze(),Ype("processSync",o.Parser),Kpe("processSync",o.Compiler);const y=V5(m);return o.process(y,M),vJe("processSync","process",b),y;function M(C){b=!0,pJe(C)}}}function gJe(e,t){return typeof e=="function"&&e.prototype&&(FBi(e.prototype)||t in e.prototype)}function FBi(e){let t;for(t in e)if(_Et.call(e,t))return!0;return!1}function Ype(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Kpe(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Qpe(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mJe(e){if(!_2e(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vJe(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function V5(e){return WBi(e)?e:new LEt(e)}function WBi(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qBi(e){return typeof e=="string"||kEt(e)}const BBi={};function jBi(e,t){const n=BBi,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return FEt(e,r,i)}function FEt(e,t,n){if(HBi(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return bJe(e.children,t,n)}return Array.isArray(e)?bJe(e,t,n):""}function bJe(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=FEt(e[i],t,n);return r.join("")}function HBi(e){return!!(e&&typeof e=="object")}function Vb(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function pf(e,t){return e.length>0?(Vb(e,e.length,0,t),e):t}const yJe={}.hasOwnProperty;function VBi(e){const t={};let n=-1;for(;++n<e.length;)GBi(t,e[n]);return t}function GBi(e,t){let n;for(n in t){const i=(yJe.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){yJe.call(i,a)||(i[a]=[]);const s=o[a];$Bi(i[a],Array.isArray(s)?s:s?[s]:[])}}}function $Bi(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Vb(e,0,0,r)}const UBi=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Kv=Vw(/[A-Za-z]/),nh=Vw(/[\dA-Za-z]/),XBi=Vw(/[#-'*+\--9=?A-Z^-~]/);function N2e(e){return e!==null&&(e<32||e===127)}const F2e=Vw(/\d/),YBi=Vw(/[\dA-Fa-f]/),KBi=Vw(/[!-/:-@[-`{-~]/);function Ni(e){return e!==null&&e<-2}function mp(e){return e!==null&&(e<0||e===32)}function Wa(e){return e===-2||e===-1||e===32}const QBi=Vw(UBi),ZBi=Vw(/\s/);function Vw(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Us(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Wa(l)?(e.enter(n),s(l)):t(l)}function s(l){return Wa(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const JBi={tokenize:eji};function eji(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Us(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Ni(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const tji={tokenize:nji},MJe={tokenize:rji};function nji(e){const t=this,n=[];let r=0,i,o,a;return s;function s(C){if(r<n.length){const x=n[r];return t.containerState=x[1],e.attempt(x[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&M();const x=t.events.length;let w=x,S;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){S=t.events[w][1].end;break}y(r);let A=x;for(;A<t.events.length;)t.events[A][1].end=Object.assign({},S),A++;return Vb(t.events,w+1,0,t.events.slice(x)),t.events.length=A,c(C)}return s(C)}function c(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(MJe,u,d)(C)}function u(C){return i&&M(),y(r),p(C)}function d(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,g(C)}function p(C){return t.containerState={},e.attempt(MJe,h,g)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function g(C){if(C===null){i&&M(),y(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),m(C)}function m(C){if(C===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return Ni(C)?(e.consume(C),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),m)}function b(C,x){const w=t.sliceStream(C);if(x&&w.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(w),t.parser.lazy[C.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<a&&(!i.events[S][1].end||i.events[S][1].end.offset>a))return;const A=t.events.length;let z=A,O,T;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(O){T=t.events[z][1].end;break}O=!0}for(y(r),S=A;S<t.events.length;)t.events[S][1].end=Object.assign({},T),S++;Vb(t.events,z+1,0,t.events.slice(A)),t.events.length=S}}function y(C){let x=n.length;for(;x-- >C;){const w=n[x];t.containerState=w[1],w[0].exit.call(t,e)}n.length=C}function M(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function rji(e,t,n){return Us(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function CJe(e){if(e===null||mp(e)||ZBi(e))return 1;if(QBi(e))return 2}function ATe(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const W2e={name:"attention",tokenize:oji,resolveAll:iji};function iji(e,t){let n=-1,r,i,o,a,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);xJe(d,-l),xJe(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=pf(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=pf(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=pf(c,ATe(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=pf(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=pf(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Vb(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function oji(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=CJe(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=CJe(l),d=!u||u===2&&i||n.includes(l),p=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!p)),c._close=!!(o===42?p:p&&(u||!d)),t(l)}}function xJe(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const aji={name:"autolink",tokenize:sji};function sji(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Kv(h)?(e.consume(h),a):c(h)}function a(h){return h===43||h===45||h===46||nh(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||nh(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||N2e(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),u):XBi(h)?(e.consume(h),c):n(h)}function u(h){return nh(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||nh(h))&&r++<63){const g=h===45?p:d;return e.consume(h),g}return n(h)}}const Wte={tokenize:lji,partial:!0};function lji(e,t,n){return r;function r(o){return Wa(o)?Us(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||Ni(o)?t(o):n(o)}}const WEt={name:"blockQuote",tokenize:cji,continuation:{tokenize:uji},exit:dji};function cji(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Wa(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function uji(e,t,n){const r=this;return i;function i(a){return Wa(a)?Us(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(WEt,t,n)(a)}}function dji(e){e.exit("blockQuote")}const qEt={name:"characterEscape",tokenize:pji};function pji(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return KBi(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const wJe=document.createElement("i");function OTe(e){const t="&"+e+";";wJe.innerHTML=t;const n=wJe.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const BEt={name:"characterReference",tokenize:hji};function hji(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=nh,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=YBi,u):(e.enter("characterReferenceValue"),o=7,a=F2e,u(d))}function u(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return a===nh&&!OTe(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),u):n(d)}}const SJe={tokenize:gji,partial:!0},AJe={name:"codeFenced",tokenize:fji,concrete:!0};function fji(e,t,n){const r=this,i={tokenize:w,partial:!0};let o=0,a=0,s;return l;function l(S){return c(S)}function c(S){const A=r.events[r.events.length-1];return o=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(S)}function u(S){return S===s?(a++,e.consume(S),u):a<3?n(S):(e.exit("codeFencedFenceSequence"),Wa(S)?Us(e,d,"whitespace")(S):d(S))}function d(S){return S===null||Ni(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(SJe,m,x)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||Ni(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):Wa(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Us(e,h,"whitespace")(S)):S===96&&S===s?n(S):(e.consume(S),p)}function h(S){return S===null||Ni(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||Ni(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===s?n(S):(e.consume(S),g)}function m(S){return e.attempt(i,x,b)(S)}function b(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return o>0&&Wa(S)?Us(e,M,"linePrefix",o+1)(S):M(S)}function M(S){return S===null||Ni(S)?e.check(SJe,m,x)(S):(e.enter("codeFlowValue"),C(S))}function C(S){return S===null||Ni(S)?(e.exit("codeFlowValue"),M(S)):(e.consume(S),C)}function x(S){return e.exit("codeFenced"),t(S)}function w(S,A,z){let O=0;return T;function T(L){return S.enter("lineEnding"),S.consume(L),S.exit("lineEnding"),R}function R(L){return S.enter("codeFencedFence"),Wa(L)?Us(S,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):P(L)}function P(L){return L===s?(S.enter("codeFencedFenceSequence"),F(L)):z(L)}function F(L){return L===s?(O++,S.consume(L),F):O>=a?(S.exit("codeFencedFenceSequence"),Wa(L)?Us(S,N,"whitespace")(L):N(L)):z(L)}function N(L){return L===null||Ni(L)?(S.exit("codeFencedFence"),A(L)):z(L)}}}function gji(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Zpe={name:"codeIndented",tokenize:vji},mji={tokenize:bji,partial:!0};function vji(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Us(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):Ni(c)?e.attempt(mji,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Ni(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function bji(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):Ni(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Us(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):Ni(a)?i(a):n(a)}}const yji={name:"codeText",tokenize:xji,resolve:Mji,previous:Cji};function Mji(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Cji(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xji(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):Ni(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Ni(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",c(d))}}function jEt(e){const t={};let n=-1,r,i,o,a,s,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,wji(e,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),Vb(e,i,n-i+1,s))}}return!c}function wji(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,h=n,g=0,m=0;const b=[m];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,b.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):b.pop(),p=b.length;p--;){const y=s.slice(b[p],b[p+1]),M=o.pop();l.unshift([M,M+y.length-1]),Vb(e,M,2,y)}for(p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const Sji={tokenize:zji,resolve:Oji},Aji={tokenize:Tji,partial:!0};function Oji(e){return jEt(e),e}function zji(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):Ni(s)?e.check(Aji,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Tji(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Us(e,o,"linePrefix")}function o(a){if(a===null||Ni(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function HEt(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||N2e(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||Ni(y)?n(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function m(y){return!u&&(y===null||y===41||mp(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):u<c&&y===40?(e.consume(y),u++,m):y===41?(e.consume(y),u--,m):y===null||y===32||y===40||N2e(y)?n(y):(e.consume(y),y===92?b:m)}function b(y){return y===40||y===41||y===92?(e.consume(y),m):m(y)}}function VEt(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),u}function u(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Ni(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||Ni(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!Wa(h)),h===92?p:d)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function GEt(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),c(p))}function c(p){return p===a?(e.exit(o),l(a)):p===null?n(p):Ni(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Us(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===a||p===null||Ni(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:u)}function d(p){return p===a||p===92?(e.consume(p),u):u(p)}}function lW(e,t){let n;return r;function r(i){return Ni(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Wa(i)?Us(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function KI(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Eji={name:"definition",tokenize:Iji},Rji={tokenize:Pji,partial:!0};function Iji(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return VEt.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=KI(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return mp(h)?lW(e,c)(h):c(h)}function c(h){return HEt(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(Rji,d,d)(h)}function d(h){return Wa(h)?Us(e,p,"whitespace")(h):p(h)}function p(h){return h===null||Ni(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Pji(e,t,n){return r;function r(s){return mp(s)?lW(e,i)(s):n(s)}function i(s){return GEt(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Wa(s)?Us(e,a,"whitespace")(s):a(s)}function a(s){return s===null||Ni(s)?t(s):n(s)}}const Dji={name:"hardBreakEscape",tokenize:kji};function kji(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return Ni(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Lji={name:"headingAtx",tokenize:Nji,resolve:_ji};function _ji(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Vb(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Nji(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||mp(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Ni(u)?(e.exit("atxHeading"),t(u)):Wa(u)?Us(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||mp(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const Fji=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],OJe=["pre","script","style","textarea"],Wji={name:"htmlFlow",tokenize:Hji,resolveTo:jji,concrete:!0},qji={tokenize:Gji,partial:!0},Bji={tokenize:Vji,partial:!0};function jji(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Hji(e,t,n){const r=this;let i,o,a,s,l;return c;function c(X){return u(X)}function u(X){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(X),d}function d(X){return X===33?(e.consume(X),p):X===47?(e.consume(X),o=!0,m):X===63?(e.consume(X),i=3,r.interrupt?t:q):Kv(X)?(e.consume(X),a=String.fromCharCode(X),b):n(X)}function p(X){return X===45?(e.consume(X),i=2,h):X===91?(e.consume(X),i=5,s=0,g):Kv(X)?(e.consume(X),i=4,r.interrupt?t:q):n(X)}function h(X){return X===45?(e.consume(X),r.interrupt?t:q):n(X)}function g(X){const Q="CDATA[";return X===Q.charCodeAt(s++)?(e.consume(X),s===Q.length?r.interrupt?t:P:g):n(X)}function m(X){return Kv(X)?(e.consume(X),a=String.fromCharCode(X),b):n(X)}function b(X){if(X===null||X===47||X===62||mp(X)){const Q=X===47,re=a.toLowerCase();return!Q&&!o&&OJe.includes(re)?(i=1,r.interrupt?t(X):P(X)):Fji.includes(a.toLowerCase())?(i=6,Q?(e.consume(X),y):r.interrupt?t(X):P(X)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(X):o?M(X):C(X))}return X===45||nh(X)?(e.consume(X),a+=String.fromCharCode(X),b):n(X)}function y(X){return X===62?(e.consume(X),r.interrupt?t:P):n(X)}function M(X){return Wa(X)?(e.consume(X),M):T(X)}function C(X){return X===47?(e.consume(X),T):X===58||X===95||Kv(X)?(e.consume(X),x):Wa(X)?(e.consume(X),C):T(X)}function x(X){return X===45||X===46||X===58||X===95||nh(X)?(e.consume(X),x):w(X)}function w(X){return X===61?(e.consume(X),S):Wa(X)?(e.consume(X),w):C(X)}function S(X){return X===null||X===60||X===61||X===62||X===96?n(X):X===34||X===39?(e.consume(X),l=X,A):Wa(X)?(e.consume(X),S):z(X)}function A(X){return X===l?(e.consume(X),l=null,O):X===null||Ni(X)?n(X):(e.consume(X),A)}function z(X){return X===null||X===34||X===39||X===47||X===60||X===61||X===62||X===96||mp(X)?w(X):(e.consume(X),z)}function O(X){return X===47||X===62||Wa(X)?C(X):n(X)}function T(X){return X===62?(e.consume(X),R):n(X)}function R(X){return X===null||Ni(X)?P(X):Wa(X)?(e.consume(X),R):n(X)}function P(X){return X===45&&i===2?(e.consume(X),W):X===60&&i===1?(e.consume(X),j):X===62&&i===4?(e.consume(X),$):X===63&&i===3?(e.consume(X),q):X===93&&i===5?(e.consume(X),G):Ni(X)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(qji,U,F)(X)):X===null||Ni(X)?(e.exit("htmlFlowData"),F(X)):(e.consume(X),P)}function F(X){return e.check(Bji,N,U)(X)}function N(X){return e.enter("lineEnding"),e.consume(X),e.exit("lineEnding"),L}function L(X){return X===null||Ni(X)?F(X):(e.enter("htmlFlowData"),P(X))}function W(X){return X===45?(e.consume(X),q):P(X)}function j(X){return X===47?(e.consume(X),a="",V):P(X)}function V(X){if(X===62){const Q=a.toLowerCase();return OJe.includes(Q)?(e.consume(X),$):P(X)}return Kv(X)&&a.length<8?(e.consume(X),a+=String.fromCharCode(X),V):P(X)}function G(X){return X===93?(e.consume(X),q):P(X)}function q(X){return X===62?(e.consume(X),$):X===45&&i===2?(e.consume(X),q):P(X)}function $(X){return X===null||Ni(X)?(e.exit("htmlFlowData"),U(X)):(e.consume(X),$)}function U(X){return e.exit("htmlFlow"),t(X)}}function Vji(e,t,n){const r=this;return i;function i(a){return Ni(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Gji(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Wte,t,n)}}const $ji={name:"htmlText",tokenize:Uji};function Uji(e,t,n){const r=this;let i,o,a;return s;function s(q){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(q),l}function l(q){return q===33?(e.consume(q),c):q===47?(e.consume(q),w):q===63?(e.consume(q),C):Kv(q)?(e.consume(q),z):n(q)}function c(q){return q===45?(e.consume(q),u):q===91?(e.consume(q),o=0,g):Kv(q)?(e.consume(q),M):n(q)}function u(q){return q===45?(e.consume(q),h):n(q)}function d(q){return q===null?n(q):q===45?(e.consume(q),p):Ni(q)?(a=d,j(q)):(e.consume(q),d)}function p(q){return q===45?(e.consume(q),h):d(q)}function h(q){return q===62?W(q):q===45?p(q):d(q)}function g(q){const $="CDATA[";return q===$.charCodeAt(o++)?(e.consume(q),o===$.length?m:g):n(q)}function m(q){return q===null?n(q):q===93?(e.consume(q),b):Ni(q)?(a=m,j(q)):(e.consume(q),m)}function b(q){return q===93?(e.consume(q),y):m(q)}function y(q){return q===62?W(q):q===93?(e.consume(q),y):m(q)}function M(q){return q===null||q===62?W(q):Ni(q)?(a=M,j(q)):(e.consume(q),M)}function C(q){return q===null?n(q):q===63?(e.consume(q),x):Ni(q)?(a=C,j(q)):(e.consume(q),C)}function x(q){return q===62?W(q):C(q)}function w(q){return Kv(q)?(e.consume(q),S):n(q)}function S(q){return q===45||nh(q)?(e.consume(q),S):A(q)}function A(q){return Ni(q)?(a=A,j(q)):Wa(q)?(e.consume(q),A):W(q)}function z(q){return q===45||nh(q)?(e.consume(q),z):q===47||q===62||mp(q)?O(q):n(q)}function O(q){return q===47?(e.consume(q),W):q===58||q===95||Kv(q)?(e.consume(q),T):Ni(q)?(a=O,j(q)):Wa(q)?(e.consume(q),O):W(q)}function T(q){return q===45||q===46||q===58||q===95||nh(q)?(e.consume(q),T):R(q)}function R(q){return q===61?(e.consume(q),P):Ni(q)?(a=R,j(q)):Wa(q)?(e.consume(q),R):O(q)}function P(q){return q===null||q===60||q===61||q===62||q===96?n(q):q===34||q===39?(e.consume(q),i=q,F):Ni(q)?(a=P,j(q)):Wa(q)?(e.consume(q),P):(e.consume(q),N)}function F(q){return q===i?(e.consume(q),i=void 0,L):q===null?n(q):Ni(q)?(a=F,j(q)):(e.consume(q),F)}function N(q){return q===null||q===34||q===39||q===60||q===61||q===96?n(q):q===47||q===62||mp(q)?O(q):(e.consume(q),N)}function L(q){return q===47||q===62||mp(q)?O(q):n(q)}function W(q){return q===62?(e.consume(q),e.exit("htmlTextData"),e.exit("htmlText"),t):n(q)}function j(q){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(q),e.exit("lineEnding"),V}function V(q){return Wa(q)?Us(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):G(q)}function G(q){return e.enter("htmlTextData"),a(q)}}const zTe={name:"labelEnd",tokenize:Jji,resolveTo:Zji,resolveAll:Qji},Xji={tokenize:eHi},Yji={tokenize:tHi},Kji={tokenize:nHi};function Qji(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function Zji(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},u={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=pf(s,e.slice(o+1,o+r+3)),s=pf(s,[["enter",u,t]]),s=pf(s,ATe(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=pf(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=pf(s,e.slice(a+1)),s=pf(s,[["exit",l,t]]),Vb(e,o,e.length,s),e}function Jji(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(p){return o?o._inactive?d(p):(a=r.parser.defined.includes(KI(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(Xji,u,a?u:d)(p):p===91?e.attempt(Yji,u,a?c:d)(p):a?u(p):d(p)}function c(p){return e.attempt(Kji,u,d)(p)}function u(p){return t(p)}function d(p){return o._balanced=!0,n(p)}}function eHi(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return mp(d)?lW(e,o)(d):o(d)}function o(d){return d===41?u(d):HEt(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return mp(d)?lW(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?GEt(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return mp(d)?lW(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function tHi(e,t,n){const r=this;return i;function i(s){return VEt.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(KI(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function nHi(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const rHi={name:"labelStartImage",tokenize:iHi,resolveAll:zTe.resolveAll};function iHi(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const oHi={name:"labelStartLink",tokenize:aHi,resolveAll:zTe.resolveAll};function aHi(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Jpe={name:"lineEnding",tokenize:sHi};function sHi(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Us(e,t,"linePrefix")}}const b$={name:"thematicBreak",tokenize:lHi};function lHi(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Ni(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Wa(c)?Us(e,s,"whitespace")(c):s(c))}}const W1={name:"list",tokenize:dHi,continuation:{tokenize:pHi},exit:fHi},cHi={tokenize:gHi,partial:!0},uHi={tokenize:hHi,partial:!0};function dHi(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:F2e(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(b$,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return F2e(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Wte,r.interrupt?n:u,e.attempt(cHi,p,d))}function u(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function d(h){return Wa(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function pHi(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wte,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Us(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Wa(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(uHi,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Us(e,e.attempt(W1,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function hHi(e,t,n){const r=this;return Us(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function fHi(e){e.exit(this.containerState.type)}function gHi(e,t,n){const r=this;return Us(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Wa(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const zJe={name:"setextUnderline",tokenize:vHi,resolveTo:mHi};function mHi(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function vHi(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Wa(c)?Us(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Ni(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const bHi={tokenize:yHi};function yHi(e){const t=this,n=e.attempt(Wte,r,e.attempt(this.parser.constructs.flowInitial,i,Us(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Sji,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const MHi={resolveAll:UEt()},CHi=$Et("string"),xHi=$Et("text");function $Et(e){return{tokenize:t,resolveAll:UEt(e==="text"?wHi:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let p=-1;if(d)for(;++p<d.length;){const h=d[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function UEt(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function wHi(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function SHi(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const l={consume:M,enter:C,exit:x,attempt:A(w),check:A(S),interrupt:A(S,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:p,now:g,defineSkip:m,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(R){return a=pf(a,R),b(),a[a.length-1]!==null?[]:(z(t,0),c.events=ATe(o,c.events,c),c.events)}function p(R,P){return OHi(h(R),P)}function h(R){return AHi(a,R)}function g(){const{line:R,column:P,offset:F,_index:N,_bufferIndex:L}=r;return{line:R,column:P,offset:F,_index:N,_bufferIndex:L}}function m(R){i[R.line]=R.column,T()}function b(){let R;for(;r._index<a.length;){const P=a[r._index];if(typeof P=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(R){u=u(R)}function M(R){Ni(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,T()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R}function C(R,P){const F=P||{};return F.type=R,F.start=g(),c.events.push(["enter",F,c]),s.push(F),F}function x(R){const P=s.pop();return P.end=g(),c.events.push(["exit",P,c]),P}function w(R,P){z(R,P.from)}function S(R,P){P.restore()}function A(R,P){return F;function F(N,L,W){let j,V,G,q;return Array.isArray(N)?U(N):"tokenize"in N?U([N]):$(N);function $(ee){return se;function se(pe){const te=pe!==null&&ee[pe],ce=pe!==null&&ee.null,oe=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return U(oe)(pe)}}function U(ee){return j=ee,V=0,ee.length===0?W:X(ee[V])}function X(ee){return se;function se(pe){return q=O(),G=ee,ee.partial||(c.currentConstruct=ee),ee.name&&c.parser.constructs.disable.null.includes(ee.name)?re():ee.tokenize.call(P?Object.assign(Object.create(c),P):c,l,Q,re)(pe)}}function Q(ee){return R(G,q),L}function re(ee){return q.restore(),++V<j.length?X(j[V]):W}}}function z(R,P){R.resolveAll&&!o.includes(R)&&o.push(R),R.resolve&&Vb(c.events,P,c.events.length-P,R.resolve(c.events.slice(P),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}function O(){const R=g(),P=c.previous,F=c.currentConstruct,N=c.events.length,L=Array.from(s);return{restore:W,from:N};function W(){r=R,c.previous=P,c.currentConstruct=F,c.events.length=N,s=L,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function AHi(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function OHi(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
`;break}case-3:{a=`\r
`;break}case-2:{a=t?" ":"	";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}const zHi={42:W1,43:W1,45:W1,48:W1,49:W1,50:W1,51:W1,52:W1,53:W1,54:W1,55:W1,56:W1,57:W1,62:WEt},THi={91:Eji},EHi={[-2]:Zpe,[-1]:Zpe,32:Zpe},RHi={35:Lji,42:b$,45:[zJe,b$],60:Wji,61:zJe,95:b$,96:AJe,126:AJe},IHi={38:BEt,92:qEt},PHi={[-5]:Jpe,[-4]:Jpe,[-3]:Jpe,33:rHi,38:BEt,42:W2e,60:[aji,$ji],91:oHi,92:[Dji,qEt],93:zTe,95:W2e,96:yji},DHi={null:[W2e,MHi]},kHi={null:[42,95]},LHi={null:[]},_Hi=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:kHi,contentInitial:THi,disable:LHi,document:zHi,flow:RHi,flowInitial:EHi,insideSpan:DHi,string:IHi,text:PHi},Symbol.toStringTag,{value:"Module"}));function NHi(e){const n=VBi([_Hi,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(JBi),document:i(tji),flow:i(bHi),string:i(CHi),text:i(xHi)};return r;function i(o){return a;function a(s){return SHi(r,o,s)}}}const TJe=/[\0\t\n\r]/g;function FHi(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,p,h;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(TJe.lastIndex=d,c=TJe.exec(o),p=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(p),!c){t=o.slice(d);break}if(h===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(o.slice(d,p)),e+=p-d),h){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function WHi(e){for(;!jEt(e););return e}function XEt(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const qHi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function BHi(e){return e.replace(qHi,jHi)}function jHi(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return XEt(n.slice(o?2:1),o?16:10)}return OTe(n)||e}const YEt={}.hasOwnProperty,HHi=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),VHi(n)(WHi(NHi(n).document().write(FHi()(e,t,!0))))};function VHi(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(de),autolinkProtocol:R,autolinkEmail:R,atxHeading:s(be),blockQuote:s(oe),characterEscape:R,characterReference:R,codeFenced:s(ae),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(ae,l),codeText:s(ne,l),codeTextData:R,data:R,codeFlowValue:R,definition:s(le),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(he),hardBreakEscape:s(me),hardBreakTrailing:s(me),htmlFlow:s(Me,l),htmlFlowData:R,htmlText:s(Me,l),htmlTextData:R,image:s(Oe),label:l,link:s(de),listItem:s(ue),listItemValue:g,listOrdered:s(ie,h),listUnordered:s(ie),paragraph:s(Ae),reference:re,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(be),strong:s(Ce),thematicBreak:s(Ge)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:ce,autolinkProtocol:te,blockQuote:u(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:pe,codeFenced:u(M),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:P,codeIndented:u(C),codeText:u(j),codeTextData:P,data:P,definition:u(),definitionDestinationString:S,definitionLabelString:x,definitionTitleString:w,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(L),htmlFlowData:P,htmlText:u(W),htmlTextData:P,image:u(G),label:$,labelText:q,lineEnding:F,link:u(V),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ee,resourceDestinationString:U,resourceTitleString:X,resource:Q,setextHeading:u(T),setextHeadingLineSequence:O,setextHeadingText:z,strong:u(),thematicBreak:u()}};KEt(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(_e){let Ie={type:"root",children:[]};const Le={stack:[Ie],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:p,setData:o,getData:a},we=[];let ve=-1;for(;++ve<_e.length;)if(_e[ve][1].type==="listOrdered"||_e[ve][1].type==="listUnordered")if(_e[ve][0]==="enter")we.push(ve);else{const De=we.pop();ve=i(_e,De,ve)}for(ve=-1;++ve<_e.length;){const De=t[_e[ve][0]];YEt.call(De,_e[ve][1].type)&&De[_e[ve][1].type].call(Object.assign({sliceSerialize:_e[ve][2].sliceSerialize},Le),_e[ve][1])}if(Le.tokenStack.length>0){const De=Le.tokenStack[Le.tokenStack.length-1];(De[1]||EJe).call(Le,void 0,De[0])}for(Ie.position={start:CC(_e.length>0?_e[0][1].start:{line:1,column:1,offset:0}),end:CC(_e.length>0?_e[_e.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)Ie=t.transforms[ve](Ie)||Ie;return Ie}function i(_e,Ie,Le){let we=Ie-1,ve=-1,De=!1,ze,Ve,Ke,et;for(;++we<=Le;){const it=_e[we];if(it[1].type==="listUnordered"||it[1].type==="listOrdered"||it[1].type==="blockQuote"?(it[0]==="enter"?ve++:ve--,et=void 0):it[1].type==="lineEndingBlank"?it[0]==="enter"&&(ze&&!et&&!ve&&!Ke&&(Ke=we),et=void 0):it[1].type==="linePrefix"||it[1].type==="listItemValue"||it[1].type==="listItemMarker"||it[1].type==="listItemPrefix"||it[1].type==="listItemPrefixWhitespace"||(et=void 0),!ve&&it[0]==="enter"&&it[1].type==="listItemPrefix"||ve===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(ze){let Ft=we;for(Ve=void 0;Ft--;){const Dt=_e[Ft];if(Dt[1].type==="lineEnding"||Dt[1].type==="lineEndingBlank"){if(Dt[0]==="exit")continue;Ve&&(_e[Ve][1].type="lineEndingBlank",De=!0),Dt[1].type="lineEnding",Ve=Ft}else if(!(Dt[1].type==="linePrefix"||Dt[1].type==="blockQuotePrefix"||Dt[1].type==="blockQuotePrefixWhitespace"||Dt[1].type==="blockQuoteMarker"||Dt[1].type==="listItemIndent"))break}Ke&&(!Ve||Ke<Ve)&&(ze._spread=!0),ze.end=Object.assign({},Ve?_e[Ve][1].start:it[1].end),_e.splice(Ve||we,0,["exit",ze,it[2]]),we++,Le++}it[1].type==="listItemPrefix"&&(ze={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0},_e.splice(we,0,["enter",ze,it[2]]),we++,Le++,Ke=void 0,et=!0)}}return _e[Ie][1]._spread=De,Le}function o(_e,Ie){n[_e]=Ie}function a(_e){return n[_e]}function s(_e,Ie){return Le;function Le(we){c.call(this,_e(we),we),Ie&&Ie.call(this,we)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(_e,Ie,Le){return this.stack[this.stack.length-1].children.push(_e),this.stack.push(_e),this.tokenStack.push([Ie,Le]),_e.position={start:CC(Ie.start)},_e}function u(_e){return Ie;function Ie(Le){_e&&_e.call(this,Le),d.call(this,Le)}}function d(_e,Ie){const Le=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==_e.type&&(Ie?Ie.call(this,_e,we[0]):(we[1]||EJe).call(this,_e,we[0]));else throw new Error("Cannot close `"+_e.type+"` ("+sW({start:_e.start,end:_e.end})+"): it’s not open");return Le.position.end=CC(_e.end),Le}function p(){return jBi(this.stack.pop())}function h(){o("expectingFirstListItemValue",!0)}function g(_e){if(a("expectingFirstListItemValue")){const Ie=this.stack[this.stack.length-2];Ie.start=Number.parseInt(this.sliceSerialize(_e),10),o("expectingFirstListItemValue")}}function m(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.lang=_e}function b(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.meta=_e}function y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function M(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function C(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e.replace(/(\r?\n|\r)$/g,"")}function x(_e){const Ie=this.resume(),Le=this.stack[this.stack.length-1];Le.label=Ie,Le.identifier=KI(this.sliceSerialize(_e)).toLowerCase()}function w(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=_e}function S(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=_e}function A(_e){const Ie=this.stack[this.stack.length-1];if(!Ie.depth){const Le=this.sliceSerialize(_e).length;Ie.depth=Le}}function z(){o("setextHeadingSlurpLineEnding",!0)}function O(_e){const Ie=this.stack[this.stack.length-1];Ie.depth=this.sliceSerialize(_e).charCodeAt(0)===61?1:2}function T(){o("setextHeadingSlurpLineEnding")}function R(_e){const Ie=this.stack[this.stack.length-1];let Le=Ie.children[Ie.children.length-1];(!Le||Le.type!=="text")&&(Le=Ee(),Le.position={start:CC(_e.start)},Ie.children.push(Le)),this.stack.push(Le)}function P(_e){const Ie=this.stack.pop();Ie.value+=this.sliceSerialize(_e),Ie.position.end=CC(_e.end)}function F(_e){const Ie=this.stack[this.stack.length-1];if(a("atHardBreak")){const Le=Ie.children[Ie.children.length-1];Le.position.end=CC(_e.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(Ie.type)&&(R.call(this,_e),P.call(this,_e))}function N(){o("atHardBreak",!0)}function L(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e}function W(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e}function j(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e}function V(){const _e=this.stack[this.stack.length-1];if(a("inReference")){const Ie=a("referenceType")||"shortcut";_e.type+="Reference",_e.referenceType=Ie,delete _e.url,delete _e.title}else delete _e.identifier,delete _e.label;o("referenceType")}function G(){const _e=this.stack[this.stack.length-1];if(a("inReference")){const Ie=a("referenceType")||"shortcut";_e.type+="Reference",_e.referenceType=Ie,delete _e.url,delete _e.title}else delete _e.identifier,delete _e.label;o("referenceType")}function q(_e){const Ie=this.sliceSerialize(_e),Le=this.stack[this.stack.length-2];Le.label=BHi(Ie),Le.identifier=KI(Ie).toLowerCase()}function $(){const _e=this.stack[this.stack.length-1],Ie=this.resume(),Le=this.stack[this.stack.length-1];if(o("inReference",!0),Le.type==="link"){const we=_e.children;Le.children=we}else Le.alt=Ie}function U(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=_e}function X(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=_e}function Q(){o("inReference")}function re(){o("referenceType","collapsed")}function ee(_e){const Ie=this.resume(),Le=this.stack[this.stack.length-1];Le.label=Ie,Le.identifier=KI(this.sliceSerialize(_e)).toLowerCase(),o("referenceType","full")}function se(_e){o("characterReferenceType",_e.type)}function pe(_e){const Ie=this.sliceSerialize(_e),Le=a("characterReferenceType");let we;Le?(we=XEt(Ie,Le==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):we=OTe(Ie);const ve=this.stack.pop();ve.value+=we,ve.position.end=CC(_e.end)}function te(_e){P.call(this,_e);const Ie=this.stack[this.stack.length-1];Ie.url=this.sliceSerialize(_e)}function ce(_e){P.call(this,_e);const Ie=this.stack[this.stack.length-1];Ie.url="mailto:"+this.sliceSerialize(_e)}function oe(){return{type:"blockquote",children:[]}}function ae(){return{type:"code",lang:null,meta:null,value:""}}function ne(){return{type:"inlineCode",value:""}}function le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function he(){return{type:"emphasis",children:[]}}function be(){return{type:"heading",depth:void 0,children:[]}}function me(){return{type:"break"}}function Me(){return{type:"html",value:""}}function Oe(){return{type:"image",title:null,url:"",alt:null}}function de(){return{type:"link",title:null,url:"",children:[]}}function ie(_e){return{type:"list",ordered:_e.type==="listOrdered",start:null,spread:_e._spread,children:[]}}function ue(_e){return{type:"listItem",spread:_e._spread,checked:null,children:[]}}function Ae(){return{type:"paragraph",children:[]}}function Ce(){return{type:"strong",children:[]}}function Ee(){return{type:"text",value:""}}function Ge(){return{type:"thematicBreak"}}}function CC(e){return{line:e.line,column:e.column,offset:e.offset}}function KEt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?KEt(e,r):GHi(e,r)}}function GHi(e,t){let n;for(n in t)if(YEt.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function EJe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+sW({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sW({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+sW({start:t.start,end:t.end})+") is still open")}function $Hi(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return HHi(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function UHi(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function XHi(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function YHi(e,t){const n=t.value?t.value+`
`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function KHi(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QHi(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _k(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&nh(e.charCodeAt(n+1))&&nh(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function QEt(e,t){const n=String(t.identifier).toUpperCase(),r=_k(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function ZHi(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},QEt(e,{type:"footnoteReference",identifier:i,position:t.position})}function JHi(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function e8i(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function ZEt(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function t8i(e,t){const n=e.definition(t.identifier);if(!n)return ZEt(e,t);const r={src:_k(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function n8i(e,t){const n={src:_k(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function r8i(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function i8i(e,t){const n=e.definition(t.identifier);if(!n)return ZEt(e,t);const r={href:_k(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function o8i(e,t){const n={href:_k(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function a8i(e,t,n){const r=e.all(t),i=n?s8i(n):JEt(t),o={},a=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
`}),u.type==="element"&&u.tagName==="p"&&!i?a.push(...u.children):a.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function s8i(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=JEt(n[r])}return t}function JEt(e){const t=e.spread;return t??e.children.length>1}function l8i(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function c8i(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function u8i(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function d8i(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const TTe=eRt("start"),ETe=eRt("end");function p8i(e){return{start:TTe(e),end:ETe(e)}}function eRt(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function h8i(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=TTe(t.children[1]),l=ETe(t.children[t.children.length-1]);s.line&&l.line&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function f8i(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],p={},h=a?a[l]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(t,g)),c.push(g)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function g8i(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const RJe=9,IJe=32;function m8i(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(PJe(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(PJe(t.slice(i),i>0,!1)),o.join("")}function PJe(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===RJe||o===IJe;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===RJe||o===IJe;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function v8i(e,t){const n={type:"text",value:m8i(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function b8i(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const y8i={blockquote:UHi,break:XHi,code:YHi,delete:KHi,emphasis:QHi,footnoteReference:QEt,footnote:ZHi,heading:JHi,html:e8i,imageReference:t8i,image:n8i,inlineCode:r8i,linkReference:i8i,link:o8i,listItem:a8i,list:l8i,paragraph:c8i,root:u8i,strong:d8i,table:h8i,tableCell:g8i,tableRow:f8i,text:v8i,thematicBreak:b8i,toml:$G,yaml:$G,definition:$G,footnoteDefinition:$G};function $G(){return null}const tRt=(function(e){if(e==null)return w8i;if(typeof e=="string")return x8i(e);if(typeof e=="object")return Array.isArray(e)?M8i(e):C8i(e);if(typeof e=="function")return qte(e);throw new Error("Expected function, string, or object as test")});function M8i(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=tRt(e[n]);return qte(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function C8i(e){return qte(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function x8i(e){return qte(t);function t(n){return n&&n.type===e}}function qte(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function w8i(){return!0}const S8i=!0,DJe=!1,A8i="skip",O8i=(function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=tRt(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,c){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const p=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=[],h,g,m;if((!t||i(s,l,c[c.length-1]||null))&&(p=z8i(n(s,c)),p[0]===DJe))return p;if(s.children&&p[0]!==A8i)for(g=(r?s.children.length:-1)+o,m=c.concat(s);g>-1&&g<s.children.length;){if(h=a(s.children[g],g,m)(),h[0]===DJe)return h;g=typeof h[1]=="number"?h[1]:g+o}return p}}});function z8i(e){return Array.isArray(e)?e:typeof e=="number"?[S8i,e]:[e]}const RTe=(function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),O8i(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}});function T8i(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const kJe={}.hasOwnProperty;function E8i(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return RTe(e,"definition",r=>{const i=LJe(r.identifier);i&&!kJe.call(t,i)&&(t[i]=r)}),n;function n(r){const i=LJe(r);return i&&kJe.call(t,i)?t[i]:null}}function LJe(e){return String(e||"").toUpperCase()}const dK={}.hasOwnProperty;function R8i(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...y8i,...n.handlers},a.definition=E8i(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=I8i,a.applyData=P8i,a.one=s,a.all=l,a.wrap=k8i,a.augment=o,RTe(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();dK.call(i,u)||(i[u]=c)}),a;function o(c,u){if(c&&"data"in c&&c.data){const d=c.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(c){const d="type"in c?c:{position:c};T8i(d)||(u.position={start:TTe(d),end:ETe(d)})}return u}function a(c,u,d,p){return Array.isArray(d)&&(p=d,d={}),o(c,{type:"element",tagName:u,properties:d||{},children:p||[]})}function s(c,u){return nRt(a,c,u)}function l(c){return ITe(a,c)}}function I8i(e,t){e.position&&(t.position=p8i(e))}function P8i(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function nRt(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return dK.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:ITe(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):D8i(e,t)}function ITe(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=nRt(e,r[i],t);if(o){if(i&&r[i-1].type==="break"&&(!Array.isArray(o)&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&o.type==="element")){const a=o.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function D8i(e,t){const n=t.data||{},r="value"in t&&!(dK.call(n,"hProperties")||dK.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:ITe(e,t)};return e.patch(t,r),e.applyData(t,r)}function k8i(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function L8i(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),o=String(r.identifier).toUpperCase(),a=_k(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const d={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const d=c.children[c.children.length-1];d&&d.type==="text"?d.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
`}]}}function rRt(e,t){const n=R8i(e,t),r=n.one(e,null),i=L8i(n);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const _8i=(function(e,t){return e&&"run"in e?N8i(e,t):F8i(e||t)});function N8i(e,t){return(n,r,i)=>{e.run(rRt(n,t),r,o=>{i(o)})}}function F8i(e){return t=>rRt(t,e)}class Ej{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ej.prototype.property={};Ej.prototype.normal={};Ej.prototype.space=null;function iRt(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Ej(n,r,t)}function q2e(e){return e.toLowerCase()}class sg{constructor(t,n){this.property=t,this.attribute=n}}sg.prototype.space=null;sg.prototype.boolean=!1;sg.prototype.booleanish=!1;sg.prototype.overloadedBoolean=!1;sg.prototype.number=!1;sg.prototype.commaSeparated=!1;sg.prototype.spaceSeparated=!1;sg.prototype.commaOrSpaceSeparated=!1;sg.prototype.mustUseProperty=!1;sg.prototype.defined=!1;let W8i=0;const uo=vT(),$c=vT(),oRt=vT(),Pn=vT(),Bs=vT(),QI=vT(),Bp=vT();function vT(){return 2**++W8i}const B2e=Object.freeze(Object.defineProperty({__proto__:null,boolean:uo,booleanish:$c,commaOrSpaceSeparated:Bp,commaSeparated:QI,number:Pn,overloadedBoolean:oRt,spaceSeparated:Bs},Symbol.toStringTag,{value:"Module"})),ehe=Object.keys(B2e);class PTe extends sg{constructor(t,n,r,i){let o=-1;if(super(t,n),_Je(this,"space",i),typeof r=="number")for(;++o<ehe.length;){const a=ehe[o];_Je(this,ehe[o],(r&B2e[a])===B2e[a])}}}PTe.prototype.defined=!0;function _Je(e,t,n){n&&(e[t]=n)}const q8i={}.hasOwnProperty;function Nk(e){const t={},n={};let r;for(r in e.properties)if(q8i.call(e.properties,r)){const i=e.properties[r],o=new PTe(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[q2e(r)]=r,n[q2e(o.attribute)]=r}return new Ej(t,n,e.space)}const aRt=Nk({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),sRt=Nk({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function lRt(e,t){return t in e?e[t]:t}function cRt(e,t){return lRt(e,t.toLowerCase())}const uRt=Nk({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:cRt,properties:{xmlns:null,xmlnsXLink:null}}),dRt=Nk({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$c,ariaAutoComplete:null,ariaBusy:$c,ariaChecked:$c,ariaColCount:Pn,ariaColIndex:Pn,ariaColSpan:Pn,ariaControls:Bs,ariaCurrent:null,ariaDescribedBy:Bs,ariaDetails:null,ariaDisabled:$c,ariaDropEffect:Bs,ariaErrorMessage:null,ariaExpanded:$c,ariaFlowTo:Bs,ariaGrabbed:$c,ariaHasPopup:null,ariaHidden:$c,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bs,ariaLevel:Pn,ariaLive:null,ariaModal:$c,ariaMultiLine:$c,ariaMultiSelectable:$c,ariaOrientation:null,ariaOwns:Bs,ariaPlaceholder:null,ariaPosInSet:Pn,ariaPressed:$c,ariaReadOnly:$c,ariaRelevant:null,ariaRequired:$c,ariaRoleDescription:Bs,ariaRowCount:Pn,ariaRowIndex:Pn,ariaRowSpan:Pn,ariaSelected:$c,ariaSetSize:Pn,ariaSort:null,ariaValueMax:Pn,ariaValueMin:Pn,ariaValueNow:Pn,ariaValueText:null,role:null}}),B8i=Nk({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:cRt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:QI,acceptCharset:Bs,accessKey:Bs,action:null,allow:null,allowFullScreen:uo,allowPaymentRequest:uo,allowUserMedia:uo,alt:null,as:null,async:uo,autoCapitalize:null,autoComplete:Bs,autoFocus:uo,autoPlay:uo,blocking:Bs,capture:null,charSet:null,checked:uo,cite:null,className:Bs,cols:Pn,colSpan:null,content:null,contentEditable:$c,controls:uo,controlsList:Bs,coords:Pn|QI,crossOrigin:null,data:null,dateTime:null,decoding:null,default:uo,defer:uo,dir:null,dirName:null,disabled:uo,download:oRt,draggable:$c,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:uo,formTarget:null,headers:Bs,height:Pn,hidden:uo,high:Pn,href:null,hrefLang:null,htmlFor:Bs,httpEquiv:Bs,id:null,imageSizes:null,imageSrcSet:null,inert:uo,inputMode:null,integrity:null,is:null,isMap:uo,itemId:null,itemProp:Bs,itemRef:Bs,itemScope:uo,itemType:Bs,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:uo,low:Pn,manifest:null,max:null,maxLength:Pn,media:null,method:null,min:null,minLength:Pn,multiple:uo,muted:uo,name:null,nonce:null,noModule:uo,noValidate:uo,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:uo,optimum:Pn,pattern:null,ping:Bs,placeholder:null,playsInline:uo,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:uo,referrerPolicy:null,rel:Bs,required:uo,reversed:uo,rows:Pn,rowSpan:Pn,sandbox:Bs,scope:null,scoped:uo,seamless:uo,selected:uo,shadowRootClonable:uo,shadowRootDelegatesFocus:uo,shadowRootMode:null,shape:null,size:Pn,sizes:null,slot:null,span:Pn,spellCheck:$c,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Pn,step:null,style:null,tabIndex:Pn,target:null,title:null,translate:null,type:null,typeMustMatch:uo,useMap:null,value:$c,width:Pn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bs,axis:null,background:null,bgColor:null,border:Pn,borderColor:null,bottomMargin:Pn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:uo,declare:uo,event:null,face:null,frame:null,frameBorder:null,hSpace:Pn,leftMargin:Pn,link:null,longDesc:null,lowSrc:null,marginHeight:Pn,marginWidth:Pn,noResize:uo,noHref:uo,noShade:uo,noWrap:uo,object:null,profile:null,prompt:null,rev:null,rightMargin:Pn,rules:null,scheme:null,scrolling:$c,standby:null,summary:null,text:null,topMargin:Pn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Pn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:uo,disableRemotePlayback:uo,prefix:null,property:null,results:Pn,security:null,unselectable:null}}),j8i=Nk({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:lRt,properties:{about:Bp,accentHeight:Pn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Pn,amplitude:Pn,arabicForm:null,ascent:Pn,attributeName:null,attributeType:null,azimuth:Pn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Pn,by:null,calcMode:null,capHeight:Pn,className:Bs,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Pn,diffuseConstant:Pn,direction:null,display:null,dur:null,divisor:Pn,dominantBaseline:null,download:uo,dx:null,dy:null,edgeMode:null,editable:null,elevation:Pn,enableBackground:null,end:null,event:null,exponent:Pn,externalResourcesRequired:null,fill:null,fillOpacity:Pn,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:QI,g2:QI,glyphName:QI,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Pn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Pn,horizOriginX:Pn,horizOriginY:Pn,id:null,ideographic:Pn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Pn,k:Pn,k1:Pn,k2:Pn,k3:Pn,k4:Pn,kernelMatrix:Bp,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Pn,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Pn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Pn,overlineThickness:Pn,paintOrder:null,panose1:null,path:null,pathLength:Pn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bs,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Pn,pointsAtY:Pn,pointsAtZ:Pn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bp,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bp,rev:Bp,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bp,requiredFeatures:Bp,requiredFonts:Bp,requiredFormats:Bp,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Pn,specularExponent:Pn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Pn,strikethroughThickness:Pn,string:null,stroke:null,strokeDashArray:Bp,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Pn,strokeOpacity:Pn,strokeWidth:null,style:null,surfaceScale:Pn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bp,tabIndex:Pn,tableValues:null,target:null,targetX:Pn,targetY:Pn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bp,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Pn,underlineThickness:Pn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Pn,values:null,vAlphabetic:Pn,vMathematical:Pn,vectorEffect:null,vHanging:Pn,vIdeographic:Pn,version:null,vertAdvY:Pn,vertOriginX:Pn,vertOriginY:Pn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Pn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),H8i=/^data[-\w.:]+$/i,NJe=/-[a-z]/g,V8i=/[A-Z]/g;function G8i(e,t){const n=q2e(t);let r=t,i=sg;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&H8i.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(NJe,U8i);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!NJe.test(o)){let a=o.replace(V8i,$8i);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=PTe}return new i(r,t)}function $8i(e){return"-"+e.toLowerCase()}function U8i(e){return e.charAt(1).toUpperCase()}const FJe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},X8i=iRt([sRt,aRt,uRt,dRt,B8i],"html"),Y8i=iRt([sRt,aRt,uRt,dRt,j8i],"svg");function K8i(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{RTe(t,"element",(n,r,i)=>{const o=i;let a;if(e.allowedElements?a=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(n.tagName)),!a&&e.allowElement&&typeof r=="number"&&(a=!e.allowElement(n,r,o)),a&&typeof r=="number")return e.unwrapDisallowed&&n.children?o.children.splice(r,1,...n.children):o.children.splice(r,1),r})}}var the={exports:{}},Ya={};/**
 * @license React
 * 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 WJe;function Q8i(){if(WJe)return Ya;WJe=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function m(b){if(typeof b=="object"&&b!==null){var y=b.$$typeof;switch(y){case e:switch(b=b.type,b){case n:case i:case r:case c:case u:return b;default:switch(b=b&&b.$$typeof,b){case s:case a:case l:case p:case d:case o:return b;default:return y}}case t:return y}}}return Ya.ContextConsumer=a,Ya.ContextProvider=o,Ya.Element=e,Ya.ForwardRef=l,Ya.Fragment=n,Ya.Lazy=p,Ya.Memo=d,Ya.Portal=t,Ya.Profiler=i,Ya.StrictMode=r,Ya.Suspense=c,Ya.SuspenseList=u,Ya.isAsyncMode=function(){return!1},Ya.isConcurrentMode=function(){return!1},Ya.isContextConsumer=function(b){return m(b)===a},Ya.isContextProvider=function(b){return m(b)===o},Ya.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ya.isForwardRef=function(b){return m(b)===l},Ya.isFragment=function(b){return m(b)===n},Ya.isLazy=function(b){return m(b)===p},Ya.isMemo=function(b){return m(b)===d},Ya.isPortal=function(b){return m(b)===t},Ya.isProfiler=function(b){return m(b)===i},Ya.isStrictMode=function(b){return m(b)===r},Ya.isSuspense=function(b){return m(b)===c},Ya.isSuspenseList=function(b){return m(b)===u},Ya.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===c||b===u||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===d||b.$$typeof===o||b.$$typeof===a||b.$$typeof===l||b.$$typeof===g||b.getModuleId!==void 0)},Ya.typeOf=m,Ya}var qJe;function Z8i(){return qJe||(qJe=1,the.exports=Q8i()),the.exports}var J8i=Z8i();const eVi=qn(J8i);function tVi(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function nVi(e){return e.join(" ").trim()}function rVi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var UG={exports:{}},nhe,BJe;function iVi(){if(BJe)return nhe;BJe=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
`,c="/",u="*",d="",p="comment",h="declaration";nhe=function(m,b){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];b=b||{};var y=1,M=1;function C(F){var N=F.match(t);N&&(y+=N.length);var L=F.lastIndexOf(l);M=~L?F.length-L:M+F.length}function x(){var F={line:y,column:M};return function(N){return N.position=new w(F),z(),N}}function w(F){this.start=F,this.end={line:y,column:M},this.source=b.source}w.prototype.content=m;function S(F){var N=new Error(b.source+":"+y+":"+M+": "+F);if(N.reason=F,N.filename=b.source,N.line=y,N.column=M,N.source=m,!b.silent)throw N}function A(F){var N=F.exec(m);if(N){var L=N[0];return C(L),m=m.slice(L.length),N}}function z(){A(n)}function O(F){var N;for(F=F||[];N=T();)N!==!1&&F.push(N);return F}function T(){var F=x();if(!(c!=m.charAt(0)||u!=m.charAt(1))){for(var N=2;d!=m.charAt(N)&&(u!=m.charAt(N)||c!=m.charAt(N+1));)++N;if(N+=2,d===m.charAt(N-1))return S("End of comment missing");var L=m.slice(2,N-2);return M+=2,C(L),m=m.slice(N),M+=2,F({type:p,comment:L})}}function R(){var F=x(),N=A(r);if(N){if(T(),!A(i))return S("property missing ':'");var L=A(o),W=F({type:h,property:g(N[0].replace(e,d)),value:L?g(L[0].replace(e,d)):d});return A(a),W}}function P(){var F=[];O(F);for(var N;N=R();)N!==!1&&(F.push(N),O(F));return F}return z(),P()};function g(m){return m?m.replace(s,d):d}return nhe}var jJe;function oVi(){if(jJe)return UG.exports;jJe=1;var e=iVi();function t(n,r){var i=null;if(!n||typeof n!="string")return i;for(var o,a=e(n),s=typeof r=="function",l,c,u=0,d=a.length;u<d;u++)o=a[u],l=o.property,c=o.value,s?r(l,c,o):c&&(i||(i={}),i[l]=c);return i}return UG.exports=t,UG.exports.default=t,UG.exports}var aVi=oVi();const sVi=qn(aVi),j2e={}.hasOwnProperty,lVi=new Set(["table","thead","tbody","tfoot","tr"]);function pRt(e,t){const n=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?n.push(cVi(e,i,r,t)):i.type==="text"?(t.type!=="element"||!lVi.has(t.tagName)||!tVi(i))&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value);return n}function cVi(e,t,n,r){const i=e.options,o=i.transformLinkUri===void 0?yBi:i.transformLinkUri,a=e.schema,s=t.tagName,l={};let c=a,u;if(a.space==="html"&&s==="svg"&&(c=Y8i,e.schema=c),t.properties)for(u in t.properties)j2e.call(t.properties,u)&&dVi(l,u,t.properties[u],e);(s==="ol"||s==="ul")&&e.listDepth++;const d=pRt(e,t);(s==="ol"||s==="ul")&&e.listDepth--,e.schema=a;const p=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=i.components&&j2e.call(i.components,s)?i.components[s]:s,g=typeof h=="string"||h===E.Fragment;if(!eVi.isValidElementType(h))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(l.key=n,s==="a"&&i.linkTarget&&(l.target=typeof i.linkTarget=="function"?i.linkTarget(String(l.href||""),t.children,typeof l.title=="string"?l.title:null):i.linkTarget),s==="a"&&o&&(l.href=o(String(l.href||""),t.children,typeof l.title=="string"?l.title:null)),!g&&s==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!g&&(s==="h1"||s==="h2"||s==="h3"||s==="h4"||s==="h5"||s==="h6")&&(l.level=Number.parseInt(s.charAt(1),10)),s==="img"&&i.transformImageUri&&(l.src=i.transformImageUri(String(l.src||""),String(l.alt||""),typeof l.title=="string"?l.title:null)),!g&&s==="li"&&r.type==="element"){const m=uVi(t);l.checked=m&&m.properties?!!m.properties.checked:null,l.index=rhe(r,t),l.ordered=r.tagName==="ol"}return!g&&(s==="ol"||s==="ul")&&(l.ordered=s==="ol",l.depth=e.listDepth),(s==="td"||s==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),g||(l.isHeader=s==="th")),!g&&s==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),i.sourcePos&&(l["data-sourcepos"]=fVi(p)),!g&&i.rawSourcePos&&(l.sourcePosition=t.position),!g&&i.includeElementIndex&&(l.index=rhe(r,t),l.siblingCount=rhe(r)),g||(l.node=t),d.length>0?E.createElement(h,l,d):E.createElement(h,l)}function uVi(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function rhe(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function dVi(e,t,n,r){const i=G8i(r.schema,t);let o=n;o==null||o!==o||(Array.isArray(o)&&(o=i.commaSeparated?rVi(o):nVi(o)),i.property==="style"&&typeof o=="string"&&(o=pVi(o)),i.space&&i.property?e[j2e.call(FJe,i.property)?FJe[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function pVi(e){const t={};try{sVi(e,n)}catch{}return t;function n(r,i){const o=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[o.replace(/-([a-z])/g,hVi)]=i}}function hVi(e,t){return t.toUpperCase()}function fVi(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const HJe={}.hasOwnProperty,gVi="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",XG={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function hRt(e){for(const o in XG)if(HJe.call(XG,o)&&HJe.call(e,o)){const a=XG[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${gVi}#${a.id}> for more info)`),delete XG[o]}const t=NBi().use($Hi).use(e.remarkPlugins||[]).use(_8i,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(K8i,e),n=new LEt;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=E.createElement(E.Fragment,{},pRt({options:e,schema:X8i,listDepth:0},r));return e.className&&(i=E.createElement("div",{className:e.className},i)),i}hRt.propTypes={children:Z.string,className:Z.string,allowElement:Z.func,allowedElements:Z.arrayOf(Z.string),disallowedElements:Z.arrayOf(Z.string),unwrapDisallowed:Z.bool,remarkPlugins:Z.arrayOf(Z.oneOfType([Z.object,Z.func,Z.arrayOf(Z.oneOfType([Z.bool,Z.string,Z.object,Z.func,Z.arrayOf(Z.any)]))])),rehypePlugins:Z.arrayOf(Z.oneOfType([Z.object,Z.func,Z.arrayOf(Z.oneOfType([Z.bool,Z.string,Z.object,Z.func,Z.arrayOf(Z.any)]))])),sourcePos:Z.bool,rawSourcePos:Z.bool,skipHtml:Z.bool,includeElementIndex:Z.bool,transformLinkUri:Z.oneOfType([Z.func,Z.bool]),linkTarget:Z.oneOfType([Z.func,Z.string]),transformImageUri:Z.func,components:Z.object};const mVi=e=>{const t=e.value||"";return f.jsx("div",{style:{padding:"2px 0"},children:f.jsx(hRt,{children:t})})},vVi=()=>({columns:[{field:"AssetName",headerName:"Asset",sortable:!0,flex:1,minWidth:60},{field:"Title",headerName:"Title",sortable:!1,flex:1,minWidth:160},{field:"Content",headerName:"Content",sortable:!1,flex:5,minWidth:95,wrapText:!0,autoHeight:!0,cellStyle:{textAlign:"left"},cellRenderer:mVi},{field:"Author",headerName:"Author",sortable:!1,flex:1,minWidth:95}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),bVi=({rows:e,isLoading:t})=>{const n=p2(),{columns:r}=vVi(),[i,o]=v.useState(null),a=s=>{o(s.api)};return v.useEffect(()=>{i&&(t?i.showLoadingOverlay():i.hideOverlay())},[i,t]),f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{className:`${n.smAgGridBox} ${n.dynamicHeight}`,children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:e,columnDefs:r,onGridReady:a})})})},yVi=()=>({columns:[{headerName:"Heat",field:"HeatNameValue",minWidth:70,maxWidth:70,cellRenderer:Td,cellRendererParams:{linkProperty:"HeatNameLink"}},{headerName:"Grade",field:"Grade",minWidth:98,maxWidth:98},{headerName:"Sample",field:"Sample",minWidth:69,maxWidth:69},{headerName:"Elements",field:"Elements",wrapText:!0,autoHeight:!0,minWidth:100,flex:4}],defaultColDef:{flex:1,resizable:!0,suppressHeaderMenuButton:!0,autoHeight:!0,wrapText:!0}}),MVi=({rows:e,isLoading:t})=>{const n=p2(),{columns:r}=yVi(),[i,o]=v.useState(null),a=s=>{o(s.api)};return v.useEffect(()=>{i&&(t?i.showLoadingOverlay():i.hideOverlay())},[i,t]),f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{className:`${n.smAgGridBox} `,children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:e,columnDefs:r,domLayout:"normal",onGridReady:a})})})},CVi=e=>({columns:[{field:"Grade",headerName:"Grade",flex:1,minWidth:98,cellClass:"first-column-cell"},{field:"Section",headerName:"Section",flex:1,minWidth:80,cellClass:"first-column-cell"},{field:"Heats",headerName:"Heats",flex:1,minWidth:60,valueGetter:i=>{const o=i.data.Heats;return Number.isInteger(o)?o:o?.toFixed(2)}},{field:"Billets",headerName:"Billets",flex:1,minWidth:62,valueGetter:i=>{const o=i.data.Billets;return Number.isInteger(o)?o:o?.toFixed(2)}},{field:"Tons",headerName:"Tons",flex:1,minWidth:68,valueGetter:i=>{const o=i.data.Tons;return Number.isInteger(o)?o:o?.toFixed(2)}}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:e}),xVi=({rows:e,isLoading:t})=>{const n=p2(),{columns:r,rowData:i}=CVi(e),[o,a]=v.useState(null),s=l=>{a(l.api)};return v.useEffect(()=>{o&&(t?o.showLoadingOverlay():o.hideOverlay())},[o,t]),f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{className:`${n.smAgGridBox}`,children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:r,domLayout:"normal",onGridReady:s})})})},wVi=e=>{const t=Array.isArray(e)?e.map(i=>({Property:i.Property,Value:i.Value!==void 0?i.Value:0})):[];return{columns:[{headerName:"Quality Summary",children:[{field:"Property",headerName:"",flex:1,minWidth:150,cellClass:"first-column-cell"},{field:"Value",headerName:"Value",flex:1,minWidth:100,valueGetter:i=>{const o=i.data.Value;return o==null?null:typeof o=="number"&&Number.isInteger(o)?o:typeof o=="number"?o.toFixed(2):o}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:t}},SVi=({rows:e,isLoading:t})=>{const n=p2(),{columns:r,rowData:i}=wVi(e),[o,a]=v.useState(null),s=l=>{a(l.api)};return v.useEffect(()=>{o&&(t?o.showLoadingOverlay():o.hideOverlay())},[o,t]),f.jsx(Pt,{elevation:0,children:f.jsx(Tn,{className:`${n.readonlyAgGridBox} ${n.dynamicHeight}`,children:f.jsx($n,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:r,domLayout:"autoHeight",onGridReady:s})})})},AVi={isDataLoading:!1,eafSummary:[],casSummary:[],qualitySummary:[],heats:[],prdSummary:[],logbook:[],delays:[],missedChemistries:[]},pK=ki({name:"__",initialState:AVi,reducers:{setIsDataLoading(e,{payload:t}){e.isDataLoading=t},setEafSummary(e,{payload:t}){e.eafSummary=t},setCasSummary(e,{payload:t}){e.casSummary=t},setHeats(e,{payload:t}){e.heats=t},setPrdSummary(e,{payload:t}){e.prdSummary=t},setDelays(e,{payload:t}){e.delays=t},setLogbook(e,{payload:t}){e.logbook=t},setMissedChemistries(e,{payload:t}){e.missedChemistries=t},setQualitySummary(e,{payload:t}){e.qualitySummary=t}}}),fRt=v.createContext({state:pK.getInitialState(),actions:pK.actions}),OVi=()=>v.useContext(fRt),zVi=({children:e})=>{const[t,n]=Fi.useComplexState({initialState:pK.getInitialState(),reducers:pK.caseReducers,name:"shiftReport"});return f.jsx(fRt.Provider,{value:{state:t,actions:n},children:e})},TVi=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[EAF].[GetShiftReport]",t)},EVi=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[CAS].[GetShiftReport]",t)},RVi=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[LAB].[GetShiftReport]",t)},IVi=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[SWV].[GetHeatsShiftReport]",t)},PVi=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[SWV].[GetPRDShiftReport]",t)},DVi=async(e,t,n=!1)=>{const r=new Ye,i=[];return i.push({name:"ShiftId",value:e}),i.push({name:"DelayAreaAssetId",value:t}),i.push({name:"IncludeMicrodelays",value:n}),await r.callV2("[DEL].[GetShiftReportDelays]",i)},kVi=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[LB].[GetEntries]",t)},LVi=Sn(),_Vi=()=>{const{state:e,actions:t}=OVi(),{shiftInfo:n,initShiftNavigator:r,getShiftDataFromAPI:i}=na(),{width:o}=CEt(),a=o*.9/12,[s,l]=v.useState(!0),[c,u]=v.useState(""),{assets:d,updateGantt:p}=AEt(n),[h,g]=v.useState(null),[m,b]=v.useState(!0),[y,M]=v.useState(!0),[C,x]=v.useState(!0),[w,S]=v.useState(!0),[A,z]=v.useState(!0),[O,T]=v.useState(!0),[R,P]=v.useState(!0),[F,N]=v.useState(!0),[L,W]=v.useState(!0);v.useEffect(()=>{i(null,0).catch(G=>{u(G?.message||"Error loading shift data")})},[]);const j=async G=>{b(!0),M(!0),x(!0),S(!0),z(!0),T(!0),P(!0),N(!0),W(!0);const q=[],$={eafSummary:TVi(G),casSummary:EVi(G),qualitySummary:RVi(G),heats:IVi(G),delays:DVi(G,null),prdSummary:PVi(G),logbook:kVi(G),missedChemistries:yzt({startDate:null,endDate:null,shiftId:G,gradeId:0,billetSizeId:0,includeExternalHeats:!1}),ganttData:n?b2e(n.CurrentStart,n.CurrentEnd):Promise.resolve({ok:!1,message:"No shiftInfo available"})},U=Object.keys($);(await Promise.allSettled(Object.values($))).forEach((Q,re)=>{const ee=U[re];if(Q.status==="fulfilled"){const se=Q.value;if(se.ok)switch(ee){case"eafSummary":t.setEafSummary(At(se,"data.tables[0].rows",null)),b(!1);break;case"casSummary":t.setCasSummary(At(se,"data.tables[0].rows",null)),M(!1);break;case"qualitySummary":t.setQualitySummary(At(se,"data.tables[1].rows",null)),x(!1);break;case"ganttData":const pe=At(se,"data",null);pe&&p(pe),W(!1);break;case"heats":t.setHeats(At(se,"data.tables[0].rows",null)),S(!1);break;case"prdSummary":t.setPrdSummary(At(se,"data.tables[0].rows",null)),T(!1);break;case"delays":t.setDelays(At(se,"data.tables[0].rows",null)),z(!1);break;case"missedChemistries":t.setMissedChemistries(At(se,"data.tables[0].rows",null)),N(!1);break;case"logbook":t.setLogbook(At(se,"data.tables[0].rows",null)),P(!1);break}else q.push(se.message)}else q.push(Q.reason&&Q.reason.message||"Unknown error")}),q.length>0?u(q.join(" | ")):u(""),l(!1)},V=async()=>{try{if(l(!0),!n?.CurrentShiftId){u("No valid shift selected");return}const q=LVi(n.CurrentStart).format("YYYYMMDD"),$=n.CurrentShift,U=`/api/shift-reports/pdf/${q}/${$}`;window.open(U,"_blank","noopener,noreferrer")}catch(G){u(G?.message||"Error generating the PDF")}finally{l(!1)}};return v.useEffect(()=>{const G=At(n,"CurrentShiftId",null);G&&G!==h&&(j(G),g(G))},[n,h,t,p]),f.jsxs(f.Fragment,{children:[f.jsx(yn,{title:"Shift Report"}),f.jsxs(D,{container:!0,spacing:1,style:{padding:"10px 20px",backgroundColor:" #F2F4F7"},children:[f.jsxs(D,{container:!0,item:!0,xs:12,alignItems:"center",children:[f.jsx(D,{item:!0,children:f.jsx(vt,{variant:"h5",style:{fontWeight:600,userSelect:"none"},children:"Shift Report"})}),f.jsx(D,{item:!0,xs:!0,container:!0,justifyContent:"center",children:f.jsx(qm,{preventInit:!0})}),f.jsx(D,{item:!0,children:f.jsx(ka,{variant:"contained",color:"primary",onClick:V,isLoading:s,style:{marginRight:"10px"},children:"Generate PDF"})})]}),f.jsxs(D,{item:!0,container:!0,spacing:1,xs:12,justifyContent:"space-between",children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(mBi,{rows:e.eafSummary,isLoading:m})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(pBi,{rows:e.casSummary,isLoading:y})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(SVi,{rows:e.qualitySummary,isLoading:C})})]}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:2,style:{position:"relative"},children:[f.jsx(vt,{variant:"h5",style:{fontWeight:"600"},children:"Gantt"}),n&&d.length>0&&f.jsx(SEt,{columnWidth:a,assets:d,showArrowTriangle:!1,startCalendarDate:n?.CurrentStart,endCalendarDate:n?.CurrentEnd,rowHeight:150,barFill:50,lineSectionFill:40,lineFill:40,refreshData:()=>j(n?.CurrentShiftId),withoutContextMenu:!0},`shift-${n?.CurrentShiftId}`),L&&f.jsx(Kt,{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})]})})}),f.jsx(D,{item:!0,container:!0,xs:12,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(vt,{variant:"h5",style:{fontWeight:"600"},children:"Heats"}),f.jsx(bBi,{heats:e.heats,isLoading:w})]})})})}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(vt,{variant:"h5",style:{fontWeight:"600"},children:"Production Summary"}),f.jsx(xVi,{rows:e.prdSummary,isLoading:O})]})})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(vt,{variant:"h5",style:{fontWeight:"600"},children:"Missed Chemistries"}),f.jsx(MVi,{rows:e.missedChemistries,isLoading:F})]})})})]}),f.jsx(D,{item:!0,container:!0,xs:12,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(vt,{variant:"h5",style:{fontWeight:"600"},children:"Top 5 Delays by Asset"}),f.jsx(fBi,{rows:e.delays,isLoading:A})]})})})}),f.jsx(D,{item:!0,container:!0,xs:12,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Pt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(vt,{variant:"h5",style:{fontWeight:"600"},children:"Logbook"}),f.jsx(bVi,{rows:e.logbook,isLoading:R})]})})})})]}),f.jsx(yt,{error:c,onHide:()=>u("")})]})},NVi=()=>f.jsx(zVi,{children:f.jsx(MEt,{children:f.jsx(_Vi,{})})}),FVi=[f.jsx(ar,{path:"/shift-report/*",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(NVi,{})})})],WVi=()=>f.jsxs(aZ,{children:[V6i,DNi,I4i,kWi,uBi,n5i,FVi,$Fi,LWi,f.jsx(ar,{path:"/acquisition-stats",element:f.jsx(v.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(zEi,{})})}),f.jsx(ar,{path:"",element:f.jsx(VO,{to:"/meltshop-dashboard"})})]}),qVi={entry:{withAssetFilter:"selector",filterAssets:"area",allowAttachments:!0,canEditShift:!0,showShiftCrew:!0,exportToExcel:!0,shiftsRange:7},report:{withAssetFilter:"selector",filterAssets:"area",showAttachments:!0,showAsset:!0,showShiftCrew:!0,exportToExcel:!0}};Bl.render(f.jsx(Cwi,{showAreaSelector:!0,routes:WVi,navbar:vEi,navbarTitle:"SWV MES",configurations:pEi,authentication:TSi,logbookSettings:qVi}),document.getElementById("root"));export{$n as A,Tn as B,Kt as C,_f as D,pT as E,yn as H,ac as I,Yst as L,Ye as M,Pt as P,D as S,vt as T,hNn as a,yt as b,Ki as c,je as d,aB as e,Ow as f,Sn as g,C3 as h,f as j,v as r,ds as u};
//# sourceMappingURL=index-WgyR2ssF.js.map
